This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 201198 - Invalid classpath on userdir files build.properties and jax-ws-endorsed.xml when importing settings from nb 6.9.1 to nb 7.0
Summary: Invalid classpath on userdir files build.properties and jax-ws-endorsed.xml w...
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.0
Hardware: PC Windows XP
: P2 normal (vote)
Assignee: Denis Anisimov
URL:
Keywords:
: 195625 203146 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-08-22 07:20 UTC by emoya
Modified: 2012-11-26 05:56 UTC (History)
7 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Resolve conflicts guided me to this dialog (28.79 KB, image/jpeg)
2011-08-23 08:13 UTC, pinus
Details

Note You need to log in before you can comment on or make changes to this bug.
Description emoya 2011-08-22 07:20:45 UTC
Overview
--------
I had a nb 6.9.1 and I installed nb 7.0, then I opened nb and said "yes" to import settings from 6.9.1. When I opened an existing web service client I got a lot of compilation errors like "invalid constructor parameters" and "non existing parameter required on xmlelementref annotation".

After searching a lot, I found that my build.properties on userdir had invalid classpaths for jaxws21 endorsed libs. The file jax-ws-endorsed.xml also had invalid classpath.

userdir/.netbeans/7.0/bulid.properties was:

libs.JAX-WS-ENDORSED.classpath=C:\\Archivos de programa\\NetBeans 6.9.1\\java\\modules\\ext\\jaxws22\\api\\jaxws-api.jar;C:\\Archivos de programa\\NetBeans 6.9.1\\ide\\modules\\ext\\jaxb\\api\\jaxb-api.jar

but it should be:

libs.JAX-WS-ENDORSED.classpath=C:\\Archivos de programa\\NetBeans 7.0\\java\\modules\\ext\\jaxws22\\api\\jaxws-api.jar;C:\\Archivos de programa\\NetBeans 7.0\\ide\\modules\\ext\\jaxb\\api\\jaxb-api.jar

userdir/.netbeans/7.0/config/org-netbeans-api-project-libraries/Libraries/JAX-WS-ENDORSED.xml was:

<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%206.9.1/java/modules/ext/jaxws22/api/jaxws-api.jar!/</resource>
<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%206.9.1/ide/modules/ext/jaxb/api/jaxb-api.jar!/</resource>

but it should be:

<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%207.0/java/modules/ext/jaxws22/api/jaxws-api.jar!/</resource>
<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%207.0/ide/modules/ext/jaxb/api/jaxb-api.jar!/</resource>

I edited manually this files, reopened nb and then the web service client compiled ok.

Steps to Reproduce
------------------
1. Install nb 6.9.1
2. Create a new web service client
3. Install nb 7.0
4. Open nb 7.0 and say "yes" to import settings from 6.9.1
5. Open the web service client, you get a lot of compilation errors.
6. Open the files build.properties and jax-ws-endorsed, there are invalid classpaths

Actual Results
--------------
Compilation errors due to endorsed libs classpaths are invalids.

Expected Results
----------------
All the classpaths were imported correctly and there were'nt any compilation errors.
Comment 1 pinus 2011-08-23 08:13:37 UTC
Created attachment 110151 [details]
Resolve conflicts guided me to this dialog

I think I have the same error with NM 7.0.1.
This breaks the whole WS-cliend wizzard for me.
Comment 2 Antonin Nebuzelsky 2011-10-10 16:45:48 UTC
*** Bug 203146 has been marked as a duplicate of this bug. ***
Comment 3 Tomas Zezula 2011-11-10 13:57:40 UTC
The JAX-WS-ENDORSED library should use nbloc protocol.
Comment 4 Tomas Zezula 2011-11-10 13:59:33 UTC
Sorry, nbinst protocol
Comment 5 Denis Anisimov 2011-11-10 14:14:13 UTC
(In reply to comment #4)
> Sorry, nbinst protocol

What does it mean ?
Do you mean xml description file ?
It does use nbinst :
<resource>jar:nbinst://org.netbeans.modules.javaee.api/modules/ext/javaee6-endorsed/javax.annotation.jar!/</re.......

<resource>jar:nbinst://org.netbeans.modules.javaee.api/modules/ext/javaee6-endorsed/jaxb-api-osgi.jar!/</resou........

<resource>jar:nbinst://org.netbeans.modules.javaee.api/modules/ext/javaee6-endorsed/webservices-api-osgi.jar!/.........

So what is wrong here ?
Comment 6 Tomas Zezula 2011-11-10 14:17:34 UTC
>Do you mean xml description file ?
Right
>It does use nbinst
In this case it's already fixed and just close it.
The reporter's xml desriptor had file protocol
<cite>
userdir/.netbeans/7.0/config/org-netbeans-api-project-libraries/Libraries/JAX-WS-ENDORSED.xml
was:

<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%206.9.1/java/modules/ext/jaxws22/api/jaxws-api.jar!/</resource>
<resource>jar:file:/C:/Archivos%20de%20programa/NetBeans%206.9.1/ide/modules/ext/jaxb/api/jaxb-api.jar!/</resource>
</cite>
Comment 7 Denis Anisimov 2011-11-10 14:44:51 UTC
Right, it seems this is fixed by Jesse's change :
http://hg.netbeans.org/web-main/rev/0fe800aa8400
Comment 8 dgradwell 2012-01-07 16:40:19 UTC
This bug affects me as well.
Comment 9 Denis Anisimov 2012-11-26 05:56:47 UTC
*** Bug 195625 has been marked as a duplicate of this bug. ***