[opencms-dev] Importing existing modules to opencms 5.0 beta 2

Stephan Hartmann hartmann at waehrisch-feykes.de
Wed Nov 20 13:23:59 CET 2002


Hi Gustav,

do you have messages in your opencms.log?


Am Mittwoch, 20. November 2002 12:11 schrieben Sie:
> Hi Stefan,
>
> Thanks for Your quick response.
>
> Now I have moved the package com.opencms.modules.news.news to
> /system/modules/default/classes  - the ClassNotFound Error disappears.
>
>
> But I get an java.lang.ArrayIndexOutOfBoundsException, see message below.
>
> This package worked very well under 4.6*  - any other idea?
>
> Many Thanks in advance
>
> Gustav
>
>
>
> [CmsException]: 0 Unknown exception. Detailed Error: CmsException ID: 0.
> Caught Exception: >java.lang.ArrayIndexOutOfBoundsException: 0 >= 0<
>  at
> com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:190)
>  at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:171)
>  at
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCach
>e ..java:148)
>  at
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:263)
>  at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:319)
>  at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:268)
>  at com.opencms.core.OpenCms.showResource(OpenCms.java:781)
>  at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:260)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>n FilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>h ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>a va:260)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>a va:191)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0 )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>. java:170)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>2 )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a
>
> :174)
>
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>e ction(Http11Protocol.java:380)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>v a:533)
>  at java.lang.Thread.run(Thread.java:536)
>
> >java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
> > at java.util.Vector.elementAt(Vector.java:427)
> > at
>
> com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:14
>0 1)
>
> > at
>
> com.opencms.defaults.A_CmsBackoffice.getContent(A_CmsBackoffice.java:409)
>
> > at
>
> com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:167)
>
> > at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:171)
> > at
>
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCach
>e ..java:148)
>
> > at
>
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:263)
>
> > at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:319)
> > at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:268)
> > at com.opencms.core.OpenCms.showResource(OpenCms.java:781)
> > at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:260)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>n FilterChain.java:247)
>
> > at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>h ain.java:193)
>
> > at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>a va:260)
>
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>
> > at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>a va:191)
>
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>
> > at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
>
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
>
> > at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0 )
>
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>
> > at
>
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>. java:170)
>
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>
> > at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>2 )
>
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>
> > at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a
>
> :174)
> :
> > at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>
> > at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> > at
> > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> > at
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>
> > at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>e ction(Http11Protocol.java:380)
>
> > at
>
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>
> > at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>v a:533)
>
> > at java.lang.Thread.run(Thread.java:536)
>
> java.lang.ArrayIndexOutOfBoundsException: 0 >= 0
>  at java.util.Vector.elementAt(Vector.java:427)
>  at
> com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:14
>0 1)
>  at
> com.opencms.defaults.A_CmsBackoffice.getContent(A_CmsBackoffice.java:409)
>  at
> com.opencms.template.cache.CmsElementXml.getContent(CmsElementXml.java:167)
>  at com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:171)
>  at
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCach
>e ..java:148)
>  at
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:263)
>  at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:319)
>  at com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:268)
>  at com.opencms.core.OpenCms.showResource(OpenCms.java:781)
>  at com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:260)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>n FilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>h ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.j
>a va:260)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.j
>a va:191)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>0 )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>. java:170)
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>2 )
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:641)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>a
>
> :174)
>
>  at
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>k eNext(StandardPipeline.java:643)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>  at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>  at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>e ction(Http11Protocol.java:380)
>  at
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>  at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>v a:533)
>  at java.lang.Thread.run(Thread.java:536)
>
>
>
> ----- Original Message -----
> From: "Stephan Hartmann" <hartmann at waehrisch-feykes.de>
> To: <opencms-dev at www.opencms.org>
> Sent: Wednesday, November 20, 2002 11:23 AM
> Subject: Re: [opencms-dev] Importing existing modules to opencms 5.0 beta 2
>
> > Hi,
> >
> > i think the classes now have to be in /system/modules/default/classes
> > directory. Then your project has to be published cause as Alexander wrote
> > some postings ago the classes will be exported to WEB-INF/classes
>
> directory
>
> > of your webapp. Maybe you have to restart tomcat.
> >
> > bye,
> > Stephan
> >
> > Am Mittwoch, 20. November 2002 11:15 schrieben Sie:
> > > > Hi,
> > >
> > > I am trying to move some applications from opencms 4.6.1 and 4.7.7 to
> > > opencms 5.0 beta2 No problem at all importing core-elements and
> > > existing databases - great work - thanks a lot.
> > >
> > > Importing modules eg modified News-Modules I get some big troubles -
>
> have a
>
> > > look at the error message below. I have used the new manifest.xml from
>
> CVS
>
> > > (news module)
> > >
> > > Many Thanks for helping in advance
> > >
> > > Gustav
> > >
> > >
> > > [CmsException]: 26 Wrong XML template class. Detailed Error: Could not
> > > initialize (sub-)element for class
> > > "com.opencms.modules.news.news.NewsBackoffice". [CmsException]: 29
>
> OpenCms
>
> > > class loader error. Detailed Error: Could not load template class
> > > com.opencms.modules.news.news.NewsBackoffice.
> > >
> > > com.opencms.modules.news.news.NewsBackoffice. Caught Exception:
> > > >java.lang.ClassNotFoundException:
> > >
> > > com.opencms.modules.news.news.NewsBackoffice<. at
>
> com.opencms.template.cache.CmsElementLocator.get(CmsElementLocator.java:166
>
> > >) at
> > > com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:104)
>
> at
>
> com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCach
>
> > >e.java:148) at
>
> com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:263)
>
> > > at com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:319)
>
> at
>
> > > com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:268)
> > > at com.opencms.core.OpenCms.showResource(OpenCms.java:781)
> > >  at
>
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:260)
>
> > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> > >  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > >  at
>
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicatio
>
> > >nFilterChain.java:247) at
>
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterC
>
> > >hain.java:193) at
>
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve..
>
> > >java:260) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:643) at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve..
>
> > >java:191) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:643) at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
>
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
>
> > > at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:18
>
> > >0) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:643) at
>
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve
>
> > >.java:170) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:641) at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:17
>
> > >2) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:641) at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
>
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.jav
>
> > >a:174) at
>
> org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invo
>
> > >keNext(StandardPipeline.java:643) at
>
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
>
> > > at
> > > org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>
> at
>
> > > org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>
> at
>
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
>
> > > at
>
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConn
>
> > >ection(Http11Protocol.java:380) at
>
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
>
> > > at
>
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.ja
>
> > >va:533) at java.lang.Thread.run(Thread.java:536)
> > >
> > >
> > >
> > >
> > > Mag. Gustav Wurm
> > >
> > > www shuttle + internetservice gmbh,  a-4040 linz  ottensheimerstr. 55
> > > tel: ++43/(0)732/714320 fax: ++43/(0)732/714320-30
> > > email: gw at w3shuttle.com   http://www.w3shuttle.com
> >
> > ----------------------------------------
> > Content-Type: text/html; charset="iso-8859-1"; name="Anhang: 1"
> > Content-Transfer-Encoding: quoted-printable
> > Content-Description:
> > ----------------------------------------
> >
> > --
> > Stephan Hartmann
> >
> > Währisch & Feykes GmbH
> > Gustav-Adolf-Str. 5
> > 47057 Duisburg
> > Tel. 0203 / 373 070
> > Fax 0203 / 376 766
> > hartmann at wfnetz.de
> >
> > ------------------------------------------------------
> > Ausschlusserklärung (Disclaimer):
> > Über das Internet versandte E-mails können unter fremden Namen erstellt
>
> oder
>
> > manipuliert werden. Aus diesem Grund enthalten unsere mit E-mail
>
> verschickten
>
> > Nachrichten grundsätzlich keine rechtsverbindlichen Willenserklärungen.

-- 
Stephan Hartmann

Währisch & Feykes GmbH
Gustav-Adolf-Str. 5
47057 Duisburg
Tel. 0203 / 373 070
Fax 0203 / 376 766
hartmann at wfnetz.de

------------------------------------------------------
Ausschlusserklärung (Disclaimer):
Über das Internet versandte E-mails können unter fremden Namen erstellt oder 
manipuliert werden. Aus diesem Grund enthalten unsere mit E-mail verschickten 
Nachrichten grundsätzlich keine rechtsverbindlichen Willenserklärungen.



More information about the opencms-dev mailing list