« Return to Thread: NB platform Web service module library problems-webservice-rt.jar

NB platform Web service module library problems-webservice-rt.jar

by javadev-3 :: Rate this Message:

Reply to Author | View in Thread

Hi all. I decided I wanted to port my web service application to the netbeans platform. The only webservice library I pack with my application is webservices-rt.jar. I created a netbeans platform application and added the JAX-WS 2.1 ,JAX-WS 2.1 API, and JAXB 2.1 library modules as dependencies.  Created a wrapper module for my ws application, added the same dependencies, which resolved one similar error message as below. So I figured I was on the right track.  I followed these instructions as well.

http://tdamir.blogspot.com/2008/03/netbeans-platform-based-web-service.html



The following is the error message i recieve on compile.

Warning: org.me.Handler cannot access com.sun.xml.wss.impl.callback.UsernameCallback



This is a class in the webservices-rt.jar. I tried creating a seperate module for this library which at compile gives similar errors,

Warning: com.sun.msv.datatype.xsd.regex.XercesImpl cannot access org.apache.xerces.impl.xpath.regex.ParseException

Warning: com.sun.msv.datatype.xsd.regex.XercesImpl cannot access org.apache.xerces.impl.xpath.regex.RegularExpression

Warning: com.sun.msv.datatype.xsd.regex.XercesImpl$1 cannot access org.apache.xerces.impl.xpath.regex.RegularExpression

Warning: com.sun.msv.driver.textui.Driver cannot access org.apache.xml.resolver.Catalog

Warning: com.sun.msv.driver.textui.Driver cannot access org.apache.xml.resolver.tools.CatalogResolver

Warning: com.sun.wsit.security.IBMKeyIdentifierSPI cannot access com.ibm.security.util.DerInputStream

Warning: com.sun.wsit.security.IBMKeyIdentifierSPI cannot access com.ibm.security.util.DerValue

Warning: com.sun.wsit.security.IBMKeyIdentifierSPI cannot access com.ibm.security.x509.KeyIdentifier

Warning: com.sun.xml.jaxws.JAXWSMessage cannot access com.sun.xml.ws.spi.runtime.InternalSoapEncoder

Warning: com.sun.xml.jaxws.JAXWSMessage cannot access com.sun.xml.ws.spi.runtime.SOAPMessageContext

So thinking this file has dependencies of its own.  Which I thought was strange since I dont pack them in my app, why I would need them in the module. So I thought I was doing something wrong.





Secondly I tried adding to my original java stand alone application, the Metro1.4 library instead of the original webservices-rt.jar. The app compiles fine,Just more libs I dont think I need.  I then added to the nb platform application the dependency of metro1.4, allowing me to add it to my wrapper module. When, as any library I add to wrapper module, I edit and select the implementation version, to avoid the "not a friend" errors. Unable to do this with the metro 1.4 library, as the implementation option does not list any exposed classes. Compiling the nb platform app and the wrapper module give the original error

Warning: org.me.Handler cannot access com.sun.xml.wss.impl.callback.UsernameCallback



Looking through the metro node I do find the class in the proper jar file/class. I have been using the following setups. Visa, Java JRE's 1.6update12 and 1.6update14, netbeans 6.5 and 6.7.  Any ideas would be a great help. TIA all.




 « Return to Thread: NB platform Web service module library problems-webservice-rt.jar