Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 17592 invoked from network); 21 Nov 2003 17:20:52 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 21 Nov 2003 17:20:52 -0000 Received: (qmail 6794 invoked by uid 500); 21 Nov 2003 17:20:36 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 6771 invoked by uid 500); 21 Nov 2003 17:20:36 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 6758 invoked from network); 21 Nov 2003 17:20:36 -0000 Received: from unknown (HELO gatekeeper.microcell.ca) (205.151.8.2) by daedalus.apache.org with SMTP; 21 Nov 2003 17:20:36 -0000 Received: from mailserv.microcell.ca (mailserv.microcell.ca [10.2.0.87]) by gatekeeper.microcell.ca (Postfix) with ESMTP id E8227171B0 for ; Fri, 21 Nov 2003 12:20:38 -0500 (EST) Received: from 127.0.0.1 (localhost [127.0.0.1]) by mailserv.microcell.ca (Postfix) with SMTP id A25EF16BCA for ; Fri, 21 Nov 2003 12:20:38 -0500 (EST) Received: from lenard.admin.fido.ca (lamus.fido.ca [10.0.1.45]) by mailserv.microcell.ca (Postfix) with ESMTP id 731AD16BC7 for ; Fri, 21 Nov 2003 12:20:36 -0500 (EST) Received: from microcell.ca (pc-7-28-32.mtl.microcell.ca [10.7.28.32]) by lenard.admin.fido.ca (SMTP_Gateway) with ESMTP id 2EE3447D3C for ; Fri, 21 Nov 2003 12:20:36 -0500 (EST) Message-ID: <3FBE4963.2070101@microcell.ca> Date: Fri, 21 Nov 2003 12:20:35 -0500 From: Laurent Duperval User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.1) Gecko/20031008 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ant Users List Subject: Re: Problemn with Jasper and jspc task References: <72068298CD99104AAEDE2FDF89AC160D4C4B59@avanti.corp.workscape.net> In-Reply-To: <72068298CD99104AAEDE2FDF89AC160D4C4B59@avanti.corp.workscape.net> Content-Type: multipart/alternative; boundary="------------080801090805080508080901" X-Sanitizer: This message has been sanitized! X-Sanitizer-Rev: $Id: Sanitizer.pm,v 1.64 2002/10/22 16:37:04 bre Exp $ X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N --------------080801090805080508080901 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit On 21/11/03 11:46 AM,Stirling, Scott wrote: >JSPs are always translated (and incidentally compiled, in your case by jikes) to a vendor-specific Servlet implementation class. So each vendor provides a tool for compiling JSPs offline (well, most vendors do). > > > Weblogic has a weblogic.jspc class: Usage: java weblogic.jspc [options] ... where options include: -compiler Java compiler to exec. If not specified, the -compilerclass option will be used. -compilerclass Compiler class to invoke. So I guess I should be using jikes or the sun compiler. However, the translation portion doesn't seem to work. I've double-checked my classpath to make sure that weblogic.jar is in it, and I set the compiler as "weblogic.jspc". Yet, I get the famous: java.lang.ClassNotFoundException: weblogic.jspc at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1075) at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1036) at org.apache.tools.ant.taskdefs.optional.jsp.compilers.JspCompilerAdapterFactory.resolveClassName(JspCompilerAdapterFactory.java:143) Hmph. If I understand what you're saying here: >To go into more detail than you probably care to hear, these JSP compilers aren't really compilers in the technical sense. They are translators. They translate JSP source code into *vendor-specific* Java source code. The actual compilation of the resultant Servlet is a separate step, > I need to get the translation working before I even try to launch the compiler (whether Sun's or jikes), right? I looked quickly through the archives again and it doesn't seem like many people are using the jspc task with weblogic, unless I didn't search correctly. If anyone has used it successfullyand there is some tweaking or magic involved to get it working, please let me know. :-) Otherwise, I guess I'll go back to the home-grown version that used to work. Thanks, L -- laurent.duperval@microcell.ca "Women: if it weren't for them, there'd be no civilization." -Kuffs --------------080801090805080508080901--