Return-Path: X-Original-To: apmail-deltaspike-users-archive@www.apache.org Delivered-To: apmail-deltaspike-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1149711F49 for ; Sun, 27 Apr 2014 09:52:06 +0000 (UTC) Received: (qmail 9474 invoked by uid 500); 27 Apr 2014 09:52:06 -0000 Delivered-To: apmail-deltaspike-users-archive@deltaspike.apache.org Received: (qmail 9323 invoked by uid 500); 27 Apr 2014 09:51:59 -0000 Mailing-List: contact users-help@deltaspike.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@deltaspike.apache.org Delivered-To: mailing list users@deltaspike.apache.org Delivered-To: moderator for users@deltaspike.apache.org Received: (qmail 96053 invoked by uid 99); 27 Apr 2014 09:32:27 -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 (nike.apache.org: domain of justin@silvermoongroup.com designates 209.85.213.178 as permitted sender) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to :content-type; bh=KXsarfCxg4C3idPMBBeqLtR78b1gBZd8hDSnoxywzQM=; b=Xpe48PXY0qqw01YRw+W4lycgbmCRenEK36j5cc8cgxhGT+I5lUc0PI2U+j2OHN2/Em VyEe28UaW4nJXI7LwaWY9ym+xo9mmLm/byNKgqZ9B018BWV2GHpLIEVtlZx2ik8TLymI OPALNHqknBbTzs8vxSgaQCfim/+zAQDIUSr9Mo69VfKQR49F3EaE+Y4c0TBDVNPJAKm5 Gnmj2PN9OrP3/cuCCPZdW9BTJfBpyjGgj0HBR8PSCMANuqYLrOaDZB2kOf0aCz1ijcdA WDcGDkiXa97h1C+wnxo34swwHIlzXeZtkJJY0sNFKtsVoIdrcb9U3FppyqMJve2nxkUw /1Nw== X-Gm-Message-State: ALoCoQmtHNXxmpVDa2lLR5G0COa3qAtNJcvZ2V/h2yWoQrI+TUnBQjA6WX3RvOzHBIn5p5BtYofG X-Received: by 10.50.253.130 with SMTP id aa2mr16735017igd.39.1398591119714; Sun, 27 Apr 2014 02:31:59 -0700 (PDT) MIME-Version: 1.0 From: Justin Walsh Date: Sun, 27 Apr 2014 11:31:29 +0200 Message-ID: Subject: Deltaspike servlet module- IllegalProductException on Websphere 8.5.5.1 (Liberty profile) on startup To: users@deltaspike.apache.org Content-Type: multipart/alternative; boundary=001a113445cee0874b04f802de0d X-Virus-Checked: Checked by ClamAV on apache.org --001a113445cee0874b04f802de0d Content-Type: text/plain; charset=ISO-8859-1 Hi, I'm using the Deltaspike servlet module successfully on JBoss EAP 6.2. The same deployment (WAR) fails on startup when deployed on Websphere 8.5.5.1 (Liberty profile) This is the error [4/27/14 10:09:00:432 CEST] 00000025 org.apache.webbeans.config.BeansDeployer E WebBeans producer method : getHttpSession return type in the component implementation class : org.apache.deltaspike.servlet.impl.produce.ServletObjectProducer with passivating scope @javax.enterprise.context.SessionScoped must be Serializable javax.enterprise.inject.IllegalProductException: WebBeans producer method : getHttpSession return type in the component implementation class : org.apache.deltaspike.servlet.impl.produce.ServletObjectProducer with passivating scope @javax.enterprise.context.SessionScoped must be Serializable at org.apache.webbeans.util.WebBeansUtil.checkSerializableScopeType(WebBeansUtil.java:2089) at org.apache.webbeans.component.ProducerMethodBean.checkScopeType(ProducerMethodBean.java:307) at org.apache.webbeans.component.ProducerMethodBean.isPassivationCapable(ProducerMethodBean.java:315) at org.apache.webbeans.util.WebBeansUtil.isPassivationCapable(WebBeansUtil.java:2537) at org.apache.webbeans.config.BeansDeployer.checkPassivationScope(BeansDeployer.java:738) at org.apache.webbeans.config.BeansDeployer.validate(BeansDeployer.java:432) at org.apache.webbeans.config.BeansDeployer.validateInjectionPoints(BeansDeployer.java:383) at org.apache.webbeans.config.BeansDeployer.deploy(BeansDeployer.java:184) at org.apache.webbeans.lifecycle.AbstractLifeCycle.startApplication(AbstractLifeCycle.java:155) at org.apache.webbeans.web.lifecycle.WebContainerLifecycle.startApplication(WebContainerLifecycle.java:97) at com.ibm.ws.webbeans.WebBeansInitializer.onStartup(WebBeansInitializer.java:72) It would appear as if apache webbeans takes exception to this method in ServletObjectProducer as HttpSession (the return type) is not Serializable @Produces @DeltaSpike @SessionScoped public HttpSession getHttpSession() { ... } Is this an issue with apache webbeans or should all return types of SessionScoped producers be Serializable? Regards Justin --001a113445cee0874b04f802de0d--