Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

reference to Queue is ambiguous, both class javax.jms

843830Mar 24 2007 — edited May 2 2007
hi i already posted the problem .still i have not got the reply.
i am using jboss-4.0.2 ant-1.6.0 jdk1.5.04

error report
makebuilddir:

compileclasses:
[javac] Compiling 161 source files to D:\New project\build\itracker\classes
[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\I
ssueHandlerBean.java:1158: reference to Queue is ambiguous, both class javax.jms
.Queue in javax.jms and class java.util.Queue in java.util match
[javac] Queue notificationQueue = (Queue) ic.lookup("java:comp/e
nv/" + notificationQueueName);
[javac] ^
[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\I
ssueHandlerBean.java:1158: reference to Queue is ambiguous, both class javax.jms
.Queue in javax.jms and class java.util.Queue in java.util match
[javac] Queue notificationQueue = (Queue) ic.lookup("java:comp/e
nv/" + notificationQueueName);
[javac] ^
[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\U
serHandlerBean.java:957: reference to Queue is ambiguous, both class javax.jms.Q
ueue in javax.jms and class java.util.Queue in java.util match
[javac] Queue notificationQueue = (Queue) ic.lookup("java:comp/e
nv/" + notificationQueueName);
[javac] ^
[javac] D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\U
serHandlerBean.java:957: reference to Queue is ambiguous, both class javax.jms.Q
ueue in javax.jms and class java.util.Queue in java.util match
[javac] Queue notificationQueue = (Queue) ic.lookup("java:comp/e
nv/" + notificationQueueName);
[javac] ^
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 4 errors

BUILD FAILED
D:\New project\itracker\build.xml:43: The following error occurred while executi
ng this line:
D:\New project\itracker\build.xml:54: The following error occurred while executi
ng this line:
D:\New project\itracker\build.xml:277: Compile failed; see the compiler error ou
tput for details.

Total time: 5 seconds

Message was edited by:
mastery20
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 30 2007
Added on Mar 24 2007
5 comments
1,050 views