Hello,
I am using Linux (Red Hat 9.0) distro, and have installed the:
1)
Java 2 SE SDK 1.4.2_02 SDK
2) Java 2 SE 1.4.2_2 JRE
3) Java 2 EE SDK 1.3 (reference implementation)
under /usr/java/ (as the "root" user).
I then did this:
(1) cd /etc/profile.d/
(2) vim java.sh
In the java.sh file, this is what I put:
export JAVA_HOME=/usr/java/j2sdk1.4.2_02
export J2EE_HOME=/usr/java/j2sdkee1.3
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/jre/lib/rt.jar:$J2EE_HOME/lib/j2ee.jar
export PATH=$PATH:$JAVA_HOME/bin:$J2EE_HOME/bin
After creating and saving this file...
I typed:
source java.sh
Now since its in /etc/profile.d/
All users have access to my bin directories and logging in as "untz" on Red Hat 9.0, I can successfully use the javac & java command line tools...
Now, here's my problem...
When I login as "untz"
and type:
$
j2ee (in order to start the J2EE server)
This is what happens:
----------------------------------------------------------------------------
Warning: This J2EE SDK release is designed to run on J2SE 1.3
J2EE server listen port: 1050
java.io.FileNotFoundException: /usr/java/j2sdkee1.3/logs/localhost.localdomain/j2ee/j2ee/system.out (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.io.FileNotFoundException: /usr/java/j2sdkee1.3/logs/localhost.localdomain/j2ee/j2ee/system.out (Permission denied)
at java.io.FileOutputStream.openAppend(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at com.sun.enterprise.server.J2EEServer.redirectStreams(J2EEServer.java:534)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:209)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: /usr/java/j2sdkee1.3/logs/localhost.localdomain/j2ee/j2ee/system.out (Permission denied)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server reported the following error: /usr/java/j2sdkee1.3/logs/localhost.localdomain/j2ee/j2ee/system.out (Permission denied)
Error executing J2EE server ...
----------------------------------------------------------------------------
Here are the the questions:
1. Why did this happen? Is it because it was supposed to run with the J2SE 1.3 instead of J2SE 1.4.2_02?
2. Why was permission denied?
From the best of my knowledge, logging in as "root" and typing in:
$ j2ee -verbose
works like a charm, why didn't it work on the usr "untz"?
Any advice, suggestions, commentary, etc. will be greatly appreciated.
Until next time ...