首页 新闻 会员 周边 捐助

关于ssh框架的问题

0
悬赏园豆:100 [待解决问题]
  2014-03-05 14:20:00,419 INFO [org.apache.struts2.spring.StrutsSpringObjectFactory] - ... initialized Struts-Spring integration successfully
  ------CheckLogin-初始化拦截器!------
2014-03-05 14:20:01,370 ERROR [org.apache.struts2.dispatcher.Dispatcher] - Dispatcher initialization failed
  Unable to load configuration. - [unknown location]
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)
    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4677)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: Unable to locate parent package [default-package] - [unknown location]
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.getPackageConfig(PackageBasedActionConfigBuilder.java:1022)
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:668)
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:348)
    at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:260)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
    ... 21 more
三月 05, 2014 2:20:01 下午 org.apache.catalina.core.StandardContext filterStart
严重: Exception starting filter struts2
Unable to load configuration. - [unknown location]
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:485)
    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
    at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)
    at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)
    at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)
    at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:107)
    at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4677)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:726)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:702)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:698)
    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1119)
    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1760)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: Unable to load configuration. - [unknown location]
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:70)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:429)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:473)
    ... 19 more
Caused by: Unable to locate parent package [default-package] - [unknown location]
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.getPackageConfig(PackageBasedActionConfigBuilder.java:1022)
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:668)
    at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:348)
    at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
    at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:260)
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:67)
    ... 21 more
三月 05, 2014 2:20:01 下午 org.apache.catalina.core.StandardContext startInternal
严重: Error filterStart
三月 05, 2014 2:20:01 下午 org.apache.catalina.core.StandardContext startInternal
严重: Context [/Portal] startup failed due to previous errors
三月 05, 2014 2:20:01 下午 org.apache.catalina.core.ApplicationContext log
信息: Closing Spring root WebApplicationContext
2014-03-05 14:20:01,401 INFO [org.springframework.web.context.support.XmlWebApplicationContext] - Closing Root WebApplicationContext: startup date [Wed Mar 05 14:19:52 CST 2014]; root of context hierarchy
  2014-03-05 14:20:01,402 INFO [org.springframework.beans.factory.support.DefaultListableBeanFactory] - Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@1f4635f: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,org.springframework.context.annotation.internalPersistenceAnnotationProcessor,org.springframework.aop.config.internalAutoProxyCreator,org.springframework.context.support.PropertySourcesPlaceholderConfigurer#0,baseDao,userService,dataSource,sessionFactory,transactionManager,txAdvice,txPointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0,druid-stat-interceptor,druid-stat-pointcut,org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#1,org.springframework.context.annotation.ConfigurationClassPostProcessor.importAwareProcessor,org.springframework.context.annotation.ConfigurationClassPostProcessor.enhancedConfigurationProcessor]; root of factory hierarchy
  三月 05, 2014 2:20:01 下午 org.apache.catalina.core.ApplicationContext log
信息: Shutting down log4j
三月 05, 2014 2:20:01 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/Portal] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
三月 05, 2014 2:20:01 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/Portal] created a ThreadLocal with key of type [com.sun.faces.util.Util$1] (value [com.sun.faces.util.Util$1@1e3fa04]) and a value of type [java.util.HashMap] (value [{com.sun.faces.patternCache={ = }}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
三月 05, 2014 2:20:01 下午 org.apache.catalina.startup.HostConfig deployDirectory
信息: Deploying web application directory F:\MyEclipse 10.0\Tomcat8.0\apache-tomcat-8.0.0-RC1\webapps\ROOT
三月 05, 2014 2:20:02 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["http-apr-8080"]
三月 05, 2014 2:20:02 下午 org.apache.coyote.AbstractProtocol start
信息: Starting ProtocolHandler ["ajp-apr-8009"]
三月 05, 2014 2:20:02 下午 org.apache.catalina.startup.Catalina start
信息: Server startup in 22246 ms
ssh
熟悉的那风、的主页 熟悉的那风、 | 初学一级 | 园豆:102
提问于:2014-03-05 15:38
< >
分享
所有回答(1)
0

你提问敢再抽象点吗? 什么问题都不说 贴段日志出来就完事了,你是让我们猜你要提什么问题吗?提问题也是有技巧的,你站在回答者的角度看,你自己看到这段是有什么问题吗?

Zery | 园豆:6151 (大侠五级) | 2014-03-06 09:19

呃、抱歉、昨天页面卡掉了之后忘记进来说了、还有问题已经解决了、

 

这句Caused by: Unable to locate parent package [default-package] - [unknown location]

之前把属性设置为default-package忘记改回来了

我之前是自定义的、后来改了忘记去改那里了、网上资料都说是jar包问题、所以就一直在关注那个没注意这个、
<constant name="struts.convention.default.parent.package" value="default-package" />
设置回去struts-default就可以了

支持(0) 反对(0) 熟悉的那风、 | 园豆:102 (初学一级) | 2014-03-06 09:25

@熟悉的那风、:  呃 原来是这样........误会 纯属误会了,问题解决就好!!

支持(0) 反对(0) Zery | 园豆:6151 (大侠五级) | 2014-03-06 09:27

@Zery: 没事、因为忘记了也忘记把问题解决方法贴了出来、你这么一提醒我才知道、灰常感谢、

支持(0) 反对(0) 熟悉的那风、 | 园豆:102 (初学一级) | 2014-03-06 09:28
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册