File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes debugging on server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "debugging on server" Watch "debugging on server" New topic

debugging on server

Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 446

I am doing a project in JSP and servlets in eclipse with MySQL

I know that we have to copy the class files from development environment to deployment environment under tomcat directory
but for servlets
sometimes I get the error

required resource not found

even if I don't change path

after some observations, I understood it is related to debugging on the server

what is that exactly?
please tell me

SCJP 6 [86%], OCPWCD [84%], OCEJPAD [83%]
If you find any post useful, click the "plus one" sign on the right
Tom Reilly

Joined: Jun 01, 2010
Posts: 618
In this case, in order to diagnose the problem, you need to detail the sequence of events that lead to your error: "required resource not found".

BTW, with recent versions of Eclipse, I found it's very easy to debug servlet code by running Tomcat on the same computer as Eclipse. That is, you don't have to copy files or connect to remote processes. Have you tried this?
Prasad Kharkar
Ranch Hand

Joined: Mar 07, 2010
Posts: 446

yes that is what I was observing
also I tried the debugger and found the breakpoints very useful

I am using the eclipse first time and trying to learn a lot

could you give some more tips on using eclipse more effectively?
I agree. Here's the link:
subject: debugging on server
It's not a secret anymore!