Jump to content
We've recently updated our Privacy Statement, available here ×

Deploy JasperServerPortlet 3.5 war in LifeRay


dshof

Recommended Posts

Hello,

I am running liferay 5.2.3 bundled with Tomcat 6.0

When I try to deploy the jasperServerPortlet 3.5 war i receive the following error:

23:51:42,658 ERROR [PortletLocalServiceImpl:542] com.liferay.portal.kernel.xml.D
ocumentException: Error on line 20 of document : cvc-complex-type.2.4.a: Invali
d content was found starting with element 'resource-bundle'. One of '{"http://ja
va.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":portlet-preferences, "http://java
.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":security-role-ref}' is expected. Ne
sted exception: cvc-complex-type.2.4.a: Invalid content was found starting with
element 'resource-bundle'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-
app_1_0.xsd":portlet-preferences, "http://java.sun.com/xml/ns/portlet/portlet-ap
p_1_0.xsd":security-role-ref}' is expected.

I am not sure what this error is nor how to resolve it. Any help would be appreciated.

Thanks in advance
Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

I am running this portal on Liferay deployed on Glassfish and had the same error due to bad xml...The ordering of the xml tags is incorrect and fails XML validation...

in the portlet.xml file... Use the xsd/schema to determine correct xml format or you can look at my piece of xml...

NOTE: My code below has changed the names and such which you probably do not want...so just look and copy the ordering of the xml tags...

 

    <portlet>
        <!--    remove this comment for default report to show
        <portlet-preferences>
         <preference>
          <name>full_resource_path</name>
          <value>/reports/samples/EmployeeAccounts</value>
          <modifiable>1</modifiable>
         </preference>

         <preference>
          <name>resource_type</name>
          <value>report</value>
          <modifiable>1</modifiable>
         </preference>

         <preference>
          <name>number_of_parameters</name>
          <value>1</value>
          <modifiable>1</modifiable>
         </preference>

         <preference>
          <name>js_resource_parameter_EmployeeID</name>
          <value>beth_id</value>
          <modifiable>1</modifiable>
         </preference>

        </portlet-preferences>
-->
        <description>JasperSoft Corporation</description>
        <portlet-name>WCSPortal</portlet-name>
        <portlet-class>org.springframework.web.portlet.DispatcherPortlet</portlet-class>
        <init-param>
            <name>jasperserver_repository_ws_url</name>
            <value>http://localhost:8080/jasperserver-pro/services/repository</value>
        </init-param>
        <init-param>
            <name>portal_server</name>
            <value>liferay</value>
        </init-param>
        <init-param>
            <name>show_logo</name>
            <value>false</value>
        </init-param>
        <init-param>
            <name>show_return_to_report_list_icon</name>
            <value>false</value>
        </init-param>
        <init-param>
            <name>show_return_to_parameter_icon</name>
            <value>true</value>
        </init-param>
        <init-param>
            <name>company_logo</name>
            <value>jaspersoft-logo.png</value>
        </init-param>
        <init-param>
            <name>company_logo_hyper_link</name>
            <value>http://www.jaspersoft.com</value>
        </init-param>
        <init-param>
            <name>report_directory</name>
            <value>/Reports</value>
        </init-param>
        <init-param>
            <name>number_of_reports_per_page</name>
            <value>15</value>
        </init-param>
        <expiration-cache>0</expiration-cache>
        <supports>
            <mime-type>text/html</mime-type>
            <portlet-mode>view</portlet-mode>
            <portlet-mode>edit</portlet-mode>
            <portlet-mode>help</portlet-mode>
        </supports>
        <supported-locale>en</supported-locale>
        <resource-bundle>com.jaspersoft.jasperserver.portlet.PortletResourceBundle</resource-bundle>
        <portlet-info>
            <title>WCSPortal</title>
            <short-title>WCSPortal</short-title>
            <keywords>JasperPortlet, JasperServer, JasperReport, JasperSoft, WCSPortal</keywords>
        </portlet-info>
        <supported-publishing-event xmlns:x="http://fortna.com">
            <qname>x:wcsportal</qname>
        </supported-publishing-event>
    </portlet>

Link to comment
Share on other sites

  • 1 month later...

Hi!

Im also trying to install jasper-portlet 3.5 on liferay 5.2.3  but it doesn't work. I've already changed the portlet.xml but still i cannot add the portlet.

are there any other changes?

Info: if i deploy the .war on liferay 5.1.2 it works!

thx for help

 

greez, Kerstin

 

Error:

09:19:01,129 ERROR [PortletLocalServiceImpl:542] com.liferay.portal.kernel.xml.D
ocumentException: Error on line 20 of document  : cvc-complex-type.2.4.a: Invali
d content was found starting with element 'resource-bundle'. One of '{"http://ja
va.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":portlet-preferences, "http://java
.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":security-role-ref}' is expected. Ne
sted exception: cvc-complex-type.2.4.a: Invalid content was found starting with
element 'resource-bundle'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-
app_1_0.xsd":portlet-preferences, "http://java.sun.com/xml/ns/portlet/portlet-ap
p_1_0.xsd":security-role-ref}' is expected.
com.liferay.portal.kernel.xml.DocumentException: Error on line 20 of document  :
 cvc-complex-type.2.4.a: Invalid content was found starting with element 'resour
ce-bundle'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":po
rtlet-preferences, "http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd":secu
rity-role-ref}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid c
ontent was found starting with element 'resource-bundle'. One of '{"http://java.
sun.com/xml/ns/portlet/portlet-app_1_0.xsd":portlet-preferences, "http://java.su
n.com/xml/ns/portlet/portlet-app_1_0.xsd":security-role-ref}' is expected.
        at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:377)
        at com.liferay.portal.xml.SAXReaderImpl.read(SAXReaderImpl.java:388)
        at com.liferay.portal.kernel.xml.SAXReaderUtil.read(SAXReaderUtil.java:1
56)
        at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletX
ML(PortletLocalServiceImpl.java:1281)
        at com.liferay.portal.service.impl.PortletLocalServiceImpl.initWAR(Portl
etLocalServiceImpl.java:477)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:182)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:149)
        at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:106)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invok
e(ExposeInvocationInterceptor.java:89)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
        at $Proxy49.initWAR(Unknown Source)
        at com.liferay.portal.service.PortletLocalServiceUtil.initWAR(PortletLoc
alServiceUtil.java:184)
        at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy
(PortletHotDeployListener.java:230)
        at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(P
ortletHotDeployListener.java:127)
        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent
(HotDeployUtil.java:108)
        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(H
otDeployUtil.java:153)
        at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(Ho
tDeployUtil.java:43)
        at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(P
ortletContextListener.java:113)
        at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitable
Util.java:48)
        at com.liferay.portal.kernel.servlet.PortletContextListener.contextIniti
alized(PortletContextListener.java:109)
        at org.apache.catalina.core.StandardContext.listenerStart(StandardContex
t.java:3843)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4
342)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase
.java:791)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:77
1)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)

        at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.jav
a:926)
        at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.j
ava:889)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492
)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1149)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java
:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Lifecycl
eSupport.java:117)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443
)
        at org.apache.catalina.core.StandardService.start(StandardService.java:5
16)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:710
)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)



Post Edited by kthormann at 01/13/2010 09:14
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...