Skip to main content

2.0 nightly build compatibility questions

21 replies [Last post]
dgovoni
Offline
Joined: 2008-09-25
Points: 0

Hello Metro Gurus,
I had to get the nightly build of Metro because it fixed a problem with attribute providers not working with SAML2.0 , but when I install it into glassfish v2 and rebuild my STS services in netbeans 6.5, it has API build errors in Service() constructors.

If I remove Metro 2.0 EA and go back to 1.3.1 its ok.

My question is, will the 2.0 EA work with netbeans/glassfish? Or do I have to recreate my services or something?

thanks for the tips!!!
Darren

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Fabian Ritzmann

On 17. Feb 2009, at 14:37, Sreekanth wrote:
> Fabian Ritzmann wrote:
>> Moving that discussion to dev@metro.
>>
>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>
>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>> JDK1.6.0_10.So when I install metro it is going to JDK1.6.0_10 and
>>> my netbeans default JDK is update 6.
>>>
>>> So now I have copied the webservices-api.jar to JDK1.6.0_06/jre/
>>> lib/endorsed and restarted the IDE.
>>>
>>> Even then I see the same error.
>>>
>>> I see the jar file is in classpath(See below).May be I messed up
>>> something .I will try to work on this for some more time and see
>>> if it resolves.
>>>
>>> ============
>>>
>>> compiling code...
>>>
>>> javac -d C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>> \EbayShoppingClientNew-2.0\build\generated\wsimport\binaries -
>>> classpath
>> ...
>>
>> That's probably not working because javac is picking up the Service
>> class from the built-in classes before it looks at the classpath.
>> Try setting the -Djava.endorsed.dirs=directories... option when
>> javac is invoked.
> I tried doing this from netbeans by [Right click on the project-
> >Properties->Compiling and Additional Compiler Options].But this one
> too didn't work for me.Is it the correct way of doing?

I doubt that is going to help because wsimport invokes a new instance
of javac and isn't passing on the property.

>> Another thing worth trying would be to copy webservices-api.jar
>> into /lib/endorsed instead of /jre/lib/
>> endorsed.
> Tried this one also.Didn't work for me.

OK. I have no good idea what else to try.

Fabian

>>> Fabian Ritzmann wrote:
>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>> Fabian Ritzmann wrote:
>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>
>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>> installed in my glassfish container, If I try to create a web
>>>>>>> service client for a ebay wsdl file, I am able to create the
>>>>>>> webservice client.
>>>>>>>
>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>> following errors.Attaching the wsdl from ebay site.Did any
>>>>>>> thing change in 2.0?
>>>>>>
>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>> creating code that does not compile because javac is picking up
>>>>>> the built-in JAX-WS 2.1 classes. The only working solution is
>>>>>> to copy the webservices-api.jar into /lib/endorsed.
>>>>>> (You have to create that directory if it does not exist.)
>>>>> Doesn't this happen when we install metro using : ant -f metro-
>>>>> on-glassfish.xml install and again should it be placed in
>>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>
>>>>> I see this while installing metro:
>>>>>
>>>>> install-api:
>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>> [echo] ... installation complete.
>>>>
>>>> Yes, but the error below is clearly a mismatch between JAX-WS 2.2
>>>> and 2.1. The Service(URL, QName, WebServiceFeature...)
>>>> constructor was added in JAX-WS 2.2. Maybe the webservices-
>>>> api.jar is not on the classpath that is invoked by wsimport or
>>>> javac does not look into the jre endorsed directory?
>>>>
>>>> Fabian
>>>>
>>>>
>>>>>>> compiling code...
>>>>>>>
>>>>>>>
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>> \apis\eblbasecomponents\Shopping.java:49: cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service
>>>>>>> (java
>>>>>>> .net
>>>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>> \apis\eblbasecomponents\Shopping.java:57: cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service
>>>>>>> (java
>>>>>>> .net
>>>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>> \apis\eblbasecomponents\Shopping.java:65: cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service
>>>>>>> (java
>>>>>>> .net
>>>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>> 3 errors
>>>>>>> compilation failed, errors should have been reported
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24: wsimport
>>>>>>> failed
>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>
>>>>>>> Fabian Ritzmann wrote:
>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>
>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>> problem with attribute providers not working with SAML2.0 ,
>>>>>>>>> but when I install it into glassfish v2 and rebuild my STS
>>>>>>>>> services in netbeans 6.5, it has API build errors in
>>>>>>>>> Service() constructors.
>>>>>>>>>
>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>
>>>>>>>> What about Metro 1.4?
>>>>>>>>
>>>>>>>>> My question is, will the 2.0 EA work with netbeans/
>>>>>>>>> glassfish? Or do I have to recreate my services or something?
>>>>>>>>
>>>>>>>> If it doesn't work it's a bug. It's been working fine for me
>>>>>>>> and we are running tests continuously. What errors are you
>>>>>>>> getting precisely?
>>>>>>>>
>>>>>>>> Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

suresh

Copying both webservices-api and webservices-extra-api jars into
java/JDK1.6.0_06/jre/lib/endorsed dir. may help
its working for me after copying both...
Thanks
Suresh

Fabian Ritzmann wrote:
> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>> Fabian Ritzmann wrote:
>>> Moving that discussion to dev@metro.
>>>
>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>
>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>> JDK1.6.0_10.So when I install metro it is going to JDK1.6.0_10 and
>>>> my netbeans default JDK is update 6.
>>>>
>>>> So now I have copied the webservices-api.jar to
>>>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>>>
>>>> Even then I see the same error.
>>>>
>>>> I see the jar file is in classpath(See below).May be I messed up
>>>> something .I will try to work on this for some more time and see if
>>>> it resolves.
>>>>
>>>> ============
>>>>
>>>> compiling code...
>>>>
>>>> javac -d
>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>>>> -classpath
>>> ...
>>>
>>> That's probably not working because javac is picking up the Service
>>> class from the built-in classes before it looks at the classpath.
>>> Try setting the -Djava.endorsed.dirs=directories... option when
>>> javac is invoked.
>> I tried doing this from netbeans by [Right click on the
>> project->Properties->Compiling and Additional Compiler Options].But
>> this one too didn't work for me.Is it the correct way of doing?
>
> I doubt that is going to help because wsimport invokes a new instance
> of javac and isn't passing on the property.
>
>>> Another thing worth trying would be to copy webservices-api.jar into
>>> /lib/endorsed instead of /jre/lib/endorsed.
>> Tried this one also.Didn't work for me.
>
> OK. I have no good idea what else to try.
>
> Fabian
>
>
>>>> Fabian Ritzmann wrote:
>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>> Fabian Ritzmann wrote:
>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>
>>>>>>>> I too noticed a similar problem.When I have metro 1.4 installed
>>>>>>>> in my glassfish container, If I try to create a web service
>>>>>>>> client for a ebay wsdl file, I am able to create the webservice
>>>>>>>> client.
>>>>>>>>
>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>> following errors.Attaching the wsdl from ebay site.Did any
>>>>>>>> thing change in 2.0?
>>>>>>>
>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>>> creating code that does not compile because javac is picking up
>>>>>>> the built-in JAX-WS 2.1 classes. The only working solution is to
>>>>>>> copy the webservices-api.jar into /lib/endorsed. (You
>>>>>>> have to create that directory if it does not exist.)
>>>>>> Doesn't this happen when we install metro using : ant -f
>>>>>> metro-on-glassfish.xml install and again should it be placed in
>>>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>
>>>>>> I see this while installing metro:
>>>>>>
>>>>>> install-api:
>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>> [echo] ... installation complete.
>>>>>
>>>>> Yes, but the error below is clearly a mismatch between JAX-WS 2.2
>>>>> and 2.1. The Service(URL, QName, WebServiceFeature...) constructor
>>>>> was added in JAX-WS 2.2. Maybe the webservices-api.jar is not on
>>>>> the classpath that is invoked by wsimport or javac does not look
>>>>> into the jre endorsed directory?
>>>>>
>>>>> Fabian
>>>>>
>>>>>
>>>>>>>> compiling code...
>>>>>>>>
>>>>>>>>
>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>>>> cannot find symbol
>>>>>>>> symbol : constructor
>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>
>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>>>> cannot find symbol
>>>>>>>> symbol : constructor
>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>
>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>>>> cannot find symbol
>>>>>>>> symbol : constructor
>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>
>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>> 3 errors
>>>>>>>> compilation failed, errors should have been reported
>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>> wsimport failed
>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>
>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>
>>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>>> problem with attribute providers not working with SAML2.0 ,
>>>>>>>>>> but when I install it into glassfish v2 and rebuild my STS
>>>>>>>>>> services in netbeans 6.5, it has API build errors in
>>>>>>>>>> Service() constructors.
>>>>>>>>>>
>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>
>>>>>>>>> What about Metro 1.4?
>>>>>>>>>
>>>>>>>>>> My question is, will the 2.0 EA work with netbeans/glassfish?
>>>>>>>>>> Or do I have to recreate my services or something?
>>>>>>>>>
>>>>>>>>> If it doesn't work it's a bug. It's been working fine for me
>>>>>>>>> and we are running tests continuously. What errors are you
>>>>>>>>> getting precisely?
>>>>>>>>>
>>>>>>>>> Fabian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Fabian Ritzmann

On 19. Feb 2009, at 09:42, suresh wrote:

> Copying both webservices-api and webservices-extra-api jars into
> java/JDK1.6.0_06/jre/lib/endorsed dir. may help
> its working for me after copying both...

That is strange. The webservices-extra-api.jar contains the APIs for
JAX-RPC and JAXR. I don't see why they would matter for wsimport/
wsgen. What error do you see exactly when you don't have webservices-
extra-api.jar in the endorsed directory?

Fabian

> Fabian Ritzmann wrote:
>> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>>> Fabian Ritzmann wrote:
>>>> Moving that discussion to dev@metro.
>>>>
>>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>>
>>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>>> JDK1.6.0_10.So when I install metro it is going to JDK1.6.0_10
>>>>> and my netbeans default JDK is update 6.
>>>>>
>>>>> So now I have copied the webservices-api.jar to JDK1.6.0_06/jre/
>>>>> lib/endorsed and restarted the IDE.
>>>>>
>>>>> Even then I see the same error.
>>>>>
>>>>> I see the jar file is in classpath(See below).May be I messed up
>>>>> something .I will try to work on this for some more time and see
>>>>> if it resolves.
>>>>>
>>>>> ============
>>>>>
>>>>> compiling code...
>>>>>
>>>>> javac -d C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>> \EbayShoppingClientNew-2.0\build\generated\wsimport\binaries -
>>>>> classpath
>>>> ...
>>>>
>>>> That's probably not working because javac is picking up the
>>>> Service class from the built-in classes before it looks at the
>>>> classpath. Try setting the -Djava.endorsed.dirs=directories...
>>>> option when javac is invoked.
>>> I tried doing this from netbeans by [Right click on the project-
>>> >Properties->Compiling and Additional Compiler Options].But this
>>> one too didn't work for me.Is it the correct way of doing?
>>
>> I doubt that is going to help because wsimport invokes a new
>> instance of javac and isn't passing on the property.
>>
>>>> Another thing worth trying would be to copy webservices-api.jar
>>>> into /lib/endorsed instead of /jre/lib/
>>>> endorsed.
>>> Tried this one also.Didn't work for me.
>>
>> OK. I have no good idea what else to try.
>>
>> Fabian
>>
>>
>>>>> Fabian Ritzmann wrote:
>>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>>> Fabian Ritzmann wrote:
>>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>>
>>>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>>>> installed in my glassfish container, If I try to create a
>>>>>>>>> web service client for a ebay wsdl file, I am able to create
>>>>>>>>> the webservice client.
>>>>>>>>>
>>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>>> following errors.Attaching the wsdl from ebay site.Did any
>>>>>>>>> thing change in 2.0?
>>>>>>>>
>>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>>>> creating code that does not compile because javac is picking
>>>>>>>> up the built-in JAX-WS 2.1 classes. The only working solution
>>>>>>>> is to copy the webservices-api.jar into /lib/
>>>>>>>> endorsed. (You have to create that directory if it does not
>>>>>>>> exist.)
>>>>>>> Doesn't this happen when we install metro using : ant -f metro-
>>>>>>> on-glassfish.xml install and again should it be placed in
>>>>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>>
>>>>>>> I see this while installing metro:
>>>>>>>
>>>>>>> install-api:
>>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>>> [echo] ... installation complete.
>>>>>>
>>>>>> Yes, but the error below is clearly a mismatch between JAX-WS
>>>>>> 2.2 and 2.1. The Service(URL, QName, WebServiceFeature...)
>>>>>> constructor was added in JAX-WS 2.2. Maybe the webservices-
>>>>>> api.jar is not on the classpath that is invoked by wsimport or
>>>>>> javac does not look into the jre endorsed directory?
>>>>>>
>>>>>> Fabian
>>>>>>
>>>>>>
>>>>>>>>> compiling code...
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>>>> \apis\eblbasecomponents\Shopping.java:49: cannot find symbol
>>>>>>>>> symbol : constructor
>>>>>>>>> Service
>>>>>>>>> (java
>>>>>>>>> .net
>>>>>>>>> .URL
>>>>>>>>> ,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>>>> \apis\eblbasecomponents\Shopping.java:57: cannot find symbol
>>>>>>>>> symbol : constructor
>>>>>>>>> Service
>>>>>>>>> (java
>>>>>>>>> .net
>>>>>>>>> .URL
>>>>>>>>> ,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay
>>>>>>>>> \apis\eblbasecomponents\Shopping.java:65: cannot find symbol
>>>>>>>>> symbol : constructor
>>>>>>>>> Service
>>>>>>>>> (java
>>>>>>>>> .net
>>>>>>>>> .URL
>>>>>>>>> ,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>>> 3 errors
>>>>>>>>> compilation failed, errors should have been reported
>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>>> wsimport failed
>>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>>
>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>>
>>>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>>>> problem with attribute providers not working with
>>>>>>>>>>> SAML2.0 , but when I install it into glassfish v2 and
>>>>>>>>>>> rebuild my STS services in netbeans 6.5, it has API build
>>>>>>>>>>> errors in Service() constructors.
>>>>>>>>>>>
>>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>>
>>>>>>>>>> What about Metro 1.4?
>>>>>>>>>>
>>>>>>>>>>> My question is, will the 2.0 EA work with netbeans/
>>>>>>>>>>> glassfish? Or do I have to recreate my services or
>>>>>>>>>>> something?
>>>>>>>>>>
>>>>>>>>>> If it doesn't work it's a bug. It's been working fine for
>>>>>>>>>> me and we are running tests continuously. What errors are
>>>>>>>>>> you getting precisely?
>>>>>>>>>>
>>>>>>>>>> Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

suresh

Sorry ......with only webservices-api jar in the endorsed dir. it is
working...no need to copy webservices-extra-api jar . :-)
Fabian Ritzmann wrote:
> On 19. Feb 2009, at 09:42, suresh wrote:
>
>> Copying both webservices-api and webservices-extra-api jars into
>> java/JDK1.6.0_06/jre/lib/endorsed dir. may help
>> its working for me after copying both...
>
> That is strange. The webservices-extra-api.jar contains the APIs for
> JAX-RPC and JAXR. I don't see why they would matter for
> wsimport/wsgen. What error do you see exactly when you don't have
> webservices-extra-api.jar in the endorsed directory?
>
> Fabian
>
>
>> Fabian Ritzmann wrote:
>>> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>>>> Fabian Ritzmann wrote:
>>>>> Moving that discussion to dev@metro.
>>>>>
>>>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>>>
>>>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>>>> JDK1.6.0_10.So when I install metro it is going to JDK1.6.0_10
>>>>>> and my netbeans default JDK is update 6.
>>>>>>
>>>>>> So now I have copied the webservices-api.jar to
>>>>>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>>>>>
>>>>>> Even then I see the same error.
>>>>>>
>>>>>> I see the jar file is in classpath(See below).May be I messed up
>>>>>> something .I will try to work on this for some more time and see
>>>>>> if it resolves.
>>>>>>
>>>>>> ============
>>>>>>
>>>>>> compiling code...
>>>>>>
>>>>>> javac -d
>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>>>>>> -classpath
>>>>> ...
>>>>>
>>>>> That's probably not working because javac is picking up the
>>>>> Service class from the built-in classes before it looks at the
>>>>> classpath. Try setting the -Djava.endorsed.dirs=directories...
>>>>> option when javac is invoked.
>>>> I tried doing this from netbeans by [Right click on the
>>>> project->Properties->Compiling and Additional Compiler Options].But
>>>> this one too didn't work for me.Is it the correct way of doing?
>>>
>>> I doubt that is going to help because wsimport invokes a new
>>> instance of javac and isn't passing on the property.
>>>
>>>>> Another thing worth trying would be to copy webservices-api.jar
>>>>> into /lib/endorsed instead of
>>>>> /jre/lib/endorsed.
>>>> Tried this one also.Didn't work for me.
>>>
>>> OK. I have no good idea what else to try.
>>>
>>> Fabian
>>>
>>>
>>>>>> Fabian Ritzmann wrote:
>>>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>>>
>>>>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>>>>> installed in my glassfish container, If I try to create a web
>>>>>>>>>> service client for a ebay wsdl file, I am able to create the
>>>>>>>>>> webservice client.
>>>>>>>>>>
>>>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>>>> following errors.Attaching the wsdl from ebay site.Did any
>>>>>>>>>> thing change in 2.0?
>>>>>>>>>
>>>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>>>>> creating code that does not compile because javac is picking
>>>>>>>>> up the built-in JAX-WS 2.1 classes. The only working solution
>>>>>>>>> is to copy the webservices-api.jar into
>>>>>>>>> /lib/endorsed. (You have to create that directory
>>>>>>>>> if it does not exist.)
>>>>>>>> Doesn't this happen when we install metro using : ant -f
>>>>>>>> metro-on-glassfish.xml install and again should it be placed in
>>>>>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>>>
>>>>>>>> I see this while installing metro:
>>>>>>>>
>>>>>>>> install-api:
>>>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>>>> [echo] ... installation complete.
>>>>>>>
>>>>>>> Yes, but the error below is clearly a mismatch between JAX-WS
>>>>>>> 2.2 and 2.1. The Service(URL, QName, WebServiceFeature...)
>>>>>>> constructor was added in JAX-WS 2.2. Maybe the
>>>>>>> webservices-api.jar is not on the classpath that is invoked by
>>>>>>> wsimport or javac does not look into the jre endorsed directory?
>>>>>>>
>>>>>>> Fabian
>>>>>>>
>>>>>>>
>>>>>>>>>> compiling code...
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>>>>>> cannot find symbol
>>>>>>>>>> symbol : constructor
>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>
>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>>>>>> cannot find symbol
>>>>>>>>>> symbol : constructor
>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>
>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>>>>>> cannot find symbol
>>>>>>>>>> symbol : constructor
>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>
>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>>>> 3 errors
>>>>>>>>>> compilation failed, errors should have been reported
>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>>>> wsimport failed
>>>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>>>
>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>>>>> problem with attribute providers not working with SAML2.0 ,
>>>>>>>>>>>> but when I install it into glassfish v2 and rebuild my STS
>>>>>>>>>>>> services in netbeans 6.5, it has API build errors in
>>>>>>>>>>>> Service() constructors.
>>>>>>>>>>>>
>>>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>>>
>>>>>>>>>>> What about Metro 1.4?
>>>>>>>>>>>
>>>>>>>>>>>> My question is, will the 2.0 EA work with
>>>>>>>>>>>> netbeans/glassfish? Or do I have to recreate my services or
>>>>>>>>>>>> something?
>>>>>>>>>>>
>>>>>>>>>>> If it doesn't work it's a bug. It's been working fine for me
>>>>>>>>>>> and we are running tests continuously. What errors are you
>>>>>>>>>>> getting precisely?
>>>>>>>>>>>
>>>>>>>>>>> Fabian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Still I see same the problem.I didn't check with todays nightly and if
it has any fix that might have helped Suresh to come out of the problem.

Just now I installed another version of netbeans(6.5 and older being 6.1
which uses JDK 6 update 6) using JDK 6 update10 , in which I don't see
any problems.

suresh wrote:
> Sorry ......with only webservices-api jar in the endorsed dir. it is
> working...no need to copy webservices-extra-api jar . :-)
If this is the case, then straight away metro installation is working
fine and there is no problem at all. ;-)

Thanks,
Sreekanth

> Fabian Ritzmann wrote:
>> On 19. Feb 2009, at 09:42, suresh wrote:
>>
>>> Copying both webservices-api and webservices-extra-api jars into
>>> java/JDK1.6.0_06/jre/lib/endorsed dir. may help
>>> its working for me after copying both...
>>
>> That is strange. The webservices-extra-api.jar contains the APIs for
>> JAX-RPC and JAXR. I don't see why they would matter for
>> wsimport/wsgen. What error do you see exactly when you don't have
>> webservices-extra-api.jar in the endorsed directory?
>>
>> Fabian
>>
>>
>>> Fabian Ritzmann wrote:
>>>> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>>>>> Fabian Ritzmann wrote:
>>>>>> Moving that discussion to dev@metro.
>>>>>>
>>>>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>>>>
>>>>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>>>>> JDK1.6.0_10.So when I install metro it is going to JDK1.6.0_10
>>>>>>> and my netbeans default JDK is update 6.
>>>>>>>
>>>>>>> So now I have copied the webservices-api.jar to
>>>>>>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>>>>>>
>>>>>>> Even then I see the same error.
>>>>>>>
>>>>>>> I see the jar file is in classpath(See below).May be I messed up
>>>>>>> something .I will try to work on this for some more time and see
>>>>>>> if it resolves.
>>>>>>>
>>>>>>> ============
>>>>>>>
>>>>>>> compiling code...
>>>>>>>
>>>>>>> javac -d
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>>>>>>> -classpath
>>>>>> ...
>>>>>>
>>>>>> That's probably not working because javac is picking up the
>>>>>> Service class from the built-in classes before it looks at the
>>>>>> classpath. Try setting the -Djava.endorsed.dirs=directories...
>>>>>> option when javac is invoked.
>>>>> I tried doing this from netbeans by [Right click on the
>>>>> project->Properties->Compiling and Additional Compiler
>>>>> Options].But this one too didn't work for me.Is it the correct way
>>>>> of doing?
>>>>
>>>> I doubt that is going to help because wsimport invokes a new
>>>> instance of javac and isn't passing on the property.
>>>>
>>>>>> Another thing worth trying would be to copy webservices-api.jar
>>>>>> into /lib/endorsed instead of
>>>>>> /jre/lib/endorsed.
>>>>> Tried this one also.Didn't work for me.
>>>>
>>>> OK. I have no good idea what else to try.
>>>>
>>>> Fabian
>>>>
>>>>
>>>>>>> Fabian Ritzmann wrote:
>>>>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>>>>
>>>>>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>>>>>> installed in my glassfish container, If I try to create a
>>>>>>>>>>> web service client for a ebay wsdl file, I am able to create
>>>>>>>>>>> the webservice client.
>>>>>>>>>>>
>>>>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>>>>> following errors.Attaching the wsdl from ebay site.Did any
>>>>>>>>>>> thing change in 2.0?
>>>>>>>>>>
>>>>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>>>>>> creating code that does not compile because javac is picking
>>>>>>>>>> up the built-in JAX-WS 2.1 classes. The only working solution
>>>>>>>>>> is to copy the webservices-api.jar into
>>>>>>>>>> /lib/endorsed. (You have to create that directory
>>>>>>>>>> if it does not exist.)
>>>>>>>>> Doesn't this happen when we install metro using : ant -f
>>>>>>>>> metro-on-glassfish.xml install and again should it be placed
>>>>>>>>> in JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>>>>
>>>>>>>>> I see this while installing metro:
>>>>>>>>>
>>>>>>>>> install-api:
>>>>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>>>>> [echo] ... installation complete.
>>>>>>>>
>>>>>>>> Yes, but the error below is clearly a mismatch between JAX-WS
>>>>>>>> 2.2 and 2.1. The Service(URL, QName, WebServiceFeature...)
>>>>>>>> constructor was added in JAX-WS 2.2. Maybe the
>>>>>>>> webservices-api.jar is not on the classpath that is invoked by
>>>>>>>> wsimport or javac does not look into the jre endorsed directory?
>>>>>>>>
>>>>>>>> Fabian
>>>>>>>>
>>>>>>>>
>>>>>>>>>>> compiling code...
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>>>>>>> cannot find symbol
>>>>>>>>>>> symbol : constructor
>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>
>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>>>>>>> cannot find symbol
>>>>>>>>>>> symbol : constructor
>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>
>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>>>>>>> cannot find symbol
>>>>>>>>>>> symbol : constructor
>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>
>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>>>>> 3 errors
>>>>>>>>>>> compilation failed, errors should have been reported
>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>>>>> wsimport failed
>>>>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>>>>
>>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>>>>
>>>>>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>>>>>> problem with attribute providers not working with SAML2.0
>>>>>>>>>>>>> , but when I install it into glassfish v2 and rebuild my
>>>>>>>>>>>>> STS services in netbeans 6.5, it has API build errors in
>>>>>>>>>>>>> Service() constructors.
>>>>>>>>>>>>>
>>>>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>>>>
>>>>>>>>>>>> What about Metro 1.4?
>>>>>>>>>>>>
>>>>>>>>>>>>> My question is, will the 2.0 EA work with
>>>>>>>>>>>>> netbeans/glassfish? Or do I have to recreate my services
>>>>>>>>>>>>> or something?
>>>>>>>>>>>>
>>>>>>>>>>>> If it doesn't work it's a bug. It's been working fine for
>>>>>>>>>>>> me and we are running tests continuously. What errors are
>>>>>>>>>>>> you getting precisely?
>>>>>>>>>>>>
>>>>>>>>>>>> Fabian
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: users-help@metro.dev.java.net
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Fabian Ritzmann

On 19. Feb 2009, at 11:08, Sreekanth wrote:

> Still I see same the problem.I didn't check with todays nightly and
> if it has any fix that might have helped Suresh to come out of the
> problem.
>
> Just now I installed another version of netbeans(6.5 and older being
> 6.1 which uses JDK 6 update 6) using JDK 6 update10 , in which I
> don't see any problems.

Maybe the javac that is invoked by wsimport is a different version
than you think it is? Or there is some issue with the classpath for
wsimport? If you hack the NetBeans build-impl.xml and set the verbose
option on the wsimport task it should give more info.

Fabian

> suresh wrote:
>> Sorry ......with only webservices-api jar in the endorsed dir. it
>> is working...no need to copy webservices-extra-api jar . :-)
> If this is the case, then straight away metro installation is
> working fine and there is no problem at all. ;-)
>
> Thanks,
> Sreekanth
>
>> Fabian Ritzmann wrote:
>>> On 19. Feb 2009, at 09:42, suresh wrote:
>>>
>>>> Copying both webservices-api and webservices-extra-api jars into
>>>> java/JDK1.6.0_06/jre/lib/endorsed dir. may help
>>>> its working for me after copying both...
>>>
>>> That is strange. The webservices-extra-api.jar contains the APIs
>>> for JAX-RPC and JAXR. I don't see why they would matter for
>>> wsimport/wsgen. What error do you see exactly when you don't have
>>> webservices-extra-api.jar in the endorsed directory?
>>>
>>> Fabian
>>>
>>>
>>>> Fabian Ritzmann wrote:
>>>>> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>>>>>> Fabian Ritzmann wrote:
>>>>>>> Moving that discussion to dev@metro.
>>>>>>>
>>>>>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>>>>>
>>>>>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>>>>>> JDK1.6.0_10.So when I install metro it is going to
>>>>>>>> JDK1.6.0_10 and my netbeans default JDK is update 6.
>>>>>>>>
>>>>>>>> So now I have copied the webservices-api.jar to JDK1.6.0_06/
>>>>>>>> jre/lib/endorsed and restarted the IDE.
>>>>>>>>
>>>>>>>> Even then I see the same error.
>>>>>>>>
>>>>>>>> I see the jar file is in classpath(See below).May be I messed
>>>>>>>> up something .I will try to work on this for some more time
>>>>>>>> and see if it resolves.
>>>>>>>>
>>>>>>>> ============
>>>>>>>>
>>>>>>>> compiling code...
>>>>>>>>
>>>>>>>> javac -d C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>> \EbayShoppingClientNew-2.0\build\generated\wsimport\binaries -
>>>>>>>> classpath
>>>>>>> ...
>>>>>>>
>>>>>>> That's probably not working because javac is picking up the
>>>>>>> Service class from the built-in classes before it looks at the
>>>>>>> classpath. Try setting the -Djava.endorsed.dirs=directories...
>>>>>>> option when javac is invoked.
>>>>>> I tried doing this from netbeans by [Right click on the project-
>>>>>> >Properties->Compiling and Additional Compiler Options].But
>>>>>> this one too didn't work for me.Is it the correct way of doing?
>>>>>
>>>>> I doubt that is going to help because wsimport invokes a new
>>>>> instance of javac and isn't passing on the property.
>>>>>
>>>>>>> Another thing worth trying would be to copy webservices-
>>>>>>> api.jar into /lib/endorsed instead of /
>>>>>>> jre/lib/endorsed.
>>>>>> Tried this one also.Didn't work for me.
>>>>>
>>>>> OK. I have no good idea what else to try.
>>>>>
>>>>> Fabian
>>>>>
>>>>>
>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>>>>>
>>>>>>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>>>>>>> installed in my glassfish container, If I try to create a
>>>>>>>>>>>> web service client for a ebay wsdl file, I am able to
>>>>>>>>>>>> create the webservice client.
>>>>>>>>>>>>
>>>>>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>>>>>> following errors.Attaching the wsdl from ebay site.Did
>>>>>>>>>>>> any thing change in 2.0?
>>>>>>>>>>>
>>>>>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS
>>>>>>>>>>> 2.2. Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2
>>>>>>>>>>> wsimport is creating code that does not compile because
>>>>>>>>>>> javac is picking up the built-in JAX-WS 2.1 classes. The
>>>>>>>>>>> only working solution is to copy the webservices-api.jar
>>>>>>>>>>> into /lib/endorsed. (You have to create that
>>>>>>>>>>> directory if it does not exist.)
>>>>>>>>>> Doesn't this happen when we install metro using : ant -f
>>>>>>>>>> metro-on-glassfish.xml install and again should it be
>>>>>>>>>> placed in JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>>>>>
>>>>>>>>>> I see this while installing metro:
>>>>>>>>>>
>>>>>>>>>> install-api:
>>>>>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>>>>>> [echo] ... installation complete.
>>>>>>>>>
>>>>>>>>> Yes, but the error below is clearly a mismatch between JAX-
>>>>>>>>> WS 2.2 and 2.1. The Service(URL, QName,
>>>>>>>>> WebServiceFeature...) constructor was added in JAX-WS 2.2.
>>>>>>>>> Maybe the webservices-api.jar is not on the classpath that
>>>>>>>>> is invoked by wsimport or javac does not look into the jre
>>>>>>>>> endorsed directory?
>>>>>>>>>
>>>>>>>>> Fabian
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>>>> compiling code...
>>>>>>>>>>>>
>>>>>>>>>>>>
>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client
>>>>>>>>>>>> \ebay\apis\eblbasecomponents\Shopping.java:49: cannot
>>>>>>>>>>>> find symbol
>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>> Service
>>>>>>>>>>>> (java
>>>>>>>>>>>> .net
>>>>>>>>>>>> .URL
>>>>>>>>>>>> ,javax
>>>>>>>>>>>> .xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client
>>>>>>>>>>>> \ebay\apis\eblbasecomponents\Shopping.java:57: cannot
>>>>>>>>>>>> find symbol
>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>> Service
>>>>>>>>>>>> (java
>>>>>>>>>>>> .net
>>>>>>>>>>>> .URL
>>>>>>>>>>>> ,javax
>>>>>>>>>>>> .xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client
>>>>>>>>>>>> \ebay\apis\eblbasecomponents\Shopping.java:65: cannot
>>>>>>>>>>>> find symbol
>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>> Service
>>>>>>>>>>>> (java
>>>>>>>>>>>> .net
>>>>>>>>>>>> .URL
>>>>>>>>>>>> ,javax
>>>>>>>>>>>> .xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>>>>>> 3 errors
>>>>>>>>>>>> compilation failed, errors should have been reported
>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>>>>>>>>> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>>>>>> wsimport failed
>>>>>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>>>>>
>>>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I had to get the nightly build of Metro because it
>>>>>>>>>>>>>> fixed a problem with attribute providers not working
>>>>>>>>>>>>>> with SAML2.0 , but when I install it into glassfish v2
>>>>>>>>>>>>>> and rebuild my STS services in netbeans 6.5, it has API
>>>>>>>>>>>>>> build errors in Service() constructors.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>>>>>
>>>>>>>>>>>>> What about Metro 1.4?
>>>>>>>>>>>>>
>>>>>>>>>>>>>> My question is, will the 2.0 EA work with netbeans/
>>>>>>>>>>>>>> glassfish? Or do I have to recreate my services or
>>>>>>>>>>>>>> something?
>>>>>>>>>>>>>
>>>>>>>>>>>>> If it doesn't work it's a bug. It's been working fine
>>>>>>>>>>>>> for me and we are running tests continuously. What
>>>>>>>>>>>>> errors are you getting precisely?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

[att1.html]

Martin Grebac

Hi,
in NetBeans go to tools/options (or NetBeans preferences if you're on
mac), click "Miscellaneous" tab, and change verbosity level to "Verbose".
MartinG

Sreekanth wrote:
> Hi Fabian,
>
> This is the target where I am getting the exceptions:
>
>
> > srcdir="${build.generated.dir}/wsimport/client"
> classpath="${j2ee.platform.wsimport.classpath}:${javac.classpath}"
> destdir="${build.classes.dir}"/>
>

>
> ============================
> wsimport-client-generate:
> Created dir:
> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0_1\build\web\WEB-INF\classes
> wsimport-client-compile:
> Compiling 42 source files to
> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0_1\build\web\WEB-INF\classes
> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0_1\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
> cannot find symbol
> symbol : constructor
> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0_1\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
> cannot find symbol
> symbol : constructor
> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(wsdlLocation, SHOPPING_QNAME, features);
> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0_1\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
> cannot find symbol
> symbol : constructor
> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(wsdlLocation, serviceName, features);
> 3 errors
> =======================
>
> If I give verbose=true, the ant compiler says Invalid attribute and
> when I removed the webproject2 in the task, it worked fine and I don't
> see any build errors.
>
>
> > verbose="true"
> classpath="${j2ee.platform.wsimport.classpath}:${javac.classpath}"
> destdir="${build.classes.dir}"/>
>

>
> Fabian can you tell me how to use verbose option for the task
> ?
>
>
> Thanks,
> Sreekanth
>
>
>
>
> Fabian Ritzmann wrote:
>> On 19. Feb 2009, at 11:08, Sreekanth wrote:
>>
>>> Still I see same the problem.I didn't check with todays nightly and
>>> if it has any fix that might have helped Suresh to come out of the
>>> problem.
>>>
>>> Just now I installed another version of netbeans(6.5 and older being
>>> 6.1 which uses JDK 6 update 6) using JDK 6 update10 , in which I
>>> don't see any problems.
>>
>> Maybe the javac that is invoked by wsimport is a different version
>> than you think it is? Or there is some issue with the classpath for
>> wsimport? If you hack the NetBeans build-impl.xml and set the verbose
>> option on the wsimport task it should give more info.
>>
>> Fabian
>>
>>
>>> suresh wrote:
>>>> Sorry ......with only webservices-api jar in the endorsed dir. it
>>>> is working...no need to copy webservices-extra-api jar . :-)
>>> If this is the case, then straight away metro installation is
>>> working fine and there is no problem at all. ;-)
>>>
>>> Thanks,
>>> Sreekanth
>>>
>>>> Fabian Ritzmann wrote:
>>>>> On 19. Feb 2009, at 09:42, suresh wrote:
>>>>>
>>>>>> Copying both webservices-api and webservices-extra-api jars into
>>>>>> java/JDK1.6.0_06/jre/lib/endorsed dir. may help
>>>>>> its working for me after copying both...
>>>>>
>>>>> That is strange. The webservices-extra-api.jar contains the APIs
>>>>> for JAX-RPC and JAXR. I don't see why they would matter for
>>>>> wsimport/wsgen. What error do you see exactly when you don't have
>>>>> webservices-extra-api.jar in the endorsed directory?
>>>>>
>>>>> Fabian
>>>>>
>>>>>
>>>>>> Fabian Ritzmann wrote:
>>>>>>> On 17. Feb 2009, at 14:37, Sreekanth wrote:
>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>> Moving that discussion to dev@metro.
>>>>>>>>>
>>>>>>>>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>>>>>>>>
>>>>>>>>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other
>>>>>>>>>> JDK1.6.0_10.So when I install metro it is going to
>>>>>>>>>> JDK1.6.0_10 and my netbeans default JDK is update 6.
>>>>>>>>>>
>>>>>>>>>> So now I have copied the webservices-api.jar to
>>>>>>>>>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>>>>>>>>>
>>>>>>>>>> Even then I see the same error.
>>>>>>>>>>
>>>>>>>>>> I see the jar file is in classpath(See below).May be I messed
>>>>>>>>>> up something .I will try to work on this for some more time
>>>>>>>>>> and see if it resolves.
>>>>>>>>>>
>>>>>>>>>> ============
>>>>>>>>>>
>>>>>>>>>> compiling code...
>>>>>>>>>>
>>>>>>>>>> javac -d
>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>>>>>>>>>> -classpath
>>>>>>>>> ...
>>>>>>>>>
>>>>>>>>> That's probably not working because javac is picking up the
>>>>>>>>> Service class from the built-in classes before it looks at the
>>>>>>>>> classpath. Try setting the -Djava.endorsed.dirs=directories...
>>>>>>>>> option when javac is invoked.
>>>>>>>> I tried doing this from netbeans by [Right click on the
>>>>>>>> project->Properties->Compiling and Additional Compiler
>>>>>>>> Options].But this one too didn't work for me.Is it the correct
>>>>>>>> way of doing?
>>>>>>>
>>>>>>> I doubt that is going to help because wsimport invokes a new
>>>>>>> instance of javac and isn't passing on the property.
>>>>>>>
>>>>>>>>> Another thing worth trying would be to copy
>>>>>>>>> webservices-api.jar into /lib/endorsed instead of
>>>>>>>>> /jre/lib/endorsed.
>>>>>>>> Tried this one also.Didn't work for me.
>>>>>>>
>>>>>>> OK. I have no good idea what else to try.
>>>>>>>
>>>>>>> Fabian
>>>>>>>
>>>>>>>
>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>>>>>>>>
>>>>>>>>>>>>>> I too noticed a similar problem.When I have metro 1.4
>>>>>>>>>>>>>> installed in my glassfish container, If I try to create a
>>>>>>>>>>>>>> web service client for a ebay wsdl file, I am able to
>>>>>>>>>>>>>> create the webservice client.
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>>>>>>>>> following errors.Attaching the wsdl from ebay site.Did
>>>>>>>>>>>>>> any thing change in 2.0?
>>>>>>>>>>>>>
>>>>>>>>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS
>>>>>>>>>>>>> 2.2. Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2
>>>>>>>>>>>>> wsimport is creating code that does not compile because
>>>>>>>>>>>>> javac is picking up the built-in JAX-WS 2.1 classes. The
>>>>>>>>>>>>> only working solution is to copy the webservices-api.jar
>>>>>>>>>>>>> into /lib/endorsed. (You have to create that
>>>>>>>>>>>>> directory if it does not exist.)
>>>>>>>>>>>> Doesn't this happen when we install metro using : ant -f
>>>>>>>>>>>> metro-on-glassfish.xml install and again should it be
>>>>>>>>>>>> placed in JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>>>>>>>>
>>>>>>>>>>>> I see this while installing metro:
>>>>>>>>>>>>
>>>>>>>>>>>> install-api:
>>>>>>>>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>>>>>>>>> [echo] ... installation complete.
>>>>>>>>>>>
>>>>>>>>>>> Yes, but the error below is clearly a mismatch between
>>>>>>>>>>> JAX-WS 2.2 and 2.1. The Service(URL, QName,
>>>>>>>>>>> WebServiceFeature...) constructor was added in JAX-WS 2.2.
>>>>>>>>>>> Maybe the webservices-api.jar is not on the classpath that
>>>>>>>>>>> is invoked by wsimport or javac does not look into the jre
>>>>>>>>>>> endorsed directory?
>>>>>>>>>>>
>>>>>>>>>>> Fabian
>>>>>>>>>>>
>>>>>>>>>>>
>>>>>>>>>>>>>> compiling code...
>>>>>>>>>>>>>>
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>>>>>>>>>> cannot find symbol
>>>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>>>>>>>>>> cannot find symbol
>>>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>>>>>>>>>> cannot find symbol
>>>>>>>>>>>>>> symbol : constructor
>>>>>>>>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> location: class javax.xml.ws.Service
>>>>>>>>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>>>>>>>>> 3 errors
>>>>>>>>>>>>>> compilation failed, errors should have been reported
>>>>>>>>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>>>>>>>>> wsimport failed
>>>>>>>>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>>>>>>>>
>>>>>>>>>>>>>> Fabian Ritzmann wrote:
>>>>>>>>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> I had to get the nightly build of Metro because it
>>>>>>>>>>>>>>>> fixed a problem with attribute providers not working
>>>>>>>>>>>>>>>> with SAML2.0 , but when I install it into glassfish v2
>>>>>>>>>>>>>>>> and rebuild my STS services in netbeans 6.5, it has API
>>>>>>>>>>>>>>>> build errors in Service() constructors.
>>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> What about Metro 1.4?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>>> My question is, will the 2.0 EA work with
>>>>>>>>>>>>>>>> netbeans/glassfish? Or do I have to recreate my
>>>>>>>>>>>>>>>> services or something?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> If it doesn't work it's a bug. It's been working fine
>>>>>>>>>>>>>>> for me and we are running tests continuously. What
>>>>>>>>>>>>>>> errors are you getting precisely?
>>>>>>>>>>>>>>>
>>>>>>>>>>>>>>> Fabian
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: dev-help@metro.dev.java.net
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@metro.dev.java.net For
> additional commands, e-mail: dev-help@metro.dev.java.net

--
Martin Grebac, http://blogs.sun.com/mgrebac

Web Technologies & Standards
Sun Microsystems Czech

ICQ: 93478885

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

[att1.html]

Fabian Ritzmann

On 19. Feb 2009, at 12:16, Sreekanth wrote:

> Compiling 42 source files to C:\Users\TOSHIBA1\Documents
> \NetBeansProjects\EbayShoppingCart-2.0_3\build\web\WEB-INF\classes
> Using modern compiler
> dropping C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib
> \tools.jar from path as it doesn't exist
> Compilation arguments:
> '-d'
> 'C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingCart-2.0_3\build\web\WEB-INF\classes'
> '-classpath'
> 'C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingCart-2.0_3\build\web\WEB-INF\classes;C:\Users
> \TOSHIBA1\space\servers\glassfish-v2ur2\lib\webservices-tools.jar;C:
> \Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib\webservices-
> rt.jar;C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib\appserv-
> jstl.jar;C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib
> \javaee.jar;C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib
> \appserv-ws.jar;C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib
> \mail.jar;C:\Users\TOSHIBA1\space\servers\glassfish-v2ur2\lib
> \activation.jar'
> '-sourcepath'
> 'C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingCart-2.0_3\build\generated\wsimport\client'
> '-target'
> '1.5'
> '-encoding'
> 'UTF-8'
> '-g'
> '-Djava.endorsed.dirs=C:\Users\TOSHIBA1\space\ide
> \NetBeans6.1\java2\modules\ext\jaxws21\api'
> '-source'
> '1.5'

I see. This command sets the java.endorsed.dirs property. If I
understand > correctly that causes javac *not* to look into /lib/
endorsed.

Martin, is it only NetBeans 6.1 that sets java.endorsed.dirs?

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

dgovoni
Offline
Joined: 2008-09-25
Points: 0

Hmmmm. A bit of discussion since I last visited! ;)

Does Metro 1.4 have the fix for broken STS attribute provider and SAML2.0? I saw the thread about it dated last week that a nightly build had fixed it, so maybe it came after 1.4?

As far as Metro 2 and Netbeans 6.5 release, I truly hope they can work together.

Cheers!

jdg6688
Offline
Joined: 2005-11-02
Points: 0

The fix for attributes in SAML 2.0 assertions is available for Metro 1.5 build, for which
nightly build should be available next week.

Fabian Ritzmann

On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:

> I had to get the nightly build of Metro because it fixed a problem
> with attribute providers not working with SAML2.0 , but when I
> install it into glassfish v2 and rebuild my STS services in netbeans
> 6.5, it has API build errors in Service() constructors.
>
> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.

What about Metro 1.4?

> My question is, will the 2.0 EA work with netbeans/glassfish? Or do
> I have to recreate my services or something?

If it doesn't work it's a bug. It's been working fine for me and we
are running tests continuously. What errors are you getting precisely?

Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Hi Fabian,

I too noticed a similar problem.When I have metro 1.4 installed in my
glassfish container, If I try to create a web service client for a ebay
wsdl file, I am able to create the webservice client.

But if I have metro 2.0 and when I do the same I get the following
errors.Attaching the wsdl from ebay site.Did any thing change in 2.0?

compiling code...

C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
cannot find symbol
symbol : constructor
Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
cannot find symbol
symbol : constructor
Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
super(wsdlLocation, SHOPPING_QNAME, features);
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
cannot find symbol
symbol : constructor
Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
super(wsdlLocation, serviceName, features);
3 errors
compilation failed, errors should have been reported
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
wsimport failed
BUILD FAILED (total time: 4 seconds)

Fabian Ritzmann wrote:
> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>
>> I had to get the nightly build of Metro because it fixed a problem
>> with attribute providers not working with SAML2.0 , but when I
>> install it into glassfish v2 and rebuild my STS services in netbeans
>> 6.5, it has API build errors in Service() constructors.
>>
>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>
> What about Metro 1.4?
>
>> My question is, will the 2.0 EA work with netbeans/glassfish? Or do I
>> have to recreate my services or something?
>
> If it doesn't work it's a bug. It's been working fine for me and we
> are running tests continuously. What errors are you getting precisely?
>
> Fabian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>
[ebay.com webservices 521 shoppingservice.wsdl]
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Fabian Ritzmann

On 17. Feb 2009, at 11:29, Sreekanth wrote:

> I too noticed a similar problem.When I have metro 1.4 installed in
> my glassfish container, If I try to create a web service client for
> a ebay wsdl file, I am able to create the webservice client.
>
> But if I have metro 2.0 and when I do the same I get the following
> errors.Attaching the wsdl from ebay site.Did any thing change in 2.0?

Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2. Java SE
6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is creating code that
does not compile because javac is picking up the built-in JAX-WS 2.1
classes. The only working solution is to copy the webservices-api.jar
into /lib/endorsed. (You have to create that directory if
it does not exist.)

Fabian

> compiling code...
>
>
> C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
> \eblbasecomponents\Shopping.java:49: cannot find symbol
> symbol : constructor
> Service
> (java
> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
> C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
> \eblbasecomponents\Shopping.java:57: cannot find symbol
> symbol : constructor
> Service
> (java
> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(wsdlLocation, SHOPPING_QNAME, features);
> C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
> \eblbasecomponents\Shopping.java:65: cannot find symbol
> symbol : constructor
> Service
> (java
> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
> location: class javax.xml.ws.Service
> super(wsdlLocation, serviceName, features);
> 3 errors
> compilation failed, errors should have been reported
> C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24: wsimport failed
> BUILD FAILED (total time: 4 seconds)
>
> Fabian Ritzmann wrote:
>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>
>>> I had to get the nightly build of Metro because it fixed a
>>> problem with attribute providers not working with SAML2.0 , but
>>> when I install it into glassfish v2 and rebuild my STS services in
>>> netbeans 6.5, it has API build errors in Service() constructors.
>>>
>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>
>> What about Metro 1.4?
>>
>>> My question is, will the 2.0 EA work with netbeans/glassfish? Or
>>> do I have to recreate my services or something?
>>
>> If it doesn't work it's a bug. It's been working fine for me and we
>> are running tests continuously. What errors are you getting
>> precisely?
>>
>> Fabian

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Fabian Ritzmann wrote:
> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>
>> I too noticed a similar problem.When I have metro 1.4 installed in my
>> glassfish container, If I try to create a web service client for a
>> ebay wsdl file, I am able to create the webservice client.
>>
>> But if I have metro 2.0 and when I do the same I get the following
>> errors.Attaching the wsdl from ebay site.Did any thing change in 2.0?
>
> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2. Java SE
> 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is creating code that
> does not compile because javac is picking up the built-in JAX-WS 2.1
> classes. The only working solution is to copy the webservices-api.jar
> into /lib/endorsed. (You have to create that directory if
> it does not exist.)
Doesn't this happen when we install metro using : ant -f
metro-on-glassfish.xml install and again should it be placed in
JAVA_HOME/lib or JAVA_HOME/jre/lib ?

I see this while installing metro:

install-api:
[copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
[echo] ... installation complete.

>
> Fabian
>
>
>> compiling code...
>>
>>
>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>> cannot find symbol
>> symbol : constructor
>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>
>> location: class javax.xml.ws.Service
>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>> cannot find symbol
>> symbol : constructor
>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>
>> location: class javax.xml.ws.Service
>> super(wsdlLocation, SHOPPING_QNAME, features);
>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>> cannot find symbol
>> symbol : constructor
>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>
>> location: class javax.xml.ws.Service
>> super(wsdlLocation, serviceName, features);
>> 3 errors
>> compilation failed, errors should have been reported
>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>> wsimport failed
>> BUILD FAILED (total time: 4 seconds)
>>
>> Fabian Ritzmann wrote:
>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>
>>>> I had to get the nightly build of Metro because it fixed a problem
>>>> with attribute providers not working with SAML2.0 , but when I
>>>> install it into glassfish v2 and rebuild my STS services in
>>>> netbeans 6.5, it has API build errors in Service() constructors.
>>>>
>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>
>>> What about Metro 1.4?
>>>
>>>> My question is, will the 2.0 EA work with netbeans/glassfish? Or do
>>>> I have to recreate my services or something?
>>>
>>> If it doesn't work it's a bug. It's been working fine for me and we
>>> are running tests continuously. What errors are you getting precisely?
>>>
>>> Fabian
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Fabian Ritzmann

On 17. Feb 2009, at 12:29, Sreekanth wrote:
> Fabian Ritzmann wrote:
>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>
>>> I too noticed a similar problem.When I have metro 1.4 installed in
>>> my glassfish container, If I try to create a web service client
>>> for a ebay wsdl file, I am able to create the webservice client.
>>>
>>> But if I have metro 2.0 and when I do the same I get the following
>>> errors.Attaching the wsdl from ebay site.Did any thing change in
>>> 2.0?
>>
>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2. Java
>> SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is creating code
>> that does not compile because javac is picking up the built-in JAX-
>> WS 2.1 classes. The only working solution is to copy the
>> webservices-api.jar into /lib/endorsed. (You have to
>> create that directory if it does not exist.)
> Doesn't this happen when we install metro using : ant -f metro-on-
> glassfish.xml install and again should it be placed in JAVA_HOME/lib
> or JAVA_HOME/jre/lib ?
>
> I see this while installing metro:
>
> install-api:
> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
> [echo] ... installation complete.

Yes, but the error below is clearly a mismatch between JAX-WS 2.2 and
2.1. The Service(URL, QName, WebServiceFeature...) constructor was
added in JAX-WS 2.2. Maybe the webservices-api.jar is not on the
classpath that is invoked by wsimport or javac does not look into the
jre endorsed directory?

Fabian

>>> compiling code...
>>>
>>>
>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>> \eblbasecomponents\Shopping.java:49: cannot find symbol
>>> symbol : constructor
>>> Service
>>> (java
>>> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>> \eblbasecomponents\Shopping.java:57: cannot find symbol
>>> symbol : constructor
>>> Service
>>> (java
>>> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>> \eblbasecomponents\Shopping.java:65: cannot find symbol
>>> symbol : constructor
>>> Service
>>> (java
>>> .net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>> location: class javax.xml.ws.Service
>>> super(wsdlLocation, serviceName, features);
>>> 3 errors
>>> compilation failed, errors should have been reported
>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24: wsimport
>>> failed
>>> BUILD FAILED (total time: 4 seconds)
>>>
>>> Fabian Ritzmann wrote:
>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>
>>>>> I had to get the nightly build of Metro because it fixed a
>>>>> problem with attribute providers not working with SAML2.0 , but
>>>>> when I install it into glassfish v2 and rebuild my STS services
>>>>> in netbeans 6.5, it has API build errors in Service()
>>>>> constructors.
>>>>>
>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>
>>>> What about Metro 1.4?
>>>>
>>>>> My question is, will the 2.0 EA work with netbeans/glassfish? Or
>>>>> do I have to recreate my services or something?
>>>>
>>>> If it doesn't work it's a bug. It's been working fine for me and
>>>> we are running tests continuously. What errors are you getting
>>>> precisely?
>>>>
>>>> Fabian
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Yes I have 2 JDKS installed one JDK1.6.0_06 and other JDK1.6.0_10.So
when I install metro it is going to JDK1.6.0_10 and my netbeans default
JDK is update 6.

So now I have copied the webservices-api.jar to
JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.

Even then I see the same error.

I see the jar file is in classpath(See below).May be I messed up
something .I will try to work on this for some more time and see if it
resolves.

============

compiling code...

javac -d
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
-classpath
C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-antlr.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-bcel.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-bsf.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-log4j.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-oro.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-regexp.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-apache-resolver.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-commons-logging.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-commons-net.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-jai.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-javamail.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-jdepend.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-jmf.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-jsch.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-junit.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-launcher.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-netrexx.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-nodeps.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-starteam.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-stylebook.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-swing.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-testutil.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-trax.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant-weblogic.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\java2\ant\lib\ant.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\mobility8\modules\ext\jakarta-oro-2.0.8.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\mobility8\modules\ext\commons-net-1.4.1.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\ide9\modules\ext\jsch-0.1.24.ja
ace\ide\NetBeans6.1\platform8\lib\boot.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\org-openide-modules.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\org-openide-util.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\boot_ja.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\boot_pt_BR.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\boot_zh_CN.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-modules_ja.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-modules_pt_BR.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-modules_zh_CN.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-util_ja.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-util_pt_BR.jar;C:\Users\TOSHIBA1\space\ide\NetBeans6.1\platform8\lib\locale\org-openide-util_zh_CN.jar;C:\Java\jdk1.6.0_06\lib\dt.jar;C:\Java\jdk1.6.0_06\lib\tools.jar
-Xbootclasspath/p:C:\Java\jdk1.6.0_06\jre\lib\endorsed\webservices-api.jar;C:\Java\jdk1.6.0_06\jre\lib\endorsed\webservices-api.jar
....
....
....
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\package-info.java

wsimport-client-generate:
Created dir:
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\web\WEB-INF\classes
wsimport-client-compile:
Compiling 42 source files to
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\web\WEB-INF\classes
C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
cannot find symbol
symbol : constructor
Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
location: class javax.xml.ws.Service
super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);

=============
Thanks,
Sreekanth

Fabian Ritzmann wrote:
> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>> Fabian Ritzmann wrote:
>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>
>>>> I too noticed a similar problem.When I have metro 1.4 installed in
>>>> my glassfish container, If I try to create a web service client for
>>>> a ebay wsdl file, I am able to create the webservice client.
>>>>
>>>> But if I have metro 2.0 and when I do the same I get the following
>>>> errors.Attaching the wsdl from ebay site.Did any thing change in 2.0?
>>>
>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2. Java
>>> SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is creating code
>>> that does not compile because javac is picking up the built-in
>>> JAX-WS 2.1 classes. The only working solution is to copy the
>>> webservices-api.jar into /lib/endorsed. (You have to
>>> create that directory if it does not exist.)
>> Doesn't this happen when we install metro using : ant -f
>> metro-on-glassfish.xml install and again should it be placed in
>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>
>> I see this while installing metro:
>>
>> install-api:
>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>> [echo] ... installation complete.
>
> Yes, but the error below is clearly a mismatch between JAX-WS 2.2 and
> 2.1. The Service(URL, QName, WebServiceFeature...) constructor was
> added in JAX-WS 2.2. Maybe the webservices-api.jar is not on the
> classpath that is invoked by wsimport or javac does not look into the
> jre endorsed directory?
>
> Fabian
>
>
>>>> compiling code...
>>>>
>>>>
>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>> cannot find symbol
>>>> symbol : constructor
>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>
>>>> location: class javax.xml.ws.Service
>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>> cannot find symbol
>>>> symbol : constructor
>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>
>>>> location: class javax.xml.ws.Service
>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>> cannot find symbol
>>>> symbol : constructor
>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>
>>>> location: class javax.xml.ws.Service
>>>> super(wsdlLocation, serviceName, features);
>>>> 3 errors
>>>> compilation failed, errors should have been reported
>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>> wsimport failed
>>>> BUILD FAILED (total time: 4 seconds)
>>>>
>>>> Fabian Ritzmann wrote:
>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>
>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>> problem with attribute providers not working with SAML2.0 , but
>>>>>> when I install it into glassfish v2 and rebuild my STS services
>>>>>> in netbeans 6.5, it has API build errors in Service() constructors.
>>>>>>
>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>
>>>>> What about Metro 1.4?
>>>>>
>>>>>> My question is, will the 2.0 EA work with netbeans/glassfish? Or
>>>>>> do I have to recreate my services or something?
>>>>>
>>>>> If it doesn't work it's a bug. It's been working fine for me and
>>>>> we are running tests continuously. What errors are you getting
>>>>> precisely?
>>>>>
>>>>> Fabian
>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Fabian Ritzmann

Moving that discussion to dev@metro.

On 17. Feb 2009, at 13:26, Sreekanth wrote:

> Yes I have 2 JDKS installed one JDK1.6.0_06 and other JDK1.6.0_10.So
> when I install metro it is going to JDK1.6.0_10 and my netbeans
> default JDK is update 6.
>
> So now I have copied the webservices-api.jar to JDK1.6.0_06/jre/lib/
> endorsed and restarted the IDE.
>
> Even then I see the same error.
>
> I see the jar file is in classpath(See below).May be I messed up
> something .I will try to work on this for some more time and see if
> it resolves.
>
> ============
>
> compiling code...
>
> javac -d C:\Users\TOSHIBA1\Documents\NetBeansProjects
> \EbayShoppingClientNew-2.0\build\generated\wsimport\binaries -
> classpath
...

That's probably not working because javac is picking up the Service
class from the built-in classes before it looks at the classpath. Try
setting the -Djava.endorsed.dirs=directories... option when javac is
invoked.

Another thing worth trying would be to copy webservices-api.jar into
/lib/endorsed instead of /jre/lib/endorsed.

Fabian

> Fabian Ritzmann wrote:
>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>> Fabian Ritzmann wrote:
>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>
>>>>> I too noticed a similar problem.When I have metro 1.4 installed
>>>>> in my glassfish container, If I try to create a web service
>>>>> client for a ebay wsdl file, I am able to create the webservice
>>>>> client.
>>>>>
>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>> following errors.Attaching the wsdl from ebay site.Did any thing
>>>>> change in 2.0?
>>>>
>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>> creating code that does not compile because javac is picking up
>>>> the built-in JAX-WS 2.1 classes. The only working solution is to
>>>> copy the webservices-api.jar into /lib/endorsed. (You
>>>> have to create that directory if it does not exist.)
>>> Doesn't this happen when we install metro using : ant -f metro-on-
>>> glassfish.xml install and again should it be placed in JAVA_HOME/
>>> lib or JAVA_HOME/jre/lib ?
>>>
>>> I see this while installing metro:
>>>
>>> install-api:
>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>> [echo] ... installation complete.
>>
>> Yes, but the error below is clearly a mismatch between JAX-WS 2.2
>> and 2.1. The Service(URL, QName, WebServiceFeature...) constructor
>> was added in JAX-WS 2.2. Maybe the webservices-api.jar is not on
>> the classpath that is invoked by wsimport or javac does not look
>> into the jre endorsed directory?
>>
>> Fabian
>>
>>
>>>>> compiling code...
>>>>>
>>>>>
>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>>>> \eblbasecomponents\Shopping.java:49: cannot find symbol
>>>>> symbol : constructor
>>>>> Service
>>>>> (java
>>>>> .net
>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>>>> \eblbasecomponents\Shopping.java:57: cannot find symbol
>>>>> symbol : constructor
>>>>> Service
>>>>> (java
>>>>> .net
>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>> \EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis
>>>>> \eblbasecomponents\Shopping.java:65: cannot find symbol
>>>>> symbol : constructor
>>>>> Service
>>>>> (java
>>>>> .net
>>>>> .URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>> location: class javax.xml.ws.Service
>>>>> super(wsdlLocation, serviceName, features);
>>>>> 3 errors
>>>>> compilation failed, errors should have been reported
>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects
>>>>> \EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24: wsimport
>>>>> failed
>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>
>>>>> Fabian Ritzmann wrote:
>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>
>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>> problem with attribute providers not working with SAML2.0 ,
>>>>>>> but when I install it into glassfish v2 and rebuild my STS
>>>>>>> services in netbeans 6.5, it has API build errors in Service()
>>>>>>> constructors.
>>>>>>>
>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>
>>>>>> What about Metro 1.4?
>>>>>>
>>>>>>> My question is, will the 2.0 EA work with netbeans/glassfish?
>>>>>>> Or do I have to recreate my services or something?
>>>>>>
>>>>>> If it doesn't work it's a bug. It's been working fine for me
>>>>>> and we are running tests continuously. What errors are you
>>>>>> getting precisely?
>>>>>>
>>>>>> Fabian
>>>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

Sreekanth

Fabian Ritzmann wrote:
> Moving that discussion to dev@metro.
>
> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>
>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other JDK1.6.0_10.So
>> when I install metro it is going to JDK1.6.0_10 and my netbeans
>> default JDK is update 6.
>>
>> So now I have copied the webservices-api.jar to
>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>
>> Even then I see the same error.
>>
>> I see the jar file is in classpath(See below).May be I messed up
>> something .I will try to work on this for some more time and see if
>> it resolves.
>>
>> ============
>>
>> compiling code...
>>
>> javac -d
>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>> -classpath
> ...
>
> That's probably not working because javac is picking up the Service
> class from the built-in classes before it looks at the classpath. Try
> setting the -Djava.endorsed.dirs=directories... option when javac is
> invoked.
I tried doing this from netbeans by [Right click on the
project->Properties->Compiling and Additional Compiler Options].But this
one too didn't work for me.Is it the correct way of doing?
>
> Another thing worth trying would be to copy webservices-api.jar into
> /lib/endorsed instead of /jre/lib/endorsed.
Tried this one also.Didn't work for me.
>
> Fabian
>
>
>> Fabian Ritzmann wrote:
>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>> Fabian Ritzmann wrote:
>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>
>>>>>> I too noticed a similar problem.When I have metro 1.4 installed
>>>>>> in my glassfish container, If I try to create a web service
>>>>>> client for a ebay wsdl file, I am able to create the webservice
>>>>>> client.
>>>>>>
>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>> following errors.Attaching the wsdl from ebay site.Did any thing
>>>>>> change in 2.0?
>>>>>
>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2. Java
>>>>> SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is creating code
>>>>> that does not compile because javac is picking up the built-in
>>>>> JAX-WS 2.1 classes. The only working solution is to copy the
>>>>> webservices-api.jar into /lib/endorsed. (You have to
>>>>> create that directory if it does not exist.)
>>>> Doesn't this happen when we install metro using : ant -f
>>>> metro-on-glassfish.xml install and again should it be placed in
>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>
>>>> I see this while installing metro:
>>>>
>>>> install-api:
>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>> [echo] ... installation complete.
>>>
>>> Yes, but the error below is clearly a mismatch between JAX-WS 2.2
>>> and 2.1. The Service(URL, QName, WebServiceFeature...) constructor
>>> was added in JAX-WS 2.2. Maybe the webservices-api.jar is not on the
>>> classpath that is invoked by wsimport or javac does not look into
>>> the jre endorsed directory?
>>>
>>> Fabian
>>>
>>>
>>>>>> compiling code...
>>>>>>
>>>>>>
>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>> cannot find symbol
>>>>>> symbol : constructor
>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>
>>>>>> location: class javax.xml.ws.Service
>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>> cannot find symbol
>>>>>> symbol : constructor
>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>
>>>>>> location: class javax.xml.ws.Service
>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>> cannot find symbol
>>>>>> symbol : constructor
>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>
>>>>>> location: class javax.xml.ws.Service
>>>>>> super(wsdlLocation, serviceName, features);
>>>>>> 3 errors
>>>>>> compilation failed, errors should have been reported
>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>> wsimport failed
>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>
>>>>>> Fabian Ritzmann wrote:
>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>
>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>> problem with attribute providers not working with SAML2.0 , but
>>>>>>>> when I install it into glassfish v2 and rebuild my STS services
>>>>>>>> in netbeans 6.5, it has API build errors in Service()
>>>>>>>> constructors.
>>>>>>>>
>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>
>>>>>>> What about Metro 1.4?
>>>>>>>
>>>>>>>> My question is, will the 2.0 EA work with netbeans/glassfish?
>>>>>>>> Or do I have to recreate my services or something?
>>>>>>>
>>>>>>> If it doesn't work it's a bug. It's been working fine for me and
>>>>>>> we are running tests continuously. What errors are you getting
>>>>>>> precisely?
>>>>>>>
>>>>>>> Fabian
>>>>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net

suresh

HI,
I too face the same problem now..
Suresh

Sreekanth wrote:
>
> Fabian Ritzmann wrote:
>> Moving that discussion to dev@metro.
>>
>> On 17. Feb 2009, at 13:26, Sreekanth wrote:
>>
>>> Yes I have 2 JDKS installed one JDK1.6.0_06 and other JDK1.6.0_10.So
>>> when I install metro it is going to JDK1.6.0_10 and my netbeans
>>> default JDK is update 6.
>>>
>>> So now I have copied the webservices-api.jar to
>>> JDK1.6.0_06/jre/lib/endorsed and restarted the IDE.
>>>
>>> Even then I see the same error.
>>>
>>> I see the jar file is in classpath(See below).May be I messed up
>>> something .I will try to work on this for some more time and see if
>>> it resolves.
>>>
>>> ============
>>>
>>> compiling code...
>>>
>>> javac -d
>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClientNew-2.0\build\generated\wsimport\binaries
>>> -classpath
>> ...
>>
>> That's probably not working because javac is picking up the Service
>> class from the built-in classes before it looks at the classpath. Try
>> setting the -Djava.endorsed.dirs=directories... option when javac is
>> invoked.
> I tried doing this from netbeans by [Right click on the
> project->Properties->Compiling and Additional Compiler Options].But
> this one too didn't work for me.Is it the correct way of doing?
>>
>> Another thing worth trying would be to copy webservices-api.jar into
>> /lib/endorsed instead of /jre/lib/endorsed.
> Tried this one also.Didn't work for me.
>>
>> Fabian
>>
>>
>>> Fabian Ritzmann wrote:
>>>> On 17. Feb 2009, at 12:29, Sreekanth wrote:
>>>>> Fabian Ritzmann wrote:
>>>>>> On 17. Feb 2009, at 11:29, Sreekanth wrote:
>>>>>>
>>>>>>> I too noticed a similar problem.When I have metro 1.4 installed
>>>>>>> in my glassfish container, If I try to create a web service
>>>>>>> client for a ebay wsdl file, I am able to create the webservice
>>>>>>> client.
>>>>>>>
>>>>>>> But if I have metro 2.0 and when I do the same I get the
>>>>>>> following errors.Attaching the wsdl from ebay site.Did any thing
>>>>>>> change in 2.0?
>>>>>>
>>>>>> Oh, now I know what's going on. Metro 2.0 bundles JAX-WS 2.2.
>>>>>> Java SE 6 includes JAX-WS 2.1. The JAX-WS 2.2 wsimport is
>>>>>> creating code that does not compile because javac is picking up
>>>>>> the built-in JAX-WS 2.1 classes. The only working solution is to
>>>>>> copy the webservices-api.jar into /lib/endorsed. (You
>>>>>> have to create that directory if it does not exist.)
>>>>> Doesn't this happen when we install metro using : ant -f
>>>>> metro-on-glassfish.xml install and again should it be placed in
>>>>> JAVA_HOME/lib or JAVA_HOME/jre/lib ?
>>>>>
>>>>> I see this while installing metro:
>>>>>
>>>>> install-api:
>>>>> [copy] Copying 1 file to C:\Java\jdk1.6.0_10\jre\lib\endorsed
>>>>> [echo] ... installation complete.
>>>>
>>>> Yes, but the error below is clearly a mismatch between JAX-WS 2.2
>>>> and 2.1. The Service(URL, QName, WebServiceFeature...) constructor
>>>> was added in JAX-WS 2.2. Maybe the webservices-api.jar is not on
>>>> the classpath that is invoked by wsimport or javac does not look
>>>> into the jre endorsed directory?
>>>>
>>>> Fabian
>>>>
>>>>
>>>>>>> compiling code...
>>>>>>>
>>>>>>>
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:49:
>>>>>>> cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(SHOPPING_WSDL_LOCATION, SHOPPING_QNAME, features);
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:57:
>>>>>>> cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(wsdlLocation, SHOPPING_QNAME, features);
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\build\generated\wsimport\client\ebay\apis\eblbasecomponents\Shopping.java:65:
>>>>>>> cannot find symbol
>>>>>>> symbol : constructor
>>>>>>> Service(java.net.URL,javax.xml.namespace.QName,javax.xml.ws.WebServiceFeature[])
>>>>>>>
>>>>>>> location: class javax.xml.ws.Service
>>>>>>> super(wsdlLocation, serviceName, features);
>>>>>>> 3 errors
>>>>>>> compilation failed, errors should have been reported
>>>>>>> C:\Users\TOSHIBA1\Documents\NetBeansProjects\EbayShoppingClient-2.0\nbproject\jaxws-build.xml:24:
>>>>>>> wsimport failed
>>>>>>> BUILD FAILED (total time: 4 seconds)
>>>>>>>
>>>>>>> Fabian Ritzmann wrote:
>>>>>>>> On 17. Feb 2009, at 03:56, metro@javadesktop.org wrote:
>>>>>>>>
>>>>>>>>> I had to get the nightly build of Metro because it fixed a
>>>>>>>>> problem with attribute providers not working with SAML2.0 ,
>>>>>>>>> but when I install it into glassfish v2 and rebuild my STS
>>>>>>>>> services in netbeans 6.5, it has API build errors in Service()
>>>>>>>>> constructors.
>>>>>>>>>
>>>>>>>>> If I remove Metro 2.0 EA and go back to 1.3.1 its ok.
>>>>>>>>
>>>>>>>> What about Metro 1.4?
>>>>>>>>
>>>>>>>>> My question is, will the 2.0 EA work with netbeans/glassfish?
>>>>>>>>> Or do I have to recreate my services or something?
>>>>>>>>
>>>>>>>> If it doesn't work it's a bug. It's been working fine for me
>>>>>>>> and we are running tests continuously. What errors are you
>>>>>>>> getting precisely?
>>>>>>>>
>>>>>>>> Fabian
>>>>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
>> For additional commands, e-mail: users-help@metro.dev.java.net
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
> For additional commands, e-mail: users-help@metro.dev.java.net
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@metro.dev.java.net
For additional commands, e-mail: users-help@metro.dev.java.net