Link to home
Create AccountLog in
Editors IDEs

Editors IDEs

--

Questions

--

Followers

Top Experts

Avatar of billy21
billy21

Netbeans 7.3 - Can't connect to Apache Tomcat web server
I am attempting to create a JSP servlet using the Netbeans 7.3 IDE and Apache Tomcat server.

The Tomcat server appears to be working.  I see the tomcat welcome screen at http://localhost:8080

I have set up the tomcat server on netbeans:
User generated image
The application deploys without error, but when I attempt to run it I get this error in the google chrome browser:

Oops! Google Chrome could not connect to localhost:8080
Suggestions:
Try reloading: localhost:­8080/­HelloWorld/­HelloServlet

I have no idea why this is happening.  Any help will be very much appreciated.

Thanks,

-Bill

Further Update:

When I start tomcat from the tomcat batch files I can see the welcome screen at http://localhost:8080

But even that stops working when I attempt to run the servlet from netbeans.  So whatever netbeans does when I attempt to run the servlet is bringing down Apache Tomcat.

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of girionisgirionis🇬🇷

What do the logs or the console say? Any error messages?

Avatar of billy21billy21

ASKER

Using CATALINA_BASE:   "C:\TomCat\apache-tomcat-7.0.37"
Using CATALINA_HOME:   "C:\TomCat\apache-tomcat-7.0.37"
Using CATALINA_TMPDIR: "C:\TomCat\apache-tomcat-7.0.37\temp"
Using JRE_HOME:        "C:\Program Files\Java\jdk1.7.0_07"
Using CLASSPATH:       "C:\TomCat\apache-tomcat-7.0.37\bin\bootstrap.jar;C:\TomCat\apache-tomcat-7.0.37\bin\tomcat-juli.jar"
Mar 31, 2013 10:37:53 AM org.apache.catalina.core.AprLifecycleListener init
INFO: Loaded APR based Apache Tomcat Native library 1.1.27 using APR version 1.4.6.
Mar 31, 2013 10:37:53 AM org.apache.catalina.core.AprLifecycleListener init
INFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
Mar 31, 2013 10:37:54 AM org.apache.catalina.core.AprLifecycleListener initializeSSL
INFO: OpenSSL successfully initialized (OpenSSL 1.0.1d 5 Feb 2013)
Mar 31, 2013 10:37:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-apr-8081"]
Mar 31, 2013 10:37:55 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-apr-8009"]
Mar 31, 2013 10:37:55 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2279 ms
Mar 31, 2013 10:37:55 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Mar 31, 2013 10:37:55 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.37
Mar 31, 2013 10:37:55 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\TomCat\apache-tomcat-7.0.37\webapps\docs
Mar 31, 2013 10:37:56 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom
INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [111] milliseconds.
Mar 31, 2013 10:37:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\TomCat\apache-tomcat-7.0.37\webapps\examples
Mar 31, 2013 10:37:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\TomCat\apache-tomcat-7.0.37\webapps\host-manager
Mar 31, 2013 10:37:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\TomCat\apache-tomcat-7.0.37\webapps\manager
Mar 31, 2013 10:37:56 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\TomCat\apache-tomcat-7.0.37\webapps\ROOT
Mar 31, 2013 10:37:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-apr-8081"]
Mar 31, 2013 10:37:56 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-apr-8009"]
Mar 31, 2013 10:37:56 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 1616 ms
Mar 31, 2013 10:37:57 AM org.apache.catalina.startup.HostConfig deployDescriptor
INFO: Deploying configuration descriptor C:\TomCat\apache-tomcat-7.0.37\conf\Catalina\localhost\HelloWorld.xml
Mar 31, 2013 10:37:58 AM org.apache.catalina.util.LifecycleBase start
INFO: The start() method was called on component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/HelloWorld]] after start() had already been called. The second call will be ignored.
#
# A fatal error has been detected by the Java Runtime Environment:
#
#  EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000604cb181, pid=7360, tid=1812
#
# JRE version: 7.0_07-b11
# Java VM: Java HotSpot(TM) 64-Bit Server VM (23.3-b01 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# V  [jvm.dll+0xfb181]
#
# Failed to write core dump. Minidumps are not enabled by default on client versions of Windows
#
# An error report file with more information is saved as:
# C:\TomCat\apache-tomcat-7.0.37\bin\hs_err_pid7360.log
#
# If you would like to submit a bug report, please visit:
#   http://bugreport.sun.com/bugreport/crash.jsp
#

Open in new window


ASKER CERTIFIED SOLUTION
Avatar of girionisgirionis🇬🇷

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.

Editors IDEs

Editors IDEs

--

Questions

--

Followers

Top Experts

Development in most programming languages is frequently done with an editor or integrated development environment (IDE). An IDE is a software application that provide comprehensive facilities to computer programmers for software development. An IDE normally consists of a source code editor, build automation tools and a debugger. XCode, Visual Studio, Adobe Dreamweaver and Eclipse are some of the more popular development tools, but an editor or IDE can be anything from simple text editors to sophisticated programs. Related topics: All programming and development language, database and web based content management systems topics