![]() |
|
|
|||||||
![]() |
XML - EJPPC0005E: portlet.xml validation caught a SAXException on Websphere 6.1 |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
Hi All,
I am trying to deploy one of the portal applications on websphere 6.1. During the course of deployment, I get the following error: EJPPC0005E: portlet.xml validation caught a SAXException. The Message was: cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":supported-locale, "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":resource-bundle, "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" is expected. The best part here is same application is deployed properly on 6.0, but gives a SAXException when deployed on 6.1. The header of my portlet.xml looks like this: <?xml version="1.0"?> <portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" xmlns id="hrapplication" version="1.0" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"> Any help will be greatly appreciated. Thanks All. mahesh.mohan1@gmail.com |
|
|
|
|
#2 |
|
Posts: n/a
|
wrote:
> EJPPC0005E: portlet.xml validation caught a SAXException. The Message > was: cvc-complex-type.2.4.a: Invalid content was found starting with > element 'init-param'. One of > '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":supported-locale, > "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":resource-bundle, > "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" > is expected. This is telling you that the schema is expecting one of three very specific elements but that isn't what you provided. This is either an error in your input document, or an error in your schema, or a bug in the processor -- and without seeing the input doc we have no way of telling you which. I'd bet on the input doc being wrong and simply not having been detected before -- perhaps a bug in 6.0 that was fixed in 6.1, or perhaps you've stepped on this copy of the input. -- () ASCII Ribbon Campaign | Joe Kesselman /\ Stamp out HTML e-mail! | System architexture and kinetic poetry |
|
|
|
#3 |
|
Posts: n/a
|
Hi Joe,
Thanks a lot for your response. I was able to fix the problem. The issue was, that the 6.1 parser accepts the portlet.xml in well defined format. By which I mean, inside the portlet tag the description should come first followed by name then value etc.. bye. Joe Kesselman wrote: > wrote: > > EJPPC0005E: portlet.xml validation caught a SAXException. The Message > > was: cvc-complex-type.2.4.a: Invalid content was found starting with > > element 'init-param'. One of > > '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":supported-locale, > > "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":resource-bundle, > > "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd" > > is expected. > > This is telling you that the schema is expecting one of three very > specific elements but that isn't what you provided. This is either an > error in your input document, or an error in your schema, or a bug in > the processor -- and without seeing the input doc we have no way of > telling you which. > > I'd bet on the input doc being wrong and simply not having been detected > before -- perhaps a bug in 6.0 that was fixed in 6.1, or perhaps you've > stepped on this copy of the input. > > -- > () ASCII Ribbon Campaign | Joe Kesselman > /\ Stamp out HTML e-mail! | System architexture and kinetic poetry |
|