Failure in Precompilation of JSPs  due to include file in WL6.1 SP2

Hi
          We are getting the following error when we try to do precompilation of JSPs using
          precompile param to true in weblogic.xml
          We are deploying our application as war files.
          eagerly waiting for your help
          sincerely
          Ramesh
          Issue description and StackTrace:
          Issue:
          Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
          weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
          xception: Could not include index.jsp" exception.
          OS: Windows 2000
          Jdk: Sun Jdk1.3.1
          Weblogic: 6.1 SP2
          ***Stacktrace*************
          <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
          eb,/AdvWeb)] failure pre-compiling JSP's
          weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
          xception: Could not include index.jsp
          at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
          at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
          at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
          at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
          at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
          

Ramesh,
          We experienced this sympton as well. In our JSPs, we converted
          <%@ include file="xyz.jsp"%> (static include, source time) to
          <jsp:include page="licensedQuote.jsp"/> (dynamic include, run time)
          and the problem went away.
          We still use static includes at the very start of the JSPs. It seems the problem only occurs when the static include is inside of a tag whose body does JSP evaluation.
          -Charlie
          "Ramesh Danala" <[email protected]> wrote in message news:[email protected]...
          > Hi
          > We are getting the following error when we try to do precompilation of JSPs using
          > precompile param to true in weblogic.xml
          > We are deploying our application as war files.
          > eagerly waiting for your help
          > sincerely
          > Ramesh
          >
          > Issue description and StackTrace:
          > Issue:
          >
          > Precompilation of JSPs fail while using precompile param to true in weblogic.xml and deploy it as War file. It is througing "failure pre-compiling JSP's
          > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
          > xception: Could not include index.jsp" exception.
          >
          > OS: Windows 2000
          > Jdk: Sun Jdk1.3.1
          > Weblogic: 6.1 SP2
          >
          > ***Stacktrace*************
          >
          > <Dec 17, 2002 1:05:51 PM CST> <Error> <HTTP> <[WebAppServletContext(3961036,AdvW
          > eb,/AdvWeb)] failure pre-compiling JSP's
          > weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamE
          > xception: Could not include index.jsp
          > at weblogic.servlet.jsp.JspLexer.parse(JspLexer.java:1025)
          > at weblogic.servlet.jsp.JspParser.doit(JspParser.java:80)
          > at weblogic.servlet.jsp.JspParser.parse(JspParser.java:183)
          > at weblogic.servlet.jsp.Jsp2Java.outputs(Jsp2Java.java:119)
          > at weblogic.utils.compiler.CodeGenerator.generate(CodeGenerator.java:255
          > )
          

