[EJB/JBoss] - error in deploying EJBS/jboss4.0.3sp1 / log4j? xerces?
by MmarcoM
hi all,
i m really lost in this problem... :(
i have been deploying EJBs which inside have a log4j.properties file
i have been receiving following error
ERROR: invalid console appender config detected, console stream is looping
by browsing web, i found that as a solution ((since also jbos suses log4j) i needed to remove my log4j.properties from my jars
I did it, and redeployed EJBs, b ut after doiing that i got followng exception while deploying EJBs..
| 2006-08-20 17:09:15,656 DEBUG [org.jboss.ejb.EntityContainer] Starting failed jboss.j2ee:jndiName=commons/ejb/partners/contact/ContactLocalHome,service=EJB
| org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.<init>(JDBCCreateBeanClassInstanceCommand.java:56)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:124)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:381)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
| at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy56.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:395)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy34.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:627)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
| at org.jboss.Main.boot(Main.java:187)
| at org.jboss.Main$1.run(Main.java:438)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:614)
| at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
| at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
| ... 139 more
| Caused by: java.lang.ExceptionInInitializerError
| at org.apache.log4j.Logger.getRootLogger(Logger.java:135)
| at org.apache.log4j.BasicConfigurator.configure(BasicConfigurator.java:45)
| at com.waersystems.util.logging.LogHelper.init(LogHelper.java:115)
| at com.waersystems.util.logging.LogHelper.<init>(LogHelper.java:71)
| at com.waersystems.ejb.util.sequencegenerator.SequenceBean.<init>(SequenceBean.java:21)
| at com.waersystems.ejb.util.sequencegenerator.SequenceCMP.<init>(SequenceCMP.java:9)
| at com.waersystems.ejb.util.sequencegenerator.SequenceCMP$Proxy.<init>(<generated>)
| ... 146 more
| Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
| at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:694)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
| at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
| at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
| ... 153 more
| 2006-08-20 17:09:15,656 WARN [org.jboss.system.ServiceController] Problem starting service jboss.j2ee:jndiName=commons/ejb/partners/contact/ContactLocalHome,service=EJB
| org.jboss.util.NestedRuntimeException: Failed to create new proxy target; - nested throwable: (java.lang.reflect.InvocationTargetException)
| at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:52)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCCreateBeanClassInstanceCommand.<init>(JDBCCreateBeanClassInstanceCommand.java:56)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCCommandFactory.createCreateBeanClassInstanceCommand(JDBCCommandFactory.java:124)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.startStoreManager(JDBCStoreManager.java:463)
| at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManager.java:381)
| at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManager.java:157)
| at org.jboss.ejb.EntityContainer.startService(EntityContainer.java:340)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy56.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:395)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.GeneratedMethodAccessor4.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy34.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:627)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy35.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:979)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy6.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:319)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:507)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:192)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:265)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:274)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:230)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:943)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:428)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:285)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:989)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:790)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:753)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:737)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:118)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:127)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:245)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:644)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:453)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:330)
| at org.jboss.Main.boot(Main.java:187)
| at org.jboss.Main$1.run(Main.java:438)
| at java.lang.Thread.run(Unknown Source)
| Caused by: java.lang.reflect.InvocationTargetException
| at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
| at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
| at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
| at java.lang.reflect.Constructor.newInstance(Unknown Source)
| at org.jboss.proxy.compiler.Proxies$Impl.newTarget(Proxies.java:614)
| at org.jboss.proxy.compiler.Proxies.newTarget(Proxies.java:78)
| at org.jboss.proxy.compiler.Proxy.newProxyInstance(Proxy.java:49)
| ... 139 more
| Caused by: java.lang.ExceptionInInitializerError
| at org.apache.log4j.Logger.getRootLogger(Logger.java:135)
| at org.apache.log4j.BasicConfigurator.configure(BasicConfigurator.java:45)
| at com.waersystems.util.logging.LogHelper.init(LogHelper.java:115)
| at com.waersystems.util.logging.LogHelper.<init>(LogHelper.java:71)
| at com.waersystems.ejb.util.sequencegenerator.SequenceBean.<init>(SequenceBean.java:21)
| at com.waersystems.ejb.util.sequencegenerator.SequenceCMP.<init>(SequenceCMP.java:9)
| at com.waersystems.ejb.util.sequencegenerator.SequenceCMP$Proxy.<init>(<generated>)
| ... 146 more
| Caused by: java.lang.ClassCastException: org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
| at javax.xml.parsers.DocumentBuilderFactory.newInstance(Unknown Source)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:694)
| at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:618)
| at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:468)
| at org.apache.log4j.LogManager.<clinit>(LogManager.java:122)
|
i am really lost.. i don't know how to fix this.... can anyone help me out?
thanks in advance and regards
marco
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966329#3966329
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966329
19 years, 8 months
[JBoss Seam] - variable binding problem
by texan
I'm suddenly having trouble binding <h:inputText> values to the a bean when the submit button is activated.
Some details:
1. action listener is a Session scope EJB session
2. the bean in question is an object I'm using to hold user inputs for searching. It is marked like this in the session bean:
@In(required = false)
@Out(required=false)
private AlertFilter alertFilter;
3. If I preset a value in the bean (alert filter), the value is displayed in the input field on the page.
4. Nothing that I enter on the page is making it to the bean (alert filter) when I submit (<h:commandButton action=#{alertSession.search} value="Search" />)
5. The input fields are simple:
<h:inputText value="#{alertFilter.senderName}" />
I'm trying to avoid posting all of the code, as the classes have a lot of other junk in them. I'm hoping someone can spot the problem by the clue that the input fields will display the contents of the bean but anything typed into the fields go into the bit bucket when I submit.
BTW, I'm using Facelets with the Tomahawk xml descriptor referenced from faces-config.xml.
Let me know if I need to post my config files.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966327#3966327
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966327
19 years, 8 months
[JBoss Seam] - Re: CRUD <-- Facelets installation guide ( todo list for peo
by nicola9000
CORRIGE
1. Like always remember to change JBOSS.home in build.properties
2. build.xml
add this [!-- EAR --]
[fileset id="seam.lib" dir="lib"]
[include name="jboss-seam.jar"/]
[/fileset]
and this
[target name="ear" ....
[zipfileset refid="seam.lib"/]
3. Add this include to enable auto.interception
[fileset id="ejb3.root" ...
[include name="META-INF/ejb-jar.xml"/]
4. file seam.properties delete all and leave only this 1
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
5. web.xml
you can use booking example file, exactly like it is
6. component.xml. I have it so, but i think is not so important
[components]
[component name="org.jboss.seam.core.init"]
[!-- JNDI name pattern for JBoss EJB 3.0 --]
[property name="jndiPattern"]#{ejbName}/local[/property]
[/component]
[/components]
7. faces-confilg.xml
Important !!
[!-- Facelets support --]
[application]
[view-handler]org.jboss.seam.ui.facelet.SeamFaceletViewHandler[/view-handler]
[locale-config]
[default-locale]en[/default-locale]
[/locale-config]
[/application]
[lifecycle]
[phase-listener]org.jboss.seam.jsf.SeamPhaseListener[/phase-listener]
[/lifecycle]
8. Add locale files message_XX in WEB-INF/classes
9. persistence.xml
Modify it with your database ( and dialect )
change it so
[property name="hibernate.hbm2ddl.auto" value="update"/]
delete this line
[!--property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManager"/--]
10. ejb-jar
[ejb-jar]
[assembly-descriptor]
[interceptor-binding]
[ejb-name]*[/ejb-name]
[interceptor-class]org.jboss.seam.ejb.SeamInterceptor[/interceptor-class]
[/interceptor-binding]
[/assembly-descriptor]
[/ejb-jar]
11.jboss-abb
[jboss-app]
[loader-repository]
seam.jboss.org:loader=xage
[/loader-repository]
[/jboss-app]
12. application.xml. Add this module
[module]
[java]jboss-seam.jar[/java]
[/module]
13. WEB-INF/lib : add these libraries
el-api, el-ri,jboss-seam-debug, jboss-seam-ui, jsf-facelet
14. Project path-lib add only these libs :
hibernate-all, jboss-ejb3-all, jboss-seam, myface-api.jar
USE ALL BOOKING-EXAMPLE VERSION LIBS
15.
replace in all java.files:
javax.ejb.Interceptors --] javax.interceptor.Interceptors
16. Every where there is a ResourceBundle declaration change it so
@In(create=true)
private transient ResourceBundle resourceBundle;
17. And fix the EM declarations so
@PersistenceContext
private EntityManager entityManager;
18. Now you can //comment some 1-N getters to compile the project
19. remember you can use import.sql to populate 1st time your db with create-drop option
I hope i did not forget many things
Good Work , and have a nice sunday :-)
Ciao Nicola
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966323#3966323
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966323
19 years, 8 months
[JBoss Seam] - CRUD <-- Facelets installation guide ( todo list for people@
by nicola9000
CRUD <-- Facelets installation guide ( todo list for people@jboss to fix wizard :-) )
hi mate
1. Like always remember to change JBOSS.HOME in build.properties
2. build.xml
add this <!-- EAR -->
and this
<target name="ear" ....
3. Add this include to enable auto.interception
<fileset id="ejb3.root" ...
4. file seam.properties delete all and leave only this 1
org.jboss.seam.core.init.jndiPattern seamapp/#{ejbName}/local
5. web.xml
you can use booking example file, exactly like it is
6. component.xml. I have it so, but i think is not so important
<!-- JNDI name pattern for JBoss EJB 3.0 -->
#{ejbName}/local
7. faces-confilg.xml
Important !!
<!-- Facelets support -->
<view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler>
<locale-config>
<default-locale>en</default-locale>
</locale-config>
<phase-listener>org.jboss.seam.jsf.SeamPhaseListener</phase-listener>
8. Add locale files message_XX in WEB-INF/classes
9. persistence.xml
Modify it with your database ( and dialect )
change it so
delete this line
<!--property name="jboss.entity.manager.factory.jndi.name" value="java:/EntityManager"/-->
10. ejb-jar
<ejb-jar>
<assembly-descriptor>
<interceptor-binding>
<ejb-name>*</ejb-name>
<interceptor-class>org.jboss.seam.ejb.SeamInterceptor</interceptor-class>
</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
11.jboss-abb
<jboss-app>
<loader-repository>
seam.jboss.org:loader=xage
</loader-repository>
</jboss-app>
12. application.xml. Add this module
jboss-seam.jar
13. WEB-INF/lib : add these libraries
el-api, el-ri,jboss-seam-debug, jboss-seam-ui, jsf-facelet
14. Project path-lib add only these libs :
hibernate-all, jboss-ejb3-all, jboss-seam, myface-api.jar
USE ALL BOOKING-EXAMPLE VERSION LIBS
15.
replace in all java.files:
javax.ejb.Interceptors --> javax.interceptor.Interceptors
16. Every where there is a ResourceBundle declaration change it so
@In(create=true)
private transient ResourceBundle resourceBundle;
17. And fix the EM declarations so
@PersistenceContext
private EntityManager entityManager;
18. Now you can //comment some 1-N getters to compile the project
19. remember you can use import.sql to populate 1st time your db with create-drop option
I hope i did not forget many things
Good Work , and have a nice sunday :-)
Ciao Nicola
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966322#3966322
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966322
19 years, 8 months
[JBoss jBPM] - fork, task instance variable and process variable
by yxyang
Hi
I have one fork node to fork two task-nodes. For each task node, there is a variable controller to populate the task instance variable from the process variable. So, in database, there are three records, one is for process variable, the other two for task instance variables.
After the first task node's task end(), this end will submit the task instance variable to database and override the process variable. That is to say, after this step, two of the three records are the same.
But the third which is the second forked task-node's task instance variable, has the original value of the process variable.
Is this normal? For me, if the second task node's task-instance variable can be synchronized automatically with the original process variable, it works better.
Is this a problem? Of course, i can load the process variable and overwrite the second task instance variable if i want by programing....
yang
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3966319#3966319
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3966319
19 years, 8 months