Return-Path: X-Original-To: apmail-ofbiz-user-archive@www.apache.org Delivered-To: apmail-ofbiz-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 043B2D463 for ; Mon, 24 Sep 2012 07:30:56 +0000 (UTC) Received: (qmail 20564 invoked by uid 500); 24 Sep 2012 07:30:54 -0000 Delivered-To: apmail-ofbiz-user-archive@ofbiz.apache.org Received: (qmail 20447 invoked by uid 500); 24 Sep 2012 07:30:54 -0000 Mailing-List: contact user-help@ofbiz.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ofbiz.apache.org Delivered-To: mailing list user@ofbiz.apache.org Received: (qmail 20291 invoked by uid 99); 24 Sep 2012 07:30:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:30:47 +0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_NONE,SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [93.17.128.21] (HELO smtp23.services.sfr.fr) (93.17.128.21) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 24 Sep 2012 07:30:40 +0000 Received: from filter.sfr.fr (localhost [127.0.0.1]) by msfrf2312.sfr.fr (SMTP Server) with ESMTP id F2DF570007D4 for ; Mon, 24 Sep 2012 09:30:17 +0200 (CEST) Received: from inspiron530 (unknown [95.176.63.162]) by msfrf2312.sfr.fr (SMTP Server) with SMTP id B875D70007CC for ; Mon, 24 Sep 2012 09:30:17 +0200 (CEST) X-SFR-UUID: 20120924073017755.B875D70007CC@msfrf2312.sfr.fr Message-ID: From: "Jacques Le Roux" To: References: <20111215205332.GA16416@localhost> <20120114225332.GA20214@localhost> <4F128F00.7050803@nereide.fr> <20120115124630.GC20214@localhost> <4F23DB03.5090603@free-man.net> <1348396156994-4636432.post@n4.nabble.com> Subject: Re: Running under external tomcat Date: Mon, 24 Sep 2012 08:49:49 +0200 Organization: Les Arts Informatiques MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5931 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Virus-Checked: Checked by ClamAV on apache.org Hi Sukhram, This seems interesting could you carry the burden a little more far? 1) create a Jira for this, see https://cwiki.apache.org/confluence/display/OFBADMIN/OFBiz+Contributors+Best+Practices 2) complete/comment if necessary at https://cwiki.apache.org/confluence/display/OFBTECH/Tomcat TIA Jacques From: "sukhram.bharti" > BJ, Mansour, > > > I looked through the problem..the main problem is entities/components are > not getting loaded. > I was able to solve an get my 11.04 code working under tomcat6. > > Sharing details of changes that will make it work upto 10.04 (though further > analysis may be needed to bring this to same capability as trunk works in > )... > > 1) org.ofbiz.webapp.control.ContextFilter >>>Added code load containers before calling getContainers() << > > > *// load the containers > try{ > ContainerLoader.loadContainers(CONTAINER_CONFIG, null); > } catch (StartupException e) { > Debug.logError(e, module); > throw new ServletException("Unable to load containers; cannot > start ContextFilter"); > }* > Container container = getContainers(); > 2) org.ofbiz.base.container.ContainerLoader >>>Added following method <<< > public static synchronized void loadContainers(String config, String[] > args) throws StartupException { > > if(containerMap.isEmpty()) { > Config cfg = new Config(); > cfg.containerConfig = config; > ContainerLoader loader = new ContainerLoader(); > loader.load(cfg, args); > } > } > > I am not a commitor etc. on ofbiz. Hope this helps and someone can properly > check in. > > > > -- > View this message in context: http://ofbiz.135035.n4.nabble.com/Running-under-external-tomcat-tp4201942p4636432.html > Sent from the OFBiz - User mailing list archive at Nabble.com.