java.lang.RuntimeException: Data binding error

2006-04-24 Thread Ritesh Dubey
Hi,

I am getting a Data Binding error with Axis2 .95 version.
Atached is my wsdl file.
I am using Geronimo1.0/jdk1.4.1/Axis2/ the error is :

run.client:
 [java] logion111
 [java] logion2
 [java] logion333
 [java] Login Method Called
 [java] Login Method ** Create
Client{http://www.example.com/Onl ineBanking}Login
 [java] Login Method ** getOption.set action
 [java] Login Method **
_operationClient.getOptions().setExcepti
onToBeThrownOnSOAPFault(true)
 [java] Login Method ** create SOAP envelope with that
payload
 [java] Login method* Style is Doc.
 [java] Login method*getFactory
 [java] Login method*create message context with that soap
envel ope
 [java] Login method*add the message contxt to the operation
cli ent
 [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault: Data
binding  error; nested exception is:
 [java] java.lang.RuntimeException: Data binding error
 [java] at org.apache.axis2.AxisFault.makeFault(AxisFault.java:267)
 [java] at
com.ibm.axis2.onlinebanking.OnlineBankingPortTypeMessageRecei
verInOut.invokeBusinessLogic(OnlineBankingPortTypeMessageReceiverInOut.java:
297)

 [java] at
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.r
eceive(AbstractInOutSyncMessageReceiver.java:37)
 [java] at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:40
8)
 [java] at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTT
PPostRequest(HTTPTransportUtils.java:288)
 [java] at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServle
t.java:160)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:615)
 [java] at
javax.servlet.http.HttpServlet.service(HttpServlet.java:688)
 [java] at
org.apache.catalina.core.ApplicationFilterChain.internalDoFil
ter(ApplicationFilterChain.java:252)
 [java] at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Appl
icationFilterChain.java:173)
 [java] at
org.apache.catalina.core.StandardWrapperValve.invoke(Standard
WrapperValve.java:213)
 [java] at
org.apache.catalina.core.StandardContextValve.invoke(Standard
ContextValve.java:178)
 [java] at
org.apache.geronimo.tomcat.GeronimoStandardContext$SystemMeth
odValve.invoke(GeronimoStandardContext.java:272)
 [java] at
org.apache.geronimo.tomcat.valve.TransactionContextValve.invo
ke(TransactionContextValve.java:53)
 [java] at
org.apache.geronimo.tomcat.valve.ComponentContextValve.invoke
(ComponentContextValve.java:47)
 [java] at
org.apache.geronimo.tomcat.valve.InstanceContextValve.invoke(
InstanceContextValve.java:60)
 [java] at
org.apache.catalina.core.StandardHostValve.invoke(StandardHos
tValve.java:126)
 [java] at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepor
tValve.java:105)
 [java] at
org.apache.catalina.core.StandardEngineValve.invoke(StandardE
ngineValve.java:107)
 [java] at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogVal
ve.java:526)
 [java] at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAda
pter.java:148)
 [java] at
org.apache.coyote.http11.Http11Processor.process(Http11Proces
sor.java:856)
 [java] at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandl
er.processConnection(Http11Protocol.java:744)
 [java] at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(Pool
TcpEndpoint.java:527)
 [java] at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(L
eaderFollowerWorkerThread.java:80)
 [java] at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadPool.java:684)
 [java] at java.lang.Thread.run(Thread.java:534)
 [java] Caused by: java.lang.RuntimeException: Data binding error
 [java] at
com.ibm.axis2.onlinebanking.OnlineBankingPortTypeMessageRecei
verInOut.fromOM(OnlineBankingPortTypeMessageReceiverInOut.java:1039)
 [java] at
com.ibm.axis2.onlinebanking.OnlineBankingPortTypeMessageRecei
verInOut.invokeBusinessLogic(OnlineBankingPortTypeMessageReceiverInOut.java:
121)

 [java] ... 25 more
 [java] Caused by: java.lang.NullPointerException
 [java] at
org.apache.xmlbeans.impl.store.Cur$CurLoadContext.finish(Cur.
java:3184)
 [java] at
org.apache.xmlbeans.impl.store.Locale.loadXMLStreamReader(Loc
ale.java:1216)
 [java] at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale
.java:843)
 [java] at
org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale
.java:826)
 [java] at
org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(Sc
hemaTypeLoaderBase.java:231)
 [java] at
com.example.www.onlinebanking.xsd.LoginDocument$Factory.parse
(LoginDocument.java:153)
 [java] at
com.ibm.axis2.onlinebanking.OnlineBankingPortType

Re: [axis2 - 0.93] SOAP Fault - ClassCastException

2006-04-24 Thread Eran Chinthaka
Hi George,

Seems you are using a bit "old" version of Axis2.

We deprecated and removed the use of Call class after 0.95 (IIRC). As
Deepal stated can you please check with Axis2 1.0 RC2 and let us know. I
may be able to help you.

Thanks,
Chinthaka

George Papandreou wrote:
> Greetings,
> 
>   I am getting the following exception on reception of a SOAPFault from
> a gSOAP node:
> 
>  _j__ava.lang.ClassCastException_:
> org.apache.axis2.om.impl.llom.OMElementImpl
> 
> at
> org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getDetail(_SOAPFaultImpl.java:133_)
> 
> at
> org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getException(_SOAPFaultImpl.java:141_)
> 
> at
> org.apache.axis2.client.InOutMEPClient.invokeBlocking(_InOutMEPClient.java:161_)
> 
> at org.apache.axis2.client.Call.invokeBlocking(_Call.java:117_) 
> 
>  
> 
> The SOAPFault (intercepted with tcpmon) is:
> 
> 
> 
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:soapenv="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:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> xmlns:hb="urn:heartbeat"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#";
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#";
> xmlns:ns1="http://www.genivia.com/schemas/wssetest.xsd";
> xmlns:PurchaseOrder="http://www.e1.com/PurchaseOrder/ABC";
> xmlns:axis2="http://ws.apache.org/namespaces/axis2";>
> 
> 
> 
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/envelope/";>
> 
> wsse:FailedAuthentication
> 
> The security token could not be authenticated or
> authorized
> 
> FIM credentials check fail
> 
> 
> 
> 
> 
> 
> 
>  Can anyone provide any tips as to how to proceed debugging this?
> 
> Many thanks,
> 
> /geo
> 




signature.asc
Description: OpenPGP digital signature


Re: [axis2 - 0.93] SOAP Fault - ClassCastException

2006-04-24 Thread Deepal Jayasinghe
Hi George;

Can you please try with Axis2 RC2


George Papandreou wrote:

