I have read that I must add xerces.jar to project to add support for
XML.

I have project in Eclipse with Google Plugin that works fine without
XML.
I added xerces.jar to war/WEB-INF/lib

I have not changed any line of code. just added jar.
It still works in hosted mode but does not work when I deploy to app
engine.


Uncaught exception from servlet
java.lang.Error: org.xml.sax.SAXNotSupportedException:
http://xml.org/sax/features/external-general-entities
        at org.mortbay.xml.XmlParser.setValidating(XmlParser.java:132)
        at org.mortbay.xml.XmlParser.<init>(XmlParser.java:97)
        at org.mortbay.jetty.webapp.TagLibConfiguration.configureWebApp
(TagLibConfiguration.java:202)
        at org.mortbay.jetty.webapp.WebAppContext.startContext
(WebAppContext.java:1215)
        at org.mortbay.jetty.handler.ContextHandler.doStart
(ContextHandler.java:500)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
448)
        at org.mortbay.component.AbstractLifeCycle.start
(AbstractLifeCycle.java:40)
        at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler
(AppVersionHandlerMap.java:190)
        at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.getHandler
(AppVersionHandlerMap.java:167)
        at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:127)
        at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4823)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:4821)
        at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
        at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
359)
        at com.google.net.rpc.impl.Server$2.run(Server.java:820)
        at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
        at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:516)
        at com.google.net.rpc.impl.Server.startRpc(Server.java:775)
        at com.google.net.rpc.impl.Server.processRequest(Server.java:348)
        at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:436)
        at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
        at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
        at com.google.net.async.Connection.handleReadEvent(Connection.java:
428)
        at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:762)
        at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:207)
        at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
        at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
        at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:374)
        at java.lang.Thread.run(Unknown Source)
<br>Unexpected exception from servlet: java.lang.Error:
org.xml.sax.SAXNotSupportedException: 
http://xml.org/sax/features/external-general-entities<br>
<br></pre></body></html>


My code does not call xerces or any other XML stuff. I just added it.

Is there any documentation how o add xml support in GAE project?

Thanks, Max
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to