hi,
i faced the same problem like class cast exception earlier.
This is simple classpath error.
Make sure that your client program classpath contains the jbossall-client.jar .
And also open the META-INF of the jbossall-client.jar file and place the jar files which
are there in META-INF file in your classpath.
Try this. i'm sure this will work.
Class-Path: commons-logging.jar concurrent.jar ejb3-persistence.jar hi
| bernate-annotations.jar jboss-aop-client.jar jboss-appclient.jar jbos
| s-aspect-jdk50-client.jar jboss-client.jar jboss-common-core.jar jbos
| s-deployers-client-spi.jar jboss-deployers-client.jar jboss-deployers
| -core-spi.jar jboss-deployers-core.jar jboss-deployment.jar jboss-ejb
| 3-common-client.jar jboss-ejb3-core-client.jar jboss-ejb3-ext-api.jar
| jboss-ejb3-proxy-client.jar jboss-ejb3-proxy-clustered-client.jar jb
| oss-ejb3-security-client.jar jboss-ha-client.jar jboss-ha-legacy-clie
| nt.jar jboss-iiop-client.jar jboss-integration.jar jboss-j2se.jar jbo
| ss-javaee.jar jboss-jsr77-client.jar jboss-logging-jdk.jar jboss-logg
| ing-log4j.jar jboss-logging-spi.jar jboss-main-client.jar jboss-mdr.j
| ar jboss-messaging-client.jar jboss-remoting.jar jboss-security-spi.j
| ar jboss-serialization.jar jboss-srp-client.jar jboss-system-client.j
| ar jboss-system-jmx-client.jar jbosscx-client.jar jbosssx-as-client.j
| ar jbosssx-client.jar jmx-client.jar jmx-invoker-adaptor-client.jar j
| np-client.jar slf4j-api.jar slf4j-jboss-logging.jar xmlsec.jar
when you open the META-INF file, the file contains the code as shown above. Place all the
jar files in your classpath(client program classpath). You will get all these jar files in
the JBOSS AS folder(lib folder).
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4225567#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...