[opencms-dev] Getting OpenCMS up and running - newsmodule, de mo website

Joe Burkhart jburkhar at tdhca.state.tx.us
Fri Nov 1 01:12:03 CET 2002


That didn't work.  The file was there so I went ahead and replaced it with
the one in the zip file of the module, but still no go.  Is anyone else
using 5.0 on Win2k with Tomcat and MySQL and the news module installed and
working properly?  Any other suggestions based on the log files below?

Thanks,

Joe

-----Original Message-----
From: Stephan Hartmann [mailto:beffe at beffe.de] 
Sent: Thursday, October 31, 2002 2:43 PM
To: opencms-dev at www.opencms.org
Subject: RE: [opencms-dev] Getting OpenCMS up and running - newsmodule, demo
website


Hi Joe and Jorg,

the occlasses and oclib directories have been dropped. Instead classes and
jars should be placed in WEB-INF/classes and WEB-INF/lib. Howerver, the
classes of the module are only stored in OpenCms's virtual filesystem under
/system/classes. In your case the class
com.opencms.modules.homepage.news.NewsChannelContentDefinition could not be
found. But on the other hand
com.opencms.modules.homepage.news.NewsChannelBackoffice was found. You can
look now if
/system/classes/com/opencms/modules/homepage/news/NewsChannelContentDefiniti
on.class exists in your vfs and check if it isn't broken or something else
(unpack the modules jar to compare file size). You can also try to upload
the class out of the unpacked jar.
 
bye,
Stephan


