wsdl version 2.0 at dynamic deployment

2009-06-02 Thread Christian Lumper
Hello,

does anybody know how to change the wsdl version from 1.1 to 2.0 using
the following dynamic deployment!?
(Need the wsdl 2.0 for compatibility with a certain parser.)


ConfigurationContextFactory.createConfigurationContextFromFileSystem("/path/to/my/axis2.xml",null);

AxisService service =
AxisService.createService(myClass.getClass().getName(),
context.getAxisConfiguration());

context.getAxisConfiguration().addService(service);

SimpleHTTPServer server = new SimpleHTTPServer(context, 8080);
server.start();



The WSDL 2.0 file it self is printable with the following command:
service.printWSDL2(System.out);

I can't find the position/file where I have to set the version for the
deployment, whether it's the axis config or a method at the service object.



Hopefully someone can help me.

Thanks!


Greets Christian







Question about "Undeclared namespace prefix "SOAP_ENV" Exception.

2009-06-02 Thread Duygu
Hi,

I will be very happy if you can help me.

In my application I use the web servise client of a platform. Wsdl style was
rpc/encoded. I converted the style of wsdl from rpc/encoded to
document/literal. Then I used axis2 to generate java codes.
When I call login method of the wsdl I get the
"org.apache.axiom.om.OMException: com.ctc.wstx.exc.WstxParsingException:
Undeclared namespace prefix "SOAP_ENV"" error.
The generated SOAP message is (with the help of debug mode I copied the
message) :


http://schemas.xmlsoap.org/soap/envelope/";>
 

 
creprov
 ChangeMe

 


Can you help me? What is the problem?

Kind Regards.


-- 
Duygu Taylan


ClassCastException when enabling MTOM

2009-06-02 Thread Julien HENRY
Hi everybody,

When I try to enable MTOM for handling big attachments, I receive the following 
error when using the generated client stub:

java.lang.ClassCastException: 
org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to 
org.apache.axiom.om.impl.llom.OMStAXWrapper
at 
com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
at 
com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
at 
com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)

I'm using Axis2 1.4.1 with following Maven dependencies:

   
org.apache.axis2
axis2-kernel
1.4.1


org.apache.axis2
axis2-adb
1.4.1


org.apache.ws.commons.axiom
axiom-api
1.2.8


org.apache.ws.commons.axiom
axiom-impl
1.2.8


wsdl4j
wsdl4j
1.6.2


Any idea of what is the issue?

Thanks

Julien



  

Re: ClassCastException when enabling MTOM

2009-06-02 Thread Andreas Veithen
Julien,

Can you check if the problem disappears if you set the log level for
org.apache.axiom to something higher than DEBUG?

Andreas

PS: If that question sounds strange to you, please have a look at the
code in OMElementImpl#getXMLStreamReader; you will understand...

On Tue, Jun 2, 2009 at 14:04, Julien HENRY  wrote:
> Hi everybody,
>
> When I try to enable MTOM for handling big attachments, I receive the
> following error when using the generated client stub:
>
> java.lang.ClassCastException:
> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to
> org.apache.axiom.om.impl.llom.OMStAXWrapper
>     at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
>     at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
>     at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)
>
> I'm using Axis2 1.4.1 with following Maven dependencies:
>
>    
>     org.apache.axis2
>     axis2-kernel
>     1.4.1
>     
>     
>     org.apache.axis2
>     axis2-adb
>     1.4.1
>     
>     
>     org.apache.ws.commons.axiom
>     axiom-api
>     1.2.8
>     
>     
>     org.apache.ws.commons.axiom
>     axiom-impl
>     1.2.8
>     
>     
>     wsdl4j
>     wsdl4j
>     1.6.2
>     
>
> Any idea of what is the issue?
>
> Thanks
>
> Julien
>
>


Error running the Axis2 server

2009-06-02 Thread K JOSHI

Hi,

   I was able to install Axis 2-1.4 on a Linux server. But I am unable to
start the server. I get the following error. I have confirmed that the jaxws
jar files are available in Axis' lib folder. I also ran 'setenv.sh ' in the
bin directory  and copied these to the JDK lib directory with no success. 
   Any suggestions ?

regards,
Karuna

 Using AXIS2_HOME:   /home/kjoshi1/axis2-1.4.1
 Using JAVA_HOME:   /usr/local/jdk1.5.0_06
