Foren

Getting wierd error : Invalid content was found starting with element 'mim

thumbnail
Wayne Christian, geändert vor 14 Jahren.

Getting wierd error : Invalid content was found starting with element 'mim

Regular Member Beiträge: 104 Beitrittsdatum: 12.06.07 Neueste Beiträge
01:38:15,648 ERROR [PortletLocalServiceImpl:542] com.liferay.portal.kernel.xml.DocumentException: Error on line 26 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' is expected.
com.liferay.portal.kernel.xml.DocumentException: Error on line 26 of document : cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' is expected. Nested exception: cvc-complex-type.2.4.a: Invalid content was found starting with element 'mime-type'. One of '{"http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":portlet-mode, "http://java.sun.com/xml/ns/portlet/portlet-app_2_0.xsd":window-state}' 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)
thumbnail
Victor Zorin, geändert vor 14 Jahren.

RE: Getting wierd error : Invalid content was found starting with element &

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
Not that weird really, it says that portlet.xml file has content that does not comply with schema, around line 26.
Is this your own portlet application? (would be weird if it is liferay's own portlet)
thumbnail
Wayne Christian, geändert vor 14 Jahren.

RE: Getting wierd error : Invalid content was found starting with element &

Regular Member Beiträge: 104 Beitrittsdatum: 12.06.07 Neueste Beiträge
It looks like the orbeon portlet is causing the problem. Right after the exception, I see this. Can I simply remove the subdirectory under webapps that's associated with this portlet? What about portlet registration and stuff like that?

00:44:01,280 INFO [PortletHotDeployListener:351] 0 portlets for sample-orbeon-forms-portlet are available for use
Starting Orbeon Forms Release 3.5.1.200703310056
thumbnail
Wayne Christian, geändert vor 14 Jahren.

RE: Getting wierd error : Invalid content was found starting with element &

Regular Member Beiträge: 104 Beitrittsdatum: 12.06.07 Neueste Beiträge
Now I'm getting the following, after deleting the orbeon portlet. This happens when I try to access the portal website

00:50:22,077 WARN [PortalImpl:2948] Current URL /web/guest generates exception: File "/html/portal/layout/view/portlet.jsp" not found
00:50:23,810 ERROR [IncludeTag:79] Current URL /web/guest generates exception: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'include' in class com.liferay.taglib.util.VelocityTaglib threw exception org.apache.jasper.JasperException: /html/common/themes/top_head.jsp(127,0) /html/common/themes/top_js.jspf(240,2) File "/html/portal/layout/view/portlet_js.jspf" not found at _SERVLET_CONTEXT_/html/themes/classic/templates/portal_normal.vm[line 10, column 16]
00:50:23,813 ERROR [IncludeTag:165] org.apache.jasper.JasperException: /html/common/themes/top_head.jsp(127,0) /html/common/themes/top_js.jspf(240,2) File "/html/portal/layout/view/portlet_js.jspf" not found
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:88)
at org.apache.jasper.compiler.Parser.processIncludeDirective(Parser.java:345)
at org.apache.jasper.compiler.Parser.parseIncludeDirective(Parser.java:378)
at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:486)
at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1444)
at org.apache.jasper.compiler.Parser.parse(Parser.java:138)
at org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216)
at org.apache.jasper.compiler.ParserController.parse(ParserController.java:103)
at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:154)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:315)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:295)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:282)
at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:586)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:317)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
thumbnail
Victor Zorin, geändert vor 14 Jahren.

RE: Getting wierd error : Invalid content was found starting with element &

Liferay Legend Beiträge: 1228 Beitrittsdatum: 14.04.08 Neueste Beiträge
Wayne, you probably have got some issues with the environment, JVM / JDK / JAVA_HOME / ...
May be jsps not compiling or else. Something simple went wrong way.
thumbnail
Krzysztof Smaga, geändert vor 9 Jahren.

RE: Getting wierd error : Invalid content was found starting with element &

Junior Member Beiträge: 59 Beitrittsdatum: 13.03.14 Neueste Beiträge
I've got same issue.


SEVERE: Servlet.service() for servlet jsp threw exception
javax.servlet.ServletException: File "/html/common/themes/top_head.jsp" not found


Please help me ;(