dev@glassfish.java.net

Re: WS deployment problem with web.xml

From: vince kraemer <Vince.Kraemer_at_Sun.COM>
Date: Wed, 23 Aug 2006 11:58:05 -0700

Vijay Ramachandran wrote:
> Posting my earlier response again - sorry for the duplicates, if any :
>
> -------------
>
> 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.
>

When you file the bug, could you also mark it as a blocker for issue 986.

Thanks,
vbk
> 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
>
>