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.narrow(Unknown
> > Source)
> > at javax.rmi.PortableRemoteObject.narrow(Unknown Source)
> > at
> > com.ogs.timesheet.jspbean.LogonAction.createSessionBean(LogonAction.java:75)
> >
> > at com.ogs.timesheet.jspbean.LogonAction.perform(LogonAction.java:52)
> > at
> >
>org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.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(ContextManager.java:749)
> >
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> > at
> >
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
> >
> > at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
> >
> > at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.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(TSSessionBean.java:124)
> >
> > at java.lang.reflect.Method.invoke(Native Method)
> > at
> >
>org.jboss.ejb.StatefulSessionContainer$ContainerInterceptor.invoke(StatefulSessionContainer.java:564)
> >
> > at
> > org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:140)
> >
> > at
> >
>org.jboss.ejb.plugins.StatefulSessionInstanceInterceptor.invoke(StatefulSessionInstanceInterceptor.java:168)
> >
> > at
> > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxInterceptorCMT.java:133)
> >
> > at
> >
>org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.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(StatefulSessionContainer.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.invoke(StatefulSessionProxy.java:162)
> >
> > at $Proxy18.createTimesheet(Unknown Source)
> > at
> > com.ogs.timesheet.jspbean.TSSelectAction.perform(TSSelectAction.java:65)
> >
> > at
> >
>org.apache.struts.action.ActionServlet.processActionInstance(ActionServlet.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(ContextManager.java:749)
> >
> > at
> > org.apache.tomcat.core.ContextManager.service(ContextManager.java:695)
> > at
> >
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:207)
> >
> > at
> > org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:403)
> >
> > at
> > org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.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]