karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jefoy1101 <jefoy1...@gmail.com>
Subject Re: deploying a war with dependencies in bundled jars
Date Mon, 12 Jan 2015 16:20:27 GMT
Hi Achim, 

I made the provider jar to be an OSGI bundle by changing the pom and have
the maven bundle plugin, build and deploy to ag_lib, same with domain

I'm seeing that I am able to call the my function in the provider.jar and
domain.jar from the logs below, but having this issue on instantiating the
AmazonS3Client

2015-01-12 09:47:57,401 | INFO  | FelixStartLevel  | HttpServiceFactoryImpl          
| 99 - org.ops4j.pax.web.pax-web-runtime - 3.1.2 | Binding bundle:
[org.ops4j.pax.web.servlet3.samples.war [199]] to http service
2015-01-12 09:47:57,438 | INFO  | pool-7-thread-1  | S3Properties                    
| 220 - adgateway-provider - 3.0.1.SNAPSHOT | Loading file from S3:
admarvel-web.properties
2015-01-12 09:47:57,476 | WARN  | pool-7-thread-1  | AbstractLifeCycle               
| 91 - org.eclipse.jetty.aggregate.jetty-all-server - 8.1.15.v20140411 |
FAILED helloWorld: java.lang.ExceptionInInitializerError
java.lang.ExceptionInInitializerError
	at com.amazonaws.util.VersionInfoUtils.userAgent(VersionInfoUtils.java:139)
	at
com.amazonaws.util.VersionInfoUtils.initializeUserAgent(VersionInfoUtils.java:134)
	at
com.amazonaws.util.VersionInfoUtils.getUserAgent(VersionInfoUtils.java:95)
	at
com.amazonaws.ClientConfiguration.<clinit>(ClientConfiguration.java:42)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	at
com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:379)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	at
com.amazonaws.services.s3.AmazonS3Client.<init>(AmazonS3Client.java:318)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	at com.pinsightmedia.adgateway.util.S3Properties.load(S3Properties.java:53)
	at
com.pinsightmedia.adgateway.dsp.admarvel.AdMarvelProperties.load(AdMarvelProperties.java:53)[220:adgateway-provider:3.0.1.SNAPSHOT]
	at
com.pinsightmedia.adgateway.dsp.admarvel.AdMarvelProperties.<clinit>(AdMarvelProperties.java:29)[220:adgateway-provider:3.0.1.SNAPSHOT]
	at
org.ops4j.web.samples.helloworld.servlet3.internal.HelloWorld.<clinit>(HelloWorld.java:29)[199:org.ops4j.pax.web.servlet3.samples.war:4.1.0.SNAPSHOT]

Caused by: java.lang.IllegalArgumentException
	at
com.amazonaws.internal.config.InternalConfig.loadfrom(InternalConfig.java:231)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	at
com.amazonaws.internal.config.InternalConfig.load(InternalConfig.java:249)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	at
com.amazonaws.internal.config.InternalConfig$Factory.<clinit>(InternalConfig.java:284)[124:org.apache.servicemix.bundles.aws-java-sdk:1.9.8.1]
	... 53 more



--
View this message in context: http://karaf.922171.n3.nabble.com/deploying-a-war-with-dependencies-in-bundled-jars-tp4037488p4037758.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message