<div dir="ltr">Hi Arun,<div>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></div><div>Read more about it in the following link:<a href="https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshift">https://www.openshift.com/blogs/getting-started-with-port-forwarding-on-openshift</a></div><div><br></div><div>regards</div><div>\n\b</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 25, 2014 at 9:46 AM, Sebastian Ćaskawiec <span dir="ltr"><<a href="mailto:slaskawi@redhat.com" target="_blank">slaskawi@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hi Arun!<br>
<br>
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... <br>
<br>
However it should be easy to verify it by running:<br>
<i>"<font color="#006600">telnet <a href="http://javaee7-milestogo.rhcloud.com" target="_blank">javaee7-milestogo.rhcloud.com</a> 9990</font></i>"<br>
<br>
According to this thread:
<a href="https://www.openshift.com/forums/openshift/jboss-as7-management-in-openshift" target="_blank">https://www.openshift.com/forums/openshift/jboss-as7-management-in-openshift</a><br>
you should be able to forward ports to your local machine using "
<font color="#006600"><i>rhc port-forward app</i></font>"<br>
After that you could use localhost:9990<br>
<br>
The other way to solve it is to set up SSH port tunneling like that:<br>
<font color="#006600"><i>"ssh -L 9990:localhost:9990
<login>@<a href="http://javaee7-milestogo.rhcloud.com" target="_blank">javaee7-milestogo.rhcloud.com</a>"</i><i><br>
</i></font>After that try using localhost:9990<br>
<br>
Please let us know if any of those 2 solutions worked for you :)<br>
<br>
Best regards<span class="HOEnZb"><font color="#888888"><br>
Sebastian</font></span><div><div class="h5"><br>
<br>
<br>
<div>On 09/25/2014 02:39 AM, Arun Gupta
wrote:<br>
</div>
<blockquote type="cite">
<pre>Forwarding to a broader alias in case somebody can help.
---------- Forwarded message ----------
From: Arun Gupta <a href="mailto:arun.gupta@gmail.com" target="_blank"><arun.gupta@gmail.com></a>
Date: Wed, Sep 24, 2014 at 4:50 PM
Subject: Running an Arquillian test with WildFly on OpenShift
To: Farah Juma <a href="mailto:fjuma@redhat.com" target="_blank"><fjuma@redhat.com></a>, Brian Stansberry
<a href="mailto:brian.stansberry@redhat.com" target="_blank"><brian.stansberry@redhat.com></a>, Aslak Knutsen <a href="mailto:aslak@4fs.no" target="_blank"><aslak@4fs.no></a>, Grant
Shipley <a href="mailto:gshipley@redhat.com" target="_blank"><gshipley@redhat.com></a>
Trying to run a trivial Arquillian test from my local machine against
a WildFly instance hosted on OpenShift. Tried using
<a href="http://javaee7-milestogo.rhcloud.com" target="_blank">javaee7-milestogo.rhcloud.com</a>
127.7.102.129
${env.OPENSHIFT_WILDFLY_IP}
in arquillian.xml but keep getting:
JBAS012144: Could not connect to
http-remoting://<a href="http://javaee7-milestogo.rhcloud.com:9990" target="_blank">javaee7-milestogo.rhcloud.com:9990</a>. The connection
timed out
<a href="http://127.7.102.129:8080" target="_blank">127.7.102.129:8080</a> 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=<a href="http://jboss.org/schema/arquillian" target="_blank">"http://jboss.org/schema/arquillian"</a>
xmlns:xsi=<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">"http://www.w3.org/2001/XMLSchema-instance"</a>
xsi:schemaLocation=<a href="http://jboss.org/schema/arquillianhttp://jboss.org/schema/arquillian/arquillian_1_0.xsd" target="_blank">"http://jboss.org/schema/arquillian
http://jboss.org/schema/arquillian/arquillian_1_0.xsd"</a>>
<container qualifier="arquillian-wildfly-managed" />
<container qualifier="arquillian-wildfly-remote">
<configuration>
<!-- <property name="managementAddress">127.7.102.129</property> -->
<!-- <property name="managementAddress"><a href="http://javaee7-milestogo.rhcloud.com" target="_blank">javaee7-milestogo.rhcloud.com</a></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
--
<a href="http://blog.arungupta.me" target="_blank">http://blog.arungupta.me</a>
<a href="http://twitter.com/arungupta" target="_blank">http://twitter.com/arungupta</a>
</pre>
</blockquote>
<br>
</div></div></div>
<br>_______________________________________________<br>
wildfly-dev mailing list<br>
<a href="mailto:wildfly-dev@lists.jboss.org">wildfly-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/wildfly-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/wildfly-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br>\n\m<br>"camel is a horse made up in a laboratory"
</div>