Forum Discussion

uvarvu's avatar
uvarvu
New Contributor
5 years ago

Soap UI 5.6.0 tgz on Linux is broken [FIX INSIDE]

My solution to fix this to replace the xmlbeans-3.1.1-sb-fixed.jar in lib/ with xmlbeans-3.1.0.jar downloaded directly from Apache.  If you don't do this then soapui doesn't start, you'll see a nosuchmethoderror in the console.

  • uvarvu's avatar
    uvarvu
    New Contributor

    This is what you'll see if you don't replace the jar:

     

    uvarvu@crow:~/worktools/soapui/bin$ ./soapui.sh

    ================================
    =
    = SOAPUI_HOME = /home/uvarvu/worktools/soapui
    =
    ================================
    Configuring log4j from [/home/uvarvu/worktools/soapui/bin/soapui-log4j.xml]
    Exception in thread "AWT-EventQueue-0" java.lang.NoSuchMethodError: 'boolean org.apache.xmlbeans.XmlOptionsBean.isLoadDTDGrammar()'
    at org.apache.xmlbeans.impl.common.SAXHelper.saxFactory(SAXHelper.java:70)
    at org.apache.xmlbeans.impl.common.SAXHelper.newXMLReader(SAXHelper.java:46)
    at org.apache.xmlbeans.impl.store.Locale.getSaxLoader(Locale.java:3073)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1272)
    at org.apache.xmlbeans.impl.store.Locale.parseToXmlObject(Locale.java:1259)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:345)
    at org.apache.xmlbeans.impl.schema.SchemaTypeLoaderBase.parse(SchemaTypeLoaderBase.java:252)
    at com.eviware.soapui.config.SoapuiSettingsDocumentConfig$Factory.parse(SoapuiSettingsDocumentConfig.java:59)
    at com.eviware.soapui.DefaultSoapUICore.initSettings(DefaultSoapUICore.java:259)
    at com.eviware.soapui.SwingSoapUICore.initSettings(SwingSoapUICore.java:99)
    at com.eviware.soapui.DefaultSoapUICore.init(DefaultSoapUICore.java:141)
    at com.eviware.soapui.StandaloneSoapUICore.<init>(StandaloneSoapUICore.java:38)
    at com.eviware.soapui.SoapUI$SoapUIRunner.run(SoapUI.java:791)
    at java.desktop/java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:316)
    at java.desktop/java.awt.EventQueue.dispatchEventImpl(EventQueue.java:770)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:721)
    at java.desktop/java.awt.EventQueue$4.run(EventQueue.java:715)
    at java.base/java.security.AccessController.doPrivileged(AccessController.java:391)
    at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:85)
    at java.desktop/java.awt.EventQueue.dispatchEvent(EventQueue.java:740)
    at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:203)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:124)
    at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:113)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:109)
    at java.desktop/java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    at java.desktop/java.awt.EventDispatchThread.run(EventDispatchThread.java:90)

    • kks's avatar
      kks
      New Member

      Hello,

      so I downloaded xmlbeans-3.1.0.jar and moved it into lib folder. Same error. Deleted 3.1.1.jar, same error. Renamed xmlbeans-3.1.0.jar, same error.

      Since I have no time for this I will uninstall SoapUI again. Perhaps I'm missing something at this point but original post is from 07-22-2020. Enough time for developers to fix a messed up lib I guess. 

      • wololooo's avatar
        wololooo
        New Contributor

        It is sufficient to delete lib/xmlbeans-xmlpublic-2.6.0.jar which also carries XmlOptionsBean class. 

        There is no need to replace/delete xmlbeans-3.1.1-sb-fixed.jar