users@glassfish.java.net

Re: Fwd: CDI in hybrid web application

From: Sahoo <sanjeeb.sahoo_at_oracle.com>
Date: Fri, 26 Aug 2011 22:57:32 +0530

Hi Michael,

I am not facing any problem like this. I just tried deploying the
stockquote sample in my local set up of gf3.1.1. We have CDI enabled WAB
as part of our test suite as well.

Would you mind sharing your server.log with me along with the steps you
used to deploy? Pl. revert any changes like upgrading to weld 1.1.2.

Thanks much,
Sahoo

On Friday 26 August 2011 10:38 PM, Ed Bratt wrote:
> Sorry, I mistakenly deleted this message along with a pile of SPAM.
> Mihael has since joined the list.
> My apologies to Mihael for the mixup.
> -- Ed
>
> -------- Original Message --------
> Subject: CDI in hybrid web application
> Date: Tue, 23 Aug 2011 14:18:22 +0200
> From: Mihael Schmidt <mschmidt_at_sgbs.de>
> To: users_at_glassfish.java.net
>
>
>
> Hi,
>
> I am trying to deploy the stockquote example and am getting this error
> in the log:
>
> [#|2011-08-23T14:14:30.704+0200|WARNING|glassfish3.1.1|org.glassfish.osgijavaeebase|_ThreadID=19;_ThreadName=Thread-2;|Failed
> to deploy bundle sample.osgicdi.stockquote_cdi_wab [357]
> org.glassfish.osgijavaeebase.DeploymentException: Deployment of
> sample.osgicdi.stockquote_cdi_wab [357] failed because of following
> reason: Failed while deploying bundle sample.osgicdi.stockquote_cdi_wab
> [357] : java.lang.RuntimeException: Failed to deploy bundle [
> sample.osgicdi.stockquote_cdi_wab [357] ], root cause: Exception while
> loading the app
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:125)
> at
> org.glassfish.osgijavaeebase.OSGiContainer.deploy(OSGiContainer.java:154)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.deploy(JavaEEExtender.java:107)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender.access$200(JavaEEExtender.java:61)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:151)
> at
> org.glassfish.osgijavaeebase.JavaEEExtender$HybridBundleTrackerCustomizer$1.call(JavaEEExtender.java:148)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:636)
> Caused by: java.lang.RuntimeException: Failed to deploy bundle [
> sample.osgicdi.stockquote_cdi_wab [357] ], root cause: Exception while
> loading the app
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:196)
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.execute(OSGiDeploymentRequest.java:118)
> at
> org.glassfish.osgijavaeebase.AbstractOSGiDeployer.deploy(AbstractOSGiDeployer.java:121)
> ... 10 more
> Caused by: java.lang.NoClassDefFoundError: Could not initialize class
> org.jboss.weld.bootstrap.WeldBootstrap
> at org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:345)
> at org.glassfish.weld.WeldDeployer.load(WeldDeployer.java:99)
> at org.glassfish.internal.data.ModuleInfo.load(ModuleInfo.java:186)
> at
> org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:257)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:461)
> at
> com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
> at
> org.glassfish.osgijavaeebase.OSGiDeploymentRequest.deploy(OSGiDeploymentRequest.java:183)
> ... 12 more
>
> Stockquote example from
> http://blogs.oracle.com/sivakumart/entry/typesafe_injection_of_dynamic_osgi
>
> I am using the latest glassfish version and updated to weld osgi 1.1.2
> to no avail.
>
> Any idea how to get this up and running?
>
> Thanx in advance.
>
> Mihael
>