[JBoss Eclipse IDE (users)] - Help Regarding deploying EJB3
by abhinav19
Hi All
I am using Jboss 4.0.5, EJB3.0 RC 9, downloaded the JEMs
but when i try to deploy the projct i get the error that I am not complying to EJB 2.1 specifications. I am pasting the contents of the server log for reference. Please let me know where I am wrong.
an
12:06:34,093 WARN [verifier] EJB spec violation:
Bean : User
Section: 10.6.2
Warning: The entity bean's class must implement, directly or indirectly, the javax.ejb.EntityBean interface.
12:06:34,093 WARN [verifier] EJB spec violation:
Bean : User
Section: 10.6.2
Warning: The entity bean class must be defined as public and abstract.
12:06:34,109 WARN [verifier] EJB spec violation:
Bean : User
Section: 10.6.1
Warning: The Bean Provider must provide a remote interface and a remote home interface or a local interface and a local home interface for the bean.
12:06:34,109 WARN [verifier] EJB spec violation:
Bean : UserManager
Section: 7.10.2
Warning: A Session bean must implement, directly or indirectly, the javax.ejb.SessionBean interface.
12:06:34,109 WARN [verifier] EJB spec violation:
Bean : UserManager
Section: 7.10.3
Warning: A Session bean must define at least one ejbCreate method.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995083#3995083
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995083
19 years, 7 months
[JBoss Seam] - Seam remoting conversation - possible problem?
by chris.morrisette
I am still having problems with Seam Remoting, within a conversation the state of a SFSB is lost. I had isolated some cases to being because my application restarted and not restarting the browsers session, but have found other unrelated cases.
I was able to capture the log of an instance of this happening. The conversation id is '6' and the SFSB (with a scope of 'conversation') is 'ServiceBusiness'.
At time datestamp '2006-12-19 12:20:33,656' you can see that seam conversation 6 is invoking a method on ServiceBusiness instance ServiceBusinessImpl@9403b0.
At time datestamp '2006-12-19 12:20:37,750' you can see that seam conversation 6 instantiates a new ServiceBusiness object and invokes a method on ServiceBusiness instance ServiceBusinessImpl@b73feb.
You can see that earlier invocations of conversation 6 all operate on ServiceBusinessImpl@9403b0.
In looking at the log, the only thing that pops out at me is that Conversation id '2' times out at time datestamp 2006-12-19 12:20:36,468, but this shouldn't have any impact on conversation 6, should it?
Am I doing something wrong?
I am about to jump into the source, but wanted to see if anybody had any suggestions first.
Thanks for any help,
Chris
jboss-4.0.5.GA
Seam 1.1.0.GA
jdk1.5.0_09
2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.core.Manager] No stored conversation, or concurrent call to the stored conversation
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: serviceBusiness
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] initializing new instance of: serviceBusiness
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] done initializing: serviceBusiness
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,453 ERROR [com.zua.business.ServiceBusinessImpl] Instantiating Service Business object: com.zua.business.ServiceBusinessImpl@9403b0
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.core.Manager] Beginning long-running conversation
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.conversation
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.conversation
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.conversation
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 6
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.remoting.ExecutionHandler] ended request
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,453 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,593 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,593 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,593 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,593 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,609 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,609 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,625 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,625 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,656 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,656 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 6
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: serviceBusiness
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:25,734 ERROR [com.zua.business.ServiceBusinessImpl] Executing method on Service Business: com.zua.business.ServiceBusinessImpl@9403b0
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 6
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.remoting.ExecutionHandler] ended request
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:25,734 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 6
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: serviceBusiness
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:28,187 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:28,187 ERROR [com.zua.business.ServiceBusinessImpl] Executing method on Service Business: com.zua.business.ServiceBusinessImpl@9403b0
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 6
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-12-19 12:20:28,203 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-12-19 12:20:28,250 DEBUG [org.jboss.seam.remoting.ExecutionHandler] ended request
| 2006-12-19 12:20:28,250 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:28,250 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 6
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: serviceBusiness
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:33,656 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:33,656 ERROR [com.zua.business.ServiceBusinessImpl] Executing method on Service Business: com.zua.business.ServiceBusinessImpl@9403b0
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 6
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.core.Manager] conversation timeout for conversation: 2
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.conversation
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] destroying: serviceBusiness
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:36,468 ERROR [com.zua.business.ServiceBusinessImpl] Destroying Service Business object: com.zua.business.ServiceBusinessImpl@1aaf3cb
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.interceptors.RemoveInterceptor] Stateful component was removed: serviceBusiness
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-12-19 12:20:36,468 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
| 2006-12-19 12:20:36,500 DEBUG [org.jboss.seam.remoting.ExecutionHandler] ended request
| 2006-12-19 12:20:36,500 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:36,500 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:36,531 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:36,531 DEBUG [org.jboss.seam.servlet.SeamExceptionFilter] ended request
| 2006-12-19 12:20:37,734 DEBUG [org.jboss.seam.contexts.Lifecycle] >>> Begin web request
| 2006-12-19 12:20:37,734 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.manager
| 2006-12-19 12:20:37,734 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.manager
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.manager
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.core.Manager] Restoring conversation with id: 6
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] instantiating Seam component: serviceBusiness
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.util.Naming] JNDI InitialContext properties:{java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory, java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces}
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] initializing new instance of: serviceBusiness
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] done initializing: serviceBusiness
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.ejb3.entity.ExtendedPersistenceContextPropagationInterceptor] ++++ LongLivedSessionPropagationInterceptor
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] instantiating Seam component: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] initializing new instance of: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:37,750 DEBUG [org.jboss.seam.Component] done initializing: org.jboss.seam.core.interpolator
| 2006-12-19 12:20:37,750 ERROR [com.zua.business.ServiceBusinessImpl] Executing method on Service Business: com.zua.business.ServiceBusinessImpl@b73feb
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Contexts] found in conversation context: org.jboss.seam.core.persistenceContexts
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.ejb3.entity.ManagedEntityManagerFactory] ************** closing entity managersession **************
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.core.Manager] Storing conversation state: 6
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] After request, destroying contexts
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying business process context
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing server-side conversation context
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] flushing session context
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] destroying event context
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Contexts] destroying: org.jboss.seam.core.manager
| 2006-12-19 12:20:37,781 DEBUG [org.jboss.seam.contexts.Lifecycle] <<< End web request
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995081#3995081
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995081
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - EJB3: Update-Listener doesn't persist Objects
by Rhodan76
Hello,
if i try to persist a newly created object inside an hibernate3-listener, this object get never persisted in the database. Using following code-snippet for persisting:
private void saveNewObjectFromWithinEventListener( Object myObject ) {
| try {
| InitialContext ctx = new InitialContext();
| SessionFactory factory = (SessionFactory) ctx.lookup("java:/hibernate/SessionFactory");
| factory.getCurrentSession().save(myObject);
| } catch (NamingException e) {
| throw new HibernateException(e);
| }
Especially i using an post-update-listener of Hibernate3 inside jboss 4.0.5. The listener is registered in the persistence.xml and if i debug, i see that the listener is invoked. All runs fine, i'm getting no exception, but only the transient object will not be persisted to the database.
Is it impossible to persist a new (transient) object created inside an hibernate-listener to the database within these listener ?
[Using jboss 4.0.5 EJB3 RC9]
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995068#3995068
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995068
19 years, 7 months
[JBoss Seam] - Re: Problems deploying a project using Jboss 4.0.5.GA
by lara
Thanks for replying!
Well I tried to add some jar files and the previous bug was solved but now I am getting the following error:
| 06:11:56,328 INFO [EJB3Deployer] Deployed: file:/D:/servers/jboss-4.0.5.GA/server/default/tmp/deploy/tmp63584
| bpmshell.ear-contents/bpmshell.ejb3
| 06:11:56,328 INFO [TomcatDeployer] deploy, ctxPath=/bpmshell, warUrl=.../tmp/deploy/tmp63584bpmshell.ear-cont
| ents/bpmshell-exp.war/
| 06:11:58,406 INFO [ContextConfig] WARNING: Security role name NONE used in an <auth-constraint> without being
| defined in a <security-role>
| 06:11:58,437 ERROR [[/bpmshell]] Exception starting filter Seam Redirect Filter
| java.lang.ClassCastException: org.jboss.seam.servlet.SeamRedirectFilter
| at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:210)
| at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
| at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
| at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| 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: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.GeneratedMethodAccessor6.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 $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
|
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSu
| pport.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 $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.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.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 $Proxy6.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(AbstractDeploymentScann
| er.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner
| .java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.
| java:225)
| 06:11:58,437 ERROR [[/bpmshell]] Exception starting filter extensionsFilter
| java.lang.ClassNotFoundException: org.apache.myfaces.webapp.filter.ExtensionsFilter
| at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:209)
| at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:304)
| at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:77)
| at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3634)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4217)
| at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)
| at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)
| at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)
| 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.apache.catalina.core.StandardContext.init(StandardContext.java:5052)
| 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.apache.commons.modeler.BaseModelMBean.invoke(BaseModelMBean.java:503)
| at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:297)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| 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: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.GeneratedMethodAccessor6.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 $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
|
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSu
| pport.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 $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.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.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 $Proxy6.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(AbstractDeploymentScann
| er.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner
| .java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.
| java:225)
| 06:11:58,437 ERROR [StandardContext] Error filterStart
| 06:11:58,437 ERROR [StandardContext] Context [/bpmshell] startup failed due to previous errors
| 06:11:58,437 WARN [ServiceController] Problem starting service jboss.web.deployment:war=bpmshell.war,id=10129
| 08351
| org.jboss.deployment.DeploymentException: URL file:/D:/servers/jboss-4.0.5.GA/server/default/tmp/deploy/tmp635
| 84bpmshell.ear-contents/bpmshell-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| 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: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.GeneratedMethodAccessor6.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 $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
|
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSu
| pport.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 $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.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.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 $Proxy6.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(AbstractDeploymentScann
| er.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner
| .java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.
| java:225)
| 06:11:58,453 ERROR [MainDeployer] Could not start deployment: file:/D:/servers/jboss-4.0.5.GA/server/default/t
| mp/deploy/tmp63584bpmshell.ear-contents/bpmshell.war
| org.jboss.deployment.DeploymentException: URL file:/D:/servers/jboss-4.0.5.GA/server/default/tmp/deploy/tmp635
| 84bpmshell.ear-contents/bpmshell-exp.war/ deployment failed
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeployInternal(TomcatDeployer.java:375)
| at org.jboss.web.tomcat.tc5.TomcatDeployer.performDeploy(TomcatDeployer.java:103)
| at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:371)
| at org.jboss.web.WebModule.startModule(WebModule.java:83)
| at org.jboss.web.WebModule.startService(WebModule.java:61)
| 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: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.GeneratedMethodAccessor6.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 $Proxy42.start(Unknown Source)
| at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
| 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.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
| at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
|
| at org.jboss.ws.integration.jboss.DeployerInterceptor.start(DeployerInterceptor.java:92)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSu
| pport.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 $Proxy43.start(Unknown Source)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at sun.reflect.GeneratedMethodAccessor11.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.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 $Proxy6.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(AbstractDeploymentScann
| er.java:263)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner
| .java:274)
| at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.
| java:225)
|
Note that I checked the library folder and it does include the SeamRedirectFilter and my web.xml looks as follows:
| <?xml version="1.0" encoding="utf-8"?>
| <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
|
| <!-- Seam -->
| <listener>
| <listener-class>
| org.jboss.seam.servlet.SeamListener
| </listener-class>
| </listener>
| <!-- Propagate conversations across redirects -->
| <filter>
| <filter-name>Seam Redirect Filter</filter-name>
| <filter-class>
| org.jboss.seam.servlet.SeamRedirectFilter
| </filter-class>
| </filter>
| <filter-mapping>
| <filter-name>Seam Redirect Filter</filter-name>
| <url-pattern>*.jsfx</url-pattern>
| </filter-mapping>
| <context-param>
| <param-name>
| org.jboss.seam.core.manager.conversationTimeout
| </param-name>
| <param-value>120000</param-value>
| </context-param>
| <!-- MyFaces -->
| <listener>
| <listener-class>
| org.apache.myfaces.webapp.StartupServletContextListener
| </listener-class>
| </listener>
| <context-param>
| <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
| <param-value>client</param-value>
| </context-param>
| <context-param>
| <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
| <param-value>.xhtml</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.validateXml</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>com.sun.faces.verifyObjects</param-name>
| <param-value>true</param-value>
| </context-param>
| <context-param>
| <param-name>facelets.DEVELOPMENT</param-name>
| <param-value>true</param-value>
| </context-param>
| <servlet>
| <servlet-name>Faces Servlet</servlet-name>
| <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
| <load-on-startup>1</load-on-startup>
| </servlet>
| <!-- My Faces Extensions Filter -->
| <filter>
| <filter-name>extensionsFilter</filter-name>
| <filter-class>
| org.apache.myfaces.webapp.filter.ExtensionsFilter
| </filter-class>
| <init-param>
| <param-name>uploadMaxFileSize</param-name>
| <param-value>1m</param-value>
| </init-param>
| <init-param>
| <param-name>uploadThresholdSize</param-name>
| <param-value>128k</param-value>
| </init-param>
| </filter>
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>*.jsfx</url-pattern>
| </filter-mapping>
| <!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->
| <filter-mapping>
| <filter-name>extensionsFilter</filter-name>
| <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
| </filter-mapping>
| <!-- MyFaces Tomahawk Library -->
| <context-param>
| <param-name>facelets.LIBRARIES</param-name>
| <param-value>/WEB-INF/tomahawk.taglib.xml</param-value>
| </context-param>
| <!-- Faces Servlet Mapping -->
| <servlet-mapping>
| <servlet-name>Faces Servlet</servlet-name>
| <url-pattern>*.jsfx</url-pattern>
| </servlet-mapping>
| <welcome-file-list>
| <welcome-file>index.html</welcome-file>
| <welcome-file>index.jsfx</welcome-file>
| <welcome-file>index.xhtml</welcome-file>
| <welcome-file>index.jspx</welcome-file>
| </welcome-file-list>
| <security-constraint>
| <display-name>Restrict XHTML Documents</display-name>
| <web-resource-collection>
| <web-resource-name>XHTML</web-resource-name>
| <url-pattern>*.xhtml</url-pattern>
| </web-resource-collection>
| <auth-constraint>
| <description>Only allow xhtml pages</description>
| <role-name>NONE</role-name>
| </auth-constraint>
| </security-constraint>
| </web-app>
|
In this case, what could the problem be knowing that I am using
jboss-seam-1.1.0.GA?
Thanks again..Any help is appreciated!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995066#3995066
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995066
19 years, 7 months
[Installation, Configuration & Deployment] - Re: Deploy a web application on JBoss
by PeterJ
The URL in jboss-service.xml is only valid if it is accessible. In other words, you need to have an HTTP server (which could be JBoss) on localhost with port 7070 open and be able to access the indicated context (mywar/test.war) through that server. Why? Because JBoss uses the URL specified as the location of the war file and will attempt to access (read) it from there. If you can't access it from a browser using that URL, JBoss cannot access it either.
You might, instead, want to use a file URL, such as file:/home/foo/test/test.war, so that JBoss can access the war file from the file system.
Also, look at the jboss.system:server=MainDeployer MBean. It has variations on the invoke operation which accept a URL or a file name. You can use the invoke methods to deploy applications, even exploded directories. You can invoke the operation either through
the jmx-console or twiddle. Be warned, though, that applications deployed this way are 'lost' when you restart the server and thus need to be redeployed (though if you use twiddle to do the deploy, you could always write a script to start the server, wait 20 or 30 seconds, and then deploy the apps through twiddle).
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995064#3995064
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995064
19 years, 7 months
[EJB/JBoss] - Use of EntityManager.clear()
by murtuza52
Current setup:
JBoss 4.0.5, MySql 5.0, WindowsXP
I have medium sized applicated with about 50 entities with relations. I have used inheritence and total number of tables are same as entities. Some of the tables have more than 50,000. Recenlty the manager.merge() operation on most of the entities take more than 10 secs mainly due to the number of entities that get loaded and flushed back to database when merge() is called. This is strange behaviour as even when only one entity gets modified, all the entities in the memory gets flushed.
One of the solution i came up with was to use manager.clear() before calling manager.merge() to detach all entities. This seems to be working fine. I like to know:
1. Is this good programming practice?
2. Is this thread safe? One thread might be in different state with dirty enities about to persist or merge when other thread calls manager.clear() detaching all entities. Not sure what might happen?
Thanks
Murtuza
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995061#3995061
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995061
19 years, 7 months
[Beginners Corner] - JBoss not shutting down
by georgeuoa
I recently upgraded to 4.0.5GA and I found it impossible to shutdown JBoss with my application deployed. Both crtl+c and/or shutdown -S result in an attempt to shut down, but hang eventually with the appended exception.
With jboss-4.0.3SP1 it works fine.
Thank you
G.
java: 1.5.0_10
OS: windows server 2003
jboss: 4.0.5.GA
18:16:45,262 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
18:16:45,262 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
18:16:45,262 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
18:16:45,278 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
18:16:45,278 [JBoss Shutdown Hook] INFO SchedulerFactoryBean - Shutting down Quartz Scheduler
18:16:45,278 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutting down.
18:16:45,278 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED paused.
18:16:45,293 [JBoss Shutdown Hook] INFO QuartzScheduler - Scheduler QuartzScheduler_$_NON_CLUSTERED shutdown complete.
18:16:45,293 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
18:16:45,309 [JBoss Shutdown Hook] INFO MBeanExporter - Unregistering JMX-exposed beans on shutdown
18:16:45,340 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
18:16:45,340 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
18:16:45,340 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
18:16:45,356 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
18:16:45,356 [JBoss Shutdown Hook] INFO EhCacheManagerFactoryBean - Shutting down EHCache CacheManager
18:16:45,356 [JBoss Shutdown Hook] INFO LocalSessionFactoryBean - Closing Hibernate SessionFactory
18:16:45,356 [JBoss Shutdown Hook] INFO SessionFactoryImpl - closing
18:16:45,699 [AWT-Windows] ERROR STDERR - Exception in thread "AWT-Windows"
18:16:47,371 [AWT-Windows] ERROR STDERR - java.lang.IllegalStateException: Shutdown in progress
18:16:47,371 [AWT-Windows] ERROR STDERR - at java.lang.Shutdown.add(Shutdown.java:81)
18:16:47,371 [AWT-Windows] ERROR STDERR - at java.lang.Runtime.addShutdownHook(Runtime.java:190)
18:16:47,371 [AWT-Windows] ERROR STDERR - at sun.awt.windows.WToolkit.run(WToolkit.java:255)
18:16:47,387 [AWT-Windows] ERROR STDERR - at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995057#3995057
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995057
19 years, 7 months
[Persistence, JBoss/CMP, Hibernate, Database] - Writing Hibernate validator
by waheed.murad
I want to have my own Hibernate annotaion validator...... named NotEmpty a problem is that when after form submition the only initialize() method is called. isValid() method does not executes......
below is the code and Thanks in advance for help......
------------- Annotation descriptor -------------------
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import org.hibernate.validator.ValidatorClass;
@ValidatorClass(value=NotEmptyValidator.class)
@Target(value={ElementType.METHOD,ElementType.FIELD})
@Retention(value=RetentionPolicy.RUNTIME)
@Documented
public @interface NotEmpty {
String message() default "Field cannot be empty";
}
------------- Annotation validator -------------------
import org.hibernate.validator.PropertyConstraint;
import org.hibernate.validator.Validator;
import java.io.Serializable;
public class NotEmptyValidator implements Validator, PropertyConstraint, Serializable {
public boolean isValid(Object value) {
System.out.println(" is Valid method called...");
..............
..............
return false;
}
public void initialize(NotEmpty parameters) {
System.out.println(" Initialize method called...");
}
public void apply(org.hibernate.mapping.Property property){
System.out.println(" Apply method called...");
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995049#3995049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995049
19 years, 7 months
[JBoss Seam] - Re: Basic Seam questions
by lightbulb432
1) I'm probably not asking that question correctly...lemme try again. How does Seam know that there's a new conversation, such that it has to increment or change the conversation ID to a new number?
What confuses me is that at any time there's a cid request parameter value...what indicates to Seam that it's time to start a new conversation (apart from hitting another @Begin method)?
I keep hearing that Seam solves the "back button issue", whatever that is...does Seam do this through conversations?
2) Regarding the persist(), it actually is for a brand new entity, which is why I seemed so amazed. Does this happen because of the fact that the entity has been "created" through its use as a backing bean (but I don't see how it became managed by the persistence context).
By the way, can I output everything that's being managed in a given persistence context? (I don't mean EntityManager's contains())
3) Is there any simple way to get writes going to one DB and reads going to its replicated DB (or balance between that and the original DB in addition)?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995040#3995040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995040
19 years, 7 months
[Messaging, JMS & JBossMQ] - MDB and connection to a remote queue with transaction
by mclu
Like
http://www.jboss.com/index.html?module=bb&op=viewtopic&t=91589
I have the same or equal problem.
I have 2 JBoss Servers(A and B). Both 4.0.5 with Messaging 1.0.1 GA
On A I have an MDB listen on a local queue
inside the onmessage it should get the message and send a Result to a Queue on Server B.
Inside my MDB on A I create a connection using B´s JNDI and look for XAConnectionFactory.
I open the session like this:
session = conn.createSession(true, Session.AUTO_ACKNOWLEDGE);
But after the onMessage returns the Message is still not in the DB on B.
If I do it like
session = conn.createSession(false, Session.AUTO_ACKNOWLEDGE);
it works.
It works also, if I use TRUE and commit the session explicitly with session.comit(); But if then an exception on A occurs I have the Message still in A and already in B.
Question:
How can I span my JTA Transaction of Server A to include the send to B?
Now some config stuff follows:
My MDB Config:
<message-driven>
| <ejb-name>SyncRequestSenderMDB</ejb-name>
| <ejb-class>com.XXX.send.SyncRequestSenderMDB</ejb-class>
| <transaction-type>Container</transaction-type>
| <message-driven-destination>
| <destination-type>javax.jms.Queue</destination-type>
| </message-driven-destination>
| </message-driven>
| </enterprise-beans>
| <assembly-descriptor>
| <container-transaction>
| <method>
| <ejb-name>SyncRequestSenderMDB</ejb-name>
| <method-name>*</method-name>
| </method>
| <trans-attribute>Required</trans-attribute>
| </container-transaction>
| </assembly-descriptor>
My remote send call:
| Connection conn = null;
| MessageProducer sender = null;
| try {
|
| conn = getConnection();
| boolean transacted = true;
| session = conn
| .createSession(transacted, Session.AUTO_ACKNOWLEDGE);
|
| sender = session.createProducer(sendQueue);
|
| TextMessage tm = session.createTextMessage(syncMessage.getMessageAsString());
|
| sender.send(tm);
| Logger.debug(this, "Message sent to IM Server");
| // with this it will be send
| // session.commit();
|
| } catch (JMSException e) {
| throw new RuntimeException(
| "Problems sending Sync Message to IM Server Queue.", e);
| } finally {
| if (sender != null)
| try {
| sender.close();
| } catch (Exception ignore) {
| }
| if (session != null)
| try {
| session.close();
| } catch (Exception ignore) {
| }
| if (conn != null)
| try {
| conn.close();
| } catch (Exception ignore) {
| }
| }
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995038#3995038
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995038
19 years, 7 months
[JBoss Seam] - Re: Road Map
by amitev
This text is from core j2ee patterns [1]:
Synchronizer Token
This strategy addresses the problem of duplicate form submissions. A synchronizer token is set in a user's session and included with each form returned to the client. When that form is submitted, the synchronizer token in the form is compared to the synchronizer token in the session. The tokens should match the first time the form is submitted. If the tokens do not match, then the form submission may be disallowed and an error returned to the user. Token mismatch may occur when the user submits a form, then clicks the Back button in the browser and attempts to resubmit the same form.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995032#3995032
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995032
19 years, 7 months
[EJB/JBoss] - Re: Executing Outside Transaction
by murtuza52
I tried your approach, but it does not seems to working in concurrent access to methodA(). Let me explain, I ran test with two threads running almost parallel. Each thread making 100 calls to methodA(). At the end of the test the count should have increased by 200 but its not the case. Its always less than 200. When I looked deeper into the problem I found that two threads calling count() at same time (or before the current thread has written the new counter value to database) will read same counter value from the database. Thus both of them will result in writing same value in the database which is not right. There must be locking mechanism on the table or method which blocks others from access until current thread finishes the count() method. I tried synchronized but in vain.
I appreciate your help and hope to hear better solution from experts.
Murtuza
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995020#3995020
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995020
19 years, 7 months
[EJB 3.0] - Re: EJB QL requires useless item in select list
by owaind
org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=c,role=null,tableName=Channel,tableAlias=channel1_,origin=Request request0_,colums={request0_.channel_FK ,className=com.telepathyproof.adventure.ejb.entity.channel.Channel}}] [select c.id, sum(se.currentListeners) from com.telepathyproof.adventure.ejb.entity.stats.Request r inner join fetch r.channel c left join fetch r.stats s left join fetch s.statsEntries se where r.createdDate > :startDate and r.createdDate < :endDate]
at org.hibernate.hql.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:195)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3995017#3995017
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3995017
19 years, 7 months