| Author |
EJB deployment error
|
vijaya bacina
Ranch Hand
Joined: Aug 23, 2005
Posts: 155
|
|
THANX IN ADVANCE
|
 |
Vicky Mohan
Ranch Hand
Joined: Oct 14, 2004
Posts: 130
|
|
|
I guess you need to have tools.jar in your CLASSPATH.
|
 |
vijaya bacina
Ranch Hand
Joined: Aug 23, 2005
Posts: 155
|
|
hi thx a lot... my EJB deployed successfully but when i try to compile client.. again i am getting error i am beginner to ejbs and this is my first EJB... C:\Documents and Settings\Administrator\Desktop\examples>javac HelloClient.java HelloClient.java:46: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient HelloHome home = (HelloHome) ^ HelloClient.java:46: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient HelloHome home = (HelloHome) ^ HelloClient.java:48: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient obj, HelloHome.class); ^ HelloClient.java:53: cannot resolve symbol symbol : class Hello location: class examples.HelloClient Hello hello = home.create(); ^ 4 errors Plz reply if anybody know thanx
|
 |
Vicky Mohan
Ranch Hand
Joined: Oct 14, 2004
Posts: 130
|
|
Are you sure if you have the EJB's visible to the client. My guess is, you do not have the EJB's available for the client ( problem in referring them). Please make sure you have the package structure etc correct. let us know what happens...
|
 |
vijaya bacina
Ranch Hand
Joined: Aug 23, 2005
Posts: 155
|
|
hi I placed EJBObject-->hello.java , EJBHome object---> HelloHome.java and bean class---> HelloBean.java and META-INf in examples folder which is on my desktop and compiled nad packaged them from there finally i put my client program also in examples folder how can i make my EJBs visible to client i even placed the helloworld.jar in classpath also plz tell me
|
 |
vijaya bacina
Ranch Hand
Joined: Aug 23, 2005
Posts: 155
|
|
hi Actually i am getting errors like this C:\Documents and Settings\Administrator\Desktop\examples>javac HelloClient.java HelloClient.java:17: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.n arrow(obj, HelloHome.class); ^ HelloClient.java:17: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.n arrow(obj, HelloHome.class); ^ HelloClient.java:17: cannot resolve symbol symbol : class HelloHome location: class examples.HelloClient HelloHome home = (HelloHome) javax.rmi.PortableRemoteObject.n arrow(obj, HelloHome.class); ^ HelloClient.java:19: cannot resolve symbol symbol : class Hello location: class examples.HelloClient Hello hello = home.create(); ^ 4 errors
|
 |
Kunaal A Trehan
Ranch Hand
Joined: Feb 04, 2004
Posts: 63
|
|
Hi Do one thing create a jar of our EJB files and put that in classpath I feel it shd work Kunal
|
 |
vijaya bacina
Ranch Hand
Joined: Aug 23, 2005
Posts: 155
|
|
hi Thx kunal..my EJB client compiled after placed the jar file in classpath..but not executing C:\Documents and Settings\Administrator\Desktop\ejbs\examples>java HelloClient Exception in thread "main" java.lang.NoClassDefFoundError: HelloClient (wrong na me: examples/HelloClient) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:539) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12 3) at java.net.URLClassLoader.defineClass(URLClassLoader.java:251) at java.net.URLClassLoader.access$100(URLClassLoader.java:55) at java.net.URLClassLoader$1.run(URLClassLoader.java:194) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:187) at java.lang.ClassLoader.loadClass(ClassLoader.java:289) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302) Plz reply
|
 |
Chao Garreson
Greenhorn
Joined: Aug 24, 2005
Posts: 6
|
|
|
read the J2ee1.4 tutorial on "Getting Started with Enterprise Beans" in this section you will get the answers how to run your Clients
|
 |
 |
|
|
subject: EJB deployment error
|
|
|