Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 9 years ago.
Improve this question
Earlier our site had only one language, our primary language: Hungarian.
A few weeks ago, we upload the new site, with english language too (language is in subdirectory).
We made our new sitemap:
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
<url>
<loc>http://dinox-h.hu</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/"
/>
</url>
<url>
<loc>http://dinox-h.hu/cegbemutato.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/about-us.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/cegbemutato.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/about-us.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/cegbemutato.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/about-us.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/termekeink.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/products.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/termekeink.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/products.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/termekeink.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/products.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/standard_puffer_tartaly.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-buffer-tanks.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_puffer_tartaly.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/standard-buffer-tanks.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_puffer_tartaly.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-buffer-tanks.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/standard_belso_hocserlos.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-internal-heat-exchanger.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_belso_hocserlos.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/standard-internal-heat-exchanger.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_belso_hocserlos.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-internal-heat-exchanger.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/puffer_tartalyok.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/buffer-tanks.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/puffer_tartalyok.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/buffer-tanks.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/puffer_tartalyok.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/buffer-tanks.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/belso_hocserelos_tartalyok.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/internal-heat-exchanger-tanks.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/belso_hocserelos_tartalyok.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/internal-heat-exchanger-tanks.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/belso_hocserelos_tartalyok.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/internal-heat-exchanger-tanks.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/egyeb_tartalyok.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/other_tanks.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyeb_tartalyok.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/other_tanks.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyeb_tartalyok.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/other_tanks.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/egyedi_termekek.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/custom-products.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyedi_termekek.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/custom-products.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyedi_termekek.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/custom-products.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/standard_puffer_tartaly_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-buffer-tanks-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_puffer_tartaly_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/standard-buffer-tanks-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_puffer_tartaly_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-buffer-tanks-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/standard_belso_hocserlos_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-internal-heat-exchanger-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_belso_hocserlos_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/standard-internal-heat-exchanger-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/standard_belso_hocserlos_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/standard-internal-heat-exchanger-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/puffer_tartalyok_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/buffer-tanks-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/puffer_tartalyok_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/buffer-tanks-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/puffer_tartalyok_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/buffer-tanks-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/belso_hocserelos_tartalyok_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/internal-heat-exchanger-tanks-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/belso_hocserelos_tartalyok_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/internal-heat-exchanger-tanks-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/belso_hocserelos_tartalyok_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/internal-heat-exchanger-tanks-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/egyeb_tartalyok_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/other-tanks-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyeb_tartalyok_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/other-tanks-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyeb_tartalyok_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/other-tanks-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/egyedi_termekek_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/custom-products-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyedi_termekek_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/custom-products-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/egyedi_termekek_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/custom-products-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/rolunk_galeria.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/aboutus-gallery.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/rolunk_galeria.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/aboutus-gallery.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/rolunk_galeria.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/aboutus-gallery.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/elerhetosegek.php</loc>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/contacts.php"
/>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/elerhetosegek.php"
/>
</url>
<url>
<loc>http://dinox-h.hu/en/contacts.php</loc>
<xhtml:link
rel="alternate"
hreflang="hu"
href="http://dinox-h.hu/elerhetosegek.php"
/>
<xhtml:link
rel="alternate"
hreflang="en"
href="http://dinox-h.hu/en/contacts.php"
/>
</url>
</urlset>
(http://pastebin.com/djKhi2xR).
Before we made this changes we were on the first page in Google for many keyword. Now we are nowhere.
Should I check our sitemap, or what might be the problem?
You have something wrong with cookies and redirects. When I first visit URLs in your site map, the 302 redirect to a version with a double slash. Later when I have a cookie and I fetch them again, they don't redirect.
For example http://dinox-h.hu/en/gallery.php redirects to http://dinox-h.hu//en/gallery.php
This could cause your site not to be indexed because:
You are redirecting away from URLs in your sitemap when the user (or googlebot) has no cookies
The redirect is a 302 which does not pass pagerank.
$ curl -s -D - http://dinox-h.hu/galeria.php | head -n 30
HTTP/1.1 302 Found
Date: Thu, 18 Jul 2013 17:02:39 GMT
Server: Apache
Set-Cookie: PHPSESSID=j22vjbjvj8n63ma1foalm5ujp0; path=/
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Location: http://dinox-h.hu//en/gallery.php
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html;charset=UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
....
Related
Hi i just want to know how to post xml data to Http post method in Objective-C by dynamically instead of static string Appending
here my sample xml Data :
<xml-packet version="2.5" ctr="1" timestamp="1345193301000">
<device id="0" name="hh" ipaddr="0.0.0.1" type="Hello" status="NORMAL"
capability="ios">
<devcice name="5s" type="2" status="NORMAL">
<sensor name="sample" type="" status="NORMAL">
<event timestamp="1345193300000" type="ITEM">
<position agid="3" name="Manager" lastsynctime="1344433367000" action="" />
<position agid="6" name="LOC3" lastsynctime="1343818867000" action="" />
<position agid="8" name="LOC5" lastsynctime="1344433367000" action="" />
<position agid="4" name="LOC1" lastsynctime="1344504045000" action="" />
<position agid="5" name="LOC2" lastsynctime="1343386683000" action="" />
<position agid="7" name="LOC4" lastsynctime="1344238182000" action="" />
</event>
<event timestamp="1345192938000" type="ITEM">
<position agid="1" name="CEO" lastsynctime="1344594202000" action="update">
<item id="ac001520101217000a012222" result="" status="NEW" lastmodifiedtime="" />
<item id="e20019838306016127500770" result="" status="NEW" lastmodifiedtime="" />
<item id="e20019838309014424301e64" result="" status="NEW" lastmodifiedtime="" />
<item id="2005790000000000000005fc" result="" status="MISSING" lastmodifiedtime="1345212728000" />
<item id="00000000012102007400bd39" result="" status="MISSING" lastmodifiedtime="1344594171000" />
</position>
</event>
</sensor>
</device>
</xml-packet>
After deploying a JAX-WS, RPC Style webservice, the WSDL published in
Weblogic server 12.1.3 does not corresponds to initial WSDL. The namespace in
is not matching.
ISSUE:
Initial WSDL Contains:
<soap12:body parts="helloReq" use="literal" namespace=""/>
Published WSDL Contains:
<soap12:body use="literal" namespace="http://sample"/>
Due to this, inappropriate SOAP Request is getting formed which is throwing
error on invocation : "Cannot find dispatch method for {}hello".
Initial WSDL:
<?xml version="1.0" encoding="UTF-8"?>
<types>
<xsd:schema targetNamespace="http://sample">
<xsd:complexType name="hello">
<xsd:sequence>
<xsd:element type="xsd:string" name="input" />
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="helloResponse">
<xsd:sequence>
<xsd:element type="xsd:string" name="output" />
</xsd:sequence>
</xsd:complexType>
</xsd:schema>
</types>
<message name="hello">
<part name="helloReq" type="tns:hello" />
</message>
<message name="helloResponse">
<part name="helloRes" type="tns:helloResponse" />
</message>
<portType name="HelloServicePort">
<operation name="hello">
<input message="tns:hello" />
<output message="tns:helloResponse" />
</operation>
</portType>
<binding type="tns:HelloServicePort" name="HelloServicePort">
<soap12:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http" />
<operation name="hello">
<soap12:operation style="rpc" soapAction="" />
<input>
<soap12:body parts="helloReq" use="literal" namespace="" />
</input>
<output>
<soap12:body parts="helloRes" use="literal" namespace="" />
</output>
</operation>
</binding>
<service name="HelloService">
<port name="HelloServicePort" binding="tns:HelloServicePort">
<soap12:address location="http://localhost:7201/hello/HelloService" />
</port>
</service>
Published WSDL:
<definitions
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
xmlns:wsp="http://www.w3.org/ns/ws-policy" xmlns:wsp1_2="http://schemas.xmlsoap.org/ws/2004/09/policy"
xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:tns="http://sample"
xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.xmlsoap.org/wsdl/"
targetNamespace="http://sample" name="HelloService">
<types>
<xsd:schema>
<xsd:import namespace="http://sample"
schemaLocation="http://localhost:7022/hello/jaxws/HelloService?xsd=1" />
</xsd:schema>
</types>
<message name="hello">
<part name="helloReq" type="tns:hello" />
</message>
<message name="helloResponse">
<part name="helloRes" type="tns:helloResponse" />
</message>
<portType name="HelloServicePort">
<operation name="hello">
<input wsam:Action="http://sample/HelloServicePort/helloRequest"
message="tns:hello" />
<output wsam:Action="http://sample/HelloServicePort/helloResponse"
message="tns:helloResponse" />
</operation>
</portType>
<binding name="HelloServicePortBinding" type="tns:HelloServicePort">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"
style="rpc" />
<operation name="hello">
<soap12:operation soapAction="" />
<input>
<soap12:body use="literal" namespace="http://sample" />
</input>
<output>
<soap12:body use="literal" namespace="http://sample" />
</output>
</operation>
</binding>
<service name="HelloService">
<port name="HelloServicePort" binding="tns:HelloServicePortBinding">
<soap12:address location="http://localhost:7022/hello/jaxws/HelloService" />
</port>
</service>
Is this the default behavior or a bug in JAX-WS? Is there any workaround to make this work without changing the wsdl?
Please share some pointers.
Thanks.
I am trying to publish a webservice using apache camel cxf. I am able to access the published webservice using http. However I am trying to configure the same using https. But I am not able to get it to work.
below are parts of spring context and wsdl files
<camel-cxf:cxfEndpoint id="myEndoint"
address="http://localhost:9000/PostXml/" serviceClass="com.XXXXXXXXXX.techquest.ServicesPortType"
xmlns:ssp="http://techquest.interswitchng.com/" endpointName="ssp:PostXml"
serviceName="ssp:PostXml" />
<http:conduit name="*.http-conduit">
<http:tlsClientParameters
secureSocketProtocol="SSL">
<sec:keyManagers keyPassword="password">
<sec:keyStore type="JKS" password="password"
file="A:/apache-sermfino_conf/cherry.jks" />
</sec:keyManagers>
<sec:trustManagers>
<sec:keyStore type="JKS" password="password"
file="A:/apache-ser/truststore.jks" />
</sec:trustManagers>
<sec:cipherSuitesFilter>
<!-- these filters ensure that a ciphersuite with export-suitable or
null encryption is used, but exclude anonymous Diffie-Hellman key change
as this is vulnerable to man-in-the-middle attacks -->
<sec:include>.*_EXPORT_.*</sec:include>
<sec:include>.*_EXPORT1024_.*</sec:include>
<sec:include>.*_WITH_DES_.*</sec:include>
<sec:include>.*_WITH_AES_.*</sec:include>
<sec:include>.*_WITH_NULL_.*</sec:include>
<sec:exclude>.*_DH_anon_.*</sec:exclude>
</sec:cipherSuitesFilter>
</http:tlsClientParameters>
<http:client AutoRedirect="true" Connection="Keep-Alive" />
</http:conduit>
===============================================================================
<wsdl:portType name="ServicesPortType">
<wsdl:operation name="PostXml">
<wsdl:input message="tns:PostXml" />
<wsdl:output message="tns:PostXml" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="ServicesSoap12Binding" type="tns:ServicesPortType">
<soap12:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="PostXml">
<soap12:operation soapAction="PostXml" style="document" />
<wsdl:input>
<soap12:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap12:body use="literal" />
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="ServicesPortTypeService">
<wsdl:port binding="tns:ServicesSoap12Binding" name="ServicesSoap12Endpoint">
<soap12:address location="http://localhost:9000/PostXml" />
</wsdl:port>
</wsdl:service>
The first one configuration is for the http client not for the server side.
You can find the configuration example here[1]
[1]http://cxf.apache.org/docs/jetty-configuration.html
I was able to configure apache-camel-2.19.4 with camel-config.xml:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:camel="http://camel.apache.org/schema/spring"
xmlns:cxf="http://camel.apache.org/schema/cxf" xmlns:context="http://www.springframework.org/schema/context"
xmlns:httpj="http://cxf.apache.org/transports/http-jetty/configuration"
xmlns:sec="http://cxf.apache.org/configuration/security" xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:cxfcore="http://cxf.apache.org/core"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd
http://camel.apache.org/schema/spring http://camel.apache.org/schema/spring/camel-spring.xsd
http://camel.apache.org/schema/cxf http://camel.apache.org/schema/cxf/camel-cxf.xsd
http://cxf.apache.org/configuration/security http://cxf.apache.org/schemas/configuration/security.xsd
http://cxf.apache.org/transports/http/configuration http://cxf.apache.org/schemas/configuration/http-conf.xsd
http://cxf.apache.org/transports/http-jetty/configuration http://cxf.apache.org/schemas/configuration/http-jetty.xsd
http://cxf.apache.org/core http://cxf.apache.org/schemas/core.xsd
">
<cxf:cxfEndpoint id="my-endpoint-http"
address="http://localhost:8080/test"
endpointName="tns:endpointName1" serviceName="tns:endpointServiceName1"
wsdlURL="myService.wsdl" xmlns:tns="myServiceWsdlNamespace">
<cxf:properties>
<entry key="allowStreaming" value="true" />
<entry key="autoRewriteSoapAddressForAllServices" value="true" />
</cxf:properties>
</cxf:cxfEndpoint>
<cxf:cxfEndpoint id="my-endpoint-https"
address="https://localhost:8443/test"
endpointName="tns:endpointName1" serviceName="tns:endpointServiceName1"
wsdlURL="myService.wsdl" xmlns:tns="myServiceWsdlNamespace">
<cxf:properties>
<entry key="allowStreaming" value="true" />
<entry key="autoRewriteSoapAddressForAllServices" value="true" />
</cxf:properties>
</cxf:cxfEndpoint>
<camelContext xmlns="http://camel.apache.org/schema/spring">
<route id="my-endpoint-http-route" streamCache="true">
<from uri="cxf:bean:my-endpoint-http?dataFormat=MESSAGE" />
<to uri="direct:myServiceDirect" />
</route>
<route id="my-endpoint-https-route" streamCache="true">
<from uri="cxf:bean:my-endpoint-https?dataFormat=MESSAGE" />
<to uri="direct:myServiceDirect" />
</route>
<route id="all" streamCache="true">
<from uri="direct:myServiceDirect" />
<log message="headers1=${headers}" />
</route>
</camelContext>
<cxfcore:bus/>
<httpj:engine-factory bus="cxf">
<httpj:engine port="8443">
<httpj:tlsServerParameters secureSocketProtocol="TLSv1">
<sec:keyManagers keyPassword="skpass">
<sec:keyStore password="changeit" file="src/test/resources/certificate-stores/localhost-keystore.jks" />
</sec:keyManagers>
<!--
<sec:trustManagers>
- <sec:keyStore resource="certs/serviceKeystore.jks" password="sspass" type="JKS"/> -
<sec:keyStore password="changeit" file="src/main/resources/certificate-stores/cacerts" />
</sec:trustManagers>
-->
<sec:cipherSuitesFilter>
<sec:include>.*_WITH_3DES_.*</sec:include>
<sec:include>.*_WITH_DES_.*</sec:include>
<sec:exclude>.*_WITH_NULL_.*</sec:exclude>
<sec:exclude>.*_DH_anon_.*</sec:exclude>
</sec:cipherSuitesFilter>
<!-- <sec:clientAuthentication want="true" required="false"/> -->
</httpj:tlsServerParameters>
</httpj:engine>
</httpj:engine-factory>
</beans>
With this you should be able to access:
http://localhost:8080/test?wsdl
https://localhost:8443/test?wsdl
The file src/test/resources/certificate-stores/localhost-keystore.jks should contain a generated key pair (use KeyStoreExplorer) and the pair saved with keyPassword(skpass) key password and password(changeit) for the keystore file password.
I have tried to add http://repository.springsource.com/ivy/bundles/external/ as (proxy) remote repository location to our Nexus repository.
The developers are using the following inside they're iv
Inside the ivy-settings.xml is as follows
<?xml version="1.0" encoding="ISO-8859-1"?>
<ivysettings>
<settings defaultResolver="spring.compass.ibiblio" checkUpToDate="true" />
<resolvers>
<chain name="spring.compass.ibiblio">
<url name="com.springsource.repository.bundles.release">
<ivy pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/release/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<url name="com.springsource.repository.bundles.external">
<ivy pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
<artifact pattern="http://repository.springsource.com/ivy/bundles/external/[organisation]/[module]/[revision]/[artifact]-[revision].[ext]" />
</url>
<ibiblio name="compass" m2compatible="true" root="http://repo.compass-project.org" />
<ibiblio name="ibiblio" m2compatible="true" checkconsistency="false"/>
<ibiblio name="javanet" root="http://download.java.net/maven/2/" m2compatible="true" usepoms="false"/>
<ibiblio name="libraries" m2compatible="true" usepoms="false"/>
<ibiblio name="jboss" root="http://repository.jboss.com/maven2" m2compatible="true" usepoms="false"/>
</chain>
</resolvers>
</ivysettings>
However when I try to browse the nexus repository that is set up I cannot see anything under the repository except of
/.index/nexus-maven-repository-index.gz
/.index/nexus-maven-repository-index.gz.sha1
/.index/nexus-maven-repository-index.gz.md5
/.index/nexus-maven-repository-index.properties
/.index/nexus-maven-repository-index.properties.sha1
/.index/nexus-maven-repository-index.properties.md5
As a result the dependencies cannot be resolved.
Can anyone help?
Randall
Check the answer to this question
Basically I'd suggest you use the following settings file to download spring depenencies:
<ivysettings>
<settings defaultResolver="chain"/>
<resolvers>
<chain name="chain">
<ibiblio name="central" m2compatible="true"/>
<ibiblio name="spring-release" root="http://repository.springsource.com/maven/bundles/release" m2compatible="true"/>
<ibiblio name="spring-external" root="http://repository.springsource.com/maven/bundles/external" m2compatible="true"/>
</chain>
</resolvers>
</ivysettings>
These are the Maven repository URLs and the ivy resolver is configured to understand them as Maven2 formatted repositories.
Finally, I think the spring repos are setup to discourage adhoc browsing using web browser.
I am using spring source dm server version 2.0.0.
I developed one application in spring/struts/hibernate. When I am running my application in spring dm server with
it gives me error like:
HTTP Status 503 - Servlet action is currently unavailable
type: Status report
message: Servlet action is currently unavailable
description: The requested service (Servlet action is currently unavailable) is not currently available.
My web.xml:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<!-- Action Servlet Configuration -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.apache.struts.action.ActionServlet
</servlet-class>
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml</param-value>
</init-param>
<init-param>
<param-name>debug</param-name>
<param-value>3</param-value>
</init-param>
<init-param>
<param-name>detail</param-name>
<param-value>3</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>
<!-- Spring Framework context Loader -->
<servlet>
<servlet-name>context</servlet-name>
<servlet-class>
org.springframework.web.context.ContextLoaderServlet
</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Spring Framework context config location -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/applicationContext*.xml
</param-value>
</context-param>
<!--TODO Prevent direct calls to *.jsp -->
<!-- Action Servlet Mapping -->
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<!-- The Welcome File List -->
<welcome-file-list>
<welcome-file>start.jsp</welcome-file>
</welcome-file-list>
<!-- Define the basename for a resource bundle for I18N -->
<context-param>
<param-name>
javax.servlet.jsp.jstl.fmt.localizationContext
</param-name>
<param-value>
com.patni.temgt.web.ApplicationResources
</param-value>
</context-param>
<resource-ref>
<description>DB Connection</description>
<res-ref-name>jdbc/SettleTest</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
and struts-config.xml is:
<form-beans>
<form-bean name="timeEntryForm"
type="com.patni.temgt.web.CreateTimeEntryActionForm" />
<form-bean name="expenseEntryForm"
type="com.patni.temgt.web.CreateExpenseEntryActionForm" />
<form-bean name="timeEntryReportForm"
type="com.patni.temgt.web.TimeEntryReportActionForm" />
<form-bean name="adminCostingCodeForm"
type="com.patni.temgt.web.AdminCostingCodeActionForm" />
<form-bean name="loginForm"
type="com.patni.temgt.web.LoginActionForm" />
<form-bean name="adminEnvironmentVariableForm"
type="com.patni.temgt.web.AdminEnvironmentVariableActionForm" />
<form-bean name="adminEmployeeForm"
type="com.patni.temgt.web.AdminEmployeeActionForm" />
<form-bean name="adminContactDetailForm"
type="com.patni.temgt.web.AdminContactDetailActionForm" />
<form-bean name="adminApplicationUserForm"
type="com.patni.temgt.web.AdminApplicationUserActionForm" />
<form-bean name="adminUserRoleForm"
type="com.patni.temgt.web.AdminUserRoleActionForm" />
<form-bean name="myCostingCodeForm"
type="com.patni.temgt.web.MyCostingCodeActionForm" />
</form-beans>
<global-forwards>
<forward name="login" path="/WEB-INF/jsp/login.jsp" />
</global-forwards>
<action-mappings>
<action path="/timeEntry"
type="com.patni.temgt.web.CreateTimeEntryAction"
name="timeEntryForm" scope="session" validate="false"
input="/WEB-INF/jsp/timeEntry.jsp">
<forward name="success" path="/WEB-INF/jsp/timeEntry.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/timeEntry.jsp" />
</action>
<action path="/expenseEntry"
type="com.patni.temgt.web.CreateExpenseEntryAction"
name="expenseEntryForm" scope="session" validate="false"
input="/WEB-INF/jsp/expenseEntry.jsp">
<forward name="success" path="/WEB-INF/jsp/expenseEntry.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/expenseEntry.jsp" />
<forward name="list" path="/WEB-INF/jsp/expenseList.jsp" />
<forward name="approvallist" path="/expenseApproval.htm?action=list" redirect="true" />
</action>
<action path="/expenseApproval"
type="com.patni.temgt.web.ExpenseApprovalAction"
name="expenseEntryForm" scope="session" validate="false"
input="/WEB-INF/jsp/expenseApprovalList.jsp">
<forward name="approvallist" path="/WEB-INF/jsp/expenseApprovalList.jsp" />
</action>
<action path="/adminCostingCode"
type="com.patni.temgt.web.AdminCostingCodeAction"
name="adminCostingCodeForm" scope="session" validate="false"
input="/WEB-INF/jsp/adminCostingCode.jsp">
<forward name="success" path="/WEB-INF/jsp/adminCostingCode.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/adminCostingCode.jsp" />
</action>
<action path="/login"
type="com.patni.temgt.web.LoginAction"
name="loginForm" scope="session" validate="false"
input="/WEB-INF/jsp/login.jsp">
<forward name="mainPage" redirect="true"
path="/settleMain.htm" />
</action>
<action path="/settleMain"
type="com.patni.temgt.web.SettleMainAction">
<forward name="success" path="/WEB-INF/jsp/settleMain.jsp" />
</action>
<action path="/adminEnvironmentVariable"
type="com.patni.temgt.web.AdminEnvironmentVariableAction"
name="adminEnvironmentVariableForm" scope="session"
input="/WEB-INF/jsp/adminEnvironmentVariable.jsp">
<forward name="success"
path="/WEB-INF/jsp/adminEnvironmentVariable.jsp" />
<forward name="invalid"
path="/WEB-INF/jsp/adminEnvironmentVariable.jsp" />
</action>
<action path="/adminEmployee"
type="com.patni.temgt.web.AdminEmployeeAction"
name="adminEmployeeForm" scope="request"
input="/WEB-INF/jsp/adminEmployee.jsp">
<forward name="success" path="/WEB-INF/jsp/adminEmployee.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/adminEmployee.jsp" />
</action>
<action path="/adminContactDetail"
type="com.patni.temgt.web.AdminContactDetailAction"
name="adminContactDetailForm" scope="request"
input="/WEB-INF/jsp/adminContactDetail.jsp">
<forward name="employee" path="/adminEmployee.htm" />
<forward name="company" path="/adminCompany.htm" />
<forward name="success" path="/WEB-INF/jsp/adminContactDetail.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/adminContactDetail.jsp" />
</action>
<action path="/adminApplicationUser"
type="com.patni.temgt.web.AdminApplicationUserAction"
name="adminApplicationUserForm" scope="request"
input="/WEB-INF/jsp/adminApplicationUser.jsp">
<forward name="success" path="/WEB-INF/jsp/adminApplicationUser.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/adminApplicationUser.jsp" />
</action>
<action path="/adminUserRole"
type="com.patni.temgt.web.AdminUserRoleAction"
name="adminUserRoleForm" scope="request"
input="/WEB-INF/jsp/adminUserRole.jsp">
<forward name="success" path="/WEB-INF/jsp/adminUserRole.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/adminUserRole.jsp" />
</action>
<action path="/timeEntryReporting"
type="com.patni.temgt.web.TimeEntryReportAction"
name="timeEntryReportForm" scope="request"
input="/WEB-INF/jsp/timeEntryReporting.jsp">
<forward name="success" path="/WEB-INF/jsp/timeEntryReporting.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/timeEntryReporting.jsp" />
</action>
<action path="/myCostingCodes"
type="com.patni.temgt.web.MyCostingCodeAction"
name="myCostingCodeForm" scope="request"
input="/WEB-INF/jsp/myCostingCodes.jsp" parameter="method">
<forward name="success" path="/WEB-INF/jsp/myCostingCodes.jsp" />
<forward name="invalid" path="/WEB-INF/jsp/myCostingCodes.jsp" />
</action>
</action-mappings>
<controller>
<set-property property="processorClass"
value="org.springframework.web.struts.DelegatingRequestProcessor" />
</controller>
<!-- ========== Message Resources Definitions =========================== -->
<!-- Will look for a properties file
com.patni.temgt.web.ApplicationResources.properties" -->
<message-resources
parameter="com.patni.temgt.web.ApplicationResources" />
<!-- Start the Spring Web Context plugin for Struts -->
<plug-in
className="org.springframework.web.struts.ContextLoaderPlugIn">
<set-property property="contextConfigLocation"
value="/WEB-INF/action-servlet.xml" />
</plug-in>
what could be the reason for this?
It means that the servlet identified by "action" (org.apache.struts.action.ActionServlet) failed to initialize, probably due to a configuration issue or a missing class on the class path.
There should be an exception printed in the console of your application server or in a log file. It probably will indicate what the problem is.