I am getting an exception when I am trying to deploy my project on linux machine, I am using Spring and hibernate framework for my project. Following is the error in catalin.out
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: oovd91:gmddgare.0:leeginweb1.inetu.net:1
Using CATALINA_BASE: /usr/share/tomcat5
Using CATALINA_HOME: /usr/share/tomcat5
Using CATALINA_TMPDIR: /usr/share/tomcat5/temp
Using JRE_HOME:
Created MBeanServer with ID: onrubt:gmddgel2.0:leeginweb1.inetu.net:1
11-Apr-11 8:21:38 AM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/gcj-4.1.2
11-Apr-11 8:21:38 AM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
11-Apr-11 8:21:38 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 477 ms
11-Apr-11 8:21:38 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
11-Apr-11 8:21:38 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.23
11-Apr-11 8:21:38 AM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
11-Apr-11 8:21:38 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
LifecycleException: Error initializaing : java.lang.NullPointerException
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptor(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptors(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sozxb574.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
11-Apr-11 8:21:38 AM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor Brighton.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: Error initializaing : java.lang.NullPointerException
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptor(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptors(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sozxb574.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
11-Apr-11 8:21:38 AM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
LifecycleException: Error initializaing : java.lang.NullPointerException
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptor(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptors(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sozxb574.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
11-Apr-11 8:21:38 AM org.apache.catalina.startup.HostConfig deployDescriptor
SEVERE: Error deploying configuration descriptor TrackingToolWebService.xml
java.lang.IllegalStateException: ContainerBase.addChild: start: LifecycleException: Error initializaing : java.lang.NullPointerException
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptor(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployDescriptors(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sozxb574.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
11-Apr-11 8:21:39 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive Brighton.war
11-Apr-11 8:21:39 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Error configuring application listener of class org.springframework.web.context.ContextLoaderListener
java.lang.NoClassDefFoundError: org.springframework.web.context.ContextLoader
at java.lang.Class.initializeClass(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
at java.lang.Class.newInstance(libgcj.so.7rh)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployWARs(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.23.jar.sozxb574.so)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.ConcurrentHashMap
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.sozxb574.so)
at org.apache.catalina.loader.WebappClassLoader.loadClass(catalina-5.5.23.jar.sozxb574.so)
at java.lang.Class.forName(libgcj.so.7rh)
at java.lang.Class.initializeClass(libgcj.so.7rh)
...23 more
11-Apr-11 8:21:39 AM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
11-Apr-11 8:21:39 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
11-Apr-11 8:21:39 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/Brighton] startup failed due to previous errors
11-Apr-11 8:21:39 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive TrackingToolWebService.war
log4j:WARN No appenders could be found for logger (org.apache.commons.digester.Digester.sax).
log4j:WARN Please initialize the log4j system properly.
11-Apr-11 8:21:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
11-Apr-11 8:21:41 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/TrackingToolWebService] startup failed due to previous errors
11-Apr-11 8:21:41 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
11-Apr-11 8:21:41 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
11-Apr-11 8:21:41 AM org.apache.catalina.core.ApplicationContext log
INFO: org.apache.webapp.balancer.BalancerFilter: init(): ruleChain: [org.apache.webapp.balancer.RuleChain: [org.apache.webapp.balancer.rules.URLStringMatchRule: Target string: News / Redirect URL: http://www.cnn.com], [org.apache.webapp.balancer.rules.RequestParameterRule: Target param name: paramName / Target param value: paramValue / Redirect URL: ], [org.apache.webapp.balancer.rules.AcceptEverythingRule: Redirect URL: http://jakarta.apache.org]]
11-Apr-11 8:21:41 AM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
11-Apr-11 8:21:41 AM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
11-Apr-11 8:21:42 AM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering Hosts
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering WebModule Contexts
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering Servlets
11-Apr-11 8:21:42 AM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
11-Apr-11 8:21:42 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/34 config=null
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering Hosts
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering WebModule Contexts
11-Apr-11 8:21:42 AM org.apache.catalina.connector.MapperListener init
INFO: Registering Servlets
11-Apr-11 8:21:42 AM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
11-Apr-11 8:21:42 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 4364 m
The exception java.lang.NoClassDefFoundError: org.springframework.web.context.ContextLoader at least indicates that you are missing a Spring framework JAR file: spring-web-<version>.jar. This JAR has to be part of your WAR file distribution. When you bundle your WAR file make sure it will end up in WEB-INF/lib. You might have to add more than just this one JAR file. Check your logs to see if there are more java.lang.NoClassDefFoundErrors.
Related
here the log file I am unable to fix the problems.
I have restarted the webserver,
cleaned the project and tried rebuilding but still no luck to understand what exactly is wrong.
I tried searching on SOF to fix the problem by removing the conflicting jar files but still no success.
Anyone out there to understand the log file which is below.
Dec 9, 2016 12:16:05 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\MyEclipse9\Common\binary\com.sun.java.jdk.win32.x86_64_1.6.0.013\bin;C:\MyEclipse9\Common\plugins\com.genuitec.eclipse.easie.tomcat.myeclipse_9.0.0.me201105051700\tomcat\bin
Dec 9, 2016 12:16:05 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Dec 9, 2016 12:16:05 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 313 ms
Dec 9, 2016 12:16:05 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 9, 2016 12:16:05 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.13
Dec 9, 2016 12:16:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\i\Desktop\Workspaces\MyEclipse 9\.metadata\.me_tcat\webapps\na20\WEB-INF\lib\javax.servlet-3.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 9, 2016 12:16:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\i\Desktop\Workspaces\MyEclipse 9\.metadata\.me_tcat\webapps\na20\WEB-INF\lib\javax.servlet-api-3.0.1.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 9, 2016 12:16:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\i\Desktop\Workspaces\MyEclipse 9\.metadata\.me_tcat\webapps\na20\WEB-INF\lib\servlet-api-2.5.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 9, 2016 12:16:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\i\Desktop\Workspaces\MyEclipse 9\.metadata\.me_tcat\webapps\na20\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 9, 2016 12:16:09 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(C:\Users\i\Desktop\Workspaces\MyEclipse 9\.metadata\.me_tcat\webapps\na20\WEB-INF\lib\servletapi-2.3.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Dec 9, 2016 12:16:11 PM com.sun.faces.config.ConfigureListener contextInitialized
INFO: Initializing Mojarra 2.1.6 (SNAPSHOT 20111206) for context '/na20'
Dec 9, 2016 12:16:22 PM org.icefaces.impl.push.servlet.ICEpushResourceHandler <init>
INFO: Ajax Push Resource Handling not available: java.lang.NoClassDefFoundError: org/icepush/servlet/MainServlet
Dec 9, 2016 12:16:22 PM org.icefaces.util.EnvConfig init
INFO: ICEfaces Configuration:
org.icefaces.render.auto: true [default]
org.icefaces.autoid: true [default]
org.icefaces.aria.enabled: true [default]
org.icefaces.blockUIOnSubmit: false [default]
org.icefaces.compressDOM: false [default]
org.icefaces.compressResources: true [default]
org.icefaces.connectionLostRedirectURI: null [default]
org.icefaces.deltaSubmit: false [default]
org.icefaces.lazyPush: true [default]
org.icefaces.sessionExpiredRedirectURI: null [default]
org.icefaces.standardFormSerialization: false [default]
org.icefaces.strictSessionTimeout: false [default]
org.icefaces.windowScopeExpiration = 1000 [default]
org.icefaces.mandatoryResourceConfiguration: null [default]
org.icefaces.uniqueResourceURLs: true [default]
org.icefaces.lazyWindowScope: true [default]
org.icefaces.disableDefaultErrorPopups: false [default]
Dec 9, 2016 12:16:22 PM org.icefaces.impl.push.servlet.ICEpushResourceHandler <init>
INFO: Ajax Push Resource Handling not available: java.lang.NoClassDefFoundError: org/icepush/servlet/MainServlet
Dec 9, 2016 12:16:22 PM org.icefaces.impl.renderkit.DOMRenderKit <clinit>
INFO:
ICEsoft Technologies Inc.
ICEfaces 2.0.2
Build number: 8
Revision: 24561
Dec 9, 2016 12:16:23 PM org.primefaces.webapp.PostConstructApplicationEventListener processEvent
INFO: Running on PrimeFaces 3.4
Dec 9, 2016 12:16:23 PM com.sun.faces.config.ConfigureListener contextInitialized
SEVERE: Critical error during deployment:
java.lang.NoSuchMethodError: org.icefaces.util.EnvUtils.isCoallesceResources(Ljavax/faces/context/FacesContext;)Z
at org.icefaces.impl.application.CoalescingResourceHandler$RegisterListener.processEvent(CoalescingResourceHandler.java:195)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2168)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2144)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:302)
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:600)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
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.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
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:566)
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)
Dec 9, 2016 12:16:23 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class com.sun.faces.config.ConfigureListener
java.lang.RuntimeException: java.lang.NoSuchMethodError: org.icefaces.util.EnvUtils.isCoallesceResources(Ljavax/faces/context/FacesContext;)Z
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:292)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4334)
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.deployDirectory(HostConfig.java:920)
at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
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:566)
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)
Caused by: java.lang.NoSuchMethodError: org.icefaces.util.EnvUtils.isCoallesceResources(Ljavax/faces/context/FacesContext;)Z
at org.icefaces.impl.application.CoalescingResourceHandler$RegisterListener.processEvent(CoalescingResourceHandler.java:195)
at javax.faces.event.SystemEvent.processListener(SystemEvent.java:106)
at com.sun.faces.application.ApplicationImpl.processListeners(ApplicationImpl.java:2168)
at com.sun.faces.application.ApplicationImpl.invokeListenersFor(ApplicationImpl.java:2144)
at com.sun.faces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:302)
at com.sun.faces.config.ConfigManager.publishPostConfigEvent(ConfigManager.java:600)
at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:369)
at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:225)
... 24 more
Dec 9, 2016 12:16:23 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
Dec 9, 2016 12:16:24 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Dec 9, 2016 12:16:24 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/na20] startup failed due to previous errors
Dec 9, 2016 12:16:24 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Dec 9, 2016 12:16:24 PM org.icefaces.impl.push.servlet.ICEpushResourceHandler notifyContextShutdown
INFO: MainServlet not found in application scope: java.lang.NullPointerException
Dec 9, 2016 12:16:24 PM com.sun.faces.lifecycle.ELResolverInitPhaseListener populateFacesELResolverForJsp
INFO: JSF1027: [null] The ELResolvers for JSF were not registered with the JSP container.
Dec 9, 2016 12:16:25 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Dec 9, 2016 12:16:25 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Dec 9, 2016 12:16:25 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/20 config=null
Dec 9, 2016 12:16:25 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 19743 ms
Looks like it might be a class loading issue. Is the icefaces jar included at multiple levels in the Tomcat class loading hierarchy? Looking at the stack trace, the processEvent method in the org.icefaces.impl.application.CoalescingResourceHandler.RegisterListener class is calling method isCoallesceResources in the org.icefaces.util.EnvUtils class. Now, those two classes should be in the same icefaces jar file, and so should be at compatible versions. However, the called method is not in the Envutils class that is currently loaded (note that the method was added in icefaces 3.3, but also the CoelescingResourceHandler class was added then). So it would seem that the EventUtils class was loaded from an icefaces jar file earlier than version 3.3, whilst the CoalescingResourceHandler class was loaded from an icefaces jar file of version 3.3 or above.
Ensure that all icefaces.jar files in the Tomcat class loading hierarchy are of the same version or, better still, ensure that the jar file doesn't appear in more than one level of the hierarchy.
Error I am facing is that when I start my tomcat server getting this error after successful deployment using ant.
Jars
org.springframework.beans_3.0.5.RELEASE.jar
org.springframework.context-3.2.0.release.jar
org.springframework.jdbc.jar
org.springframework.orm.jar
org.springframework.transaction_3.0.5.RELEASE.jar
spring-core-3.1.1.RELEASE.jar
spring-dao-2.0.7.jar
spring-test-4.0.0.RELEASE.jar
spring-web-3.2.1.RELEASE-sources.jar
spring-webmvc.jar
ERROR
Sep 06, 2014 8:39:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.30 using APR version 1.4.8.
Sep 06, 2014 8:39:18 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Sep 06, 2014 8:39:20 PM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1g 7 Apr 2014)
Sep 06, 2014 8:39:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8090"]
Sep 06, 2014 8:39:21 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Sep 06, 2014 8:39:21 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3466 ms
Sep 06, 2014 8:39:21 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Sep 06, 2014 8:39:21 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/8.0.9
Sep 06, 2014 8:39:21 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Users\Chander\apache-tomcat8\webapps\springapp.war
Sep 06, 2014 8:39:25 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Sep 06, 2014 8:39:25 PM org.springframework.web.context.ContextLoader initWebApplicationContext
INFO: Root WebApplicationContext: initialization started
Sep 06, 2014 8:39:25 PM org.springframework.web.context.support.XmlWebApplicationContext prepareRefresh
INFO: Refreshing org.springframework.web.context.support.XmlWebApplicationContext#4359712c: display name [Root WebApplicationContext]; startup date [Sat Sep 06 20:39:25 IST 2014]; root of context hierarchy
Sep 06, 2014 8:39:26 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from ServletContext resource [/WEB-INF/springapp-servlet.xml]
Sep 06, 2014 8:39:28 PM org.springframework.web.context.ContextLoader initWebApplicationContext
SEVERE: Context initialization failed
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/springapp-servlet.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
... 26 more
Sep 06, 2014 8:39:28 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/springapp-servlet.xml]; nested exception is java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:420)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:342)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:310)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:143)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:178)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:149)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:124)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:92)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:123)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:422)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4760)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5184)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:919)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1704)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.IllegalStateException: Context namespace element 'component-scan' and its parser class [org.springframework.context.annotation.ComponentScanBeanDefinitionParser] are only available on JDK 1.5 and higher
at org.springframework.context.config.ContextNamespaceHandler$1.parse(ContextNamespaceHandler.java:65)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:69)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1297)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1287)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:135)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:92)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:507)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)
... 26 more
Sep 06, 2014 8:39:28 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Error listenerStart
Sep 06, 2014 8:39:29 PM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [431] milliseconds.
Sep 06, 2014 8:39:29 PM org.apache.catalina.core.StandardContext startInternal
SEVERE: Context [/springapp] startup failed due to previous errors
Sep 06, 2014 8:39:29 PM org.apache.catalina.core.ApplicationContext log
INFO: Closing Spring root WebApplicationContext
Sep 06, 2014 8:39:29 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deployment of web application archive C:\Users\Chander\apache-tomcat8\webapps\springapp.war has finished in 7,903 ms
Sep 06, 2014 8:39:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Chander\apache-tomcat8\webapps\docs
Sep 06, 2014 8:39:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Chander\apache-tomcat8\webapps\docs has finished in 127 ms
Sep 06, 2014 8:39:29 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Chander\apache-tomcat8\webapps\examples
Sep 06, 2014 8:39:31 PM org.apache.catalina.core.ApplicationContext log
INFO: ContextListener: contextInitialized()
Sep 06, 2014 8:39:31 PM org.apache.catalina.core.ApplicationContext log
INFO: SessionListener: contextInitialized()
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Chander\apache-tomcat8\webapps\examples has finished in 1,841 ms
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Chander\apache-tomcat8\webapps\host-manager
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Chander\apache-tomcat8\webapps\host-manager has finished in 121 ms
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Chander\apache-tomcat8\webapps\manager
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Chander\apache-tomcat8\webapps\manager has finished in 121 ms
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Users\Chander\apache-tomcat8\webapps\ROOT
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deployment of web application directory C:\Users\Chander\apache-tomcat8\webapps\ROOT has finished in 89 ms
Sep 06, 2014 8:39:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8090"]
Sep 06, 2014 8:39:31 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Sep 06, 2014 8:39:31 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 10412 ms
You have the MajorJavaVersion > the highest version checked in the the class AnnotationConfigBeanDefinitionParser.
For example in my case, after removing Java 1.8 , the error goes away.
So, you can either use a newer Spring library or remove/change your major java so that the old code in your Spring library can check successfully.
You have problem with your spring library versions, I see you are mixing all spring versions: 3.0.5, 3.1.1, 3.2.1, 2.0.7 and 4.0.0. Try to use the same version of spring libraries, for example 3.2.1 for all your spring framework dependencies and see if that fixes.
I am getting the below error while deploying my application in Tomcat 6.0.26 on eclipse Juno. I am using struts for web content and spring for ORM.
I have tried cleaning up and building up the Workspace.
Mar 19, 2013 5:33:30 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:CPCPROJ' did not find a matching property.
Mar 19, 2013 5:33:30 PM 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: C:\Program Files\Java\jdk1.6.0_18\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_18\jre\bin;C:/Program Files/Java/jdk1.6.0_18/bin/../jre/bin/client;C:/Program Files/Java/jdk1.6.0_18/bin/../jre/bin;C:/Program Files/Java/jdk1.6.0_18/bin/../jre/lib/i386;C:\Program Files\Java\jdk1.6.0_18\bin;E:\Oracle\product\10.1.0\Client_2\bin;E:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin\client;E:\Oracle\product\10.1.0\Client_2\jre\1.4.2\bin;E:\Oracle\product\10.1.0\Client_1\bin;E:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin\client;E:\Oracle\product\10.1.0\Client_1\jre\1.4.2\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\Program Files\Windows Imaging\;C:\Program Files\Java\jdk1.6.0_18\bin;E:\456789\Venkat\Servers\Tomcat\bin;E:\456789\Venkat\Servers\JBoss\bin;E:\apache-maven-2.2.1\bin;E:\456789\Venkat\Servers\apache-ant-1.7.0\bin;.;C:\Documents and Settings\456789\My Documents\Downloads\eclipse-jee-kepler-M4-win32\eclipse;
Mar 19, 2013 5:33:30 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Mar 19, 2013 5:33:30 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 769 ms
Mar 19, 2013 5:33:30 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Mar 19, 2013 5:33:30 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.20
Mar 19, 2013 5:33:31 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\356387\Venkat\Juno\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\CPCPROJ\WEB-INF\lib\j2ee-1.4.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 19, 2013 5:33:31 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(E:\356387\Venkat\Juno\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\CPCPROJ\WEB-INF\lib\servlet-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Mar 19, 2013 5:33:32 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN No appenders could be found for logger (com.tcs.framework.configuration.TCSCommonsConfigurationFactory).
log4j:WARN Please initialize the log4j system properly.
Mar 19, 2013 5:33:43 PM org.apache.catalina.core.ApplicationContext log
INFO: Marking servlet action as unavailable
Mar 19, 2013 5:33:43 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /CPCPROJ threw load() exception
javax.servlet.UnavailableException
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:402)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1173)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:993)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4149)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4458)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:722)
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:583)
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)
Mar 19, 2013 5:33:44 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring FrameworkServlet 'CPCPROJ'
Mar 19, 2013 5:33:47 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Mar 19, 2013 5:33:47 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Mar 19, 2013 5:33:47 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/31 config=null
Mar 19, 2013 5:33:47 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 16435 ms
I think the data you provided in web.xml is not proper please check it once.
see here for details
Could somebody help me with this error regarding starting Tomcat + spring ?
I already clean everything, and when I go to localhost:8080/springmvc/hello_world.html I got a 404 page error.
Thank you so much guys.
02/06/2012 00:09:59 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: C:\Arquivos de programas\Java\jre6\bin;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:/Arquivos de programas/Java/jre6/bin/client;C:/Arquivos de programas/Java/jre6/bin;C:/Arquivos de programas/Java/jre6/lib/i386;C:\Ruby193\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Arquivos de programas\Java\jdk1.6.0_25\bin;C:\apache-maven-3.0.3\bin;C:\spring-roo-1.1.3.RELEASE\bin;C:\Arquivos de programas\Android\android-sdk\tools;C:\Arquivos de programas\QuickTime\QTSystem\;C:\eclipse;;.
02/06/2012 00:09:59 org.apache.tomcat.util.digester.SetPropertiesRule begin
AVISO: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:SpringMVC' did not find a matching property.
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
02/06/2012 00:10:00 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 791 ms
02/06/2012 00:10:00 org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
02/06/2012 00:10:00 org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
02/06/2012 00:10:00 org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
02/06/2012 00:10:00 org.apache.catalina.startup.Catalina start
INFO: Server startup in 525 ms
if you found page 404, then it might the hello_world.htm page not found.
The easiest way to start is to put in the startup page as index.html so page can be loded in from contex root.
Based on your log output your application is not deploying. Are you sure you added your project to your server? I'm assuming you are using Eclipse. Right click on your Server and select Add / Remove. Your application should be under the configured.
Me and my team are trying to setup a Spring project, and would like to implement REST services. But when I try to deploy it to tomcat 7, I get an error. Here is the output:
Jan 22, 2012 9:39:34 PM 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/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
Jan 22, 2012 9:39:34 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:niths' did not find a matching property.
Jan 22, 2012 9:39:34 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Jan 22, 2012 9:39:34 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Jan 22, 2012 9:39:34 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 497 ms
Jan 22, 2012 9:39:34 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Jan 22, 2012 9:39:34 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.25
Jan 22, 2012 9:39:34 PM org.apache.catalina.startup.ContextConfig webConfig
SEVERE: Unable to determine URL for WEB-INF/classes
javax.naming.NameNotFoundException: Resource /WEB-INF/classes not found
at org.apache.naming.resources.BaseDirContext.listBindings(BaseDirContext.java:733)
at org.apache.naming.resources.ProxyDirContext.listBindings(ProxyDirContext.java:546)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1197)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:825)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:300)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5161)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1568)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1558)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Jan 22, 2012 9:39:37 PM org.apache.catalina.core.ApplicationContext log
INFO: No Spring WebApplicationInitializer types detected on classpath
Jan 22, 2012 9:39:37 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Jan 22, 2012 9:39:37 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Jan 22, 2012 9:39:37 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3208 ms
I have tried Googling javax.naming.NameNotFoundException: Resource /WEB-INF/classes not found without luck. I am guessing the project was not deployed at all.
The project is hosted on this GitHub repo.
Deployment descriptor
The REST controller
I have added a very simple method for testing my application: getBaz(), which I guess would be invoked at localhost:8080/niths/rest/baz.
I am having a hard time figuring out what is missing as this is my first Spring project, and would therefore be grateful if someone skilled in the arts of Spring would point out what's the problem!
From your pom.xml file, it seems that you excluded your classes and libs from the generated war :
<warSourceExcludes>WEB-INF/classes/**,WEB-INF/lib/**</warSourceExcludes>
Try again by removing this line.