File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes j2ee.jar Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "j2ee.jar" Watch "j2ee.jar" New topic
Author

j2ee.jar

Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Is it a mistake or am I missing something?
I downloaded JBoss 3.4.1 binary from JBoss download page. However, it does not contain j2ee.jar file, what it contains is jboss-j2ee.jar file. However, my EJB-client code does not compile without the j2ee.jar that I had to copy from sun's reference implementation. I have set client dir in classpath and everything is ok accept this j2ee.jar file.
Did JBoss people forget to include it in the binary of this version?


Ashik Uzzaman
Senior Member of Technical Staff,
Salesforce.com, San Francisco, CA, USA.
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4120

Nope, jboss-j2ee.jar is JBoss's implementation of J2EE, and j2ee.jar is Sun's implementation of J2EE. All that you should do is replace j2ee.jar in your classpath with jboss-j2ee.jar.

my EJB-client code does not compile without the j2ee.jar


Would you mind posting the error message?


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Dear Nate,
I knew that j2ee.jar file is the JBoss's implementation of j2ee.jar . I tried setting classpath to JBoss's client dir to include that. However it was not working. The problem was solved after I compiled my client with setting classpath explicitely using jboss-j2ee.jar like %JBoss_And_Path%\client\jboss-j2ee.jar while earlier I was trying according to a tutorial setting %JBoss_And_Path%\client .
Now My HelloWorld program compiles and runs fine in JBoss.
Thank you anyway.
Vedhas Pitkar
Ranch Hand

Joined: Jan 27, 2001
Posts: 445
Can anyone tell me why we have to put the .jar files inthe CALSSPATH explicitly ?Shouldnt just putting the \lib in the CLASSPATH work?(I know it doesnt work but WHY???)
Ashik Uzzaman
Ranch Hand

Joined: Jul 05, 2001
Posts: 2370

Good question Vedhas! :roll:
rahul bivalkar
Greenhorn

Joined: Nov 19, 2003
Posts: 16
Hi
I am trying to run the Tassie Online Book Store
Example, which is explained on the following website:

http://benmira.free.fr/en/j2ee/sessionEJB.htm#ch29lev1sec4

While I successfully compiled the Search (plus the
other 2), BookDetails( plus the other 2). Finally when
i come to the Cart set of EJBs, I am able to compile
Cart.java, and CartHome.java. But when i try to
compile Cartbean.java compilation fails.

The details are as below:

C:\classes>javac -classpath
C:\jboss\client\jboss-j2ee.jar;. com/brainysoftware/
tassie/ejb/CartBean.java
com/brainysoftware/tassie/ejb/CartBean.java:35: cannot
resolve symbol
symbol : variable cart
location: class com.brainysoftware.tassie.ejb.CartBean
cart.add(row);
^
com/brainysoftware/tassie/ejb/CartBean.java:40: cannot
resolve symbol
symbol : variable cart
location: class com.brainysoftware.tassie.ejb.CartBean
return cart;
^
2 errors

----------------------

Do you have any suggestions as to what is wrong?
Perhaps I am missing something really obvious in all
my inexperience. Your kind help is highly appreciated.
 
 
subject: j2ee.jar
 
Threads others viewed
package javax.ejb does not exist
package javax.ejb does not exist
i cannot run my JBoss program
webservice compiler error
FTP: Transfer is working but all TXT files have no content
developer file tools