Struts, JSP 2.0 and Jasper2 compiler/code generation error

2005-09-13 Thread Clark Wright
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

Tomcat 5.5.10 jasper2 fails in deployer build.xml

2005-08-15 Thread Richard Mixon (qwest)
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

Re: strange Jasper2 + JSTL behavior after upgrading from TC 5.0.29 to TC 5.5.7 [SOLVED]

2005-03-24 Thread Thomas Chille
/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

strange Jasper2 + JSTL behavior after upgrading from TC 5.0.29 to TC 5.5.7

2005-03-23 Thread Thomas Chille
/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

Re: JSP fragments file extension and the jasper2 ant task

2004-11-12 Thread Trond G. Ziarkowski
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

JSP fragments file extension and the jasper2 ant task

2004-11-11 Thread Trond G. Ziarkowski
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

RE: JSP fragments file extension and the jasper2 ant task

2004-11-11 Thread Sng Wee Jim
, 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

Re: JSPC/Jasper2 with no package name - bug???

2004-07-30 Thread dhay
: | | Subject: JSPC/Jasper2 with no package name - bug

Re: JSPC/Jasper2 with no package name - bug???

2004-07-30 Thread Dennis Dai
: | | Subject: JSPC/Jasper2 with no package name - bug

Re: JSPC/Jasper2 with no package name - bug???

2004-07-30 Thread dhay
: | | Subject: Re: JSPC/Jasper2 with no package name - bug??? | | I don't know

JSPC/Jasper2 with no package name - bug???

2004-07-29 Thread dhay
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

RE: Jasper2 fork

2004-06-18 Thread Shapira, Yoav
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

Jasper2 fork

2004-06-17 Thread Carl Olivier
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

jasper2 ant task does not report JSP error descriptions

2003-12-10 Thread Rodrigo Ruiz
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

FW: jasper2 issues - client deployer

2003-11-11 Thread Euan Guttridge
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

jasper2 issues - client deployer

2003-11-10 Thread Euan Guttridge
- 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

Jasper2 ant task questions

2003-08-18 Thread Johann Uhrmann
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

Jasper2: Can't load class for custom tag library

2003-08-18 Thread Jason Axtell
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

Jasper2's JspC

2003-08-14 Thread Dmitry Beransky
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

jasper2

2003-08-14 Thread Dmitry Beransky
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]

RE: Jasper2's JspC

2003-08-14 Thread Subir Sengupta
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

Re: jasper2

2003-08-14 Thread Tim Funk
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]

RE: Jasper2's JspC

2003-08-14 Thread Subir Sengupta
. 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

Re: jasper2

2003-08-14 Thread Dmitry Beransky
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

RE: Jasper2's JspC

2003-08-14 Thread Dmitry Beransky
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

RE: Jasper2's JspC

2003-08-14 Thread Dmitry Beransky
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

Jasper2 absolute file paths under Windows

2003-08-14 Thread Dmitry Beransky
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

RE: Jasper2's JspC

2003-08-14 Thread Steph Richardson
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

Re: jasper2

2003-08-10 Thread Tim Funk
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

Re: jasper2

2003-08-08 Thread Dmitry Beransky
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

Re: jasper2 in ant and the classpath

2003-07-17 Thread Johann Uhrmann
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

jasper2 in ant and the classpath

2003-07-16 Thread Johann Uhrmann
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

jasper2/jspc null pointer errors on jsps with taglib/jstl

2003-04-01 Thread Hammad Sophie
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:

Jasper2 (JSPC) compiler option for WEB-INF directory?

2003-03-30 Thread johannes . fiala
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

Jasper2

2003-02-18 Thread Eric J. Kropf
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

Re: Jasper2

2003-02-18 Thread Bill Barker
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

Re: AW: modified jsp-files and jasper2

2003-02-16 Thread Sean Dockery
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

Re: AW: modified jsp-files and jasper2

2003-02-15 Thread Sven Köhler
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,

Re: AW: modified jsp-files and jasper2

2003-02-15 Thread Sven Köhler
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

Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Sven Köhler
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

RE: AW: modified jsp-files and jasper2

2003-02-14 Thread Ralph Einfeldt
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

Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Sven Köhler
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

AW: AW: modified jsp-files and jasper2

2003-02-14 Thread Lorenz Beyeler
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. -

Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Sean Dockery
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

Re: AW: modified jsp-files and jasper2

2003-02-14 Thread Craig R. McClanahan
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 --

modified jsp-files and jasper2

2003-02-13 Thread Sven Khler
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

AW: modified jsp-files and jasper2

2003-02-13 Thread Lorenz Beyeler
] 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

Re: AW: modified jsp-files and jasper2

2003-02-13 Thread Sven Khler
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

RE: AW: modified jsp-files and jasper2

2003-02-13 Thread John Trollinger
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

Re: AW: modified jsp-files and jasper2

2003-02-13 Thread Sven Köhler
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

Re: AW: modified jsp-files and jasper2

2003-02-13 Thread Sean Dockery
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

Re: Jasper vs Jasper2

2003-01-17 Thread Craig R. McClanahan
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

Re: Jasper vs Jasper2

2003-01-17 Thread Peter Lin
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

Jasper vs Jasper2

2003-01-16 Thread Will Hartung
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

repost: eval_body_include and jasper2

2002-12-13 Thread Jochen Schwörer
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

EVAL_BODY_INCLUDE and jasper2

2002-12-12 Thread Jochen Schwörer
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

jasper2

2002-09-21 Thread Werner Schalk
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

BUG/FIX NEEDED: The Jasper2 bug with handling includes/custom tags.

2002-09-11 Thread lds
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