tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Johnny Kewl" <j...@kewlstuff.co.za>
Subject Re: Tomcat startup problem
Date Wed, 14 May 2008 12:08:58 GMT

---------------------------------------------------------------------------
HARBOR: http://coolharbor.100free.com/index.htm
The most powerful application server on earth.
The only real POJO Application Server.
---------------------------------------------------------------------------
----- Original Message ----- 
From: "Neil B. Cohen" <ncohen@verisign.com>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, May 14, 2008 1:45 PM
Subject: Re: Tomcat startup problem


> Johnny Kewl wrote:
>
> Thanks Johnny - I'll save this for the next time - as I indicated, it 
> seems to be working again but I have no idea why... I was not running it 
> inside of Netbeans - I was actually copying the war file to a separate 
> tomcat installation and running it there - but your suggestion makes sense 
> and if it happens again, I'll give it a try...
>
> thanks!
>

No problem... uses all the bleeding edge products is never wise.
NB at the bleeding edge is definitely not a great idea, otherwise its a 
great product.

>
>>
>> ---------------------------------------------------------------------------
>>
>> HARBOR: http://coolharbor.100free.com/index.htm
>> The most powerful application server on earth.
>> The only real POJO Application Server.
>> ---------------------------------------------------------------------------
>>
>> ----- Original Message ----- From: "Neil B. Cohen" <ncohen@verisign.com>
>> To: <users@tomcat.apache.org>
>> Sent: Wednesday, May 14, 2008 1:01 PM
>> Subject: Tomcat startup problem
>>
>> Neil, the JSP is bringing an el tag or something in and there is a 
>> missing lib... why its catching you is because JSP pages dont compile 
>> until needed.
>>
>> Get the project going in Netbeans again...
>> Right click on all the JSP pages and compile them... the actual JSP 
>> page... if there is a problem it will now take you to the tag or whatever 
>> that is causing the problem.
>>
>> Then run it in NB... and check that it all works.
>>
>> Then (always do this), it will save you some pain... with it running in 
>> NB, click on the services tab and undeploy the web app.
>> Then stop TC in the service tab.
>> (if you miss this step TC may still use the NB project and not the 
>> dropped in webapp... which can cause a little confusion)
>>
>> Now drop webapp in and start TC as normal.
>>
>> Have fun...
>>
>>
>>
>>
>>> I have written a small web app (using NetBeans) which has been running 
>>> fine for a couple of weeks. Yesterday afternoon, I added a new page to 
>>> the program, rebuilt it, created a new .war file and installed it in my 
>>> tomcat webapps directory. And tomcat won't start it. The log file 
>>> (catalina.out) is listed below.
>>
>>> It complains about a missing class - but what is 
>>> com.sun.el.ExpressionFactoryImpl and why would that be missing?? Or is 
>>> that actually the missing class? If not, how do I figure out what is not 
>>> there?
>>>
>>> My program seems to start - it prints the 'App started successfully' 
>>> from my init servlet. But when I try to connect to the app from my 
>>> browser, I get the null pointer exception - but I don't know how to 
>>> figure out where that is coming from either.
>>>
>>> Can someone give me a hint as to what might be wrong? Or how to figure 
>>> it out? I'm fine with debugging my own code - but I can't get a handle 
>>> on where to look.... Have I lost a library somewhere? Netbeans didn't 
>>> complain when I built the war file...
>>>
>>> thanks very much,
>>>
>>> nbc
>>>
>>>
>>> ========
>>> cat /usr/local/Tomcat/logs/catlina.out
>>>
>>> May 14, 2008 6:49:24 AM org.apache.catalina.core.AprLifecycleListener 
>>> init
>>> INFO: The APR based Apache Tomcat Native library which allows optimal 
>>> performance in production environments was not found on the 
>>> java.library.path: 
>>> /usr/java/jdk1.6.0_05/jre/lib/i386/client:/usr/java/jdk1.6.0_05/jre/lib/i386:/usr/java/jdk1.6.0_05/jre/../lib/i386:/usr/lib/qt-3.3/lib:/usr/java/packages/lib/i386:/lib:/usr/lib
>>> May 14, 2008 6:49:24 AM org.apache.coyote.http11.Http11Protocol init
>>> INFO: Initializing Coyote HTTP/1.1 on http-8080
>>> May 14, 2008 6:49:24 AM org.apache.catalina.startup.Catalina load
>>> INFO: Initialization processed in 2393 ms
>>> May 14, 2008 6:49:24 AM org.apache.catalina.core.StandardService start
>>> INFO: Starting service Catalina
>>> May 14, 2008 6:49:24 AM org.apache.catalina.core.StandardEngine start
>>> INFO: Starting Servlet Engine: Apache Tomcat/6.0.16
>>> May 14, 2008 6:49:24 AM org.apache.catalina.startup.HostConfig deployWAR
>>> INFO: Deploying web application archive NCAdmin.war
>>> May 14, 2008 6:49:26 AM com.sun.faces.config.ConfigureListener 
>>> contextInitialized
>>> INFO: Initializing Sun's JavaServer Faces implementation 
>>> (1.2_04-b20-p03) for context '/NCAdmin'
>>> May 14, 2008 6:49:28 AM com.sun.faces.config.ConfigureListener 
>>> installExpressionFactory
>>> SEVERE: Error Instantiating ExpressionFactory
>>> java.lang.ClassNotFoundException: com.sun.el.ExpressionFactoryImpl
>>>         at 
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
>>>         at 
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
>>>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>>>         at java.lang.Class.forName0(Native Method)
>>>         at java.lang.Class.forName(Class.java:169)
>>>         at 
>>> com.sun.faces.config.ConfigureListener.installExpressionFactory(ConfigureListener.java:1521)
>>>         at 
>>> com.sun.faces.config.ConfigureListener.registerELResolverAndListenerWithJsp(ConfigureListener.java:1545)
>>>         at 
>>> com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:403)
>>>         at 
>>> org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843)
>>>         at 
>>> org.apache.catalina.core.StandardContext.start(StandardContext.java:4350)
>>>         at 
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
>>>         at 
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
>>>         at 
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
>>>         at 
>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:829)
>>>         at 
>>> org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:718)
>>>         at 
>>> org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490)
>>>         at 
>>> org.apache.catalina.startup.HostConfig.start(HostConfig.java:1147)
>>>         at 
>>> org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
>>>         at 
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>>>         at 
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)
>>>         at 
>>> org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
>>>         at 
>>> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
>>>         at 
>>> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
>>>         at 
>>> org.apache.catalina.core.StandardService.start(StandardService.java:516)
>>>         at 
>>> org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
>>>         at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
>>>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>         at 
>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>>>         at 
>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>>>         at java.lang.reflect.Method.invoke(Method.java:597)
>>>         at 
>>> org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
>>>         at 
>>> org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
>>> May 14, 2008 6:49:28 AM com.sun.ws.rest.api.core.ClasspathResourceConfig 
>>> init
>>> INFO: Scanning for root resource and provider classes in the paths:
>>>   /usr/local/Tomcat/webapps/NCAdmin/WEB-INF/lib
>>>   /usr/local/Tomcat/webapps/NCAdmin/WEB-INF/classes
>>> May 14, 2008 6:49:29 AM 
>>> com.sun.ws.rest.spi.service.ServiceFinder$AbstractLazyIterator hasNext
>>> WARNING: A dependent class, javax/mail/MessagingException, of the class 
>>> com.sun.ws.rest.impl.provider.entity.MimeMultipartProvider implementing 
>>> the provider interface javax.ws.rs.ext.MessageBodyReader is not found. 
>>> The provider implementation is ignored.
>>> May 14, 2008 6:49:29 AM 
>>> com.sun.ws.rest.spi.service.ServiceFinder$AbstractLazyIterator hasNext
>>> WARNING: A dependent class, javax/mail/MessagingException, of the class 
>>> com.sun.ws.rest.impl.provider.entity.MimeMultipartProvider implementing 
>>> the provider interface javax.ws.rs.ext.MessageBodyWriter is not found. 
>>> The provider implementation is ignored.
>>> May 14, 2008 6:49:29 AM 
>>> com.sun.ws.rest.impl.application.WebApplicationImpl processRootResources
>>> SEVERE: The ResourceConfig instance does not contain any root resource 
>>> classes.
>>> Config File: /resources/config.properties
>>> DA connection pool successfully initialized.
>>> Application initialized succesfully.              ***** This comes from 
>>> my code
>>>
>>> May 14, 2008 6:49:32 AM org.apache.catalina.core.StandardContext 
>>> addApplicationListener
>>> INFO: The listener "listeners.ContextListener" is already configured for 
>>> this context. The duplicate definition has been ignored.
>>> May 14, 2008 6:49:32 AM org.apache.catalina.core.StandardContext 
>>> addApplicationListener
>>> INFO: The listener "listeners.SessionListener" is already configured for 
>>> this context. The duplicate definition has been ignored.
>>> May 14, 2008 6:49:32 AM org.apache.coyote.http11.Http11Protocol start
>>> INFO: Starting Coyote HTTP/1.1 on http-8080
>>> May 14, 2008 6:49:32 AM org.apache.jk.common.ChannelSocket init
>>> INFO: JK: ajp13 listening on /0.0.0.0:8009
>>> May 14, 2008 6:49:32 AM org.apache.jk.server.JkMain start
>>> INFO: Jk running ID=0 time=0/55  config=null
>>> May 14, 2008 6:49:32 AM org.apache.catalina.startup.Catalina start
>>> INFO: Server startup in 7723 ms
>>>                                                  ************ system 
>>> hangs here until I connect with a web browser
>>> May 14, 2008 6:50:17 AM 
>>> com.sun.faces.lifecycle.ELResolverInitPhaseListener 
>>> populateFacesELResolverForJsp
>>> INFO: JSF1027: [/NCAdmin] The ELResolvers for JSF were not registered 
>>> with the JSP container.
>>> May 14, 2008 6:50:17 AM com.sun.faces.lifecycle.LifecycleImpl phase
>>> WARNING: executePhase(RENDER_RESPONSE 
>>> 6,com.sun.faces.context.FacesContextImpl@1079ff) threw exception
>>> java.lang.NullPointerException
>>>         at 
>>> com.sun.faces.application.ApplicationImpl.createValueBinding(ApplicationImpl.java:467)
>>>         at 
>>> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:697)
>>>         at 
>>> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.pageBean(ViewHandlerImpl.java:676)
>>>         at 
>>> com.sun.rave.web.ui.appbase.faces.ViewHandlerImpl.renderView(ViewHandlerImpl.java:284)
>>>         at 
>>> com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
>>>         at 
>>> com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
>>>         at 
>>> com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
>>>         at 
>>> com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.render(PartialTraversalLifecycle.java:106)
>>>         at 
>>> javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
>>>         at 
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>>>         at 
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>>>         at 
>>> com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
>>>         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:175)
>>>         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.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
>>>         at 
>>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>>>         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)
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To start a new topic, e-mail: users@tomcat.apache.org
>>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>>> For additional commands, e-mail: users-help@tomcat.apache.org
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail: users@tomcat.apache.org
>> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
>> For additional commands, e-mail: users-help@tomcat.apache.org
>>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message