how to restart jboss server using command prompt - jboss

I have a maven script which is connecting to SVN and checking out the code and it is deployed to the deployment folder of JBoss. Can anyone tell me how to restart the JBoss server please using the command prompt?? I am using JBoss 6.0.0.GA.
Thanks in advance

From you JBOSS_HOME dir /bin/standalone.sh or /bin/standalone.bat.
You can shut it down with CTRL-c.
That is the specific answer to the specific question you asked. Is there more going on here?

In jBoss AS 7.1.1 Final and all new versions after, including the Current version, WildFly 17 (JBoss is now WildFly) you can actually re-start.
You do not need to shut down with CTRL-C
Open a new command window and keep it side by side with the current running command window, so that you can see the re-start.
from command prompt goto WildFly installation folder
(eg. "C:\Program Files\WildFly\wildfly-17.0.0.Final\bin\" ) and execute
jboss-cli.bat --connect command=:reload
(eg. C:\Program Files\WildFly\wildfly-17.0.0.Final\bin\>jboss-cli.bat --connect command=:reload )
In Linux: $ ./jboss-cli.sh --connect command=:reload

I know this is not the exact answer to the question, but is the first result for mine:
How to restart wildfly?
sudo service wildfly restart
There are also top, start and so on options

Related

JBOSS is not starting using standalone

I am trying to run the JBOSS server in standalone mode. I have set up JBOSS_HOME, JAVA_HOME. When I try to run standalone in cmd(administrator), it just says calling standalone.conf.bat and then nothing happens.
I checked http:\localhost:8080, it is not opening which means server is not started.
Does anyone know how to troubleshoot?
To start JBoss 7 on windows use standalone.bat script and to access management console, default URL is localhost:9990.

Tomcat hangs and prevents Eclipse from shutting down after running some time

I'm running Eclipse 4.6.1 with in-IDE Tomcat 8.5.6 on Windows 10 Professional 64-bit Anniversary Edition.
After Tomcat is left running in Eclipse after some time, the Tomcat embedded in Eclipse can no longer be stopped. I press the red "Stop" button in the "Servers" tab, but nothing happens. Eventually Eclipse will ask me if I want to terminate Tomcat:
Server Tomcat v8.5 Server at localhost is not responding. Do you want to terminate this server? Click OK to terminate the server or click Cancel to continue waiting.
I click "OK to terminate the server... but Tomcat keeps running.
Unfortunately when I then try to close Eclipse, it hangs on "Saving workbench state." Finally I have to kill Eclipse, thereby losing my workbench state. Even worse, if I then start Eclipse back up and try to restart the embedded Tomcat, I get the following error:
'Starting Tomcat v8.5 Server at localhost' has encountered a problem.
Several ports (8005, 8080, 8009) required by Tomcat v8.5 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
How can I surgically go in and really kill Tomcat so that it doesn't hang Eclipse and keep ports open? (Unfortunately the only thing that shows up in the task manager is Eclipse.exe. There is no Tomcat to be seen. I've tried killing the javaw.exe subprocess, but that doesn't help.)
(At one point I thought this was related to a VPN connection going down, but today this happened with no VPN connection at all.)
I've filed Eclipse Bug 511342. We'll see if anything comes of it.
i've tried locally but i couldn't recreate the bug .
im not sure that this answers your question but it is for sure something worth trying , in any case this might show some features to other users....
in the window menu you have the SHOW VIEW , there you can choose other
this open the future window with search bar and all the available views for the ide .
in the debug view , you can do actions not only on applications , but on servers also . the menu here is different from the view you see in the server, and you can do advanced termination other things.
welp , hope that helps .
*note , you don't need the server to run in debug mode .
Find your Tomcat installation directory, navigate to bin folder, open a command window there and execute an .bat file named shutdown.bat, this way you can kill tomcat directly, make sure to locate the appropiate Tomcat installation directory which Eclipse is using.
UPDATE - Expected output:
I have not used it in the same way you have, but this may help.
On a command prompt (Cmd.exe) execute:
netstat -a -o | find "8080"
That will list all IP/PORT in use alongside the PID (process id) filtering by port # 8080 (change it to meet your needs or remove the find if you want to list all)
Open Task Manager, and using the PID you should be able to find the particular
process that is using the ports you need to release.
updated:
Once you find the port (8080) you can try using the command
taskkill /f /pid [port number]
Found a related issue with this command: Stack overflow - Tomcat not shutting down eclipse
Again, I use this when I need to find a rogue thing that I need to kill, and I don't know if the embedded environment will show it separate but its worth a try.
In tomcat's console inside Eclipse, there's a red button that can stop it. Albert also stated that in task manager it appears as javaw.exe, however Eclipse itself also appears as javaw.exe, so be careful when killing each one. Eclipse should be the one that takes more memory.

How can I start tomcat7 in eclipse using terminal in ubuntu?

I have a tomcat7 server created inside the eclipse and I want to start and stop the server using terminal in ubuntu. Is there a way to do that ?
You can start or stop the tomcat in ubuntu terminal using "sh startup.sh" to start up and "sh shutdown.sh" to shut down. These shell scripts can be found in the "$(tomcat_folder)/bin".
Hope it helps.
First, find the tomcat path that eclipse is using. Then navigate the that path in ubuntu terminal and simply
sh startup.sh // starts up the server
and
sh shutdown.sh // shuts down the server

Run Tomcat within Eclipse as a different user

I am running Eclipse Indigo EE on Windows 7, logged in as me.. I have Tomcat running within eclipse right now (under Servers view) but it's running under my user. I'd like to run it as a different user. How do I go about achieving that? I don't want to run it as a Windows service or outside of Eclipse, I want to continue to manage it through Eclipse which makes debugging, shutting down, starting up a lot simpler for me.
Any ideas how to go about setting that up or if it's even possible?
Thanks
I could not find a way to start the Tomcat server as a different user. Whereas you can achieve this by opening eclipse as a different user. Following are the steps for the same
Open command prompt.
Run following command with intended user name and eclipse exe's location
runas /user:domainName\userName C:\eclipse-jee-mars-R-win32-x86_64\eclipse\eclipse.exe
Thanks,
Sabeer

How to start Jboss as 7 in command line

Hello I am new in Jboss as7. I plugged in the Jboss AS7 into eclipse, but the start button does not work properly. It shows An internal error occurred during: "Starting JBoss 7.0 Runtime Server".java.lang.NullPointerException.
Can I use the command window to start and stop the Jboss server?
The user guide is pretty clear on how to to this :)
http://community.jboss.org/wiki/JBossAS7UserGuide
I suggest you try the standalone mode first (from the guide above):
If you want to work in standalone mode, open a terminal and cd into the distribution's bin directory, and run the "standalone" launch script:
$ cd bin
$ ./standalone.sh
On Windows:
> cd bin
> standalone.bat
In the windows, Before run JBoss server you should check your java version. It works only java version 7. You should keep server file in C: drive, it is easily to configure. then set the JBOSS_HOME path and set it in the path variables. after finished this path setting,go to the bin folder.type,
cd bin
standalone.bat
If you are on Windows and your JBOSS_HOME environment variable is set you can also fire standalone.bat command directly from your command prompt to start your jboss server.