wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Communication from two different web apps
 
Similar Threads
Suffering Reverse(s) [Servlets-2]
In which package should be a Listener
Communication from two different web apps
Request input stream
Reading from and writing to a file