Thanks for explanation. Now I have changed the files basely you mail and now situation is following: I am trying to develop a new servlet:
/opt/secm/servlet directory has WEB-INF structure with class file and web.xml file. What rights has to have direcotry servlet and all subdirectories. In the web.xml file is: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"> <web-app> <servlet> <servlet-name>SecMServlet</servlet-name> <servlet-class>SecMServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>SecMServlet</servlet-name> <url-pattern>/SecM/servlet/SecMServlet</url-pattern> </servlet-mapping> </web-app> In /etc/tomcat55/Catalina/localhost/SecMServlet.xml is defined: <Context docBase="/opt/secm/servlet" crossContext="false" debug="0" reloadable="false" > </Context> After this configuration WEB browser show me: HTTP 400 - BAD Request If the content file has the name SecM than I received HTTP 404 - The requested resource is not available. Could you please tell me where I can have a problem? Thank you in advance regards / S pozdravem Petr Hráček -----Original Message----- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Monday, June 15, 2009 3:14 PM To: Tomcat Users List Subject: RE: Beginner with apache > From: Hracek, Petr [mailto:petr.hra...@siemens-enterprise.com] > Subject: RE: Beginner with apache > > Suse gyus are not responsible for this step. > Now it has to be used tomcat-5.5. or distro package from SuSE. If it's the package from SuSE, then the SuSE guys *are* responsible. I would highly recommend that you use a standard Tomcat downloaded from tomcat.apache.org and avoid the confusion caused by the 3rd-party repackaging. As for your deployment questions, we need to get some terminology straight. You do not deploy servlets, you deploy webapps. The structure of a webapp is defined in the servlet spec, and must be adhered to. The servlet classes for a webapp must be placed in the webapp's directories WEB-INF/lib (if in a jar) or WEB-INF/classes (if not in a jar). The servlet spec is required reading. Each webapp is normally located immediately under the appBase directory of the <Host> defined in conf/server.xml. A webapp may be located outside of Tomcat's directory structure, by placing a <Context> element in conf/Catalina/[host]/[appName].xml with a docBase attribute that points to the location of the webapp. The path attribute is not to be used, and you should not place any <Context> element in conf/server.xml. The ROOT directory is special: it is the default webapp for the <Host>; do not place webapps under ROOT. - 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 unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org