Jsp:include directives compilation errors

hi,
we have lot of <%@ include file="" %> files in out jsp page. when we trying to change this to <jsp:include page="" %>. we r getting lot of comilation errors
The file size is increasing more than 64mb.
Can u tell how to contain them within 64mb .
thank you.

The stack trace isn't very indicative of whatever problem you may be having.
However, there is a major difference between <%@ include %> and <jsp:include />. The include directive <%@ include %> slams the content of the included resource into your JSP at compilation time, it is "static". No individual evaluation of the included resource is done, it becomes a part of the JSP that included it.
<jsp:include /> is a dynamic include--it is evaluated at run-time. The content of the included resource is accessed and written to the output stream with the JSP is accessed. If the included content is a JSP, it is compiled and accessed as a separate servlet.
So, it looks like your included JSPs do not qualify as valid, standalone JSPs. Typically, this is because of some dependency on variables or beans declared in the including JSP.
Good luck.
-brian

Similar Messages

  • Difference between jsp:forward sendRedirect and jsp include directive

    Am very much confused, please explain me the difference between
    jsp:forward sendRedirect and jsp include directive with a suitable example.
    I'll be very gratefull. Its very urgent.

    One basic difference. The include executes in the .jsp servelet created. The redirect transfers "control" by redirecting the client request to another destination. In other words, the current .jsp is no longer in charge or in the calling chain in any way.

  • JSP include directive not working with Tomcat 5.0

    Hi.
    I'm developing a small JSF webapp under Tomcat 5.0. My idea was to use the include directive to display a navigation panel on every JSP page.
    I took the code straight from the Java Web Services Tutorial; the resulting page looks like this:
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
           version="2.0">
    <jsp:directive.page contentType="text/html;charset=iso-8859-1"/>
    <%@ include file="/jsp/panelpage_header.inc" %>
         <h:outputText value="Welcome!"/>
    <%@ include file="/jsp/panelpage_footer.inc" %>
    </jsp:root>However, when I try to load the page, a compilation error occurrs:
    org.apache.jasper.JasperException: /trias/welcome2.jsp(11,2) The content of elements must consist of well-formed character data or markup.
         org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:39)
    ...I checked the path to the included files, and it seems to be okay. The files themselves contain the JSF tags for the view, html-head, html-body etc. The compiler doesn't even care if the files exist or not because it aborts immediately when it reaches the first include-statement.
    Did anyone see this kind of error before?

    Ok, the solution with jsp:directive.include works,
    if header.inc and footer.inc themselves are well
    formed too. If I understood the concept right this is
    because header and footer are processed during
    request time and therefore interpreted as
    'standalone' pages.This isn't true. The include directive (<jsp:directive.include>) is run a Compile Time. The code is inserted directly into the surrounding JSP (unlike <jsp:include> which forwards the request at runtime). The finished JSP, after the include, is then processed and needs to be well-formed XML.
    >
    But: What can I do when these two files define a tag
    that should enclose my current page (for example,
    header opens a panelGrid-Tag, and footer closes it).
    For this case I thought the use of the
    @include-directive would be neccessary to combine the
    three pages during compilation. By this the resulting
    page would be well-formed although header and footer
    are not.It should be, as long as you are using <jsp:directive.include>, and the rest of the included pages are also well formed (no <% %> tags, nothing else out of place...).
    Honestly, I haven't done much work with JSP documents, so I haven't run into this problem. But I do believe everything I said is correct.
    What I would do is double check the correctness of the rest of the included pages and see if your error isn't something else.

  • JSP:Include directive - can I access data?

    Hi,
    I am using the 'include' directive (either jsp:include method or <%@ include.... /> ) to include another jsp page.
    I want the included file to access variables that have been set up in the main page (the one with the include directive in it). I've tried several things, including setting up a Bean class, but nothing seems to work
    Is this possible? I really appreciate any help with this.
    Thanks.

    You cannot use <%@ include ..%> because that is resolved at translation time. <jsp:include /> is resolved dynamically and should give you what you need. In the main page, store references to the bean or other data as request attributes and then retrieve them in the included page.

  • Jsp/custom tag compiler error (HttpServletResponse)

    I originally posted with on Oracle's site but I am not getting any help.
    Our server is running Oracle 9ias with JServ and Apache.
    I have created a simple jsp that calls a custom tag but I am getting the following error:
    Method addHeader(java.lang.String, java.lang.String) not found in interface javax.servlet.http.HttpServletResponse.
    response.addHeader("Pragma", "No-cache");
    ^
    Is something not setup correctly or installed where it should be?
    the code for the custom tag is from the O'reilly book "JavaServer Pages." This works with JDeveloper on my computer but not on our server.
    package info.wyoroad.jsp.tags.generic;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    * This class is a custom action for setting response headers
    * that prevent the page from being cached by a browser or
    * proxy server.
    * @author Hans Bergsten, Gefion software <[email protected]>
    * @version 1.0
    public class NoCacheTag extends TagSupport {
    * Sets "no cache" response headers
    public int doEndTag() throws JspException {
    HttpServletResponse response =
    (HttpServletResponse) pageContext.getResponse();
    response.addHeader("Pragma", "No-cache");
    response.addHeader("Cache-Control", "no-cache");
    response.addDateHeader("Expires", 1);
    return EVAL_PAGE;
    }

    The jsp looks like:
    <%@ page language="java" contentType="text/html;charset=WINDOWS-1252"%>
    <%@ taglib uri="/WEB-INF/wylib.tld" prefix="info" %>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=WINDOWS-1252">
    <META NAME="GENERATOR" CONTENT="Oracle JDeveloper">
    <info:NoCache />
    <TITLE>
    Test tag
    </TITLE>
    </HEAD>
    <BODY>
    <H2>Test the tag NoCache</h2> </P>
    </BODY>
    </HTML>

  • JSP Compilation error

    Hello,
    I am deploying an EAR file (containing WAR and EJB jar files) on Weblogic 9.2 on Windows XP env.
    In EAR -> META-INF -> weblogic-application.xml, entries look as below:
    +<?xml version="1.0" encoding="UTF-8"?>+
    +<weblogic-application xmlns="http://www.bea.com/ns/weblogic/90">+
    +<prefer-application-packages>+
    +<package-name>org.apache.xerces.*</package-name>+
    +</prefer-application-packages>+
    +</weblogic-application>+
    Removing above gives error in server startup and cannot access weblogic console. With this file, server starts without any errors but on accessing jsp it gives compilation error as shown below:
    Failed to compile JSP /xAdvisorWeb_I18N/desktop/load.jsp
    load.jsp:6:5: No tag library could be found with this URI. Possible causes could be that the URI is incorrect, or that there were errors during parsing of the .tld file.
    It appears owing to xerces on the classpath. I tried placing weblogic.xml file in
    Web-Inf folder of web application with below entries without any luck.
    <?xml version="1.0" encoding="UTF-8"?>
    <weblogic-web-app xmlns="http://www.bea.com/ns/weblogic/90">
    <container-descriptor>
    <prefer-web-inf-classes>true</prefer-web-inf-classes>
    </container-descriptor>
    </weblogic-web-app>
    Thanks for your time and help.
    Hiren

    your webserver user i think needs full write access to: /u01/app/oracle/product/8.1.7/ifs1.1/custom_classes/
    That may help somewhat

  • Exceptions thrown after a jsp:include

    Hi all,
              At the beginning of my JSP, I can't use the JSP include directive because I
              need to do a specific include from another webapp servlet context. Thus I
              wrote my own include tag <mytag:include page="" context=""/> where I use
              RequestDispatcher.include().
              But then I am facing the following problem with this JSP :
              [myjsp.jsp]
              <mytaglib:include page="" context=""/>
              <mytaglib:stgElse/>
              if the second tag <mytaglib:stgElse> is throwing a JspException, and if I
              use the error handling system of the webapp :
              [web.xml]
              <error-page>
              <exception-type>javax.servlet.jsp.JspException</exception-type>
              <location>/web/en/pf/error.jsp</location>
              </error-page>
              I get : "java.lang.IllegalStateException: Cannot forward a response that is
              already committed"
              because it tries to do a forward after an include which needed a flush of
              the buffer previously, what means the response was already comitted.
              Thus the question is : how to handle exceptions coming after an include was
              done, that is to say after a flush of the buffer has already been committed
              Thanks for any help.
              Yann
              

    In the doc, it states:
    sendRedirect
    If the response has already been committed, this method throws an
    IllegalStateException. After using this method, the response should be
    considered to be committed and should not be written to.
    In other words, you must not do anything before or after with the response.
    Cameron Purdy, LiveWater
    "Lawrence Lourduraj" <[email protected]> wrote in message
    news:8ip9p4$r0g$[email protected]..
    >
    Friends,
    How do I do a redirect either through HttpServletResponse.sendRedirect ()or
    <jsp:forward /> in a JSP that does a <jsp:include /> at the top.
    I am getting a IllegalState exception.
    Thanks
    Regards
    Lawrence Lourduraj
    VocaLoca Inc.

  • Generate new browser window on using include directive/action tag in curren

    Hi Life line
    if i used jsp include directive/action taag inside my current jsp code it open new browser window but if i
    not use that include directive or action tag in my jsp source it properly display next jsp in
    same browser window
    how i can rid of this .i am confuse why it happens
    thanks
    Vivek Harnal

    1) on clicking view button it submit other page by
    script function()
    2) it work fine & display in same browser window if i
    am not incliudes jsp page after body tag .Your included JSP has a head and body of its own. If the including page has a head and body of its own, then the two will clash. Generally, it is best to make includes be fragments, ie, have no
    <html> <head> </head> <body> </body> </html> tags.
    3) included jsp use for standard menu based Header
    source of included page is
    <script type="text/javascript"
    src="menu_array.js"></script>
    <script type="text/javascript"
    src="mmenu.js"></script>
    <html>
    <script language=javascript>
    function show()
    // Master array in Menu_Array.js contains sub menu
    options available to super administrator
    // show the menu
    {     popup("master")
    function show1(){
    popup("requisition")
    function show2(){
    popup("purchase")
    function show3(){
    popup("receipt");
    function show4(){
    popup("reports");
    </script>
    <head>
    <link rel="stylesheet" type="text/css" href="css.css">
    <title>Procurement Automation System</title>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <base target="main">This means every link you click on will be sent to a new window or frame whose name is main. If no such window or frame exists, make one. If you do not want your links to bring you to a new window, you need to remove this <base target="main"> line.
    >
    >
    </head>
    <body bgcolor="#FFFFFF" text="#000000" leftmargin="0"
    topmargin="0" marginwidth="0" marginheight="0">
    <table width="982" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td><img src="images/header_inside.jpg" width="1004"
    height="106"></td>
    </tr>
    <tr>
    <td>
    <table width="1012" border="0" cellspacing="0"
    cellpadding="0" bgcolor="#a4c3cd">
    <tr>
    <td width="860" bgcolor="#a4c3cd">
    <table width="819" border="0" cellspacing="0"
    cellpadding="0">
    <tr>
    <td width="5"> </td>
    <td style='cursor: hand' width="113" ><b> </b><A
    onmouseover="javascript:show()"><b>Master
    Module</b></a>
    <td style='cursor: hand' width="142"><b> </b><A
    onmouseover="javascript:show1()"><b>Requisition
    Module</b></a></td>
    <td style='cursor: hand'
    width="149"><b> </b><A
    onmouseover="javascript:show2()"><b>Purchasing
    Module</b></a></td>
    <td style='cursor: hand'
    width="140"><b> </b><A
    onmouseover="javascript:show3()"><b>Receiving
    Module</b></a></td>
    <td style='cursor: hand' width="100"><b>
    </b><A
    onmouseover="javascript:show4()"><b>Reports</b></a></td></tr>
    </table>
    </td>
    <td align="left" width="148">
    <table border=0 cellspacing=0 bgcolor="#a4c3cd">
    <td width="24%" align="center" valign="middle"><a
    href="help.htm" ><img src="images/bt_help.gif"
    width="52" height="20" border="0"></a></td>
    <td width="4%" align="center" valign="middle"><img
    src="images/white_bar.gif" width="2" height="17"></td>
    <td width="32%" align="center" valign="middle"><a
    href="logoff.jsp" target="_self"><img
    src="images/bt_logout.gif" width="70" height="20"
    border="0"></a></td>
    <td width="8%"> </td>
    </table>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>
    </body>
    </html>

  • How do I add an included jsp to my project and not get a compile error?

    Hi,
    I have a project with some included jsp's however if I add them to the project, when I build I get a compile error as the jsp uses variables from the calling jsp.
    Any ideas on how to get round this.
    Thanks
    DM

    There are two main ways that I deal with this problem (yeah, it sucks, but it sort of makes sense that it happens...) (I presume you're talking static include here...)
    #1 - name the included file with an extension that JDev will not try to compile (.jspf - for JSP Fragment - is common) Then it will be compiled in with the including page, but won't gag the project compilation. Advantage - it works, and you find out at compile time if you hosed up the variable reference. Disadvantage: JDev tries really, really, really hard to keep you from naming a JSP file with an extension of .jspf I normally create the .jsp file in JDev, remove it from the project, rename the file outside of JDeveloper, then add it back to the project - pain in the butt, but it works (and you probably aren't building scads of these included files...)
    #2 - add the variable to be referenced to the pageContext implicit object as an attribute in your including page (ex, <% pageContext.setAttribute("myVar", myVar); %>), then reference that attribute in your included JSP (ex, <%= pageContext.getAttribute("myVar") %>) . It will compile fine (as the compiler has no way of knowing if the pageContext attribute actually exists, it just sees that the syntax is good and motors along merrily. Advantage: don't have to have differently named JSP files (which isn't actually a big deal). Disadvantage: You hvae to add the variable to the pageContext (and you have to always add Object derivatives, as primitives won't go into a hash) and you don't find out if you screwed the variable up until runtime (when it tries the getAttribute, which could return null if you didn't properly set it to start with) vs at compile-time w/ the direct reference.
    HTH!
    Jim

  • JSP too big to compile error

    I am developing an web application and i am getting the following error
    when trying to run the application.
    org.apache.jasper.JasperException: JSP cannot be compiled
    compiler message file broken: key=compiler.err.compiler.err.limit.code.too.large.for.try.stmt arguments=null, null, null, null, null, null, nullI tried looking for the solution but without luck.
    What causes this problem and how can it be solved?
    any help? thanx a lot in advance

    A Java sourcefile may not contain more than 65KB of code in a single method.
    All the code you type in your JSP either directly or through static imports will be contained in a single method in the generated source.
    Adding that one line to your JSP pushed it over the limit causing the compiler to complain, but if your JSP is that large you have problems as it is.
    There are 2 ways around it:
    1) code more efficiently by scrapping code that's not needed
    2) use dynamic includes
    Ideally you should probably do both of these.
    Yes, I've run into it as well. Luckily it was not a JSP I'd originally written but had been asked to complete for someone else who had gotten lost in the complexity of a 5000 line piece of code (doh!).

  • Static JSP Include throws Errors

    Hi,
    I am facing a issue in my jsp.
    I have a .html to include in my jsp.
    I have to do a static include. The code snippet is :
    The variable categoryName can have different values like weather,events,pets,etc......
    Is there anything wrong in the statement?
    jsp is giving me error's.
    <%@ include file="/community/photo/modules/carousel/"<%=categoryName%>+".html" %>
    Error is
    File "/community/photo/modules/carousel/<%=categoryName%>.html" not found
    Any help is really appreciated. or please let me know if there is any other way to do it?
    Thanks
    Deepti

    DeeptiChhabra wrote:
    Hi,
    I am facing a issue in my jsp.
    I have a .html to include in my jsp.
    I have to do a static include. The code snippet is :
    The variable categoryName can have different values like weather,events,pets,etc......
    Is there anything wrong in the statement?
    jsp is giving me error's.
    <%@ include file="/community/photo/modules/carousel/"<%=categoryName%>+".html" %>
    Error is
    File "/community/photo/modules/carousel/<%=categoryName%>.html" not found
    Any help is really appreciated. or please let me know if there is any other way to do it?
    Thanks
    DeeptiOk first thing which you need to understand here is static include is also known as compile time include now as we are trying to use a runtime variable their it is so obvious that we cannot the jasper complier cannot recognize it.
    now in order to include the content like this we need to runtime include which <jsp:include/>
    However asper the above senario we cannot directly use it aswell. my advice for you would write a servlet which can forward us to this page something like the one below.
    Sample JSP Code Snippet:
    <%
       String pageUrl = "/community/photo/modules/carousel/"+categoryName+".html";
    %>
    <jsp:include page="/forwardServlet">
        <jsp:param name="page" value="<%=pageUrl%>" />
    </jsp:include>Sample Servlet Code Snipett:
    public class ForwardServlet extends HttpServlet{
        public void processAction(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
           req.getRequestDispatcher(req.getParameter("page")).forward(req,res);
       public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
               processAction(req, res);
       public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException,IOException{
               processAction(req, res);
    }Hope might that help :)
    REGARDS,
    RaHuL

  • JSP  compilation error while starting up WLS 7.1

              Hello,
              We are using the WLS 7.1 and trying to bring the WebLogic Server up, I am getting
              the following error while compiling the JSP file.
              RBMApp.jsp has an include statement for McarBase.jsp and I am not quiet sure,
              where it is failing.
              It is very critical and any immediate reply is greatly appreciated.
              ####<Sep 11, 2003 7:16:02 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] for /MCARShare.jsp
              generated jav
              a file /home/01/mcarop/mcardev/./mcardev71/.wlnotdelete/mcar_mcar_3523550/jsp_servlet/__MCARShare
              .java>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] compiled /MCARShare.jsp>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity> <
              > <101047> <[ServletContext(id=3523550,name=mcar,context-path=)] checking /RBMApp.jsp:>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Error> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <101045> <[ServletContext(id=3523550,name=mcar,context-path=)] translation
              of /RBMApp.jsp fail
              ed: weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              previ
              ously defined at /RBMApp.jsp:2>
              ####<Sep 11, 2003 7:16:08 PM MDT> <Debug> <HTTP> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <101158> <Exception thrown while loading mcar: weblogic.servlet.jsp.JspException:
              (line 2): pa
              ge directive language at /McarBase.jsp:2 previously defined at /RBMApp.jsp:2>
              weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              previousl
              y defined at /RBMApp.jsp:2
              at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
              at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE_BODY(JspLexer.java:5235)
              at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE(JspLexer.java:4990)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4812)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1359)
              at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1337)
              at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:1088)
              at weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:5059)
              at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4817)
              at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
              at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
              at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:166)
              at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:55)
              at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              a:4191)
              at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              a:4184)
              at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletCon
              text.java:1937)
              at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:1070)
              at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:982)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:466)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:126)
              at weblogic.j2ee.Application.addComponent(Application.java:294)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :375)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :154)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:78)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              :417)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              26)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              at $Proxy37.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServe
              rMBean_CachingStub.java:1251)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              :343)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.jav
              a:303)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentT
              arget.java:256)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.
              java:207)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              :417)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              26)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              at $Proxy36.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBea
              n_CachingStub.java:4060)
              at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.j
              ava:2259)
              at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:373)
              at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManag
              erServerLifeCycleImpl.java:235)
              at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:806)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:295)
              at weblogic.Server.main(Server.java:32)
              ####<Sep 11, 2003 7:16:09 PM MDT> <Error> <J2EE> <sucad251> <mcardev71> <main>
              <kernel identity>
              <> <160001> <Error deploying application mcar: Could not load mcar>
              Thanks,
              Ganesh
              

    You are trying to define
              <%@ page language="..." %>
              twice in the same page because you are textually including a page that also
              defines it. Either get rid of one of the definitions or use the <jsp:include
              page="...."/> instead.
              Sam
              Ganapathy Sankaran wrote:
              > Hello,
              >
              > We are using the WLS 7.1 and trying to bring the WebLogic Server up, I am getting
              > the following error while compiling the JSP file.
              > RBMApp.jsp has an include statement for McarBase.jsp and I am not quiet sure,
              > where it is failing.
              >
              > It is very critical and any immediate reply is greatly appreciated.
              >
              >
              > ####<Sep 11, 2003 7:16:02 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] for /MCARShare.jsp
              >
              > generated jav
              > a file /home/01/mcarop/mcardev/./mcardev71/.wlnotdelete/mcar_mcar_3523550/jsp_servlet/__MCARShare
              > java>
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] compiled /MCARShare.jsp>
              >
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Info> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity> <
              >
              >><101047> <[ServletContext(id=3523550,name=mcar,context-path=)] checking /RBMApp.jsp:>
              >
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Error> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <101045> <[ServletContext(id=3523550,name=mcar,context-path=)] translation
              > of /RBMApp.jsp fail
              > ed: weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              > previ
              > ously defined at /RBMApp.jsp:2>
              > ####<Sep 11, 2003 7:16:08 PM MDT> <Debug> <HTTP> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <101158> <Exception thrown while loading mcar: weblogic.servlet.jsp.JspException:
              > (line 2): pa
              > ge directive language at /McarBase.jsp:2 previously defined at /RBMApp.jsp:2>
              > weblogic.servlet.jsp.JspException: (line 2): page directive language at /McarBase.jsp:2
              > previousl
              > y defined at /RBMApp.jsp:2
              > at weblogic.servlet.jsp.JspLexer.jspException(JspLexer.java:872)
              > at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE_BODY(JspLexer.java:5235)
              > at weblogic.servlet.jsp.JspLexer.mPAGE_DIRECTIVE(JspLexer.java:4990)
              > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4812)
              > at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1359)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1337)
              > at weblogic.servlet.jsp.JspLexer.buildTimeInclude(JspLexer.java:1088)
              > at weblogic.servlet.jsp.JspLexer.mINCLUDE_DIRECTIVE(JspLexer.java:5059)
              > at weblogic.servlet.jsp.JspLexer.mDIRECTIVE(JspLexer.java:4817)
              > at weblogic.servlet.jsp.JspLexer.mSTANDARD_THING(JspLexer.java:2233)
              > at weblogic.servlet.jsp.JspLexer.mTOKEN(JspLexer.java:2019)
              > at weblogic.servlet.jsp.JspLexer.nextToken(JspLexer.java:1892)
              > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1117)
              > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:90)
              > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:212)
              > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
              > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255)
              > at weblogic.servlet.jsp.Precompiler.compileOne(Precompiler.java:166)
              > at weblogic.servlet.jsp.Precompiler.compile(Precompiler.java:55)
              > at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              > a:4191)
              > at weblogic.servlet.internal.WebAppServletContext.precompileJSPs(WebAppServletContext.jav
              > a:4184)
              > at weblogic.servlet.internal.WebAppServletContext.prepareFromDescriptors(WebAppServletCon
              > text.java:1937)
              > at weblogic.servlet.internal.WebAppServletContext.init(WebAppServletContext.java:1070)
              > at weblogic.servlet.internal.WebAppServletContext.<init>(WebAppServletContext.java:982)
              > at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:466)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:126)
              > at weblogic.j2ee.Application.addComponent(Application.java:294)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:164)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :375)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :154)
              > at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServer.java:78)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              > at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              > at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              > :417)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              > at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              > 26)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              > at $Proxy37.addWebDeployment(Unknown Source)
              > at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDeployment(WebServe
              > rMBean_CachingStub.java:1251)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(DeploymentTarget.java
              > :343)
              > at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(DeploymentTarget.jav
              > a:303)
              > at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeployments(DeploymentT
              > arget.java:256)
              > at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(DeploymentTarget.
              > java:207)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMBeanImpl.java:732)
              > at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl.java:714)
              > at weblogic.management.internal.ConfigurationMBeanImpl.invoke(ConfigurationMBeanImpl.java
              > :417)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1557)
              > at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1525)
              > at weblogic.management.internal.RemoteMBeanServerImpl.invoke(RemoteMBeanServerImpl.java:9
              > 26)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:470)
              > at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:198)
              > at $Proxy36.updateDeployments(Unknown Source)
              > at weblogic.management.configuration.ServerMBean_CachingStub.updateDeployments(ServerMBea
              > n_CachingStub.java:4060)
              > at weblogic.management.deploy.slave.SlaveDeployer.updateServerDeployments(SlaveDeployer.j
              > ava:2259)
              > at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:373)
              > at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManag
              > erServerLifeCycleImpl.java:235)
              > at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              >
              > at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:61)
              > at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:806)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:295)
              > at weblogic.Server.main(Server.java:32)
              > ####<Sep 11, 2003 7:16:09 PM MDT> <Error> <J2EE> <sucad251> <mcardev71> <main>
              > <kernel identity>
              > <> <160001> <Error deploying application mcar: Could not load mcar>
              >
              > Thanks,
              > Ganesh
              

  • JSP "include" errors ("Identifier not found") Workaround? Fix?

    Hi Folks,
    I have inherited a large and reasonably horrible web-based Java application. Historically I'm a C++ programmer, but did about 6 weeks worth of java 12 years ago (apparently that makes me a java programmer to my boss?), so while I'm an experienced developer, I'm very much a beginner at Java.
    Whenever I compile, I get several hundred errors. These are all of the "Identifier <variable name> not found" type.
    The reason I'm getting these errors is that the guy that originally wrote the application often breaks a single webpage into multiple JSP pages. For example:
    ParentPage.jsp:
    <%
    MyClass MyVar = MyOtherClass.GetMyClassInstance();
    %>
    <table>
    <tr>
    <td>Some Content Here</td>
    <td>Some More Content Here</td>
    </tr>
    <tr>
    <@ include file="ChildPage.jsp"%>
    </tr>
    </table>
    ChildPage.jsp:
    <%
    String MyString = MyVar.GetSomeStringData();
    %>
    At runtime the above code is fine, however, when I compile the project in JDeveloper, I of course get an error on line 2 of ChildPage.jsp saying "Identifier MyVar not found"
    Does anyone have any suggestions? Unfortunately, a wholesale rewrite of code is not allowed, but anything short of that is certainly on the table!
    Many Thanks,
    Riv

    When you are using include directive static inclusion is taking place. So at the time your parent page translation takes place the included page to will be taken into account and considered as the same. So the variable that you declared at the top will be accessible inside the included page too. But if you compile the included file separately, definitely variable not found error will be thrown as no declaration inside there.

  • Compiler error: Missing JSP library?

    Hi All,
    I am really new at this, and I know that I'm making some sort of simple mistake.
    I have an existing application running on a 9i middle tier. I want to make a couple of simple changes to a .JSP. So I downloaded the EAR file, loaded it into JDeveloper (10.1.3.0.4 SU4), made my changes and tried to run it locally. I got 241 compiler errors. So I reverted to the original EAR, and I still get 241 compiler errors.
    The errors are:
    Error(1,5): illegal forward reference
    Error(1,14): duplicate definition of class _index
    Error(1,48): HttpJsp not found in class _index
    Error(1,62): method getPageContext(_index, javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, null, boolean, int, boolean) not found in class javax.servlet.jsp.JspFactory
    The code is:
    <sample>
    import oracle.jsp.runtime.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    import javax.servlet.jsp.*;
    public class _index extends oracle.jsp.runtime.HttpJsp {
    public final String _globalsClassName = null;
    public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException {
    response.setContentType( "text/html;charset=windows-1252");
    /* set up the intrinsic variables using the pageContext goober:
    ** session = HttpSession
    ** application = ServletContext
    ** out = JspWriter
    ** page = this
    ** config = ServletConfig
    ** all session/app beans declared in globals.jsa
    PageContext pageContext = JspFactory.getDefaultFactory().getPageContext( this, request, response, null, true, JspWriter.DEFAULT_BUFFER, true);
    // Note: this is not emitted if the session directive == false
    HttpSession session = pageContext.getSession();
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) {
    pageContext.setAttribute(OracleJspRuntime.JSP_PAGE_DONTNOTIFY, "true", PageContext.PAGE_SCOPE);
    JspFactory.getDefaultFactory().releasePageContext(pageContext);
    return;
    </sample>
    So, I read the forums, etc and decided that I need ojsp.jar included in my project libraries. So I went to libraries under project properties, and I already have "Jsp Runtime" as my first library and it claims to include ojsp.jar. I've tried removing and re-adding the library, adding other libraries ("J2EE","Servlet Runtime","OC4J Deployment Plugin"...), and a dozen other things, none of which have allowed my to compile.
    Any ideas on what I should do?
    Steven

    you might need to post more code, but basically the
    compiler is complaining because you do not have a
    return statement at the end of your method.
    if you do not have a return statement (with a matching
    return type) then the compiler will complain. If you
    don't understand this then post the code to your
    method and we can get it fixed.
    public String[] read(InputStream list) throws
    Exception {
    String[] stringArray;
    return stringArray;
    The code is the most complex I have written so far but here is some of it. (the begining and the end)
    public String[] read(InputStream list) throws Exception {
    if (list != null) {
    String[] stringArray = null;
    try {
    while {
    //add strings to string array
    }//end of while
    return stringArray;
    }// end try
    catch{
    }//end of method

  • Syntax error when using jsp:include...

    @ all
    I get a syntax error at the jsp:include line, character "";
    Can anybody help me with that issue?
    Jürgen

    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by joined_col,col5You cannot use a column alias like this directly inside the group-by clause. You will have to rewrite this to:
    select coalesce(col1,col2) joined_col, col3, sum(col4), col5 from data group by coalesce(col1,col2),col5Furthermore I assume that the 'col5' in the group by should be 'col3', not?
    Or vice-verse the 'col3' inside the select-list should be 'col5'...

Maybe you are looking for

  • PHP issue website not displaying content

    hi, i have updated my site (www.kiraamerica.com) but i have a few issues. 1.  there are white boxes that i can not seem to get rid of or find in the codes / css's anywhere. - driving me nuts. 2.  when i click on the link "ram style VTL" it doesnt dis

  • The server responded with an error in iCal

    I've been getting this message all day in iCal: The request for account "iCloud" failed. The server responded with "500" to operation CalDAVAccountRefreshQueueableOperation. Any solution to this madness?

  • How to Connct Macbook AIR to VGA screen  ??

    I bought HMDI mini adapter to my MacBook Air , and i want to connect it to VGA PC screen (LG LED) my screen with only VGA port ?? Help me ,Thanks

  • Communication error in BEx 7.0

    Hi all, We use the BI 7.0 for a week (SP 14). In the BEx Analyzer (SAPGUI 6.40 SP 25, BI Add-on 7.0, SP1401, Revision 801) an error window came up quite often saying that severe error happened and the program need to be closed, detail in the system l

  • ME51N (create PR)  and on automatic-mode goto ME53N with new PR create

    HI ALL, i have other problem in ME51N... when I save a purchase requisition the requisition is created. The change that I need to do at this point is that I have to call ME53N with the  purchase requisition just created. I hope you know the resolutio