> Greetings,
>
>   I am getting the following exception on reception of a SOAPFault
> from a gSOAP node:
>
>  _j__ava.lang.ClassCastException_:
> org.apache.axis2.om.impl.llom.OMElementImpl
>
> at
> org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getDetail(_SOAPFaultImpl.java:133_)
>
> at
> org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getException(_SOAPFaultImpl.java:141_)
>
> at
> org.apache.axis2.client.InOutMEPClient.invokeBlocking(_InOutMEPClient.java:161_)
>
> at org.apache.axis2.client.Call.invokeBlocking(_Call.java:117_) 
>
>  
>
> The SOAPFault (intercepted with tcpmon) is:
>
> 
>
>  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:soapenv="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:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing";
> xmlns:hb="urn:heartbeat"
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
> xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
> xmlns:c14n="http://www.w3.org/2001/10/xml-exc-c14n#";
> xmlns:ds="http://www.w3.org/2000/09/xmldsig#";
> xmlns:ns1="http://www.genivia.com/schemas/wssetest.xsd";
> xmlns:PurchaseOrder="http://www.e1.com/PurchaseOrder/ABC";
> xmlns:axis2="http://ws.apache.org/namespaces/axis2";>
>
> 
>
>  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/envelope/";>
>
> wsse:FailedAuthentication
>
> The security token could not be authenticated or
> authorized
>
> FIM credentials check fail
>
> 
>
> 
>
> 
>
>  Can anyone provide any tips as to how to proceed debugging this?
>
> Many thanks,
>
> /geo
>

-- 
Thanks,
Deepal

~Future is Open~ 




Re: [Axis2] MTOM sample - faults from server side

2006-04-24 Thread Deepal Jayasinghe
pls create a JIRA

Samisa Abeysinghe wrote:

> Hi,
>I am tyring to get the Axis2/C implementation of MTOM to work with
> Axis2/Java.
>When I send a message with errors, the Java server does not tell me
> anthing on what went wrong.
>It would be helpful if it were to send me a fault. Could someone
> help me to make it throw some fault eaplaining what went wrong.
>
> Thanks,
> Samisa...
>
>

-- 
Thanks,
Deepal

~Future is Open~ 




[Axis2] MTOM sample - faults from server side

2006-04-24 Thread Samisa Abeysinghe

Hi,
   I am tyring to get the Axis2/C implementation of MTOM to work with 
Axis2/Java.
   When I send a message with errors, the Java server does not tell me 
anthing on what went wrong.
   It would be helpful if it were to send me a fault. Could someone 
help me to make it throw some fault eaplaining what went wrong.


Thanks,
Samisa...


Re: WSDL2Java - I must be stupid

2006-04-24 Thread robert lazarski
Yeah, there is a trick here that's explained in the code generation guide ant task section.

http://ws.apache.org/axis2/0_95/CodegenToolReference.html

Add '-d' to the wsdl2java ant task - the docs need to be updated - so that it looks like: 

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

  
  
  
  
  
  
  

  

Now the trick is that a feature of xmlbeans is that it generates a
single class  - which needs to be referenced .  See the 'move
todir'  part of the  task I pasted. 

And that should do it. If you're still let us know. 

HTH,
Robert 
http://www.braziloutsource.com
 On 4/24/06, Cleve OpenSource <[EMAIL PROTECTED]> wrote:
I'm having a really weird problem that i'm sure there is a simple fix for.Using Axis 1, everything is easy.1) I have a WSDL file with the not too complex types section2) I generate my classes from the WSDL file
3) deploy to a server and have a client stub connect through and testthe web service.Using Axis2, everything is supposed to be easy, but is not.  i must bestupid.I keep having the same problem that Ken Campbell reports on 3/4/2006 @
14:45.  No answers were posted to the group.http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/[EMAIL PROTECTED]
ClassPath problems for XMLBeans.  What is strange, is that a simplegoogle search finds people asking the question but with no discernibleanswers coming back.Has anyone run into this problem?
Cheers,Cleve_java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke(Method.java
:585)atorg.apache.axis2.XjmiBookingTest.getTestObject(XjmiBookingTest.java:261)at org.apache.axis2.XjmiBookingTest.testping(XjmiBookingTest.java:200)at sun.reflect.NativeMethodAccessorImpl.invoke0
(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)atsun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at java.lang.reflect.Method.invoke
(Method.java:585)at junit.framework.TestCase.runTest(TestCase.java:164)at junit.framework.TestCase.runBare(TestCase.java:130)at junit.framework.TestResult$1.protect(TestResult.java:110)at junit.framework.TestResult.runProtected
(TestResult.java:128)at junit.framework.TestResult.run(TestResult.java:113)at junit.framework.TestCase.run(TestCase.java:120)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java
:478)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)atorg.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)Caused by: java.lang.ExceptionInInitializerError
atuk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument$Factory.newInstance(PingDocument.java:45)... 19 moreCaused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem.Unable to load class with name
schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder.Make sure the generated binary files are on the classpath.atorg.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java
:781)atuk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument.(PingDocument.java:20)... 20 moreCaused by: java.lang.ClassNotFoundException:schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)at java.security.AccessController.doPrivileged(Native Method)at java.net.URLClassLoader.findClass(URLClassLoader.java:188)at java.lang.ClassLoader.loadClass
(ClassLoader.java:306)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)at java.lang.ClassLoader.loadClass(ClassLoader.java:251)atorg.apache.xmlbeans.XmlBeans.typeSystemForClassLoader
(XmlBeans.java:767)... 21 more


Re: WSDL2Java - I must be stupid

2006-04-24 Thread Davanum Srinivas
- Which version of eclipse?
- Which JDK version?
- Could u please try it from the command line?

thanks,
dims

On 4/24/06, Cleve OpenSource <[EMAIL PROTECTED]> wrote:
>
> I'm having a really weird problem that i'm sure there is a simple fix for.
>
> Using Axis 1, everything is easy.
>
> 1) I have a WSDL file with the not too complex types section
> 2) I generate my classes from the WSDL file
> 3) deploy to a server and have a client stub connect through and test
> the web service.
>
> Using Axis2, everything is supposed to be easy, but is not.  i must be
> stupid.
>
> I keep having the same problem that Ken Campbell reports on 3/4/2006 @
> 14:45.  No answers were posted to the group.
>
> http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/[EMAIL 
> PROTECTED]
>
> ClassPath problems for XMLBeans.  What is strange, is that a simple
> google search finds people asking the question but with no discernible
> answers coming back.
>
> Has anyone run into this problem?
>
> Cheers,
> Cleve
>
>
>
>
>
> _
>
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.apache.axis2.XjmiBookingTest.getTestObject(XjmiBookingTest.java:261)
> at org.apache.axis2.XjmiBookingTest.testping(XjmiBookingTest.java:200)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:585)
> at junit.framework.TestCase.runTest(TestCase.java:164)
> at junit.framework.TestCase.runBare(TestCase.java:130)
> at junit.framework.TestResult$1.protect(TestResult.java:110)
> at junit.framework.TestResult.runProtected(TestResult.java:128)
> at junit.framework.TestResult.run(TestResult.java:113)
> at junit.framework.TestCase.run(TestCase.java:120)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: java.lang.ExceptionInInitializerError
> at
> uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument$Factory.newInstance(PingDocument.java:45)
> ... 19 more
> Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem.
> Unable to load class with name
> schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder.
> Make sure the generated binary files are on the classpath.
> at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:781)
> at
> uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument.(PingDocument.java:20)
> ... 20 more
> Caused by: java.lang.ClassNotFoundException:
> schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:767)
> ... 21 more
>
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


