- 浏览: 3770 次
- 性别:
- 来自: 重庆
文章分类
最新评论
-
lxh2002:
我也遇到这样的问题,不过好像不影响测试Action的结果。就是 ...
strtust2 spring 集成测试问题 诡异的异常 不知道什么原因产生的
在做struts2 集成测试的时候报的异常 关键是在下面给我报IO异常,不知道他在找什么文件?
22:24:14,975 DEBUG SessionFactoryImpl:474 - Checking 0 named HQL queries
22:24:14,975 DEBUG SessionFactoryImpl:494 - Checking 0 named SQL queries
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitContainerInitializer]
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitContainerWizardPage]
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitHomeInitializer]
SEVERE: [24:17.147] Unable to read class [org.eclipse.jdt.internal.junit.JUnitPropertyTester]
SEVERE: [24:17.163] Unable to read class [org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder$AnnotationSearchRequestor]
SEVERE: [24:17.163] Unable to read class [org.eclipse.jdt.internal.junit.launcher.JUnitTabGroup]
SEVERE: [24:17.178] Unable to read class [org.eclipse.jdt.internal.junit.launcher.TestSelectionDialog$PackageRenderer]
SEVERE: [24:17.178] Unable to read class [org.eclipse.jdt.internal.junit.launcher.TestSelectionDialog]
SEVERE: [24:17.194] Unable to read class [org.eclipse.jdt.internal.junit.model.ModelMessages]
SEVERE: [24:17.256] Unable to read class [org.eclipse.jdt.internal.junit.refactoring.JUnitRenameParticipant]
SEVERE: [24:17.256] Unable to read class [org.eclipse.jdt.internal.junit.refactoring.LaunchConfigChange]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog$CompareResultMergeViewer]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog$CompareResultViewerConfiguration]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultsAction]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CopyFailureListAction]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CounterPanel]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.EnableStackFilterAction]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor$JUnitClasspathFixProposal]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitCopyAction]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitMessages]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPlugin]
SEVERE: [24:17.335] Unable to read class [org.eclipse.jdt.internal.junit.ui.JunitPreferenceInitializer]
SEVERE: [24:17.335] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$10]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$9]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$FilterLabelProvider]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$FilterViewerSorter]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitProgressBar$1]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitProgressBar]
SEVERE: [24:17.381] Unable to read class [org.eclipse.jdt.internal.junit.ui.OpenEditorAction$2]
SEVERE: [24:17.381] Unable to read class [org.eclipse.jdt.internal.junit.ui.OpenEditorAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.RerunAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.ScrollLockAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.ShowNextFailureAction]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.ShowPreviousFailureAction]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestMethodSelectionDialog$TestReferenceCollector]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestMethodSelectionDialog]
SEVERE: [24:17.428] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$5]
SEVERE: [24:17.428] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$6]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$8]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$9]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ActivateOnErrorAction]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ClearAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ExportTestRunSessionAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$FailuresOnlyFilterAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ImportTestRunSessionAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$JUnitIsRunningJob]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RerunLastAction]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RerunLastFailedFirstAction]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RunnerViewHistory]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ShowTestHierarchyAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ShowTimeAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$StopAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ToggleOrientationAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$UpdateUIJob]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestSessionLabelProvider]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$ExpandAllAction]
SEVERE: [24:17.522] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$FailuresOnlyFilter]
SEVERE: [24:17.522] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$TestOpenListener]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog$3]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog$4]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog]
SEVERE: [24:17.553] Unable to read class [org.eclipse.jdt.internal.junit.util.TestSearchEngine$SuiteMethodTypesCollector]
SEVERE: [24:17.553] Unable to read class [org.eclipse.jdt.internal.junit.wizards.JUnitWizard]
SEVERE: [24:17.569] Unable to read class [org.eclipse.jdt.internal.junit.wizards.NewTestCaseCreationWizard$ClasspathFixSelectionDialog$ClasspathFixLabelProvider]
SEVERE: [24:17.569] Unable to read class [org.eclipse.jdt.internal.junit.wizards.NewTestCaseCreationWizard$ClasspathFixSelectionDialog]
SEVERE: [24:17.585] Unable to read class [org.eclipse.jdt.internal.junit.wizards.WizardMessages]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$1]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$10]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$12]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$13]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$3]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$5]
SEVERE: [24:17.631] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$7]
SEVERE: [24:17.631] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne$3]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne$4]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$1]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$3]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$4]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$5]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage$2]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage$3]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage]
22:24:17,725 WARN MockServletContext:212 - Couldn't get resource paths for class path resource [WEB-INF/content/]
java.io.FileNotFoundException: class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:163)
at org.springframework.core.io.ClassPathResource.getFile(ClassPathResource.java:175)
at org.springframework.mock.web.MockServletContext.getResourcePaths(MockServletContext.java:196)
at org.apache.struts2.convention.DefaultResultMapBuilder.createFromResources(DefaultResultMapBuilder.java:254)
at org.apache.struts2.convention.DefaultResultMapBuilder.build(DefaultResultMapBuilder.java:191)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.createActionConfig(PackageBasedActionConfigBuilder.java:800)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:572)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:318)
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
at org.apache.struts2.util.StrutsTestCaseHelper.initDispatcher(StrutsTestCaseHelper.java:54)
at org.apache.struts2.StrutsTestCase.initDispatcher(StrutsTestCase.java:202)
at org.apache.struts2.StrutsTestCase.setUp(StrutsTestCase.java:188)
at test.com.cq.lovo.actiontest.TestUserActionTest.setUp(TestUserActionTest.java:13)
at junit.framework.TestCase.runBare(TestCase.java:128)
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:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
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)
22:24:17,756 INFO SessionFactoryImpl:853 - closing
22:24:14,975 DEBUG SessionFactoryImpl:474 - Checking 0 named HQL queries
22:24:14,975 DEBUG SessionFactoryImpl:494 - Checking 0 named SQL queries
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitContainerInitializer]
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitContainerWizardPage]
SEVERE: [24:17.131] Unable to read class [org.eclipse.jdt.internal.junit.buildpath.JUnitHomeInitializer]
SEVERE: [24:17.147] Unable to read class [org.eclipse.jdt.internal.junit.JUnitPropertyTester]
SEVERE: [24:17.163] Unable to read class [org.eclipse.jdt.internal.junit.launcher.JUnit4TestFinder$AnnotationSearchRequestor]
SEVERE: [24:17.163] Unable to read class [org.eclipse.jdt.internal.junit.launcher.JUnitTabGroup]
SEVERE: [24:17.178] Unable to read class [org.eclipse.jdt.internal.junit.launcher.TestSelectionDialog$PackageRenderer]
SEVERE: [24:17.178] Unable to read class [org.eclipse.jdt.internal.junit.launcher.TestSelectionDialog]
SEVERE: [24:17.194] Unable to read class [org.eclipse.jdt.internal.junit.model.ModelMessages]
SEVERE: [24:17.256] Unable to read class [org.eclipse.jdt.internal.junit.refactoring.JUnitRenameParticipant]
SEVERE: [24:17.256] Unable to read class [org.eclipse.jdt.internal.junit.refactoring.LaunchConfigChange]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog$CompareResultMergeViewer]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog$CompareResultViewerConfiguration]
SEVERE: [24:17.272] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultDialog]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CompareResultsAction]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CopyFailureListAction]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.CounterPanel]
SEVERE: [24:17.288] Unable to read class [org.eclipse.jdt.internal.junit.ui.EnableStackFilterAction]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor$JUnitClasspathFixProposal]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitClasspathFixProcessor]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitCopyAction]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitMessages]
SEVERE: [24:17.319] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPlugin]
SEVERE: [24:17.335] Unable to read class [org.eclipse.jdt.internal.junit.ui.JunitPreferenceInitializer]
SEVERE: [24:17.335] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$10]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$9]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$FilterLabelProvider]
SEVERE: [24:17.350] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage$FilterViewerSorter]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitPreferencePage]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitProgressBar$1]
SEVERE: [24:17.366] Unable to read class [org.eclipse.jdt.internal.junit.ui.JUnitProgressBar]
SEVERE: [24:17.381] Unable to read class [org.eclipse.jdt.internal.junit.ui.OpenEditorAction$2]
SEVERE: [24:17.381] Unable to read class [org.eclipse.jdt.internal.junit.ui.OpenEditorAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.RerunAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.ScrollLockAction]
SEVERE: [24:17.397] Unable to read class [org.eclipse.jdt.internal.junit.ui.ShowNextFailureAction]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.ShowPreviousFailureAction]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestMethodSelectionDialog$TestReferenceCollector]
SEVERE: [24:17.413] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestMethodSelectionDialog]
SEVERE: [24:17.428] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$5]
SEVERE: [24:17.428] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$6]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$8]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$9]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ActivateOnErrorAction]
SEVERE: [24:17.444] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ClearAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ExportTestRunSessionAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$FailuresOnlyFilterAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ImportTestRunSessionAction]
SEVERE: [24:17.460] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$JUnitIsRunningJob]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RerunLastAction]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RerunLastFailedFirstAction]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$RunnerViewHistory]
SEVERE: [24:17.475] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ShowTestHierarchyAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ShowTimeAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$StopAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$ToggleOrientationAction]
SEVERE: [24:17.491] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart$UpdateUIJob]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestSessionLabelProvider]
SEVERE: [24:17.506] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$ExpandAllAction]
SEVERE: [24:17.522] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$FailuresOnlyFilter]
SEVERE: [24:17.522] Unable to read class [org.eclipse.jdt.internal.junit.ui.TestViewer$TestOpenListener]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog$3]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog$4]
SEVERE: [24:17.538] Unable to read class [org.eclipse.jdt.internal.junit.util.CheckedTableSelectionDialog]
SEVERE: [24:17.553] Unable to read class [org.eclipse.jdt.internal.junit.util.TestSearchEngine$SuiteMethodTypesCollector]
SEVERE: [24:17.553] Unable to read class [org.eclipse.jdt.internal.junit.wizards.JUnitWizard]
SEVERE: [24:17.569] Unable to read class [org.eclipse.jdt.internal.junit.wizards.NewTestCaseCreationWizard$ClasspathFixSelectionDialog$ClasspathFixLabelProvider]
SEVERE: [24:17.569] Unable to read class [org.eclipse.jdt.internal.junit.wizards.NewTestCaseCreationWizard$ClasspathFixSelectionDialog]
SEVERE: [24:17.585] Unable to read class [org.eclipse.jdt.internal.junit.wizards.WizardMessages]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationDelegate]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$1]
SEVERE: [24:17.600] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$10]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$12]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$13]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$3]
SEVERE: [24:17.616] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$5]
SEVERE: [24:17.631] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab$7]
SEVERE: [24:17.631] Unable to read class [org.eclipse.jdt.junit.launcher.JUnitLaunchConfigurationTab]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne$3]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne$4]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageOne]
SEVERE: [24:17.663] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$1]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$3]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$4]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo$5]
SEVERE: [24:17.678] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestCaseWizardPageTwo]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage$2]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage$3]
SEVERE: [24:17.694] Unable to read class [org.eclipse.jdt.junit.wizards.NewTestSuiteWizardPage]
22:24:17,725 WARN MockServletContext:212 - Couldn't get resource paths for class path resource [WEB-INF/content/]
java.io.FileNotFoundException: class path resource [WEB-INF/content/] cannot be resolved to URL because it does not exist at org.springframework.core.io.ClassPathResource.getURL(ClassPathResource.java:163)
at org.springframework.core.io.ClassPathResource.getFile(ClassPathResource.java:175)
at org.springframework.mock.web.MockServletContext.getResourcePaths(MockServletContext.java:196)
at org.apache.struts2.convention.DefaultResultMapBuilder.createFromResources(DefaultResultMapBuilder.java:254)
at org.apache.struts2.convention.DefaultResultMapBuilder.build(DefaultResultMapBuilder.java:191)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.createActionConfig(PackageBasedActionConfigBuilder.java:800)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:572)
at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:318)
at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:204)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:374)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:418)
at org.apache.struts2.util.StrutsTestCaseHelper.initDispatcher(StrutsTestCaseHelper.java:54)
at org.apache.struts2.StrutsTestCase.initDispatcher(StrutsTestCase.java:202)
at org.apache.struts2.StrutsTestCase.setUp(StrutsTestCase.java:188)
at test.com.cq.lovo.actiontest.TestUserActionTest.setUp(TestUserActionTest.java:13)
at junit.framework.TestCase.runBare(TestCase.java:128)
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:120)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
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)
22:24:17,756 INFO SessionFactoryImpl:853 - closing
评论
1 楼
lxh2002
2011-04-17
我也遇到这样的问题,不过好像不影响测试Action的结果。
就是不知道什么原因产生的,按照提示在WEB-INF下面建content和content/util文件夹也仍然会报这样的异常信息。
就是不知道什么原因产生的,按照提示在WEB-INF下面建content和content/util文件夹也仍然会报这样的异常信息。
相关推荐
首先,集成测试是在所有组件被组装到一起后进行的测试,目的是发现模块间的接口问题。Spring提供了一些工具和库,如Spring Test、Spring Boot Test和Mockito,来帮助开发者有效地进行集成测试。 1. Spring Test:这...
在Spring框架中,集成测试是确保各个组件协同工作并达到预期功能的重要环节。Spring提供了丰富的工具和支持来简化集成测试过程,让开发者能够高效地验证应用的各个部分如何一起工作。以下是一些关于在Spring中进行...
Spring Boot 单元测试和集成测试实现详解 Springs Boot 是一个基于 Java 的框架,提供了一个便捷的方式来开发基于 Spring 的应用程序。在开发过程中,测试是一个非常重要的步骤,单元测试和集成测试是其中的两种...
当我们谈论“Spring2集成测试”,我们指的是利用Spring框架提供的工具和最佳实践来测试整个应用程序的集成部分,确保各个组件协同工作。 集成测试是软件开发过程中的关键步骤,它位于单元测试之后,系统测试之前,...
在Spring框架中集成JavaMelody,可以让我们在开发和运维过程中更方便地了解应用的健康状况,及时发现并解决问题。 集成JavaMelody到Spring项目中,首先需要在项目的Maven或Gradle构建文件中添加JavaMelody的依赖。...
在Spring框架中,单元测试和集成测试是软件开发过程中不可或缺的部分。它们确保代码的质量和功能的正确性。本文将深入探讨Spring3中的单元测试和集成测试,并提供相关的实践指导。 ### 单元测试 单元测试是指针对...
7. **异常处理**:Spring提供了全局异常处理机制,可以捕获并处理Struts2中抛出的异常,提供统一的错误页面或者返回JSON格式的错误信息。 8. **国际化**:Struts2和Spring都可以支持国际化,集成后可以更好地协调这...
自己研制的spring 集成测试类。希望对大家有一定的帮之。我使用的是注解的spring
在IT行业中,Spring框架是Java开发领域广泛应用的一个开源框架,以其强大的功能和模块化设计而闻名。当涉及到实时通信和低...在实际开发中,还要注意异常处理、安全性及性能优化等问题,以确保服务的稳定性和可靠性。
10. **测试**:为了确保集成的有效性,Spring Integration提供了测试框架,方便对集成流程进行单元测试和集成测试。 通过研究这些示例,开发者可以更好地理解和应用Spring Integration,解决实际项目中的集成问题,...
在Spring框架中进行集成测试是确保应用程序在各个组件协同工作时仍能正常运行的重要步骤。集成测试关注的是系统中各个组件间的交互,而非单一组件的功能。以下是对在Spring中进行集成测试的详细讲解: 首先,集成...
本文将深入探讨如何将Spring与DBUnit整合,以实现高效、可靠的数据库集成测试。 首先,理解Spring的核心功能是至关重要的。Spring是一个开源的Java平台,它为构建应用程序提供了全面的支持,包括依赖注入...
7. **异常处理**: 在 Netty 和 Spring 集成时,应考虑如何统一处理网络通信中的异常。可以创建一个全局的 ExceptionHandler,通过 Spring 注入并设置到 ChannelPipeline 中,以便捕获并处理所有可能的网络异常。 8....
SSH,即Struts2、Hibernate和Spring的组合,是Java Web开发中的一种经典框架集成,用于构建企业级的MVC(Model-View-Controller)应用。这个整合旨在提供一个高效、灵活且可扩展的开发环境,使开发者可以专注于业务...
6. **测试与调试**:创建单元测试确保集成正确,可以使用Drools提供的TestScenario API进行规则测试,同时利用Spring的Mockito等工具进行业务逻辑验证。 在`spring-drools-demo`这个项目中,可能包含了一个简单的...
6. **断言与异常测试** JUnit和AssertJ库提供了丰富的断言方法,确保测试结果符合预期。对于预期的异常,我们可以使用`assertThrows()`来捕获并验证异常类型和消息。 7. **测试覆盖率** 测试不仅要确保功能正确,...
标题“Spring之Spring2.5集成Struts2.2”涉及到的是在Web开发中整合两个非常流行的开源框架——Spring和Struts2的过程。这个过程旨在利用Spring的强大IoC(Inversion of Control,控制反转)和AOP(Aspect Oriented ...