[jboss-user] [EJB/JBoss] - Re: ClassNotFoundException

jaikiran do-not-reply at jboss.com
Tue Nov 13 01:10:12 EST 2007


anonymous wrote : Exception in thread "main" javax.naming.CommunicationException [Root exception is java.lang.ClassNotFoundException: ejb.Bean30Remote] 

Looks like the ejb.Bean30Remote is not found in the classpath. You are using 

anonymous wrote : java -jar c:/blah/blah/test.jar

Remember that the classpath is ignored when you run a jar file like this. You will have to make the classpath entries in the MANIFEST.MF file in the META-INF folder of the jar to make sure that the appropriate classes are picked up.
Have a look at http://java.sun.com/docs/books/tutorial/deployment/jar/downman.html to see how you can add classes/jars to the jar's classpath through the manifest file

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103945



More information about the jboss-user mailing list