473,657 Members | 2,282 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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":su pported-locale,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":re source-bundle,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":po rtlet-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="hrapplicati on" version="1.0"
xsi:schemaLocat ion="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.

Nov 13 '06 #1
2 4053
ma***********@g mail.com 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":su pported-locale,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":re source-bundle,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":po rtlet-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
Nov 13 '06 #2
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:
ma***********@g mail.com 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":su pported-locale,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":re source-bundle,
"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":po rtlet-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
Nov 17 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1411
by: allerhed | last post by:
Hi! Is there any one who has toyed around with the portlet container from jakarta-pluto(JSR-168)? I'm trying to render a known portlet ( I have the context path of the portlet as identifier) in a servlet, i dont need to create all the fancy stuff a complete portal would use. I just want to instanciate the portlet an render it from my servlet. Any one who has any code they could share or some helpful documentation or even a working sample...
0
1750
by: MJ | last post by:
I am attempting to write a ServletFilter in Java/J2EE that checks if the incoming data is valid according to a schema. If errors occur, I want to return the error list and not proceed down the chain. If no errors, the next in the servlet chain should receive the original XML. The data in the input stream has already been consumed by the XML parser. What is the easiest way to validate the XML and keep the source xml available for the...
2
4655
by: Olaf Meyer | last post by:
Apprentently xerces 2.6.0 (Java) does not validate against contraints specified in the schema (e.g. constraints specified via unique element). The validation works with the XML editor I'm using (XMLSpy4) but not with Xerces 2.6.0. I've included a really short and simple example to illustrate it. I would like to get some comments on the validation capabilities of Xerces 2.6.0. I though it *fully* supported W3C Schema!
0
4106
by: Brian | last post by:
I am having alot of trouble getting a XML document validated with a schema. I got a sample document and schema off of w3schools.com, which passed an online xml validator: http://tools.decisionsoft.com/schemaValidate.html. I cannot, however, get them validated programmatically. The documents are:
0
1733
by: motoman | last post by:
I have a problem with the code sample below, basically when i run it i get the error classnotfoundexception org.apache.xerces.parsers.SAXParser now i know the simple answer is declare xerces.jar in your classpath but i have done that. I have even gotten xerces 2.5...... and still nothing, i am really struggling here. see the code below.
0
1708
by: motoman | last post by:
i have the following code (see below), i run my validation and get unexpected results. Public ID: null System ID: file:///C:/DATA/Sandpit/Eclipse/workspace/dtdValidation/memory.xml Line number: 4 Column number: 44 Message: Element type "memories" must be declared. Public ID: null
2
7567
by: Marcin Cenkier | last post by:
Hi, I want to validate a DOM document, and if I build DOM from a stream using documentBuilder.parse() validation using validator.validate(DOMSource) works, but if I create the same document manually then validation throws an exception: org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element ....
0
2597
by: Mario | last post by:
Hi I have to make few portals for all departments in my company. One portal for one department. Each portal has to present information about department employees. I have written WSRP portlet, which gets data from LDAP,and shows them on portal page. I'd like to reuse this portlet in all my portals. I think that my portlet should be parametrizable. Each instance should get unique unit code, which can be set (on default, constans, string...
0
7792
by: Sivajee Akula | last post by:
Hello All, I am trying to consume a .NET Service from Adobe LiveCycle Workflow. The service deals with complex objects. I am getting the following exception at the time of invocation of the service, and due to which my workflow gets stalled. When I searched the net, I found many posts reporting this error, but none with a solution. There is no code involved in the invocation, everything is handled by Adobe tool itself. I just specify the...
0
8837
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8739
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8512
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8612
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7347
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4171
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2739
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1969
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1732
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.