WSDL2Java - I must be stupid

2006-04-24 Thread Cleve OpenSource


I'm having a really weird problem that i'm sure there is a simple fix for.

Using Axis 1, everything is easy. 


1) I have a WSDL file with the not too complex types section
2) I generate my classes from the WSDL file
3) deploy to a server and have a client stub connect through and test 
the web service.


Using Axis2, everything is supposed to be easy, but is not.  i must be 
stupid.


I keep having the same problem that Ken Campbell reports on 3/4/2006 @ 
14:45.  No answers were posted to the group.


http://mail-archives.apache.org/mod_mbox/ws-axis-user/200604.mbox/[EMAIL 
PROTECTED]

ClassPath problems for XMLBeans.  What is strange, is that a simple 
google search finds people asking the question but with no discernible 
answers coming back.


Has anyone run into this problem? 


Cheers,
Cleve





_

java.lang.reflect.InvocationTargetException
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at 
org.apache.axis2.XjmiBookingTest.getTestObject(XjmiBookingTest.java:261)

   at org.apache.axis2.XjmiBookingTest.testping(XjmiBookingTest.java:200)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
   at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

   at java.lang.reflect.Method.invoke(Method.java:585)
   at junit.framework.TestCase.runTest(TestCase.java:164)
   at junit.framework.TestCase.runBare(TestCase.java:130)
   at junit.framework.TestResult$1.protect(TestResult.java:110)
   at junit.framework.TestResult.runProtected(TestResult.java:128)
   at junit.framework.TestResult.run(TestResult.java:113)
   at junit.framework.TestCase.run(TestCase.java:120)
   at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
   at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
   at 
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)

Caused by: java.lang.ExceptionInInitializerError
   at 
uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument$Factory.newInstance(PingDocument.java:45)

   ... 19 more
Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSystem. 
Unable to load class with name 
schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder. 
Make sure the generated binary files are on the classpath.
   at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:781)
   at 
uk.co.groundtransport.xjmi.xjmi.wsdl.booking.PingDocument.(PingDocument.java:20)

   ... 20 more
Caused by: java.lang.ClassNotFoundException: 
schemaorg_apache_xmlbeans.system.s6BC58055D4FA32B2157A35DE55719CF0.TypeSystemHolder

   at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
   at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
   at 
org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBeans.java:767)

   ... 21 more




RE: Trouble running axis2 examples

2006-04-24 Thread Larry Cable
Did you resolve this problem Matt?

-Original Message-
From: Matt L [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 24, 2006 8:27 AM
To: axis-user@ws.apache.org
Subject: Re: Trouble running axis2 examples

Ali,

Thank you for your tip to install ant on the machine and to run the
example client through ant. I have done this, but it still doesn't work.
Please see below. 

As before, I have MyService.aar installed and appearing under the
ListServices page of Tomcat:

/usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/servic
es$
jar tf MyService.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
userguide/
userguide/example1/
userguide/example1/MyService.class

When I run the command you suggested, here's what happens:

~/axis095/dist/samples/userguide$ ant testEchoBlockingClient
Buildfile: build.xml

testEchoBlockingClient:
 [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault:
 userguide.example1.MyService; nested exception is:
 [java] java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 org.apache.axis2.AxisFault.makeFault(AxisFault.java:267)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(
AbstractMessageReceiver.java:59)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationO
bject(AbstractMessageReceiver.java:89)
 [java] at
 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogi
c(RawXMLINOutMessageReceiver.java:73)
 [java] at
 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(Abst
ractInOutSyncMessageReceiver.java:37)
 [java] at
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:408)
 [java] at
 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:288)
 [java] at
 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
 [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 [java] at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
 [java] at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
 [java] at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
 [java] at
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
 [java] at
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
 [java] at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
 [java] at
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
 [java] at
 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
 [java] at
 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86
9)
 [java] at
 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc
essConnection(Http11BaseProtocol.java:664)
 [java] at
 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
 [java] at
 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow
erWorkerThread.java:80)
 [java] at
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:684)
 [java] at java.lang.Thread.run(Thread.java:595)
 [java] Caused by: java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 [java] at java.security.AccessController.doPrivileged(Native
 Method)
 [java] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [java] at
 
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentCl
assLoader.java:123)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 [java] at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 [java] at java.lang.Class.forName0(Native Method)
 [java] at java.lang.Class.forName(Class.java:242)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(
AbstractMessageReceiver.java:51)
 [java] ... 22 more
 [java] ; nested exception is:
 [java] java.lang.Exception: org.apache.axis2.AxisFault:
 userguide.example1.MyService; nested exception is:
 [java] java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 org.apache.axis2.AxisFault.makeFault(AxisFault.java:267)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(
AbstractMessa

Re: Signature Verification Failed with tools

2006-04-24 Thread akkachotu
Hans,

Yes it is typo error. It should read "paste" instead of "page". My
SOAP Message looks like below:

http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd";
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";>
  
 
http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3";
elementEncoding="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary";>MIIB5jCCAU8CBEQyyzkwDQYJKoZIhvcNAQEFBQAwOjELMAkGA1UEBhMCVVMxDTALBgNVBAoTBEFNRVgxDTALBgNVBAsTBEFNRVgxDTALBgNVBAMTBEFNRVgwHhcNMDYwNDA0MTkzODMzWhcNMTYwNDAxMTkzODMzWjA6MQswCQYDVQQGEwJVUzENMAsGA1UEChMEQU1FWDEN88MAsGA1UECxMEQU1FWDENMAsGA1UEAxMEQU1FWDCBnzA4NBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAvIR9CCSkeI1RDCFXoCy42VfESMijYQkIIeqJq+TswZudGL0RFh9p2omm6jWOjng7yaW6AShTn8cHjs1gmWwGhdDuMomrF40KaUqGGmfcWNQ6clNvUBQMY6F3HHB1h2GBDXJ8zZAoZa/Hxn87Ixy+1LtGhj5VidVyVan4TOiSWK8CAwEAATANBgkqhkiG9w0BAQUFAAOBgQAxlLvlav+ynZUx87HuY2ukaK/G+uxBqM21cafj44A5IkkonsOdjkJqzhJz7RaEQZNN0mX78kOXfmYWF1AxODtS+siO6u+gSGQMwIDPNYL6gZ+bzzYBkjgfFQisQ6G1htyhQz3uL34Ki3JYM15As+un4NU4b3Mw/EpCYjGE8FK2fg==
http://www.w3.org/2000/09/xmldsig#";>
   
  http://www.w3.org/TR/2001/REC-xml-c14n-20010315#WithComments"/>
  http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
  
 
http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
 
 http://www.w3.org/2000/09/xmldsig#sha1"/>
 
UvT2HTwYWeQ83Y8exD3Ez51IF/gWk=
  
   
  
j0jH045kcVzVrtn/SjV11orUdbbnZ+xPAfe2ZTeFZeJtDFXjHQkDH2fgY153DtrlAA5FzSw/7
   yU3FqhC8qUXV9DGAuiACMTJfMUWwlX5pWdesEbKTh+niR6O65tCXmY+zHj+k/ghRhZwJc+w9e
   G/BJt2kkB0mBOzw5+qnM/oZEfpw=  
   
  
 http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3"/>
  
   

 
  
  
 http://ws.xe.com/wsdl/GRTrans";>

   ASDF
   ASFSD

 
  


Somehow I feel that the  when it reaches the provider
from the XMLSPLY is different from the  that is there
in my standalone java program. May be when I copy meesage from the
standlone and paste in XMLSPY it is getting formatted somehow and the
new formatted request is sent to provider which eventually fails. I am
not sure and dont know whether this is the correct way of testing.

Please let me know your ideas :-)


