Attached is a testcase that reproduces the problem that we talked about here. My apologies for sending this to all on the list, but I hope that this testcase finds it way to the appropriate Jboss developers. I don't have an official bug number for reference, nor do I have a specific email to send this to within the development team.
If you have any questions about the testcase, feel free to send me an email to this address. Regards, James > -----Original Message----- > From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]] > Sent: Monday, April 08, 2002 4:29 PM > To: James Higginbotham > Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to > work with JBossBeta 2 HOWTO)? > > > I'm pretty busy with other work, so go ahead. Hopefully this > issue is resoved soon. > > Thx for you effort. > > Dennis > > On Mon, 2002-04-08 at 15:14, James Higginbotham wrote: > > Are you planning on writing a test case for them or should > I? I'm not > > sure if you have the time, but I'm booked up. I can put something > > together if need be, but didn't want to duplicate effort if > you have > > something to send them for their rework this week. > > > > Thanks, > > James > > > > > -----Original Message----- > > > From: Dennis Muhlestein [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, April 08, 2002 2:43 PM > > > To: Bunker, Dan > > > Cc: [EMAIL PROTECTED] > > > Subject: RE: [JBoss-user] Building Catalina .sar (Tomcat to > > > work with JBos sBeta 2 HOWTO)? > > > > > > > > > I tried with tomcat on a separate machine, and with embedded > > > tomcat running withing Jboss to perform the same method > > > method call. The exception occurs when the container tries > > > to invoke the create method of my SSB only when I try from > > > the embedded tomcat. > > > > > > Note: I am using the same instance of JBoss for both > > > instances of Tomcat. I can use the application without error > > > from the remote tomcat. > > > > > > I added debugging into JBoss to print the contends of > > > homeMapping and the method I want to get in the > > > StatelessSessionConainer.invokeHome > > > method. It does not matter if I try via the remote tomcat or > > > the embedded tomcat.. The map contains the exact same values > > > and the method I am trying to get is the same. (At least he > > > contents of > > > mi.getMethod().toString() are exactly the same). > > > > > > If I pass in a value to the map, shouldn't I always get the > > > correct value back. It seems to me that I'm executing the > > > same code in StatelessSessionContainer regardless of the > > > instance of tomcat I am trying to access the ejb from. When > > > I try the embedded instance of tomcat though, the "Method > > > m"(StatelessSesssionContainer.java:590 aprox) is null. As > > > far as I can tell, it's the same map and JBoss is passing in > > > the same value. > > > > > > I'm not completely convinced that this is a classloader issue > > > but then again, I'm not to familiar with the in's and > out's off jboss. > > > > > > Guess for the time being, I'll use tomcat remotely and wait > > > for someone to fix this. Happy to provide additional info if > > > anyone is interested. > > > > > > -Dennis > > > > > > PS: the bug on sourceforge related to a different issue that > > > did regard classloading. > > > > > > > > > > > > On Mon, 2002-04-08 at 12:52, Bunker, Dan wrote: > > > > I have played with the same issues and am fairly confident > > > that this > > > > is a ClassLoader issue. Investigating the tomcat.sar source > > > > files, > > > > jboss hands the WAR file off to Catalina to handle. This > > > means that > > > > all web content is loaded with the catalina WebClassloader. > > > So even > > > > though you have class1 in the jboss tier and you have class1 in > > > > the > > > > catalina tier they are not compatible due to the two different > > > > classloaders. Sibling class loaders cannot understand > each others > > > > content. This issue should be addressed by the UCL or > > > other relavant > > > > code. I believe there is a bug on sourceforge relating to this. > > > > > > > > Dan > > > > > > > > -----Original Message----- > > > > From: David Jencks [mailto:[EMAIL PROTECTED]] > > > > Sent: Monday, April 08, 2002 11:42 AM > > > > To: James Higginbotham > > > > Cc: David Jencks; [EMAIL PROTECTED] > > > > Subject: Re: [JBoss-user] Building Catalina .sar (Tomcat to > > > work with > > > > JBoss Beta 2 HOWTO)? > > > > > > > > > > > > Well, I wonder if it is some kind of classloader > problem. I don't > > > > really have a clue about what it could be. > > > > > > > > The mi (method invocation) contains info about what you are > > > trying to > > > > do: the method name and arguments you called, and > various context > > > > info. I don't see how the mi could be null there, so I'm > > > assuming the > > > > method map doesn't have what you are looking for. What is the > > > > mi.getMethod()? What is in the method map? > > > > > > > > david jencks > > > > > > > > On 2002.04.08 12:58:37 -0400 James Higginbotham wrote: > > > > > No, both unit test and struts action use our helper > > > factory, which > > > > > use the narrow() method. They cast to the home interface after > > > > > calling the helper method, which narrowed the reference. > > > Any other > > > > > ideas based on the stacktrace and what your code is > > > trying to do? I > > > > > can dive into the source and put in debug statements and > > > such, but > > > > > any context you can provide as to what is expected to > > > happen a few > > > > > method calls before and after (beyond the code > itself) would be > > > > > helpful. > > > > > > > > > > Here is the signature for the home interface: > > > > > > > > > > UserManager create() throws CreateException, EJBException, > > > > > RemoteException; > > > > > > > > > > The weird thing is that the code works under Jetty, just > > > not Tomcat. > > > > > However, we'd prefer to use Tomcat for our product release. > > > > > Everything works find under Weblogic, BTW, though > they tend to be > > > > > more forgiving with minor errors and such in descriptors, etc. > > > > > > > > > > Thanks, > > > > > James > > > > > > > > > > > -----Original Message----- > > > > > > From: David Jencks [mailto:[EMAIL PROTECTED]] > > > > > > Sent: Monday, April 08, 2002 11:53 AM > > > > > > To: James Higginbotham > > > > > > Cc: [EMAIL PROTECTED] > > > > > > Subject: Re: [JBoss-user] Building Catalina .sar (Tomcat to > > > > > > work with JBoss Beta 2 HOWTO)? > > > > > > > > > > > > > > > > > > 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:44 > > > > > > 1) > > > > > > > > > at > > > > > > > > > > > > > > > > > > org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:9 > > > > > > 8) > > > > > > > > > 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:18 > > > > > > 5) > > > > > > > > > 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:5 > > > > > > 58 > > > > > > > > ) > > > > > > > > > at > > > > > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:76 > > > > > > > > 0) > > > > > > > > > at > > > > > > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:85 > > > > > > > > 3) > > > > > > > > > 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:9 > > > > > > 43 > > > > > > > > ) > > > > > > > > > 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:9 > > > > > > 43 > > > > > > > > ) > > > > > > > > > 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:9 > > > > > > 43 > > > > > > > > ) > > > > > > > > > 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:9 > > > > > > 43 > > > > > > > > ) > > > > > > > > > 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/j> boss-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/j> > boss-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/jboss-user > > > > > > > > > > > > > >
tomcattest.zip
Description: tomcattest.zip