[JBoss jBPM] - problem of deployment
by abdenourh
I have a problem when I try to deploy my process "processdefinition.xml"
when I execute this code
public static void main(String[] args){
jbpmConfiguration = JbpmConfiguration.parseResource("jbpm.cfg.xml");
ProcessDefinition P = ProcessDefinition.parseXmlResource("simple/processdefinition.xml");
JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
try {
jbpmContext.deployProcessDefinition(P);
} finally {
jbpmContext.close();
}
I have this error message
15:42:05,060 [main] DEBUG JbpmConfiguration : creating jbpm configuration from resource 'jbpm.cfg.xml'
15:42:05,075 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
15:42:05,341 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
15:42:05,341 [main] DEBUG JbpmConfiguration : loading specific configuration...
15:42:05,403 [main] INFO JbpmConfiguration : using jbpm configuration resource 'jbpm.cfg.xml'
15:42:05,403 [main] DEBUG JbpmConfiguration : loading defaults in jbpm configuration
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'default.jbpm.context'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.hibernate.cfg.xml'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.business.calendar'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.default.modules'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.converter'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.action.types'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.node.types'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.parsers'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'resource.varmapping'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.msg.wait.timout'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.byte.block.size'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'mail.smtp.host'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.task.instance.factory'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.variable.resolver'
15:42:05,419 [main] DEBUG ObjectFactoryImpl : adding object info 'jbpm.mail.address.resolver'
15:42:05,435 [main] DEBUG JbpmConfiguration : loading specific configuration...
Exception in thread "main" org.jbpm.jpdl.JpdlException: [[ERROR] couldn't parse process definition]
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:163)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at com.sample.action.Dep.main(Dep.java:39)
15:42:05,482 [main] ERROR JpdlXmlReader : couldn't parse process definition
org.dom4j.DocumentException: null Nested exception: null
at org.dom4j.io.SAXReader.read(SAXReader.java:484)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at com.sample.action.Dep.main(Dep.java:39)
Nested exception:
java.net.MalformedURLException
at java.net.URL.(URL.java:601)
at java.net.URL.(URL.java:464)
at java.net.URL.(URL.java:413)
at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.dom4j.io.SAXReader.read(SAXReader.java:465)
at org.jbpm.jpdl.xml.JpdlParser.parse(JpdlParser.java:57)
at org.jbpm.jpdl.xml.JpdlXmlReader.readProcessDefinition(JpdlXmlReader.java:138)
at org.jbpm.graph.def.ProcessDefinition.parseXmlInputStream(ProcessDefinition.java:172)
at org.jbpm.graph.def.ProcessDefinition.parseXmlResource(ProcessDefinition.java:153)
at com.sample.action.Dep.main(Dep.java:39)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024288#4024288
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024288
17Â years, 10Â months
[JBoss Seam] - exceptions.xml : display exception's information
by synthez84
Hi,
I'm looking how to use Seam exception handling with exception.xml, in Seam 1.1.1.
The redirection seems to be executed, but I know nothing about the exception.
I've got an actionBean, that throw an exception like
| throw new Exception("Don't worry, just a test...");
My exceptions.xml is :
| <exceptions>
| <exception>
| <redirect view-id="/generic_error_page.xhtml">Test</redirect>
| <end-conversation/>
| </exception>
| </exceptions>
My generic_error_page.xhtml :
| <c:if test="${applicationException != null}">
| <p>
| <h:outputText value="#{applicationException.localizedMessage}" />
| </p>
| </c:if>
When I call my actionBean, Exception is thrown and I'm redirected in generic_error_page.xhtml. But no message in it.
What should I do to have an error page with all exception's information?
Thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024280#4024280
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024280
17Â years, 10Â months
[JBossCache] - memory leak
by gmeroz
I use JBossCache-all-2.0.0.ALPHA2.
i have a memory leak in my application when i use JBossCache. The following test reproduce it. It add 100 Person object to the cache, than it remove them from the cache & and repeat...
When i use profiler, I see that the number of instances of Person is raising. (even if i force GC).
| public void testMemoryLeak(){
| PojoCache cache = PojoCacheFactory.createCache("com/bevents/infra/service/cache/cache.xml", true);
| String category = "testCat";
| while (true) {
| for (int i=0 ;i<100; i++) {
| Person person = new Person();
| person.setName("aaa");
| cache.attach(category+"/testPerson"+i,person);
| assertEquals(person,cache.find(category+"/testPerson"+i));
| }
| // delete from the cache.
| cache.getCache().getRoot().removeChild(Fqn.fromString(category));
| assertNull(cache.find(category+"/testPerson0"));
| System.out.println("sleep");
| try {
| Thread.sleep(5000);
| } catch (InterruptedException e) {
| e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
| }
| }
| }
|
this is the configuration XML loaded for the cache:
| <?xml version="1.0" encoding="UTF-8"?>
| <server>
| <classpath codebase="./lib" archives="jboss-cache.jar, jgroups.jar"/>
| <mbean code="org.jboss.cache.TreeCache"
| name="jboss.cache:service=TreeCache">
|
| <depends>jboss:service=Naming</depends>
| <depends>jboss:service=TransactionManager</depends>
|
| <attribute name="TransactionManagerLookupClass">org.jboss.cache.DummyTransactionManagerLookup</attribute>
| <attribute name="IsolationLevel">READ_COMMITTED</attribute>
|
| <attribute name="CacheMode">LOCAL</attribute>
| </mbean>
|
|
|
| </server>
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4024278#4024278
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4024278
17Â years, 10Â months