1
回答
ControllerTestCase 搜索目录异常
终于搞明白,存储TCO原来是这样算的>>>   

@绝望的八皮 你好,想跟你请教个问题:

maven 中运行 用 ControllerTestCase 

会去搜索配置文件  不过 搜索目录好像不对啊  有个tar 目录不自动是哪里的

这个怎么解决

com.jfinal.ext.kit.ReflectException: java.lang.reflect.InvocationTargetException
at com.jfinal.ext.kit.Reflect.on(Reflect.java:650)
at com.jfinal.ext.kit.Reflect.call(Reflect.java:383)
at com.jfinal.ext.test.ControllerTestCase.initConfig(ControllerTestCase.java:56)
at com.jfinal.ext.test.ControllerTestCase.start(ControllerTestCase.java:66)
at com.jfinal.ext.test.ControllerTestCase.init(ControllerTestCase.java:103)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27)
at org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored(BlockJUnit4ClassRunner.java:79)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:71)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:49)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at com.jfinal.ext.kit.Reflect.on(Reflect.java:647)
... 28 more
Caused by: java.lang.IllegalArgumentException: Properties file not found: /E:/workspace/jump-Jetty/tar\WEB-INF\classes/db.properties
at com.jfinal.config.JFinalConfig.loadPropertyFile(JFinalConfig.java:96)
at com.jayqqaa12.MyConfig.configConstant(MyConfig.java:54)
at com.jfinal.core.Config.configJFinal(Config.java:46)
at com.jfinal.core.JFinal.init(JFinal.java:67)
... 33 more


举报
12叔
发帖于3年前 1回/95阅
顶部