Enable/Disable Hot Deployment in Jboss EAP 5.1

tpatil created the topic: Enable/Disable Hot Deployment in Jboss EAP 5.1

Hot Deployment in Jboss EAP 5.1 can be controlled by 2 ways:-

1. ${config}/deploy/hdscanner-jboss-beans.xml deployment descriptor will enable deployment scanning by default; removing it will disable it.

2. The scanEnabled attribute can be added to deploy/hdscanner-jboss-beans.xml. Setting this attribute to false will disable scanning, and setting this attribute to true will enable it.

Tagged :

Starting multiple instances of jboss from shell script

tpatil created the topic: Starting multiple instances of jboss from shell script

For starting the multiple instances of jboss I have created the following 2 scripts.

Please let me know if anybody has any other suggestions.

JBstartall.sh will call JBstart.sh

{code}
##############
#JBstartall.sh
##############
#!/bin/sh

cluster="node1:192.168.32.45,node2:192.168.32.46"

for clust in ${cluster//,/ };
do
HOST=`echo $clust |cut -f2 -d:`
NODE=`echo $clust |cut -f1 -d:`
echo "Starting jboss $NODE on $HOST ....."
./JBstart.sh $NODE $HOST
done

date
echo "JBstartall.sh complete"
exit 0

#####
# EOS
#####
{code}

and

{code}
#!/bin/sh
### ====================================================================== ###
## ##
## JBoss Startup Script ##
## ARG1 =====>Name of profile ##
## ARG2 =====>Hostname/IP address of node ##
### ====================================================================== ###

JBOSSDIR=/local/sys/jboss-eap-5.1/jboss-as
TARGETDIR=$JBOSSDIR/server/$1
BINDHOST=$2
JMXUSER=admin
JMXPASS=admin

echo "Starting jboss..........."

rm /tmp/jboss.$1.start > /dev/null

$JBOSSDIR/bin/run.sh -c $1 -b $BINDHOST > /tmp/jboss.$1.start 2>&1 &
pid=$!

started=false

for i in `seq 1 30` ; do
if ps -p $pid > /dev/null ; then : ; else
break
fi
sleep 2
result="`$JBOSSDIR/bin/twiddle.sh -s $BINDHOST -u $JMXUSER -p $JMXPASS get "jboss.system:type=Server" Started --noprefix`"
if [ $? == 0 -a x"$result" == x"true" ] ; then
started=true
break
fi
done

if $started ; then
echo $pid >> $TARGETDIR/log/jboss.pid
echo ".........Sucessfully Started"
exit 0
elif test i = 30 ; then
echo "...............Timed Out"
exit 1
else
echo "...............Failed to Start"
exit 1
fi

date
echo "JBstart.sh complete"
exit 0

#####
# EOS
#####
{code}
Tagged :

Jboss boot over the network error

rajeshkumar created the topic: jboss boot over the network error
Hi,

I am getting following error when i start jboss over the network..

./run -n http://XX.XX.XX.XX:8080/netboot

Error Log.


Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

MySQL Error 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

rajeshkumar created the topic: MySQL ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

MySQL ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)

root@server [~]# mysql

ERROR 1045 (28000): Access denied for user ‘root’@’localhost’ (using password: YES)
root@server [~]#

root@server [/var/lib/mysql/mysql]# ls -lhd /var/lib/mysql
drwxr-x–x 179 mysql mysql 12K Aug 25 01:44 /var/lib/mysql/

root@server [/var/lib/mysql/mysql]# chmod 711 /var/lib/mysql/mysql

root@server1 [/var/lib/mysql/mysql]# ls -lhd /var/lib/mysql/mysql
drwx–x–x 2 mysql mysql 4.0K Aug 25 01:32 /var/lib/mysql/mysql/

root@server1 [/var/lib/mysql/mysql]# service mysql restart
Shutting down MySQL.. [ OK ]
Starting MySQL [ OK ]
root@server1 [/var/lib/mysql/mysql]# mysql
Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1
Server version: 5.0.51a-community MySQL Community Edition (GPL)Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the buffer.

mysql> quit

Bye
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Good Cpanel Url Collection

rajeshkumar created the topic: Good Cpanel Url Collection

Setup Tomcat for JSP/Servlets
forums.cpanel.net/f402/cpanel-tomcat-jsp…ts-guide-282922.html

How to fix port issue in tomcat
forums.cpanel.net/f5/how-fix-port-issue-tomcat-161074.html

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

FAIL – Application at context path /application could not be started

rajeshkumar created the topic: FAIL – Application at context path /application could not be started

Problem:

Error message while starting application using Tomcat Web Application Manager

1. FAIL – Application at context path /application could not be started
2. FAIL – Encountered exception java.lang.OutOfMemoryError: PermGen space

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Error Collection of Tomcat Log files

rajeshkumar created the topic: Error Collection of Tomcat Log files

Problem:

WEB-INF/lib/javaee.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class

Problem:

WEB-INF/lib/jsp-api.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/jsp/JspPage.class

Regards,

Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Error 1227 (42000) at line 133: Access denied; you need the SUPER priv

rajeshkumar created the topic: ERROR 1227 (42000) at line 133: Access denied; you need the SUPER priv

ERROR 1227 (42000) at line 133: Access denied; you need the SUPER privilege for this operation
SQL query:
DELIMITER ; ;

/*!50003 CREATE*//*!50017 DEFINER=`s_snetus`@`localhost`*//*!50003 TRIGGER `inserttree` AFTER INSERT ON `account_owner` FOR EACH ROW BEGIN DECLARE s INTEGER; DECLARE t INTEGER; DECLARE ParentPath varchar(30); SET s=NEW.REPORTS_TO; SET t = NEW.ID; if s is NULL then insert into hierarchy_path values (t,t); else select PATH INTO ParentPath from hierarchy_path where ID = s; insert into hierarchy_path values (t,CONCAT(ParentPath,’,’,t)); end if; END */ ; ;
MySQL said:
#1227 – Access denied; you need the SUPER privilege for this operation
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Apache Tomcat Good url Collection

rajeshkumar created the topic: Apache Tomcat Good url Collection

Tomcat : How to increase the Java heap size
www.serveridol.com/2011/07/28/tomcat-increase-java-heap-size/

Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :