Tomcat 7 Does not Run on Netbeans - java

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.

Related

Tomcat unable to install error: Service was not (uninstalled)

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.

Running multiple instances of Apache tomcat will not work in my pc

I have two jdks and jres installed in my pc java 1.5 and java 1.8 for some work purpose. Now I have one instance of tomcat 5.5 which I took from another pc and pasted it in my pc c:/servers folder. It is running fine using java 1.5. So I set the JAVA_HOME and path to java 1.5. Now I downloaded tomcat 7 binary distribution zip file and extracted it in my c:/servers directory. I changed the connector port, shutdown port and AJP port to different values. set CATALINA_BASE to c:/servers directory. But when I'm running the startup.bat two windows are popping up for a sec and they are closing. The server is not starting. I found the error as java.lang.UnsupportedClassVersionError. Bad version number in class file
Then I tried to install tomcat 8 using windows installer with again different port numbers in the same c:/servers directory which worked perfectly. It started and tomcat home screen also loaded. My work is survived with tomcat installer but I want to know why manual configuration failed.
OS = windows 10 64 bit
Please help me in making manual configuration of tomcat. If any other information is needed, I'll provide.
EDIT 1
I got this error java.lang.InvocationTargetException when I tried to install another instance of tomcat 5.5 manually in c:/servers directory
The exception UnsupportedClassVersionError occurs when you try to execute *.class files with an older version of Java as they were compiled for.
In your case, you are trying to run Tomcat 7 with Java 1.5, but its minimum requirement for the JRE is version 1.6. The latest version of Tomcat that supports Java 1.5 is Tomcat 6. Check out this overview for more information:
Apache Tomcat Versions

NetBeans (8.0.2) can't communicate with Wildfly 9 (Final)

If i start a Wildfly 9 Server with NetBeans, it does not detect that it is started. If i start again, i get the error message "WildFly 9.0.0 Start Failed. HTTP Connector port 8080 is already in use."
The port is used by Wildfly. Wildfly is started by NetBeans but not detected.
(If i stop Wildfly manually, i can start it again with no error message, but NetBeans does not detect it. If i try to start again, i get the error message "... port 8080 is already in use.")
Why can't NetBeans detect the running Wildfly instance?
Netbeans support for WildFly 9 and 10 that is in the workings, it was added to latest builds that will be part of 8.1 Netbeans release.
For time being best thing to do is to try the nightly builds where it works.
you can grab nightly builds from http://bits.netbeans.org/download/trunk/nightly/latest/
"NetBeans 8.1 beta" was released and includes support for Wildfly 9 and 10: https://netbeans.org/community/releases/81/
I can confirm this behavior, I tried it too. AFAIK Wildfly support in Netbeans was maintained by plugin created directly by JBoss community. This changed in Netbeans 8.0.2 and now it is part of Netbeans installation package. Problems with support of newly released versions of Wildfly is occurring quite often.
Here for Wildfly 8: https://netbeans.org/bugzilla/show_bug.cgi?id=241805
Here for Wildfly 8.1: https://netbeans.org/bugzilla/show_bug.cgi?id=245297
I would suggest to wait until they add support for version 9, or you can try proactively raise the bug in Netbeans bugzilla.
I came across the same issue on a windows 7 machine with netbeans 8.2 (8.1 as well) and wildfly 9.0.2.
Actually the issue came from an entry in my hosts file configured to map localhost to the actual machine ip address. The issue was fixed as soon I removed that entry.
Hope this will help.

Wildfly 8.1.0 Final and Netbeans 8.0: WildFly Application Server Start Failed. HTTP Connector port 8080 is already in use

U have updated Wildfly from 8.0.0 FINAL to 8.1.0 FINAL. When I am trying to run the application in Netbeans 8.0, it fails starting and the following message is shown:
WildFly Application Server Start Failed. HTTP Connector port 8080 is already in use.
When I am trying to manage the server from Netbeans menu, stop is disabled and killing hangs. I can kill the server from the system, but nothing changes. Still I cannot deploy/run the application from the environment anyhow.
It seems Netbeans starts the server twice.
All right, I just found the problem. The previous problem happened when I have used "Update Existing 8.0.0.Final Install" from Wildfly downloads over the existing 8.0.0 installation.
When I desperately installed a fresh 8.1.0 installation, everything seems to work. So the problem is probably in the update package.

system restarts while running a java web application in eclipse with tomcat server

When I run my java web application from eclipse using tomcat server, system gets restart. Its not even showing any exception or errors.
My system Configuration is,
window xp sp3 32-bit
JDK1.5.0
eclipse helios
tomcat server 6.0
Please help me to solve this problem.
The problem may be either with your eclipse version or with the server or any code fragment which you are using. Try with fresh version of eclipse and server, if the problem still exists, check the system for any virus. If that also give negative check recently added code fragments..

Categories

Resources