[INFO] [SimpleAxisServer] Starting
[INFO] [SimpleAxisServer] Using the Axis2
Repository/home/kjoshi1/axis2-1.4.1/repository
[SimpleAxisServer] Using the Axis2
Repository/home/kjoshi1/axis2-1.4.1/repository
[SimpleAxisServer] Using the Axis2 Configuration
File/home/kjoshi1/axis2-1.4.1/conf/axis2.xml
[FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
java.lang.NoClassDefFoundError: while resolving class:
org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator
   at java.lang.VMClassLoader.transformException(java.lang.Class,
java.lang.Throwable) (/usr/lib64/libgcj.so.6.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/lib64/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.6.0.0)
   at java.lang.Class.newInstance() (/usr/lib64/libgcj.so.6.0.0)
   at
org.apache.axis2.deployment.AxisConfigBuilder.processThreadContextMigrators(org.apache.axis2.engine.AxisConfiguration,
org.apache.axiom.om.OMElement) (Unknown Source)
   at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig()
(Unknown Source)
   at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(java.io.InputStream)
(Unknown Source)
   at
org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration()
(Unknown Source)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(org.apache.axis2.engine.AxisConfigurator)
(Unknown Source)
   at
org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(java.lang.String,
java.lang.String) (Unknown Source)
   at
org.apache.axis2.transport.SimpleAxis2Server.SimpleAxis2Server(java.lang.String,
java.lang.String) (Unknown Source)
   at org.apache.axis2.transport.SimpleAxis2Server.main(java.lang.String[])
(Unknown Source)
   at .main (/usr/lib64/libgij.so.6.0.0)
   at .__libc_start_main (/lib64/libc-2.3.5.so)
@
-- 
View this message in context: 
http://www.nabble.com/Error-running-the-Axis2-server-tp23832893p23832893.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Error running the Axis2 server

2009-06-02 Thread Sagara Gunathunga
Hi Karuna,
Seems like this is related to GCJ runtime that is available as the
default JVM of your system. I'm not familiar abut  GCJ compatibility
with  Axis2, may be some one else share his insights, meanwhile you
can try for this as a quick solution ,check your PATH env-variable and
remove those GCJ stuff from PATH and CLASSPATH ( Since you are using
jdk1.5.0_06 in JAVA_HOME) . HTH


Thanks ,

On Tue, Jun 2, 2009 at 7:19 PM, K JOSHI  wrote:
>
> Hi,
>
>   I was able to install Axis 2-1.4 on a Linux server. But I am unable to
> start the server. I get the following error. I have confirmed that the jaxws
> jar files are available in Axis' lib folder. I also ran 'setenv.sh ' in the
> bin directory  and copied these to the JDK lib directory with no success.
>   Any suggestions ?
>
> regards,
> Karuna
>
>  Using AXIS2_HOME:   /home/kjoshi1/axis2-1.4.1
>  Using JAVA_HOME:       /usr/local/jdk1.5.0_06
> [INFO] [SimpleAxisServer] Starting
> [INFO] [SimpleAxisServer] Using the Axis2
> Repository/home/kjoshi1/axis2-1.4.1/repository
> [SimpleAxisServer] Using the Axis2
> Repository/home/kjoshi1/axis2-1.4.1/repository
> [SimpleAxisServer] Using the Axis2 Configuration
> File/home/kjoshi1/axis2-1.4.1/conf/axis2.xml
> [FATAL] [SimpleAxisServer] Shutting down. Error starting SimpleAxisServer
> java.lang.NoClassDefFoundError: while resolving class:
> org.apache.axis2.jaxws.addressing.migrator.EndpointContextMapMigrator
>   at java.lang.VMClassLoader.transformException(java.lang.Class,
> java.lang.Throwable) (/usr/lib64/libgcj.so.6.0.0)
>   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
> (/usr/lib64/libgcj.so.6.0.0)
>   at java.lang.Class.initializeClass() (/usr/lib64/libgcj.so.6.0.0)
>   at java.lang.Class.newInstance() (/usr/lib64/libgcj.so.6.0.0)
>   at
> org.apache.axis2.deployment.AxisConfigBuilder.processThreadContextMigrators(org.apache.axis2.engine.AxisConfiguration,
> org.apache.axiom.om.OMElement) (Unknown Source)
>   at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig()
> (Unknown Source)
>   at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(java.io.InputStream)
> (Unknown Source)
>   at
> org.apache.axis2.deployment.FileSystemConfigurator.getAxisConfiguration()
> (Unknown Source)
>   at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContext(org.apache.axis2.engine.AxisConfigurator)
> (Unknown Source)
>   at
> org.apache.axis2.context.ConfigurationContextFactory.createConfigurationContextFromFileSystem(java.lang.String,
> java.lang.String) (Unknown Source)
>   at
> org.apache.axis2.transport.SimpleAxis2Server.SimpleAxis2Server(java.lang.String,
> java.lang.String) (Unknown Source)
>   at org.apache.axis2.transport.SimpleAxis2Server.main(java.lang.String[])
> (Unknown Source)
>   at .main (/usr/lib64/libgij.so.6.0.0)
>   at .__libc_start_main (/lib64/libc-2.3.5.so)
> @
> --
> View this message in context: 
> http://www.nabble.com/Error-running-the-Axis2-server-tp23832893p23832893.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Re : ClassCastException when enabling MTOM

2009-06-02 Thread Julien HENRY
Hi Andreas,

Thanks for the tip. It works fine with log level > DEBUG.

FYI I have tested with Axis2 1.5 and we still have the classcast exception when 
running in debug mode.

Should I open a JIRA issue for tracking?

Thanks,

Julien





De : Andreas Veithen 
À : axis-user@ws.apache.org
Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s
Objet : Re: ClassCastException when enabling MTOM

Julien,

Can you check if the problem disappears if you set the log level for
org.apache.axiom to something higher than DEBUG?

Andreas

PS: If that question sounds strange to you, please have a look at the
code in OMElementImpl#getXMLStreamReader; you will understand...

On Tue, Jun 2, 2009 at 14:04, Julien HENRY  wrote:
> Hi everybody,
>
> When I try to enable MTOM for handling big attachments, I receive the
> following error when using the generated client stub:
>
> java.lang.ClassCastException:
> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to
> org.apache.axiom.om.impl.llom.OMStAXWrapper
> at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
> at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
> at
> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)
>
> I'm using Axis2 1.4.1 with following Maven dependencies:
>
>
> org.apache.axis2
> axis2-kernel
> 1.4.1
> 
> 
> org.apache.axis2
> axis2-adb
> 1.4.1
> 
> 
> org.apache.ws.commons.axiom
> axiom-api
> 1.2.8
> 
> 
> org.apache.ws.commons.axiom
> axiom-impl
> 1.2.8
> 
> 
> wsdl4j
> wsdl4j
> 1.6.2
> 
>
> Any idea of what is the issue?
>
> Thanks
>
> Julien
>
>



  

