This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes using classes outside the webapp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "using classes outside the webapp" Watch "using classes outside the webapp" New topic
Author

using classes outside the webapp

Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
Hello all javafreaks!
I've got a webapp (.war) up and running. As long as I only use the classes within this webapp everything works good, but when I try to reach one that is in another webapp I obviously run into trouble ... is there any way around this? Can I somehow include this webapp in another one and by doing so getting permissions to use those classes and packages?

Regards


Dominic Steng�rd<br />Sun Certified Java 2 Programmer
SAFROLE YUTANI
Ranch Hand

Joined: Jul 06, 2001
Posts: 257
You need to use an EAR file, which will contain your web apps. Place utility JAR files and EJB's at the root EAR level, and they automatically become available to your web apps.
SAF
Dominic Steng�rd
Ranch Hand

Joined: Feb 05, 2001
Posts: 186
Thanks Safrole for your advice!
[ April 03, 2002: Message edited by: Dominic Steng�rd ]
 
Don't get me started about those stupid light bulbs.
 
subject: using classes outside the webapp
 
Similar Threads
Refer To dir & files in WAR
Driver conflict
MVC without using struts
Servlet can't find intialisation paramters
Casting gone Wild - ClassCastException