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

M

mahesh.mohan1

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":portlet-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"
xmlns:xsi="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.
 
J

Joe Kesselman

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":portlet-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.
 
M

mahesh.mohan1

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,262
Messages
2,571,058
Members
48,769
Latest member
Clifft

Latest Threads

Top