On 08/11/2007, Stuart McCulloch <[EMAIL PROTECTED]> wrote:
>
> On 08/11/2007, Bram de Kruijff <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > first, sorry about the empty email I send before.. me and my outlook :(
>
>
> np :)
>
> im trying to include (and export) the appropriate classes from a signed
> > jar (mssql sqljdbc 1.1) in a bundle. The maven osgi plugin just used to
> > include the signed jar and everything was fine.
> >
> > Using the bundle plugin however, the resulting bundle is a little
> > strange as it does contain the jdbc classes (exploded from the jar) but
> > also the original (from the driver) manifest file in the meta-inf twice
> > (Manifest.mf / manifest.mf) as well as some other resources
> > (zigbert.rsa /zigbert.sf) but no OSGi compliant manifest to be found
> > anywhere.
> >
> > As this sqljdb jar is signed should I handle it in another way?
>
>
> is there anywhere I can download this particular signed jarfile?
>
> ps. could you also try the following instructions:
>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>1.1.0-SNAPSHOT</version>
> <extensions>true</extensions>
> <configuration>
> <instructions>
>
> <Bundle-SymbolicName>com.microsoft.sqlserver.jdbc</Bundle-SymbolicName>
> <Bundle-Name>DBCPProvider MS-SQL JDBC Driver version - 1.1
> </Bundle-Name>
> <Bundle-Activator>
> nl.gx.webmanager.services.dbcpprovider.sqljdbc.ProviderActivator</Bundle-Activator>
>
> <Embed-Dependency>*;scope=compile;inline=true</Embed-Dependency>
>
FYI, you could also try:
<Embed-Dependency>*;scope=compile;inline=false</Embed-Dependency>
to embed the actual (unchanged) jdbc jarfile inside the bundle...
<_exportcontents>com.microsoft.sqlserver.jdbc</_exportcontents>
> <Private-Package>!*</Private-Package> <!-- just to clear some
> warnings -->
> </instructions>
> </configuration>
> </plugin>
>
> as for wrapping it's better to use <Embed-Dependency> and
> <_exportcontents>, as Private-Package
> and Export-Package only include the classes, not necessarily any contained
> resources or metadata.
>
> regards,
> > Bram
> >
> >
> > ps. Below the bundle plugin configuration I'm currently using.
> >
> > <dependencies>
> > <dependency>
> > <groupId>com.microsoft</groupId>
> > <artifactId>sqljdbc</artifactId>
> > <version>1.1</version>
> > <scope>compile</scope>
> > </dependency>
> > </dependencies>
> > <build>
> > <plugins>
> > <plugin>
> > <groupId> org.apache.felix</groupId>
> > <artifactId>maven-bundle-plugin</artifactId>
> > <version>1.1.0-SNAPSHOT</version>
> > <extensions>true</extensions>
> > <configuration>
> > <instructions>
> > <Bundle-Name>DBCPProvider MS-SQL JDBC Driver
> > version - 1.1</Bundle-Name>
> > <Bundle-Activator>
> >
> > nl.gx.webmanager.services.dbcpprovider.sqljdbc.ProviderActivator
> > </Bundle-Activator>
> > <Private-Package>
> > *
> > </Private-Package>
> > <Export-Package>
> > com.microsoft.sqlserver.jdbc
> > </Export-Package>
> > </instructions>
> > </configuration>
> > </plugin>
> > </plugins>
> > </build>
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> --
> Cheers, Stuart
--
Cheers, Stuart