Re: JspC exception with log4j in WEB-INF/lib

2005-10-10 Thread Artur Brinkmann
But as soon as I put log4j-1.2.9.jar into my WEB-INF/lib directory, it doesn't work any more. I get the following exception: [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:220) After building a vers

RE: JspC exception with log4j in WEB-INF/lib [255729:132231]

2005-10-07 Thread RTE - Meridian Club
"Artur Brinkmann" <[EMAIL PROTECTED]> > Received: 10/7/2005 2:27 PM > To: "" > Subject: JspC exception with log4j in WEB-INF/lib > > I'm trying to use the Jspc ant task to precompile JSP pages. It's almost > working except for one problem. I made a min

JspC exception with log4j in WEB-INF/lib

2005-10-07 Thread Artur Brinkmann
I'm trying to use the Jspc ant task to precompile JSP pages. It's almost working except for one problem. I made a minimal webapp, with the usual structure, and just one empty JSP file. The task runs fine and compiles the JSP without problems. But as soon as I put log4j-1.2.9.jar i

Re: JspC compile exception in tomcat-deployer 5.5.10

2005-08-16 Thread Remy Maucherat
On 8/16/05, Bernhard Slominski <[EMAIL PROTECTED]> wrote: > Hi Richard, > > the problem is that your classpath for the jasper path is not correct. > So this Null Pointer exception actually means that some class was not found. > Note that you need all the tomcat libraries in your jaser classpath, a

AW: JspC compile exception in tomcat-deployer 5.5.10

2005-08-16 Thread Bernhard Slominski
-Ursprüngliche Nachricht- Von: Richard Mixon (qwest) [mailto:[EMAIL PROTECTED] Gesendet: Montag, 15. August 2005 23:58 An: tomcat-user@jakarta.apache.org Betreff: JspC compile exception in tomcat-deployer 5.5.10 Hello, I am using the jakarta-tomcat-5.5.10-deployer to deploy my

JspC compile exception in tomcat-deployer 5.5.10

2005-08-15 Thread Richard Mixon (qwest)
Hello,   I am using the jakarta-tomcat-5.5.10-deployer to deploy my customized war file to tomcat. When I have it do the "compile" target so it pre-compiles the JSP's I get the exception below (its sort of long). I've got the source and can see that it is happening as it processes the JSPs.

Re: Does JspC in 5.0 rely on Hibernate?

2005-08-10 Thread Tim Funk
) inherits from net.sf.hibernate.Lifecycle. -Tim Will Hartung wrote: Hi all! I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the components is JspC. Using the ANT Task presented in the 5.0 docs as inspiration I

Does JspC in 5.0 rely on Hibernate?

2005-08-09 Thread Will Hartung
Hi all! I'm working on migrating from Tomcat 4.1.x to 5.0.x, and one of the components is JspC. Using the ANT Task presented in the 5.0 docs as inspiration I

RE: Use JSPC

2005-06-23 Thread Karasek-XID, Nicolas
classpath as I've seen lot of people using jspc without problem. -Original Message- From: Karasek-XID, Nicolas Sent: jeudi 23 juin 2005 15:43 To: Tomcat Users List Subject: RE: Use JSPC Ok, I tried the simple hello world jsp, with the same result. Adding the path to my jars and/or

RE: Use JSPC

2005-06-23 Thread Karasek-XID, Nicolas
from command line, with the same result. I cant figure out what I'm missing as I'm not so experimented in j2ee. Anyway I'm still trying to make jspc work... -Original Message- From: Bernhard Slominski [mailto:[EMAIL PROTECTED] Sent: mercredi 22 juin 2005 15:27 To: &#x

AW: Use JSPC

2005-06-22 Thread Bernhard Slominski
ion. Try to get jasper working with this file, if it's working fine, then you know an application specfic calls is not picked up. If the "Hello world" jsp does not work, you know it's a Tomcat/JRE class which is missing. Cheers Bernhard > > -Original Message- >

RE: Use JSPC