Re: Re : ClassCastException when enabling MTOM

2009-06-02 Thread Andreas Veithen
Yes, please go ahead an open a JIRA issue.

BTW, I have a pretty clear idea where the problem is located. It's in
the stylesheet used by codegen for ADB. Are you motivated to help us
to fix it and test the change?

Andreas

On Tue, Jun 2, 2009 at 17:14, Julien HENRY  wrote:
> Hi Andreas,
>
> Thanks for the tip. It works fine with log level > DEBUG.
>
> FYI I have tested with Axis2 1.5 and we still have the classcast exception
> when running in debug mode.
>
> Should I open a JIRA issue for tracking?
>
> Thanks,
>
> Julien
>
> 
> De : Andreas Veithen 
> À : axis-user@ws.apache.org
> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s
> Objet : Re: ClassCastException when enabling MTOM
>
> Julien,
>
> Can you check if the problem disappears if you set the log level for
> org.apache.axiom to something higher than DEBUG?
>
> Andreas
>
> PS: If that question sounds strange to you, please have a look at the
> code in OMElementImpl#getXMLStreamReader; you will understand...
>
> On Tue, Jun 2, 2009 at 14:04, Julien HENRY  wrote:
>> Hi everybody,
>>
>> When I try to enable MTOM for handling big attachments, I receive the
>> following error when using the generated client stub:
>>
>> java.lang.ClassCastException:
>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to
>> org.apache.axiom.om.impl.llom.OMStAXWrapper
>>     at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
>>     at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
>>     at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)
>>
>> I'm using Axis2 1.4.1 with following Maven dependencies:
>>
>>    
>>     org.apache.axis2
>>     axis2-kernel
>>     1.4.1
>>     
>>     
>>     org.apache.axis2
>>     axis2-adb
>>     1.4.1
>>     
>>     
>>     org.apache.ws.commons.axiom
>>     axiom-api
>>     1.2.8
>>     
>>     
>>     org.apache.ws.commons.axiom
>>     axiom-impl
>>     1.2.8
>>     
>>     
>>     wsdl4j
>>     wsdl4j
>>     1.6.2
>>     
>>
>> Any idea of what is the issue?
>>
>> Thanks
>>
>> Julien
>>
>>
>
>


