I just thought of another solution. Place the driver jar in a shared lib
directory of your application server. For tomcat this is shared/lib if I
remember correctly.
The advantages of this method are that you don't have a copy of the driver
in each and every webapp on the server, and that your jetspeed project
doesn't have to 'know' what database it is using. Also, this way you don't
have to modify project.xml...

-Stijn


----- Original Message ----- 
From: "Stijn de Witt" <[EMAIL PROTECTED]>
To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
Sent: Monday, August 09, 2004 2:20 PM
Subject: Re: Where to drop external jar files


> Place them in the repository and make a dependency in project.xml:
>
>         <dependency>
>             <groupId>mysql</groupId>
>             <artifactId>mysql-connector-java</artifactId>
>             <version>2.0.14-bin</version>
>             <type>jar</type>
>             <properties>
>                 <war.bundle>true</war.bundle>
>             </properties>
>         </dependency>
>
> The property <war.bundle>true</war.bundle> will tell maven to copy the
file
> from the maven repository to your webapp/WEB-INF/lib dir.
>
> -Stijn
>
>
> ----- Original Message ----- 
> From: <[EMAIL PROTECTED]>
> To: "Jetspeed Developers List" <[EMAIL PROTECTED]>
> Sent: Monday, August 09, 2004 8:16 AM
> Subject: Where to drop external jar files
>
>
> >
> >
> > where should we drop other external jar files (like jdbc drivers) so
that
> when
> > we 'maven war' they will be included in the war file?  i tried dropping
> them in
> > the following locations but to no avail...
> >   {jetspeedhome}/lib
> >                 /build/lib
> >
> > i figured this out when i tried to use oracle db and i keep on getting
> errors
> > when importing psml files to my db and i get 'no suitable driver' errors
> just
> > because the war file didn't include my jdbc drivers.  is there a way on
> how to
> > avoid adding external files into the exploded directory everytime we
> deploy?
> > or am i missing some things here?
> >
> > thanks in advance.
> >
> > --jaq
> >
> > ----------------------------------------------------------------
> > This message was sent using IMP, the Internet Messaging Program.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to