WebLogic Server Module Is Missing the XXX Class (Doc ID 1331887.1)

Last updated on NOVEMBER 05, 2016

Applies to:

Oracle Weblogic Server - Version: 10.0 and later   [Release: and later ]
Information in this document applies to any platform.

Symptoms

When a customer application relies on one of the jar files included in the WebLogic Server modules directory, sometimes that can fail. For example, a stack trace like the following may be seen:

####<7/04/2011 04:03:13 PM EST> <Info> <ServletContext-/LocationUtility> <219DW1S> <AdminServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <> <> <> <1302156193825> <BEA-000000> <[69]_[http://219DW1S:7001/LocationUtility/services/LocationUtility]_[Apr 7, 2011 4:03:13 PM EST]_[Error]_[LocationUtility]_[]_[Service failure]_[com/sun/xml/stream/XMLReaderImpl]_[]_[]_[com.example.miaware.ws.miAwareException: com/sun/xml/stream/XMLReaderImpl
  at com.example.miaware.ws.xls.XLSService.getErrorType(XLSService.java:311)
  at com.example.miaware.ws.xls.XLSService.perform(XLSService.java:237)
  at com.example.miaware.ws.xls.XLSService.perform(XLSService.java:159)
  at sun.reflect.GeneratedMethodAccessor708.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  at java.lang.reflect.Method.invoke(Method.java:585)
  at org.apache.axis.providers.java.RPCProvider.invokeMethod(RPCProvider.java:388)
  at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:283)
  at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:323)
  at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
  at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
  at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
  at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:453)
  at org.apache.axis.server.AxisServer.invoke(AxisServer.java:281)
  at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:699)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
  at org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)
  at com.example.emx.ws.axis.EMServlet.service(EMServlet.java:56)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
  at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
  at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
  at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
  at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
  at com.example.miaware.ws.xls.ConstraintFilter.doFilter(ConstraintFilter.java:84)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
  at com.example.miaware.http.Envinsa35Adapter.doFilter(Envinsa35Adapter.java:156)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
  at com.example.miaware.http.HTTPAdapter.doFilter(HTTPAdapter.java:95)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
  at com.example.emx.ws.EMFilterSecurity.doFilter(EMFilterSecurity.java:105)
  at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
  at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3368)
  at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
  at weblogic.security.service.SecurityManager.runAs(Unknown Source)
  at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2117)
  at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2023)
  at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1359)
  at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
  at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
Caused by: java.lang.NoClassDefFoundError: com/sun/xml/stream/XMLReaderImpl
  at com.sun.xml.stream.ZephyrParserFactory.getXMLStreamReaderImpl(ZephyrParserFactory.java:274)
  at com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFactory.java:165)
  at com.sun.xml.stream.ZephyrParserFactory.createXMLStreamReader(ZephyrParserFactory.java:148)
  at com.example.midev.xmlprot.read.XmlReaderImpl.<init>(XmlReaderImpl.java:73)
  at com.example.midev.xmlprot.read.XmlReaderImpl.<init>(XmlReaderImpl.java:39)

Re-building the jar file to include the missing class might appear to resolve the issue, but this is not recommended, because WebLogic Server itself relies on the modules to run properly. Altering these jar files is not sanctioned by Oracle/WebLogic support, and can cause further failures.


Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms