users@glassfish.java.net

Re: Fwd: CDI in hybrid web application

From: Mihael Schmidt <mschmidt_at_sgbs.de>
Date: Mon, 29 Aug 2011 09:25:26 +0200

I think I had the problem with gf3.1 updated to 3.1.1 with the update
tool from the admin console. I am currently running a fresh gf3.1.1
installation and everything is working fine now.

Thanx for the reply.

Mihael


On 26.08.2011 19:27, Sahoo wrote:
> 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
>
>>
>> -------- 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
>>
>


-- 
Mihael Schmidt
Software und System-Entwicklung
Schulz Gebäudeservice GmbH & Co. KG
Dr.-Max-Ilgner-Straße 17
32339 Espelkamp
Telefon: 05772-9100-00
Telefax: 05772-9100-11
Internet: www.sgbs.de
Persönlich haftende Gesellschafterin:
Gebäudereinigung Joachim Schulz
Verwaltungsgesellschaft mbH
Geschäftsführer: Joachim Schulz, Dirk Schulz, Norbert Kosica
Handelsregister Bad Oeynhausen:
HRA 5902, HRB 8591