JBoss port & JAVA_HOME variable

JBoss port & JAVA_HOME variable

Post by Miroslav K » Wed, 18 Dec 2002 19:25:43



Hi,

I have some troubles to make the JBoss port to compile JSPs so I would
like to ask some questions.

I tried to compile and run the example that comes with JBoss
distribution (by the way it would be good to create xdoclet port for
FreeBSD) but I got an error message that indicated that Jetty couldn't
find javac classes. Jetty expects tools.jar file at
$JAVA_HOME/lib/tools.jar to be able to compile JSPs.
The question is how should I correctly define the JAVA_HOME variable
when the JBoss is started at the boot time. JBoss is started through
/usr/local/bin/jboss3ctl which is a binary file and I haven't found any
info what it really does. It seems to me that it doesn't use the run.sh
script that comes installed in the bin directory of the JBoss
installation tree (at least I haven't found messages related to the
"JBoss Bootstrap Environment" in any log file or on the screen).
The JBoss is run as user www which is just a virtual user  -
www:*:80:80:World Wide Web Owner:/nonexistent:/sbin/nologin and I don't
know how could I define JAVA_HOME for that user.

So what is the  correctly way to define the JAVA_HOME variable for JBoss ?

And one more problem. When the JBoss starts at the boot time is looks
like it starts correctly but form some reason it shutdowns (see the
tail  of the stdout.log bellow ). When I start it manually again JBoss
starts OK.

Thanks

Mira

euczprgmkes2:/usr/local/jboss3.0/log> tail -30 stdout.log
10:31:57,768 INFO  [MainDeployer] Adding deployer:

10:31:57,768 INFO  [JARDeployer] Started
10:31:57,839 INFO  [SARDeployer] Creating
10:31:57,839 INFO  [SARDeployer] Created
10:31:57,839 INFO  [SARDeployer] Starting
10:31:57,840 INFO  [MainDeployer] Adding deployer:

10:31:57,895 INFO  [SARDeployer] Started
10:31:57,895 INFO  [Server] Core system initialized
10:31:57,906 INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss3.0/server/default/conf/jboss-service.xml
10:31:58,588 INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss3.0/server/default/lib/jnet.jar
10:31:58,633 INFO  [MainDeployer] Successfully completed deployment of
package: file:/usr/local/jboss3.0/server/default/lib/jnet.jar
10:31:58,634 INFO  [MainDeployer] Starting deployment of package:
file:/usr/local/jboss3.0/server/default/lib/castor.jar
10:31:58,830 INFO  [Server] undeploying all packages
10:31:58,831 INFO  [MainDeployer] Undeploying
file:/usr/local/jboss3.0/server/default/lib/jnet.jar
10:31:58,833 INFO  [MainDeployer] Cleaned Deployment
file:/usr/local/jboss3.0/server/default/lib/jnet.jar
10:31:58,833 INFO  [MainDeployer] Undeployed
file:/usr/local/jboss3.0/server/default/lib/jnet.jar
10:31:58,834 INFO  [MainDeployer] Undeployed 1 deployed packages
10:31:58,834 INFO  [Server] Shutting down all services
Shutting down
10:31:58,835 INFO  [ServiceController] Stopping 3 services
10:31:58,837 INFO  [SARDeployer] Stopping
10:31:58,837 INFO  [MainDeployer] Removing deployer:

10:31:58,936 INFO  [SARDeployer] Stopped
10:31:58,936 INFO  [JARDeployer] Stopping
10:31:58,937 INFO  [JARDeployer] Stopped
10:31:58,937 INFO  [MainDeployer] Stopping
10:31:58,938 INFO  [MainDeployer] Stopped
10:31:58,938 INFO  [ServiceController] Stopped 3 services
10:31:58,938 INFO  [Server] Shutdown complete


with "unsubscribe freebsd-java" in the body of the message

 
 
 

JBoss port & JAVA_HOME variable

Post by Michael Westb » Wed, 18 Dec 2002 22:03:19



> [...] but I got an error message that indicated that Jetty couldn't
> find javac classes. Jetty expects tools.jar file at
> $JAVA_HOME/lib/tools.jar to be able to compile JSPs.
> The question is how should I correctly define the JAVA_HOME variable
> when the JBoss is started at the boot time. JBoss is started through
> /usr/local/bin/jboss3ctl which is a binary file and I haven't found any
> info what it really does. [...]

There should be a .sh script in /usr/local/etc/rc.d to start jboss.  Just set
and export JAVA_HOME there before the start/stop/* case statement.  That will
take care of it at system startup.

After system startup, you can use that script, or set JAVA_HOME in your
.profile to start/stop via jboss3ctl at the command line.

--
Michael Westbay
Work: Beacon-IT http://www.beacon-it.co.jp/
Home:           http://www.seaple.icc.ne.jp/~westbay
Commentary:     http://www.japanesebaseball.com/forum/


with "unsubscribe freebsd-java" in the body of the message

 
 
 

1. Wanted: Port maintainer for JBoss ports

I need some urgent assistance in maintaining some ports, because my time is
very limited these days and I can't keep up.

Would anyone be interested in maintaining the JBoss ports, for example? They
are in java/jboss2 and java/jboss3. I have already had some requests for
updating jboss3 to the latest version (3.0.4?).

Regards,

Ernst


with "unsubscribe freebsd-java" in the body of the message

2. Unix (AIX) Disk Utilities?

3. daemonctl.c modified to use JAVA_HOME environment variable

4. I'll be fired if I don't get it up...

5. where to set JAVA_HOME (environment variable) in linux

6. internals books?

7. daemonctl.c modified to use JAVA_HOME environment variable

8. Newbie trying to install slackware

9. Set an environment variable JAVA_HOME?

10. mod_jk won't build on FreeBSD, linux-jdk13 core dumps, JBoss ports, oh my...

11. jboss3ctl Jboss 3 port

12. JBoss port

13. JBoss port?