You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pluto-user@portals.apache.org by "Craig M. Doremus" <cd...@KEANE-NNE.com> on 2003/11/12 17:30:10 UTC

SAXException deploying portlet

I get an error while deploying a Portlet from the Javaworld example app (bookmark_01) using the deployPortlet batch file. See below for the console output.

The same SAXException issue has been reported at least twice on the forum associated with the Javaworld article (part 2) with no resolution posted.

I had no problems installing Pluto and the testsuite portlet.

TIA
/Craig


Here's my environment:
Win2K
Tomcat 4.1.29
JDK 1.4.2
Pluto built from CVS: 11-09-2003

Here's what happens when I run deployPortlet: 

C:\eclipse\workspace\jakarta-pluto\build>deployPortlet c:\eclipse\workspace\jaka
rta-pluto\portlets\bookmark_01\driver\bookmark_01.war
Buildfile: build.xml

init.checkPrepareRun1:

init.checkPrepareRun2:

init.prepareRun:

DeployPortlet:

DeployPortlet.intern:
deploying 'bookmark_01' ...
finished!
prepare web archive 'bookmark_01' ...
org.xml.sax.SAXException: External entites are not permitted in XML configuratio
n files
        org.xml.sax.InputSource org.apache.pluto.portalImpl.xml.XmlParser$Entity
Resolver.resolveEntity(java.lang.String, java.lang.String)
                XmlParser.java:185
        org.apache.xerces.xni.parser.XMLInputSource org.apache.xerces.util.Entit
yResolverWrapper.resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier)
        org.apache.xerces.xni.parser.XMLInputSource org.apache.xerces.impl.XMLEn
tityManager.resolveEntity(org.apache.xerces.xni.XMLResourceIdentifier)
        org.apache.xerces.xni.parser.XMLInputSource org.apache.xerces.impl.xs.XM
LSchemaLoader.resolveDocument(org.apache.xerces.impl.xs.XSDDescription, java.uti
l.Hashtable, org.apache.xerces.xni.parser.XMLEntityResolver)
        org.apache.xerces.impl.xs.SchemaGrammar org.apache.xerces.impl.xs.XMLSch
emaValidator.findSchemaGrammar(short, java.lang.String, org.apache.xerces.xni.QN
ame, org.apache.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes)
        org.apache.xerces.xni.Augmentations org.apache.xerces.impl.xs.XMLSchemaV
alidator.handleStartElement(org.apache.xerces.xni.QName, org.apache.xerces.xni.X
MLAttributes, org.apache.xerces.xni.Augmentations)
        void org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(org.apach
e.xerces.xni.QName, org.apache.xerces.xni.XMLAttributes, org.apache.xerces.xni.A
ugmentations)
        boolean org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement
()
        boolean org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatc
her.scanRootElementHook()
        boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentCo
ntentDispatcher.dispatch(boolean)
        boolean org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocume
nt(boolean)
        boolean org.apache.xerces.parsers.DTDConfiguration.parse(boolean)
        void org.apache.xerces.parsers.DTDConfiguration.parse(org.apache.xerces.
xni.parser.XMLInputSource)
        void org.apache.xerces.parsers.XMLParser.parse(org.apache.xerces.xni.par
ser.XMLInputSource)
        void org.apache.xerces.parsers.DOMParser.parse(org.xml.sax.InputSource)
        org.w3c.dom.Document org.apache.xerces.jaxp.DocumentBuilderImpl.parse(or
g.xml.sax.InputSource)
        org.w3c.dom.Document javax.xml.parsers.DocumentBuilder.parse(java.io.Inp
utStream)
        org.w3c.dom.Document org.apache.pluto.portalImpl.xml.XmlParser.parsePort
letXml(java.io.InputStream)
                XmlParser.java:96
        void org.apache.pluto.portalImpl.Deploy.prepareWebArchive(java.lang.Stri
ng, java.lang.String)
                Deploy.java:202
        void org.apache.pluto.portalImpl.Deploy.main(java.lang.String[])
                Deploy.java:517
java.lang.Exception
        void org.apache.pluto.portalImpl.Deploy.prepareWebArchive(java.lang.Stri
ng, java.lang.String)
                Deploy.java:438
        void org.apache.pluto.portalImpl.Deploy.main(java.lang.String[])
                Deploy.java:517