2009/2/5 Caldarale, Charles R <chuck.caldar...@unisys.com>: >> I created a context element in META-INF, filename atom.xml >> contents are >> >> <Context reloadable="true"/> > > O.K. > >> Nothing showing in the log. >> http://marge:8080/atom/ shows >> >> type Status report >> message /atom/ >> description The requested resource (/atom/) is not available. > > And what is under the webapps/atom directory (or inside the webapps/atom.war > file)?
[dpaw...@marge webapps]$ tree atom atom |-- META-INF | |-- context.xml | `-- context.xml~ `-- WEB-INF |-- classes | `-- SimpleServlet.class |-- lib | |-- com.noelios.restlet.ext.servlet_2.5.jar | |-- com.noelios.restlet.jar | `-- org.restlet.jar |-- web.xml `-- web.xml~ > What's in WEB-INF/web.xml of your webbapp? [dpaw...@marge webapps]$ cat atom/WEB-INF/web.xml <?xml version="1.0" encoding="ISO-8859-1"?> <web-app xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5"> <description> Servlet example using atom. </description> <display-name>Atom example</display-name> <!-- Define servlets that are included in the application --> <servlet> <servlet-name>atom</servlet-name> <servlet-class>SimpleServlet</servlet-class> </servlet> <servlet-mapping> <servlet-name>atom</servlet-name> <url-pattern>/atom/*</url-pattern> </servlet-mapping> Do you have any welcome files in your webapp? I had an index.html in .../atom http://marge:8080/atom/index.html showed that fine. > >> Hence my request for a 'hello' world to try and get a (any?) >> servlet working > > Do the sample servlets that come with Tomcat work? Most of those are small > and easy to modify for experimentation purposes. <grin/> 'Thats a view' as my manager used to say. Yes. http://marge:8080/examples/servlets/servlet/HelloWorldExample works fine. I was put off by the complexity of the examples hence avoided copying them and 'stripping out' the ??? unecessary parts. regards (Help appreciated btw) -- Dave Pawson XSLT XSL-FO FAQ. Docbook FAQ. http://www.dpawson.co.uk --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org