WebLogic support - weblogic.jspc in WL7 SP2 does not give proper error messages

This is Interesting: Free IT Magazines  
Home > Archive > WebLogic support > February 2004 > weblogic.jspc in WL7 SP2 does not give proper error messages





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 weblogic.jspc in WL7 SP2 does not give proper error messages
Sunil P Ithappiri

2004-02-04, 12:37 am

When I use weblogic.jspc using Ant on Weblogic 7 SP2 (in SP1 also this
was happening) for precompiling jsps, I do not get proper error
messages (if there are compilation errors). A typical error reported
is

[java] Error: compilation of jsp file
/presentation/jsp/widget/admin/create
_widget_stock.jsp (java file
C:\cni\deploy\coxApp\coxWebApp\jsp_servl
et\_present
ation\_jsp\_widget\_admin\__create_widge
t_stock.java failed):
[java] null
[java] Error: [jspc]: 1 file(s) failed:

One another problem is, if a jsp has an include and if there was an
error in the included jsp (actually jspi), the error reported is on
the including jsp.

The ant task I use for this is given below.
<target name="jspCompile" depends="init, war.resources">
<java classname="weblogic.jspc" fork="yes" failonerror="true">
<sysproperty key="weblogic.home" value="${wl.home}"/>
<classpath refid="ejb_classpath"/>
<arg line="-d ${war.root} -compiler
C:\j2sdk_nb\j2sdk1.4.2\bin\javac.exe
jvm=C:\j2sdk_nb\j2sdk1.4.2\bin\java -compileFlags -g"/>
<arg value="-k" />
<arg value="-compileAll" />
<arg value="-depend" />
<arg value="-verboseJavac" />
<arg value="${jsp.dir}/**/*.jsp*"/>
</java>
</target>

Any help would be appreciated.

Thanks
Sunil
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com