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>
<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