Validation Issue using SoapUI

classic Classic list List threaded Threaded
16 messages Options
Reply | Threaded
Open this post in threaded view
|

Validation Issue using SoapUI

edsalvador
I downloaded and installed SoapUI 5.1.3.
I loaded the CONNECT Validation Suite.
I copied FileUtils-4.4.1.jar and mysql-connector-java-5.1.10.jar to:
C:\Program Files\SmartBear\SoapUI-5.1.3\lib  
C:\Program Files\SmartBear\SoapUI-5.1.3\bin\ext

I edited the Custom Properties -
GatewayPropDir = C:\jboss-as-7.1.1.Final\modules\org\connectopensource\configuration\main

I ran TestSuite  g1
 
I am receiving the following in the global-groovy.log
 
2015-05-04 14:57:32,204 INFO  [log] Start backupConfiguration
2015-05-04 14:57:32,204 ERROR [log]
2015-05-04 14:57:32,204 INFO  [log] End backupConfiguration
2015-05-04 14:57:32,205 INFO  [log] copying property file from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\uddiConnectionInfo_g1.xml to \uddiConnectionInfo.xml
2015-05-04 14:57:32,206 INFO  [log] File uddiConnectionInfo_g1.xml copied to uddiConnectionInfo.xml.
2015-05-04 14:57:32,206 INFO  [log] copying property file from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\internalConnectionInfo_g1.xml to \internalConnectionInfo.xml
2015-05-04 14:57:32,207 INFO  [log] File internalConnectionInfo_g1.xml copied to internalConnectionInfo.xml.
2015-05-04 14:57:32,235 INFO  [log] begin ReadProperty; directory='';filename='gateway.properties';key='admindist.inboundAdminDist';
2015-05-04 14:57:32,235 ERROR [log] \gateway.properties (The system cannot find the file specified)
2015-05-04 14:57:32,235 INFO  [log] Passthrough property value = null
2015-05-04 14:57:42,302 INFO  [log] Start restoreConfiguration
2015-05-04 14:57:42,303 INFO  [log] End restoreConfiguration
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

christophermay07
For some reason, it's not picking up the value you entered for GatewayPropDir.  I'd like to see if it loaded the other preconfigured variables -- when you check the Custom Properties at the project level, do you see Name/Value pairs loaded from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\ConnectValidation-soapui-project.properties ?  If you do see them, can you also verify that the GatewayPropDir value hasn't somehow been reset at any point?

Let me know what you find, and we can work from there.
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
This is what I have found thus far:
The Name/Value pairs are being loaded from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\ConnectValidation-soapui-project.properties.

I select the GatewayPropDir entry under the Custom Properties tab. (I make sure it is set to C:\jboss-as-7.1.1.Final\modules\org\connectopensource\configuration\main).
I then launch TestRunner and select TestSuite  g1.
I monitor the GatewayPropDir value during the run and the value does not change.

I repeat the above for Testsuite  g0.

I am still receiving : (in the global-groovy.log)
 
2015-05-05 12:27:49,314 INFO  [log] copying property file from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\uddiConnectionInfo_g0.xml to \uddiConnectionInfo.xml
2015-05-05 12:27:49,314 INFO  [log] File uddiConnectionInfo_g0.xml copied to uddiConnectionInfo.xml.
2015-05-05 12:27:49,315 INFO  [log] copying property file from F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\internalConnectionInfo_g0.xml to \internalConnectionInfo.xml
2015-05-05 12:27:49,315 INFO  [log] File internalConnectionInfo_g0.xml copied to internalConnectionInfo.xml.
2015-05-05 12:27:49,349 INFO  [log] begin ReadProperty; directory='';filename='gateway.properties';key='admindist.inboundAdminDist';
2015-05-05 12:27:49,349 ERROR [log] \gateway.properties (The system cannot find the file specified)
2015-05-05 12:27:49,349 INFO  [log] Passthrough property value = null
2015-05-05 12:27:59,396 INFO  [log] Start restoreConfiguration
2015-05-05 12:27:59,398 INFO  [log] End restoreConfiguration

