• Post Reply Bookmark Topic Watch Topic
  • New Topic

javax.ejb does not exist  RSS feed

 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. If anybody has a minute, I am developing locally with resin. I am trying to compile an EJB and receiving "package javax.ejb does not exist". After sifitng through this forum, I searched the jar files included in resin's lib directory and found resin.jar contained references to ejb. So, I copied that jar into the same development folder where I compile java files and with this DOS command...

javac -classpath .;resin.jar SurveyResultBean.java

I am receiving the above error.

I've seen earlier posts regarding j2ee.jar but it seems weird that I should have to download Sun's j2ee when resin ~should~ have these classes. If anybody could toss me a bone, I'd really appreciate your help. Thank you for your time and consideration.
[ November 03, 2004: Message edited by: Tom Griffith ]
 
Sloan Bowman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To check to see if the javax.ejb package exist in that library view its contents with the jar utility.

Example: jar -tvf resin.jar

If you are using UNIX you can simply pipe that to a grep statement and search for the package you are looking for.
 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. Thank you for the info. I opened resin.jar in Wordpad and through the gibberish I was able to see package/class names, etc. If I used the butility in DOS, it scrolled through everything and /d wouldn't freeze the screen. anyways, there is no javax.ejb in there, but a lot of ejb classes. I don't know why it's not there...so I'm ready to download j2ee from Sun just to get j2ee.jar...
[ November 03, 2004: Message edited by: Tom Griffith ]
 
Tom Griffith
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think I found it (thanks to more searching in this forum). I wasn't aware Sun had a seperate ejb spec download seperate from the full blown j2ee server...

http://java.sun.com/products/ejb/docs.html

Thank you.
 
Sloan Bowman
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Good deal best of luck to you.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!