The admin frontend doesn't show a context of my app. Others are there. I added a static file debugger.html to the root-folder of my app. The new structure is:
webapp - XML_RPC_Testserveur - - debugger.html - - WEB-inf - - - classes - - - - testserveur - - - - - XML_RPC_Servlet.class - - - libs - - - web.xml Called URL: http://localhost:8080/XML_RPC_Testserveur/debugger.html but got no reply On Fri, 1 Oct 2004 09:56:22 -0600, Ernesto Echeverría <[EMAIL PROTECTED]> wrote: > Have you tried checking the status of your webapp using tomcat's manager? > Here you can see if the app is loaded. Putting some static content in the > webapp folder (simple html and/or jsp should work). Finally some log > examining could work as well. > > José Ernesto Echeverría > [EMAIL PROTECTED] > > > > > -----Original Message----- > From: Christian Ruediger [mailto:[EMAIL PROTECTED] > Sent: Viernes, 01 de Octubre de 2004 09:37 a.m. > To: Shapira, Yoav > Cc: Tomcat Users List > Subject: [tomcat] Re: deploy simple HTTP doPost servlet to tomcat 5.0.28 > > Ok, > > The structure has been ok already. I just missed to write the WEB-INF dir in > my mail. > I corrected my web.xml file in that way: > <?xml version="1.0" ?> > > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http:// > www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/ > j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > <display-name>Testservlet</display-name> > ... the rest is, as it was > > I restarted Tomcat and tried again: > http://localhost:8080/XML_RPC_Testserveur > > i even tried: > http://localhost:8080/webapp/XML_RPC_Testserveur > > I had no success. > The app I wrote is not to complex. > What did I miss? > > Any Answers? > Christian > > On Fri, 1 Oct 2004 11:11:12 -0400, Shapira, Yoav <[EMAIL PROTECTED]> > wrote: > > > > Hi, > > Your web.xml is invalid: you can't have both 2.2 and 2.4 DTD/schema > declarations. Pick one, probably 2.4. > > > > Your app structure is invalid. Classes and libs go under > [webapp]/WEB-INF, not just [webapp]. > > > > Yoav Shapira > > Millennium Research Informatics > > > > > > > > > > >-----Original Message----- > > >From: Christian Ruediger [mailto:[EMAIL PROTECTED] > > >Sent: Friday, October 01, 2004 10:56 AM > > >To: Tomcat Users List > > >Subject: deploy simple HTTP doPost servlet to tomcat 5.0.28 > > > > > >Hi folks, > > >after trying the complex aproach without any success, I started a > > >lowtech approach. I simply want a small servlet deployed. Can't be > > >too complicated. > > > > > >What I have: > > >Apache Tomcat 5.0.28 Server > > >Win 2000 > > >j2sdk1.4.2_05 > > > > > >I constructed the following structure in tomcats webapp folder: > > > > > >webapp - > > > - classes > > > - testserveur > > > - XML_RPC_Servlet.class > > > - libs > > > - web.xml > > > > > >(dont bother the name XML_RPC_Servlet.its for future purposes. > > >currently only text is displayed -> see code below) > > > > > >web.xml is as follows: > > > > > ><!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.// DTD > > >WebApplication 2.2//EN" > > >"http://java.sun.com/j2ee/dtds/web-app_2.2.dtd"> > > > > > ><web-app xmlns="http://java.sun.com/xml/ns/j2ee" > > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > > > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > > >http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" > > > version="2.4"> > > > > > ><display-name>Testservlet</display-name> > > ><context-parameter> > > ><param-name>Lieblingsfarbe</param-name> > > ><param-value>rot</param-value> > > ></context-parameter> > > > <servlet> > > > <servlet-name>XML_RPC_Testserveur</servlet-name> > > > <servlet-class> > > > testserveur.RPC_XML_Servlet > > > </servlet-class> > > > </servlet> > > > <servlet-mapping> > > > <servlet-name>XML_RPC_Testserveur</servlet-name> > > > <url-pattern>/XML_RPC_Testserveur</url-pattern> > > > </servlet-mapping> > > ></web-app> > > > > > >code is as follows: > > > > > >public class XML_RPC_Servlet extends HttpServlet{ > > > > > > > > > > > > protected void doGet(HttpServletRequest req, > > > HttpServletResponse res) > > > throws ServletException, IOException > > > { > > > res.setContentType("text/html"); > > > PrintWriter out = res.getWriter(); > > > out.println("<HTML><HEAD><TITLE>Hello There!</TITLE>"+ > > > "</HEAD><BODY>Hello There!</BODY></HTML>"); > > > out.close(); > > > } > > > > > > public String getServletInfo() > > > { > > > return "HelloClientServlet 1.0 by Stefan Zeiger"; > > > } > > > } > > > > > >What i did: > > >-Started Tomcat (is configured to localhost:8080) -opened Browser > > >-typed http://localhost:8080/XML_RPC_Testserveur > > > > > >- got only a message that the resource is unavailable (in french): > > > > > >***************************** > > >type Rapport d'état > > >message /XML_RPC_Testserveur > > >description La ressource demandée (/XML_RPC_Testserveur) n'est pas > > >disponible. > > >****************************** > > > > > >I am searching for a reason of this for nearly a day. > > >Is there anyone who can help me? > > > > > >Thanx Christian > > > > > >--------------------------------------------------------------------- > > >To unsubscribe, e-mail: [EMAIL PROTECTED] > > >For additional commands, e-mail: [EMAIL PROTECTED] > > > > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]