[JBoss Seam] - How to use ice:menuBar with Seam in an EAR application?
by Newlukai
Hi,
I'm trying to get my application started, but it fails with a NoClassDefFounfError:
11:21:37,140 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=ares.jar
| java.lang.NoClassDefFoundError: com/icesoft/faces/component/menubar/MenuItem
As you can see this error occurs while the jar is loaded. To create a dynamic menuBar I've to use the above mentioned class in the bean that generaties the menu. The class is in the icefaces-comps.jar which is already in my war file to use the ICEfaces tags.
My problem now is: Where do I've to put the icefaces-comps.jar so that it can be used by the jar and by the war of my application? I don't want to put it twice in my ear.
Here's a short overview over the contents of the ear:
| /ares.ear
| - META-INF
| application.xml
| jboss-app.xml
| - /ares.jar
| + com ... (all the session and entity beans)
| - META-INF
| | ejb-jar.xml
| | persistence.xml
| seam.properties
| - /ares.war
| + com ... (resource bundle)
| - WEB-INF
| | - lib
| | | commons-fileupload.jar
| | | el-api.jar
| | | el-ri.jar
| | | icefaces.jar
| | | icefaces-comps.jar
| | | icefaces-facelets.jar
| | | jboss-seam-debug.jar
| | | jboss-seam-ui.jar
| | | selectitems.jar
| | | selectitems-ui.jar
| | components.xml
| | faces-config.xml
| | navigation.xml
| | tomahawk.taglib.xml (I'm currently migrating from tomahawk to ICEfaces)
| | web.xml
| jboss-seam.jar
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993012#3993012
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993012
19 years, 7 months
[Beginners Corner] - please help me to start jboss
by golanbln
hi,
i am trying to start jboss 4.0.5GA under LINUX... when i start the DEFAULT server there is no problem jboss started ok... but when i try starting ALL server (sh run.sh -c all) then i get this ERROR:
|
| JBoss Bootstrap Environment
|
| JBOSS_HOME: /home/msaid/downloads/jboss/jboss-4.0.5.GA
|
| JAVA: /usr/lib/jvm/java/bin/java
|
| JAVA_OPTS: -Dprogram.name=run.sh -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
|
| CLASSPATH: /home/msaid/downloads/jboss/jboss-4.0.5.GA/bin/run.jar:/usr/lib/jvm/java/lib/tools.jar
|
| =========================================================================
|
| 11:02:46,968 INFO [Server] Starting JBoss (MX MicroKernel)...
| 11:02:46,969 INFO [Server] Release ID: JBoss [Zion] 4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)
| 11:02:46,971 INFO [Server] Home Dir: /home/msaid/downloads/jboss/jboss-4.0.5.GA
| 11:02:46,971 INFO [Server] Home URL: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/
| 11:02:46,972 INFO [Server] Patch URL: null
| 11:02:46,972 INFO [Server] Server Name: all
| 11:02:46,972 INFO [Server] Server Home Dir: /home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all
| 11:02:46,973 INFO [Server] Server Home URL: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/
| 11:02:46,973 INFO [Server] Server Log Dir: /home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/log
| 11:02:46,973 INFO [Server] Server Temp Dir: /home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/tmp
| 11:02:46,974 INFO [Server] Root Deployment Filename: jboss-service.xml
| 11:02:47,313 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
| 11:02:47,313 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_06-b05,Sun Microsystems Inc.
| 11:02:47,313 INFO [ServerInfo] OS-System: Linux 2.6.16.13-4-smp,i386
| 11:02:47,786 INFO [Server] Core system initialized
| 11:02:51,044 INFO [WebService] Using RMI server codebase: http://MP04:8083/
| 11:02:51,074 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
| 11:02:55,115 INFO [ServiceEndpointManager] WebServices: jbossws-1.0.3.SP1 (date=200609291417)
| 11:02:56,468 INFO [SnmpAgentService] SNMP agent going active
| 11:02:57,050 INFO [InterceptorChainFactory] interceptor chain is:
| class org.jboss.cache.interceptors.CallInterceptor
| class org.jboss.cache.interceptors.PessimisticLockInterceptor
| class org.jboss.cache.interceptors.UnlockInterceptor
| class org.jboss.cache.interceptors.ReplicationInterceptor
| class org.jboss.cache.interceptors.TxInterceptor
| class org.jboss.cache.interceptors.CacheMgmtInterceptor
| 11:02:57,245 ERROR [JChannel] exception: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| 11:02:57,254 WARN [ServiceController] Problem starting service jboss.cache:service=TomcatClusteringCache
| ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| at org.jgroups.JChannel.connect(JChannel.java:328)
| at org.jboss.cache.TreeCache.startService(TreeCache.java:1424)
| at org.jboss.cache.aop.PojoCache.startService(PojoCache.java:94)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 11:02:57,643 INFO [DefaultPartition] Initializing
| 11:02:57,690 ERROR [JChannel] exception: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| 11:02:57,704 WARN [ServiceController] Problem starting service jboss:service=DefaultPartition
| ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| at org.jgroups.JChannel.connect(JChannel.java:328)
| at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy8.deploy(Unknown Source)
| at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
| at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:417)
| at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| 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:585)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
| at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:490)
| at java.lang.Thread.run(Thread.java:595)
| 11:02:58,687 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E0000102000000000A3132372E302E302E32000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E32000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
| 11:02:58,789 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E0000102000000000A3132372E302E302E32000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005C000000000000000100000000000000240000001C0000007E00000000000000010000000A3132372E302E302E32000DC900400000000000000000001004010008060667810201010100000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
| 11:02:59,641 INFO [MailService] Mail Service bound to java:/Mail
| 11:02:59,856 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
| 11:02:59,956 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
| 11:02:59,980 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
| 11:03:00,009 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
| 11:03:00,053 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
| 11:03:00,088 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
| 11:03:00,864 INFO [WrapperDataSourceService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
| 11:03:01,235 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
| 11:03:01,334 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Packages waiting for a deployer ---
| org.jboss.deployment.DeploymentInfo@230fde7b { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/httpha-invoker.sar/invoker.war/ }
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/httpha-invoker.sar/invoker.war/
| altDD: null
| lastDeployed: 1165917779155
| lastModified: 1161034902000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@f2837cc3 { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jbossweb-tomcat55.sar/ROOT.war/ }
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jbossweb-tomcat55.sar/ROOT.war/
| altDD: null
| lastDeployed: 1165917779155
| lastModified: 1161619222000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@1f35a9c1 { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jbossws14.sar/jbossws-context.war }
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jbossws14.sar/jbossws-context.war
| altDD: null
| lastDeployed: 1165917779156
| lastModified: 1165917774000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@bca5dfaf { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/juddi-service.sar/juddiws.war/ }
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/juddi-service.sar/juddiws.war/
| altDD: null
| lastDeployed: 1165917779156
| lastModified: 1161619198000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@4166686f { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/management/console-mgr.sar/web-console.war/ }
| deployer: null
| status: Starting
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/management/console-mgr.sar/web-console.war/
| altDD: null
| lastDeployed: 1165917779157
| lastModified: 1161619210000
| mbeans:
|
| org.jboss.deployment.DeploymentInfo@2d8bb1b7 { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jmx-console.war/ }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jmx-console.war/
| altDD: null
| lastDeployed: 1165917781242
| lastModified: 1161619196000
| mbeans:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@2d8bb1b7 { url=file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jmx-console.war/ }
| deployer: null
| status: null
| state: INIT_WAITING_DEPLOYER
| watch: file:/home/msaid/downloads/jboss/jboss-4.0.5.GA/server/all/deploy/jmx-console.war/
| altDD: null
| lastDeployed: 1165917781242
| lastModified: 1161619196000
| mbeans:
|
| --- MBeans waiting for other MBeans ---
| ObjectName: jboss.web:service=WebServer
| State: CONFIGURED
| I Depend On:
| jboss.security:service=JaasSecurityManager
| jboss.cache:service=TomcatClusteringCache
| jboss:service=TransactionManager
| jboss.jca:service=CachedConnectionManager
| Depends On Me:
| jboss.ws:service=WebServiceDeployerJSE
| jboss:service=FarmMember,partition=DefaultPartition
|
| ObjectName: jboss.ws:service=WebServiceDeployerJSE
| State: CONFIGURED
| I Depend On:
| jboss.web:service=WebServer
| Depends On Me:
| jboss.ws:service=DeployerInterceptorNestedJSE
|
| ObjectName: jboss.ws:service=DeployerInterceptorNestedJSE
| State: CONFIGURED
| I Depend On:
| jboss.system:service=MainDeployer
| jboss.ws:service=WebServiceDeployerJSE
|
| ObjectName: jboss.cache:service=TomcatClusteringCache
| State: FAILED
| Reason: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| I Depend On:
| jboss:service=Naming
| jboss:service=TransactionManager
| jboss.aop:service=AspectDeployer
| Depends On Me:
| jboss.web:service=WebServer
|
| ObjectName: jboss:service=DefaultPartition
| State: FAILED
| Reason: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| I Depend On:
| jboss:service=Naming
| Depends On Me:
| jboss:service=HASessionState
| jboss:service=HAJNDI
| jboss.cache:service=InvalidationBridge,type=JavaGroups
| jboss.ha:service=HASingletonDeployer
| jboss:service=FarmMember,partition=DefaultPartition
|
| ObjectName: jboss.ha:service=HASingletonDeployer
| State: CONFIGURED
| I Depend On:
| jboss:service=DefaultPartition
| jboss.system:service=MainDeployer
|
| ObjectName: jboss:service=FarmMember,partition=DefaultPartition
| State: CONFIGURED
| I Depend On:
| jboss:service=DefaultPartition
| jboss.web:service=WebServer
| jboss.system:service=MainDeployer
|
| --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
| ObjectName: jboss:service=DefaultPartition
| State: FAILED
| Reason: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| I Depend On:
| jboss:service=Naming
| Depends On Me:
| jboss:service=HASessionState
| jboss:service=HAJNDI
| jboss.cache:service=InvalidationBridge,type=JavaGroups
| jboss.ha:service=HASingletonDeployer
| jboss:service=FarmMember,partition=DefaultPartition
|
| ObjectName: jboss.cache:service=TomcatClusteringCache
| State: FAILED
| Reason: ChannelException: java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: bad argument for IP_MULTICAST_IF: address not bound to any interface
| I Depend On:
| jboss:service=Naming
| jboss:service=TransactionManager
| jboss.aop:service=AspectDeployer
| Depends On Me:
| jboss.web:service=WebServer
|
|
| 11:03:01,412 INFO [Server] JBoss (MX MicroKernel) [4.0.5.GA (build: CVSTag=Branch_4_0 date=200610162339)] Started in 14s:436ms
|
|
|
please can anyone tell me why?? what does it mean??
help please
thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993003#3993003
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993003
19 years, 7 months
[EJB 3.0] - Problem with Stateful EJB
by violon
I got a problem when developed a simple stateful EJB3. Can you help me to solve this problem. Thanks a lot.
This is remote interface :
| package examples.session.stateful;
|
|
| /**
| * The business interface - a plain Java interface with only
| * business methods.
| */
|
| public interface Count {
| /**
| * Increments the counter by 1
| */
| public int count();
| /**
| * Sets the counter to val
| * @param val
| */
| public void set(int val);
| /**
| * removes the counter
| */
| public void remove();
|
| }
|
And this is Bean class :
| package examples.session.stateful;
|
| import javax.ejb.Remote;
| import javax.ejb.Remove;
| import javax.ejb.Stateful;
|
| @Stateful
| @Remote(Count.class)
| public class CountBean implements Count {
|
| /** The current counter is our conversational state. */
| private int val;
|
| /**
| * The count() business method.
| */
| public int count() {
| System.out.println("count()");
| return ++val;
| }
|
| /**
| * The set() business method.
| */
| public void set(int val) {
| this.val = val;
| System.out.println("set()");
| }
|
| /**
| * The remove method is annotated so that the container knows
| * it can remove the bean after this method returns.
| */
| @Remove
| public void remove() {
| System.out.println("remove()");
| }
| }
|
And test client :
| package examples.test.stateful;
|
| import java.util.Properties;
|
| import javax.naming.Context;
| import javax.naming.InitialContext;
|
| import examples.session.stateful.Count;
|
| public class CountClient {
|
| /**
| * @param args
| */
| public static void main(String[] args) {
| // TODO Auto-generated method stub
| Properties properties = new Properties();
| properties.put("java.naming.factory.initial","org.jnp.interfaces.NamingContextFactory");
| properties.put("java.naming.factory.url.pkgs","=org.jboss.naming:org.jnp.interfaces");
| properties.put("java.naming.provider.url","localhost:1099");
|
| Context ctx;
| try {
| ctx = new InitialContext(properties);
| Count obj = (Count) ctx.lookup("CountBean/remote");
| System.out.println(obj);
| } catch (Exception e) {
| e.printStackTrace();
| }
| }
|
| }
|
This is the problem :
| Exception in thread "main" java.lang.NoClassDefFoundError: Lorg/jboss/invocation/Invoker;
| at java.lang.Class.getDeclaredFields0(Native Method)
| at java.lang.Class.privateGetDeclaredFields(Unknown Source)
| at java.lang.Class.getDeclaredField(Unknown Source)
| at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
| at java.io.ObjectStreamClass.access$600(Unknown Source)
| at java.io.ObjectStreamClass$2.run(Unknown Source)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.io.ObjectStreamClass.<init>(Unknown Source)
| at java.io.ObjectStreamClass.lookup(Unknown Source)
| at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
| at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
| at java.io.ObjectInputStream.readClassDesc(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.readObject(Unknown Source)
| at org.jboss.aop.joinpoint.InvocationResponse.readExternal(InvocationResponse.java:107)
| at java.io.ObjectInputStream.readExternalData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
| at java.io.ObjectInputStream.readSerialData(Unknown Source)
| at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
| at java.io.ObjectInputStream.readObject0(Unknown Source)
| at java.io.ObjectInputStream.readObject(Unknown Source)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.receiveObject(JavaSerializationManager.java:128)
| at org.jboss.remoting.marshal.serializable.SerializableUnMarshaller.read(SerializableUnMarshaller.java:66)
| at org.jboss.remoting.transport.socket.SocketClientInvoker.transport(SocketClientInvoker.java:279)
| at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:143)
| at org.jboss.remoting.Client.invoke(Client.java:525)
| at org.jboss.remoting.Client.invoke(Client.java:488)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:41)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:34)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:88)
| at org.jboss.aspects.remoting.PojiProxy.invoke(PojiProxy.java:46)
| at $Proxy0.createProxy(Unknown Source)
| at org.jboss.ejb3.JndiProxyFactory.getObjectInstance(JndiProxyFactory.java:52)
| at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)
| at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
| at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:587)
| at javax.naming.InitialContext.lookup(Unknown Source)
| at examples.test.stateful.CountClient.main(CountClient.java:25)
|
please, help me as soon as possible.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992994#3992994
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992994
19 years, 7 months
[Beginners Corner] - Re: ADF help
by mrchit_2000
When I moved the jar files to WEB-INF\lib\. I get the error message of Class Not Found.
00:40:00,706 INFO [StartupServletContextListener] ServletContext 'C:\EJB3.0\Jboss4.0.5\server\default\.\tmp\deploy\tmp4335autosas-web-exp.war\' initialized.
00:40:00,706 INFO [StartupServletContextListener] Serialization provider : class org.apache.myfaces.shared_impl.util.serial.DefaultSerialFactory
00:40:00,706 ERROR [[/autosas-web]] Exception starting filter adfFaces
java.lang.ClassNotFoundException: oracle.adf.view.faces.webapp.AdfFacesFilter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1355)
I have no clues why it cannot find the class while the jar files are put in WEB-INF\lib. Could anyone help please? I don't know if there is any problem with my posts but it seems no one is answering.
Thanks,
L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992991#3992991
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992991
19 years, 7 months
[JBoss Seam] - Re: Basic Seam questions
by SmokingAPipe
There are subtle differences here. I'll go through your post sentence-by-sentence.
When you inject an entity into a session, you could get an instance that already exists. For example, here's injection:
@In User user;
and here's instantiating it manually:
User user = new User();
These do totally different things. In the injection case, we'll be getting the user, perhaps from the SESSION scope, and so we can do things with it. In the "instantiating manually" case we make up a new one every time. Do you see the difference? They are for different purposes.
@In(create=true) will inject the entity if it can be found in the relevant scope, and creates it if it isn't there. When wouldn't you want to have create=true? Imagine a typical application where a User object is stored in the SESSION scope. If there is no user in that scope, we might leave out certain functionality. Creating a new user instance wouldn't make sense.
Does this make sense? Think of your session beans as being parts of an assembly line. Various objects get injected into them, they do things to these objects, and then they can outject results. If a certain part on this assembly line requires an object that isn't there, it could (unlike in a real assembly line) create the object by saying create=true. Or if it will ALWAYS create its own objects for its own use it could simply instantiate them. But this means that it will not get objects that have been outjected by some other component, and the power of Seam is really being able to tie these various components together by outjecting from one and injecting to the other.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992985#3992985
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992985
19 years, 7 months
[Beginners Corner] - handeling multiple writes to Oracle
by minixman
All
I keep getting the following from jboss
| [CachedConnectionManager] Closing a connection for you. Please close them yourself: org.jboss.resource.adapter.jdbc.WrappedConnection@1d889aa
|
In my class which is a thread off the main program the class connects to a Topic and to the DS and i want to post a new message to the Topic and then write the information to the database so it can be updated later. How do i handel multiple writes to the database without closing the connection.
| ObjectMessage objMsg = (ObjectMessage)message;
| eventMSG = (MonitorMSG)objMsg.getObject();
| // Get DS objects
| InitialContext ctxt = new InitialContext();
| DataSource ds = (DataSource) ctxt.lookup("java:OracleDS");
| conn = ds.getConnection();
| PreparedStatement ps2 = conn.prepareStatement(eventSQL);
| ResultSet rs2 = ps2.executeQuery();
|
If i push 2 messages through the queue the first one goes into the database and the second one gives me the error above.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3992984#3992984
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3992984
19 years, 7 months