Which features are you interested in for Glassfish ? Also, we may want to
consider Geronimo which is already based on Karaf and apache licensed.

On Tue, Oct 11, 2011 at 12:36, Jean-Philippe Clement <
[email protected]> wrote:

> HeadlessException is rose because of -Djava.awt.headless=true option in
> GlassFish (*). Blueprint bundles are activated correctly!
>
> Having said that, I will certainly have to add other Karaf features to
> GlassFish which is not handy.
>
> Could it be possible to integrate Karaf and GlassFish to obtain a "JavaEE
> Karaf"?
>
>
> (*) admin web page => server-config => JVM Parameters => JVM Options
>
> PS: I changed SLF4J implementation from Log4J to "Simple"
>
> Kind regards,
> Jean-Philippe
>
> Quoting Jean-Philippe Clement 
> <jeanphilippe.clement@sogeti.**com<[email protected]>
> >:
>
>  As I mentioned in the JIRA thread, the root cause is a
>> HeadlessException. Still the GlassFish NPE does not seem to be the
>> proper way to handle bundle issues.
>>
>> I googled "GlassFish HeadlessException" and did not find a quick fix
>> yet. Maybe, if you could help me on this point also :)
>>
>> Kind regards,
>> Jean-Philippe
>>
>> Quoting Sahoo <[email protected]>:
>>
>>  I am able to use more-or-less the same bundles in GlassFish 3.1.1.
>>> Since we are already discussing this issue in GlassFish JIRA, we can
>>> terminate this thread here.
>>>
>>> Thanks,
>>> Sahoo
>>> On Monday 10 October 2011 04:58 PM, Jean-Philippe Clement wrote:
>>>
>>>> It seems GlassFish did crash when starting blueprint sample.
>>>>
>>>> Aries blueprint requires some other bundles to be ran in  GlassFish.
>>>>  Here is the list of all bundles I installed:
>>>> com.springsource.org.**objectweb.asm-3.2.0.jar
>>>> com.springsource.org.**objectweb.asm.commons-3.2.0.**jar
>>>> com.springsource.org.**objectweb.asm.tree-3.2.0.jar
>>>> com.springsource.slf4j.api-1.**6.1.jar
>>>> com.springsource.slf4j.log4j-**1.6.1.jar
>>>> org.apache.aries.blueprint-0.**3.jar
>>>> org.apache.aries.proxy-0.3.jar
>>>> org.apache.aries.util-0.3.jar
>>>>
>>>> Then, I started a basic blueprint example and got the following NPE:
>>>> [#|2011-10-10T11:30:32.877+**0200|SEVERE|glassfish3.1.1|**
>>>> javax.enterprise.system.std.**com.sun.enterprise.server.**
>>>> logging|_ThreadID=18;_**ThreadName=Thread-2;|java.**lang.NullPointerException
>>>>     at   com.sun.hk2.component.**ExistingSingletonInhabitant.<**init>(*
>>>> *ExistingSingletonInhabitant.**java:57)
>>>>  at   org.jvnet.hk2.osgiadapter.**HK2Main$**
>>>> HK2ServiceTrackerCustomizer.**addingService(HK2Main.java:**273)
>>>>  at   org.osgi.util.tracker.**ServiceTracker$Tracked.**
>>>> customizerAdding(**ServiceTracker.java:896)
>>>>  at   org.osgi.util.tracker.**AbstractTracked.trackAdding(**
>>>> AbstractTracked.java:261)
>>>>  at org.osgi.util.tracker.**AbstractTracked.track(**
>>>> AbstractTracked.java:233)
>>>>  at   org.osgi.util.tracker.**ServiceTracker$Tracked.**
>>>> serviceChanged(ServiceTracker.**java:840)
>>>> ...
>>>>
>>>> Do someone have a clue?
>>>>
>>>> Kind regards,
>>>> Jean-Philippe
>>>>
>>>> Quoting Sahoo <[email protected]>:
>>>>
>>>>  I am not the right person to answer the question. If I were to try, I
>>>>> would download [1], which seems like a self contained implementation.
>>>>>
>>>>> Thanks,
>>>>> Sahoo
>>>>>
>>>>> [1]
>>>>> http://www.apache.org/dyn/**closer.cgi/aries/org.apache.**
>>>>> aries.blueprint-0.3.jar<http://www.apache.org/dyn/closer.cgi/aries/org.apache.aries.blueprint-0.3.jar>On
>>>>>  Monday 10 October 2011 01:53 PM, Jean-Philippe Clement   wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> Yep, could be great... which bundles do I need?
>>>>>>
>>>>>> Kind regards,
>>>>>> Jean-Philippe
>>>>>>
>>>>>> Quoting Sahoo <[email protected]>:
>>>>>>
>>>>>>  If one copies the blueprint implementation bundles to
>>>>>>> glassfish/domains/domain1/**autodeploy/bundles/ dir, then they will
>>>>>>> be
>>>>>>> automatically activated as part of GlassFish lifecycle. Is that not
>>>>>>> sufficient?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Sahoo
>>>>>>>
>>>>>>> On Friday 07 October 2011 09:47 PM, Jean-Philippe Clement wrote:
>>>>>>>
>>>>>>>> Hi,
>>>>>>>>
>>>>>>>> I would like to add Blueprint (mainly) to GlassFish.
>>>>>>>>
>>>>>>>> What would be the best approach? Running GlassFish in Karaf?
>>>>>>>> Running Karaf specific bundles in GlassFish? Else?
>>>>>>>>
>>>>>>>> Kind regards,
>>>>>>>> Jean-Philippe
>>>>>>>>
>>>>>>>>
>>>>>>>> ------------------------------**------------------------------**
>>>>>>>> ---------
>>>>>>>> To unsubscribe, e-mail: 
>>>>>>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>>>>>>> For additional commands, e-mail: [email protected]
>>>>>>>>
>>>>>>>>
>>>>>>>
>>>>>>> ------------------------------**------------------------------**
>>>>>>> ---------
>>>>>>> To unsubscribe, e-mail: 
>>>>>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>>>>>> For additional commands, e-mail: [email protected]
>>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> ------------------------------**------------------------------**
>>>>>> ---------
>>>>>> To unsubscribe, e-mail: 
>>>>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>>>>> For additional commands, e-mail: [email protected]
>>>>>>
>>>>>>
>>>>>
>>>>> ------------------------------**------------------------------**
>>>>> ---------
>>>>> To unsubscribe, e-mail: 
>>>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>>>> For additional commands, e-mail: [email protected]
>>>>>
>>>>
>>>>
>>>>
>>>>
>>>> ------------------------------**------------------------------**
>>>> ---------
>>>> To unsubscribe, e-mail: 
>>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>>> For additional commands, e-mail: [email protected]
>>>>
>>>>
>>>
>>> ------------------------------**------------------------------**
>>> ---------
>>> To unsubscribe, e-mail: 
>>> users-unsubscribe@felix.**apache.org<[email protected]>
>>> For additional commands, e-mail: [email protected]
>>>
>>
>>
>>
>>
>> ------------------------------**------------------------------**---------
>> To unsubscribe, e-mail: 
>> users-unsubscribe@felix.**apache.org<[email protected]>
>> For additional commands, e-mail: [email protected]
>>
>
>
>
>
> ------------------------------**------------------------------**---------
> To unsubscribe, e-mail: 
> users-unsubscribe@felix.**apache.org<[email protected]>
> For additional commands, e-mail: [email protected]
>
>


-- 
------------------------
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/
------------------------
Open Source SOA
http://fusesource.com

Reply via email to