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 208350 - No need to generate web.xml for default Java EE 6 project
Summary: No need to generate web.xml for default Java EE 6 project
Status: RESOLVED FIXED
Alias: None
Product: serverplugins
Classification: Unclassified
Component: WebLogic (show other bugs)
Version: -S1S-
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Petr Hejl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-13 14:28 UTC by arungupta
Modified: 2012-04-05 09:39 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 arungupta 2012-02-13 14:28:06 UTC
Create a new Java EE 6 project and target to WebLogic 12c. The following web.xml is generated:

<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
     version="3.0">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
</web-app>

Java EE 6 makes this DD optional in most of the common cases and it should not be generated in this case, unless required.
Comment 1 Petr Hejl 2012-02-17 11:32:51 UTC
(In reply to comment #0)
> Java EE 6 makes this DD optional in most of the common cases and it should not
> be generated in this case, unless required.
Unfortunately this wasn't really true until recent fix in WL: https://bug.oraclecorp.com/pls/bug/webbug_print.show?c_rptno=10111723
Comment 2 Petr Hejl 2012-03-27 13:05:22 UTC
Fixed in web-main 0dae17f0c413.
Comment 3 Petr Hejl 2012-04-03 12:39:24 UTC
I had to actually revert the fix in 4fc9d1af0d03. The app deployed without DD is displayed as being of unknown type, preventing the deploy on save to work. I'll reopen or file the new WL issue.
Comment 4 Quality Engineering 2012-04-05 09:39:49 UTC
Integrated into 'main-golden', will be available in build *201204050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/4fc9d1af0d03
User: Petr Hejl <phejl@netbeans.org>
Log: #208350 DDs are still needed.