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 Wed, 07 Jan 2015 15:26:58 GMT
The .(dot) on that manifest was generated by the maven bundle

<plugin>
				<groupId>org.apache.felix</groupId>
				<artifactId>maven-bundle-plugin</artifactId>
				<extensions>true</extensions>
				<configuration>
					<supportedProjectTypes>
						<supportedProjectType>jar</supportedProjectType>
						<supportedProjectType>bundle</supportedProjectType>
						<supportedProjectType>war</supportedProjectType>
					</supportedProjectTypes>
					<instructions>
						<Bundle-SymbolicName>${bundle.symbolicName}</Bundle-SymbolicName>
						<Bundle-Version>${project.version}</Bundle-Version>
						<Import-Package>
							com.pinsightmedia.adgateway.framework.*,
                            com.pinsightmedia.adgateway.client.*, 
                            com.pinsightmedia.adgateway.dsp.*, 
                            com.pinsightmedia.adgateway.domain.*,
                            org.apache.servicemix.bundles.aws-java-sdk.*,,
                            *; 
							resolution:=optional
						</Import-Package>
						<Export-Package>
						com.pinsightmedia.adgateway.framework.*,
                        com.pinsightmedia.adgateway.client.*, 
                        com.pinsightmedia.adgateway.dsp.*, 
                        com.pinsightmedia.adgateway.domain.*,
						org.apache.servicemix.bundles.aws-java-sdk.*,
						!*
						</Export-Package>
						<Bundle-Classpath>
							WEB-INF/classes
						</Bundle-Classpath>
						<Web-ContextPath>agwar</Web-ContextPath>
						<Embed-Dependency>
						  com.pinsightmedia.adgateway.framework.*,
						  com.pinsightmedia.adgateway.client.*, 
						  com.pinsightmedia.adgateway.dsp.*, 
						  com.pinsightmedia.adgateway.domain.*,
						  adgateway-client-7UL,
						  adgateway-provider,
						  adgateway-domain,
						  org.apache.servicemix.bundles.aws-java-sdk
						  </Embed-Dependency>
						<Embed-Transitive>true</Embed-Transitive>
						<_removeheaders>
							Include-Resource,
							Private-Package,
							Embed-Dependency,
							Embed-Transitive,
							Ignore-Package
						</_removeheaders>
					</instructions>
				</configuration>
				<executions>
					<execution>
						<id>generate-manifest</id>
						<phase>process-classes</phase>
						<goals>
							<goal>manifest</goal>
						</goals>
					</execution>
				</executions>
			</plugin>
			<plugin>
				<artifactId>maven-war-plugin</artifactId>
				<configuration>
					<archive>
					
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
					</archive>
				</configuration>
			</plugin>


Second I already have the WEB-INF/classes  since the start of this thread,

also I did not bundle it as  WAB i just copy and paste my war to the deploy
folder of Karaf 3.0.3

What I'm confuse about is that the classname that is not found is in the war
file and if I try to find-class in Karaf prompt> it is there, and if you
looked at the MANIFEST file I am seeing the packages was imported 





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

Mime
View raw message