Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to deal with the Cannot create a secure XMLInputFactory exception in weblogic after the successful release of CXF project tomcat

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Today, I will talk to you about how to deal with Cannot create a secure XMLInputFactory exceptions in weblogic after the successful release of CXF project tomcat. Many people may not know much about it. In order to make you understand better, the editor has summarized the following content for you. I hope you can get something according to this article.

Problem: Cannot create a secure XMLInputFactory appears in weblogic deployment project

July 30, 2019 3:48:36 afternoon org.apache.cxf.phase.PhaseInterceptorChain doDefaultLogging warning: Interceptor for {mdm.csg.cn} CheckDataService has thrown exception Unwinding nowjava.lang.RuntimeException: Cannot create a secure XMLInputFactory at org.apache.cxf.staxutils.StaxUtils.createXMLInputFactory (StaxUtils.java:338) at org.apache.cxf.staxutils.StaxUtils.getXMLInputFactory (StaxUtils.java:278) at org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader (StaxUtils.java:1723) at org.apache.cxf.interceptor.StaxInInterceptor.handleMessage (StaxInInterceptor.java:127) at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept ( PhaseInterceptorChain.java:308) at org.apache.cxf.transport.ChainInitiationObserver.onMessage (ChainInitiationObserver.java:121) at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke (AbstractHTTPDestination.java:267) at org.apache.cxf.transport.servlet.ServletController.invokeDestination (ServletController.java:234) at org.apache.cxf.transport.servlet.ServletController.invoke (ServletController.java:208) at org.apache.cxf.transport.servlet.ServletController . invoke (ServletController.java:160) at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke (CXFNonSpringServlet.java:216) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest (AbstractHTTPServlet.java:301) at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost (AbstractHTTPServlet.java:220) at javax.servlet.http.HttpServlet.service (HttpServlet.java:727) at org.apache.cxf.transport.servlet. AbstractHTTPServlet.service (AbstractHTTPServlet.java:276) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run (StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet (StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute (ServletStubImpl.java:301) at weblogic.servlet.internal.TailFilter.doFilter (TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56) at Org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal (CharacterEncodingFilter.java:197) at org.springframework.web.filter.OncePerRequestFilter.doFilter (OncePerRequestFilter.java:107) at weblogic.servlet.internal.FilterChainImpl.doFilter (FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun (WebAppServletContext.java:3730) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run (WebAppServletContext.java:3696) at weblogic.security.acl.internal.AuthenticatedSubject.doAs (AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs (SecurityManager.java:120) at weblogic.servlet.internal.WebAppServletContext.securedExecute (WebAppServletContext.java:2273) at weblogic.servlet.internal.WebAppServletContext.execute (WebAppServletContext.java:2179) at weblogic.servlet.internal.ServletRequestImpl.run (ServletRequestImpl.java:1490) at weblogic.work.ExecuteThread.execute (ExecuteThread.java:256) at weblogic.work.ExecuteThread .run (ExecuteThread.java:221) [INFO]-cn.csg.drm.mdm.check.handler.CxfHandler.getHeaders (CxfHandler.java:23)-set qName [set qName] [ERROR]-cn.csg.drm.mdm.check.handler.CxfHandler.handleFault (CxfHandler.java:35)-handler Fault [INFO]-cn.csg.drm.mdm.check.handler.CxfHandler.close (CxfHandler.java:41)-close

Solution: add: weblogic.xml under the web-inf directory

True true

Summary: weblogic conflicts with custom jar. Add weblogic.xml to load the jar package under lib first.

After reading the above, do you have any further understanding of how to deal with the Cannot create a secure XMLInputFactory exception in weblogic after the successful release of CXF project tomcat? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report