Hello,  

I'm having an INCREDIBLY annoying problem trying to access an EJB that I've
deployed.  I'd love it if someone could pitch a hand.  Here's the situation
...

Setup:
I'm running JBoss 3 running on JRockit VM.
I'm running Netscape iPlanet-WebServer-Enterprise/4.1SP6 4.1sp6 as the web
server on Sun JVM 1.3.0_02

The Goal:
I've got a jar containing our middle-tier which is linked in by both
Netscape & JBoss.  The jar contains 50+ EJBs and their supporting classes.
This application is currently running on a Borland Inprise appserver and
we're attempting to do a port to JBoss.

The Current Status:
The jar is loaded successfully and all EJBs are deployed and verified by
JBoss.  All 50+ EJBs are appearing in the Agent View (port 8082).  There are
no errors at startup.

The Problem:
However, when we actually attempt to access the EJB (through code proven to
work on WebSphere/Inprise) exceptions are thrown on both the client and
server sides.  

The server side claims to have as a missing class the implementation of the
EJB.  This class in included in the same jar that contains the home
interface, etc. which it has loaded and registered.

Sample 1 below contains the stack trace from the Server side.

On the client side, we're seeing an InvalidClassException caused by
different versions of a class (which is unknown) between the serialization
and deserialization.  I've considered that this could be do to the different
JVMs.  I'm not as concerned about this as with the server-side exception.

Sample 2 below contains the stack trace from the Server side.

Any help you can give me is appreciated!

Thanks,
Michael Kenyon

###################################################################
###                       Sample 1                              ###
###################################################################

2002-07-12 12:41:28,895 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory]
Checking driver for URL: jdbc:oracle:thin:@192.168.0.2:1521:DRPROD
2002-07-12 12:41:28,902 DEBUG
[org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] Driver
already registered for url: jdbc:oracle:thin:@192.168.0.2:1521:DRPROD
2002-07-12 12:41:31,828 ERROR [STDERR] java.lang.ClassNotFoundException:
com.dr.client.basebo.clientbranding.ClientBrandingBaseBOBeanImpl
2002-07-12 12:41:31,879 INFO  [STDOUT] 12:41:31,866 [RMI TCP
Connection(7)-192.168.0.3] ERROR com.ilg.enterprise.bo.BusinessObjectProxy -
server is not available
java.lang.ClassNotFoundException:
com.dr.client.basebo.clientbranding.ClientBrandingBaseBOBeanHome
        at java.lang.Class.forName(Compiled Code)@325e4620
        at
com.ilg.enterprise.bo.BusinessObjectProxy.createBusinessObjectHome(Compiled
Code)@366e7f10
        at
com.dr.client.basebo.clientbranding.ClientBrandingBaseBOProxy.createBusiness
Object(Compiled Code)@353df300
        at
com.dr.client.basebo.clientbranding.ClientBrandingBaseBOProxy.retrieve(Compi
led Code)@353df2c0
        at
com.dr.client.bo.client.ClientBOBeanImpl.getClientBranding(Compiled
Code)@353dede0
        at java.lang.reflect.Method.invoke(Native Method)@3294339e
        at
org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(Compiled
Code)@36741020
        at
org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(Comp
iled Code)@339a7830
        at
org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(Compiled
Code)@3486f3e0
        at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Compiled
Code)@3486d050
        at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Compiled
Code)@3486b340
        at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(Compiled
Code)@3486f1e0
        at org.jboss.ejb.plugins.SecurityInterceptor.invoke(Compiled
Code)@3486f140
        at org.jboss.ejb.plugins.LogInterceptor.invoke(Compiled
Code)@3486ed40
        at org.jboss.ejb.StatelessSessionContainer.invoke(Compiled
Code)@3486ecf0
        at org.jboss.ejb.Container.invoke(Compiled Code)@348634d0
        at org.jboss.mx.server.MBeanServerImpl.invoke(Compiled
Code)@32f04020
        at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(Compiled
Code)@34869f00
        at java.lang.reflect.Method.invoke(Native Method)@3294339e
        at sun.rmi.server.UnicastServerRef.dispatch(Compiled Code)@35513200
        at sun.rmi.transport.Transport$1.run(Compiled Code)@35513060
        at java.security.AccessController.doPrivileged(Native
Method)@328b286c
        at sun.rmi.transport.Transport.serviceCall(Compiled Code)@35510620
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(Compiled
Code)@3551001c
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Compiled
Code)@33fee350
        at java.lang.Thread.run(Compiled Code)@325e3730
        at java.lang.Thread.startThreadFromVM(Compiled Code)@325e35e0
        --- End of stack trace

###################################################################
###                       Sample 2                              ###
###################################################################

[12/Jul/2002:12:41:25] info ( 2224): Internal Info: loading servlet
/index.jsp
[12/Jul/2002:12:41:25] info ( 2224): Internal Info: loading servlet
/dr/index.jsp
[12/Jul/2002:12:41:26] info ( 2224): Internal Info: loading servlet
/dr/content/general/index.jsp
[12/Jul/2002:12:41:32] failure ( 2224): Internal error: exception thrown
from the servlet service function (uri=/dr/content/general/index.jsp):
javax.servlet.ServletException: Error unmarshaling return; nested exception
is: 
        java.io.InvalidClassException: javax.ejb.EJBException; Local class
not compatible: stream classdesc serialVersionUID=796770993296843510 local
class serialVersionUID=-9219910240172116449, Stack:
javax.servlet.ServletException: Error unmarshaling return; nested exception
is: 
        java.io.InvalidClassException: javax.ejb.EJBException; Local class
not compatible: stream classdesc serialVersionUID=796770993296843510 local
class serialVersionUID=-9219910240172116449
        at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:384)
        at
_jsps._dr._content._general._index_jsp._jspService(_index_jsp.java:925)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
        at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:504)
        at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
        at
com.netscape.server.http.servlet.NSRequestDispatcher.include(NSRequestDispat
cher.java:121)
        at
com.ilg.presentation.jsp.servlet.ServletPresentationBean.include(ServletPres
entationBean.java:364)
        at
com.ilg.presentation.jsp.tags.jpca.InsertChildDisplayTag.doEndTag(InsertChil
dDisplayTag.java:148)
        at _jsps._dr._index_jsp._jspService(_index_jsp.java:898)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
        at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:504)
        at
com.netscape.server.http.servlet.NSServletSession.internalRedirect(Native
Method)
        at
com.netscape.server.http.servlet.NSRequestDispatcher.forward(NSRequestDispat
cher.java:73)
        at _index_jsp._jspService(_index_jsp.java:57)
        at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:826)
        at
com.netscape.server.http.servlet.NSServletRunner.Service(NSServletRunner.jav
a:504)

[12/Jul/2002:12:41:32] warning ( 2224): RequestDispatcher: include call
failed


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Gadgets, caffeine, t-shirts, fun stuff.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to