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

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)

============================================
w3developingAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
> 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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
w3developingAuthor Commented:
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
ahoffmannCommented:
this is a programming (or configuration) error in your me.hello
0
w3developingAuthor Commented:
ok thanks :) :: Im going to dig around and see what I can find ..
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Web Servers

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.