File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Communication from two different web apps Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Communication from two different web apps" Watch "Communication from two different web apps" New topic
Author

Communication from two different web apps

Massimo Giusti
Greenhorn

Joined: Jan 09, 2003
Posts: 9
Hi all,
I'm working with Tomcat 4.0 and I build two web applications: back-app and front-app!
I have created a package "job.authentication" in the back-app and I want use this package in a jsp in the front-app.
But when I try to import this package I receveid the error:
Package job.authentication not found in import
I shouldn't create a library .jar for classes in back-app (then refer this in the classpath), because I'm deployng both application and there are continuos changes.
Have you an idea for resolve my problem?
Thanks in advance,
MaX :roll:
Ryan Bailey
Ranch Hand

Joined: Feb 26, 2002
Posts: 134
Massimo,
If you need to use the same package in multiple webapps all you have to do is jar up the files to be used and place them in your TOMCAT_HOME/common/lib directory.
This directory is shared between all Webaps.
Hope this helps,
Ryan


SCJP 1.4, SCWCD
Java: The power, elegance, and simplicity of a hand grenade
Massimo Giusti
Greenhorn

Joined: Jan 09, 2003
Posts: 9
Thank you very much
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Communication from two different web apps
 
Similar Threads
In which package should be a Listener
Suffering Reverse(s) [Servlets-2]
Communication from two different web apps
Reading from and writing to a file
Request input stream