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 158027 - Web Services feature changed web.xml file and broke my application
Summary: Web Services feature changed web.xml file and broke my application
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Milan Kuchtiak
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-05 16:59 UTC by mjreged
Modified: 2010-04-06 13:58 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
On Project load i get this popup like 15 times before it goes away (14.80 KB, image/png)
2009-02-05 17:00 UTC, mjreged
Details
web.xml modified and broke my application (37.77 KB, image/png)
2009-02-05 17:01 UTC, mjreged
Details

Note You need to log in before you can comment on or make changes to this bug.
Description mjreged 2009-02-05 16:59:18 UTC
Installed Latest NB Build Dev 200902041526. We Use maven plugin for our Web application project. As soon as i opened my 
web project i got error message about WEB-INF not being found (Attached snapshot). Then i located my web.xml file and 
found that the system created entries related to web services that i package in a jar. These are jax-ws services but 
using CXF framework and spring integration to start them up.  However netbeans created all these servlet entries for 
them, essentially breaking my application.
-------web.xml--------
<listener>
        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
</listener>

I attached pictures. I see that you are trying to make webservices bootstrapping easier, but i don't think that will 
work there are too many different strategies out there and you just broke my project with it.
Comment 1 mjreged 2009-02-05 17:00:35 UTC
Created attachment 76622 [details]
On Project load i get this popup like 15 times before it goes away
Comment 2 mjreged 2009-02-05 17:01:21 UTC
Created attachment 76623 [details]
web.xml modified and broke my application
Comment 3 Petr Jiricka 2009-02-06 11:12:13 UTC
Looks like this is either in the web services area or the WSIT area.
Comment 4 Milan Kuchtiak 2009-02-06 13:09:41 UTC
Sorry for inconvenience.
This was caused by automatic detection of web services in your project.
If web services are detected, and there is no target server specified (or non-JSR109 server like Tomcat), the web.xml
entries are created in web.xml.

- this shouldn't be done automatically, instead a confirmation dialog should appear 
- this shouldn't be done at all when no server is specified for web application 
Comment 5 Milan Kuchtiak 2009-02-06 16:29:20 UTC
Fixed:
http://hg.netbeans.org/main/rev/db2c51e7cac2
Comment 6 Quality Engineering 2009-02-07 08:41:47 UTC
Integrated into 'main-golden', will be available in build *200902070301* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/db2c51e7cac2
User: mkuchtiak@netbeans.org
Log: #158027: ask user if non JSR109 stuff should be generated. Not by default
Comment 7 Jaroslav Pospisil 2010-04-06 13:58:42 UTC
v.