File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to set domain namin on jboss as 4.0.5

 
aida haslinda
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You have to deploy your application to root context. See this http://community.jboss.org/wiki/HowdoIoverridethewebcontextroot
 
aida haslinda
Ranch Hand
Posts: 36
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic