File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Tomcat and the fly likes Fatal Eorror Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Fatal Eorror" Watch "Fatal Eorror" New topic
Author

Fatal Eorror

Naveed Ali
Ranch Hand

Joined: Aug 30, 2002
Posts: 41
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

Joined: May 29, 2003
Posts: 1258
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.


Nathaniel Stodard<br />SCJP, SCJD, SCWCD, SCBCD, SCDJWS, ICAD, ICSD, ICED
Naveed Ali
Ranch Hand

Joined: Aug 30, 2002
Posts: 41
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Fatal Eorror