(Sorry if this is a duplicate.)
Make sure that everything is deployed into the WEB-INF/lib directory,
specifically, your remote interfaces. Then put all of these explicitly
in the classpath in run.bat. There are problems with class loader
integration at this point, and the things in WEB-INF/lib are not loaded
properly. This may also go for WEB-INF/classes.
I was getting the same thing until I did this. The class cast exception
is due to the fact that two different class loaders loaded the class, so
the cast won't work. RMI is trying to be helpful by loading the class
remotely.
Hope this helps.
> -----Original Message-----
> From: Richard Backhouse [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 6:50 PM
> To: jBoss
> Subject: Re: [jBoss-User] Problems with Tomcat Integration Module
>
>
> No I don't have j2ee.jar in my classpath. I have never
> installed it on this pc. I repeat this only started
> happenning since 10/4. I currently have two jboss builds on
> my box. One from 10/4 and one from 10/13. I have the
> same app, same tomcat and the 10/4 works, the 10/13 doesn't.
> I have tried a number of builds since 10/4 all with the
> same results. Therefore something has changed in jboss. I
> haven't been able to figure out what that is yet but I
> would like some help.
>
> Richard Backhouse
>
> Aaron Mulder wrote:
>
> > The first problem is because you have the j2ee.jar
> from Sun's J2EE
> > RI on your classpath. Try removing it. Not sure about the second.
> >
> > Aaron
> >
> > On Mon, 16 Oct 2000, Richard Backhouse wrote:
> > > Well, I've had no luck hunting either of these down. The
> > > UndeclaredThrowableException is especially worrying as I
> cannot deploy
> > > my app with tomcat integrated in jboss. I have tried with the
> > > EmbeddedTomcatService module too and got the same results.
> > >
> > > Richard Backhouse
> > > Oak Grove Software
> > >
> > > Richard Backhouse wrote:
> > > >
> > > > I'm currently seeing two problems with the Tomcat
> Integration Module
> > > > (specifically with Tomcat 3.2 Betas) :
> > > >
> > > > 1. Since the 10/4 cvs source tree I have had problems
> getting the
> > > > InitialContext in my client app. I always get the
> following stack .
> > > >
> > > > java.lang.ClassCastException
> > > > at
> > > >
> com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narro
> w(Unknown
> > > > Source)
> > > > at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
> > > > at
> > > >
> com.ogs.timesheet.jspbean.LogonAction.createSessionBean(LogonA
> ction.java:75)
> > > >
> > > > at
> com.ogs.timesheet.jspbean.LogonAction.perform(LogonAction.java:52)
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.processActionInstance(A
> ctionServlet.java:794)
> > > >
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:702)
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:332)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> > > >
> > > > at org.apache.tomcat.core.Handler.service(Handler.java:263)
> > > > at
> > > >
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> > > > at
> > > >
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:749)
> > > >
> > > > at
> > > >
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> > > > at
> > > >
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:207)
> > > >
> > > > at
> > > >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:403)
> > > >
> > > > at
> > > >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> > > >
> > > > at java.lang.Thread.run(Unknown Source)
> > > >
> > > > It seems the addition of the
> > > > <RequestInterceptor
> > > >
> className="org.apache.tomcat.request.Jdk12Interceptor"
> > > > debug="0"/>
> > > > in the tomcat server.xml doesn't seem to work any more.
> Builds prior to
> > > > 10/4 work fine. I noticed other people seeing this also
> but have yet to
> > > > see any resolution.
> > > >
> > > > 2. When I run tomcat in the same vm as JBoss it seems
> that I can't throw
> > > > Bean defined exceptions. I get the following exception :
> > > >
> > > > java.lang.reflect.UndeclaredThrowableException:
> > > > com.ogs.timesheet.session.TSSessionException: Failed to Create a
> > > > Timesheet
> > > > at
> > > >
> com.ogs.timesheet.session.TSSessionBean.createTimesheet(TSSess
> ionBean.java:124)
> > > >
> > > > at java.lang.reflect.Method.invoke(Native Method)
> > > > at
> > > >
> org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.in
> voke(StatefulSessionContainer.java:564)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInter
> ceptor.java:140)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invok
> e(StatefulSessionInstanceInterceptor.java:168)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercepto
> rCMT.java:133)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> nterceptorCMT.java:254)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT
> .java:99)
> > > > at
> org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:185)
> > > >
> > > > at
> > > >
> org.jboss.ejb.StatefulSessionContainer.invoke(StatefulSessionC
> ontainer.java:320)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(
> JRMPContainerInvoker.java:222)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(
> JRMPContainerInvoker.java:187)
> > > >
> > > > at
> > > >
> org.jboss.ejb.plugins.jrmp.interfaces.StatefulSessionProxy.inv
> oke(StatefulSessionProxy.java:162)
> > > >
> > > > at $Proxy18.createTimesheet(Unknown Source)
> > > > at
> > > >
> com.ogs.timesheet.jspbean.TSSelectAction.perform(TSSelectActio
> n.java:65)
> > > >
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.processActionInstance(A
> ctionServlet.java:794)
> > > >
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.process(ActionServlet.java:702)
> > > > at
> > > >
> org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:332)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > at
> > > >
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper
> .java:387)
> > > >
> > > > at org.apache.tomcat.core.Handler.service(Handler.java:263)
> > > > at
> > > >
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:371)
> > > > at
> > > >
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:749)
> > > >
> > > > at
> > > >
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> > > > at
> > > >
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpConnectionHandler.java:207)
> > > >
> > > > at
> > > >
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoin
> t.java:403)
> > > >
> > > > at
> > > >
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPo
> ol.java:498)
> > > >
> > > > at java.lang.Thread.run(Unknown Source)
> > > >
> > > > When I run tomcat in its own vm the bean defined
> exception is thrown and
> > > > caught fine by my client app.
> > > >
> > > > I've had a look at the code but can't see anything obvious.
> > > >
> > > > Let me know if I need to open bug reports.
> > > >
> > > > Richard Backhouse
> > > > Oak Grove Software
> > > >
> > > > --
> > > > --------------------------------------------------------------
> > > > To subscribe: [EMAIL PROTECTED]
> > > > To unsubscribe: [EMAIL PROTECTED]
> > > > Problems?: [EMAIL PROTECTED]
> > >
> > >
> > > --
> > > --------------------------------------------------------------
> > > To subscribe: [EMAIL PROTECTED]
> > > To unsubscribe: [EMAIL PROTECTED]
> > > Problems?: [EMAIL PROTECTED]
> > >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
>
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]