users@glassfish.java.net

Re: Seam Support In Glassfish

From: digi_pixel <napperley_at_gmail.com>
Date: Thu, 17 Jan 2008 17:50:34 -0800 (PST)

For web.xml the Servlet 2.5 specification is being used. I have used the
following to register the EJB:

<ejb-local-ref>
        <ejb-ref-name>RegisterAction</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <local-home>beans.Register</local-home>
</ejb-local-ref>


But have ended up with this message in the server log (including the error
messages mentioned in the previous post):

"DPL8017: Ejb-ref type mismatch for ejb reference RegisterAction. Reference
declares type beans.Register but target ejb RegisterAction has Local Home
interface of type null."




Dies wrote:
>
> Could it be that your web.xml is declared using the Servlet 2.4
> specification (instead of 2.5) and you are trying to look up a EJB 3.0
> bean that has no local home interface?
>
> There should be plenty of examples of how to use ejb-ref and
> ejb-local-ref in the EJB specifications. The way to specify them in
> web.xml is the same as in ejb-jar.xml.
>
> Once you understand these tags, you can refer to the following FAQ to
> check what to do if you have multiple business interfaces or other
> less-straightforward cases.
> https://glassfish.dev.java.net/javaee5/ejb/EJB_FAQ.html
>

-- 
View this message in context: http://www.nabble.com/Seam-Support-In-Glassfish-tp14934510p14943748.html
Sent from the java.net - glassfish users mailing list archive at Nabble.com.