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 Tony Field <to...@fatwire.com> on 2003/12/01 16:58:53 UTC
Re: SAXException deploying portlet - check DOCTYPE
Thanks. The names do match up though...
On 28-Nov-03, at 9:43 PM, Cottington, Alan wrote:
>
> re point 2
> Do the names match up? I have the application definition-id set to the
> name of the war file(or directory). The portlet definition-id set to
> 'war file name.name of portlet within portlet.xml'
>
> Alan
> p.s. I haven't used it for a couple of weeks. My memory starts to fade.
>
> -----Original Message-----
> From: Tony Field [mailto:tony.field@fatwire.com]
> Sent: 28 November 2003 21:36
> To: pluto-user@jakarta.apache.org
> Subject: Re: SAXException deploying portlet - check DOCTYPE
>
>
> Hello -
>
> Actually, I was having the exact same problem. I *think* it's because
> my doctype was set incorrectly with servlet 2.2 - and it wanted 2.3
> instead. For example:
>
> if I use this:
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.3//EN"
> "http://java.sun.com/dtd/web-app_2_3.dtd">
> I get the exception Alan is alluding to, but that Craig isn't seeing:
> ValidationException: element "taglib" occurs more than once.
> (XMLFieldDesciptor: castorTagDefinition AS taglib)
> ...etc....
>
> but if I use this:
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
> then it fails with the exact same exception Mike is seeing.
>
> I have two questions
> 1. is there any schedule as to when this will be fixed?
> 2. Once my portlet is deployed, I edited the two registry xml files,
> but my portlet doesn't show up. Instead, I see the following in my
> catalina.out:
> DEBUG org.apache.pluto.portalImpl Looking up ServletContext for path
> /testsuite
> DEBUG org.apache.pluto.portalImpl Looking up RequestDispatcher for
> servlet mapping /TestPortlet2/*
> DEBUG org.apache.pluto.invoker
> PortletContainerImpl.portletLoad(test_row_col1_p3) called.
> java.lang.NullPointerException
> at
> org.apache.pluto.portalImpl.om.entity.impl.PortletEntityImpl.getPortlet
> D
> efinition(PortletEntityImpl.java:120)
> at
> org.apache.pluto.PortletContainerImpl.portletLoad(PortletContainerImpl.
> j
> ava:279)
> at
> org.apache.pluto.portalImpl.core.PortletContainerWrapperImpl.portletLoa
> d
> (PortletContainerWrapperImpl.java:132)
> at
> org.apache.pluto.portalImpl.aggregation.PortletFragment.service(Portlet
> F
> ragment.java:123)
> at
> org.apache.jsp.ColumnFragment_jsp._jspService(ColumnFragment_jsp.java:
> 71)
> etc....
>
> P3 is my portlet. It is registered with the portlet guid from the
> auto-generated web.xml file. What do I need to do to finish
> registering the portlet in my page so I can actually see it?
>
> Thanks,
> Tony
>
>
> On 12-Nov-03, at 1:33 PM, Cottington, Alan wrote:
>
>> This could be the taglib problem. There is/was a fault in Pluto which
>> meant there couldn't be more than one taglib mapping in web.xml. I
>> used the actual relative path in the JSP pages (rather than the
>> mapping) and removed the mappings from web.xml. (It might be fixed by
>> now).
>>
>> Alan.
>>
>> -----Original Message-----
>> From: Craig M. Doremus [mailto:cdoremus@KEANE-NNE.com]
>> Sent: 12 November 2003 16:30
>> To: pluto-user@jakarta.apache.org
>> Subject: 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.XMLResourceIdenti
>> f
>> ier)
>> 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
>>
>