atodea

Member
Apr 23, 2011
16
0
51
Hi!

Here is my directory structure:

/public_html/WEB-INF/lib
/public_html/WEB-INF/web.xml
/public_html/index.jsp
/public_html/some_directory/index.jsp

The files in public_html root work fine.
The files in some_directory don't (they can't access the lib jars*).
If I add the whole WEB-INF directory there, it works but it's very far from clean.
That would look like (thi works but I'm not happy with it):
/public_html/WEB-INF/lib
/public_html/index.jsp
/public_html/some_directory/WEB-INF/lib
/public_html/some_directory/WEB-INF/web.xml
/public_html/some_directory/index.jsp
/public_html/other_directory/WEB-INF/lib
/public_html/other_directory/WEB-INF/web.xml
/public_html/other_directory/index.jsp


*) I can't put the jars in Tomcat's shared/lib directory because I have different applications that use different versions of the same classes. Also I'm setting some values (e.g. MySQL username, password) in some classes for each application.

I need to make the subdirectories access the /public_html/WEB-INF/lib for each application.

Thank you!
 

atodea

Member
Apr 23, 2011
16
0
51
Just to make it more clear, everything works fine except I have to put the WEB-INF directory in each subdirectory of my application.