Hi
I am new to Tomcat and I am having trouble running my Web application.
I have deployed all my classes (including several servlets) under directory
/tomcat401_base/webapps/X
This part seems ok because, using the manager, I can verify that all the
servlets are up and running.
The problem starts when the servlets try to read files (xml, xsl, and other
type files) that they rely on.
These files are organised into four different directories : /data, /xsl,
/docs /email, and /xmli (all placed just under /X )
In addition, there is one other directory X/lib which contains jar files
that the application must access
to look for needed classes.
So far, I could not get the servlets to access the directories containing
the supporting files!
I read in a Tomcat guide that a possible solution would be to insert the
following node in the web.xml page for the application:
merchants.xml
./data/merchants.xml
Here, merchants.xml is a file (in directory /data) that one of the servlets
must access, at code line: getInitParameter("merchants.xml")
However, this did not work for me because I do not know the DTD for the
web.xml .
Given the above, I would appreciate if anyone could explain :
1- If the above "solution" is likely to work, and if yes where should I
include the nodes in the web.xml file?
2- If there is a better alternative solution to solve this application
configuration problem?
3- How do I tell the application to look for classes in the /lib/*.jar
files?
Thank you
Jorge Castro
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]