LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-10-2008, 06:30 AM   #1
raghupal
LQ Newbie
 
Registered: Mar 2006
Location: Hyderabad
Distribution: Fedora Core 8
Posts: 15

Rep: Reputation: 0
need help on Jboss server


I am trying to configure JBoss v. 4.0.0 Server on RHEL3 system.

when i run the jboss_init_redhat.sh start script.it is giving the following error:



Quote:
[root@test bin]# ./jboss_init_redhat.sh start
CMD_START = cd /home/tomcat/jboss/bin; /home/tomcat/jboss/bin/run.sh -c all
=========================================================================

JBoss Bootstrap Environment

JBOSS_HOME: /home/tomcat/jboss

JAVA: /usr/java/java/bin/java

JAVA_OPTS: -server -Xms128m -Xmx128m -Dprogram.name=run.sh

CLASSPATH: /home/tomcat/jboss/bin/run.jar:/usr/java/java/lib/tools.jar

=========================================================================

log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: /home/software/jboss_4.0.0/server/all/log/boot.log (Permission denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
at org.apache.log4j.LogManager.<clinit>(LogManager.java:113)
at org.jboss.logging.Log4jLoggerPlugin.init(Log4jLoggerPlugin.java:63)
at org.jboss.logging.Logger.getDelegatePlugin(Logger.java:320)
at org.jboss.logging.Logger.<init>(Logger.java:78)
at org.jboss.logging.Logger.getLogger(Logger.java:291)
at javax.management.NotificationBroadcasterSupport.<clinit>(NotificationBroadcasterSupport.java:24)
at org.jboss.system.server.ServerImpl.doInit(ServerImpl.java:143)
at org.jboss.system.server.ServerImpl.init(ServerImpl.java:128)
at org.jboss.Main.boot(Main.java:146)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
17:36:45,500 INFO [Server] Starting JBoss (MX MicroKernel)...
17:36:45,501 INFO [Server] Release ID: JBoss [Zion] 4.0.0 (build: CVSTag=JBoss_4_0_0 date=200409200418)
17:36:45,502 INFO [Server] Home Dir: /home/software/jboss_4.0.0
17:36:45,502 INFO [Server] Home URL: file:/home/software/jboss_4.0.0/
17:36:45,502 INFO [Server] Library URL: file:/home/software/jboss_4.0.0/lib/
17:36:45,503 INFO [Server] Patch URL: null
17:36:45,503 INFO [Server] Server Name: all
17:36:45,503 INFO [Server] Server Home Dir: /home/software/jboss_4.0.0/server/all
17:36:45,503 INFO [Server] Server Home URL: file:/home/software/jboss_4.0.0/server/all/
17:36:45,503 INFO [Server] Server Data Dir: /home/software/jboss_4.0.0/server/all/data
17:36:45,504 INFO [Server] Server Temp Dir: /home/software/jboss_4.0.0/server/all/tmp
17:36:45,504 INFO [Server] Server Config URL: file:/home/software/jboss_4.0.0/server/all/conf/
17:36:45,504 INFO [Server] Server Library URL: file:/home/software/jboss_4.0.0/server/all/lib/
17:36:45,504 INFO [Server] Root Deployment Filename: jboss-service.xml
17:36:45,507 INFO [Server] Starting General Purpose Architecture (GPA)...
17:36:46,001 INFO [ServerInfo] Java version: 1.4.2_06,Sun Microsystems Inc.
17:36:46,001 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.4.2_06-b03,Sun Microsystems Inc.
17:36:46,001 INFO [ServerInfo] OS-System: Linux 2.4.21-40.ELsmp,i386
17:36:46,528 INFO [Server] Core system initialized
17:36:46,562 ERROR [MainDeployer] Could not make local copy for file:/home/software/jboss_4.0.0/server/all/conf/jboss-service.xml
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1314)
at java.io.File.createTempFile(File.java:1402)
at org.jboss.deployment.MainDeployer.makeLocalCopy(MainDeployer.java:1089)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:778)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:1 31)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
17:36:46,575 ERROR [MainDeployer] Could not initialise deployment: file:/home/software/jboss_4.0.0/server/all/conf/jboss-service.xml
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:533)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:140)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:1 31)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
Failed to boot JBoss:
org.jboss.deployment.DeploymentException: Failed to find META-INF/jboss-service.xml
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:533)
at org.jboss.deployment.SARDeployer.init(SARDeployer.java:140)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:799)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:736)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:709)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:693)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:119)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:1 31)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:396)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:293)
at org.jboss.Main.boot(Main.java:151)
at org.jboss.Main$1.run(Main.java:405)
at java.lang.Thread.run(Thread.java:534)
17:36:46,641 INFO [Server] JBoss SHUTDOWN: Undeploying all packages
Shutting down
17:36:46,650 INFO [Server] Shutdown complete
Shutdown complete
Halting VM

