I have not worked with the JBoss3.0/Tomcat combo, but I have worked with the
JBoss3.0/Jetty combo and here is the way you do it.  It should be the same for
you.

You need to deploy an *.ear file that contains an application.xml file that maps
the context to a *.war file.  In the war file you put your html, servlet classes,
etc.

I've attached an ear file which provides 2 such mappings, one for the root "/",
and one for a context called "foo".  Thus, deploying this ear file allows you to
browse http://localhost:8080 and http://localhost:8080/foo.  Drop this into the
deploy directory and see if it works.  Assuming that it does, you should be able
to take it from there to add servlets, etc.

Greg Turner


Christopher Watson wrote:

> Hello group,
>
> This is my first posting, so please be gentle with me.
>
> I've just downloaded the JBoss-3.0.0_Tomcat-4.0.3 bundle.
>
> I've managed to get the template project compiled and deployed as per the
> quick start guide,
> the command line client works just fine.
>
> However, I'm not sure how to use the tomcat bit.
> I want to deploy my own non-EJB stuff in there too, specifically the Apache
> Cocoon XML-XSL offering.
>
> But try as I might all I get from the embedded catalina service is 'No
> Context configured to process this request' in the browser
> and a 'MAPPING configuration error for request URI ' in the
> server/default/log/server.log
>
> I've noticed the file server/default/deploy/tomcat4-service.xml
> If I try editing that, I can effective change the location of the server
> log, so I thought I was on the scent
> but I can't get it to take any notice of any <context> entries I put there.
>
> Should I be editing this file?
> To deploy a war, what do I need to do?
> I tried putting the tomcat examples.war file into /server/default/deploy. It
> says it's deploying it, but I can't get to it from the browser.
>
> Can anyone help me get started with this.
>
> Thanks,
>
> Christopher
>
> PS
>
> By the way ...
>
> I've also done much the same with JBoss-2.4.1_Tomcat-3.2.3 and the
> documentation-example sample works fine.
> It's web client work s fine too.
> If I put a war into it's deploy directory, it deployes it just fine.
> Also, the contexts in the webapps directory work fine too.
>
> It's just 3.0.0 that's beyond me.
>
> _______________________________________________________________
>
> Multimillion Dollar Computer Inventory
> Live Webcast Auctions Thru Aug. 2002 - http://www.cowanalexander.com/calendar
>
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user

--
Greg Turner

Tiburon Enterprise Systems
http://www.tiburon-e-systems.com
Box 1171
Tiburon, CA 94920
415-332-3363

Attachment: app.ear
Description: Binary data

Reply via email to