I can start my Tomcat but unable to access localhost through browser - tomcat8

I can start my Tomcat through startup.bat and also through tomcat8.exe without any error in log files or in the console but unable to access localhost through browser. When trying to open the localhost, it is showing connection timed out. However I tried to open it again by increasing the timeout in xml file of tomcat. But this didn't work.
I tried to reinstall it but still the problem persists.
I tried to access the localhost through the telnet but there also getting
Connection to Tomcat...Could not open connection to the host on the port : 9090 connect failed
Please help me out. Stuck in this matter for long time!!!
Logs created in localhsot.2016.04.17.log without any error.
Logs created in the Commons-daemons without any error.
However not getting any logs in the Manager and localhost_access logs may be because of the above issue.
Below environment variables set -
CATALINA_HOME : C:\Program Files\Apache Software Foundation\Tomcat 8.0
JAVA_HOME : C:\Program Files\Java\jdk1.8.0_77
PATH : C:\ProgramData\Oracle\Java\javapath;C:\oraclexe\app\oracle\product\11.2.0\server\bin;H:\app\atulranjan\product\12.1.0\dbhome_2\bin;H:\app\atulranjan\product\12.1.0\dbhome_1\bin;C:\Windows\System32;%PATH%;H:\Heroku\bin;C:\Program Files (x86)\git\cmd;C:\Program Files (x86)\Skype\Phone\;%PATH%;%JAVA_HOME%\jre\bin;%CATALINA_HOME%\bin;

Related

Testing OC4J's default configuration

I have installed Oracle Developer Suite 10g release 2(Complete), which leaded to installed standalone OC4J. Now I am trying to Testing OC4J's default configuration.
I started the OC4J instance through Start> Search for oc4j> clicked oc4j batch file. OC4J is initialized now.
According to the docs...
https://docs.oracle.com/cd/B14099_19/web.1012/b14361/config.htm#i1049203
I tried to test it by accessing http://localhost:8888/ from a Web browser.
Unfortunately, the result is...
localhost refused to connect.Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
According to the docs, I also tried...
http://localhost:8888/servlet/HelloWorldServlet, which should return a "Hello World" page.
Unfortunately, same result was produced...
localhost refused to connect.Try:
Checking the connection
Checking the proxy and the firewall
ERR_CONNECTION_REFUSED
I also tried starting the server using...
java -jar oc4j.jar
from J2EE>Home directory, and tried both links mentioned above...
http://localhost:8888/
and
http://localhost:8888/servlet/HelloWorldServlet
And the result was...
404 Not Found
Resource / not found on this server
and
404 Not Found
Resource /servlet/HelloWorldServlet not found on this server
respectively.
P.S. I have a static IP address.
What could be the cause for that?

Unable to start OHS component

Middleware: Oracle HTTP Server(OHS)
Version: 12.2.1.3
Configured Oracle HTTP Server(OHS) in standalone mode. Node manager is running perfectly. While starting "./startComponent.sh ohs1" i am getting the below error,
"""
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?
Error: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Unrecognized SSL message, plaintext connection?
"""
The solution found in internet is to changing the SecureListener to false in Nodemanager properties file.
When i did that i got the below error,
"""
weblogic.nodemanager.NMConnectException: Connection refused (Connection refused). Could not connect to NodeManager. Check that it is running at localhost/XXX.0.X.X:XXXX.
Error: Error occurred while performing nmConnect : Cannot connect to Node Manager. : Connection refused (Connection refused). Could not connect to NodeManager. Check that it is running at localhost/XXX.0.X.X:XXXX.
"""
And the solution for this is Setting the SecureListener to true in node manager properties file.
I am confused. Can someone help in resolving these errors?
Installed Oracle Access Manager(OAM) and OHS on same machine, but installed OHS in Standalone mode in different folder. After that, uninstalled OHS and Installed OHS in the same folder where i installed OAM, It worked.

outside redis connectivity issue installed on ec2 amzon linux

I am not able to connect with redis from outside, (connection refused error) which is installed on EC2 running on Amazon Linux, however, i am able to connect if I do it locally on the box (via redis_cli)
I have tried out the following to rectify the problem but no luck please see if anyone has an answer to this
changed config file and commented bind 127.0.0.1
changed config file and added bind 0.0.0.0
changed config file and made protection mode to off
made sure the ports are open in security group of EC2 Instance
built the redis on Amazon Linux to make sure the there is no binary issue

Apache directory studio 'Open connection' has encountered an error

I'm trying to set up Apache directory studio in my mac, but however when i try to create a connection i get this error "Apache directory studio 'Open connection' has encountered a problem".
I'm following this tutorial, http://directory.apache.org/studio/users-guide/ldap_browser/gettingstarted_create_connection.html. Any help is really appreciated.
A connection being refused will likely mean that either the address and port you are connecting to is being blocked or filtered for whatever reason, or nothing is running on the specified address and port.
I had the same issue with the error,
ldap: error code 49 - INVALID_CREDENTIALS: Bind failed
The cause for this issue is, I had changed the port from 10389 to 10390. Hence, it is trying to connect to old port.
When I changed the 'Connections' port to update value (Ex: 10390) and start the server, the issue resolved.

Intellij IDEA 13 and Glassfish 4 integration - Error: Admin port configuration not found

I have IntelliJ IDEA 13 and Glassfish 4. I created a new domain in Glassfish using command:
asadmin create-domain --portbase 10000 --nopassword test-domain
Then, in Intellij, I setup a run configuration for Glassfish specifying Server Domain: test-domain. On the bottom of the config dialog, it reports:
"Error: Admin port configuration not found."
I saw this post on SO: Admin port configuration not found' error while setting up Glassfish config in IntelliJ ...but I do find the port configured under:
/configs/config[#name='server-config']/network-config/network-listeners/network-listener[#protocol='admin-listener']/#port
as follows:
<network-listener port="10048" protocol="admin-listener" transport="tcp" name="admin-listener" thread-pool="admin-thread-pool"></network-listener>
I'm wondering if something changed in Intellij 13 or Glassfish 4 that has caused this issue to return? Or am I missing something?
Any help would be much appreciated.
To fix this, simply allow Read & Write privilege of your domain directory (whuch includes inner directories & files) to IntelliJ.
At least it works for my case. (Mac OS)