Re : Re : ClassCastException when enabling MTOM

2009-06-02 Thread Julien HENRY
Done: AXIS2-4363

I can definitly help. Let me know what you need.

Regards,

Julien





De : Andreas Veithen 
À : axis-user@ws.apache.org
Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s
Objet : Re: Re : ClassCastException when enabling MTOM

Yes, please go ahead an open a JIRA issue.

BTW, I have a pretty clear idea where the problem is located. It's in
the stylesheet used by codegen for ADB. Are you motivated to help us
to fix it and test the change?

Andreas

On Tue, Jun 2, 2009 at 17:14, Julien HENRY  wrote:
> Hi Andreas,
>
> Thanks for the tip. It works fine with log level > DEBUG.
>
> FYI I have tested with Axis2 1.5 and we still have the classcast exception
> when running in debug mode.
>
> Should I open a JIRA issue for tracking?
>
> Thanks,
>
> Julien
>
> 
> De : Andreas Veithen 
> À : axis-user@ws.apache.org
> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s
> Objet : Re: ClassCastException when enabling MTOM
>
> Julien,
>
> Can you check if the problem disappears if you set the log level for
> org.apache.axiom to something higher than DEBUG?
>
> Andreas
>
> PS: If that question sounds strange to you, please have a look at the
> code in OMElementImpl#getXMLStreamReader; you will understand...
>
> On Tue, Jun 2, 2009 at 14:04, Julien HENRY  wrote:
>> Hi everybody,
>>
>> When I try to enable MTOM for handling big attachments, I receive the
>> following error when using the generated client stub:
>>
>> java.lang.ClassCastException:
>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to
>> org.apache.axiom.om.impl.llom.OMStAXWrapper
>> at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
>> at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
>> at
>>
>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)
>>
>> I'm using Axis2 1.4.1 with following Maven dependencies:
>>
>>
>> org.apache.axis2
>> axis2-kernel
>> 1.4.1
>> 
>> 
>> org.apache.axis2
>> axis2-adb
>> 1.4.1
>> 
>> 
>> org.apache.ws.commons.axiom
>> axiom-api
>> 1.2.8
>> 
>> 
>> org.apache.ws.commons.axiom
>> axiom-impl
>> 1.2.8
>> 
>> 
>> wsdl4j
>> wsdl4j
>> 1.6.2
>> 
>>
>> Any idea of what is the issue?
>>
>> Thanks
>>
>> Julien
>>
>>
>
>



  

Connection reset when calling service from Tomcat

2009-06-02 Thread Andy Gasser
I apologize if I posted this more than once, I accidentally tried to post
before confirming my subscription.

I have an Axis2 web service that is calling another Axis2 web service
on a separate server via a client proxy. I'm running using the Axis2
web app in Tomcat on both servers. To make this easier let's say
service A calls service B. Periodically SocketExceptions are being
thrown in service A while calling Service B indicating that the
connection was reset. Looking at the stack trace I can see that Axis2
is in the BStub.fromOM method calling service B.

We didn't have this problem when in development and we have since gone
to production, making it harder to troubleshoot. Service A is writing
an exception trace to the Tomcat log, but Service B is not. I think
the issue is that the client proxy is not waiting long enough for the
response, but I'm shooting in the dark.

Since we are in production a code change is more difficult to deploy,
so changing configuration is preferred. I tried adding these
parameters in the axis.xml file under the http transportSender to set
the timeout to 10 minutes, but it didn't fix the problem:
    60
    60

It's my understanding that the transportSender settings should affect
the defaults for the call from service A to service B so I don't have
to configure the client in code, but it really isn't clear to me. If
you have any suggestions or can point me to some documentation this is
more complete than
http://ws.apache.org/axis2/1_4_1/http-transport.html I would
appreciate it!


