Basically I don't have a clue about what is going on, however... Are you
doing PortableRemoteObject.narrow in your failing code and a cast in your
unit test? If so you might try changing to a cast in your failing code.
This is a wild guess, but let us know if it works.
Everything should be unserialized calls within the same vm.
david jencks
On 2002.04.08 12:37:04 -0400 James Higginbotham wrote:
> Well, here is the helper code (same as what is being called from the
> unit test):
>
> UserManagerHome dmHome =
> (UserManagerHome) EJBHomeFactory.getInstance()
> .lookupEJBHome(UserManagerHome.class);
>
> ejbUserManager_ = dmHome.create();
>
> Where EJBHomeFactory method looks like:
>
> public EJBHome lookupEJBHome(Class homeClass) throws
> NamingException{
>
> EJBHome home = lookupHome(homeClass.getName(), homeClass);
>
> return home;
> }
>
> The tomcat/catalina .sar does do in memory calls, right? I don't need to
> get jndi.properties in the CLASSPATH to do RMI calls from within the
> same VM do I? It acts like it can't find the method for some reason, but
> again, it works from the unit test. Here is the code within your Jboss
> source file for reference, based on the line number in the stacktrace
> (for reference in case being a week out of date throws off the line
> numbering on your latest source):
>
> Method m = (Method)homeMapping.get(mi.getMethod());
>
> try
> {
> return m.invoke(StatelessSessionContainer.this,
> mi.getArguments());
> } catch (IllegalAccessException e)
>
> Thanks,
> James
>
> > -----Original Message-----
> > From: David Jencks [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, April 08, 2002 11:21 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: [JBoss-user] Building Catalina .sar (Tomcat to
> > work with JBoss Beta 2 HOWTO)?
> >
> >
> > Looking at the code, I suspect that whatever home method you
> > are calling isn't properly mapped to whatever is supposed to
> > handle it. What home method is being called? What should handle it?
> >
> > It looks like we could provide a better error message;-)
> >
> > david jencks
> >
> > On 2002.04.08 11:18:49 -0400 James Higginbotham wrote:
> > > Great, thanks for the info, it compiled!
> > >
> > > Now, however, I get the following error when my struts
> > action attempts
> > > to invoke an EJB.. I've used multiple J2EE containers and
> > would assume
> > > that I could get a servlet and EJB out there and working
> > quickly.. My
> > > unit tests show that I can talk to the EJBs in Jboss over
> > RMI, so this
> > > is a Catalina-specific error. I even see the EJBs in the JMS Agent
> > > view (port 8082).
> > >
> > > I'm using the CVS code from March 30th.. I'm afraid to update right
> > > now, due to the db configuration changed mentioned by David
> > over the
> > > weekend
> > > - I don't need any more variables interfering with my port at the
> > > moment, unless the update is absolutely necessary.
> > >
> > > Any ideas what could be wrong? I've never struggled so much
> > to get a
> > > J2EE application working as with Jboss 3 beta. My apologies for the
> > > continued emails, but I really need to get this working for our
> > > product.
> > >
> > >
> > > Thanks,
> > > James
> > >
> > >
> > > -------------------
> > >
> > > Here is the tracktrace:
> > >
> > > 2002-04-08 10:11:05,879 INFO
> > > [org.jboss.web.catalina.EmbeddedCatalinaServiceSX] action:
> > Creating
> > > new Action instance
> > > 2002-04-08 10:11:06,139 INFO [STDOUT] 10:11:06,129 ERROR
> > > [UserManagerFactory] getUserManager caught RemoteException
> > > java.rmi.ServerException: null; nested exception is:
> > > java.lang.NullPointerException
> > java.lang.NullPointerException
> > > at
> > >
> > org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.i
> > nvokeHome(
> > > StatelessSessionContainer.java:593)
> > > at
> > >
> > org.jboss.resource.connectionmanager.CachedConnectionIntercept
> > or.invokeH
> > > ome(CachedConnectionInterceptor.java:167)
> > > at
> > >
> > org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invo
> > keHome(Sta
> > > telessSessionInstanceInterceptor.java:57)
> > > at
> > >
> > org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(Abstrac
> > tTxInterce
> > > ptor.java:98)
> > > at
> > >
> > org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxI
> > nterceptor
> > > CMT.java:167)
> > > at
> > >
> > org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercepto
> > rCMT.java:
> > > 52)
> > > at
> > >
> > org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityI
> > nterceptor
> > > .java:102)
> > > at
> > >
> > org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor
> > .java:109)
> > > at
> > >
> > org.jboss.ejb.StatelessSessionContainer.invokeHome(StatelessSe
> > ssionConta
> > > iner.java:295)
> > > at org.jboss.ejb.Container.invoke(Container.java:702)
> > > at
> > > org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:441)
> > > at
> > > org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:98)
> > > at
> > >
> > org.jboss.invocation.InvokerInterceptor.invoke(InvokerIntercep
> > tor.java:1
> > > 02)
> > > at
> > >
> > org.jboss.proxy.TransactionInterceptor.invoke(TransactionInter
> > ceptor.jav
> > > a:73)
> > > at
> > >
> > org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor
> > .java:76)
> > > at
> > > org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:185)
> > > at
> > > org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:96)
> > > at $Proxy33.create(Unknown Source)
> > > at
> > >
> > com.betweenmarkets.user.client.EJBUserManagerFactory.getUserMa
> > nager(EJBU
> > > serManagerFactory.java:36)
> > > at
> > >
> > com.betweenmarkets.usersecurity.DefaultUserSecurityContext.log
> > in(Default
> > > UserSecurityContext.java:68)
> > > at
> > >
> > com.betweenmarkets.transactionmanager.web.actions.LogonAction.
> > handleRequ
> > > est(LogonAction.java:77)
> > > at
> > > com.betweenmarkets.web.BaseAction.perform(BaseAction.java:179)
> > > at org.apache.struts.action.Action.execute(Action.java:391)
> > > at
> > >
> > org.apache.struts.action.ActionServlet.processActionPerform(Ac
> > tionServle
> > > t.java:2234)
> > > at
> > >
> > org.apache.struts.action.ActionServlet.process(ActionServlet.j
> > ava:2013)
> > > at
> > >
> > org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:558)
> > > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> > > at
> > javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(Applica
> > > tionFilterChain.java:247)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilt
> > > erChain.java:193)
> > > at
> > >
> > com.betweenmarkets.web.accesscontrol.AccessControlServletFilte
> > r.doFilter
> > > (AccessControlServletFilter.java:80)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> > er(Applica
> > > tionFilterChain.java:213)
> > > at
> > >
> > org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> > cationFilt
> > > erChain.java:193)
> > > at
> > >
> > org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> > rapperValv
> > > e.java:243)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:566)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:4
> > > 72)
> > > at
> > >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContextValve.invoke(StandardC
> > ontextValv
> > > e.java:190)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:566)
> > > at
> > >
> > org.apache.catalina.valves.CertificatesValve.invoke(Certificat
> > esValve.ja
> > > va:246)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:564)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:4
> > > 72)
> > > at
> > >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardContext.invoke(StandardContex
> > t.java:234
> > > 3)
> > > at
> > >
> > org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> > Valve.java
> > > :180)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:566)
> > > at
> > >
> > org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> > spatcherVa
> > > lve.java:170)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:564)
> > > at
> > >
> > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> > Valve.java
> > > :170)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:564)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:4
> > > 72)
> > > at
> > >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> > gineValve.
> > > java:174)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> > ipeline.ja
> > > va:566)
> > > at
> > >
> > org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> > ine.java:4
> > > 72)
> > > at
> > >
> > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> > > at
> > >
> > org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> > rocessor.j
> > > ava:1012)
> > > at
> > >
> > org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> > ssor.java:
> > > 1107)
> > > at java.lang.Thread.run(Thread.java:484)
> > >
> > > > -----Original Message-----
> > > > From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
> > > > Sent: Monday, April 08, 2002 1:34 AM
> > > > To: James Higginbotham; [EMAIL PROTECTED]
> > > > Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to
> > > > work with JBoss Beta 2 HOWTO)?
> > > >
> > > >
> > > > To build Catalina sar-file:
> > > >
> > > > In catalina directory (cvs directory structure) in build.xml
> > > > you'll find:
> > > > <!-- This corresponds to the tomcat4 dist existing in this
> > > > module root --> <property name="tomcat.server.root"
> > > > value="${module.root}/jakarta-tomcat-4.0.2"/>
> > > > <path id="tomcat.server.classpath">
> > > > <pathelement path="${tomcat.server.root}/bin/bootstrap.jar"/>
> > > > <pathelement
> > path="${tomcat.server.root}/common/lib/servlet.jar"/>
> > > > <pathelement
> > path="${tomcat.server.root}/server/lib/catalina.jar"/>
> > > > <pathelement path="${tomcat.server.root}/server/lib/warp.jar"/>
> > > > </path>
> > > >
> > > > Well, this is the answer: copy catalina to
> > > > ${module.root}/jakarta-tomcat-4.0.2 or change the value of
> > > > tomcat.server.root accordingly. And in the jboss-service.xml
> > > > you'll need to specify the catalina's home like this
> > > > <!DOCTYPE server [
> > > > <!ENTITY catalina.home "c:\jakarta\jakarta-tomcat-4.0.2">
> > > > ]>
> > > >
> > > > Gooodluck,
> > > > alex
> > > >
> > > > > -----Original Message-----
> > > > > From: [EMAIL PROTECTED]
> > > > > [mailto:[EMAIL PROTECTED]]On Behalf Of
> > > > > James Higginbotham
> > > > > Sent: Saturday, April 06, 2002 3:35 AM
> > > > > To: [EMAIL PROTECTED];
> > [EMAIL PROTECTED]
> > > > > Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to
> > > > > work with JBoss Beta 2 HOWTO)?
> > > > >
> > > > >
> > > > > Funny, it was a conflict with log4j.. I had to rename our
> > > > properties
> > > > > file and all is well. Thanks for the verification that all
> > > > it working.
> > > > >
> > > > > On to the next obstacle: Do you (or anyone reading this)
> > > > know how to
> > > > > build the sar file, as I have a CVS version of beta2, and the
> > > > > beta1
> > > > > sar doesn't seem to act happy - it can't locate a home
> > that jetty
> > > > > compiled for beta2 can. I tried using the build script to
> > > > run ant in
> > > > > the jboss-all/catalina, but I get compile errors
> > > > everywhere. I wasn't
> > > > > sure if this was a bad state that I checked out, or if
> > I'm missing
> > > > > some specific target in the root that I should be
> > invoking to build
> > > > > the catalina module.
> > > > >
> > > > > Thanks,
> > > > > James
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: Alex Loubyansky [mailto:[EMAIL PROTECTED]]
> > > > > > Sent: Friday, April 05, 2002 11:10 AM
> > > > > > To: James Higginbotham
> > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss Beta 2
> > > > > > HOWTO?
> > > > > >
> > > > > >
> > > > > > Well, James... don't know what to suggest you except for
> > > > > > asking you to send me your app to test in my environment.
> > > > > > I do see any JSP compile errors in the browser. I use
> > > > > > JBoss3.0.0beta2 with Catalina-4.0.2.
> > > > > >
> > > > > > alex
> > > > > >
> > > > > > > -----Original Message-----
> > > > > > > From: James Higginbotham
> > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > Sent: Friday, April 05, 2002 8:01 PM
> > > > > > > To: [EMAIL PROTECTED]
> > > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss
> > > > Beta 2 HOWTO?
> > > > > > >
> > > > > > >
> > > > > > > Pretty sure that struts is fine, since the app works under
> > > > > > weblogic.
> > > > > > > Jetty was giving me a 'id' attribute invalid for a custom
> > > > > > JSP tag. The
> > > > > > > problem is that I am trying to switch to Tomcat and cannot
> > > > > > see any log
> > > > > > > message or browser message about the error. Not sure what I
> > > > > > am missing
> > > > > > > to enable me to debug this same error in Tomcat. I can
> > > > go back to
> > > > > > > Jetty, but we want Tomcat rather than Jetty, so any work
> > > > > done under
> > > > > > > Jetty may or may not be a waste of time.
> > > > > > >
> > > > > > > So, given the configuration of the sar and
> > > > > > > jakarta-tomcat-4.0.2
> > > > > > > from the .zip download of Jboss of beta 1, you can
> > deploy a war
> > > > > > > and see JSP errors with no extra configuration, right?
> > > > > > >
> > > > > > > Any other thoughts?
> > > > > > > James
> > > > > > >
> > > > > > > > -----Original Message-----
> > > > > > > > From: Alex Loubyansky
> > > > > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > > Sent: Friday, April 05, 2002 10:53 AM
> > > > > > > > To: James Higginbotham
> > > > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss
> > > > > Beta 2 HOWTO?
> > > > > > > >
> > > > > > > >
> > > > > > > > I use struts too and I've seen jsp's compile
> > errors in the
> > > > > > > > browser many times :)
> > > > > > > > And I met blank pages without any errors and
> > stack traces
> > > > > > > > after successfull action operation. The cause was that I
> > > > > > > > wrongly specified forward parameter (non
> > existant). Are you
> > > > > > > > sure it's not your case?
> > > > > > > >
> > > > > > > > alex
> > > > > > > >
> > > > > > > > > -----Original Message-----
> > > > > > > > > From: James Higginbotham
> > > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > > > Sent: Friday, April 05, 2002 7:42 PM
> > > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss
> > > > > > Beta 2 HOWTO?
> > > > > > > > >
> > > > > > > > >
> > > > > > > > > The log dir isn't being created under Tomcat, and I
> > > > think I'm
> > > > > > > > > seeing JSP compile errors from a POST on a successful
> > > > > > display of
> > > > > > > > > the 1st JSP. However, there is no stacktrace for the
> > > > > > > > > compile error. So, login works, but the next
> > page fails. I
> > > > > > > > > was seeing an error message in Jetty and now
> > > > > > > > > want to move to Tomcat (which is the preferred
> > container)
> > > > > > > but can't
> > > > > > > > > debug the JSP problem (This page does work in Weblogic
> > > > > > due to WL's
> > > > > > > > > looser JSP parsing rules). Any ideas why I wouldn't be
> > > > > > > seeing these
> > > > > > > > > stacktraces, compile errors, since they are not
> > showing in
> > > > > > > > the browser
> > > > > > > > > or in the Jboss server.log?
> > > > > > > > >
> > > > > > > > > James
> > > > > > > > >
> > > > > > > > > > -----Original Message-----
> > > > > > > > > > From: Alex Loubyansky
> > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > > > > Sent: Friday, April 05, 2002 10:39 AM
> > > > > > > > > > To: James Higginbotham
> > > > > > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss
> > > > > > > Beta 2 HOWTO?
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > Can't you find log dir? What do you mean?
> > > > > > > > > > And what do you want to log?
> > > > > > > > > >
> > > > > > > > > > alex
> > > > > > > > > >
> > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > From: James Higginbotham
> > > > > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > > > > > Sent: Friday, April 05, 2002 7:01 PM
> > > > > > > > > > > To: [EMAIL PROTECTED];
> > > > > > > > > [EMAIL PROTECTED]
> > > > > > > > > > > Subject: RE: [JBoss-user] Tomcat to work with JBoss
> > > > > > > > Beta 2 HOWTO?
> > > > > > > > > > >
> > > > > > > > > > >
> > > > > > > > > > > Great, that worked, thanks! I hope these things get
> > > > > > > > > > captured in 3.0.0
> > > > > > > > > > > docs soon.
> > > > > > > > > > >
> > > > > > > > > > > One more issue: I'm not seeing stack traces, but a
> > > > > > > > > > > POST
> > > > > > > > > to a struts
> > > > > > > > > > > action is returning an empty HTML page to the
> > > > browser. I'm
> > > > > > > > > > seeing the
> > > > > > > > > > > log messages from Struts that use the
> > > > > > > > > servletContext.log(), but not
> > > > > > > > > > > any log4j specific stuff. I don't see any log dir or
> > > > > > > > > files created
> > > > > > > > > > > under jboss or tomcat, so I'm not sure
> > where they are
> > > > > > > > > > going. Is there
> > > > > > > > > > > a specific setting within the sar or tomcat to fix
> > > > > > > > > > > this?
> > > > > > > > > > >
> > > > > > > > > > > Thanks again,
> > > > > > > > > > > James
> > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From: Alex Loubyansky
> > > > > > > [mailto:[EMAIL PROTECTED]]
> > > > > > > > > > > > Sent: Friday, April 05, 2002 12:07 AM
> > > > > > > > > > > > To: James Higginbotham;
> > > > [EMAIL PROTECTED]
> > > > > > > > > > > > Subject: RE: [JBoss-user] Tomcat to work
> > with JBoss
> > > > > > > > > Beta 2 HOWTO?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > It's really easy with JBoss3.0.0beta.
> > > > > > > > > > > > Just drop the tomcat4-service.sar into the deploy
> > > > > > > > directory. And
> > > > > > > > > > > > in the sar's jboss-service.xml you need to
> > > > > > specify tomcat's
> > > > > > > > > > > > home. That's it! :)
> > > > > > > > > > > >
> > > > > > > > > > > > alex
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > -----Original Message-----
> > > > > > > > > > > > From: [EMAIL PROTECTED]
> > > > > > > > > > > > [mailto:jboss-user->
> > [EMAIL PROTECTED]]On
> > > > > > > Behalf Of
> > > > > > > > > > > > James Higginbotham
> > > > > > > > > > > >
> > > > > > > > > > > > Sent: Friday, April 05, 2002 2:22 AM
> > > > > > > > > > > > To: [EMAIL PROTECTED]
> > > > > > > > > > > > Subject: [JBoss-user] Tomcat to work with JBoss
> > > > > > > Beta 2 HOWTO?
> > > > > > > > > > > >
> > > > > > > > > > > >
> > > > > > > > > > > > I've been looking through the volunteer
> > > > > > > > > > > > documentation
> > > > > > > > on the web
> > > > > > > > > > > > site and mailing list archives, but
> > haven't found a
> > > > > > > page that
> > > > > > > > > > > > describes how to configure 3.0.0 beta 2 to use
> > > > > > > Tomcat 4.. Can
> > > > > > > > > > > > someone point me to a past email that
> > I've missed,
> > > > > > > > > > > > to
> > > > > > > > new docs,
> > > > > > > > > > > > or provide a quick step-by-step on how to do this?
> > > > > > > > I'm using the
> > > > > > > > > > > > CVS code from last week (named beta 2 after
> > > > > > > > > > > the build).
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks,
> > > > > > > > > > > > James
> > > > > > > > > > > >
> > > > > > > > > >
> > > > > > > >
> > > > > >
> > > > >
> > > > > _______________________________________________
> > > > > JBoss-user mailing list
> > > > > [EMAIL PROTECTED]
> > > > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > > >
> > >
> > > _______________________________________________
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > https://lists.sourceforge.net/lists/listinfo/jboss-user
> > >
> > >
> >
> > _______________________________________________
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/j> boss-user
> >
>
>
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user