with eclipse confirm you have copied the .java files to the src element specified in .classpath e.g.
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src"/>
do you have the apache-felix-maven-bundle-plugin-bnd installed ?
for a certain-to-deploy-to-OSGI i would install apache-felix-maven-bundle-plugin-bnd and configure in the necessary params
paying attention to import-package and export-package
http://felix.apache.org/site/apache-felix-maven-bundle-plugin-bnd.html
confirm the resulting jars manifest.mf has updated package and bundle entries to those specified from configuration
starting OSGI runtime: follow dominiks directions and sahoos directions at
http://weblogs.java.net/blog/2008/04/15/glassfish-v3-osgi-part-i
Martin Gainty
______________________________________________
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le destinataire prévu, nous te demandons avec bonté que pour satisfaire informez l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est interdite. Ce message sert à l'information seulement et n'aura pas n'importe quel effet légalement obligatoire. Étant donné que les email peuvent facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni.
> From: dominik.dorn_at_gmail.com
> Date: Sun, 12 Sep 2010 14:56:43 +0200
> To: users_at_glassfish.dev.java.net
> Subject: Re: Glassfish, OSGi and Eclipse
>
> Have you tried simply deploying the osgi module as exploded archive
> using asadmin?
>
> asadmin undeploy nameOfBundle; asadmin deploy --type osgi
> path/to/bundle nameOfBundle
>
> ??
>
> with a open terminal next to your IDE that would be quite acceptable
> in _my opinion_.
>
> kind regards,
> dominik
>
>
> On Sun, Sep 12, 2010 at 2:49 PM, <glassfish_at_javadesktop.org> wrote:
> > Thanks Sahoo - yes, I knew about ...domain1/autodeploy/bundles from your blog, but I don't see how this fits in with either the Glassfish plugin or Eclipse PDE.
> >
> > The Glassfish plugin deploys to .../domain1/eclipseApps, and I think it only works for Dynamic Web projects (i.e. WARs).
> >
> > So I would have to set up something like an Ant script to copy my OSGi bundles to the autodeploy folder in one step, then launch Glassfish via the plugin in a second step and hope that source level debugging will work in this combination - all this is not quite as seamless as it could be.
> >
> > Doing plain old OSGi development with Eclipse PDE, there is normally no deployment at all, in the sense of JARing everything up and copying the JARs to a given place - Eclipse simply installs the class files from multiple project directories in place as exploded bundles, so there is no copying and launching your application is extremly fast.
> >
> > Essentially, I don't really mind what's going on behind the scenes as long as there is some one-button-launch mechanism for OSGi-based Java EE applications.
> >
> > Best regards,
> > Harald
> > [Message sent by forum member 'hwellmann']
> >
> > http://forums.java.net/jive/thread.jspa?messageID=482448
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> > For additional commands, e-mail: users-help_at_glassfish.dev.java.net
> >
> >
>
>
>
> --
> Dominik Dorn
> http://dominikdorn.com
> http://twitter.com/domdorn
>
> Tausche Deine Lernunterlagen auf http://www.studyguru.eu !
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>