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 177307 - [68cat] Netbeans does not recognize Glassfish v3 sun-web.xml doctype
Summary: [68cat] Netbeans does not recognize Glassfish v3 sun-web.xml doctype
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: DD Editor (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: Vince Kraemer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-20 08:41 UTC by jpleed3
Modified: 2009-12-03 08:40 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 147875


Attachments
stacktrace (5.21 KB, text/plain)
2009-11-20 08:42 UTC, jpleed3
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jpleed3 2009-11-20 08:41:56 UTC
Build: NetBeans IDE Dev (Build 200911160201)
VM: Java HotSpot(TM) Client VM, 14.3-b01, Java(TM) SE Runtime Environment, 1.6.0_17-b04
OS: Windows XP, 5.1, x86

User Comments:
jpleed3: Opening valid sun-web.xml (GF 3.0):

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC 
    "-//Sun Microsystems, Inc.//DTD GlassFish Application Server 3.0 Servlet 3.0//EN"
    "http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd">
<sun-web-app error-url="">
    <context-root>/hrmis</context-root>
    <property name="alternatedocroot_1" value="from=/security/* dir=docroot"/>
    <property name="alternatedocroot_2" value="from=/error/* dir=docroot"/>
</sun-web-app>

alexandrov: build maven war project. No suitable server were deployed. After exrtra steps => IllegalSateException



Stacktrace: 
java.lang.IllegalArgumentException: Data object does not contain a sun-web.xml graph.
        at org.netbeans.modules.j2ee.sun.ddloaders.multiview.web.SunWebBaseView.<init>(SunWebBaseView.java:59)
        at org.netbeans.modules.j2ee.sun.ddloaders.multiview.web.SunWebView.<init>(SunWebView.java:55)
        at org.netbeans.modules.j2ee.sun.ddloaders.multiview.web.SunWebOverviewMultiViewElement.createView(SunWebOverviewMultiViewElement.java:62)
        at org.netbeans.modules.j2ee.sun.ddloaders.multiview.DDMultiViewElement.componentShowing(DDMultiViewElement.java:72)
        at org.netbeans.core.multiview.MultiViewPeer.peerComponentShowing(MultiViewPeer.java:199)
        at org.netbeans.core.multiview.MultiViewCloneableTopComponent.componentShowing(MultiViewCloneableTopComponent.java:119)
Comment 1 jpleed3 2009-11-20 08:42:00 UTC
Created attachment 91435 [details]
stacktrace
Comment 2 jpleed3 2009-11-20 08:44:25 UTC
My sun-web.xml's are based on the doctype for GF v3: http://www.sun.com/software/appserver/dtds/sun-web-app_3_0-0.dtd

NB doesn't seem to understand it.
Comment 3 jpleed3 2009-11-25 11:19:02 UTC
Changing description, upgrading to P2 and changing component to web project.
Comment 4 Vince Kraemer 2009-11-27 18:34:11 UTC
http://hg.netbeans.org/web-main/rev/a75c197cb04c
Comment 5 Quality Engineering 2009-11-28 14:22:49 UTC
Integrated into 'main-golden', will be available in build *200911281400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a75c197cb04c
User: vince kraemer <vkraemer@netbeans.org>
Log: #177307: sun-web-app_3_0-0.dtd update
Comment 6 Vince Kraemer 2009-12-01 10:42:08 UTC
I am going to upgrade this to p1, since the effect in 6.8 rc2 is pretty severe
Comment 7 jpleed3 2009-12-01 10:52:34 UTC
I'm running RC1 today so I can't verify. Just noticed that sun-application.xml doesn't work correctly in this build either. Not to expand the scope of a bug after it's been resolved, but did you also update sun-ejb.xml and sun-application.xml?
Comment 8 Vince Kraemer 2009-12-01 11:32:20 UTC
this needs to go into release68...
Comment 9 Vince Kraemer 2009-12-01 11:36:44 UTC
RE: https://netbeans.org/bugzilla/show_bug.cgi?id=177307#c7

See bug 177939
Comment 10 Nitya Doraisamy 2009-12-01 16:55:05 UTC
Reviewed an tested the fix.
Comment 11 David Konecny 2009-12-01 17:32:14 UTC
I reviewed the fix and it looks OK.
Comment 12 jpleed3 2009-12-02 06:54:00 UTC
Verified fix in build 200912020200.
Comment 13 Vince Kraemer 2009-12-02 10:17:40 UTC
thanks for the verification
Comment 14 Vince Kraemer 2009-12-02 15:04:12 UTC
http://hg.netbeans.org/release68/rev/56f5c48f7432
Comment 15 Jindrich Sedek 2009-12-03 08:40:11 UTC
verified in 6.8 RC2 (Build 200912022200)