[axis2 - 0.93] SOAP Fault - ClassCastException

2006-04-24 Thread George Papandreou




Greetings,
  I 
am getting the following exception on reception of a SOAPFault from a gSOAP 
node:
 java.lang.ClassCastException: org.apache.axis2.om.impl.llom.OMElementImpl
at 
org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getDetail(SOAPFaultImpl.java:133)
at 
org.apache.axis2.soap.impl.llom.SOAPFaultImpl.getException(SOAPFaultImpl.java:141)
at 
org.apache.axis2.client.InOutMEPClient.invokeBlocking(InOutMEPClient.java:161)
at org.apache.axis2.client.Call.invokeBlocking(Call.java:117) 
 
The SOAPFault (intercepted with tcpmon) 
is:




wsse:FailedAuthenticationfaultcode>
The security 
token could not be authenticated or authorizedfaultstring>
FIM 
credentials check failSOAP-ENV:Detail>
SOAP-ENV:Fault>
SOAP-ENV:Body>
SOAP-ENV:Envelope>
 Can anyone provide any tips as to how to proceed debugging 
this?
Many 
thanks,
/geo


RE: [axis2] wrong number of arguments fault

2006-04-24 Thread Kane, David








Folks,

 

I tried again with 1.0 RC1 instead of 0.95, and I basically
get the same error, although with a subtly different stack trace:

 

Exception in thread "main"
org.apache.axis2.AxisFault: Illegal argument invoking
'gov.nih.nci.lmp.gominer.webservice.GOMinerWS.getReport([Ljava.lang.String;,
[Ljava.lang.String;, java.lang.String, java.lang.String, java.lang.String,
boolean, boolean, boolean)': wrong number of arguments

   
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:275)

   
at org.apache.axis2.GOMinerWSPortTypeStub.getReport(GOMinerWSStub.java:133)

   
at Demo.main(Demo.java:29)

 

Any suggestions about what might be going wrong?

 



Dave







From: Kane, David [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 06, 2006
2:37 PM
To: axis-user@ws.apache.org
Subject: [axis2] wrong number of
arguments fault



 

Folks,

 

I am using axis2 (build 95) to create a client for an
existing web service.  I am getting the following error, but I do not know
why the generated client is passing the wrong number of arguments.  Anyone
have any suggestions about what the problem might be or how to work around it?

 

Thanks!

 

Here are the details.

 

Here is the exception that I am getting:

 

Exception in thread "main"
org.apache.axis2.AxisFault: Illegal argument invoking
'gov.nih.nci.lmp.gominer.webservice.GOMinerWS.getReport([Ljava.lang.String;,
[Ljava.lang.String;, java.lang.String, java.lang.String, java.lang.String,
boolean, boolean, boolean)': wrong number of arguments

   
at
org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:291)

   
at org.apache.axis2.GOMinerWSPortTypeStub.getReport(GOMinerWSPortTypeStub.java:114)

   
at Demo.main(Demo.java:29)

 

The WSDL for the service: http://discover.nci.nih.gov/gominer/xfire/GMService?wsdl

 

My Demonstration program that can create the error:

 

import java.io.*;

import java.util.*;

import org.w3c.dom.*;

import org.apache.axis2.*;

 

public class Demo {

 

    public static
void main(String[] args) throws Exception {

   
GOMinerWSPortTypeStub goMinerStub = new GOMinerWSPortTypeStub();

 

   
final String[] totals = new String[]{"BAD", "TP53"};

   
final String[] changed = new String[]{"BAD", "TP53"};

   
final String organism = "9606;10090";

   
final String dataSource = "all";

   
final String evidence = "all";

   
final GOMinerWSPortTypeStub.GetReport requestParams = new
GOMinerWSPortTypeStub.GetReport();

   
final GOMinerWSPortTypeStub.ArrayOfString ta = new
GOMinerWSPortTypeStub.ArrayOfString();

   
ta.setString(totals);

   
final GOMinerWSPortTypeStub.ArrayOfString ca = new
GOMinerWSPortTypeStub.ArrayOfString();

   
ca.setString(changed);

   
requestParams.setIn0(ta);

   
requestParams.setIn1(ca);

   
requestParams.setIn2(organism);

   
requestParams.setIn3(dataSource);

   
requestParams.setIn4(evidence);

   
requestParams.setIn5(true);

   
requestParams.setIn6(true);

   
requestParams.setIn7(true);

   
GOMinerWSPortTypeStub.GetReportResponse data =
"">

   
System.out.println(data.getOut());  

    }

}

 

Command used to generate the client:

../devEnv/axis2-std-0/bin/WSDL2Java.sh
-o . -t false -uri http://discover.nci.nih.gov/gominer/xfire/GMService?wsdl

 

tcpmon log from a second run:

Sent:

POST /gominer/xfire/GMService
HTTP/1.1

User-Agent: Axis/2.0

SOAPAction: 

Host: discover.nci.nih.gov:8081

Transfer-Encoding: chunked

Content-Type: text/xml;
charset=UTF-8

 

120

true

0

 

Received:

HTTP/1.1 500 Internal Server Error

Date: Thu, 06 Apr 2006 18:30:02 GMT

Server: Apache

Content-Type: text/xml;charset=UTF-8

Connection: close

Transfer-Encoding: chunked

 

22f

ServerIllegal
argument invoking
'gov.nih.nci.lmp.gominer.webservice.GOMinerWS.getReport([Ljava.lang.String;,
[Ljava.lang.String;, java.lang.String, java.lang.String, java.lang.String,
boolean, boolean, boolean)': wrong number of
arguments

0

 

Command used to invoke the demo code:

