users@glassfish.java.net

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

From: Juliet Zheng <juliet_zheng06_at_hotmail.com>
Date: Fri, 6 Jul 2012 12:16:26 -0600

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