RE: classpath problem

mustaoglu serdar <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.user
Message-ID <[email protected]>
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 <[email protected]> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.