Hi Ashish,
You should put your props file under WEB-INF/classes and call it as
"JTS.props". This should work..

Kailas
Enterprise Web Infrastructure


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Friday, October 03, 2003 10:43 AM
To: [EMAIL PROTECTED]
Subject: Tomcat settings: Unable to access a text file ....


Hi there,

We were using a web application using iPlanet. Now we want to try Tomcat as
a standalone Application container for the same application. We have
migrated the application in the desired directory structure under Tomcat
directory with the apropriate changes to the application's Web.xml and the
server.xml

The directory structure looks like this ....
Webapps/OurAPPLICATION/WEB-INF/Web.xml
Webapps/OurAPPLICATION/WEB-INF/classes/...
Webapps/OurAPPLICATION/jsp/*.jsp and *.html Webapps/OurAPPLICATION/gif/

Now, i have a login.jsp that uses a java file (ReadIni.java under /classes)
to read JTS.props file. The problem is i can access this .props file if i
give the absolute path of this file but can't read the same if i just give
the name, e.g. "D:\\JTS.props"  works, but "JTS.props" doesn't

This was working fine under iPlanet as this file used to be kept under the
appropriateServer/conf file. The doubt is where do we keep it in Tomcat so
that the Tomcat server applies the appropriate context-path before the name
of the file, or what configuration setting might facilitate the same? Any
and every help is welcome....

Regards,
Ashish Gadre
Polaris Software Labs




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to