org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a different document than the one that created it

2009-06-02 Thread Paul S
Hi 

I am doing a wsdl2java using eclipse and trying to execute a method on the web 
service and I am geetting the following error. The WS that i am trying to 
access is http://www.weather.gov/forecasts/xml/DWMLgen/wsdl/ndfdXML.wsdl


Exception

Exception : org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a 
different document than the one that created it.
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: org.w3c.dom.DOMException: WRONG_DOCUMENT_ERR: A node is used in a 
different document than the one that created it.
 faultActor: 
 faultNode: 
 faultDetail: 
{http://xml.apache.org/axis/}stackTrace:org.w3c.dom.DOMException: 
WRONG_DOCUMENT_ERR: A node is used in a different document than the one that 
created it.
at org.apache.xerces.dom.ParentNode.internalInsertBefore(Unknown Source)
at org.apache.xerces.dom.ParentNode.insertBefore(Unknown Source)
at org.apache.xerces.dom.NodeImpl.appendChild(Unknown Source)
at 
org.apache.axis.message.SOAPFaultBuilder.onEndChild(SOAPFaultBuilder.java:305)
at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1090)
at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)
at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)
at org.apache.axis.client.Call.invokeEngine(Call.java:2784)
at org.apache.axis.client.Call.invoke(Call.java:2767)
at org.apache.axis.client.Call.invoke(Call.java:2443)
at org.apache.axis.client.Call.invoke(Call.java:2366)
at org.apache.axis.client.Call.invoke(Call.java:1812)
at 
gov.weather.www.forecasts.xml.DWMLgen.wsdl.ndfdXML_wsdl.NdfdXMLBindingStub.NDFDgenByDay(NdfdXMLBindingStub.java:662)
at 
gov.weather.www.forecasts.xml.DWMLgen.wsdl.ndfdXML_wsdl.NdfdXMLPortTypeProxy.NDFDgenByDay(NdfdXMLPortTypeProxy.java:110)
at org.test.Test.main(Test.java:47)


Any help would be great.

Paul


  

Re: Connection reset when calling service from Tomcat

2009-06-02 Thread Andy Gasser
As an update, I added the code to set the timeout using
options.setTimeOutInMilliSeconds on the client. I don't think we're
seeing the error as often now, but we're still getting it.


On Tue, Jun 2, 2009 at 11:12 AM, Andy Gasser  wrote:
> I apologize if I posted this more than once, I accidentally tried to post
> before confirming my subscription.
>
> I have an Axis2 web service that is calling another Axis2 web service
> on a separate server via a client proxy. I'm running using the Axis2
> web app in Tomcat on both servers. To make this easier let's say
> service A calls service B. Periodically SocketExceptions are being
> thrown in service A while calling Service B indicating that the
> connection was reset. Looking at the stack trace I can see that Axis2
> is in the BStub.fromOM method calling service B.
>
> We didn't have this problem when in development and we have since gone
> to production, making it harder to troubleshoot. Service A is writing
> an exception trace to the Tomcat log, but Service B is not. I think
> the issue is that the client proxy is not waiting long enough for the
> response, but I'm shooting in the dark.
>
> Since we are in production a code change is more difficult to deploy,
> so changing configuration is preferred. I tried adding these
> parameters in the axis.xml file under the http transportSender to set
> the timeout to 10 minutes, but it didn't fix the problem:
>     60
>     60
>
> It's my understanding that the transportSender settings should affect
> the defaults for the call from service A to service B so I don't have
> to configure the client in code, but it really isn't clear to me. If
> you have any suggestions or can point me to some documentation this is
> more complete than
> http://ws.apache.org/axis2/1_4_1/http-transport.html I would
> appreciate it!
>


Re: Re : Re : ClassCastException when enabling MTOM

2009-06-02 Thread Andreas Veithen
Julien,

I added an analysis of the problem the the JIRA issue. If you feel
confident enough, then you can try do the required changes and submit
a patch.

Andreas

