<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>lizongbo at 618119.com &#187; javac</title>
	<atom:link href="http://618119.com/tag/javac/feed" rel="self" type="application/rss+xml" />
	<link>http://618119.com</link>
	<description>工作,生活,Android,前端,Linode,Ubuntu,nginx,java,apache,tomcat,Resin,mina,Hessian,XMPP,RPC</description>
	<lastBuildDate>Tue, 31 Jan 2012 14:25:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>配置独立运行的jsp预编译ant脚本</title>
		<link>http://618119.com/archives/2008/05/08/86.html</link>
		<comments>http://618119.com/archives/2008/05/08/86.html#comments</comments>
		<pubDate>Thu, 08 May 2008 12:23:22 +0000</pubDate>
		<dc:creator>lizongbo</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[JAVA IDE]]></category>
		<category><![CDATA[Resin]]></category>
		<category><![CDATA[Tomcat]]></category>
		<category><![CDATA[ant]]></category>
		<category><![CDATA[eclipse]]></category>
		<category><![CDATA[javac]]></category>
		<category><![CDATA[jspc]]></category>

		<guid isPermaLink="false">http://618119.com/archives/2008/05/08/86.html</guid>
		<description><![CDATA[配置resin开启预编译jsp，在启动时，resin会自动编译jsp，出错信息在 stdout.log中。 [code] &#60;web-app id="/lizongbo" document-directory="webapps/lizongbo"&#62; &#60;listener&#62; &#60;listener-class&#62;com.caucho.jsp.JspPrecompileListener&#60;/listener-class&#62; &#60;init&#62; &#60;extension&#62;jsp&#60;/extension&#62; &#60;extension&#62;jspx&#60;/extension&#62; &#60;extension&#62;xtp&#60;/extension&#62; &#60;/init&#62; &#60;/listener&#62; &#60;/web-app&#62; [/code] 在开发过程，经常将页面传到resin上，才发现页面编译失败，浪费了不少时间，因此需要一个在本地预编译进行检查的操作。 resin 3.1以前的版本提供命令行方式进行jsp预编译。 完整的命令例子如下 %JAVA_HOME%\bin\java.exe -classpath %JAVA_HOME%\lib\tools.jar;D:\Java\resin-3.0.19\lib\aopalliance.jar;D:\Java\resin-3.0.19\lib\ejb-20.jar;D:\Java\resin-3.0.19\lib\ejb-30.jar;D:\Java\resin-3.0.19\lib\j2eedeploy.jar;D:\Java\resin-3.0.19\lib\jca-15.jar;D:\Java\resin-3.0.19\lib\jms-11.jar;D:\Java\resin-3.0.19\lib\jmx-12.jar;D:\Java\resin-3.0.19\lib\jsdk-24.jar;D:\Java\resin-3.0.19\lib\jstl-11.jar;D:\Java\resin-3.0.19\lib\jta-101.jar;D:\Java\resin-3.0.19\lib\portlet-10.jar;D:\Java\resin-3.0.19\lib\quercus.jar;D:\Java\resin-3.0.19\lib\resin-jdk15.jar;D:\Java\resin-3.0.19\lib\resin.jar;D:\Java\resin-3.0.19\lib\resinboot.jar;D:\Java\resin-3.0.19\lib\script-10.jar;D:\Java\resin-3.0.19\lib\webutil.jar;D:\Java\resin-3.0.19\plugins\resin-ant.jar com.caucho.jsp.JspCompiler -app-dir  E:\lizongbo\workspace\webapp E:\lizongbo\workspace\webapp 使用起来很不方便。(注意classpath里特意加了%JAVA_HOME%\lib\tools.jar,否则会报错, 出错信息如下： Exception in thread &#8220;main&#8221; com.caucho.java.JavaCompileException: Resin can&#8217;t loa d com.sun.tools.javac.Main.  Usually this means that the JDK tools.jar is missin g from the classpath, possibly because of [...]]]></description>
		<wfw:commentRss>http://618119.com/archives/2008/05/08/86.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

