Skip to main content

Error deploying web service in war

No replies
bsvorinic
Offline
Joined: 2011-06-03
Points: 0

Hi everyone,

hope this is the right place to ask this question, if not - forgive me please...

I'm new to GlassFish (and Java). I have built a web service from WSDL using JDeveloper. I tested it succesfully in JDeveloper's embeded WebLogic server. Then I wanted to see what are my options for deploying my web service to production and decided to give GlassFish a try. I installed it on my Windows XP machine and tried to deploy my web service. These are the errors from server.log:

[#|2011-06-03T13:54:14.234+0200|SEVERE|glassfish3.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=82;_ThreadName=Thread-1;|wsdl file /WEB-INF/wsdl/VegaService.wsdl for web service VegaService must be packaged in or below WEB-INF/wsdl|#]

[#|2011-06-03T13:54:14.234+0200|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=82;_ThreadName=Thread-1;|Exception while deploying the app [VegaService]|#]

[#|2011-06-03T13:54:14.234+0200|SEVERE|glassfish3.1|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=82;_ThreadName=Thread-1;|wsdl file /WEB-INF/wsdl/VegaService.wsdl for web service VegaService must be packaged in or below WEB-INF/wsdl
java.lang.RuntimeException: wsdl file /WEB-INF/wsdl/VegaService.wsdl for web service VegaService must be packaged in or below WEB-INF/wsdl
at com.sun.enterprise.deployment.util.ModuleContentValidator.accept(ModuleContentValidator.java:178)
at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1999)
at com.sun.enterprise.deployment.archivist.WebArchivist.postOpen(WebArchivist.java:284)
at com.sun.enterprise.deployment.archivist.WebArchivist.postOpen(WebArchivist.java:89)
at com.sun.enterprise.deployment.archivist.Archivist.openWith(Archivist.java:269)
at com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:240)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:170)
at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:93)
at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:826)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:768)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:355)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:465)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:222)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:168)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:117)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:234)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:822)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:719)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1013)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:225)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:513)
at java.lang.Thread.run(Thread.java:662)
|#]

[#|2011-06-03T13:54:14.234+0200|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=82;_ThreadName=Thread-1;|Exception while deploying the app [VegaService] : wsdl file /WEB-INF/wsdl/VegaService.wsdl for web service VegaService must be packaged in or below WEB-INF/wsdl|#]

I checked my war file and I can see that inside it I do have WEB_INF as the first (root) directory and below it I have wsdl directory with VegaService.wsdl file that is mentioned. I tried both web administration tool and asadmin command line tool with same results.

Thanks in advance,

Bruno