Re: STEPS TO RUN SERVLETS IN TOMCAT 6.0
Kiran, chapter three of Apache Tomcat 6.0 documentation is named First Webapp. It does walk you through to creating and your first webapp. Please read it, and if you get stuck with something regarding that document, then come back and desctibe the part of the document with which you're having problems. It might well be that just reading through the Deployment part of the tutorial will help you solve your immediate problem. Here's a direct link to the tutorial: http://tomcat.apache.org/tomcat-6.0-doc/appdev/index.html -- ..Juha kiran kumar wrote: HI SIR/MADAM, THIS IS KIRAN KUMAR.K (B.TECH(INFORMATION TECHNOLOGY) ).I AM DOING A PROJECT WHICH NEEDS THE SERVLETS TO BE INCLUDED IN THAT PROJECT.BUT WHEN I AM REQUESTING THE FILE FROM THE TOMCAT(ie http://localhost:8080/my working directory/my file name) Regarding this please help me on this what steps i need to take to run servlets on tomcat 6.0: what i done is: 1. first i installed J2SE1.4.2_17 and then updated with J2SE update 6. 2.then i installed the tomcat 6.0 it is working ie i am getting the tomcat home page. 3.i installed tomcat on windows the path is C:\Program Files\Apache Software Foundation\Tomcat 6.0. 4.then i created the my folder named as servlet under the webapps directory ie C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\servlets ie servlets is my folder name of the project 5.under this servlets directory again i created WEB-INF folder in that again i created classes folder and copied the web.xml file (which resides in the webapps directory ie C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\examples\WEB_INF folder) to the WEB-INF folder 6.i changed the servlet-name servlet-mapping tags in the web.xml file 7.then i placed the compiled class file in C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\servlet\WEB-INF\classes folder. 8.after this i am requesting my file from the http://localhost:8080/servlet/my file name 9.then it is prompting an error like /servlet/my file name is not found. PLEASE HELP ME ON THIS TOPIC.AND PLEASE SEND ME THE DETAILED STEPS NEEDED TO RUN SERVLETS ON TOMCAT 6.0. PLEASE SEND THE STEP WISE ACTIONS TO RUN SERVLETS.BECAUSE I AM NEW TO TOMCAT 6.0 THANKING YOU - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Virtual Hosting with Auto Deploy
Chuck, I think you are right that it is a permission problem. Each appBase is a separate hosting account having a different directory owner. I'm concerned that I'll weaken security if I grant group write access. In this case, I can probably deal with running apps from the war, or manually expanding if necessary. Thanks, Vin -Original Message- From: Caldarale, Charles R [EMAIL PROTECTED] Sent: 5/31/2008 3:59:11 PM To: users@tomcat.apache.org Subject: RE: Virtual Hosting with Auto Deploy From: Vin Miller [mailto:[EMAIL PROTECTED] Subject: Re: Virtual Hosting with Auto Deploy I've tried a bunch of different configurations and it seems that nothing will result in the war files being unpacked. Permissions problem? Does the uid Tomcat is running under have full access to all of the appBase directories? - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] .
RE: Exception handling Container property change
Hello. This exception stack trace is very distracting to the folks who watch for problems in the log. Could you pl tell me if writing my own Custom VirtualWebappClassLoader requires me to intrument the classloader woth a specific MBean? Thanks, /U /U wrote: Thanks! It looks like this is related to the long conversation we had about using VirtualWebappClassLoader a couple of months ago. I needed to use VirtualWebappLoader and hence chose to extend WebappLoader (CustomWebappClassLoader) and install the class in ${CATALINA_BASE}/lib. This classloader is used with multiple contexts but in loading a specific context alone, Tomcat yields this error: Caused by: java.lang.Exception: ManagedBean is not found with CustomWebappClassLoader at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:397) ... 46 more Is my custom WebappLoader supposed to provide an MBean? If I choose not to, would it be a fatal error (as in one which would abort the context)? Regards, /U -- Original message -- From: Caldarale, Charles R [EMAIL PROTECTED] From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Subject: Exception handling Container property change Everytime I load my app context, the log yields the following MBean exception. Mar 3, 2008 9:12:30 PM org.apache.catalina.mbeans.ServerLifecycleListener propertyChange SEVERE: Exception handling Container property change javax.management.MBeanException at org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:398) Look further in the logs - there should be a nested exception related to the one above with this text: ManagedBean is not found with mname The actual mname will tell you what MBean can't be created. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/%22Exception-handling-Container-property-change%22-tp15820562p17590598.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]