<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>How to export a jsp page?</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Hi All,</FONT>
</P>

<P><FONT SIZE=2>I want to export a jsp page, but always the OpenCMS skips it. </FONT>
<BR><FONT SIZE=2>(staticexport.default.export=true).</FONT>
</P>

<P><FONT SIZE=2>Look in the opencms document, Here are my changes:</FONT>
</P>

<P><FONT SIZE=2>Under myProject/jsps/login.jsp (name=login, type=jsp),</FONT>
<BR><FONT SIZE=2>The export property of the file = true</FONT>
</P>

<P><FONT SIZE=2>In the opencms.properties file, </FONT>
<BR><FONT SIZE=2>staticexport.default.export=dynamic</FONT>
</P>

<P><FONT SIZE=2>ruleset.dynamic_exportrules= *dynamicRules*, \ </FONT>
<BR><FONT SIZE=2>                             s#(.*\.jsp$)#${url_prefix_export}$1#,\</FONT>
<BR><FONT SIZE=2>ruleset.dynamic_externrules=*dynamicRules*, \</FONT>
<BR><FONT SIZE=2>                             s#(.*\.jsp$)#$1#,\</FONT>
</P>

<P><FONT SIZE=2>Do I config my system correctly?</FONT>
<BR><FONT SIZE=2>Here is the error when I export my jsp page.</FONT>
</P>

<P><FONT SIZE=2>Explain me, please.</FONT>
</P>

<P><FONT SIZE=2>Thank you,</FONT>
<BR><FONT SIZE=2>Yendung</FONT>
</P>

<P><FONT SIZE=2>Publishing resource ...</FONT>
<BR><FONT SIZE=2>Publishing /myProject/jsps/login</FONT>
<BR><FONT SIZE=2>Static export, number of starting links is: 1</FONT>
<BR><FONT SIZE=2>Exporting /myProject/jsps/login</FONT>
<BR><FONT SIZE=2>Exception com.opencms.core.CmsException: 40 Error in Flex loader. Detailed error: IO related error while exporting JSP for URI /myProject/jsps/login. </FONT></P>

<P><FONT SIZE=2>root cause was java.io.FileNotFoundException: <A HREF="http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1" TARGET="_blank">http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1</A></FONT></P>

<P><FONT SIZE=2>at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:403)</FONT>
<BR><FONT SIZE=2>at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResourceBroker.java:4659)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)</FONT>
<BR><FONT SIZE=2>at com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.java:61)</FONT>
<BR><FONT SIZE=2>>-----------</FONT>
<BR><FONT SIZE=2>>Root cause:</FONT>
<BR><FONT SIZE=2>>java.io.FileNotFoundException: <A HREF="http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1" TARGET="_blank">http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1</A></FONT></P>

<P><FONT SIZE=2>> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:689)</FONT>
<BR><FONT SIZE=2>> at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:399)</FONT>
<BR><FONT SIZE=2>> at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResourceBroker.java:4659)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)</FONT>
<BR><FONT SIZE=2>> at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)</FONT>
<BR><FONT SIZE=2>> at com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.java:61)</FONT>
<BR><FONT SIZE=2>java.io.FileNotFoundException: <A HREF="http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1" TARGET="_blank">http://192.168.10.21:8080/myProject/jsps/login?_flex_export=/myProject/jsps/login&_flex_export_encoding=ISO-8859-1</A></FONT></P>

<P><FONT SIZE=2>at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:689)</FONT>
<BR><FONT SIZE=2>at com.opencms.flex.CmsJspLoader.exportJsp(CmsJspLoader.java:399)</FONT>
<BR><FONT SIZE=2>at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:217)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsStaticExport.exportLink(CmsStaticExport.java:628)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsStaticExport.<init>(CmsStaticExport.java:259)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.genericSql.CmsResourceBroker.exportStaticResources(CmsResourceBroker.java:4659)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.exportStaticResources(CmsObject.java:1523)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.publishProject(CmsObject.java:2453)</FONT>
<BR><FONT SIZE=2>at com.opencms.file.CmsObject.publishResource(CmsObject.java:2593)</FONT>
<BR><FONT SIZE=2>at com.opencms.workplace.CmsPublishResourceThread.run(CmsPublishResourceThread.java:61)</FONT>
<BR><FONT SIZE=2>... static export finished</FONT>
<BR><FONT SIZE=2>Checking filesystem links ...</FONT>
<BR><FONT SIZE=2>.. filesystem link check finished</FONT>
<BR><FONT SIZE=2>... the resource has been published</FONT>
</P>

</BODY>
</HTML>