Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 73266 invoked from network); 12 Feb 2007 22:28:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Feb 2007 22:28:05 -0000 Received: (qmail 98545 invoked by uid 500); 12 Feb 2007 22:27:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 98516 invoked by uid 500); 12 Feb 2007 22:27:58 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 98505 invoked by uid 99); 12 Feb 2007 22:27:58 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 14:27:58 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of dgresh@lle.rochester.edu designates 128.151.32.168 as permitted sender) Received: from [128.151.32.168] (HELO hickory.lle.rochester.edu) (128.151.32.168) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Feb 2007 14:27:47 -0800 Received: from internal-mail.lle.rochester.edu (mail.lle.rochester.edu [128.151.32.45]) by hickory.lle.rochester.edu (8.13.6/8.13.6) with ESMTP id l1CMRQDs006650 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Mon, 12 Feb 2007 17:27:27 -0500 (EST) Received: from [128.151.42.237] (gouldbusk.lle.rochester.edu [128.151.42.237]) (authenticated bits=0) by internal-mail.lle.rochester.edu (8.13.6/8.13.6) with ESMTP id l1CMRQWX006640 for ; Mon, 12 Feb 2007 17:27:26 -0500 (EST) Message-ID: <45D0E9CE.6040105@lle.rochester.edu> Date: Mon, 12 Feb 2007 17:27:26 -0500 From: Daniel Gresh User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat 4.0 on UNIX: no /bin directory in $CATALINA_HOME, and JSP compilation errors References: <45D0DA84.6090209@lle.rochester.edu> <45D0DD58.9080709@christopherschultz.net> In-Reply-To: <45D0DD58.9080709@christopherschultz.net> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Christopher Schultz wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Daniel, > > Daniel Gresh wrote: > >> I've searched the web for information on Tomcat's directory structure. >> According to one page I found, Tomcat should have a /bin directory, >> which contains binary executables, such as startup.sh, which I can use >> to restart Tomcat. When I navigate to my Tomcat installation, I can find >> no /bin directory. The only directories I have are conf, work, logs, and >> webapps. I assume this is a major problem. >> > > It might not be. > > How did you install Tomcat? If you used a version from a Linux > distribution (you didn't specify what "UNIX" meant) then the > installation paths can be all kinds of screwed up. > > If you installed it yourself from a package from apache.org then you > /should/ have a bin directory as you describe. > > Another possibility is that you are looking at CATALINA_BASE instead of > CATALINA_HOME and you are using a shared binary installation but looking > at the part that should be application-specific (see RUNNING.TXT in your > installation directory and read the "Advanced" section to understand > what I'm talking about). > > >> If so, should I re-install Tomcat (and update to Tomcat 6.0 while I'm at it)? >> > > Since you are just starting out, I highly recommend getting either the > latest stable version (5.5) or the latest unstable version (6.0 -- > apologies to the authors if 6.0 /is/ considered stable) and start there. > > Unless there is a very compelling reason to stick with a version that > old, I'd advise you to upgrade. > > >> The relevant part of the error message is: >> >> org.apache.jasper.JasperException: Unable to compile class for JSPNote: >> sun.tools.javac.Main has been deprecated. >> > > Wow, I've never see that before. I assume that you are using a rather > new version of Java (maybe JDK 1.5 or 1.6) with Tomcat 4.0. Tomcat 4.0 > uses the old javac compiler and the newer ones use something else. It's > possible that if you are using Java 5 (JDK 1.5) or Java 6 (JDK 1.6) that > support has actually be completely removed for the old compiler invocation. > > An upgrade to a move recent version of Tomcat will certainly help if I > have correctly identified the problem. > > >> I've checked my JDK version to make sure it supports generics, >> which it does. If this problem is not related to the first problem, I >> believe there may be a problem with my CLASSPATH variable. What exactly >> do I have to set this variable to so Tomcat can >> recognize the proper settings? >> > > You can't change the CLASSPATH used by Tomcat (well, you /can/, but > there's no reason to do so). I think that your Tomcat version is killing > you, here. > > Upgrade and try again. If you have problems at that point, feel free to > post another question. > > - -chris > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.6 (MingW32) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD8DBQFF0N1X9CaO5/Lv0PARAsWYAKCZpgQlv/yHXkWOdRco5NRNr/EM0ACgivnB > RGUigcc+9EA4lNNJKakg6+o= > =XRRR > -----END PGP SIGNATURE----- > > --------------------------------------------------------------------- > To start a new topic, e-mail: users@tomcat.apache.org > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > Hi, thanks for the replies. Reading RUNNING.txt was very helpful, as the problem with not finding the /bin directory and a problem I experienced after I found the bin directory was due to the presence of a CATALINA_HOME and a CATALINA_BASE. I found my /bin directory in CATALINA_HOME, and used shutdown.sh to shutdown Tomcat. More on that later, as that lead to a problem. The reason I have Tomcat 4.0.5 is that my server admin is very busy and therefore won't have time to upgrade to a more recent version for awhile. So, I'm stuck with Tomcat 4.0.5 for awhile unless I have a compelling reason to upgrade. Although in the replies I have gotten upgrading is highly recommended, I want to first sort out the problem I just got after using shutdown.sh. Then once the server isn't causing me any more problems with that and if it IS causing me problems with my JSP, I will most certainly upgrade; I'm not disregarding anyones advice. Anyway, I used shutdown.sh to shutdown Tomcat. I waited for a minute, then I used startup.sh to start Tomcat again. However, when I navigate to my localhost:8080 directory to view my index.jsp page, I get the following error: Apache Tomcat/4.0.5 - HTTP Status 404 - /var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java (Permission denied) ------------------------------------------------------------------------ *type* Status report *message* _/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java (Permission denied)_ *description* _The requested resource (/var/apache/tomcat/work/Standalone/localhost/_/index$jsp.java (Permission denied)) is not available._ I'm not sure what this is telling me. It says permission denied, but in the description, it says the resource is not available. This may be something that would be more appropriate for me to ask my system admin, but I figured I would post here first, just to see if it is a problem I can solve on my own. Is there any log file I could post that might give more information, or is this pretty much a problem I need to resolve with my system admin? Thanks for the help, Dan --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org