V3 can't be supported on HK2 any more. So, looks like we need to look at
the issues raised at
http://www.nabble.com/ASMain()-does-not-work--in-OSGi-mode-td18074243.html
If I understand correctly, you want the server to be started with some
command line options. Those options should somehow be passed to your
implementation module. I don't know of any way other than use of system
property to pass such information. I am not convinced that
StartupContext can be supported in the current form.
Thanks,
Sahoo
Vivek Pandey wrote:
> The bug filed is:
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=5670
>
> -vivek.
> Vivek Pandey wrote:
>> I was trying to deploy a rails application using glassfish gem.
>> Please note that the gem works in HK2 mode so looks like some recent
>> change has caused this regression. Try starting glassfish in HK2
>> mode, you will get the same error. Since it is critical for the gem
>> so reported a P1.
>>
>> Why we can't use Osgi(Felix) mode for gem is discussed in this thread:
>>
>> http://www.nabble.com/ASMain()-does-not-work--in-OSGi-mode-td18074243.html
>>
>>
>> On the startup it gives up with the following message:
>>
>> vivekmz_at_boson(512)> jruby -S glassfish_rails .
>> Aug 26, 2008 5:57:59 PM com.sun.enterprise.glassfish.bootstrap.ASMain
>> main
>> INFO: Launching GlassFish on HK2 platform
>> Aug 26, 2008 5:57:59 PM
>> com.sun.enterprise.glassfish.bootstrap.ASMainHK2 findDerbyClient
>> INFO: Cannot find javadb client jar file, jdbc driver not available
>> Aug 26, 2008 5:57:59 PM
>> com.sun.enterprise.glassfish.bootstrap.ExtensibleClassLoader <init>
>> INFO: Added file:/tools/jdk5/lib/tools.jar to shared classpath
>> Exception in thread "Thread-1" java.lang.NoClassDefFoundError:
>> javax/xml/stream/XMLStreamException
>> at
>> com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:137)
>>
>> at
>> com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:394)
>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:309)
>> at com.sun.enterprise.module.bootstrap.Main.start(Main.java:172)
>> at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:102)
>>
>>
>> I see the same failure when trying to start the latest GlassFish in
>> HK2 mode:
>>
>> vivekmz_at_boson(507)> java -DJRUBY_HOME=/root/tmp/jruby-1.1.3
>> -DGlassFish_Platform=HK2 -jar modules/glassfish-10.0-SNAPSHOT.jar
>> Aug 26, 2008 6:10:58 PM com.sun.enterprise.glassfish.bootstrap.ASMain
>> main
>> INFO: Launching GlassFish on HK2 platform
>> Aug 26, 2008 6:10:59 PM
>> com.sun.enterprise.glassfish.bootstrap.ExtensibleClassLoader <init>
>> INFO: Added file:/tools/jdk5/lib/tools.jar to shared classpath
>> Exception in thread "Thread-1" java.lang.NoClassDefFoundError:
>> javax/xml/stream/XMLStreamException
>> at
>> com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:137)
>>
>> at
>> com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:394)
>> at com.sun.enterprise.module.bootstrap.Main.launch(Main.java:309)
>> at com.sun.enterprise.module.bootstrap.Main.start(Main.java:172)
>> at com.sun.enterprise.module.bootstrap.Main$1.run(Main.java:102)
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>