Groups > Weblogic > WebLogic Servlet > JSP precompilation - wrong generated classnames




JSP precompilation - wrong generated classnames

JSP precompilation - wrong generated classnames
Tue, 29 Jan 2008 06:02:00 -080
Hi,

I'm trying to precompile JSPs for one of my web apps in WLS9.1. The following
command (see below) works fine and I get generated JSP classes and then compile
them with no problems. However, when I try to run  my web app I'm getting the
following error:

<Jan 29, 2008 8:26:54 AM EST> <Error> <HTTP>
<BEA-101249> <[weblogic.servlet.int
ernal.WebAppServletContext@424a534 - name: 'dicarta', context-path:
'/dicarta']:
 Servlet class com.dicarta.jsp._app._login._jsp.__LoginPage for servlet
com.dica
rta.jsp._app._login._jsp.__LoginPage.class could not be loaded because the
reque
sted class was not found in the classpath
C:\dev\contract\dev_r1_platform\ecm_do
main\servers\AdminServer\tmp\_WL_user\contracts-dev\wi7049\war\WEB-INF\lib\_wl_c

ls_gen.jar;C:\dev\contract\dev_r1_platform\ecm_domain\servers\AdminServer\tmp\_W

L_user\contracts-dev\wi7049\war\WEB-INF\classes;C:\dev\contract\dev_r1_platform\

ecm_domain\servers\AdminServer\tmp\_WL_user\contracts-dev\wi7049\war\WEB-INF\lib

\log.jar.
java.lang.ClassNotFoundException:
com.dicarta.jsp._app._login._jsp.__LoginPage.>

Examining the specified classpath and the _wl_cls_gen.jar - I see that all JSP
classes are there, but their names are all lowercase. So, for the class in
question, instead of _LoginPage.class I have a _loginpage.class in the jar.
Since I keep generated .java classes as well - I can see that their names are
also all lowercase, so that problem start there. Needless to say, the original
JSP names are correct - they have upper- and lower- case characters.

How could this happen and how can I force WLS to compile classes with correct
names??

Here are commands I use to precompile JSPs:
    <java dir="${build.jsp}"
    	error="${jsp.error.file}"
        append="true"
        classname="weblogic.jspc"
        fork="true"
        classpathref="jsp.class.path" >

        <arg line="-keepgenerated -d ${build.jsp}/src -compileAll
-package com.dicarta.jsp" />
        <jvmarg value="-Xmx1024m"/>
    </java>
    <javac
        srcdir="${build.jsp}/src"
        destdir="${build.jsp}/classes"
        debug="${java.debug}"
    	fork="true"
    	memoryMaximumSize="1024m"
        includes="com/dicarta/jsp/**">
        <classpath refid="jsp.class.path"/>
    </javac>

Thanks,
Marina Popova

--
Post Reply
about | contact