Ok, I found that the right place to deploy is using jmx
DefaultDomain:service=EmbeddedTomcat. However, these deployments are not
persisted after restarting jboss w/ tomcat. How can these contexts be
persisted between server bounces?
Erik
----- Original Message -----
From: "epeterson" <[EMAIL PROTECTED]>
To: "jBoss" <[EMAIL PROTECTED]>
Sent: Thursday, January 11, 2001 11:36 PM
Subject: Re: [jBoss-User] Adding embeded tomcat contexts with JMX
> RE: [jBoss-User] Adding embeded tomcat contexts with JMXI get the same
error
> message when deploying to jboss 2.0 final using url:
> file:///D:/project/tomcat/webapps/examples/
>
> Is this expected behavior for Jboss? Per J2EE specification?
>
> Erik
>
>
> ----- Original Message -----
> From: Cook, Thomas
> To: 'jBoss'
> Sent: Thursday, January 11, 2001 10:10 PM
> Subject: RE: [jBoss-User] Adding embeded tomcat contexts with JMX
>
>
> Well, theoretically you would create a directory with a WEB-INF/web.xml
file
> in it, then go to the JMX adapter (port 8082), follow the link to the
> J2eeDeployer, then invoke the operation 'deploy' with the full URL of your
> context. You could then add servlets/pages at will.
> Unfortunately, when I try this (with PRE-2.1) I get the message:
> > The MBean [J2EE:service=J2eeDeployer] throws an MBeanException when
> calling [deploy]:
> > org.jboss.deployment.J2eeDeploymentException: Currently are only packed
> web.war archives supported.
> So I guess you can't do it.
> Your other option might be to create a WAR file with nothing in it except
> WEB-INF/web.xml and deploy that. JBoss will unpack it into tmp/deploy/*
(by
> default) and then you could add stuff there. Bit ugly, though, and won't
> survive a re-deploy or server restart.
> HTH
> Tom
> --
> Tom Cook
> Systems Development
> Australian Submarine Corporation
> Mersey Road
> Outer Harbour
> +61 8 8348 7645
> "From the instant I picked your book up, until the moment I put it down, I
> was convulsed with laughter. I fully intend to read it one day."
> - Groucho Marx
> -----Original Message-----
> From: epeterson [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, January 12, 2001 11:57 AM
> To: jBoss
> Subject: [jBoss-User] Adding embeded tomcat contexts with JMX
> What are the different ways to add tomcat contexts (when using embedded
> tomcat) and where to I find documentation about *how* to do it?
> I'm using embedded tomcat with jboss and want to add a context that allows
> "normal" tomcat operation of .jsp and html files--I just want to specify a
> directory where I can drop html and jsp pages. I'm sure I'll adding
servlet
> contexts will be important soon also.
> It looks like this can only be done through JMX since the server.xml file
is
> by-passed. How are contexts added through jmx? Is there an xml file to
edit?
> I saw some interesting pages when surfing the jmx port (8082 I think) but
> have no idea how to add a context there.
> Erik
>
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
>
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> List Help?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]