Date: Tue, 17 Dec 2002 11:18:58 +0100 From: Miroslav Kes <mkes@ra.rockwell.com> To: java@freebsd.org Subject: JBoss port & JAVA_HOME variable Message-ID: <3DFEFA12.50601@ra.rockwell.com>
next in thread | raw e-mail | index | archive | help
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: org.jboss.deployment.JARDeployer@dd74e173 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: org.jboss.deployment.SARDeployer@dd73e97b 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: org.jboss.deployment.SARDeployer@dd73e97b 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 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3DFEFA12.50601>