users@glassfish.java.net

Re: ejbs could not be lookup after upgrade from glassfish 3.0.1 to glassfish 3.1.2-23

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Wed, 11 Jul 2012 12:52:35 +0530

It should have worked. We have all the OSGi/EE functionality very well
tested on GlassFish 3.1.2 on both Equinox & Felix. What appears to me is
that deployment backend didn't deploy the EJBs.

Can you connect to glassfish osgi using telnet localhost 6666 and list
status of all bundles and send the output? To start the telnet shell,
you need to change glassfish.osgi.start.level.final to 3 in
glassfish/config/osgi.properties and restart glassfish. Can you change
log level of javax.enterprise.system.tools.deployment to FINER in
domain1/config/logging.properties and see if you see any additional
information in server.log. You may like to attach server.log as well.

Can you reproduce the problem and send a test case? If not, can you send
the MANIFEST.MF as well as listing of entries of your bundle?

Thanks,
Sahoo

On Friday 06 July 2012 11:46 PM, Juliet Zheng wrote:
>
> Hi,
>
> I have my osgi bundle installed to
> <glassfish_folder>/domains/mydomain/autodeploy/bundles, and the
> GlassfishPlatform is set to Equinox, which works fine with glassfish
> 3.0.1, and I could lookup the ejbs in the bundle with syntax
> ic.lookup(claxx.getName() + "#" + claxx.getName()) from client bundle.
> But with glassfish 3.1.2 full profile, I got lookup failed (Name not
> found exception) from client bundle, and initialcontext.list(“”)
> recursively or asadmin list-jndi-entries got no name bind related with
> the ejbs, though I could see the ejb class was loaded with debug.
>
> Here is the structure my bundle organized, ejbs are packaged in jar
> files in WEB-INF/lib/:
>
> server.jar
>
> -index.html
>
> -META-INF
>
> -MANIFEST.MF
>
> -WEB-INF
>
> -lib
>
> -ejb.jar
>
> The bundle are in active state from osgi console, and no particular
> error/info related loading/register ejb in server.log, I could see the
> bundle was deployed in server.log with
>
> [#|2012-07-06T11:21:12.562-0600|INFO|glassfish3.1.2|org.glassfish.osgiweb|_ThreadID=13;_ThreadName=Thread-3;|Registered
> ServletContext as a service with properties:
> {osgi.web.symbolicname=com.xxx.server,
> osgi.web.version=3.3.0.SNAPSHOT, osgi.web.contextpath=/selector} |#]
>
> [#|2012-07-06T11:21:12.562-0600|INFO|glassfish3.1.2|org.glassfish.osgijavaeebase|_ThreadID=13;_ThreadName=Thread-3;|deployed
> bundle server_3.3.0.SNAPSHOT [258] at
> file:/C:/tmp/server/osgiapp5274116203788297859/|#]
>
> I’d like to know what change in glassfish 3.1.2 caused the problem,
> and how to fix it. Any help are appreciated.
>
> Thanks,
>
> Juliet
>