On Tue, Jun 2, 2009 at 18:06, Julien HENRY  wrote:
> Done: AXIS2-4363
>
> I can definitly help. Let me know what you need.
>
> Regards,
>
> Julien
>
> 
> De : Andreas Veithen 
> À : axis-user@ws.apache.org
> Envoyé le : Mardi, 2 Juin 2009, 17h30mn 16s
> Objet : Re: Re : ClassCastException when enabling MTOM
>
> Yes, please go ahead an open a JIRA issue.
>
> BTW, I have a pretty clear idea where the problem is located. It's in
> the stylesheet used by codegen for ADB. Are you motivated to help us
> to fix it and test the change?
>
> Andreas
>
> On Tue, Jun 2, 2009 at 17:14, Julien HENRY  wrote:
>> Hi Andreas,
>>
>> Thanks for the tip. It works fine with log level > DEBUG.
>>
>> FYI I have tested with Axis2 1.5 and we still have the classcast exception
>> when running in debug mode.
>>
>> Should I open a JIRA issue for tracking?
>>
>> Thanks,
>>
>> Julien
>>
>> 
>> De : Andreas Veithen 
>> À : axis-user@ws.apache.org
>> Envoyé le : Mardi, 2 Juin 2009, 14h13mn 47s
>> Objet : Re: ClassCastException when enabling MTOM
>>
>> Julien,
>>
>> Can you check if the problem disappears if you set the log level for
>> org.apache.axiom to something higher than DEBUG?
>>
>> Andreas
>>
>> PS: If that question sounds strange to you, please have a look at the
>> code in OMElementImpl#getXMLStreamReader; you will understand...
>>
>> On Tue, Jun 2, 2009 at 14:04, Julien HENRY  wrote:
>>> Hi everybody,
>>>
>>> When I try to enable MTOM for handling big attachments, I receive the
>>> following error when using the generated client stub:
>>>
>>> java.lang.ClassCastException:
>>> org.apache.axiom.om.util.OMXMLStreamReaderValidator cannot be cast to
>>> org.apache.axiom.om.impl.llom.OMStAXWrapper
>>>     at
>>>
>>>
>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$XXXBundleType$Factory.parse(Vault_WebServiceStub.java:21236)
>>>     at
>>>
>>>
>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub$DownloadXXXResponse$Factory.parse(Vault_WebServiceStub.java:56454)
>>>     at
>>>
>>>
>>> com.xxx.vaultwebservice.client.Vault_WebServiceStub.fromOM(Vault_WebServiceStub.java:64390)
>>>
>>> I'm using Axis2 1.4.1 with following Maven dependencies:
>>>
>>>    
>>>     org.apache.axis2
>>>     axis2-kernel
>>>     1.4.1
>>>     
>>>     
>>>     org.apache.axis2
>>>     axis2-adb
>>>     1.4.1
>>>     
>>>     
>>>     org.apache.ws.commons.axiom
>>>     axiom-api
>>>     1.2.8
>>>     
>>>     
>>>     org.apache.ws.commons.axiom
>>>     axiom-impl
>>>     1.2.8
>>>     
>>>     
>>>     wsdl4j
>>>     wsdl4j
>>>     1.6.2
>>>     
>>>
>>> Any idea of what is the issue?
>>>
>>> Thanks
>>>
>>> Julien
>>>
>>>
>>
>>
>
>


OpenVMS Axis2 port difference?

2009-06-02 Thread Shasta Willson
I have some web service classes written and packaged into .jars on a
Vista box.  Copied those .jar files up to an OpenVMS server with the
Axis2 port installed and classpath set to point at the relevant
lib/*.jar files.

When I run the code on Vista it's fine, but on OpenVMS I get this error:

Exception in thread "main" java.lang.NoSuchMethodError:
org.redacted.MyStub.addAnonymousOperations()V

(Including the V at the end -- not sure what that means?)

addAnonymousOperations() is defined in org.apache.Axis2.client.Stub.
I looked at the Axis2 API
(http://www.docjar.com/docs/api/org/apache/axis2/client/Stub.html#addAnonymousOperations)
and confirmed that, and I also used Eclipse to poke at the code and
wound up with the same conclusion.  Next I tracked down the likely
.jar file and confirmed that it's on the classpath and present.  So
then I wrote a jartester class to see what it looked like:
-
import java.lang.reflect.Method;

public class JarTester {

public static void main(String [] args)
throws java.lang.ClassNotFoundException, java.lang.NoSuchMethodException
{
Class obj =  Class.forName("org.apache.axis2.client.Stub");
Method [] methods = obj.getDeclaredMethods();
for (int i=0;i