Followup: Jakarta Tomcat ARGHH!

Sean Page Sean.Page at epsb.ca
Tue Apr 15 14:42:02 PDT 2003


Got'er working.
For those who may some day go through this, here's what I did:

Do the following *BEFORE* you do the make on the jakarta port:
1) Set an environment variable JAVA_HOME which, points to the directory
where you have installed the JDK (export JAVA_HOME="/usr/local/jdk1.3.1)
2) Install gtar (/usr/ports/archivers/gtar)
3) And note: if you change the port that tomcat answers on (default is set
to 8180) then the tomcat41ctl program stops working.

You'll really want to read THIS:
http://www.freebsd.org/doc/en_US.ISO8859-1/articles/java-tomcat/index.html

I knew it was something simple all along... Finding out WHAT wasn't so
simple :-)

Sean.

-----Original Message-----
From: Sean Page 
Sent: April 15, 2003 1:41 PM
To: ports at freebsd.org
Subject: Jakarta Tomcat ARGHH!


G'day,

I'm running 4.8 Release, with the latest cvs of the ports.
I seem to be struggling with installing the Jakarta Tomcat 4.1 port, or
rather with making it work. After getting all the JDK etc. and Jakarta
installed, the server seems to start without error. But when I hit the
server with a browser I get the following error:

type Exception report
message 
description The server encountered an internal error () that prevented it
from fulfilling this request. exception 
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.

The only error that seems to stand out in the stdout.log is:

--- Nested Exception ---
java.io.IOException: Cannot locate antRun script: Property 'ant.home' not
found

Local_host log reported:

2003-04-15 08:25:53 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
    [javac] Since fork is true, ignoring compiler setting.
    [javac] Compiling 1 source file
    [javac] Since fork is true, ignoring compiler setting.


The only references to this "ant.home" property seem to be to do with
building the package from source. I tried installing the apache-ant port
which did nothing. I tried copying the antRun script into the
/usr/local/jakarta-tomcat4.1/bin directory, to no avail.

I have no experience with Java, so I'm quickly running out of ideas here,
can anyone offer some advice?

Thanks in advance,

Sean




Sean Page
Network Analyst, Internet Services
Information Technology Services
Edmonton Public Schools
Phone: (780) 429-8206
http://its.epsb.ca <http://its.epsb.ca>  

_______________________________________________
freebsd-ports at freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscribe at freebsd.org"


More information about the freebsd-ports mailing list