You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ibatis.apache.org by "Larry Meadors (JIRA)" <ib...@incubator.apache.org> on 2005/11/13 15:26:22 UTC

[jira] Commented: (IBATIS-219) NoClassDefFoundError: oracle/toplink/sessions/UnitOfWork

    [ http://issues.apache.org/jira/browse/IBATIS-219?page=comments#action_12357522 ] 

Larry Meadors commented on IBATIS-219:
--------------------------------------

Peter,

My apologies, I was trying to make the XmlDaoManagerBuilder easier to maintain, and broke it.

Darnedest bug - it works in the unit tests, but not in the wild.

The source in SVN has been updated with a change that I think fixes it. If you want to check it out, and test it, feel free. 

If not, I will try to test it later today and make the unit tests for the build catch it.

In case you are curious, the way we do this is that we mock the Oracle classes, and the mocked version are on the class path when the unit tests run. I'll need to create an instance of the XmlDaoManagerBuilder without the mocked classes on the class path - the constructor is where it blows chunks.

Larry

> NoClassDefFoundError: oracle/toplink/sessions/UnitOfWork
> --------------------------------------------------------
>
>          Key: IBATIS-219
>          URL: http://issues.apache.org/jira/browse/IBATIS-219
>      Project: iBatis for Java
>         Type: Bug
>   Components: DAO
>     Versions: 2.1.6
>  Environment: Eclipse 3.1.1, JSDK 1.4.2_07, WinXPSP2 with newest patches
>     Reporter: Peter Köhler
>     Priority: Blocker

>
> When upgrading from 2.1.5 to 2.1.6 i get the following error:
> java.lang.NoClassDefFoundError: oracle/toplink/sessions/UnitOfWork
> 	at java.lang.Class.forName0(Native Method)
> 	at java.lang.Class.forName(Unknown Source)
> 	at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.class$(XmlDaoManagerBuilder.java:69)
> 	at com.ibatis.dao.engine.builder.xml.XmlDaoManagerBuilder.<init>(XmlDaoManagerBuilder.java:75)
> 	at com.ibatis.dao.client.DaoManagerBuilder.buildDaoManager(DaoManagerBuilder.java:49)
> 	at com.awaro.app.fox.common.FoxInitializer.initDaoManager(FoxInitializer.java:120)
> 	at com.awaro.app.fox.common.FoxInitializer.initializeAndCheck(FoxInitializer.java:58)
> 	at com.awaro.app.fox.test.SqlMapConfigTest.setUp(SqlMapConfigTest.java:60)
> 	at junit.framework.TestCase.runBare(TestCase.java:125)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> This happens while the statement 
> "typeAliases.put("TOPLINK", ToplinkDaoTransactionManager.class.getName());"
> is executed. 
> Maybe the classloader tries to resolve some class dependencies?
> Greetings from Frankfurt
> Peter Köhler

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira