debug doesn't work but run project does.

I am developing a project in netBeans that I have been able to run the regular way and also in debug mode.

Suddenly this morning the debug mode will not deploy, even though I can get it to work by doing a "run project." Here is the error message I get in my debug output console:

Duplicated project name in import. Project Highsmith-impl defined first in C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\nbproject\ant-deploy.xml and again in C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\nbproject\build-impl.xml

connect-debugger:

Non-existing path "C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\${javac.classpath}" provided.

Non-existing path "C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\${run.classpath}" provided.

C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\nbproject\build-impl.xml:27 5: The following error occurred while executing this line:

C:\Documents and Settings\pamadon.HIGHSMITHNET\SunProjects\Highsmith\nbproject\build-impl.xml:27 8: org.netbeans.api.debugger.jpda.DebuggerStartException: org.netbeans.jmi.javamodel.JavaPackage$Impl cannot be cast to org.netbeans.jmi.javamodel.Feature

BUILD FAILED (total time: 22 seconds)

Any ideas how to fix? If the project exists in both xml files, which one should it be in?

[1405 byte] By [Perryiera] at [2007-11-27 11:12:36]
# 1

There are some known issues filed in issuzeilla, that seem related:

1. http://www.netbeans.org/issues/show_bug.cgi?id=93741

...There are a few reports about this in the GF issue tracker.

...The most detailed one is https://glassfish.dev.java.net/issues/show_bug.cgi?id=539

The "fix" appears to be using 9.1.

If your app uses struts, you may be able to update the struts jars to address.this issue....

2. http://www.netbeans.org/issues/show_bug.cgi?id=92409

Can you try undeploying the project (and also removing related files for this app in the 'generated' directory in the appserver install, for good measure) and redeploying the application?

Also: JSE 8.1 is based on NetBeans 5.0. You may want to upgrade to NetBeans 5.5.1 (www.netbeans.org).

KarthikRa at 2007-7-29 13:55:45 > top of Java-index,Development Tools,Java Tools...