I found 1 mistake in your web.xml file. The matching tag for <servlet-name>
is written as </servlet-class>.
Hope this helps.
srini

-----Original Message-----
From: Arnaud D [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject: [Slightly Offtopic] Tea with Tomcat


I sent a message to the list a couple of weeks ago asking for alternatives
for out.println("<html></html>"); ugly code

I since discovered many products called frameworks if I understand well,
like Struts, webmacro, tea, ECS and many thing on sourceforge.net

I've tried to install Tea (opensource.go.com) and I didn't succeed, I
modified all the files, but I get an exception when I start tomcat :
----------------------
ERROR reading C:\jakarta-tomcat\webapps\teaservlet\WEB-INF\web.xml
java.lang.NullPointerException
        at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:221)
        at
org.apache.tomcat.context.WebXmlReader.processFile(WebXmlReader.java:
141)
        at
org.apache.tomcat.context.WebXmlReader.contextInit(WebXmlReader.java:
55)
        at
org.apache.tomcat.core.ContextManager.initContext(ContextManager.java
:227)
        at
org.apache.tomcat.core.ContextManager.init(ContextManager.java:201)
        at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:156)
        at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
----------------------
This is my web.xml file located in
c:\jakarta-tomcat\webapps\teaservlet\WEB-INF\web.xml :
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app>
 <servlet>
   <servlet-name>
      teaservlet
   </servlet-class>
??? should be </servlet-name>?
   <servlet-class>
     com.go.teaservlet.TeaServlet
   </servlet-class>
   <init-param>
     <param-name>
       properties.file
     </param-name>
     <param-value>
      /jakarta-tomcat/webapps/teaservlet/WEB-INF/TeaServlet.properties
     </param-value>
   </init-param>
 </servlet>
 <servlet-mapping>
   <servlet-name>
     teaservlet
   </servlet-name>
   <url-pattern>
     /dynamic/*
   </url-pattern>
 </servlet-mapping>
</web-app>
-----------------
I added the following line to server.xml
<Context path="/tea" docBase="webapps/teaservlet" debug="0"
reloadable="true">
        </Context>

And I of course, added the TeaServlet.jar to my CLASSPATH

All of this is not working, please help !

___________________________________________________________________________
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

Reply via email to