tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Neil B. Cohen" <nco...@verisign.com>
Subject Tomcat startup problem
Date Wed, 14 May 2008 11:01:18 GMT
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


Mime
View raw message