I am running into a class hierarchy mismatch with taglibs and jasper2 out
of tomcat 5.5 and precompiling jsp pages built with the struts taglibs.
I have:
Jboss AS 4.0.2
Tomcat 5.5 (bundled)
Struts 1.2.4
The error I am getting at compile time is:
[javac]
F:\Sandboxes\Projects\rainier-1
I think I found a problem with the jakarta-tomcat-5.5.10-deployer
package. When I run the compile task I get the following error:
BUILD FAILED
C:\jakarta-tomcat-5.5.10-deployer\build.xml:49: Could not create task
or type of type: jasper2.
Ant could not find the task or a class this task
/lib
include name=*.jar/
/fileset
fileset dir=${env.TOMCAT_HOME}/common/endorsed
include name=*.jar/
/fileset
fileset dir=${env.TOMCAT_HOME}/common/lib
include name=*.jar/
/fileset
/path
taskdef name=jasper2 classname=org.apache.jasper.JspC
classpath refid=build.classpath
/lib
include name=*.jar/
/fileset
/path
taskdef name=jasper2 classname=org.apache.jasper.JspC
classpath refid=build.classpath/
/taskdef
jasper2
validateXml=false
uriroot=${basedir}/web
webXmlFragment=${basedir}/jspc/generated_web.xml
addWebXmlMappings=true
outputDir
Hey Jim,
thanks for the tip. This works when the jspf files are compiled in
tomcat, but the jasper2 ant task does nothing with them...
Trond
Ziarkowski,
You may want to try adding the following to your web.xml
servlet-mapping
servlet-namejsp/servlet-name
url-pattern*.jspf/url
extension, and change my
jsp:include to reflect this change.
Is there a way to make the jasper2 task also include these files? I
haven't found any docs on the jasper2 task anywhere. A hint to find
these would be appreciated.
Regards
Trond Ziarkowski
, November 11, 2004 10:23 PM
To: Tomcat Users List
Subject: JSP fragments file extension and the jasper2 ant task
Hi all!
The J2EE 1.4 tutorial says: The recommended file extension for the
source file of a JSP page is |.jsp|. The page can be composed of a top
file that includes other files that contain
:
|
| Subject: JSPC/Jasper2 with no package name - bug
:
|
| Subject: JSPC/Jasper2 with no package name - bug
:
|
| Subject: Re: JSPC/Jasper2 with no package name - bug???
|
|
I don't know
Hi,
I precompile my JSP's. I have the source files under a directory structure
as follows:
src
jsp
user
admin
I am trying to use the JspC with Ant as described at
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html.
However, I want the package
Hi,
Speed. Fork is slower because of additional overhead.
Yoav Shapira
Millennium Research Informatics
-Original Message-
From: Carl Olivier [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 17, 2004 1:25 PM
To: '[EMAIL PROTECTED]'
Subject: Jasper2 fork
Greetings.
Quick question re
Greetings.
Quick question re the jasper2 (org.apache.jasper.servlet.JspServlet) fork
init param.
The default of the fork setting is true, however the Tomcat 5 binary (and I
think source) distribution ships with this init-param set to false.
Now the reason I am curious about this shipping
Hi all,
I am trying to use the jasper2 task that comes with Tomcat. In 4.1.12
version, when I had an error, it reported something similar to:
An error occurred at line: 15 in the jsp file: /NewUser.jsp
Generated servlet error:
[javac] Compiling 1 source file
C:\project\genjsp\index_jsp.java
Hi,
I am attempting to get the 'compile' task of the client deployer package
working. Can anyone assist with these jasper task issues please? (additions
to previous mail). I am using the std build.xml shipped with the 5.0.14
client deployer package.
jasper missing files
The jasper2 task
- jasper missing files
The jasper2 task to turn my .jsp's into *_jsp.java's ignores 750/1000 jsps.
There does not seem to be any rhyme nor reason to the ones it does / does
not ignore.
Thanks
Euan
-
To unsubscribe, e-mail: [EMAIL
Hello,
there a some strange phenomena in my build with the jasper2 ant task.
The following snippet is used to compile the JavaServer Pages:
path id=jasper2
pathelement location=${java.home}/../lib/tools.jar/
fileset dir=${catalina.home}/server/lib
Hi folks,
I have a web app that deploys and runs just fine under Tomcat 4.1.x with
JSPs being compiled on-the-fly. Now, I'm trying to precompile my JSPs using
jasper2 in Ant. I added a jspc target to my build.xml based on the example
at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper
Hi,
I'm having partial luck manually invoking JspC and compiling JSP pages on
demand. I get as far as precomiling to .java, but for the world of me
can't figure out how to get the java class compiled to bytecode. Looking
at the source code for org.apache.jasper.compiler.Compiler, it appears
I'm confused. Is Jasper2 intended for Tomcat 4 or Tomcat 5?
Dmitry
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Use the -compile argument.
-Original Message-
From: Dmitry Beransky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 9:55 AM
To: [EMAIL PROTECTED]
Subject: Jasper2's JspC
Hi,
I'm having partial luck manually invoking JspC and compiling JSP pages on
demand. I get as far
Both.
-Tim
Dmitry Beransky wrote:
I'm confused. Is Jasper2 intended for Tomcat 4 or Tomcat 5?
Dmitry
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
. It's much
much faster than javac.
Subir
-Original Message-
From: Dmitry Beransky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 11:50 AM
To: Tomcat Users List
Subject: RE: Jasper2's JspC
At 10:42 AM 8/13/2003, Subir Sengupta wrote:
Use the -compile argument.
At 10:42 AM
Woo-hoo! Thank you!
At 05:32 PM 8/7/2003, you wrote:
You need to check jasper out with the correct branch. The HEAD branch is
for 5. You need tomcat_4_branch
-Tim
Dmitry Beransky wrote:
Ok. But here's the confusing part. When I try to compile Tomcat 4.1.27
with Jasper2, I get error
At 10:42 AM 8/13/2003, Subir Sengupta wrote:
Use the -compile argument.
At 10:42 AM 8/13/2003, Steph Richardson wrote:
Otherwise, JspC will not create .class files for you, but the java files
that JspC creates can just be compiled with javac, using
Tomcat's classpath
Here's the thing. Setting
At 01:16 PM 8/13/2003, Subir Sengupta wrote:
Try using jspc with the -compile flag and see what happens. Your code is
probably not setting something (I don't know what), which is causing it to
not compile.
You're right. I found a conflict in option settings between the output
directory and the
Is there a way to successfully run Jasper 2 with Tomcat 4.1 under
Windows? I'm looking at the source code and there are a couple of places
where a check for an absolute path is done by looking if the path string
starts /, ignoring the possibility of a windows path like c:/. One
such a
TOMCAT_HOME/shared/lib/*.jar
as well as any web-app specific classpaths ( probably WEB-INF/lib/*.jar )
Steph
-Original Message-
From: Dmitry Beransky [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 13, 2003 12:55 PM
To: [EMAIL PROTECTED]
Subject: Jasper2's JspC
Hi,
I'm having partial
You need to check jasper out with the correct branch. The HEAD branch is for
5. You need tomcat_4_branch
-Tim
Dmitry Beransky wrote:
Ok. But here's the confusing part. When I try to compile Tomcat 4.1.27
with Jasper2, I get error messages complaining that there is so such
function
Ok. But here's the confusing part. When I try to compile Tomcat 4.1.27
with Jasper2, I get error messages complaining that there is so such
function as TagInfo.hasDynamicAttributes(). Surely, this function was
introduced in JSP 2.0 and is only available in
jakarta-servletapi-5. However
Johann Uhrmann wrote:
[...]
The taskdef tag and the jasper2 tag do not care about the
path set in compile.classpath. Instead, the CLASSPATH variable
from the shell is used.
How do I make ant (or especially those two tags) recognize the
path in compile.classpath?
[...]
Anybody?
It seems
Hello,
I have an issue with the following snippet of my
ant build-script:
taskdef classname=org.apache.jasper.JspC
classpathref=compile.classpath name=jasper2/
jasper2
verbose=3
package=my.package
uriroot=${temp.home}
outputDir=${temp.home} /
The taskdef tag and the jasper2 tag do
Hi.
My project has jsps, some of which use jstl/jakarta taglibs.
I use ant to pre-compile/compile my jsps manually. All jsps which dont use
taglibs still precompile/compile happily. However jsps with jstl/taglibs do
NOT compile with ant because of some nullpointer exception:
jsp_precompile:
the jasper2 task where to find the WEB-INF
directory??
At first glance it seems there is no option for this available:
jasper2
validateXml=false
uriroot=${basedir}/jsp
webXmlFragment=${basedir}/webinc.xml
outputDir=${basedir}/src /
thx alot
Johannes
Greets:
Does anyone knowwhere to download the source for Jasper2? I am building
Tomcat on Solaris and ran into a problem requiring the source. I looked
all over the Jakarta web site, but no luck.
Thanks,
Eric Kropf
Systems Administrator
Engineous Software, Inc
in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Greets:
Does anyone knowwhere to download the source for Jasper2? I am building
Tomcat on Solaris and ran into a problem requiring the source. I looked
all over the Jakarta web site, but no luck.
Thanks,
Eric Kropf
Systems Admin
Hello, Sven.
Try setting Context.reloadable to true, restart Tomcat, and see if that
works for you.
Sven Köhler [EMAIL PROTECTED] wrote in message
b2m0cd$9pb$[EMAIL PROTECTED]">news:b2m0cd$9pb$[EMAIL PROTECTED]...
I just checked the web.xml file in $CATALINA_HOME/conf/web.xml. It
suggests
I just checked the web.xml file in $CATALINA_HOME/conf/web.xml. It suggests
the development is the default mode in which Jasper operates. Have you
tried leaving development, reloading, and checkInterval out of your web.xml
file to see if the standard behavior works?
The tomcat-docs also state,
I just checked the web.xml file in $CATALINA_HOME/conf/web.xml. It
suggests
the development is the default mode in which Jasper operates. Have you
tried leaving development, reloading, and checkInterval out of your
web.xml
file to see if the standard behavior works?
The tomcat-docs also
It can take up to 15 seconds (default) for Tomcat to poll for changes to
class files. The frequency of how often Tomcat checks can be changed via
the Loader checkInterval property in the containing Context node. Ensure
Context.reloadable and Loader.reloadable are not set to false; they are true
PROTECTED]
Subject: Re: AW: modified jsp-files and jasper2
The page was uploaded an hour ago, but you still couldn't see the
correct page online. I checked the work-folder, and the jsp-page has
_not_ been compiled. the old .java and .class file was still
Have you compared the date of the jsp file
with the corresponding java and class file?
Maybe the old class file is newer than the jsp file?
i haven't done that yet, but as the date of machine is synchronized with
a time-server it should always be correct.
i have also deleted the whole
Another wild guess:
How is the upload done? What happens to the file date-time when uploading?
- Lorenz
i haven't done that yet, but as the date of machine is
synchronized with
a time-server it should always be correct.
-
Hi, Sven.
Down below...
- Original Message -
From: Sven Köhler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, February 14, 2003 02:04
Subject: Re: AW: modified jsp-files and jasper2
It can take up to 15 seconds (default) for Tomcat to poll for changes to
class files
On Fri, 14 Feb 2003, Sean Dockery wrote:
[ Aside: Does manager/reload fail if Context.reloadable=false? ]
No ... explicitly reloading via the manager webapp does not care wither
reloadable was set to true or false. Even when I'm developing a webapp, I
don't use the reloadable flag at all --
hi,
i've got weired probles with tomcat, because he doesn't compile/reload
modified jsp-files. perhaps it does compile it (haven't checked that,
yet) but even after hours i still see an old page.
development if false, and the checkinterval is was set to 10/60/300 seconds.
i don't know, if it
]
Betreff: modified jsp-files and jasper2
hi,
i've got weired probles with tomcat, because he doesn't
compile/reload
modified jsp-files. perhaps it does compile it (haven't checked that,
yet) but even after hours i still see an old page.
development if false, and the checkinterval
Have you tried stopping and restarting Tomcat?
Sometimes it's also necessary to empty the browsers
cache and restart the browser.
Hitting the reload-button of my browser should help, but it doesn't.
Reloading the application through tomcat's manager-app solves the
problem, but that is not a
John
-Original Message-
From: news [mailto:[EMAIL PROTECTED]] On Behalf Of Sven Köhler
Sent: Thursday, February 13, 2003 8:10 AM
To: [EMAIL PROTECTED]
Subject: Re: AW: modified jsp-files and jasper2
Have you tried stopping and restarting Tomcat?
Sometimes it's also necessary
The web.xml file has settings for reloading jsp pages you might have to
change the settings you have there. Also your browser might be caching
the pages so you can also turn off browser caching.
For jasper settings see the docs
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html
Certified Delphi Programmer
SBD Consultants
http://www.sbdconsultants.com
- Original Message -
From: Sven Köhler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, February 13, 2003 07:52
Subject: Re: AW: modified jsp-files and jasper2
The web.xml file has settings for reloading jsp
On Thu, 16 Jan 2003, Will Hartung wrote:
Date: Thu, 16 Jan 2003 09:11:05 -0800
From: Will Hartung [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Subject: Jasper vs Jasper2
Hi all,
Just for clarity, if you will.
I hear
I'll chime in on this, since I've done quite a bit of
benchmarking and testing with jasper jasper2.
Kin-man, jan, remy and everyone else have made great
strides in improving jasper2 performance.
jasper1 had serious problems with tags, because it
generated deeply nested try/catch blocks
Hi all,
Just for clarity, if you will.
I hear references to jasper and jasper2 vis-a-vis the JSP compiler/subsystem
within Tomcat.
I see commits against a jasper2 section when browsing tomcat-dev.
My question is which jasper is in the current 4.1.x release?
How are they different
implements IterationTag)
jasper2 generates
the following code:
int _jspx_eval_tag_iterate_0 = _jspx_th_tag_iterate_0.doStartTag();
if (_jspx_eval_tag_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
Cms mycms = null;
if (_jspx_eval_tag_iterate_0
implements IterationTag)
jasper2 generates
the following code:
int _jspx_eval_tag_iterate_0 = _jspx_th_tag_iterate_0.doStartTag();
if (_jspx_eval_tag_iterate_0 != javax.servlet.jsp.tagext.Tag.SKIP_BODY) {
Cms mycms = null;
if (_jspx_eval_tag_iterate_0
Hello,
I'm trying to build tomcat 4.1.10 from the
source and when I do an ant dist I get
the following error message:
file:/usr/local/tomcat-src/build.xml:67:
Basedir /usr/local/jakarta-tomcat-jasper/jasper2 does not exist
Where exactly can I download jasper? I have
found nothing
Hi,
While trying to upgrate the tomcat version to 4.1.10 I found the following problem
with the Jasper2 jsp compiler.
The Jasper's compiler produces the invalid code
(that can't be compiled due to the invalid variable declarations)
in case there are includes inside some custom tags
58 matches
Mail list logo