Configure JMS for Websphere IBM MQ 9
Hello everyone, I´am trying to configure JMS for get connected to Websphere IBM MQ.The help does not give any clue how to connect to a remote queuemanager. It only points to a local installation, which I do not have and therefore I am missing the config-values/syntax of the values. I have to set: 1. Initial Context Class: 2. Provicer URL: 3. Connection Factory JNDI Name: I have tried it with: 1. initial.context.class.name=com.sun.jndi.fscontext.RefFSContextFactory 2. tcp://host:port/channel-name 3.connection.factory.name.template=com.ibm.mq.jms.MQQueueConnectionFactory When I test my JMS-Configuration I am getting an error like this: "Could not establish a JMS connection: javax.naming.InvalidNameException: tcp://XXX:2110/XXX [Root exception is java.net.MalformedURLException: unknown protocol: tcp]" Would be glad, if someone has an example for Webspere IBM MQ Regards, Florian448Views1like3CommentsService virtualization : Is it possible to use regular expression in resource path
We are using Ready API for service virtualization, is it possible to use regular expression in resource path, Ex : Get /services/data/v11.0/query Incoming request to the service will be http://{host}:{port}/services/data/v11.0/query?q=query parameter In the above v11.0 is dynamic and for few environments we get v10.0, so we would like to know is there any way to use regular expression in resource path? We tried using/services/data but this did not work.Solved360Views0likes2CommentsGroovy script for dynamic response in Readyapi
Our scope of need is to get a dynamic response if the user hits the API request incorrectly and they need to get different response. I have created in readyapi rest, soap, and jdbc protocols with static responses when the user wants to access the response, but when the user requests with payload incorrectly example ( wrong I'd -xxxxx) , they receive the same response from readyAPI. I would like to create script to handle dynamic response; could you please share an example?Solved190Views0likes3CommentsScripting in ReadyAPI Virtualization for Dynamic Mocks
Hey Everyone. I wanted to make a post about scripting in ReadyAPI Virtualization for the purpose of creating dynamic mocks. Scripted samples always help when I'm trying to achieve something, so I hope that these scripts will help guide you with dynamic mocks. I've primarily used two resources to learn how to work with dynamic mocks. The first is a support document for SoapUI OS. This page has a comprehensive overview on working with mock services and provides examples on how to accomplish various tasks when working with the virtual service scripts. https://www.soapui.org/docs/soap-mocking/creating-dynamic-mockservices/ The second resource that I've found to be useful is our documentation on Virtual service scripting.I find that this page is better than the previous one above at explaining the scripting objects that ReadyAPI uses. here:https://support.smartbear.com/readyapi/docs/virtualization/configure/scripting.html My intent here is to provide some scripted samples that I've worked on. I'd also like to hear if anyone has requests on scripted tasks with virtual services in ReadyAPI.615Views0likes2CommentsCan we modify the incoming request to a virtual service and route to a live API
I have couple of questions. 1. Is there anyway to modify incoming POST API request for a virtual service before routing to actual live API endpoint. 2. Also can we capture the response returned from the routed API , modify the same and manipulate the virtual service to return an updated virtual response.186Views0likes0CommentsIs there a way to store a global or project property inside a virtualized service response script?
I have a virtualized service that is running a script for it's response. Is there a way that I can store properties in that script so that they would be accessible inside groovy scripts inside the testing portion of the project instead of the virtualization portion? The issue I was running into was that testRunner is not accessible there. Normally that is what I would use to save properties.Solved573Views0likes9CommentsProblems with publishing API from war file
Hello everyone. Recently i started to play arround with SoapUI and later also with ReadyAPI. I quickly set up sonarqube server and was able to create Virtual Service based on some few requests. I disabled the sonarqube and tried to use the service alone - it worked as expected. Then i exported this service as WAR file. And tried to publish it with tomcat docker server. But i keep getting this error and when i go to browser i get 404 version: '3.9' version: '3.9' services: tomcat: image: tomcat:8 container_name: tomcat volumes: - "/mnt/c/PROJECTS/TMNA/soapui-war/war:/usr/local/tomcat/webapps" ports: - "8888:8080" $ docker logs tomcat NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 06-Oct-2023 09:03:34.951 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version name: Apache Tomcat/8.5.93 06-Oct-2023 09:03:34.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server built: Aug 23 2023 22:43:14 UTC 06-Oct-2023 09:03:34.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Server version number: 8.5.93.0 06-Oct-2023 09:03:34.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Name: Linux 06-Oct-2023 09:03:34.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log OS Version: 5.10.102.1-microsoft-standard-WSL2 06-Oct-2023 09:03:34.953 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Architecture: amd64 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Java Home: /opt/java/openjdk 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Version: 17.0.8.1+1 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log JVM Vendor: Eclipse Adoptium 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_BASE: /usr/local/tomcat 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log CATALINA_HOME: /usr/local/tomcat 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.lang=ALL-UNNAMED 06-Oct-2023 09:03:34.954 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.io=ALL-UNNAMED 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util=ALL-UNNAMED 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.base/java.util.concurrent=ALL-UNNAMED 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.config.file=/usr/local/tomcat/conf/logging.properties 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djdk.tls.ephemeralDHKeySize=2048 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.protocol.handler.pkgs=org.apache.catalina.webresources 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dorg.apache.catalina.security.SecurityListener.UMASK=0027 06-Oct-2023 09:03:34.955 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dignore.endorsed.dirs= 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.base=/usr/local/tomcat 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Dcatalina.home=/usr/local/tomcat 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -Djava.io.tmpdir=/usr/local/tomcat/temp 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.7.0]. 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [{4}]. 06-Oct-2023 09:03:34.956 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 06-Oct-2023 09:03:34.959 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 3.0.2 15 Mar 2022] 06-Oct-2023 09:03:34.986 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"] 06-Oct-2023 09:03:35.007 INFO [main] org.apache.catalina.startup.Catalina.load Initialization processed in 335 ms 06-Oct-2023 09:03:35.029 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina] 06-Oct-2023 09:03:35.029 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/8.5.93] 06-Oct-2023 09:03:35.047 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/tomcat/webapps/soap.war] 06-Oct-2023 09:03:35.064 INFO [localhost-startStop-1] org.apache.catalina.startup.ExpandWar.expand An expanded directory [/usr/local/tomcat/webapps/soap] was found with a last modified time that did not match the associated WAR. It will be deleted. 06-Oct-2023 09:04:21.937 SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@59c08549] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:130) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:161) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:696) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4554) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4692) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:710) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:687) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.IllegalArgumentException: java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:140) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) ... 16 more Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209) at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:241) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:137) ... 17 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:206) ... 19 more Caused by: java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1633) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1641) at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1479) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1441) at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:718) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:252) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:181) at java.base/java.util.jar.JarFile.<init>(JarFile.java:346) ... 24 more 06-Oct-2023 09:04:21.938 SEVERE [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Error deploying web application archive [/usr/local/tomcat/webapps/soap.war] java.lang.IllegalStateException: Error starting child at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:714) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:687) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:661) at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1016) at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1903) at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.JarResourceSet@59c08549] at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:130) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:161) at org.apache.catalina.webresources.StandardRoot.startInternal(StandardRoot.java:696) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.StandardContext.resourcesStart(StandardContext.java:4554) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:4692) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:171) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:710) ... 9 more Caused by: java.lang.IllegalArgumentException: java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:140) at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:127) ... 16 more Caused by: java.io.IOException: java.lang.reflect.InvocationTargetException at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209) at org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:241) at org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.initInternal(AbstractSingleArchiveResourceSet.java:137) ... 17 more Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) at org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:206) ... 19 more Caused by: java.util.zip.ZipException: zip END header not found at java.base/java.util.zip.ZipFile$Source.findEND(ZipFile.java:1633) at java.base/java.util.zip.ZipFile$Source.initCEN(ZipFile.java:1641) at java.base/java.util.zip.ZipFile$Source.<init>(ZipFile.java:1479) at java.base/java.util.zip.ZipFile$Source.get(ZipFile.java:1441) at java.base/java.util.zip.ZipFile$CleanableResource.<init>(ZipFile.java:718) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:252) at java.base/java.util.zip.ZipFile.<init>(ZipFile.java:181) at java.base/java.util.jar.JarFile.<init>(JarFile.java:346) ... 24 more 06-Oct-2023 09:04:21.941 INFO [localhost-startStop-1] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/tomcat/webapps/soap.war] has finished in [46,894] ms 06-Oct-2023 09:04:21.944 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"] 06-Oct-2023 09:04:21.951 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 46943 ms I tried with latest, 9 and 8 versions of tomcat I also exported UI to SoapUI. Again - it worked inside the application but .war file did not work. BTW: Your documentation lacks some basic information. Like i was really confused that i could not find any option related to "Discover API" in SoapUI. For example please take a look on gitlab's documentation - each topic has tags indicating which version (free, paid, cloud etc) particular section is applicable to.371Views0likes0Comments