-
1. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
wdfink Dec 7, 2010 6:52 AM (in response to shekar.samy)This is a bit too less information.
What about starting the jboss direct as 'root' with the run.sh? Does this work?
Try sudo with the run.sh command ...
It might be a shell problem.
-
2. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
shekar.samy Dec 7, 2010 7:07 AM (in response to wdfink)Hi
Jboss_init_ubuntu.sh file
#define where jboss is - this is the directory containing directories log, bin, conf etc
JBOSS_HOME=${JBOSS_HOME:-"/usr/local/jboss"}#define the user under which jboss will run, or use 'RUNASIS' to run as the current user
JBOSS_USER=${JBOSS_USER:-"jboss"}#make sure java is in your path
JAVAPTH=${JAVAPTH:-"/usr/lib/jvm/java-6-sun/bin"}#configuration to use, usually one of 'minimal', 'default', 'all'
JBOSS_CONF=${JBOSS_CONF:-"default"}#if JBOSS_HOST specified, use -b to bind jboss services to that address
JBOSS_BIND_ADDR=${JBOSS_HOST:-"-b 0.0.0.0"}#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 $JBOSS_CONF $JBOSS_BIND_ADDR"}if [ "$JBOSS_USER" = "RUNASIS" ]; then
SUBIT=""
else
SUBIT="su - $JBOSS_USER -c "
fiif [ -n "$JBOSS_CONSOLE" -a ! -d "$JBOSS_CONSOLE" ]; then
# ensure the file exists
touch $JBOSS_CONSOLE
if [ ! -z "$SUBIT" ]; then
chown $JBOSS_USER $JBOSS_CONSOLE
fi
fiif [ -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"}JBOSS_CMD_START="cd $JBOSS_HOME/bin; $JBOSSSH"
JBOSS_CMD_STOP=${JBOSS_CMD_STOP:-"java -classpath $JBOSSCP org.jboss.Shutdown --shutdown"}if [ -z "`echo $PATH | grep $JAVAPTH`" ]; then
export PATH=$PATH:$JAVAPTH
fiif [ ! -d "$JBOSS_HOME" ]; then
echo JBOSS_HOME does not exist as a valid directory : $JBOSS_HOME
exit 1
fiecho JBOSS_CMD_START = $JBOSS_CMD_START
case "$1" in
start)
cd $JBOSS_HOME/bin
if [ -z "$SUBIT" ]; then
eval $JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &
else
$SUBIT "$JBOSS_CMD_START >${JBOSS_CONSOLE} 2>&1 &"
fi
;;
stop)
if [ -z "$SUBIT" ]; then
$JBOSS_CMD_STOP
else
$SUBIT "$JBOSS_CMD_STOP"
fi
;;
restart)
$0 stop
$0 start
;;
*)
echo "usage: $0 (start|stop|restart|help)"
esacI try to sudo run.sh commands
but throw the error in Command not found
By
Shekar
-
3. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
wdfink Dec 7, 2010 11:39 AM (in response to shekar.samy)For me it is unclear whether you start successful with run.sh as 'root'.
If you can start you might set 'set -x' into the etc startsript or within the run.sh, the output micht show where the problem is.
-
4. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
shekar.samy Dec 8, 2010 6:59 AM (in response to wdfink)Hi
I am ruuning jboss6 server using following cmd in linux os(Obuntu10 server)
/jboss/bin>sh run.sh
show Dployment Error:::
Dependency "jboss:service=TransactionManager" (should be in state "Create",
but is actually in state "** NOT FOUND Depends on 'jboss:service=TransactionManager' **")
Deployment "jboss:service=proxyFactory,target=ClientUserTransaction" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **")
Deployment "jboss:service=proxyFactory,target=ClientUserTransactionFactory" is missing the following dependencies:
Dependency "jboss:service=invoker,type=unified" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **")DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:service=WorkManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=WorkManager' **
Deployment "jboss:service=Naming" is in error due to the following reason(s):
** NOT FOUND Depends on 'jboss:service=Naming' **
Deployment "jboss.messaging:service=Connector,transport=bisocket" is in error
due to the following reason(s): ** NOT FOUND Depends on 'jboss.messaging:service=Connector,transport=bisocket' **
Deployment "RemoteNamingBean" is in error due to the following reason(s): java.net.BindException: Address already in use, **ERROR**
Deployment "jboss:service=invoker,type=unified" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=invoker,type=unified' **
Deployment "<UNKNOWN TransactionManager>" is in error due to the following reason(s): ** UNRESOLVED Demands 'RecoveryManager' **
Deployment "jboss.remoting:service=Connector,transport=socket" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.remoting:service=Connector,transport=socket' **
Deployment "vfsfile:/usr/local/jboss/server/default/deploy/messaging/remoting-bisocket-service.xml" is in error due to the following reason(s): java.io.IOException: SocketServerInvoker[127Deployment "jboss.jdbc:datasource=DefaultDS,service=metadata" is in error due
to the following reason(s): ** NOT FOUND Depends on 'jboss.jdbc:datasource=DefaultDS,service=metadata' **
Deployment "vfsfile:/usr/local/jboss/server/default/deploy/hsqldb-ds.xml" is in error due to the following reason(s): java.sql.SQLException: The database is already in use by another process: org.hsqldb.persist.NIOLockFile@c7092fc0[file =/usr/local/jboss/server/default/data/hypersonic/localDB.lck, exists=true, locked=false, valid=false, fl =null]: java.lang.Exception: checkHeartbeat(): lock file [/usr/local/jboss/server/default/data/hypersonic/localDB.lck] is presumably locked by another process.
Deployment "<UNKNOWN DefaultUserTransactionprovider>" is in error due to the following reason(s): ** UNRESOLVED Demands 'TransactionManager' **
Deployment "jboss:service=TransactionManager" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss:service=TransactionManager' **
Deployment "RecoveryManager" is in error due to the following reason(s): java.net.BindException: Address already in use
Deployment "jboss.jca:name=DefaultDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=DefaultDS,service=DataSourceBinding' **
Deployment "vfsfile:/usr/local/jboss/server/default/deploy/jmx-remoting.sar/"
is in error due to the following reason(s): java.rmi.AlreadyBoundException: jmxconnector
Deployment "UnifiedInvokerConnector" is in error due to the following reason(s): java.io.IOException: SocketServerInvoker[127.0.0.1:4446] error creating ServerSocket[127.0.0.1:4446]: Address already in use, **ERROR**
Deployment "jboss.jca:service=CachedConnectionManager" is in error due to the
following reason(s): ** NOT FOUND Depends on 'jboss.jca:service=CachedConnectionManager' **
Deployment "jboss:service=WebService" is in error due to the following reason(s): java.net.BindException: Address already in use
Deployment "jboss.web:service=WebServer" is in error due to the following reason(s): Configured17:26:54,156 INFO [org.jboss.bootstrap.impl.base.server.AbstractServer] JBossAS [6.0.0.20100216-M2 (build: SVNTag=JBoss_6_0_0_20100216-M2 date=20100216)] Started in 15s:116ms
How to fix the error.
By
Shekar
-
5. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
wdfink Dec 8, 2010 7:10 AM (in response to shekar.samy)I'm not sure because I'm using JB5.
But your trouble might a destroyed download.
Also the message 'error creating ServerSocket[127.0.0.1:4446]: Address already in use' is suspect, do you have an other JBoss running or does anyone use port 4446 on this machine?
-
6. Re: How To Install Jboss 6.0.M2 In Ubuntu10.10 server Linux
shekar.samy Jan 22, 2011 8:30 AM (in response to wdfink)Hi
I have sucessfully install jboss6 in linux server...
Thanks to all
By
Chandrasekaran.k