[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - ERROR [STDERR] java.lang.reflect.InvocationTargetException

vikgop do-not-reply at jboss.com
Tue Sep 5 01:08:00 EDT 2006


Getting the error 
ERROR [STDERR] java.lang.reflect.InvocationTargetException.

Also somewhere below in the server log file getting the error 
ERROR [STDERR] Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException

And finally getting the following error
ERROR [[/rfHighland]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
  | java.lang.IllegalArgumentException: exception invoking: startup

Im using JBoss 4.0.4GA, JBoss Seam, and jbpm in my project. I have all the required jar files in my lib folder & ear, like jbpm-3.1.1.jar, jbpm-identity-3.1.1.jar and ehcache-1.1.jar.

Is there any configuration setting that i need to change in the hibernate.cg.xml file that would not give me the error. Like may be to disable the second level cache or something like that.

Please check the lines below for the server log.

10:02:38,849 INFO  [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
  | 10:02:38,849 INFO  [DriverManagerConnectionProvider] Hibernate connection pool size: 20
  | 10:02:38,849 INFO  [DriverManagerConnectionProvider] autocommit mode: false
  | 10:02:38,849 INFO  [DriverManagerConnectionProvider] using driver: org.gjt.mm.mysql.Driver at URL: jdbc:mysql://localhost/rea
  | chforce
  | 10:02:38,849 INFO  [DriverManagerConnectionProvider] connection properties: {user=root, password=root}
  | 10:02:38,864 INFO  [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
  | 10:02:38,864 INFO  [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.8 ( $Date: 2005/04/
  | 14 20:36:13 $, $Revision: 1.27.4.64 $ )
  | 10:02:38,864 INFO  [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
  | 10:02:38,880 INFO  [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
  | 10:02:38,880 INFO  [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-
  | write or transactional second-level cache is not recommended)
  | 10:02:38,880 INFO  [SettingsFactory] Automatic flush during beforeCompletion(): disabled
  | 10:02:38,880 INFO  [SettingsFactory] Automatic session close at end of transaction: disabled
  | 10:02:38,880 INFO  [SettingsFactory] JDBC batch size: 15
  | 10:02:38,880 INFO  [SettingsFactory] JDBC batch updates for versioned data: disabled
  | 10:02:38,880 INFO  [SettingsFactory] Scrollable result sets: enabled
  | 10:02:38,880 INFO  [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
  | 10:02:38,880 INFO  [SettingsFactory] Connection release mode: auto
  | 10:02:38,896 INFO  [SettingsFactory] Maximum outer join fetch depth: 2
  | 10:02:38,896 INFO  [SettingsFactory] Default batch fetch size: 1
  | 10:02:38,896 INFO  [SettingsFactory] Generate SQL with comments: disabled
  | 10:02:38,896 INFO  [SettingsFactory] Order SQL updates by primary key: disabled
  | 10:02:38,896 INFO  [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
  | 10:02:38,896 INFO  [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
  | 10:02:38,896 INFO  [SettingsFactory] Query language substitutions: {}
  | 10:02:38,896 INFO  [SettingsFactory] Second-level cache: enabled
  | 10:02:38,896 INFO  [SettingsFactory] Query cache: disabled
  | 10:02:38,911 INFO  [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
  | 10:02:38,911 ERROR [STDERR] java.lang.reflect.InvocationTargetException
  | 10:02:38,911 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:02:38,911 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:02:38,911 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:38,911 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:38,911 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invoke(Reflections.java:13)
  | 10:02:38,911 ERROR [STDERR]     at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:32)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.Component.newInstance(Component.java:1312)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1263)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.Component.getInstance(Component.java:1253)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:125)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.contexts.Lifecycle.endInitialization(Lifecycle.java:104)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.init.Initialization.init(Initialization.java:196)
  | 10:02:38,927 ERROR [STDERR]     at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:32)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3729)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.start(StandardContext.java:4187)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
  | 10:02:38,942 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:02:38,942 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:02:38,942 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:38,942 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:38,942 ERROR [STDERR]     at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | 10:02:38,958 ERROR [STDERR]     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 10:02:38,958 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:38,958 ERROR [STDERR]     at org.apache.catalina.core.StandardContext.init(StandardContext.java:5116)
  | 10:02:38,958 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:02:38,958 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:02:38,958 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:38,958 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:38,958 ERROR [STDERR]     at org.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
  | 10:02:38,958 ERROR [STDERR]     at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.web.WebModule.startModule(WebModule.java:83)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.web.WebModule.startService(WebModule.java:61)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
  | 10:02:38,974 ERROR [STDERR]     at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
  | 10:02:38,974 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor101.invoke(Unknown Source)
  | 10:02:38,974 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:38,989 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
  | 10:02:38,989 ERROR [STDERR]     at $Proxy0.start(Unknown Source)
  | 10:02:38,989 ERROR [STDERR]     at org.jboss.system.ServiceController.start(ServiceController.java:417)
  | 10:02:39,005 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
  | 10:02:39,005 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:39,005 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:39,005 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 10:02:39,005 ERROR [STDERR]     at $Proxy39.start(Unknown Source)
  | 10:02:39,020 ERROR [STDERR]     at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
  | 10:02:39,020 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | 10:02:39,020 ERROR [STDERR]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  | 10:02:39,020 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:39,020 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:39,020 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 10:02:39,020 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 10:02:39,020 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 10:02:39,020 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationIntercep
  | tor.java:142)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.
  | java:238)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.ws.server.WebServiceDeployer.start(WebServiceDeployer.java:117)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInte
  | rceptorSupport.java:188)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
  | 10:02:39,036 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 10:02:39,052 ERROR [STDERR]     at $Proxy40.start(Unknown Source)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1007)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:997)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:808)
  | 10:02:39,052 ERROR [STDERR]     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:771)
  | 10:02:39,052 ERROR [STDERR]     at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
  | 10:02:39,067 ERROR [STDERR]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  | 10:02:39,067 ERROR [STDERR]     at java.lang.reflect.Method.invoke(Method.java:585)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationIntercep
  | tor.java:142)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
  | 10:02:39,067 ERROR [STDERR]     at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
  | 10:02:39,083 ERROR [STDERR]     at $Proxy6.deploy(Unknown Source)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:610)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploy
  | mentScanner.java:263)
  | 10:02:39,083 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeployme
  | ntScanner.java:274)
  | 10:02:39,099 ERROR [STDERR]     at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymen
  | tScanner.java:225)
  | 10:02:39,099 ERROR [STDERR] Caused by: java.lang.NoClassDefFoundError: net/sf/ehcache/CacheException
  | 10:02:39,099 ERROR [STDERR]     at java.lang.Class.getDeclaredConstructors0(Native Method)
  | 10:02:39,099 ERROR [STDERR]     at java.lang.Class.privateGetDeclaredConstructors(Class.java:2328)
  | 10:02:39,099 ERROR [STDERR]     at java.lang.Class.getConstructor0(Class.java:2640)
  | 10:02:39,099 ERROR [STDERR]     at java.lang.Class.newInstance0(Class.java:321)
  | 10:02:39,099 ERROR [STDERR]     at java.lang.Class.newInstance(Class.java:303)
  | 10:02:39,099 ERROR [STDERR]     at org.hibernate.cfg.SettingsFactory.createCacheProvider(SettingsFactory.java:346)
  | 10:02:39,114 ERROR [STDERR]     at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:220)
  | 10:02:39,114 ERROR [STDERR]     at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928)
  | 10:02:39,114 ERROR [STDERR]     at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211)
  | 10:02:39,114 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceService
  | Factory.java:90)
  | 10:02:39,114 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:7
  | 4)
  | 10:02:39,114 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
  | 10:02:39,114 ERROR [STDERR]     at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:216
  | )
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:434)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.graph.node.DbSubProcessResolver.findSubProcess(DbSubProcessResolver.java:43)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.graph.node.ProcessState.read(ProcessState.java:79)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.jpdl.xml.JpdlXmlReader.readNodes(JpdlXmlReader.java:242)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:147)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
  | 10:02:39,130 ERROR [STDERR]     at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
  | 10:02:39,130 ERROR [STDERR]     at org.jboss.seam.core.Jbpm.installProcessDefinitions(Jbpm.java:160)
  | 10:02:39,130 ERROR [STDERR]     at org.jboss.seam.core.Jbpm.startup(Jbpm.java:58)
  | 10:02:39,145 ERROR [STDERR]     ... 105 more
  | 10:02:39,145 ERROR [[/rfHighland]] Exception sending context initialized event to listener instance of class org.jboss.seam.s
  | ervlet.SeamListener
  | java.lang.IllegalArgumentException: exception invoking: startup
  |         at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:43)
  |         at org.jboss.seam.Component.callComponentMethod(Component.java:1334)
  |         at org.jboss.seam.Component.callCreateMethod(Component.java:1322)
  |         at org.jboss.seam.Component.newInstance(Component.java:1312)

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3969365#3969365

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3969365



More information about the jboss-user mailing list