Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Fatal Eorror

 
Naveed Ali
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have created new application but when i start Tomcat 5.0 it prints the following error in DOS windown for my application while it loads all its other applications successfully and i can
use the examples of servlets & JSP.

Error is:

Installing web application at context path /myapp from URL D:/Jakarta-tomcat-5\webapps\myapp
jul 15,2004 11:50:00 AM org.appache.commons.digester.Digester fatal error
SEVER: Parse Fatal Eorror at line 2 column 6: The processing instruction target matching "[xX][mM][lL] is not allowed
org.xml.sax.SAXParse Exception: The processing instruction target matching
"[xX][mM][lL] is not allowed

Directory structure is,
/webapps/myapp/WEB-INF/web.xml
/webapps/myapp/WEB-INF/classes/ (all java classes are here)
/webapps/myapp/myapp.xml

---contents of myapp.xml---
<Context path="/myapp" docbase="" debug = "0" privileged="true">
</Context>

---contents of web.xml---
<web-app>
<servlet>
<servlet-name>s1</servlet-name>
<servlet-class>classes.homeservlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>s1</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
</web-app>

needs help.

Thnx
Naveed
 
Nathaniel Stoddard
Ranch Hand
Posts: 1258
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SEVER: Parse Fatal Eorror at line 2 column 6: The processing instruction target matching "[xX][mM][lL] is not allowed

Apparently, it doesn't like that. Maybe what you mean is:

That's just a guess. I haven't messed around with Digest too much.
 
Naveed Ali
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nathaniel,

You might have misunderstood and not like that what
you have said but it is exactly like what i have written.
Any way, i need a quick solution. Can any body lists the steps
to create a new application using Tomcat 5.0 while not using the
default setup (servlets & invoker)???

thnx.

Naveed
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic