Return-Path: Delivered-To: apmail-geronimo-user-archive@www.apache.org Received: (qmail 68351 invoked from network); 18 Dec 2008 23:48:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 18 Dec 2008 23:48:57 -0000 Received: (qmail 56810 invoked by uid 500); 18 Dec 2008 23:49:04 -0000 Delivered-To: apmail-geronimo-user-archive@geronimo.apache.org Received: (qmail 56783 invoked by uid 500); 18 Dec 2008 23:49:04 -0000 Mailing-List: contact user-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: user@geronimo.apache.org List-Id: Delivered-To: mailing list user@geronimo.apache.org Received: (qmail 56774 invoked by uid 99); 18 Dec 2008 23:49:04 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 18 Dec 2008 15:49:04 -0800 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [98.136.44.59] (HELO smtp104.prem.mail.sp1.yahoo.com) (98.136.44.59) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 18 Dec 2008 23:48:41 +0000 Received: (qmail 77338 invoked from network); 18 Dec 2008 23:48:18 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Received:X-YMail-OSG:X-Yahoo-Newman-Property:Message-Id:From:To:In-Reply-To:Content-Type:Content-Transfer-Encoding:Mime-Version:Subject:Date:References:X-Mailer; b=l7UzX4EZJcnp3U/rkJ752scq+bhgURUPuz1xqlDMSU0iOVroviujuT4zfkZ9RW/Fsj9cmvdaEAOEDy+DkuIisPMSvyY84QVAt7TxbEOYcxwkLBAfg3VY8ws0JtHyo+IRtVLyISBzoU/xEgu7SAI0MIXa2pr5RICyr8fm/wfeV8w= ; Received: from unknown (HELO ?10.11.55.45?) (david_jencks@76.76.148.215 with plain) by smtp104.prem.mail.sp1.yahoo.com with SMTP; 18 Dec 2008 23:48:18 -0000 X-YMail-OSG: QOk1NJEVM1k5lKtlZJU5n73zbd1Uf3jUwHn_J6quZNshKoRMPdbeRajcIP.2D.eOnvJCTLBd.ldFe89GHJ93JClAl_bX14TJYCh8znr1WOGJWE7_rGAi6V1moSHE3SUR.W_OltYzl5grGDpH7n0u5SxL13RxzbWO2d4CF5bJhIutyvnM7UdwNeCGp3ospTnTVGlwcV9t7bwYsBq1PNqPEFo5 X-Yahoo-Newman-Property: ymail-3 Message-Id: <02489F1B-C464-4BDB-8116-B1BE5BAC4495@yahoo.com> From: David Jencks To: user@geronimo.apache.org In-Reply-To: <3FAA81244E659D4AB4545FA36DCA046E09BE67@appexc004.apptixhostedmail.net> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: Custom Server Config - errors Date: Thu, 18 Dec 2008 15:48:17 -0800 References: <21046988.post@talk.nabble.com> <7AF264CE-E0D3-4DBA-920B-3EDE983871CB@yahoo.com> <3FAA81244E659D4AB4545FA36DCA046E09BE67@appexc004.apptixhostedmail.net> X-Mailer: Apple Mail (2.929.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi Ray, I don't have very up to date tomcat sources for the geronimo-modified tomcat.... but I suspect the problem is in StandardContext.start() where I think there's code like this: if (ok ) { if (instanceManager == null) { javax.naming.Context context = null; if (isUseNaming() && namingContextListener != null) { context = namingContextListener.getEnvContext(); } Map> injectionMap = buildInjectionMap(getIgnoreAnnotations()? new NamingResources(): getNamingResources()); instanceManager = new DefaultInstanceManager(context, injectionMap, this, this.getClass().getClassLoader()); getServletContext().setAttribute ("org.apache.jasper.instanceManagement.InstanceManager", instanceManager); } } I suspect ok == false here.... I think anything that set ok == false should have logged some kind of error indicating the problem. Could you check var/logs/geronimo.log for any other stack traces when the app started? otherwise I'm a bit mystified.... any chance you could send me your app to play with? thanks david jencks On Dec 18, 2008, at 3:18 PM, Ray Clough wrote: > I just use the deployer to deploy the app, and I am completely > unable to find anything which looks like a generated plugin file. > My custom server is named 'RiskPortalServer', which I generated from > the full server using the Geronimo console functions. The deployed > module is 'default/RiskPortal/1.0/war', and I do indeed see this > deployment path in the Repository, but no added plugin file. If you > could suggest where the plugin might reside, that would help. > > My best guess is that I left something important out of the server > dependencies, but I have no way of knowing what, without doing a > trial and error one-module-at-a-time process, which I could complete > sometime around the next millennium. I want the console app, > transactional capability, jsf, and jsp pages, with jndi-resolved > database connections, and deployers for all these. The problem is > with the JSP pages only, I believe. > > The stack trace from a JSP page begins with this: > 11:04:11,093 ERROR [[jsp]] Servlet.service() for servlet jsp threw > exception > java.lang.IllegalStateException: No org.apache.InstanceManager set > in ServletContext > at > org > .apache > .jasper > .runtime > .InstanceManagerFactory > .getInstanceManager(InstanceManagerFactory.java:39) > at > org > .apache > .jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java: > 144) > at > org > .apache > .jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324) > at > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: > 342) > at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 290) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org > .apache > .catalina > .core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) > at > org > .apache > .catalina > .core > .ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at > org > .apache > .catalina > .core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at > org > .apache > .catalina > .core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at > org > .apache > .tiles > .servlet > .context > .ServletTilesRequestContext.forward(ServletTilesRequestContext.java: > 198) > at > org > .apache > .tiles > .servlet > .context > .ServletTilesRequestContext.dispatch(ServletTilesRequestContext.java: > 179) > at > org > .apache > .tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:606) > at > org > .apache > .tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:246) > at > org > .apache > .tiles.web.util.TilesDispatchServlet.doGet(TilesDispatchServlet.java: > 83) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 290) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org > .apache > .catalina > .core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:630) > at > org > .apache > .catalina > .core > .ApplicationDispatcher.processRequest(ApplicationDispatcher.java:436) > at > org > .apache > .catalina > .core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:374) > at > org > .apache > .catalina > .core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302) > at > org > .apache > .struts.action.RequestProcessor.doForward(RequestProcessor.java:1078) > at > org > .apache > .struts > .action.RequestProcessor.processForwardConfig(RequestProcessor.java: > 396) > at > org > .apache.struts.action.RequestProcessor.process(RequestProcessor.java: > 232) > at > org.apache.struts.action.ActionServlet.process(ActionServlet.java: > 1913) > at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java: > 449) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:693) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 290) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com > .kamakura > .rp > .web > .interceptors > .UserInitializerFilter.doFilter(UserInitializerFilter.java:137) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 235) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com > .kamakura.rp.web.interceptors.LoginFilter.doFilter(LoginFilter.java: > 104) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 235) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > com > .kamakura > .rp.web.interceptors.AccessLogFilter.doFilter(AccessLogFilter.java: > 110) > at > org > .apache > .catalina > .core > .ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java: > 235) > at > org > .apache > .catalina > .core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) > at > org > .apache > .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java: > 233) > at > org > .apache > .catalina.core.StandardContextValve.invoke(StandardContextValve.java: > 191) > at > org > .apache > .geronimo > .tomcat.valve.DefaultSubjectValve.invoke(DefaultSubjectValve.java:51) > at > org > .apache > .catalina > .authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) > at org.apache.geronimo.tomcat.GeronimoStandardContext > $SystemMethodValve.invoke(GeronimoStandardContext.java:406) > at > org > .apache > .geronimo > .tomcat > .valve.GeronimoBeforeAfterValve.invoke(GeronimoBeforeAfterValve.java: > 47) > at > org > .apache > .catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) > at > org > .apache > .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) > at > org > .apache > .catalina.core.StandardEngineValve.invoke(StandardEngineValve.java: > 109) > at > org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java: > 568) > at > org > .apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java: > 286) > at > org > .apache.coyote.http11.Http11Processor.process(Http11Processor.java: > 845) > at org.apache.coyote.http11.Http11Protocol > $Http11ConnectionHandler.process(Http11Protocol.java:583) > at org.apache.tomcat.util.net.JIoEndpoint > $Worker.run(JIoEndpoint.java:447) > at java.lang.Thread.run(Thread.java:619) > > My generated server contains the following plugins/modules: > 1. Geronimo Assemblies :: Boilerplate Minimal > org.apache.geronimo.assemblies/geronimo-boilerplate-minimal/2.1.3/jar > 2. Geronimo Framework, Configs :: GBean Deployer > framework/geronimo-gbean-deployer/2.1.3/car > 3. Geronimo Framework, Configs :: GShell Framework > framework/gshell-framework/2.1.3/car > 4. Geronimo Framework, Configs :: GShell Geronimo > framework/gshell-geronimo/2.1.3/car > 5. Geronimo Framework, Configs :: JSR-88 CLI > framework/jsr88-cli/2.1.3/car > 6. Geronimo Framework, Configs :: JSR-88 DeploymentFactory > framework/deploymentfactory/2.1.3/car > 7. Geronimo Framework, Configs :: Online Deployer > framework/online-deployer.2.1.3/car > 8. Geronimo Plugins, AXIS :: AXIS > configs/axis/2.1.3/car > 9. Geronimo Plugins, Connector :: Transaction Manager (JTA11) > configs/transaction/2.1.3.car > 10. Geronimo Plugins, Console :: Plugin and Deployment Portlets > (Tomcat) > plugins/plugin-console-tomcat/2.1.3/car > 11. Geronimo Plugins, Console, Tomcat > plugins/console-tomcat/2.1.3/car > 12. Geronimo Plugins, Debug Views :: Tomcat > plugins/debugviews-console-tomcat/2.1.3/car > 13. Geronimo Plugins, J2EE :: JSR-88 JAR Configurer > configs/jsr88-jar-configurer/2.1.3/car > 14. Geronimo Plugins, J2EE :: JSR-88 RAR Configurer > configs/jsr88-rar-configurer/2.2.3/car > 15. Geronimo Plugins, J2EE :: JSR-88 WAR Configurer > configs/jsr88-war-configurer/2.1.3/car > 16. Geronimo Plugins, J2EE :: Server > configs/j2ee-server/2.1.3/car > 17. Geronimo Plugins, Jasper :: Jasper > configs/jasper/2.1.3/car > 18. Geronimo Plugins, MyFaces :: Deployer > configs/myfaces-deployer/2.1.3/car > 19. Geronimo Plugins, MyFaces :: MyFaces > configs/myfaces/2.1.3/car > 20. Geronimo Plugins, OpenJPA :: OpenJPA > configs/openjpa/2.1.3/car > 21. Geronimo Plugins, System Database :: Console (Tomcat) > plugins/sysdb-console-tomcat/2.1.3/car > 22. Geronimo Plugins, Tomcat :: Deployer > configs/tomcat6-deployer/2.1.3/car > 23. Geronimo Plugins, Tomcat :: Tomcat > configs/tomcat6/2.1.3/car > 24. Geronimo Plugins, Welcome :: Tomcat > configs/welcome-tomcat/2.1.3/car > > I hope this info is what is needed to solve the problem. Thanks > very much, > - Ray Clough > > > > -----Original Message----- > From: David Jencks [mailto:david_jencks@yahoo.com] > Sent: Wed 12/17/2008 8:47 AM > To: user@geronimo.apache.org > Subject: Re: Custom Server Config - errors > > > On Dec 16, 2008, at 8:27 PM, Ray_Clough wrote: > >> >> I have created a custom Server config using the Geronimo Console. >> Some pages >> cause an "IllegalStateException - no org.apache.InstanceManager set >> in >> ServletContext". When I run in the full server, I do not get this >> error, so >> it must be something missing from my configuration. The app uses >> jsf (with >> Facelets) as well as older JSPX pages. I think that it is the JSPX >> pages >> which cause the problem. Any ideas what I did not include which I >> should >> have? > > We use a customized version of jasper that handles annotations in a > way that can be related to geronimo's handling. This has been in > tomcat trunk for over a year but has not yet made it into an official > tomcat release. If you are precompiling your jsps with a non-geronimo > jasper you would get the error you note. However since your app runs > OK before extracting the custom server it seems there must be another > problem. Could you check what jasper version is in your custom server > and original geronimo server? > > Do you supply a geronimo-plugin.xml for your app or do you let > geronimo generate it? If you can find it and show the environment > section that would be helpful. > > thanks > david jencks > > >> >> >> Thank you very much, >> - Ray Clough >> -- >> View this message in context: http://www.nabble.com/Custom-Server-Config---errors-tp21046988s134p21046988.html >> Sent from the Apache Geronimo - Users mailing list archive at >> Nabble.com. >> > > >