Tuesday, June 5, 2007

Weblogic etc..

Pre Compile Java Server Pages (JSP) using ANT :



<java classname="weblogic.jspc" fork="true" failonerror="true" dir="${war.home}">
<jvmarg value="-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0"/>
<jvmarg value="-Dweblogic.jsp.windows.caseSensitive=true"/>
<classpath>
<pathelement path="${weblogic-related.jars}"/>
<pathelement path="${application-related.jars}"/>
<pathelement path="${java.class.path}"/>
</classpath>
<arg line="-depend -compileAll -keepgenerated -d WEB-INF/classes ."/>
</java>





Weblogic.9.2 and JDK 1.5.0_011.
Weblogic 9.2 comes with JDK 1.5.0.04 version. If you need to point to JDK version 1.5.0_011, then you need to use a parameter:
-Dcom.sun.xml.namespace.QName.useCompatibleSerialVersionUID=1.0

Make sure the domain is using the right JDK version. Make use of this parameter in startWeblogic.cmd/.sh files. Also can be used when running Ant tasks.