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.

Similar Messages

  • PreCompilation of JSP in Weblogic

    i am using Weblogic 8.0. i wanna write ant script for precompilation of JSP. Could anybody provide the build.xml
              Thanks in advance.

    TÃtulo: Quer mudar sua vida??Leia com atenção!
              Autor: LUIZ
              Data: 19/11/2005
              Cidade: Boa Vista
              Estado: RR
              PaÃs: Brasil
              COMO ACABAR COM A DIFICULDADE FINANCEIRA
              ACABE COM A DIFICULDADE FINANCEIRA
              GANHE MUITO DINHEIRO COM APENAS 6 REAIS
              HONESTIDADE, INTELIGENCIA E EFICÁCIA
              POR FAVOR, LEIA COM BASTANTE ATENÇÃO, VALE A PENA!
              COMO TRANSFORMAR 6 (SEIS) REAIS EM NO MINIMO 6.000(SEIS MIL REAIS) !! : VOCÊ É CAPAZ, APENAS FAÇA FUNCIONAR.!
              Eu achei uma mensagem sobre esse assunto e não dei muita atenção por ser um texto muito longo e parecer ser presente de papai Noel, más resolvi arriscar e deu certo. Vou tentar resumir para que vc tbm não ache esse texto cansativo e se quiser mais informções mande-me um e-mail – [email protected].
              Funciona assim:
              PASSO 1: Separe 6 meias folhas de papel e escreva em cada uma, o seguinte bilhete: " POR FAVOR, PONHA-ME EM SUA LISTA DE REMETENTES" colocando seu nome e endereço logo abaixo. Agora adquira 6 notas de R$ 1,00 e envolva cada uma em um dos bilhetes que você acabou de escrever. Em seguida, envolva cada um deles novamente com um papel escuro, para evitar que alguém veja a nota e viole o envelope, roubando o dinheiro. Então coloque cada um dentro de um envelope e lacre. A lista abaixo contém 6 nomes com endereços e você tem 6 envelopes lacrados. Você deve REMETER PELO CORREIO, um envelope para cada um dos nomes da lista. Faça isto, anotando corretamente o nome e o endereço nos envelopes, depositando em seguida no correio. A lista se encontra no final desse texto : PASSO 2: Elimine o primeiro nome da lista (#1). Reordene a lista de 1 a 5, ou seja (2 torna-se 1), (3 torna-se 2), etc.. Coloque o SEU nome e endereço como o 6º(sexto) da lista. :
              PASSO 3: Após feitas as alterações acima, coloque este artigo em pelo menos 200 fóruns e newsgroups.Você pode modificar o texto deste artigo, mas por favor, mantenha a integridade da mensagem. Isto é importante. LEMBRE-SE, quanto mais mensagens nos fóruns, newsgroups e livros de visitas você colocar, mais dinheiro você ganhará!
              O retorno será melhor se você colocar um bom tÃtulo ( ou esse mesmo), que fique visÃvel para todos.
              Agora, coloque o artigo modificado (ou esse mesmo).Existem milhares de fóruns e newsgroups. Você só precisa de 200. Então mãos à obra, LEMBRE-SE Toda vez que alguém agir como você, salvando esta mensagem, seguindo e executando corretamente todas as instruções, 6 pessoas estão sendo beneficiadas com R$ 1,00 cada e seu nome subirá na lista. Assim as listas multiplicam-se rapidamente e seu nome vai subindo até atingir a primeira posição. Desta forma quando seu nome alcançar a #1 posição, você já terá recebido milhares de reais em DINHEIRO VIVO! Lembre-se que você só investiu R$6.00. Envie agora os envelopes, suba o nome dos participantes da lista e adicione seu próprio nome na sexta posição da lista, poste-a nos fóruns e você está no negócio!
              COMO POSTAR NOS NEWSGROUPS --------
              Etapa 1) Copie e salve este artigo em seu editor de texto. (selecione o texto, clique em Editar e Copiar, abra seu editor de texto e clique em Editar e Colar, depois clique em Arquivo e Salvar como .txt) Etapa 2) Faça as devidas alterações neste artigo, incluindo seu nome na sexta posição da lista. Etapa 3) Salve novamente o arquivo. Clique em Editar e Selecionar tudo. Clique novamente em Editar e Copiar. Etapa 4) Abra seu navegador, Netscape, Internet Explorer ou algum outro qualquer e procure vários newsgroups (fóruns on-line, cadernos de mensagens, locais de conversa, discussões) e poste uma mensagem nova em cada MURAL ou ÁREA, ou algo similar. Etapa 5) Para postar entre nesses newsgroups. No campo destinado para digitar o texto ou mensagem a ser enviada para o newsgroups, clique com o botão direito do mouse. Em seguida clique em Colar. Como Assunto ou tÃtulo, digite um nome que chame a atenção, como o meu, ou invente algo parecido. Clique em enviar e pronto, você acabou de enviar sua primeira mensagem! Parabéns...Etapa 6) Selecione outro newsgroups e repita o passo 5. Faça isso no mÃnimo para 200 newsgroups. **QUANTO MAIS MENSAGENS VOCÊ ENVIAR AOS NEWSGROUPS MAIS CHANCES VOCÊ TERÁ DE GANHAR MAIS DINHEIRO ** Pronto! Você logo começará a receber dinheiro pelo correio. Se você deseja ficar anônimo, você pode inventar um nome para usar na lista, contanto que o endereço esteja certo para que você receba o dinheiro. **CONFIRA SEU ENDEREÇO!!!.
              ------- PORQUE RENDE TANTO DINHEIRO --------
              Agora vamos ver POR QUE rende tanto dinheiro: Fazendo uma análise bastante pessimista, vamos supor que de cada 200 mensagens, apenas 5 dêem retorno. Assim das minhas 200 mensagens, receberei apenas R$5,00 referentes ao meu nome na #6 posição. Agora, cada uma das 5 pessoas que me enviaram R$1.00 postaram mais 200 mensagens cada uma. Se apenas 5 de cada 200 retornarem, receberei R$ 25,00 referentes ao meu nome na #5 posição. Agora, cada uma das 25 pessoas que me enviaram R$1.00 postaram mais 200 mensagens cada uma. Se apenas 5 de cada 200 retornarem, receberei R$ 125,00 referentes ao meu nome na #4 posição. LEMBRE-SE ! Estamos considerando um exemplo extremamente fraco. Agora, cada uma das 125 pessoas que me enviaram R$1.00 postaram mais 200 mensagens cada uma. Se apenas 5 de cada 200 retornarem, receberei R$ 625,00 referentes ao meu nome na #3 posição. Agora, cada uma das 625 pessoas que me enviaram R$1.00 postaram mais 200 mensagens cada uma. Se apenas 5 de cada 200 retornarem, receberei então R$ 3.125,00 referentes ao meu nome na #2 posição. Agora, cada uma das pessoas que me enviaram R$1.00 postaram mais 200 mensagens cada uma. Se apenas 5 de cada 200 retornarem, receberei nesta última fase R$ 15.625,00 referentes ao meu nome na #1 posição. INCRÍVEL! Com um investimento original de apenas R$6,00, cria-se uma oportunidade gigantesca. Estima-se que entre 20.000 e 50.000 novas pessoas se juntem à Internet todos os dias e vão para os chats e fóruns. "O que são seis reais para tentar uma chance milionária que pode dar certo?" As chances são grandes quando milhões de pessoas honestas como você estão se juntando a esse grupo?? Lembre-se, a HONESTIDADE faz parte deste jogo. MANDE UM DÓLAR AO INVÉS DE UM REAL PARA OS ESTRANGEIROS .
              IMPORTANTE: O envio das cartas contendo o bilhete e R$1,00, é que torna honesto e prospero o sistema, assim o sistema sobrevive, pois tudo que é desonesto, mais cedo ou mais tarde, fracassa certamente.
              NÓS SOMOS RICOS, NÓS SOMOS PROSPEROS, NÓS ESTAMOS CHEIOS DE SAÚDE E HARMONIA.
              **** SE VC DESEJA PARTICIPAR DESSA CORRENTE DE SOLIDARIEDADE E AO MESMO TEMPO FICAR RICO, MANDE (1 REAL) PARA CARA UM DOS NOMES ABAIXO******
              ENDEREÇOS DAS PESSOAS QUE VC DEVE ENVIAR R$1,00 JUNTO COM O BILHETE:
              1)Luiz Carlos Rodrigues - Av. Dr. Nilo Peçanha,252 - Marapé.
              CEP: 11070-050 SANTOS - SP
              2)Renato Pontes Eller - Rua Ranulfo Alves,709 Vila Isa.
              Cep: 35044-220 Governador Valadares - MG
              3)Dalton Sampaio - Rua Senador Máximo, 75 - Centro.
              Cep: 57250-000 Campo Alegre – AL
              4)Samuel Rodrigues P. Junior – Av. Ernani do Amaral Peixoto, 195 Apt 701 - Centro.
              Cep: 24020-071 Niterói - RJ
              5)PatrÃcia A de Barros Silva – Rua Maria Teresa Assunção 479 A –Penha
              CEP:03609.000 –São Paulo-SP
              6) Luiz Faustino – Rua Ágata, 238 – Jóckey Club
              CEP: 69313-108 – Boa Vista - RR
              NÃO PERCA TEMPO COMECE JÁ A ENVIAR SUAS CARTAS E POSTAR!!!QUANTO ANTES MELHOR, MAIS RAPIDO COMECARA A RECEBER AS SUAS CARTAS!!!!

  • Weblogic 10 R3 jsp precompile-continue

    Hello,
    I have a requirement to precompile the jsps on startup, however, I want weblogic server to continue the compilation even if some of the jsp compilation fails. I have enabled the following config options in the weblogic.xml.
    <precompile>true</precompile>
    <precompile-continue>true</precompile-continue>
    However, even with precompile-continue set to true, weblogic server aborts the compilation, when some of the jsps fail to compile.
    Please let me know, if there is any other parameter, I need to enable, to achive my requirement in Weblogic 10 R3.
    Thanks,
    Namita

    check this post on same topic.
    Re: Problem upgrading EAR wls8.1 to wls10.3 precompiled jsp not found 404 error

  • 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
              > )
              

  • Weblogic 9 and JSP compiler errors

    Hello everyone,
              I am having problems with my Jsps in my EAR file deployed on WL 9.0.
              I have a Jsp called upms.jsp that contains the following code snippets:
              After my import statements, I have some code that creates a resource bundle that accesses a properties file:
               <%!
                   ResourceBundle bundle = null;
                   public void jspInit() {
                   bundle = ResourceBundle.getBundle("conf.properties");
              %>
              I get an error from the above code:
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
                        import="java.util.ResourceBundle"
              ^----------------------^
              I am totally clueless as to what that error means.
              Next I declare a bean I use in the jsp:          
                   <jsp:useBean
                        id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
                   scope="session">
                   </jsp:useBean>
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              I get these errors from the above portion:
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain fields.
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
                   <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Has anyone encountered these before?
              This jsp worked perfectly well when I deployed my EAR file on JBoss...no such luck using Weblogic.
              Is there something I am missing here? I appreciate any help.
              Cheers, :-)
              M.

    Mildred,
              Two suggestions:
              1) use option weblogic.jspc's "-keepgenerated", you can keep the generated
              servlet's source code.
              Please paste it here.
              2) Can you create a simple reproducer(e.g. a war), and put it here, so that
              we can debug it and give more clues.
              To reproduce your issue, I write a simple a simple
              UserPreferencesManagerBean classs below :
              package controllers.beans;
              public class UserPreferencesManagerBean {
              private int p1;
              public void setP1(int p)
              p1 = p;
              public int getP1()
              return p1;
              But it works(oh, I run it under 910MP1).
              We cannot tell too much without your further information
              Thanks
              Leon
              <Mildred A> wrote in message news:[email protected]...
              I am still fighting with this issue.. Dang!
              I don't know what to change in my JSP because the WL JSP compiler errors are
              so out there..
              Here is the first portion of the JSP file:
              <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
              session="true"
              pageEncoding="ISO-8859-1"
              import="java.util.ArrayList"
              import="java.util.HashSet"
              import="java.util.Date"
              import="java.util.Collections"
              import="java.util.ResourceBundle"
              %>
              <%!
              ResourceBundle bundle = null;
              public void jspInit() {
              bundle = ResourceBundle.getBundle("conf.properties");
              %>
              <jsp:useBean
              id="userPrefsManagerBean"
              class="controllers.beans.UserPreferencesManagerBean"
              scope="session">
              </jsp:useBean>
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              Below is the error I get from this section alone (after precompiling):
              upms.jsp:3:11: 'try' statement has neither 'catch' nor 'finally' clause
              import="java.util.ArrayList"
              ^-----------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: The qualifier of this name is a package, which cannot contain
              fields.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found '.' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found 'class' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected <identifier> (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Expression expected (found 'catch' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ) (found '__ee' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Illegal use of an expression as a statement.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected ; (found ')' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: No variable or field with this name could be found at this
              location.
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              upms.jsp:27:3: Syntax error: expected } (found 'EOF' instead)
              <jsp:setProperty name="userPrefsManagerBean" property="*" />
              ^-------------^
              Can anyone see what I am doing wrong here? ?:| ?:|
              Cheers,
              M

  • How to write  to weblogic.log from JSP ?

    It is possible to write some messages to weblogic.log from JSP?
              

    Use weblogic.logging.LogOutputStream class to log messages into
              weblogic.log file.
              javap on weblogic.logging.LogOutputStream
              for e.g
              <%@ page import="weblogic.logging.*" %>
              <%
              LogOutputStream los = new LogOutputStream("TEST");
              los.error("Writing into Log file");
              %>
              Hope this helps.
              --kumar allamraju
              Mikhail Ershov wrote:
              > It is possible to write some messages to weblogic.log from JSP?
              

  • Weblogic 5.1 jsp vs. weblogic 6.1 ejb

    Hello,
    Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
    a web service published on weblogic 6.1 via GLUE 2.3?
    Thanks.

    Hello Shane,
              See http://e-docs.bea.com/wls/docs61///////interop/interop.html
              Regards
              Stephane
              Shane Yan wrote:
              > Hello,
              >
              > Can weblogic 5.1 jsp talk to weblogic 6.1 ejb? And can weblogic 5.1 jsp talk to
              > a web service published on weblogic 6.1 via GLUE 2.3?
              >
              > Thanks.
              

  • Does Weblogic Express support JSPs

    Does Weblogic Express support JSPs?
              

    Yep!!
              Kumar
              Bryan Boyer wrote:
              >
              > Does Weblogic Express support JSPs?
              

  • ITS BACK!  weblogic.developer.interest.jsp

     

    Note:
              Depending on your news reader you may have problems subscribing to
              weblogic.developer.interest.jsp
              due to caching issues.
              I use Netscape 4.5. Here is what I did.
              First I tried to subscribe (you have to refresh the list), however I could
              see not messages.
              So I unsubscribed.
              Shutdown Netscape.
              Manually deleted cache files
              pushd "c:\Program Files\Netscape\Users\default\cache"
              del /q *.*
              cd ..
              rm netscape.hst
              Restarted Netscape.
              Re-subscribed and I could then retrieve messages.
              Cheers
              Mark G
              Mark Griffith wrote:
              > Mea Culpa for the removal previously.
              > Sorry for the confusion. :)
              >
              > Back by popular demand.
              > In favor of more choices not less.
              >
              > We are happy to reinstantiate weblogic.developer.interest.jsp.
              >
              > All the "old" messages will stay on weblogic.developer.interest.servlet
              >
              > Cheers
              > Mark G
              >
              > --
              > =====================================================
              > Reply to the newsgroup. Don't reply to this mail
              > alias. This is used only for answering posts on
              > WebLogic Newsgroups.
              > =====================================================
              =====================================================
              Reply to the newsgroup. Don't reply to this mail
              alias. This is used only for answering posts on
              WebLogic Newsgroups.
              =====================================================
              

  • 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

  • Filename case issue in precompilation of JSPs for Windows

    Hello,
              I have determined why my JSP pages have been recompiling
              despite including the corresponding compiled class files in
              my application package.
              It seems as though on Windows, any jsp files that have
              filenames that have upper
              case letters are being recompiled, even if their precompiled pages
              are included in the .war file. JSP files that have filenames that are all
              lower case
              are not recompiled, which is expected behavior.
              The UNIX version of BEA does not seem to have this bug
              related to the case of JSP filenames.
              Could someone from BEA please give us more information
              on this issue and when we can see it fixed?
              Thank you very much,
              Peter Kim
              p.s. I am using Weblogic Server version 7.0.1.0.
              

    I'm seeing something slightly different here.
              I'm including __MyJsp.class (with the proper case) in my
              packaged .war file, but when a request is made for MyJsp.jsp,
              BEA looks for __myjsp.class instead of __MyJsp.class--
              therefore it recompiles MyJsp.jsp.
              -peter
              "Simon Spruzen" <[email protected]> wrote in message
              news:[email protected]...
              >
              > You get the same behaviour on 6.1 SP2 as well. MyJsp.jsp gets turned into
              __myjsp.class
              > (all lower case), but WebLogic looks for __MyJsp.class. This works just
              fine on
              > NTFS which is case-preserving/case-insensitive, but is hosed on Unix.
              Hence the
              > recompile.
              >
              > But the generated class file refers to the correctly cased Jsp page in its
              _isStale()
              > method. Sigh.
              >
              >
              > simon.
              >
              >
              > "Peter Kim" <[email protected]> wrote:
              > >Hello,
              > >
              > >I have determined why my JSP pages have been recompiling
              > >despite including the corresponding compiled class files in
              > >my application package.
              > >
              > >It seems as though on Windows, any jsp files that have
              > >filenames that have upper
              > >case letters are being recompiled, even if their precompiled pages
              > >are included in the .war file. JSP files that have filenames that are
              > >all
              > >lower case
              > >are not recompiled, which is expected behavior.
              > >
              > >The UNIX version of BEA does not seem to have this bug
              > >related to the case of JSP filenames.
              > >
              > >Could someone from BEA please give us more information
              > >on this issue and when we can see it fixed?
              > >
              > >Thank you very much,
              > >
              > >Peter Kim
              > >
              > >p.s. I am using Weblogic Server version 7.0.1.0.
              > >
              > >
              >
              

  • Precompilation of JSPs

    Hi all....
              we have a problem regarding the precompilation of the JSP pages. In
              development mode we don't want the jsps top get precompiled when the
              Server is restarted or app is redeployed as it takes a lot of time to
              see a minor change working.
              For this we have modified our weblogic.xml file in the WAR
              descriptors as:
              <jsp-descriptor>
              <jsp-param>
              <param-name>precompile</param-name>
              <param-value>false</param-value>
              </jsp-param>
              </jsp-descriptor>
              but for some reason it does not seem to work..
              any pointers to correct it...????
              thanx
              aseem
              

    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.

  • Precompiling a JSP that uses a bean

    Hi,
              I am facing a problem when I startup Weblogic with precompiling ON.
              I have a JSP that uses a bean. When the JSP is being compiled, Weblogic is
              actually trying to instantiate the bean and is executing code in the
              constructor of the bean !
              When I use the weblogic.jspc compiler to compile the JSP, no such thing
              happens.
              So this happens only when I precompile such a JSP when starting up Weblogic
              server.
              - Why does weblogic attempt to instantiat the bean ?
              - Is there any way to tell weblogic "dont instantiate this bean now" ?
              Also, the compiler is unable to find a class that is required by the bean. However, this class is there in the /applications/..../WEB-INF/lib in a JAR file. So why is the class not being found ?
              Thanks,
              Jay
              

    Do a stack trace from the constructor to determine who is calling it, and
              maybe why ...
              Peace,
              Cameron Purdy
              Tangosol Inc.
              << Tangosol Server: How Weblogic applications are customized >>
              << Download now from http://www.tangosol.com/download.jsp >>
              "Jayakumar Nandakumar" <[email protected]> wrote in message
              news:3bb0f6d6$[email protected]..
              > Hi,
              > I am facing a problem when I startup Weblogic with precompiling ON.
              >
              > I have a JSP that uses a bean. When the JSP is being compiled, Weblogic is
              > actually trying to instantiate the bean and is executing code in the
              > constructor of the bean !
              >
              > When I use the weblogic.jspc compiler to compile the JSP, no such thing
              > happens.
              >
              > So this happens only when I precompile such a JSP when starting up
              Weblogic
              > server.
              >
              > - Why does weblogic attempt to instantiat the bean ?
              > - Is there any way to tell weblogic "dont instantiate this bean now" ?
              >
              > Also, the compiler is unable to find a class that is required by the bean.
              However, this class is there in the /applications/..../WEB-INF/lib in a JAR
              file. So why is the class not being found ?
              >
              > Thanks,
              > Jay
              

  • Precompile the JSP file

    I try to use the weblogic.jspc to precompile all the jsp file to :
              DefaultWebApp_myserver\WEB-INF\_tmp_war_myserver_myserver_DefaultWebApp_myse
              rver\jsp_servlet
              But when I visit the JSP page from browser, it seem like the weblogic
              compile it again
              Any help??
              peter
              

    Hi, David:
    Since this is 9.0.4, I would suggest you that you try the following,
    . create directories build, build/ear, build/ear/app
    . extract the ear to build/ear so that you have build/ear/app.war
    . cd build/ear/app and extract you app.war to build/ear/app
    . mkdir -p WEB-INF/classes
    . ojspc -srcdir WEB-INF/classes -dir WEB-INF/classes yourOtherOptions <list_of_your_jsp_files>
    . now you can repackage ear. As long as the jsp page implementation classes are in WEB-INF/classes or packaged in a jar under WEB-INF/lib, jsp engine will be able to use them if the main_mode is set to justrun in web.xml of the war file or the global-web-application.xml of oc4j installation.
    The main point here is to use the expanded structure to see if that will solve your problem. Other options includes upgrading to 9.0.4.2 (is 9.0.4.3 out?) or even 10.1.3, filing an oracle support ticket. Lastly, you may contact me directly.

  • Precompilation of JSPs for default web application

    Hello,
    Once in a while I need to redeploy my "Default" web application. I would like to have its all JSPs precompiled, so that it was immediatly available after redeployment.
    However, if I try to redeploy my web application (.war file) under, let's say, "DefaultWebApp" root context, using the administration console, with the "Precompile JSPs" option enabled, it does compile all JSPs, but ONLY those deployed under the "DefaultWebApp" root context.
    However, If I access a url like "http://somehost/SomeResource.jsp" (a file that belongs to that default web application"), I can see (due to a pause) that my JSPs have not been compiled under the root context.
    Is there any way to precompile JSPs for my default web applications?
    Sincerely,
    Sergei Batiuk.

    Hello,
    Once in a while I need to redeploy my "Default" web application. I would like to have its all JSPs precompiled, so that it was immediatly available after redeployment.
    However, if I try to redeploy my web application (.war file) under, let's say, "DefaultWebApp" root context, using the administration console, with the "Precompile JSPs" option enabled, it does compile all JSPs, but ONLY those deployed under the "DefaultWebApp" root context.
    However, If I access a url like "http://somehost/SomeResource.jsp" (a file that belongs to that default web application"), I can see (due to a pause) that my JSPs have not been compiled under the root context.
    Is there any way to precompile JSPs for my default web applications?
    Sincerely,
    Sergei Batiuk.

Maybe you are looking for

  • Battery, photos, and "charge complete."

    My pod isn't a year old (I guess it is fifth generation). This weekend I loaded some photos on it. Now, all of a sudden it is not holding a charge for an hour. I was not having any battery issues prior to this. Moreover, I no longer get a "charge com

  • MBAM 2.5 SPN Issue with DNS alias and reporting

    We have one server with administration and monitoring website and self-service portal setup on it. We have another server with the Databases and the reports running on it. When I initially set it up I set it up with a SPN that matched the host name.

  • "Save" Option pops up while Submitting

    Hello Friends, We have a functionality where there is a form(Adobe Interactive), and when the user clicks on the "Submit" button the fields data in the pdf form should get attached as xml in the mail. Now when I test it by clicking on the "Submit" bu

  • OpenSSH for Windows

    In the docs for R2 [10gR2 Management Agent Deployment Best Practices, Nov 2005] Management Agents can be deployed via SSH to new hosts. Has anyone got this working? Is there an SSH package that works on Windows 2003 (Oracle docs say use openSSH but t

  • Should I install a private JRE with my application.

    I confused on the need for the java_home environment variable. Is this used just for java applications or by the JVM too. The latter would seem a problem. For example, I want to install an application that uses JRE 1.5 or greater. If an older applica