I have installed Glassfish application server Openshift cloud servers. I can only use :8080 port because of Openshift restrictions. It won't let me run admin console on :4848 port and I will somehow configure datasource, file realm and security realm manually from configuration files.
a-) Is it possible to do configuration without the admin console?
b-) Can admin console run on :8080 port along with applications?
Note: It is not possible to allocate any port for admin console Openshift won't let me do it.
Thanks
a) You can configure Glassfish with the asadmin tool
b) You can change the port for the admin console in glassfish/domains/[yourdomain]/config/domain.xml: search for
<network-listener port="4848" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
But I doubt it is possible to use port 8080 for admin gui AND other applications.
Related
I have created a new OpenShift account for a new application I'm developing.
I have added a MongoDB cartridge for the database, and a Tomcat cartridge for the Java web application.
I now need to connect to the database from my Java web app, but I miss two authentication details:
$OPENSHIFT_MONGODB_DB_HOST
$OPENSHIFT_MONGODB_DB_PORT
As far as I know, I have to type rhc env list -a the_name_of_my_app in the console, but my application seems to have no environment variables set.
What can I do?
Apparently, the default enironment variables are visible only via ssh.
In order to see them, you have to type rhc ssh <appid-as-seen-on-openshift-console> followeb by env.
you can see environment variables by doing ssh to openshift. Also you can use openshift port forwarding feature to setup a connection locally to your database.
Openshift blog link for port forwarding
I have the solution working on a local environment. The problem is when the application outside the EAP gear tries to connect to the Stomp port.
How can I expose the new port for STOMP on Openshift online to another application on my openshift domain?
You would not be able to expose the STOMP port for public use, though you could do a port forward from your local workstation to use it. The only ports that are available publicly on OpenShift are 80/443/8000/8443
I create a diy Appliation and add a mysql cartridge and bind it to the port 8080.Is it possible to access outside the network through domain? I have a little idea about the routing
system.
I am not very sure what you want here. But you can use putty in your local machine to connect to Openshift mysql.
Thank you
You can use port forwarding using the 'rhc' command line or using the OpenShift Tooling in JBoss Tools. In both case, you'll have a set of local sockets to connect to, and it will forward commands to the remote 3306 port on your OpenShift gear, so you can run MySQL/SQL commands on your database.
I'm installing teamcity on a windows server 2008 box running iis7. I'm using the windows installer supplied by jetbrains. I've configured the servers to run under a domain account which has been given full control of the build & config directories. The services are configured to use unused ports (tomcat 14142 & build agent: 9090). whenever I connect to the tomcat instance from a machine other than the server I am prompted for credentials. None of the credentials I would expect work. How can I make this prompt for credentials go away?
This was resolved by changing the port number.
I try to use the IBM Websphere $AdminApp (and the Ant tasks) to install/update an application EAR on a remote server. You may want to read this question too.
Manual process
I open a jython console with this command line:
$was61profile1\bin$> wsadmin.bat -lang jython -host MYHOST -port 32092
After that I want to list all applications:
wsadmin>AdminApp.list()
WASX7015E: Exception running command: "$AdminApp list"; exception information:
com.ibm.ws.scripting.ScriptingException: WASX7206W: The application management service is not running. Application management commands will not run.
I think the message here is clear: The application management service is not running.
How to enable the Application Management Service?
I did search for documentation on the horrible, horrible IBM website. I also tried to click through the configuration options on the Websphere admin pages. But I can't find anything remotely close to application management service. I do that clicking again with english language settings now, but I'd appreciate if someone can point me to the configuration option or the documentation.
Crap, I was connected to the wrong port. If you want to use AdminApp.list() you have to connect to the deployment manager (abbreviated as DMGR). I restarted my console with
*WAS_HOME*\profiles\was61profile1\bin>wsadmin.bat -lang jython -host MYHOST -port 32003
and then I could list installed applications via AdminApp.
Make sure you go to the Websphere Administration console web interface and go to System configuration -> Deployment manager and check the list of Ports on the right hand side of the page. There is a port for SOAP_CONNECTOR_ADDRESS and that is what you need to use for the console.