Discussion:
[jboss-user] [Beginner's Corner] - Please Help me to Solve the following issue
Karthikeyan S
2013-01-04 12:09:50 UTC
Permalink
Karthikeyan S [https://community.jboss.org/people/karthik_pasc] created the discussion

"Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/787579#787579

--------------------------------------------------------------
Dear friends i newly deploy jboss-4.0.2 server.i added the service useing default script with some modification.But its not working not proparely. server.log file always in shutdown state after start the service. i dont know how i resolve this please help me. i attached the screen shot. but one thing i execute run.sh script mean it work
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787579#787579]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Karthikeyan S
2013-01-04 12:15:20 UTC
Permalink
Karthikeyan S [https://community.jboss.org/people/karthik_pasc] created the discussion

"Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/787581#787581

--------------------------------------------------------------
Dear friends please help me to solve the following issue.i newly deployed jboss-4.0.2 server.i added the service use the default script that was in bin directory with some modifigation. service also execute properly but server was not start.in log file always shown shutdown state.please help me to resolve this.i attached screenshot of this issue
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787581#787581]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Peter Johnson
2013-01-04 19:45:11 UTC
Permalink
Peter Johnson [https://community.jboss.org/people/peterj] created the discussion

"Re: Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/787696#787696

--------------------------------------------------------------
Please don't ask the same question in multiple locations. Let's continue here:
https://community.jboss.org/message/787579#787579#787579 https://community.jboss.org/message/787579#787579

(Would some kind moderator please lock this post? Thanks!)
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787696#787696]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Peter Johnson
2013-01-04 19:43:08 UTC
Permalink
Peter Johnson [https://community.jboss.org/people/peterj] created the discussion

"Re: Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/787694#787694

--------------------------------------------------------------
First, don't post screen shots of command line text - copy and paste the text into your post instead.
Second, showing the last few lines of the log where the server shut down doesn't ell us anything about the problem.Instead, either post the full server log file as an attachement, or include the console log output (though in your case that won't work since you are running JBoss AS as a service, unless you happened to redirect the console log to a file within the service init script).

Therefore, post the server.log file. It would help if you tar.gz it first.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787694#787694]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Karthikeyan S
2013-01-05 06:01:05 UTC
Permalink
Karthikeyan S [https://community.jboss.org/people/karthik_pasc] created the discussion

"Re: Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/787801#787801

--------------------------------------------------------------
sorry for inconvinient i briefly write this reply. i used the following script for add the jboss service in my server we are using CentOS 5.6.

#!/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:-"/opt/jboss-4.0.2"}

#make java is on your path
JAVAPTH=${JAVAPTH:-"/usr/lib/jvm/java-1.6.0-openjdk-1.6.0.0/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:-"root"}

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


this was the default script given by jboss

i add the new file in /etc/init.d file. the file name is jboss and copied the above mentioned script in this file with execute permission

i added this service permanetly use chkconfig --add jboss

fine now i start my service.

#service jboss start

CMD_START = cd /opt/jboss-4.0.2/bin; /opt/jboss-4.0.2/bin/run.sh

after start my service i moved to log file and execute the following command it shows the folling log information

[***@localhost log]# tail -f server.log

2013-01-05 02:53:46,107 DEBUG [org.jboss.system.ServiceController] no need to remove jboss.web.deployment:war=invoker.war,id=-2059061738 from server
2013-01-05 02:53:46,107 DEBUG [org.jboss.system.ServiceController] removing service: jboss.system:service=ServiceDeployer
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] removing jboss.system:service=ServiceDeployer from server
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] removing service: jboss.system:service=JARDeployer
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] removing jboss.system:service=JARDeployer from server
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] removing service: jboss.system:service=MainDeployer
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] removing jboss.system:service=MainDeployer from server
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.ServiceController] Stopped 9 services
2013-01-05 02:53:46,108 DEBUG [org.jboss.system.server.Server] Deleting server tmp/deploy directory
2013-01-05 02:53:46,109 INFO [org.jboss.system.server.Server] Shutdown complete

please help me to solve the issue
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/787801#787801]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Peter Johnson
2013-01-05 21:03:05 UTC
Permalink
Peter Johnson [https://community.jboss.org/people/peterj] created the discussion

"Re: Please Help me to Solve the following issue"

To view the discussion, visit: https://community.jboss.org/message/788139#788139

--------------------------------------------------------------
Go read my prior reply again, especially this part:

"Second, showing the last few lines of the log where the server shut down doesn't tell us anything about the problem. Instead, either post the full server log file as an attachment,"

I really need to see the first error in the, along with the exception stack trace.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/788139#788139]

Start a new discussion in Beginner's Corner at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2075]
Loading...