2005-06-22 Thread Karasek-XID, Nicolas
did a copy/paste in my build.xml of the jspc task found at http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html First attempt, it still

AW: Use JSPC

2005-06-22 Thread Bernhard Slominski
Hi Nicolas, what jspc basically needs, is acces to all the internal tomcat libraries, as you see from the ant script: ${tomcat.home}/bin/*.jar ${tomcat.home}/server/lib/*.jar ${tomcat.home}/common/lib/*.jar As well as all the libraries from you web application. So what I did was just "insta

RE: Use JSPC

2005-06-22 Thread Karasek-XID, Nicolas
Hi bernhard, Just a few dumb questions on this, I still have problem to generate servlets source files from jsp. >From a previous message you sent on this subject in another thread I guess I >have a classpath problem in my jspc task ( NullPointerExcept

RE: Use JSPC

2005-06-20 Thread Charl Gerber
case you thought you had to do it manually (well, you could I guess) . Charl --- "Akoulov, Alexandre [IT]" <[EMAIL PROTECTED]> wrote: > Hi Mino, > > that is what we do: > a) generate java files with JspC compiler > b) compile java files with javac compiler > c

RE: Use JSPC

2005-06-19 Thread Akoulov, Alexandre [IT]
Hi Mino, that is what we do: a) generate java files with JspC compiler b) compile java files with javac compiler c) copy class files to the required location (ie class directory under WEB-INF ) Hope it helps, Sasha. -Original Message- From: Giacomino Raccuia [mailto:[EMAIL PROTECTED

AW: Use JSPC

2005-06-16 Thread Bernhard Slominski
Gesendet: Donnerstag, 16. Juni 2005 11:24 > An: Tomcat Users List > Betreff: Re: Use JSPC > > > If you have the generated java files, you can compile > them like any other java class (remember to setup your > classpath correctly, including some jars in the Tomcat > libraries). >

Re: Use JSPC

2005-06-16 Thread Charl Gerber
on server > (tomcat 4.0.3) . I use the utility JSPC, but this > generate only java > file but not the class file. I read that JRun has > JSPC with -compile > argument while my JSPC utilty doesn't have thi > argument. > Is possible to generate class file with tomcat and

Use JSPC

2005-06-16 Thread Giacomino Raccuia
Hi, I'd like to compile the JSP pages when I upload some new files on server (tomcat 4.0.3) . I use the utility JSPC, but this generate only java file but not the class file. I read that JRun has JSPC with -compile argument while my JSPC utilty doesn't have thi argument. Is p

Re: genStrAsCharArray not available in JspC and performance increase?

2005-05-28 Thread Remy Maucherat
On 5/29/05, Kevin Burton <[EMAIL PROTECTED]> wrote: > So on: > > http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration > > It recommends to use genStrAsCharArray when in production. > > This can be set in web.xml but not when

genStrAsCharArray not available in JspC and performance increase?

2005-05-28 Thread Kevin Burton
So on: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jasper-howto.html#Production%20Configuration It recommends to use genStrAsCharArray when in production. This can be set in web.xml but not when using JspC from the command line. trimSpaces is there... but not genStrAsCharArray. Its in

AW: Unable to pre-compile JSP with jspC ant task

2005-05-19 Thread Bernhard Slominski
> -Ursprüngliche Nachricht- > Von: Karasek-XID, Nicolas [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 19. Mai 2005 14:28 > An: tomcat-user@jakarta.apache.org > Betreff: Unable to pre-compile JSP with jspC ant task > > > Hello, > > I'm trying to precompile

Unable to pre-compile JSP with jspC ant task

2005-05-19 Thread Karasek-XID, Nicolas
JspBean is invalid. The error in the index.jsp file come from the line: As I thought that I should give to jspC a reference to the Bean, I tried to package the Bean in a jar file, put it in library directory and then uncommenting the reference to the libray directory in the previous ant file sam

Re: JSPc excludes?

2005-04-18 Thread Bill Lynch
'm unclear as to how it's working. First off, the class doesn't extend org.apache.tools.ant.Task. Anyone know how this class actually works? Thanks, --Bill On 4/18/05, Bill Lynch <[EMAIL PROTECTED]> wrote: > > Guys, > > I've been using the JSPc task (org.apac

JSPc excludes?

2005-04-18 Thread Bill Lynch
Guys, I've been using the JSPc task (org.apache.jasper.JspC) to compile a set of JSPs. So far so good, but I now want to exclude a few of the JSPs from being precompiled. Unfortuntely, there's no attribute (that I know of) in the JSPc task to do this. Am I missing something her

JSP precompilation, jspc, NullPointerException

2005-04-12 Thread Bernhard Slominski
ppens? Thanks for your help Bernhard jspc: [jasper2] java.lang.NullPointerException [jasper2] at org.apache.jasper.JspCompilationContext.createCompiler(JspCom pilationContext.java:220) [jasper2] at org.apache.jasper.JspC.processFile(JspC.java:847) [jasper2]

JspC exception

2005-02-14 Thread Jagadeesha T
Hi, JspC error while doing PreCompilation, I 'am using ant 1.6.2 and tomcat 5. When I call jspc from ant it is thworing invaid cast exception. In JspRunTimeContext class. It is getting the current thread classloader and casting to URL classloader.. parentClassL

jspc classcasst exception: error while casting ANTClassloader to URLclassLoader

2005-02-11 Thread Jagadeesha T
Hi all, it is throwing ClassCastexception in JSPRuntimeCOntext class when casting ANTClassLoader class to URLCLassLoader. I don't whether it is a bug. or configuration problems. Regards, Jagga - Do you Yahoo!? Yahoo! Search presen

JSPC problems

2005-02-11 Thread Jagadeesha T
Hi all, I 'am trying to do jspPreCompilation, it is thrwing away saying. ClassCastExcception. Class java.util.HashMap loaded from parent loader (parentFirst) Class java.util.Collections loaded from parent loader (parentFirst) Class java.io.ByteArrayOutputStream loaded from parent loader (

Re: jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-02 Thread Jason Schuchert
;Vinny" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Wednesday, February 02, 2005 2:13 PM Subject: Re: jspc taglib handling different between 5.5.4 and 5.5.7 I am having the same issue. My absolute uri'd tld are not getting resolved. Also I am getting this error when

Re: jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-02 Thread Vinny
; if i go into the jstl taglib jar file and grab the sql.tld file and put it > into my WEB-INF then the jspc task works. > > in 5.5.4 this worked without having the sql.tld file in WEB-INF (it was just > found in the .jar file of the tag library) > > anybody hitting similar i

jspc taglib handling different between 5.5.4 and 5.5.7

2005-02-01 Thread Jason Schuchert
files deployed with this application the line in the offending jsp looks like: <%@ taglib uri="http://java.sun.com/jsp/jstl/sql"; prefix="sql" %> if i go into the jstl taglib jar file and grab the sql.tld file and put it into my WEB-INF then the jspc task works. in

Re: Problem with including JspC generated web.xml fragment (solved)

2005-01-18 Thread Andreas Schildbach
You have still to specify the webXmlFragment-attribute. Without this i'm getting a NullpointerException too. Thanks to the help of both of you, I finally managed to get it to work. You'll find my complete Ant target at the bottom of this post. From the perspective of a user I'd like to provide th

Re: Problem with including JspC generated web.xml fragment

2005-01-18 Thread Thomas Chille
On Tue, 18 Jan 2005 17:00:54 +0100, Andreas Schildbach <[EMAIL PROTECTED]> wrote: > Sorry, it still does not work. You have still to specify the webXmlFragment-attribute. Without this i'm getting a NullpointerException too. @Tim: i found your snippet and now its works for me too :) It's funny ho

Re: Problem with including JspC generated web.xml fragment

2005-01-18 Thread Andreas Schildbach
Tim Funk wrote: The jasper2 task edits web.xml in place. That being said, make sure your build process creates a build directory. Copies all we resources to the build directory (including web.xml), then compile and classes to WEB-INF/classes (or compile and jar them), then run the jasper2 task t

Re: Problem with including JspC generated web.xml fragment

2005-01-18 Thread Thomas Chille
On Tue, 18 Jan 2005 06:43:16 -0500, Tim Funk <[EMAIL PROTECTED]> wrote: > My snippet does 2 things. > > 1) Merges the servlet names and mappings into web.xml > 2) creates a file containing all the mappings done in 1 Hi Tim, can you please provide this snippet, maybe direct to me? I googled aro

Re: Problem with including JspC generated web.xml fragment

2005-01-18 Thread Tim Funk
My snippet does 2 things. 1) Merges the servlet names and mappings into web.xml 2) creates a file containing all the mappings done in 1 The 2 are independent from one another. But I like to see the snippet created by the JSPC task by iteslef occasionally for when bad things happen. The jasper2

Re: Problem with including JspC generated web.xml fragment

2005-01-18 Thread Thomas Chille
<[EMAIL PROTECTED]> wrote:> JspC can acually edit web.xml? Where is this documented? I can't find > any documentation of the jasper2 task except the old outdated jspc task > (including all the options/attributes) that is included with Ant. Hi, i think JSPC can not merge the w

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Tim Funk wrote: I haven't read the docs for this so I am very surprised it wasn't there. The source for JSPC is very easy to read. Anything that is a set method can be called via ant. With luck - I might find some time to update the docs for this one. Actually the semantics is mo

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Tim Funk
I haven't read the docs for this so I am very surprised it wasn't there. The source for JSPC is very easy to read. Anything that is a set method can be called via ant. With luck - I might find some time to update the docs for this one. -Tim Andreas Schildbach wrote: Tim Funk wrote:

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Tim Funk wrote: Odd, I do not have this problem. Make sure you are building to a scratchpad. This means your web.xml is copied to a new location before you precompile. Then JSPC can edit it in place and you no not lose any of your changes. To get around the relative pathing issue - prefix your

Re: Problem with including JspC generated web.xml fragment

2005-01-17 Thread Tim Funk
Odd, I do not have this problem. Make sure you are building to a scratchpad. This means your web.xml is copied to a new location before you precompile. Then JSPC can edit it in place and you no not lose any of your changes. To get around the relative pathing issue - prefix your build with

Problem with including JspC generated web.xml fragment

2005-01-17 Thread Andreas Schildbach
Hello everyone, I've got a bit of a problem precompiling JSPs for Tomcat 5.0. To be exact, the problem is the web.xml fragment that is generated by JspC containing the servlet and servlet-mapping elements. That fragment has to be included in the web.xml file somehow. Of course, I don'

Difference in compilation by Tomcat and JSPC

2004-12-22 Thread Abhay Hiwarkar
I am picking up a difference in the way Tomcat compiles a JSP when accessed from a browser and the way JSPC compiles - Tomcat produces class file with class as - public class client$jsp extends HttpJspBase {...} while, Jspc produces java file with class as - public class client extends

JspC to use jikes for speed improvement?

2004-12-16 Thread Kevin A. Burton
We're using JspC to precompile our webapp to speed up application deployment and reduce memory on the server. Right now it takes FOREVER to compile. Currently the entire build of our app takes 30 seconds but JspC takes 1.5 hours.! Its not like we have that many JSPs either. So I have

Re: JspC on Tomcat5 vs Tomcat4 - Java Source Generation

2004-10-15 Thread Lukas Bradley
Yes, Yoav, everything you wrote is correct. I have read all those things, and the source is being created *for those files that do not have dependencies with my other java source.* In short, I was wondering why the older JSP Java generation in ANT didn't need those class dependencies, but the

RE: JspC on Tomcat5 vs Tomcat4 - Java Source Generation

2004-10-15 Thread Shapira, Yoav
Hi, I assume you're already read http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html#Web%20 Application%20Compilation? To me, that page suggests JspC just creates java code, and then javac must be called (explicitly, by you) to compile that code. Moreover, the error you'

JspC on Tomcat5 vs Tomcat4 - Java Source Generation

2004-10-15 Thread Lukas Bradley
task doesn't support Tomcat 5.x properly, please use the Tomcat provided jspc task instead" And there was much scurrying. The Manager defined a new task, one for Tomcat 5.x using org.apache.jasper.JspC, for Tomcat 5 begat Jasper2. (Actually, it was earlier, but that's neither her

RE: Odd characters inserted in response after JSPC

2004-08-19 Thread Allistair Crossley
Sent: 18 August 2004 11:53 > To: Tomcat Users List > Subject: Re: Odd characters inserted in response after JSPC > > > I had the same problem working with a Unicode file. I don't > know what my > editor was doing - I just used vi and killed the character > and all

Re: Odd characters inserted in response after JSPC

2004-08-18 Thread Joel
On Wed, 18 Aug 2004 11:32:02 +0100 (B"Allistair Crossley" <[EMAIL PROTECTED]> wrote (B (B> I have compiled all my JSPs with JSPC. I have found that 3 odd (B> characters occur at the very start of most of my my responses which (B> use a certain template JSP ... 

Re: Odd characters inserted in response after JSPC

2004-08-18 Thread Tim Funk
I had the same problem working with a Unicode file. I don't know what my editor was doing - I just used vi and killed the character and all worked well. -Tim Allistair Crossley wrote: Hi Guys I have compiled all my JSPs with JSPC. I have found that 3 odd characters occur at the very sta

RE: Odd characters inserted in response after JSPC : more info

2004-08-18 Thread Allistair Crossley
OK, I just totally wiped the whole page jsp file and then ran JSPC and it generated 12 errors on a blank file complaining about unclosed string literals. Looking at the JAVA file JSPC generated for the blank JSP you can see it is still trying to output 3 chars but don't know why. pa

Odd characters inserted in response after JSPC

2004-08-18 Thread Allistair Crossley
Hi Guys I have compiled all my JSPs with JSPC. I have found that 3 odd characters occur at the very start of most of my my responses which use a certain template JSP ...  I use 2 layouts, one for home and one for other pages. This problem is not happening on the home page although both that

Jspc and Taglibs

2004-08-05 Thread Thai DANG
I made several measure, had a look to the generate code by Jspc. It is clear that Taglibs reduce the performance (memory, speed) of your server. Speed because the first time access is longer and memory because a pool system is there to make the next pages being displayed quicker. So, as a

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

2004-07-30 Thread dhay
Yes, it will generate the package names if you leave it off (you add package="" to the jspc task, like you do uriroot="${src}\jsp"). I'm trying to get it to give me the **subdirectories** as the full package name - ie user.myjsp.

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

2004-07-30 Thread Dennis Dai
I don't know what you want to achieve, but my jspc task generates package names with subdirectories (eg. org.apache.jsp.user and org.apache.jsp.admin, in org/apache/jsp/user and org/apache/jsp/admin respectively) ... Also I don't know where you set that "package=" thing?

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

2004-07-30 Thread dhay
| | cc: | | Subject: JSPC

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 pa

includes with JspC

2004-07-15 Thread Flisch, Alan
Does anybody know if there is a way to specify includes and excludes for org.apache.jasper.JspC as an Ant task as below. Cheers, Alan Any opinions expressed in this E-mail may

Re: JSP's compiling web.xml -webinc option on JspC

2004-07-11 Thread QM
On Sun, Jul 11, 2004 at 01:15:59PM +, Laurence Arabia wrote: : At the moment I am using -webinc jspweb.xml with JspC and then I merge : this with my web.xml which has all my servlets definition in it. But this : is a bad way of doing it cause I am messing with 1000's of lines of

JSP's compiling web.xml -webinc option on JspC

2004-07-11 Thread Laurence Arabia
Hi At the moment I am using -webinc jspweb.xml with JspC and then I merge this with my web.xml which has all my servlets definition in it. But this is a bad way of doing it cause I am messing with 1000's of lines of text. What is the proper way to do this ? Is there an option in we

RE: jspc

2004-06-27 Thread Paul Wallace
output to your WEB-INF/classes directory. jspc in Tomcat 5.x should automatically create the correct subdir structure and place the class file in it. 2. Yuo need servlet definitions and mappings that tell Tomcat "If someone requests this .jsp execute this servlet instead". These go in

RE: jspc

2004-06-25 Thread Jason Palmatier
you would need a directory called org/apache/jsp/subdir1/subdirB and you would place that compiled JSP class there. The easiest way to do this is to run your compile with the -d option as stated above and point the output to your WEB-INF/classes directory. jspc in Tomcat 5.x should automatically

RE: jspc

2004-06-25 Thread Woodchuck
JDK1.4.1 and was to do with Strings and > StringBuffer > sharing memory for performance. > > Use JDK1.4.2 to ensure that this problem does not happen. > > Pete > > -Original Message- > From: Nick Curry [mailto:[EMAIL PROTECTED] > Sent: 25 June 2004 11

RE: jspc

2004-06-25 Thread Evgeny Gesin
Hi, when I run jspc from command line ${tomcat_home}/bin/jspc.sh -s -l -uriroot ${tomcat_home}/webapps/myapp -d ${tomcat_home}/work it generates .class files according to hierarchy* of JSP files and that what I expected. When I run this And task it generates .java files - and all

RE: jspc

2004-06-25 Thread Peter Guyatt
Users List Subject: RE: jspc I seem to remember something about a known memory leak in javac 1.4 (not sure which version), which might affect you if you use javac and have many JSPs to compile - so that might be another argument for precompiling your jsps... Nick -Original Message

RE: jspc

2004-06-25 Thread Nick Curry
:[EMAIL PROTECTED] Sent: 25 June 2004 10:29 To: Tomcat Users List Subject: Re: jspc A good reason to precompile your JSP files is to make sure you don't accidentally have broken JSP files on production. You then know *before* deployment if any changes to your JSP files or the java classes they b

Re: jspc

2004-06-25 Thread Michiel Toneman
le! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks Paul. It will increase speed on the first viewing of the jsp, but after that I can't see how there will be any differen

RE: jspc

2004-06-24 Thread Carl Olivier
Users List Subject: RE: jspc Hi, Yes..that is what I thought, but I learned from a 'reliable' source I could accomplish this on saving overhead. So rather than looking into the whys and whats, I looked into how to do it, and look into the performance benefits later. I will provid

RE: jspc

2004-06-24 Thread Justin Ruthenbeck
ow to do it, and look into the performance benefits later. I will provide the list with my sources reasoning, when it becomes available! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks P

RE: jspc

2004-06-24 Thread Paul Wallace
reasoning, when it becomes available! A thought..and to answer a question with a question (Why would you precompile jsp files?), why is jspc there? If only to increase performance on the first hit? Thanks Paul. It will increase speed on the first viewing of the jsp, but after that I can

Re: jspc

2004-06-24 Thread Jarl Skogsholm
g a path after the -compile switch, but it constructed and compiled a file with the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all th

RE: jspc

2004-06-24 Thread Paul Wallace
her than the > classes be placed in the same dirs as the source? (I tried adding a path > after the -compile switch, but it constructed and compiled a file with > the same name as the class directory destination). > > Do I make sense?! > > Paul. > > Paul, > > I just u

Re: jspc

2004-06-24 Thread Jarl Skogsholm
th the same name as the class directory destination). Do I make sense?! Paul. Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/class

RE: jspc

2004-06-24 Thread Paul Wallace
option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF. There is an option to create

RE: jspc

2004-06-24 Thread Paul Wallace
Hi Jason, Thanks for that. Yes, it does make Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just

Re: jspc

2004-06-24 Thread Jason Palmatier
Paul, I just use the -compile option and have jspc do the compilation from .java to .class for me. It seems to work fairly well. Once all the fully compiled (ie .class) files are placed in you applications WEB-INF/classes directory you just need to place the generated web.xml file in WEB-INF

jspc

2004-06-24 Thread Paul Wallace
Hello, I have compiled my JSPs thus: jspc -webapp C:\src\site -d C:\src\site\classes -s -l -uriroot C:\src\site this builds the Java source files to the specified location, but how might I deploy them? What is a typical deployment after a JSP compilation? Compilation of Java source files

Re: JspC compile error output - where's it go?

2004-06-04 Thread Jason Palmatier
Here's an update: I ran this by hand on a command line without -verbose for java but with the option -Dorg.apache.commons.logging.simplelog.defaultlog=debug for JspC and this is all I got for output: 2004/06/04 14:38:16:043 PDT [INFO] JspC - -uriRoot implicitly set to "/QIBM/UserDa

JspC compile error output - where's it go?

2004-06-04 Thread Jason Palmatier
Does anyone know how to get jspc to display compile errors it encounters when compiling a jsp to a .java file? I haven't been able to get it to work with 4.1.18 or 5.0.19. I've looked through the source code for JspC and it seems like it should be throwing JasperExceptions if it enc

RE: Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)

2004-06-04 Thread Shapira, Yoav
Hi, >way. The bug fix seems to indicate the any exception >should be rethrown so I expected to see it. It seems >that the old -v option (for verbose ouput, i.e. -v4, >-v9, etc.) for jspc is no longer valid. Is there a >new option that will possibly produce more output? I do

RE: Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)

2004-06-03 Thread Jason Palmatier
e bug fix) but no error message appeared at all this time. In fact I didn't even get the "Error in file..." message. I ran through the configuration of the log4j logging but realized what I really need is a way to get the exception encountered by jspc displayed when I submit the JS

RE: Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)

2004-06-03 Thread Shapira, Yoav
Hi, >First off, the 0 length Java files are due to a bug in >the Tomcat jspc compiler documented in this post: > >http://junlu.com/msg/41035.html No. The post doesn't discuss why the files are 0-length, only the consequences of them being 0-length (such as they're igno

Tomcat compile vs. jspc/jasper compile (was: 0 length .java files generated by jspc?)

2004-06-03 Thread Jason Palmatier
First off, the 0 length Java files are due to a bug in the Tomcat jspc compiler documented in this post: http://junlu.com/msg/41035.html Secondly I discovered that if I keep the JSP around and then simply access it through a browser Tomcat compiles the JSP correctly and I end up with a valid

0 length .java files generated by jspc?

2004-06-02 Thread Jason Palmatier
Hi, We have some JSP files that get autogenerated by a development tool we are using and they display fine when run normally in Tomcat. However, when we try to precompile them using jspc we always end up with a few 0 length .java files. These are generally JSPs that define sections of a

Re: useBean and jspc problems under Tomcat 5.0.21

2004-05-04 Thread Jason Novotny
but now in Tomcat I see it's the other way around :-( Jason hicham abassi wrote: Hello, I have problem with jspc and useBean under Tomcat 5.0.21 I code jspc target into my build.xml which works good under Tomcat 4 but not under Tomcat 5. There i

useBean and jspc problems under Tomcat 5.0.21

2004-05-04 Thread hicham abassi
Hello, I have problem with jspc and useBean under Tomcat 5.0.21 I code jspc target into my build.xml which works good under Tomcat 4 but not under Tomcat 5. There is my ant target : There is

Autoreply: RE: JSPC compiler breaks tag library calls in JSP?

2004-04-10 Thread DirectXtras
arset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: RE: JSPC compiler breaks tag library calls in JSP? Date: Sat, 10 Apr 2004 13:39:25 +0100 Message-ID: <[EMAIL PROTECTED]> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JSPC compiler breaks tag library

RE: JSPC compiler breaks tag library calls in JSP?

2004-04-10 Thread Allistair Crossley
This is my own stupid fault .. the taglib was not included in the file in question and no error was presented by JasperC for me to pick this up. Cheers, ADC -Original Message- From: Allistair Crossley Sent: 10 April 2004 13:31 To: [EMAIL PROTECTED] Subject: JSPC compiler breaks tag

Autoreply: JSPC compiler breaks tag library calls in JSP?

2004-04-10 Thread DirectXtras
; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: JSPC compiler breaks tag library calls in JSP? Date: Sat, 10 Apr 2004 13:31:06 +0100 Message-ID: <[EMAIL PROTECTED]> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: JSPC compiler breaks tag library calls

JSPC compiler breaks tag library calls in JSP?

2004-04-10 Thread Allistair Crossley
Hi Guys I have just compiled my application with the JSPC build file for Tomcat 5. I have noticed that all my custom tag calls in the JSPs have been spat out "as is" without being interpreted. So is JSPC only usable when no custom tags are included? This will be unfortunate as I w

Re: JSPC not finding servlet files

2004-04-08 Thread QM
On Thu, Apr 08, 2004 at 04:27:50PM +0100, Allistair Crossley wrote: : Last night I used the JSPC ant build to precompile all my JSPs. This created a : SRC folder under my WEB-INF and a file called generated_web.xml but no : classes? Therefore when I placed the web.xml entries and restarted and

JSPC not finding servlet files

2004-04-08 Thread Allistair Crossley
Hi Again Guys Last night I used the JSPC ant build to precompile all my JSPs. This created a SRC folder under my WEB-INF and a file called generated_web.xml but no classes? Therefore when I placed the web.xml entries and restarted and tried to run my apps lots of servlet not found exceptions

RE: Tomcat 4.1 JSPC not recongnizing change in compile time included file

2004-03-04 Thread Nathan Christiansen
Unfortunately I need to use the static include. (It defines methods and objects that most of my JSP pages use.) If Jasper 2 can handle detection of static includes at run-time, why can't JSPC? >From the Tomcat 4.1 documentation: (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-ho

RE: Tomcat 4.1 JSPC not recongnizing change in compile time included file

2004-03-04 Thread Filip Hanik \(lists\)
ursday, March 04, 2004 7:26 AM To: [EMAIL PROTECTED] Subject: Tomcat 4.1 JSPC not recongnizing change in compile time included file I am running Tomcat 4.1.24. In nearly all JSP files in my webapp I have the following compile time include: <%@ include file="main.jsp"%> However, ch

Tomcat 4.1 JSPC not recongnizing change in compile time included file

2004-03-04 Thread Nathan Christiansen
I am running Tomcat 4.1.24. In nearly all JSP files in my webapp I have the following compile time include: <%@ include file="main.jsp"%> However, changes to main.jsp are not caught by JSPC. And only the main_jsp.java source is changed. If I delete all the *_jsp.java files and

Re: JspC problem

2004-01-28 Thread David Ramsey
I don't claim to be an Ant master but from first look, Ant appears doing exactly what you have told it to do. You may want to look at the jspC task documentation in the Ant manual. Additionally, I believe destdir attribute is required, even if you specify uribase attribute. See:

JspC problem

2004-01-28 Thread Massimo Ferrari
Hello, I'm trying to precompile my jsps with the JspC ant task. The problem ist that jspc ignores my jsps directory structure when it generates the servlet files: the files are flattened. All the jsps are generated to ${app.home}/jsps. Jsps with the same name but original

Re: JSPC under Tomcat5.0.18

2004-01-26 Thread Dima Gutzeit
- Original Message - From: "Remy Maucherat" <[EMAIL PROTECTED]> To: "Tomcat Users List" <[EMAIL PROTECTED]> Sent: Monday, January 26, 2004 6:00 PM Subject: Re: JSPC under Tomcat5.0.18 Ian Joyce wrote: > Hi. > > Can you show us your ant jspc tas

Re: JSPC under Tomcat5.0.18

2004-01-26 Thread Remy Maucherat
Ian Joyce wrote: Hi. Can you show us your ant jspc task? [EMAIL PROTECTED] 01/26/03 03:46AM >>> Dear list members , Recently I've decided to redeploy some of my projects with Tomcat5.0.18. Part of my projects are precomplied JSP files which were compiled using JSPC that came wit

  1   2   3   4   >