Hello Mike, Thanks for your answer. I tried this before I created my own context and it worked well (I have written several servlets - and all are doing fine). And the web.xml is also correct -> tomcat identifies my context and I can also call the Servlets without the package-statement.
regards, Marko Mike McGuinness wrote: > > Marko, > > Unless you're doing something special with your context, you > don't *have* to add a section in server.xml. > > So, to troubleshoot I'd do the following: > > 1. Leave server.xml alone and get the examples working. > 2. Create your directory structure (including your servlets) under the > webapps directory. > 3. make sure your web.xml under your new context is correct. > 4. Re-start tomcat. > > If you've got your directory structure set up proberly (I just copy > the examples structure that come with tomcat), you should be able to > run your servlets. > > So, if the examples run under > http://host:8080/examples/servlet/HelloWorldExample > > Then, after re-start, you should be able to run under > http://host:8080/<contextname>/servlet/MyServlet > > where <contextname> is the name of the directory under webapps. > > Hope this helps, good luck. Be paitent, tomcat development is worth the > effort. > > Mike > > Marko Klaus wrote: > > > Hello, > > I�ve got another problem with the package-concept in Java and the > > directory concept from tomcat. I�ve choosen the same directory-tree for > > my servlets but in an own context. As it is written in the docs I > > defined the context: siemens.Service in the Server.xml file. > > I saved the web.xml for my context in siemens.Service. After this I > > created WEB-INF and the subdirectory classes where I puted my servlets > > in. > > without my import-statement everything is fine. And I know that the "-" > > is not nice for imports. > > > > Is there any way to handle the WEB(-:INF Problem. > > > > thanks > > > > ___________________________________________________________________________ > > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > > of the message "signoff SERVLET-INTEREST". > > > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > > Resources: http://java.sun.com/products/servlet/external-resources.html > > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > > ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
