Hi all,
 
I have some problem when compling the  HelloWorld.java file.
My directory structure is as follows.
 
F:\J2EE\org\acme
 
In this dir I have HelloBean.java, HelloHome.java, HelloObject.java files.
I have compiled all these files without any problem
 
F:\J2EE>javac org\acme\*.java
 
I have also created the myHelloEjb.jar file.
 
F:\J2EE>jar cvf myHelloEjb.jar org META-INF
added manifest
adding: org/(in = 0) (out= 0)(stored 0%)
adding: org/acme/(in = 0) (out= 0)(stored 0%)
adding: org/acme/HelloBean.class(in = 753) (out= 393)(deflated 47%)
adding: org/acme/HelloHome.class(in = 263) (out= 188)(deflated 28%)
adding: org/acme/HelloObject.class(in = 234) (out= 177)(deflated 24%)
ignoring entry META-INF/
adding: META-INF/ejb-jar.xml(in = 676) (out= 276)(deflated 59%)
 
Then I changed to openejb-0.8.3 dir and generated the jar file at the 
F:\openejb-0.8.3\beans dir.
 
F:\openejb-0.8.3>openejb.bat deploy -a -m f:\j2ee\myHelloEjb.jar
 
Finally when I try to compile the HelloWorld.java file, I get the following error 
 
F:\J2EE>javac org\acme\HelloWorld.java
org\acme\HelloWorld.java:31: cannot resolve symbol
symbol  : class HelloHome
location: class org.acme.HelloWorld
    HelloHome ejbHome = (HelloHome)
    ^
org\acme\HelloWorld.java:31: cannot resolve symbol
symbol  : class HelloHome
location: class org.acme.HelloWorld
    HelloHome ejbHome = (HelloHome)
                         ^
org\acme\HelloWorld.java:32: cannot resolve symbol
symbol  : class HelloHome
location: class org.acme.HelloWorld
        PortableRemoteObject.narrow(obj,HelloHome.class);
                                        ^
org\acme\HelloWorld.java:35: cannot resolve symbol
symbol  : class HelloObject
location: class org.acme.HelloWorld
    HelloObject ejbObject = ejbHome.create();
    ^
4 errors
 
The .class file of the beans are in the org\acme\, but still HelloWorld.java seems not 
to 
find out the class files. Where can the problem be? I am using java version
java version "1.4.2_04"
and J2EE version j2sdkee-1_3_1.
 
The classpath also is in order, where can the problem be.
 
Any help reg this will be great!!!
 
bye,
with regards,
Deepak.

                
---------------------------------
Do you Yahoo!?
Shop for Back-to-School deals on Yahoo! Shopping.

Reply via email to