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 87638 - JDK mismatch while compile web services (wsgen)
Summary: JDK mismatch while compile web services (wsgen)
Status: RESOLVED WORKSFORME
Alias: None
Product: webservices
Classification: Unclassified
Component: JAX-WS (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@webservices
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 13:54 UTC by tdeleeuw
Modified: 2006-10-24 15:11 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tdeleeuw 2006-10-20 13:54:39 UTC
I have 2 JDKs installed (1.5 and 1.6). 

The default one is JDK 1.6 (In the path and in JAVA_HOME).

The project is setup to use JDK 1.5, source level 1.5. All my classes are
compile with JDK 1.5 except the classes generated by wsgen (probably the wsgen
ant task do not take my project settings into consideration).
This ends up in incompatible classes when the server is running JDK 1.5.
Comment 1 Lukas Jungmann 2006-10-20 14:13:44 UTC
Which IDE build do you use? Which project type? Are you creating web service or
web service client? Can you run ant in verbose mode (Tools -> Options -> Misc.
-> Ant -> Verbosity Level) and attach the output of whole build action to this
issue? Also which build of JDK 6 do you use?

Classes generated by wscompile,wsgen and wsimport are not being compiled by
these tasks, they are compiled by standard javac task (with appropriate source
and target attributes).

See also: https://glassfish.dev.java.net/issues/show_bug.cgi?id=1162
Comment 2 Lukas Jungmann 2006-10-24 15:11:58 UTC
works fine work me in RC2 in all project types. Feel free to reopen with exact
steps to reproduce.