axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stig Rasmussen" <pe...@mail.dk>
Subject SV: [SPAM] How to deploy related classes?
Date Thu, 03 Feb 2005 03:11:49 GMT
Putting the jdbc jar file in my axis\WEB-INF\lib worked - thanks Kraig!

/Stig P.

-----Oprindelig meddelelse-----
Fra: Kraig [mailto:ctsweb@cinti.net]
Sendt: 2. februar 2005 14:45
Til: axis-user@ws.apache.org
Emne: Re: [SPAM] How to deploy related classes?


Make sure to create the appropriate sub-directory structure for the 
package that DBManager.class is a member of under the WEB-INF\classes 
subdirectory.  i.e.: WEB-INF\classes\org\xyx\dao\dbmanager.class

Also put the jdbc driver jar file in the WEB-INF\lib directory.

Kraig

Stig Rasmussen wrote:
> Hi there!
>  
> I have deployed a webservice which uses a related class for connecting 
> to my database, executing SQL and verifying the jdbc driver 
> (DBManager.java). When i try to verify my jdbc Driver using 
> Class.forName("org.gjt.mm.mysql.Driver") on my host it all works fine 
> and I can retrieve any data from the database.
>  
> But after i deployed the webservice, when I try to verify the driver 
> from my client i get the following error:
> 
> java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver
>  
> I know it must have something to do with deploying the DBManager.class 
> but I don't know what. Since the client is not suppose to use the 
> methods in DBManager directly but rather through the webservice, i 
> simply copied the DBManager.class file to my axis\WEB-INF\classes 
> directory instead of deploying it using AdminClient - is this wrong?
>  
> Cheers,
> Stig P.



Mime
View raw message