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 110973 - 0724: sun-web.xml / Environment with bookstore1
Summary: 0724: sun-web.xml / Environment with bookstore1
Status: VERIFIED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-25 16:30 UTC by nouar38
Modified: 2007-08-24 15:54 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description nouar38 2007-07-25 16:30:59 UTC
NB 6.0 200707240000 & GF v2 b56 & jdk 1.6 u1

I've tried with bookstore1 (from java ee 5 tutorial samples 1.u3) , before creating the needed jdbc resource for BookDB,
to edit the sun-web.xml file, when I click on the tab Environment, I'm getting the Exception:

SEVERE [global]

org.netbeans.modules.j2ee.sun.dd.api.VersionNotSupportedException: Not supported in Server 2.40 specification.

        at org.netbeans.modules.j2ee.sun.dd.impl.web.model_2_4_0.SunWebApp.getMessageDestinationRef(SunWebApp.java:1112)

        at org.netbeans.modules.j2ee.sun.dd.impl.web.SunWebAppProxy.getMessageDestinationRef(SunWebAppProxy.java:859)

[catch] at
org.netbeans.modules.j2ee.sun.ddloaders.multiview.jms.MessageDestinationRefGroupNode.getBeansFromModel(MessageDestinationRefGroupNode.java:61)

        at
org.netbeans.modules.j2ee.sun.ddloaders.multiview.common.NamedBeanGroupNode.computeBindingSet(NamedBeanGroupNode.java:289)

        at org.netbeans.modules.j2ee.sun.ddloaders.multiview.common.NamedBeanGroupNode$2.run(NamedBeanGroupNode.java:162)

        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:539)

        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:964)
Comment 1 nouar38 2007-07-25 16:35:39 UTC
and before creating the DB tables.
Comment 2 nouar38 2007-07-25 17:30:04 UTC
in XML tab can see:
<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 8.0 Servlet 2.4//EN"
"http://www.sun.com/software/appserver/dtds/sun-web-app_2_4-0.dtd">

<sun-web-app>

  <context-root>/bookstore1</context-root>

</sun-web-app>

but in a new created web project:
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Application Server 9.0 Servlet 2.5//EN"
"http://www.sun.com/software/appserver/dtds/sun-web-app_2_5-0.dtd">

does this mean I'm not allowed to use the different tabs from sun-web.xml if version < 2_5 ?
Comment 3 Erno Mononen 2007-07-26 07:54:25 UTC
Ressigning to serverplugins for further evaluation.
Comment 4 _ pcw 2007-07-26 08:34:09 UTC
No, I haven't made my final pass over the versioning code and there are several places where the version is "expected to
be ok", but isn't because of some missing versioning code.

This is on my list of things to fix.
Comment 5 _ pcw 2007-08-17 22:27:44 UTC
Fixed.

I've implemented versioning code over all of the new editors now so fields, panels, and views all have their visibility
controlled by whether or not they are supported by the current DOCTYPE.

Please file new bugs for any further VersionNotSupportedExceptions you may encounter, if any.
Comment 6 nouar38 2007-08-24 15:54:07 UTC
NB 6.0 200708200000 & GF v2 b58c & jdk 1.6u1 solaris-sparc : for bookstore1
with no jdbc/bookDB and no db populated, no more the exception while expanding the different tabs in sun-web.xml
thanks.

marking the issue as verified.