Plugins - GenericBundleActivator not found by Osgi View Tool

26 views
Skip to first unread message

Jerico Flor

unread,
Mar 5, 2015, 9:56:50 PM3/5/15
to dot...@googlegroups.com

Hi Guys,

I encountered the following error when I upload my viewtool plugins (OSGI):

Caused by: java.lang.ClassNotFoundException: GenericBundleActivator not found by Osgi View Tool [7]
    at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
    at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
    at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    ... 17 more


Thanks.

Nathan Keiter

unread,
Mar 5, 2015, 10:09:37 PM3/5/15
to dot...@googlegroups.com
How are you building? Gradle? Ant?

Seems like an issue in your build.gradle or Manifest.mf I think.

Nathan

Nathan I. Keiter
Lead Network Applications Programmer
DataSystems
Gettysburg College
Campus Box 2453
717-337-6993

Measure your success by the level of service you provide.
Si hoc legere scis nimium eruditionis habes.
--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
To post to this group, send email to dot...@googlegroups.com<mailto:dot...@googlegroups.com>.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

Jerico Flor

unread,
Mar 5, 2015, 10:17:10 PM3/5/15
to dot...@googlegroups.com
I export jar from eclipse. Heres my MF:


Manifest-Version: 1.0
Bundle-Name: Osgi View Tool
Bundle-Activator: com.dotmarketing.osgi.viewtools.Activator
Bundle-SymbolicName: Osgi View Tool
Bundle-Version: 1.0.0
Bundle-RequiredExecutionEnvironment: OSGi/Minimum-1.0
Import-Package: com.dotmarketing.osgi,
org.apache.velocity.tools,
org.apache.velocity.tools.view,
org.apache.velocity.tools.view.tools
Provide-Package: com.dotmarketing.osgi.viewtools
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com<mailto:dotcms+unsub...@googlegroups.com>.

Jerico Flor

unread,
Mar 5, 2015, 10:20:52 PM3/5/15
to dot...@googlegroups.com
When I use gradle from /osgi examples I encounter the following:

Downloading http://services.gradle.org/distributions/gradle-1.8-bin.zip

Exception in thread "main" java.lang.RuntimeException: java.net.ConnectException
: Connection timed out: connect
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:78)
        at org.gradle.wrapper.Install.createDist(Install.java:44)
        at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
        at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:58)
Caused by: java.net.ConnectException: Connection timed out: connect
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(Unknown Source)
        at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
        at java.net.PlainSocketImpl.connect(Unknown Source)
        at java.net.SocksSocketImpl.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at java.net.Socket.connect(Unknown Source)
        at sun.net.NetworkClient.doConnect(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.openServer(Unknown Source)
        at sun.net.www.http.HttpClient.<init>(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.http.HttpClient.New(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown
Source)
        at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Sour
ce)
        at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)
        at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
urce)
        at org.gradle.wrapper.Download.downloadInternal(Download.java:56)
        at org.gradle.wrapper.Download.download(Download.java:42)
        at org.gradle.wrapper.Install$1.call(Install.java:57)
        at org.gradle.wrapper.Install$1.call(Install.java:44)
        at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAcc
essManager.java:65)
        ... 3 more


On Friday, 6 March 2015 10:09:37 UTC+7, Nathan Keiter wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com<mailto:dotcms+unsub...@googlegroups.com>.

Nathan Keiter

unread,
Mar 6, 2015, 1:38:07 AM3/6/15
to dot...@googlegroups.com
Ok, couple tips.

1. Don't export the jar from eclipse. Build from command line.
2. It looks like the gradle wrapper is timing out trying to download the gradle source. Alternatively you could just install Gradle locally and then run "gradle jar" in the context of the plugin folder. Keep in mind if you do, you may need to modify the build.gradle file version notation if you install a different version of Gradle than 1.8.
From: Jerico Flor <flor.j...@gmail.com<javascript:><mailto:flor.j...@gmail.com<javascript:>>>
Reply-To: "dot...@googlegroups.com<javascript:><mailto:dot...@googlegroups.com<javascript:>>" <dot...@googlegroups.com<javascript:><mailto:dot...@googlegroups.com<javascript:>>>
Date: Thursday, March 5, 2015 9:56 PM
To: "dot...@googlegroups.com<javascript:><mailto:dot...@googlegroups.com<javascript:>>" <dot...@googlegroups.com<javascript:><mailto:dot...@googlegroups.com<javascript:>>>
Subject: [dotcms] Plugins - GenericBundleActivator not found by Osgi View Tool


Hi Guys,

I encountered the following error when I upload my viewtool plugins (OSGI):

Caused by: java.lang.ClassNotFoundException: GenericBundleActivator not found by Osgi View Tool [7]
at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl.findClassOrResourceByDelegation(BundleWiringImpl.java:1532)
at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl.access$400(BundleWiringImpl.java:75)
at com.dotcms.repackage.org.apache.felix.framework.BundleWiringImpl$BundleClassLoader.loadClass(BundleWiringImpl.java:1955)
at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
... 17 more


Thanks.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com<javascript:><mailto:dotcms+un...@googlegroups.com<javascript:>>.
To post to this group, send email to dot...@googlegroups.com<javascript:><mailto:dot...@googlegroups.com<javascript:>>.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com<mailto:dotcms+un...@googlegroups.com>.
Reply all
Reply to author
Forward
0 new messages