Hi,
My application is an injection as well but I don't supply the @EJB with any
name.-
@EJB
private Remoteinterface remoteinterface;
...
Unless you want to use both injections and lookups.
I find lookups a little hard work to maintain especially when you have to
open files from one server to another.
eve
> Date: Sat, 10 Oct 2009 11:33:16 +0200
> From: fgaucho_at_gmail.com
> To: users_at_glassfish.dev.java.net
> Subject: Re: help Glassfish v3
>
> it seems the lookup changed a bit in Java EE 6 with the "global JNDI name"
>
> I am just looking a way of injecting the EJB3.0 instead of looking up..
>
> and I must figure out what is the exact name of my bean ...
>
>
> On Sat, Oct 10, 2009 at 11:25 AM, Eve Pokua <gorgeous65_at_msn.com> wrote:
> > Hi,
> >
> > I had similar error too using v3 . I'm afrid Im back to v2.x till it's fix.
> >
> > eve
> >
> >> Date: Sat, 10 Oct 2009 11:20:53 +0200
> >> From: fgaucho_at_gmail.com
> >> To: users_at_glassfish.dev.java.net
> >> Subject: help Glassfish v3
> >>
> >> My old Java EE 5 application is struggling to get alive in the new
> >> Glassfish V3b66 server,
> >>
> >> it seems my EJB interface is found twice in the classpath, but I have
> >> only 1 EJB implementing the @Remote interface.
> >>
> >> Since this EJB is in the application model, it is reused in the other
> >> modules, maybe this is the problem..
> >>
> >> so, what I am doing:
> >>
> >> creating a stateless EJB @Remote ...
> >> referencing this EJB in several modules of my Maven multi-module
> >> application.
> >>
> >> if I deploy the application in GF v2.1, it works fine
> >> if I deploy the same code in GF v3, it crashes due to the following
> >> exception:
> >>
> >>
> >>
> >> [#|2009-10-10T11:13:01.891+0200|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=41;_ThreadName=Thread-3;|Exception
> >> while deploying the app
> >> java.lang.RuntimeException: Cannot resolve reference Remote ejb-ref
> >>
> >> name=com.kenai.puj.arena.model.entity.facade.impl.PujUserFacadeImpl/urlObfuscator,Remote
> >> 3.x interface
> >> =com.kenai.puj.arena.model.entity.utils.URLObfuscator,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session
> >> because there are 2 ejbs in the application with interface
> >> com.kenai.puj.arena.model.entity.utils.URLObfuscator
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> >> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >>
> >
> > ________________________________
> > View your other email accounts from your Hotmail inbox. Add them now.
>
>
>
> --
> Looking for a client application for this service:
> http://fgaucho.dyndns.org:8080/arena-http/wadl
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
_________________________________________________________________
Save time by using Hotmail to access your other email accounts.
http://clk.atdmt.com/UKM/go/167688463/direct/01/
--_2ee0844c-97fa-4526-b8a2-ae7315e09aab_
Content-Type: text/html; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi,<BR>
<BR>
My application is an injection as well but I don't supply the @EJB with any<BR>
name.-<BR>
<BR>
@EJB<BR>
private Remoteinterface remoteinterface;<BR>
<BR>
<BR>
...<BR>
<BR>
Unless you want to use both injections and lookups.<BR>
<BR>
I find lookups a little hard work to maintain especially when you have to<BR>
open files from one server to another.<BR>
<BR>
eve<BR><BR>> Date: Sat, 10 Oct 2009 11:33:16 +0200<BR>> From: fgaucho@gmail.com<BR>> To: users@glassfish.dev.java.net<BR>> Subject: Re: help Glassfish v3<BR>> <BR>> it seems the lookup changed a bit in Java EE 6 with the "global JNDI name"<BR>> <BR>> I am just looking a way of injecting the EJB3.0 instead of looking up..<BR>> <BR>> and I must figure out what is the exact name of my bean ...<BR>> <BR>> <BR>> On Sat, Oct 10, 2009 at 11:25 AM, Eve Pokua <gorgeous65@msn.com> wrote:<BR>> > Hi,<BR>> ><BR>> > I had similar error too using v3 . I'm afrid Im back to v2.x till it's fix.<BR>> ><BR>> > eve<BR>> ><BR>> >> Date: Sat, 10 Oct 2009 11:20:53 +0200<BR>> >> From: fgaucho@gmail.com<BR>> >> To: users@glassfish.dev.java.net<BR>> >> Subject: help Glassfish v3<BR>> >><BR>> >> My old Java EE 5 application is struggling to get alive in the new<BR>> >> Glassfish V3b66 server,<BR>> >><BR>> >> it seems my EJB interface is found twice in the classpath, but I have<BR>> >> only 1 EJB implementing the @Remote interface.<BR>> >><BR>> >> Since this EJB is in the application model, it is reused in the other<BR>> >> modules, maybe this is the problem..<BR>> >><BR>> >> so, what I am doing:<BR>> >><BR>> >> creating a stateless EJB @Remote ...<BR>> >> referencing this EJB in several modules of my Maven multi-module<BR>> >> application.<BR>> >><BR>> >> if I deploy the application in GF v2.1, it works fine<BR>> >> if I deploy the same code in GF v3, it crashes due to the following<BR>> >> exception:<BR>> >><BR>> >><BR>> >><BR>> >> [#|2009-10-10T11:13:01.891+0200|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_ThreadID=41;_ThreadName=Thread-3;|Exception<BR>> >> while deploying the app<BR>> >> java.lang.RuntimeException: Cannot resolve reference Remote ejb-ref<BR>> >><BR>> >> name=com.kenai.puj.arena.model.entity.facade.impl.PujUserFacadeImpl/urlObfuscator,Remote<BR>> >> 3.x interface<BR>> >> =com.kenai.puj.arena.model.entity.utils.URLObfuscator,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session<BR>> >> because there are 2 ejbs in the application with interface<BR>> >> com.kenai.puj.arena.model.entity.utils.URLObfuscator<BR>> >><BR>> >> ---------------------------------------------------------------------<BR>> >> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> >> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> >><BR>> ><BR>> > ________________________________<BR>> > View your other email accounts from your Hotmail inbox. Add them now.<BR>> <BR>> <BR>> <BR>> -- <BR>> Looking for a client application for this service:<BR>>
http://fgaucho.dyndns.org:8080/arena-http/wadl<BR>> <BR>> ---------------------------------------------------------------------<BR>> To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>> For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>> <BR> <br /><hr />Have more than one Hotmail account? <a href='
http://clk.atdmt.com/UKM/go/167688463/direct/01/' target='_new'>Link them together to easily access both.</a></body>
</html>
--_2ee0844c-97fa-4526-b8a2-ae7315e09aab_--