How to start Jboss as 7 in command line - 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.

Related

start ubuntu as terminal in project folder

I added the following line to my settings in VSCode:
"terminal.integrated.shell.windows": "C:\\Users\\bd\\AppData\\Local\\Microsoft\\WindowsApps\\ubuntu.exe"
When I now start a terminal ubuntu is started in my user's home folder. How is it possible to start ubuntu in the project folder?
The thing is wsl can start any linux that I set using wsl /setdefault I dont like to rely on such a setting but want to specify the one I want to start. I want it started in the project's folder.
Edit:
I change into some project directory and call wslconfig.exe /s Legacy. When I now invoke wsl Bash is started in the current folder.
I return to cmd and call wslconfig.exe /s Ubuntu. When I now call wsl Store Ubuntu is started in the current folder.
wsl.exe seems to start Ubuntu differently than ubuntu.exe does. ubuntu.exe always starts in the user's home dir.
I assume that what you want to run in the VSCode terminal is the Windows Subsystem for Linux (in particular the Ubuntu variant).
To do so, you should run wsl.exe, using this setting:
"terminal.integrated.shell.windows": "C:\\Windows\\System32\\wsl.exe",
This will start up a Windows Subsystem for Linux shell inside the terminal. If you have installed Ubuntu, that is what will be run.

Netbeans 8.2 installer fails on Windows 7

Getting
java.io.IOException: Cannot run program "C:\Program Files\NetBeans
8.2\bin\netbeans.exe" (in directory "C:\Program Files\NetBeans 8.2"):
CreateProcess error=2, The system cannot find the file specifiedat
java.lang.ProcessBuilder.start(ProcessBuilder.java:1048)
I tried downloading and installing netbeans and the JDK bundle and still getting this. Might be netbeans independent but my system that's causing it.
Note the location of the installer.
Open a Command Prompt running as administrator:
2.1. Go to Start button > All Programs > Accessories
2.2. Right click Command Prompt
2.3. Select Run as administrator
In the Command Prompt use the cd command to change to the directory containing the installer.
Execute the following command to extract the contents of the installer: [Note: You might need to change the name of the installer to match the one you have.]
netbeans-8.2-ml-java-windows.exe --extract
Execute the following command to manually execute the installer:
java -jar bundle.jar
You will see rapid scrolling output in the Command Prompt window for a few moments, then the installer window will appear to begin the installation process.
Once Netbeans is installed on Windows 7, you may also need to run Netbeans as an Administrator--especially for database, web application and web services development, which each require server resources.
Source

running eclipse from terminal in mac os x

I've been trying to run eclipse from my mac os x terminal and I'm getting the error that no such eclipse command is found. I added the directory to my PATH variable and I'm able to run this just fine on linux, just not on mac osx.
Anyone know why this is?
Eclipse is a Mac Application (like Mail.app) rather than a simple executable so you open it from Terminal using the open command:
open /Applications/eclipse.app
This is assuming you are using Eclipse Mars or later, earlier versions of Eclipse have a different path.
I have a bin folder at my user root folder. This folder is added to my PATH env variable in my .bash_profile
Then I have an ~/bin/eclipse file. this file is executable (chmod +x ~/bin/eclipse)
it contains
open /Path/To/Eclipse.app
Hope this help

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

how to restart jboss server using command prompt

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