Tomcat starting only through cmd - tomcat8

I have installed tomcat 8 and set its environment variable CATALINA_HOME and added it to PATH. I could start tomcat but only through cmd. When I directly go inside bin directory of tomcat and click on startup windows batch file tomcat is not starting. Can anyone tell me why this is happening? I should be able to start tomcat either way

Related

Windows could not start the apache2.4 service on local computer. Error 2: The system cannot find the file specified

This is my first time trying to use apache server. I was not formally tough how to use apache but i am curious and want to learn. I followed a youtube video on how to install apache. After downloading a few things, i extracted the apache folder to my C: drive. From there i opened my cmd line (Im using windows) and cd to the apache24 bin directory (C:\apache24\bin). I then installed apache server (httpd -k install). In the same directory, i typed httpd -k start to being running the apache software. I opened task manager to see if apache24 was running and it was not. Once i tried to start running apache24 from task manager manually, I got the popup message (windows could not start the apache24 service on local computer. Error 2: The system cannot find the file specified. I'm not sure what this means.

XAMPP tomcat service is not starting with error as "Tomcat Started/Stopped with errors, return code: 1"

I have installed XAMPP 7.2.10 on my Win 10 and other services like Apache and MySQL are working fine.
But the Tomcat service is not starting and is throwing an error as:
"Tomcat Started/Stopped with errors, return code: 1,
Make sure you have Java JDK or JRE installed and the required ports are free,
Check the "/xampp/tomcat/logs" folder for more information"
XAMPP Tomcat error image
I have installed Java JDK in "C:\Program Files\Java" and have set the environment variables path.
I have set the "JAVA_HOME" variable path as "C:\Program Files\Java\jdk-10.0.2"
Also, no other program is using the required ports.
When I run the "catalina_start.bat", I get error as:
"ERROR: The system was unable to find the specified registry key or value.
. [XAMPP]: Cannot find current JDK installation!
. [XAMPP]: Cannot set JAVA_HOME. Aborting ..."
What mistakes have I made here?
I had the same problem (XAMPP 7.3.0 / Windows Server 2016 / Java 11). I first checked the environment variables, the java installation - all seemed to be fine.
Sadly the XAMPP error message is not very meaningful, so i looked inside of tomcat installation. To my surprise XAMPP 7.3.0 uses a very old version of Apache Tomcat (7.0.56 from 2014!), that don’t work well with Java 9+. The reason is Tomcat 7.0.56 uses the "-Djava.endorsed.dirs" option, that is no longer supported in Java 9+. Up-to-date Tomcat versions have no problem with java 9+. To solve this you can just stay with Java 8 (if possible for you) or try to fix this on your own by modify Tomcat start-up: Go to your \xampp\tomcat\ folder and see this fix in Tomcat 7.0.73 doesn't work with java 9.
But i would recommend you to install a up-to-date version of tomcat and don’t use the XAMPP one (what i finally did) - at least until XAMPP updates there tomcat version .

XAMPP Can't Start Apache After Upgrading to PHP7.1.17 "Attempting to start Apache service..."

I have XAMPP installed on Windows 7 virtual machine. My old PHP version was 7.0.9 with Apache 2.4
I needed to upgrade the PHP version to 7.1.x and I set out reading about how to best to this. In end, I settled with the simple plan:
Stop Apache service
Downloaded new PHP version from official php website. For PHP 7 the 7.1.17 version was listed. I downloaded the thread safe version, as my Apache has thread safety enabled.
I extracted the contents of the downloaded archive to a folder.
I copied and replaced all files in the appropriate folders from C:/Server/php with the new php version files from the extracted archive.
I attempted to start Apache from the XAMPP control panel and the server will not start.
The message "Attempting to start Apache service..." just hangs and nothing happens.
The last entry in the error.log file in C:\Server\apache\logs shows the event when the server was stopped and that's it.
When I check the php version from CLI with the command php -v, the console returns installed php version 7.1.17
I tried different suggestions I read from similar questions, like changing ServerName localhost:80 to ServerName localhost:8080 and copying php7apache2.dll to apache/bin ( as suggested here: Upgrading PHP in XAMPP for Windows? ), alas the issue is not fixed and Apache does not start.
Of course, I also restarted the virtual machine, all the same.
At this point, I'm dumbfounded. Don't know what to do.
I need to get Apache running with php 7.1, as it is required by Magento 2.2.4. I do not want to reinstall XAMPP, as this will be a lenghty process with a lot of risk for more things to go wrong.
Any help is much appreciated!
Alright, so after checking Windows Logs > Application in Event Viewer I saw the error ".. the Apache service named is not a valid win32 application". I downloaded the x86 version of PHP from official website PHP for Windows
Then copied and replaced files as described above, and Apache started successfully.
To see if your Apache version is x64 or x86 open command prompt and cd to your Apache bin directory, in my case C:/Server/apache/bin , then run:
file httpd

How to run/make open the Glassfish Server outside of IDE's

I have download Glassfish 5.0 zip file(there was only zip file) for windows. I was able to install glassfish on intellij but i wanna start/run glassfish server outside of the ides. Glassfish becomes only running when i click "run" in ide
How can i do that?
Thanks
To start GlassFish in Windows, you will need to open a cmd prompt at the directory where you unzipped GlassFish.
Once there, you should see a directory structure which includes bin, glassfish, javadb and mq.
Run the following command:
bin\asadmin.bat start-domain
GlassFish will start in the background. To stop GlassFish, run the following command from the same directory:
bin\asadmin.bat stop-domain
Pay attention to the output when GlassFish starts because it will tell you the location of the server.log file and other details.

Unable to start service of Tomcat 7 on Windows 7

I have downloaded Apache tomcat 7 on my laptop.
I run the start up.bat file. Then I check on localhost:8080 and I get that Apache tomcat is successfully running.
Now, I want to start its service, but when I go to services.msc and run Tomcat, it does not run. Moreover, On the command prompt when I do " service.bat install", the result fails.
I actually want to start the service of tomcat.
What should I do ?? Can anyone please guide me, I checked many websites, but the steps are not much clear.
First, I tried with: http://tomcat.apache.org/tomcat-7.0-doc/windows-service-howto.html
But unable to do it.
Download the installer .exe file for Tomcat7 in-order to install and run the Tomcat7(32-bit/64-bit Windows Service Installer (pgp, md5, sha1)).
Do not download the Zip file of Tomcat7