users@glassfish.java.net

RE: help Glassfish v3

From: Eve Pokua <gorgeous65_at_msn.com>
Date: Sat, 10 Oct 2009 12:46:40 +0100

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>
&nbsp;<BR>
My application is an injection as well but I don't supply the @EJB with any<BR>
name.-<BR>
&nbsp;<BR>
@EJB<BR>
private Remoteinterface remoteinterface;<BR>
&nbsp;<BR>
&nbsp;<BR>
...<BR>
&nbsp;<BR>
Unless you want to use both injections and lookups.<BR>
&nbsp;<BR>
I find lookups a little hard work to maintain especially when you have to<BR>
open files from one server to another.<BR>
&nbsp;<BR>
eve<BR><BR>&gt; Date: Sat, 10 Oct 2009 11:33:16 +0200<BR>&gt; From: fgaucho@gmail.com<BR>&gt; To: users@glassfish.dev.java.net<BR>&gt; Subject: Re: help Glassfish v3<BR>&gt; <BR>&gt; it seems the lookup changed a bit in Java EE 6 with the "global JNDI name"<BR>&gt; <BR>&gt; I am just looking a way of injecting the EJB3.0 instead of looking up..<BR>&gt; <BR>&gt; and I must figure out what is the exact name of my bean ...<BR>&gt; <BR>&gt; <BR>&gt; On Sat, Oct 10, 2009 at 11:25 AM, Eve Pokua &lt;gorgeous65@msn.com&gt; wrote:<BR>&gt; &gt; Hi,<BR>&gt; &gt;<BR>&gt; &gt; I had similar error too using v3 .&nbsp; I'm afrid Im back to v2.x till&nbsp;it's fix.<BR>&gt; &gt;<BR>&gt; &gt; eve<BR>&gt; &gt;<BR>&gt; &gt;&gt; Date: Sat, 10 Oct 2009 11:20:53 +0200<BR>&gt; &gt;&gt; From: fgaucho@gmail.com<BR>&gt; &gt;&gt; To: users@glassfish.dev.java.net<BR>&gt; &gt;&gt; Subject: help Glassfish v3<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; My old Java EE 5 application is struggling to get alive in the new<BR>&gt; &gt;&gt; Glassfish V3b66 server,<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; it seems my EJB interface is found twice in the classpath, but I have<BR>&gt; &gt;&gt; only 1 EJB implementing the @Remote interface.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; Since this EJB is in the application model, it is reused in the other<BR>&gt; &gt;&gt; modules, maybe this is the problem..<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; so, what I am doing:<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; creating a stateless EJB @Remote ...<BR>&gt; &gt;&gt; referencing this EJB in several modules of my Maven multi-module<BR>&gt; &gt;&gt; application.<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; if I deploy the application in GF v2.1, it works fine<BR>&gt; &gt;&gt; if I deploy the same code in GF v3, it crashes due to the following<BR>&gt; &gt;&gt; exception:<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; [#|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>&gt; &gt;&gt; while deploying the app<BR>&gt; &gt;&gt; java.lang.RuntimeException: Cannot resolve reference Remote ejb-ref<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; name=com.kenai.puj.arena.model.entity.facade.impl.PujUserFacadeImpl/urlObfuscator,Remote<BR>&gt; &gt;&gt; 3.x interface<BR>&gt; &gt;&gt; =com.kenai.puj.arena.model.entity.utils.URLObfuscator,ejb-link=null,lookup=null,mappedName=,jndi-name=,refType=Session<BR>&gt; &gt;&gt; because there are 2 ejbs in the application with interface<BR>&gt; &gt;&gt; com.kenai.puj.arena.model.entity.utils.URLObfuscator<BR>&gt; &gt;&gt;<BR>&gt; &gt;&gt; ---------------------------------------------------------------------<BR>&gt; &gt;&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; &gt;&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; &gt;&gt;<BR>&gt; &gt;<BR>&gt; &gt; ________________________________<BR>&gt; &gt; View your other email accounts from your Hotmail inbox. Add them now.<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; -- <BR>&gt; Looking for a client application for this service:<BR>&gt; http://fgaucho.dyndns.org:8080/arena-http/wadl<BR>&gt; <BR>&gt; ---------------------------------------------------------------------<BR>&gt; To unsubscribe, e-mail: users-unsubscribe@glassfish.dev.java.net<BR>&gt; For additional commands, e-mail: users-help@glassfish.dev.java.net<BR>&gt; <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_--