On Mon, Aug 30, 2004 at 06:42:46PM -0700, Treespace wrote:
: Let's say you you have a usebean whose constructor makes a database call. The
: datasource is loaded in the J2EE container but it is not available to Ant when
: running the JspC task. Likewise, attempting to get an object from the JNDI
:
Running JspC as an Ant task in Tomcat 5.0 and it appears to be loading JSPs as part
of the compilation process. This is problematic when a usebean constructor or static
initializer attempts to use a service not available.
Let's say you you have a usebean whose constructor makes a database call
I'm trying to precompile jsp's... I get a null pointer
exception using the ant jspc taks, then the 2nd run it
generates all .java files successfully (???).
Now trying to javac these, I get:
[javac]
D:\projects\workdir\hv\obi\rts\service\jsp-compile\lidOpvragen_jsp.java:102:
javax.servlet.jsp.Page