Please use the Apache issue tracking system for new NetBeans issues ( !!
Bug 163371 - IASDeploymentException when deploying web service in maven web project
IASDeploymentException when deploying web service in maven web project
Product: webservices
Classification: Unclassified
Component: Code
All All
: P2 (vote)
: 6.x
Assigned To: Milan Kuchtiak
Depends on:
  Show dependency treegraph
Reported: 2009-04-22 11:56 UTC by Jaroslav Pospisil
Modified: 2009-05-06 12:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT


Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2009-04-22 11:56:17 UTC
Beta 200904200001,Win Vista,JDK1.6.0_13

Start with new userdir and create Maven Web Application.Create new Web Service,add defaulr operation and Run project.
Select Glassfish v2,when prompted for deployment server. There's IAE in Glassfish v2 log and project is not deployed.
 Glassfish log:
Application server startup complete.
wsdl file WEB-INF/wsdl/wscoor.wsdl does not exist for web service Coordinator
Exception occured in J2EEC Phasejava.lang.RuntimeException: wsdl file WEB-INF/wsdl/wscoor.wsdl does not exist for web
service Coordinator
com.sun.enterprise.deployment.backend.IASDeploymentException: Error loading deployment descriptors for module
[mavenproject5] -- wsdl file WEB-INF/wsdl/wscoor.wsdl does not exist for web service Coordinator
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(
        at com.sun.enterprise.deployment.backend.ModuleDeployer.loadDescriptors(
        at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(
        at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(
        at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(
        at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
        at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(
Caused by: java.lang.RuntimeException: wsdl file WEB-INF/wsdl/wscoor.wsdl does not exist for web service Coordinator
        at com.sun.enterprise.deployment.util.ModuleContentValidator.accept(
        at com.sun.enterprise.deployment.WebBundleDescriptor.visit(
        at com.sun.enterprise.deployment.archivist.WebArchivist.postOpen(
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(
        at com.sun.enterprise.deployment.archivist.ApplicationArchivist.openArchive(
        at com.sun.enterprise.deployment.backend.Deployer.loadDescriptors(
        ... 10 more

IDE Log:

Warning: use of system property netbeans.home in org.netbeans.modules.project.libraries.LibrariesStorage has been
obsoleted in favor of InstalledFileLocator
INFO [org.netbeans.modules.websvc.core.WSStackUtils]: Failed to find J2eePlatform
org.netbeans.modules.j2ee.deployment.devmodules.api.InstanceRemovedException: DEV-NULL
        at org.netbeans.modules.j2ee.deployment.devmodules.api.ServerInstance.getJ2eePlatform(
[catch] at org.netbeans.modules.websvc.core.WSStackUtils.getJ2eePlatform(
        at org.netbeans.modules.websvc.core.WSStackUtils.<init>(
        at org.openide.loaders.TemplateWizardIterImpl.setIterator(
        at org.openide.loaders.TemplateWizardIteratorWrapper.setIterator(
        at org.openide.loaders.TemplateWizard.setTemplateImpl(
        at org.openide.loaders.TemplateWizard.setTemplate(
        at org.openide.loaders.TemplateWizard.instantiateImpl(
        at org.openide.loaders.TemplateWizard.instantiate(
        at org.netbeans.modules.project.ui.actions.NewFile.doPerform(
        at org.netbeans.modules.project.ui.actions.NewFile.access$200(
        at org.netbeans.modules.project.ui.actions.NewFile$PopupListener.actionPerformed(
        at javax.swing.AbstractButton.fireActionPerformed(
        at javax.swing.AbstractButton$Handler.actionPerformed(
        at javax.swing.DefaultButtonModel.fireActionPerformed(
        at javax.swing.DefaultButtonModel.setPressed(
        at javax.swing.AbstractButton.doClick(
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
        at java.awt.Component.processMouseEvent(
        at javax.swing.JComponent.processMouseEvent(
        at java.awt.Component.processEvent(
        at java.awt.Container.processEvent(
        at java.awt.Component.dispatchEventImpl(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.LightweightDispatcher.retargetMouseEvent(
        at java.awt.LightweightDispatcher.processMouseEvent(
        at java.awt.LightweightDispatcher.dispatchEvent(
        at java.awt.Container.dispatchEventImpl(
        at java.awt.Window.dispatchEventImpl(
        at java.awt.Component.dispatchEvent(
        at java.awt.EventQueue.dispatchEvent(
        at org.netbeans.core.TimableEventQueue.dispatchEvent(
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
        at java.awt.EventDispatchThread.pumpEventsForFilter(
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
        at java.awt.EventDispatchThread.pumpEvents(
        at java.awt.EventDispatchThread.pumpEvents(
INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: GlassFish v2.1
INFO [org.netbeans.lib.profiler.infolog]: >>> Profiler agent [port=0, id=-111]: STATE_INACTIVE
INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: GlassFish v2.1
INFO [org.netbeans.modules.j2ee.deployment.impl.TargetServer]: Cannot incrementally deploy to more than one target
INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: GlassFish v2.1
INFO [org.netbeans.modules.j2ee.deployment.impl.ServerInstance]: DebuggerInfo cannot be found for: Apache Tomcat 6.0.18
WARNING [org.netbeans.modules.parsing.impl.TaskProcessor]: ParserManager.parse called in AWT event thread by:
Comment 1 Jaroslav Pospisil 2009-04-22 12:00:58 UTC
Notice: Problem is reproducible only with Maven web application - Ant web application works fine.
Comment 2 Jaroslav Pospisil 2009-04-22 12:06:30 UTC
Notice: Problem is related with "temporary selected server" case. If I select server in Properties/Run before deploying
the project,it proceeds OK. 
Comment 3 Jaroslav Pospisil 2009-04-22 12:22:13 UTC
Since there's known workaround and there's little hope we can fix this for Beta,I'm decreasing priority to P2. I must
suggest however,to add this to Beta Release notes.
Comment 4 Jaroslav Pospisil 2009-04-22 12:38:11 UTC
Text I suggest to add to Release Notes:
"When deploying Web Service in Maven Web Application, make sure that deployment server is selected. You can select it in
Project Properties/Run tab. Otherwise deployment will fail because of issue 163371."
Comment 5 Milan Kuchtiak 2009-04-24 08:21:50 UTC
Problem is in dependency scope: default.
Though, the dependency scope is changed to "provided", just after server is selected, the changes are not propagated to
build directory(war file).

I'll change the default dependency scope to provided. This will solve the GlassFish case. For Tomcat case:
- either print some warning message, e.g. "Build your project again in order to react on changes in pom file"
- or mention the issue in release notes only (for Tomcat server) 
Comment 6 Milan Kuchtiak 2009-04-24 12:48:15 UTC

- Metro1.4  dependency is added with "provided" scope (this fixes the GlassFish case)
- warning message is printed, asking user to rebuild the project, when server is changed (e.g. from GlassFish to Tomcat) 

Comment 7 Quality Engineering 2009-04-25 07:31:56 UTC
Integrated into 'main-golden', will be available in build *200904250201* on (upload may still be in progress)
Log: #163371: add Metro1.4 library dep. with PROVIDED scope, print warning when server is changed
Comment 8 Jaroslav Pospisil 2009-05-06 12:03:49 UTC

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2014, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo