Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problem mit Tomcat
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German)
View previous topic :: View next topic  
Author Message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Tue Dec 27, 2005 10:58 am    Post subject: Problem mit Tomcat Reply with quote

So, habe mal, wie schon so oft früher, Tomcat installiert. Nur wenn ich die URL http://localhost:8080 aufrufe, bekomme ich eine Fehlermeldung von Tomcat
Code:

HTTP STatus code 500
[...]
Unable to find a javac compiler;
com.sun.tools.javac.Main is not on the classpath.
Perhaps JAVA_HOME does not point to the JDK
   org.apache.tools.ant.taskdefs.compilers.CompilerAdapterFactory.getCompiler(CompilerAdapterFactory.java:105)
   org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:929)
   org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:758)
   org.apache.jasper.compiler.AntCompiler.generateClass(AntCompiler.java:216)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:288)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
   org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
   org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)
   org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
   org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
   org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
[...]

Die Variablen sollten alle richtig gesetzt sein:
Code:

$  /etc/init.d/tomcat-5.5 start
 * Starting Tomcat ...
Using CATALINA_BASE:   /var/lib/tomcat-5.5/default
Using CATALINA_HOME:   /usr/share/tomcat-5.5
Using CATALINA_TMPDIR: /var/tmp/tomcat-5.5/default
Using JRE_HOME:       /opt/blackdown-jdk-1.4.2.02 

Code:

$ set | grep JAVA
JAVAC=/opt/blackdown-jdk-1.4.2.02/bin/javac
JAVA_HOME=/opt/blackdown-jdk-1.4.2.02

Und somit konnte ich auch mit den Ergebnissen der Suche hier im Forum nicht sonderlich viel anfangen (Bei den meisten waren die Variablen nicht korrekt gesetzt :( .. bei mir leider schon).

Ich benutze Tomcat-5.5.9 aus dem Java experimental tree und das lief bis vor kurzem auch noch wunderbar.
Evtl. jemand einen TIP an was es liegen könnte das Tomcat den javac nicht findet?

Mfg

Sino


Last edited by SinoTech on Fri Jan 13, 2006 1:10 pm; edited 2 times in total
Back to top
View user's profile Send private message
Donpasquale
Apprentice
Apprentice


Joined: 03 Jan 2003
Posts: 150
Location: Munich

PostPosted: Fri Jan 13, 2006 12:51 pm    Post subject: Reply with quote

schau dir mal die startscripts vom init script an zu dem /opt/tomcat5/bin/tomcat_start.sh oder catalina_stats.sh oder wie das heißt an. mach mal ein echo der variable um zu sehen ob sie vor dem eigentlichen starten des javaprozesses auch wirklich noch gesetzt ist.
Back to top
View user's profile Send private message
SinoTech
Advocate
Advocate


Joined: 20 Mar 2004
Posts: 2579
Location: Neunkirchen / Saarland / Germany

PostPosted: Fri Jan 13, 2006 1:04 pm    Post subject: Reply with quote

Donpasquale wrote:
schau dir mal die startscripts vom init script an zu dem /opt/tomcat5/bin/tomcat_start.sh oder catalina_stats.sh oder wie das heißt an. mach mal ein echo der variable um zu sehen ob sie vor dem eigentlichen starten des javaprozesses auch wirklich noch gesetzt ist.

Hallo. Erstmal danke für deine Antwort. Leider etwas spät, denn ich habe mich mittlerweile dazu entschieden Tomcat NICHT über portage zu installieren. Habe es von Hand gemacht und nach "/opt" kopiert ... und schon läuft alles wie ich es will :).
Mfg

Sino
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Deutsches Forum (German) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum