|
View:
New views
4 Messages
—
Rating Filter:
Alert me
|
|
|
NB platform Web service module library problems-webservice-rt.jarHi 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. |
|
|
NB platform Web service module library problems-webservices-rt.jarstill had same issues as above.
Tried to move com.me.Handler to a seperate module, with the webservices-rt.jar as wrapped lib in module. Handler sees needed classes in lib. Cool. Then I tried to redo the web service client module, wrapping/selecting the ws client jar, webservices-rt.jar, and another lib jar file into the same module. This did allow my original ws client org.me.Handler to see the needed classes(inside webservices-rt.jar). But I still get the same "cannot access" warnings, regarding webservices-rt.jar classes unable to find its needed classes. Listed above. Any one have similar problems/solutions? Anyone know in which jars the needed classes are located? TIA for taking the time to read/help. |
|
|
NB platform Web service module library problems-webservices-rt.jarUsing NB 6.7, java update 14.
With the NB install the global library METRO 1.4 is installed and available to use. So I added it to my NB platform app's required libraries, allowing my web service module(wrapped j2se project jar) to see and add it as a dependent library. But the client module still does not see the required classes in the Metro library. Loading the same classes into the j2se project I can verify those classes are there. If in the client module, under libraries, right click the metro library and choose edit, again under "Include packages on classpath" is empty, which makes sense why the other library cannot see them. Again Im very new at the NB platform. Any help at this point would be great. Been hassling with this for a while. I Figured this would be easy as the library has already been installed in NB, And is available in the NB platform modules, under enterprise5 cluster. The main application adds to the libraries, allowing other modules to use. Am I missing something? [Question] Thanks all |
|
|
NB platform Web service module library problems Metro librariesWell regarding the above posts. The only way tht I could successfully integrate the metro libraries was to do the following. Create library wrapper for the new metro libs. Create a new NB module, that I added the lib wrapper to as well as directly copy the source files from my existing web service stand alone app. Now instead of my web service app wrapped in a library, its source is in the module and can access the metro libs as needed. My question now is there a better solution of integrating web services and a netbeans module? At this point any updating to my web service client side code is built in the original stand alone app. Allowing me to use/see web service specific project stuff, such as generated classes, web service nodes that allow the refresh of wsit generated xml etc, web service context menu items such as refresh web service, etc. Which is so darn useful!. Where as in a NB module these are not available. Is there a better way to integrate these? Is that somethi
ng in the pipeline? Any info would be great! TIA all. |
| Free embeddable forum powered by Nabble | Forum Help |