users@glassfish.java.net

Re: how to inject session bean into servlet using _at_EJB

From: <glassfish_at_javadesktop.org>
Date: Wed, 13 Feb 2008 09:01:39 PST

Hi,

Your web.xml is of version 2.4. It needs to be 2.5 to be able to use annotations.

<web-app id="WebApp_ID" version="2.4"
        xmlns="http://java.sun.com/xml/ns/j2ee"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

See similar discussions:
http://forums.java.net/jive/thread.jspa?messageID=250332&#250332

-cheng
[Message sent by forum member 'cf126330' (cf126330)]

http://forums.java.net/jive/thread.jspa?messageID=258770