I use back Class.forname again
insteadof getClass().getClassLoader().loadClass("com.mysql.jdbc.Driver");
good coding.
mustaoglu serdar <[EMAIL PROTECTED]> wrote:
Hi,
thanks for good solution.
I place the file set line in block.xml file of the server project (main project ) that
call the userimp project. This solve classloding problem.server is running
but now , I got again java.sql.SQLException not suitable driver exception for mysql
driver.
thanks..
try {
getClass().getClassLoader().loadClass("com.mysql.jdbc.Driver");
}
catch (java.lang.ClassNotFoundException e) {
getLogger().error( e.getMessage(), e );
}
getLogger().info( "load\n" ); -------- I see on console load
try {
exeption created.
}
Stephen McConnell wrote:
> [WARN ] (openim.classloader.scanner): Ignoring component type
[net.java.dev.op
> enim.data.storage.AccountRepositoryHolderImpl] as the implementation
class conta
> ins a reference to the class [agora/Balance] which does not exist in
the classlo
> ader.
What this error means is that you are attempting to load a component
class AccountRepositoryHolderImpl however, the class itself references
the class ' agora/Balance' which is not present in the current or any
parent classloader. What you need to sort out is why the jar file
containing 'agora/Balance' is not being loaded. Normally the only
reason why a jar does not get loaded is if its not referenced in the
classloader. If you use the merlin.debug = true option you should be
able to confirm that the jar is being loaded based on the log messages
generated.
Stephen.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------
Do you Yahoo!?
Yahoo! Mail Address AutoComplete - You start. We finish.
---------------------------------
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.