tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tad Frysinger <tfrysin...@earthlink.net>
Subject tomcat 4.0.2 and weblogic 6.1 conflict?
Date Wed, 13 Feb 2002 05:06:31 GMT
Has anyone gotten this to work - i.e. processing jsp/servlet with tomcat 
that use EJB's deployed in weblogic 6.1?

We are banging our heads against the wall bigtime on this.

We tried to use the petstore.war that ships with WebLogic and are 
running into a variety of weird problems. The latest is I am getting a 
"method not found" error when I try and execute very simple .jsp file:

<%@ page import="javax.naming.*" %>
<%@ page import="java.util.Hashtable" %>
<%@ page import="java.util.Enumeration" %>

<html>
<head>
<title>
Context
</title>
</head>
<body>
<%
    out.println("<h2>System java.naming.factory.initial = " + 
System.getProperty("java.naming.factory.initial") + "</h2>");
    out.println("<h2>System java.naming.provider.url = " + 
System.getProperty("java.naming.provider.url") + "</h2>");
    out.println("<h2>System java.naming.security.principal = " + 
System.getProperty("java.naming.security.principal") + "</h2>");
    out.println("<h2>System java.naming.security.credentials = " + 
System.getProperty("java.naming.security.credentials") + "</h2>");

    out.println("<h2>Servlet Context java.naming.factory.initial = " + 
getServletContext().getInitParameter ("java.naming.factory.initial") + 
"</h2>");
    out.println("<h2>Servlet Context java.naming.provider.url = " + 
getServletContext().getInitParameter ("java.naming.provider.url") + 
"</h2>");
    out.println("<h2>Servlet Context java.naming.security.principal = " 
+ getServletContext().getInitParameter 
("java.naming.security.principal") + "</h2>");
    out.println("<h2>Servlet Context java.naming.security.credentials = 
" + getServletContext().getInitParameter 
("java.naming.security.credentials") + "</h2>");

   Hashtable table = ctx.getEnvironment();
   out.println("Environment for InitialContext is: <p>");
   for (Enumeration keys = table.keys(); keys.hasMoreElements(); ) {
      Object o = keys.nextElement();
      out.println("  " + o + ": " + table.get(o) + "<p>" );
   }

%>



</body>
</html>

I think there is some kind of conflict between the classes in 
weblogic.jar, and those in tomcat. Any ideas?

Thanks.

Tad



--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message