dkane$ java -cp
build/lib/GOMinerWS-test-client.jar:../devEnv/axis2-std-0/lib/XmlSchema-SNAPSHOT.jar:../devEnv/axis2-std-0/lib/axis2-kernel-0.95.jar:../devEnv/axis2-std-0/lib/jaxen-1.1-beta-7.jar:../devEnv/axis2-std-0/lib/stax-api-1.0.jar:../devEnv/axis2-std-0/lib/annogen-0.1.0.jar:../devEnv/axis2-std-0/lib/backport-util-concurrent-2.0_01_pd.jar:../devEnv/axis2-std-0/lib/jaxme2-0.5.1.jar:../devEnv/axis2-std-0/lib/wstx-asl-2.8.2.jar:../devEnv/axis2-std-0/lib/axiom-api-0.95.jar:../devEnv/axis2-std-0/lib/commons-codec-1.3.jar:../devEnv/axis2-std-0/lib/jaxmejs-0.5.1.jar:../devEnv/axis2-std-0/lib/xbean-2.1.0.jar:../devEnv/axis2-std-0/lib/axiom-impl-0.95.jar:../devEnv/axis2-std-0/lib/commons-httpclient-3.0.jar:../devEnv/axis2-std-0/lib/jaxmexs-0.5.1.jar:../devEnv/axis2-std-0/lib/xercesImpl-2.7.1.jar:../devEnv/axis2-std-0/lib/axis-wsdl4j-1.2.jar:../devEnv/axis2-std-0/lib/common

How can I publish my web service?

2006-04-24 Thread rafiqy
Hi All,

Can someone please advice me how to publish my Web Service, I have created
WSDL file ...I have a test client program, and successully invoked my
services using the stub classes. I am doing this a final year project, I
have my presentation next week and thought it would be great if I can
demonstrate my service as registered with a UDDI and my Client program
looks for this service via UDDI 

Please advice, thanx


yasmin




Classpath of handlers?

2006-04-24 Thread Hernan Bay Area

Hello,

Where should I copy my handler-specific classes so
they can be loaded by the handlers?

Let me explain: Right now, I am using the WSS4J
handler. I copied the wss4j.jar file under
$CATALINA_BASE/webapps/axis/WEB-INF/lib and it's 
working fine.

To verify digital signatures, the WSS4J handler loads
a class that comes included in the wss4j.jar. You can
also configure the handler to load some other class if
you want to tweak the behavior of the digital sig
verification.

So, I wrote and compiled a class "mySigVerifier.class"
and copied it under
$CATALINA_BASE/webapps/axis/WEB-INF/classes.
Re-started Tomcat, re-deployed the application.

But now, I am getting errors "java.lang.RuntimeError:
mySigVerifier not found". So it seems that
...WEB-INF/classes is not included in the CLASSPATH
seen by the Axis handlers.

Where else can I copy this class so that the Axis
handlers can load it? Oh, and this class should be
able to load other classes from the axis handlers in
turn. Any ideas?

Thanks in advance,

Hernan


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


AW: [Axis2][0.95] error when creating two times ServiceClient without a service

2006-04-24 Thread Andreas Bobek
Here it is

http://issues.apache.org/jira/browse/AXIS2-610

Andreas.

> -Ursprüngliche Nachricht-
> Von: Davanum Srinivas [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 24. April 2006 20:59
> An: axis-user@ws.apache.org
> Betreff: Re: [Axis2][0.95] error when creating two times 
> ServiceClient without a service
> 
> Andreas,
> 
> Could u please log a bug report?
> 
> thanks,
> dims
> 
> On 4/24/06, Andreas Bobek <[EMAIL PROTECTED]> wrote:
> > Hi,
> >
> > I found out that when creating a ServiceClient with the same 
> > configuration context and a null service causes an 
> exception at the second time:
> >
> > ..
> > ServiceClient client1 = new ServiceClient(confCtxt, null); // ok ..
> > ServiceClient client2 = new ServiceClient(confCtxt, null); 
> // throws 
> > Exception
> >
> >
> > Maybe this is intended by you?
> >
> > Up to now I see two possibilities to avoid this exception:
> > 1.) Reusing the client.
> > 2.) Check whether an anonymous service was already created 
> and let the 
> > ServiceClient create one (if missed):
> > ServiceClient client = null;
> > AxisService anonymousService =
> > 
> confCtxt.getAxisConfiguration().getService(ServiceClient.ANON_SERVICE)
> > ;
> > if(anonymousService == null){
> > client = new ServiceClient(confCtxt, null); } else{
> > client = new ServiceClient(confCtxt, anonymousService); }
> >
> > I suppose it to be a bug?
> >
> > Regards, Andreas Bobek.
> >
> >
> 
> 
> --
> Davanum Srinivas : http://wso2.com/blogs/



Re: [Axis2][0.95] error when creating two times ServiceClient without a service

2006-04-24 Thread Davanum Srinivas
Andreas,

Could u please log a bug report?

thanks,
dims

On 4/24/06, Andreas Bobek <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I found out that when creating a ServiceClient with the same configuration
> context and a null service causes an exception at the second time:
>
> ..
> ServiceClient client1 = new ServiceClient(confCtxt, null); // ok
> ..
> ServiceClient client2 = new ServiceClient(confCtxt, null); // throws
> Exception
>
>
> Maybe this is intended by you?
>
> Up to now I see two possibilities to avoid this exception:
> 1.) Reusing the client.
> 2.) Check whether an anonymous service was already created and let the
> ServiceClient create one (if missed):
> ServiceClient client = null;
> AxisService anonymousService =
> confCtxt.getAxisConfiguration().getService(ServiceClient.ANON_SERVICE);
> if(anonymousService == null){
> client = new ServiceClient(confCtxt, null);
> }
> else{
> client = new ServiceClient(confCtxt, anonymousService);
> }
>
> I suppose it to be a bug?
>
> Regards, Andreas Bobek.
>
>


--
Davanum Srinivas : http://wso2.com/blogs/


[Axis2] Sandesha2 1.0-RC1 release

2006-04-24 Thread Chamikara Jayalath
Hi All,


Sandesha2 1.0-RC1 release artifacts are available at the location
http://people.apache.org/~chamikara/sandesha2/1.0-RC1/

This release should be used with the Axis2 1.0-RC2 distribution which is available in
http://people.apache.org/~deepal/axis2/1.0-RC2/.

Features of this release include.

1.  Support for WS-ReliableMessaging in both client side and
server side of Axis2. (according the the WS-ReliableMessaging
specification February 2005).

2. Pluggable storage framework.

3. Configurable delivery assurances. In-order exactly once delivery
assurance is guaranteed. Users can also instruct the system to stop
ordering (this will give a higher performance).

4. Support for both SOAP 1.1 and 1.2.

5. Mechanisms to support WS-ReliableMessaging policy assertions in both server side and the client side.

6. Improved client API, which provides features for both general and advance users.

