This may not be the best place to post it. Anyhow, everything was working perfect but then I had to reinstall NetBeans with java 1.4 and not nothing works. I can't build the project in NB. Here is what I get:

If a reinstall of netbeans is failing, one possible reason could be that the new install is still using the older user directory.

Can u try running the ide with a new userdir:
runide.exe -userdir <path_to_new_userdir>

Ref: http://blogs.sun.com/roller/page/karthikr

Also, from the log file:
Using CATALINA_TMPDIR: C:\Documents and Setti.netbeans\4.1\jakarta-tomcat-5.5.7_base\temp
java.lang.IllegalArgumentException: Document base C:\Documents and SettiDesktop\FirstWebApplication\build\web does not exist or is not a readable directory

For some reason, "c:\documents and settings" seems to be truncated to "c:\documents and setti"...

(1) as noted above your path information seems contaminated. And since these path lines are followed by "file doesnt exist" errors, I would certainly find out what happened there.

(2) it looks like you have NB4.1. You said you had to re-install NB with java 1.4. This may not be necessary. You can use NB4.1 and java1.5; then set the source level in your project to 1.4. This will force the build to use 1.4 while building your project.

(3) the problem seems to be inthe deployment and not in the build. This seems to be caused by the class problem.

I created a web application project (WebApplication1) using NB, but even after I deleted this project (outside of IDE), I'm still getting refereces in Tomcat to this deleted project. For example, when I create completely brand new web proejcts, and run it with Tomcat, Tomcat gives me errors such as...

SEVERE: Error starting static Resources
java.lang.IllegalArgumentException: Document base ~/WebApplication1\build\web does not exist or is not a readable director

Can someone tell me what I need to do/change, to get rid of these references to old projects? I've already tried uninstalling and reinstalling NB IDE 4.1.....

Reply:

I believe that you need to remove the project references from Tomcat's files, as well as just deleting the project.

In the Runtime window, expand Servers, start Tomcat (rightclick it), and expand Bundled Tomcat and Web Applications. Then righclick the project and undeploy.

You need to do this to any project you remove manually. (and for SJS App Server, as well.) NB has an enhancement task to delete projects from within NB, but it's for the future.

Tomcat 5.5.7 has been shipped without preconfigured logging and thus you had to configure it by yourself. Starting with 5.5.9 Tomcat comes with preset JULI logging.
For more info refer to:
http://tomcat.apache.org/tomcat-5.5-doc/logging.html

Also, you can check the server output by right-clicking on the tomcat server instance and selecting 'View server output' in the context menu.

btw, you may still want to try undeploying the problematic applications (like FirstWebApplication) if they still show up in the list of webapps.

Once you expand the servers node and select 'Bundled tomcat (5.5.7)', can u right-click and select 'Start/stop server' to start the server? Does the server start? What is the output you see in the output window (in the 'Output- Bundled tomcat(5.5.7)' tab)?

In your user directory (<usedir>/jakarta-tomcat-5.5.7_base/conf/Catalina/localhost) do u see a file called FirstWebApplication1.xml ? If so, can u move that file elsewhere, restart the ide and try restarting the server?