[jBPM Users] - Re: Script Evaluation failed
by saraswati.santanu
Isn't it like using a variable without declaring that is what you are expecting? And why null checks should be treated specially? From the perspective of script validation, I think what is happening is logical.
I can imagine scenarios where the current behaviour can create problem. When the variables are passed from some other class, it will not send a property which that class does not have. In such a case the default value of the variable should be considered.
I would wish to have a feature to declare variables at the process definition scope and assign some default value to it. So if we do not have the variable at the runtime, the execution can move on with the declared default value.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265769#4265769
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265769
16 years, 7 months
No Such Field Error
by jithu mada
---------- Forwarded message ----------
From: jithu mada <jithu.mada(a)gmail.com>
Date: Mon, Nov 9, 2009 at 3:55 PM
Subject: No Such Field Error
To: jboss-user(a)lists.jboss.org
Hi,
We have downloaded and installed Jboss 5.1.0.GA on AIX 6 (64 bit) machine
and are using IBM JDK 5.0 for 64 bit.
However, When we start the Jboss, the following exception is thrown
Exception in thread "main" java.lang.NoSuchFieldError:
org/apache/log4j/Level.TRACE
at
org.jboss.logging.log4j.Log4jLoggerPlugin.isTraceEnabled(Log4jLoggerPlugin.java:94)
and after throwing this exception Jboss shutsdown itself.
I tried to put the latest of version log4j from apached in jboss/common/lib,
but, still the same exception.
Can anyone please tell me what could be the problem.
Thanks
16 years, 7 months
[Installation, Configuration & Deployment] - configuration issue in Adding APR to JBoss
by tpalani
I am trying to configure the jboss-4.2.2.GA and while running the run.sh.
I am getting the following error. Any pointer to fix the problem will be appreciated.
Thanks in advance and here is the error message.
[jboss@ganga3 bin]$ ./run.sh
./run.conf: line 43: -Xms128m -Xmx4096m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000: command not found
=========================================================================
JBoss Bootstrap Environment
JBOSS_HOME: /u01/jboss/jboss-4.2.2.GA
JAVA: java
JAVA_OPTS: -Dprogram.name=run.sh -XX:MaxPermSize=512m -Dhttp.proxyHost=ganga2 -Dhttp.proxyPort=3128 -Dhttps.proxyHost=ganga2 -Dhttps.proxyPort=3128 -Dhttp.nonProxyHosts="godavari1|godavari2|godavari3|godavari4|cauvery1|cauvery2|cauvery1.sirahu.com|cauvery2.sirahu.com|relay.sirahu.com|localhost" -Djava.net.preferIPv4Stack=true -Djava.library.path=/u01/jboss/jboss-4.2.2.GA/bin/native
CLASSPATH: /u01/jboss/jboss-4.2.2.GA/bin/run.jar
=========================================================================
11:27:08,876 INFO [Server] Starting JBoss (MX MicroKernel)...
11:27:08,876 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
11:27:08,877 INFO [Server] Home Dir: /u01/jboss/jboss-4.2.2.GA
11:27:08,877 INFO [Server] Home URL: file:/u01/jboss/jboss-4.2.2.GA/
11:27:08,877 INFO [Server] Patch URL: null
11:27:08,878 INFO [Server] Server Name: default
11:27:08,878 INFO [Server] Server Home Dir: /u01/jboss/jboss-4.2.2.GA/server/default
11:27:08,878 INFO [Server] Server Home URL: file:/u01/jboss/jboss-4.2.2.GA/server/default/
11:27:08,878 INFO [Server] Server Log Dir: /u01/jboss/jboss-4.2.2.GA/server/default/log
11:27:08,878 INFO [Server] Server Temp Dir: /u01/jboss/jboss-4.2.2.GA/server/default/tmp
11:27:08,878 INFO [Server] Root Deployment Filename: jboss-service.xml
11:27:09,170 INFO [ServerInfo] Java version: 1.4.2,Free Software Foundation, Inc.
11:27:09,170 INFO [ServerInfo] Java VM: GNU libgcj 4.1.2 20080704 (Red Hat 4.1.2-44),Free Software Foundation, Inc.
11:27:09,171 INFO [ServerInfo] OS-System: Linux 2.6.18-92.1.6.el5,x86_64
11:27:09,314 INFO [Server] Core system initialized
11:27:10,271 ERROR [MainDeployer] Could not create deployment: file:/u01/jboss/jboss-4.2.2.GA/server/default/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
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.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
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 $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(libgcj.so.7rh)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
...27 more
Caused by: java.lang.NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.jboss.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
at org.jboss.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:449)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:253)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:282)
at java.lang.reflect.Constructor.newInstance(libgcj.so.7rh)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
...29 more
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:196)
at org.jboss.system.ServiceController.install(ServiceController.java:226)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
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.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:249)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:969)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:818)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at java.lang.reflect.Method.invoke(libgcj.so.7rh)
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 $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(libgcj.so.7rh)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:236)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:451)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:171)
...27 more
Caused by: java.lang.NoClassDefFoundError: org.jboss.dom4j.DocumentFactory
at java.lang.Class.initializeClass(libgcj.so.7rh)
at org.jboss.dom4j.io.SAXReader.getDocumentFactory(SAXReader.java:645)
at org.jboss.dom4j.io.SAXReader.createContentHandler(SAXReader.java:969)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:449)
at org.jboss.dom4j.io.SAXReader.read(SAXReader.java:291)
at org.jboss.mx.metadata.XMLMetaData.build(XMLMetaData.java:255)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:253)
at org.jboss.mx.modelmbean.XMBean.(XMBean.java:282)
at java.lang.reflect.Constructor.newInstance(libgcj.so.7rh)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1233)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:286)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:344)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:212)
...29 more
11:27:10,274 INFO [Server] Runtime shutdown hook called, forceHalt: true
11:27:10,274 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
11:27:10,280 INFO [Server] Shutdown complete
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265757#4265757
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265757
16 years, 7 months
[jBPM Users] - jBPM 3.2.6.SP1 enterprise environments question
by salaboy21
Hi all,
I'm working with the tag jBPM 3.2.6.SP1, (http://anonsvn.jboss.org/repos/jbpm/jbpm3/tags/jbpm-3.2.6.SP1/) and a big question arise.
I have an example about a Stateless Session bean that will use the jBPM APIs to interact with processes. The configurations of the example uses:
| <service name="persistence" factory="org.jbpm.persistence.jta.JtaDbPersistenceServiceFactory" />
|
and in hibernate.cfg.xml:
| <!-- CMT transaction properties (begin) === -->
| <property name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
| <property name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup</property>
| <!-- ==== CMT transaction properties (end) -->
|
Basically, I want to delegate the transactions administration to the container.
Now in my Stateless Session bean, I have some methods that will use the jBPM API's and I don't want to create the jBPMContext each time inside each method of my Stateless Session Bean. It's that possible? right now with 3.2.6.SP1 version, I need to create inside each method the context in order to work.
Thanks in advance.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265756#4265756
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265756
16 years, 7 months
[jBPM Users] - Re: jbpm 4.2 spring 2.5.6 integration
by saraswati.santanu
This is sample jpdl.cfg.xml. Please observe the command-service and db id generator mappings.
| <jbpm-configuration>
|
| <import resource="jbpm.businesscalendar.cfg.xml" />
| <import resource="jbpm.jpdl.cfg.xml" />
|
| <process-engine-context>
| <repository-service />
| <repository-cache />
| <execution-service />
| <history-service />
| <management-service />
| <task-service />
| <identity-service />
| <command-service name="txRequiredCommandService">
| <retry-interceptor />
| <environment-interceptor />
| <spring-transaction-interceptor/>
| </command-service>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseDbidGenerator">
| <field name="commandService"><ref object="txRequiredCommandService" /></field>
| </object>
|
| <object class="org.jbpm.pvm.internal.id.DatabaseIdComposer" init="eager" />
|
| <script-manager default-expression-language="juel" default-script-language="juel">
| <script-language name="juel" factory="org.jbpm.pvm.internal.script.JuelScriptEngineFactory" />
| </script-manager>
|
| <job-executor auto-start="false" />
|
| <types resource="jbpm.variable.types.xml" />
| </process-engine-context>
|
| <transaction-context>
| <repository-session/>
| <db-session/>
|
| <message-session/>
| <timer-session/>
| <history-session/>
|
| <hibernate-session current="true"/>
| </transaction-context>
|
| </jbpm-configuration>
|
You can also refer to this post http://www.jboss.org/index.html?module=bb&op=viewtopic&t=163512
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4265753#4265753
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4265753
16 years, 7 months