Return-Path: X-Original-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Delivered-To: apmail-incubator-deltaspike-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 11A4896AC for ; Mon, 20 Feb 2012 09:04:12 +0000 (UTC) Received: (qmail 12335 invoked by uid 500); 20 Feb 2012 09:04:12 -0000 Delivered-To: apmail-incubator-deltaspike-dev-archive@incubator.apache.org Received: (qmail 12240 invoked by uid 500); 20 Feb 2012 09:04:11 -0000 Mailing-List: contact deltaspike-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: deltaspike-dev@incubator.apache.org Delivered-To: mailing list deltaspike-dev@incubator.apache.org Received: (qmail 12221 invoked by uid 99); 20 Feb 2012 09:04:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 09:04:10 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rdebusscher@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bk0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Feb 2012 09:04:04 +0000 Received: by bkwq11 with SMTP id q11so4570965bkw.6 for ; Mon, 20 Feb 2012 01:03:43 -0800 (PST) Received-SPF: pass (google.com: domain of rdebusscher@gmail.com designates 10.204.133.219 as permitted sender) client-ip=10.204.133.219; Authentication-Results: mr.google.com; spf=pass (google.com: domain of rdebusscher@gmail.com designates 10.204.133.219 as permitted sender) smtp.mail=rdebusscher@gmail.com; dkim=pass header.i=rdebusscher@gmail.com Received: from mr.google.com ([10.204.133.219]) by 10.204.133.219 with SMTP id g27mr10654125bkt.47.1329728623492 (num_hops = 1); Mon, 20 Feb 2012 01:03:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=n6eoUAWPHr5dX4w15mXJWcsh+wOFxYiQq9qda00fIWU=; b=rkMncGWmQditfDwWA7YTvtNMzScVgmG39j5gD8cVoCHJwN9LKzK22e4s56VaHHDeCK AAP40xbgxVc+Cn8/ZGOmdsjX1QFKuubabItalAaCaDKJA2z+XKl2SiHEwMUTBsiXgl/Y +g37GYa/Fphw8qf+AyFJPFYEZ6cjMqbtbyBr8= MIME-Version: 1.0 Received: by 10.204.133.219 with SMTP id g27mr8620811bkt.47.1329728623394; Mon, 20 Feb 2012 01:03:43 -0800 (PST) Received: by 10.204.67.130 with HTTP; Mon, 20 Feb 2012 01:03:43 -0800 (PST) Date: Mon, 20 Feb 2012 10:03:43 +0100 Message-ID: Subject: Issues with arquillian archives on WebLogic 12c -> wrong beans.xml file location From: Rudy De Busscher To: deltaspike-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=001517592f1c3ec0c304b961920a --001517592f1c3ec0c304b961920a Content-Type: text/plain; charset=ISO-8859-1 Hi all, I'm trying to run the DeltaSpike integration tests on the Oracle WebLogic 12C server. And i'm getting the following exceptions (related to ExcludeIntegrationTest, the first test) *Weblogic console* *org.jboss.arquillian.testenricher.cdi.container.BeanManagerProducer lookup* *INFO: BeanManager not found* *test log file* *simpleCheckOfBeansInPackage(org.apache.deltaspike.integration.core.api.exclude.ExcludeIntegrationTest) Time elapsed: 0.003 sec <<< ERROR!* *java.lang.IllegalStateException: No org.apache.deltaspike.core.api.provider.BeanManagerProvider in place! Please ensure that you configured the CDI implementation of your choice properly. If your setup is correct, please clear all caches and compiled artifacts.* * at org.apache.deltaspike.core.api.provider.BeanManagerProvider.getInstance(BeanManagerProvider.java:88) * * at org.apache.deltaspike.core.api.provider.BeanProvider.getBeanManager(BeanProvider.java:258) * * at org.apache.deltaspike.core.api.provider.BeanProvider.getContextualReference(BeanProvider.java:78) * * at org.apache.deltaspike.integration.core.api.exclude.ExcludeIntegrationTest.simpleCheckOfBeansInPackage(ExcludeIntegrationTest.java:94) * However, a test application that uses the following code in a get method of a property * AlwaysActiveBean testBean = BeanProvider.getContextualReference(AlwaysActiveBean.class, true);* * BeanManager manager;* * try {* * InitialContext ic = new InitialContext();* * manager = (BeanManager) ic.lookup("java:comp/BeanManager");* * } catch (Exception e) {* * throw new RuntimeException(e);* * }* succeed and I have a value for testBean and manager. So there is nothing wrong with CDI (and deltaspike) on WLS. By uncommenting the following in arquillian.xml * * * target/* * * I see that the beans.xml file is located in a top-level META-INF directory and not in WEB-INF or WEB-INF\classes\META-INF. So probably WLS decides that the WAR has nothing to do with CDI and thus is not available. Replacing *.addAsManifestResource(EmptyAsset.INSTANCE, "beans.xml");* by *.addAsWebInfResource(EmptyAsset.INSTANCE, "beans.xml");* the test works on WLS (well I have other issues but CDI and deltaSpike is correctly loaded) and JBoss/GlassFish I'll create a *JIRA ticket *to change the deployment methods of the current integration tests Sorry for this long post, but it is important for the compatibility of future integration tests . Regards Rudy -- Rudy De Busscher http://www.c4j.be --001517592f1c3ec0c304b961920a--