Hi

This looks look another class used by the Activator is not available.

>From your manifest I suspect your private classes might not be packaged in the 
>bundle ?

Regards
Felix

Am 03.03.2013 um 04:53 schrieb ksenth...@gmail.com:

> Hi Team,
> 
> I have created a OSGI bundle project with the persistence support(JPA 2.0).
> I could be able to create it successfully and exported as OSGI bundle and
> installed it in felix framework.
> 
> When I start the service I am getting bellow stack trace:
> 
> *org.osgi.framework.BundleException: Not found:
> auditloggerservice.Activator*
>        at
> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4175)
>        at org.apache.felix.framework.Felix.activateBundle(Felix.java:1972)
>        at org.apache.felix.framework.Felix.startBundle(Felix.java:1895)
>        at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:944)
>        at org.apache.felix.gogo.command.Basic.start(Basic.java:729)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
>        at
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
>        at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
>        at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
>        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
>        at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>        at org.apache.felix.gogo.shell.Console.run(Console.java:62)
>        at org.apache.felix.gogo.shell.Shell.console(Shell.java:203)
>        at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128)
>        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>        at java.lang.reflect.Method.invoke(Unknown Source)
>        at
> org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137)
>        at
> org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82)
>        at
> org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
>        at
> org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
>        at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
>        at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
>        at
> org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
>        at org.apache.felix.gogo.shell.Activator.run(Activator.java:75)
>        at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.ClassNotFoundException: auditloggerservice.Activator
> not found by AuditloggerService [25]
>        at
> org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1460)
>        at
> org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:72)
>        at
> org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1843)
>        at java.lang.ClassLoader.loadClass(Unknown Source)
>        at
> org.apache.felix.framework.BundleWiringImpl.getClassByDelegation(BundleWiringImpl.java:1317)
>        at
> org.apache.felix.framework.Felix.createBundleActivator(Felix.java:4170)
>        ... 33 more
> java.lang.ClassNotFoundException: auditloggerservice.Activator not found by
> AuditloggerService [25]
> g!
> 
> 
> But I checked the bundle jar file and the Activator class is available.
> Please find bellow.
> 
> <http://apache-felix.18485.n6.nabble.com/file/n5002342/Activator.png> 
> 
> Please find my MANIFEST.MF bellow,
> 
> Manifest-Version: 1.0
> Bundle-ManifestVersion: 2
> Bundle-Name: AuditloggerService
> Bundle-SymbolicName: AuditloggerService;singleton:=true
> Bundle-Version: 1.0.0.qualifier
> Bundle-Activator: auditloggerservice.Activator
> Import-Package: org.osgi.framework
> Bundle-RequiredExecutionEnvironment: JavaSE-1.6
> Export-Package: auditloggerservice,
> com.nyl.jpa.model,
> com.nyl.jpa.sericeimpl,
> com.nyl.jpa.service,
> com.nyl.jpa.util
> Meta-Persistence: META-INF/persistence.xml
> 
> 
> Please help me to solve this issue.
> 
> 
> 
> 
> --
> View this message in context: 
> http://apache-felix.18485.n6.nabble.com/org-osgi-framework-BundleException-Class-Not-found-tp5002342.html
> Sent from the Apache Felix - Dev mailing list archive at Nabble.com.


--
Felix Meschberger | Principal Scientist | Adobe







Reply via email to