Re: Running Servlet in Tomcat
Reading the provided documentation is usually a good place to start. Singh, VilishKumar wrote: I have done that. I have not used any package in my servlet. You must place all your class files in packages. http://jakarta.apache.org/tomcat/faq/classnotfound.html Can u describe the steps precisely to run the first servlet in tomcat http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Running Servlet in Tomcat
Thanks all, I have done it. Actually I was creating the separate servlet and servlet-mapping tags in addition to the already existing one. When I put the entries inside the these existing tags, it worked Thanks again Regards, Vilish -Original Message- From: Mark Thomas [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 11:32 AM To: Tomcat Users List Subject: Re: Running Servlet in Tomcat Reading the provided documentation is usually a good place to start. Singh, VilishKumar wrote: I have done that. I have not used any package in my servlet. You must place all your class files in packages. http://jakarta.apache.org/tomcat/faq/classnotfound.html Can u describe the steps precisely to run the first servlet in tomcat http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/index.html Mark - 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: Running Servlet in Tomcat
Hi Copy your class file in webapps/YourApplication/WEB-INF/classes folder and restart the server,it will work. Thanks Parthi On 9/29/05, Singh, VilishKumar [EMAIL PROTECTED] wrote: Hi all, I have compiled my servltet class and but hen I put the .class file into the webapps/ROOT/WEB-INF/classes folder And try to access it with http://hostname:port/servlet/servlet-name. Page not found error occurs. Where is the problem, please help Regards, Vilish -Original Message- From: Prema Kumar [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 10:08 AM To: tomcat-user@jakarta.apache.org Subject: Jsps Hi, I have an Application which is J2EE Architecture and working with Resin 2.1.6 Now we are trying to bring up my application using Tomcat. What necessary modifications needs to be done in Tomcat web.xml file and server.xml Prem The information in this mail is confidential and is intended solely for the addressee. Access to this mail by anyone else is unauthorized. Any copying or further distribution beyond the original recipient is not intended and may be unlawful. The opinion expressed in this mail is that of the sender and does not necessarily reflect that of Titan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Servlet in Tomcat
Hi singh, try to put package declaration for the servlets and then redeploy.This may work. Regards, Sreekanth
Re: Re: Running Servlet in Tomcat
We're sorry, you have reached an email address at YahooGropus, not YahooGroups. Your message has not been delivered to the Yahoo Group intended. Please re-send your email to the correct address. We apologize for the inconvenience. YahooGropus Staff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Re: Running Servlet in Tomcat
Sorry, icouldn't get u.Please help Regards, Sreekanth
RE: Running Servlet in Tomcat
Hi Shashikant, I have done that. I have not used any package in my servlet. Can u describe the steps precisely to run the first servlet in tomcat thanks Regards, Vilish -Original Message- From: shashikant [mailto:[EMAIL PROTECTED] Sent: Thursday, 29 September 2005 11:05 AM To: Singh, VilishKumar Subject: Running Servlet in Tomcat hi vilish, Check for the invoker servlet and its mapping in the tomcat/conf/web.xml file . Uncomment them and ur servlets will start working. hope this works for u. Regards Shashikant __ Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running servlet on Tomcat
This is a FAQ. By default, the Invoker servlet is disabled for everything but the /examples webapp for security reasons. It really shouldn't be enabled for the /examples webapp, either, but I'm sure that's a low priority for the dev team. If you want your servlet to be available, you need to either: - enable the Invoker servlet (not recommended) - explicitly map your servlet in web.xml using servlet and servlet-mapping elements: servlet servlet-nameMyServlet/servlet-name servlet-classcom.myApp.MyServlet/servlet-class /servlet servlet-mapping servlet-nameMyServlet/servlet-name url-pattern/MyServlet/url-pattern /servlet-mapping Check the docs, check the release notes for more info. John -Original Message- From: Tan van Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:05 AM To: [EMAIL PROTECTED] Subject: running servlet on Tomcat Hi, I have a problem about running servlet in Tomcat. My system information: Apache Tomcat v4.1.18 Java 2 SDK 1.3.1_07 The problem is that I can't run my servlet program placed in ROOT/WEB-INF/classes directory with the url: http://localhost:8080/servlet/Myprogram I have done everything and read a lot of documentation, but still the same error appear: The 404 Error:The requested resource (/servlet/Myprogram) is not available. But when I place my program source and class files in the webapps/examples/WEB-INF/classes directory, it ran properly.. It seems like something wrong with the classloader.. I really appriciate your reply! Thanks in advance! - Tan Nguyen - - 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: running servlet on Tomcat
I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve Turner, John [EMAIL PROTECTED] wrote: This is a FAQ. By default, the Invoker servlet is disabled for everything but the /examples webapp for security reasons. It really shouldn't be enabled for the /examples webapp, either, but I'm sure that's a low priority for the dev team. If you want your servlet to be available, you need to either: - enable the Invoker servlet (not recommended) - explicitly map your servlet in web.xml using servlet and servlet-mapping elements: MyServlet com.myApp.MyServlet MyServlet /MyServlet Check the docs, check the release notes for more info. John -Original Message- From: Tan van Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:05 AM To: [EMAIL PROTECTED] Subject: running servlet on Tomcat Hi, I have a problem about running servlet in Tomcat. My system information: Apache Tomcat v4.1.18 Java 2 SDK 1.3.1_07 The problem is that I can't run my servlet program placed in ROOT/WEB-INF/classes directory with the url: http://localhost:8080/servlet/Myprogram I have done everything and read a lot of documentation, but still the same error appear: The 404 Error:The requested resource (/servlet/Myprogram) is not available. But when I place my program source and class files in the webapps/examples/WEB-INF/classes directory, it ran properly.. It seems like something wrong with the classloader.. I really appriciate your reply! Thanks in advance! - Tan Nguyen - - 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more
RE: running servlet on Tomcat
Howdy, I do not fully understand why they disable the servlet invoker by default. It's a security matter addressed in various release notes, and in many questions on this list. Search the tomcat-user list archives at AIMS: http://marc.theaimsgroup.com/?w=2 In general, Tomcat is used for learning purpose. Not true. Many people use tomcat in production settings of various types. Having to modify web.xml for each webapp seems a lot of work. It's usually not a lot of work. How much you put in web.xml depends on your design. You can always hard-code things ;) You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. There is no FAQ that the listserv can automatically get you. Most of the frequently asked on the list are covered in the HOW-TO pages in the tomcat documentation part of http://jakarta.apache.org/tomcat. John said your question IS a faq, i.e. frequently-asked, and he gave you the answer. He didn't say your question was IN a faq document. Yoav Shapira Millennium ChemInformatics 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: running servlet on Tomcat
There isn't one, though there are a couple in the works and due soon. My point was that the topic comes up just about every day. Even without searching the list archives, being a member on the list for a day or two and reading the traffic (always a good thing to do when joining) would see this topic come up and get answered. If the Invoker servlet is enabled, you can use a specially-crafted URL to get the source of JSP pages. Maybe in some cases this is no big deal, but in some cases it can be a huge deal, as in a scenario where someone puts usernames, passwords, and connection URLs into their JSP source. In general, any exploit that allows the viewing of source in raw form, whether or not that source has anything valuable in it, is considered a security flaw that needs to be fixed. This is true regardless of the technology used: ASP, JSP, PHP, Cold Fusion, whatever. John -Original Message- From: Steve Guo [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 9:56 AM To: Tomcat Users List Subject: RE: running servlet on Tomcat I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve Turner, John [EMAIL PROTECTED] wrote: This is a FAQ. By default, the Invoker servlet is disabled for everything but the /examples webapp for security reasons. It really shouldn't be enabled for the /examples webapp, either, but I'm sure that's a low priority for the dev team. If you want your servlet to be available, you need to either: - enable the Invoker servlet (not recommended) - explicitly map your servlet in web.xml using servlet and servlet-mapping elements: MyServlet com.myApp.MyServlet MyServlet /MyServlet Check the docs, check the release notes for more info. John -Original Message- From: Tan van Nguyen [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 5:05 AM To: [EMAIL PROTECTED] Subject: running servlet on Tomcat Hi, I have a problem about running servlet in Tomcat. My system information: Apache Tomcat v4.1.18 Java 2 SDK 1.3.1_07 The problem is that I can't run my servlet program placed in ROOT/WEB-INF/classes directory with the url: http://localhost:8080/servlet/Myprogram I have done everything and read a lot of documentation, but still the same error appear: The 404 Error:The requested resource (/servlet/Myprogram) is not available. But when I place my program source and class files in the webapps/examples/WEB-INF/classes directory, it ran properly.. It seems like something wrong with the classloader.. I really appriciate your reply! Thanks in advance! - Tan Nguyen - - 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] - Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, and more - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: running servlet on Tomcat
I have an unofficial FAQ here: http://mywebpages.comcast.net/funkman/ and http://tomcatfaq.sourceforge.net/ I haven't been 'advertising' it much yet since content is still kind of lite and organization is not the greatest. Your particular question is not there yet - but it is addressed in TOMCAT's readme. The disabling of /servlet/ by default is due to a security hole. -Tim Steve Guo wrote: I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: running servlet on Tomcat
More content is coming!! :) :) John -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 25, 2003 10:11 AM To: Tomcat Users List Subject: Re: running servlet on Tomcat I have an unofficial FAQ here: http://mywebpages.comcast.net/funkman/ and http://tomcatfaq.sourceforge.net/ I haven't been 'advertising' it much yet since content is still kind of lite and organization is not the greatest. Your particular question is not there yet - but it is addressed in TOMCAT's readme. The disabling of /servlet/ by default is due to a security hole. -Tim Steve Guo wrote: I do not fully understand why they disable the servlet invoker by default. In general, Tomcat is used for learning purpose. Having to modify web.xml for each webapp seems a lot of work. You refered to FAQ, but when I tried to get it from the list server, I got, FAQ - Frequently asked questions of the [EMAIL PROTECTED] list. None available. Where is the FAQ? Thanks, Steve - 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: Running servlet on Tomcat with IIS
Did you add a WEB-INF and web.xml to C:/InetPub/wwwroot and put the servlet under WEB-INF? Also, path= is the preferred way to specify the root context. Cheers, Larry -Original Message- From: Yuval [mailto:[EMAIL PROTECTED]] Sent: Sunday, August 12, 2001 7:01 AM To: Tomcat-User (E-mail) Subject: Running servlet on Tomcat with IIS Hi, I'm running Tomcat with IIS5.0, The servlet on the examples folder working fine but when I try to run the servlet on the web site its not working I did the following configuration: on the server.xml: Context path=/ docBase=C:/InetPub/wwwroot crossContext=false debug=0 reloadable=true /Context in the IIS I add the Jakarta in the isapi_filter please advise. Regards, Yuval Domain The Net Technologies Ltd. 6 Weitzman Blvd. Ramat-Hasharon Israel 47211 Tel: 972-3-5474443 Fax: 972-3-5474446 www.DomainTheNet.com “This email message and any attachments hereto are intended only for use by the addressee(s) named above, and may contain legally privileged and/or confidential information. If you are not the intended addressee, you are hereby kindly notified that any dissemination, distribution or copying of this email and any attachments hereto is strictly prohibited. If you have received this email in error, kindly delete it from your computer system, and notify us at the telephone number or email address appearing above. Thank you