Webservices-rt.jar dependencies when building with NetBeans platform app.

View: New views
3 Messages — Rating Filter:   Alert me  

Webservices-rt.jar dependencies when building with NetBeans platform app.

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all. I am trying to port a web service client to the netbeans platform. My ws client uses the glassfish/metro class webservices-rt.jar, allowing the app to use the CallbackHandlers(com.sun.xml.wss.impl.callback.UsernameCallback) for securing the services. Normally I add the webservices-rt.jar as a lib for my app and works fine. Well in the NB platform I am trying to load this library any way I can, a seperate module, or along with my app as wrapped libraries. Dont worry if you dont know what that is.  When compiling I get warnings of webservices-rt.jar class not being able to find dependent classes. They are listed as follows.

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

Does anyone know in which lib/jar files these classes belong? Has anyone experienced similar issues?

Ive posted a similar question in the Netbeans platform forums found here. Has a little more detail regarding the app and specifically the netbeans platform, http://forums.netbeans.org/topic13977.html

This is totally time sensitive and I am very new to nb platform and limited in my WS/metro experience. TIA
[Message sent by forum member 'javajoe83' (javajoe83)]

http://forums.java.net/jive/thread.jspa?messageID=354532

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Webservices-rt.jar dependencies when building with NetBeans platform app.

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi

I think you don't have to use webservices-rt.jar to use callbacks. Maybe just include webservice-api to the project libraries.

I've already saw some post in this forum about the usage of webservices-rt.jar, my conclusion was RT jars don't have to be in any project library :)
[Message sent by forum member 'jferrandi' (jferrandi)]

http://forums.java.net/jive/thread.jspa?messageID=354603

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Webservices-rt.jar dependencies when building with NetBeans platform app.

by metro-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

This is true, webservices-rt.jar is not needed for callbackhandlers, there just happens to be an implementation of UsernameCallback in there, that was being referenced. But we are using some web service security classes that requires this class to be available to my client, and others such as StreamingAttachmentFeature and JAXWSProperties.

Therefore still need to use it in my clients. At this point seems to be more of a setup problem with jdk,netbeans and/ or user(me) error. Thanks for the suggestion though.
[Message sent by forum member 'javajoe83' (javajoe83)]

http://forums.java.net/jive/thread.jspa?messageID=354759

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...