[opencms-dev] Error installing Web Optimization module in opencms 8.0.4
Jordi Marti
jmarti at theinit.com
Wed Oct 10 19:25:36 CEST 2012
Hi,
We installed opencms web optimization module in opencms 8.0.4, but it
fails when we open a new generated optimized-js structured content...
The error is:
10 oct 2012 17:09:52,734 ERROR [ion.pages.optimized_002djs_jsp: 59] Not
supported resource type 282 of given resource
/system/modules/com.theinit.opencms.ecommerce/resources/js/unirjs.js
org.opencms.main.CmsIllegalArgumentException: Not supported resource
type 282 of given resource
/system/modules/com.theinit.opencms.ecommerce/resources/js/unirjs.js
at
com.alkacon.opencms.v8.weboptimization.CmsOptimizationJs.optimize(CmsOptimizationJs.java:157)
at
org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_alkacon_opencms_v8_weboptimization.pages.optimized_002djs_jsp._jspService(optimized_002djs_jsp.java:56)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:386)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:313)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:646)
at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:551)
at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:488)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:188)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:163)
at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:617)
at
org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)
at
org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:167)
at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:902)
at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:522)
at
org.opencms.loader.A_CmsXmlDocumentLoader.load(A_CmsXmlDocumentLoader.java:224)
at
org.opencms.loader.CmsXmlContentLoader.load(CmsXmlContentLoader.java:44)
at
org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:1062)
at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1598)
at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:153)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:298)
at
org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:864)
at
org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:579)
at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1665)
at java.lang.Thread.run(Thread.java:619)
We check opencms-modules.xml and we can see the 282 resource there:
<resourcetypes>
<type
class="org.opencms.file.types.CmsResourceTypeXmlContent"
name="v8-alkacon-optimized-js" id="282">
<properties>
<property>
<name>template-elements</name>
<value
type="shared"><![CDATA[/system/modules/com.alkacon.opencms.v8.weboptimization/pages/optimized-js.jsp]]></value>
</property>
</properties>
<param
name="schema">/system/modules/com.alkacon.opencms.v8.weboptimization/schemas/optimized-js.xsd</param>
</type>
<type
class="org.opencms.file.types.CmsResourceTypeXmlContent"
name="v8-alkacon-optimized-css" id="283">
<properties>
<property>
<name>template-elements</name>
<value
type="shared"><![CDATA[/system/modules/com.alkacon.opencms.v8.weboptimization/pages/optimized-css.jsp]]></value>
</property>
</properties>
<param
name="schema">/system/modules/com.alkacon.opencms.v8.weboptimization/schemas/optimized-css.xsd</param>
</type>
<type
class="org.opencms.file.types.CmsResourceTypeXmlContent"
name="v8-alkacon-sprite" id="284">
<properties>
<property>
<name>template-elements</name>
<value
type="shared"><![CDATA[/system/modules/com.alkacon.opencms.v8.weboptimization/pages/sprite.jsp]]></value>
</property>
</properties>
<param
name="schema">/system/modules/com.alkacon.opencms.v8.weboptimization/schemas/sprite.xsd</param>
</type>
</resourcetypes>
<explorertypes>
<explorertype name="v8-alkacon-optimized-js"
key="fileicon.v8-alkacon-optimized-js"
icon="v8-alkacon-optimized-js.png" reference="xmlcontent">
<newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=v8-alkacon-optimized-js"
order="762" autosetnavigation="false" autosettitle="false"
info="desc.v8-alkacon-optimized-js"/>
</explorertype>
<explorertype name="v8-alkacon-optimized-css"
key="fileicon.v8-alkacon-optimized-css"
icon="v8-alkacon-optimized-css.png" reference="xmlcontent">
<newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=v8-alkacon-optimized-css" order="763"
autosetnavigation="false" autosettitle="false"
info="desc.v8-alkacon-optimized-css"/>
</explorertype>
<explorertype name="v8-alkacon-sprite"
key="fileicon.v8-alkacon-sprite" icon="v8-alkacon-sprite.png"
reference="xmlcontent">
<newresource page="structurecontent"
uri="newresource_xmlcontent.jsp?newresourcetype=v8-alkacon-sprite"
order="764" autosetnavigation="false" autosettitle="false"
info="desc.v8-alkacon-sprite"/>
</explorertype>
</explorertypes>
opencms.log shows no problem when initializing:
10 oct 2012 17:05:21,578 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : estaticadesplegable
10 oct 2012 17:05:21,578 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : menu
10 oct 2012 17:05:21,578 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : v8news
10 oct 2012 17:05:21,578 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : v8newsgallery
10 oct 2012 17:05:21,578 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : ProductosDestacados
10 oct 2012 17:05:21,593 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : v8-alkacon-optimized-js
10 oct 2012 17:05:21,593 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : v8-alkacon-optimized-css
10 oct 2012 17:05:21,593 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : v8-alkacon-sprite
10 oct 2012 17:05:21,609 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : uploadhtml
10 oct 2012 17:05:21,609 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : ddarticle
10 oct 2012 17:05:21,609 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : ddsettingsarticle
10 oct 2012 17:05:21,609 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : ddheadincludearticle
10 oct 2012 17:05:21,625 INFO [.workplace.CmsWorkplaceManager: 400] .
Añadiendo configuración del tipo : Banners
Any idea of what could be failing? Is opencms web optimization module
compatible with opencms 8.0.4?
Thanks and regards,
Jordi
More information about the opencms-dev
mailing list