[JBossWS] - Caused by: java.lang.ClassNotFoundException: org.jboss.ws.WS
by marco.ciatti
Hi All,
I'm currently making some tests with
-) jbossws.1.2.1.GA,
-) Java5, Jboss-4.0.5-GA (EJB3 cluster)
using a stateless ejb3 (deployed on Jboss-AS) as Webservice client towards a remote Webservice server based on a Sun SOA platform.
An external standalone-client call an EJB service, using the remote interface of the EJB, and:
-) If the remote webservice is up I have no problem
-) If the webservice is down than I have the exception below.
Of course an exception is expexted but here it seems that the AS is not able to recontruct the org.jboss.ws.WSException class.
Such a class is defined into the jbossws-client.jar and I did some tests putting such jar into the EJB jar or into the EAR, but nothing changed...
Does anybody have an explanation for this ?
Could be a class loader problem, I mean jbossws use a class loader that is different from the one used to load the EJB stuff and the serialized class could not be recontructed into the EJB scope since it has been serialized bu jbossws stuff ?
Thankx,
Marco
Buildfile: D:\develop\wfm\test\fwfaxprx\build.xml
prepare:
tstcompile:
[javac] Compiling 1 source file to D:\develop\wfm\test\fwfaxprx\build\classes
run.client:
[java] The connected device Kind is : FaxServer
[java] Getting a random fax status
[java] Exception in thread "main" java.lang.reflect.UndeclaredThrowableException
[java] at $Proxy0.getItemSts(Unknown Source)
[java] at com.siemens.fw.test.FwFaxPrxTest.main(FwFaxPrxTest.java:30)
[java] Caused by: java.lang.ClassNotFoundException: org.jboss.ws.WSException
[java] at java.net.URLClassLoader$1.run(Unknown Source)
[java] at java.security.AccessController.doPrivileged(Native Method)
[java] at java.net.URLClassLoader.findClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
[java] at java.lang.ClassLoader.loadClass(Unknown Source)
[java] at org.jboss.remoting.loading.RemotingClassLoader.loadClass(RemotingClassLoader.java:50)
[java] at org.jboss.remoting.loading.ObjectInputStreamWithClassLoader.resolveClass(ObjectInputStreamWithClassLoader.java:139)
[java] at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
[java] at java.io.ObjectInputStream.readClassDesc(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
[java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
[java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
[java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
[java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
[java] at java.io.ObjectInputStream.readSerialData(Unknown Source)
[java] at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
[java] at java.io.ObjectInputStream.readObject0(Unknown Source)
[java] at java.io.ObjectInputStream.readObject(Unknown Source)
[java] at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
[java] at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
[java] at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
[java] at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
[java] at org.jboss.remoting.Client.invoke(Client.java:525)
[java] at org.jboss.remoting.Client.invoke(Client.java:488)
[java] at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
[java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
[java] at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
[java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
[java] at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:53)
[java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
[java] at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:77)
[java] at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
[java] at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:102)
[java] ... 2 more
[java] Java Result: 1
BUILD SUCCESSFUL
Total time: 3 seconds
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046234#4046234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046234
18 years, 4 months
[JBossWS] - Re: If I deploy more than one webservice I get
by rickcr
Thanks Heiko for the information. My only question now (and pardon if this is a very 'newbie' question) but what would I set the web context to? In other words, do I need to make sure the various webapp wars that might be in the ear all have web.xml definitions that point to the ejbs so that I can create a context for the ejbs through the web.xml? If so, this seems like a lot of extra work.
I guess I'm just confused how I know what @WebContext to use for the ejbs? I could have several wars that all have their own web context. I would think the ejb context would be independent of those contexts, but just giving it an arbitrary context doesn't help in regard to having the wsdl being located.
If someone could provide a simple example of what to set this @WebContext to I'd appreciate. I'm sure I'm missing something simple.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046133#4046133
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046133
18 years, 4 months
[JBossWS] - Re: WSDL-location help?
by heiko.braun@jboss.com
Taken from the JAX-WS 2.0 specs, section 5.2.5.3:
anonymous wrote :
|
| Use of @WebService(wsdlLocation) and Metadata
|
| There are some restrictions on the packaging of the description and any associated metadata documents.
| The goal of these restrictions is to make it possible to publish an endpoint without forcing a JAX-WS
| implementation to retrieve, store and patch multiple documents from potentially remote sites.
| The value of the wsdlLocation annotation element on an endpoint implementation class, if any, MUST
| be a relative URL. The document it points to MUST be packaged with the application. Moreover, it MUST
| follow the requirements in section 5.2.5.4 below (?Application-specified Service?).
|
|
|
Therefore i don't consider this to be a bug.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046127#4046127
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046127
18 years, 4 months