Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 53289 invoked from network); 20 Nov 2003 21:08:59 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 20 Nov 2003 21:08:59 -0000 Received: (qmail 82568 invoked by uid 500); 20 Nov 2003 21:08:28 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 82539 invoked by uid 500); 20 Nov 2003 21:08:27 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 82526 invoked from network); 20 Nov 2003 21:08:27 -0000 Received: from unknown (HELO rwcrmhc12.comcast.net) (216.148.227.85) by daedalus.apache.org with SMTP; 20 Nov 2003 21:08:27 -0000 Received: from comcast.net (c-24-4-239-43.client.comcast.net[24.4.239.43]) by comcast.net (rwcrmhc12) with SMTP id <2003112021083301400erc4ae> (Authid: maximity); Thu, 20 Nov 2003 21:08:33 +0000 Message-ID: <3FBD2D45.5090009@comcast.net> Date: Thu, 20 Nov 2003 13:08:21 -0800 From: Kris Gemborys User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4b) Gecko/20030507 X-Accept-Language: en-us, en MIME-Version: 1.0 To: tomcat-user@jakarta.apache.org Subject: How jasper determines when to use default package org.apache.jsp when translating jsps to servlets? Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit 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 Tomcat 4.1/Windows XP I am working on the ant script that should precompile all jsp pages for a given web application. I used build.xml from Tomcat documentation as starting point. After running ant I found that some of the translated and compiled jsp pages are not working. For some reason when the jsp pages are translated/compiled by tomcat/jasper runtime the generated servlets sometimes contain package statement set to the default package like: package org.apache.jsp; and sometimes the generated servlet's package statement is determined based on the physical location of the jsp page in the web application tree. The build.xml I created always updates generated servlets with the package statement based on the jsp location in the web application directory tree. Ex. For the jsp located in /agentHome the build.xml outputs package statement package agentHome; which causes exception javax.servlet.ServletException: org/apache/jsp/nbpDefault_jsp (wrong name: layouts/nbpDefault_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher= .java:684) �� If the package statement is replaced with package org.apache.java; Everything works. Any suggestions? --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org