You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@geronimo.apache.org by HRito <hu...@gmail.com> on 2008/10/22 17:27:06 UTC

Problem adding jar to daytrader

Hi,

I've made a modification to Daytrader that adds some new libraries as jars.
I've added the jars to the pom.xml as dependencies, and installed them onto
maven's repository.
With that, I'm able to build my modified daytrader and to install it on
Geronimo.
Yet, I get a ClassNotFoundException when daytrader runs and tries to load
the extra libraries.

Can anyone help? What have I missed?

Thanks

Re: Problem adding jar to daytrader

Posted by HRito <hu...@gmail.com>.
On Wed, Oct 22, 2008 at 5:32 PM, David Jencks <da...@yahoo.com>wrote:

>
>  I don't recall the exact state of daytrader.  If you are building
> daytrader as a geronimo plugin and installing it as a plugin then the jar
> dependencies will automatically be installed into geronimo when you install
> the daytrader plugin.  If you are installing daytrader by deploying it
> directly in geronimo as a javaee application then the dependencies will not
> get to geronimo automatically.  In this case you can either install the
> dependencies yourself by copying them or using the admin console or you
> could include them in the ear under the lib/ directory.
>
>
Hi.

It seems the jar wasn't being included (we were mistakenly using
<scope>provided</scope>), and then we needed to add them to the <Class-Path>
at the end of pom.xml.
It's working now, thanks.

Hugo Rito

Re: Problem adding jar to daytrader

Posted by David Jencks <da...@yahoo.com>.
On Oct 22, 2008, at 8:27 AM, HRito wrote:

> Hi,
>
> I've made a modification to Daytrader that adds some new libraries  
> as jars.
> I've added the jars to the pom.xml as dependencies, and installed  
> them onto maven's repository.
> With that, I'm able to build my modified daytrader and to install it  
> on Geronimo.
> Yet, I get a ClassNotFoundException when daytrader runs and tries to  
> load the extra libraries.
>
> Can anyone help? What have I missed?

I don't recall the exact state of daytrader.  If you are building  
daytrader as a geronimo plugin and installing it as a plugin then the  
jar dependencies will automatically be installed into geronimo when  
you install the daytrader plugin.  If you are installing daytrader by  
deploying it directly in geronimo as a javaee application then the  
dependencies will not get to geronimo automatically.  In this case you  
can either install the dependencies yourself by copying them or using  
the admin console or you could include them in the ear under the lib/  
directory.

hope this helps
david jencks


>
>
> Thanks