JSP masscompile issue

Hello,
I am running this command "$FND_TOP/patch/115/bin/perl ojspCompile.pl --compile --flush -p 2", and I received a lot of compiltion errors like the following:
[11424] !!COMPILATION ERROR(0) eiste/jsp/admin_show_lovrows.jsp:
javac: file not found: eiste/jsp/_admin__show__lovrows.java
Usage: javac <options> <source files>
use -help for a list of possible options
[11424] could not delete /u01/oracle/apps/apps_st/comn/_pages/_eiste/_jsp/_admin__show__lovrows.java
The problem with this is that I see older version to the pages that I want to see and I am wondering is this problem is related to user privilerges or why I receive this errors.
I verified the user rights and i got this:
ls -ld */
drwxr-xr-x. 4 appd3eb oinstall 20480 May 28 16:31 _jsp/
So, if someone has seen this problem and knows the solution I would really apreciate it if you share the solution with me.
Thank you!

[11424] !!COMPILATION ERROR(0) eiste/jsp/admin_show_lovrows.jsp:
javac: file not found: eiste/jsp/_admin__show__lovrows.java
Usage: javac <options> <source files>
use -help for a list of possible optionsPlease post the details of the application release, database version and OS.
What is the output of the following?
$ which java
$ which javac
$ java -version
[11424] could not delete /u01/oracle/apps/apps_st/comn/_pages/_eiste/_jsp/_admin__show__lovrows.javaCan you delete this file manually?
The problem with this is that I see older version to the pages that I want to see and I am wondering is this problem is related to user privilerges or why I receive this errors.
I verified the user rights and i got this:Have you tried to bounce Apache or clear the cache from Functional Administrator responsibility and see if this helps? -- How To Clear The Cache Using Functional Administrator? [ID 759038.1]
ls -ld */
drwxr-xr-x. 4 appd3eb oinstall 20480 May 28 16:31 _jsp/
So, if someone has seen this problem and knows the solution I would really apreciate it if you share the solution with me.Please make sure you stop the application services before running the command.
JSP Pages Hanging in R12 After Removing Cached Class Files in _pages [ID 433386.1]
How to Enable Automatic Compilation of JSP pages in R12 Environment [ID 458338.1]