Am Don, 2002-10-31 um 19.54 schrieb Joe Burkhart:
> Jorg, thanks for the reply.
> 
> 1) I don't have WEB-INF/occlasses/ anywhere in my opencms directory in 
> webapps.
> 2) Here is the error from the Tomcat log file. (see farther below for 
> more log info from opencms logging)
> 
> 2002-10-31 09:06:25 StandardWrapperValve[OpenCmsServlet]: 
> Servlet.service() for servlet OpenCmsServlet threw exception
> javax.servlet.ServletException: Servlet execution threw an exception
> 	at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
> cation
> FilterChain.java:269)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :163)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1011)
> 	at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
> )
> 	at java.lang.Thread.run(Unknown Source)
> ----- Root Cause -----
> java.lang.NoClassDefFoundError:
> com.opencms.modules.homepage.news.NewsChannelContentDefinition
> 	at
>
com.opencms.modules.homepage.news.NewsChannelBackoffice.class$(NewsChannelBa
> ckoffice.java:17)
> 	at
>
com.opencms.modules.homepage.news.NewsChannelBackoffice.getContentDefinition
> Class(NewsChannelBackoffice.java:20)
> 	at
>
com.opencms.defaults.A_CmsBackoffice.getContentHead(A_CmsBackoffice.java:133
> 0)
> 	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(CmsElementCache
> .java:148)
> 	at
>
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:253)
> 	at
> com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:309)
> 	at
> com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:267)
> 	at com.opencms.core.OpenCms.showResource(OpenCms.java:653)
> 	at
> com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:231)
> 	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(Application
> FilterChain.java:247)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
> ain.java:193)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
> va:243)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
> va:201)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
> )
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
> java:170)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
> )
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 64)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
> :163)
> 	at
>
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
> 66)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
> 	at
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> 	at
>
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
> 1011)
> 	at
>
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
> )
> 	at java.lang.Thread.run(Unknown Source)
> 
> ------------------------------------------------------
> 3) Here's the log result from when I imported the news module: (note 
> that the slashes in the paths are mixed \/)
> 
> [31.10.2002 12:49:12] <opencms_info> [CmsClassManager] clearing class 
> instance cache. [31.10.2002 12:49:23] <opencms_info> [CmsClassManager] 
> clearing class instance cache.
> [31.10.2002 12:49:24] <opencms_staticexport> [CmsStaticExport] Starting
the
> static export.
> [31.10.2002 12:49:24] <opencms_staticexport> [CmsStaticExport] got 46
links
> to start with.
> [31.10.2002 12:49:27] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/channel/Backoffice.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/Bac
> koffice.html failed: [CmsException]: 31 Access denied to resource.
Detailed
> Error: [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /channel/Backoffice.html. 
> [31.10.2002 12:49:27] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/channel/EditBackoffice.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/Edi
> tBackoffice.html failed: [CmsException]: 31 Access denied to resource.
> Detailed Error: [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /channel/EditBackoffice.html. 
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlControlFile] XML document
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex is not of the expected type. This document is "workplace", but it
should
> be "PAGE" (OpenCms XML page file).
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] There was
an
> error while parsing XML page file
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] -->
> Exception: [CmsException]: 20 Wrong XML content type. Detailed Error: XML
> document
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex is not of the expected type. This document is "workplace", but it
should
> be "PAGE" (OpenCms XML page file).. 
> 	at
>
com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:186
> 9)
> 	at
> com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1073)
> 	at
> com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1007)
> 	at
> com.opencms.template.CmsXmlControlFile.<init>(CmsXmlControlFile.java:64)
> 	at
>
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:121)
> 	at
> com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:309)
> 	at
> com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:267)
> 	at
> com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:602)
> 	at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:246)
> 	at
>
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
> rceBroker.java:4473)
> 	at
> com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1456)
> 	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2389)
> 	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2348)
> 	at
>
com.opencms.workplace.CmsAdminModuleImport.run(CmsAdminModuleImport.java:87)
> 
> 
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] --> 
> Cannot create output for this file. Must send error. Sorry. 
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] 
> C:\Program Files\Apache Tomcat 
> 4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage
> .news/
> administration/channel/index export
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex failed: [CmsException]: 17 Service unavailable. Detailed Error: There
was
> an error while parsing XML page file
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex. Caught Exception: >[CmsException]: 20 Wrong XML content type. Detailed
> Error: XML document
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex is not of the expected type. This document is "workplace", but it
should
> be "PAGE" (OpenCms XML page file).. <
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/channel/index.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/channel/ind
> ex.html failed: [CmsException]: 31 Access denied to resource. Detailed
> Error: [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /channel/index.html. 
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/news/Backoffice.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/news/Backof
> fice.html failed: [CmsException]: 31 Access denied to resource. Detailed
> Error: [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /news/Backoffice.html. 
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/news/EditBackoffice.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/news/EditBa
> ckoffice.html failed: [CmsException]: 31 Access denied to resource.
Detailed
> Error: [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /news/EditBackoffice.html. 
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlControlFile] XML document
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index
> is not of the expected type. This document is "workplace", but it should
be
> "PAGE" (OpenCms XML page file).
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] There was
an
> error while parsing XML page file
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] -->
> Exception: [CmsException]: 20 Wrong XML content type. Detailed Error: XML
> document
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index
> is not of the expected type. This document is "workplace", but it should
be
> "PAGE" (OpenCms XML page file).. 
> 	at
>
com.opencms.template.A_CmsXmlContent.throwException(A_CmsXmlContent.java:186
> 9)
> 	at
> com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1073)
> 	at
> com.opencms.template.A_CmsXmlContent.init(A_CmsXmlContent.java:1007)
> 	at
> com.opencms.template.CmsXmlControlFile.<init>(CmsXmlControlFile.java:64)
> 	at
>
com.opencms.launcher.CmsXmlLauncher.generateOutput(CmsXmlLauncher.java:121)
> 	at
> com.opencms.launcher.CmsXmlLauncher.launch(CmsXmlLauncher.java:309)
> 	at
> com.opencms.launcher.A_CmsLauncher.initlaunch(A_CmsLauncher.java:267)
> 	at
> com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:602)
> 	at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:246)
> 	at
>
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
> rceBroker.java:4473)
> 	at
> com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1456)
> 	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2389)
> 	at com.opencms.file.CmsObject.publishProject(CmsObject.java:2348)
> 	at
>
com.opencms.workplace.CmsAdminModuleImport.run(CmsAdminModuleImport.java:87)
> 
> 
> [31.10.2002 12:49:28] <opencms_critical> [CmsXmlTemplateLoader] --> 
> Cannot create output for this file. Must send error. Sorry. 
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] 
> C:\Program Files\Apache Tomcat 
> 4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage
> .news/
> administration/news/index export
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index
> failed: [CmsException]: 17 Service unavailable. Detailed Error: There was
an
> error while parsing XML page file
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index.
> Caught Exception: >[CmsException]: 20 Wrong XML content type. Detailed
> Error: XML document
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index
> is not of the expected type. This document is "workplace", but it should
be
> "PAGE" (OpenCms XML page file).. <
> [31.10.2002 12:49:28] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> administration/news/index.html export
>
/system/modules/com.opencms.modules.homepage.news/administration/news/index.
> html failed: [CmsException]: 31 Access denied to resource. Detailed Error:
> [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/administration
> /news/index.html. 
> [31.10.2002 12:49:30] <opencms_staticexport> [CmsStaticExport] C:\Program
> Files\Apache Tomcat
>
4.0\webapps\opencms\export/system/modules/com.opencms.modules.homepage.news/
> pics/Backoffice.gif export
> /system/modules/com.opencms.modules.homepage.news/pics/Backoffice.gif
> failed: [CmsException]: 31 Access denied to resource. Detailed Error:
> [com.opencms.file.mySql.CmsResourceBroker]
>
/default/vfs/system/modules/com.opencms.modules.homepage.news/pics/Backoffic
> e.gif. 
> [31.10.2002 12:49:31] <opencms_staticexport> [CmsStaticExport] all done.
> [31.10.2002 12:49:31] <flex_cache> [CmsFlexCache] Complete cache cleared -
> clear() called
> [31.10.2002 12:49:31] <flex_cache> [CmsFlexCache] Complete cache cleared -
> clear() called
> [31.10.2002 12:49:46] <opencms_info> clear language file cache
> [31.10.2002 12:49:48] <opencms_info> [CmsDumpLoader] IO error while
writing
> to response stream for opencms_choosebrowser.js
> [31.10.2002 12:49:48] <opencms_info> [CmsDumpLoader]
> java.net.SocketException: Connection reset by peer: socket write error




More information about the opencms-dev mailing list