This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
TypeNotPresentException & ClassNotFoundException occurs in the server.log file when first start the download Glassfish V3 Server from Netbeans6Dev build Steps To Reproduce: 1. Install build #164 from http://bertram.russia/hudson/job/nbjavaee6_dev/ 2. From the Tools dialog, select to activate Glassfish V3 plugin 3. From Servers node, select to add Glassfish V3 Server > select to download V3 now 4. Right-click Glassfish V3 node, select Start menu BUG: Server failed to start with error appear in the attached server.log and messages.log files ERROR: Error starting file:/E:/sun/GlassFish_v3_download_Jan20/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:128) at com.sun.enterprise.module.common_impl.AbstractModulesRegistryImpl.createHabitat(AbstractModulesRegistryImpl.java:135) at com.sun.enterprise.module.bootstrap.Main.createHabitat(Main.java:394) at org.jvnet.hk2.osgiadapter.HK2Main.start(HK2Main.java:131) 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:595) 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:319) 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
Created attachment 76064 [details] messages.log
I couldn't find the server.log file to attach. The messages I posted on the bug description is from the out put Glassfish V3 section
need to add a dialog that tells the user that their server won't start under jdk 5. already filed issue against server... since the error messaging from the server is pretty opaque. https://glassfish.dev.java.net/issues/show_bug.cgi?id=7038
correct the summary line
http://hg.netbeans.org/nbjavaee6_dev/rev/025ca7985da8