SV: [opencms-dev] new resource type

Lubomir Kovac kovman at centrum.cz
Sat Feb 24 01:58:58 CET 2007


Hi,

I have followed the steps and everything is fine. Then, I have tried to 
export my module and upload it to another instance of OpenCMS.

I have added 2 "extended folders" to opencms-workplace.xml. I thing the 
part from opencms-workplace.xml I have added was not exported to module 
and so I'm not able to load the module to the different instance. I'm 
getting:

org.opencms.main.CmsIllegalStateException: Error uploading the module cz.zcu.fav_1.7.zip.
	at org.opencms.workplace.tools.modules.CmsModulesUploadFromHttp.actionCommit(CmsModulesUploadFromHttp.java:184)
	at org.opencms.workplace.administration.A_CmsImportFromHttp.displayDialog(A_CmsImportFromHttp.java:133)
	at org.apache.jsp.WEB_002dINF.jsp.offline.system.workplace.admin.modules.modules_005fimport_jsp._jspService(modules_005fimport_jsp.java:46)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
	at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
	at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:409)
	at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:719)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1349)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:151)
	at org.opencms.main.OpenCmsServlet.doPost(OpenCmsServlet.java:163)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
	at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
	at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
	at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
	at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
	at java.lang.Thread.run(Unknown Source)

when uploading the model.

Is there a way, how to export module with info from 
opencms-workplace.xml? or the only way how to do that is to do myself 
before uploading :-/?

thanks ...

kovi.

Andrea Bollini  wrote / napísal(a):
> You need only to set the properties
> fileicon.xmlgroupalpha && title..xmlgroupalpha
> fileicon.xmlgroupbeta && title..xmlgroupalpha
>
> in a workspace.properties that will be exported to tomcat classpath. I 
> use the workspace.properties file of the module where the structured 
> content reside...
> Best wishes,
> Andrea Bollini
> CILEA, http://www.cilea.it <http://www.cilea.it>
>
> Anna Larsson ha scritto:
>>
>> Thanks!
>>
>> But where do I set the title that appears in the first list?
>>
>> ------------------------------------------------------------------------
>>
>> *Från:* opencms-dev-bounces at opencms.org 
>> [mailto:opencms-dev-bounces at opencms.org] *För *Andrea Bollini
>> *Skickat:* den 19 februari 2007 10:22
>> *Till:* The OpenCms mailing list
>> *Ämne:* Re: [opencms-dev] new resource type
>>
>> Hi Anna,
>> you need to edit the opencms-workplace.xml
>> add some like this:
>>
>> <explorertype name="xmlgroupalpha" key="fileicon.xmlgroupalpha" 
>> icon="xmlcontent.gif" reference="xmlcontent">
>> <newresource uri="newresource.jsp?page=xmlgroupalpha" order="5" 
>> autosetnavigation="false" autosettitle="false"/>
>> </explorertype>
>>
>> <explorertype name="xmlgroupbeta" key="fileicon.xmlgroupbeta" 
>> icon="xmlcontent.gif" reference="xmlcontent">
>> <newresource uri="newresource.jsp?page=xmlgroupbeta" order="5" 
>> autosetnavigation="false" autosettitle="false"/>
>> </explorertype>
>>
>> so in opencms-module.xml you can use the "xmlgroupalpha" e 
>> "xmlgroupbeta" to move some xmlcontent in these two new entry of main 
>> menu
>> example
>> <explorertypes>
>> <explorertype name="newstructured" key="fileicon.newstructured" 
>> icon="xmlcontent.gif" reference="xmlcontent">
>> <newresource page="xmlgroupalpha" 
>> uri="newresource_xmlcontent.jsp?newresourcetype=newstructured" 
>> order="50" autosetnavigation="false" autosettitle="false"/>
>> ...
>> </explorertype>
>> <explorertype name="secondnewstructured" 
>> key="fileicon.secondnewstructured" icon="xmlcontent.gif" 
>> reference="xmlcontent">
>> <newresource page="xmlgroupbeta" 
>> uri="newresource_xmlcontent.jsp?newresourcetype=secondnewstructured" 
>> order="50" autosetnavigation="false" autosettitle="false"/>
>> ...
>> </explorertype>
>> </explorertypes>
>>
>> Best wishes,
>> Andrea Bollini
>> CILEA, http://www.cilea.it
>>
>> Anna Larsson ha scritto:
>>
>> Hello!
>>
>> Does anyone know how to add a new resource type that appears in the 
>> first list when you click on the “new” button?
>>
>> I have added a lot of resource types (in the opencms-modules.xml 
>> file) that appears when I select the “structured content” option. But 
>> I have too many so I want to devide them into different groups of 
>> structured content. Can that be done?
>>
>> Best regards,
>>
>> Anna
>>
>>
>>
>> ------------------------------------------------------------------------
>>
>>
>>  
>>  
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please 
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>> ------------------------------------------------------------------------
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please 
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please 
> visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev



More information about the opencms-dev mailing list