axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Manuel Muñiz Martín" <amunizmartin.ax...@gmail.com>
Subject Re: Axis does not find my external libs
Date Thu, 18 Oct 2007 14:02:49 GMT
If you put the jars in axis lib directory (/axis2/WEB-INF/lib) it will work
fine.

Antonio.

2007/10/17, Upul Godage <upulg.dev@gmail.com>:
>
> Put the connector/j jar in the aar archive's lib folder.
>
> In the service class,
> ClassLoader classLoader = getClass().getClassLoader();
> Class.forName("org.gjt.mm.mysql.Driver" , true, classLoader
> ).newInstance();
>
> Upul
>
>
> On 10/17/07, Vincent Pretre < pretre@lifc.univ-fcomte.fr> wrote:
> >
> > Hi everyone,
> > I am trying to produce a web services which interacts with a mysql
> > database. I use connector/j to do this, but when I try to call one of my web
> > service operations, I get an error "java.lang.ClassNotFoundException:
> > Class Not found : org.gjt.mm.mysql.Driver".
> > The connector/j jar is in $JAVA-HOME/lib/ext.
> >
> > The code for the database connection works in a simple java class (just
> > compiled using javac without any option), but not in my web service.
> >
> > I'm not a Java guru so I've certainly missed something.
> >
> > Thanks,
> > Vincent
> >
> > PS: the code that does not work is " Class.forName("
> > org.gjt.mm.mysql.Driver" ).newInstance();"
> >
>
>

Mime
View raw message