mod_jk module Vs mod_rewrite and mod_proxy

rajeshkumar created the topic: mod_jk module Vs mod_rewrite and mod_proxy

Hi,

In order to Integrate Jboss with Apache, i got to 2 solutions below;
1. Integration using mod_jk module &
2. Integration using mod_rewrite and mod_proxy

I have few questions top of it

1. Which is better solutions and what are the pros and cons of this?
2. Is there any other solution for Apache2 and jboss integration?

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

Tagged :

Integration of Jboss and Apache2

rajeshkumar created the topic: Integration of Jboss and Apache2

Hi,

My Application(.ear) is running in Jboss with any issues on 7001 port. There are following requirement as such with me. Task 1. Integrate Jboss with Apache2 so all the request should be coming from Apache Instead of jboss

Task 2. Implement SSLwith apache2 so it should open with https instead of http.

For task 1, I have followed carefully community.jboss.org/wiki/UsingModjk12WithJBoss with some issues. 1. Application is getting up and running without any issues but logout has some issues. 2. I want to stop JBOSS access point but not getting any clue

For task 2 Once this is up and running, i will have to implement SSL with Apache so it should only get open with HTTPS instead of http. any help on this front as well..any links or Reference.

Reagrds, Raj, Build and Release Engineer, scmGalaxy.com

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

rajeshkumar replied the topic: Re:Integration of Jboss and Apache2

Jboss along with Apache 2 setup is working fine but I am getting issues with SSL setup with apache..

I followed the tomcat.apache.org/tomcat-3.3-doc/tomcat-ssl-howto.html
but without success?

Any urgent help?
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

rajeshkumar replied the topic: Re:Integration of Jboss and Apache2

Hi,

With continuation of post, www.scmgalaxy.com/forum/55-jboss/317-int…oss-and-apache2.html

Integration of Jboss with Apache2 which i achieved Successful but got stuck in SSL Setup with Apache2. One point need to be note down is that I am using module_jk.

Any help on this. I could get first page with https URL but once login, its redirecting to http URL.

Any Solution?

my httpd.conf file


My mod-jk.conf file
# Load mod_jk module
# Specify the filename of the mod_jk lib
LoadModule jk_module modules/mod_jk.so
 
# Where to find workers.properties
JkWorkersFile conf/workers.properties
 
# Where to put jk logs
JkLogFile logs/mod_jk.log
 
# Set the jk log level [debug/error/info]
JkLogLevel info
 
# Select the log format
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
 
# JkOptions indicates to send SSK KEY SIZE
# Notes: 
# 1) Changed from +ForwardURICompat. 
# 2) For mod_rewrite compatibility, use +ForwardURIProxy (default since 1.2.24)
# See http://tomcat.apache.org/security-jk.html  
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
 
# JkRequestLogFormat
JkRequestLogFormat "%w %V %T"
 
# Mount your applications
JkMount /__application__/* loadbalancer
# Let Apache serve the images
JkUnMount /__application__/images/* loadbalancer
 
# You can use external file for mount points.
# It will be checked for updates each 60 seconds.
# The format of the file is: /url=worker
# /examples/*=loadbalancer
JkMountFile conf/uriworkermap.properties
 
# Add shared memory.
# This directive is present with 1.2.10 and
# later versions of mod_jk, and is needed for
# for load balancing to work properly
## Note: Replaced JkShmFile logs/jk.shm due to SELinux issues. Refer to 
# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=225452
JkShmFile run/jk.shm
 
# Add jkstatus for managing runtime data
<Location /jkstatus>
JkMount status
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Location>
 
# Added by Rajesh
#=================================================
<VirtualHost 10.4.51.29:80>
	ServerName 10.4.51.29
	JkMount /elance loadbalancer
	JkMount /elance/* loadbalancer
 
 
 
 
</VirtualHost> 

My httpd-ssl.conf file


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

Tagged : /

Bugzilla 2.22.1

rajeshkumar.aap@gmail.com created the topic: Bugzilla 2.22.1

QI want to add new field in bugzilla when we create a ticket. can u tell me how can i do that?

QI want to change the email format of bugzilla. how that will be done?

mnanjala replied the topic: Re: Bugzilla 2.22.1

I think you need to modify Mailer.pm. At the very least, you need to specify
a content-type: header of “text/html”. And to really do the job right, you
might also appropriately encode characters as HTML entities. You might want
to do the latter piece-wise in BugMail.pm and please take a look at how whine.pl does it..

Tagged :

Start Apache with normal user

scmuser created the topic: Start Apache with normal user

Hi,

I have few normal user in linux to whom I want to give apache http start and stop access? any idea how to to do this?

When i start start apache httpd, then i get some error somthing like permission denied ..

./apachectl start
(13)Permission denied: make_sock: could not bind to address [::]:80
(13)Permission denied: make_sock: could not bind to address 0.0.0.0:80

no listening sockets available, shutting down
Unable to open logs

Any Solution….

Tagged :

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 :