Go Back   Velocity Reviews > Newsgroups > XML
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

XML - EJPPC0005E: portlet.xml validation caught a SAXException on Websphere 6.1

 
Thread Tools Search this Thread
Old 11-13-2006, 08:18 AM   #1
Default EJPPC0005E: portlet.xml validation caught a SAXException on Websphere 6.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"ortlet-info}'
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"
xmlnssi="http://www.w3.org/2001/XMLSchema-instance"
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
  Reply With Quote
Old 11-13-2006, 01:26 PM   #2
Joe Kesselman
 
Posts: n/a
Default Re: EJPPC0005E: portlet.xml validation caught a SAXException on Websphere6.1

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"ortlet-info}'
> 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
  Reply With Quote
Old 11-17-2006, 04:43 PM   #3
mahesh.mohan1@gmail.com
 
Posts: n/a
Default Re: EJPPC0005E: portlet.xml validation caught a SAXException on Websphere 6.1

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"ortlet-info}'
> > 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


  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump