Ambiguous class: java.lang.Object and org.omg.CORBA.Object

Hi,

I have problem with JSP in making CORBA application. When I import CORBA stuff like "<%@ page import="org.omg.CORBA.*" %>" I get following error. My CLASSPATH is very simple so it should not be a problem (/usr/local/j2sdkee1.2.1/lib/j2ee.jar:/opt/TimesTen4.1/32/jdbc/lib/classes12.jar). I am using j2sdkee1.2.1 to run JSP scripts in Linux (Redhat 6.2, 2.2.16-3). JDK version is 1.3.1. Java.lang.Object and org.omg.CORBA.Object have come into conflict but how I can solve the problem?

Error message in the browser window:

--

Error: 500

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/j2sdkee1.2.1/repository/WTAIN03/web/_0002fDBlogin_0002flogin_0002ejsplogin_jsp_4.java:42: Ambiguous class: java.lang.Object and org.omg.CORBA.Object

Object page = this;

^

1 error

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:248)

at org.apache.jasper.runtime.JspLoader$2.run(JspLoader.java:273)

at java.security.AccessController.doPrivileged(Native Method)

at org.apache.jasper.runtime.JspLoader.loadJSP(JspLoader.java:270)

at org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:137)

at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:148)

at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:247)

at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:352)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:865)

at org.apache.tomcat.core.ServiceInvocationHandler.method(ServletWrapper.java:626)

at org.apache.tomcat.core.ServletWrapper.handleInvocation(ServletWrapper.java:534)

at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:378)

at org.apache.tomcat.core.Context.handleRequest(Context.java:644)

at org.apache.tomcat.core.ContextManager.service(ContextManager.java:440)

at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:144)

at org.apache.tomcat.service.TcpConnectionThread.run(TcpEndpoint.java:310)

at java.lang.Thread.run(Thread.java:484)

[2253 byte] By [alpo] at [2007-9-26 1:57:37]
# 1
in this case you have to use the complete classe namejava.lang.Object page = ...;ororg.omg.CORBA.Object page = ...;Hope this helps !Badr.
zbadr at 2007-6-29 3:14:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi,funny this is that if I only import org.omg.CORBA this error is generated. There is no matter what is inside the class. I mean that if I make dummy class likeclass Dummy {}and import org.omg.CORBA is in JSP file this error comes. Mysterios...
alpo at 2007-6-29 3:14:25 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...