users@glassfish.java.net

Re: help Glassfish v3

From: Felipe Gaścho <fgaucho_at_gmail.com>
Date: Sat, 10 Oct 2009 13:48:04 +0200

I solved my problem through disambiguation.. I isolated the EJB
interface in a unique package, then GF stopped to bother me about
it.....

On Sat, Oct 10, 2009 at 1:46 PM, Eve Pokua <gorgeous65_at_msn.com> wrote:
> 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
>>
>
> ________________________________
> Have more than one Hotmail account? Link them together to easily access
> both.



-- 
Looking for a client application for this service:
http://fgaucho.dyndns.org:8080/arena-http/wadl