You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xang-dev@xml.apache.org by Andy Glick <an...@home.com> on 2000/09/19 15:15:15 UTC

The 2 debug files from servlet 2.1 and a problem report

Mike,

I have created a version of the makefile that can conveniently compile
all of the directories in the project that contain Java code. I use GNU
make specific features, would you like to see it?

I have added the additional methods to DebugHTTPServletResponse and to
DebugHTTPServletRequest to at least allow them to compile in a Servlet
2.2 environment.  I wasn't sure what your actual goals for these 
classes was, so the additional methods are primarily stubs for 
compilation purposes.

I run standalone Tomcat 3.1 on Windows '98 with JDK 1.3 compiled 
against Xerces 1.0.3 and Xalan 1.0.1 jars which shipped with Cocoon 
1.74.

I have built the latest version of the system, from the CVS repository
and have tried it with the new versions of the samples, but I am getting 
the following error.  I have not changed the xang.cfg file, and the 
hello.xap file that the error complains about is located at the location
that is mentioned in the server console. Additionally, I would have to
assume from the "no get() javascript function" message in the browser
stack trace, that hello.xap is indeed being found and processed, but 
that upon failure the "cannot open" message is being produced.

Let me know what you think, ok?

Thanks,

-a 

Here is the stack trace displayed in the server console window:

HTTPRequestHandler.init(name,config,ctx):
config=webapps/ROOT/WEB-INF/xang.cfg
HTTPRequestHandler.Initializing session manager with servlet context
DynamicDocument.load(): EXCEPTION: Unable to load
H:\devel3\jakarta-tomcat\webapps\ROOT\xang\hello\hello.xap
The content of elements must consist of well-formed character data or
markup.
DynamicDocument.load(): EXCEPTION: Unable to load
H:\devel3\jakarta-tomcat\webapps\ROOT\xang\hello\hello.xap
The content of elements must consist of well-formed character data or
markup.
org.xml.sax.SAXParseException: The content of elements must consist of
well-form
ed character data or markup.
at
org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1318)
at
org.apache.xerces.framework.XMLDocumentScanner.reportFatalXMLError(XMLDocumentScanner.java:616)
at
org.apache.xerces.framework.XMLDocumentScanner.abortMarkup(XMLDocumentScanner.java:670)
at
org.apache.xerces.framework.XMLDocumentScanner$ContentDispatcher.dispatch(XMLDocumentScanner.java:1358)
at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentS
canner.java:381)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1208)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1247)
at
org.apache.xang.xap.xml.DynamicDocument.doLoad(DynamicDocument.java:401)
at
org.apache.xang.xap.xml.DynamicDocument.load(DynamicDocument.java:149)
at org.apache.xang.xap.XapSystem.getDoc(XapSystem.java:113)
at org.apache.xang.xap.XapSystem.getChild(XapSystem.java:188)
at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:289)
at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:242)
at
org.apache.xang.net.http.object.impl.HTTPObjectServer.service(HTTPObjectServer.java:144)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:484)


Here is the stack trace displayed in the browser:

<html><body><h2>System error</h2>Error in handler for
'onGet'<pre>Runtime error no global function named 'get'
detected at line 1 in string: 'get();'</pre></body></html><!--
FESI.jslib.JSException: Runtime error no global function named 'get'
detected at line 1 in string: 'get();'
FESI.jslib.JSException: Runtime error no global function named 'get'
detected at line 1 in string: 'get();'
        at FESI.Data.JSWrapper.evalAsFunction(JSWrapper.java)
        at
org.apache.xang.scriptEngine.FesiEngine.run(FesiEngine.java:108)
        at
org.apache.xang.net.http.object.impl.HTTPScriptedObject.dispatchToScript(HTTPScriptedObject.java:198)
        at
org.apache.xang.net.http.object.impl.HTTPScriptedObject.dispatch(HTTPScriptedObject.java:144)
        at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:293)
        at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:242)
        at
org.apache.xang.net.http.object.impl.HTTPObjectServer.service(HTTPObjectServer.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Unknown Source)
due to:
FESI.Exceptions.EcmaScriptException: Runtime error no global function
named 'get'
detected at line 1 in string: 'get();'
FESI.Exceptions.EcmaScriptException: Runtime error no global function
named 'get'
detected at line 1 in string: 'get();'
        at FESI.Data.ESObject.doIndirectCallInScope(ESObject.java)
        at FESI.Interpreter.ScopeChain.doIndirectCall(ScopeChain.java)
        at FESI.Interpreter.Evaluator.doIndirectCall(Evaluator.java)
        at
FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java)
        at
FESI.AST.ASTCompositeReference.jjtAccept(ASTCompositeReference.java)
        at
FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java)
        at FESI.AST.ASTStatement.jjtAccept(ASTStatement.java)
        at
FESI.Interpreter.EcmaScriptEvaluateVisitor.visit(EcmaScriptEvaluateVisitor.java)
        at FESI.AST.ASTProgram.jjtAccept(ASTProgram.java)
        at
FESI.Interpreter.EcmaScriptEvaluateVisitor.evaluateProgram(EcmaScriptEvaluateVisitor.java)
        at FESI.Interpreter.Evaluator.evaluate(Evaluator.java)
        at FESI.Interpreter.Evaluator.evaluate(Evaluator.java)
        at FESI.Interpreter.Evaluator.evaluate(Evaluator.java)
        at FESI.Data.JSWrapper.evalAsFunction(JSWrapper.java)
        at
org.apache.xang.scriptEngine.FesiEngine.run(FesiEngine.java:108)
        at
org.apache.xang.net.http.object.impl.HTTPScriptedObject.dispatchToScript(HTTPScriptedObject.java:198)
        at
org.apache.xang.net.http.object.impl.HTTPScriptedObject.dispatch(HTTPScriptedObject.java:144)
        at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:293)
        at
org.apache.xang.net.http.object.impl.HTTPRequestHandler.service(HTTPRequestHandler.java:242)
        at
org.apache.xang.net.http.object.impl.HTTPObjectServer.service(HTTPObjectServer.java:144)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
        at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
        at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
        at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
        at java.lang.Thread.run(Unknown Source)

--><pre><b>
</b></pre>