[EJB3] - JBoss AS 7.0.1 and EJB 3 lookup
by Dmitry Paykin
Dmitry Paykin [http://community.jboss.org/people/paykin] created the discussion
"JBoss AS 7.0.1 and EJB 3 lookup"
To view the discussion, visit: http://community.jboss.org/message/622860#622860
--------------------------------------------------------------
Hello,
I deploy my app as 2 separate deployments: EAR and WAR.
I put my EJB interfaces inside both WAR and JAR inside EAR.
When I trying to lookup EJB from WAR I recieve exception:
java.lang.ClassCastException: ruleEngine.api.ApplicationData$$$view12 cannot be cast to org.omg.CORBA.Object
at org.jboss.com.sun.corba.se.impl.javax.rmi.PortableRemoteObject.narrow(PortableRemoteObject.java:225) [jboss-rmi-api_1.0_spec-1.0.1.Final.jar:1.0.1.Final]
or simple ClassCastException when I just cast the class without narrowing.
The application worked fine in JBoss 6, only when I put property
properties.put(Context.PROVIDER_URL, "jnp://localhost:1099");
to InitialContext. When I removed the property, I started to recieve the same error as on JB7.
Unfortunatelly, I can not create separate jar with interfaces, because of dependencies exist in the project. Because of the same problem I can not include EAR JAR in WAR's classpath.
Any help?
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622860#622860]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months
[jBPM] - process dependency
by S Root
S Root [http://community.jboss.org/people/sroot] created the discussion
"process dependency"
To view the discussion, visit: http://community.jboss.org/message/623006#623006
--------------------------------------------------------------
Hi all,
I have a requirement to have one process start upon sucessful completion of another (a chain of dependencies actually). I was reading the 5.1 user guide and the event sample at paragraph 5.8.4 looks like exactly what I want to do. The process can be started directly but it could also be triggered by a message start event. The last statement in that paragraph even states exactly what I want to have happen.
For instance: P1 does its processing, upon successful completion a signalEvent is fired and P2 starts.
P1 has no knowledge of P2 and vice versa, other than possibly passing a parameter or two.
For the life of me I cannot figure out how to have the dependent process start after the first process completes. I've tried a couple of things that seem to provide that affect but am pretty certain they are not what was intended.
One thing I did was define P2 to have a start node and the next node be a message event node. Just before I start P1, I start P2, which hits the event node and pauses, waiting for the expeceted event. This works when P1 calls signalEvent with the type expected, but this is not what is needed as P2 also needs to be able to be started on an adhoc basis.
I'd like to be able to do this with events so other processes could be added with, I hope, no changes to the processes which they are dependant on.
Any suggestions?
I've browsed the docs and the examples and have not been able to find anything to assist.
-S
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/623006#623006]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months
[jBPM] - Human Task Forms (on the fly)
by Tobias Wittur
Tobias Wittur [http://community.jboss.org/people/tob1as] created the discussion
"Human Task Forms (on the fly)"
To view the discussion, visit: http://community.jboss.org/message/617281#617281
--------------------------------------------------------------
Hi,
I had a look at the humantask example in the jbpm-5.1.0.Final-examples.zip and was able to create a simple workflow with ftl files. However, I would prefer the engine to create the forms on the fly, since a business user would not want to write html by hand.
I had a look at this video:
"Develop complex jBPM processes all in Guvnor? Yes, you can!" : http://vimeo.com/26126678 http://vimeo.com/26126678
and realized, there should be a button that creates the forms:
http://community.jboss.org/servlet/JiveServlet/showImage/2-617281-16786/g... http://community.jboss.org/servlet/JiveServlet/downloadImage/2-617281-167...
The video was submitted 09.07.2011, 2 days after the new designer was released:
I checked the latest version of the designer, which is
| designer-1.0.0.053 | 2011-07-07 |
I downloaded the war file and replaced
C:\jbpm\jboss-5.1.0.GA\server\default\deploy\designer.war with the latest version.
However, I still do not get this buttion. Do I have to do anything else in order to get the new designer running?
I downloaded the latest jbpm-full-install.zip, and this is still installing the 1.0.0.052 version of the designer.
I also had a look at the evaluation example under
C:\jbpm\sample\evaluation.
I realized that if I add the evaluation.bpmn from eclipse to guvnor, that there are no ftl files ?!
Also if I check "Other assets, documentation" in guvnor, I can not see any ftl files. So how exactly can the evaluation process work without templates?
When I try to recreate the evaluation process without template files, I always get an error:
org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Failed to process form template
java.lang.RuntimeException: Failed to process form template
...
freemarker.core.InvalidReferenceException: employee is undefined.
...
Best regards and thanks for your help,
Tobias
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/617281#617281]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 7 months