Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 37659 invoked from network); 3 May 2003 11:04:51 -0000 Received: from viefep14-int.chello.at (213.46.255.13) by daedalus.apache.org with SMTP; 3 May 2003 11:04:51 -0000 Received: from localhost ([80.110.240.41]) by viefep14-int.chello.at (InterMail vM.5.01.05.17 201-253-122-126-117-20021021) with ESMTP id <20030503110441.BOJJ11943.viefep14-int.chello.at@localhost> for ; Sat, 3 May 2003 13:04:41 +0200 In-Reply-To: To: "Ant Users List" Subject: SOLVED: Re: Tomcat JSPC Precompile using Ant - unique jsp name problem MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.0 September 26, 2002 Message-ID: From: "Johannes Fiala" Date: Sat, 3 May 2003 13:07:52 +0200 X-MIMETrack: Serialize by Router on Developer1/Johannes Fiala(Release 6.0|September 26, 2002) at 03.05.2003 13:07:57, Serialize complete at 03.05.2003 13:07:57 Content-Type: multipart/alternative; boundary="=_alternative 003D254CC1256D1B_=" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=_alternative 003D254CC1256D1B_= Content-Type: text/plain; charset="US-ASCII" I'm happy to report that this issue has been resolved with TC 4.1.24: Hi there, I just want to let you know that the bug of JSPC: generating duplicate names of classes, which causes compile to fail has been resolved with Tomcat 4.1.24. The reason why I didn't notice immediately was that it didn't overwrite my old generated source-files. After deleting them, Jasper generated them from scratch and now it rocks! JSPC will now generate the jsps with a new package name: package directory.subdirectory....; instead of package org.apache.jsp; This bugfix helps a lot, as my JSPs now perform best as they can, immediately after deploying the app. Johannes Johannes Fiala/Johannes Fiala 07.04.2003 21:35 To "Ant Users List" cc Subject Re: Tomcat JSPC Precompile using Ant - unique jsp name problem Hi Steve, Thx alot for posting your configuration details, unfortunately it hasn't worked out yet for me and I have to repost in this issue! I tried using JSPC now, but it seems that the same problem happens with the webapp option activated. It seems the webapp option only helps if duplicate names occur in different webapps, not within the same webapp (?). jspc task definition: ==================== ==================== and here are my compile results: ==================== [javac] Compiling 16 source files to E:\develop\devapp\forms\build\WEB-INF\classes [javac] E:\develop\forms\src\kbgverzicht\final_jsp.java:11: duplicate class: org.apache.jsp.final_jsp [javac] public class final_jsp extends HttpJspBase { ==================== Since the problem always occurs during compile, maybe should I use different compiler options? ========================================== ========================================== *) I tried setting fork to "yes", but it didn't help. (since all *.java are still compiled together at a time). *) Using "include="mydir/"" works, but I'd have to specify each directory separately and define a separate JSP-Task for this, which would be quite inconvenient? ==> *) Is there any standard way to loop through all subdirectories and compile each subdirectory separately (that would solve the problem)? Or do I have to write a custom task for this (which would be a general bugfix of the whole problem as it appears to me)? thx alot Johannes "Steve Loughran" 07.04.2003 08:07 Please respond to "Ant Users List" To "Ant Users List" cc Subject Re: Tomcat JSPC Precompile using Ant - unique jsp name problem ----- Original Message ----- From: To: "Ant Users List" Sent: Sunday, April 06, 2003 13:54 Subject: Re: Tomcat JSPC Precompile using Ant - unique jsp name problem > Hi Steve, > > Does the jspc-task also work for compiling JSPs using Jasper (and solve > the problem of similarly named JSPs)? no, it has the same bug (which is part of jasper) unless you use the feature > If yes, could you post a brief sample of your working ant taskdefinition? I already have > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org --=_alternative 003D254CC1256D1B_=--