Fwd: Tomcat users
Hi, Where can i find a very good documentation or tutorial/video about users and roles for tomcat 7.x ? i'm new and i must say i'm a little bit confused :( thx -- Alain --- Windows 7 x64 / Fedora 17 x64 MySQL 5.5.28 Apache 2.4.3 / OpenSSL 1.0.1c Tomcat 7.17 PHP 5.4.8 -- Alain --- Windows 7 x64 / Fedora 17 x64 MySQL 5.5.28 Apache 2.4.3 / OpenSSL 1.0.1c Tomcat 7.17 PHP 5.4.8
Re: Word.Applicaiton acvivex components & tomcat & Windows 7
Jan Kostelansky wrote: Thank you André, here are details for your questions - when you have this problem, is Tomcat running as a Windows Service ? Yes it is running as service. I tried to run under local system account, and my account, which can open MS WORD, behavior is the same - where is the document that you are trying to open ? on a local disk of the Tomcat host, or on a network drive ? The file is on local HDD of tomcat host, outside of program files directory. - what version of Java is running Tomcat ? a 32-bit or 64-bit version ? It is Windows 7 64 bit release. Well, then you are probable having exactly the kind of problem that is described in the Microsoft KB article. And there is nothing that the people on the Tomcat list can do to help. It is not a problem related to Tomcat or Java. It is a problem related to running Microsoft Office "Interop" modules in the context of a Windows Service. As an easy way to verify this : Instead of running Tomcat as a Service, run it as an application in a command window. For that, you will need to download the "zip" version of tomcat, and unzip it in your Tomcat directory (or somewhere else). Then use the "startup.bat" file to start Tomcat as an application in the console. And then try your application again. It then it works without problems, it confirms the diagnostic above. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
RE: Tomcat users
> From: Raf Roger [mailto:raf.n...@gmail.com] > Subject: Fwd: Tomcat users > Where can i find a very good documentation or tutorial/video about users > and roles for tomcat 7.x ? Step 1: read the servlet spec: http://download.oracle.com/otndocs/jcp/servlet-3.0-fr-eval-oth-JSpec/ with emphasis on Chapter 13. Step 2: read the Tomcat doc: http://tomcat.apache.org/tomcat-7.0-doc/realm-howto.html Step 3: look in the How To part of the FAQ for related topics: http://wiki.apache.org/tomcat/HowTo Step 4: ask specific questions if the above doesn't answer them - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat users
On 8 Dec 2012, at 11:00, Raf Roger wrote: > Hi, > > Where can i find a very good documentation or tutorial/video about users > and roles for tomcat 7.x ? > i'm new and i must say i'm a little bit confused :( > thx > > -- > Alain > --- > Windows 7 x64 / Fedora 17 x64 > MySQL 5.5.28 > Apache 2.4.3 / OpenSSL 1.0.1c > Tomcat 7.17 Don't use this version, (presumably you meant 7.0.17), use the latest version. 7.0.33 or 7.0.34 depending on when you read this. p > PHP 5.4.8 > > > > > -- > Alain > --- > Windows 7 x64 / Fedora 17 x64 > MySQL 5.5.28 > Apache 2.4.3 / OpenSSL 1.0.1c > Tomcat 7.17 > PHP 5.4.8 - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0 CLASSPATH query
On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" wrote: > Application is deployed under tomcat webapps directory . It tries to refer to > application specific properties file from tomcat classpath, for that we > copied it under tomcat bin directory. > > My query is that does this is the right way to add properties file to tomcat > classpath? Did you try putting it in tomcat/lib? p > > Thanks for ur help, > Vicky > > > > On Dec 8, 2012, at 2:11 AM, Christopher Schultz > wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Vicky, >> >> On 12/7/12 11:48 AM, vicky wrote: >>> I have a requirement in which i need to add couple of properties >>> files to tomcat CLASSPATH as these are needed for my application >>> deployed in Tomcat 6.0. >>> >>> One strange thing is that, i need to add the all my properties >>> files to "/bin" directory else these all wont get >>> added to Tomcat classpath. >> >> Where does the code live that attempts to load those properties files? >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Version: GnuPG/MacGPG2 v2.0.17 (Darwin) >> Comment: GPGTools - http://gpgtools.org >> Comment: Using GnuPG with undefined - http://www.enigmail.net/ >> >> iEYEAREIAAYFAlDCVJcACgkQ9CaO5/Lv0PBTogCgoXLXbB5jx///m6qC+ZxO0f20 >> xO8An2SZPU8E0LuiPpQRCZPVw8v/T66L >> =Jmvq >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Z/OS CICS Support
On 6 Dec 2012, at 15:33, Shaik Jani - Cincinnati-AMIG wrote: > What I meant was can we access mainframe resources in Tomcat? Depending on how those resources are really exposed, the usual answer is yes. Sometimes those resources are really exposed using web services or JMS queues, in which case the standard means of accessing those resources is the same as it would be if they were not on a mainframe. Alternatively you might just need to use the Java library provided by the vendor. p > > > -Original Message- > From: André Warnier [mailto:a...@ice-sa.com] > Sent: Thursday, December 06, 2012 10:30 AM > To: Tomcat Users List > Subject: Re: Z/OS CICS Support > > Shaik Jani - Cincinnati-AMIG wrote: >> Hi, >> >> >> >> We are replacing websphere application server, so would like to know whether >> tomcat has CICS support to access mainframe resources. > > Should you not be asking IBM for this ? > (that's only after Googling for "CICS Support") > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0 CLASSPATH query
I have read the Tomcat 6.0 classloader documentation(below link), from this what i understood is that the "classes/jar/resource/properties file" get loaded from the following locations 1.Bootstrap classes of your JVM ($JAVA_HOME/jre/lib/ext). 2.System class loader classes ( Add bootstrap.jar & tomcat-juli.jar to CLASSPATH variable) 3.Common class loader classes ( refers $CATALINA_BASE/lib & $CATALINA_HOME/lib ) & uses $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of your web application 5. /WEB-INF/lib/*.jar of your web application The thing which is still puzzling me is that how my "resource/properties files" get loaded to Tomcat CLASSPATH when i add them to "$CATALINA_BASE/bin" directory & When i move the same files to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat CLASSPATH. My deployed applications need"properties/resource files ", Can someone please help me in understand the optimal way of adding these files to Tomcat CLASSPATH. Does placing the files under /bin is the right approach.Please suggest In my organisation i cannot add anything to "$CATALINA_HOME/lib or bin" location ,these are read only directories http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Thanks for your help Vicky From: Pid * To: Tomcat Users List Sent: Saturday, 8 December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" wrote: > Application is deployed under tomcat webapps directory . It tries to refer to > application specific properties file from tomcat classpath, for that we > copied it under tomcat bin directory. > > My query is that does this is the right way to add properties file to tomcat > classpath? Did you try putting it in tomcat/lib? p > > Thanks for ur help, > Vicky > > > > On Dec 8, 2012, at 2:11 AM, Christopher Schultz > wrote: > >> -BEGIN PGP SIGNED MESSAGE- >> Hash: SHA256 >> >> Vicky, >> >> On 12/7/12 11:48 AM, vicky wrote: >>> I have a requirement in which i need to add couple of properties >>> files to tomcat CLASSPATH as these are needed for my application >>> deployed in Tomcat 6.0. >>> >>> One strange thing is that, i need to add the all my properties >>> files to "/bin" directory else these all wont get >>> added to Tomcat classpath. >> >> Where does the code live that attempts to load those properties files? >> >> - -chris >> -BEGIN PGP SIGNATURE- >> Version: GnuPG/MacGPG2 v2.0.17 (Darwin) >> Comment: GPGTools - http://gpgtools.org/ >> Comment: Using GnuPG with undefined - http://www.enigmail.net/ >> >> iEYEAREIAAYFAlDCVJcACgkQ9CaO5/Lv0PBTogCgoXLXbB5jx///m6qC+ZxO0f20 >> xO8An2SZPU8E0LuiPpQRCZPVw8v/T66L >> =Jmvq >> -END PGP SIGNATURE- >> >> - >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org >> For additional commands, e-mail: users-h...@tomcat.apache.org > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0 CLASSPATH query
Comments inline below (a bit fuzzy from the move yet). On 12/8/2012 9:58 AM, vicky wrote: I have read the Tomcat 6.0 classloader documentation(below link), from this what i understood is that the "classes/jar/resource/properties file" get loaded from the following locations 1.Bootstrap classes of your JVM ($JAVA_HOME/jre/lib/ext). 2.System class loader classes ( Add bootstrap.jar & tomcat-juli.jar to CLASSPATH variable) 3.Common class loader classes ( refers $CATALINA_BASE/lib & $CATALINA_HOME/lib ) & uses $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of your web application 5. /WEB-INF/lib/*.jar of your web application The thing which is still puzzling me is that how my "resource/properties files" get loaded to Tomcat CLASSPATH when i add them to "$CATALINA_BASE/bin" directory & When i move the same files to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat CLASSPATH. My deployed applications need"properties/resource files ", Can someone please help me in understand the optimal way of adding these files to Tomcat CLASSPATH. Does placing the files under /bin is the right approach.Please suggest Why in the world are you adding these resource files to Tomcat's CLASSPATH? If the resources are application - specific, you don't need to do this at all. Just add the files to your local application. In Maven, there's a special directory for that: src/main/resources In NetBeans, I normally create a separate package for all of my configuration files. I think in Eclipse you'll have to make a subdirectory under WEB-INF/classes and copy the files there. That's unpleasant. Eclipse will include that in the build of the WAR file when you do an "export". Then, just do the following in your code to reference the resource. InputStream in = this.getClass().getClassLoader().getResourceAsStream(configfile); Where configfile is the complete classpath to your resource. This is nice. It works in exploded WARs, it works in WAR files, it works in JARs. No mucking about with CLASSPATH. No polluting other applications or Tomcat with spurious application - specific resources. This enables you to run several copies of the same web application in the same container, all with different configurations. Just search for getResourceAsStream() for more explanation. In my organisation i cannot add anything to "$CATALINA_HOME/lib or bin" location ,these are read only directories http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Thanks for your help Vicky Not needed. From: Pid * To: Tomcat Users List Sent: Saturday, 8 December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" wrote: Application is deployed under tomcat webapps directory . It tries to refer to application specific properties file from tomcat classpath, for that we copied it under tomcat bin directory. My query is that does this is the right way to add properties file to tomcat classpath? Did you try putting it in tomcat/lib? p Thanks for ur help, Vicky On Dec 8, 2012, at 2:11 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 12/7/12 11:48 AM, vicky wrote: I have a requirement in which i need to add couple of properties files to tomcat CLASSPATH as these are needed for my application deployed in Tomcat 6.0. One strange thing is that, i need to add the all my properties files to "/bin" directory else these all wont get added to Tomcat classpath. Where does the code live that attempts to load those properties files? - -chris . . . just my (I hate moving) 2 cents /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0 CLASSPATH query
Thanks Mark for your valuable suggestions. But in my project i have a requirement to share one "resource/properties file " across 10 applications deployed on single tomcat instance We cannot afford to add the same properties file to all archives as its contents keep changing. Another restriction which i have is that i cannot place any file under "$CATALINA_HOME" directories , these are read only for us. Based on afore said concerns, do you have any better way out ..please suggest. Appreciated all of your help Thanks for ur time Vicky From: Mark Eggers To: Tomcat Users List Sent: Sunday, 9 December 2012 12:23 AM Subject: Re: Tomcat 6.0 CLASSPATH query Comments inline below (a bit fuzzy from the move yet). On 12/8/2012 9:58 AM, vicky wrote: > > I have read the Tomcat 6.0 classloader documentation(below link), > from this what i understood is that the > "classes/jar/resource/properties file" get loaded from the following > locations > > 1.Bootstrap classes of your JVM ($JAVA_HOME/jre/lib/ext). 2.System > class loader classes ( Add bootstrap.jar & tomcat-juli.jar to > CLASSPATH variable) 3.Common class loader classes ( refers > $CATALINA_BASE/lib & $CATALINA_HOME/lib ) & uses > $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of your > web application 5. /WEB-INF/lib/*.jar of your web application > > The thing which is still puzzling me is that how my > "resource/properties files" get loaded to Tomcat CLASSPATH when i add > them to "$CATALINA_BASE/bin" directory & When i move the same files > to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat > CLASSPATH. > > My deployed applications need"properties/resource files ", Can > someone please help me in understand the optimal way of adding these > files to Tomcat CLASSPATH. Does placing the files under > /bin is the right approach.Please suggest > Why in the world are you adding these resource files to Tomcat's CLASSPATH? If the resources are application - specific, you don't need to do this at all. Just add the files to your local application. In Maven, there's a special directory for that: src/main/resources In NetBeans, I normally create a separate package for all of my configuration files. I think in Eclipse you'll have to make a subdirectory under WEB-INF/classes and copy the files there. That's unpleasant. Eclipse will include that in the build of the WAR file when you do an "export". Then, just do the following in your code to reference the resource. InputStream in = this.getClass().getClassLoader().getResourceAsStream(configfile); Where configfile is the complete classpath to your resource. This is nice. It works in exploded WARs, it works in WAR files, it works in JARs. No mucking about with CLASSPATH. No polluting other applications or Tomcat with spurious application - specific resources. This enables you to run several copies of the same web application in the same container, all with different configurations. Just search for getResourceAsStream() for more explanation. > In my organisation i cannot add anything to "$CATALINA_HOME/lib or > bin" location ,these are read only directories > > http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html > Thanks for your help Vicky Not needed. > > > From: Pid * To: > Tomcat Users List Sent: Saturday, 8 > December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query > > On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" > wrote: > >> Application is deployed under tomcat webapps directory . It tries >> to refer to application specific properties file from tomcat >> classpath, for that we copied it under tomcat bin directory. >> >> My query is that does this is the right way to add properties file >> to tomcat classpath? > > Did you try putting it in tomcat/lib? > > > p > > > >> >> Thanks for ur help, Vicky >> >> >> >> On Dec 8, 2012, at 2:11 AM, Christopher Schultz >> wrote: >> >>> -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 >>> >>> Vicky, >>> >>> On 12/7/12 11:48 AM, vicky wrote: I have a requirement in which i need to add couple of properties files to tomcat CLASSPATH as these are needed for my application deployed in Tomcat 6.0. One strange thing is that, i need to add the all my properties files to "/bin" directory else these all wont get added to Tomcat classpath. >>> >>> Where does the code live that attempts to load those properties >>> files? >>> >>> - -chris . . . just my (I hate moving) 2 cents /mde/ - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Tomcat 6.0 CLASSPATH query
See at the end for a truly spectacularly bad potential solution. Note that I have not tried this, so your mileage may vary. On 12/8/2012 11:51 AM, vicky wrote: Thanks Mark for your valuable suggestions. But in my project i have a requirement to share one "resource/properties file " across 10 applications deployed on single tomcat instance We cannot afford to add the same properties file to all archives as its contents keep changing. Another restriction which i have is that i cannot place any file under "$CATALINA_HOME" directories , these are read only for us. Based on afore said concerns, do you have any better way out ..please suggest. Appreciated all of your help Thanks for ur time Vicky From: Mark Eggers To: Tomcat Users List Sent: Sunday, 9 December 2012 12:23 AM Subject: Re: Tomcat 6.0 CLASSPATH query Comments inline below (a bit fuzzy from the move yet). On 12/8/2012 9:58 AM, vicky wrote: I have read the Tomcat 6.0 classloader documentation(below link), from this what i understood is that the "classes/jar/resource/properties file" get loaded from the following locations 1.Bootstrap classes of your JVM ($JAVA_HOME/jre/lib/ext). 2.System class loader classes ( Add bootstrap.jar & tomcat-juli.jar to CLASSPATH variable) 3.Common class loader classes ( refers $CATALINA_BASE/lib & $CATALINA_HOME/lib ) & uses $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of your web application 5. /WEB-INF/lib/*.jar of your web application The thing which is still puzzling me is that how my "resource/properties files" get loaded to Tomcat CLASSPATH when i add them to "$CATALINA_BASE/bin" directory & When i move the same files to $CATALINA_BASE/conf directory then it doesn't get added to Tomcat CLASSPATH. My deployed applications need"properties/resource files ", Can someone please help me in understand the optimal way of adding these files to Tomcat CLASSPATH. Does placing the files under /bin is the right approach.Please suggest Why in the world are you adding these resource files to Tomcat's CLASSPATH? If the resources are application - specific, you don't need to do this at all. Just add the files to your local application. In Maven, there's a special directory for that: src/main/resources In NetBeans, I normally create a separate package for all of my configuration files. I think in Eclipse you'll have to make a subdirectory under WEB-INF/classes and copy the files there. That's unpleasant. Eclipse will include that in the build of the WAR file when you do an "export". Then, just do the following in your code to reference the resource. InputStream in = this.getClass().getClassLoader().getResourceAsStream(configfile); Where configfile is the complete classpath to your resource. This is nice. It works in exploded WARs, it works in WAR files, it works in JARs. No mucking about with CLASSPATH. No polluting other applications or Tomcat with spurious application - specific resources. This enables you to run several copies of the same web application in the same container, all with different configurations. Just search for getResourceAsStream() for more explanation. In my organisation i cannot add anything to "$CATALINA_HOME/lib or bin" location ,these are read only directories http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html Thanks for your help Vicky Not needed. From: Pid * To: Tomcat Users List Sent: Saturday, 8 December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" wrote: Application is deployed under tomcat webapps directory . It tries to refer to application specific properties file from tomcat classpath, for that we copied it under tomcat bin directory. My query is that does this is the right way to add properties file to tomcat classpath? Did you try putting it in tomcat/lib? p Thanks for ur help, Vicky On Dec 8, 2012, at 2:11 AM, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Vicky, On 12/7/12 11:48 AM, vicky wrote: I have a requirement in which i need to add couple of properties files to tomcat CLASSPATH as these are needed for my application deployed in Tomcat 6.0. One strange thing is that, i need to add the all my properties files to "/bin" directory else these all wont get added to Tomcat classpath. Where does the code live that attempts to load those properties files? - -chris . . . just my (I hate moving) 2 cents /mde/ Vicky, So let me now understand your requirements. 1. Properties files to be read by web applications 2. 10 web applications on one Tomcat instance 3. All 10 web applications read identical files 4. Property files change frequently 5. $CATALINA_HOME and $CATALINA_BASE are read-only 6. $CATALINA_BASE/lib and $CATALINA_BASE/bin are read-only In the future it would be a good idea to list all of your requirements and restrictions
Re: Tomcat 6.0 CLASSPATH query
Thanks Mark Sorry for the confusion i created related to my requirements. 5 Out of 6 requirements you stated below are correct. The last point i.e $CATALINA_BASE is writable. I can manipulate/write files to this location. So now do you have anything more to add to your proposed solution as you suggested below Thanks, Vicky On Dec 9, 2012, at 2:09 AM, Mark Eggers wrote: > See at the end for a truly spectacularly bad potential solution. Note that I > have not tried this, so your mileage may vary. > > On 12/8/2012 11:51 AM, vicky wrote: >> Thanks Mark for your valuable suggestions. >> >> But in my project i have a requirement to share one >> "resource/properties file " across 10 applications deployed on single >> tomcat instance >> >> We cannot afford to add the same properties file to all archives as >> its contents keep changing. >> >> Another restriction which i have is that i cannot place any file >> under "$CATALINA_HOME" directories , these are read only for us. >> >> Based on afore said concerns, do you have any better way out ..please >> suggest. >> >> Appreciated all of your help >> >> Thanks for ur time Vicky >> >> >> From: Mark Eggers >> To: Tomcat Users List >> Sent: Sunday, 9 December 2012 12:23 AM >> Subject: Re: Tomcat 6.0 CLASSPATH query >> >> Comments inline below (a bit fuzzy from the move yet). >> >> On 12/8/2012 9:58 AM, vicky wrote: >>> >>> I have read the Tomcat 6.0 classloader documentation(below link), >>> from this what i understood is that the >>> "classes/jar/resource/properties file" get loaded from the >>> following locations >>> >>> 1.Bootstrap classes of your JVM ($JAVA_HOME/jre/lib/ext). >>> 2.System class loader classes ( Add bootstrap.jar & >>> tomcat-juli.jar to CLASSPATH variable) 3.Common class loader >>> classes ( refers $CATALINA_BASE/lib & $CATALINA_HOME/lib ) & uses >>> $CATALINA_BASE/conf/catalina.properties 4. /WEB-INF/classes of >>> your web application 5. /WEB-INF/lib/*.jar of your web application >>> >>> The thing which is still puzzling me is that how my >>> "resource/properties files" get loaded to Tomcat CLASSPATH when i >>> add them to "$CATALINA_BASE/bin" directory & When i move the same >>> files to $CATALINA_BASE/conf directory then it doesn't get added to >>> Tomcat CLASSPATH. >>> >>> My deployed applications need"properties/resource files ", Can >>> someone please help me in understand the optimal way of adding >>> these files to Tomcat CLASSPATH. Does placing the files under >>> /bin is the right approach.Please suggest >> >> Why in the world are you adding these resource files to Tomcat's >> CLASSPATH? If the resources are application - specific, you don't >> need to do this at all. >> >> Just add the files to your local application. In Maven, there's a >> special directory for that: >> >> src/main/resources >> >> In NetBeans, I normally create a separate package for all of my >> configuration files. >> >> I think in Eclipse you'll have to make a subdirectory under >> WEB-INF/classes and copy the files there. That's unpleasant. Eclipse >> will include that in the build of the WAR file when you do an >> "export". >> >> Then, just do the following in your code to reference the resource. >> >> InputStream in = >> this.getClass().getClassLoader().getResourceAsStream(configfile); >> >> Where configfile is the complete classpath to your resource. >> >> This is nice. It works in exploded WARs, it works in WAR files, it >> works in JARs. >> >> No mucking about with CLASSPATH. No polluting other applications or >> Tomcat with spurious application - specific resources. This enables >> you to run several copies of the same web application in the same >> container, all with different configurations. >> >> Just search for getResourceAsStream() for more explanation. >> >>> In my organisation i cannot add anything to "$CATALINA_HOME/lib or >>> bin" location ,these are read only directories >>> >>> http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html >>> Thanks for your help Vicky >> >> Not needed. >> >>> >>> >>> From: Pid * To: >>> Tomcat Users List Sent: Saturday, 8 >>> December 2012 10:34 PM Subject: Re: Tomcat 6.0 CLASSPATH query >>> >>> On 8 Dec 2012, at 03:29, "vicky007aggar...@yahoo.co.in" >>> wrote: >>> Application is deployed under tomcat webapps directory . It tries to refer to application specific properties file from tomcat classpath, for that we copied it under tomcat bin directory. My query is that does this is the right way to add properties file to tomcat classpath? >>> >>> Did you try putting it in tomcat/lib? >>> >>> >>> p >> >>> >>> >>> Thanks for ur help, Vicky On Dec 8, 2012, at 2:11 AM, Christopher Schultz wrote: > -BEGIN PGP SIGNED MESSAGE- Hash: SHA256 > > Vicky, > > On 12/7/12 11:48 AM, vicky wro