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 135929

Summary: Cannot use design view in new project
Product: obsolete Reporter: Lukas Jungmann <jungi>
Component: visualwebAssignee: _ deva <deva>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Attachments: ide log

Description Lukas Jungmann 2008-05-27 19:21:06 UTC
-create new Java EE web app with Visual web JSF framework for GlassFish (v2.1-b34 if that matters)

=> design view of created JSP shows nothing (well, only "missing body element" message), JSP editor view shows "Could
not add one or more tag libraries", every try to type something there ends with:

java.lang.IllegalStateException: Illegal source modification with dirty model
C:\Users\lukas\Documents\NetBeansProjects\WebApplication6\web\Page1.jsp
	at org.netbeans.modules.visualweb.insync.SourceUnit.setSourceDirty(SourceUnit.java:304)
	at org.netbeans.modules.visualweb.insync.SourceUnit.insertUpdate(SourceUnit.java:379)
	at org.netbeans.lib.editor.util.swing.PriorityDocumentListenerList.insertUpdate(PriorityDocumentListenerList.java:70)
	at javax.swing.text.AbstractDocument.fireInsertUpdate(AbstractDocument.java:185)
...
Comment 1 Lukas Jungmann 2008-05-27 19:21:55 UTC
Created attachment 62006 [details]
ide log
Comment 2 _ krystyna 2008-05-27 22:46:02 UTC
Reproduced with NetBeans IDE Dev (Build 20080527182429)

In the past, trunk builds would sometimes see MBE momentarily for the initial 
project but you could refresh it away, Each time I refresh designer, it adds 
another form component to the .jsp


   <webuijsf:form id="form1"/>
    <webuijsf:form id="form1"/>
    <webuijsf:form id="form1"/>
    <webuijsf:form id="form1"/>


I see the error caused by jsp tag too but don't see the difference from FCS entry.

No help in creating subsequent projects. Same issues.
Comment 3 _ sandipchitale 2008-05-27 23:36:30 UTC
Deva I think this is the same issue as Gowri is seeing.
Comment 4 _ gowri 2008-05-28 01:23:37 UTC
Yes, its the same issue. 
Comment 5 _ deva 2008-05-28 03:19:45 UTC
Introduced because of web project supporting "classpath/packaged" classpath type, but the classpath entries from it 
are empty, hence our classloader doesn't have the right urls in its classpath.

Have filed a P1 bug against web/project, see http://www.netbeans.org/issues/show_bug.cgi?id=135951
Comment 6 Dan Kolar 2008-05-28 10:25:47 UTC

*** This issue has been marked as a duplicate of 135907 ***
Comment 7 _ deva 2008-05-28 16:58:38 UTC
After further discussion with dkonecny and debugging, it is found that it is indeed introduced by #134341, I have 
filed a P1 bug http://www.netbeans.org/issues/show_bug.cgi?id=136016

BTW, I think this bug is different from http://www.netbeans.org/issues/show_bug.cgi?id=135907. You will see "missing 
body element" message whether you open old or create new project.
Comment 8 _ deva 2008-05-29 21:16:24 UTC
I did not look at the build # correctly, this is same as #135907

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