Hi Bill,
Thanks again for your response. I believe (if I am not mistaken) that
the method signature displayed in the error as No Such Method (i.e.
the method expected based on the compiled JSP) is the same as the method
you listed below.
Here is the error
java.lang.NoSuchMethodError:
My guess is you are missing the tomcat 4 version of jasper-runtime.jar in
your web-inf/lib dir.
If your precompile a webapp with tomcat 4 code(or I assume jetty uses jasper
as its JSP engine). You need to supply jasper-runtime.jar with your webapp if
you run it on a container running tomcat 5
Hello,
I have an application that is currently running under JBoss 3.2.x
with Jetty that I would like to get running on Tomcat 5.X. I have
precompiled all of the JSP's and mapped them to there respective JSP
path in the web.xml. Here is a sample fragment of the web.xml:
?xml
I just checked, and there is indeed NoSuchMethod in Tomcat 5.
You need to re-precompile your JSPs using the jspc from Tomcat 5 for it to
work. It's not enough to just move the class files over, since they
reference the Jasper version that they were compiled with.
Mike Baliel [EMAIL PROTECTED]
Thanks for replying Bill
I have Tomcat 5.0 installed and I checked the jasper-runtime.jar located
at Tomcat5.0\common\lib and in my copy the method exists... ?
Are you looking in jasper-compiler or jasper-runtime?
Bill Barker wrote:
I just checked, and there is indeed NoSuchMethod in
Mike Baliel [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Thanks for replying Bill
I have Tomcat 5.0 installed and I checked the jasper-runtime.jar located
at Tomcat5.0\common\lib and in my copy the method exists... ?
Are you looking in jasper-compiler or jasper-runtime?
Hi List!
I would like to know if there are any metrics available on the performance
gain achieved by using precompiled jsp's and custom tag pooling.
Thanks and Regards,
Anand Ravi
-
To unsubscribe, e-mail: [EMAIL PROTECTED
I would like to bundle my application into a single .war file.
In addition I would like to include the precompiled .jsp files
in the war file as opposed to the .jsp files themselves.
Is there a way to do this? I would like to deploy my
application to a target without a `javac`.
A description of
- Precompile your jsp's
- Precompiling also involves changing your web.xml to map jsp files to the
compiled version of your class
Precompiling involves translating your jsp's to class files webapp build time
(instead of run time) via jspc(?). The class files will reside in your
WEB-INF/classes
of a web application before putting it
in production.
I would be interested to hear how and what you do..
Cheers
Euan
-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]
Sent: 08 June 2003 19:01
To: Tomcat Users List
Subject: Re: precompiled jsp's as a part of application war file
You have a bunch of servlet-mappings in your web.xml file that map that maps
the jsp URL to the pre-compiled class. Jspc will generate these for you.
One gotcha with doing this is that TC 4.x won't find welcome-files (e.g.
index.jsp) unless there is an actual file with that name. The file can
Hi,
If I create a war file which holds precompiled jsp's will they work with any
web server? I am wondering about how to develop a generic war file that is
not tied to the web server.
Regards
Alex
Hi,
I am figuring this out myself. I used the -webxml flag to create a new
web.xml file. It takes the jsp files and creates servlet and servlet mapping
entries. I then copied these entries over to my original web.xml file. I
then started my app. It worked fine.
Although in the servlet mappings,
need to do servlet and servlet-mapping tags in your web.xml filr for
each jsp
Thys De Wet (ZA) wrote:
Ok so I got my JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class files ...
ANy help
PLEASE ..
*begs on knees*
You need to include the URL to servlet mappings in
your web.xml file. The -webinc switch will generate
the mappings. Here's the command line I use:
jspc -d jsp2java -p com.myco.myapp.jsp -webinc
WEB-INF/jspc.xml -webapp .
After Ant runs the jspc command I have it run a javac
task which places
Why are you pre-compiling the JSP's?
Doesn't Tomcat do that automatically?
How do you precompile JSPs on startup? I know they can be precompiled if called with
that precompile URL. But suppose I had a lot of JSPs and I would like to tell Tomcat
to precompile a defined portion of them into
-Original Message-
From: Barry White [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 1:16 PM
To: [EMAIL PROTECTED]
Subject: Re: Precompiled jsp's
Why are you pre-compiling the JSP's?
Doesn't Tomcat do that automatically?
Tomcat does to it automatically
Ok so I got my JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class files ...
ANy help
PLEASE ..
*begs on knees*
**
This email and any files transmitted
JspServ is directory you have placed them in.
Hope that helps,
Dave
Thys De Wet (ZA) [EMAIL PROTECTED] on
10/24/2001 05:12:37 AM
Please respond to [EMAIL PROTECTED]
To: '[EMAIL PROTECTED]'
[EMAIL PROTECTED]
cc:(bcc: David Hay/Lex/Lexmark)
Subject: Precompiled jsp's
Ok so I got my
Why are you pre-compiling the JSP's?
Doesn't Tomcat do that automatically?
- Original Message -
From: Thys De Wet (ZA) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 24, 2001 5:12 AM
Subject: Precompiled jsp's
Ok so I got my JSP's compiled into class files
: Thys De Wet (ZA) [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 24, 2001 5:13 AM
To: '[EMAIL PROTECTED]'
Subject: Precompiled jsp's
Ok so I got my JSP's compiled into class files..
Placed them in /WEB-INF/classes..
Now how do I tell Tomcat 3.2.3 to use these class files ...
ANy help
You should be putting your uncompiled jsp's in your context's root
directory (webapps/your-context/your.jsp). Tomcat will do the compiling
for you.
When you access it via http://host:port/your-context/your.jsp, Tomcat will
compile it for you and put the class file (and source file) in the 'work'
22 matches
Mail list logo