Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » is OSGi comparable with iBATIS SQLMAP 2
is OSGi comparable with iBATIS SQLMAP 2 [message #78903] Wed, 13 December 2006 07:11 Go to next message
Eclipse UserFriend
Originally posted by: godman_polly.yahoo.com

I am going to export a service which is implemented with ibatis sqlmap and
mysql. When I start the service, the got the following error.

org.osgi.framework.BundleException: Exception in
example.util.Activator.start() of bundle person.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:1010)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
xtImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
..java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
meworkCommandProvider.java:239)
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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
kConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
le.java:213)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
com/ibatis/sqlmap/client/SqlMapClient
at example.util.Activator.start(Activator.java:20)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
xtImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:985)
... 13 more
Nested Exception:
java.lang.NoClassDefFoundError: com/ibatis/sqlmap/client/SqlMapClient
at example.util.Activator.start(Activator.java:20)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
xtImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
xtImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
..java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
meworkCommandProvider.java:239)
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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
kConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
le.java:213)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.lang.NoClassDefFoundError: com/ibatis/sqlmap/client/SqlMapClient
at example.util.Activator.start(Activator.java:20)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
xtImpl.java:991)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
ndleContextImpl.java:985)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
xtImpl.java:966)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
ava:317)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
..java:256)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
meworkCommandProvider.java:239)
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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
(FrameworkCommandInterpreter.java:145)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
kConsole.java:293)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
onsole.java:278)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
le.java:213)
at java.lang.Thread.run(Unknown Source)

I think the OSGi framework cannot find
com/ibatis/sqlmap/client/SqlMapClient. The jar files and ibatis and
mysql-connector are put in a folder lib. I have not done anything on it in
the MANIFEST.MF.
Could any one help me to solve this problem? Many thanks.

godman
Re: is OSGi comparable with iBATIS SQLMAP 2 [message #78912 is a reply to message #78903] Wed, 13 December 2006 09:26 Go to previous message
Eclipse UserFriend
Originally posted by: godman_polly.yahoo.com

The problem is solved. Many thanks.

"Godman" <godman_polly@yahoo.com> wrote in message
news:elo94j$tos$1@utils.eclipse.org...
> I am going to export a service which is implemented with ibatis sqlmap and
> mysql. When I start the service, the got the following error.
>
> org.osgi.framework.BundleException: Exception in
> example.util.Activator.start() of bundle person.
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:1010)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:966)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:317)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:256)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
> meworkCommandProvider.java:239)
> 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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
> (FrameworkCommandInterpreter.java:145)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
> kConsole.java:293)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:278)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
> le.java:213)
> at java.lang.Thread.run(Unknown Source)
> Caused by: java.lang.NoClassDefFoundError:
> com/ibatis/sqlmap/client/SqlMapClient
> at example.util.Activator.start(Activator.java:20)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
> xtImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:985)
> ... 13 more
> Nested Exception:
> java.lang.NoClassDefFoundError: com/ibatis/sqlmap/client/SqlMapClient
> at example.util.Activator.start(Activator.java:20)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
> xtImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:985)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:966)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:317)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:256)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
> meworkCommandProvider.java:239)
> 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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
> (FrameworkCommandInterpreter.java:145)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
> kConsole.java:293)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:278)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
> le.java:213)
> at java.lang.Thread.run(Unknown Source)
> Nested Exception:
> java.lang.NoClassDefFoundError: com/ibatis/sqlmap/client/SqlMapClient
> at example.util.Activator.start(Activator.java:20)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleConte
> xtImpl.java:991)
> at java.security.AccessController.doPrivileged(Native Method)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(Bu
> ndleContextImpl.java:985)
> at
>
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleConte
> xtImpl.java:966)
> at
>
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.j
> ava:317)
> at
>
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle
> .java:256)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._start(Fra
> meworkCommandProvider.java:239)
> 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.eclipse.osgi.framework.internal.core.FrameworkCommandInt erpreter.execute
> (FrameworkCommandInterpreter.java:145)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(Framewor
> kConsole.java:293)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(FrameworkC
> onsole.java:278)
> at
>
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(FrameworkConso
> le.java:213)
> at java.lang.Thread.run(Unknown Source)
>
> I think the OSGi framework cannot find
> com/ibatis/sqlmap/client/SqlMapClient. The jar files and ibatis and
> mysql-connector are put in a folder lib. I have not done anything on it in
> the MANIFEST.MF.
> Could any one help me to solve this problem? Many thanks.
>
> godman
>
>
>
Previous Topic:Is Orbit an OBR?
Next Topic:How to open the Equinox sample web page
Goto Forum:
  


Current Time: Sat Dec 20 16:02:56 GMT 2014

Powered by FUDForum. Page generated in 0.01878 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software