[JBoss jBPM] - Re: Custom IdentitySession configuration
by shekharv
Just use something on the lines of what is specified below: Of course you WILL have to tweak it to suite all your needs,
| <?xml version="1.0" encoding="UTF-8"?>
|
| <jbpm-configuration>
|
| <import resource="jbpm.jpdl.cfg.xml"/>
| <process-engine-context>
| <repository-service/>
| <repository-cache/>
| <execution-service/>
| <history-service/>
| <management-service/>
| <identity-service/>
| <task-service/>
|
| <script-manager default-expression-language="juel"
| default-script-language="juel"
| read-contexts="execution, environment, process-engine, spring"
| write-context="">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory"/>
| </script-manager>
|
| <authentication/>
| <id-generator/>
| <types resource="jbpm.variable.types.xml"/>
|
| <address-resolver/>
|
| <business-calendar>
| <monday hours="9:00-12:00 and 12:30-17:00"/>
| <tuesday hours="9:00-12:00 and 12:30-17:00"/>
| <wednesday hours="9:00-12:00 and 12:30-17:00"/>
| <thursday hours="9:00-12:00 and 12:30-17:00"/>
| <friday hours="9:00-12:00 and 12:30-17:00"/>
| <holiday period="01/07/2008 - 31/08/2008"/>
| </business-calendar>
|
| <command-service>
| <retry-interceptor/>
| <environment-interceptor/>
| <spring-transaction-interceptor current="true"/>
| </command-service>
| </process-engine-context>
|
| <transaction-context>
| <repository-session/>
| <db-session/>
| <message-session/>
| <timer-session/>
| <history-session/>
| <hibernate-session current="true"/>
|
| <!-- Custom Identity implementation-->
| <object class="com.urcompany.IdentitySessionImpl"/>
| </transaction-context>
| </jbpm-configuration>
|
If you note the config above, the transaction-context is not inside the process-context. It is a node by itself.
So either use the config from above or change yours to something more like:
| <process-engine-context>
| <identity-service/>
| </process-engine-context>
| <transaction-context>
| <object class="be.mypackage.MyIdentitySession" />
| </transaction-context>
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239601#4239601
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239601
16 years, 10 months
[EJB/JBoss] - JBoss 5.1 regression: ArjunaJTA loses stack trace
by kennardconsulting
There's some code in com.arjuna.ats.internal.jta.transaction.arjunacore.TransactionImple that says...
// keep a record of why we are rolling back i.e. who called us first, it's a useful debug aid.
| if(_rollbackOnlyCallerStacktrace == null)
| {
| _rollbackOnlyCallerStacktrace = new Throwable("setRollbackOnly called from:");
| }
...this seems to partner with some other code that says...
if(_rollbackOnlyCallerStacktrace != null) {
| // we rolled back beacuse the user explicitly told us not to commit. Attach the trace of who did that for debug:
| rollbackException.initCause(_rollbackOnlyCallerStacktrace);
| }
| else if(_theTransaction.getDeferredThrowable() != null) {
| // we tried to commit but it went wrong - attach the reason for debug:
| rollbackException.initCause(_theTransaction.getDeferredThrowable());
| }
| throw rollbackException;
...so we are attaching an empty Throwable with the text 'setRollbackOnly called from:' to the bottom of the stack trace. Contrary to the comments, this does not appear a useful debug aid. Rather, the 'deferredThrowable' might be more useful.
In JBoss 4.2.3.GA the bottom of the stacktrace contained something useful (such as the SQL error that caused the rollback).
Is this a bug?
Regards,
Richard.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239599#4239599
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239599
16 years, 10 months
[Beginners Corner] - Re: Deploying WebService from JDeveloper 10.1.3.2 to JBoss 4
by chairill
endpoint already registered. what does that mean?
Somebody please guide me..tq
anonymous wrote : ERROR [MainDeployer] Could not create deployment: file:/usr/jboss/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1792034719851702614JavaWebService-GetDates-WS.ear-contents/WebServices.war
| java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=JavaWebService-GetDates-context-root,endpoint=GetDatesWSSoapHttpPort
| at org.jboss.wsf.framework.management.DefaultEndpointRegistry.register(DefaultEndpointRegistry.java:89)
| at org.jboss.wsf.framework.management.ManagedEndpointRegistry.register(ManagedEndpointRegistry.java:59)
| at org.jboss.wsf.framework.deployment.EndpointRegistryDeploymentAspect.create(EndpointRegistryDeploymentAspect.java:49)
| at org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118)
| at org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
| at org.jboss.wsf.container.jboss42.DeployerInterceptor.create(DeployerInterceptor.java:79)
| at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.create(SubDeployerInterceptorSupport.java:180)
| at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:91)
| 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 $Proxy45.create(Unknown Source)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
| at org.jboss.deployment.MainDeployer.create(MainDeployer.java:959)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
| 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.startService(AbstractDeploymentScanner.java:336)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
| at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
| at sun.reflect.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 $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:304)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java: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 $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
| at org.jboss.Main.boot(Main.java:200)
| at org.jboss.Main$1.run(Main.java:508)
| at java.lang.Thread.run(Thread.java:619)
| 11:49:44,967 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
|
| --- Incompletely deployed packages ---
| org.jboss.deployment.DeploymentInfo@ab18c8ed { url=file:/usr/jboss/jboss-4.2.3.GA/server/default/deploy/JavaWebService-GetDates-WS.ear }
| deployer: org.jboss.deployment.EARDeployer@1751a9e
| status: Deployment FAILED reason: Could not create deployment: file:/usr/jboss/jboss-4.2.3.GA/server/default/tmp/deploy/tmp1792034719851702614JavaWebService-GetDates-WS.ear-contents/WebServices.war; - nested throwable: (java.lang.IllegalStateException: Endpoint already registered: jboss.ws:context=JavaWebService-GetDates-context-root,endpoint=GetDatesWSSoapHttpPort)
| state: FAILED
| watch: file:/usr/jboss/jboss-4.2.3.GA/server/default/deploy/JavaWebService-GetDates-WS.ear
| altDD: null
| lastDeployed: 1245815384794
| lastModified: 1245815384000
| mbeans:
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239591#4239591
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239591
16 years, 10 months
[Installation, Configuration & DEPLOYMENT] - multiple or with hibernate criteria
by rizqureshi2
Anyone has come across the problem where you need to define multiple or statement in a hibernate criteria. Consider the following code segment:
| Criteria crit = session.createCriteria(Project.class);
| Criteria jobs = crit.createCriteria("jobTypes");
| jobs.add(Restrictions.or(Restrictions.eq("id", 1),
| Restrictions.or(Restrictions.eq("id", 2),
| Restrictions.or(Restrictions.eq("id", 3),
| Restrictions.or(Restrictions.eq("id", 4),Restrictions.eq("id", 5))
| ))));
|
Now, how would one create such a nested OR cirterion using for/while loop if one has any number of different ids {1,2,3,4,5,6.....}?
Thanks,
Rizwan
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4239585#4239585
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4239585
16 years, 10 months