Doris,
You can change the default JDK on Mac by invoking:
/Applications/Utilities/Java/Java Preferences.app/Contents/MacOS/Java
Preferences
This is also explained at:
http://blogs.sun.com/arungupta/entry/osx_8_java_se_6
Thanks,
-Arun
doris chen wrote:
> Hi,
> I am running NB 6.5 on Mac. The default JDK is JDK 5. How do I enforce
> to start GF v3 using JDK 6 in NetBeans?
>
> Thanks,
>
> Doris
>
> Snjezana Sevo-Zenzerovic wrote:
>> Which JDK version do you use? You should use JDK 6 with recent trunk
>> builds of GF v3...
>>
>> doris chen wrote:
>>
>>> Hi,
>>> I have Startup error on GF V3 promoted build b38. Here is where I
>>> downloaded
>>> http://download.java.net/glassfish/v3/promoted/glassfish-v3-ea-b38.zip
>>>
>>> I add this app server into NB 6.5 and after I start, I get the
>>> following error msg
>>>
>>> INFO: Launching GlassFish on Apache Felix OSGi platform
>>> Welcome to Felix.
>>> =================
>>> INFO: Started bundle org.glassfish.core.kernel [9]
>>> ERROR: Error starting
>>> file:/Users/dorischen/glassfishv3-ea-b38/glassfish//modules/osgi-adapter.jar
>>> (org.osgi.framework.BundleException: Activator start error.)
>>> java.lang.TypeNotPresentException: Type
>>> javax.xml.stream.XMLInputFactory not present
>>> at
>>> sun.reflect.annotation.TypeNotPresentExceptionProxy.generateException(TypeNotPresentExceptionProxy.java:27)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationInvocationHandler.invoke(AnnotationInvocationHandler.java:56)
>>>
>>> at $Proxy6.value(Unknown Source)
>>> at org.jvnet.hk2.component.Habitat.addIndex(Habitat.java:150)
>>> at
>>> com.sun.hk2.component.InhabitantsParser.add(InhabitantsParser.java:154)
>>> at
>>> com.sun.hk2.component.InhabitantsParser.parse(InhabitantsParser.java:133)
>>>
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModuleImpl.parseInhabitants(OSGiModuleImpl.java:312)
>>>
>>> at
>>> org.jvnet.hk2.osgiadapter.OSGiModulesRegistryImpl.parseInhabitants(OSGiModulesRegistryImpl.java:191)
>>>
>>> at
>>> com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:136)
>>>
>>> at
>>> com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:394)
>>> at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:138)
>>> at
>>> org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:591)
>>>
>>> at org.apache.felix.framework.Felix._startBundle(Felix.java:1607)
>>> at org.apache.felix.framework.Felix.startBundle(Felix.java:1541)
>>> at
>>> org.apache.felix.framework.Felix.setFrameworkStartLevel(Felix.java:1135)
>>> at
>>> org.apache.felix.framework.StartLevelImpl.run(StartLevelImpl.java:267)
>>> at java.lang.Thread.run(Thread.java:613)
>>> Caused by: java.lang.ClassNotFoundException:
>>> javax.xml.stream.XMLInputFactory
>>> at
>>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:198)
>>>
>>> at
>>> org.apache.felix.framework.searchpolicy.R4SearchPolicy.findClass(R4SearchPolicy.java:45)
>>>
>>> at
>>> org.apache.felix.framework.searchpolicy.ContentClassLoader.loadClass(ContentClassLoader.java:109)
>>>
>>> at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>>> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:374)
>>> at java.lang.Class.forName0(Native Method)
>>> at java.lang.Class.forName(Class.java:242)
>>> at
>>> sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:95)
>>>
>>> at
>>> sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:107)
>>>
>>> at
>>> sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:31)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseSig(AnnotationParser.java:370)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseClassValue(AnnotationParser.java:351)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:280)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:222)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
>>>
>>> at
>>> sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
>>>
>>> at java.lang.Class.initAnnotationsIfNecessary(Class.java:3031)
>>> at java.lang.Class.getAnnotation(Class.java:2989)
>>> at org.jvnet.hk2.component.Wombs.create(Wombs.java:51)
>>> at
>>> com.sun.hk2.component.LazyInhabitant.createWomb(LazyInhabitant.java:102)
>>> at
>>> com.sun.hk2.component.LazyInhabitant.fetch(LazyInhabitant.java:92)
>>> at
>>> com.sun.hk2.component.LazyInhabitant.type(LazyInhabitant.java:78)
>>> at org.jvnet.hk2.component.Habitat.addIndex(Habitat.java:149)
>>> ... 13 more
>>> Caused by: java.lang.ClassNotFoundException:
>>> javax.xml.stream.XMLInputFactory
>>> at
>>> org.apache.felix.framework.searchpolicy.R4Wire.getClass(R4Wire.java:109)
>>> at
>>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.searchImports(R4SearchPolicyCore.java:505)
>>>
>>> at
>>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClassOrResource(R4SearchPolicyCore.java:466)
>>>
>>> at
>>> org.apache.felix.framework.searchpolicy.R4SearchPolicyCore.findClass(R4SearchPolicyCore.java:185)
>>>
>>> ... 35 more
>>>
>>> Any ideas?
>>>
>>> Thanks,
>>>
>>> Doris
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
>> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
--
Application Platform, Sun Microsystems, Inc.
Blog: http://blogs.sun.com/arungupta