Is it classes12.jar or classes12.zip? Your first post said zip. If it is zip make sure you rename it to jar. If you rename it to classes12.jar and put it in WEB-INF\lib it will be picked up.
James
Shailesh Modi wrote:
Hi, I have kept classes12.jar in every possible places in tomcat 4 directory(C:\jakarta-tomcat-4.1.27\common\lib or C:\jakarta-tomcat-4.1.27\server\lib), but no help. Also keeping properties files into my web-app's WEB-INF/classes directory too not able to help me out. Alternatively, I have tried giving relative path (eg "/WEB-INF/properties/framework.properties) , still my Loader class is not able to locate the framework properties file. InputStream myStream = ClassLoader.getSystemResourceAsStream("framework.properties"); or InputStream myStream = ClassLoader.getSystemResourceAsStream("/WEB-INF/properties/framework.propert ies"); both are not working.
One more thing, in tomcat 3 , I had modified server.xml by placing following code for authentication. <RequestInterceptor className="com.remind.securetomcat.SecRealm" debug="0" initCtx="com.sun.jndi.ldap.LdapCtxFactory" ldapHost="ldap://ldap.mycompany.com:389" baseDn="ou=active,ou=employees,ou=people,o=mycompany.com" maxDnAge="300" maxPwAge="6000" maxFilterAge="6000" />
where as 'com.remind.securetomcat.SecRealm' is my class to authenticates user by ldap. Where should i place this tag in server.xml in tomcat 4.1.27 configuration to make this work?
Thanks a Lot.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 2:54 PM To: Tomcat Users List Subject: RE: deployment problems in tomcat 4.1.27
It is sayed that property file should be in your classpath!
So I allways put my property file under WEB-INF/classes/ directory which seems to be fine. I am using Struts, but I guess the Struts uses the same mechanism to access properties!
As I understand your oracle12.zip is needed to startup tomcat server in this case it should be under %CATALINA_HOME%/server/lib directory. And I suggest to transfert it into .jar file!
Atleast I am using mysql connector (it is in jar file) and I allways have to put it under %CATALINA_HOME%/server/lib directory to make my JDBC realm work!
If your .jar file is needed only for your own application then WEB-INF/lib should do!
Also there is %CATALINA_HOME%/common/ directory which has /lib directory where you can put different stuff. This stuff will be visible to all your web applications! For example appache suggeests to put different jars from their common project. _______________________________________________________ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation.
Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267
"Shailesh Modi" <[EMAIL PROTECTED]> 09/04/2003 12:20 Please respond to "Tomcat Users List"
To: "'Tomcat Users List'" <[EMAIL PROTECTED]> cc: Subject: RE: deployment problems in tomcat 4.1.27
Thanks Janis, it was great help. I am having another problem regarding classpath of tomcat. My application property files and oracle classes (classes12.zip) are not being picked up, when tomcat deploys my web app. my properties files are in /WEB-INF/properties folder and classes12.zip is in /WEB-INF/lib folder. I have tried putting classes12.zip in Tomcat's %CATALINA_HOME%/common/lib and my properties files in /WEB-INF/lib directory, but no help. At application startup , I am loading my properties file as InputStream myStream = ClassLoader.getSystemResourceAsStream("framework.properties");
But myStream is getting null. This code was working fine in tomcat 3 (as we used to specify classpath to tomcat startup for properties files, jars and other shared libs) but not working in tomcat 4.1.27 .
Thanks a lot.
Shailesh
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, September 04, 2003 12:39 PM To: Tomcat Users List Subject: Re: deployment problems in tomcat 4.1.27
You have to configure server.xml file
There are 2 things
1) <host> which defines your docBase 2) <context> which defines different contexts See apache.org for the tag specifications _______________________________________________________ Living things are systems that tend to respond to changes in their environment, and inside themselves, in such a way as to promote their own continuation.
Janis Olekss Exigen Latvia System Analyst (Office) +371 7072900 (Cell) +371 9136267
"Shailesh Modi" <[EMAIL PROTECTED]> 09/04/2003 10:12 Please respond to "Tomcat Users List"
To: <[EMAIL PROTECTED]> cc: Subject: deployment problems in tomcat 4.1.27
Hi, I am trying to deploy my web application in tomcat 4.1.27, earlier tomcat 3 was successfully running my web-app.
1. basic problem - I want to set my web-app context as "/remind/cafe/" (e.g. http://server:port/remind/cafe/index.do) but tomcat 4.1.27 asks me to put my web-app war file into webapps folder where i cant set my own context. Actually i dont know how to set my own context in tomcat 4.1.27. I want to place my web-app files in my devlopment folders and run application from there itself by tomcat 4.1.27 .
2. I have some config property files into my WEB-INF/properties folder. Do i have to place these files into WEB-INF/lib folder so that they can be accessible by my servlet at application startup Or is there any way where these files can be picked up from properties folder itself.?
Any pointers would greatly appreciated.
Thanks a lot
Shailesh Modi
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]