| Author |
Message |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 31/03/2006 17:24:02
|
Anonymous
|
After installing T+ (with all pre-requisites) via YAST, downloaded fron SuSE site, I hve defined the MySQL db with the given scripts, and defined in .../trackplus/WEB-INF/Torque.prerties:
- MySQL
- the ip address of the web server instead of localhost.
After rebooting...
The file /srv/www/tomcat5/base/logs/start.log
gives the error:
No JAVA_HOME specified in @@@TCCONF@@@/tomcat5.conf and no java found, exiting...
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 03/04/2006 19:46:07
|
Track+ Support
Joined: 02/03/2005 15:14:42
Messages: 1002
Location: Stuttgart, Germany
Offline
|
This looks like Tomcat cannot find a suitable Java installation.
I guess we will have to check the SuSE procedure ourselves; it was not developed and tested by us. In the meantime, I can only guide you blindly. I suppose you do have a JRE or JDK installed. So I either modify the Tomcat startup script in /etc/rc.d (on my SuSE 9.0 server this is called /etc/rc.d/tomcat) and check the script that starts Tomcat (on my SuSE 9.0 server this is located under /opt/jakarta/tomcat/bin/startup.sh). I would then manually set JAVA_HOME in the first script.
Could you try this? Come back then and let me know how far you got, I will try to help you further.
|
______________________
Track+ Support
Track+ Bug & Issue Tracking
http://www.trackplus.com |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 04/04/2006 18:36:15
|
Anonymous
|
<I suppose you do have a JRE or JDK installed>
In YAST I look for JRE ans after JDK, but nothing is found.
There are:
java-1_5_0-sun
java-1_5_0-sun-devel
listed whith preceeding i (for installed)
And there are a lot of java-1_4... and other java-1_5_0... listed, without their (i) and that cannot be selected for deletion of the package.
I have a /etc/rc.d/tomcat5.
I do not have a /opt/jakarta/tomcat/bin/startup.sh
But /usr/share/tomcat5/bin/startup.sh, with no reference to JAVA_HOME
Before changing anything, I wit for your help.
One question, if this can help.
It seems to me that there is a lot of unused stuff, like java-1_4...
And that I am not able to clean.
Useful to delete something, make some cleanup, and reinstall?
Thank you.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 04/04/2006 20:55:23
|
Track+ Support
Joined: 02/03/2005 15:14:42
Messages: 1002
Location: Stuttgart, Germany
Offline
|
Well, it looks like you do have a Java 1.5 installation. You may have to find out where it is, typically in /usr/java/...
Then you have to look in /usr/share/tomcat5/bin/*.sh for a reference to JAVA_HOME. There may be a file called setclasspath.sh or similar. This might be a good place to look.
There you have to set JAVA_HOME to the place where you found the Java installation (must be Java 1.5 with Tomcat 5.x, x > 0).
|
______________________
Track+ Support
Track+ Bug & Issue Tracking
http://www.trackplus.com |
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 05/04/2006 09:40:46
|
Anonymous
|
You may have to find out where it is, typically in /usr/java/...
Yes. it seems to be in /usr/java (/ant, /javamail, /mx4j, and files are in this dir)
/usr/share/tomcat5/bin/*.sh for a reference to JAVA_HOME. There may be a file called setclasspath.sh
Yes, there is a /usr/share/tomcat5/bin/setclasspath.sh, and also other *.sh files, like catalina.sh, catalina.50.sh, ...
Unfortunately I have not yet enough expertise, and need some help to check.
It sems to me that in this file there are checks if JAVA_HOME is set. On the contrary they echoes messages.
I cannot find a place /file where JAVA_HOME is set to /usr/java (what I would expect) or anything else.
Could you help me to check this? which is the exact command to set this environment variable? and/or where can I find a log?
Thank you.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 10/04/2006 09:45:36
|
Anonymous
|
do not have any news to investigate?
thank you.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 11/04/2006 17:17:03
|
Anonymous
|
I have installed a SuSE 9.2 as a VmWare image (I suppose it is not much different here than 10.0). From Yast I have installed Tomcat. It ends up as you mentioned above under /usr/share/tomcat5. My JAVA_HOME points to "/usr/lib/jvm/java".
When starting Tomcat 5 via "/etc/rc.d/tomcat5 start" two log files are created under /var/log/tomcat5/base. Could you please post these logfiles here?
If indeed no JDK/JRE ist found (I can believe it since I also had quite a bit of trouble with getting the SuSE/Tomcat to work) you could set it like this in catalina.sh at the very top:
The path is the path to the top level directory of the JDK. Underneath you typically find a bin, an include and a lib directory. In the bin directory there should be a "java" executable.
To check if your path is okay you could test it by typing:
I hope this gets you close to a working installation. This is probably not the clean SuSE compatible solution, but I didn't want to wade through all the SuSE specific configuration files.
This message was edited 1 time. Last update was at 11/04/2006 17:18:24
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 12/04/2006 14:25:55
|
Anonymous
|
When starting Tomcat 5 via "/etc/rc.d/tomcat5 start" two log files are created under /var/log/tomcat5/base. Could you please post these logfiles here?
Here, they are:
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 12/04/2006 14:29:18
|
Anonymous
|
Anonymous wrote:When starting Tomcat 5 via "/etc/rc.d/tomcat5 start" two log files are created under /var/log/tomcat5/base. Could you please post these logfiles here?
hera, they are:
start.log
No JAVA_HOME specified in @@@TCCONF@@@/tomcat5.conf and no java found, exiting...
catalina.out
java.lang.NoClassDefFoundError: org/apache/commons/digester/Digester
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Class.java:232
at java.lang.Class.getConstructor0(Class.java:2640)
at java.lang.Class.newInstance0(Class.java:321)
at java.lang.Class.newInstance(Class.java:303)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:20
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 12/04/2006 16:13:56
|
Anonymous
|
Okay, so maybe you follow my advice. Maybe there is a file tomcat5.conf where you can set JAVA_HOME so that you do not have to patch catalina.sh.
|
|
|
 |
![[Post New]](/forum/templates/default/images/icon_minipost_new.gif) 12/04/2006 17:42:32
|
Anonymous
|
Anonymous wrote:Okay, so maybe you follow my advice. Maybe there is a file tomcat5.conf where you can set JAVA_HOME so that you do not have to patch catalina.sh.
No, I am not able to find this tomcat5.conf or something similar in all the file system!
|
|
|
 |
|
|