users@jax-ws.java.net

Problem during deploy of Java Webservice with Java 6

From: Thierry Rietsch <thierry.rietsch_at_students.fhnw.ch>
Date: Wed, 10 Jan 2007 22:18:18 +0100

Hi all

I have a problem during the deploy of a web application (with a
webservice) to a Sun Java Application Server 9 since I upgraded from
Java 5 to Java 6 (1.5.x to 1.6.x).

This error occures during the deploy process:

error: The type of the getter is java.util.Set<pkgname.model.Release>
but that of the setter is java.util.Set. They have to be the same.
        this problem is related to the following location: ....

(pkgname replaces the package name)

The java code for the setter/getter/list is:


        @OneToMany
        @JoinTable(name = "PackageToRelease",
                           joinColumns = @JoinColumn(name = "packageFk"),
                           inverseJoinColumns = @JoinColumn(name = "releaseFk"))
        private Set<Release> releases;

        public Set<Release> getReleases() { return releases; }
        public void setReleases(Set<Release> releases) { this.releases =
releases; }
        
        

Has anyone an idea about this problem?

Thanks for your help,

thierry