Managing JSP files (.java, .class) size in working directory

          Our new web application automatically generates JSP pages which
          causes the working directory holding the JSP files to grow
          too large to manage,does Weblogic have a alternate way to
          compile JSP without permanently storing the .java, .class files
          on disk.
          Maybe in cache were they can be managed, cleaned up similar
          to how a database cache works.
          Any ideas or advice would be appreciated.
          THANKS IN ADVANCE.
          

          Just don't look in the classfiles directory and everything will
          be fine.
          WLS will only leave the .java files if you ask it to keep them (keepgenerated).
          If you don't keep the .class files on disk then WLS will have to
          recompile them every time it is restarted. If you have so many
          JSPs you are having trouble managing them, you definitely don't
          want to recompile everytime you restart WLS.
          Last time I looked in our public_html there were 67000 JSP files.
          We don't have any problems managing them.
          Mike
          "denis mercier" <[email protected]> wrote:
          >
          >Our new web application automatically generates JSP pages which
          >causes the working directory holding the JSP files to grow
          >too large to manage,does Weblogic have a alternate way to
          >compile JSP without permanently storing the .java, .class files
          >on disk.
          >Maybe in cache were they can be managed, cleaned up similar
          >to how a database cache works.
          >Any ideas or advice would be appreciated.
          >THANKS IN ADVANCE.
          

