Hi,
I need the finest way to reload my application whaen i am changing any class files or jsps. I am using jboss 4.1.sp.
-
how to reload my aplication with out restarting my jboss server (3 messages)
- Posted by: pramod nair
- Posted on: May 05 2006 07:18 EDT
Threaded Messages (3)
- how to reload my aplication with out restarting my jboss server by Aquila Deus on May 08 2006 23:12 EDT
- problems with Ant_jboss reloading web by Ran Man on March 31 2010 11:44 EDT
- problems with Ant_jboss reloading web by sateesh munugoti on September 07 2010 10:37 EDT
- problems with Ant_jboss reloading web by Ran Man on March 31 2010 11:44 EDT
-
how to reload my aplication with out restarting my jboss server[ Go to top ]
- Posted by: Aquila Deus
- Posted on: May 08 2006 23:12 EDT
- in response to pramod nair
1.You can use http://localhost:8080/jmx-console/ to do it manually
2.Or a simple ant script (for unix):
......
<property name="project.name" value="YOUR_PROJECT"/>
<property name="jboss.user" value="admin"/>
<property name="jboss.password" value="PASSWORD"/>
<property name="jboss.adminUrl" value="http://localhost:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/${project.name},J2EEApplication=none,J2EEServer=none"/>
......
<target name="reload" description="Reload web application">^
<exec executable="wget">^
<arg value="--http-user=${jboss.user}"/>^
<arg value="--http-passwd=${jboss.password}"/>^
<arg value="--output-document=/dev/null"/>^
<arg value="${jboss.adminUrl}&methodIndex=2"/>^
</exec>^
</target>^
<target name="start" description="Start web application">
<exec executable="wget">
<arg value="--http-user=${jboss.user}"/>
<arg value="--http-passwd=${jboss.password}"/>
<arg value="--output-document=/dev/null"/>
<arg value="${jboss.adminUrl}&methodIndex=4"/>
</exec>
</target>
<target name="stop" description="Stop web application">
<exec executable="wget">
<arg value="--http-user=${jboss.user}"/>
<arg value="--http-passwd=${jboss.password}"/>
<arg value="--output-document=/dev/null"/>
<arg value="${jboss.adminUrl}&methodIndex=5"/>
</exec>
</target> -
problems with Ant_jboss reloading web[ Go to top ]
- Posted by: Ran Man
- Posted on: March 31 2010 11:44 EDT
- in response to Aquila Deus
Hi,
I am using that solution but I am struggling because the URL:
reload:
[exec] Current OS is Linux
[exec] Executing 'wget' with arguments:
[exec] '--http-user=es-super1'
[exec] '--http-passwd=es-super1'
[exec] '--output-document=/dev/null'
[exec] 'http://xxxxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2'
[exec]
[exec] The ' characters around the executable and arguments are
[exec] not part of the command.
Execute:Java13CommandLauncher: Executing 'wget' with arguments:
'--http-user=es-super1'
'--http-passwd=es-super1'
'--output-document=/dev/null'
'http://xxxxxxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2
The ' characters around the executable and arguments are
not part of the command.
[exec] --14:41:54-- http://xxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2
[exec] => `/dev/null'
[exec] => `/dev/null'
[exec] Resolving xxxxx... xxx.xxx.xxx.xxx
[exec] Connecting to xxxxx|xxx.xxx.xxx.xxx4|:8080... connected.
[exec] HTTP request sent, awaiting response... 500 Internal Server Error
[exec] 14:36:49 ERROR 500: Internal Server Error.
[exec]
[exec] Result: 1
Anything wrong in there I am not seeing?
I am using JBoss AS 4.2.0
Thanks very much
Ran -
problems with Ant_jboss reloading web[ Go to top ]
- Posted by: sateesh munugoti
- Posted on: September 07 2010 10:37 EDT
- in response to Ran Man
Hi,
I am using that solution but I am struggling because the URL:
reload:
exec Current OS is Linux
exec Executing 'wget' with arguments:
exec '--http-user=es-super1'
exec '--http-passwd=es-super1'
exec '--output-document=/dev/null'
exec 'http://xxxxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2'
exec
exec The ' characters around the executable and arguments are
exec not part of the command.
Execute:Java13CommandLauncher: Executing 'wget' with arguments:
'--http-user=es-super1'
'--http-passwd=es-super1'
'--output-document=/dev/null'
'http://xxxxxxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2
The ' characters around the executable and arguments are
not part of the command.
exec --14:41:54-- http://xxxx:8080/jmx-console/HtmlAdaptor?action=invokeOp&name=jboss.web:j2eeType=WebModule,name=//localhost/apps,J2EEApplication=none,J2EEServer=none&methodIndex=2
exec => `/dev/null'
exec => `/dev/null'
exec Resolving xxxxx... xxx.xxx.xxx.xxx
exec Connecting to xxxxx|xxx.xxx.xxx.xxx4|:8080... connected.
exec HTTP request sent, awaiting response... 500 Internal Server Error
exec 14:36:49 ERROR 500: Internal Server Error.
exec
exec Result: 1
Anything wrong in there I am not seeing?
I am using JBoss AS 4.2.0
Thanks very much
RanHi, try to change in the url with action=inspectMBean and rest as is.. it may help you..
thanks!!
satz