[JBoss jBPM] - Re: jbpm-3.2.GA incompatibility with jboss-4.2.CR1
by kiwu2201
1. I have excluded these jars in my console WAR and deployed it. Jboss starts without errors but when I start the jbpm-console app I still get these JSF or facelet related errors like:
15:47:09,000 ERROR [STDERR] 13-Apr-2007 15:47:09 com.sun.facelets.compiler.TagLibraryConfig loadImplicit
2. When I then try to logon I get the following error regarding the hibernate.cfg.xml file:
16:05:25,437 DEBUG [JbpmBean] org.jbpm.webapp.bean.JbpmBean@2f0bd7 using NEW org.jbpm.JbpmContext@52f9b2
| 16:05:25,437 DEBUG [DbPersistenceServiceFactory] building hibernate session factory
| 16:05:25,437 DEBUG [HibernateHelper] creating hibernate configuration resource 'hibernate.cfg.xml'
| 16:05:25,437 INFO [Configuration] configuring from resource: hibernate.cfg.xml
| 16:05:25,437 INFO [Configuration] Configuration resource: hibernate.cfg.xml
| 16:05:25,437 ERROR [STDERR] 13-Apr-2007 16:05:25 com.sun.facelets.FaceletViewHandler handleRenderException
| SEVERE: Error Rendering View[/search/tasks.xhtml]
| javax.el.ELException: /search/tasks.xhtml @14,81 session="#{jbpmBean.jbpmContext.session}": Error reading 'session' on type org.jbpm.JbpmContext
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:76)
| at org.jbpm.webapp.tag.jbpm.ui.Search.getSession(Search.java:47)
| at org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:72)
| at org.jbpm.webapp.tag.jbpm.ui.UICriteria.initialize(UICriteria.java:134)
| at org.jbpm.webapp.tag.jbpm.ui.UICriteria.getSearchBean(UICriteria.java:229)
| at org.jbpm.webapp.tag.jbpm.ui.Search.initialize(Search.java:191)
| at org.jbpm.webapp.tag.jbpm.ui.Search.encodeBegin(Search.java:92)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:882)
| at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
| at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:810)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:884)
| at javax.faces.component.UIComponent.encodeAll(UIComponent.java:890)
| at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:578)
| at org.jbpm.webapp.application.JbpmViewHandler.renderView(JbpmViewHandler.java:58)
| at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
| at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:248)
| at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
| at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jbpm.webapp.filter.LogFilter.doFilter(LogFilter.java:59)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
| at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
| at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
| at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
| at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
| at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
| at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
| at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
| at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
| at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
| at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
| at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
| at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
| at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
| at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:624)
| at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
| at java.lang.Thread.run(Unknown Source)
| Caused by: org.hibernate.HibernateException: Could not parse configuration: hibernate.cfg.xml
| at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1491)
| at org.hibernate.cfg.Configuration.configure(Configuration.java:1425)
| at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
| at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
| at org.jbpm.persistence.jta.JtaDbPersistenceService.isCurrentJtaTransactionAvailable(JtaDbPersistenceService.java:37)
| at org.jbpm.persistence.jta.JtaDbPersistenceService.<init>(JtaDbPersistenceService.java:22)
| at org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory.openService(JtaDbPersistenceServiceFactory.java:17)
| at org.jbpm.svc.Services.getService(Services.java:141)
| at org.jbpm.svc.Services.getPersistenceService(Services.java:180)
| at org.jbpm.JbpmContext.getPersistenceService(JbpmContext.java:628)
| at org.jbpm.JbpmContext.getSession(JbpmContext.java:504)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at javax.el.BeanELResolver.getValue(BeanELResolver.java:62)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
| at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
| at org.apache.el.parser.AstValue.getValue(AstValue.java:97)
| at org.apache.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:186)
| at com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
The only change I have made in my hibernate.cfg.xml (located in the jbpm-configs.jar) file is to set the dialect to MySQL
<!-- hibernate dialect -->
| <property name="hibernate.dialect">org.hibernate.dialect.MYSQLDialect</property>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037115#4037115
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037115
19 years
[Clustering/JBoss] - HA-Singleton / JMS Connection Factories
by marcelo.leite
Hi,
i've configured a simple cluster using Apache+mod_jk as a Load Balancer.
I have two JBOSS nodes configured and this works fine, but i have a problem.
When i make a request for my app and the LB redirect it to the "master" node it works fine and the functionality requested execute without errors.
But, if the LB redirect the request to another node, it fails with the error below.
__________________________________________________________
javax.naming.NameNotFoundException: XAConnectionFactory not bound
__________________________________________________________
JMS connection factories is implemented as HA-Singleton in JBoss which means that it is running only on one "master" node in a cluster.
Perhaps this is the cause of this exception.
Is there something special that i have to do on nodes or on LB?
Best Regards!
Marcelo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037112#4037112
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037112
19 years
[JBoss Seam] - Re: Having problems looking up a Seam component in the JNDI
by c_inconnu
Hi,
This is an old thread but i got the exact same problem. Have you managed to get this working ?
I must say that i'm using Maven2. The following works in JBoss AS but not in the microcontainer :
| @Local
| public interface Authenticator
| {
| boolean authenticate();
| }
|
and
| @Name("authenticator")
| @Stateless public class AuthenticatorAction
| implements Authenticator
| { ... }
|
and got
| ERROR 2007-04-13 16:58:41,187 (SeamLoginModule.java:108) - Error invoking login method
| org.jboss.seam.InstantiationException: Could not instantiate Seam component: authenticator
| at org.jboss.seam.Component.newInstance(Component.java:1740)
| at org.jboss.seam.Component.getInstance(Component.java:1643)
| at org.jboss.seam.Component.getInstance(Component.java:1610)
| at org.jboss.seam.Component.getInstance(Component.java:1604)
| at org.jboss.seam.jsf.SeamELResolver.getValue(SeamELResolver.java:49)
| at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:135)
| at com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
| at com.sun.el.parser.AstValue.getTarget(AstValue.java:41)
| at com.sun.el.parser.AstValue.invoke(AstValue.java:126)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
| at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
| at org.jboss.seam.core.Expressions$2.invoke(Expressions.java:148)
| at org.jboss.seam.security.jaas.SeamLoginModule.login(SeamLoginModule.java:104)
| 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 javax.security.auth.login.LoginContext.invoke(LoginContext.java:769)
| at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
| at javax.security.auth.login.LoginContext$5.run(LoginContext.java:706)
| at java.security.AccessController.doPrivileged(Native Method)
| at javax.security.auth.login.LoginContext.invokeCreatorPriv(LoginContext.java:703)
| at javax.security.auth.login.LoginContext.login(LoginContext.java:575)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:247)
| at org.jboss.seam.security.Identity.authenticate(Identity.java:240)
| at org.jboss.seam.security.Identity.login(Identity.java:170)
| 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 com.sun.el.parser.AstValue.invoke(AstValue.java:130)
| at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:274)
| at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
| at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
| at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
| at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:401)
| at org.jboss.seam.example.booking.LoginTest$2.invokeApplication(LoginTest.java:76)
| at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:489)
| at org.jboss.seam.example.booking.LoginTest.testLogin(LoginTest.java:60)
| 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.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552)
| at org.testng.internal.Invoker.invokeMethod(Invoker.java:411)
| at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:785)
| at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:114)
| at org.testng.TestRunner.privateRun(TestRunner.java:693)
| at org.testng.TestRunner.run(TestRunner.java:574)
| at org.testng.SuiteRunner.privateRun(SuiteRunner.java:241)
| at org.testng.SuiteRunner.run(SuiteRunner.java:145)
| at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:901)
| at org.testng.TestNG.runSuitesLocally(TestNG.java:863)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.executeTestNG(TestNGDirectoryTestSuite.java:195)
| at org.apache.maven.surefire.testng.TestNGDirectoryTestSuite.execute(TestNGDirectoryTestSuite.java:133)
| at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
| 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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:290)
| at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:818)
| Caused by: javax.naming.NameNotFoundException: AuthenticatorAction not bound
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:516)
| at org.jnp.server.NamingServer.getBinding(NamingServer.java:524)
| at org.jnp.server.NamingServer.getObject(NamingServer.java:530)
| at org.jnp.server.NamingServer.lookup(NamingServer.java:253)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:610)
| at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:572)
| at javax.naming.InitialContext.lookup(InitialContext.java:392)
| at org.jboss.seam.Component.instantiateSessionBean(Component.java:1107)
| at org.jboss.seam.Component.instantiate(Component.java:1093)
| at org.jboss.seam.Component.newInstance(Component.java:1736)
| ... 65 more
|
Although i also got :
| INFO 2007-04-13 16:58:34,703 (Component.java:245) - Component: authenticator, scope: STATELESS, type: STATELESS_SESSION_BEAN, class: xxx.actions.AuthenticatorAction, JNDI: AuthenticatorAction/local
|
When i look into jndi from my test class
| InitialContext context = new InitialContext();
| NamingEnumeration<NameClassPair> enumeration = context.list("java:/");
| ...
|
i got only
| UserTransaction: org.jboss.tm.usertx.client.ServerVMClientUserTransaction
| impDatasource: org.jboss.resource.adapter.jdbc.WrapperDataSource
| TransactionManager: org.jboss.tm.TxManager
|
I tried so much things ... Thanks
David
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037110#4037110
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037110
19 years