When I precompile my JSPs on Tomcat 5.5 with JDK 1.5 and I use the javac
option -Xlint:unchecked, I get this warning for those files which
include another:
[javac]
C:\tomcat\webapps\XXX\WEB-INF\jsprc\org\apache\jsp\admintool\edit_jsp.java:25:
warning: [unchecked] unchecked call to add(E)
That was it,
I had the same har in my classpath, removed it ant jspc is running smoothly
now.
Thanks for (all) the Help I got,
Hans
On Wed, Dec 17, 2003 at 03:51:56PM +0100, Reinhard Moosauer wrote:
Hi Hans,
your problem is a version conflict.
ant simply uses the wrong version of
Hi Hans,
your problem is a version conflict.
ant simply uses the wrong version of org.apache.jasper.JspC.
I had a version of j2ee-1.3.jar in my classpath, which contains JspC also.
I removed it and the problem was gone.
regards,
Reinhard
Am Sonntag, 14. Dezember 2003 18:03 schrieb Hans
PROTECTED]
Responder:Tomcat Users List
Enviada: domingo, 14 de dezembro de 2003 14:03
Para: [EMAIL PROTECTED]
Assunto: precompile jsp
hi all,
just a question, I'm trying to precompile my jsp with the ant build
script from the apache site ( jasper-howto).
I don.t now what
: [EMAIL PROTECTED]
Assunto:precompile jsp
hi all,
just a question, I'm trying to precompile my jsp with the ant build
script from the apache site ( jasper-howto).
I don.t now what is going wrong but when I execute it with:
ant -Dtomcat.home=/opt/jakarta-tomcat-4.1.24
: Re: precompile jsp
Doing it this way your using ants jspc task giving the classes a
packagename
org.apache
I have checked tomcats work directory and see that tomcat compiles the jsp
in a package org.apache.jsp.
Thats why I like to use tomcats jspc task (org.apache.jasper.JspC), to
avoid
hi all,
just a question, I'm trying to precompile my jsp with the ant build
script from the apache site ( jasper-howto).
I don.t now what is going wrong but when I execute it with:
ant -Dtomcat.home=/opt/jakarta-tomcat-4.1.24
Hong Fan wrote:
[...]
The interesting thing is that these same jsps run with
no problem on tomcat,
i.e. tomcat will precompile/compile them at run time
and they work fine
Does anyone know whats going on? How can I get Ant to
do the precompile.
I have encountered the very same problem here.
Hi,
I have a hint on that issue:
The jasper compiler crashes if the TLD contains a variable-section.
In my case, commenting out the following section from my TLD
made jasper run without any errors:
variable
name-from-attributevar/name-from-attribute
Hi
I tried to precompile a jsp page which uses tags by
using ant jspc task documented in tomcat 4.1.24, but
it generated nullpointer exception. I believe there is
similar post regarding the same problem. Does any one
know the cause?
Thanks
http://www.mail-archive.com/[EMAIL
Hi
I tried to precompile a jsp page which uses tags by using ant jspc task
documented in tomcat 4.1.24, but it generated nullpointer exception. I
believe there is similar post regarding the same problem. Does any one know
the cause?
Thanks
http://www.mail-archive.com/[EMAIL
Hi
I tried to precompile a jsp page which uses tags by
using ant jspc task documented in tomcat 4.1.24, but
it generated nullpointer exception. I believe there is
similar post regarding the same problem. Does any one
know the cause?
Thanks
http://www.mail-archive.com/[EMAIL
Hi
I tried to precompile a jsp page which uses tags using ant jspc task
documented in tomcat 4.1.24, but it generated nullpointer exception. I
believe there is similar post regarding the same problem. Does any one know
the cause?
Thanks
http://www.mail-archive.com/[EMAIL
=file.jsp).
Can any body find a way to precompile jsp ?
We definitely need a regular hook for this.
We still need a hook or a definite answer No, it cannot be done or No, it won't
be around for a while.
Precompilation is a feature of a particular container -- it's not anything
mandated by the JSP spec. Tomcat's current implementation of
Precompile all the jsp files in your project in your ant.xml file as
part of the build process when making your war file.
Nikola Milutinovic wrote:
We definitely need a regular hook for this.
We still need a hook or a definite answer No, it cannot be done or No, it won't
be around for a
Precompile all the jsp files in your project in your ant.xml file as
part of the build process when making your war file.
Yes, yes, it can be done, but what we want is to have JSP normal and then precompiled
upon context mounting. Startup servlet cannot do it, since it starts before JSP
-Original Message-
From: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 19, 2001 8:54 AM
To: Tomcat Users List
Subject: Re: Precompile JSP
Precompile all the jsp files in your project in your
ant.xml file as
part of the build process when making
can asume safely, that the
JSP servlet is already running. (8}
-Ursprüngliche Nachricht-
Von: Nikola Milutinovic [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 19. November 2001 14:54
An: Tomcat Users List
Betreff: Re: Precompile JSP
Precompile all the jsp files in your project
Subject: AW: Precompile JSP
Just another version of 'How to shoot your self in the foot':
- Make a servlet that loads on startup.
- From this servlet make a forward to a jsp
that does what ever you want after the
JSP servlet is started.
Through the forward you force the startup of the JSP
2. Run a startup servlet, which will precompile all JSPs in your
webapp (request them with URL /path/file.jsp?precompile=true, I think)
As I wrote before this is not possible, because a jsp can first be accessed
after the container is *completely* up - including all servlet-startups!
(sigh) and I thought it was such a good idea...
me too :)
Could we have a startup servlet that would wait for a JSP servlet
to start-up and then call all the pre-compilations? Or just wait
for a while? (That sucks as an idea, I know)
We definitely need a regular hook for this.
On Fri, 16 Nov 2001, pero wrote:
Date: Fri, 16 Nov 2001 10:26:07 +0100
From: pero [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Precompile JSP
(sigh) and I thought it was such a good idea...
me too :)
Could we
Hi,
Precompilation is a feature of a particular container -- it's not anything
mandated by the JSP spec. Tomcat's current implementation of that is
jspc -- if you don't like jspc for some reason, you'll need to suggest
(or, better, contribute :-) an implementation that does what you want.
Try bin/jspc.bat or jspc.sh
- Original Message -
From: KL OOI [EMAIL PROTECTED]
To: TOMCAT-USER [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 11:25 PM
Subject: Precompile JSP
Hi all,
Do anyone here know how to compile all the JSP pages before I roll out for
production
Do anyone here know how to compile all the JSP pages before I roll out for
production??
Every JSP, when called, is turned into a JAVA source code and compiled into a servlet,
the first time it is called.
You can do this manually:
${CATALINA_HOME}/bin/jasper.sh jspc
I like to complie JSP's by visiting them once. This way you even verify
that they actually work.
Pritpal Dhaliwal
- Original Message -
From: KL OOI [EMAIL PROTECTED]
To: TOMCAT-USER [EMAIL PROTECTED]
Sent: Wednesday, November 14, 2001 11:25 PM
Subject: Precompile JSP
Hi all,
Do
The first time you use the page with the web server the page will compile it
self - if it is not already compiled.
- Original Message -
From: KL OOI [EMAIL PROTECTED]
To: TOMCAT-USER [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 8:25 AM
Subject: Precompile JSP
Hi all,
Do anyone
OOI [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 8:33 AM
Subject: Re: Precompile JSP
Can I compile it first?
- Original Message -
From: Lars Nielsen Lind [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; KL OOI
[EMAIL
[EMAIL PROTECTED]; Tom Drake
[EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 11:54 AM
Subject: RE: Precompile JSP
| Try bin/jspc.bat or jspc.sh
|
| I would like to compile my jsp's as a test before I deploy it and see if
it
| works. I spend quite a lot of time changing stuff, deploying, loading
(or at least adds another point of view to the discussion)
pero
-Original Message-
From: Tom Parker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 8:54 PM
To: Tomcat Users List; Tom Drake
Subject: RE: Precompile JSP
Try bin/jspc.bat or jspc.sh
I would like to compile my
page.
Any Tomcat contributors out there want to help answer this one?
-Tim
-Original Message-
From: Tom Drake [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 15, 2001 3:09 PM
To: Tomcat Users List
Subject: Re: Precompile JSP
Tom:
I'm not aware of any such option. I have always just
To: 'Tomcat Users List'
Subject: RE: Precompile JSP
Doesnt Tomcat offer anything like a precompile when starting up
the server?
In BEA WebLogic, you can edit the XML configuration files so that it will
automatically precompile ur JSPs on startup. It takes a bit
longer to start
up
]
Sent: Thursday, November 15, 2001 12:07 PM
Subject: RE: Precompile JSP
| Note: Jspc doesn't compile your jsps as the webserver would do. That means
| that when you call jspc and start the server afterwards then the webserver
| will compile the jsps itselft again (at least this is my experience). I
: Precompile JSP
Not true. You can deploy your pre-compiled jsp's in the
form of java classes. There is no need to deploy jsp source
code. You'll need to make corresponding mapping
entries in your web.xml, however.
- Original Message -
From: pero [EMAIL PROTECTED]
To: Tomcat Users List
Try bin/jspc.bat or jspc.sh
I would like to compile my jsp's as a test before I deploy it and see if it
works. I spend quite a lot of time changing stuff, deploying, loading in a
web browser and seeing jsp compiliation problems.
It would be nice to have jspc compile my jsp's
2. Run a startup servlet, which will precompile all JSPs in your
webapp (request them with URL /path/file.jsp?precompile=true, I think)
As I wrote before this is not possible, because a jsp can first be accessed
after the container is *completely* up - including all servlet-startups! And
so
Hi all,
Do anyone here know how to compile all the JSP pages before I roll out for production??
Thanks..
Regards,
KL OOI
Can I compile it first?
- Original Message -
From: Lars Nielsen Lind [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]; KL OOI
[EMAIL PROTECTED]
Sent: Thursday, November 15, 2001 3:31 PM
Subject: Re: Precompile JSP
The first time you use the page with the web server the page
Hi All,
I'm sure this has been ask before but can some one help me.
I am working on a webapp which will have many JSP page, when the server is
rebooted I don't want the first visitor to each page to have to wait for them
to be compiled. Is there any way round this?
Many thanks
James Bailey
Use the jspc utiltity. It's in tomcat's bin directory.
Cheers, Matt
- Original Message -
From: James Bailey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, July 11, 2001 12:16 PM
Subject: Precompile JSP with Tomcat
Hi All,
I'm sure this has been ask before but can some one
Hi
Is it possible to precompile files on startup?
Thank you
Jan
__
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is intended solely for the addressee and is confidential.
yes it is
do check the faq
~krishnakant
Pernica, Jan wrote:
Hi
Is it possible to precompile files on startup?
Thank you
Jan
__
Tato komunikace je urcena vyhradne pro adresata a je duverna.
This communication is
I did I have not found any detail. Could you be more specific?
Thank you
Jan
On Thursday, June 07, 2001 12:13 PM, Krishna Kant T
[SMTP:[EMAIL PROTECTED]] wrote:
yes it is
do check the faq
~krishnakant
Pernica, Jan wrote:
Hi
Is it possible to precompile files on startup?
I don't want the files to be compiled at startup. I don't want them
to ever have to be compiled once installed on the users machine.
I want to compile them, package the .class files and ship my
application.
Has anyone tried this with success? I don't want to install the JDK on
the users
]]
Sent: Tuesday, January 23, 2001 7:03 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?
I don't want the files to be compiled at startup. I don't want them
to ever have to be compiled once installed on the users machine.
I want to compile them
I don't want to install the JDK onto the server either. It is
too big. When
I install my app I will install Tomcat to use http as the transport
mechanism.
Is there a way around having to install the JDK at all?
The other option is to compile the jsp's somewhere else and copy over
the
Another way to do this is write a servlet that will make a
request to all jsp's in your webapp at startup. This takes
care of the class name translations and such.
---
Michael Wentzel
Software Developer
A HREF="http://www.aswethink.com"Software As We Think/A
A HREF="mailto:[EMAIL
, as I assume I will have to. Just the JVM.
-Don
-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 6:47 AM
To: '[EMAIL PROTECTED]'
Subject: RE: How do I precompile JSP files for final Production use?
Another way to do this is write
ubject: RE: How do I precompile JSP files for final Production use?
I don't want the files to be compiled at startup. I don't want them
to ever have to be compiled once installed on the users machine.
I want to compile them, package the .class files and ship my application.
Has anyone tried this with s
[EMAIL PROTECTED] (Ciot, Thierry) writes:
o You can't have a JSP page include a file one directory level up (that is
page.jsp using %@include file="../xxx.jsp"%) See my post last Friday "jspc
problem when including files (relative)" (no answer yet)
I didn't see your original message, but I
When I ship or deploy my app, I do not intend
to install the JDK on the users machine. I understand
that I can precompile all of the JSP files to .class
files and this will work. Can someone explain this
process?
If I call:
FORM action="login.jsp" method="post"
but I only have the precompiled
I noticed that if I precompile JSP with jspc and setup servlet mapping
in web.xml,
changes to the original JSP file will not be picked up by Tomcat. Can I
have both
or are they mutually exclusive?
Bill
-
To unsubscribe, e
They are mutually exclusive.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 2:01 PM
To: [EMAIL PROTECTED]
Subject: precompile JSP with jspc picking up changes in JSP source
I noticed that if I precompile JSP with jspc
.
-Original Message-
From: Joan Xiao [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 14, 2000 1:57 AM
To: [EMAIL PROTECTED]
Subject: precompile jsp
Hi all,
I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:
1. run jspc and generate
Joan Xiao typed the following on 17:01 13/12/2000 -0800
I've been trying to use jspc to precompile the jsp pages into java classes.
I've moved this to tomcat-user, since tomcat-dev is for discussing development
of tomcat itself, not how to use tomcat.
Now I have problem with where to put the
Hi all,
I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:
1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
Now I have problem with
Hi all,
I've been trying to use jspc to precompile the jsp pages into java classes.
Below is the steps
I've taken:
1. run jspc and generate the java code and web.xml
2. insert the web.xml generated in step1 into my web.xml.
3. compile the java files into class files.
Now I have problem with
58 matches
Mail list logo