Foren
Portlet Fails to Deploy
Minnie Haridasa, geändert vor 14 Jahren.
Portlet Fails to Deploy
New Member Beiträge: 7 Beitrittsdatum: 12.10.09 Neueste Beiträge
I create a bare bone portlet
with create.bat.
create.bat help help
I did not any make changes.
I build it and and the tried to deploy it.
I get
Error on line 1 of document : Element type "xml" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "xml" must be followed by either attribute specifications, ">" or "/>".
Here is the portlet.xml that got created
<?xml version="1.0" ?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>help</portlet-name>
<display-name>help</display-name>
<portlet-class>com.sample.jsp.portlet.JSPPortlet</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>help</title>
<short-title>help</short-title>
<keywords>help</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>
Any pointers? I have tried adding
<?xml version="1.0" encoding="UTF-8"?>
but this does not work on windows or linux.
Other developers are also having the same issue..
Any pointers would be great..
THANKS
M
with create.bat.
create.bat help help
I did not any make changes.
I build it and and the tried to deploy it.
I get
Error on line 1 of document : Element type "xml" must be followed by either attribute specifications, ">" or "/>". Nested exception: Element type "xml" must be followed by either attribute specifications, ">" or "/>".
Here is the portlet.xml that got created
<?xml version="1.0" ?>
<portlet-app xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd" version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd">
<portlet>
<portlet-name>help</portlet-name>
<display-name>help</display-name>
<portlet-class>com.sample.jsp.portlet.JSPPortlet</portlet-class>
<init-param>
<name>view-jsp</name>
<value>/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
</supports>
<portlet-info>
<title>help</title>
<short-title>help</short-title>
<keywords>help</keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>
Any pointers? I have tried adding
<?xml version="1.0" encoding="UTF-8"?>
but this does not work on windows or linux.
Other developers are also having the same issue..
Any pointers would be great..
THANKS
M