Build 200902030229,Win Vista, JDK 1.6
Create new Maven Project (Simple archetype) and change sources to 1.5 .
Add new Web Service Client from this URL: http://www.webservicex.net/CurrencyConvertor.asmx?wsdl
ERROR: No Web Service References node is created and when I Call Web Service operation,list is empty.
BTW; the wsdl URL you reference here sometimes doesn't work so Netbeans doesn't create a client for it.
Still reproducible in latest hudson build. Reopening.
Related a little with ERGONOMICS feature.
maven.jaxws is a "bridge" module between JAX-WS support and Maven support in enterprise cluster.
This module registers a LookupProvider / OpenHook) for Maven projects.
When the Maven project is being open, the listener(for pom.xml file), is registered in OpenHook:projectOpened()
In this particular situation :
When Maven project is being open - the maven cluster is activated only, not enterprise cluster
When a web service client is created (using WS Client wizard) the enterprise cluster (including maven.jaxws module) is
activated. Then, the project file(pom.xml) file is modified(some information related to WS Client is added).
Problem is that maven project is already opened, so OpenHook:projectOpened(), registered in maven.jaxws, is never
called, and listener doesn't fire the change event, since it hadn't been registered.
Tell me what to do with that ?
maven.jaxws depends on both: modules from enterprise cluster and modules from maven cluster.
Moreover, now the module is "eager" - it's automatically activated when all depending modules are activated.
We need likely to divide maven.jaxws into 2 modules.
The pom file listener was removed from OpenHook implementation :
Integrated into 'main-golden', will be available in build *200902241401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #157849: refactor Maven JAXWS support: move pom file listener from Project OpenHook to createAdditionalLookup(), separate JaxWsOpenHook
Reopening,since there's ws client node missing again. Workaround - reopen project.
JaxWsNodeFactory listener doesn't work in ergonomic case :
- Maven Web project is created/opened
- Web Services modules, including maven.jaxws, are installed
We need to hook somehow into JaxWsNodeFactory.
Stop by if you need help or consultation.
- LookupListener implemented to enable listener registration when project lookup is filled
- move all stuff from JaxWsOpenHook to MavenJaxWsSupportProvider
Integrated into 'main-golden', will be available in build *200904281401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #157849: take out annotation listeners from OpenHook implementation, implement LookupListener in Node Factory
It was OK-once with already used userdir. When I've tried exact steps,issue is still reproducible.
Now the problem is valid also for web projects.
Issue is not reproducible again in 200905050201 - closing as fixed and will try to verify next week. This issue keeps
returning again and again, cause originating from Ergonomics,so I expect to see it reopened again in future.
There was a bug in Maven project that likely caused the latest regression.
I also improved the listener part:
Integrated into 'main-golden', will be available in build *200905090201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Log: #157849: improve the listener part of the class