Forum Discussion
Unga-bunga
5 years agoRegular Visitor
I got same issue when deploying mock as a .war to a tomcat on another host. Tried to change xmlbeans to 3.0.2 , 4.0.0, 3.1.0. Issue still was present.
So with xmlbeans-3.1.0.jar tomcat throw following exception:
javax.servlet.ServletException: Servlet.init() for servlet [SoapUIMockServlet] threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)
Root Cause
java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()Z org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70) org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46) org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3066) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272) org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259) org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345) com.eviware.soapui.config.SoapuiActionsDocumentConfig$Factory.parse(SoapuiActionsDocumentConfig.java:71) com.eviware.soapui.support.action.SoapUIActionRegistry.addConfig(SoapUIActionRegistry.java:142) com.eviware.soapui.support.action.SoapUIActionRegistry.<init>(SoapUIActionRegistry.java:136) com.eviware.soapui.DefaultSoapUICore.initActionRegistry(DefaultSoapUICore.java:584) com.eviware.soapui.DefaultSoapUICore.getActionRegistry(DefaultSoapUICore.java:576) com.eviware.soapui.DefaultSoapUICore.loadPlugins(DefaultSoapUICore.java:166) com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:145) com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:126) com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.<init>(MockAsWarServlet.java:317) com.eviware.soapui.mockaswar.MockAsWarServlet.init(MockAsWarServlet.java:71) javax.servlet.GenericServlet.init(GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)
When I changed xmlbeans-3.1.0.jar to xmlbeans-4.0.0.jar, then tomcat throw following exception:
javax.servlet.ServletException: Servlet.init() for servlet [SoapUIMockServlet] threw exception org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)
Root Cause
java.lang.NoSuchMethodError: org.apache.xmlbeans.XmlOptions.getUseSameLocale()Ljava/lang/Object; org.apache.xmlbeans.impl.store.Locale.getLocale(Locale.java:124) org.apache.xmlbeans.impl.store.Locale.newInstance(Locale.java:458) org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.newInstance(SchemaTypeLoaderBase.java:129) com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.newInstance(SoapuiSettingsDocumentConfig.java:45) com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:253) com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141) com.eviware.soapui.DefaultSoapUICore.<init>(DefaultSoapUICore.java:126) com.eviware.soapui.mockaswar.MockAsWarServlet$MockServletSoapUICore.<init>(MockAsWarServlet.java:317) com.eviware.soapui.mockaswar.MockAsWarServlet.init(MockAsWarServlet.java:71) javax.servlet.GenericServlet.init(GenericServlet.java:158) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) java.base/java.lang.Thread.run(Thread.java:835)
- sivabalan195 years agoNew Contributor
Any resolution for this issue ? I am still facing this. It would be nice if someone shares the fix.
Related Content
- 5 years ago
Recent Discussions
- 14 hours ago