cancel
Showing results for 
Search instead for 
Did you mean: 

Classnotfoundexception on generating Mobile Business Object

Former Member
0 Kudos

Hi,

I try to generate MBO (SUP 2.1) based on Oracle table, but when I drag one table to mobile application diagram, I always get the following error: 

An internal error occurred during: "Generate Mobile Business Object". java.lang.RuntimeException: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

I already set the classpath for the Oracle ojdbc jar in jdbc driver definition and connection to Oracle is ok. I think, the Eclispe plugin, which generates the MBO, does not know the jar. Any ideas, how can I fix this ?

Thanks,

Thomas

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Dear Thomas,

I faced this error and i followed this link and it solved my problem

hope it helps you too

http://scn.sap.com/community/developer-center/mobility-platform/blog/2012/07/08/creating-a-oracle-da...

Best Regards,

Rana Osama

Former Member
0 Kudos

I am having exact same issue for DB2 with SUP 2.2.  I do appreciate the hack work around, but does anyone have a better solution??? 

What is interesting is I can create the Database Connection and see all the tables and even test it with the SUP SQL Scrapbook tool.  Its only when the connection is used to build an MBO that it fails with ClassNotFoundException com.ibm.db2.jcc.DB2Driver

Former Member
0 Kudos

Hi Kevin,

After updating the drivers in the for the workspace as instructed in Sybase Infocenter, open command prompt as administrator, go to <sybase installation folder>/MobileSDK<version>/Eclipse and run "UnwiredWorkSpace.bat -clean".

I was having the same issue for Oracle until I did the above.

Regards,

Roy

Former Member
0 Kudos

Thank you for helpful reply Roy and I did that did work along with some additional small refinement to the manifest.mf file.

Former Member
0 Kudos

I found a dirty hack, which could solve the problem, I patched C:\Sybase\UnwiredPlatform\Unwired_WorkSpace\Eclipse\sybase_workspace\mobile\eclipse\plugins\com.sybase.uep.tooling.api_2.1.0.201109131337\lib\sup-ds.jar and and added the complete Oracle driver classes to this jar.

Maybe someone can find a better solution.