and my jboss_init_redhat.sh start is below

Quote:
#!/bin/sh
#
# JBoss Control Script
#
# chkconfig: 3 80 20
# description: JBoss EJB Container
#
# To use this script
# run it as root - it will switch to the specified user
# It loses all console output - use the log.
#
# Here is a little (and extremely primitive)
# startup/shutdown script for RedHat systems. It assumes
# that JBoss lives in /usr/local/jboss, it's run by user
# 'jboss' and JDK binaries are in /usr/local/jdk/bin. All
# this can be changed in the script itself.
# Bojan
#
# Either amend this script for your requirements
# or just ensure that the following variables are set correctly
# before calling the script

# [ #420297 ] JBoss startup/shutdown for RedHat

#define where jboss is - this is the directory containing directories log, bin, conf etc
JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss"}

#make java is on your path
JAVAPTH=${JAVAPTH:-"/usr/local/jdk/bin"}

#define the classpath for the shutdown class
JBOSSCP=${JBOSSCP:-"$JBOSS_HOME/bin/shutdown.jar:$JBOSS_HOME/client/jnet.jar"}

#define the script to use to start jboss
JBOSSSH=${JBOSSSH:-"$JBOSS_HOME/bin/run.sh -c all"}

if [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then
# ensure the file exists
touch $JBOSS_CONSOLE
fi

if [ -n "$JBOSS_CONSOLE" -a ! -f "$JBOSS_CONSOLE" ]; then
echo "WARNING: location for saving console log invalid: $JBOSS_CONSOLE"
echo "WARNING: ignoring it and using /dev/null"
JBOSS_CONSOLE="/dev/null"
fi

#define what will be done with the console log
JBOSS_CONSOLE=${JBOSS_CONSOLE:-"/dev/null"}

#define the user under which jboss will run, or use RUNASIS to run as the current user
JBOSSUS=${JBOSSUS:-"jboss"}

CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"
CMD_STOP="java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"

if [ "$JBOSSUS" = "RUNASIS" ]; then
SUBIT=""
else
SUBIT="su - $JBOSSUS -c "
fi

if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then
export PATH=$PATH:$JAVAPTH
fi

if [ ! -d "$JBOSS_HOME" ]; then
echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME
exit 1
fi


echo CMD_START = $CMD_START


case "$1" in
start)
cd $JBOSS_HOME/bin
if [ -z "$SUBIT" ]; then
eval $CMD_START #>${JBOSS_CONSOLE} 2>&1 &
else
$SUBIT "$CMD_START #>${JBOSS_CONSOLE} 2>&1 &"
fi
;;
stop)
if [ -z "$SUBIT" ]; then
$CMD_STOP
else
$SUBIT "$CMD_STOP"
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop|restart|help)"
esac

please help me to resolve this issue

thanks in advance
 
Old 11-10-2008, 08:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,661

