com.caucho.jsp.JSPCompiler

"Choate, Bryan (IHG)" <[email protected]> Wed, 31 May 2006 17:21:28 -0400
Newsgroups gmane.text.xml.resin.user
Message-ID <0FB3527AE8493F44B9A27C1D8E70E46B01FE1906@hnatld1svrexg04.Amer.Corp.Local>
When looking at the documentation located at
http://www.caucho.com/resin-3.0/jsp/compile.xtp, I see that
com.caucho.jsp.JspCompiler can be invoked from the command line to
compile a jsp, so I'm trying to incorporate that into my build scripts
so as to compile my jsp's when I compile the classes for an application.
However, when I invoke the class through an ant task:

 

<java classname="com.caucho.jsp.JspCompiler">

                        <classpath>

                                    <fileset dir="${resin.home}/lib">

                                                <include
name="**/*.jar"/>

                                    </fileset>

                                    <filelist dir="${basedir}"
files="${classpath.list}"/>

                        </classpath>

                        <arg line="-app-dir ${app.dir}"/>

            </java>

 

I get an error related to the classpath:

 

     [java] javax.naming.NoInitialContextException: Cannot instantiate
class: com.caucho.naming.InitialContextFactoryImpl [Root exception is
java.lang.ClassNotFoundException:
com.caucho.naming.InitialContextFactoryImpl]

 

I'm not seeing how that's possible- JspCompiler and
InitialContextFactoryImpl are both in the resin jar.  Is this process
forking into a different process that's not using the same classpath?
Has anyone successfully used this method of precompiling, or is it not
even intended for what I'm trying to do?

 

Thanks,

 

Bryan Choate

InterContinental Hotels Group

http://www.ichotelsgroup.com <blocked::http://www.ichotelsgroup.com/> 

office: 770-604-8179

mobile: 678-612-3140