Both ..On the client console I get :
weblogic.rmi.extensions.RemoteRuntimeException - with nested
exception:
[java.lang.NoClassDefFoundError:
com/nielsenmedia/lrs/cpr/common/CPREnterpriseException]
at
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:13
4)
at
org.apache.axis.encoding.DeserializationContextImpl.endElement(Deserializati
onCo
at
org.apache.xerces.parsers.SAXParser.endElement(SAXParser.java:1403)
at
org.apache.xerces.validators.common.XMLValidator.callEndElement(XMLValidator
.jav
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XM
LDoc
at
org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner.
java
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1081)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at
org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationCon
text
at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:455)
at org.apache.axis.Message.getSOAPEnvelope(Message.java:321)
at org.apache.axis.client.Call.invoke(Call.java:1954)
at org.apache.axis.client.Call.invoke(Call.java:1707)
at org.apache.axis.client.Call.invoke(Call.java:1635)
at org.apache.axis.client.Call.invoke(Call.java:1184)
at TestCprRpcClient.main(TestCprRpcClient.java:36)
[INFO] Call - -Mapping Exception to AxisFault
<weblogic.rmi.extensions.RemoteRuntimeExcepti
on:
[java.lang.NoClassDefFoundError:
com/nielsenmedia/lrs/cpr/common/CPREnterpriseException]>
weblogic.rmi.extensions.RemoteRuntimeException - with nested exception:
[java.lang.NoClassDefFoundError:
com/nielsenmedia/lrs/cpr/common/CPREnterpriseException]
On the server(running Weblogic 6.1) console I get :
weblogic.rmi.extensions.RemoteRuntimeException - with nested exception:
[java.lang.NoClassDefFoundError:
com/nielsenmedia/lrs/cpr/common/CPREnterpriseException]
at weblogic.rmi.internal.ProxyStub.invoke(ProxyStub.java:60)
at $Proxy56.lookup(Unknown Source)
at
weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:323)
at javax.naming.InitialContext.lookup(InitialContext.java:350)
at
org.apache.axis.providers.java.EJBProvider.getEJBHome(EJBProvider.java:300)
at
org.apache.axis.providers.java.EJBProvider.getNewServiceObject(EJBProvider.j
ava:109)
at
org.apache.axis.providers.java.JavaProvider.getServiceObject(JavaProvider.ja
va:126)
at
org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:234)
at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:
71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:154)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:121)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:288)
at
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:576)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:265)
at
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java
:200)
at
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletCo
ntext.java:2456)
at
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java
:2039)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
Thanks again ,
-Cyrus
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 5:35 PM
To: [EMAIL PROTECTED]
Subject: RE: Exposing EJBs as web services...
>From Axis or from the EJB container? If both output are logged at the same
place you might not be able to make the difference.
Thomas
-----Original Message-----
From: Hurst, Cyrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 5:24 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Exposing EJBs as web services...
Thats what I thought but when I only copied Remote and Home interface I
kept getting NoClassDefFoundError on helper classes,
user defined exceptions, etc ...
-Cyrus
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Exposing EJBs as web services...
In the case of a web service implemented using EJBs, the Axis server will
behave as an EJB client. Only the EJB client classes are required for the
web service to work (meaning the Remote and Home interface).
-----Original Message-----
From: Hurst, Cyrus [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 4:59 PM
To: [EMAIL PROTECTED]
Subject: Exposing EJBs as web services...
Hello,
I am trying to expose an existing stateless session bean as a web
service . I
basically followed the example(creating the client and wsdd) given in the
Wrox Axis(pg 255) . The book
says to only copy the Remote and Home interface for the EJB into
axis\WEB-INF\classes\ .
Is this true or do I need to copy all classes the EJB has dependencies on?
Thanks,
-Cyrus