I installed Xampp on my windows, and tried to install Tomcat on Xampp, but I keep getting the error on my Xampp control panel:
Service was NOT (uninstalled)!
I found some similar posts - Can't install Tomcat with xampp control panel and Starting Tomcat add-on XAMPP not working, but tried all the available methods mentioned there:
Create environment variable for JAVA_HOME & JRE_HOME
Make sure %JAVA_HOME%\bin; is in my %PATH% system variable
Download 64 bit version of tomcat to replace the 32 bit version in xampp
Go to C:\xampp\tomcat, clicked the tomcat_service_uninstall.bat, then return to xampp control panel and tried to install it again.
But none of these methods worked and the red cross beside Tomcat (under module column) is still visible.
Related
I am new to Intellij ide and i'm having issues running Glassfish 5 or any previous version on Intellij 2017 2.4.
After selecting New Project > Java Enterprise > Web Application i had to specify the application server, to which i selected the folder of glassfish 5, jdk is set to 1.8 and java ee to 7. So far so good, no errors and the project gets created. Then i have a greyed "play" icon next to GlassFish 5.0.0 in the upper right of the corner that says that i have to configure it, i click Edit Configurations and the Run/Debug Configurations opens up
Everything seems fine and when i click the "play" green button to start the server and run the project i have projectName:war exploded under Deployment and
[2017-09-26 08:47:57,836] Artifact testfornew:war exploded: Waiting for server connection to start artifact deployment...
Detected server admin port: 4848
Detected server http port: 8080
Exception in thread "main" java.lang.NullPointerException
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.initializeServiceLocator(AbstractModulesRegistryImpl.java:152)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.newServiceLocator(AbstractModulesRegistryImpl.java:144)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:218)
at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createServiceLocator(AbstractModulesRegistryImpl.java:224)
at com.sun.enterprise.module.single.StaticModulesRegistry.createServiceLocator(StaticModulesRegistry.java:88)
at com.sun.enterprise.admin.cli.CLIContainer.getServiceLocator(CLIContainer.java:217)
at com.sun.enterprise.admin.cli.CLIContainer.getLocalCommand(CLIContainer.java:255)
at com.sun.enterprise.admin.cli.CLICommand.getCommand(CLICommand.java:231)
at com.sun.enterprise.admin.cli.AdminMain.executeCommand(AdminMain.java:371)
at com.sun.enterprise.admin.cli.AdminMain.doMain(AdminMain.java:306)
at org.glassfish.admin.cli.AsadminMain.main(AsadminMain.java:57)
Under output. Coming from Netbeans setting glassfish up was pretty straightforward, i've checked a couple of solutions online including this but they don't seem to work for me.
I was having the same problem and I found that it is caused by an issue with the JDK software. So the NullPointerException thrown at AsadminMain.java:57 can be solved by checking your system variables (PATH, JAVA_HOME). Be sure that they reference to an acceptable JDK supported by your GlassFish version. GlassFish 5.0 is certified to work with java sdk 8u144 as mentioned HERE: https://javaee.github.io/glassfish/doc/5.0/release-notes.pdf.
Be aware, the path may also contain a reference to an old SDK directory.
If you need more help, please post the results of calling echo %PATH% on your cmd.
In my case JDK 1.8.0_152 must be installed, path and java_home variables have to be configured AND JDK 9.X must be uninstalled. Without uninstall, the error persist.
Uninstall Java 9, stay with the version 8 update 162 and the jdk8. When you unistall the Java 9 your system variables (PATH, JAVA_HOME=C:\ProgramData\Oracle\Java\javapath) will update the 3 jar (java, javaw, javaws) in this path to Java version 8.
war exploded: Waiting for server connection to start artifact deployment...
Detected server admin port: 4848
Detected server http port: 8080
....
Assuming that you are certain that JDK has set well in your environment variables and you are using jdk 8 or lower-Well I read somewhere that java9 has issues with such configurations, maybe the issue has been solve but for my case I chose to avoid for now.
Download and extract GlassFish of your version. For my case I'm
using GlassFish 5.181.O on Intellij 2018.1 ultimate version
Start Intellij, and before opening any project, or rather close all projects that are open.
Click on configure, then settings. A new window will appear as shown below. I have marked the steps you need to follow in the image. I will also add some explanation here.
Under Application Servers, click on the + shown as step 2 on the image, here you need to specify you glassfish server, the folder where you extracted to.
Next, click on + shown in step 3 on the image to add the server modules.
Assuming all is a success upto this point, select all choices of as shown in step 4 on the image, apply changes and Ok.
I will explain about creating a new project because I'm not sure how you would handle an existing project but I guess you can use concepts here to figure out what you need to tweak.Create your new java ee or whatever application you are working on,
As shown on figure 2, assuming you are creating a Java EE app, Click on Java Enterprise, then check/tick Web Application and JSF
Under libraries, use library from Glassfish ... Installation didn't help much because I got null pointer exceptions., so I used Download as shown in figure 2. Click next and finish.
Automatically you will see GlassFish added to the project, run it from the IDE.
Edit
If you had done all of the above and still get some error like Null Pointer Exceptions. Do what #Jailson Evora says: Clear your systems from java 9 and install java 8 and make sure when you issue java -version on command line, the output is java 8
I had to uninstall both jdk9 and jdk10 and set my java_home back to jdk8_181
Tomcat Server 7 does not start through Netbeans 8.1 for some reason.
However, Tomcat webpage starts up on browser in localhost:8080. Saying congratulations you have successfully installed Tomcat!
Things I Have Tried:
Changed Port Number
Changed server.xml
Took off quotations in catalina.bat file:
:noJuliConfig set JAVA_OPTS=%JAVA_OPTS% %LOGGING_CONFIG%
:noJuliManager set JAVA_OPTS=%JAVA_OPTS% %LOGGING_MANAGER%
Unticked IDE Proxy Settings
The annoying thing is. Tomcat can run through Netbeans on my home network. When I come to university or use another network. I try to start Tomcat, but the message I get after a while through Netbeans is "Starting of Tomcat failed". Is this a firewall setting perhaps?
I am using apache_tomcat version 7.0.70 and have tried Netbeans 8.2 and other Tomcat versions. Any help would be really appreciated.
I am using a MacBook Pro, so had to install Tomcat independently. As does not come with Netbeans EE bundle on MAC.
I'm running a VirtualBox of a 32-bit version of Ubuntu 14.04. When attempting to run sudo service tomcat7 start I get the following message.
start-stop-daemon: unable to stat /usr/lib/jvm/java-t-openjdk-amd64/jre/bin/java
It then returns saying the server has started.
After running service tomcat7 status I get the following:
Tomcat servlet engine is running with pid
Notice that there is no pid shown, which doesn't make any sense to me.
Regardless, this all ends up in the servlet not actually running when I attempt to navigate to localhost/.
I have no idea why it is looking for 64 bit java on a 32 bit install. I have everything else (to my knowledge) installed properly.
I've uninstalled/reinstalled tomcat and java to no avail.
Any help is appreciated.
check the version of java using java -version. you will get the architecture of java. Make sure that you have installed the 32 bit jre properly.
(My recommendation is to use oracle jre instead open jre). Try to download the tomcat from their site as .tar.gz. Extract it somewhere in your system. Locate the startup.sh script ,by default it will be present in bin folder of tomcat, and execute the script.
Hope it helps!!
I install jdk1.8.0 and i set the environment variable JAVA-HOME and PATH
I download the jboss-eap-6.1.0.GA(AS 7.2.Final)
I set environment variable JBOSS-HOME.
i located jboss-eap-6.1 in 'D' drive so i set JBOSS-HOME=D:\jboss-eap-6.1.
After all these run standalone.bat file. but i'm not able to install jboss server.
it gives a black screen and giving like
JBoss EAP 6.1.0.GA(AS 7.2.0.Final-read hat-8) starting. ..
After 1 hr also it giving like this only.
Not able to start the Jboss server
please give me a Solution for this.
Thank you
According to RedHat's "Supported Configurations" document, Java 8 isn't supported.
There are some plans to add support of Java 8 to a 6.3.x or 6.4 version. (see https://developer.jboss.org/message/906154)
I installed Tomcat 6.0.18 on a windows server 2003 box and it will not start as a service.
I'm running it with jdk 1.6.0_07.
It runs when I start it with tomcat6.exe.
I got a vague error in the System Event Log on Windows.
The Apache Tomcat 6 service terminated with service-specific error 0 (0x0).
I'll bite it :-)
Tomcat Service on windows is dependent on the MS C Runtime library msvcr71.dll. As long as it is in the path, the service will start just fine.
Just to prevent your other windows to be forced to use this version of the runtime library, you might want to copy the DLL to just the tomcat bin path instead of windows\system32.
From gobaco.wordpress.com
Tomcat 6 couldn’t find a file called msvcr71.dll.
I just copied it over from
c:\windows\microsoft.net\framework\v1.1.4322
to
c:\windows\system32
and was able to start tomcat.
I thought this was very strange, so I wanted to post it on SO in case anyone else runs into this problem. If someone wants to post the same answer I'll accept it.
i follow the above guide but still the same, error 0,
my process monitor log at http://www.sendspace.com/file/t0tahr
I solved the same problem enabling the default java virtual machine in the configuration app.
Assuming you have installed tomcat using:
service install tomcat-6.0.35
execute:
tomcat6w //ES/tomcat-6.0.35
a window pops up, select the java tab and click on "Use default" checkbox.
The service install script (I immagine) selected C:\Program Files(x86)\Java\jre\bin\client\jvm.dll instead.
Environment:
Windows Server standard SP2 64-bin
Java 1.6.0_23-b05 (Java hotspot 64-bit server vm 19.0-b09 mixed mode)
Apache tomcat 6.35 (you guessed this didn't you?)
I copied the msvcr71.dll from the java home directory to the bin directory of the apache-tomcat install, and the service started after that.
Even though it's an older post, I thought I'd share the knowledge about the very same issue I had, but the workaround was different.
The Apache Tomcat 7 service terminated with service-specific error 0 (0x0).
As there was no more information regarding the problem I went back to the Tomcat Control Panel and had a look at the Java path, which was pointed to an earlier installation of Java Virtual Machine:
C:\Program Files\Java\jre6\bin\client\jvm.dll, which no longer existed, so I had to change the JRE version to jre7.
Having done that, the service started up and all running now.
Hope it'll help some of you out there.