RE: Where do I place a servlet class
Hello, I noticed that you mentioned the server specification. I have seen it mentioned before, many times. But where is it? I have searched for it at java.sun.com and all I get is a Javadoc *reference* of some classes. Is this the so-called 'specification'? Shouldn't it be a *text*? Greetings, Gerardo On Fri, 20 Aug 2004, Shapira, Yoav wrote: Hi, I added the servlet mapping entry but it's still not working. I have the class file in /dev_new/WEB-INF/classes/umJavaLib/. Does the class file need to go into a special directory of anything? servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameservUploadMedia/servlet-name url- pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern /servlet-mapping First try to get it to work in tomcat-standalone. It's the KISS principle. Do you realize what the above url-pattern means? With it, you can access your servlet at http://yourhost:yourport/yourwebapp/dev_new/server/umJavaLib.servUploadM edia. A more typical url-pattern would just be url-pattern/uploadMedia/url-pattern, and then you'd access your servlet at http://yourhost:yourport/yourwebapp/uploadMedia. If you're unclear on url-pattern and how it works, check out the Servlet Specification itself for details and examples. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I place a servlet class
From: [EMAIL PROTECTED] I noticed that you mentioned the server specification. I have seen it mentioned before, many times. But where is it? I have searched for it at java.sun.com and all I get is a Javadoc *reference* of some classes. Is this the so-called 'specification'? Shouldn't it be a *text*? Servlet Specification: http://java.sun.com/products/servlet/download.html The Specification will explain exactly what the container is required to do for you, what it may do, and some things it must not do. -- Wendy Smoak - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Where do I place a servlet class
I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I place a servlet class
You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribi: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where do I place a servlet class
I added the servlet mapping entry but it's still not working. I have the class file in /dev_new/WEB-INF/classes/umJavaLib/. Does the class file need to go into a special directory of anything? servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameservUploadMedia/servlet-name url-pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern /servlet-mapping I also added a uri entry in workers2.properties. Here are the 2 entries for my app: # Map the jsp extension in the dev_new directory to tomcat [uri:/dev_new/*.jsp] info=Extension mapping [uri:/dev_new/servlet/*] info=Prefix Mapping Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 11:14 AM To: Tomcat Users List Subject: Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribi?: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I place a servlet class
did you restart tomcat or your context? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where do I place a servlet class
Yes. I restarted. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 11:55 AM To: Tomcat Users List Subject: Re: Where do I place a servlet class did you restart tomcat or your context? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Re: Where do I place a servlet class
One of the major differences between your actual version and the your previous one has to do with disabling the invoker servlet. I don't know if you've checked this before, but take a look at http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08 _02/default_pf.aspx Just to see if that's happening to you. José Ernesto Echeverría -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 09:14 a.m. To: Tomcat Users List Subject: [tomcat] Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribió: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Where do I place a servlet class
well your configuration seems fine i remember Cicer0 posted recently a problem like yours search the archive for ExportSerials - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Re: Where do I place a servlet class
I saw that. I've read a couple of negative things about enabling the invoker. It seems it's less secure and stuff. I figured it would be better to use explicit mapping, but cant get that to work. I'll keep trying but if I cant get it working I guess I'll just enable the invoker. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:01 PM To: 'Tomcat Users List' Subject: RE: [tomcat] Re: Where do I place a servlet class One of the major differences between your actual version and the your previous one has to do with disabling the invoker servlet. I don't know if you've checked this before, but take a look at http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08 _02/default_pf.aspx Just to see if that's happening to you. José Ernesto Echeverría -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 09:14 a.m. To: Tomcat Users List Subject: [tomcat] Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribió: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] Re: Where do I place a servlet class
On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote: : I saw that. I've read a couple of negative things about enabling the invoker. : It seems it's less secure and stuff. I figured it would be better to use : explicit mapping, but cant get that to work. I'll keep trying but if I cant : get it working I guess I'll just enable the invoker. That should work as a short-term goal, but you'd do yourself a favor to find out what's going on. If the servlet mapping works through the invoker then it must work through a manual mapping, as well. I missed the earlier posts: what's the error in the Tomcat logs? Did you recompile your webapp with the newer Tomcat JARs, etc.? There's a brief upgrade guide on my website (brandxdev.net). That covers the 4 -5 upgrade but some of it is container-neutral. -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] Re: Where do I place a servlet class
QM escribió: On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote: : I saw that. I've read a couple of negative things about enabling the invoker. : It seems it's less secure and stuff. I figured it would be better to use : explicit mapping, but cant get that to work. I'll keep trying but if I cant : get it working I guess I'll just enable the invoker. That should work as a short-term goal, but you'd do yourself a favor to find out what's going on. If the servlet mapping works through the invoker then it must work through a manual mapping, as well. I missed the earlier posts: what's the error in the Tomcat logs? Did you recompile your webapp with the newer Tomcat JARs, etc.? There's a brief upgrade guide on my website (brandxdev.net). That covers the 4 -5 upgrade but some of it is container-neutral. Also, if everything gets wacky and you're desperate, delete everything under your work directory, on the tomcat root and see what happens it helps sometimes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [tomcat] Re: Where do I place a servlet class
On Fri, Aug 20, 2004 at 12:20:19PM -0400, John Villar wrote: : Also, if everything gets wacky and you're desperate, delete everything : under your work directory, on the tomcat root and see what happens : it helps sometimes No need for to wait for wacky -- I added a clean action to my Tomcat scripts to do just this, aka ./tomcat_ctl stop clean start Handy for testing, when you'd rather not use reloadable=true... =) -QM -- software -- http://www.brandxdev.net tech news -- http://www.RoarNetworX.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Re: Where do I place a servlet class
Ok. I don't like the invoker either. I thought you were trying only to have things working as before, that's why I pointed out that difference. Starting from scratch, let's try to break the problem into smaller pieces. Have you checked if the invocation works right without passing thru Apache/mod_jk2? That is? Have you tried the http://localhost:8080/route-to-servlet-dir/servlet/ServletName Invocation directly and then what's the message you get from tomcat or logs, etc. José Ernesto Echeverría -Original Message- From: Diego, Emil [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 10:04 a.m. To: Tomcat Users List Subject: RE: [tomcat] Re: Where do I place a servlet class I saw that. I've read a couple of negative things about enabling the invoker. It seems it's less secure and stuff. I figured it would be better to use explicit mapping, but cant get that to work. I'll keep trying but if I cant get it working I guess I'll just enable the invoker. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:01 PM To: 'Tomcat Users List' Subject: RE: [tomcat] Re: Where do I place a servlet class One of the major differences between your actual version and the your previous one has to do with disabling the invoker servlet. I don't know if you've checked this before, but take a look at http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08 _02/default_pf.aspx Just to see if that's happening to you. José Ernesto Echeverría -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 09:14 a.m. To: Tomcat Users List Subject: [tomcat] Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribió: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Where do I place a servlet class
Hi, I added the servlet mapping entry but it's still not working. I have the class file in /dev_new/WEB-INF/classes/umJavaLib/. Does the class file need to go into a special directory of anything? servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet-mapping servlet-nameservUploadMedia/servlet-name url- pattern/dev_new/servlet/umJavaLib.servUploadMedia/url-pattern /servlet-mapping First try to get it to work in tomcat-standalone. It's the KISS principle. Do you realize what the above url-pattern means? With it, you can access your servlet at http://yourhost:yourport/yourwebapp/dev_new/server/umJavaLib.servUploadM edia. A more typical url-pattern would just be url-pattern/uploadMedia/url-pattern, and then you'd access your servlet at http://yourhost:yourport/yourwebapp/uploadMedia. If you're unclear on url-pattern and how it works, check out the Servlet Specification itself for details and examples. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Re: Where do I place a servlet class
I have a script that resets the web and apache servers, compiles the webapp classes, and deletes the classes in the work directory. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:20 PM To: Tomcat Users List Subject: Re: [tomcat] Re: Where do I place a servlet class QM escribi?: On Fri, Aug 20, 2004 at 12:04:10PM -0400, Diego, Emil wrote: : I saw that. I've read a couple of negative things about enabling the invoker. : It seems it's less secure and stuff. I figured it would be better to use : explicit mapping, but cant get that to work. I'll keep trying but if I cant : get it working I guess I'll just enable the invoker. That should work as a short-term goal, but you'd do yourself a favor to find out what's going on. If the servlet mapping works through the invoker then it must work through a manual mapping, as well. I missed the earlier posts: what's the error in the Tomcat logs? Did you recompile your webapp with the newer Tomcat JARs, etc.? There's a brief upgrade guide on my website (brandxdev.net). That covers the 4 -5 upgrade but some of it is container-neutral. Also, if everything gets wacky and you're desperate, delete everything under your work directory, on the tomcat root and see what happens it helps sometimes - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [tomcat] Re: Where do I place a servlet class
I don't have tomcat configured to work standalone. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:23 PM To: 'Tomcat Users List' Subject: RE: [tomcat] Re: Where do I place a servlet class Ok. I don't like the invoker either. I thought you were trying only to have things working as before, that's why I pointed out that difference. Starting from scratch, let's try to break the problem into smaller pieces. Have you checked if the invocation works right without passing thru Apache/mod_jk2? That is? Have you tried the http://localhost:8080/route-to-servlet-dir/servlet/ServletName Invocation directly and then what's the message you get from tomcat or logs, etc. José Ernesto Echeverría -Original Message- From: Diego, Emil [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 10:04 a.m. To: Tomcat Users List Subject: RE: [tomcat] Re: Where do I place a servlet class I saw that. I've read a couple of negative things about enabling the invoker. It seems it's less secure and stuff. I figured it would be better to use explicit mapping, but cant get that to work. I'll keep trying but if I cant get it working I guess I'll just enable the invoker. Emil Diego Website Administrator University of Miami School of Business 305.284.5449 -Original Message- From: Ernesto Echeverría [mailto:[EMAIL PROTECTED] Sent: Friday, August 20, 2004 12:01 PM To: 'Tomcat Users List' Subject: RE: [tomcat] Re: Where do I place a servlet class One of the major differences between your actual version and the your previous one has to do with disabling the invoker servlet. I don't know if you've checked this before, but take a look at http://www.ftponline.com/javapro/2002_11/online/servletsjsp_bkurniawan_11_08 _02/default_pf.aspx Just to see if that's happening to you. José Ernesto Echeverría -Original Message- From: John Villar [mailto:[EMAIL PROTECTED] Sent: Viernes, 20 de Agosto de 2004 09:14 a.m. To: Tomcat Users List Subject: [tomcat] Re: Where do I place a servlet class You need to include yet another directive in your web.xml file called servlet-mapping, search the web for it Diego, Emil escribió: I have upgraded my system from apache 3 and tomcat 3 and am now running tomcat 4.1.27-13 and apache 2.0.49-4. My webapp can't find a servlet after the upgrade. It's called servUploadMedia. I had it in my classes directory and it was configured in my web.xml file: web-app display-nameUpgrade Test/display-name session-timeout900/session-timeout servlet servlet-nameservUploadMedia/servlet-name servlet-classumJavaLib.servUploadMedia/servlet-class load-on-startup1/load-on-startup /servlet servlet servlet-nameCalendarServlet/servlet-name servlet-classcom.jsos.calendar.CalendarServlet/servlet-class init-param param-nameconfig/param-name param-value/sections/plcmt/students/config//param-value /init-param /servlet !-- Default directory Files -- welcome-file-list welcome-fileindex.jsp/welcome-file welcome-fileintro.jsp/welcome-file welcome-fileindex.html/welcome-file welcome-fileindex.htm/welcome-file /welcome-file-list /web-app Does tomcat 4 look for servlets in a different directory in this new version ? Emil Diego Website Administrator University of Miami School of Business --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.736 / Virus Database: 490 - Release Date: 8/9/2004 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL