[wildfly-dev] Fwd: Running an Arquillian test with WildFly on OpenShift

Nick Mpallas mpallas at gmail.com
Thu Sep 25 04:01:36 EDT 2014


Hi Arun,
I think in openshift you need to enable port forwarding in order to have
access to the server. By default that isn't enabled. There is this command
: rhc port-forward -a <name_of_application>
Read more about it in the following link:
https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshift

regards
\n\b

On Thu, Sep 25, 2014 at 9:46 AM, Sebastian Łaskawiec <slaskawi at redhat.com>
wrote:

>  Hi Arun!
>
> I think I've seen somewhere that this port is not exposed to the outside
> world. I'm sorry, but I can't find exact link right now...
>
> However it should be easy to verify it by running:
> *"telnet javaee7-milestogo.rhcloud.com
> <http://javaee7-milestogo.rhcloud.com> 9990*"
>
> According to this thread:
> https://www.openshift.com/forums/openshift/jboss-as7-management-in-openshift
> you should be able to forward ports to your local machine using " *rhc
> port-forward app*"
> After that you could use localhost:9990
>
> The other way to solve it is to set up SSH port tunneling like that:
> *"ssh -L 9990:localhost:9990 <login>@javaee7-milestogo.rhcloud.com
> <http://javaee7-milestogo.rhcloud.com>"*
> After that try using localhost:9990
>
> Please let us know if any of those 2 solutions worked for you :)
>
> Best regards
> Sebastian
>
>
>
> On 09/25/2014 02:39 AM, Arun Gupta wrote:
>
> Forwarding to a broader alias in case somebody can help.
>
>
> ---------- Forwarded message ----------
> From: Arun Gupta <arun.gupta at gmail.com> <arun.gupta at gmail.com>
> Date: Wed, Sep 24, 2014 at 4:50 PM
> Subject: Running an Arquillian test with WildFly on OpenShift
> To: Farah Juma <fjuma at redhat.com> <fjuma at redhat.com>, Brian Stansberry<brian.stansberry at redhat.com> <brian.stansberry at redhat.com>, Aslak Knutsen <aslak at 4fs.no> <aslak at 4fs.no>, Grant
> Shipley <gshipley at redhat.com> <gshipley at redhat.com>
>
>
> Trying to run a trivial Arquillian test from my local machine against
> a WildFly instance hosted on OpenShift. Tried using
> javaee7-milestogo.rhcloud.com
> 127.7.102.129
> ${env.OPENSHIFT_WILDFLY_IP}
>
> in arquillian.xml but keep getting:
>
> JBAS012144: Could not connect to
> http-remoting://javaee7-milestogo.rhcloud.com:9990. The connection
> timed out
> 127.7.102.129:8080 is timing out as well.
>
> Hostname to IP address mapping is giving: 107.21.74.39. Tried that and
> didn't work.
>
> Here is my arquillian.xml:
>
> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
> <arquillian xmlns="http://jboss.org/schema/arquillian" <http://jboss.org/schema/arquillian>
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" <http://www.w3.org/2001/XMLSchema-instance>
> xsi:schemaLocation="http://jboss.org/schema/arquillian
> http://jboss.org/schema/arquillian/arquillian_1_0.xsd" <http://jboss.org/schema/arquillianhttp://jboss.org/schema/arquillian/arquillian_1_0.xsd>>
> <container qualifier="arquillian-wildfly-managed" />
> <container qualifier="arquillian-wildfly-remote">
> <configuration>
> <!-- <property name="managementAddress">127.7.102.129</property> -->
> <!-- <property name="managementAddress">javaee7-milestogo.rhcloud.com</property>
> -->
> <property name="managementAddress">107.21.74.39</property>
> <property name="managementPort">9990</property>
> </configuration>
> </container>
> </arquillian>
>
> I can run the test fine against a local WildFly instance.
>
> Any suggestions ?
>
> Arun
>
> --http://blog.arungupta.mehttp://twitter.com/arungupta
>
>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>



-- 
\n\m
"camel is a horse made up in a laboratory"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20140925/00d85d29/attachment.html 


More information about the wildfly-dev mailing list