Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Error deploying webapp created in Netbeans

807567Jun 15 2007 — edited Jun 21 2007
Hi,

I've created a fairly simple webapp in Netbeans which I have successfully deployed to Tomcat and the Sun Java Application Server.

However when I tried to deploy it to Sun Java System Web Server, I'm getting an error. The error log shows the following:
[15/Jun/2007:16:35:21] warning ( 5936): WEB9200: sun-web.xml DTD Version with public ID = [-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN] and system ID = [http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd] not found in the local respository. Using DTD version with system ID = [http://www.sun.com/software/dtd/appserver/sun-web-app_2_4-1.dtd] instead.
[15/Jun/2007:16:35:21] failure ( 5936): PWC3014: Parse error in application web.xml
org.xml.sax.SAXException: Unable to find local schema for web-app_2_5.xsd
	at org.apache.catalina.util.SchemaResolver.resolveEntity(SchemaResolver.java:159)
	at com.sun.org.apache.xerces.internal.util.EntityResolverWrapper.resolveEntity(EntityResolverWrapper.java:148)
	at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.resolveEntity(XMLEntityManager.java:701)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaLoader.resolveDocument(XMLSchemaLoader.java:599)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.findSchemaGrammar(XMLSchemaValidator.java:2454)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.handleStartElement(XMLSchemaValidator.java:1807)
	at com.sun.org.apache.xerces.internal.impl.xs.XMLSchemaValidator.startElement(XMLSchemaValidator.java:705)

...
The start of my web.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
I'm not really sure what's going on - any suggestions?

Many thanks,
Andrew.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 19 2007
Added on Jun 15 2007
2 comments
267 views