This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes JBoss/WildFly and the fly likes JBOSS Tomcat static web pages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Bookmark "JBOSS Tomcat static web pages" Watch "JBOSS Tomcat static web pages" New topic
Author

JBOSS Tomcat static web pages

Stanley Beamish
Greenhorn

Joined: Mar 24, 2004
Posts: 9
Hello,

Is there a way to get tomcat running on JBOSS to dole out static html pages (I can only do this so far by sticking them in a web app's war file). I'm thinking of something similar to the use of the htdocs directory in tomcat running without JBOSS.

Cheers,
SB
B Wiley Snyder
Ranch Hand

Joined: Nov 26, 2003
Posts: 50
If you just want static html pages use apache2 web server. You can run static html in tomcat just fine but you don't need jboss, just tomcat.
Stanley Beamish
Greenhorn

Joined: Mar 24, 2004
Posts: 9
Um - and if I want Jboss services *and* static html pages?
Stanley Beamish
Greenhorn

Joined: Mar 24, 2004
Posts: 9
... in case I didn't explain myself - I have a J2EE app, and one of the components of the app creates an RSS feed and I want to stick it somewhere in the server so that it can be picked up by a reader (such as NewzCrawler). So ideally, I need an app server (JBOSS) and the ability to create static html pages (although in this case it's an XML file).

Thanks for your patience.
SB
Eric Schumacher
Greenhorn

Joined: Jun 02, 2004
Posts: 20
You can create an exploded directory rather than use a war file. In the JBoss deploy directory create a folder called "somename.war" and include a basic web.xml etc. Your pages will be <server>/somename/test.htm. The thing that got me the first time is the need to use a folder name with .war.
[ December 22, 2004: Message edited by: Eric Schumacher ]
 
GeeCON Prague 2014
 
subject: JBOSS Tomcat static web pages