Similar Messages

  • Essential PL/SQL , Java Classes/Methods for working on BLOB

    &#61623; Are there any methods/procedures with which we could work on a BLOB object which contains purely text?
    &#61623; Essential PL/SQL , Java Classes/Methods for working on BLOB:
    null

    &#61623; Are there any methods/procedures with which we could work on a BLOB object which contains purely text?
    &#61623; Essential PL/SQL , Java Classes/Methods for working on BLOB:
    null

  • Java heap size error Work manager

    Hi,
      We are working with Work Manager 6.0 running on SMP 2.3 SP03.
    The application was working fine, but after the data load that has happened in the UAT
    System, we are getting the below error:
    2014/08/08 00:48:56.142:
    setImportParameters::STORAGE_REF_KEY=ET_COMPLEX_TABLE
    2014/08/08 00:48:56.143:               + User=TS_MAINTMGR
    2014/08/08 00:48:56.143:                 execute::::TS_MAINTMGR::before
    BAPI execute: /SMERP/MM_CTMATPLANT_GET
    2014/08/08 00:55:20.905:             + BackEnd=Java-1
    2014/08/08 00:55:20.905:               Exception while updating complex
    table 'ctpart': JavaBackEndError: JAVA EXCEPTION CAUGHT:
    java.lang.OutOfMemoryError: Java heap space in
    AgentryJavaComplexTableIterator::hasNext at
    AgentryJavaComplexTableIterator.cpp:52
    2014/08/08 00:55:21.099: + Thread=6588
    2014/08/08 00:55:21.099:   + Thread Pool=Server
    2014/08/08 00:55:21.099:     + WorkFunction=00000000020DEF90
    2014/08/08 00:55:21.099:       + User=TS_MAINTMGR
    2014/08/08 00:55:21.099:         + User=TS_MAINTMGR
    2014/08/08 00:55:21.099:           Received Logout Request message 18
    status changed to 'In Progress'
    2014/08/08 00:55:21.105:         Logged out (but not yet cleaned up)
    We tried to increase the min and max heap size from 256 / 512 to 512 /
    2048 respectively in Agentry.ini, but are still getting the same error.
    Please let us know if there is any other parameter which can be used to
    fine tune this and get this up and running,
    Thanks for the help.

    Raviraj,
    Are you working with Boopaln?  The reason why I as He posted the same error (in the same complex table) With the same changes but just a different user shown.
    If yes. please see that thread at:  JAVA Heap Size Error in SAP Work Manager

  • How to Compile Jsp File in Class File , Protect my JSP from outworld

    Hello Friends
    My name is chandra prakash, I'm new for u. I've develop a web based software completely in JSP, some files are also written in Java Script. This software have aprox. 40 files --> 30 in JSP + 2 in Java Script + 8 image files .
    Each JSP calls another. and run this on 58 clints machine simultaneusly. we used Oracle 9iAS as back end and Oracle9iAS web Server . Where we found less clients like 20-30 we use Tomcat 5.0 web server .Sir problem is this we don't wan't to leave our jsp source code on server.
    Is any method or third party tool by which we can convert our JSP source file in CLASS file as like real class files provide by javac.
    For this perpose we make a folder and put all files in it. Create a context on Tomcat for this folder.Create a data source for this in tomcat. Bcase this program uses Data source and connect many times to database & fetches many type of data from database. We use servlet files of tomcat for this context in WORK folder of Tomcat. and after that rename our Source file Folder. and again run our program through batch file i'm strange program runs 2-3 steps, after few times it start producing errors.
    Sir do u hava work on this field can u help me to protect this JSP source code.
    I've Use Jikes.com compiler but not get any succes, It may be i'm not using correctly .
    Pls sir give me any suggesition.
    Chandra prakash

    1. Highlight your web project or the individual file
    2. Right click
    3. Select Rebuild to build all jsp files or Make to rebuilt only changed files

  • BAD CLASS FILE ERROR WHEN TRYING TO CALL JAVA CLASS IN WEB-INF DIRECTORY

    I AM NEW TO THIS FORUM. PLEASE HELP ME IDENTIFY/RESOLVE THIS ERROR - bad class file: /java/tomcat/webapps/ChoiceTel/WEB-INF/classes/XYZ/SMUA.class. OTHER JSP SCRIPTS THAT CALL JAVA CLASSES DO WORK WELL.
    THE FUNNY THING ABOUT COMPILIING THIS JAVA CLASS WAS - I HAD TO A jar xvf OF activation.jar and mail.jar IN THE XYZ DIRECTORY BEFORE SUCCESSFULLY COMPILING SMUA.
    THE CALL BEING MADE FROM THE JSP SCRIPT IS AS FOLLOWS:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <HTML>
    <BODY>
    <%@ page import="XYZ.*" %>
    <%!
    %>
    <%
    SMUA sndmail = new SMUA();
    sndmail.postMail ("[email protected]","Test Subject","What Message","[email protected]");
    %>
    </BODY>
    </HTML>

    Dude. Please don't shout. If your keyboard is like mine, it can produce both upper and lower case letters. Please use them appropriately.
    Do you have the activation.jar/mail.jar available in the WEB-INF/lib directory for this application?

  • Generation of custom syncbo java classes does not work.

    Hello
    we created some new syncbo's for MAM 3.0 in the middleware and download it's correspond meRepMeta.xml.
    Now i will generate in the NetWeaver Developer Studio the manager and syncbo classes for our new custom syncbo's. I had create a new SmartSync-Project and deliver the meRepMeta.xml file, edit the package and some other things and start the project creation process. But after this, i have only an simple MI project with web.xml, meRepMeta.xml and so on, but no generated, custom syncbo's. In the documentation i couldn't find a detailed description for the generation of syncbo java classes.
    Can anybody help me, what i do wrong.
    Tanks a lot.
    Greetings
    Andreas

    Hi Kai,
    Just note these points..
    1)Smart Sync MI Applications (JSP Runtime) generated using SP 09v of Developer Studio is MCD specific.It is generating MCD specific files.This architecture makes the applications too complex during migration.
    2)In SP 09v applications, the developers don't have to code in Smart Sync API level as most of the codes are generated by default.
    3)Applications in SP 09v of Developer Studio is following the exact MVC Architecture(We can see the seperation of models, views and controllers here).
    4)Corresponding to the mapped fields (in SyncBo level), in the BO Wrapper classes we can see implementations of corresponding getter() and setter(..) methods.The names of this methods are totally dependent upon the names of fields mapped.So if there is change in the names of fields , in the case of already generated projects , we have to explicitly rename the getter() and setter(..) methods appropriately inorder to make the changes to take effect.
    5)For adding new JSP pages, we have to add references in many files(*.view). (we have to explicitly create the corresponding controller class file , map the relationship between the controller and the corresponding JSP file).
    refer this blog also..
    /people/kishor.gopinathan/blog/2006/05/29/smart-sync-application-development-using-sp-09v-of-developer-studio
    <<
    have to write the acces classes, mentioned in the MDK, manually for every new SyncBO I want to use?
    >>
         For that , we can write a generic method in such a way that , we only have to pass the syncbo name as the parameter for that method, so that it would retrieve the records corresponding to the syncbo given.
       Since the getter nd setter method names are closely related to the names of the mapped fields, this would create problems when we change the names of fields used in the table parameter or import parameter of the BAPI Wrapper used for syncbo creation.
    So using SP 11 , we can create generic applications, which can be migrated using the higher versions of NWD Studio. I think , SAP might not change this infrastructure anymore..
      Regards,
      Kishor Gopinathan

  • The best way to solve  problem with the site containing  JSP Files java co

    I am getting NullPointerException pointing at some java file but I have the same JSP file of that name.
    and which line it is pointing it is not there in that file means file has 500 lines and it ponting to 700.
    I got this information from log file but I cannot get the exact line where the error is coming from.
    Can I arrange all code of site according to Netbeans, so that I can complile and run everything to get the problems solved.
    I don't know how to proceed?
    And one more thing the results on web sites are comimg very slow , any suggetions to improve the performance
    I am working on a undocumented code left inbetween by some one and new in real time coding.

    JSP pages compile dynamically into Servlets when requested. The error line number you got corresponds to line number of this dynamically generated Servlet not the jsp page. If you are using Apache Tomcat, these dynamically generated files should be located somewhere inside Work Folder. Anyway, you need to debug your jsp page. some line in this particular jsp page is throwing NullPointerException.

  • Jsp page - java class binding

    Is there any configuration file that binds the jsp page and the java class? I need to replace some jsp pages and their classes in different packages, but the pages cannot find their classes. Does anybody know where/how I can set the appropriate binding?
    Thanks,
    Kelly.

    It's not configurable (yet). The page name, and the "backing bean", must have the same name (including case), and the java class needs to be in the package folder with the rest of the backing beans.
    -- Tor
    http://blogs.sun.com/tor

  • Java class size

    hi,
    a general question.
    does the size of the running java class depend upon the number of jar files in its classpath?
    for exampl, i have three jar files, only one of which is used by my java class. when i run the java class does the memory size gets bigger if i include all three jar files in my classpath?
    thanks a lot

    i think not. it matter only which of these files you load.
    but if you have lotsa classes in your path, then it might be little harder for your JVM to locate these classes that are needed and therefore your app might run little slower.
    but when you have initialiced your classes, then loding them again will not need classloader to look for your class from classpath... so that cost you'll be paying is onetime cost for very JVM execution.

  • ITunes 11 -  I can't manually manage my files.  Is there a work around?  I have manually manage clicked.  I  win7 32.  It worked after awhile after updating then it just stopped.  I have reinstalled 11 but the same issue ocurred!

    Sorry this is the 1st time and I don't know what to do.  I have lost the ability to manually manage my music/video files.  After upgrading it worked for a few days as I was adding music to my phone.  After 2 days,  I couldn't anymore.  I have windows 7 ultimate 32, iTunes 11,  and iPhone 4 on 6.0.1.  With the iPhone connected, under the summary page, manually manger is clicked.  iTunes Match is off in iTunes and on phone.  I have uninstalled and reinstalled.  Copied my media back into the media folder.  I have also done a factory reset and restored from back up and still can't add music manually.  All my music is stored on an external be aide the media folder is in the primary hard drive.    I can try adding to the iTunes library and add that way without manually adding each song but I feel that defeats the purpose.  I'm in contact with individual DJs that make their own music and yes it is sold intubes and that was never the issue before.  I will do a factory reset on the phone,  so a clean install of 11 again and just add my apps back but I don't know what else to do.  Also, I am only using one computer to manage my files and it is the only computer authorized for my phone.  There is no other computer!  I am open to any ideas. 
    Thank you in advance
    Caliph3001. -  krusade.net

    Update:
    I mean that the dj's create their own music and the music isn't sold in iTunes. Also, I have done the factory reset clean, installation of Itunes 11 (*lost all of my apps - yeah the back up i have didn't have all the apps or they are read as apps but said that they are missing - redownloading them now the ones that can be retrieved now) and it still gives me the black "no" arrow when trying to drag and drop - but I have figured that I would just copy the files into the main library, but it defeats the purpose of having an external with all my files. Is there away to get iTunes to recognize my hd as the library?  A new issue developed, it kept saying that it was connected to another library and to connect it would have to erase everything on the phone so I agreed.  And it seems to be fine now besides the copy and paste.  I have added a few more issues that risen since this began below.
    A few more questions:
    After a clean installation:  I have lost most of the paid apps.  Does Itunes back up a history or was it stricly on my computer?  Some of these were paid apps and I dont want to have to purchase them again.  There should be something connected to your name within the store account that stores all the purcchase you have made and allow you to redownload them as in the playstation network.  Also, how do people retrieve lost apps if the only back up was on their computer that crashed? Is there any to get Itunes to recognize my external HD as a library of my music? 

  • How to run a java class from its package directory

    Hi,
    I hope someone can help me on the following ....
    Let say I have a Test.java class with the package definition: "package com.ams.eai.mq.fileAdapter;". I compiled the class into the directory c:\myJava\client\com\ams\eai\mq\fileAdapter. I have c:\myJava\client specified in my classPath and Path. Why is it when I go to the mentioned directory and enter at the prompt >java Test, I get java.lang.NoClassDefFoundError: test (wrong name: com/ams/eai/mq/fileAdapter/test).
    What directory am I supposed to be in to run my Test class ? Is there some other path that I need to specify but didn't ?
    Thanks for any help.

    You have to type out the fully qualified class name:
    java com.ams.eai.mq.fileAdapter.Test
    Even if you had the entire dir structure, "c:\myJava\client\com\ams\eai\mq\fileAdapter" in your classpath you'd still have to fully qualify the name of the "Test" class. What if there was another class named "Test" in a different package in your CP? The VM would have no way of knowing which "Test.class" you'd want to run.

  • JSP + internal java class

    Hi,
    I have a small problem with my JSP, which is using an static internal class as a bean. The oc4j cannot find it. The code is working superb in the Tomcat, but not in the oc4j. The package can be found because the mother class of the internal class is used by other part of the application, but not this one.
    My environment:
    Windows XP prof (eng)
    oversion.cmd delivers following info:
    Oracle BPEL Server Version 10.1.2.0.0
    Build: 1442
    Build-Dauer: Fri Apr 29 16:59:32 PDT 2005
    Build-Typ: release
    Quell-Tag: BPELPM_10_1_2_release_branch
    and this is the interesting part of the JSP
    <?xml version="1.0" encoding="UTF-8"?>
    <%@ page contentType="application/x-java-jnlp-file" info="My Test GUI" language="java"%>
    <%@ page import="lucom.util.HTMLUtil"%>
    <%@ page import="oscisigner.OSCISignerImpl.OSCIContainer"%>
    <%@ page import="oscisigner.OSCISignerImpl"%>
    <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
    <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
    <jsp:useBean id="container" scope="request" type="oscisigner.OSCISignerImpl.OSCIContainer" class="oscisigner.OSCISignerImpl.OSCIContainer"/>
    The class OSCISignerImpl contains the class OSCIContainer and both classes are contained by the WEB-INF/classes folder (with package of course).
    Has anybody a clue why oc4j cannot find it ?
    Best Regards
    Tomasz

    Tomasz:
    I have reproduced the problem: <jsp:useBean id="container" class="test.Outer.Inner"/> does not work in oc4j, where Inner is a public static inner class of class test.Outer. This problem will be fixed.
    In the mean time, it is a good idea to make your inner class a 'standalone' class since you planned at least to use it independently of the outer class.
    Oracle JSP team member

  • JSP with Java Class

    How to run *.class in JSP. For example, the demo class, Clock.class is run in html format, Can I run the Clock.class in JSP format?

    Please notice,
    The applet has a graphical context which can draw lines, circules and painting all the object including the background. Now the applet can be load from a jsp page also as if it resides on a html page. Now when you want to use the class Clock.class as a bean inside the jsp page, it has to keep the following definition ( you can't get the graphical context from the applet as a class method in a bean.
    The JavaBeans is realy nothing more than a class that maintains some data ( called properties) and follows certain coding convention ( getXX() setXX()) and it has to implements the Serilizable interface and provide no argument for the constructor.
    As a result when you want to use the jsp tag for Bean like <jsp:useBean id="MyClock" class="Clock.class" /> keep in mind that the Clock.class is directly located in /WEB-INFO/classes/ in your web application directory.
    Now your purpose will be directly oriented to get or set some value for the clock like to get the current time or to set different time zone or to calculate the time in Kurdistan if you are in US etc..
    So the Clock class has become a source of hidden business logic operation exposed by methods only.
    The graphical animation etc.. is not related to Bean at all event though the applet implements the Seriazable interface

  • Java class bean can not access to DB in JSP file

    Hi, I wrote a java class bean in order to access to MySql database ,and this bean is used in a JSP file,so that the bean can query from DB and then display the queried information on the JSP file,but it can not work correctly,the following is the source code and error message popup by the system,
    does anybody has experience in solving thus question,Please reply ,Thank you for your help.
    %@ page contentType="text/html;charset=UTF-8" language="java" %>
    <%@ page import = "java.sql.*" %>
    <jsp:useBean id="conn" scope="page" class="news.conn"/>
    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    <title>1</title>
    <style>
    <!--
    A:link {
         COLOR: #993399
    .s {
         FONT-SIZE: 13px; LINE-HEIGHT: 170%; FONT-FAMILY: "utf-8"
    -->
    </style>
    </head>
    <body>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
    <td width="100%">
    <img border="0" src="images/ruanjian.jpg" width="770" height="154"></td>
    </tr>
    <tr>
    <td width="100%">@</td>
    </tr>
    </table>
    <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
    <tr>
    <td width="13%">@</td>
    <td width="87%">
    <img border="0" src="images/mid-rdxw2.gif" width="101" height="18"><p>
    <%
              ResultSet rs,rsNest;
    String strSql=null;
    strSql = "select * from news where TYPE=1";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt(id")%">"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>
    <img border="0" src="images/mid-hyxw2.gif" width="94" height="19"></p>
    <%
    strSql="select * from news where TYPE=2";     
              rs = conn.executeQuery(strSql);
              while (rs.next()){
    %>
    <span class="s"> <a href="newsContent.jsp?newsId=<%=rs.getInt("id")%>"><%=rs.getString("Title")%></a><br>
    <%
    %>
    <p>@</td>
    </tr>
    </table>
    <p align="center">Study Online</p>
    <p align="center">@</p>
    </body>
    </html>
    Error message:
    type Exception report
    message
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Exception in JSP: /newsMain.jsp:47
    44: strSql = "select * from news where TYPE=1";     
    45:           rs = conn.executeQuery(strSql);
    46:           
    47:           while (rs.next()){
    48:
    49: %>
    50:
    Stacktrace:
         org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:451)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:373)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    root cause
    java.lang.NullPointerException
         org.apache.jsp.newsMain_jsp._jspService(newsMain_jsp.java:98)
         org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:98)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:331)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
    note The full stack trace of the root cause is available in the Apache Tomcat/5.5.27 l</a>

    nogoodatcoding wrote:
    Tolls wrote:
    Is that Jasper Exception telling us where the problem is in the jsp, though?
    If it is, then "rs" is null in the call rs.next()...which means conn.executeQuery() is returning null. Which means that whatever class conn is (news.conn?) has a problem maybe?That's possible. Though, it may just be the case that the 'conn' object itself is null! That line is the first place where it's being used and there are no checks that I can see...we'll have to wait for the OP to investigate and reply I guess.That's what I originally thought, then I noticed it was saying line 47, which is the rs.next() line. Assuming Jasper is correct in its choice of line, then it's the rs that's null. Which means the conn is doing strange things.
    Edit: Now that I think about it, going by the previous thread the OP posted, I'm wondering whether news.conn class is their attempt to move the JDBC stuff out of the JSP page, and it's grabbing the "real" connection (java.sql.Connection) and getting the result set and returning it...or getting something wrong and returning null.
    Edited by: Tolls on 11-Jun-2009 12:24

  • Calling a java class in a JSP file

    Hello,
    I have a jsp file in which I call a java class.
    I work with Tomcat 4.0.1
    If I modify the java class and then I execute my JSP, it still be the old version of my class that is executed.
    I don't understand why since if I creates a main function and I execute it, it works correctly!
    Do you know what is the problem?
    Thanks

    i also have this problem.when i modify jsp file,it didn't execute inmediately. Then i restart tomcat,but problem also exist.
    a few minute age,i execute jsp file again,it can appear the modified jsp.i don't down why
    i work tomcat 5.0 windowxp

Maybe you are looking for

  • Work Flow & Procedure For Transportation Module Of SD

    Dear All, Currently, we have just got SD implemented. Now, we shall like to go for the Transportaion Module i.e. Order Booking, delivery and the PGI followed by Auto Invoicing. Now, we wants to go for Transportation Module  i.e. Shipment Creation, Sh

  • WiFi Problem NEO V even after downgrade

    now i downgraded my Neo V from ICS to GB 2.3.4 and guess what !!!!!, i have the same Wi-Fi problem, i still can't see and connect on 90% of the serounded networks, so now i have to live with it !!!!!??? i think the phone is harmed, and i think thats

  • Leopard 10.5.6 Causes Apple Keyboard USB Devices to Lose Power While Asleep

    My Apple keyboard's left usb port does not supply power to any device connected while my mac is sleeping. I have my iphone connected there to charge at night while the machine is sleeping --to save power. Before updating to 10.5.6 this was not an iss

  • Getting my Droid X2 replaced for the third time...

    Don't really have any questions that need answering, just feel like getting peoples' input on my issue. I am primarily a business user. While I won't deny that I use my phone for Facebook and Instagram when I'm sitting bored in a meeting, more than 8

  • MMBE & Leading Zeros

    We have just upgraded to Ecc5 from 4.6c and t-code OMSL did not have the leading zeros checked.  Leading Zeros appear in MMBE when the transaction is executed.  They do not appear anywhere else in the system.  Does anyone have any suggestions on how