You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by sujoy ray <su...@gmail.com> on 2006/12/12 02:12:38 UTC

Problem in creating BPEL Client.

Hi!! everybody,

I am trying to create a simple java client for a BPEL process. My BPEL
process is deployed and has a WSDL interface in
http://localhost:8585/ode/services/ I have also produced the stub
using axis  stub generator. Can any please guide how I can proceed now?

Because,
 1) the generated stub doesnot show any service interface as happens in the
case of normal .jws implemented services.
 2) Is it really necessary to test using junit framework? I have an error
that with the following stack trace.

I will highly appreciate if somebody can guide me the steps to do. My soap
message message should take on-click 8 inputs and creates a xs:string in
output.

Thanks in advance

Sujoy


java.lang.NoClassDefFoundError
 at org.hibernate.tuple.EntityMetamodel.class$(EntityMetamodel.java:41)
 at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:122)
 at org.hibernate.persister.entity.AbstractEntityPersister.<init>(
AbstractEntityPersister.java:412)
 at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(
SingleTableEntityPersister.java:108)
 at org.hibernate.persister.PersisterFactory.createClassPersister(
PersisterFactory.java:55)
 at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java
:215)
 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
:1176)
 at org.apache.ode.store.hib.DbConfStoreConnectionFactory.<init>(
DbConfStoreConnectionFactory.java:85)
 at org.apache.ode.store.ProcessStoreImpl.<init>(ProcessStoreImpl.java:97)
 at org.apache.ode.store.ProcessStoreImpl.<init>(ProcessStoreImpl.java:83)
 at org.apache.ode.test.BPELTest.setUp(BPELTest.java:51)
 at junit.framework.TestCase.runBare(TestCase.java:132)
 at junit.framework.TestResult$1.protect(TestResult.java:110)
 at junit.framework.TestResult.runProtected(TestResult.java:128)
 at junit.framework.TestResult.run(TestResult.java:113)
 at junit.framework.TestCase.run(TestCase.java:124)
 at junit.framework.TestSuite.runTest(TestSuite.java:232)
 at junit.framework.TestSuite.run(TestSuite.java:227)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
RemoteTestRunner.java:478)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
RemoteTestRunner.java:344)
 at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(
RemoteTestRunner.java:196)
Caused by: java.lang.ClassNotFoundException:
net.sf.cglib.transform.impl.InterceptFieldEnabled
 at java.net.URLClassLoader$1.run(Unknown Source)
 at java.security.AccessController.doPrivileged(Native Method)
 at java.net.URLClassLoader.findClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClass(Unknown Source)
 at java.lang.ClassLoader.loadClassInternal(Unknown Source)
 at java.lang.Class.forName0(Native Method)
 at java.lang.Class.forName(Unknown Source)

Re: Problem in creating BPEL Client.

Posted by Matthieu Riou <ma...@gmail.com>.
Hi,

Your problem comes from a ClassNotFoundException meaning that you should add
more jars in your classpath. Here you're missing cglib. But could you more
specific simple about the way you plan to use ODE? I'd recommend using it as
a web service and just send messages, embedding the engine is going to be a
tad trickier.

Matthieu


On 12/11/06, sujoy ray <su...@gmail.com> wrote:
>
>
> Hi!! everybody,
>
> I am trying to create a simple java client for a BPEL process. My BPEL
> process is deployed and has a WSDL interface in
> http://localhost:8585/ode/services/ I have also produced the stub
> using axis  stub generator. Can any please guide how I can proceed now?
>
> Because,
>  1) the generated stub doesnot show any service interface as happens in
> the case of normal .jws implemented services.
>  2) Is it really necessary to test using junit framework? I have an error
> that with the following stack trace.
>
> I will highly appreciate if somebody can guide me the steps to do. My soap
> message message should take on-click 8 inputs and creates a xs:string in
> output.
>
> Thanks in advance
>
> Sujoy
>
>
> java.lang.NoClassDefFoundError
>  at org.hibernate.tuple.EntityMetamodel.class$(EntityMetamodel.java:41)
>  at org.hibernate.tuple.EntityMetamodel.<init>(EntityMetamodel.java:122)
>  at org.hibernate.persister.entity.AbstractEntityPersister .<init>(
> AbstractEntityPersister.java:412)
>  at org.hibernate.persister.entity.SingleTableEntityPersister.<init>(
> SingleTableEntityPersister.java:108)
>  at org.hibernate.persister.PersisterFactory.createClassPersister (
> PersisterFactory.java:55)
>  at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java
> :215)
>  at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
> :1176)
>  at org.apache.ode.store.hib.DbConfStoreConnectionFactory .<init>(
> DbConfStoreConnectionFactory.java:85)
>  at org.apache.ode.store.ProcessStoreImpl.<init>(ProcessStoreImpl.java:97)
>  at org.apache.ode.store.ProcessStoreImpl.<init>(ProcessStoreImpl.java:83)
>  at org.apache.ode.test.BPELTest.setUp(BPELTest.java:51)
>  at junit.framework.TestCase.runBare(TestCase.java:132)
>  at junit.framework.TestResult$1.protect(TestResult.java:110)
>  at junit.framework.TestResult.runProtected (TestResult.java:128)
>  at junit.framework.TestResult.run(TestResult.java:113)
>  at junit.framework.TestCase.run(TestCase.java:124)
>  at junit.framework.TestSuite.runTest(TestSuite.java:232)
>  at junit.framework.TestSuite.run (TestSuite.java:227)
>  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(
> RemoteTestRunner.java:478)
>  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(
> RemoteTestRunner.java:344)
>  at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main (
> RemoteTestRunner.java:196)
> Caused by: java.lang.ClassNotFoundException:
> net.sf.cglib.transform.impl.InterceptFieldEnabled
>  at java.net.URLClassLoader$1.run(Unknown Source)
>  at java.security.AccessController.doPrivileged (Native Method)
>  at java.net.URLClassLoader.findClass(Unknown Source)
>  at java.lang.ClassLoader.loadClass(Unknown Source)
>  at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>  at java.lang.ClassLoader.loadClass (Unknown Source)
>  at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>  at java.lang.Class.forName0(Native Method)
>  at java.lang.Class.forName(Unknown Source)
>