[Installation, Configuration & DEPLOYMENT] - JBoss and Apache virtual host config- mod_jk
by deenuy
Hello all,
I have requirement of accessing http://localhost:8080/tc/webclient using Domain server name say www.tc.emerson.com. Domain Name has been already configured in etc\host.
tc ear has been deployed in jboss-4.0.1sp1.
I'm using Apache2 to virtual host for my jboss-4.0.1sp1 Application Server.
Issue is, when I run www.tc.emerson.com in browser, it is redirecting to jboss jmx-console page, instead of redirecting to http://localhost:8080/tc/webclient
Please can anyone help me out from this issue? It is bit urgent. It would be greatly appreciable.
Here is part of the Apache config:
Config of httpd.conf:
#Include mod_jk configuration file
Include conf/mod-jk.conf
Config of Mod-jk.conf:
LoadModule jk_module modules/mod_jk.so
#Where to find workers.properties
#Where to put jk shared memory
#Where to put jk logs
#Set the jk log level [debug/error/info]
#Select the timestamp log format
#JkOptions indicates to send SSK KEY SIZE
JkWorkersFile conf/workers.properties
JkShmFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.shm"
JkLogFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
<VirtualHost *:80>
ServerName www.tc.emerson.com
ServerAdmin Deenanath.Yadav(a)emerson.com
LogLevel warn
CustomLog logs/ tc.emerson.com.access.log combined
ErrorLog logs/ tc.emerson.com.error.log
ServerSignature Off
JkAutoAlias /tc/webclient
JkMountFile conf/uriworkermap.properties
Config of workers.properties:
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host= localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
Config of uriworkermap.properties:
/tc/webclient/*=worker1
/tc/webclient=worker1
/*=worker1
Here is part of the Jboss config:
JBoss Configuration:
Config of Server.xml:
www.tc.emerson.com
tc.emerson.com
Config of jboss-web.xml:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.tc.emerson.com</virtual-host>
</jboss-web>
Am I missing anything in configuration? I couldnât find any clue thru googling. Can anyone help me out form this issue.
Any suggestions are greatly appreciated.
Waiting for reply with anticipation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182698#4182698
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182698
17 years, 9 months
[Beginners Corner] - JBoss and Apache virtual host config- mod_jk
by deenuy
Hello all,
I have requirement of accessing http://localhost:8080/tc/webclient using Domain server name say www.tc.emerson.com. Domain Name has been already configured in etc\host.
tc ear has been deployed in jboss-4.0.1sp1.
I'm using Apache2 to virtual host for my jboss-4.0.1sp1 Application Server.
Issue is, when I run www.tc.emerson.com in browser, it is redirecting to jboss jmx-console page, instead of redirecting to http://localhost:8080/tc/webclient
Please can anyone help me out from this issue? It is bit urgent. It would be greatly appreciable.
Here is part of the Apache config:
Config of httpd.conf:
#Include mod_jk configuration file
Include conf/mod-jk.conf
Config of Mod-jk.conf:
LoadModule jk_module modules/mod_jk.so
#Where to find workers.properties
#Where to put jk shared memory
#Where to put jk logs
#Set the jk log level [debug/error/info]
#Select the timestamp log format
#JkOptions indicates to send SSK KEY SIZE
JkWorkersFile conf/workers.properties
JkShmFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.shm"
JkLogFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
<VirtualHost *:80>
ServerName www.tc.emerson.com
ServerAdmin Deenanath.Yadav(a)emerson.com
LogLevel warn
CustomLog logs/ tc.emerson.com.access.log combined
ErrorLog logs/ tc.emerson.com.error.log
ServerSignature Off
JkAutoAlias /tc/webclient
JkMountFile conf/uriworkermap.properties
Config of workers.properties:
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host= localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
Config of uriworkermap.properties:
/tc/webclient/*=worker1
/tc/webclient=worker1
/*=worker1
Here is part of the Jboss config:
JBoss Configuration:
Config of Server.xml:
www.tc.emerson.com
tc.emerson.com
Config of jboss-web.xml:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.tc.emerson.com</virtual-host>
</jboss-web>
Am I missing anything in configuration? I couldnât find any clue thru googling. Can anyone help me out form this issue.
Any suggestions are greatly appreciated.
Waiting for reply with anticipation.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182695#4182695
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182695
17 years, 9 months
[Beginners Corner] - JBoss and Apache virtual host configuration - mod_jk
by deenuy
Hello all,
I have requirement of accessing http://localhost:8080/tc/webclient using Domain server name say www.tc.emerson.com. Domain Name has been already configured in etc\host.
tc ear has been deployed in jboss-4.0.1sp1.
I'm using Apache2 to virtual host for my jboss-4.0.1sp1 Application Server.
Issue is, when I run www.tc.emerson.com in browser, it is redirecting to jboss jmx-console page, instead of redirecting to http://localhost:8080/tc/webclient
Please can anyone help me out from this issue? It is bit urgent. It would be greatly appreciable.
Here is part of the Apache config:
Config of httpd.conf:
#Include mod_jk configuration file
Include conf/mod-jk.conf
Config of Mod-jk.conf:
LoadModule jk_module modules/mod_jk.so
#Where to find workers.properties
#Where to put jk shared memory
#Where to put jk logs
#Set the jk log level [debug/error/info]
#Select the timestamp log format
#JkOptions indicates to send SSK KEY SIZE
JkWorkersFile conf/workers.properties
JkShmFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.shm"
JkLogFile "D:/Apps/ApacheWebServer2.0/Apache2/logs/mod_jk.log"
JkLogLevel debug
JkLogStampFormat "[%a %b %d %H:%M:%S %Y]"
JkOptions +ForwardKeySize +ForwardURICompatUnparsed -ForwardDirectories
<VirtualHost *:80>
ServerName www.tc.emerson.com
ServerAdmin Deenanath.Yadav(a)emerson.com
LogLevel warn
CustomLog logs/ tc.emerson.com.access.log combined
ErrorLog logs/ tc.emerson.com.error.log
ServerSignature Off
JkAutoAlias /tc/webclient
JkMountFile conf/uriworkermap.properties
Config of workers.properties:
# Define list of workers that will be used
# for mapping requests
# The configuration directives are valid
# for the mod_jk version 1.2.18 and later
#
worker.list=worker1
worker.worker1.type=ajp13
worker.worker1.host= localhost
worker.worker1.port=8009
worker.worker1.lbfactor=1
Config of uriworkermap.properties:
/tc/webclient/*=worker1
/tc/webclient=worker1
/*=worker1
Here is part of the Jboss config:
JBoss Configuration:
Config of Server.xml:
www.tc.emerson.com
tc.emerson.com
Config of jboss-web.xml:
<jboss-web>
<context-root>/</context-root>
<virtual-host>www.tc.emerson.com</virtual-host>
</jboss-web>
Am I missing anything in configuration? I couldn't find any clue thru googling. Can anyone help me out form this issue.
Any suggestions are greatly appreciated.
Waiting for reply with anticipation.
Thanks,
Deenu
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182694#4182694
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182694
17 years, 9 months
[EJB 3.0] - Re: MBean start ordering in 5.0CR2
by huberth
I added 'Starting' logs to my MBeans and got:
2008/10/16 09:35:43.366 INFO (main) [com.myorg.rac.server.bwallocator.BWAllocatorAdminMBean.start:50] Starting BWAllocatorAdminMBean
|
| 2008/10/16 09:35:45.661 ERROR (main) [org.jboss.logging.util.LoggerStream.write:156] java.lang.RuntimeException: Problem registering @Management interface for @Service class com.myorg.rac.server.bwallocator.BWAllocatorAdminMBean
|
| 2008/10/16 09:35:46.132 INFO (main) [com.myorg.common.server.statistics.StatisticsMBean.start:54] Starting StatisticsMBean
Another thing to note here is that these MBeans are in two different jars in an exploded ear, which has no application.xml.
I should probably also mention that I'm getting lots of warnings like:
2008/10/16 09:35:44.659 WARN (main) [org.jboss.ejb3.interceptors.registry.InterceptorRegistry.getApplicableInterceptorClasses:82] applicable interceptors is non-existent for public void com.myorg.common.server.statistics.StatisticsMBean.registerCounter(java.lang.String,java.lang.String) throws com.myorg.common.exception.OperationFailedException
Curiously, I seem to be getting one of those for all mgmt interface methods except 'start'. Things seem to be functioning well enough that I had been assuming those were benign.
I have other MBeans that do end up starting in the right order. In fact, most of them do. That doesn't necessarily mean that such timing is enforced, of course. If it's left to a race, there will be winners and losers.
Can you try separating them into separate jars, play with the names of the jars, putting a sleep(60) in the create method of AnotherServiceImpl (although, they're all started from thread 'main' so I guess it's unlikely that will show anything)?
Also, what log4j tweak do I need to do to get the 'installing bean:' logs?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4182673#4182673
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4182673
17 years, 9 months