Forum Discussion

tom_13's avatar
tom_13
Contributor
14 years ago

java.lang.ClassNotFoundException on Win 7

Hi,
I cannot run script on soapUI 3.5.1 on Win 7
I got an error on running:
import groovy.sql.Sql
from groovy step.

There is an error:
java.lang.ClassNotFoundException:
java.lang.ClassNotFoundException:
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at groovy.sql.Sql.loadDriver(Sql.java:467)
at groovy.sql.Sql.newInstance(Sql.java:293)
at groovy.sql.Sql$newInstance.call(Unknown Source)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:137)
at Script1.run(Script1.groovy:15)
at com.eviware.soapui.support.scripting.groovy.SoapUIGroovyScriptEngine.run(SoapUIGroovyScriptEngine.java:93)
at com.eviware.soapui.support.scripting.groovy.SoapUIProGroovyScriptEngineFactory$SoapUIProGroovyScriptEngine.run(SourceFile:51)
at com.eviware.soapui.impl.wsdl.testcase.WsdlTestCase.runSetupScript(WsdlTestCase.java:850)
at com.eviware.soapui.impl.wsdl.panels.testcase.WsdlTestCaseDesktopPanel$SetupScriptGroovyEditorModel$1.actionPerformed(WsdlTestCaseDesktopPanel.java:571)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

This script successful executed on soapUI 3.5.1 on Win XP SP3

Thanks.

7 Replies

  • I have created JAVA_HOME variable with C:\Program Files\Java\jre6, but it does not help.
  • tom_13 wrote:
    I have created JAVA_HOME variable with C:\Program Files\Java\jre6, but it does not help.

    try jdk , not jre
  • testKrzysztofBober wrote:
    tom_13 wrote:
    I have created JAVA_HOME variable with C:\Program Files\Java\jre6, but it does not help.

    try jdk , not jre

    I have tried it too, it doesn't help. And I have not jdk folder, there is only jre6.
  • tom_13 wrote:
    testKrzysztofBober wrote:
    tom_13 wrote:
    I have created JAVA_HOME variable with C:\Program Files\Java\jre6, but it does not help.

    try jdk , not jre

    I have tried it too, it doesn't help. And I have not jdk folder, there is only jre6.

    Then install java 6 jdk (yes, its diffrent java than jre - as i known SOAPUI 3.5 requied java 6 jdk)
    http://www.oracle.com/technetwork/java/ ... index.html

    Install java 6 jdk and set JAVA_HOME - it should works fine.
  • testKrzysztofBober wrote:


    Install java 6 jdk and set JAVA_HOME - it should works fine.


    I did it, but nothing has been changed.
  • Maybe there is problem because my Win 7 is virtual?
    Can anybody help me? I don't know what to do.