Skip to main content

@WebParam cannot find symbol

2 replies [Last post]
htsguru
Offline
Joined: 2007-10-23

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

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
sekhar
Offline
Joined: 2003-06-25

Did you import javax.jws.WebParam ?

htsguru
Offline
Joined: 2007-10-23

That worked!

Somehow I thought it was in annotations. Too much coffee and too much time looking at code I guess.

Thanks!!!
Dan