From classes that cannot be found, seems you are missing libs on
Tomcat 5.5
:
javax.annotation.PostConstruct : annotations-api.jar
org.apache.commons.dbcp.BasicDataSourceFactory : commons-dbcp.jar
Seems they are now by default in Tomcat 6, but not in 5.5 if I remember
well.
Hope it will helps.
On Thu, 9 Jul 2009 22:44:54 -0700 (PDT), Ashok Deivasigamani
<ashokdeiva(a)gmail.com> wrote:
Hi
I am not able to deply the drools guvnor .war file in Apache Tomcat 5.5
server.
Deploying the .war gives the following exception
SEVERE: Exception sending context initialized event to listener instance
of
class org.jboss.seam.servlet.SeamListener
java.lang.RuntimeException: Could not create Component: assetLockManager
at
org.jboss.seam.init.Initialization.addComponent(Initialization.java:1155)
at
org.jboss.seam.init.Initialization.installComponents(Initialization.java:1071)
at
org.jboss.seam.init.Initialization.init(Initialization.java:720)
at
org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3764)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:615)
> at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
> at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
> Caused by: java.lang.TypeNotPresentException: Type
> javax.annotation.PostConstruct not present
at
com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:38)
at
com.ibm.oti.reflect.AnnotationHelper.getDeclaredAnnotations(AnnotationHelper.java:50)
> at com.ibm.oti.reflect.Method.getDeclaredAnnotations(Method.java:31)
> at java.lang.reflect.Method.getDeclaredAnnotations(Method.java:704)
at
java.lang.reflect.AccessibleObject.getAnnotations(AccessibleObject.java:191)
> at com.ibm.oti.reflect.Method.getAnnotation(Method.java:20)
> at java.lang.reflect.Method.getAnnotation(Method.java:693)
at
java.lang.reflect.AccessibleObject.isAnnotationPresent(AccessibleObject.java:187)
at org.jboss.seam.intercept.Interceptor.init(Interceptor.java:130)
at org.jboss.seam.intercept.Interceptor.<init>(Interceptor.java:97)
at org.jboss.seam.Component.initDefaultInterceptors(Component.java:1029)
at org.jboss.seam.Component.initInterceptors(Component.java:927)
at org.jboss.seam.Component.<init>(Component.java:251)
at org.jboss.seam.Component.<init>(Component.java:205)
at
org.jboss.seam.init.Initialization.addComponent(Initialization.java:1139)
... 18 more
Caused by: java.lang.ClassNotFoundException:
javax.annotation.PostConstruct
> at java.lang.Class.forNameImpl(Native Method)
> at java.lang.Class.forName(Class.java:160)
at
com.ibm.oti.reflect.AnnotationHelper.getAnnotation(AnnotationHelper.java:33)
... 32 more
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/drools-guvnor] startup failed due to previous errors
Jul 9, 2009 10:22:00 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\ViewStore\adeivasigamani_cmsToRS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jodbweb\WEB-INF\lib\jsp-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class:
javax/servlet/jsp/JspPage.class
Jul 9, 2009 10:22:00 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\ViewStore\adeivasigamani_cmsToRS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jodbweb\WEB-INF\lib\servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class:
javax/servlet/Servlet.class
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Error configuring application listener of class
com.odb.web.servlet.MemoryCleanupListener
java.lang.ClassNotFoundException:
com.odb.web.servlet.MemoryCleanupListener
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1386)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1232)
at
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3712)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4216)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
> at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:615)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext
listenerStart
SEVERE: Skipped installing application listeners due to previous error(s)
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jodbweb] startup failed due to previous errors
Jul 9, 2009 10:22:00 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\ViewStore\adeivasigamani_cmsToRS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jodbcache\WEB-INF\lib\jsp-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class:
javax/servlet/jsp/JspPage.class
Jul 9, 2009 10:22:00 PM org.apache.catalina.loader.WebappClassLoader
validateJarFile
INFO:
validateJarFile(C:\ViewStore\adeivasigamani_cmsToRS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\jodbcache\WEB-INF\lib\servlet-api.jar)
- jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending
class:
javax/servlet/Servlet.class
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not
load resource factory class [Root exception is
java.lang.ClassNotFoundException:
org.apache.commons.dbcp.BasicDataSourceFactory]
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 9, 2009 10:22:00 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jodbcache] startup failed due to previous errors
Jul 9, 2009 10:22:00 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8081
Jul 9, 2009 10:22:01 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8010
Jul 9, 2009 10:22:01 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/16 config=null
Jul 9, 2009 10:22:01 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 9, 2009 10:22:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 3993 ms
Kindly give some solution to deploy