[JBoss jBPM] - Re: Error in node-->TaskNode
by harderwu
thanks,kukeltje
i want to get the next tasknode("b") by transition of the current node "a",
the ProcessDefinition:
<start-state name="a">
| <transition name="tra to="b">
| </transition>
| </start-state>
| <task-node name="b">
| <task name="first">
| <assignment class="com.test.assignment.PartMaster" config-type="bean">
| <groupName>leader</groupName>
| </assignment>
| </task>
| <transition name="tra2" to="c">
| </transition>
| </task-node>
my code :
.....
| (transition is the object of the "tra")
| Node node=transition.getTo();
| TaskNode tasknode = (TaskNode) node;
| Task tptask = tasknode.getTask("first");
| PartMaster parma = (PartMaster) tptask.getAssignmentDelegation()
| .getInstance();
| String tpstr = parma.getGroupName();
my goal is that i can get "leader" from the ProcessDefinition!but "ClassCastException" is Thrown in the second line,the description of ClassCastException:
/**
| * Thrown to indicate that the code has attempted to cast an object
| * to a subclass of which it is not an instance. For example, the
| * following code generates a <code>ClassCastException</code>:
| * <p><blockquote><pre>
| * Object x = new Integer(0);
| * System.out.println((String)x);
| * </pre></blockquote>
| *
| * @author unascribed
| * @version 1.20, 12/19/03
| * @since JDK1.0
| */do you understand my description?thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964753#3964753
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964753
19 years, 10 months
[EJB 3.0] - Re: No (remote) JNDI binding for ejb in ear
by kruddies
deploying the EJB3Trail.ear as it is shows following JNDIView
| +- EJB3Trail (class: org.jnp.interfaces.NamingContext)
| | +- TransCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy129 implements No ClassLoaders found for: trail.transaction.Calculator (no security manager: RMI class loader disabled))
| | +- SecureCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy122 implements No ClassLoaders found for: trail.security.Calculator (no security manager: RMI class loader disabled))
| | +- StatelessCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy126 implements No ClassLoaders found for: trail.slsb.Calculator (no security manager: RMI class loader disabled))
| | +- StatefulCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
| | | +- local (class: java.lang.Object)
|
after adding the remote interface RemoteCalculator to StatelessCalculator its not longer listed in the JNDIView
| +- EJB3Trail (class: org.jnp.interfaces.NamingContext)
| | +- TransCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy129 implements No ClassLoaders found for: trail.transaction.Calculator (no security manager: RMI class loader disabled))
| | +- SecureCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy122 implements No ClassLoaders found for: trail.security.Calculator (no security manager: RMI class loader disabled))
| | +- StatefulCalculator (class: org.jnp.interfaces.NamingContext)
| | | +- localStatefulProxyFactory (class: org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
| | | +- local (class: java.lang.Object)
|
What should i mind when im using remote interfaces?
Does the message "(no security manager: RMI class loader disabled))" refer to my problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964744#3964744
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964744
19 years, 10 months
[EJB 3.0] - Exploded EAR
by oliverchua
Hi, I'm trying out exploded directories.
I've used The EJB3Trail.ear, it's working when I deploy it as an ear file.
Now, when I unzip the ear file to a folder, named c:/EJB3Trail.ear
I have
META-INF
| application.xml
| beans.jar
| web.war
which looks ok...
Then, I add c:/EJB3Trail.ear to the jboss-service.xml file under URLs.
Next, I run jboss, but get this error:
17:14:17,568 INFO [EARDeployer] Init J2EE application: file:/C:/EJB3Trail.
| ear
| 17:14:17,578 ERROR [MainDeployer] Could not initialise deployment: file:/C:/EJB3Trail.ear
| org.jboss.deployment.DeploymentException: No META-INF/application.xml found
| at org.jboss.deployment.EARDeployer.init(EARDeployer.java:133)
Based on the error message, it seems it can see the c:/EJB3Trail.ear but cannot find the application.xml.
Please note that the META-INF folder is in all caps, so it should not cause this problem.
Anyone having the same problem?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3964742#3964742
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3964742
19 years, 10 months