Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 98441 invoked from network); 17 Jun 2005 04:01:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 17 Jun 2005 04:01:41 -0000 Received: (qmail 47165 invoked by uid 500); 17 Jun 2005 04:01:37 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 47115 invoked by uid 500); 17 Jun 2005 04:01:37 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 47095 invoked by uid 99); 17 Jun 2005 04:01:37 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from shawidc-mo1.cg.shawcable.net (HELO pd3mo1so.prod.shaw.ca) (24.71.223.10) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 16 Jun 2005 21:01:36 -0700 Received: from pd2mr2so.prod.shaw.ca (pd2mr2so-qfe3.prod.shaw.ca [10.0.141.109]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0II700GI8K6NF560@l-daemon> for dev@geronimo.apache.org; Thu, 16 Jun 2005 20:56:47 -0600 (MDT) Received: from pn2ml2so.prod.shaw.ca ([10.0.121.146]) by pd2mr2so.prod.shaw.ca (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0II700FVAK6NPV30@pd2mr2so.prod.shaw.ca> for dev@geronimo.apache.org; Thu, 16 Jun 2005 20:56:47 -0600 (MDT) Received: from nsdev.org (S01060080c6f962f3.cg.shawcable.net [68.146.99.67]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0II70091KK6N39@l-daemon> for dev@geronimo.apache.org; Thu, 16 Jun 2005 20:56:47 -0600 (MDT) Received: from [10.0.0.7] (speedy.nsdev.org [10.0.0.7]) by nsdev.org (Postfix) with ESMTP id DDEE31C2A5 for ; Fri, 17 Jun 2005 00:39:44 -0400 (EDT) Date: Thu, 16 Jun 2005 20:56:43 -0600 From: Neal Sanche Subject: Re: Geronimo and Struts 1.2.7 In-reply-to: <42B1A277.6020201@exist.com> To: dev@geronimo.apache.org Message-id: <42B23BEB.6030002@nsdev.org> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Accept-Language: en-us, en References: <42B10CA3.1090702@nsdev.org> <42B1A277.6020201@exist.com> User-Agent: Mozilla Thunderbird 1.0RC1 (Windows/20041201) X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Thanks Cata, I'm going to go try this suggestion right now. I had actually added the /context-priority-classloader/ in my geronimo-jetty.xml deployment plan, but got the exceptions almost immediately, and so I set it back. I'll also try removing the commons-logging from the webapp and see if that solves the problem. Thanks a lot. -Neal Catalino Pineda Jr. wrote: > Hi All, > > I have encountered this problem and setting/ > context-priority-classloader /to true has solved the problem. > *However*, you may need to remove commons-logging.jar from > WEB-INF/lib folder of your web application to prevent > org.apache.commons.logging.LogFactory from throwing ClassCastException > when the app is started (causing it not to work properly). It seems > that the exception thrown is caused by having > commons-logging-1.0.4.jar loaded in systems classloader conflicting > with the commons-logging in webapp context. > > HTH, > Cata > > Aaron Mulder wrote: > >> You might try adding a geronimo-jetty.xml with: >> >>true >> >> It may be the case that something's being loaded from the system >>classpath and you want it to be loaded from the web app classpath, and >>this will set it to search the web app classpath first. >> >>Aaron >> >>On Wed, 15 Jun 2005, Neal Sanche wrote: >> >> >>>Hi All, >>> >>>I am currently working hard to get a Struts 1.2.7 application to build >>>and deploy inside Geronimo HEAD. I've made great strides tonight in >>>doing so, but I've run into a problem now, and I'm not sure what's >>>happening. I've bundled all of the struts .jar files and dependecies in >>>my WEB-INF/lib directory inside my .WAR file. I have a bunch of Struts >>>Actions compiled and their classes are written to the WEB-INF/classes >>>directory. My struts based .jsps seem to execute fine, and as long as I >>>don't access and Struts Action classes, I'm fine. But when I do access a >>>struts action, I get the error: >>> >>> >>> HTTP ERROR: 500 >>> >>>org/apache/struts/action/Action >>> >>>RequestURI=/phonebook/Hello.do >>> >>>/Powered by Jetty:// >>>/ >>> >>>And the console emits the following stack trace: >>> >>>23:16:16,101 WARN [ServletHandler] Error for /phonebook/Hello.do >>>java.lang.NoClassDefFoundError: org/apache/struts/action/Action >>> at java.lang.ClassLoader.defineClass1(Native Method) >>> at java.lang.ClassLoader.defineClass(ClassLoader.java:620) >>> at >>>java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 >>>4) >>> at java.net.URLClassLoader.defineClass(URLClassLoader.java:260) >>> at java.net.URLClassLoader.access$100(URLClassLoader.java:56) >>> at java.net.URLClassLoader$1.run(URLClassLoader.java:195) >>> at java.security.AccessController.doPrivileged(Native Method) >>> at java.net.URLClassLoader.findClass(URLClassLoader.java:188) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:306) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:299) >>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251) >>> at >>>org.apache.geronimo.jetty.JettyClassLoader.loadClass(JettyClassLoader >>>.java:59) >>> at >>>org.apache.struts.util.RequestUtils.applicationClass(RequestUtils.jav >>>a:117) >>> at >>>org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils. >>>java:143) >>> at >>>org.apache.struts.action.RequestProcessor.processActionCreate(Request >>>Processor.java:280) >>> at >>>org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja >>>va:218) >>> at >>>org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 >>>4) >>> at >>>org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:595) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:688) >>> at >>>org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:427 >>>) >>> at >>>org.apache.geronimo.jetty.JettyServletHolder.handle(JettyServletHolde >>>r.java:92) >>> at >>>org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( >>>WebApplicationHandler.java:832) >>> at >>>org.mortbay.jetty.servlet.JSR154Filter.doFilter(JSR154Filter.java:171 >>>) >>> at >>>org.mortbay.jetty.servlet.WebApplicationHandler$CachedChain.doFilter( >>>WebApplicationHandler.java:823) >>> at >>>org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicati >>>onHandler.java:473) >>> at >>>org.mortbay.jetty.servlet.Dispatcher.dispatch(Dispatcher.java:272) >>> at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:169) >>> at >>>org.apache.struts.action.RequestProcessor.doForward(RequestProcessor. >>>java:1063) >>> at >>>org.apache.struts.tiles.TilesRequestProcessor.doForward(TilesRequestP >>>rocessor.java:263) >>> at >>>org.apache.struts.action.RequestProcessor.processForwardConfig(Reques >>>tProcessor.java:386) >>> at >>>org.apache.struts.tiles.TilesRequestProcessor.processForwardConfig(Ti >>>lesRequestProcessor.java:318) >>> at >>>org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja >>>va:229) >>> at >>>org.apache.struts.action.ActionServlet.process(ActionServlet.java:119 >>>4) >>> >>>So what I find freaky about this stack trace is that near the bottom, >>>org.apache.struts.action stuff starts appearing indicating to me that >>>the struts classes are being found, I think. Is there, perhaps, a >>>conflicting Jar inside the Geronimo repository? Is there a way to make >>>the Geronimo classloader only load from within the web application .WAR >>>scope? Any ideas what I'm doing wrong? >>> >>>Thanks tons, if you can help me. >>> >>>Cheers. >>> >>>-Neal >>> >>>// >>> >>> >>> >> >> >>