Guys, I did exactly the same written to deploy the first session bean in jboss. Please help me out I am having the following problem when i start the jboss, it says the class loader for the bean class not found. I know its a classpath problem but tried all the permutation and combination. please help me its really urgernt please!!!
Thanks Pradeep, I have solved the problem. I have a problem with my ejb-jar.xml. Now I am facing the problem in running the client.
C:\projects\jboss-tutorial>java HelloWorldClient Exception in thread "main" java.lang.NoClassDefFoundError: HelloWorldClient (wro ng name: com/mastertech/sample/HelloWorldClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(Unknown Source) at java.security.SecureClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.defineClass(Unknown Source) at java.net.URLClassLoader.access$100(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClassInternal(Unknown Source)
I know there is a problem with the classpath again. I am also copying my classpath. please help me whats the problem My directory structure is C:\projects\jboss-tutorial\com\mastertech\sample Under sample all my java files are residing and my ejb-jar xml is residing under C:\projects\jboss-tutorial\META-INF
Put C:\projects\jboss-tutorial\com\mastertech\sample in the CLASSPATH.
Joined: Nov 24, 2004
Thanks Pardeep its still not working Ok Can u help me in this scenarion. There is a jsp file which is calling a servlet and this servlet is looking up a bean. Can you tell me where to put the jsp and servlet. I was working on a weblogic earlier. It was simple to put every file in their respective folder. Can you help me to locate which folder should i put the respective servlet and jsp.
Regarding my previous query i have put my client in the C:\projects\jboss-tutorial\com\mastertech\sample. Can it be a problem of not showing result. Please help me out.