shenlw2005
2011-08-03 10:15
浏览 296
已采纳

weblogic11g 部署问题,ibatis+spring+struts2框架,在windows部署成功;在有的linux部署成功但是在新装的linux上失败

没有分了 ,请大家给看看啊 啊!

以下是weblogic打印错误日志

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emporimpDAO' defined in class path resource [resources/applicationContext-dbback.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [resources/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:429)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:189)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
at weblogic.servlet.internal.EventsManager$FireContextListenerAction.run(EventsManager.java:481)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.internal.EventsManager.notifyContextCreatedEvent(EventsManager.java:181)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1872)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:3153)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1508)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:247)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:27)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:636)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:205)
at weblogic.application.internal.SingleModuleDeployment.activate(SingleModuleDeployment.java:43)
at weblogic.application.internal.DeploymentStateChecker.activate(DeploymentStateChecker.java:161)
at weblogic.deploy.internal.targetserver.AppContainerInvoker.activate(AppContainerInvoker.java:79)
at weblogic.deploy.internal.targetserver.BasicDeployment.activate(BasicDeployment.java:184)
at weblogic.deploy.internal.targetserver.BasicDeployment.activateFromServerLifecycle(BasicDeployment.java:361)
at weblogic.management.deploy.internal.DeploymentAdapter$1.doActivate(DeploymentAdapter.java:51)
at weblogic.management.deploy.internal.DeploymentAdapter.activate(DeploymentAdapter.java:200)
at weblogic.management.deploy.internal.AppTransition$2.transitionApp(AppTransition.java:30)
at weblogic.management.deploy.internal.ConfiguredDeployments.transitionApps(ConfiguredDeployments.java:240)
at weblogic.management.deploy.internal.ConfiguredDeployments.activate(ConfiguredDeployments.java:169)
at weblogic.management.deploy.internal.ConfiguredDeployments.deploy(ConfiguredDeployments.java:123)
at weblogic.management.deploy.internal.DeploymentServerService.resume(DeploymentServerService.java:180)
at weblogic.management.deploy.internal.DeploymentServerService.start(DeploymentServerService.java:96)
at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:207)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:176)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [resources/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 53 more
Caused by: java.lang.ExceptionInInitializerError
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.(SqlMapConfigParser.java:18)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:335)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:292)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1369)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1335)
... 63 more
Caused by: java.lang.RuntimeException: Error creating logger for class class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. Cause: java.lang.NullPointerException
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:33)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.(SqlMapClientImpl.java:39)
... 70 more
Caused by: java.lang.NullPointerException
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
... 71 more
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emporimpDAO' defined in class path resource [resources/applicationContext-dbback.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [resources/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:275)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:104)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1245)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1010)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:472)
Truncated. see log file for complete stacktrace
Caused By: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [resources/applicationContext.xml]: Invocation of init method failed; nested exception is java.lang.ExceptionInInitializerError
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
Truncated. see log file for complete stacktrace
Caused By: java.lang.ExceptionInInitializerError
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.(SqlMapConfigParser.java:18)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.buildSqlMapClient(SqlMapClientFactoryBean.java:335)
at org.springframework.orm.ibatis.SqlMapClientFactoryBean.afterPropertiesSet(SqlMapClientFactoryBean.java:292)
Truncated. see log file for complete stacktrace
Caused By: java.lang.RuntimeException: Error creating logger for class class com.ibatis.sqlmap.engine.impl.SqlMapClientImpl. Cause: java.lang.NullPointerException
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:33)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.(SqlMapClientImpl.java:39)
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.(SqlMapConfigParser.java:18)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.(SqlMapClientImpl.java:39)
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.(SqlMapConfigParser.java:18)
Truncated. see log file for complete stacktrace

weblogic.application.ModuleException:
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:1510)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:482)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:425)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:52)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:119)
Truncated. see log file for complete stacktrace
Caused By: java.lang.NullPointerException
at com.ibatis.common.logging.LogFactory.getLog(LogFactory.java:31)
at com.ibatis.sqlmap.engine.impl.SqlMapClientImpl.(SqlMapClientImpl.java:39)
at com.ibatis.sqlmap.engine.config.SqlMapConfiguration.(SqlMapConfiguration.java:37)
at com.ibatis.sqlmap.engine.builder.xml.XmlParserState.(XmlParserState.java:11)
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.(SqlMapConfigParser.java:18)
Truncated. see log file for complete stacktrace





  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

4条回答 默认 最新

  • suziwen 2011-08-03 22:00
    已采纳

    是不是包冲突了?日志包??

    打赏 评论
  • iteye_4873 2011-08-03 15:02

    应该是网络问题吧,出问题的机器环境连不上数据库。~

    打赏 评论
  • iteye_4873 2011-08-04 09:34

    包冲突?~~发布的程序包应该是同一个吧?~
    看你的base_domain.log00011 Log文件有没有说什么详细的错误信息。

    打赏 评论
  • iteye_4873 2011-08-04 11:13

    [quote]网上有很多人在问,但是回答的人很少,我查过很多英文网站,看了答案也不很实际,像下面的这种解释只是weblogic的配置,当然会有影响,但是最根本的不是这个原因。

    1,"weblogic.kernel.Default"是从客户端提交请求后产生的线程所在的队列名。这个队列的线程数默认是15个。如果超过15个线程堵塞,则部署的应用将不能访问。同时后台报:

    2,线程数(Tread Count):指派到weblogic.kernel.Default队列的线程数。如果你不需要使用超过15个线程(默认),就不必更改这个属性值。
    也可以在mydomain下的config.xml中配置

       总结了一下,我们的应用会在某一项资源得不到,或者像数据连接池被某些应用占有但一时释放不了的情况下,令其他的应用处于等待状态,这样这个问题就会出现,wl的控制台就会打印如下错误:
    

    [code="xml"] read: '14' for queue: 'weblogic.kernel.Default' has been busy for "1,307" second
    s working on the request "Http Request: /etax2006/MainServlet", which is more th
    an the configured time (StuckThreadMaxTime) of "600" seconds.>[/code]

        我有过亲身经历,因为访问的人很多,超过一万多用户同时在线,所以这个问题要迅速的解决是件麻烦但及其重要的事,建议有类似情况发生的时候,最好先检查网络,之后是连接池的使用情况,之后就是服务器的使用状态,也有数据库的某张表是不是忘记了加索引[用户不多的系统就没什么必要],只要你多留心这些,搞清楚状态,问题也不是很可怕。
    

    [/quote]
    引用以上的解释,我猜也是某一项资源得不到的原因,如果可以的话,试试停掉其他的1-2台服务器,然后再开这个,看能部署成功么? 有可能是数据库连接数不够的原因,这个我以前遇到过,不过遇到的时候错误提示信息很明确。

    打赏 评论

相关推荐 更多相似问题