RE: More understanding on startup.sh and shutdown.sh
Hi Rob, Thank you for your helps. when you do set | grep TOMCAT_HOME you should get something like this: TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 Have you set the TOMCAT_HOME and JAVA_HOME environment variables? The error you're getting seems to be that the server's jar file isn't in the CLASSPATH (which Tomcat sets for you). here is my setting of profile. . /home/pseudo/profile alias ls='ls -l' alias la='ls -a' export PS1=\w . .java #export JAVA_HOME=/local/pkg/jdk/1.3 export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686 export BIN=/usr/bin export APACHE=/etc/init.d export PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH export CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper.jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/WEB-INF/classes:$TOMCAT_HOME/lib/mm.m ysql-2.0.6.jar:$TOMCAT_HOME/conn ---end of profile--- Is there any error on the setting ? Thank you :-) regards Kennice From: Rob S. [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: More understanding on startup.sh and shutdown.sh Date: Thu, 16 Aug 2001 07:16:09 -0400 Hiya Ken, Have you set the TOMCAT_HOME and JAVA_HOME environment variables? The error you're getting seems to be that the server's jar file isn't in the CLASSPATH (which Tomcat sets for you). I can only think that you've improperly set TOMCAT_HOME. when you do set | grep TOMCAT_HOME you should get something like this: TOMCAT_HOME=/usr/local/tomcat where that is the root of your tomcat installation. Make sure that's set correctly and let us know what happens... - r -Original Message- From: Kennice Low [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: More understanding on startup.sh and shutdown.sh Hi, I am using Linux o/s. I am very new to tomcat. Can anyone enlightened me on the starting and stopping of Tomcat ? Here is my startup.sh and shutdown.sh startup.sh: BASEDIR=`dirname $0` $BASEDIR/tomcat.sh start $@ -end shutdown.sh: BASEDIR=`dirname $0` $BASEDIR/tomcat.sh stop $@ ---end - Here is my questions : 1)What is $BASEDIR ? 2)Whenever I run startup.sh or shutdown.sh, the 1st line shown: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/shell/Startup I counld not find the directory /shell from the server. Where the system get these directory ? Any help or info is appreciated. Thank you. Best Regards, Kennice _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Re: Apache started...
You are joking or you say seriously? If I can help you... I would be happy Tell me (exactly..) the list of the things that serve !!! R. - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 7:08 PM Subject: Re: Apache started... Roberto B. at [EMAIL PROTECTED] wrote: I have compiled successfully the mod_webapp. I downloaded the source in a temporary dir. I copied the mod_webapp in the lib directory of Apache and now.. that apache started.. can I delete the temporary dir?? Yeah, as soon as you send me the binary :) (Privately, attach it to a msg)... Can you also do an ldd /path/to/your/mod_webapp.so and send me that one too? Pier
Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
Hi, Simple question: I have a servlet package running using Tomcat 3.3m4 that is doing some very odd things. Tomcat is running using Apache/1.3.20 on FreeBSD 4.3-RELEASE on a x86. I am using a html form to change the name of a database entry given a certain entry ID. Problem has been diagnosed to a certain condition. If I enter more than a single word in the name box I get a nice ArrayOutOfBounds exception which get this, propagates through any running servlet if I don't do catch it at the end of my particular servlet. The weird part is that the error comes from the entry id being equal to null even though clearly it isn't (you can see it passed in the url field). Any help would be really great. Cheers, Naden
Why and How Tomcat before Apache?
I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Tomcat 4 doesn't start examples or webdav context
Hi, I installed tomcat-4.0b7 on mac OS X and used the default server.xml and web.xml When I start tomcat this is all I get: localhost# ./bin/startup.sh Using CLASSPATH: /usr/local/jakarta-tomcat-4.0/bin/bootstrap.jar Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0 When I point my browser to /examples this is the error message I get: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I included log file and found the following error: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) Can anyone tell me what is wrong here? I included the complete log file. Thanks, Willy Faes MediaTower [localhost:local/jakarta-tomcat-4.0/logs] root# cat localhost_examples_log.2001-08-17.txt 2001-08-17 11:12:46 WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/jakarta- tomcat-4.0/work/localhost/examples 2001-08-17 11:12:46 WebappLoader[/examples]: Reloading checks are enabled for this Context 2001-08-17 11:12:46 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2001-08-17 11:12:47 StandardManager[/examples]: Seeding of random number generator has been completed 2001-08-17 11:12:49 ContextConfig[/examples]: Configured an authenticator for method FORM 2001-08-17 11:12:50 ContextListener: contextInitialized() 2001-08-17 11:12:50 SessionListener: contextInitialized() 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1113) at org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:314) at org.apache.catalina.core.ApplicationFilterConfig.init (ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java: 3038) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3337) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:368) at org.apache.catalina.core.StandardServer.start(StandardServer.java:473) at org.apache.catalina.startup.Catalina.start(Catalina.java:738) at org.apache.catalina.startup.Catalina.execute(Catalina.java:657) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202) 2001-08-17 11:12:51 StandardContext[/examples]: Context startup failed due to previous errors
Re: Why and How Tomcat before Apache?
On 17 Aug 2001 11:50:22 +0200, Roberto B. wrote: I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? If you include the automatically generated files that tomcat creates in your apache conf, then you have to start tomcat, then apache. The shutdown order is irrelevant. If you do what's best for you (learn the configuration and do not use the automatically generated confs) then you just include a static file in your apache configuration, and will not need to restart apache when you restart tomcat. CAVEAT: tomcat 3.2.x has a bug in mod_jk: it is not ready for the disappearence of workers. as a result, if you restart tomcat, a new tcp connection will be done, but the old one will still be there and calls for servlets will cause an internal server error, untill the tcp connection is discarded due to a timeout, or something. As a result, even though you shouldn't need, you have to restart apache if you restart tomcat. I don't know about the 3.3.x or 4.x series. Hugs, rms -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...? PGP signature
Re: Why and How Tomcat before Apache?
I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. You can use it for servlets, too. :-) Is it true that it is necessary to make start Tomcat before Apache? Why?.. 1. Tomcat usually builds automatic configuration for including in Apache's httpd.conf. If nothing changed from the last time, then Apache can use the old generated file. Still it should make any admin feel uneasy. 2. Apache connects to Tomcat via plugin, mod_jserv (my case - Digital UNIX), mod_jk or mod_webapp. It is reasonable to assume that the other end should be up and running, when Apache loads that module. and if it is true.. how?? You have startup scripts which bring up most, if not all, of your daemons. Place Tomcat's startup commands there. On our Digital UNIX it is a collection of stratup/shutdown scripts in /sbin/init.d/ On Linux it should be /etc/rc* or something similar. Nix.
Posting data to a JSP kept residing in Tomcat
Hi, I am posting some data using HTTP to a JSP kept in the examples/jsp directory of Tomcat. The code of the JSP is as follows %@ page language=java import=java.io.* % % int len; final int blockSize=1024; byte buf[]=new byte[blockSize]; ServletInputStream sis=request.getInputStream(); FileOutputStream fos=new FileOutputStream(C:\\test.txt); while ((len=sis.read(buf, 0, blockSize))!=-1) { fos.write(buf, 0, len); } sis.close(); fos.close(); % But when some data is posted to the above JSP page instead of data being written to the file C:\test.txt only the file C:\test.txt gets created with zero bytes as the size. There is no problem with the JSP because the JSP runs fine when tested under Java Web Server 2.0. The file C:\test.txt is created with proper data. One more thing to note is that the data which is posted is captured in the log file jasper.log. Any pointers regarding what could be the problem?? Please reply to my id also TIA, [EMAIL PROTECTED]
Sending data to a servlet
Hi, I'm trying to open a connection to a servlet an exchange data with it. I have Apache 1.3.20 redirecting to Tomcat3.2.3 via mod_j but I've got several issue. i'm opening the connection by a java.net.Socket sending : GET /UBSSoap HTTP/1.1 Host:192.168.0.93:80 Content-type:text/xml MyAction:/Synchro messagesendermanu/sendercontenthello/content/message with apjv12 I just can't get a response from the server and I've a header parsing error in mod_jk.log with apjv13 I can't parse the incoming xml and I can send a message from the server to my client but it is followed by !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN HTMLHEAD TITLE400 Bad Request/TITLE /HEADBODY H1Bad Request/H1 Your browser sent a request that this server could not understand.P Invalid URI in request lt;SOAP-ENV:Envelope xmlns:SOAP-ENV='http://schemas.xmlsoap.org/soap/envelope/'gt;lt;SOAP-ENV:B odygt;lt;UserNamegt;Deadgreenlt;/UserNamegt;lt;Passwordgt;zgTlIdslV6x SYO4HCjwFiA==lt;/Passwordgt;lt;/SOAP-ENV:Bodygt;lt;/SOAP-ENV:Envelopeg t;P HR ADDRESSApache/1.3.20 Server at grosbill38 Port 80/ADDRESS /BODY/HTML /HTM If tomcat is running as a standalone server all is working fine. Where am I wrong ? Emmanuel
Re: Why and How Tomcat before Apache?
I use Tomcat 4.. where and which are the configuration file ? I use the the command startup.sh in the tomacat_home dir. to start Tomcat 4 Do I have to insert this command in rc* ? Roberto. - Original Message - From: Nikola Milutinovic [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 12:28 PM Subject: Re: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. You can use it for servlets, too. :-) Is it true that it is necessary to make start Tomcat before Apache? Why?.. 1. Tomcat usually builds automatic configuration for including in Apache's httpd.conf. If nothing changed from the last time, then Apache can use the old generated file. Still it should make any admin feel uneasy. 2. Apache connects to Tomcat via plugin, mod_jserv (my case - Digital UNIX), mod_jk or mod_webapp. It is reasonable to assume that the other end should be up and running, when Apache loads that module. and if it is true.. how?? You have startup scripts which bring up most, if not all, of your daemons. Place Tomcat's startup commands there. On our Digital UNIX it is a collection of stratup/shutdown scripts in /sbin/init.d/ On Linux it should be /etc/rc* or something similar. Nix.
YOUR OFFICE IN TURKEY
If you or your company would like to do business in Turkey, please read the following, if not, then sorry for the disturbance. This is a one time message. There will be no further messages. CAMPAIGN ONLY TO USD 100 YOU WILL HAVE AN OFFICE IN TURKEY FOR THE REMAINING OF THE YEAR 2001 The Manager, Our company SOS would like to do business with foreign companies in Turkey. · If you would like to enter or test the Turkish market, · If you want to learn about the Turkish market, · If you do not want to pay commissioning fees to representatives, · If you want to have an office in Turkey with incredibly low costs, · If you would like to work with someone who is at home in the Turkish market, · If you would like to be known by potential customers in Turkey YOU CAN START WITH US. It is worth a try. If you work with us; YOU CAN HAVE AN OFFICE IN TURKEY. Our organization will enable you to have an office in Turkey without actually purchasing or renting one, and without employing any personnel directly. We will provide both premises and highly skilled and qualified staff. Standard Office Service; USD 100 (starting from the beginning of the service till the end of this year) Following services will be rendered with this service type; Special Weekly Report ; together with you, SOS will determine the inclusive subjects of this report such as new investments, new tenders, new opportunities, status of money and your other requirements related to Turkey. Questions; within the agreement period up to a limited extent, SOS will reply to all of your questions related to your activities. Hotel and Car Reservations; If you require, SOS will make your hotel and car reservations. Also, SOS will provide special discounts at the hotels and car rental companies, which have an agreement with SOS. Message Forwarding; If a potential customer contacts us in Turkey, SOS will forward the messages to your company. For more information please send e-mail to [EMAIL PROTECTED] You can provide the Agreement for Standard Office Services and ask for the details. And Apart from the Standard Office Service, we also provide other services; please ask the prices from [EMAIL PROTECTED] Enquiry Service and Other Requirements You can ask at any time any kind of question related to Turkey. We will evaluate your question and advise you as to the price of our response. Also, for any kind of organization we are always at your disposal. Partial Office Service; For this service, SOS will employ part time, a very well educated engineer or other staff to carry out the work related to your activities throughout Turkey. This staff will use all the office facilities of SOS and prepare a weekly report especially for your company. Full Office Service; For this service, SOS will employ full time, a very well educated engineer or other staff to carry out the works related with your activities throughout Turkey. The staff will use all the office facilities of SOS and prepare a weekly report especially for your company. Marketing Service; Together with you, a marketing strategy will be developed and followed for a competitive marketing of your products and/or services. If required, other services could be introduced and developed together with you. For all your questions please contact us: [EMAIL PROTECTED] If you are considering having these services in Turkey, please request from the following address the Agreements for the Services in which you are interested. Postal address: SOS Standard Office Services Kore þehitleri Cad. Mithat Ünlü Sok. Koru apt., No.17, D: 3 Zincirlikuyu - Ýstanbul - Turkey Tel number: (90) 212.216 11 23 Fax number: (90) 212.356 43 06 E-mail address: [EMAIL PROTECTED] Web address:www.sosofis.com Yours faithfully, Yigit Ozkan CE, BU'88 [EMAIL PROTECTED]
RE: tomcat 3.2.3 apache 1.3.20 integartion problem in solaris 7
I believe there is a readme included with the distrbution? If not, check the documentation on the Jakarta Tomcat website. http://jakarta.apache.org/tomcat/index.html - r -Original Message- From: Chockalingam.S [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 12:34 AM To: [EMAIL PROTECTED] Subject: tomcat 3.2.3 apache 1.3.20 integartion problem in solaris 7 Hi, I got the source of jakarta-tomcat 3.2.3 (Solaris), could you pls help me to compile the mod_jk.so. What are the steps to be followed, We need to integrate tomcat3.2.2 apache 1.3.20. thanks in advance bye chocks
RE: problem in loading jar files in WEB-INF\lib directory
Sounds like you could learn a lot from reading the Application Developer's Guide that comes packaged with tomcat in the /doc directory. It's also available online at: http://jakarta.apache.org/tomcat/index.html - r -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:14 AM To: [EMAIL PROTECTED] Subject: problem in loading jar files in WEB-INF\lib directory Hi, I am trying to run my application on APACHE with TOMCAT servlet engine. I have placed the jar files required for web application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up this jar file? Or do I need to add them manually in tomcat.bat? Further, do I need to add myapp\WEB-INF\classes in the classpath? Who takes care of the classes in this folder? greetings Paresh
RE: More understanding on startup.sh and shutdown.sh
export CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper.jar ---end of profile--- Is there any error on the setting ? There should be nothing tomcat-internal-related in your CLASSPATH. Tomcat sets the CLASSPATH for you, by automatically adding all of the jars from your $TOMCAT_HOME/lib directory to your CLASSPATH. - r
RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
Can you paste the stack trace? - r -Original Message- From: Naden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:17 AM To: [EMAIL PROTECTED] Subject: Odd Tomcat Behaviour [ArrayOutOfBounds Exception] Hi, Simple question: I have a servlet package running using Tomcat 3.3m4 that is doing some very odd things. Tomcat is running using Apache/1.3.20 on FreeBSD 4.3-RELEASE on a x86. I am using a html form to change the name of a database entry given a certain entry ID. Problem has been diagnosed to a certain condition. If I enter more than a single word in the name box I get a nice ArrayOutOfBounds exception which get this, propagates through any running servlet if I don't do catch it at the end of my particular servlet. The weird part is that the error comes from the entry id being equal to null even though clearly it isn't (you can see it passed in the url field). Any help would be really great. Cheers, Naden
RE: solaris mod_jk
Just an FYI. For Tomcat 3.3 source downloads, the xxx.zip file will contain source files which contain CRLF's. The xxx.tar.gz is the identical content, but with source files containing just LF's. Download the one that works best for your system. Larry -Original Message- From: John Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 9:15 PM To: [EMAIL PROTECTED] Subject: RE: solaris mod_jk Thanks Bryan, I finally found it in jakarta-tomcat-3.3-b1-src.zip after looking through every other package. Regards- John At 05:25 PM 8/16/01 -0700, you wrote: John, Someone else noticed that too!! I thought I was exceptionally dumb, since almost nothing worked like the documentation said. As it turns out, the docs seem to be an obstacle course. I spent sooo many hours trying to figure that out. I ended up downloading every single tomcat until I found one that would work. ok, I've just been looking at my Sol7 system to see what I can show you, and guess what? I cleaned up every dist. except one tomcat, and it isn't the tomcat that I actually got the mod_jk.so from. So, I want to help you, but i've already covered my tracks. However, there is a dist that has it in it, it's sort of like hidden prize, you have to search a bunch of packages until you find where it's hiding. One hint though, try downloading only .tar.gz files, and stay away from the zip ones, I downloaded everything, and they seem to be different. One of the developers also told me to download .tar.gz too for some reason. What I think i did, is download the source, and look for afile called solaris.sh or something like that.(i used a lot of find commands) It's in a folder with lots of other build scripts. If you run it, with some modification, it should produce a mod_jk.so for you. Then you can go back to the other dist(not-src), after you put mod_jk.so in your apache/libexec dir, and start apache, go to tomcat/bin and run tomcat.sh start and it might start. also make sure you include the correct conf file in apache. if you are not using any jserv, use mod_jk.conf-auto and rename it to mod_jk.conf-local or something, because tomcat creates its' conf files on every start, so if you change it, and then restart, you'll be in trouble. yeah, so uh, have fun. I'll check the list tomorrow , hope this has been humorous, if not a little helpful. Bryan -Original Message- From: John Miller [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 5:11 PM To: [EMAIL PROTECTED] Subject: solaris mod_jk Hi, I've been trying to make a build of mod_jk for solaris 2.6 however the instructions at http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto. html#s4 appear to be very wrong. I downloaded the source but there is no /native/mod_jk directory. Any help would be much appreciated. Thanks, John
RE: problem in loading jar files in WEB-INF\lib directory
Hi Rob, thanks for your reply, Rob. I was waiting for the reply for quite a while :)). It is not specifically mentioned in the docs how the class files in WEB-INF\classes are loaded. Neither is it mentioned whether the jar file in the WEB-APP\lib folder will be automatically picked in classpath. If I do not provide anything (jar or WEB-INF\classes) from my web application folder, kind of strange problem occurs in which the servlets get loaded from WEB-INF\classes directory, but when I try to cast a particular resource from JNDI to my class ( placed in the same WEB-INF\classes folder), I get class cast exception error. Tomcat does not find the class. How can I solve this problem? paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: RE: problem in loading jar files in WEB-INF\lib directory Sounds like you could learn a lot from reading the Application Developer's Guide that comes packaged with tomcat in the /doc directory. It's also available online at: http://jakarta.apache.org/tomcat/index.html - r -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:14 AM To: [EMAIL PROTECTED] Subject: problem in loading jar files in WEB-INF\lib directory Hi, I am trying to run my application on APACHE with TOMCAT servlet engine. I have placed the jar files required for web application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up this jar file? Or do I need to add them manually in tomcat.bat? Further, do I need to add myapp\WEB-INF\classes in the classpath? Who takes care of the classes in this folder? greetings Paresh
RE: More understanding on startup.sh and shutdown.sh
Hi Kennice, $TOMCAT_HOME/webapps/ROOT/WEB-INF/classes shouldn't be in your CLASSPATH since it is part of a web application. If it is there to get something to work, what goes wrong when it isn't there. Larry -Original Message- From: Kennice Low [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 2:32 AM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: RE: More understanding on startup.sh and shutdown.sh Hi Rob, Thank you for your helps. when you do set | grep TOMCAT_HOME you should get something like this: TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 Have you set the TOMCAT_HOME and JAVA_HOME environment variables? The error you're getting seems to be that the server's jar file isn't in the CLASSPATH (which Tomcat sets for you). here is my setting of profile. -- -- . /home/pseudo/profile alias ls='ls -l' alias la='ls -a' export PS1=\w . .java #export JAVA_HOME=/local/pkg/jdk/1.3 export TOMCAT_HOME=/var/jakarta-tomcat-3.2.2 export MYSQL_HOME=/usr/local/mysql-3.23.39-pc-linux-gnu-i686 export BIN=/usr/bin export APACHE=/etc/init.d export PATH=$JAVA_HOME/bin:$MYSQL_HOME/bin:$TOMCAT_HOME:$BIN:$APACHE:$PATH export CLASSPATH=$TOMCAT_HOME/lib/servlet.jar:$TOMCAT_HOME/lib/jasper .jar:$TOMCAT_HOME/lib/webserver.jar:$TOMCAT_HOME/webapps/ROOT/ WEB-INF/classes:$TOMCAT_HOME/lib/mm.m ysql-2.0.6.jar:$TOMCAT_HOME/conn ---end of profile--- Is there any error on the setting ? Thank you :-) regards Kennice From: Rob S. [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: RE: More understanding on startup.sh and shutdown.sh Date: Thu, 16 Aug 2001 07:16:09 -0400 Hiya Ken, Have you set the TOMCAT_HOME and JAVA_HOME environment variables? The error you're getting seems to be that the server's jar file isn't in the CLASSPATH (which Tomcat sets for you). I can only think that you've improperly set TOMCAT_HOME. when you do set | grep TOMCAT_HOME you should get something like this: TOMCAT_HOME=/usr/local/tomcat where that is the root of your tomcat installation. Make sure that's set correctly and let us know what happens... - r -Original Message- From: Kennice Low [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 16, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: More understanding on startup.sh and shutdown.sh Hi, I am using Linux o/s. I am very new to tomcat. Can anyone enlightened me on the starting and stopping of Tomcat ? Here is my startup.sh and shutdown.sh startup.sh: -- -- BASEDIR=`dirname $0` $BASEDIR/tomcat.sh start $@ -end-- -- shutdown.sh: -- -- BASEDIR=`dirname $0` $BASEDIR/tomcat.sh stop $@ ---end - Here is my questions : 1)What is $BASEDIR ? 2)Whenever I run startup.sh or shutdown.sh, the 1st line shown: Exception in thread main java.lang.NoClassDefFoundError: org/apache/tomcat/shell/Startup I counld not find the directory /shell from the server. Where the system get these directory ? Any help or info is appreciated. Thank you. Best Regards, Kennice _ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Fwd: REMOTE_HOST not showing up in Tomcat3.2
Hello, Is there something I have to configure in mod_jk to get the remote host information to resolve. Its apparently available in Apache but seems to not show up in Tomcat when I do request.getRemoteHost(). How, is this setup / configured? thank you, Mark Diggory
web.xml
Hi ! How can I set more than 1 context-parameter in the WEB.XML file. I do this: context-param param-nameserverIp/param-name param-value192.168.2.3/param-value descriptionMT web application/description param-namejobType_1/param-name param-value01./param-value descriptionMT web application/description /context-param , but when I ask this parameter's value's in JSP I get NULL ! If I use only one context-parameter no problem Anybody can help me?
Re: problem in loading jar files in WEB-INF\lib directory
Hiya, Did you read the appdev guide? I believe it discusses the significance of the WEB-INF folder, among other things. - r On Fri, 17 Aug 2001 17:19:12 +0530 [EMAIL PROTECTED] wrote: Hi Rob, thanks for your reply, Rob. I was waiting for the reply for quite a while :)). It is not specifically mentioned in the docs how the class files in WEB-INF\classes are loaded. Neither is it mentioned whether the jar file in the WEB-APP\lib folder will be automatically picked in classpath. If I do not provide anything (jar or WEB-INF\classes) from my web application folder, kind of strange problem occurs in which the servlets get loaded from WEB-INF\classes directory, but when I try to cast a particular resource from JNDI to my class ( placed in the same WEB-INF\classes folder), I get class cast exception error. Tomcat does not find the class. How can I solve this problem? paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: RE: problem in loading jar files in WEB-INF\lib directory Sounds like you could learn a lot from reading the Application Developer's Guide that comes packaged with tomcat in the /doc directory. It's also available online at: http://jakarta.apache.org/tomcat/index.html - r -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:14 AM To: [EMAIL PROTECTED] Subject: problem in loading jar files in WEB-INF\lib directory Hi, I am trying to run my application on APACHE with TOMCAT servlet engine. I have placed the jar files required for web application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up this jar file? Or do I need to add them manually in tomcat.bat? Further, do I need to add myapp\WEB-INF\classes in the classpath? Who takes care of the classes in this folder? greetings Paresh
Re: web.xml
try context-param param-nameserverIp/param-name param-value192.168.2.3/param-value descriptionMT web application/description /context-param context-param param-namejobType_1/param-name param-value01./param-value descriptionMT web application/description /context-param instead. cheesr dim
Re: Tomcat port 8080, Apache port 80, jsp?
No error messages in the Apche or tomcat logs - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 5:29 PM Subject: Re: Tomcat port 8080, Apache port 80, jsp? Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written by you, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Nothing in your error_log? That's pretty weird... What about starting it from the console? Pier
Re: Why and How Tomcat before Apache?
I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
RE: problem in loading jar files in WEB-INF\lib directory
thanks Rob, got the particular information : When you install an application into Tomcat (or any other 2.2-compatible server), the classes in the WEB-INF/classes/ directory, as well as all classes in JAR files found in the WEB-INF/lib/ directory, are added to the class path for your particular web application. Thus, if you include all of the required library classes in one of these places (be sure to check licenses for redistribution rights for any third party libraries you utilize), you will simplify the installation of your web application -- no adjustment to the system class path will be necessary. Then, the only question remaining is classes in my jar file are not being loaded for some reason. While loading the servlet, somewhere midway, the classes in WEB-INF\lib directory are not being loaded. strange isn't it? regards Paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:35 PM To: [EMAIL PROTECTED] Subject: Re: problem in loading jar files in WEB-INF\lib directory Hiya, Did you read the appdev guide? I believe it discusses the significance of the WEB-INF folder, among other things. - r On Fri, 17 Aug 2001 17:19:12 +0530 [EMAIL PROTECTED] wrote: Hi Rob, thanks for your reply, Rob. I was waiting for the reply for quite a while :)). It is not specifically mentioned in the docs how the class files in WEB-INF\classes are loaded. Neither is it mentioned whether the jar file in the WEB-APP\lib folder will be automatically picked in classpath. If I do not provide anything (jar or WEB-INF\classes) from my web application folder, kind of strange problem occurs in which the servlets get loaded from WEB-INF\classes directory, but when I try to cast a particular resource from JNDI to my class ( placed in the same WEB-INF\classes folder), I get class cast exception error. Tomcat does not find the class. How can I solve this problem? paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:00 PM To: [EMAIL PROTECTED] Subject: RE: problem in loading jar files in WEB-INF\lib directory Sounds like you could learn a lot from reading the Application Developer's Guide that comes packaged with tomcat in the /doc directory. It's also available online at: http://jakarta.apache.org/tomcat/index.html - r -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:14 AM To: [EMAIL PROTECTED] Subject: problem in loading jar files in WEB-INF\lib directory Hi, I am trying to run my application on APACHE with TOMCAT servlet engine. I have placed the jar files required for web application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up this jar file? Or do I need to add them manually in tomcat.bat? Further, do I need to add myapp\WEB-INF\classes in the classpath? Who takes care of the classes in this folder? greetings Paresh
RE: How can I find number of 'open files'
There is a profiler available for the jdk which spits out a nice overview of all the instances of classes that are used.. Maby that can help you check the correctnes of the code and see the bottlenecks (it also says how much memory it uses..).. Just saw a report on that one day, so you have to check java.sun.com for more details.. Mvgr, martin -Original Message- From: Ivan Markovic [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:39 AM To: [EMAIL PROTECTED] Subject: How can I find number of 'open files' Importance: High I had a problem a while back with 'too many open files'. So I checked and fix some bugs in my code and increased the limit (Solaris running on Sun Netra T1). But now the problem is back. I suspect it is a problem with my code. How can I find out how many files are 'open'? If I can track that number then I can hit my code through Tomcat and see roughly when the files are not being closed. Is there some Unix function that will allow me to monitor open files? Below is the kind of error that I see thank you. java.net.SocketException: Too many open files at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:421) at java.net.ServerSocket.implAccept(ServerSocket.java:243) at java.net.ServerSocket.accept(ServerSocket.java:222) at org.apache.tomcat.service.PoolTcpEndpoint.acceptSocket(PoolTcpEndp oint.java:277) at org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:344) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411) at java.lang.Thread.run(Thread.java:484) Endpoint ServerSocket[addr=0.0.0.0/0.0.0.0,port=0,localport=8007] shutdown due to exception: java.net.SocketException: Too many open files -- Ivan Markovic SculptLight http://www.sculptlight.com (+353) 87 2939256 (+353) 1 2982205 114 Lower Churchtown Rd, Dublin 14, Ireland.
Tomcat Tutorial Please!!!
Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
RE: Why and How Tomcat before Apache?
this is for tomcat 3.3 : Start tomcat first so requests, so tomcat has the time to fire up. Then start apache and serving request will be ok right away. For production servers I restart them both anyway, but for development : just restart tomcat when you need it and don't look at apache.. This is the way it works for me ... Mvgr, Martin -Original Message- From: Roberto B. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:50 AM To: [EMAIL PROTECTED] Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Re: Tomcat Tutorial Please!!!
What do you want information on in particular, since the Tomcat docs which come with it are pretty comprehensive.. Alex - Original Message - From: Jagadish Gopi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 2:49 PM Subject: Tomcat Tutorial Please!!! Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception]
I thought this was fixed in the cvs version of tomcat (don't know if it made 3.3 b1.. (I was having a lot of these messages too, but after the fix everything was ok.. (don't know the stacktrace, but it looks the same). Mvgr, Martin -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:36 PM To: [EMAIL PROTECTED] Subject: RE: Odd Tomcat Behaviour [ArrayOutOfBounds Exception] Can you paste the stack trace? - r -Original Message- From: Naden [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:17 AM To: [EMAIL PROTECTED] Subject: Odd Tomcat Behaviour [ArrayOutOfBounds Exception] Hi, Simple question: I have a servlet package running using Tomcat 3.3m4 that is doing some very odd things. Tomcat is running using Apache/1.3.20 on FreeBSD 4.3-RELEASE on a x86. I am using a html form to change the name of a database entry given a certain entry ID. Problem has been diagnosed to a certain condition. If I enter more than a single word in the name box I get a nice ArrayOutOfBounds exception which get this, propagates through any running servlet if I don't do catch it at the end of my particular servlet. The weird part is that the error comes from the entry id being equal to null even though clearly it isn't (you can see it passed in the url field). Any help would be really great. Cheers, Naden
RE: REMOTE_HOST not showing up in Tomcat3.2
It should return an ip address if the host is not found.. so if you don't have a connection to the internet, the host lookup fails (taking quite a long time I must add) and will show the ip address. (at least that is working for me like that..) Mvgr, Martin -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2 Hello, Is there something I have to configure in mod_jk to get the remote host information to resolve. Its apparently available in Apache but seems to not show up in Tomcat when I do request.getRemoteHost(). How, is this setup / configured? thank you, Mark Diggory
Re: problem in loading jar files in WEB-INF\lib directory
Then, the only question remaining is classes in my jar file are not being loaded for some reason. While loading the servlet, somewhere midway, the classes in WEB-INF\lib directory are not being loaded. strange isn't it? How do you know the classes are not being loaded? What kind of error message are you getting? Help me help you =) - r
Re: Tomcat Tutorial Please!!!
What *specifically* do you feel you aren't getting? This way, I can try to accomodate you by putting it in. - r On Fri, 17 Aug 2001 09:49:39 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
RE: problem in loading jar files in WEB-INF\lib directory
hey rob, my servlet calls a class which tries to instantiate JNDI's InitialContext by passing env Hashtable... env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); initialContext = new InitialContext(env); the class com.sun.jndi.fscontext.RefFSContextFactory is available in the jar file in my WEB-INF\lib folder. And the error that I get while loading the servlet is getInitialContext:exception: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] getInitialContext:More Details: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory You really are onto helping me, aren't you? if you could solve this one, I owe you a mug of beer, when you come donw to Bangalore... paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: Re: problem in loading jar files in WEB-INF\lib directory Then, the only question remaining is classes in my jar file are not being loaded for some reason. While loading the servlet, somewhere midway, the classes in WEB-INF\lib directory are not being loaded. strange isn't it? How do you know the classes are not being loaded? What kind of error message are you getting? Help me help you =) - r
RE: Tomcat Tutorial Please!!!
Hi Friends, Thanx for replying Friends. I am new to this tomcat. Let me ask you few things.. 1) Is encodeURL supported in tomcat. 2) How are sessions maintained. (I am using Tomcat 3.2) 3) If I am using only tomcat without webserver, How do I make it accessible from the 'World'(net). what all settings needs to be done. 4) Is connection pools supported in tomcat just like weblogic. How do we go about this. 5) Can I make tomcat to listen on port 80 I know tomcat is really an interesting stuff and that's why I want to learn it at any cost, I hope you people will help me in this. Jags -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Tutorial Please!!! What *specifically* do you feel you aren't getting? This way, I can try to accomodate you by putting it in. - r On Fri, 17 Aug 2001 09:49:39 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
Re: problem in loading jar files in WEB-INF\lib directory
Alright my friend, I'm about to make your day. There's a but with the JNDI classloader in that it doesn't delegate to its parent classloader the task of loaded the intial context factory. This means that, while the web-app classloader knows where your class is, the JNDI one DOESN'T and isn't asking for any help! Put this in your pipe and smoke it: Keeps throwing a ClassNotFoundException when it tries to load my context factory. Turns out that the JNDI classloader is broken and you need to install your own builder. You can read the docs for more info, also check out this code snippet: NamingManager.setInitialContextFactoryBuilder( new InitialContextFactoryBuilder() { public InitialContextFactory createInitialContextFactory( Hashtable environment ) throws NamingException { try { // Since we're the only ones using this, we can really disregard the Hashtable. return( (InitialContextFactory) ((Class.forName(com.sun.jndi.nis.NISCtxFactory)).newInstance()) ); } catch(InstantiationException e) { NISUtils.cat.fatal(Unable to instantiate the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } catch(IllegalAccessException e) { NISUtils.cat.fatal(Unable to access the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } catch(ClassNotFoundException e) { NISUtils.cat.fatal(Unable to find the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } } }); Enjoy! - r On Fri, 17 Aug 2001 19:48:55 +0530 [EMAIL PROTECTED] wrote: hey rob, my servlet calls a class which tries to instantiate JNDI's InitialContext by passing env Hashtable... env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); initialContext = new InitialContext(env); the class com.sun.jndi.fscontext.RefFSContextFactory is available in the jar file in my WEB-INF\lib folder. And the error that I get while loading the servlet is getInitialContext:exception: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] getInitialContext:More Details: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory You really are onto helping me, aren't you? if you could solve this one, I owe you a mug of beer, when you come donw to Bangalore... paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: Re: problem in loading jar files in WEB-INF\lib directory Then, the only question remaining is classes in my jar file are not being loaded for some reason. While loading the servlet, somewhere midway, the classes in WEB-INF\lib directory are not being loaded. strange isn't it? How do you know the classes are not being loaded? What kind of error message are you getting? Help me help you =) - r
Re: Tomcat Tutorial Please!!!
http://jakarta.apache.org/tomcat/index.html has all the answers you seek my friend. - r On Fri, 17 Aug 2001 10:20:50 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Thanx for replying Friends. I am new to this tomcat. Let me ask you few things.. 1) Is encodeURL supported in tomcat. 2) How are sessions maintained. (I am using Tomcat 3.2) 3) If I am using only tomcat without webserver, How do I make it accessible from the 'World'(net). what all settings needs to be done. 4) Is connection pools supported in tomcat just like weblogic. How do we go about this. 5) Can I make tomcat to listen on port 80 I know tomcat is really an interesting stuff and that's why I want to learn it at any cost, I hope you people will help me in this. Jags -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Tutorial Please!!! What *specifically* do you feel you aren't getting? This way, I can try to accomodate you by putting it in. - r On Fri, 17 Aug 2001 09:49:39 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
Re: problem in loading jar files in WEB-INF\lib directory
Ugh, mispellings and whatnot aside =) each time I come across a little gotcha like that, I email it to myself and stick it in my Wacky Java Experiences folder. That code snippet is the result of searching the mailing list archives and the java.sun.com forums and some other places I probably can't remember. Anyway, yeah, it should do the trick for you! - r On Fri, 17 Aug 2001 7:23:50 PDT [EMAIL PROTECTED] wrote: Alright my friend, I'm about to make your day. There's a but with the JNDI classloader in that it doesn't delegate to its parent classloader the task of loaded the intial context factory. This means that, while the web-app classloader knows where your class is, the JNDI one DOESN'T and isn't asking for any help! Put this in your pipe and smoke it: Keeps throwing a ClassNotFoundException when it tries to load my context factory. Turns out that the JNDI classloader is broken and you need to install your own builder. You can read the docs for more info, also check out this code snippet: NamingManager.setInitialContextFactoryBuilder( new InitialContextFactoryBuilder() { public InitialContextFactory createInitialContextFactory( Hashtable environment ) throws NamingException { try { // Since we're the only ones using this, we can really disregard the Hashtable. return( (InitialContextFactory) ((Class.forName(com.sun.jndi.nis.NISCtxFactory)).newInstance()) ); } catch(InstantiationException e) { NISUtils.cat.fatal(Unable to instantiate the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } catch(IllegalAccessException e) { NISUtils.cat.fatal(Unable to access the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } catch(ClassNotFoundException e) { NISUtils.cat.fatal(Unable to find the JNDI NIS factory, message [+e.getMessage()+]); throw new NamingException(e.getMessage()); } } }); Enjoy! - r On Fri, 17 Aug 2001 19:48:55 +0530 [EMAIL PROTECTED] wrote: hey rob, my servlet calls a class which tries to instantiate JNDI's InitialContext by passing env Hashtable... env.put(Context.INITIAL_CONTEXT_FACTORY, com.sun.jndi.fscontext.RefFSContextFactory); initialContext = new InitialContext(env); the class com.sun.jndi.fscontext.RefFSContextFactory is available in the jar file in my WEB-INF\lib folder. And the error that I get while loading the servlet is getInitialContext:exception: javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] getInitialContext:More Details: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory You really are onto helping me, aren't you? if you could solve this one, I owe you a mug of beer, when you come donw to Bangalore... paresh -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 7:34 PM To: [EMAIL PROTECTED] Subject: Re: problem in loading jar files in WEB-INF\lib directory Then, the only question remaining is classes in my jar file are not being loaded for some reason. While loading the servlet, somewhere midway, the classes in WEB-INF\lib directory are not being loaded. strange isn't it? How do you know the classes are not being loaded? What kind of error message are you getting? Help me help you =) - r
Re: Why and How Tomcat before Apache?
Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Re: Why and How Tomcat before Apache?
How do i make something automatically startup in *nix? This is more of a *nix question than a Tomcat question, really. You're better off searching the Internet or reading your *nix admin book. - r On Fri, 17 Aug 2001 16:43:41 +0200 [EMAIL PROTECTED] wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat.But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Re: Why and How Tomcat before Apache?
Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Using JDBCRealm without COOKIES enabled
Hi Can anyone please tell me how to use JDBCRealm without COOKIES enabled but using URL SESSION. I had a problem try and I receive these messages: 2001-08-17 11:46:17 - ContextManager: Before Body 8z2331xuk2 2001-08-17 11:46:25 - ContextManager: AccessInterceptor: checking /jsp/security/login/j_security_check 2001-08-17 11:46:25 - Ctx( /PT ): From login without a session It is possible? Thanks Zattar
Re: REMOTE_HOST not showing up in Tomcat3.2
It's a known bug. See http://nagoya.apache.org/bugzilla/show_bug.cgi?id=208. dwh -Original Message- From: Mark Diggory [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:06 PM To: [EMAIL PROTECTED] Subject: Fwd: REMOTE_HOST not showing up in Tomcat3.2 Hello, Is there something I have to configure in mod_jk to get the remote host information to resolve. Its apparently available in Apache but seems to not show up in Tomcat when I do request.getRemoteHost(). How, is this setup / configured?
RE: Why and How Tomcat before Apache?
I will see if I can find time this weekend to throw together a simple example / manual.. You seem to know Debian, so you can change that accordingly.. I'll send it to you when I'm done.. (maby someone can add the solaris part and maby other linux disto's..) nice for a tomcat-unix howto or something? Mvgr, Martin -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:48 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? How do i make something automatically startup in *nix? This is more of a *nix question than a Tomcat question, really. You're better off searching the Internet or reading your *nix admin book. - r On Fri, 17 Aug 2001 16:43:41 +0200 [EMAIL PROTECTED] wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Re: Why and How Tomcat before Apache?
unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Help Starting [Tomcat 3.2.2 Solaris] with Apache
I am still having trouble starting tomcat and apche together. Sometimes the connector will start and sometimes it won't. To start I include a copy of the tomcat- auto file that I renamed in httpd.conf. I have this at the last line of my file Include /opt/pokemon/bin/col_bin/tomcat/tomcat35_322/conf/tomcat-mod_jk-apache.conf I have this in the file tomcat-mod_jk-apache.conf ( along with othere stuff) # # Root context mounts for Tomcat # JkMount /*.jsp ajp13 JkMount /servlet/* ajp13 JkMount /buy/* ajp13 JkMount /olympics/* ajp13 JkMount /sloc2002/* ajp13 JkMount /maintenance/* ajp13 JkMount /xml/* ajp13 This is from my server.xml file ContextManager debug=0 workDir=work !-- ContextInterceptor className=org.apache.tomcat.context.LogEvents / -- ContextInterceptor className=org.apache.tomcat.context.AutoSetup / ContextInterceptor className=org.apache.tomcat.context.DefaultCMSetter / ContextInterceptor className=org.apache.tomcat.context.WorkDirInterceptor / ContextInterceptor className=org.apache.tomcat.context.WebXmlReader / ContextInterceptor className=org.apache.tomcat.context.LoadOnStartupInterceptor / !-- Request processing -- RequestInterceptor className=org.apache.tomcat.request.SimpleMapper debug=0 / RequestInterceptor className=org.apache.tomcat.request.SessionInterceptor / RequestInterceptor className=org.apache.tomcat.request.SecurityCheck / RequestInterceptor className=org.apache.tomcat.request.FixHeaders / Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/ Parameter name=port value=8007/ Parameter name=max_threads value=500/ Parameter name=max_spare_threads value=200/ Parameter name=min_spare_threads value=100 / /Connector Connector className=org.apache.tomcat.service.PoolTcpConnector Parameter name=handler value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/ Parameter name=port value=8009/ Parameter name=max_threads value=500/ Parameter name=max_spare_threads value=200/ Parameter name=min_spare_threads value=100 / /Connector Context path= docBase=../../../../src/public_html debug=0 reloadable=true /Context /ContextManager If I do a netstat -a sometimes 8007 starts sometimes it doesn't but I haven't had success with 8009 started. I try to hit my servlet and I get this in my mod_jk.log [jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed errno = 146 [jk_ajp13_worker.c (586)]: Error connecting to the Tomcat process. Any help would greatly be appreciated. Thanks
RE: Why and How Tomcat before Apache?
Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Tomcat 3.2.3 and IIS5
I just wanted to post a followup to my previous question. I have followed the Tomcat + IIS howto on posted on the tomcat site exactly (as I previously stated). This time I attempted it on a clean Win2000 box with no service packs, I used JDK 1.3.1, tomcat 3.2.3 and the isapi_redirect.dll. It does not work. All I want to do is hit http://localhost/examples/jsp/index.html (as it says I should be able to in the tomcat iss how to) but it does not find the page, in addition I recieve this error: [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters I would Also, My registry is correct, My redirect filter is green and everything has been followed specifically according to the how to. Is something wrong with the redirect.dll?? Or is maybe something not right with my workers.properties or uriworkermap.properties??? I'm at a loss, has anybody actually integreted Tomcat 3.2.3 with IIS5 on Win2K??? Any help would be greatly appreciated. Jack
JDBCRealm and SimpleRealm conflicts
I've got a RequestIntercepter and JDBCRealm setup in Tomcat. I've noticed that I need to comment out the SimpleRealm intercepter in order for this to work but I'm not sure why. My application is going to be a commercial app that I will distribute to customers and I am concerned that a customer might be using the SimpleRealm intercepter for another webapp they have and that they won't be able to comment it out. Can anyone explain why these two conflict or what I could do? Thanks, chris
Re: Why and How Tomcat before Apache?
Ah what the hell try this ... ( works for me !) Watch out for the line wraps ! - 8 -- snip #!/bin/sh # Init file for Jakarta Tomcat # # chkconfig: 345 98 00 # description: Jakarta tomcat daemon # # processname: # config: /usr/local/tomcat/conf/server.xml RETVAL=0 TOMCAT_HOME=/usr/local/tomcat export TOMCAT_HOME case $1 in start) F=`$0 status` if [ $? = 255 ] ; then echo -n Starting Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin; $TOMCAT_HOME/bin/startup.sh $TOMCAT_HOME/logs/tomcat_stdout.log 2 $TOMCAT_HOME/logs/tomcat_stderr.log echo [ OK ] else echo Tomcat is already running fi echo ;; stop) F=`$0 status` if [ $? = 255 ] ; then echo Tomcat isn't running else echo -n Shutting down Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin ; $TOMCAT_HOME/bin/shutdown.sh $TOMCAT_HOME/logs/tomcat_down_stdout.log 2 $TOMCAT_HOME/logs/tomcat_down_stderr.log echo [ OK ] fi echo ;; restart) $0 stop sleep 2 $0 start RETVAL=$? ;; status) S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l` E=`expr $S` if [ $E = 0 ] ;then echo Tomcat is stopped RETVAL=-1 else PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | awk '{FS= }{print $2}'` P=`echo $PIDS` echo Tomcat ( $P ) is running RETVAL=0 fi ;; *) echo Usage: tomcat {start|stop|restart|status} exit 1 esac exit $RETVAL - 8 -- snip David Cassidy wrote: unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Why and How Tomcat before Apache?
check out if you can do a rm -rf * from within java... Don't know if you can, don't know how well the JVM will protect you but I run mine as a different user. Do you run your apache as root ? David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Why and How Tomcat before Apache?
Perfect!! R. - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Rob S. [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:54 PM Subject: RE: Why and How Tomcat before Apache? I will see if I can find time this weekend to throw together a simple example / manual.. You seem to know Debian, so you can change that accordingly.. I'll send it to you when I'm done.. (maby someone can add the solaris part and maby other linux disto's..) nice for a tomcat-unix howto or something? Mvgr, Martin -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 4:48 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? How do i make something automatically startup in *nix? This is more of a *nix question than a Tomcat question, really. You're better off searching the Internet or reading your *nix admin book. - r On Fri, 17 Aug 2001 16:43:41 +0200 [EMAIL PROTECTED] wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto.
Cookies and IE5.5
I am trying to set a cookie that can be picked up from a different server to the one setting it. They both belong to the same domain (daves.domain.com and daves2.domain.com). The first server sets the cookie and redirects to the second server where the cookie is read. On IE5.5 and above the cookie does not get set, but it works fine for IE5 and Mozilla. Is this a bug with later versions of IE or am I doing something wrong. This is the code: Cookie c = new Cookie(User, DAVE); c.setDomain(domain.com); c.setPath(/servlet/LogonServlet); c.setMaxAge(60); c.setVersion(1); resp.addCookie(c); resp.sendRedirect (redirect_url) ; Dave. [EMAIL PROTECTED]
RE: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Isn't the .so file only for unix. You need mod_webapp.dll Dave -Original Message- From: Shawn Evans [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 15:12 To: [EMAIL PROTECTED] Subject: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1 I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
Context does not initialise
Sorry that I rephrase my question but I still have the same problem. I installed Tomcat-4.0B7 without a problem. But when I start tomcat it seems that only the http server starts. When I click on the examples it gives the following error: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I found following error in the logs but I don't understand what it means: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) Thanks for your help, Willy Faes MediaTower
Re: How can I find number of 'open files'
Ivan Markovic at [EMAIL PROTECTED] wrote: I had a problem a while back with 'too many open files'. So I checked and fix some bugs in my code and increased the limit (Solaris running on Sun Netra T1). But now the problem is back. I suspect it is a problem with my code. How can I find out how many files are 'open'? If I can track that number then I can hit my code through Tomcat and see roughly when the files are not being closed. Is there some Unix function that will allow me to monitor open files? Just a curiosity... What Tomcat version are you using? Pier
Tomcat before Apache
I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 I want to start automatically Tomcat before Apache. I made this things : 1) I created this script named tomcat: #! /bin/sh TOMCAT_HOME=/usr/tomcat4b6 # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo Tomcat not found exit fi case $1 in start) # Start service $TOMCAT_HOME/bin/startup.sh echo -ne Tomcat started \n ;; stop) $TOMCAT_HOME/bin/shutdown.sh ;; esac 2) I insert this script in dir /etc/init.d 3) chmod u+x tomcat 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this command (because i have @S91apache): ln -s ../init.d/tomcat S90tomcat 5) I rebooted the system and this is the result: : : etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory apache started : Why?? Roberto
RE: Cookies and IE5.5
If it returns null, then I read something about that this week.. Maby searching on of the archives for cookies helps you find the problem / solution... Also tomcat version could be important and the exception (if any..) Mvgr, Martin -Original Message- From: David Oxley [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:28 PM To: '[EMAIL PROTECTED]' Subject: Cookies and IE5.5 I am trying to set a cookie that can be picked up from a different server to the one setting it. They both belong to the same domain (daves.domain.com and daves2.domain.com). The first server sets the cookie and redirects to the second server where the cookie is read. On IE5.5 and above the cookie does not get set, but it works fine for IE5 and Mozilla. Is this a bug with later versions of IE or am I doing something wrong. This is the code: Cookie c = new Cookie(User, DAVE); c.setDomain(domain.com); c.setPath(/servlet/LogonServlet); c.setMaxAge(60); c.setVersion(1); resp.addCookie(c); resp.sendRedirect (redirect_url) ; Dave. [EMAIL PROTECTED]
Re: Why and How Tomcat before Apache?
Yes.. as root! R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:08 PM Subject: Re: Why and How Tomcat before Apache? check out if you can do a rm -rf * from within java... Don't know if you can, don't know how well the JVM will protect you but I run mine as a different user. Do you run your apache as root ? David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Why and How Tomcat before Apache?
On 17 Aug 2001 17:18:15 +0200, Roberto B. wrote: Perfect!! - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: [EMAIL PROTECTED]; Rob S. [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:54 PM Subject: RE: Why and How Tomcat before Apache? I will see if I can find time this weekend to throw together a simple example / manual.. You seem to know Debian, so you can change that accordingly.. I'll send it to you when I'm done.. (maby someone can add the solaris part and maby other linux disto's..) nice for a tomcat-unix howto or something? I did such a thing for my workplace, but it is in Portuguse. As I find some free time, I'll translate it into english and release it under de Free Documentation License. I like to think it is pretty detailed, it covers virtualhosts by default, as such is usually the most deriable situation. Hugs, rms -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...? PGP signature
Re: Why and How Tomcat before Apache?
Do I have to insert this script in my rc2.d dir. and link it in init.d ? R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:06 PM Subject: Re: Why and How Tomcat before Apache? Ah what the hell try this ... ( works for me !) Watch out for the line wraps ! - 8 -- snip #!/bin/sh # Init file for Jakarta Tomcat # # chkconfig: 345 98 00 # description: Jakarta tomcat daemon # # processname: # config: /usr/local/tomcat/conf/server.xml RETVAL=0 TOMCAT_HOME=/usr/local/tomcat export TOMCAT_HOME case $1 in start) F=`$0 status` if [ $? = 255 ] ; then echo -n Starting Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin; $TOMCAT_HOME/bin/startup.sh $TOMCAT_HOME/logs/tomcat_stdout.log 2 $TOMCAT_HOME/logs/tomcat_stderr.log echo [ OK ] else echo Tomcat is already running fi echo ;; stop) F=`$0 status` if [ $? = 255 ] ; then echo Tomcat isn't running else echo -n Shutting down Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin ; $TOMCAT_HOME/bin/shutdown.sh $TOMCAT_HOME/logs/tomcat_down_stdout.log 2 $TOMCAT_HOME/logs/tomcat_down_stderr.log echo [ OK ] fi echo ;; restart) $0 stop sleep 2 $0 start RETVAL=$? ;; status) S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l` E=`expr $S` if [ $E = 0 ] ;then echo Tomcat is stopped RETVAL=-1 else PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | awk '{FS= }{print $2}'` P=`echo $PIDS` echo Tomcat ( $P ) is running RETVAL=0 fi ;; *) echo Usage: tomcat {start|stop|restart|status} exit 1 esac exit $RETVAL - 8 -- snip David Cassidy wrote: unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Why and How Tomcat before Apache?
Before you dwelve into connecting Tomcat and Apache, you need to know what is the TCP socket, and what is TCP server and TCP client. In the case of connection mod_jk connector between Apache and Tomcat, Tomcat is the TCP server and Apache is the TCP client. And for this to work nicely, you need to start Tomcat first, and then start Apache. Of course, when you include (what you should not do: you should copy to some file, and include this file) config files (e.g., mod_jk.auto) automatically created by Tomcat, then obviously, you cannot include what was not yet created. Jan On Fri, 17 Aug 2001, Roberto B. wrote: I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
RE: Why and How Tomcat before Apache?
check out if you can do a rm -rf * from within java... Yep works cool.. It saves a lot of work if I'm the admin, integrator and programmer at the same time ;-)), so those things don't slip through (we have a small team of programmers and all things are tested first.. a nice form to type in rm -f that also gets invoked will never get through ;-)) Don't know if you can, don't know how well the JVM will protect you but Nope, if I want to do that, then it must work ;).. (we use all system options quite heavily, also admin of /etc/passwd etc, so we need access sometimes..) I run mine as a different user. I you don't block 8007 and 8009 for unautharized access, you will get a lot of bad packets (at least in 3.3 and ajp13, don't know what happens with older versions though). Someone eventually could find a bug and exploit and down your server or delete your webapp or other data. You don't solve that problem with running as a seperate user.. Do you run your apache as root ? Nope as nobody (which is also not completely safe on default installs, since it also used by some daemons..) Mvgr, Martin David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Cookies and IE5.5
At 08:28 AM 8/17/2001, you wrote: I am trying to set a cookie that can be picked up from a different server to the one setting it. They both belong to the same domain (daves.domain.com and daves2.domain.com). The first server sets the cookie and redirects to the second server where the cookie is read. On IE5.5 and above the cookie does not get set, but it works fine for IE5 and Mozilla. Is this a bug with later versions of IE or am I doing something wrong. You may not be doing anything wrong, I think that's how cookies are supposed to work. Reading ftp://ftp.isi.edu/in-notes/rfc2109.txt doesn't (to me) explicately say Servers within the same domain may not share cookies, but what it does say is a particular server may set a cookie that is only accessible by itself, which implies to me that this is not allowed. The RFC also indicates past and present behavior, and Netscape by name. It's entirely possible that while you were able to do this before, it was taken out in later clients and servers to comply with the RFC's final form. But like I said, I have a hard time interpreting RFC's for particular questions. Maybe some one else has a better handle on all this?
Re: Why and How Tomcat before Apache?
better you than me I take it you are the only one in the wide wide world who can upload a cgi program to your site... Roberto B. wrote: Yes.. as root! R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:08 PM Subject: Re: Why and How Tomcat before Apache? check out if you can do a rm -rf * from within java... Don't know if you can, don't know how well the JVM will protect you but I run mine as a different user. Do you run your apache as root ? David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
RE: Why and How Tomcat before Apache?
yep ;-)) -Original Message- From: Roberto B. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:41 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? Do I have to insert this script in my rc2.d dir. and link it in init.d ? R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:06 PM Subject: Re: Why and How Tomcat before Apache? Ah what the hell try this ... ( works for me !) Watch out for the line wraps ! - 8 -- snip #!/bin/sh # Init file for Jakarta Tomcat # # chkconfig: 345 98 00 # description: Jakarta tomcat daemon # # processname: # config: /usr/local/tomcat/conf/server.xml RETVAL=0 TOMCAT_HOME=/usr/local/tomcat export TOMCAT_HOME case $1 in start) F=`$0 status` if [ $? = 255 ] ; then echo -n Starting Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin; $TOMCAT_HOME/bin/startup.sh $TOMCAT_HOME/logs/tomcat_stdout.log 2 $TOMCAT_HOME/logs/tomcat_stderr.log echo [ OK ] else echo Tomcat is already running fi echo ;; stop) F=`$0 status` if [ $? = 255 ] ; then echo Tomcat isn't running else echo -n Shutting down Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin ; $TOMCAT_HOME/bin/shutdown.sh $TOMCAT_HOME/logs/tomcat_down_stdout.log 2 $TOMCAT_HOME/logs/tomcat_down_stderr.log echo [ OK ] fi echo ;; restart) $0 stop sleep 2 $0 start RETVAL=$? ;; status) S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l` E=`expr $S` if [ $E = 0 ] ;then echo Tomcat is stopped RETVAL=-1 else PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | awk '{FS= }{print $2}'` P=`echo $PIDS` echo Tomcat ( $P ) is running RETVAL=0 fi ;; *) echo Usage: tomcat {start|stop|restart|status} exit 1 esac exit $RETVAL - 8 -- snip David Cassidy wrote: unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Why and How Tomcat before Apache?
The usual thing is to save it to init.d and then link to the rc[235].d of your choice. If you've got redhat you can use the chkconfig program on it. Note though that you'll need to add a user 'tomcat' and make sure that at least the conf and logs directories are availible for writing by that user. You might want to make a 'web' group... i've also added --- 8 snip DATE=`date +%Y-%m-%d-%H-%M-%S` mkdir $TOMCAT/logs/$DATE mv $TOMCAT/logs/*.log $TOMCAT/logs/$DATE ---8 snip into my shutdown.sh script. This then saves all of your logs when you do a shutdown - which can be useful ! David Roberto B. wrote: Do I have to insert this script in my rc2.d dir. and link it in init.d ? R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:06 PM Subject: Re: Why and How Tomcat before Apache? Ah what the hell try this ... ( works for me !) Watch out for the line wraps ! - 8 -- snip #!/bin/sh # Init file for Jakarta Tomcat # # chkconfig: 345 98 00 # description: Jakarta tomcat daemon # # processname: # config: /usr/local/tomcat/conf/server.xml RETVAL=0 TOMCAT_HOME=/usr/local/tomcat export TOMCAT_HOME case $1 in start) F=`$0 status` if [ $? = 255 ] ; then echo -n Starting Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin; $TOMCAT_HOME/bin/startup.sh $TOMCAT_HOME/logs/tomcat_stdout.log 2 $TOMCAT_HOME/logs/tomcat_stderr.log echo [ OK ] else echo Tomcat is already running fi echo ;; stop) F=`$0 status` if [ $? = 255 ] ; then echo Tomcat isn't running else echo -n Shutting down Tomcat : su - tomcat -c cd $TOMCAT_HOME/bin ; $TOMCAT_HOME/bin/shutdown.sh $TOMCAT_HOME/logs/tomcat_down_stdout.log 2 $TOMCAT_HOME/logs/tomcat_down_stderr.log echo [ OK ] fi echo ;; restart) $0 stop sleep 2 $0 start RETVAL=$? ;; status) S=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | wc -l` E=`expr $S` if [ $E = 0 ] ;then echo Tomcat is stopped RETVAL=-1 else PIDS=`ps auxww | grep org.apache.tomcat.startup.Tomca[t] | awk '{FS= }{print $2}'` P=`echo $PIDS` echo Tomcat ( $P ) is running RETVAL=0 fi ;; *) echo Usage: tomcat {start|stop|restart|status} exit 1 esac exit $RETVAL - 8 -- snip David Cassidy wrote: unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
RE: Tomcat before Apache
If you created the bash script not in vi, but eg adjusted stuff in write and saved it, you need to fix the lineendings.. (there is a util for that which was added again on rh7.1, but I forgot the name).. You can test if this is the problem by moving the script to eg tomcat_old do a vi tomcat and do something that show up at the screen.. If that works, you know for sure that your bash file is messed up.. Also a hint : try running it after startup and see if it works.. Mvgr, Martin -Original Message- From: Roberto B. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:37 PM To: [EMAIL PROTECTED] Subject: Tomcat before Apache I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 I want to start automatically Tomcat before Apache. I made this things : 1) I created this script named tomcat: #! /bin/sh TOMCAT_HOME=/usr/tomcat4b6 # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo Tomcat not found exit fi case $1 in start) # Start service $TOMCAT_HOME/bin/startup.sh echo -ne Tomcat started \n ;; stop) $TOMCAT_HOME/bin/shutdown.sh ;; esac 2) I insert this script in dir /etc/init.d 3) chmod u+x tomcat 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this command (because i have @S91apache): ln -s ../init.d/tomcat S90tomcat 5) I rebooted the system and this is the result: : : etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory apache started : Why?? Roberto
Re: Why and How Tomcat before Apache?
I use the webapp connector between Apache and Tomcat 4. Where are the config file that generate Tomcat? - Original Message - From: Jan Labanowski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:40 PM Subject: Re: Why and How Tomcat before Apache? Before you dwelve into connecting Tomcat and Apache, you need to know what is the TCP socket, and what is TCP server and TCP client. In the case of connection mod_jk connector between Apache and Tomcat, Tomcat is the TCP server and Apache is the TCP client. And for this to work nicely, you need to start Tomcat first, and then start Apache. Of course, when you include (what you should not do: you should copy to some file, and include this file) config files (e.g., mod_jk.auto) automatically created by Tomcat, then obviously, you cannot include what was not yet created. Jan On Fri, 17 Aug 2001, Roberto B. wrote: I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. Jan K. Labanowski|phone: 614-292-9279, FAX: 614-292-7168 Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 1224 Kinnear Rd, |http://www.ccl.net/chemistry.html Columbus, OH 43212-1163 |http://www.osc.edu/
Re: Why and How Tomcat before Apache?
Martin van den Bemt wrote: check out if you can do a rm -rf * from within java... Yep works cool.. It saves a lot of work if I'm the admin, integrator and programmer at the same time ;-)), so those things don't slip through (we have a small team of programmers and all things are tested first.. a nice form to type in rm -f that also gets invoked will never get through ;-)) ouch ! Don't know if you can, don't know how well the JVM will protect you but Nope, if I want to do that, then it must work ;).. (we use all system options quite heavily, also admin of /etc/passwd etc, so we need access sometimes..) I run mine as a different user. I you don't block 8007 and 8009 for unautharized access, you will get a lot of bad packets (at least in 3.3 and ajp13, don't know what happens with older versions though). Someone eventually could find a bug and exploit and down your server or delete your webapp or other data. You don't solve that problem with running as a seperate user.. Tomcats ports are not visible from the outside. Only access is through apache - ie mod_jk ... Do you run your apache as root ? Nope as nobody (which is also not completely safe on default installs, since it also used by some daemons..) It's an interresting world isn't it ! Same programs, same os's but so many different ways ... Mvgr, Martin David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
RE: Tomcat Tutorial Please!!!
Rob, are you sure for all those things that I have asked, I can find in that link Can anyone direct me to a good tutorial please. -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 10:25 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Tutorial Please!!! http://jakarta.apache.org/tomcat/index.html has all the answers you seek my friend. - r On Fri, 17 Aug 2001 10:20:50 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Thanx for replying Friends. I am new to this tomcat. Let me ask you few things.. 1) Is encodeURL supported in tomcat. 2) How are sessions maintained. (I am using Tomcat 3.2) 3) If I am using only tomcat without webserver, How do I make it accessible from the 'World'(net). what all settings needs to be done. 4) Is connection pools supported in tomcat just like weblogic. How do we go about this. 5) Can I make tomcat to listen on port 80 I know tomcat is really an interesting stuff and that's why I want to learn it at any cost, I hope you people will help me in this. Jags -Original Message- From: Rob S. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 10:05 AM To: [EMAIL PROTECTED] Subject: Re: Tomcat Tutorial Please!!! What *specifically* do you feel you aren't getting? This way, I can try to accomodate you by putting it in. - r On Fri, 17 Aug 2001 09:49:39 -0400 [EMAIL PROTECTED] wrote: Hi Friends, Can you please direct me to a good tutorial for tomcat coz somehow I didn't get complete information from official documentation. Please reply back Jags
Re: Tomcat/4.0-b7: ERROR reading java.io.FileInputStream@2d263f
Craig, I upgraded to Apache Tomcat/4.0-b7, but am still having the same error: ERROR reading java.io.FileInputStream@2d263f At Line 25 /web-app/servlet/ What is the entire stack trace? Unfortunately, no stack trace is showing up, even with -debug. That is the only message. What does *your* web.xml file look like, particularly around line 25? It corresponds to the closure of the first /servlet tag. The web.xml you quoted in your message is the standard one in $CATALINA_HOME/conf/web.xml -- you should not be modifying that file. I inspired myself from $CATALINA_HOME/conf/web.xml, but that was indeed my web.xml. I added the definition of 2 servlets: servlet-namesystem/servlet-name servlet-namecontroller/servlet-name I'm confused as to why I should not modify that file. Do you mean tomcat includes the $CATALINA_HOME/conf/web.xml by default and I don't need to redefine the standard servlets in my WEB-INF/web.xml? This sounds a *lot* more like an XML validation error in reading your web.xml file than it sounds like a class loading problem. I can validate my web.xml offline: cyril@wyvern:~/p4/phoenix/main/build validxml ../app/webapp/WEB-INF/web.xml Running XmlValidator... Using parser org.apache.crimson.jaxp.SAXParserImpl XML file '../app/webapp/WEB-INF/web.xml' has been validated successfully against its DTD. An enlightenment on this would be appreciated. :) Thanks, begin:vcard n:Bouteille;Cyril x-mozilla-html:FALSE url:http://www.hotwire.com org:a href=http://www.hotwire.comimg border=0 src=http://www.hotwire.com/assets/logo_white.gif/a version:2.1 email;internet:[EMAIL PROTECTED] title:Java Software Architect adr;quoted-printable:;;333 Market St=0D=0ASuite #100;San Francisco;California;94105;USA note;quoted-printable:Take the Hotwire Travel Challenge!br=0D=0ACheck a Hotwire Hot-Fare at a href=3Dhttp://www.hotwire.com;www.hotwire.com/a x-mozilla-cpt:;-6088 fn:Cyril Bouteille end:vcard S/MIME Cryptographic Signature
Re: Tomcat before Apache
dos2unix ... Or use vi ... Martin van den Bemt wrote: If you created the bash script not in vi, but eg adjusted stuff in write and saved it, you need to fix the lineendings.. (there is a util for that which was added again on rh7.1, but I forgot the name).. You can test if this is the problem by moving the script to eg tomcat_old do a vi tomcat and do something that show up at the screen.. If that works, you know for sure that your bash file is messed up.. Also a hint : try running it after startup and see if it works.. Mvgr, Martin -Original Message- From: Roberto B. [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 5:37 PM To: [EMAIL PROTECTED] Subject: Tomcat before Apache I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 I want to start automatically Tomcat before Apache. I made this things : 1) I created this script named tomcat: #! /bin/sh TOMCAT_HOME=/usr/tomcat4b6 # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo Tomcat not found exit fi case $1 in start) # Start service $TOMCAT_HOME/bin/startup.sh echo -ne Tomcat started \n ;; stop) $TOMCAT_HOME/bin/shutdown.sh ;; esac 2) I insert this script in dir /etc/init.d 3) chmod u+x tomcat 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this command (because i have @S91apache): ln -s ../init.d/tomcat S90tomcat 5) I rebooted the system and this is the result: : : etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory apache started : Why?? Roberto
Re: Apache started...
Roberto B. at [EMAIL PROTECTED] wrote: You are joking or you say seriously? Totally serious... If I can help you... I would be happy Tell me (exactly..) the list of the things that serve !!! A copy of the mod_webapp.so binary and the output of the ldd /your/path/to/mod_webapp.so command... :) Pier
Re: Why and How Tomcat before Apache?
Roberto B. at [EMAIL PROTECTED] wrote: Is it true that it is necessary to make start Tomcat before Apache? Why?.. To appropriately set up connections and configurations... and if it is true.. how?? $CATALINA_HOME/bin/catalina start $APACHE_HOME/bin/apachectl start Easy... Pier
Re: Tomcat 4 doesn't start examples or webdav context
Did you modify the Examples application in any way? Because it's weird. I have 3 MacOS/X 10.0.4 boxes and never had one single problem... Pier Willy Faes at [EMAIL PROTECTED] wrote: Hi, I installed tomcat-4.0b7 on mac OS X and used the default server.xml and web.xml When I start tomcat this is all I get: localhost# ./bin/startup.sh Using CLASSPATH: /usr/local/jakarta-tomcat-4.0/bin/bootstrap.jar Using CATALINA_HOME: /usr/local/jakarta-tomcat-4.0 When I point my browser to /examples this is the error message I get: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I included log file and found the following error: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) Can anyone tell me what is wrong here? I included the complete log file. Thanks, Willy Faes MediaTower [localhost:local/jakarta-tomcat-4.0/logs] root# cat localhost_examples_log.2001-08-17.txt 2001-08-17 11:12:46 WebappLoader[/examples]: Deploying class repositories to work directory /usr/local/jakarta- tomcat-4.0/work/localhost/examples 2001-08-17 11:12:46 WebappLoader[/examples]: Reloading checks are enabled for this Context 2001-08-17 11:12:46 StandardManager[/examples]: Seeding random number generator class java.security.SecureRandom 2001-08-17 11:12:47 StandardManager[/examples]: Seeding of random number generator has been completed 2001-08-17 11:12:49 ContextConfig[/examples]: Configured an authenticator for method FORM 2001-08-17 11:12:50 ContextListener: contextInitialized() 2001-08-17 11:12:50 SessionListener: contextInitialized() 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1113) at org.apache.catalina.core.ApplicationFilterConfig.getFilter (ApplicationFilterConfig.java:252) at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef (ApplicationFilterConfig.java:314) at org.apache.catalina.core.ApplicationFilterConfig.init (ApplicationFilterConfig.java:120) at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java: 3038) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3337) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:278) at org.apache.catalina.core.StandardService.start(StandardService.java:368) at org.apache.catalina.core.StandardServer.start(StandardServer.java:473) at org.apache.catalina.startup.Catalina.start(Catalina.java:738) at org.apache.catalina.startup.Catalina.execute(Catalina.java:657) at org.apache.catalina.startup.Catalina.process(Catalina.java:178) at java.lang.reflect.Method.invoke(Native Method) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:202) 2001-08-17 11:12:51 StandardContext[/examples]: Context startup failed due to previous errors
Re: Tomcat port 8080, Apache port 80, jsp?
I'll have to check in the MSDN documentation what error 2140 stands for... Pier Shawn Evans at [EMAIL PROTECTED] wrote: No error messages in the Apche or tomcat logs - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 16, 2001 5:29 PM Subject: Re: Tomcat port 8080, Apache port 80, jsp? Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written by you, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Nothing in your error_log? That's pretty weird... What about starting it from the console? Pier
Re: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Shawn, it's pointless to post the same message over and over... If me (or someone other don't reply) there is a reason... Pier Shawn Evans at [EMAIL PROTECTED] wrote: I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
Re: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Since Apache 1.3.20 also under windows modules are called .so and not .dll (it was confusing!) Pier David Oxley at [EMAIL PROTECTED] wrote: Isn't the .so file only for unix. You need mod_webapp.dll Dave -Original Message- From: Shawn Evans [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 15:12 To: [EMAIL PROTECTED] Subject: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1 I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
Re: Tomcat before Apache
Roberto B. at [EMAIL PROTECTED] wrote: I use Linux/Debian as root, Apache 1.3 and Tomcat 4 b6 I want to start automatically Tomcat before Apache. I made this things : 1) I created this script named tomcat: #! /bin/sh TOMCAT_HOME=/usr/tomcat4b6 # Test tomcat.sh if [ ! -x $TOMCAT_HOME/bin/tomcat.sh ] then echo Tomcat not found exit fi case $1 in start) # Start service $TOMCAT_HOME/bin/startup.sh echo -ne Tomcat started \n ;; stop) $TOMCAT_HOME/bin/shutdown.sh ;; esac 2) I insert this script in dir /etc/init.d 3) chmod u+x tomcat 4) in /etc/rc2.d (because default runlever is 2 in file inittab) this command (because i have @S91apache): ln -s ../init.d/tomcat S90tomcat 5) I rebooted the system and this is the result: : : etc/init.d/rc: /etc/rc2.d/S90tomcat: No such file or directory apache started : Why?? Darn... It's not $TOMCAT_HOME/bin/startup-shutdown.sh.. It's $CATALINA_HOME/bin/catalina [start-stop] Read the docs... Pier
seperate servers
I am trying to set up 2 seperate servers. One to run apache and the other to run tomcat. How do I point my jsp requests from the apache server to the tomcat server? John email - [EMAIL PROTECTED] __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
Re: Tomcat before Apache
Guys. If you wanted to scare the hell out of me, you succeeded... ARE WE GOING TO SUGGEST TO OUR USERS TO RUN TOMCAT AS ROOT? ARE YOU ALL NUTS? Ok, it's good code, but I wouldn't trust not even my mother with root access on my machine... Starting it from the RC scripts will mean that TOMCAT is called as root I'm attaching a little C script that degradates the process to a specified user before execuing it. To compile do gcc -O2 safexec.c -o safexec and to run, (for example catalina) do: safexec username $CATALINA_HOME/bin/catalina.sh start It's written for Solaris, but it should work also on Linux (maybe some compilation warning of some kind)... DO NOT INSTALL IT W/ SUID PRIVILEGES, otherwise anyone will be able to break into your machine _easily_... 'K? Let's try to be a LITTLE BIT security conscious here... Pier (in these days turned into a security freak!) --- This is safexec.c: - #include sys/types.h #include unistd.h #include string.h #include errno.h #include stdio.h #include pwd.h int main(int argc, char *argv[]) { struct passwd *user=NULL; char **args=NULL; int x; if (argc3) { fprintf(stderr, Usage: %s [user] [command] [...]\n,argv[0]); return(1); } user=getpwnam(argv[1]); if (setgid(user-pw_gid)!=0) { fprintf(stderr, %s cannot set requested user/group id\n, argv[0]); return(2); } if (setuid(user-pw_uid)!=0) { fprintf(stderr, %s cannot set requested user/group id\n, argv[0]); return(2); } args=(char **)malloc((argc-1)*sizeof(char *)); for (x=2; xargc; x++) args[x-2]=argv[x]; args[argc-1]=NULL; execvp(argv[2], args); fprintf(stderr, %s: %s: %s\n, argv[0], argv[2], strerror(errno)); } --- End of safexec.c: --
Re: Why and How Tomcat before Apache?
On Fri, 17 Aug 2001, Roberto B. wrote: I use the webapp connector between Apache and Tomcat 4. Where are the config file that generate Tomcat? You don't need any generated config files for mod_webapp -- that's part of the real beauty of it :-). When you declare a particular web application in httpd.conf, like this: WebAppDeploy examples warpConnection /examples/ then Apache configures itself from the web application's settings in web.xml, including servlet mappings, filters, container managed security, and everything else. No muss, no fuss. Craig
RE: problem in loading jar files in WEB-INF\lib directory
On Fri, 17 Aug 2001, Rob S. wrote: Sounds like you could learn a lot from reading the Application Developer's Guide that comes packaged with tomcat in the /doc directory. It's also available online at: http://jakarta.apache.org/tomcat/index.html The most up-to-date version of this document (reflecting some cool new stuff that Ant 1.3 lets you do) is available online at: http://jakarta.apache.org/tomcat/tomcat-4.0-doc-exp/appdev/index.html The updated version shows you how to let Ant build classpaths for you. I now have *nothing* in my classpath, and my Ant scripts for all my projects happily build whatever is needed for that particular project. Although this document references Tomcat 4 (because it will ship with Tomcat 4 final), the information about web apps is all the same for Tomcat 3.x). - r Craig -Original Message- From: Paresh Deshpande [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:14 AM To: [EMAIL PROTECTED] Subject: problem in loading jar files in WEB-INF\lib directory Hi, I am trying to run my application on APACHE with TOMCAT servlet engine. I have placed the jar files required for web application in myapp\WEB-INF\lib folder. Will tomcat automatically pick up this jar file? Or do I need to add them manually in tomcat.bat? Further, do I need to add myapp\WEB-INF\classes in the classpath? Who takes care of the classes in this folder? greetings Paresh
Re: seperate servers
workers.properties You can set the IP address and port number of the Tomcat server through the worker definitions. Best Regards, Jason Koeninger JJ Computer Consulting http://www.jjcc.com On Fri, 17 Aug 2001 09:55:49 -0700, John Comitas wrote: I am trying to set up 2 seperate servers. One to run apache and the other to run tomcat. How do I point my jsp requests from the apache server to the tomcat server? John email - [EMAIL PROTECTED] __ FREE voicemail, email, and fax...all in one place. Sign Up Now! http://www.onebox.com
RE: problem in loading jar files in WEB-INF\lib directory
On Fri, 17 Aug 2001, Paresh Deshpande wrote: Hi Rob, thanks for your reply, Rob. I was waiting for the reply for quite a while :)). It is not specifically mentioned in the docs how the class files in WEB-INF\classes are loaded. Neither is it mentioned whether the jar file in the WEB-APP\lib folder will be automatically picked in classpath. Technically, Tomcat does not modify the CLASSPATH *environment variable*, but it does make these classes available to your application. If you think about it for a second, this makes sense -- different web apps have different sets of classes available, but there is only one CLASSPATH ... If I do not provide anything (jar or WEB-INF\classes) from my web application folder, kind of strange problem occurs in which the servlets get loaded from WEB-INF\classes directory, but when I try to cast a particular resource from JNDI to my class ( placed in the same WEB-INF\classes folder), I get class cast exception error. Tomcat does not find the class. How can I solve this problem? paresh A likely cause of this problem is the following (which is why class loaders are black magic sometimes :-). When Tomcat starts up, it creates a hierarchy of class loaders. Here's a simplified model for Tomcat 3.2.x: Java Runtime Classes | System Extensions Classloader ($JAVA_HOME/jre/lib/ext/*.jar)\ | System Classloader ($CLASSPATH) | Webapp Classloader (/WEB-INF/classes, /WEB-INF/lib/*.jar) Now, when you try to create a class in a servlet (i.e. Object foo = new Foo()), you are asking the webapp class loader to load class Foo. If it's there, that's fine and dandy ... if not, it delegates upwards to see if one of the parent class loaders can find it. (That is why classes you put on the classpath are visible to all webapps in 3.2). But note -- the searching process only goes *upwards*, not *downwards*. In other words, a class that is loaded from the System Classloader (for example) cannot see *any* classes in the webapp class loader. Why does this matter to you? Because the key to your problem is most likely where the JNDI classes themselves are being loaded from. If you have jndi.jar on your CLASSPATH, they are being loaded from the System Classloader. If you're running JDK 1.3 or above, they are loaded from the Java Runtime Classes classloade. But, you're trying to reference a class that is loaded from your webapp classloader. Can you see the problem yet? A couple of approaches to try: * Move the JNDI classes into your webapp (in /WEB-INF/lib). This won't work on a JDK 1.3 or above system, though. * Move the application classes you want to cast to up into the System classloader (by putting them on the CLASSPATH, or into Tomcat's top level lib directory). Craig
Re: JDBCRealm and SimpleRealm conflicts
In 3.2, realms are global so it is an either/or choice. 3.3 or 4.0 let you have realm per virtual host or realm per webapp. Craig On Fri, 17 Aug 2001, Chris Gross wrote: I've got a RequestIntercepter and JDBCRealm setup in Tomcat. I've noticed that I need to comment out the SimpleRealm intercepter in order for this to work but I'm not sure why. My application is going to be a commercial app that I will distribute to customers and I am concerned that a customer might be using the SimpleRealm intercepter for another webapp they have and that they won't be able to comment it out. Can anyone explain why these two conflict or what I could do? Thanks, chris
IIS Redirector
We have been using Tomcat 3.2 /IIS4 for some time. I am trying to figure out a way to be able to have the redirector dynamically reconfigure the contexts it will service. IIS Management console allows virtual directories to be added to IIS, and the changes are reflected immediately, without the need to recycle IIS. The ISAPI filter gets loaded once at IIS startup, and the configuration is built once. The only way to add new contexts is to change uriworkermap.properties, and the recycle IIS. This is disruptive in that any IIS Session(s) are lost, and any Tomcat sessions lost. This is a feature that needs to be added to both Tomcat and the Filters. Tomcat can add a new context via a war file, but must be recycled if server.xml is updated with new contexts. As an alternative, is there a way to specify to the isapi filter that ALL .jsp and any Servlet are to be be handled by Tomcat I have tried */servlet= and this does not work. Tks Bruce
Re: Context does not initialise
What OS? What JDK? This works for most people, but somebody reported something similar on MacOSX this morning. Craig On Fri, 17 Aug 2001, Willy Faes wrote: Sorry that I rephrase my question but I still have the same problem. I installed Tomcat-4.0B7 without a problem. But when I start tomcat it seems that only the http server starts. When I click on the examples it gives the following error: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I found following error in the logs but I don't understand what it means: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java: 1264) Thanks for your help, Willy Faes MediaTower
Re: Tomcat/4.0-b7: ERROR reading java.io.FileInputStream@2d263f
On Fri, 17 Aug 2001, Cyril Bouteille wrote: Craig, I upgraded to Apache Tomcat/4.0-b7, but am still having the same error: ERROR reading java.io.FileInputStream@2d263f At Line 25 /web-app/servlet/ What is the entire stack trace? Unfortunately, no stack trace is showing up, even with -debug. That is the only message. What does *your* web.xml file look like, particularly around line 25? It corresponds to the closure of the first /servlet tag. The web.xml you quoted in your message is the standard one in $CATALINA_HOME/conf/web.xml -- you should not be modifying that file. I inspired myself from $CATALINA_HOME/conf/web.xml, but that was indeed my web.xml. I added the definition of 2 servlets: servlet-namesystem/servlet-name servlet-namecontroller/servlet-name I'm confused as to why I should not modify that file. Do you mean tomcat includes the $CATALINA_HOME/conf/web.xml by default and I don't need to redefine the standard servlets in my WEB-INF/web.xml? Yes. $CATALINA_HOME/conf/web.xml is included in *all* webapps by default, because it defines the basic services (like JSP, default file serving, and MIME mappings) that are defaults for all apps. This sounds a *lot* more like an XML validation error in reading your web.xml file than it sounds like a class loading problem. I can validate my web.xml offline: cyril@wyvern:~/p4/phoenix/main/build validxml ../app/webapp/WEB-INF/web.xml Running XmlValidator... Using parser org.apache.crimson.jaxp.SAXParserImpl XML file '../app/webapp/WEB-INF/web.xml' has been validated successfully against its DTD. An enlightenment on this would be appreciated. :) Thanks, Without seeing your entire web.xml in detail, there's nothing more I can do. Craig
Re: Tomcat Tutorial Please!!!
Rob, are you sure for all those things that I have asked, I can find in that link You have to READ them. Your questions are not address in question-and-answer form of course! If you read the docs or examine config files that the docs discuss, you'll find these things stated in one form or another. 1) Is encodeURL supported in tomcat. HttpServletResponse is part of the Servlet API. Because tomcat 3.x implements that API (this is on the homepage for crying out loud) then one can assume that Tomcat implements encodeURL. 2) How are sessions maintained. (I am using Tomcat 3.2) This is part of the servlet specification. See answer to previous question. 3) If I am using only tomcat without webserver, How do I make it accessible from the 'World'(net). what all settings needs to be done. I don't really understand what this means... It's just like starting any server. If another computer can access your computer, they can access a server listening for connections on that computer. 4) Is connection pools supported in tomcat just like weblogic. How do we go about this. I don't know, if I read the docs I'm sure I could find out though... 5) Can I make tomcat to listen on port 80 $TOMCAT_HOME/conf/server.xml is the main config file for Tomcat. - r
Re: Tomcat 4 doesn't start examples or webdav context
Did you modify the Examples application in any way? Because it's weird. I have 3 MacOS/X 10.0.4 boxes and never had one single problem... omg! I've figured out why Cali is running out of power! =) - r
Re: Why and How Tomcat before Apache?
That's an unsettling feeling. Never trust incoming form data, but if Tomcat is running as a less priveledged user, the potential damage from malformed form data is reduced. I personally would never run a web app as root just for the black hole of security issues dealing with the outside internet. My two cents on the subject. --David On Friday 17 August 2001 11:38 am, you wrote: Yes.. as root! R. - Original Message - From: David Cassidy [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 5:08 PM Subject: Re: Why and How Tomcat before Apache? check out if you can do a rm -rf * from within java... Don't know if you can, don't know how well the JVM will protect you but I run mine as a different user. Do you run your apache as root ? David Martin van den Bemt wrote: Please tell me what is dangerous about running tomcat as root? I've taken the following security measures : port 8007 and 8009 is blocked from the outside (firewall) tomcat is not running on 8080 and only allowing communications from localhost (127.0.0.1). The only potential problem is that if a tomcat /apache bug is exploited, you potentially have a problem. Looks pretty solid to me though.. Mvgr, martin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of David Cassidy Sent: Friday, August 17, 2001 4:54 PM To: [EMAIL PROTECTED] Subject: Re: Why and How Tomcat before Apache? unless you want to run your tomcat as root ( Very unwise ) makesure that you use a 'su' command in your call to tomcat's start script... David Rui Miguel Seabra wrote: Just hack apachectl script to launch tomcat just before apache, and to shut it down right aftwards. On 17 Aug 2001 16:43:41 +0200, Roberto B. wrote: Ok ! but.. do you know the way to make this in automatic ( with scripts at system start ) ?? - Original Message - From: Barnabas Yohannes [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 3:39 PM Subject: Re: Why and How Tomcat before Apache? I cannot answer your why question, because, I am not one of the developers of apache or tomcat. But here is the answer to your how question: *To stop and start your tomcat: cd /usr/local/tomcat bin/shutdown.sh bin/startup.sh *Exit from tomcat and go to your apache server: su /usr/local/apache/bin/apachectl restart exit * Another way of stopping and starting apache: bin/apachectl stop bin/apachectl start - Original Message - From: Roberto B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 4:50 AM Subject: Why and How Tomcat before Apache? I have a Linux/Debian system. I want to use Apache as web-server and Tomcat only for JSP file. Is it true that it is necessary to make start Tomcat before Apache? Why?.. and if it is true.. how?? Thanks! Roberto. -- + No matter how much you do, you never do enough -- unknown + Whatever you do will be insignificant, | but it is very important that you do it -- Ghandi + So let's do it...?
Re: Context does not initialise
Craig, I just reinstalled tomcat and it works fine. Sorry to bother. Thanks, Willy On Friday, August 17, 2001, at 07:17 PM, Craig R. McClanahan wrote: What OS? What JDK? This works for most people, but somebody reported something similar on MacOSX this morning. Craig On Fri, 17 Aug 2001, Willy Faes wrote: Sorry that I rephrase my question but I still have the same problem. I installed Tomcat-4.0B7 without a problem. But when I start tomcat it seems that only the http server starts. When I click on the examples it gives the following error: HTTP Status 503 - This application is not currently available The requested service (This application is not currently available) is not currently available. I found following error in the logs but I don't understand what it means: 2001-08-17 11:12:51 StandardContext[/examples]: Exception starting filter Set Character Encoding java.lang.ClassNotFoundException: filters.SetCharacterEncodingFilter at org.apache.catalina.loader.WebappClassLoader.loadClass (WebappClassLoader.java: 1264) Thanks for your help, Willy Faes MediaTower
RE: Tomcat 3.2.3 and IIS5
A quick check of the mod_jk source shows that these error messages are a bug. They are always output, even when no error occurs. This has been fixed in Tomcat 3.3 and I assume jakarta-tomcat-connectors. I would recommend shutting down IIS and Tomcat, delete Tomcat's and isapi_redirect's log files. Make sure Tomcat's log is directed to a file. Make sure the log level is debug in the registry if not already. Startup IIS and Tomcat and access that URL once, then shutdown IIS and Tomcat. Then examine the logs to see where the request went. Post here if you need help interpreting the logs. Also important is what is in your config files. Since you are getting a green arrow and a log file, your workers.properties may be okay. What is in your uriworkermap file, if any changes have been made from what is in the Tomcat distribution? Larry -Original Message- From: Jack Rudnick [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.3 and IIS5 I just wanted to post a followup to my previous question. I have followed the Tomcat + IIS howto on posted on the tomcat site exactly (as I previously stated). This time I attempted it on a clean Win2000 box with no service packs, I used JDK 1.3.1, tomcat 3.2.3 and the isapi_redirect.dll. It does not work. All I want to do is hit http://localhost/examples/jsp/index.html (as it says I should be able to in the tomcat iss how to) but it does not find the page, in addition I recieve this error: [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters I would Also, My registry is correct, My redirect filter is green and everything has been followed specifically according to the how to. Is something wrong with the redirect.dll?? Or is maybe something not right with my workers.properties or uriworkermap.properties??? I'm at a loss, has anybody actually integreted Tomcat 3.2.3 with IIS5 on Win2K??? Any help would be greatly appreciated. Jack
Re: Tomcat 4 doesn't start examples or webdav context
Rob S. at [EMAIL PROTECTED] wrote: Did you modify the Examples application in any way? Because it's weird. I have 3 MacOS/X 10.0.4 boxes and never had one single problem... omg! I've figured out why Cali is running out of power! =) Nope, you didn't... I live in London (UK!) :) :) :) Pier
Working: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1
Sorry if it seems as if I reposted it, I was having trouble with the office machine, so I sent it out under a new subject, since it was different than the one I posted before... when I ran Apache from the command line with the webapp modified conf here is what I get. D:\webserver\ApacheApache Syntax error on line 176 of d:/webserver/apache/conf/httpd.conf: Cannot add module via name 'mod_webapp.c': not in list of loaded modules took that line out and it works... I can see webapp-info and IT WORKS ... INSTALL.txt [..] *- Another note for Windows: copy also the libapr.dll file with the module, or your Apache 1.3 web server will refuse to start reporting that the WebApp module cannot be loaded. Once you have done that, edit your httpd.conf configuration file and add a few lines to load that module at startup (Windows users, read above, you have to replace libexec with modules - I'm paranoid, sorry): LoadModule webapp_module libexec/mod_webapp.so and AddModule mod_webapp.c [ DO NOT ADD THIS TO WINDOWS ] -* Thanks for the help Shawn - Original Message - From: Pier P. Fumagalli [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, August 17, 2001 12:47 PM Subject: Re: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1 Since Apache 1.3.20 also under windows modules are called .so and not .dll (it was confusing!) Pier David Oxley at [EMAIL PROTECTED] wrote: Isn't the .so file only for unix. You need mod_webapp.dll Dave -Original Message- From: Shawn Evans [mailto:[EMAIL PROTECTED]] Sent: 17 August 2001 15:12 To: [EMAIL PROTECTED] Subject: mod_webapp -- NT4, Tomcat 4.0.7, Apache 1.3.20, JDK 1.3.1 I read Installing mod_webapp and using it with Apache 1.3 written in mod_webapp, and I have been unsuccessful in getting it to work. Here is my configuration: Win NT4.0 sp6 Apache 1.3.20 d:\webserver\Apache Tomcat 4.0.7b d:\webserver\Tomcat-4.0.7 First, I copied 'mod_webapp.so' and 'libapr.dll' to my apache\modules, then I added this to my httpd.conf [...] #AddModule mod_actions.c mod_setenvif.c mod_isapi.c AddModule mod_webapp.c [...] #LoadModule usertrack_module modules/mod_usertrack.so LoadModule webapp_module modules/mod_webapp.so [...] WebAppConnection conn warp localhost:8008 WebAppDeploy examples conn /examples WebAppInfo /webapp-info [...] I kick Apache off as a service (Tomcat is already running as a service) and here is the error that I get Error 2140:An internal Windows NT error occurred... I am able to run Tomcat 4.0.7 as a service without Apache... and Apache runs fine when I comment out the 5 lines I added above, but I need to get them working in sequence with one another. Plus, there are no error messages in the log files. Shawn
RE: Tomcat 3.2.3 and IIS5
I have just figured out my problem... IIS and WIN2K permissions on the isapi_redirect.dll the appropriate IIS users did NOT have the correct permissions apparently (where does it say anything about this in the tomcat-iis howto!??! It dosn't, you have to figure this one out on your own) Jack (ps. thanks for your advice) -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 1:54 PM To: '[EMAIL PROTECTED]' Subject: RE: Tomcat 3.2.3 and IIS5 A quick check of the mod_jk source shows that these error messages are a bug. They are always output, even when no error occurs. This has been fixed in Tomcat 3.3 and I assume jakarta-tomcat-connectors. I would recommend shutting down IIS and Tomcat, delete Tomcat's and isapi_redirect's log files. Make sure Tomcat's log is directed to a file. Make sure the log level is debug in the registry if not already. Startup IIS and Tomcat and access that URL once, then shutdown IIS and Tomcat. Then examine the logs to see where the request went. Post here if you need help interpreting the logs. Also important is what is in your config files. Since you are getting a green arrow and a log file, your workers.properties may be okay. What is in your uriworkermap file, if any changes have been made from what is in the Tomcat distribution? Larry -Original Message- From: Jack Rudnick [mailto:[EMAIL PROTECTED]] Sent: Friday, August 17, 2001 11:06 AM To: [EMAIL PROTECTED] Subject: Tomcat 3.2.3 and IIS5 I just wanted to post a followup to my previous question. I have followed the Tomcat + IIS howto on posted on the tomcat site exactly (as I previously stated). This time I attempted it on a clean Win2000 box with no service packs, I used JDK 1.3.1, tomcat 3.2.3 and the isapi_redirect.dll. It does not work. All I want to do is hit http://localhost/examples/jsp/index.html (as it says I should be able to in the tomcat iss how to) but it does not find the page, in addition I recieve this error: [jk_uri_worker_map.c (335)]: jk_uri_worker_map_t::uri_worker_map_close, NULL parameter [jk_uri_worker_map.c (185)]: In jk_uri_worker_map_t::uri_worker_map_free, NULL parameters I would Also, My registry is correct, My redirect filter is green and everything has been followed specifically according to the how to. Is something wrong with the redirect.dll?? Or is maybe something not right with my workers.properties or uriworkermap.properties??? I'm at a loss, has anybody actually integreted Tomcat 3.2.3 with IIS5 on Win2K??? Any help would be greatly appreciated. Jack
WEB-INF/lib not used?
I've just created a new web app. I'm able to bring up a trivial JSP so I'm pretty sure I've done something right. However, when I try to do an import within the JSP (eg import com.epicentric.common.*) I get Package com.epicentric.common not found in import. even though the jar file is installed in WEB-INF/lib. According to the docs, I shouldn't have to do anything other than put the jar into this directory. Can anyone help me out, please? Thanks, Noel This communication is for informational purposes only. It is not intended as an offer or solicitation for the purchase or sale of any financial instrument or as an official confirmation of any transaction. All market prices, data and other information are not warranted as to completeness or accuracy and are subject to change without notice. Any comments or statements made herein do not necessarily reflect those of J.P. Morgan Chase Co., its subsidiaries and affiliates.