This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Svelte and Sapper in Action and have Mark Volkmann on-line!
See this thread for details.
Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

how to set domain namin on jboss as 4.0.5

 
Ranch Hand
Posts: 36
  • 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,
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • 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
  • 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



 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
the value of filler advertising in 2020
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic