Return-Path: Delivered-To: apmail-excalibur-dev-archive@www.apache.org Received: (qmail 11579 invoked from network); 7 Apr 2005 20:38:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Apr 2005 20:38:08 -0000 Received: (qmail 75701 invoked by uid 500); 7 Apr 2005 20:38:07 -0000 Delivered-To: apmail-excalibur-dev-archive@excalibur.apache.org Received: (qmail 75669 invoked by uid 500); 7 Apr 2005 20:38:07 -0000 Mailing-List: contact dev-help@excalibur.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Excalibur Developers List" Reply-To: "Excalibur Developers List" Delivered-To: mailing list dev@excalibur.apache.org Received: (qmail 75655 invoked by uid 99); 7 Apr 2005 20:38:07 -0000 X-ASF-Spam-Status: No, hits=0.4 required=10.0 tests=DNS_FROM_RFC_ABUSE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jaaronfarr@gmail.com designates 64.233.170.202 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 07 Apr 2005 13:38:07 -0700 Received: by rproxy.gmail.com with SMTP id i8so495415rne for ; Thu, 07 Apr 2005 13:38:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding; b=RvE2hiFhZ4goleIX8ieaKz4CQS85sZo6ivltnZ2NDcZlsGtTiV/oqwg6JMkhTagvZYvYRGSecVcgBrn/RigpSye5WOBVKk0zHTk2FXhZDRwImFdkxf3QIRBtdKiTHjr89usoSE85wPuVZIhSsZ0xlFxH/thaA+wNxINFZ2wxa0Y= Received: by 10.38.78.60 with SMTP id a60mr2317851rnb; Thu, 07 Apr 2005 13:38:05 -0700 (PDT) Received: by 10.38.92.47 with HTTP; Thu, 7 Apr 2005 13:38:05 -0700 (PDT) Message-ID: <7a31ebb305040713386f9a24da@mail.gmail.com> Date: Thu, 7 Apr 2005 16:38:05 -0400 From: J Aaron Farr Reply-To: farra@apache.org To: Excalibur-Dev Subject: Fortress embedded in Eclipse Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N FYI: This afternoon I got Fortress running from inside an Eclipse plugin but only when you use ECM-style roles file configuration. Using Fortress meta results in ClassNotFound exceptions and I haven't tracked it down yet. An issue is open in JIRA [1] for anyone who wants to help figure this out. Here's a snippet: String xconf = "/conf/system.xconf"; String roles = "/conf/system.roles"; String logger = "/conf/logkit.xconf"; Bundle bundle = Platform.getBundle(MY_PLUGIN_ID); URL xconfURL = Platform.asLocalURL( bundle.getEntry(xconf) ); URL rolesURL = Platform.asLocalURL( bundle.getEntry(roles) ); URL loggerURL = Platform.asLocalURL( bundle.getEntry(logger) ); // Set up all the preferences for Fortress final FortressConfig config = new FortressConfig(); // you must set the Context class loader ! config.setContextClassLoader(MyPlugin.class.getClassLoader()); config.setLoggerManagerConfiguration(loggerURL.getPath()); config.setContainerConfiguration( xconfURL.getPath() ); config.setRoleManagerConfiguration( rolesURL.getPath() ); // Get the root container initialized ContainerManager cm = new DefaultContainerManager( config.getContext() ); ContainerUtil.initialize( cm ); DefaultContainer container = (DefaultContainer) cm.getContainer(); --- jaaron [1] http://issues.apache.org/jira/browse/FORTRESS-17 --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@excalibur.apache.org For additional commands, e-mail: dev-help@excalibur.apache.org