[JBoss jBPM] - Error testing Hello World BPEL on JBoss 4.0.5
by meghanai_99
Hello,
I installed following versions today to test BPEL support on JBoss -
JBoss 4.0.5
jBPEM BPEL 1.1 Beta 3
jwsdp 2.0
I am running on JDK1.5 with endorsed jar files copies from JBoss's lib endorsed. I followed the tutorial for deploying Hello World BPEL on JBoss and everything went smooth with correct success messages as per the tutorial. However when I run the JUnit test for testing my service I get following exception, One thing I noticed is that the turorial says that there is client specific jndi.properties but I don't see it anywhere under examples\hello folder -
<![CDATA[ 16:10:00,146 DEBUG SecurityAssociation : Using ThreadLocal: false
16:10:00,627 ERROR ServiceObjectFactory : Cannot create service
javax.naming.NamingException: Cannot unmarshall service ref meta data, cause: java.io.InvalidClassException: javax.xml.namespace.QName; local class incompatible: stream classdesc serialVersionUID = 4418622981026545151, local class serialVersionUID = -9120448754896609940
at org.jboss.ws.jaxrpc.ServiceObjectFactory.getObjectInstance(ServiceObjectFactory.java:126)
at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1125)
at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1142)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:705)
at org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:135)
at $Proxy1.lookup(Unknown Source)
at javax.naming.InitialContext.lookup(InitialContext.java:351)
Please let me know what could be wrong here. We are thinking of switching to JBoss if our investigation works.
Thank you,
Meghana
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012725#4012725
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012725
19Â years, 2Â months
[EJB 3.0] - How to get Query time??
by ablevine1
I'm trying to write some code to evaluate query performance in my ejb3 code. I was wondering if there was some way to get the actual time that it takes jboss to load/store /update stuff in the database. Doint this following will NOT work:
| long t1 = System.currentTimeMillis();
| em.merge(myEJB);
| long updateTime = System.currentTimeMillis() - t1;
|
This does not work because if this is happening in a transaction the actually storing of the stuff is not done until the end of the transaction, so measuring the time it takes em.merge to complete is not a valid estimate of the actual update time.
Is there any way to tap into some low level jboss API or use interceptors to get a more accurate measure of the database update time??
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4012717#4012717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4012717
19Â years, 2Â months