Roll or cycle Logs
Is there a way to roll or cycle the tomcat log files? As tomcat appears to lock the file, the logs are not viewable until you shut down. Or am I missing something? -jim
IIS and NW Tomcat ...
Currently we have tomcat running with Apache on Netware 5.1 and all is good. We have a need to have IIS use some of the same Servlets that are on tomcat on NW. Anybody know of how we might have tomecat on NW server servlets to IIS on W2K while keeping Apache on NW serving Servlets form the sa,e tomcat? -jim
Re: newbie
Is there a way to "preload" the servlets on startup? -jim eric chacon wrote: This is normal behavior-- The first time, it compiles your JSP into a servlet, and after that, the servlet's loaded and ready to go. When you have a production site running, you might want to call all JSPs once every time you deploy so your users won't have to wait the first time... Cheers, E. From: [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: newbie Date: Thu, 19 Apr 2001 01:35:32 GMT Hi .. I'm newbie in jakarta (tomcat) I Just setting Up my Apache with jk_mod (tomcat) in linux but I found problems When FIRST time loading JSP, e.g lynx http://localhost/examples It's take a long time ( half a minute) to loading fisrt jsp page, but after that evertyng goes fine ??? My conf just follow from doc in jakarta.apache.org Any body wanna help me ? _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Servlet Placement and URLs to Run...
I have a servlet that I have used in other enviroments without issues. I am trying to get it to run under Tomcat and seem to have several roadblocks. The Examples work and I do have a servlet SnoopServlet that works in this same container. (http://10.44.82.2:8080/run/servlet/SnoopServlet) So, I am assuming the plumbing works and it is a problem with me not knowing where to put this or call that. Ther servlet is in \tomcat\webapps\run\WEB-INF\classes \tomcat\ is tomcathome the actual class file is in: \tomcat\webapps\run\WEB-INF\classes\com\willeke\servlet\phonebook\Phonebook.class The servlet being in the package com.willeke.servlet.phonebook This runs and works fine in Jbuilder (Which uses tomcat internally) The issues I need to resolve: 1. What is the right URL to call to load this servlet? 2. In the \tomcat\webapps\run\WEB-INF\web.xml I have: servlet servlet-name Pb /servlet-name servlet-class com.willeke.servlet.phonebook.Phonebook /servlet-class /servlet servlet-mapping servlet-name Pb /servlet-name url-pattern /pb /url-pattern /servlet-mapping None of the following seem to work: http://10.44.82.2:8080/run/servlet/com/willeke/servlet/phonebook/Phonebook http://10.44.82.2:8080/run/servlet/com.willeke.servlet.phonebook.Phonebook http://10.44.82.2:8080/run/servlet/Pb http://10.44.82.2:8080/run/servlet/pb Any help would be appreciated. -jim
Re: Servlet Placement and URLs to Run...
No joy. 404 error. I would like to do it the new current, specfull way. What might that be? -jim Randy Layman wrote: How about http://10.44.82.2:8080/run/pb? When you specify the servlet-mapping you are telling Tomcat what URL in the webapp to handle - /pb means "Any Request for pb in the root of my webapp". The /servlet/className convention is a holdover from how the older containers used to do things and is no longer part of the spec. Randy -Original Message----- From: Jim Willeke [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 8:09 AM To: [EMAIL PROTECTED] Subject: Servlet Placement and URLs to Run... I have a servlet that I have used in other enviroments without issues. I am trying to get it to run under Tomcat and seem to have several roadblocks. The Examples work and I do have a servlet SnoopServlet that works in this same container. (http://10.44.82.2:8080/run/servlet/SnoopServlet) So, I am assuming the plumbing works and it is a problem with me not knowing where to put this or call that. Ther servlet is in \tomcat\webapps\run\WEB-INF\classes \tomcat\ is tomcathome the actual class file is in: \tomcat\webapps\run\WEB-INF\classes\com\willeke\servlet\phoneb ook\Phonebook.class The servlet being in the package com.willeke.servlet.phonebook This runs and works fine in Jbuilder (Which uses tomcat internally) The issues I need to resolve: 1. What is the right URL to call to load this servlet? 2. In the \tomcat\webapps\run\WEB-INF\web.xml I have: servlet servlet-name Pb /servlet-name servlet-class com.willeke.servlet.phonebook.Phonebook /servlet-class /servlet servlet-mapping servlet-name Pb /servlet-name url-pattern /pb /url-pattern /servlet-mapping None of the following seem to work: http://10.44.82.2:8080/run/servlet/com/willeke/servlet/phonebo ok/Phonebook http://10.44.82.2:8080/run/servlet/com.willeke.servlet.phonebook.Phonebook http://10.44.82.2:8080/run/servlet/Pb http://10.44.82.2:8080/run/servlet/pb Any help would be appreciated. -jim
Re: Servlet Placement and URLs to Run...
First thanks for the help. My Comments below Randy Layman wrote: Ok, lets try a few other things: 1. Does /run/servlet/com.(fill in fully qualified class here).Phonebook work? If not, double check your class file is in the correct place and that the package statement in the file matches the structure here. One thing that I've found sometime helps is to compile to a directory (javac -d), jar that directory and then use that JAR or un-jar into the WEB-INF/classes directory. This makes sure that the directories have the correct structure. Not like this: http://10.44.82.2:8080/run/servlet/com.willeke.servlet.phonebook.Phonebook or http://10.44.82.2:8080/run/servlet/com/willeke/servlet/phonebook/Phonebook Currently I am NOT using a jar file. Al in WEB-INF\Classses\com.sss.sss OOPS! Boy do I feel stupid. I copied the source file and not the class files. All is well and thanks for making me look stupid. :-) 2. Do you get any messages in the console when starting Tomcat about unable to load servlet? If so, what are they? 3. Have you restarted Tomcat since editing web.xml? (I know its obvious, but it really should be working by the time you get to this point) 4. Have you verified that the servlet tag is in the correct place in the web.xml file? (My usage suggests that Tomcat doesn't complain for out-of-order elements, just ignores them.) The good way to do servlet mapping is to put it into the web.xml file like you have attempted to do. The old way is what I suggested above (using the /servlet/classname). If the above doesn't work, could you send me your entire web.xml file so that I can look it over? Randy -Original Message- From: Jim Willeke [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 8:50 AM To: [EMAIL PROTECTED] Subject: Re: Servlet Placement and URLs to Run... No joy. 404 error. I would like to do it the new current, specfull way. What might that be? -jim Randy Layman wrote: How about http://10.44.82.2:8080/run/pb? When you specify the servlet-mapping you are telling Tomcat what URL in the webapp to handle - /pb means Any Request for pb in the root of my webapp. The /servlet/className convention is a holdover from how the older containers used to do things and is no longer part of the spec. Randy -Original Message- From: Jim Willeke [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 19, 2001 8:09 AM To: [EMAIL PROTECTED] Subject: Servlet Placement and URLs to Run... I have a servlet that I have used in other enviroments without issues. I am trying to get it to run under Tomcat and seem to have several roadblocks. The Examples work and I do have a servlet SnoopServlet that works in this same container. (http://10.44.82.2:8080/run/servlet/SnoopServlet) So, I am assuming the plumbing works and it is a problem with me not knowing where to put this or call that. Ther servlet is in \tomcat\webapps\run\WEB-INF\classes \tomcat\ is tomcathome the actual class file is in: \tomcat\webapps\run\WEB-INF\classes\com\willeke\servlet\phoneb ook\Phonebook.class The servlet being in the package com.willeke.servlet.phonebook This runs and works fine in Jbuilder (Which uses tomcat internally) The issues I need to resolve: 1. What is the right URL to call to load this servlet? 2. In the \tomcat\webapps\run\WEB-INF\web.xml I have: servlet servlet-name Pb /servlet-name servlet-class com.willeke.servlet.phonebook.Phonebook /servlet-class /servlet servlet-mapping servlet-name Pb /servlet-name url-pattern /pb /url-pattern /servlet-mapping None of the following seem to work: http://10.44.82.2:8080/run/servlet/com/willeke/servlet/phonebo ok/Phonebook http://10.44.82.2:8080/run/servlet/com.willeke.servlet.phonebo ok.Phonebook http://10.44.82.2:8080/run/servlet/Pb http://10.44.82.2:8080/run/servlet/pb Any help would be appreciated. -jim
Re: How to read property files?
Thanks, this helps me. I was wondering though, can you determine where it found the properties file at? Thanks. -jim Samson, Lyndon [IT] wrote: This works a treat for me InputStream is = this.getClass().getResourceAsStream("myapp.properties"); Properties p = new Properties(); try { p.load(is); } catch ( java.io.IOException e ) { // Can't load props file } That way the properties file can be anywhere in the classpath. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 9:27 PM To: [EMAIL PROTECTED] Subject: How to read property files? I would like to put a myapp.properties file in the top level directory of my webapp. But I can't figure out what filepath to give the Properties.load() method in order to load my servlet property object. Can someone help me? Thanks =eas=
Re: WAR deployment
But where do you findout what should/could be in this file? If I look at the examples.war file, it appears to contain all that is in the: \webapps\examples\WEB-INF\classes Is this typical or redundent? My specific issue is I can not find where to place "common" lib files that can be found by the a servlet. Even if it is placed in the: \webapps\examples\WEB-INF\classes I continue to get an error that the class can not be found even though there is a jar file in this directory that contains the file AND the JVM has a classpath that includes the jar file. Any help or pointers to some docs as to howw this is all supposed to go together would be great! -jim Gal Oberson wrote: Does anybody know where I can find information about the WAR files?? I know that these files are used to deploy a WEB Application, where all files .class and config files are packaged, but I don't have any idea how to build it. Can somebody help me?? Thanks.
Anyone on Netware?
I am looking for anyone whom has gotten Tomcat to work on Netware or is interested in working on it. -jim
RE: Anyone on Netware?
Can you, or anyone provide setup/installation information? Thanks -jim -Original Message- From: Cristian Ramos Prange [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:42 AM To: [EMAIL PROTECTED] Subject: Re: Anyone on Netware? Hi. Tomcat is working perfectly in my Netware environment. Tomcat works as a standalone webserver and with Apache (for Netware). Ive not gotten Tomcat to work with Netscape webserver. Cristian Prange. I am looking for anyone whom has gotten Tomcat to work on Netware or is interested in working on it. -jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]