Similar Messages

  • JSP complilation issue (JAVAC message file is broken)

    i am facing a jsp compilation issue with error message JAVAC message file is broken .
    i have one main jsp in which i have one module of about 4000 line of coding.i splitted this file in 4 segments and included them in main jsp. Each segment is included using
    <jsp:include page="Module_ProductsTab_PAOChangeValid_Apply.jsp" flush="true">
    <jsp:param name="adspot" value="dotcom3" />
    <jsp:param name="page" value="ProdTab" />
                             </jsp:include>
    tag , but now it takes as much long time to load that would result in page timeout.
    can anyone give me input how i handle this issue?

    This sounds like a corrupt installation.
    Try uninstalling java and re-installing it. (With 1.4.2_04 if you can)

  • JSP Precompilation Issue:

    I'm trying to precompile my JSPs so that the .class files can be included along with the WAR.
    For this pre-compilation , i'm using the jspc ANT task.
    I have the following issues:
    1) A number of JSPs have HTML pages included in them.
         Say my JSPs are in a folder : jsp
         and HTMLs in a folder :html
         The JSPs include the HTML with this TAG :
              <%@ include file="//html/myHtml.html" %>
         When i try to run the jspc task for the first time, I get an exception indicating that //html/myHtml.html has not been found.
         I do not make any changes, but run the ant task again, The JSPs are convered to Java files.
         I'm not able to figure out what happens the first time i run the ant task
    2) Once i run the jspc task, i run the javac task to compile the JSP converted JAVA files.
    Since a lot my JSPs have other JSPs included in them, i get several compilation errors caused by the included JSPs
    Should the JSPs be compiled in the order that they are included in the JSPs?
    3) I'm using Tomcat 4.1. to host the web appln. What are the modifications i need to make to use pre-compiled JSPs in the WAR file?

    Simply change the file extent on the JSPs that are only included. The extent ".jspf" (JSP fragment) is a reasonable convention.

  • JSP compilation issue

    Hello,
    When we use the exploded war format we are getting some issues in JSP precompilation.
    The issue comes only when we do some local changes to the JSPs in the domain directly and refresh the webpage without restarting the server.
    A sample error is given below.
    Compilation of JSP File '/en/abc/xyz.jsp' failed:
    xyz.jsp:19:5: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set var="targetContentEnabled" value="${tmpTargetContentEnabled}" scope="session" />
    ^-------------------------------------------------------------------------------------^
    xyz.jsp:27:1: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set target="${sessionScope.WDSContext}" property="site" value="${requestScope.SITENAME}" scope="session"/>
    ^-----------------------------------------------------------------------------------------------------------^
    xyz.jsp:28:1: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <c:set target="${sessionScope.WDSContext}" property="market" value="${requestScope.MARKET}" scope="session"/>
    Can any one shed some light in to the issue ?
    You help is greatly appreciated.
    Thanks.

    Hello,
    Here is the error details.
    <Jun 8, 2012 12:32:30 PM GMT> <Info> <HTTP> <BEA-101344> <frontendapp: Attempting to precompile /en/Admin/localization/includes/actions/ajax/SM.jsp,
    since the class file associated with it was not found in the webapp classpath.>
    <Jun 8, 2012 12:32:40 PM GMT> <Warning> <HTTP> <BEA-101212> <frontendapp:online Failure while Precompiling JSPs: weblogic.servlet.jsp.CompilationException:
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    ^-----------------------^
    BKGD.jsp:12:18: The page failed validation from validator: "Illegal scope attribute without var in "c:set" tag.".
    <%@ include file="Panels/MiniRuleLink.jsi" %>
    Edited by: 939426 on Jun 12, 2012 5:17 AM

  • JSP Compilation Issue with Tomcat 4.0.6

    Hi There,
    I've been checking the following issue online for sometime but I just can't seem to figure what is wrong with the server setup. I've this very simple JSP page processing the form variables submitted to an action page which is another JSP page. Thecode segement in the target JSP is like this;
    if(request.getParameter("contactUsSubmit")!=null)
    }Whenever I try to use request.getParameter("XYZ") in the target page just like above, I get following error from Tomcat;
    Apache Tomcat/4.0.6 - HTTP Status 500 - Internal Server Error
    type Exception report
    message Internal Server Error
    description The server encountered an internal error (Internal Server Error) that prevented it from fulfilling this request.
    exception
    javax.servlet.ServletException: org/apache/jasper/runtime/JspException
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:481)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    root cause
    java.lang.NoClassDefFoundError: org/apache/jasper/runtime/JspException
         at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
         at org.apache.jsp.contact$jsp._jspService(contact$jsp.java:174)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
         at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
         at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
         at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
         at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
         at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
         at java.lang.Thread.run(Thread.java:534)
    When I comment the code fragment, it works. It is not about what is in the if statment is true, I can assure you. Consider it as simple output to ease your mind.
    Any ideas why this might be happening? I'vve tried the same code with Resin 2.x and Tomcat 5.5 , it works just fine. Do you think there is something missed with the Tomcat setup or the Tomcat version (4.0.6) on that specific server is no good?
    Any comments are greatly appreciated.
    Thanks in advance...
    Regards,
    Mert

    Hi There,
    As you said using equals would not work as it should be a valid String in order for the eqauls function to work.
    Unfortuantely I can't access the Servlet created or the log files. It has crossed my mind too but this is a setup by the service provider and they don't let you nose into their business but they ahvedone something wrong with their system as far I can think.
    I've wanted to print the output to the web but when i use the request.getParameter it just creates the error.
    Java service is provided optional and as any optional service it is not well supported so I need to make them some pointers. So any more ideas?
    Cheers,
    Mert

  • Complete BI Beans JSP Application Issues

    Hi,
    I have few issues with using BI Beans in a JSP based web application
    1) I have created a new project of Complete BI JSP Application in Jdeveloper 10. When I run this application there are NULL Pointer exceptions logged on the console. But it doesnt effect the application and the application runs smoothly. Can any one suggest what is causing these NULL pointer exceptions.
    2) Secondly, I want to use my custom logging using log4j for this application, but since everything is done in jsp itself in this application, there is no scope of java classes for logging. Can anyone advise me what is the actual way of doing it.
    Regards,
    Vigo

    peter is right, Use the same driver version as that of your database. Copy the classes12.zip and nls_charset12.zip from database_home\jdbc dir to your application directory.
    Hope it works
    regards
    Mukesh Harjai

  • JSP loading issue: HTTP 404 error

    I have a JSP page that stopped loading up.
    It gives me the Apache HTTP 404 error that it can not find the JSP page.
    There are no servlet classes associated with the JSP page.
    Simply, it is an HTML page calling a JSP page.
    This issue appeared after we(IT team) incorporated servlets on the machine.
    Directory structure changed, but it shouldn't have effected our JSP pages.
    Directory structure
    ../wwwroot/Finance/Labor.html goes to ../wwwroot/Finance/Labor.jsp

    And how does the HTML page invoke the JSP page?
    Are you doing it via a <form> or are you linking to it through an <a href>?
    You really didn't provide very much information. There are a lot of things that could go wrong. For example, Tomcat generally likes its JSPs to be in a specific place which is NOT the default Apache document root. You'd explicitly have to configure Tomcat to use the same Apache document root though.
    Similarly, application specific Servlets are usually in a sub-directory of the one containing JSP files for that application. In other words, you don't really put JSPs in c:/JSPs on one machine, HTML in /home/rycherX/www on another machine and Servlets in \\rycherX\workspace\Servlets on a third.
    The first place to start is to tell us what Servlet Engine you just installed. Tomcat? JBoss? WebSphere?

  • Question on JSF/JSP mixing issue

    Hello all.
    We have an JSP application which we are trying to move to JSP. After some thought we decided that these will need to coexist in some parts of the code. Now I have run into an issue as result of these and I am wondering if anyone can help. In the below example, we are tyrig to gather some table entries from a legacy object and trying to populate another JSF type bean with the same entry. Can this be accomplished using some kind of code like this with a commandLink and a param. The problem is the param is not working for me, it is showing up as null object in backendbean2. Any ideas?
    My code is structured like this :
    <h:form>
    // JSP code here
    <%
    sname = Backend1.getSname();
    %>
    // Some entries from a table are output here. Each entry is a link and
    // clicking on each entry should open up a screen corresponding to sname
    // Note that our backend bean is legacy stuff and cannot be changed to
    // return a datatype compatible with Datatable. hence we are using html table
    <table>
    <tr> Name </tr>
    <td>
    <h:commandLink action="#{backendbean2.processClick}" >
    <f:verbatim> <% out.println(sName); %>
    <f:param name="name" value="#{backendbean2.sName}>
    </h:commandLink>
    </h:form>

    Please read the following article.
    http://www.onjava.com/pub/a/onjava/2004/06/09/jsf.html
    Best practice will be to avoid mixing JSP and JSF

  • JSP Rendering issue

    I am displaying around 20000 records in my jsp view.I fetch the value from DB and use ArrayList of model objects and send that ArrayList to the view where I iterate over the ArrayList and display the table values.
    I am facing some performance issues.It takes around 1 min to display.Is there any way I can speed up this?.I used out.flush() after every row creation but I didnt find any improvement.Pls suggest me any performance improvement techniques.

    Why on earth do you need to display all the 20000 rows in the JSP page? Would the user actually read them all at once?
    No, rather think about a paging system where you retrieve sublists. There are taglibs available for this, such as displaytag. It would be ideal if you provide a search function for the data so that the user can filter the rows of interest out. Also consider an export function where you instantly create a CSV or XML file -or so- with all row data, so that the user can decide to download it and explore it locally.

  • JSP compiler issue

    Hi,
    I have a JSP based web application that works well when deployed in Tomcat 6. I am trying to deploy it in jboss 4.2.1, everything seems to be ok but when I try to access to a JSP page I have the following error
    java.lang.IllegalStateException: No Java compiler available
         org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext.java:229)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:561)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    my JAVA_HOME is set to use a JDK 1.5, but it should work with a JRE as the Tomcat embedded in jboss has its own compiler. I changed the web deployer configuration to use the sun compiler instead of the default but I have the same problem despite tools.jar is in the classpath. Has someone had this problem before or could someone help me on the issue ?
    Thanks,
    Cyril

    Hi here is what JBOSS displays at startup, everything seems to be right and points to a JDK
    JBOSS_HOME: D:\java\jboss\jboss-4.2.1.GA
    JAVA: D:\java\jdk1.5.0_12\bin\java
    JAVA_OPTS: -Djava.library.path="D:\java\jboss\jboss-4.2.1.GA\bin\native;..." -Dprogram.name=run.bat -server -Xms256m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000
    CLASSPATH: D:\java\jdk1.5.0_12\lib\tools.jar;D:\java\jboss\jboss-4.2.1.GA\bin\run.jar
    To use sun compiler instead of jdt in tomcat I modified web.xml in JBOSS_HOME\server\default\deploy\jboss-web.deployer\conf and added the following to the jsp servlet configuration
    <init-param>
    <param-name>compilerClassName</param-name>
    <param-value>com.sun.tools.javac.main.Main</param-value>
    </init-param>
    <init-param>
    <param-name>compilerTargetVM</param-name>
    <param-value>1.5</param-value>
    </init-param>
    <init-param>
    <param-name>compilerSourceVM</param-name>
    <param-value>1.5</param-value>
    </init-param>
    but I have the same error as when I use the jdt compiler. I'm clueless on what else I could try from here, I posted also the issue on jboss forums last week but haven't got an answer so far, I suspect a classloader side effect with my application as I get the same error accessing the jboss web-console only when my application is deployed.

  • Jsp performance issue on Safari

    Hi,
    We are facing performance issues while loading a jsp page in Safari browser on Macintosh.It takes around 2 minutes to load.
    The same page used to take around 5 seconds on Netscape on Macintosh.
    Have anyone faced a similar issue?
    I'm new to jsp, so could you please provide some tips on how we can debug what is causing the issue and tune this?
    Thanks,
    Mini

    On many projects I've worked on, including non-JDev, a general user interface rule was that you don't use an LOV if there's much more than 20-30 items. Think of this from a USER standpoint.
    Note also that in Swing/DACF the combobox does NOT allow you to type the letters "starting" and automatically jump to the right place.. ( i.e. Enter WI in a state list doesn't take you to WISCONSIN ). This is a Sun JDK issue. ( Or has it changed in 1.3 in some manner... or is there a property set to allow this? )
    As such, you've more a application design issue than a performance issue.
    Good Luck
    null

  • JSP Deployment Issues

    Guys:
              I saw your names posted in the weblogic jsp news group. I thought you
              might be able to help me with a jsp deployment problem. A number of our
              jsps take a long time to compile. As a result, the first user who
              accesses our jsps after deployment pays a significant latency penalty.
              To get around this problem, we manually "touch" each jsp as part of
              deployment. That way when users access the site, they get reasonalble
              response time.
              The problem we face is that we are now in a clustered environment in
              production and staging. As a result, it can take a long time to
              manually "touch" each jsp. There is also a secondary issue. Our
              staging and production environments are hosted by an extenal service
              provider. We are uncomfortable with deploying source code -- e.g., jsps
              -- in these environments.
              Here is what I have done to date:
              I have written a unix script that invokes the weblogic.jspc compiler for
              each jsp. The intent is to pre-compile the JSPs ahead of time. In our
              testing this script we still notice that Weblogic (e.g., 4.5.1) still
              attempts to recompile the jsps on-demand when they are first accessed
              from the browser by the first user after jsp deployment. (This defeats
              the purpose of pre-compiling the jsps.)
              What are we doing wrong and what can we do so that the jsp-s are
              pre-compiled and not re-compiled on demand. Again, at a minimum we want
              to avoid the latency problems associated with the first user. Best case
              scenario, we would like to ship a jar file that contains the compiled
              jsp servlet classes.
              Your recommendations are most appreciated.
              Mark C. Berman
              Javelin Solutions
              [email protected]
              

    I've never tried this, but I don't see any reason why it wouldn't
              work... Don't even register the JSPServlet. Build the JSPs (servlets)
              and deploy them like any other servlet. You can register them with a
              .jsp extension or you could give them a different alias altogether.
              The WL JSP compiler (weblogic.jspc) may be used to compile the jsps
              into servlets during the normal build process and there are options
              that may be used to modify the package, install dir, etc.
              Hope that helps.
              Jason
              On Tue, 26 Dec 2000 17:09:25 -0600, mark berman
              <[email protected]> wrote:
              >Guys:
              >
              >I saw your names posted in the weblogic jsp news group. I thought you
              >might be able to help me with a jsp deployment problem. A number of our
              >jsps take a long time to compile. As a result, the first user who
              >accesses our jsps after deployment pays a significant latency penalty.
              >To get around this problem, we manually "touch" each jsp as part of
              >deployment. That way when users access the site, they get reasonalble
              >response time.
              >
              >The problem we face is that we are now in a clustered environment in
              >production and staging. As a result, it can take a long time to
              >manually "touch" each jsp. There is also a secondary issue. Our
              >staging and production environments are hosted by an extenal service
              >provider. We are uncomfortable with deploying source code -- e.g., jsps
              >-- in these environments.
              >
              >Here is what I have done to date:
              >
              >I have written a unix script that invokes the weblogic.jspc compiler for
              >each jsp. The intent is to pre-compile the JSPs ahead of time. In our
              >testing this script we still notice that Weblogic (e.g., 4.5.1) still
              >attempts to recompile the jsps on-demand when they are first accessed
              >from the browser by the first user after jsp deployment. (This defeats
              >the purpose of pre-compiling the jsps.)
              >
              >What are we doing wrong and what can we do so that the jsp-s are
              >pre-compiled and not re-compiled on demand. Again, at a minimum we want
              >to avoid the latency problems associated with the first user. Best case
              >scenario, we would like to ship a jar file that contains the compiled
              >jsp servlet classes.
              >
              >Your recommendations are most appreciated.
              >
              >Mark C. Berman
              >Javelin Solutions
              >[email protected]
              >
              

  • Intermittently successful JSP compilation issue

    Hi,
    I am facing a weird issue. I feel this is the right place. If not kindly point me to right place.
    We are using Solaris SPARC machines.
    We have a bunch of JSP files which compile fine on a sun4u machine.
    bash-2.05$ uname -a
    SunOS YYYY 5.10 Generic_141444-09 sun4u sparc SUNW,Sun-Fire-V245
    But the same bunch of files throws error on compilation on sun4v machine.
    bash-2.03$ uname -a
    SunOS XXXX 5.10 Generic_141414-01 sun4v sparc SUNW,Sun-Fire-T1000
    We are using the weblogic.appc to compile it. These are the options we are using it with to aid debugging.
    -g -lineNumbers -verbose -forceGeneration -keepgenerated
    What makes it even weird is that around 30% of time the compilation is success. But remaining 70% of time it fails.
    The Weblogic installer is same on both machines.
    The Java is same on both machines. (jdk1.6)
    The error is something like this:
    [jspc] Compiling /xyz/abc.jsp
    There are 1 nested errors:
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: abc.jsp:42:18: Syntax error on token "}", { expected after this token
    If I open the file at that line number there is no } to be seen.
    Also the errors keep varying in content. I mean they are of similar type in the sense that they have Syntax errors but on different compilation runs their contents are different.
    Like this is something which we have seen too.
    weblogic.utils.compiler.ToolFailureException: jspc failed with errors :weblogic.servlet.jsp.CompilationException: xyz.jsp:34:47: Syntax error on token "if", Identifier expected
    The file names vary. The error exact text varies.
    But the thing which is really strange is that sometimes it complies just fine.
    We clear off all the class files before compiling so that the JSP files do get compiled.
    Any pointers as to where to look at?
    Regards
    Edited by: I_Kept_walking on Sep 8, 2011 7:02 AM
    Edited by: I_Kept_walking on Sep 8, 2011 7:07 AM

    Its around 70 odd JSP. And also i do not see any out of memory errors.
    Is there any way I can get more info out of it.
    I have seen that -g parameter in case of weblogic appc compiler puts the debug info in the class file.
    -g :Compiles debugging information into a class file.
    Which class file? Where its located? And if anyway to analyze that class file??Anyone has any idea?

  • Help!!!! jsp deletion issues

    hi
    i have made a table using jsp to show the contents of a table from a database in a tabular format. the table rows have two options edit and delete. edit will show all the data in textboxes. this some how works.
    delete option is giving one bug and one error
    error: ResultSet is closed
    bug: the data is being deleted. but instead of the row i want to be deleted,
    only the first row is being deleted.
    i am using SQLServer 2000 as my database;
    i am using Apache Tomcat 5.5.17 as my webserver;
    here is my code:
    <%@ page errorPage="err.jsp" %>
    <%@ page import="java.sql.*;" %>
    <%
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    Connection con = DriverManager.getConnection("jdbc:odbc:empdsn");
    Statement st= con.createStatement();
    Statement st2= con.createStatement();
    //Statement st= con.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_UPDATABLE);
    ResultSet rs= st.executeQuery("select * from employeetable");
    %>
    <html>
    <head>
         <title>Employee Details</title>
    </head>
    <style>
         .myLnk
              color:#FF0000;
              text-decoration:none;
         .myLnk:hover
              color:white;     
              text-decoration:underline;
    </style>
    <body bgcolor="#B7CEEC">
    <table align="center">
         <tr bgcolor="#808000">
         <th>employee id</th>
         <th>employee name</th>
         <th>employee address</th>
         <th>employee salary</th>
         <th colspan="2">options</th>
         </tr>
    <%
    String color="";
    String act=request.getParameter("act");
    String id=request.getParameter("id");
    int i=1;
    while(rs.next())
    String empId=rs.getString(1);
    if(i%2==0)  color="#0000A0";
    else  color="#0000FF";
              if(act!=null && id!=null)
                   if(act.equals("edit"))
              %>
              <form action="" name="empform">
              <table align="center">
              <tr>
                   <td> <input type="text" name="textid" value="<%= empId %>"></td>
                   <td><input type="text" name="textname" value="<%= rs.getString(2) %>"></td>
                   <td><input type="text" name="textaddress" value="<%= rs.getString(3) %>"></td>
                   <td><input type="text" name="textsalary" value="<%= rs.getString(4) %>"></td>
              </tr>
              </table>
              </form>
              <% }
              else if(act.equals("delete")){
                         //rs.absolute(Integer.parseInt(empId));
                         //rs.deleteRow();
                          //rs.updateRow();
                          out.println(empId);
                        int delres= st.executeUpdate("delete from employeetable where empid='"+empId+"'");
                        //ResultSet rs1= st.executeQuery("select * from employeetable");
                        while(rs.next())
                   //     String delEmpId=rs1.getString(1);
                   //     int delres= st.executeUpdate("delete from employeetable where empid='"+delEmpId+"'");
                        %>
                        <h1><font color="red" size="">DELETED SUCESSFULLY</font></h1><br>
                        <tr bgcolor="<%= color%>" style="color:white;font-weight:bold;">
               <td><%= rs.getString(1) %></td>
               <td><%= rs.getString(2) %></td>
               <td><%= rs.getString(3) %></td>
               <td><%= rs.getString(4) %></td>
                        </tr>
                   <% 
                   //st2.executeUpdate(update_table);
                   %>
              <% }else{ %>
               <tr bgcolor="<%= color%>" style="color:white;font-weight:bold;">
               <td><%= empId %></td>
               <td><%= rs.getString(2) %></td>
               <td><%= rs.getString(3) %></td>
               <td><%= rs.getString(4) %></td>
               <td><a href="showEmployeeTable.jsp?act=edit&id=<%=empId%>" class="myLnk">Edit</a></td>
               <td><a href="showEmployeeTable.jsp?act=delete&id=<%=empId%>" class="myLnk">Delete</a></td>
               </tr>
               <% }
               %>
    <%
         i++;
      %>
    </table>
    </body>
    </html>
    can u please help me fix this? thanx in advance
    shankha

    hi j_shadinata,
    thanks for sharing your valuable knowledge with me!
    1.
    your code is so messy... instead putting list,
    update, delete in one jsp, seperating them to 3 jsp
    pages (list/show, update & delete).
    answer: yes i could have broken it up into 3 jsp pages and it would have been easier. but the requirement was such that all 3 functions of list/show, update & delete had to be done on a single jsp page
    2.
    int delres= st.executeUpdate("delete from
    employeetable where empid='"+empId+"'");empId value is from rs.next(), rs.getString(1). so it
    will delete first row.
    perhaps you want to do this:
    int delres = st.executeUpdate("delete from
    employeetable where empid ='" + id + "'");
    i dont understand where did id come from. where do i declare this id? could you please explain?
    3. how do i fix the error message : "ResultSet is closed "
    thanks for all your help!!!
    shankha

  • OC4J 10.1.3.1 and Spring - jsp:include issues

    Hi,
    I've got a strange problem when using OC4J 10.1.3.1 together with Spring framework.
    I have several controllers in spring that generate things like page headers, footers, and other common elements. Historically I've merged these into a page with jsp:include or a c:import directive in the page.
    However, with the newer versions of OC4J, it will retrieve the content for the first request, and then repeat that same content for each subsequent request.
    If I replace that controller request with a direct .jsp page request, those elements are inserted and merged without any problem into the main page.
    I haven't had this problem on other servers... nor have I had the problem with OC4J until the latest release... Does anybody have an idea how to allow me to merge this Spring-Controller generated content with a jsp page successfully?
    thanks!

    Sure, I've examined it a few times when I've adjusted various JSP options.. mostly around the tag handling. By the way, right now I have Tag Resuse Default set to "compiletime with release", though I've tried the other options as well.
    __ojsp_s_out.write(__oracle_jsp_text[0]);
    /*@lineinfo:translated-code*//*@lineinfo:6^5*/ {
    String __url=OracleJspRuntime.toStr("/global/globalHeader.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    /*@lineinfo:generated-code*/
    __ojsp_s_out.write(__oracle_jsp_text[1]);
    /*@lineinfo:translated-code*//*@lineinfo:11^1*/ {
    String __url=OracleJspRuntime.toStr("/global/globalNav.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    /*@lineinfo:generated-code*/
    __ojsp_s_out.write(__oracle_jsp_text[5]);
    /*@lineinfo:translated-code*//*@lineinfo:35^1*/ {
    String __url=OracleJspRuntime.toStr("/global/globalFooter.do");
    // Include
    pageContext.include( __url,false);
    if (pageContext.getAttribute(OracleJspRuntime.JSP_REQUEST_REDIRECTED, PageContext.REQUEST_SCOPE) != null) return;
    There are three obviously.. and with this page execution I see the first one (globalHeader.do) duplicated three times in the final page.
    thanks!

Maybe you are looking for

  • Mulitple File Downloads in AIR

    ** EDIT ** Just tested. I was throttling the downloads to 28kbps. Think there must be a timeout on the file functions, as when it was reset without throttling, the file downloaded 100%. Is there a way to reset/remove a timeout on a URLStream? Good mo

  • Updating unit_price in PO_LINES for a Blanket Purchase Agreement

    Hello, In R11i, 'PO_CHANGE_API1_S.update_po' was the API we call to achieve the price update of blanket PO. This api in turn calls 'PO_DOCUMENT_UPDATE_GRP'. The api 'PO_DOCUMENT_UPDATE_GRP' has two overloaded procedures 'update_document'. a. 'update_

  • SCCM Report Services Instance missing

    Hi, Been trying to troubleshoot this for a day and had already done the following: 1. http://myitforum.com/myitforumwp/2012/10/10/reporting-services-site-role-setup-instance-blankempty/ 2. Reinstalled reporting services on SQL Database Server 3. http

  • JDeveloper Updates for 10.1.2.1.0

    I am trying to check updates for Spring Framework. When I try to connect I get the following error. "An error occured while getting updates from OTN. This maybe due to a network problem, proxy settings or the update center may be temporarily availabl

  • How to put BBC audio book CDs in to the Audiobook category

    I have inherited a 3rd generation iPod from my Dad who recently passed away. I have a lot of audio books on CD (BBC Radio 4 productions) that I have put onto my iPod, but despite many attempts, I can't make the imported audio books appear in the audi