[EJB/JBoss] - NoClassDefFoundError & JBoss AS 5.0 Beta3
by lovelyliatroim
Hi Folks,
Downloaded the latest AS Beta3. Set up a remote stateless bean and a remote client. When the client was calling the bean i got the following
|
| Exception in thread "main" java.lang.NoClassDefFoundError: org/jboss/aop/joinpoint/MethodExecution
| at java.lang.Class.getDeclaredConstructors0(Native Method)
| at java.lang.Class.privateGetDeclaredConstructors(Class.java:2357)
| at java.lang.Class.getConstructor0(Class.java:2671)
| at java.lang.Class.getDeclaredConstructor(Class.java:1953)
| at java.io.ObjectStreamClass.getExternalizableConstructor(ObjectStreamClass.java:1269)
| at java.io.ObjectStreamClass.access$1400(ObjectStreamClass.java:52)
| at java.io.ObjectStreamClass$2.run(ObjectStreamClass.java:418)
| at java.security.AccessController.doPrivileged(Native Method)
| at java.io.ObjectStreamClass.<init>(ObjectStreamClass.java:400)
| at java.io.ObjectStreamClass.lookup(ObjectStreamClass.java:297)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1035)
| at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1375)
| at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1347)
| at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1290)
| at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1079)
| at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:302)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObjectVersion2_2(JavaSerializationManager.java:120)
| at org.jboss.remoting.serialization.impl.java.JavaSerializationManager.sendObject(JavaSerializationManager.java:95)
| at org.jboss.remoting.marshal.serializable.SerializableMarshaller.write(SerializableMarshaller.java:120)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.versionedWrite(MicroSocketClientInvoker.java:943)
| at org.jboss.remoting.transport.socket.MicroSocketClientInvoker.transport(MicroSocketClientInvoker.java:586)
| at org.jboss.remoting.MicroRemoteClientInvoker.invoke(MicroRemoteClientInvoker.java:122)
| at org.jboss.remoting.Client.invoke(Client.java:1634)
| at org.jboss.remoting.Client.invoke(Client.java:548)
| at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:62)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:65)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:74)
| at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
| at org.jboss.ejb3.stateless.StatelessRemoteProxy.invoke(StatelessRemoteProxy.java:108)
| at $Proxy1.getQuote(Unknown Source)
|
|
|
In the client package under $JBOSS_HOME/client i would expect all the right jars to be there for my remote client but it would seem that the jboss-aop-jdk50-client.jar is not packaged correctly i.e it is missing the "MethodExecution" class and what ever dependencies that has also.
To carry on i just added the jboss-aop-jdk50.jar located under $JBOSS_HOME/lib to my classpath and was able to make a remote call.
I assume that the $JBOSS_HOME/client dir should have everything needed for me to make a remote call for my remote client but looks like it doesnt!!
FYI ,
LL
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117889#4117889
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117889
18 years, 3 months
[JBoss jBPM] - Re: Invoking JBPM-3.2.2 Process from standalone java client
by soumya_in
Hi All,
I was able to start a process from a standalone java client by following the given steps:-
1. Migrated JBPM Database schema to Oracle 10g using the given oracle script.
2.Redeployed the jbpm-console.war by making changes in the jbpm-console/web-inf/classes/hibernate-cfg.xml file to redirect the application to the oracle DB.
3. Executed the following piece of code-
| jbpmConfiguration = JbpmConfiguration.parseResource("default.jbpm.cfg.xml");
| JbpmContext jbpmContext=jbpmConfiguration.createJbpmContext();
| GraphSession gpsession=jbpmContext.getGraphSession();
| ProcessDefinition pdef=gpsession.findLatestProcessDefinition("<process-name>");
| System.out.println("PROCESS DEFINITION ID" + pdef.getId());
| ProcessInstance processInstance = new ProcessInstance(pdef);
| Token token = processInstance.getRootToken();
| token.signal();//starts a task
| jbpmContext.close();
|
Thanks,
Soumya.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117885#4117885
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4117885
18 years, 3 months