Hi guys,
something strange:
I have a own ServiceLifeCyle-class f.e. to init a logger and to create a
dataSource (here: DriverManagerDataSource of the Spring-Framework for
later use of an JdbcTemplate...)
In the startUp()-method there's a call for this method:
/**
* @param service
*/
private void declareDataSource(AxisService service) {
dataSource = new DriverManagerDataSource();
dataSource.setUsername("test");
dataSource.setPassword("test");
dataSource.setDriverClassName("oracle.jdbc.driver.OracleDriver");
dataSource.setUrl("url-to-the-database");
try {
service.addParameter(new Parameter("SOURCE", dataSource));
} catch (AxisFault ex) {
ex.printStackTrace(); // should be logged...
}
}
First all related jars are in the lib-folder of the service-archive
(*aar).
If I deploy the service, it can't be done:
Error: org.apache.axis2.deployment.DeploymentException: Could not load
JDBC driver class [oracle.jdbc.driver.OracleDriver] at...
If I put the oracle-library in the common lib-folder of Axis2, it works!
If I create the datasource in the service-implementation (not in the
LifeCycle-Class) and the oracle-library is solely in the lib-folder of
the archive, it works too!
What's the problem in this case and what can be done to solve this
problem??? Why has to be this lib in the common-folder ???
Any idea ?
Thanks,
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]