dshof Posted November 25, 2009 Share Posted November 25, 2009 Hello,I am running liferay 5.2.3 bundled with Tomcat 6.0When 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.DocumentException: Error on line 20 of document : 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-app_1_0.xsd":security-role-ref}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting withelement '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-app_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 More sharing options...
suedonne123 Posted November 28, 2009 Share Posted November 28, 2009 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 More sharing options...
dshof Posted November 30, 2009 Author Share Posted November 30, 2009 Thank you vary much for the help. I modified the portlet.xml and now I am able to add the portlet to the portal. Link to comment Share on other sites More sharing options...
kthormann Posted January 13, 2010 Share Posted January 13, 2010 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.DocumentException: Error on line 20 of document : 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-app_1_0.xsd":security-role-ref}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting withelement '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-app_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 '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-app_1_0.xsd":security-role-ref}' is expected. Nested 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-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:156) at com.liferay.portal.service.impl.PortletLocalServiceImpl._readPortletXML(PortletLocalServiceImpl.java:1281) at com.liferay.portal.service.impl.PortletLocalServiceImpl.initWAR(PortletLocalServiceImpl.java:477) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy49.initWAR(Unknown Source) at com.liferay.portal.service.PortletLocalServiceUtil.initWAR(PortletLocalServiceUtil.java:184) at com.liferay.portal.deploy.hot.PortletHotDeployListener.doInvokeDeploy(PortletHotDeployListener.java:230) at com.liferay.portal.deploy.hot.PortletHotDeployListener.invokeDeploy(PortletHotDeployListener.java:127) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._doFireDeployEvent(HotDeployUtil.java:108) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil._fireDeployEvent(HotDeployUtil.java:153) at com.liferay.portal.kernel.deploy.hot.HotDeployUtil.fireDeployEvent(HotDeployUtil.java:43) at com.liferay.portal.kernel.servlet.PortletContextListener.portalInit(PortletContextListener.java:113) at com.liferay.portal.kernel.util.PortalInitableUtil.init(PortalInitableUtil.java:48) at com.liferay.portal.kernel.servlet.PortletContextListener.contextInitialized(PortletContextListener.java:109) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3843) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4342) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525) at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926) at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java: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(LifecycleSupport.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:516) 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(DelegatingMethodAccessorImpl.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 More sharing options...
kthormann Posted January 13, 2010 Share Posted January 13, 2010 Got the solution: i've changed the portlet.xml with the attached one!greez Kerstin Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now