Unable to connect to Tomcat server with URL - java

I can connect to my tomcat7 server using IP address but when I replace IP Address with my URL, I'm unable to connect to the host.
Error Message displayed:
This web page is not available
ERR_CONNECTION_REFUSED
The website may be down or your network may not be properly configured.

Try add pair host_ip host_name to host's file in your compruter.

Related

Host Ip binding failed

I am trying to connect my genymotion emulator to my localhost. After reading an article I got to know that my emulator is running on virtual host so I need to run my application in the same network
So emulator is on ip 192.168.20.101 So I tried to keep my server on 192.168.20.5
I am using dropwizard server. I got an error java.net.BindException: Cannot assign requested address: bind
I used following code to change my yml file
server:
applicationConnectors:
- type: http
bindHost: 192.168.20.5
port: 8090
adminConnectors:
- type: http
bindHost: 192.168.20.5
port: 8091
I am not sure you can bind IP in inside VirtualBox network. What you can do is configure your device to run in bridge mode, like this:
This way the device runs in the same network as your host, so you can easily access localhost or other machines.

Request Connection refused in two web apps in a server

I deploy two web apps in the same jetty in a server, AppA and AppB.
AnyOne in the WWW can access the two apps by the Domain mapped to the IP address of the server www.name.com/appA and www.name.com/appB.
The port of jetty is 8080.
The reason why we can access the app by www.name.com.appA in the port 80 is that I have mapped the outer Internet port 80 to the port 8080 in the inner server.
I need to access the data of the appA in the appB, just in a HTTP request like www.name.com/appA/requestXXX, but it fails with
org.apache.http.conn.HttpHostConnectException: Connect to name.com:80
[name.com/xx.xx.xxx.xxx] failed: Connection refused.

connect to msql db using name rather the ip address using tablet

I am trying to connect to a msql db using tablet
my connection string is such like
connString ="jdbc:jtds:sqlserver://10.0.0.28:1433/foodserv;user=align;password=alignminds;";
it work fine .
Now i want to connect to the db using name of the server Like ip 10.0.0.28 has server name suresh-pc
Then how the string will change
my point is to replace ip with name and i am connection using tablet
Server name is nothing but an alias for the IP of a host. If you use the server's name insted of IP the DNS server will resolve its ip for you. Check the link for ho DNS works http://www.howstuffworks.com/dns.htm. So simply replace the IP with server's name.

tomcat 7 change localhost to ip address/hostname

I have deployed tomcat 7 on unix server. Application is working properly in its internal text mode browser which is elinks.
My server ip is 190.0.0.1 and hostname is test123. In elink i entered the URL http://localhost:9999/Test, then the application is working properly.
But whenever i tried to access the application hitting URL http://190.0.0.1:9999/Test, than it is not working. I checked the logs there is no error message in it.
May be some configuration issue i have to change but dont know which?
Please issue hostname -i in your unix box to get the ip address of your machine. Example:
[ssivan#wsapp403p.prod.ch4 conf]$ hostname -i
10.236.55.42
Then you can try with that ip address. Example:
http://10.236.55.42:9999/Test

Eclipse Tomcat Depolyer plug in error

I downloaded Tomcat Deployer
so i could deploy remotely to my tomcat server, when insert all the correct details it ask for such as:
Manager URL
Username/Password
URL of sync App
when i try to deploy i keep getting this error:
Failed to deploy: com.caucho.hessian.client.HessianRuntimeException: java.net.ConnectException: Connection refused: connect
Projecct [HFJSe] deploy completed.
And nothing is deployed.
If there anything i need to do on my Tomcat server?
The error states that the target machine is refusing the connection, so you'll need to check the following information:
The URL is correct (I know you've stated it, but the URL should be in the format of http://{host}:{port}/TomcatHelper (from what I understand in the documentation)
That if there is a configuation file, that the port is configured appropriately
The target server has that port open to accepting connections
Your username and password is correct
If your "remote" server is on the same local machine, use your loopback address (i.e. localhost

Categories

Resources