I have encountered some problems setting up Tomcat on a development Linux system. If anyone could throw up some suggestions I would be most appreciative.

I have installed Tomcat3.2 and I can run the sample servlets and jsp applications after I have started the tomcat server.

My problem is that I can't compile the simple Hello.java application in the sample directory e.g.

[mark@netdev src]$ javac Hello.java

Hello.java:98: Can''t find method "setContentType(java.lang.String)"

[mark@netdev src]$

Also the interfaces and other code defined in /usr/local/jakarta-tomcat/src/javax have NO associated class objects? Yet on the other machine with the same configuration I can run the sample applications and compile new servlets.

The machine that does allow me to compile apps now runs jdk1.3, but was previously running jdk1.1.7, also this machine has class objects in the /usr/local/jakarta-tomcat/src/javax directory.

If you need it here are some of the steps I have taken and my system settings, related to the installation of tomcat.

Here are the steps I have taken.

Downloaded the latest stable version of Tomcat --> jakarta-tomcat.tar.gz

I have run tar and extracted tomcat to /usr/local

The resultant directory structure is

C:\jakarta-tomcat\bin

\conf

\doc

\lib

\logs

\src

\webapps

\work

I have set JAVA_HOME to

/usr/local/jdk1.3 //-- Root directory of java installation

 

I have set the PATH to include

/usr/local/jdk1.3/bin //-- The directory that holds executables for //-- javac, java, javadoc etc

/usr/local/jdk1.3 //-- Root directory of java installation

/usr/local/jdk1.3/lib //-- The location of tools.jar

/usr/local/jakarta-tomcat //-- Root directory of tomcat installation

/usr/local/jakarta-tomcat/bin //-- Tomcat executables

 

I have set the CLASSPATH to include

/usr/local/jdk1.3

/usr/local/jakarta-tomcat/src

/usr/local/jdk1.3/lib

 

I have set TOMCAT_HOME to

/usr/local/jakarta-tomcat //-- The root installation directory

 

Many thanks.

Mark

 

Reply via email to