this application should come up by default (That means, we should get rid of /MySearch/SearchTopic
and also the port number. I already have an IP address that maps to www.mysearch.com
Thanks in advance
Follow us on facebook:
Tushar J Kandalgaonkar
Joined: Mar 11, 2011
I'm able to deploy our application as default application now. As we are deploying our application as EAR file
I change the context path in application.xml as <context-root>/</context-root> and also updated the URL pattern in application web.xml to <url-pattern>/</url-pattern> from <url-pattern>/SearchTopic <url-pattern>
Now the issue we are facing
#1 On the Target server one application( deploy on different application server) is already
listening on port 80, so now requirment is that we have to configure our application on 8080 and it should be access with out specifying the port number in the URL like
You cannot bind two services for a same port for an IP address, however you can try configuring a Network Interface Card (NIC) where you can have two different IP addresses for the same machine.
If you want to bind to a specific network interface card (NIC), use
-bind_addr <IP-Address>, where <IP-Address> is the IP address of the NIC to which you want to bind. Use this parameter in both the sender and the receiver.
The request.getContextPath() would return ''" empty if the default context root is '/' according to the J2EE specs as the container does not decode this string.