Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

OSB proxy service retrieving contents from AWS S3 - java.lang.NoClassDefFoundError:com/amazonaws/ser

user1327196Sep 22 2016 — edited Sep 22 2016

I've a created a proxy service in Oracle Service Bus OSB (11.1.1.7)/Weblogic(10.3.6). The proxy service need to fetch contents from AWS S3 and has a Java callout to invoke java class which fetches contents from S3. The java class is packaged in a jar file (mylib.jar). I exported the proxy, the jar file (mylib.jar) and dependent libraries (aws sdk for s3 and dependent libraries) from OEPE(eclipse modeler) in a config jar (myconfig.jar). When I try to deploy myconfig.jar in OSB using sbconsole, it gives error - (java.lang.NoClassDefFoundError:com/amazonaws/services/s3/model/S3ObjectInputStream) while importing it. The class S3ObjectInputStream is part of the aws sdk (aws-java-sdk-s3-1.11.34.jar) and is included in the deployable - myconfig.jar file. Alternatively, I tried including the jar files in the classpath of the OSB server and removing it from the myconfig.jar but it didn't help either. Any inputs are appreciated.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 20 2016
Added on Sep 22 2016
0 comments
452 views