aspose file tools*
The moose likes JBoss/WildFly and the fly likes how to set domain namin on jboss as 4.0.5 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "how to set domain namin on jboss as 4.0.5" Watch "how to set domain namin on jboss as 4.0.5" New topic
Author

how to set domain namin on jboss as 4.0.5

aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
Dear Friends,
i had devloped an web application in J2EE. I want to launch it as a website.
how to configure the domain name in JBOSS. b'coz in jboss -
we can access website as follows: http://mycompany.com:2910/APPS web-refers war file, which is the web application developed in j2ee.
i want to access the site by entering the web address only.
i.e: http://mycompany.com.


what have i done was:
1.get a registered domain name, mycompany.com
2. change jboss port in server/default/deploy/jbossweb-tomcat50.sar/server.xml to port 80( default http port)
3. in apps dir web.xml, i change


but its not redirect to the war file.

Really appreciate fr the help
Thanks in Advance,
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 9327
    
109

You have to deploy your application to root context. See this http://community.jboss.org/wiki/HowdoIoverridethewebcontextroot


[My Blog] [JavaRanch Journal]
aida haslinda
Ranch Hand

Joined: Jun 10, 2010
Posts: 36
Thanks Jai,
i successful to access my website , mycompany.com via internal network.
But after the port forwarding (so that mycompany.com could be access by user on outside network) ..

12.34.56.78:port ...the page redirect to JBoss home.

what have i done was:

1. add this codes in server.xml



In C:\jboss-4.0.5.GA\server\default\deploy\company.war\WEB-INF

<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE jboss-web
PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN"
"http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">

<jboss-web>

<context-root>/</context-root>
<virtual-host>test</virtual-host>
</jboss-web>


really appreciate for the help
Thanks in Advance



 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to set domain namin on jboss as 4.0.5
 
Similar Threads
Probems in web.xml while migrating from Jboss-5.0.0Beta1 to Jboss-5.1.0GA
getting error when deploying web app in weblogic 10.0
struts1
Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext
Using Vaadin and Struts 1 together