As you can see from the first line SoapUI is copying property file from the wrong location.
SoapUI seems to get the property value from the Project Summary File Path. (This is also the "File" value under the Project Properties tab).
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I edited:
F:\CONNECT\CONNECT-Direct-4.4.1-JBOSS\ValidationSuite\ConnectValidation-soapui-project.properties
and hard coded the GatewayPropDir Name to C:jboss-as-7.1.1.Finalmodulesorgconnectopensourceconfigurationmain

I then closed and reopened SoapUI.
I reran  both Test Suites.
The test suites completed with the message:
 Execution finished with error Code -1.
 Please check log for error messages.

I am researching the error log.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

christophermay07
If you hard-code the path in the properties file, I believe you need to escape all backslashes, e.g.:

C:\\jboss-as-7.1.1.Final\\modules\\org\\connectopensource\\configuration\\main

In the meantime, let me know if you discover anything else from the error log.

Regards,
Chris May
CONNECT Product Team
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
There are 3 log files for SoapUI:
 global-groovy.log

soapui.log

soapui-errors.log

I have attached the logs:

global-groovy.log

soapui.log

soapui-errors.log

Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I made the change you suggested to the path for GatewayPropDir and then reran the Test Suite.
The logs reflect the run AFTER the path change to GatewayPropDir.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

christophermay07
From the logs:

C:\jboss-as-7.1.1.Final\modules\org\connectopensource\configuration\main \gateway.properties (The system cannot find the path specified)

It looks like there is a trailing space at the end of GatewayPropDir -- can you remove that and run the tests again?

Regards,
Chris May
CONNECT Product Team
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
Removed the trailing space and reran the Test Suite.
Logs attached.

Thanks,global-groovy.log

soapui.log

soapui-errors.log

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

christophermay07
The requests are now going out, but JBoss is throwing back a 404 response. This likely means that CONNECT didn't start when JBoss did.  Check if the CONNECT deployment is "enabled" in JBoss -- if not, enable and watch the JBoss logs to make sure no errors are preventing it from enabling.  If it's already enabled, see if there are any startup exceptions.

Once the deployment is enabled, you can run a quick smoke test on any given unsecured endpoint by hitting the WSDL directly via the browser, e.g.:

http://localhost:8080/Gateway/DocumentSubmission/2_0/EntityService/EntityDocSubmissionUnsecured?wsdl

Regards,
Chris May
CONNECT Product Team
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I rebooted the server and restarted JBOSS.
I ran your smoke test and it failed.
I checked the JBOSS server.log and it seems that not everything is starting correctly.
I have attached the JBOSS server.log.
Can you please review and check if you can see why there are issues?

Thanks,

server.log

Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

christophermay07
I'm not seeing anything in the log that indicates an issue with CONNECT configuration. If there's an issue with the JBoss setup, the Admin Console can work even if deployments fail otherwise.  I suggest troubleshooting that first, starting with looking in the log for environment- or JBoss- specific errors.

Regards,
Chris May
CONNECT Product Team
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I ran the following in the browser:
http://localhost:8080/Gateway/DocumentSubmission/2_0/EntityService/EntityDocSubmissionUnsecured?wsdl 

It failed. Here is the screenshot:


I have also attached the JBOSS server.log.

server.log

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I found and resolved a port conflict on port 8181.
However, I am still receiving the same error as above.
I have attached the JBOSS server.log.
Can you please review to see if you can find any other issues?
Or, point me in the direction to resolve this issue?

server.log

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
In standalone.xml, I made  the following change:
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.0">
    <deployment-scanner scan-interval="5000" relative-to="jboss.server.base.dir" path="deployments" <b>deployment-timeout="1000" />
</subsystem>
 * I added -  deployment-timeout="1000"
Now, when I run http://localhost:8080/Gateway/DocumentSubmission/2_0/EntityService/EntityDocSubmissionUnsecured?wsdl in the browser, I get:



Any suggestions?

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: Validation Issue using SoapUI

edsalvador
I have checked and worked the JBOSS server.log file and there are no more ERROR line segments.
However, there remain some WARN segments that reference CONNECT.

I have rerun the SoapUI tests and am still receiving errors.

I have attached the JBOSS server.log and SoapUI soapui-errors.log files.

I am at a standstill and would like guidance on how to proceed.
Any assistance would be appreciated.

Thanks,

server.logsoapui-errors.log