[opencms-dev] Example modules for version 5?
Tristan Roddis
tristan at roddis.org
Thu Apr 24 13:49:01 CEST 2003
On Thu, Apr 24, 2003 at 11:14:14AM +0200, lorenzo bolzani wrote:
> I'm also trying to install the news module, but without success.
> I tryied to get the cvs version of the module but didn't help.
> I checked out, rebuild and reinstalled opencms but I get the error below.
>
> com.opencms.core.CmsException: 0 Unknown exception. Detailed error:
> CmsException ID: 0.
> root cause was java.lang.NullPointerException
<snip>
I have found out what was causing this - the zip file that is available
for download cannot be imported directly, you have to unzip it first!
Then you get an SQL script to run to create the necessary tables, and
another zipfile, which is what needs to be imported using the module
manager.
So, I've now managed to import this module, and I restarted Tomcat, but I
still get errors in that the title in the Admin view dowsn't appear to be
correct (??? com_opencms_modules_homepage_news_NewsBackoffice.icon.news
???) and whn I click on this, I get the following error:
com.opencms.core.CmsException: 26 Wrong XML template class. Detailed
error: Could not initialize (sub-)element for class
"com.opencms.modules.homepage.news.NewsBackoffice".
com.opencms.core.CmsException: 29 OpenCms class loader error. Detailed
error: Could not load template class
com.opencms.modules.homepage.news.NewsBackoffice.
com.opencms.modules.homepage.news.NewsBackoffice.
root cause was java.lang.ClassNotFoundException:
com.opencms.modules.homepage.news.NewsBackoffice.
at
com.opencms.template.cache.CmsElementLocator.get(CmsElementLocator.java:171)
at
com.opencms.template.cache.CmsUri.callCanonicalRoot(CmsUri.java:109)
at
com.opencms.template.cache.CmsElementCache.callCanonicalRoot(CmsElementCache.java:149)
at
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:285)
at
com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:341)
at
com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:275)
at com.opencms.core.OpenCms.showResource(OpenCms.java:828)
at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:285)
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(ApplicationFilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.invokeNext(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:2415)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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.java:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(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:594)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Thread.java:536)
Let me know if you get it to work any better!
Thanks,
-T.
--
tristan at roddis.org http://www.roddis.org
_______________________________.oOo._________________________________
"Lock out lock in." http://www.linux.org
More information about the opencms-dev
mailing list