Two Laptop Bag*
The moose likes JSP 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


JavaRanch » Java Forums » Java » JSP
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
Roger Graff
Ranch Hand

Joined: May 29, 2001
Posts: 112
Originally posted by Massimo Giusti:
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

If I understand you correctly, you do not want to put seperate copies of the job.authentication classes under each application context.
Perhaps you could jar your class files and place them under the /tomcat/common/lib directory. You may have to play around with your environment variables (classpath or other) to make this work.
[ March 13, 2003: Message edited by: Roger Graff ]
 
GeeCON Prague 2014
 
subject: Communication from two different web apps