Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


weblogic 6.1 and 8.1

Posted on 2004-11-12
Medium Priority
Last Modified: 2013-12-10
Hi All,

would appreciate help pls

I don't know this is problem with settings we have here or is it specific to WL 8.1 SP3.

i HAVE A JSP which i multiple page directives example as below:
<%@ taglib uri='struts/bean-el' prefix='bean' %>
<%@ taglib uri='struts/html-el' prefix='html' %>
<%@ taglib uri='struts/logic-el' prefix='logic' %>
<%@ taglib uri='jstl/c' prefix='c' %>

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page language="java" import="com.citi.soft.util.BusinessDate"%>

<SCRIPT language="javascript1.2"  src="/docs/js/global.js"></SCRIPT>

This JSP when I try to bring on web throws an Exception as below:

<Error> <HTTP> <webweia60d> <isoftNode1> <ExecuteThread: '23' for queue: 'default'> <<WLS Kernel>> <> <BEA-101020> <[ServletContext(id=8566885,name=isoft,context-path=/isoft/iSoft)] Servlet failed with Exception
weblogic.servlet.jsp.JspException: (line 7): page directive language at /jsp/trades/searchform.jsp:7 previously defined at /jsp/trades/searchform.jsp:6

If I change my jsp to have only one page directive as

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date, com.citi.soft.util.BusinessDate"%>

It seems to work fine.

This is happening only in 8.1. Same jsp with multiple page directives is working fin in 6.1.

anything changed in 8.1? or anything i am doing wrong?

would appreciate urgent help pls

Question by:narrav
  • 3
  • 2
LVL 13

Expert Comment

ID: 12570809
not only weblogic 8.1 I think all new versions of Application servers, the import attribute in the page directive is not allowed twice, I think this is to be compatibl with the J2EE specifications

Author Comment

ID: 12570834
so 6.1, it was allowed right?

Can you please forward me documentation link of 8.1 where it says that or J2EE specification where it says it? Because I am finding on all web-sites that page directive with import attribute is the only one allowed multiple times in jsp..

LVL 13

Expert Comment

ID: 12571162
u r right import can be repeated but language is not ur directives should be:

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page import="com.citi.soft.util.BusinessDate"%>

Author Comment

ID: 12571180
But why is my this thing working in 6.1 but doesn't work in 8.1?

<%@ page language="java" import="java.text.SimpleDateFormat,java.util.Date"%>
<%@ page language="java" import="com.citi.soft.util.BusinessDate"%>
LVL 13

Accepted Solution

petmagdy earned 1000 total points
ID: 12571190
according to JSP specification 2.0 it seems weblogic 8.1 is more compliant than 6.1, import can be repeated but language is not

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Configure Web Service (server application) I. Configure security for Web Services methods First, we need to protect Session bean which implements the service: 1. Open EJB deployment descriptor (ejb-jar.xml) in the EJB project that contains you…
Verbose logging is used to diagnose garbage collector problems. By default, -verbose:gc output is written to either native_stderr.log or native_stdout.log.   It is also possible to redirect the logs to a user-specified file. This article will de…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

572 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question