Hello,
I'm trying to precompile JSPs and have run into some
trouble with the mappings. First off I CANNOT use the
Ant build method as specified in
"http://jakarta.apache.org/tomcat/tomcat-5.0-doc/printer/jasper-howto.html#Web%20Application%20Compilation"
due to a lack of certain UNIX commands on the machine
I'm running on (An iSeries server running a QShell
interpreter in case you're interested). I get
complaints about the "which" command and I am sure
other commands are missing as well. So, I am
attempting to compile all the JSPs using jspc
directly. The archives are full of references to this
but most come down to RTFM, "Use this Ant script" or
"compile to your working directory" all of which I've
either already tried, can't use, and don't want to use
in a released product.
I've successfully created .class files, copied them
to the classes directory and integrated the generated
xml servlet mapping fragment into my web.xml. I
received "requested resource not found" when I tried
to access the first compiled page. I did some more
research, noted that all my classes were part of the
org.apache.jsp package and created an org/apache/jsp
directory under my classes directory and copied all my
classes over to it. I left the web.xml alone and
restarted tomcat. I still ran into the "requested
resource not found" error. I then tried modifying the
web.xml servlet definitions and mappings to see if
fully qualified class names were a problem. None of
these attempts worked.
So, my question is: If my class files are part of
the org.apache.jsp package and exist in an
org/apache/jsp directory rooted in my applications
WEB-INF/classes directory shouldn't they be found if
my web.xml defines the servlet and servlet mapping as
below:
<servlet>
<servlet-name>org.apache.jsp.entry_jsp</servlet-name>
<servlet-class>org.apache.jsp.entry_jsp</servlet-class>
</servlet>
.
.
.
<servlet-mapping>
<servlet-name>org.apache.jsp.entry_jsp</servlet-name>
<url-pattern>/entry.jsp</url-pattern>
</servlet-mapping>
I have a feeling the subdirectories my jsps exist in
before they are compiled are the problem, as hinted at
in a few archive posts, but am at a loss as to what to
try next. Is there a way to get jspc to include these
subdirectories in the package name? Does it even
matter if they are? Any help or pointers on this
would be greatly appreciated.
Jason
__________________________________
Do you Yahoo!?
Yahoo! Domains � Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]