-
1. Re: Class Cast Error
jaikiran Dec 26, 2009 12:45 AM (in response to charliekelly)How are you running the tutorial? Looks like your client classpath does not have jbossall-client.jar (and the other jars referenced in its META-INF/MANIFEST.MF file). These jars can be found in JBOSS_HOME/client folder. But i would expect all this to be set by the Ant/Maven scripts in the tutorials. So did you change anything?
-
2. Re: Class Cast Error
charliekelly Dec 26, 2009 10:10 AM (in response to jaikiran)Hi,
This solved the problem (indirectly).
I'm running a "client" in a JUnit test within Eclipse.
The jbossall-client is only 2K (I suspect that this might be an error).
I included all the jars in the JBoss client folder into the Eclipse classpath for the JUnit test.
Then it completed correctly.
Thank you for your help.
Charlie
-
3. Re: Class Cast Error
jaikiran Dec 26, 2009 10:34 AM (in response to charliekelly)1 of 1 people found this helpfulCharlieKelly wrote:
The jbossall-client is only 2K (I suspect that this might be an error).
The jbossall-client.jar is a MANIFEST only jar. What this means is, there are no classes within that jar but it has a META-INF/MANIFEST.MF which contains a Class-Path reference to point to all other required jars. The Class-Path entries are relative to the location of the jbossall-client.jar i.e. the jbossall-client.jar and all the referenced jars should be in the same folder. Usually, pointing to the jbossall-client.jar in the JBOSS_HOME/client is enough, but i don't know how IDEs handle the MANIFEST only jars.