• Post Reply Bookmark Topic Watch Topic
  • New Topic

JSP precompilation - wrong generated classnames  RSS feed

 
Marina Popova
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Marina",
Please check your private messages.
[ January 29, 2008: Message edited by: Ben Souther ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!