[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

JAVA Tomcat conflicting w/ Apache (maybe), but can't seem to put my finger on it

Posted on 2006-04-26
4
Medium Priority
?
719 Views
Last Modified: 2011-10-03
I have posted a forum conversation I had over at Sun with the hopes someone can shed some light on my issue:

=======================================================================

I am currently studying JAVA, and just built my 1st applet using NetBeans IDE 5.0.

All of my code is accurate, but I am unable to use Tomcat for some reason.

I have read some instructs online, and have tried many different things to no avail, so this is my last hope at this point.

Basically, I continue to run into 2 things:

-------------------------------------------------------------------

Starting server Bundled Tomcat (5.5.9)
Starting Tomcat process...
Waiting for Tomcat...
Starting of Tomcat failed.
C:\Program Files\netbeans-5.0\test_projects\HelloWeb\nbproject\build-impl.xml:413: Deployment error:
Starting of Tomcat failed.
See the server log for details.
BUILD FAILED (total time: 11 seconds)

-------------------------------------------------------------------

And then if Apache (port 80) is in use I get this error (I actually stopped my Apache service to free up port 80, and the result was the above message. Below is if port 80 is in use by Apache).

Starting server Bundled Tomcat (5.5.9)
Starting of Tomcat failed, the server port 80 is already in use.
C:\Program Files\netbeans-5.0\test_projects\HelloWeb\nbproject\build-impl.xml:413: Deployment error:
Starting of Tomcat failed, the server port 80 is already in use.
See the server log for details.
BUILD FAILED (total time: 0 seconds)

---------------------------------------------------------------------------------

Thanks in advance for any helpful replies.
 
******************************************************

It'll help if you post the server log mentioned in the error message.

ram.
 
******************************************************

Have you set your Java environment variable?
I always had problems using the tomcat monitor, you could try using the startup.bat/sh and shutdown.bat/sh files instead.


The second issue you mention is not an error, you cannot have two web-servers trying to process requests on the same port.

Tomcat will default to port 8080 if you want to keep apache running, though I am not sure if apache also listens on port 8080. It is probably easier just to stop apache when you want to use tomcat, or configure tomcat as a plug-in to acpache (once you have it working stand alone :-) )
 
******************************************************

Here is what is being processed in my Output log (see below FF error) :: the strange this is, my browser opens to display the file, w/ http://localhost:8080/HelloWeb/ in the address bar, and the page that opens is a FF error page:

Unable to connect

Firefox can't establish a connection to the server at localhost:8080.

* The site could be temporarily unavailable or too busy. Try again in a few
moments.

* If you are unable to load any pages, check your computer's network
connection.

* If your computer or network is protected by a firewall or proxy, make sure
that Firefox is permitted to access the Web.

================Output when compiling========================

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
library-inclusion-in-archive:
library-inclusion-in-manifest:
compile:
compile-jsps:
do-dist:
dist:
run-deploy:
Starting server Bundled Tomcat (5.5.9)
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
Incrementally deploying http://localhost:8080/HelloWeb
Completed incremental distribution of http://localhost:8080/HelloWeb
run-display-browser:
Browsing: http://localhost:8080/HelloWeb/
run:
BUILD SUCCESSFUL (total time: 8 seconds)

============================================
0
Comment
Question by:w3developing
  • 2
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 2000 total points
ID: 16545745
> Starting of Tomcat failed, the server port 80 is already in use.
check your tomcat's configuration file (probably server.xml) and see if there is a connector bound to port 80
(most likely a <Connector ....> directive)
0
 

Author Comment

by:w3developing
ID: 16545944
Ok .. hmmm .. yes .. I stopped my Apache server service, and now I am able to view the page as it was intended, but when I try to run the form, I get this error:

NOTE:: FROM MY UNDERSTANDING THIS APPEARS TO BE A SCRIPT ERROR OR DIRECTORY ERROR .. ANY TIP ON THIS POINT?

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Cannot find any information on property '' in a bean of type 'org.me.hello.NameHandler'
      org.apache.jasper.runtime.JspRuntimeLibrary.internalIntrospecthelper(JspRuntimeLibrary.java:363)
      org.apache.jasper.runtime.JspRuntimeLibrary.introspecthelper(JspRuntimeLibrary.java:306)
      org.apache.jsp.response_jsp._jspService(response_jsp.java:67)
      org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
      org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
      org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
      javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:362)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9
0
 
LVL 51

Expert Comment

by:ahoffmann
ID: 16546669
this is a programming (or configuration) error in your me.hello
0
 

Author Comment

by:w3developing
ID: 16546699
ok thanks :) :: Im going to dig around and see what I can find ..
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question