Rep: Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970Reputation: 7970
Quote:
Originally Posted by raghupal View Post
I am trying to configure JBoss v. 4.0.0 Server on RHEL3 system.
when i run the jboss_init_redhat.sh start script.it is giving the following error:

and my jboss_init_redhat.sh start is below
please help me to resolve this issue
thanks in advance
Did you actually read this error???

Code:
java.io.FileNotFoundException: /home/software/jboss_4.0.0/server/all/log/boot.log (Permission denied)
That file either doesn't exist, or the user you're trying to start JBoss with doesn't have permissions to write to that file. Either create the file, or change the permissions on it.
 
Old 11-10-2008, 09:01 AM   #3
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Rep: Reputation: 15
TB0ne is right.
Although, a non existing log file should not be a problem.
The problem is that the start script changes to the JBoss user, and it's clear that this user doesn't have permission to write to the JBoss folder.
 
Old 11-10-2008, 09:22 AM   #4
raghupal
LQ Newbie
 
Registered: Mar 2006
Location: Hyderabad
Distribution: Fedora Core 8
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by TB0ne View Post
Did you actually read this error???

Code:
java.io.FileNotFoundException: /home/software/jboss_4.0.0/server/all/log/boot.log (Permission denied)
That file either doesn't exist, or the user you're trying to start JBoss with doesn't have permissions to write to that file. Either create the file, or change the permissions on it.
I given 777 permissions to whole directory.

But, it is giving another error before this error
 
Old 11-10-2008, 09:27 AM   #5
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Rep: Reputation: 15
777 is not the most advised solution, but anyway..I suppose it's ok if you just want to check whether that was the problem.

Did you execute chmod -R 777 or just chmod 777?
-R specifies that permissions should be given recursively.

I think the log4j error is related to the same; no sufficient permissions.
 
Old 11-10-2008, 10:55 PM   #6
raghupal
LQ Newbie
 
Registered: Mar 2006
Location: Hyderabad
Distribution: Fedora Core 8
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by ptemmerman View Post
777 is not the most advised solution, but anyway..I suppose it's ok if you just want to check whether that was the problem.

Did you execute chmod -R 777 or just chmod 777?
-R specifies that permissions should be given recursively.

I think the log4j error is related to the same; no sufficient permissions.
I know that recursive permissions. i executed

Code:
chmod -R 777 jboss

it is giving error as permission problem.

But, i think it is some other problem.

please help me

how to attach a zip file in this forum?
 
Old 11-11-2008, 06:52 AM   #7
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Rep: Reputation: 15
Although it seems weird to me, but can you create the file:
/home/software/jboss_4.0.0/server/all/log/boot.log
 
Old 11-11-2008, 11:10 PM   #8
raghupal
LQ Newbie
 
Registered: Mar 2006
Location: Hyderabad
Distribution: Fedora Core 8
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Quote:
Originally Posted by ptemmerman View Post
Although it seems weird to me, but can you create the file:
/home/software/jboss_4.0.0/server/all/log/boot.log

while running the script, the file is being created.

i think problem is not with permissions. some other problems.
 
Old 11-13-2008, 03:02 AM   #9
ptemmerman
Member
 
Registered: Oct 2008
Location: Spain
Distribution: Ubuntu
Posts: 75

Rep: Reputation: 15
Can you post the output of "id jboss" and also "ls -la" of your jboss directory?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JBoss Application Server 4.2.3 cannot startup sleepyhomme Linux - Server 6 01-19-2012 11:16 AM
slackware 12.1 as as jboss server? i5i2 Slackware 1 09-22-2008 08:15 AM
Opening my Server for jBoss and PostrgreSQL ieduarte73 Linux - Server 1 12-03-2007 11:29 AM
Not able to start JBOSS server raajesh_ak Linux - Newbie 1 01-03-2006 04:13 AM
Problem in starting JBOSS server raajesh_ak Linux - Newbie 1 01-03-2006 04:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration