Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Access EJB in JBOSS from OSGI
Access EJB in JBOSS from OSGI [message #90239] Tue, 12 June 2007 03:47 Go to next message
Pedro Silva is currently offline Pedro Silva
Messages: 25
Registered: July 2009
Junior Member
Hi,


I've several bundles running in OSGI inside JBoss AS. I want want to
access an EJB, that has been deployed in JBoss, from the code in bundles.

I did the necessary project dependencies in Eclipse in order to have
the reference to EJB in the OSGI bundle. The problem is that when I
invoke the bundle and it tries to find the EJB i get this error:

osgi>
16:57:21,461 ERROR [STDERR] java.lang.Error: Unresolved compilation
problems:
The import com.test cannot be resolved
FirstEJB3 cannot be resolved to a type
FirstEJB3 cannot be resolved to a type

SO I'm thiking that the bundle does not have access to the packages in
the JBoss Classloader. I've already tried to change the launch.ini
settings like this:

osgi.contextClassLoaderParent = ccl in order to use the JBoss
classloader but I got the same error...

Any ideas?

Thanks in advance.
Pedro Silva
Re: Access EJB in JBOSS from OSGI [message #90611 is a reply to message #90239] Wed, 13 June 2007 20:39 Go to previous message
Simon Kaegi is currently offline Simon Kaegi
Messages: 381
Registered: July 2009
Senior Member
Hi Pedro,

You can get unresolved compilation problems when you export your bundle and
things didn't get built/resolved correctly.
There's usually an error log in a zip along-side where you built your
plugins - that might help you figure out what's going on.

Can you provide a few more details on what you're doing.
Are your running under the servletbridge or trying to start equinox
standalone. What version are you running... hopefully 3.3.?

-Simon

"Pedro Silva" <psilva@dcc.online.pt> wrote in message
news:f4lj4t$g0$1@build.eclipse.org...
> Hi,
>
>
> I've several bundles running in OSGI inside JBoss AS. I want want to
> access an EJB, that has been deployed in JBoss, from the code in bundles.
>
> I did the necessary project dependencies in Eclipse in order to have
> the reference to EJB in the OSGI bundle. The problem is that when I
> invoke the bundle and it tries to find the EJB i get this error:
>
> osgi>
> 16:57:21,461 ERROR [STDERR] java.lang.Error: Unresolved compilation
> problems:
> The import com.test cannot be resolved
> FirstEJB3 cannot be resolved to a type
> FirstEJB3 cannot be resolved to a type
>
> SO I'm thiking that the bundle does not have access to the packages in
> the JBoss Classloader. I've already tried to change the launch.ini
> settings like this:
>
> osgi.contextClassLoaderParent = ccl in order to use the JBoss classloader
> but I got the same error...
>
> Any ideas?
>
> Thanks in advance.
> Pedro Silva
>
Previous Topic:Help find documentation - Export-Package: split
Next Topic:Testing bundles from the outside
Goto Forum:
  


Current Time: Sat Jul 26 11:14:11 EDT 2014

Powered by FUDForum. Page generated in 0.02008 seconds