Thanks Danny!
I did have the parsers in my classpath. The actual problem turned out to be
the classloader in orion (1.4.5), which has since been fixed. The
classloader could not find the struts-config.dtd from the jar file! What
worked for me was stripping the struts jar file of the dtds and putting them
in seperately in the /WEB-INF/classes/org/apache/struts/resources!

Thanks y'all once again! Struts and Velocity templates have made
web-application development a lot easier!

Sajan.

-----Original Message-----
From: Danny Mui [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 19, 2002 11:27 AM
To: Struts Users Mailing List
Subject: Re: java.net.MalformedURLException: unknown protocol: jndi


Your problem looks like an XML parsing issue. Try dropping newer 
Xalan/Xerces to WEB-INF/lib (thats how i fix websphere stuff) or even 
the server's classpath.

danny

Nambiar, Sajan wrote:

>Hi:
>
>We are using struts 1.0.2 in our web application deployed on Orion
>application server (version 1.4.5). We get the exception
>(java.net.MalformedURLException: unknown protocol: jndi) during action
>servlet's initialization. The deployment platform is HP-UX 11 and we are
>using jdk 1.3. Has anyone out there faced a similar problem? Any help is
>greatly appreciated.
>
>Thanks
>Sajan
>
>p/s:
>exception:
>
>9/19/02 8:25 AM trending: org.apache.struts.action.ActionServlet:
>Initializing configuration
>from resource path /WEB-INF/struts-config.xml
>9/19/02 8:25 AM trending: Error preloading servlet
>javax.servlet.ServletException: Parsing error processing resource path
>/WEB-INF/struts-config
>.xml
>        at
>org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1337)
>        at
>org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:232)
>        at com.evermind.server.http.HttpApplication.w1(JAX)
>        at com.evermind.server.http.HttpApplication.wj(JAX)
>        at com.evermind.server.http.HttpApplication.wu(JAX)
>        at com.evermind.server.http.HttpApplication.v4(JAX)
>        at com.evermind.server.http.HttpApplication.<init>(JAX)
>        at com.evermind.server.Application.ur(JAX)
>        at com.evermind.server.http.el.ur(JAX)
>        at com.evermind.server.http.ek.nm(JAX)
>        at com.evermind.server.http.ef.s1(JAX)
>        at com.evermind.server.http.ef.do(JAX)
>        at com.evermind.util.f.run(JAX)
>Root cause is; java.net.MalformedURLException: unknown protocol: jndi
>        at
>org.apache.struts.digester.Digester.resolveEntity(Digester.java:611)
>        at
>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEnti
t
>y(Defa
>ultEntityHandler.java:755)
>        at
>org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubs
e
>t(Defa
>ultEntityHandler.java:571)
>        at
>org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.jav
a
>:1139)
>        at
>org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentS
c
>anner.
>java:2145)
>        at
>org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.
j
>ava:21
>00)
>        at
>org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XM
L
>Docume
>ntScanner.java:831)
>        at
>org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner
.
>java:3
>81)
>        at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1098)
>        at
>org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:362)
>        at javax.xml.parsers.SAXParser.parse(SAXParser.java:137)
>        at org.apache.struts.digester.Digester.parse(Digester.java:755)
>        at
>org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1332)
>        at
>org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
>        at javax.servlet.GenericServlet.init(GenericServlet.java:232)
>        at com.evermind.server.http.HttpApplication.w1(JAX)
>        at com.evermind.server.http.HttpApplication.wj(JAX)
>        at com.evermind.server.http.HttpApplication.wu(JAX)
>        at com.evermind.server.http.HttpApplication.v4(JAX)
>        at com.evermind.server.http.HttpApplication.<init>(JAX)
>        at com.evermind.server.Application.ur(JAX)
>        at com.evermind.server.http.el.ur(JAX)
>        at com.evermind.server.http.ek.nm(JAX)
>        at com.evermind.server.http.ef.s1(JAX)
>        at com.evermind.server.http.ef.do(JAX)
>        at com.evermind.util.f.run(JAX)
>9/19/02 8:25 AM trending: org.apache.struts.action.ActionServlet:
Finalizing
>this controller
>servlet
>9/19/02 8:25 AM trending: 1.4.5 Started
>
>In our struts-config.xml we have tried the following but with no avail.
>default setting
><!DOCTYPE struts-config PUBLIC
>          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
>          "http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>
>
>attempt 1
><!DOCTYPE struts-config PUBLIC
>          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
> 
>"classloader:/opt/orion/lib/struts.jar/org/apache/struts/resources/struts-c
o
>nfig_1_0.dtd">
>          <!--"file://vision/test/test/struts-config_1_0.dtd"-->
>
>
>
>
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>  
>




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to