[opencms-dev] why can't export static files?

Topxp Lee flyinglee2008 at yahoo.com.cn
Mon May 30 19:45:44 CEST 2005


It seems some error in console:

Compile failed; see the compiler error output for details.
        at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:842)
        at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:682)
        at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:308)
        at org.apache.jasper.compiler.Compiler.compile(Compiler.java:352)
        at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext
.java:474)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper
.java:184)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:2
95)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
        at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationD
ispatcher.java:575)
        at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDis
patcher.java:498)
        at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequ
estDispatcher.java:385)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispa
tcher.java:163)
        at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:421)
        at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispa
tcher.java:323)
        at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:453)
        at org.opencms.loader.CmsJspLoader.export(CmsJspLoader.java:248)
        at org.opencms.staticexport.CmsStaticExportManager.export(CmsStaticExpor
tManager.java:399)
        at org.opencms.main.OpenCmsServlet.handle(OpenCmsServlet.java:171)
        at org.opencms.main.OpenCmsServlet.invokeHandler(OpenCmsServlet.java:226
)
        at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:113)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDisp
atcher.java:684)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationD
ispatcher.java:432)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDis
patcher.java:356)
        at org.apache.catalina.valves.ErrorDispatcherValve.custom(ErrorDispatche
rValve.java:391)
        at org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:305)
        at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:180)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:172)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:641)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:174)
        at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContex
t.invokeNext(StandardPipeline.java:643)
        at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:480)
        at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)

        at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:22
3)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:432)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ssConnection(Http11Protocol.java:386)
        at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java
:534)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadP
ool.java:530)
        at java.lang.Thread.run(Thread.java:595)

  ----- Original Message ----- 
  From: Topxp Lee 
  To: opencms-dev at opencms.org 
  Sent: Monday, May 30, 2005 11:54 PM
  Subject: [opencms-dev] why can't export static files?


  Hi,all
     I'm a newbie of opencms.
     After install successfully of opencms6.0rc1. I try to add one page to the
  "Nice try" project,and export to static html. All configuration is default.
     It has these success hint:

   Validating links ...
  ( 1 / 1 ) Validating links in file /release/Test1.html ... o.k.
  ... finished validating links
  Publishing resources ...
  Publishing files ...
  ( 1 / 1 ) Publishing file /sites/default/release/Test1.html ... o.k.
  ... finished publishing files
  Statistics: published files:1, published folders:0, deleted folders:0,
  duration:00:00:01
  ... the resources have been published

  But,I can't find any Test1.html in Folder
  opencms/export/sites/default/release/ .What's happen?

  The following is my configuration (all is default):

  opencms-importexport.xml :

  <opencms>
   <importexport>
    <importexporthandlers>
     <importexporthandler
  class="com.opencms.legacy.CmsCosImportExportHandler"/>
     <importexporthandler
  class="org.opencms.importexport.CmsVfsImportExportHandler"/>
     <importexporthandler
  class="org.opencms.module.CmsModuleImportExportHandler"/>
    </importexporthandlers>
    <import>
     <overwrite>true</overwrite>
     <convert>true</convert>
     <importversions>
      <importversion class="com.opencms.legacy.CmsImportVersion1"/>
      <importversion class="org.opencms.importexport.CmsImportVersion2"/>
      <importversion class="org.opencms.importexport.CmsImportVersion3"/>
      <importversion class="org.opencms.importexport.CmsImportVersion4"/>
     </importversions>
     <immutables>
      <resource uri="/system/"/>
      <resource uri="/system/bodies/"/>
      <resource uri="/system/galleries/"/>
      <resource uri="/system/galleries/download/"/>
      <resource uri="/system/galleries/externallinks/"/>
      <resource uri="/system/galleries/htmlgalleries/"/>
      <resource uri="/system/galleries/pics/"/>
      <resource uri="/system/login/"/>
      <resource uri="/system/modules/"/>
      <resource uri="/system/shared/"/>
      <resource uri="/system/workplace/"/>
      <resource uri="/system/workplace/action/"/>
      <resource uri="/system/workplace/administration/"/>
      <resource uri="/system/workplace/help/"/>
      <resource uri="/system/workplace/locales/"/>
      <resource uri="/system/workplace/resources/"/>
      <resource uri="/system/workplace/restypes/"/>
      <resource uri="/system/workplace/scripts/"/>
      <resource uri="/system/workplace/templates/"/>
      <resource uri="/channels/"/>
      <resource uri="/sites/"/>
     </immutables>
     <principaltranslations/>
     <ignoredproperties/>
    </import>
   </importexport>
   <staticexport enabled="true">

  <staticexporthandler>org.opencms.staticexport.CmsOnDemandStaticExportHandler
  </staticexporthandler>
    <exportpath>export</exportpath>
    <defaultpropertyvalue>false</defaultpropertyvalue>
    <defaultsuffixes>
     <suffix key=".jpg"/>
     <suffix key=".gif"/>
     <suffix key=".png"/>
     <suffix key=".doc"/>
     <suffix key=".xls"/>
     <suffix key=".ppt"/>
     <suffix key=".pdf"/>
     <suffix key=".txt"/>
     <suffix key=".css"/>
     <suffix key=".zip"/>
     <suffix key=".swf"/>
    </defaultsuffixes>
    <rendersettings>
     <rfs-prefix>${CONTEXT_NAME}/export</rfs-prefix>
     <vfs-prefix>${CONTEXT_NAME}${SERVLET_NAME}</vfs-prefix>
     <userelativelinks>false</userelativelinks>
     <exporturl>http://127.0.0.1:8080${CONTEXT_NAME}/handle404</exporturl>
     <plainoptimization>true</plainoptimization>
     <testresource uri="/system/shared/page.dtd"/>
     <resourcestorender>
      <regex>/sites/.*</regex>
      <regex>/system/galleries/.*</regex>
      <regex>/system/modules/.*/resources/.*</regex>
     </resourcestorender>
    </rendersettings>
   </staticexport>
  </opencms>

  what's mean of <exporturl> ? My login url is:
  http://localhost:8000/opencms/opencms/system/login ,is that OK?

  Thanks all.  ^_^




------------------------------------------------------------------------------




  _______________________________________________
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20050531/cb442602/attachment.htm>


More information about the opencms-dev mailing list