[opencms-dev] How to export a jsp page?

Nguyen La Yen Dung dny at sdcgrp.com
Mon Jul 7 11:18:02 CEST 2003


Hi All,

I want to export a jsp page, but always the OpenCMS skips it. 
(staticexport.default.export=true).

Look in the opencms document, Here are my changes:

Under myProject/jsps/login.jsp (name=login, type=jsp),
The export property of the file = true

In the opencms.properties file, 
staticexport.default.export=dynamic

ruleset.dynamic_exportrules= *dynamicRules*, \ 
                             s#(.*\.jsp$)#${url_prefix_export}$1#,\
ruleset.dynamic_externrules=*dynamicRules*, \
                             s#(.*\.jsp$)#$1#,\

Do I config my system correctly?
Here is the error when I export my jsp page.

Explain me, please.

Thank you,
Yendung

Publishing resource ...
Publishing /myProject/jsps/login
Static export, number of starting links is: 1
Exporting /myProject/jsps/login
Exception com.opencms.core.CmsException: 40 Error in Flex loader. Detailed
error: IO related error while exporting JSP for URI /myProject/jsps/login. 
root cause was java.io.FileNotFoundException:
http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/
login&_flex_export_encoding=ISO-8859-1
at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:403)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)
at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)
at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)
at
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
rceBroker.java:4659)
at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)
at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)
at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)
at
com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.
java:61)
>-----------
>Root cause:
>java.io.FileNotFoundException:
http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/
login&_flex_export_encoding=ISO-8859-1
> at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:689)
> at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:399)
> at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)
> at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)
> at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)
> at
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
rceBroker.java:4659)
> at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)
> at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)
> at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)
> at
com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.
java:61)
java.io.FileNotFoundException:
http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/
login&_flex_export_encoding=ISO-8859-1
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection
.java:689)
at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:399)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)
at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)
at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)
at
com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResou
rceBroker.java:4659)
at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)
at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)
at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)
at
com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.
java:61)
... static export finished
Checking filesystem links ...
.. filesystem link check finished
... the resource has been published

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20030707/c94aec11/attachment.htm>


More information about the opencms-dev mailing list