Similar Messages

  • Jsp taglibs in include files not detected, throws errors, no code insight

    I have a jsp which is included in all the other jsp. it looks something like this
    taglibs.jsp
    <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
    <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
    <%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
    test.jsp
    <%@ include file="/jsp/menu/taglibs.jsp"%>
    <html>
         <head>
              <title>Tours</title>
         </head>
         <body>
    <form:form commandName="testCommand">
                   <form:hidden path="tour.firstname" id="tour.firstname" />
    and so on.
    I am having 2 problems
    1. the jsp editor show errors all over the place saying
    element path not expected
    element commandName not expected etc.
    2. no code insights.
    but if i include the taglib def in test.jsp it dosn't show any error and also provides code insights. but seldom do people include all taglibs in all jsps.
    is there a way for Jdeveloper to show code insights in jsp pages which includes a jsp or like xml schemas could be added at some place(tools-pref-xml schemas) and when used anywhere, would provide code insights.

    am not sure, try with this
    <jsp:include   .../>

  • JSP tag spanning @include files

    Weblogic 5.1 sp 9
              Windows 2000
              inc1.inc:
              <x:customtag>
              inc2.inc:
              </x:customtag>
              body.jsp:
              <%@ include file='inc1.inc' %>
              ...[body stuff here] ...
              <%@ include file='inc2.inc' %>
              hitting this page gives:
              java.lang.RuntimeException: Could not parse embedded JSP code:
              weblogic.utils.ParsingException: Could not complete parsing, unmatched tags:
              customtag
                   at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1079)
                   at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1057)
                   at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1050)
              Why is this not valid? Other JSP engines allow this. Doesn't the @include
              directive just pull in code at .java source generation time?
              Thanks,
              j
              

    This does look like a bug. I have tried it too with SP6. Contact support with
              the same problem. [email protected]
              Shiva.
              Jason Collins wrote:
              > Weblogic 5.1 sp 9
              > Windows 2000
              >
              > inc1.inc:
              > <x:customtag>
              >
              > inc2.inc:
              > </x:customtag>
              >
              > body.jsp:
              > <%@ include file='inc1.inc' %>
              > ...[body stuff here] ...
              > <%@ include file='inc2.inc' %>
              >
              > hitting this page gives:
              >
              > java.lang.RuntimeException: Could not parse embedded JSP code:
              > weblogic.utils.ParsingException: Could not complete parsing, unmatched tags:
              > customtag
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1079)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1057)
              > at weblogic.servlet.jsp.JspLexer.parseJspCode(JspLexer.java:1050)
              > ...
              >
              > Why is this not valid? Other JSP engines allow this. Doesn't the @include
              > directive just pull in code at .java source generation time?
              >
              > Thanks,
              > j
              

  • %@ include file="invoiceFtpPush.xhtml" % in jsp

    Hi All,
    I want to include my xhtml page into my jsp page like :
    <%@ include file="invoiceFtpPush.xhtml" %>I want to know is it possible or not? if not possible then any alternative or if possible then how can i do it?
    Right now it is not working.
    Any idea will be appreciated.
    Thanks and Regards,
    Khushwinder

    Hi Baluc,
    Thanks for your reply. After using <jsp:include../> i m getting the following exception :
    WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp314' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp314]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
    BodyContent:
    />  (UIComponentBodyTagBase.java:51)
    WARN  05-29 18:29:33 Component with id 'organizationForm:senderPanelTab:senderTab:_idJsp115' (org.apache.myfaces.taglib.html.HtmlPanelGridTag tag) and path : {Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId: /pages/organizationManagement/createOrganization.jsp][Class: javax.faces.component.html.HtmlForm,Id: organizationForm][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp6][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTabbedPane,Id: orgPan][Class: org.apache.myfaces.custom.tabbedpane.HtmlPanelTab,Id: senderPanelTab][Class: javax.faces.component.UINamingContainer,Id: senderTab][Class: javax.faces.component.html.HtmlPanelGrid,Id: _idJsp115]}renders it's children, but has embedded JSP or HTML code. Use the <f:verbatim> tag for nested HTML. For comments use <%/* */%> style JSP comments instead of <!-- --> style HTML comments.
    BodyContent:
    <!-- Search value -->
        <!-- Search value -->  (UIComponentBodyTagBase.java:51)
    ERROR 05-29 18:29:34 Servlet.service() for servlet default threw exception  (ApplicationDispatcher.java:712)
    java.lang.IllegalStateException
         at org.apache.jasper.runtime.ServletResponseWrapperInclude.getOutputStream(ServletResponseWrapperInclude.java:62)
         at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:783)
         at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:348)
         at org.apache.catalina.servlets.DefaultServlet.doPost(DefaultServlet.java:392)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspx_meth_h_panelGrid_9(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:2315)
         at org.apache.jsp.pages.organizationManagement.receiverTab_jsp._jspService(org.apache.jsp.pages.organizationManagement.receiverTab_jsp:373)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_f_subview_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:729)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspx_meth_x_panelTab_2(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:695)
         at org.apache.jsp.pages.organizationManagement.createOrganization_jsp._jspService(org.apache.jsp.pages.organizationManagement.createOrganization_jsp:224)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)
         at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
         at org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:419)
         Actually previously i was using
    <%@ include file="invoiceFtpPush.jsp" %>which was working fine but now i want to change my invoiceFtpPush.jsp page to xhtml which is giving the above exception.

  • Jsp ok but IDE display errors in javascript+tags and taglibs include file

    Hi,
    The JDev 10.1.3 IDE display errors on running JSP in following cases:
    1) When tag libs declaration in include file.
    2) When jstl/struts tags are used in javascript
    JDev 10.1.2 didn't diplay those errors
    More details:
    extracts:
    Type of error: Character data not allowed in head
    alert("Your session has been closed automatically after a long period of inactivity.\nOR\nYou used an invalid or old bookmark.");
    javascript comments: (use for debugging)
    // alert("agt: "+agt+", is_ie: "+is_ie);
    Type of error: element <used tag> not expected here
    <fmt:bundle basename="com.photoswing.webview.MainshopAppMessageResources">
    alert("<fmt:message key="alert.timeout.noRedirection"/>");
    </fmt:bundle>
    JDev 10.1.3 has no javascript editor, so it should ignore the content of <script> .. </script>
    Regards
    Fred

    Hi,
    Same message but with formatting tags.
    Closing tag is [ / code ] without blanks.
    Thanks to Didier,
    IDE displayed errors => jsp runs and compiles ok.
    It is not obvious to reproduce those errors because they vary upon external or internal tag declaration.
    Remark:
    I tried replacing jsp tag declaration:
    <%@ include file="../../helper/TagLibsInclude.jsp"%>by simple file but it doesn't help:
    <%@ include file="../../srcInclude/tagLibs.inc"%>Case 1) all tag declaration are external but jstl c and fmt also internal:
    <%@ include file="../../helper/TagLibsInclude.jsp"%>  
    <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
    <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>Element c:out not expected:
    =====================
    <c:set var="numberOfRows">
      <c:out value="${bindings.LoadedPhotos}" />
    </c:set>Element logic:messagesPresent not expected
    ==================================
         </tr>
        <logic:messagesPresent message="true" >
            <html:messages message="true" id="msg">
             <tr>
              <td colspan="5" class="txtMed txtBold">
                 <c:out value="${msg}"/><br/>
              </td>
             </tr>
            </html:messages>
        </logic:messagesPresent>
        <tr>Element fmt:param not expected .
    ========================
                  <fmt:message key="event.photoCommentInLang.prompt">
                   <fmt:param value="${pageScope.langName1}"/>
                  </fmt:message>
    ..Case 2) all tag declaration are external
    Element set not expected .
    ===================
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <c:set var="sourceId" value="${bindings.EventId.attributeValue}"/>
      <c:set var="sourceId1" value="${bindings.AlbumId.attributeValue}"/>
    ...Element bundle not expected .
    ======================
    </head>
    <body>
    <fmt:bundle basename="com.photoswing.webview.MainshopAppMessageResources">error: Character data not allowed in head
    =============================
    Example:
    <script language="JavaScript" type="text/javascript">
    function FL_init() {
      <c:if test="${not empty requestScope.SessionWasInvalid}">
        alert("<fmt:message key="general.loggedIn.timeout"/>");
        location.href="<c:url value="/accountLogin.do"/>";
      </c:if>
    </script>Regarding my workaround:
    You don't have to remove the tag declaration, but I prefer to keep my jsp as clean as possible.
    But I found another problem, this time it's a serious one, when you reformat the source ALL tag prefixes are removed.
    Example
    <c:set ... becomes <setOther example:
      <c:set var="numberOfRows">
      <c:out value="${bindings.LoadedPhotos}" />
      </c:set>becomes:
        <set var="numberOfRows">
         <out value="${bindings.LoadedPhotos}"/>
        </set>Good luck!
    Fred

  • Included files in JSPC

    Using WL5.1, JSPC can't seem to find files included in a JSP, such as:
              <%@ include file="include/include_file.inc" %>
              The docroot is set to the directory containing the JSP files, and the
              include directory (which contains all included files) is directly under the
              docroot directory.
              In the generated java file we get:
              // cannot include file 'include/include_file.inc' //[ /BrandEdit.jsp; Line:
              33]
              //[ /BrandEdit.jsp; Line: 34]
              out.println("<!-- cannot include file 'include/include_file.inc', resource
              not found -->"); //[ /BrandEdit.jsp; Line: 33]
              //[ /BrandEdit.jsp; Line: 34]
              Any ideas on why the included files aren't being found by JSPC?
              Thanks,
              Steve
              

    Fixed in SP9 - available very soon.
              ISSUE 38661
              Compiling a JSP that contains an include directive with a relative URI was
              not resulting in the file's path being parsed correctly.
              Mike
              "Steve Crook" <[email protected]> wrote in message
              news:3ac97e4d$[email protected]..
              > Using WL5.1, JSPC can't seem to find files included in a JSP, such as:
              > <%@ include file="include/include_file.inc" %>
              >
              > The docroot is set to the directory containing the JSP files, and the
              > include directory (which contains all included files) is directly under
              the
              > docroot directory.
              >
              > In the generated java file we get:
              > // cannot include file 'include/include_file.inc'
              ile://[ /BrandEdit.jsp; Line:
              > 33]
              > file://[ /BrandEdit.jsp; Line: 34]
              > out.println("<!-- cannot include file 'include/include_file.inc', resource
              > not found -->"); file://[ /BrandEdit.jsp; Line: 33]
              > file://[ /BrandEdit.jsp; Line: 34]
              >
              > Any ideas on why the included files aren't being found by JSPC?
              >
              > Thanks,
              > Steve
              >
              >
              

  • Repost: relative URL in @ include file , parsing Exception

              Repost : hope this formats properly.
              Hello all
              I've a jsp file that includes another like
              < % @ include file="../common/check_active_user.jsp" % >
              It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              packageit in .war file.
              With the .war file I get the attached
              Weblogic.utils.ParsingExceptionexception.
              Is this a bug in WL6.0sp1? has anybody else encountered
              similar problem?
              TIA
              [parse.txt]
              

    Ashish,
              We include all our jsp's using
              <%@ include file="/common/check_active_user.jsp" %>
              This works fine without any problem in open directory deployment and also when
              we deploy as war file.
              I checked the case you mentioned (changing /common to ../common) its fails for
              me too when I made war file.
              Thanks,
              Kumar.
              ashish gupta wrote:
              > Repost : hope this formats properly.
              >
              > Hello all
              > I've a jsp file that includes another like
              > < % @ include file="../common/check_active_user.jsp" % >
              > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              > packageit in .war file.
              > With the .war file I get the attached
              > Weblogic.utils.ParsingExceptionexception.
              > Is this a bug in WL6.0sp1? has anybody else encountered
              > similar problem?
              >
              > TIA
              >
              > ------------------------------------------------------------------------
              > Name: parse.txt
              > parse.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • Relative URL in @ include file , parsing Exception

              Hello all
              I've a jsp file that includes another like
              <%@ include file="../common/common.jsp" %>
              It works fine on WL5.1 and on WL6.0sp1 as long as I don't package
              it in .war file. With the .war file I get the attached weblogic.utils.ParsingException
              exception.
              Is this a bug in WL6.0sp1? has anybody else encountered similar
              problem?
              TIA
              [parse.txt]
              

    Ashish,
              We include all our jsp's using
              <%@ include file="/common/check_active_user.jsp" %>
              This works fine without any problem in open directory deployment and also when
              we deploy as war file.
              I checked the case you mentioned (changing /common to ../common) its fails for
              me too when I made war file.
              Thanks,
              Kumar.
              ashish gupta wrote:
              > Repost : hope this formats properly.
              >
              > Hello all
              > I've a jsp file that includes another like
              > < % @ include file="../common/check_active_user.jsp" % >
              > It works fine on WL5.1 and on WL6.0sp1 as long as I don't
              > packageit in .war file.
              > With the .war file I get the attached
              > Weblogic.utils.ParsingExceptionexception.
              > Is this a bug in WL6.0sp1? has anybody else encountered
              > similar problem?
              >
              > TIA
              >
              > ------------------------------------------------------------------------
              > Name: parse.txt
              > parse.txt Type: Plain Text (text/plain)
              > Encoding: base64
              

  • Error while precompiling the JSP using weblogic 7.0

    Hi
    I am trying to precompile jsp file which is there in a war.Main jsp file code includes one more jsp which is there in other folder under defaultweb directory.
    While deploying the war i am getting the following error.Can any bosy help me in this regard
    <Nov 23, 2002 5:01:28 PM IST> <Error> <HTTP> <101045> <[ServletContext(id=464413
    3,name=ArkinTestWeb,context-path=/ArkinTestWeb-3)] translation of /Admin/account
    _access.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException
    : antlr.TokenStreamException: Could not include ./../includes/sessionStatusPage.
    jsp>
    <Nov 23, 2002 5:01:28 PM IST> <Error> <Deployer> <149201> <The Slave Deployer fa
    iled to complete the deployment task with id 1 for the application ArkinTestWeb.
    weblogic.management.ApplicationException: Prepare failed. Task Id = 5
    Module Name: ArkinTestWeb, Error: Could not load ArkinTestWeb: weblogic.utils.Ne
    stedException: ArkinTestWeb:ArkinTestWeb Failure while Precompiling JSPs: weblog
    ic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamExcepti
    on: Could not include ./../includes/sessionStatusPage.jsp - with nested exceptio
    n:
    [weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStream
    Exception: Could not include ./../includes/sessionStatusPage.jsp]
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:657)
    at weblogic.j2ee.J2EEApplicationContainer.prepare(J2EEApplicationContain
    er.java:548)
    at weblogic.management.deploy.slave.SlaveDeployer.processPrepareTask(Sla
    veDeployer.java:1026)
    at weblogic.management.deploy.slave.SlaveDeployer.prepareUpdate(SlaveDep
    loyer.java:700)
    at weblogic.drs.internal.SlaveCallbackHandler$1.execute(SlaveCallbackHan
    dler.java:24)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:152)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:133)
    >
    Regards
    Anand Mohan

    Hi
    All jsp pages are under one web application only.Can you help more on this.
    Regards
    Anand

  • Weblogic Precompilation of Jsps

    Hi there,
              I'm deploying a project to Weblogic 8.1.2 and I'm trying to use Ant - in conjunction with Weblogic tasks - wldeploy and wlappc - to build and deploy my project for me. And I'm noticing some bizarre behaviour with the weblogic precompilation.
              As part of the build process - all jsps are precompile when assembling into an ear file. However when I deploy the ear - Weblogic Server goes ahead and recompiles the jsps all over again - which the defeats the purpose of compiling them at assembly time.
              The message I get from the server is
                        16-Aug-2004 10:45:53 o'clock BST> <Info> <HTTP> <BEA-
              101295> <Recompiling JServletContext
              (id=26194723,name=coronersDB,context-path=/coronersDB)], resour/pages/AdminLetter.jsp], because it is stale. It
               was previously compiled using a  different version of
              WebLogic Server.JSP build version: 8.1.2.0WLS build
              version: 8.1.2.0.>
                                            Does anyone know how I can stop this second precompilation?
              Thanks in advance
              Tariq

    I never found a fix for this.
              In the end I just wrote an ant script using basic ant tasks i.e. no weblogic ant tasks - and used the weblogic.xml file to get the server to precompile jsps at deploy time.
              My experience with the weblogic ant tasks has been less than satisfactory.
              Good luck - and let me know if you have any major breakthroughs.

  • How to force a jsp page to reload an "include" file?

    Hi there,
    I'm using WebSphere 4.0.2 with the Java 1.3.1 API.
    Some of my JSP files includes another JSP file as follows:
    <%@include file="constants.jsp"%>The above line came from one of the files entitled "main.jsp".
    Other jsp files on our system can rewrite and update the values in constants.jsp.
    However, when they do so, main.jsp (and the other files that "include" constants.jsp) doesn't take on the new settings unless I either a) reboot the server or b) force a recompile of main.jsp
    Is there any way to have main.jsp pick up when constants.jsp is updated and use the new values without manual intervention?
    Thanks!

    You might want to use 'touch' task of ANT. it modifies the jsp page modification time thus forcing the pages to reload.

  • %@ include file= in a JSP

    Please e-mail responses to [email protected] as well as this newsgroup:
              I have the following in a JSP that was originally designed for iPlanet:
              <%@ include file="../edeploy_global/GlobalVars.jsp" %>
              The JSP that contains this file is in a project called "edeploy28", that is in the same directory as "edeploy_global".
              However, I get the following error in WebLogic when trying to execute this:
              javax.servlet.ServletException: compilation of /DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested TokenStreamException: antlr.TokenStreamException: Could not include ../edeploy_global/GlobalVars.jsp
              at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              at weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              mpl.java:517)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              ervletContext.java:940)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:928)
              at weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              ServletContext.java:913)
              at weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              83)
              at weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              at weblogic.j2ee.Application.addComponent(Application.java:116)
              at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:283)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:109)
              at weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              r.java:76)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy28.addWebDeployment(Unknown Source)
              at weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              ployment(WebServerMBean_CachingStub.java:985)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              oymentTarget.java:269)
              at weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              loymentTarget.java:233)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              ments(DeploymentTarget.java:194)
              at weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              DeploymentTarget.java:158)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy27.updateDeployments(Unknown Source)
              at weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              yments(ServerMBean_CachingStub.java:2299)
              at weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              er(ApplicationManager.java:239)
              at weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              nManager.java:121)
              at java.lang.reflect.Method.invoke(Native Method)
              at weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              eanImpl.java:559)
              at weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              .java:545)
              at weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              ionMBeanImpl.java:285)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              55)
              at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              23)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              at weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              at $Proxy26.start(Unknown Source)
              at weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              .start(ApplicationManagerMBean_CachingStub.java:435)
              at weblogic.management.Admin.startApplicationManager(Admin.java:959)
              at weblogic.management.Admin.finish(Admin.java:459)
              at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              [att1.html]
              

              I didn't look at your problem very closely. WLS 5.1 has had some problems with including
              JSPs. Get service pack 8 and the patch for CR036881 (from websupport.bea.com/custsupp
              or 1-888-228-4232)
              mike
              "Matt Raible" <[email protected]> wrote:
              >
              >
              >Please e-mail responses to [email protected] as well as this =
              >newsgroup:
              >
              >-------------------------------------------------------------------------=
              >-------
              >
              >I have the following in a JSP that was originally designed for iPlanet:
              >
              ><%@ include file=3D"../edeploy_global/GlobalVars.jsp" %>
              >
              >The JSP that contains this file is in a project called "edeploy28", that
              >=
              >is in the same directory as "edeploy_global". =20
              >
              >However, I get the following error in WebLogic when trying to execute =
              >this:
              >
              >javax.servlet.ServletException: compilation of /DefectCodeSite.jsp =
              >failed: weblogic.utils.ParsingException: nested TokenStreamException: =
              >antlr.TokenStreamException: Could not include =
              >.../edeploy_global/GlobalVars.jsp
              > at weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)
              > at =
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI
              >mpl.java:517)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS
              >ervletContext.java:940)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:928)
              > at =
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp
              >ServletContext.java:913)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4
              >83)
              > at =
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)
              > at weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)
              > at weblogic.j2ee.Application.addComponent(Application.java:116)
              > at weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:283)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:109)
              > at =
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe
              >r.java:76)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy28.addWebDeployment(Unknown Source)
              > at =
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe
              >ployment(WebServerMBean_CachingStub.java:985)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl
              >oymentTarget.java:269)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep
              >loymentTarget.java:233)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy
              >ments(DeploymentTarget.java:194)
              > at =
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(
              >DeploymentTarget.java:158)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy27.updateDeployments(Unknown Source)
              > at =
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo
              >yments(ServerMBean_CachingStub.java:2299)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag
              >er(ApplicationManager.java:239)
              > at =
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio
              >nManager.java:121)
              > at java.lang.reflect.Method.invoke(Native Method)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB
              >eanImpl.java:559)
              > at =
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl
              >..java:545)
              > at =
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat
              >ionMBeanImpl.java:285)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >55)
              > at =
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15
              >23)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)
              > at =
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)
              > at $Proxy26.start(Unknown Source)
              > at =
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub
              >..start(ApplicationManagerMBean_CachingStub.java:435)
              > at =
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)
              > at weblogic.management.Admin.finish(Admin.java:459)
              > at weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)
              > at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)
              >
              >
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
              ><HTML><HEAD>
              ><META http-equiv=3DContent-Type content=3D"text/html; =
              >charset=3Diso-8859-1">
              ><META content=3D"MSHTML 5.50.4611.1300" name=3DGENERATOR>
              ><STYLE></STYLE>
              ></HEAD>
              ><BODY>
              ><DIV><FONT face=3DArial size=3D2>Please e-mail responses to <A=20
              >href=3D"mailto:[email protected]">[email protected]</A> as well as =
              >this=20
              >newsgroup:</FONT></DIV>
              ><DIV>
              ><HR>
              ></DIV>
              ><DIV><FONT face=3DArial size=3D2>I have the following in a JSP that was
              >=
              >originally=20
              >designed for iPlanet:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial color=3D#008000 size=3D2><STRONG><%@ include=20
              >file=3D"../edeploy_global/GlobalVars.jsp" %></STRONG></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>The JSP that contains this file is in a
              >=
              >project=20
              >called "edeploy28", that is in the same directory as =
              >"edeploy_global". =20
              ></FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>However, I get the following error in =
              >WebLogic when=20
              >trying to execute this:</FONT></DIV>
              ><DIV><FONT face=3DArial size=3D2></FONT> </DIV>
              ><DIV><FONT face=3DArial size=3D2>javax.servlet.ServletException: =
              >compilation of=20
              >/DefectCodeSite.jsp failed: weblogic.utils.ParsingException: nested=20
              >TokenStreamException: antlr.TokenStreamException: </FONT><FONT =
              >size=3D2><FONT=20
              >face=3DArial><STRONG><FONT color=3D#ff0000>Could not include=20
              >.../edeploy_global/GlobalVars.jsp</FONT><BR></STRONG>   &nb=
              >sp;   =20
              >at=20
              >weblogic.servlet.jsp.JspStub.prepareServlet(JspStub.java:189)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubI<BR>=
              >mpl.java:517)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlet(WebAppS<BR>=
              >ervletContext.java:940)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:928)<BR>       =20
              >at=20
              >weblogic.servlet.internal.WebAppServletContext.preloadServlets(WebApp<BR>=
              >ServletContext.java:913)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWARContext(HttpServer.java:4<BR>=
              >83)<BR>       =20
              >at=20
              >weblogic.servlet.internal.HttpServer.loadWebApp(HttpServer.java:394)<BR>&=
              >nbsp;      =20
              >at=20
              >weblogic.j2ee.WebAppComponent.deploy(WebAppComponent.java:74)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.j2ee.Application.addComponent(Application.java:116)<BR> &nb=
              >sp;     =20
              >at=20
              >weblogic.j2ee.J2EEService.addDeployment(J2EEService.java:115)<BR> &n=
              >bsp;     =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:283)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:109)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.WebServer.addWebDeployment(WebServe<BR>=
              >r.java:76)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy28.addWebDeployment(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.WebServerMBean_CachingStub.addWebDe<BR>=
              >ployment(WebServerMBean_CachingStub.java:985)<BR>    =
              >   =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployment(Depl<BR>=
              >oymentTarget.java:269)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.addDeployments(Dep<BR>=
              >loymentTarget.java:233)<BR>       =20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateServerDeploy<BR>=
              >ments(DeploymentTarget.java:194)<BR>      &=
              >nbsp;=20
              >at=20
              >weblogic.management.mbeans.custom.DeploymentTarget.updateDeployments(<BR>=
              >DeploymentTarget.java:158)<BR>       
              >=
              >
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy27.updateDeployments(Unknown=20
              >Source)<BR>        at=20
              >weblogic.management.configuration.ServerMBean_CachingStub.updateDeplo<BR>=
              >yments(ServerMBean_CachingStub.java:2299)<BR>    &nbs=
              >p;  =20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.startConfigManag<BR>=
              >er(ApplicationManager.java:239)<BR>      &n=
              >bsp;=20
              >at=20
              >weblogic.management.mbeans.custom.ApplicationManager.start(Applicatio<BR>=
              >nManager.java:121)<BR>       =20
              >at java.lang.reflect.Method.invoke(Native=20
              >Method)<BR>        at=20
              >weblogic.management.internal.DynamicMBeanImpl.invokeLocally(DynamicMB<BR>=
              >eanImpl.java:559)<BR>       =20
              >at=20
              >weblogic.management.internal.DynamicMBeanImpl.invoke(DynamicMBeanImpl<BR>=
              >..java:545)<BR>       =20
              >at=20
              >weblogic.management.internal.ConfigurationMBeanImpl.invoke(Configurat<BR>=
              >ionMBeanImpl.java:285)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >55)<BR>       =20
              >at=20
              >com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:15<BR>=
              >23)<BR>       =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:431)<BR>&n=
              >bsp;      =20
              >at=20
              >weblogic.management.internal.MBeanProxy.invoke(MBeanProxy.java:172)<BR>&n=
              >bsp;      =20
              >at $Proxy26.start(Unknown =
              >Source)<BR>       =20
              >at=20
              >weblogic.management.configuration.ApplicationManagerMBean_CachingStub<BR>=
              >..start(ApplicationManagerMBean_CachingStub.java:435)<BR>   =
              >;    =20
              >at=20
              >weblogic.management.Admin.startApplicationManager(Admin.java:959)<BR>&nbs=
              >p;      =20
              >at=20
              >weblogic.management.Admin.finish(Admin.java:459)<BR>   &nb=
              >sp;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.start(T3Srvr.java:429)<BR>    =
              >;   =20
              >at=20
              >weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:170)</FONT></FONT></DIV></BODY></=
              >HTML>
              >
              >
              

  • Dynamic include file in JSP page

    <span class="value">Hi
    i have index.jsp , this page can include jsp
    pages dynamically by passing the name of the page to be included to the
    index page with out .jsp , so if i want to include page "code.jsp" i
    put: .../index.jsp?page=code , this have to include code.jsp page
    i made the following code , but it did not find the file
    so can any one help plz ?
            String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    File f=new File(request.getParameter("page")+".jsp");
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%=request.getParameter("page")+".jsp" %>" />
            <%
                    }else{
                            out.print("file not exist");
         

    What does the file existing or not really have to do with it?
    You can try it like this:
    String pg=request.getParameter("page");
            if( pg!= null && ! "".equals(pg)){
                    String webPath = pg + " .jsp";
                    String realPath = request.getRealPath(webPath);
                    File f=new File(realPath);
                    if(f.exists()){
                            out.print("file exist");
                            %>
                            <jsp:include page="<%= webPath %>" />
            <%
                    }else{
                            out.print("file not exist");
            }Alternatively you could try using a request dispatcher:
    RequestDispatcher rd = request.getRequestDispatcher(webPath);
    if (rd == null){
      // doesn't exist
    }

  • Reloading a jsp include file

    Lets say I have a container,
    <div id="mindmapcontainer">and within this container, I have a jsp include
    <%@ include file="mindmap.jsp"%>and within the parent page there is a flash map. I have manipulated the css in such a way that this container (and its include file) will not show unless the user clicks on a country (using visibility hidden/visible). I understand that the external file loads on the server side when the parent page loads,despite it being hidden.
    Now the problem is, I'm missing some fancy effects that is shown only when the external jsp first loads. Is there any way I can make it reload onClick?
    I'm using ammap and js-mindmap btw.

    nope using window.location.reload() will reload the entire page.and i dont want that because it will get me back to my flash map screen and not the mindmap screen.thanks for your answer anyway.is there is a way to make it reload a div only or a jsp include?

  • Weblogic 9.1/10 not working on jsp:directive.include file="file.jspf"/

    Does anyone know how to get rid of this problem? I have a jsp page including a sun java studio creator created page fragment using the tag:
    <jsp:directive.include file="myHeader.jspf"/>
    here myHeader.jspf is a page fragment.
    after deployment, weblogic server report error as:
    weblogic.servlet.jsp.CompilationException: Failed to compile JSP /Page1.jsp
    Page1.jsp:15:57: Error in "C:\bea\user_projects\domains\base_domain\servers\AdminServer\tmp\_WL_user\proj\grb4mk\war\myHeader.jspf" at line 1: The encoding "null" specified in the XML prolog is unsupported.
    <jsp:directive.include file="myHeader.jspf"/>
    ^----------------^
    Any idea? I tried both weblogic 9 and 10, same error, change to
    <jsp:include page="myHeader.jspf"/>
    works. the question is: why not read jsp 1.2 tag? Any way to make it work with jsp:directive.include tag?
    thanks in advance.
    Edited by: user10243594 on Sep 10, 2008 10:22 AM

    The "jsp:directive.include" tag is only valid in an well-formed XML file that specifies all the relevant namespaces. The "jsp:include" tag is used in a JSP file. I'll bet the beginning of your file shows that you don't have a valid and well-formed XML file.
    If you found that "jsp:include" worked, then that confirms you have an ordinary JSP file here. Why are you trying to use the XML form? The result of "jsp:include" in a JSP file will be exactly the same as the analogous tag in an XML file.

Maybe you are looking for

  • Message SR 053 when i send idoc from SAp R/3 4.6C to PI 7

    Hi, I try to send idoc from SAP r/3 4.6C to PI 7. I had made  ALE configuration in my sender system ( SAP 4.6C) but idocs are not sent to PI. In SM58 i have message "Name or password is incorrect (repeat logon)". Yet i'm sure that user and password a

  • Urgent - Idoc type and the Message type

    Hello Its very urgent. I want to know the basic idoc type and the message type used for EDI 894 transmission (Delivery / Return Base Record). Please respond at the earliest. Thanks in advance

  • Photo albums not deleting from my iphone 6

    Photo albums not deleting from my iphone 6 even after i remove them from itunes. plus it shows as others in the storage. how to remove the albums ? i removed them from the itunes linked folders though it still shows on the iphone !!!

  • HT1414 restoring my iphone 3gs is not completeing and the phone is not working

    restoring my iphone 3gs is not completing and my phone is not working i took it to my local phone shop they told me that the new itunes will not fit onto the iphone 3gs, how can i get my phone to work.

  • Error while executing FILE to CRM scenario

    Hi I am working on xml file to crm scenario. When I am execting the scenrio I can see success message in XI system but in CRM system SXMB_MONI I found the following error DYNAMIC_CALL_ILLEGAL_METHOD Unable to call the application dynamically. Method