Forums Register Login

JSP precompilation - wrong generated classnames

+Pie Number of slices to send: Send
Hello,
I'm not sure if I should rather post this topic under BEA/Weblogic forum, but it is JSP-related, so I decided to try it here.

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> 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 requested class was not found in the classpath C:\dev\contract\dev_r1_platform\ecm_domain\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
+Pie Number of slices to send: Send
"Marina",
Please check your private messages.
[ January 29, 2008: Message edited by: Ben Souther ]
We can walk to school together. And we can both read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 724 times.
Similar Threads
error while deplying jax-ws ?
[UPDATED] Announcing FrontMan 1.6.2
Error in defining filter in web.xml
JSP precompilation - wrong generated classnames
unable to find out filter in web.xml
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 05:00:12.