Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 90278 invoked from network); 30 Jul 2008 13:56:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Jul 2008 13:56:20 -0000 Received: (qmail 15869 invoked by uid 500); 30 Jul 2008 13:56:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 15843 invoked by uid 500); 30 Jul 2008 13:56:07 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 15832 invoked by uid 99); 30 Jul 2008 13:56:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 06:56:07 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of olivier.verges@gmail.com designates 209.85.200.172 as permitted sender) Received: from [209.85.200.172] (HELO wf-out-1314.google.com) (209.85.200.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 30 Jul 2008 13:55:13 +0000 Received: by wf-out-1314.google.com with SMTP id 25so20178wfc.12 for ; Wed, 30 Jul 2008 06:55:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type; bh=xLo6sfQ6LJqr+SN8b4p/ilDMXxE3hb3V3ztgzznOr58=; b=XILVP0hjcX29lMA5DeKkb5Ynv2NSjmDWWcUBOELcccERfNY5t1uuSpREWBxPkDsJ2/ 1ZsfsG8+JXHu4t+nZ0UuNWF+vOdzfRFJpdn+CBsFPBd6WExeApFM0bvoL4TfzkthxBUh PenqnkyoJ7BccrgRuRpHXO0GWqnF5eBpVw3f4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=iqcUJoOxnFpGrHEydbSmhnVmV0ZQ+3WPv7ezOKgW6jRwg/8mjm/9qZSJJ/Y33tbfTj 1hmGc32qh/ruh70mIGvqxAMRAi5zUEvMKpuOcQ00MeZIqoc4gUFJo86Je7H7f/1sa6Ck YtkWJVIwlGjOTGCe9YFOQxjptu4yqen8FiNP0= Received: by 10.142.246.19 with SMTP id t19mr2685366wfh.55.1217426139341; Wed, 30 Jul 2008 06:55:39 -0700 (PDT) Received: by 10.142.233.3 with HTTP; Wed, 30 Jul 2008 06:55:39 -0700 (PDT) Message-ID: <575c33250807300655k26c65bbbx2ce0ec42e8c0839d@mail.gmail.com> Date: Wed, 30 Jul 2008 15:55:39 +0200 From: "=?ISO-8859-1?Q?Olivier_Verg=E8s?=" To: "Tomcat Users List" Subject: adding a virtual host with jmx MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_73726_23145390.1217426139335" X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_73726_23145390.1217426139335 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline hi all, I'm creating a web application for auto deploying virtual host through apache and tomcat on a production server. Everything is ok except for the Tomcat part: As tomcat can't be reloaded and as i can't restart anytime I want, I 've heard jmx was great cause it was possible to modify a running tomcat (is the english expression is "on the fly"?). So, Connection to Mbean server is ok... My problem is : when i invoke the addChild (org.apache.catalina.core.Container) method of Engine I get this error: "java.io.NotSerializableException: org.apache.catalina.util.LifecycleSupport at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156) at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1509)..." So i try to create my own addChildByString(String;String,String,String) which takes the appabase and the name of th virtual host, and path and docBase of the first needed context. But i've got a problem with the context now, " GRAVE: Error getConfigured" (and nothing else) i'm a little lost with all the classes and functions and I haven't found any docs about adding vh by jmx. has anyone tried to add and directly make worked a virtual host and a context on a running tomcat ? thx, Olivier ------=_Part_73726_23145390.1217426139335--