[jBPM Development] - methods getConstraint and setConstraint in Split nodes don't work.
by Mar Bartolomé
Mar Bartolomé [https://community.jboss.org/people/marbu] created the discussion
"methods getConstraint and setConstraint in Split nodes don't work."
To view the discussion, visit: https://community.jboss.org/message/740759#740759
--------------------------------------------------------------
Hello everyone! I'm developing my first project with jBPM, and stumbled with a problem I can't find a solution too. I hope you folks can lend me some help :)
I have a requirement to be able to *change the constraint of connections coming out of a Split node* (splitting XOR gateway) *at runtime*. I have seen that this type of nodes have a setter and getter method for the constraints. However, when I use this methods on a Split node object, it seems that they do nothing!
For instance, if I load the BPMN2-ExclusiveSplit.bpmn2 example [ https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/res... https://github.com/droolsjbpm/jbpm/blob/master/jbpm-examples/src/main/res...], and create and start a new instance of the process passing it parameters x="First", y="Second" (as in the test class []), everything executes just fine.
> public void testExclusiveSplit() throws Exception {
> KnowledgeBase kbase = createKnowledgeBase("BPMN2-ExclusiveSplit.bpmn2");
> StatefulKnowledgeSession ksession = createKnowledgeSession(kbase);
> ksession.getWorkItemManager().registerWorkItemHandler("Email", new SystemOutWorkItemHandler());
> Map<String, Object> params = new HashMap<String, Object>();
> params.put("x", "First");
> params.put("y", "Second");
> ProcessInstance processInstance = ksession.startProcess("com.sample.test", params);
> assertTrue(processInstance.getState() == ProcessInstance.STATE_COMPLETED);
> }
>
Notice the constraints associated with the gateway in the bpmn2 file mentioned before:
<bpmn2:exclusiveGateway id="_D5523729-B575-4A2A-A7AC-D600586865CD" drools:bgcolor="#ffffff" drools:dg="" name="Split" gatewayDirection="Diverging">
<bpmn2:incoming>_50273E3F-9A4D-4C60-957F-5FE65E6F2609</bpmn2:incoming>
<bpmn2:outgoing>_DF37882A-350E-43F9-B776-47CC2AFF1CFB</bpmn2:outgoing>
<bpmn2:outgoing>_1AECF2F4-884D-49F7-AEF1-6512E7495D80</bpmn2:outgoing>
</bpmn2:exclusiveGateway>
<bpmn2:sequenceFlow id="_50273E3F-9A4D-4C60-957F-5FE65E6F2609" sourceRef="_CDDCB4BD-7E33-4124-B9E8-7A5276160413" targetRef="_D5523729-B575-4A2A-A7AC-D600586865CD"/>
<bpmn2:sequenceFlow id="_DF37882A-350E-43F9-B776-47CC2AFF1CFB" name="First" sourceRef="_D5523729-B575-4A2A-A7AC-D600586865CD" targetRef="_FC5AEDEA-84F5-4222-A581-1EBF4376B3A7">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_P8LaOLFQEeG9sYc2b7U_cA" language="http://www.java.com/java"><![CDATA[return x == First;]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
<bpmn2:sequenceFlow id="_1AECF2F4-884D-49F7-AEF1-6512E7495D80" name="Second" sourceRef="_D5523729-B575-4A2A-A7AC-D600586865CD" targetRef="_427976FF-F304-42EE-82CC-D75D4FBE3376">
<bpmn2:conditionExpression xsi:type="bpmn2:tFormalExpression" id="_P8LaObFQEeG9sYc2b7U_cA" language="http://www.java.com/java"><![CDATA[return x == Second;]]></bpmn2:conditionExpression>
</bpmn2:sequenceFlow>
However!! if I extract the Split node from my process definition, get it's constraints, and try to get all the attributes out of them:
Node[] processNodes = jbpmProcessDefinition.getNodes();
log.debug("detected "+jbpmProcessDefinition.getNodes().length+" jbpm states");
for(Node node : processNodes){
log.debug("processing node "+node);
if (node instanceof Split){
log.debug(" it's a split node");
Split splitNode = (Split) node;
log.debug("Split node has type: "+splitNode.getType());
Map<ConnectionRef, Constraint> constraints = splitNode.getConstraints();
for(ConnectionRef conn : constraints.keySet()){
log.debug("constraint name: "+constraints.get(conn).getName());
log.debug("contraint type: "+constraints.get(conn).getType());
log.debug("constraint lang: "+constraints.get(conn).getDialect());
log.debug("node constraint: "+constraints.get(conn).getConstraint()+" on connection "+conn.getNodeId());
}
}
}
what I get is this output from the logger:
> | 18:54:16,204DEBUG [ProcessDefinition] | it's a split node |
>
> 18:54:16,206DEBUG [ProcessDefinition] Split node has type: 2
>
> 18:54:16,208DEBUG [ProcessDefinition] constraint name: Second
> 18:54:16,208DEBUG [ProcessDefinition] contraint type: null
> 18:54:16,209DEBUG [ProcessDefinition] constraint lang: java
> 18:54:16,209DEBUG [ProcessDefinition] *node constraint: null* on connection 4
>
> 18:54:16,210DEBUG [ProcessDefinition] constraint name: First
> 18:54:16,210DEBUG [ProcessDefinition] contraint type: null
> 18:54:16,210DEBUG [ProcessDefinition] constraint lang: java
> 18:54:16,211DEBUG [ProcessDefinition] *node constraint: null* on connection 3
As you can see: everything is loading just fine, but *"apparently" the constraint is not being loaded*!! Notice the "apparently", because *the constraint is in fact getting loaded*, as the process is capable of selecting the correct transition when it reaches the split node, and also: if i change the values of the parameters passed to the process, or the constraints itselves in the bpmn2 file, then jbpm complains when it reaches the split node that none of the constraints evaluates to true.
org.jbpm.workflow.instance.WorkflowRuntimeException: [com.sample.test:1 - Split:2] -- XOR split could not find at least one valid outgoing connection for split Split
And there's more! If i try to change the constraint in my process instance for a new one using the setConstraint method, then I get a similar behaviour. When I do this, if I then do a getConstraint(), I don't get a null value anymore: I get the constraint string that I have just set.
So "apparently", the constraint has been updated. However, again, this is not true, as when I execute the process instance, the behaviour I obtain is the one of the constraints that are ironed into the bpmn2 file, and the constraints I set manually with setConstraint("..") are being simply ignored, they do not even override the old ones.
> if I do: *connection.getConstraint() * ---> returns null (and SHOULD return ' return x == "First" ', as it is in the bpmn2 file)
> if AFTER that, I do: *connection.setConstraint("return true;"); connection.getConstraint()* ---> returns 'return true;', as it would be expected
> if AFTER that *the split node containing that constraint gets executed* ---> behaves as if the constraint were ' return x == "First" ', and it should't since the constraint has been changed
*So my conclusion is: these two methods are useless! But then, how can I access the ACTUAL constraint? and how can I change it at runtime?*
I found another post commenting that the fluent API has not been recently updated [ https://community.jboss.org/message/629023#629023#629023 https://community.jboss.org/message/629023#629023], and disrecomends it's usage. I don't know if I stumbled upon a failure in the API, but I hope there is a way of getting and setting the constrains at runtime, because I really need this feature!
Thanks very much in advance for your kind help. Regards!
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740759#740759]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss AS 7 Development] - AS 7 startup time showdown
by Sanne Grinovero
Sanne Grinovero [https://community.jboss.org/people/sannegrinovero] modified the document:
"AS 7 startup time showdown"
To view the document, visit: https://community.jboss.org/docs/DOC-16971
--------------------------------------------------------------
How fast does AS 7 start on your computer? This page is a crowdsourced benchmark to see what type of times people are getting. It could also give you an idea if it's time to upgrade your computer to more cores.
Start-up times may vary sligtly between different runs, due to system load, filesystem caching etc. We are interested in your best times :)
On with the showdown! Start JBoss AS 7 in standalone mode and add your results to this page. We are mostly interested in *stock JVM settings*, just to even the playing field. If you add flags, please note that in the JVM column.
h3. AS 7 (Web Profile)
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *Startup Time* ||
| dan.j.allen | Intel ® Core 2 Duo E8400 3.00 GHz 32-bit (http://ark.intel.com/Product.aspx?id=33910) | 4GB 800MHz | 7200 RPM | Ubuntu 11.04 i686 2.6.38-8 (pae) | OpenJDK 1.6.0_22 32-bit (stock settings) | 1726ms |
| dan.j.allen | Intel ® Core 2 Duo E8400 3.00 GHz 32-bit (http://ark.intel.com/Product.aspx?id=33910) | 4GB 800MHz | 7200 RPM | Ubuntu 11.04 i686 2.6.38-8 (pae) | OpenJDK 1.6.0_22 32-bit (JVM flags Group A) | 970ms |
| dan.j.allen | Intel ® 2 Core i7-2620M 2.70GHz 64-bit (http://ark.intel.com/Product.aspx?id=52231) | 8GB 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 1590ms |
| dan.j.allen | Intel ® 2 Core i7-2620M 2.70GHz 64-bit (http://ark.intel.com/Product.aspx?id=52231) | 8GB 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (JVM flags Group A) | 1293ms |
| dan.j.allen | Intel ® Core 2 Duo T7500 2.20 GHz 32-bit (http://ark.intel.com/Product.aspx?id=29761) | 4GB 667MHz | 5200 RPM | Ubuntu 10.10 i686 2.6.35-28 (pae) | Java(TM) SE HotSpot Server VM 1.6.0_24-b07 | 2822ms |
| dan.j.allen | Intel ® Core 2 Duo T7500 2.20 GHz 32-bit (http://ark.intel.com/Product.aspx?id=29761) | 4GB 667MHz | 5200 RPM | Ubuntu 10.10 i686 2.6.35-28 (pae) | Java(TM) SE HotSpot Server VM 1.6.0_24-b07 (JVM flags Group A) | 1589ms |
| david bosschaert | Intel ® 2 Core i7 2.2GHz 64-bit | 8G 1333MHz | 7200 RPM | Mac OS X 10.6.8 Darwin 10.8.0 x86_64 | Apple Java 1.6.0_26 | 1479ms |
| david bosschaert | Intel ® 2 Core i7 2.2GHz 64-bit | 8G 1333MHz | 7200 RPM | Mac OS X 10.6.8 Darwin 10.8.0 x86_64 | Apple Java 1.6.0_26 (JVM flags Group A) | 1189ms |
| ssilvert | Intel ® Core™ 2 Duo i7-620M -i7
(2.66GHz, 4MB L3, 1066MHz FSB, 35W) | 8GB 1333MHz | 7200 RPM | Windows 7 Enterprise SP1 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode) | 1813ms |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB 1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings) | 1450ms |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB 1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(JVM flags Group B) | 1012ms |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB 1333MHz | 7200 RPM | KVM Image Fedora 15
2.6.38.8-32.fc15.i686
on Fedora 15 x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-i686
(JVM flags Group A) | 1007ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (-d32 bit mode) | 1486ms |
| jason.greene | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.8 (forced 64 bit kernel) | Apple Java 1.6.0_26 (stock settings) | 2041ms |
| goldmann | Intel Core i5 2.4 Ghz | 8GB 1067MHZ | 7200 RPM | Mac OS X 10.6.7 | Apple Java 1.6.0_26 (stock settings) | 2476ms |
| wolfc | Intel Core i7 860 2.80 Ghz | 6GB 1333Mhz | RAID0 2x7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-bit | 1287ms (w. patch) |
| mike.pellegrini | Intel Core i5 560 2.66 GHz | 4GB
1067MHz | 7200 RPM | Fedora Core 15 2.6.38.8-32.fc15.x86_64 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | 1930ms |
| tommysdk | Intel ® Core™ i5 CPU M560 @ 2.70 GHz 64-bit | 4GB 1333 MHz | 7200 RPM | Windows 7 Professional | Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode) (JVM flags Group A tweaked) | 1877 ms |
| sannegrinovero | i7 Dual Core @ 2.66 GHz | 8GB 1067MHZ | SSD Intel G2 | Fedora Core 15/64bit
custom kernel 2.6.39.2 | Java(TM) SE Runtime Environment (build 1.6.0_25-b06)
Options Group B | 1232ms |
| kevin.sapper | Intel ® Core™ i7 CPU Q720 @ 1.60 GHz | 6GB 1333 MHz | 5600 RPM | Windows 7 Home | Java(TM) SE Runtime 64-Bit Environment (build 1.6.0_26-b03)
Options Group A | 2098ms |
| kevin.sapper | Intel ® Core™ i7 CPU Q720 @ 1.60 GHz | 6GB 1333 MHz | 5600 RPM | Windows 7 Home | Java(TM) SE Runtime 64-Bit Environment (build 1.6.0_26-b03)
Options Group B | 1771ms |
| dimitris | Intel Core i7 CPU Q740 @ 1.73GHz | 4G | SSD Samsung PM800 | Windows 7 Prol SP1 | java version "1.6.0_24"
Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
Java HotSpot(TM) Client VM (build 19.1-b02, mixed mode, sharing) | 1649ms |
| mmiura | Six-Core AMD Opteron Processor 2435 @ 2.60GHz x2 | 24G | SSD
Intel X25-M 80G | Fedora 14
2.6.35.13-92.fc14.x86_64 | java version "1.6.0_20" OpenJDK Runtime Environment (IcedTea6 1.9.8) (fedora-53.1.9.8.fc14-x86_64) OpenJDK 64-Bit Server VM (build 19.0-b09, mixed mode) | 1507ms |
| pgier | Intel® CoreTM 2 Duo i7-620M -i7 @ 2.66GHz | 4G | 7200 RPM | Fedora 13
2.6.34.8-68.fc13.i686 | Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode) | 1969ms |
| tkonishi | Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (http://ark.intel.com/Product.aspx?id=52214) | 16G | SSD
Crucial C300 128GB | Fedora 15
2.6.38.8-32.fc15.x86_64 | java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)(JVM flags Group A) | 866ms |
| tkonishi | Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (http://ark.intel.com/Product.aspx?id=52214) | 16G | SSD
Crucial C300 128GB | Fedora 15
2.6.38.8-32.fc15.x86_64 | java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
(JVM flags Group B) | 706ms |
| tkonishi | Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (http://ark.intel.com/Product.aspx?id=52214) | 16G | SSD
Crucial C300 128GB | Fedora 15
2.6.38.8-32.fc15.x86_64 | java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.2) (fedora-58.1.10.2.fc15-x86_64)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)
(stock settings) | 1039ms |
| mmatecki | 2x Intel(R) Xeon(R) E5645 @ 2.40GHz | 16G | 2xSAS 300GB RAID 1 15k RPM | Debian 6.0.3 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02, mixed mode)
stock settings | 2510ms |
| sannegrinovero | Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz | 32G | SSD PLEXTOR PX-256M3 | Fedora 16 64bit | OpenJDK Runtime Environment (fedora-2.1.fc16.1-x86_64)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
stock settings / JBoss AS 7.1.1.Final "Brontes" | 852ms |
| sannegrinovero | Intel(R) Core(TM) i7-3930K CPU @ 3.20GHz | 32G | SSD PLEXTOR PX-256M3 | Fedora 16 64bit | OpenJDK Runtime Environment (fedora-2.1.fc16.1-x86_64)
OpenJDK 64-Bit Server VM (build 22.0-b10, mixed mode)
(JVM flags Group B) / JBoss AS 7.1.1.Final "Brontes" | 723ms |
h3. Older AS Versions
|| *Username* || *Processor / Chipset* || *RAM* || *HardDrive Speed* || *Operating System* || *JVM* || *AS Version* || *Startup Time* ||
| dan.j.allen | Intel ® Core 2 Duo E8400 3.00 GHz 32-bit (http://ark.intel.com/Product.aspx?id=33910) | 4GB 800MHz | 7200 RPM | Ubuntu 10.10 i686 2.6.35-28 (pae) | OpenJDK 1.6.0_22 32-Bit (stock settings) | 6.0.0.Final | 14.5s |
| dan.j.allen | Intel ® 2 Core i7-2620M 2.70GHz 64-bit (http://ark.intel.com/Product.aspx?id=52231) | 8GB 1333MHz | 7200 RPM | Ubuntu 11.04 x86_64 2.6.38-8 | OpenJDK 1.6.0_22 64-Bit (stock settings) | 6.0.0.Final | 13s |
| dan.j.allen | Intel ® Core 2 Duo T7500 2.20 GHz 32-bit (http://ark.intel.com/Product.aspx?id=29761) | 4GB 667MHz | 5200 RPM | Ubuntu 10.10 i686 2.6.35-28 (pae) | Java(TM) SE HotSpot Server VM 1.6.0_24-b07 | 6.0.0.Final | 21.88s |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB
1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings) | 6.0.0.Final | 12.0s |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB
1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings) | 5.1.0.GA | 19.0s |
| tkimura | Intel(R) Core(TM) i7-2620M CPU @ 2.70GHz | 8GB
1333MHz | 7200 RPM | Fedora 15
2.6.38.8-32.fc15.x86_64 | OpenJDK 1.6.0_22
fedora-58.1.10.2.fc15-x86_64
(stock settings) | 4.2.3.GA | 6.2s |
| mike.pellegrini | Intel Core i5 560 2.66 GHz | 4GB
1067MHz | 7200 RPM | Fedora Core 15 2.6.38.8-32.fc15.x86_64 | Java(TM) SE Runtime Environment (build 1.6.0_26-b03) | 5.1.0 | 23s. |
h3. JVM flag legend (for table above)
* *Group A*: -Xms64m -Xmx512m -XX:MaxPermSize=256m -client -Xverify:none -XX:+UseFastAccessorMethods -XX:+DisableExplicitGC -XX:+UseCompressedOops
* *Group B*: -server -Xms128m -Xmx128m -XX:MaxPermSize=128m -Djava.net.preferIPv4Stack=true -XX:+UseFastAccessorMethods -XX:+TieredCompilation -Xverify:none
h3. Optimizations
You get better startup times with 32 bit over 64 bit, because of the smaller integer size. If you are on a 64 bit machine, you can do one of two things to get 32 bit performance:
* Run in 32 bit mode using the JVM flag: -d32 (Mac and Windows)
* Use the JVM compression flag: -XX:+UseCompressedOops (option not valid on a 32 bit JVM)
There are also some other JVM flags that will speed things up:
* -noverify
* -XX:+DisableExplicitGC
* -client (32 bit JVM only. You have to edit standalone.sh to use -client instead of -server)
You can squeeze out a few fractions of a second by disabling the console logging (or directing it to /dev/null):
./standalone.sh > /dev/null
You can still view the log output by tailing the server log.
See comments for other suggestions.
Let the best machine win!
--------------------------------------------------------------
Comment by going to Community
[https://community.jboss.org/docs/DOC-16971]
Create a new document in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=102&c...]
12 years, 7 months
[jBPM Development] - java.lang.RuntimeException: error while creating session : java.lang.NoSuchMethodError: org.drools.rule.TypeDeclaration.setTypesafe(Z)V
by Feki Ahmed
Feki Ahmed [https://community.jboss.org/people/bardelman] created the discussion
"java.lang.RuntimeException: error while creating session : java.lang.NoSuchMethodError: org.drools.rule.TypeDeclaration.setTypesafe(Z)V"
To view the discussion, visit: https://community.jboss.org/message/740820#740820
--------------------------------------------------------------
hi,
i m trying to run the https://community.jboss.org/people/bpmn2user/blog/2011/09/21/jbpm5-web-ex... JBPM5 Web Example and i got thid error :
java.lang.RuntimeException: error while creating session
...
Caused by: java.lang.NoSuchMethodError: org.drools.rule.TypeDeclaration.setTypesafe(Z)V
here is the complete console log :
Jun 9, 2012 2:32:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.22.
Jun 9, 2012 2:32:21 PM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [false], sendfile [true], accept filters [false], random [true].
Jun 9, 2012 2:32:22 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.jee.server:jbpmWebExpl2' did not find a matching property.
Jun 9, 2012 2:32:24 PM org.apache.coyote.http11.Http11AprProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-9292
Jun 9, 2012 2:32:24 PM org.apache.coyote.ajp.AjpAprProtocol init
INFO: Initializing Coyote AJP/1.3 on ajp-9209
Jun 9, 2012 2:32:24 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 3509 ms
Jun 9, 2012 2:32:24 PM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
318 [main] INFO bitronix.tm.BitronixTransactionManager - Bitronix Transaction Manager version 1.3.1
329 [main] WARN bitronix.tm.Configuration - cannot get this JVM unique ID. Make sure it is configured and you only use ASCII characters. Will use IP address instead (unsafe for production usage!).
373 [main] INFO bitronix.tm.Configuration - JVM unique ID: <192.168.200.1>
537 [main] WARN bitronix.tm.journal.DiskJournal - active log file is unclean, previous server crash ?
593 [main] INFO bitronix.tm.recovery.Recoverer - recovery committed 0 dangling transaction(s) and rolled back 0 aborted transaction(s) on 0 resource(s) []
Jun 9, 2012 2:32:24 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 9, 2012 2:32:24 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.35
2419 [main] INFO org.hibernate.cfg.annotations.Version - Hibernate Annotations 3.4.0.GA
2443 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.3.2.GA
2445 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
2450 [main] INFO org.hibernate.cfg.Environment - Bytecode provider name : javassist
2465 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
2628 [main] INFO org.hibernate.annotations.common.Version - Hibernate Commons Annotations 3.1.0.GA
2633 [main] INFO org.hibernate.ejb.Version - Hibernate EntityManager 3.4.0.GA
4792 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsBusinessAdministrator => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity businessAdministrator where businessAdministrator.id = :userId and businessAdministrator in elements ( t.peopleAssignments.businessAdministrators ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4792 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsExcludedOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity excludedOwners where excludedOwners.id = :userId and excludedOwners in elements ( t.peopleAssignments.excludedOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4793 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsPotentialOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subject.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy left join t.taskData.actualOwner left join t.subjects as subject, I18NText names, I18NText descriptions, OrganizationalEntity potentialOwners where potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subject.language = :language or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
4793 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsPotentialOwnerWithGroups => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy left join t.taskData.actualOwner, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity potentialOwners where ( potentialOwners.id = :userId or potentialOwners.id in (:groupIds) ) and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
4795 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsPotentialOwnerByGroup => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy left join t.taskData.actualOwner, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity potentialOwners where potentialOwners.id = :groupId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
4795 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: SubTasksAssignedAsPotentialOwner => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy left join t.taskData.actualOwner, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity potentialOwners where t.taskData.parentId = :parentId and potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
4796 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: GetSubTasksByParentTaskId => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t, I18NText names, I18NText subjects, I18NText descriptions where t.taskData.parentId = :parentId and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null
4796 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsRecipient => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity recipients where recipients.id = :userId and recipients in elements ( t.peopleAssignments.recipients ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4796 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsTaskInitiator => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity taskInitiator where taskInitiator.id = :userId and taskInitiator = t.peopleAssignments.taskInitiator and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4796 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksAssignedAsTaskStakeholder => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions, OrganizationalEntity taskStakeholder where taskStakeholder.id = :userId and taskStakeholder in elements ( t.peopleAssignments.taskStakeholders ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4796 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TasksOwned => select new org.jbpm.task.query.TaskSummary( t.id, t.taskData.processInstanceId, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from Task t left join t.taskData.createdBy, I18NText names, I18NText subjects, I18NText descriptions where t.taskData.actualOwner.id = :userId and names in elements( t.names) and names.language = :language and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.expirationTime is null
4803 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: UnescalatedDeadlines => select new org.jbpm.task.query.DeadlineSummary( t.id, d.id, d.date) from Task t, Deadline d where (d in elements( t.deadlines.startDeadlines ) or d in elements( t.deadlines.endDeadlines ) ) and d.escalated = false order by d.date
4803 [main] INFO org.hibernate.cfg.annotations.QueryBinder - Binding Named query: TaskByWorkItemId => select t from Task t where t.taskData.workItemId = :workItemId
4808 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Attachment
4849 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Attachment on table Attachment
5001 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Content
5001 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Content on table Content
5014 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.BooleanExpression
5014 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.BooleanExpression on table BooleanExpression
5018 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Comment
5019 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Comment on table task_comment
5022 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Deadline
5022 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Deadline on table Deadline
5061 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Escalation
5062 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Escalation on table Escalation
5066 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.OrganizationalEntity
5066 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.OrganizationalEntity on table OrganizationalEntity
5137 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Group
5170 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.I18NText
5170 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.I18NText on table I18NText
5172 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Notification
5172 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Notification on table Notification
5189 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.EmailNotification
5199 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.EmailNotificationHeader
5199 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.EmailNotificationHeader on table email_header
5202 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Reassignment
5202 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Reassignment on table Reassignment
5205 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.Task
5205 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.Task on table Task
5237 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.SubTasksStrategy
5237 [main] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity org.jbpm.task.SubTasksStrategy on table SubTasksStrategy
5241 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.OnParentAbortAllSubTasksEndStrategy
5242 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.OnAllSubTasksEndParentEndStrategy
5242 [main] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: org.jbpm.task.User
5250 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.taskData.comments -> task_comment
5252 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.taskData.attachments -> Attachment
5252 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.subjects -> I18NText
5252 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.subTaskStrategies -> SubTasksStrategy
5253 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.names -> I18NText
5253 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.descriptions -> I18NText
5254 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.deadlines.startDeadlines -> Deadline
5254 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Task.deadlines.endDeadlines -> Deadline
5254 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Reassignment.documentation -> I18NText
5259 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Notification.subjects -> I18NText
5259 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Notification.names -> I18NText
5259 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Notification.documentation -> I18NText
5259 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Notification.descriptions -> I18NText
5259 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Escalation.reassignments -> Reassignment
5260 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Escalation.notifications -> Notification
5260 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Escalation.constraints -> BooleanExpression
5260 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Deadline.escalations -> Escalation
5260 [main] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: org.jbpm.task.Deadline.documentation -> I18NText
5261 [main] INFO org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
5318 [main] WARN org.hibernate.ejb.Ejb3Configuration - hibernate.connection.autocommit = false break the EJB3 specification
5420 [main] INFO org.hibernate.cfg.search.HibernateSearchEventListenerRegister - Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.
5497 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
5497 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
5497 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
5497 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: org.h2.Driver at URL: jdbc:h2:mem:mydb
5498 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=sa, password=****, autocommit=false, release_mode=auto}
5532 [main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: H2, version: 1.3.155 (2011-05-27)
5532 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: H2 JDBC Driver, version: 1.3.155 (2011-05-27)
5565 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.H2Dialect
5585 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
5587 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
5588 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
5588 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
5588 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
5588 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
5588 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
5588 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
5589 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
5589 [main] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 3
5589 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
5589 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
5589 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
5590 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
5590 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
5595 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
5595 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
5595 [main] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: enabled
5595 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
5596 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
5596 [main] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
5596 [main] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
5596 [main] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
5601 [main] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
5602 [main] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
5602 [main] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
5602 [main] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
5677 [main] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
6083 [main] INFO org.hibernate.impl.SessionFactoryObjectFactory - Not binding factory to JNDI, no JNDI name configured
6102 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - Running hbm2ddl schema export
6103 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - exporting generated schema to database
6231 [main] INFO org.hibernate.tool.hbm2ddl.SchemaExport - schema export complete
log4j:WARN No appenders could be found for logger (com.sample.taskserver.HumanTaskStartupServlet).
log4j:WARN Please initialize the log4j system properly.
Jun 9, 2012 2:32:33 PM org.apache.catalina.core.ApplicationContext log
SEVERE: StandardWrapper.Throwable
java.lang.RuntimeException: error while creating session
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:82)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Caused by: java.lang.NoSuchMethodError: org.drools.rule.TypeDeclaration.setTypesafe(Z)V
at org.drools.compiler.PackageBuilder.initBuiltinTypeDeclarations(PackageBuilder.java:292)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:287)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:182)
at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:47)
at com.sample.processserver.JbpmAPIUtil.readKnowledgeBase(JbpmAPIUtil.java:228)
at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:258)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:242)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:68)
... 18 more
Jun 9, 2012 2:32:33 PM org.apache.catalina.core.StandardContext loadOnStartup
SEVERE: Servlet /jbpmWebExpl2 threw load() exception
java.lang.NoSuchMethodError: org.drools.rule.TypeDeclaration.setTypesafe(Z)V
at org.drools.compiler.PackageBuilder.initBuiltinTypeDeclarations(PackageBuilder.java:292)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:287)
at org.drools.compiler.PackageBuilder.<init>(PackageBuilder.java:182)
at org.drools.builder.impl.KnowledgeBuilderFactoryServiceImpl.newKnowledgeBuilder(KnowledgeBuilderFactoryServiceImpl.java:34)
at org.drools.builder.KnowledgeBuilderFactory.newKnowledgeBuilder(KnowledgeBuilderFactory.java:47)
at com.sample.processserver.JbpmAPIUtil.readKnowledgeBase(JbpmAPIUtil.java:228)
at com.sample.processserver.JbpmAPIUtil.createSession(JbpmAPIUtil.java:258)
at com.sample.processserver.JbpmAPIUtil.getSession(JbpmAPIUtil.java:242)
at com.sample.processserver.TaskProcessServlet.init(TaskProcessServlet.java:68)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1206)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1026)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4421)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4734)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:840)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1057)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:463)
at org.apache.catalina.core.StandardService.start(StandardService.java:525)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:754)
at org.apache.catalina.startup.Catalina.start(Catalina.java:595)
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.catalina.startup.Bootstrap.start(Bootstrap.java:289)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)
Jun 9, 2012 2:32:33 PM org.apache.coyote.http11.Http11AprProtocol start
INFO: Starting Coyote HTTP/1.1 on http-9292
Jun 9, 2012 2:32:33 PM org.apache.coyote.ajp.AjpAprProtocol start
INFO: Starting Coyote AJP/1.3 on ajp-9209
Jun 9, 2012 2:32:33 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 9227 ms
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740820#740820]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[EJB3 Development] - java.lang.ClassNotFoundException: com.HelloWorldBeanRemote
by Gustavo penayo
Gustavo penayo [https://community.jboss.org/people/micum] created the discussion
"java.lang.ClassNotFoundException: com.HelloWorldBeanRemote"
To view the discussion, visit: https://community.jboss.org/message/740752#740752
--------------------------------------------------------------
Hola!
Estoy tratando de hacer un HelloWorld con ejb 3. version de jboss 7.1
tengo el ejb de la siguiente manera:
el nombre del proyecto es HolaMundoEjb
//---------------------------------------------------------
package com;
import javax.ejb.Remote;
@Remote
public interface HelloWorldBeanRemote {
public String getHelloWorld();
}
//-------------------------------------------------------
package com;
import javax.ejb.LocalBean;
import javax.ejb.Stateless;
@Stateless
@LocalBean
public class HelloWorldBean implements HelloWorldBeanRemote {
public String getHelloWorld(){
return "Hola EJB 3.0";
}
}
Cuando implemento el ejb, en la consola del servidor me da la siguiente información:
10:50:07,673 INFO [org.jboss.as.ejb3.deployment.processors.EjbJndiBindingsDeploymentUnitProcessor] (MSC service thread 1-1) JNDI bindings for session bean named HelloWorldBean in deployment unit deployment "HolaMundoEjb.jar" are as follows:
java:global/HolaMundoEjb/HelloWorldBean!com.HelloWorldBean
java:app/HolaMundoEjb/HelloWorldBean!com.HelloWorldBean
java:module/HelloWorldBean!com.HelloWorldBean
java:global/HolaMundoEjb/HelloWorldBean!com.HelloWorldBeanRemote
java:app/HolaMundoEjb/HelloWorldBean!com.HelloWorldBeanRemote
java:module/HelloWorldBean!com.HelloWorldBeanRemote
java:jboss/exported/HolaMundoEjb/HelloWorldBean!com.HelloWorldBeanRemote
En mi cliente tengo un servlet que tiene el siguiente codigo para acceder al ejb:
37| HelloWorldBeanRemote hello = null ;
43| try{
44| Context initial = new InitialContext();
45| hello = (HelloWorldBeanRemote)initial.lookup("ejb:HolaMundoEjb/HelloWorldBean!com.HelloWorldBeanRemote");
47| }catch(Exception NamingException){
48| NamingException.printStackTrace();
49| }
53| String var = hello.getHelloWorld() ;
Cuando ejecuto el servlet obtengo el siguiente error :
javax.servlet.ServletException: La ejecución del Servlet lanzó una excepción
*causa raíz*
*java.lang.NoClassDefFoundError: com/HelloWorldBeanRemote*
Saludo.HelloWorld.doGet(HelloWorld.java:45)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
*causa raíz*
*java.lang.ClassNotFoundException: com.HelloWorldBeanRemote* from [Module "deployment.WebPrueba.war:main" from Service Module Loader]
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
Saludo.HelloWorld.doGet(HelloWorld.java:45)
javax.servlet.http.HttpServlet.service(HttpServlet.java:734)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
No se si me estoy equivocando con el jndi en el lookup. No se cual debo tomar.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740752#740752]
Start a new discussion in EJB3 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[JBoss AS 7 Development] - Unable to lookup remotely deployed EJB method with AS7
by Roshan Pradeep
Roshan Pradeep [https://community.jboss.org/people/codevally] created the discussion
"Unable to lookup remotely deployed EJB method with AS7"
To view the discussion, visit: https://community.jboss.org/message/740606#740606
--------------------------------------------------------------
Hi
I am completely new to AS7 and working on EJB remote lookup sample and the bean is deployed in a remote AS7.
*Bean is deployed as below*
java:global/Hibernate-1.0-SNAPSHOT/JadDataSessionBean!com.whispir.hibernate.test.JadDataRemote
java:app/Hibernate-1.0-SNAPSHOT/JadDataSessionBean!com.whispir.hibernate.test.JadDataRemote
java:module/JadDataSessionBean!com.whispir.hibernate.test.JadDataRemote
java:jboss/exported/Hibernate-1.0-SNAPSHOT/JadDataSessionBean!com.whispir.hibernate.test.JadDataRemote
java:global/Hibernate-1.0-SNAPSHOT/JadDataSessionBean
java:app/Hibernate-1.0-SNAPSHOT/JadDataSessionBean
java:module/JadDataSessionBean
The context lookup part is success, but when I try to access a remote method, it gives the below exception.
*java.lang.IllegalStateException: No EJB receiver available for handling [appName:Hibernate-1.0-SNAPSHOT,modulename:,distinctname:] combination*
My lookup string is "ejb:Hibernate-1.0-SNAPSHOT//JadDataSessionBean!com.whispir.hibernate.test.JadDataRemote"
Could someone please help me on this. Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740606#740606]
Start a new discussion in JBoss AS 7 Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months
[jBPM Development] - BPMN process resposne and aysnchronous flows
by Mohamed Abuthahir
Mohamed Abuthahir [https://community.jboss.org/people/abuinigate] created the discussion
"BPMN process resposne and aysnchronous flows"
To view the discussion, visit: https://community.jboss.org/message/740446#740446
--------------------------------------------------------------
Hi,
Currently we are evaluating *JBPM 5.2* for our migration project which was developed in *IBM Websphere Integeration Developer*.
In our project we are having a requirement where the Front end (JSP) will invkoke the process instance and the process instance will return the required details.
Example:
For the new order creation the jsp will invoke one process with some inputs and the process will return the order id.
We want to implement the above scenario in the jbpm. But in JBPM we are able to pass inputs to the process using maps. But the process is returning the *process instance id* as a respose. I want my process to return *order id* as a response. Is there any way in jbpm to acheive this and jbpm BPMN support this?
I was not able to find any clues for a week..
Your help will be greatly apprciated...
Thanks
Abuthahir
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/740446#740446]
Start a new discussion in jBPM Development at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
12 years, 7 months