I have got successful deployment for both the main ear file and one of the test 
war files.
To fix 2 below, i added two more destinations with name A/B..

Now the issue is with the runtime, while running the test class to test the 
hello.war results in weird errors
1. java.lang.NoClassDefFoundError for org/jboss/virtual/VirtualFile while 
executing the test case

2. if i add that jar *vfs-jar file in unit test classpath. i get this error.
java.io.IOException: unknown protocol: vfszip while unmarshalling, i am really 
stuck at this, help needed !! 
I see some threads regarding this error related to WS4EE and Jboss AS 5, though 
i have not found any resolution for the same.

stack is 
javax.naming.NamingException: Cannot unmarshall service ref meta data [Root 
exception is java.io.IOException: unknown protocol: vfszip]
  |     at 
org.jboss.ws.core.jaxrpc.client.ServiceObjectFactoryJAXRPC.getObjectInstance(ServiceObjectFactoryJAXRPC.java:120)
  |     at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
  |     at 
org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1447)
  |     at 
org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1464)
  |     at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:818)
  |     at 
org.jboss.naming.client.java.javaURLContextFactory$EncContextProxy.invoke(javaURLContextFactory.java:153)
  |     at $Proxy1.lookup(Unknown Source)
  |     at javax.naming.InitialContext.lookup(InitialContext.java:351)
  |     at 
org.jbpm.bpel.tutorial.atm.AtmFrontEndTest.setUp(AtmFrontEndTest.java:42)
  |     at junit.extensions.TestDecorator.basicRun(TestDecorator.java:22)
  |     at junit.extensions.TestSetup$1.protect(TestSetup.java:19)
  |     at junit.extensions.TestSetup.run(TestSetup.java:23)
  | Caused by: java.io.IOException: unknown protocol: vfszip
  |     at java.net.URL.readObject(URL.java:1217)
  |     at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
  |     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
  |     at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  |     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  |     at java.io.ObjectInputStream.access$300(ObjectInputStream.java:185)
  |     at 
java.io.ObjectInputStream$GetFieldImpl.readFields(ObjectInputStream.java:2069)
  |     at java.io.ObjectInputStream.readFields(ObjectInputStream.java:518)
  |     at 
org.jboss.metadata.serviceref.VirtualFileAdaptor.readObject(VirtualFileAdaptor.java:135)
  |     at 
java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:946)
  |     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1809)
  |     at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  |     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  |     at 
java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1908)
  |     at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1832)
  |     at 
java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1719)
  |     at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1305)
  |     at java.io.ObjectInputStream.readObject(ObjectInputStream.java:348)
  |     at 
org.jboss.ws.core.jaxrpc.client.ServiceObjectFactoryJAXRPC.getObjectInstance(ServiceObjectFactoryJAXRPC.java:115)

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224503#4224503

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224503
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to