axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: Configuration Question about Changing PORT 6060
Date Tue, 14 Apr 2009 12:51:37 GMT
You are trying to access the TCP transport endpoint using HTTP. That
will not work. Do you want to use HTTP or (raw) TCP?

Andreas

On Tue, Apr 14, 2009 at 14:47, Herndl, Günther
<Guenther.Herndl@softcon.de> wrote:
> Change Port
>
> http://172.27.16.110:9667/axis2/services/Version
>
> Result:
>
> <?xml version="1.0" encoding="utf-8" ?>
> - <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
> - <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
>  <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action>
>  </soapenv:Header>
> - <soapenv:Body>
> - <soapenv:Fault>
>  <faultcode />
>  <faultstring>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected character
'G' (code 71) in prolog; expected '<' at [row,col {unknown-source}]: [1,1]</faultstring>
>  <detail />
>  </soapenv:Fault>
>  </soapenv:Body>
>  </soapenv:Envelope>
>
> -----Ursprüngliche Nachricht-----
> Von: Andreas Veithen [mailto:andreas.veithen@gmail.com]
> Gesendet: Dienstag, 14. April 2009 14:43
> An: axis-user@ws.apache.org
> Betreff: Re: Configuration Question about Changing PORT 6060
>
> Note that you configured the same port number (9666) for HTTP and TCP.
> This will not work.
>
> Andreas
>
> On Tue, Apr 14, 2009 at 14:31, Herndl, Günther <Guenther.Herndl@softcon.de> wrote:
>>
>> Based on given Config-Files. I tried "http://172.27.16.110:9666/axis2/services/Version"
and I get:
>>
>>  <?xml version="1.0" encoding="utf-8" ?>
>> - <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
>> - <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
>>
>> <wsa:Action>http://www.w3.org/2005/08/addressing/soap/fault</wsa:Actio
>> n>
>>  </soapenv:Header>
>> - <soapenv:Body>
>> - <soapenv:Fault>
>>  <faultcode />
>>  <faultstring>com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' (code 71) in prolog; expected '<' at [row,col
>> {unknown-source}]: [1,1]</faultstring>
>>  <detail />
>>  </soapenv:Fault>
>>  </soapenv:Body>
>>  </soapenv:Envelope>
>>
>> And Tomcat shows:
>>
>> INFO: Server startup in 1522 ms
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 71)
in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 71)
in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 71)
in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>> [ERROR] com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G' ( code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>> org.apache.axiom.om.OMException:
>> com.ctc.wstx.exc.WstxUnexpectedCharException: U nexpected character 'G' (code 71)
in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:249)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
>> pe(StAXSOAPModelBuilder.java:156)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
>> ersion(StAXSOAPModelBuilder.java:128)
>>        at
>> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.<init>(StAXSO
>> APModelBuilder.java:93)
>>        at
>> org.apache.axis2.builder.BuilderUtil.getBuilder(BuilderUtil.java:603)
>>
>>        at
>> org.apache.axis2.transport.tcp.TCPWorker.run(TCPWorker.java:84)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.run
>> Worker(ThreadPoolExecutor.java:1061)
>>        at
>> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Wor
>> ker.run(ThreadPoolExecutor.java:575)
>>        at java.lang.Thread.run(Thread.java:619)
>> Caused by: com.ctc.wstx.exc.WstxUnexpectedCharException: Unexpected
>> character 'G ' (code 71) in prolog; expected '<'
>>  at [row,col {unknown-source}]: [1,1]
>>        at com.ctc.wstx.sr.StreamScanner.throwUnexpectedChar(StreamScanner.java:
>> 623)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.nextFromProlog(BasicStreamReader.ja
>> va:2047)
>>        at
>> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1069)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.parserNext(StAXOMBuild
>> er.java:506)
>>        at
>> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.jav
>> a:161)
>>        ... 8 more
>>
>>
>> If I try "http://localhost:6060/axis2/services/Version" I get:
>>
>> <?xml version="1.0" encoding="UTF-8" ?>
>> - <SOAP-ENV:Envelope
>> xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ns1="urn:TCG-TSS">
>> - <SOAP-ENV:Body>
>> - <SOAP-ENV:Fault
>> SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
>>  <faultcode>SOAP-ENV:Client</faultcode>
>>  <faultstring>HTTP GET method not implemented</faultstring>
>>  <SOAP-ENV:Code />
>>  </SOAP-ENV:Fault>
>>  </SOAP-ENV:Body>
>>  </SOAP-ENV:Envelope>
>>
>> What did I wrong?
>>
>> Kind regards
>>
>> Günther Herndl
>> _____________________________________________________
>> Günther Herndl
>> Developer
>> E-Mail: Guenther.Herndl@softcon.de
>> Tel: +49-89-785000-135
>> Fax: +49-89-785000-99
>>
>> SOFTCON IT-Service GmbH
>> Aidenbachstr. 42
>> D-81379 München
>>
>> Geschäftsführer: Brigitte Stuckart
>> Sitz der Gesellschaft: München
>> HRB München 115140
>> USt-ID-Nr. DE185446757
>> _____________________________________________________
>>
>>
>> -----Ursprüngliche Nachricht-----
>> Von: Deepal Jayasinghe [mailto:deepal@opensource.lk]
>> Gesendet: Dienstag, 14. April 2009 14:18
>> An: axis-user@ws.apache.org
>> Betreff: Re: Configuration Question about Changing PORT 6060
>>
>> You can do that by editing axis2.xml, however as I can see you have this problem
in client side.  you might have to create your client with custom axis2.xml.
>>
>> http://today.java.net/pub/a/today/2006/12/13/invoking-web-services-usi
>> ng-apache-axis2.html
>>> Hi,
>>>
>>> I use apache Axis2 on an laptop very succesfull. I tried to migrate
>>> my examples on an IBM ThinkPad. Here I got errormessage and all
>>> services and also the default version Services do not work. The
>>> Problem seems to be that port 6060 is used from IBM's security
>>> software. I tried to configure axis2.conf and apache to user an other port without
success.
>>> What did I wrong?
>>>
>>> Kind Regards
>>>
>>> Günther Herndl
>>> Softcon
>>
>> --
>> Thank you!
>>
>>
>> http://blogs.deepal.org
>> http://deepal.org
>>
>>
>

Mime
View raw message