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

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

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.

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.

"Terminate" in eclipse's console view leaves node.exe running

I recently started developing for Node.js/Express with Nodeclipse. I added a run configuration for package.json with goal start. This works as expected, the start command from package.json is executed (node ./bin/www). I can see this command in Eclipse's console view and I can see two node.exe processes appear in Windows Task-Manager. HTTP requests to http://localhost:3000/ are logged in the console.
However, klicking the red "Terminate"-Button in Eclipse's console view leaves the node.exe processes running. Subsequent attempts to start the app fail because the port is already in use.
I do not have this problem when I start the app with npm start in Windows cmd. Stopping the execution with Ctrl+C will also exit the node.exe processes.
This is my IDE-Setup:
Eclipse Luna SR2 (4.4.2) under Windows 7 x64 with jre1.8.0_45
Eclipse was setup this way: extracted eclipse-platform-4.4.2-win32-x86_64.zip (from here), installed Eclipse Marketplace Client, then installed Nodeclipse via Drag&Drop from nodeclipse.org
Node.js version v0.12.2 (for Windows x64)
express-generator (version 4.12.1) is installed globally
How can I make the Terminate button in the console view actually terminating the node.exe processes?
It seems that Eclipse only kills the npm script that is used to start up node. The thing is that Eclipse forcibly kills that script, giving it no chance to send any signals to the node.exe process.
This bug explains why this works this way.
Step 1:
Run command-line as an Administrator. Then run the below mention command. type your port number in yourPortNumber
netstat -ano | findstr :yourPortNumber
Red coloured circled area shows the PID (process identifier)
Step 2 :
Then you execute this command after identify the PID.
taskkill /PID typeyourPIDhere /F
P.S. Run the first command again to check if process is still available or not. You'll get empty line if process is successfully ended.

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

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.