• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

javax.ejb does not exist

 
Ranch Hand
Posts: 275
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
Ranch Hand
Posts: 107
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Good deal best of luck to you.
 
reply
    Bookmark Topic Watch Topic
  • New Topic