A systematic approach is just what I need, but I have no idea how to go about 
it.  Since the problem is with JSP pages, and since Jasper is used to compile 
them, it seems that it is somewhere around here I should look.  However I am 
hampered by not knowing much about these issues with Geronimo.  It seems 
probable that the Geronimo function which specifies the dependencies for each 
included module is missing one.  This belief is heightened by the fact that it 
works great in full Geronimo distribution.

Thanks,
- Ray Clough


-----Original Message-----
From: David Jencks [mailto:david_jen...@yahoo.com]
Sent: Thu 12/18/2008 10:58 PM
To: user@geronimo.apache.org
Subject: Re: Custom Server Config - errors
 
Some of these plugins are clearly irrelevant (client-system) and one  
is not part of geronimo (wasce-boilerplate-minimal).  I'm pretty sure  
that the problem is caused by a missing plugin but it would be great  
to see if there is a systematic way to track it down as we are then  
more likely to be able to provide a general fix.


thanks
david jencks

On Dec 18, 2008, at 11:23 PM, Jack Cai wrote:

> I suggest you to include all the modules below if not already.
>
> -Jack
>
> upgrade-cli
> client-system
> geronimo-gbean-deployer
> j2ee-security
> j2ee-system
> jsr88-cli
> jsr88-deploymentfactory
> offline-deployer
> online-deployer
> plugin
> rmi-naming
> server-security-config
> shutdown
> connector-deployer
> hot-deployer
> jsr88-ear-configurer
> jsr88-rar-configurer
> jsr88-war-configurer
> j2ee-server
> jasper-deployer
> jasper
> remote-deploy-tomcat
> sharedlib
> tomcat6-deployer
> wasce-boilerplate-minimal
>
>
> 2008/12/19 Ray Clough <rcclo...@kamakuraco.com>
> 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_jen...@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.
> >
>
>
>


<<winmail.dat>>

Reply via email to