"Brian D. Brown" wrote:
> I have a question which should be simple to answer. I am trying to add a
> new web app to jetty, but I don't understand how to do it. Is there some
> automated mechanism to deploy the app, or do I have to edit some config file
> or something? Please explain how to do this with and without using virtual
> hosting.
>
> Thanks in advance.
>
> Brian
Firstly, this should be posted to [EMAIL PROTECTED] - being a Jetty
and not a Jboss question :-), but seeing as it's here, and it's bound to be
asked again.....
Is the webapp going to talk to EJBs ?
Yes - stick it in a ear and deploy via JBoss, either by copying it into
jboss/deploy (a hot-deploy) or via the JMX interface to the J2EEDeployer
(available on port 8082). The J2EEDeployer must be in charge, otherwise it
cannot coordinate the deployment of EJBs and WebApp - this means that they
won't share a common ClassLoader and this means that all calls between them
will result in serialisation and will not be optimised down to standard
function calls.
No - You could still stick it in an ear and deploy it via JBoss, or you can put
an entry into Jetty's config file - currently defaults to
jboss/conf/jetty/jetty.xml - this is the demo config. you need to insert
another entry that looks like this :
<Call name="addWebApplication">
<Arg>/jetty/*</Arg>
<Arg><SystemProperty name="jetty.home" default="."/>/webapps/jetty</Arg>
<Arg><SystemProperty name="jetty.home"
default="."/>/etc/webdefault.xml</Arg>
<Arg type="boolean">false</Arg>
</Call>
This translates into the Java :
jetty.addWebApplication("/jetty/*", System.getProperty("jetty.home",
".")+"/webapps/jetty", System.getProperty("jetty.home",
".")+"/etc/default.xml", false);
the args mean :
1 - the URL you want the webapp to deploy to - e.g. localhost:8080:/jetty
2 - where to find the webapp (in this case a dir, but could be a war - i.e. end
in war)
3 - where to find the webdefault.xml - default bindings for webapps - just copy
this - look in the file if you are interested
4 - whether to unpack the webapp (if it is a war) before running it - JSPs will
fail to compile if this is set to false and you deploy an archive
If you don't understand XML - then you are taking your life into your hands
going this route.
That's as clear as it gets !
Jules
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user