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.

Bug 90685

Summary: It's impossible to enable message level security, exception occurs
Product: serverplugins Reporter: Andrey Yamkovoy <kaktus>
Component: IdentityAssignee: Peter Liu <petertliu>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P1    
Version: 5.x   
Hardware: All   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 89517    
Attachments: Exception stack trace

Description Andrey Yamkovoy 2006-12-06 18:29:30 UTC
Steps to reproduce:
- Create StockServer sample (or use some other service in following steps).
- Invoke popup menu 'Edit Web Service Attributes' for service 'stockservice'.
- In opened window check in checkbox 'Enable Message Level Security', choose 
some security mechanism and push 'OK' button.
- Following exception occurs (stack trace is attached).
- Invoke popup menu 'Edit Web Service Attributes' for service 'stockservice' 
again and notice that message level security is disabled.

java.lang.annotation.AnnotationTypeMismatchException: Incorrectly typed data 
found for annotation element public abstract 
javax.xml.bind.annotation.AccessType 
javax.xml.bind.annotation.XmlAccessorType.value() (Found data of type 
Ljavax/xml/bind/annotation/XmlAccessType;.FIELD)
Comment 1 Andrey Yamkovoy 2006-12-06 18:31:26 UTC
Created attachment 36530 [details]
Exception stack trace
Comment 2 Andrey Yamkovoy 2006-12-07 18:10:19 UTC
This bug is reproducible on JDK 1.6
Comment 3 Peter Liu 2007-02-07 22:33:33 UTC
*** Issue 92430 has been marked as a duplicate of this issue. ***
Comment 4 Peter Liu 2007-02-07 22:34:29 UTC
Exception from bug 92430:

This bug is reproducible only with JDK 6.

Steps to reproduce:
- Create Web Application.
- Create Web Service in this application.
- Invoke web service attributes dialog.
- Enable message level security and press OK button.
- Following exception occurs.

java.lang.NoClassDefFoundError: Could not initialize class
com.sun.xml.bind.v2.model.impl.RuntimeModelBuilder
	at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContextImpl.java:389)
	at com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.java:253)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:84)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:66)
	at com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:132)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:132)
	at javax.xml.bind.ContextFinder.find(ContextFinder.java:286)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:372)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:337)
	at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:244)
	at
org.netbeans.modules.identity.profile.api.configurator.impl.file.AMConfigManager.createMarshaller(AMConfigManager.java:137)
	at
org.netbeans.modules.identity.profile.api.configurator.impl.file.AMConfigManager.saveAMConfig(AMConfigManager.java:82)
	at
org.netbeans.modules.identity.profile.api.configurator.impl.file.ProviderConfigImpl.saveProvider(ProviderConfigImpl.java:184)
	at
org.netbeans.modules.identity.profile.api.configurator.ProviderConfigurator.save(ProviderConfigurator.java:391)
	at
org.netbeans.modules.identity.profile.ui.WSPSecurityPanel.save(WSPSecurityPanel.java:129)
	at
org.netbeans.modules.identity.profile.ui.WSPSectionNode.save(WSPSectionNode.java:53)
	at org.netbeans.modules.identity.profile.ui.SecurityView.save(SecurityView.java:74)
	at
org.netbeans.modules.identity.profile.ui.editor.SecurityWSEditor.save(SecurityWSEditor.java:100)
...
Comment 5 Peter Liu 2007-02-07 23:20:41 UTC
This is probably related to the duplicate jaxb libraries issue in jdk1.6.

Comment 6 Peter Liu 2007-02-09 00:24:17 UTC
I am closing this issue as a duplicate of IZ 91622.  Fixing bug 91622 should
also fix this bug.  In addition, I'll mark IZ 91622 as blocking the identity
umbrella task.

*** This issue has been marked as a duplicate of 91622 ***