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 134814 - Glassfish appserv-rt.jar breaks visual jspf editor
Summary: Glassfish appserv-rt.jar breaks visual jspf editor
Status: NEW
Alias: None
Product: obsolete
Classification: Unclassified
Component: visualweb (show other bugs)
Version: 6.x
Hardware: Macintosh All
: P3 blocker (vote)
Assignee: _ sandipchitale
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-10 23:21 UTC by jjh
Modified: 2008-12-10 21:56 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
this is the exception thrown by glassfish (2.29 KB, text/plain)
2008-05-10 23:22 UTC, jjh
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jjh 2008-05-10 23:21:04 UTC
My J2EE application consists of one ejb module and one web module. I have added the glassfish appserv.jar library to the
web module because I need to make use of the ProgrammaticLogin class that comes with this library. When I add the
library to my project, it breaks the visual editor for JSP Pages and JSP Page-Fragments. When I delete the library from
my project, I find the editor is working again. Weird, huh!?
Comment 1 jjh 2008-05-10 23:22:05 UTC
Created attachment 61222 [details]
this is the exception thrown by glassfish
Comment 2 jjh 2008-05-11 00:09:45 UTC
a colleague of mine found out that adding two other glassfish libraries, namely "appserv-deployment-client.jar" and
"appserv-ext.jar" resolves the problem. But still, the netbeans visual jsf editor should work no matter how messy my
project's libraries are!!
Comment 3 Peter Zavadsky 2008-09-15 22:15:41 UTC
Where those libraries simply missing in your project and you resolved it, i.e. is it non issue? Or did you expect those
to be loaded automatically?
Please, explain. Thanks.
Comment 4 jjh 2008-09-16 10:08:06 UTC
> Where those libraries simply missing in your project and you resolved it
Yes, these libraries were missing in my project. I did not see it at once because I did not get any errors or warnings.
I don't know how my colleague found out that we had missing references, but anyhow, he resolved them and things started
working again.

> i.e. is it non issue?
It is an issue. It would be a non-issue if I was talking about getting compile errors (you've got a point there: I
should not be surprised if a project with missing libraries does not want to compile!). But I am not talking about
compile errors (which I think I did not get anyway), but about the Visual JSF Editor that for some reason stopped working. 

My point is: The netbeans visual jsf editor should work no matter how messy my project's libraries are!! It should be
able to open JSF files even if the project has missing libraries. (If this should not be possible for some reason, the
editor should not throw an ugly stack trace, that would be my lowest expectation)

> Or did you expect those [libraries] to be loaded automatically?
No. I knew I had to manually add the glassfish libraries to my project in order to use the ProgrammaticLogin class.


I have to say, though, that I cannot now try to reproduce the problem because the project is finished and I am now
working on a computer without Netbeans. Btw, we ended up not using the ProgrammaticLogin class which we never quite got
to work but instead used a JDBC Realm.
Comment 5 Peter Zavadsky 2008-12-10 21:56:05 UTC
The visual editor is not working because of the compile time errors. Because of those the model can't be created, thus
there nothing to be shown in the visual editor.

I understand that you would like to get improvement from that point of view. That despite the errors, there would be
built at least some tree, and instead of the nodes, which are not created due to those errors, to show some error boxes.

That is relevant demand. Unfortunately the current implementation doesn't provide such model, so the visual designer
can't show anything. In any case the rest of the issue should be OK, therefore I change this to RFE. Thanks.