What is the "version" of your web.xml. I think it is 2.4. Because of
this annotations are not processed and this is considered as a JAXRPC
based service and hence this exception.
Switch your web.xml to 2.5 based ones (example below) and try again.
But this error is completely misleading. Please file a bug on 9.1 and
attach this WAR that produced this error.
Here is how a Servlet2.5 based web.xml looks like:
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="
http://java.sun.com/xml/ns/javaee"
xmlns:j2ee="
http://java.sun.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
version="2.5"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
..
..
</web-app>
Vijay
On Wed, 2006-08-23 at 10:45, Oleksiy Stashok wrote:
> Hi,
>
> i have a problem when deploying WS to web container.
> If i create war file just with WS implementation class and no
> descriptors - it deploys fine.
> When i add webservices.xml description to the same war - it deploys fine.
> But once i add web.xml file to war file (even without any servlet
> definition) - get error on deployment phase(attached).
>
> Is there any restriction in 109 deployment on web.xml? I tried to find
> such there and didnt see anything about that.
>
> WBR,
> Alexey.
>
> ______________________________________________________________________
> [#|2006-08-23T19:04:27.415+0200|WARNING|sun-appserver-ee9.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_Threa
> dName=Thread-32;_RequestID=437fe598-e65e-4c96-aaff-14d4e1b43095;|DPL5035:Error while running ejbc
> com.sun.enterprise.deployment.backend.IASDeploymentException: Fatal Error from EJB Compiler -- null
> at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:252)
> at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1397)
> at com.sun.enterprise.deployment.Application.visit(Application.java:1747)
> at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:128)
> at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:840)
> at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)
> at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:413)
> at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:1220)
> at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:179)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
> at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
> at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
> at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
> at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
> |#]
>
> [#|2006-08-23T19:04:27.540+0200|SEVERE|sun-appserver-ee9.1|javax.enterprise.system.tools.deployment|_ThreadID=20;_Thread
> Name=Thread-32;_RequestID=437fe598-e65e-4c96-aaff-14d4e1b43095;|Exception occured in J2EEC Phase
> com.sun.enterprise.deployment.backend.IASDeploymentException: Error while running ejbc -- Fatal Error from EJB Compiler
> -- null
> at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.accept(JaxRpcRICodegen.java:252)
> at com.sun.enterprise.deployment.WebBundleDescriptor.visit(WebBundleDescriptor.java:1397)
> at com.sun.enterprise.deployment.Application.visit(Application.java:1747)
> at com.sun.enterprise.webservice.codegen.JaxRpcRICodegen.run(JaxRpcRICodegen.java:128)
> at com.sun.ejb.codegen.IASEJBC.doCompile(IASEJBC.java:840)
> at com.sun.ejb.codegen.IASEJBC.ejbc(IASEJBC.java:580)
> at com.sun.enterprise.deployment.backend.EJBCompiler.preDeployModule(EJBCompiler.java:413)
> at com.sun.enterprise.deployment.backend.EJBCompiler.compile(EJBCompiler.java:226)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.runEJBC(ModuleDeployer.java:1220)
> at com.sun.enterprise.deployment.backend.WebModuleDeployer.deploy(WebModuleDeployer.java:179)
> at com.sun.enterprise.deployment.backend.ModuleDeployer.doRequestFinish(ModuleDeployer.java:160)
> at com.sun.enterprise.deployment.phasing.J2EECPhase.runPhase(J2EECPhase.java:169)
> at com.sun.enterprise.deployment.phasing.DeploymentPhase.executePhase(DeploymentPhase.java:95)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.executePhases(PEDeploymentService.java:871)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:266)
> at com.sun.enterprise.deployment.phasing.PEDeploymentService.deploy(PEDeploymentService.java:739)
> at com.sun.enterprise.management.deploy.DeployThread.deploy(DeployThread.java:174)
> at com.sun.enterprise.management.deploy.DeployThread.run(DeployThread.java:210)
> |#]
>
>
> ______________________________________________________________________
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net