You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Vaishali Badole <va...@gtl.co.in> on 2001/03/02 13:12:37 UTC

please help....

i have installed cocoon as directed in the install.htm file of the
distribution, i m using weblogic510 servlet engine but not able to run the
samples while starting the weblogic510 server it give following error (for
devlopment purpose...not yet live)

<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
	 "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">

-------------------------------------------------------------ERROR----------
---------------------------------------------------------
Fri Mar 02 17:40:13 GMT+05:30 2001:<I> <EJB> 0 deployed, 0 failed to deploy.
[ExternalEntity] : Could not resolve entity '-//Sun Microsystems, Inc.//DTD
Web
Application 2.2//EN'.  Check your dtd reference.
Fri Mar 02 17:40:16 GMT+05:30 2001:<E> <HTTP> Error reading Web application
'coc
oonwar'
java.net.UnknownHostException: java.sun.com
        at java.net.InetAddress.getAllByName0(InetAddress.java:577)
        at java.net.InetAddress.getAllByName0(InetAddress.java:546)
        at java.net.InetAddress.getAllByName(InetAddress.java:539)
        at weblogic.net.http.HttpClient.openServer(HttpClient.java, Compiled
Cod
e)
        at weblogic.net.http.HttpClient.openServer(HttpClient.java:221)
        at weblogic.net.http.HttpClient.<init>(HttpClient.java:85)
        at weblogic.net.http.HttpClient.New(HttpClient.java:117)
        at
weblogic.net.http.HttpURLConnection.connect(HttpURLConnection.java:97
)
        at
weblogic.net.http.HttpURLConnection.getInputStream(HttpURLConnection.
java, Compiled Code)
        at com.sun.xml.parser.Resolver.createInputSource(Resolver.java:253)
        at
com.sun.xml.parser.ExternalEntity.getInputSource(ExternalEntity.java:
49)
        at com.sun.xml.parser.Parser.pushReader(Parser.java:2748)
        at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2500)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1136)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
        at com.sun.xml.parser.Parser.parse(Parser.java:283)
        at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
        at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:81)
        at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:214)
        at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:648)
        at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
Comp
iled Code)
        at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.main(Server.java:65)
        at weblogic.Server.main(Server.java:55)
        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
        at java.lang.Thread.run(Thread.java:479)

Fri Mar 02 17:40:16 GMT+05:30 2001:<E> <HTTP> Error creating servlet context
for
 Web application 'cocoonwar'
java.lang.NullPointerException
        at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
Comp
iled Code)
        at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.main(Server.java:65)
        at weblogic.Server.main(Server.java:55)
        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
        at java.lang.Thread.run(Thread.java:479)
-------------------------------------------------------------ERROR----------
---------------------------------------------------------

so i changed the file web.xml the cocoon descriptor file to ref SYSTEM DTD 
	<!DOCTYPE web-app SYSTEM "web-app_2_2.dtd">

now it throws following error:-
-------------------------------------------------------------ERROR----------
---------------------------------------------------------
Fri Mar 02 17:43:55 GMT+05:30 2001:<E> <HTTP> Error parsing descriptor in
Web ap
plication 'cocoonwar'
org.xml.sax.SAXParseException: Relative URI "web-app_2_2.dtd"; can not be
resolv
ed without a document URI.
        at com.sun.xml.parser.Parser.fatal(Parser.java:2797)
        at com.sun.xml.parser.Parser.fatal(Parser.java:2791)
        at com.sun.xml.parser.Parser.parseSystemId(Parser.java:2411)
        at com.sun.xml.parser.Parser.maybeExternalID(Parser.java:2389)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1099)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:480)
        at com.sun.xml.parser.Parser.parse(Parser.java:283)
        at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:69)
        at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:81)
        at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:214)
        at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:648)
        at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
Comp
iled Code)
        at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.main(Server.java:65)
        at weblogic.Server.main(Server.java:55)
        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
        at java.lang.Thread.run(Thread.java:479)
--------------- nested within: ------------------
Received SAXParseException from Sun Parser at line 11, column -1:
org.xml.sax.SA
XParseException: Relative URI "web-app_2_2.dtd"; can not be resolved without
a d
ocument URI.
        at weblogic.xml.dom.SunDOMParser.getDocument(SunDOMParser.java:72)
        at weblogic.xml.dom.DOMParser.getDocument(DOMParser.java:81)
        at
weblogic.servlet.internal.dd.DescriptorLoader.<init>(DescriptorLoader
.java:214)
        at weblogic.t3.srvr.HttpServer.loadWARContext(HttpServer.java:648)
        at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
Comp
iled Code)
        at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.main(Server.java:65)
        at weblogic.Server.main(Server.java:55)
        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
        at java.lang.Thread.run(Thread.java:479)

Fri Mar 02 17:43:55 GMT+05:30 2001:<E> <HTTP> Error creating servlet context
for
 Web application 'cocoonwar'
java.lang.NullPointerException
        at weblogic.t3.srvr.HttpServer.initServletContexts(HttpServer.java,
Comp
iled Code)
        at weblogic.t3.srvr.HttpServer.start(HttpServer.java:442)
        at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java, Compiled Code)
        at weblogic.t3.srvr.T3Srvr.main(T3Srvr.java:825)
        at java.lang.reflect.Method.invoke(Native Method)
        at weblogic.Server.startServerDynamically(Server.java:99)
        at weblogic.Server.main(Server.java:65)
        at weblogic.Server.main(Server.java:55)
        at weblogic.NTServiceHelper.run(NTServiceHelper.java:19)
        at java.lang.Thread.run(Thread.java:479)
-------------------------------------------------------------ERROR----------
---------------------------------------------------------