AW: [opencms-dev] Error while creating a new folder

Petr Hollay ph at ethikom.de
Fri Feb 20 08:36:01 CET 2004


> Any ideas?
Yes, of course ;-)

The problem is that the old page type (Page, not XMLPage) was already
removed in HEAD. Removed, not deprecated.

But wizard for creating folder was not updated to create index.html as
XMLPage, and not as nonexistent Page. Old page is handled by Java class
CmsNewResourcePage, this is the reason why there is this exception:

> java.lang.ClassNotFoundException: com.opencms.workplace.CmsNewResourcePage

You can simply avoid this by changing file
/system/workplace/templates/explorer_files_new_folder:
- find: explorer_files_new_page.html (line 594, only 1 occurrence),
- replace it by: explorer_files_new_xmlpage.html,
- save and publish changed file, that's it.

Ok?

Best regards
Petr


-----Ursprüngliche Nachricht-----
Von: opencms-dev-admin at opencms.org [mailto:opencms-dev-admin at opencms.org] Im
Auftrag von Balazs Wellisch
Gesendet: Freitag, 20. Februar 2004 01:46
An: opencms-dev at opencms.org
Betreff: [opencms-dev] Error while creating a new folder

Hi all,

When creating a new folder in Explorer View I get a class not found error.
Clicking on the "detail" tab of the resulting error page I get the
description quoted on the bottom of this email.

When I click "close" on this error page the browser window refreshes itself
but it stays on the same error page.

What's weird is that with each refresh a new folder is created. So I get:

Root Folder
  -> New Folder
     -> New Folder
        -> New Folder
           ...

I am using the latest CVS version of the code, as of Feb 19, 2004 16:43 PST.
Tomcat 4.1.29 on RH Enterprise Linux 3 ES

Any ideas?

Thanks,

Balazs

java.lang.ClassNotFoundException: com.opencms.workplace.CmsNewResourcePage
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1443)
	at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.jav
a:1289)
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:141)
	at
com.opencms.template.CmsTemplateClassManager.getClassInstance(CmsTemplateCla
ssManager.java:57)
	at
com.opencms.legacy.CmsXmlTemplateLoader.getTemplateClass(CmsXmlTemplateLoade
r.java:504)
	at
com.opencms.legacy.CmsXmlTemplateLoader.generateOutput(CmsXmlTemplateLoader.
java:449)
	at
com.opencms.legacy.CmsXmlTemplateLoader.processXmlTemplate(CmsXmlTemplateLoa
der.java:662)
	at
com.opencms.legacy.CmsXmlTemplateLoader.load(CmsXmlTemplateLoader.java:600)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1589)
	at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1562)
	at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:99)
	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:256)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
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.ja
va:191)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
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:2417)
	at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
	at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:171)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
	at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
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.java
:174)
	at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
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:193)
	at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781)
	at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:549)
	at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589)
	at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:666)
	at java.lang.Thread.run(Thread.java:534)



_______________________________________________
This mail is send to you from the opencms-dev mailing list
To change your list options, or to unsubscribe from the list, please visit
http://mail.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list