I want monitor my jboss with jconsole . As I know had to just add follow to java_opts is that correct? How should add this?
Dcom.sun.management.jmxremote.port=1616”
No it is not correct, you need to have a proper classpath set. Use the jconsole script provided.
Related
I want to automate application deployment on top of jboss eap 7 using puppet or ansible. If I manually configure the application related configuration through jboss management console and copy the standalone file to perform automation in another box will it work or do I need to take anyother approach.
You can use the command-line interface tool jboss-cli.sh to automate configuration changes, including application deployment. You will need your Standalone or DomainController to be started for that to work.
The following shell command should deploy an application :
$JBOSS_HOME/bin/jboss-cli.sh -c 'deploy /path/to/application.war'
This assumes a running Standalone or DomainController available at the default address (localhost:8090), if you use another port for your management interface you will want to specify the --controller=host:port option or a -Djboss.cli.config=/path/to/jboss-cli.xml where the jboss-cli.xml should specify the connection settings.
You can check $JBOSS_HOME/bin/jboss-cli.sh --help for more information on the command-line interface tool itself, and launching the tool without a command parameter will lead you to an interactive shell where the help command and the smart autocompletion can help you discover the features of the tool.
I have installed JBOSS EAP6.4 on a RHEL box and during the installation it has created default service. I am trying to start the service root user service jbossas start through and it fails with following message: /usr/share/jbossas/bin/standalone.sh: line 306: /usr/lib/jvm/jre/bin/java: No such file or directory
However server starts perfects fine when it is standard through /usr/share/jbossas/bin/standalone.sh
As I understand, jboss user underwhich service would be running somehow picking up the incorrect java path - again default path.
I could be wrong here, as such how do I fix this issue?
You can set the JAVA_HOME environment variable for the user's profile in the OS level.
Another way to do this, but you should avoid that, is to set JAVA_HOME environment variable through the /etc/init.d/jbossas service script file of EAP 6 (installed as RPM installation). Such variables should be set through /etc/jbossas/jbossas.conf file which is used internally by the service script of the installation.
I am unable to start config.cmd i.e.configuration wizard. I am using windows 10. I have tried to run using cmd. It starts and dies.
I had the same problem, I know that you have solved the problem, but I would like to leave the way I could solve it, for future people.
The first thing they have to check is the Path environment variable.
and having the correct addresses, both the database, and the Maven, must end in "\ bin", that's the solution I had to place \ bin.
I hope I helped them.
Please follow below steps after installing weblogic server:
1)navigate to server directory as below and Type Config.cmd
example: C:\Oracle\Middleware\Oracle_Home\wlserver\server\bin\Config.cmd
create new domain it will work for sure
I installed WebLogic 12c and I tried to configure domain on Linux. But when I run configure.sh command I get no response.
bash-4.2$ /u01/app/oracle/12c/oracle_common/common/bin/config.sh -mode=console
bash-4.2$
Can you give some advice what could be wrong?
I hope you have installed window manager ..X11 ,xming client..on your Linux and its running for console mode because -mode=console is correct and working.
Please use VNC to login to your linux machine and invoke the config.sh script and it will take few seconds to launch the OUI installer, you need to be patient and also please check logs for any installer errors.
I need to restart JBoss from my script?
I tried to call
jboss-5.1.0.GA\bin\shutdown.sh
and then
jboss-5.1.0.GA\bin\run.sh
But unfortunately shutdown.sh works asynchronously.
Is it possible to restart JBoss from shell script?
I have a restart script, posted at https://serverfault.com/questions/56595/jboss-restart-script, written for red hat linux. I am sure it can be easily adapted to AIX.
One problem though - it still has problems with starting again, it seems that the jboss process hangs until the script is off. Running it again starts jboss immediately.
As far as I know there is no built-in support for this in JBoss. But...
This message on the jboss-user mailing list might help you to build your own script: Re: [jBoss-User] Starting jBoss as a service on Linux
EDIT: Just found another (very similar) post: Running JBoss-5.1.0.GA as a service on Red Hat? which could be a good source of inspiration.