[Clustering/JBoss] - Re: Remote cluster ejb access
by mancinis
Hi,
with trace enabled there are only two rows before the exception:
2008-06-04 08:55:38,476 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context , bindings:
2008-06-04 08:55:38,476 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBean in context ejb, bindings:
ConSostBean=org.jnp.interfaces.MarshalledValuePair@75ad44f6
2008-06-04 08:55:38,476 ERROR [ServiceFinder] exception caught
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ejb/LucyConfBean]
I've sent you the complete log by mail (it's 1Mb).
Here is a summary of the trace info contained in the log:
2008-06-04 08:55:02,196 TRACE [org.jnp.server.NamingServer] No binding for: rlwsirfpaos01a in context invokers, bindings:
2008-06-04 08:55:02,274 TRACE [org.jnp.server.NamingServer] No binding for: JBossCorbaNaming in context , bindings:
SecurityProxyFactory=org.jnp.interfaces.MarshalledValuePair@34c92507
JBossCorbaORB=Reference Class Name: org.omg.CORBA.ORB
comp=Reference Class Name: javax.naming.Context
Type: nns
Content: ENC-MULTIPLEXER
JBossCorbaPOA=Reference Class Name: org.omg.PortableServer.POA
jaas=Reference Class Name: javax.naming.Context
Type: nns
Content: JSM
comp.original=Reference Class Name: javax.namingMain.Context
Type: nns
Content: ENC
timedCacheFactory=Reference Class Name: javax.naming.Context
Type: nns
Content: JSMCachePolicy
TransactionPropagationContextExporter=Reference Class Name: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager
comp.ejb3=Reference Class Name: javax.naming.Context
Type: nns
Content: ENC-EJB3
TransactionPropagationContextImporter=Reference Class Name: com.arjuna.ats.internal.jbossatx.jta.PropagationContextManager
TransactionManager=Reference Class Name: com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate
JBossCorbaInterfaceRepositoryPOA=Reference Class Name: org.omg.PortableServer.POA
2008-06-04 08:55:03,571 TRACE [org.jnp.server.NamingServer] No binding for: UserTransaction in context , bindings:
ORB=Reference Class Name: org.jacorb.orb.ORB
Type: nns
Content: ORB
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context env, bindings:
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: LucyServicesBean in context env/ejb, bindings:
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyDocumentsBean to JNDI name: ejb/LucyDocumentsBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: LucyDocumentsBean in context env/ejb, bindings:
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/ConSostBean to JNDI name: ejb/ConSostBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: ConSostBean in context env/ejb, bindings:
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
LucyDocumentsBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyDocumentsBean
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/DcrBean to JNDI name: ejb/DcrBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: DcrBean in context env/ejb, bindings:
ConSostBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/ConSostBean
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
LucyDocumentsBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyDocumentsBean
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyConfBean to JNDI name: ejb/LucyConfBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBean in context env/ejb, bindings:
ConSostBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/ConSostBean
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
DcrBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/DcrBean
LucyDocumentsBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyDocumentsBean
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyArkBean to JNDI name: ejb/LucyArkBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: LucyArkBean in context env/ejb, bindings:
ConSostBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/ConSostBean
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
LucyConfBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyConfBean
DcrBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/DcrBean
LucyDocumentsBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyDocumentsBean
2008-06-04 08:55:09,852 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyUserBean to JNDI name: ejb/LucyUserBean
2008-06-04 08:55:09,852 TRACE [org.jnp.server.NamingServer] No binding for: LucyUserBean in context env/ejb, bindings:
LucyArkBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyArkBean
ConSostBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/ConSostBean
LucyServicesBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyServicesBean
LucyConfBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyConfBean
DcrBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/DcrBean
LucyDocumentsBean=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyDocumentsBean
.....
2008-06-04 08:55:13,102 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context env, bindings:
2008-06-04 08:55:13,102 TRACE [org.jnp.server.NamingServer] No binding for: LucyArkBeanRemote in context env/ejb, bindings:
2008-06-04 08:55:13,102 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding an EJBReference ejb/LucyConfBeanRemote
2008-06-04 08:55:13,102 DEBUG [org.jboss.ejb.StatelessSessionContainer] adding stateless-unified-invoker:jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean to Reference
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBeanRemote in context env/ejb, bindings:
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding an EJBReference ejb/LucyUserBeanRemote
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] adding stateless-unified-invoker:jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyUserBean to Reference
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: LucyUserBeanRemote in context env/ejb, bindings:
LucyConfBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding an EJBReference ejb/DcrBeanRemote
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] adding stateless-unified-invoker:jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/DcrBean to Reference
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: DcrBeanRemote in context env/ejb, bindings:
LucyUserBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyUserBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyUserBean
LucyConfBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding an EJBReference ejb/LucyServicesBeanRemote
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] adding stateless-unified-invoker:jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyServicesBean to Reference
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: LucyServicesBeanRemote in context env/ejb, bindings:
DcrBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/DcrBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/DcrBean
LucyUserBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyUserBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyUserBean
LucyConfBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: stateless-unified-invoker
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
Type: default
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] Binding env resource: jdbc/FarmaDb to JDNI ENC as: jdbc/FarmaSvil
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: jdbc in context env, bindings:
ejb=org.jnp.server.NamingServer@14a1ee92
2008-06-04 08:55:13,118 TRACE [org.jnp.server.NamingServer] No binding for: FarmaDb in context env/jdbc, bindings:
2008-06-04 08:55:13,118 DEBUG [org.jboss.ejb.StatelessSessionContainer] End java:comp/env for EJB: ConSostBean
2008-06-04 08:55:13,118 DEBUG [org.jboss.mx.loading.RepositoryClassLoader] setRepository, repository=org.jboss.mx.loading.HeirarchicalLoaderRepository3@2857a293, cl=org.jboss.mx.loading.HeirarchicalLoaderRepository3$CacheClassLoader@2382600f{ url=null ,addedOrder=0}
2008-06-04 08:55:13,571 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbRefs
2008-06-04 08:55:13,571 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyArkBeanRemote to JNDI name: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,571 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context env, bindings:
ConSostArchiverQueue=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: queue/ConSostArchiverQueue
ConSostVolumizerQueue=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: queue/ConSostVolumizerQueue
ConnectionFactory=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ConnectionFactory
2008-06-04 08:55:13,571 TRACE [org.jnp.server.NamingServer] No binding for: LucyArkBeanRemote in context env/ejb, bindings:
2008-06-04 08:55:13,571 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyConfBeanRemote to JNDI name: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
2008-06-04 08:55:13,571 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBeanRemote in context env/ejb, bindings:
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,571 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbLocalRefs
2008-06-04 08:55:13,586 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-local-ref: ejb/ConSostBean to JNDI name: local/ConSostBean@1537375563
2008-06-04 08:55:13,586 TRACE [org.jnp.server.NamingServer] No binding for: ConSostBean in context env/ejb, bindings:
LucyConfBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyConfBean
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: jnp://RLLSIRFPAS01A.local.sirfarma.it:1100/ejb/LucyArkBean
2008-06-04 08:55:13,805 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyArkBeanRemote to JNDI name: ejb/LucyArkBean
2008-06-04 08:55:13,805 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context env, bindings:
2008-06-04 08:55:13,805 TRACE [org.jnp.server.NamingServer] No binding for: LucyArkBeanRemote in context env/ejb, bindings:
2008-06-04 08:55:13,805 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-ref: ejb/LucyConfBeanRemote to JNDI name: ejb/LucyConfBean
2008-06-04 08:55:13,805 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBeanRemote in context env/ejb, bindings:
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyArkBean
2008-06-04 08:55:13,805 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] linkEjbLocalRefs
2008-06-04 08:55:13,805 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] Linking ejb-local-ref: ejb/ConSostBean to JNDI name: local/ConSostBean@1537375563
2008-06-04 08:55:13,805 TRACE [org.jnp.server.NamingServer] No binding for: ConSostBean in context env/ejb, bindings:
LucyConfBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyConfBean
LucyArkBeanRemote=Reference Class Name: javax.naming.LinkRef
Type: LinkAddress
Content: ejb/LucyArkBean
....
2008-06-04 08:55:38,476 TRACE [org.jnp.server.NamingServer] No binding for: ejb in context , bindings:
2008-06-04 08:55:38,476 TRACE [org.jnp.server.NamingServer] No binding for: LucyConfBean in context ejb, bindings:
ConSostBean=org.jnp.interfaces.MarshalledValuePair@75ad44f6
2008-06-04 08:55:38,476 ERROR [ServiceFinder] exception caught
javax.naming.NamingException: Could not dereference object [Root exception is javax.naming.NameNotFoundException: ejb/LucyConfBean]
Stefano Mancini
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155561#4155561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155561
16 years, 4 months
[EJB 3.0] - Problem with Bean
by Ceene
Hello
I have a problem with my StatefulBean.
If i start my JBoss for Internet (run -b [IP]) without my Beans I get no problems.
Then I put my first Bean (HWname_PDBean.jar) in my deploy-folder. No Problems till now, but if I put my next Bean (LoginBean.jar) in the deploy-folder and I get the following Problem (Text copy and past from the log-file):
| 2008-06-04 09:17:24,832 DEBUG [org.hibernate.impl.SessionFactoryObjectFactory] registered: 402880531a526fed011a526feed10000 (persistence.units:jar=LoginBean.jar,unitName=tcdb)
| 2008-06-04 09:17:24,832 INFO [org.hibernate.impl.SessionFactoryObjectFactory] Factory name: persistence.units:jar=LoginBean.jar,unitName=tcdb
| 2008-06-04 09:17:24,832 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2008-06-04 09:17:25,910 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099
| javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
| at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:487)
| at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:480)
| at javax.naming.InitialContext.rebind(InitialContext.java:408)
| at org.hibernate.util.NamingHelper.bind(NamingHelper.java:49)
| at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy87.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy34.start(Unknown Source)
| 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.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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 $Proxy9.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$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
| ... 107 more
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at java.net.Socket.connect(Socket.java:469)
| at java.net.Socket.<init>(Socket.java:366)
| at java.net.Socket.<init>(Socket.java:267)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
| ... 107 more
| 2008-06-04 09:17:31,926 DEBUG [org.jnp.interfaces.NamingContext] Failed to connect to localhost:1099
| javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
| at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:487)
| at javax.naming.InitialContext.rebind(InitialContext.java:412)
| at org.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
| at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy87.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy34.start(Unknown Source)
| 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.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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 $Proxy9.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$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
| ... 106 more
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at java.net.Socket.connect(Socket.java:469)
| at java.net.Socket.<init>(Socket.java:366)
| at java.net.Socket.<init>(Socket.java:267)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
| ... 106 more
| 2008-06-04 09:17:36,926 WARN [org.hibernate.impl.SessionFactoryObjectFactory] Could not bind factory to JNDI
| javax.naming.CommunicationException: Could not obtain connection to any of these urls: localhost:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]]
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1562)
| at org.jnp.interfaces.NamingContext.rebind(NamingContext.java:487)
| at javax.naming.InitialContext.rebind(InitialContext.java:412)
| at org.hibernate.util.NamingHelper.bind(NamingHelper.java:74)
| at org.hibernate.impl.SessionFactoryObjectFactory.addInstance(SessionFactoryObjectFactory.java:90)
| at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:306)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
| at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy87.start(Unknown Source)
| at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
| at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
| at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
| at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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:597)
| 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 $Proxy33.start(Unknown Source)
| at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
| 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 $Proxy34.start(Unknown Source)
| 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.GeneratedMethodAccessor21.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| 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 $Proxy9.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$ScannerThread.loop(AbstractDeploymentScanner.java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
| Caused by: javax.naming.CommunicationException: Failed to connect to server localhost:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:274)
| at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1533)
| ... 105 more
| Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server localhost:1099 [Root exception is java.net.ConnectException: Connection refused: connect]
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:248)
| ... 106 more
| Caused by: java.net.ConnectException: Connection refused: connect
| at java.net.PlainSocketImpl.socketConnect(Native Method)
| at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
| at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
| at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
| at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
| at java.net.Socket.connect(Socket.java:519)
| at java.net.Socket.connect(Socket.java:469)
| at java.net.Socket.<init>(Socket.java:366)
| at java.net.Socket.<init>(Socket.java:267)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:84)
| at org.jnp.interfaces.TimedSocketFactory.createSocket(TimedSocketFactory.java:77)
| at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:244)
| ... 106 more
| 2008-06-04 09:17:37,582 DEBUG [org.hibernate.impl.SessionFactoryImpl] instantiated session factory
| 2008-06-04 09:17:37,582 DEBUG [org.hibernate.impl.SessionFactoryImpl] obtaining JTA TransactionManager
| 2008-06-04 09:17:37,582 INFO [org.hibernate.util.NamingHelper] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2008-06-04 09:17:37,598 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking 4 named HQL queries
| 2008-06-04 09:17:37,598 DEBUG [org.hibernate.impl.SessionFactoryImpl] Checking named query: LOV_User.findByName
|
|
I hope you can help me.
Sorry for the bad English :-)
If you need other Code pls tell me.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155558#4155558
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155558
16 years, 4 months
[JBoss jBPM] - Even though the task is not for that actor i get that task u
by csplrj
Below is the code for the experiment
I have assigned the process to pool of actors
After that task there is another task which is assigned to a single actor
on reaching that task Node I try to get the remaining tasks for c but when i try the following code
System.out.println("c1 "+ taskMgmtSession.findPooledTaskInstances("c").size());
it gives output as 1 and it reaches stage task2 even though through the assignment of task 2 its only applicable to actor "a".
System.out.println("c2 "+ ((TaskInstance)taskMgmtSession.findPooledTaskInstances("c").get(0)).getToken().getNode().getName());
gives output as task2
Thanks in advance
CSJakharia
processdefinition.xml
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="authoring">
| <start-state name="start-state1">
| <task>
| </task>
| <transition to="task1"></transition>
| </start-state>
|
|
| <task-node name="task1">
| <description>
| task1
| </description>
| <task>
| <assignment class="com.workflow.AssignTask"></assignment>
| </task>
| <transition to="task2"></transition>
| </task-node>
|
| <task-node name="task2">
| <description>
| task2
| </description>
| <task>
| <assignment class="com.workflow.AssignTask1"></assignment>
| </task>
| <transition to="end"></transition>
| </task-node>
|
| <node name="end">
| <action class="com.workflow.HandleAction"> </action>
| <transition to="end-state1"></transition>
| </node>
|
|
| <end-state name="end-state1">
|
| </end-state>
|
|
| </process-definition>
AssignTask.java
public class AssignTask implements AssignmentHandler {
|
| public void assign(Assignable assignable, ExecutionContext executionContext)
| throws Exception {
| // TODO Auto-generated method stub
| String actors[]=new String[]{"a","b","c"};
| assignable.setPooledActors(actors);
| }
|
| }
AssignTask1.java
public class AssignTask1 implements AssignmentHandler {
|
| public void assign(Assignable assignable, ExecutionContext executionContext)
| throws Exception {
| // TODO Auto-generated method stub
| assignable.setActorId("a");
| }
|
| }
Test.java
| public class Test {
| static JbpmConfiguration jbpmConfiguration = null;
|
| public static void deployProcessDefinition()
| {
| try {
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlInputStream(new FileInputStream("D:\\WorkFlowAuthoringPOC\\src\\main\\jpdl\\a\\processdefinition.xml"));
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| jbpmContext.deployProcessDefinition(processDefinition);
| jbpmContext.close();
| } catch (FileNotFoundException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
| public static void main(String[] args) {
| try {
| jbpmConfiguration = JbpmConfiguration.parseInputStream(new FileInputStream("D:\\Cobra\\workspace\\WorkFlowAuthoringPOC\\src\\main\\config\\jbpm.cfg.xml"));
| jbpmConfiguration.createSchema();
| deployProcessDefinition();
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| System.out.println("jbpmContext.getActorId() "+jbpmContext.getActorId());
| GraphSession graphSession = jbpmContext.getGraphSession();
| ProcessDefinition processDefinition =
| graphSession.findLatestProcessDefinition("authoring");
| ProcessInstance processInstance = new ProcessInstance(processDefinition);
| Token token=processInstance.getRootToken();
| // Let's start the process execution, leaving the start-state
| // over its default transition.
| token.signal();
| TaskInstance taskInstance = (TaskInstance)
| processInstance
| .getTaskMgmtInstance()
| .getTaskInstances()
| .iterator().next();
|
| System.out.println("size "+processInstance.getTaskMgmtInstance().getTaskInstances().size());
| System.out.println("taskInstance.getActorId() " +taskInstance.getActorId());
| System.out.println("taskInstance.getPooledActors() " +taskInstance.getPooledActors());
| TaskMgmtSession taskMgmtSession= jbpmContext.getTaskMgmtSession();
| System.out.println(taskMgmtSession.findPooledTaskInstances("a").size());
| System.out.println(taskMgmtSession.findPooledTaskInstances("b").size());
| ((TaskInstance)taskMgmtSession.findPooledTaskInstances("a").get(0)).getToken().signal();
|
| System.out.println("a1 "+ taskMgmtSession.findPooledTaskInstances("a").size());
| System.out.println("b1 "+ taskMgmtSession.findPooledTaskInstances("b").size());
| System.out.println("c1 "+ taskMgmtSession.findPooledTaskInstances("c").size());
| System.out.println("a1 "+ ((TaskInstance)taskMgmtSession.findPooledTaskInstances("a").get(0)).getToken().getNode().getName());
| System.out.println("c2 "+ ((TaskInstance)taskMgmtSession.findPooledTaskInstances("c").get(0)).getToken().getNode().getName());
| System.out.println("a1 "+ taskMgmtSession.findTaskInstances("a").size());
| System.out.println("b1 "+ taskMgmtSession.findTaskInstances("b").size());
| System.out.println("c1 "+ taskMgmtSession.findTaskInstances("c").size());
|
|
| } catch (FileNotFoundException e) {
| // TODO Auto-generated catch block
| e.printStackTrace();
| }
| }
|
| }
|
part of Sysout output
a1 1
b1 1
c1 1
a1 task2
c2 task2
a1 1
b1 0
c1 0
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4155553#4155553
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4155553
16 years, 4 months