Schema error: prefix : [xml] cannot be resolved to a URI.

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Schema error: prefix : [xml] cannot be resolved to a URI.

Patrick Lightbody-2
Schema error: prefix : [xml] cannot be resolved to a URI.

Any ideas what this means? Im running under JDK 1.5 and my classpath includes jaxp-api.jar and xml-apis.jar.

Looks like Jetty is using a less-advanced XML parser. I saw something similar in the past, but that was when I was running 1.4.

Patrick

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: prefix : [xml] cannot be resolved to a URI.

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: no attribute named "base" was defined in schema : .

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: prefix : [xml] cannot be resolved to a URI.

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: no attribute named "lang" was defined in schema : .

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: prefix : [xml] cannot be resolved to a URI.

WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema error: no attribute named "space" was defined in schema : .

WARN : Configuration error on D:\dev\jive4\forum\editions\expert\skin

java.lang.NullPointerException

        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)

        at org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)

        at org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)

        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)

        at org.mortbay.util.Container.start(Container.java:72)

        at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)

        at org.mortbay.util.Container.start(Container.java:72)

        at Launcher.main(Launcher.java:123)

org.mortbay.util.MultiException[java.lang.NullPointerException]

        at org.mortbay.http.HttpServer.doStart(HttpServer.java:731)

        at org.mortbay.util.Container.start(Container.java:72)

        at Launcher.main(Launcher.java:123)

java.lang.NullPointerException

        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)

        at org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)

        at org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)

        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)

        at org.mortbay.util.Container.start(Container.java:72)

        at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)

        at org.mortbay.util.Container.start(Container.java:72)

        at Launcher.main(Launcher.java:123)

java.lang.NullPointerException

        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)

        at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)

        at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)

        at org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)

        at org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)

        at org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)

        at org.mortbay.util.Container.start(Container.java:72)

        at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)

        at org.mortbay.util.Container.start(Container.java:72)

        at Launcher.main(Launcher.java:123)

_________________
Patrick Lightbody
Professional Services
Jive Software
[hidden email]
www.jivesoftware.com

317 SW Alder, Ste 500
Portland, OR 97204
ph (503) 295-6552
fx (503) 961-1047

Reply | Threaded
Open this post in threaded view
|

Re: Schema error: prefix : [xml] cannot be resolved to a URI.

Greg Wilkins-5

Patrick,

as the stack is in configureDefaults, I assume it is having problems
parsing defaultweb.xml (or whatever you pass as the default descriptor)

What is at line 26 col 18?

Also with 1.5, you should not need to include xml-api.jar

You can try removing all XML jars from the classpath and turning off
xml validation, then jetty will just use the JVM supplied parser.

regards



Patrick Lightbody wrote:

> Any ideas what this means? I’m running under JDK 1.5 and my classpath
> includes jaxp-api.jar and xml-apis.jar.
>
> Looks like Jetty is using a less-advanced XML parser. I saw something
> similar in the past, but that was when I was running 1.4.
>
> Patrick
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: prefix : [xml] cannot be resolved to a URI.
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: no attribute named "base" was defined in schema : ..
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: prefix : [xml] cannot be resolved to a URI.
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: no attribute named "lang" was defined in schema : ..
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: prefix : [xml] cannot be resolved to a URI.
>
> WARN : ERROR@null line:26 col:18 : org.xml.sax.SAXParseException: Schema
> error: no attribute named "space" was defined in schema : ..
>
> WARN : Configuration error on D:\dev\jive4\forum\editions\expert\skin
>
> java.lang.NullPointerException
>
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
>
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)
>
>         at
> org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at Launcher.main(Launcher.java:123)
>
> org.mortbay.util.MultiException[java.lang.NullPointerException]
>
>         at org.mortbay.http.HttpServer.doStart(HttpServer.java:731)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at Launcher.main(Launcher.java:123)
>
> java.lang.NullPointerException
>
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
>
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)
>
>         at
> org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at Launcher.main(Launcher.java:123)
>
> java.lang.NullPointerException
>
>         at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1094)
>
>         at javax.xml.parsers.SAXParser.parse(SAXParser.java:375)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:216)
>
>         at org.mortbay.xml.XmlParser.parse(XmlParser.java:234)
>
>         at
> org.mortbay.jetty.servlet.XMLConfiguration.configureDefaults(XMLConfiguration.java:159)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.configureDefaults(WebApplicationContext.java:414)
>
>         at
> org.mortbay.jetty.servlet.WebApplicationContext.doStart(WebApplicationContext.java:463)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at org.mortbay.http.HttpServer.doStart(HttpServer.java:753)
>
>         at org.mortbay.util.Container.start(Container.java:72)
>
>         at Launcher.main(Launcher.java:123)
>
> _________________
> Patrick Lightbody
> Professional Services
> Jive Software
> [hidden email]
> www.jivesoftware.com_
> 317 SW Alder, Ste 500
> Portland, OR 97204
> ph (503) 295-6552
> fx (503) 961-1047
>



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Jetty-support mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/jetty-support