7. Sandesha Report functionality to get status information on Sandesha2 system and its sequences.

8. SandeshaListner feature to get informed when specific events happen
(for example when a fault is retrieved or when a sequence times out).

9. Support for the WSRM specification being developed under OASIS WSRX technical committee.

10. Test cases to test RM scenarios.

11. Documentation


Please use this release and send your comments to sandesha-dev@ws.apache.org
We hope to do the Sandesha2 1.0 release soon

Thank you,
Sandesha2 team





[Axis2][0.95] error when creating two times ServiceClient without a service

2006-04-24 Thread Andreas Bobek
Hi,

I found out that when creating a ServiceClient with the same configuration
context and a null service causes an exception at the second time:

..
ServiceClient client1 = new ServiceClient(confCtxt, null); // ok
..
ServiceClient client2 = new ServiceClient(confCtxt, null); // throws
Exception


Maybe this is intended by you?

Up to now I see two possibilities to avoid this exception:
1.) Reusing the client.
2.) Check whether an anonymous service was already created and let the
ServiceClient create one (if missed):
ServiceClient client = null;
AxisService anonymousService =
confCtxt.getAxisConfiguration().getService(ServiceClient.ANON_SERVICE);
if(anonymousService == null){
client = new ServiceClient(confCtxt, null);
}
else{
client = new ServiceClient(confCtxt, anonymousService);
}

I suppose it to be a bug?

Regards, Andreas Bobek.



CalClient problem: Classpath

2006-04-24 Thread Askar Zaidi
Hi,

When I try to run the CalClient example, I get the following exception:

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/axis/utils/Options
    at samples.userguide.example2.CalcClient.main(CalcClient.java:29)

If this is a CLASSPATH trouble, please tell me how to solve this. 

I have set AXIS_HOME and AXIS_LIB.

this is my directory structure:

/home/tintin/apache/
/home/tintin/axis/

PLEASE ! this is urgent !!-- thanks,Askar


Re: Trouble running axis2 examples

2006-04-24 Thread Matt L
Ali,

Thank you for your tip to install ant on the machine and to run the
example client through ant. I have done this, but it still doesn't work.
Please see below. 

As before, I have MyService.aar installed and appearing under the
ListServices page of Tomcat:

/usr/local/webservices/apache-tomcat-5.5.16/webapps/axis2/WEB-INF/services$
jar tf MyService.aar
META-INF/
META-INF/MANIFEST.MF
META-INF/services.xml
userguide/
userguide/example1/
userguide/example1/MyService.class

When I run the command you suggested, here's what happens:

~/axis095/dist/samples/userguide$ ant testEchoBlockingClient
Buildfile: build.xml

testEchoBlockingClient:
 [java] org.apache.axis2.AxisFault: org.apache.axis2.AxisFault:
 userguide.example1.MyService; nested exception is:
 [java] java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 org.apache.axis2.AxisFault.makeFault(AxisFault.java:267)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:59)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.java:89)
 [java] at
 
org.apache.axis2.receivers.RawXMLINOutMessageReceiver.invokeBusinessLogic(RawXMLINOutMessageReceiver.java:73)
 [java] at
 
org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.receive(AbstractInOutSyncMessageReceiver.java:37)
 [java] at
 org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:408)
 [java] at
 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:288)
 [java] at
 org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:160)
 [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
 [java] at
 javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 [java] at
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
 [java] at
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
 [java] at
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 [java] at
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
 [java] at
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
 [java] at
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
 [java] at
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
 [java] at
 org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
 [java] at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
 [java] at
 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
 [java] at
 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
 [java] at
 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
 [java] at
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
 [java] at java.lang.Thread.run(Thread.java:595)
 [java] Caused by: java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 java.net.URLClassLoader$1.run(URLClassLoader.java:200)
 [java] at java.security.AccessController.doPrivileged(Native
 Method)
 [java] at
 java.net.URLClassLoader.findClass(URLClassLoader.java:188)
 [java] at
 
org.apache.axis2.deployment.DeploymentClassLoader.findClass(DeploymentClassLoader.java:123)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
 [java] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 [java] at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
 [java] at java.lang.Class.forName0(Native Method)
 [java] at java.lang.Class.forName(Class.java:242)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:51)
 [java] ... 22 more
 [java] ; nested exception is:
 [java] java.lang.Exception: org.apache.axis2.AxisFault:
 userguide.example1.MyService; nested exception is:
 [java] java.lang.ClassNotFoundException:
 userguide.example1.MyService
 [java] at
 org.apache.axis2.AxisFault.makeFault(AxisFault.java:267)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.makeNewServiceObject(AbstractMessageReceiver.java:59)
 [java] at
 
