|
Home > Archive > WebSphere Application Server > July 2007 > Websphere JSP Pre-compilation fails once-in-a while
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Websphere JSP Pre-compilation fails once-in-a while
|
|
|
| Operating System: Windows.
Websphere Version: 6.1.0.7
JDK: IBM 1.5.0 (Bundled as part of Websphere 6.1.0.7)
Description:
While performing JSP Pre-compilation using the ws_ant.bat, we are getting ?locationId cannot be resolved? error. This failure is not consistent, some time the JSPC is working fine and some time we are getting the failure.
The same set of JSPC is Pre-compiled using other application servers (Jboss & Weblogic) and we are not facing this issue with them.
Failure:
[exec] [wsJspC] JSPG0091E: An error occurred at line: 125 in the file: /jsp/manage/common/DefaultLocation.jsp
[exec] [wsJspC] JSPG0093E: Generated servlet error from file: /jsp/manage/common/DefaultLocation.jsp
[exec] [wsJspC] D:\views\tw_enterprise\zeus_deployment\b
uildscripts\Zeus\build\prod\WEB- INF\classes\jsp\manage\common\_DefaultLo
cation.java : 434 : locationInfo cannot be resolved
Targets Used for JSPC:
<target name="was_jspc_task">
<echo>"Compiling JSPs for websphere"</echo>
<taskdef name="wsjspc" classname="com.ibm.websphere.ant.tasks.JspC"/>
<wsjspc wasHome="${WEBSPHERE_6_HOME}" warPath="${viewLoc} " compileToDir="${viewLoc}\out" failonerror="true">
<classpath>
<fileset dir="${WEBSPHERE_6_HOME}/lib" includes="*.jar"/>
<fileset dir="${dist}/lib" includes="*.jar"/>
</classpath>
</wsjspc>
</target>
<target name="twe_jspc_websphere">
<exec executable="${WEBSPHERE_6_HOME}/bin/ws_ant.bat">
<arg value="-buildfile"/>
<arg value="build.xml"/>
<arg value="was_jspc_task"/>
<arg value="-DviewLoc"/>
<arg value="${viewLoc}"/>
<arg value="-DWEBSPHERE_6_HOME"/>
<arg value="${WEBSPHERE_6_HOME}"/>
</exec>
</target>
Thanks,
Muthu
| |
|
| Wild guess: could it be that the compilation task starts too rapidly and a
dependency file/library is missing ? Typically, because some tasks would be
running in parallel instead of sequentially and did not finish before the
compilation takes places.
|
|
|
|
|