• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to set domain namin on jboss as 4.0.5

 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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



 
reply
    Bookmark Topic Watch Topic
  • New Topic