org.apache.axis2.receivers.AbstractMessageReceiver.getTheImplementationObject(AbstractMessageReceiver.jav

Re: [axis2] version 0.95-snapshot WSA Action allways null

2006-04-24 Thread donnerdrummel2000-mailing
I tryed this as well, but it won't work anyway.

Ted
--- Eran Chinthaka <[EMAIL PROTECTED]> schrieb:

> In Axis2-0.95-SNAPHOT, just try
> options.setAction("urn:anyAction").
> 
> Anyway, in the current versions, both the methods
> are collapsed to one.
> 
> -- Chinthaka
> 
> [EMAIL PROTECTED] wrote:
> > Hi,
> > 
> > trying to use
> Options.setSoapAction("urn:anyAction")
> > followed by an ServiceClient.engageModule() to
> engage
> > Addressing allways lead to:
> > 
> >  org.apache.axis2.AxisFault: Operation Not found
> EPR
> > is
> >
>
http://localhost:8081/axis2_I2/services/PersistenceService
> > and WSA Action = null
> > at org.apache.axis2...
> > 
> > and WSA-Tags are not delivered in SOAP-Message.
> > 
> > So, please tell me where is my fault in handling
> > Actions via axis2-0.95-snapshot and wsaddressing.
> > 
> > Thanks Ted
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >
>
___
> 
> > Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher
> kostenlos - Hier anmelden: http://mail.yahoo.de
> > 
> 
> 
> 







___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de


Re: [axis2] version 0.95-snapshot WSA Action allways null

2006-04-24 Thread Eran Chinthaka
In Axis2-0.95-SNAPHOT, just try options.setAction("urn:anyAction").

Anyway, in the current versions, both the methods are collapsed to one.

-- Chinthaka

[EMAIL PROTECTED] wrote:
> Hi,
> 
> trying to use Options.setSoapAction("urn:anyAction")
> followed by an ServiceClient.engageModule() to engage
> Addressing allways lead to:
> 
>  org.apache.axis2.AxisFault: Operation Not found EPR
> is
> http://localhost:8081/axis2_I2/services/PersistenceService
> and WSA Action = null
>   at org.apache.axis2...
> 
> and WSA-Tags are not delivered in SOAP-Message.
> 
> So, please tell me where is my fault in handling
> Actions via axis2-0.95-snapshot and wsaddressing.
> 
> Thanks Ted
> 
> 
> 
> 
>   
> 
>   
>   
> ___ 
> Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: 
> http://mail.yahoo.de
> 




signature.asc
Description: OpenPGP digital signature


Re: where is wsdlFile in Axis2

2006-04-24 Thread cleve oss
thanks robert.  exactly what i needed.
 
On 24/04/06, robert lazarski <[EMAIL PROTECTED]> wrote:



Hi Cleve, welcome to axis2 .  First of, take a llok at the migration guide as it may help. 
http://ws.apache.org/axis2/0_95/migration.htmlAll you need to do is put the wsdl file in the META-INF of your AAR. Then click: 
http://localhost:8080/axis2/services/MyService?wsdlThis is a good article explaining the wsdl  placement  and is a good article in general for starting out. 
http://www.developer.com/open/article.php/10930_3589126_1HTH,Roberthttp://www.braziloutsource.com/


On 4/24/06, cleve oss <[EMAIL PROTECTED]
> wrote: 


 
Hi,
 
I'm an Axis 1 guy, migrating to Axis 2.  Inside the wsdd, there is a very useful tag  that instructed Axis to deliver back to the client the wsdl that we hand-crafted, instead of its generated version. 

 
How do I do this in Axis 2?
 
Cheers,

Cleve


Re: where is wsdlFile in Axis2

2006-04-24 Thread robert lazarski

Hi Cleve, welcome to axis2 . 




First of, take a llok at the migration guide as it may help. 

http://ws.apache.org/axis2/0_95/migration.html

All you need to do is put the wsdl file in the META-INF of your AAR. Then click: 

http://localhost:8080/axis2/services/MyService?wsdl

This is a good article explaining the wsdl  placement  and is a good article in general for starting out. 

http://www.developer.com/open/article.php/10930_3589126_1

HTH,
Robert
http://www.braziloutsource.com/
 On 4/24/06, cleve oss <[EMAIL PROTECTED]> wrote:
 
Hi,
 
I'm an Axis 1 guy, migrating to Axis 2.  Inside the wsdd,
there is a very useful tag  that instructed Axis to
deliver back to the client the wsdl that we hand-crafted, instead of
its generated version.

 
How do I do this in Axis 2?
 
Cheers,
Cleve




where is wsdlFile in Axis2

2006-04-24 Thread cleve oss
 
Hi,
 
I'm an Axis 1 guy, migrating to Axis 2.  Inside the wsdd, there is a very useful tag  that instructed Axis to deliver back to the client the wsdl that we hand-crafted, instead of its generated version.

 
How do I do this in Axis 2?
 
Cheers,
Cleve


[axis2] version 0.95-snapshot WSA Action allways null

2006-04-24 Thread donnerdrummel2000-mailing
Hi,

trying to use Options.setSoapAction("urn:anyAction")
followed by an ServiceClient.engageModule() to engage
Addressing allways lead to:

 org.apache.axis2.AxisFault: Operation Not found EPR
is
http://localhost:8081/axis2_I2/services/PersistenceService
and WSA Action = null
at org.apache.axis2...

and WSA-Tags are not delivered in SOAP-Message.

So, please tell me where is my fault in handling
Actions via axis2-0.95-snapshot and wsaddressing.

Thanks Ted








___ 
Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: 
http://mail.yahoo.de


Re: [AXIS2] WSDL2Java doesn't generate WSDL's method in stub.

2006-04-24 Thread Kensky Schulz

Thanks for reply. I will try this approach.


On 4/23/06, Anne Thomas Manes <[EMAIL PROTECTED]> wrote:

Is your goal to create an OUT only interface? That's not supported by SOAP
1.1. If you have no input, you still need to define an input message that
has no parts. (Or even better, define an input message that has an empty
element called getAllDocs.) Also, you must remove the namespace attribute
from the  definition.

Anne


On 4/21/06, kensky <[EMAIL PROTECTED]> wrote:
>
> I have tried to generate java code from wsdl2java tool. But the code it
> generates doesn't create a method which is specified in wsdl. My WSDL is
> simple enough there is a method getAllDocs() which returns array type.  I
> dont know whats the problem, may be its a problem with wsdl or there is a
> bug in axis2.
>
> The wsdl source code is pasted below
>
> 
> http://www.example.org/is";
>
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
> xmlns:wsdl=" http://schemas.xmlsoap.org/wsdl/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> targetNamespace=" http://www.example.org/is";>
> 
> 
>  targetNamespace="
http://www.example.org/is";
>
xmlns="http://www.w3.org/2001/XMLSchema";>
>
> 
> 
>
> 
> 
type="tns:ArrayOfResourcesType" />
> 
> 
> 
maxOccurs="unbounded" />
> 
> 
>
> 
> 
>
>
> 
> 
>
> 
>  element="tns:ArrayOfResources" />
> 
>
>
> 
> 
>
> 
>
> 
> 
> 
>
>
>  type="tns:ResourceDiscovery">
>  transport="
http://schemas.xmlsoap.org/soap/http"; />
>
> 
> 
soapAction="http://www.example.org/is/getAllDocs"; />
> 
> 
namespace="http://www.example.org/is"; />
> 
> 
> 
> 
> 
> 
binding="tns:ResourceDiscoverySoapBinding">
> 
location="http://localhost:8080/axis/services/InfotelService";
/>
> 
> 
>
> 
>
> Thanks in advance.
> --
> View this message in context:
http://www.nabble.com/-AXIS2-WSDL2Java-doesn%27t-generate-WSDL%27s-method-in-stub.-t1489825.html#a4036973
> Sent from the Axis - User forum at Nabble.com.
>
>




RE: Cannot use Security module

2006-04-24 Thread nono At wanadoo
Oh great
I test it . It works fine
Thanks for your fast answer
And congratulations to all contributors. Axis2 is really a very nice piece
of software 

-Message d'origine-
De : Ruchith Fernando [mailto:[EMAIL PROTECTED] 
Envoyé : lundi 24 avril 2006 11:27
À : axis-user@ws.apache.org
Objet : Re: Cannot use Security module

Hi,

This problem is fixed in the latest SVN and in the RC2 release.

Can you please try using the latest SVN or the Axis2-1.0-RC2: ( You can use
download the axis2.war and the axis2-std-1.0-RC2-bin.zip from here: [1] and
security and addressing modules are available here:
[2] )

Thanks,
Ruchith


[1] http://people.apache.org/~deepal/axis2/1.0-RC2/
[2] http://people.apache.org/~deepal/maven/ws/axis2/mars/

On 4/24/06, nono At wanadoo <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi to all
>
> I desesperatly try to use the security module but I can't
>
> i use the axis2 files from the svn repository
>
> I use the samples\security example . I follow all the instructions in 
> the readme file but it fails
>
> the two problems are the following
>
> 1/ the axis2.conf in the client_repo is not used by the client 
> (according to the docs a default axis2.xml should be used but I don't 
> know where it is) the soap message is sent to the server but security 
> headers are missing and the server rejects the message because of this
>
> 2/ if I modify the Client (the modifed file is joined to this mail) to 
> force it to use the axis2 file I got another error :
>
> ant securitySample give the following logs
>
> Buildfile: build.xml
>
> securitySample:
> log4j:WARN No appenders could be found for logger 
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
>   org.apache.axis2.phaseresolver.PhaseException: Invalid phases please 
> recheck axis2.xml PreDispatch for the handler AddressingFinalInHandler
>  at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>  at
>
org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:1
28)
>  at
>
org.apache.axis2.description.AxisService.engageModule(AxisService.java:361)
>  at
>
org.apache.axis2.description.AxisServiceGroup.engageModule(AxisServiceGroup.
java:139)
>  at
>
org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.
java:188)
>  at
>
org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:
159)
>  at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:90)
>  at sample.security.Client.main(Client.java:49)
>
> If somebody could help me it would be very nice
>
> Thanks in advance
>
> Bruno Ricci
>

