lxin365
作者lxin3652015-04-24 15:50
其它, MMA

linux下weblogic启动报错:BEA-149205

字数 9614阅读 5469评论 0赞 1

错误内容如下:

<Mar 1, 2015 10:00:01 AM CST> <Notice> <Log Management> <BEA-170027> <The Server has established connection with the Domain level Diagnostic Service successfully.> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to ADMIN> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RESUMING> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default[1]" is now listening on 127.0.0.1:7001 for protocols iiop, t3, ldap, snmp, http.> 

<Mar 1, 2015 10:00:01 AM CST> <Warning> <Server> <BEA-002611> <Hostname "localhost", maps to multiple IP addresses: 192.168.4.103, 127.0.0.1> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <Server> <BEA-002613> <Channel "Default" is now listening on 192.168.4.103:7001 for protocols iiop, t3, ldap, snmp, http.> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <WebLogicServer> <BEA-000329> <Started WebLogic Admin Server "AdminServer" for domain "base_domain" running in Production Mode> 

<Mar 1, 2015 10:00:01 AM CST> <Warning> <Server> <BEA-002611> <Hostname "linux-scgj.site", maps to multiple IP addresses: 192.168.4.103, 127.0.0.1> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to RUNNING> 

<Mar 1, 2015 10:00:01 AM CST> <Notice> <WebLogicServer> <BEA-000360> <Server started in RUNNING mode> 

<Mar 1, 2015 10:01:14 AM CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=HomePage1.> 

<Mar 1, 2015 10:03:06 AM CST> <Error> <Deployer> <BEA-149265> <Failure occurred in the execution of deployment request with ID '1425175386356' for task '0'. Error is: 'weblogic.application.ModuleException: '

weblogic.application.ModuleException: 

at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)

at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)

at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)

Truncated. see log file for complete stacktrace

java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)

at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)

at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)

at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)

at weblogic.servlet.internal.War.getTagInfo(War.java:891)

Truncated. see log file for complete stacktrace

<Mar 1, 2015 10:03:06 AM CST> <Warning> <Deployer> <BEA-149004> <Failures were detected while initiating distribute task for application 'scgj'.> 

<Mar 1, 2015 10:03:06 AM CST> <Warning> <Deployer> <BEA-149078> <Stack trace for message 149004

weblogic.application.ModuleException: 

at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)

at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)

at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)

Truncated. see log file for complete stacktrace

java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)

at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)

at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)

at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)

at weblogic.servlet.internal.War.getTagInfo(War.java:891)

Truncated. see log file for complete stacktrace

<Mar 1, 2015 10:03:06 AM CST> <Error> <Console> <BEA-240003> <Console encountered the following error weblogic.application.ModuleException: 

at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:387)

at weblogic.application.internal.flow.ScopedModuleDriver.prepare(ScopedModuleDriver.java:176)

at weblogic.application.internal.flow.ModuleListenerInvoker.prepare(ModuleListenerInvoker.java:93)

at weblogic.application.internal.flow.DeploymentCallbackFlow$1.next(DeploymentCallbackFlow.java:387)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)

at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:58)

at weblogic.application.internal.flow.DeploymentCallbackFlow.prepare(DeploymentCallbackFlow.java:42)

at weblogic.application.internal.BaseDeployment$1.next(BaseDeployment.java:615)

at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:37)

at weblogic.application.internal.BaseDeployment.prepare(BaseDeployment.java:191)

at weblogic.application.internal.SingleModuleDeployment.prepare(SingleModuleDeployment.java:16)

at weblogic.application.internal.DeploymentStateChecker.prepare(DeploymentStateChecker.java:155)

at weblogic.deploy.internal.targetserver.AppContainerInvoker.prepare(AppContainerInvoker.java:60)

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.createAndPrepareContainer(ActivateOperation.java:197)

at weblogic.deploy.internal.targetserver.operations.ActivateOperation.doPrepare(ActivateOperation.java:89)

at weblogic.deploy.internal.targetserver.operations.AbstractOperation.prepare(AbstractOperation.java:217)

at weblogic.deploy.internal.targetserver.DeploymentManager.handleDeploymentPrepare(DeploymentManager.java:723)

at weblogic.deploy.internal.targetserver.DeploymentManager.prepareDeploymentList(DeploymentManager.java:1190)

at weblogic.deploy.internal.targetserver.DeploymentManager.handlePrepare(DeploymentManager.java:248)

at weblogic.deploy.internal.targetserver.DeploymentServiceDispatcher.prepare(DeploymentServiceDispatcher.java:159)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.doPrepareCallback(DeploymentReceiverCallbackDeliverer.java:157)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer.access$000(DeploymentReceiverCallbackDeliverer.java:12)

at weblogic.deploy.service.internal.targetserver.DeploymentReceiverCallbackDeliverer$1.run(DeploymentReceiverCallbackDeliverer.java:45)

at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:516)

at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)

at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)

Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot be cast to javax.xml.stream.XMLInputFactory

at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137)

at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHelper.java:124)

at weblogic.descriptor.DescriptorCache.parseXML(DescriptorCache.java:380)

at weblogic.servlet.internal.TldCacheHelper.parseTagLibraries(TldCacheHelper.java:65)

at weblogic.servlet.internal.War.getTagInfo(War.java:891)

at weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getTldInfo(WebAppServletContext.java:3612)

at weblogic.servlet.internal.WebAppServletContext$ServletContextWebAppHelper.getTagLibListeners(WebAppServletContext.java:3585)

at weblogic.servlet.internal.EventsManager.registerEventListeners(EventsManager.java:98)

at weblogic.servlet.internal.EventsManager.registerPreparePhaseListeners(EventsManager.java:65)

at weblogic.servlet.internal.WebAppServletContext.initContextListeners(WebAppServletContext.java:1764)

at weblogic.servlet.internal.WebAppServletContext.prepare(WebAppServletContext.java:1125)

at weblogic.servlet.internal.HttpServer.doPostContextInit(HttpServer.java:449)

at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:424)

at weblogic.servlet.internal.WebAppModule.registerWebApp(WebAppModule.java:910)

at weblogic.servlet.internal.WebAppModule.prepare(WebAppModule.java:364)

<Mar 1, 2015 10:03:21 AM CST> <Warning> <netuix> <BEA-423420> <Redirect is executed in begin or refresh action. Redirect url is /console/console.portal?_nfpb=true&_pageLabel=HomePage1.> 

解决方法:

在WEB-INF目录下添加weblogic.xml,内容如下:

<?xml version="1.0" encoding="UTF-8"?>
<weblogic-web-app>
 <container-descriptor>
        <index-directory-enabled>false</index-directory-enabled>
        <show-archived-real-path-enabled>true</show-archived-real-path-enabled>
        <prefer-web-inf-classes>false</prefer-web-inf-classes>
    </container-descriptor>
</weblogic-web-app>

prefer-web-inf-classes 参数改为false或者true

如果觉得我的文章对您有用,请点赞。您的支持将鼓励我继续创作!

1

添加新评论0 条评论

Ctrl+Enter 发表

关于TWT  使用指南  社区专家合作  厂商入驻社区  企业招聘  投诉建议  版权与免责声明  联系我们
© 2019  talkwithtrend — talk with trend,talk with technologist 京ICP备09031017号-30