users@glassfish.java.net

_at_WebParam cannot find symbol

From: <glassfish_at_javadesktop.org>
Date: Wed, 14 Nov 2007 12:32:57 PST

Hi All,

Glassfish v2 (SJAS9.1) on Sparc Solaris 10, 0807.

Based on every doc I can find, I'm doing this correctly - yet my code will not compile with @WebParam. Compiles, deploys and works FINE without it.

==== code fragments...

// JobControl.java
import java.util.*;
import java.util.Date;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
import javax.jws.WebService;
import javax.jws.WebMethod;
import javax.xml.bind.annotation.*;

etc...

  @WebMethod
  public JobListTotal jobCtlTotal (@WebParam(name="client_id") long client_id,
                                               @WebParam(name="job_id") long job_id) {
etc...

$ javac JobControl.java
JobControl.java:130: cannot find symbol
symbol : class WebParam
location: class JobControl
  jobCtlTotal (@WebParam(name="client_id") long client_id,
                ^
JobControl.java:131: cannot find symbol
symbol : class WebParam
location: class JobControl
               @WebParam(name="job_id") long job_id)
                ^

I have javaee.jar & tools.jar in CLASSPATH.

I'm assumming this is working for everyone else. Does anyone see what I'm doing wrong?

Appreciate any feedback/comments. I'm totally stumped.

Thanks,
Dan
[Message sent by forum member 'htsguru' (htsguru)]

http://forums.java.net/jive/thread.jspa?messageID=245491