---
Wanadoo vous informe que cet  e-mail a ete controle par l'anti-virus mail. 
Aucun virus connu a ce jour par nos services n'a ete detecte.






Re: Cannot use Security module

2006-04-24 Thread Ruchith Fernando
Hi,

This problem is fixed in the latest SVN and in the RC2 release.

Can you please try using the latest SVN or the Axis2-1.0-RC2: (
You can use download the axis2.war and the axis2-std-1.0-RC2-bin.zip
from here: [1] and security and addressing modules are available here:
[2] )

Thanks,
Ruchith


[1] http://people.apache.org/~deepal/axis2/1.0-RC2/
[2] http://people.apache.org/~deepal/maven/ws/axis2/mars/

On 4/24/06, nono At wanadoo <[EMAIL PROTECTED]> wrote:
>
>
>
>
> Hi to all
>
> I desesperatly try to use the security module but I can't
>
> i use the axis2 files from the svn repository
>
> I use the samples\security example . I follow all the instructions in the
> readme file but it fails
>
> the two problems are the following
>
> 1/ the axis2.conf in the client_repo is not used by the client (according to
> the docs a default axis2.xml should be used but
> I don't know where it is)
> the soap message is sent to the server but security headers are missing and
> the server rejects the message because of this
>
> 2/ if I modify the Client (the modifed file is joined to this mail) to force
> it to use the axis2 file I got another error :
>
> ant securitySample give the following logs
>
> Buildfile: build.xml
>
> securitySample:
> log4j:WARN No appenders could be found for logger
> (org.apache.axiom.om.impl.builder.StAXOMBuilder).
> log4j:WARN Please initialize the log4j system properly.
>   org.apache.axis2.phaseresolver.PhaseException: Invalid
> phases please recheck axis2.xml PreDispatch for the handler
> AddressingFinalInHandler
>  at
> org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66)
>  at
> org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128)
>  at
> org.apache.axis2.description.AxisService.engageModule(AxisService.java:361)
>  at
> org.apache.axis2.description.AxisServiceGroup.engageModule(AxisServiceGroup.java:139)
>  at
> org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:188)
>  at
> org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:159)
>  at
> org.apache.axis2.client.ServiceClient.(ServiceClient.java:90)
>  at sample.security.Client.main(Client.java:49)
>
> If somebody could help me it would be very nice
>
> Thanks in advance
>
> Bruno Ricci
>


Cannot use Security module

2006-04-24 Thread nono At wanadoo



 


Hi to 
all
 
I desesperatly try 
to use the security module but I can't 
 
i use the axis2 
files from the svn repository
 
I use the 
samples\security example . I follow all the instructions in the readme file but 
it fails
 
the two problems are 
the following
 
1/ the axis2.conf in 
the client_repo is not used by the client (according to the docs a default 
axis2.xml should be used but
I don't know where 
it is)
the soap message is 
sent to the server but security headers are missing and the server rejects the 
message because of this
 
2/ if I modify 
the Client (the modifed file is joined to this mail) to force it to use the 
axis2 file I got another error :
 
ant securitySample 
give the following logs
 
Buildfile: 
build.xml
 
securitySample:log4j:WARN No appenders could be 
found for logger (org.apache.axiom.om.impl.builder.StAXOMBuilder).log4j:WARN 
Please initialize the log4j system properly.  org.apache.axis2.phaseresolver.PhaseException: 
Invalid phases please recheck axis2.xml PreDispatch for the handler 
AddressingFinalInHandler at 
org.apache.axis2.phaseresolver.PhaseHolder.addHandler(PhaseHolder.java:66) 
at 
org.apache.axis2.description.AxisOperation.engageModule(AxisOperation.java:128) 
at 
org.apache.axis2.description.AxisService.engageModule(AxisService.java:361) 
at 
org.apache.axis2.description.AxisServiceGroup.engageModule(AxisServiceGroup.java:139) 
at 
org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:188) 
at 
org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:159) 
at 
org.apache.axis2.client.ServiceClient.(ServiceClient.java:90) 
at sample.security.Client.main(Client.java:49)
 
If somebody could 
help me it would be very nice
 
Thanks in 
advance
 
Bruno 
Ricci


Client.java
Description: Binary data











  
Timestamp Signature Encrypt
alice
sample.security.PWCallback
sec.properties
SKIKeyIdentifier
SKIKeyIdentifier
bob
{Element}{http://www.w3.org/2005/08/addressing}To;{Element}{http://www.w3.org/2005/08/addressing}ReplyTo;{Element}{http://www.w3.org/2005/08/addressing}MessageID;
{Element}{http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd}Timestamp

//xenc:EncryptedData/xenc:CipherData/xenc:CipherValue
  



  
Timestamp Signature Encrypt
sample.security.PWCallback
sec.properties
  







true
false
true




admin
axis2









http://www.w3.org/2004/08/wsdl/in-only";
 class="org.apache.axis2.receivers.RawXMLINOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
 class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>





6060






6061













HTTP/1.1
chunked


HTTP/1.1
chunked






















































beanMapping

2006-04-24 Thread Recep Ayaz
Hello,


I have a main java class for  xml
parameter. This main class using other my java class for parameter.For example OTA_AirAvailRQ
is my main class and  it is using POS_Type
java class. 





public class OTA_AirAvailRQ 
implements java.io.Serializable {    /* Point of sale
object. */    private
otapax.base.POS_Type POS;}





Have i implement bean mapping for POS_Type java class in
wsdd file ? And how ?



Thanks for interestingRecep Ayaz

 

 

This is my wsdd file:

http://xml.apache.org/axis/wsdd/"
xmlns:java="http://xml.apache.org/axis/wsdd/providers/java" 



 
xmlns:ozgur="http://www.hititcs.com/ozgur"
xmlns:reg="http://www.soapinterop.org/Registry">