This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 136050

Summary: Spring refactor to change package -> ClassCastException
Product: javaee Reporter: vaughn <vaughn>
Component: SpringAssignee: issues@javaee <issues>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: IDE log showing exception when Java package renamed

Description vaughn 2008-05-29 04:32:20 UTC
Used refactor to change Java package name in simple Spring app based on the "Introduction to the Spring Framework"
tutorial at http://www.netbeans.org/kb/61/web/quickstart-webapps-spring.html. Got warning before refactoring saying:

Module Spring Beans threw java.lang.ClassCastException: org.netbeans.editor.ext.ExtSyntaxSupport cannot be cast to
org.netbeans.modules.xml.text.syntax.XMLSyntaxSupport. Please report a bug againts Spring Beans module and attach your
var/log/messages.log.

Proceeded to refactor despite warning. Result was a Spring web app that compiled and deployed OK, but would not run.
Comment 1 vaughn 2008-05-29 04:36:06 UTC
Created attachment 62096 [details]
IDE log showing exception when Java package renamed
Comment 2 Andrei Badea 2008-05-29 11:52:58 UTC
Thanks for reporting. This is a known issue, look at the release notes for a workaround:

http://www.netbeans.org/community/releases/61/relnotes.html


*** This issue has been marked as a duplicate of 133893 ***