reference to Queue is ambiguous, both class javax.jms

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

[2297 byte] By [mastery20a] at [2007-11-26 22:48:07]
# 1
D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\IssueHandlerBean.javaedit the above file and add this line import javax.jms.*allot the dukes to me and update me as well.
cvasu4a at 2007-7-10 12:07:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
i have already included the import.javax.jms.*;even i am getting the error
mastery20a at 2007-7-10 12:07:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 3

The problem here is that java compiler is a bit confused between

both the classes javax.jms.Queue in javax.jms and java.util.Queue in java.util

Just Edit

IssueHandlerBean.java

UserHandlerBean.java

just add the line import javax.jms.*;

D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\I

ssueHandlerBean.java:

D:\New project\itracker\src\cowsultants\itracker\ejb\beans\session\U

serHandlerBean.java:

Hope this will resolve ur problem. dont forget to update.

cvasu4a at 2007-7-10 12:07:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 4
^And how, praytell, will that fix the ambiguity? It's like the blind leading the blind here.
bckrispia at 2007-7-10 12:07:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 5
U are using the class java.util.* and javax.jms.*;both the classes has Queue in util its an interface and in jms its a interface.just change the code of java.util to java.util.Properties or java.util.hashtable for obtaining the Context object.
jagadesh@programmera at 2007-7-10 12:07:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...