OC4J:BC4J;JSP;OC4J hangs after refresh

Hi All,
I've deployed my JSP-aplication which uses BC4J. The BC4J are deployed as plain jar-files. Everything runs well, until....
When i click my refresh-button in my browser several times real quick OC4J will hang! When I start a new session on a diferent machine I won't get any output from OC4J. I've to stop and startup OC4J to get it working again.
This is really a big problem since we have to move to production ina short time.
Is there some setting in OC4J where I can catch the request if they are made in a short time (< 1 sec) within the same session and ignore them ?
Does someone know any other solution for his problem?
TIA
null

Juan,
Thanks for your answer. The synchronized-block in my jsp solves the problem. But it only works if I make the entire JSP synchronized. Can you tell me what the drawback is, if I have my JSP synchronized (if there are any) ?
TIA.
Pascal

Similar Messages

  • Issues with deploying BC4J/JSP applications on OC4J

    To everyone who's been having problems deploying BC4J/JSP applications to OC4J.
    We are aware that you're having problems deploying to OC4J, and we're working on them. OC4J was not available in time for us to add support for OC4J deployment to the JDeveloper 3.2.3 release. In addition there are some bugs in the first release of OC4J that have an impact on BC4J applications. This note describes the issues, and how we plan to address them.
    Issue 1: Classpath problems
    People have been getting "class not found" or "properties file not found" errors when they try to run their JSP. The answer is to make sure that all relevant archives and your JSP's .properties file are in the OC4J classpath - there's a note addressing the .properties file problem at http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html. In general though, setting up the classpath can be tricky.
    Issue 2: JSP TAG NOT RELEASED ON END TAG. SAME TAG IS REUSED.
    This issue affects JSP pages whose behaviour relies on a tag instance being cleaned up as a result of release() being called.
    Your tag will not be released, and subsequent instances of the tag will reuse the first instance, rather than instantiating a new
    one.
    Issue 3:JSP SCRIPTABLE VARIABLE NULL
    A scriptable variable set in a tag cannot be accessed by a scriptlet. For example, this JSP code will throw a
    NullPointerException, because the scriptlet cannot access the value of resultRow:
    <jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
    <%
    session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
    %>Workaround: Add a line of code at the beginning of the scriptlet to explicitly get the variable's value from the page context, for
    example:
    <jbo:Row id="resultRow" action="CURRENT" datasource="customer_vo1" />
    <%
    resultRow = (oracle.jbo.Row)pageContext.findAttribute("resultRow");
    session.putValue("FIRSTNAME", resultRow.getAttribute("Firstname").toString());
    %>
    What we plan to do
    To address issue 1, we're currently testing a utility that installs the BC4J runtime libraries to OC4J, and provides a script to start OC4J with the correct classpath. We plan to post this by the end of this week, along with instructions for deploying a BC4J application to OC4J; deployment will be a lot simpler after running the utility.
    To address issues 2 and 3, we're working on a second utility that installs BC4J runtime and provides a fix to the JSP compiler. We plan to post this second utility by the end of next week.
    We do apologise for the problems you're having; please bear with us as we work on making it easier for you to deploy BC4J applications to OC4J.
    Thanks
    Blaise

    Hi, I have been trying desparately to deploy
    a simple example JDeveloper application for months and months.
    I HAVE NEVER BEEN SUCCESSFUL IN DEPLOYING ANYTHING.
    I don't know much about webservers and I am relying
    on the instructions from JDeveloper help and this website.
    I have already tried Apache, and WebLogic
    because there are instructions in the JDev help.
    No luck.
    Now I am trying to use OC4J on 9ias because there are instructions.
    I have read the instructions about how to install a BC4J
    app on OC4J about 25 times, but I can't get this thing to work.
    It works fine inside of JDeveloper.
    I create a BC4J project using the scott
    schema (just the dept and emp tables).
    Then I create an empty project for my JSP client.
    I choose JSP Application from the web
    objects and it connects to my BC4J project.
    As I say, when I run it in JDeveloper, there is no problem.
    In the instructions for installing BC4J
    in OC4J, it first says install JDev 3.2.3 and OC4J.
    This is done, and it tested fine.
    Then it says to install the deployment software.
    No problem.
    But when I deploy the app according to the instructions,
    it just hangs (like Rick Wang's program did).
    The main.jsp page loads and displays correctly,
    but when I click on the links to the DeptView.jsp
    or EmpView.jsp it just hangs.
    Here is the entire batch file I'm using
    to start OC4J: cd c:\oracle_9ias\j2ee\home
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\default-web-app\lib
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\classes
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\classes12.jar
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\xmlparserv2.jar
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jdev-rt.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbojdbcpatch.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\connectionmanager.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbohtml.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboimdomains.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordim817.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordvir817.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\ordhttp.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbomt.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodomorcl.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jboremote.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jndi.jar
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\jbodatum12.zip
    set CLASSPATH=%CLASSPATH%;c:\oracle_9ias\j2ee\home\lib\al_BC4J.jar
    java -cp C:\oracle_9ias\j2ee\home\orion.jar;%CLASSPATH%
    com.evermind.server.ApplicationServer
    pause
    The file al_BC4J.jar contains my application.properties file
    and my connections.properties file, as well as my business components.
    All of the files referenced in my classpath are
    present in my c:\oracle_9ias\j2ee\home\lib directory.
    I noticed that Raghu's classpath contains a file called jdev.jar
    So does the classpath of another fellow who says
    he was successful in deployment (his name is Jeffrey Jackson).
    I searched my JDev_3.2.3 for this file and found it nowhere.
    I also searched my OC4J home and my 9iAS for this file and
    found it nowhere.
    It is nowhere on my C:\.
    Is this file necessary?
    I will also try removing my application.properties file
    and my connections.properties file from my BC4J .jar file
    and put them in a separate .jar file at the root level (as Raghu did).
    However, Jeffery Jackson did not do this and says he was
    successfull in deployment.
    ***DO I NEED TO JAR UP ANY OF MY THE FILES FROM the JSP
    FOLDER IN JDevHome\myhtml???***
    ***or place them in the classpath?***
    I have read over all of the discussions at: http://technet.oracle.com:89/ubb/Forum2/HTML/008232.html
    and http://technet.oracle.com:89/ubb/Forum99/HTML/000028.html
    many, many times.
    Can anyone help me?

  • Deploy BC4J/JSP applications on OC4J

    I am trying to deploy JDeveloper3.2 BC4J/JSP applications on OC4J. However, I have no lucky at all. My OC4J will hang when I tried to run my JSP applications.
    Does this only happen to me? Any suggestion will be appreciated.
    null

    I've followed the instructions in the "How TO Deploy a BC4J Application to an Oracle9iAS J2EE Container in Local Mode" again. The OC4J still hung. I turn on the -Djbo.debugoutput switch this time. I used the following line to startup the OC4J.
    java -Djbo.debugoutput=console -cp C:\oc4j\j2ee\home\orion.jar;
    C:\oc4j\j2ee\home\lib\classes12.jar;
    C:\JDev3.2_BC4Jlib\xmlparserv2.jar;
    C:\JDev3.2_BC4Jlib\jdev-rt.zip;
    C:\JDev3.2_BC4Jlib\jbojdbcpatch.zip;
    C:\JDev3.2_BC4Jlib\connectionmanager.zip;
    C:\JDev3.2_BC4Jlib\jbohtml.zip;
    C:\JDev3.2_BC4Jlib\jboimdomains.zip;
    C:\JDev3.2_BC4Jlib\ordim817.zip;
    C:\JDev3.2_BC4Jlib\ordvir817.zip;
    C:\JDev3.2_BC4Jlib\ordhttp.zip;
    C:\JDev3.2_BC4Jlib\jbomt.zip;
    C:\JDev3.2_BC4Jlib\jbodomorcl.zip;
    C:\JDev3.2_BC4Jlib\jboremote.zip;
    C:\JDev3.2_BC4Jlib\jndi.jar;
    C:\JDev3.2_BC4Jlib\jbodatum12.zip;
    C:\JDev3.2_BC4Jlib\;
    C:\JDev3.2_BC4Jlib\bc4j_scott.jar
    com.evermind.server.ApplicationServer
    I got the following message from my console:
    (The OC4J hung at [132]..)
    Loading from CLASSPATH bc4j_scott_bc4j_scott_Bc4j_scottModule.properties
    Diagnostics: Routing diagnostics to standard output (use -Djbo.debugoutput=silent to remove)
    Successfully loaded properties file using: getResourceAsStream("/oracle/jbo/common/Diagnostic.prop
    erties");
    [00] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [01] CommonMessageBundle (language base) being initialized
    [02] Stringmanager using default locale: 'null'
    [03] Creating a new pool instance
    [04] BC4JDeployPlatform: LOCAL
    [05] Propertymanager: searching for file and system based properties
    [06] {{ begin Loading BC4J properties
    [07] -----------------------------------------------------------
    [08] BC4J Property jbo.default.language='en' -->(MetaObjectManager) from System Default
    [09] BC4J Property jbo.default.country='US' -->(MetaObjectManager) from System Default
    [10] BC4J Property DeployPlatform='LOCAL' -->(SessionImpl) from Client Environment
    [11] Skipping empty Property ConnectionMode from System Default
    [12] Skipping empty Property HostName from System Default
    [13] Skipping empty Property ConnectionPort from System Default
    [14] Skipping empty Property ApplicationPath from System Default
    [15] Skipping empty Property java.naming.security.principal from System Default
    [16] Skipping empty Property java.naming.security.credentials from System Default
    [17] BC4J Property jbo.use.pers.coll='false' -->(SessionImpl) from System Default
    [18] BC4J Property jbo.pers.max.rows.per.node='70' -->(SessionImpl) from System Default
    [19] BC4J Property jbo.pers.max.active.nodes='10' -->(SessionImpl) from System Default
    [20] BC4J Property jbo.pcoll.mgr='oracle.jbo.pcoll.OraclePersistManager' -->(SessionImpl) from Sys
    tem Default
    [21] BC4J Property jbo.fetch.mode='AS.NEEDED' -->(MetaObjectManager) from System Default
    [22] Skipping empty Property JBODynamicObjectsPackage from System Default
    [23] BC4J Property MetaObjectContextFactory='oracle.jbo.server.xml.DefaultMomContextFactory' -->(M
    etaObjectManager) from /oracle/jbo/server/jboserver.properties resource
    [24] BC4J Property MetaObjectContext='oracle.jbo.server.xml.XMLContextImpl' -->(MetaObjectManager)
    from /oracle/jbo/server/jboserver.properties resource
    [25] BC4J Property java.naming.factory.initial='oracle.jbo.common.JboInitialContextFactory' -->(Se
    ssionImpl) from Client Environment
    [26] BC4J Property IsLazyLoadingTrue='true' -->(MetaObjectManager) from /oracle/jbo/server/jboserv
    er.properties resource
    [27] BC4J Property ActivateSharedDataHandle='false' -->(MetaObjectManager) from System Default
    [28] Skipping empty Property HandleName from System Default
    [29] Skipping empty Property Factory-Substitution-List from System Default
    [30] BC4J Property jbo.project='bc4j_scott' -->(MetaObjectManager) from Client Environment
    [31] BC4J Property jbo.max.cursors='50' -->(MetaObjectManager) from System Default
    [32] BC4J Property jbo.dofai lover='true' -->(MetaObjectManager) from System Default
    [33] BC4J Property jbo.doconnectionpooling='false' -->(MetaObjectManager) from System Default
    [34] BC4J Property jbo.recyclethreshold='10' -->(MetaObjectManager) from System Default
    [35] BC4J Property jbo.passivationstore='null' -->(MetaObjectManager) from System Default
    [36] BC4J Property RELEASE_MODE='Reserved' -->(MetaObjectManager) from System Default
    [37] BC4J Property jbo.maxpoolcookieage='-1' -->(MetaObjectManager) from System Default
    [38] Skipping empty Property PoolClassName from System Default
    [39] BC4J Property jbo.maxpoolsize='2147483647' -->(MetaObjectManager) from System Default
    [40] BC4J Property jbo.initpoolsize='0' -->(MetaObjectManager) from System Default
    [41] BC4J Property jbo.poolrequesttimeout='30000' -->(MetaObjectManager) from System Default
    [42] BC4J Property jbo.assoc.consistent='true' -->(MetaObjectManager) from System Default
    [43] BC4J Property jbo.SQLBuilder='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jboserve
    r.properties resource
    [44] BC4J Property jbo.ConnectionPoolManager='oracle.jbo.server.ConnectionPoolManagerImpl' -->(Met
    aObjectManager) from System Default
    [45] BC4J Property jbo.TypeMapEntries='Oracle' -->(MetaObjectManager) from /oracle/jbo/server/jbos
    erver.properties resource
    [46] BC4J Property jbo.jdbc.trace='false' -->(MetaObjectManager) from System Default
    [47] BC4J Property oracle.jbo.defineColumnLength='true' -->(MetaObjectManager) from System Default
    [48] Skipping empty Property jbo.tmpdir from System Default
    [49] Skipping empty Property jbo.server.internal_connection from System Default
    [50] Skipping empty Property SessionClass from System Default
    [51] Skipping empty Property TransactionFactory from System Default
    [52] BC4J Property jbo.debugoutput='console' -->(Diagnostic) from System Property
    [53] BC4J Property jbo.debug.prefix='DBG' -->(Diagnostic) from /oracle/jbo/common/Diagnostic.prope
    rties resource
    [54] BC4J Property jbo.logging.show.timing='false' -->(Diagnostic) from /oracle/jbo/common/Diagnos
    tic.properties resource
    [55] BC4J Property jbo.logging.show.function='false' -->(Diagnostic) from /oracle/jbo/common/Diagn
    ostic.properties resource
    [56] BC4J Property jbo.logging.show.level='false' -->(Diagnostic) from /oracle/jbo/common/Diagnost
    ic.properties resource
    [57] BC4J Property jbo.logging.show.linecount='true' -->(Diagnostic) from /oracle/jbo/common/Diagn
    ostic.properties resource
    [58] BC4J Property jbo.logging.trace.threshold='6' -->(Diagnostic) from /oracle/jbo/common/Diagnos
    tic.properties resource
    [59] BC4J Property jbo.jdbc.driver.verbose='false' -->(Diagnostic) from System Default
    [60] BC4J Property jbo.ejb.txntimeout='60' -->(SessionImpl) from System Default
    [61] BC4J Property jbo.ejb.txntype='global' -->(MetaObjectManager) from System Default
    [62] Skipping empty Property oracle.jbo.schema from System Default
    [63] Copying unknown Client property (CSSURL='/webapp/cabo/images/cabo_styles.css') to session
    [64] Copying unknown Client property (DBconnection='jdbc:oracle:thin:@Oracle_Prod1:1521:p816') to
    session
    [65] Copying unknown Client property (password='tiger') to session
    [66] Copying unknown Client property (JDBCName='rick') to session
    [67] Copying unknown Client property (ConfigName='bc4j_scott.Bc4j_scottModule.Bc4j_scottModuleLoca
    l') to session
    [68] Copying unknown Client property (ImageBase='/webapp/jsimages') to session
    [69] Copying unknown Client property (user='rick') to session
    [70] Copying unknown Client property (Password='tiger') to session
    [71] Copying unknown Client property (ApplicationName='bc4j_scott.Bc4j_scottModule') to session
    [72] WARNING: Unused property: LC='Calling Function' found in /oracle/jbo/common/Diagnostic.proper
    ties resource
    [73] }} finished loading BC4J properties
    [74] -----------------------------------------------------------
    Diagnostics: Routing diagnostics to standard output (use -Djb o.debugoutput=silent to remove)
    [75] Diagnostic Properties: Timing:false Functions:false Linecount:true Threshold:6
    [76] JavaVMVersion: 1.3.0_02
    [77] JavaVMVendor: Sun Microsystems Inc.
    [78] JavaVMName: Java HotSpot(TM) Client VM
    [79] OperatingSystemName: Windows 2000
    [80] OperatingSystemVersion: 5.0
    [81] OperatingSystemUsername: RWANG
    [82] Connected to Oracle JBO Server - Version: 3.2.9.76.3
    [83] {{+++ id=10000 type: 'BC4J_CREATE_ROOTAM' Create Root Application Module 'bc4j_scott.Bc4j_sco
    ttModule'
    [84] {{+++ id=10001 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.Bc4j_scottModule
    [85] {{+++ id=10002 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.bc4j_scott
    [86] Loading from /bc4j_scott/bc4j_scott.xml file
    [87] Loading from indvidual XML files
    [88] Loading the Containees for the Package 'bc4j_scott.bc4j_scott'.
    [89] }}+++ End Event10003 null
    [90] Loading from /bc4j_scott/Bc4j_scottModule.xml file
    [91] }}+++ End Event10002 null
    [92] {{+++ id=10003 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.DeptView
    [93] Loading from /bc4j_scott/DeptView.xml file
    [94] ViewObjectImpl's default fetch mode = 0
    [95] {{+++ id=10004 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.Dept
    [96] Loading from /bc4j_scott/Dept.xml file
    [97] Loading Typemap entries from oracle.jbo.server.OracleTypeMapEntries
    [98] CSMessageBundle (language base) being initialized
    [99] }}+++ End Event10005 null
    [100] OracleSQLBuilder reached getInterface
    [101] Oracle SQL Builder Version 3.2.0.0.0
    [102] }}+++ End Event10004 null
    [103] {{+++ id=10005 type: 'BC4J_CREATE_VIEWOBJECT' Create ViewObject 'DeptView'
    [104] }}+++ End Event10006 null
    [105] {{+++ id=10006 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.EmpView
    [106] Loading from /bc4j_scott/EmpView.xml file
    [107] {{+++ id=10007 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.Emp
    [108] Loading from /bc4j_scott/Emp.xml file
    [109] }}+++ End Event10008 null
    [110] }}+++ End Event10007 null
    [111] {{+++ id=10008 type: 'BC4J_CREATE_VIEWOBJECT' Create ViewObject 'EmpView'
    [112] }}+++ End Event10009 null
    [113] {{+++ id=10009 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.FkDeptnoLink
    [114] Loading from /bc4j_scott/FkDeptnoLink.xml file
    [115] }}+++ End Event10010 null
    [116] {{+++ id=10010 type: 'METAOBJECT_LOAD' Loading meta-object: bc4j_scott.FkDeptnoAssoc
    [117] Loading from /bc4j_scott/FkDeptnoAssoc.xml file
    [118] }}+++ End Event10011 null
    [119] Created root application module: 'bc4j_scott.Bc4j_scottModule'
    [120] Locale is: 'en_US'
    [121] }}+++ End Event10001 null
    [122] AM pool is establishing an application module connection
    [123] Using DatabaseTransactionFactory implementation oracle.jbo.server.DatabaseTransactionFactory
    [124] DBTransactionImpl Max Cursors is 50
    [125] Oracle SQLBuilder: Registered driver: oracle.jdbc.driver.OracleDriver
    [126] {{+++ id=10011 type: 'JDBC_CONNECT' null
    [127] Trying connection/2: url='jdbc:oracle:thin:@Oracle_Prod1:1521:p816' info='{user=rick, passwo
    rd=tiger}' ...
    [128] }}+++ End Event10012 null
    [129] Successfully logged in
    [130] JDBCDriverVersion: 8.1.7.1.0
    [131] DatabaseProductName: Oracle
    [132] DatabaseProductVersion: Oracle8i Enterprise Edition Release 8.1.6.0.0 - Production With the
    Partitioning option JServer Release 8.1.6.0.0 - Production <---It's hanging here for a very very long time......
    Any idea?
    null

  • Running a BC4J JSP application for Oracle Lite on OC4J

    Hi,
    My BC4J JSP application is working with Oracle and Oracle Lite on Apache (Oracle 8i Personal Edition) and on Tomcat 3.2. The same BC4J's could be used from the BC4J Tester as well.
    But if I run the application on OC4J (standalone and embedded in JDeveloper 9i RC1 and RC2) using Oracle Lite, a Fatal Internal Error (or with JDK1.2 a NullPointerException) occurs.
    I think I found the reason:
    1. the Java Trigger in Oracle Lite and
    2. the Timestamp used in Oracle Lite instead of Date.
    My problem is, that I can't find any information about configuration of OC4J so that it could work with Oracle Lite as well as Apache and Tomcat.
    Claudia

    The tell tale sign that the application is communicating with the running cache server is the membership information that is logged. In your previous running of the example you would have "members=1" embedded in the logging. From the sounds of what you are doing, you'd expect this to be different as the application would be joining a running instance. Check out section 1.3 of this doc on the system you are using.
    http://download.oracle.com/docs/cd/E15357_01/coh.360/e15831/installcoh.htm#BABIHHFJ
    Cheers,
    Jay

  • BC4j/JSP Application not responding after some time - when deployed on 9ias BC4j/JSP

    Hi,
    We are using BC4j/jsp application on 9ias. The application is not responding
    after some time. We have installed 9ias on PIII(384MB RAM). We tried to accesses
    with 10 users, and server is not responding to BC4J/JSP application.
    However the server could able to publish the JSP pages with standerad JDBC code even after that.
    Please....help us.........
    many many thanks in advance

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Is there any mechanism that cleans up these connections (back down to the initial or some other minimum I would guess) or do they hang around until either the app server or database shuts down?<HR></BLOCKQUOTE>
    There is currently no mechanism for reducing the connection pool size after a period of high activity. Recently this has been frequently requested and as such will be implemented in the next production release.
    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>We have verified this in manual testing. However, when the load tool script exits it doesn't seem to release resources. We know this because we keep seeing our database connections go up and up as more tests are run. Further, we also seem to see more than one connection per "virtual user". For example, when I connect 5 users to the app in manual testing, I get 5 connections. But, when we run a test using the tool, we get 395 database sessions for 200 users. We are having a bit of difficulty understanding why the behavior is different.<HR></BLOCKQUOTE>
    Assuming that the you are performing your manual testing against the same instance of the application on which you are performing your load testing, I would assume that the connections are being released to the pool at the end of the request. One possible reason for the approximate 2:1 ratio between connections and virtual users may be BC4J's use of internal connections. What version of BC4J are you using?
    BC4J requires an internal connection to support state management and spill to disk. The internal connections are pooled with the transaction connection and only held for the duration of the persistence operation. However, if the web server is very busy then a large number of synchronous persistence requests may be received which would explain the eventual 2:1 ratio in the pool's high water mark.
    If the user start times and think times are staggered in order to reduce the incidence of synchronous persistence requests does the ratio of connections to web sessions stabilize at some lower number (i.e. 1.5:1)

  • BC4J on OC4J

    Hi,
    May i know the problem i'm having here. As far as i know the
    class is in at least 7 jars inn the j2ee\home\lib folder.
    11/26/01 8:00 PM defaultWebApp: Servlet error
    java.lang.NoClassDefFoundError:
    oracle/jbo/server/ApplicationModuleImpl
         at java.lang.ClassLoader.findLoadedClass(Native Method)
         at java.lang.ClassLoader.loadClass(ClassLoader.java,
    Compiled Code)
         at sun.misc.Launcher$AppClassLoader.loadClass
    (Launcher.java, Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java,
    Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java,
    Compiled Code)
         at java.lang.ClassLoader.loadClass(ClassLoader.java,
    Compiled Code)
         at java.lang.ClassLoader.loadClassInternal
    (ClassLoader.java, Compiled Code)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java, Compiled Code)
         at oracle.jbo.common.JDKClassLoader.loadClassForName
    (JBOClass.java:103)
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML
    (ApplicationModuleDefImpl.java, Compiled Code)
         at oracle.jbo.server.ApplicationModuleDefImpl.loadFromXML
    (ApplicationModuleDefImpl.java:541)
         at oracle.jbo.server.MetaObjectManager.loadFromXML
    (MetaObjectManager.java:787)
         at oracle.jbo.server.MetaObjectManager.loadLazyObject
    (MetaObjectManager.java:516)
         at oracle.jbo.server.MetaObjectManager.findMetaObject
    (MetaObjectManager.java:340)
         at
    oracle.jbo.server.ApplicationModuleDefImpl.findDefObject
    (ApplicationModuleDefImpl.java:158)
         at
    oracle.jbo.server.ApplicationModuleImpl.createRootApplicationModu
    le(ApplicationModuleImpl.java:257)
         at oracle.jbo.server.ApplicationModuleHomeImpl.create
    (ApplicationModuleHomeImpl.java:85)
         at
    oracle.jbo.common.ampool.ApplicationPoolImpl.createNewInstance
    (ApplicationPoolImpl.java, Compiled Code)
         at oracle.jbo.common.ampool.ApplicationPoolImpl.checkout
    (ApplicationPoolImpl.java, Compiled Code)
         at
    oracle.jbo.html.jsp.JSPApplicationRegistry.internalGetAppModuleIn
    stance(JSPApplicationRegistry.java:463)
         at
    oracle.jbo.html.jsp.JSPApplicationRegistry.getAppModuleInstance
    (JSPApplicationRegistry.java:377)
         at
    oracle.jdeveloper.html.DataWebBeanImpl.internalInitialize
    (DataWebBeanImpl.java:404)
         at
    oracle.jbo.html.databeans.JSViewCurrentRecord.internalInitialize
    (JSViewCurrentRecord.java, Compiled Code)
         at oracle.jdeveloper.html.WebBeanImpl.initialize
    (WebBeanImpl.java:56)
         at oracle.jdeveloper.html.DataWebBeanImpl.initialize
    (DataWebBeanImpl.java:360)
         at oracle.jdeveloper.html.DataWebBeanImpl.initialize
    (DataWebBeanImpl.java:391)
         at /bc/InvLookupValuesView_RowViewer.jsp._jspService
    (/bc/InvLookupValuesView_RowViewer.jsp.java:46) (JSP page line
    16)
         at com.orionserver[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.HttpApplication.serviceJSP
    (HttpApplication.java:5459)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.JSPServlet.service(JSPServlet.java:31)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.ServletRequestDispatcher.invoke
    (ServletRequestDispatcher.java, Compiled Code)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.ServletRequestDispatcher.forwardInternal
    (ServletRequestDispatcher.java:177)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.HttpRequestHandler.processRequest
    (HttpRequestHandler.java, Compiled Code)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].server.http.HttpRequestHandler.run
    (HttpRequestHandler.java, Compiled Code)
         at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for
    J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java, Compiled
    Code)
    Thanks
    Amin

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Shahbaz([email protected]):
    I am having the same problem. The server cant seem to find my appmodule .properties file. I have included it in a jar file in the J2EE/HOME/LIB folder and also set the classpath to it. Yet i keep getting "JSP Registry could not locate runtime property file:MyProject2_package1_Package1Module.properties" The same exact jar files in IPlanet run just fine. Also, this only happens when i use JSP pages built from using Oracle provided beans. The JSP pages built with TAGS do not pose this same issue. This is propably because on the JSP's that use the beans there is a call: oracle.jbo.html.jsp.JSPApplicationRegistry.registerApplicationFromPropertyFile(session , "MyProject3_package1_Package1Module"); Also when i remove this call from all the pages i still get the same error.
    This project i created just by running the BC4J JSP application wizard - nothing fancy, just scott emp/dept tables. has anyone got this to work? <HR></BLOCKQUOTE>
    Ditto. I have spent hours with this exact problem. In the end, I reverted to deploying my existing code to 9ias 1.0.2.2, ie not using the OC4J engine. My code which worked with earlier versions of ias (including 8ias and 1.0.2.0) suddenly had a problem in 9ias 1.0.2.2 finding my connection file. It appears to be a general problem with the ClassLoader and the path of the resource.
    Shahbaz, have you tried to run your generated JSP with the BC4J against 9ias (just using Apache and the Oracle engine) ? Do you get different results ?
    null

  • HOWTO -- Install BC4J in OC4J 9.0.3

    I have JDdev 903 and OC4J 903. I want to install BC4J in OC4J 903. I can find NO documentation on doing this for OC4J 903, only 902. I assume it is because OC4J 903 is still preview, but come on!
    The scripts to do this under JDev 902 do not exist in JDev 903. I have also found no reference for an updated version of BC4J runtime installer for OC4J 903.
    What do I need to do to get the version of BC4J installed in OC4J 903????
    TIA,
    Eric

    Dhiraj,
    I have looked all through OC4J903 and I can not find any of the BC4J jars. I am running the stand alone version and I don't believe it comes with BC4J installed. Please tell me where the .jars are in OC4J if they do in fact exist.
    Eric
    I have JDdev 903 and OC4J 903. I want to install BC4J in OC4J 903. I can find NO documentation on doing this for OC4J 903, only 902. I assume it is because OC4J 903 is still preview, but come on!
    The scripts to do this under JDev 902 do not exist in JDev 903. I have also found no reference for an updated version of BC4J runtime installer for OC4J 903.
    What do I need to do to get the version of BC4J installed in OC4J 903????
    TIA,
    Eric You shouldn't have to install them as oc4j 903 is preconfigured to include bc4j runtime jars.
    Dhiraj

  • Web service / XML-RPC:  SMTP inbound to OC4J/BC4J XML servlet bridge??

    A new business problem just landed on my desk for a possible solution.
    One way XML documents coming in from a Novel mail server doing SMTP forward to something
    in the OC4J, BC4J, side to receive and parse the XML.
    It would be great of course if the JDev / BC4J / OC4J web services tools had a SMTP service
    that would route inbound SMTP messages at email address to a particular Servlet.post().
    Any other ideas??
    Thanks much,
    curt

    For others, here is a start of a response to Curtis's message talking about the BC4J Web services features combined with the BC4J readXML and writeXML capabilities:
    Re: Can we find when was a table dropped?
    Not sure if other folks have a solution to dealing with the SMTP part - a snippet of code that works with readXML and writeXML methods of BC4J, for example.
    Mike.

  • BC4J in OC4J Best Practice

    What is the best way to deploy BC4J to OC4J?
    Option 1:
    Deploy the BC4J libraries either manually or via the bc4j2oc4j.bat script to OC4J root lib
    Option 2:
    Deploy the BC4J runtime libraries with each application deployed under OC4J
    Currently I use Option 1 because I only have to add the BC4J files once, I get consistency across all deployed apps and it uses less memory(?). The drawback is that all the apps will share the library and you MUST have pesistence turned on and functioning. It looks like each time an app hits the BC4J lib, the persistence mechanism persists the current app's data, and then switches to the new app. I presume this happens everytime one app competes with another app for BC4J.
    I have also seen BC4J deployed with every application. This presumably would give every app it's own BC4J runtime and therefore avoid any conflicts. Would it also mean better peformance assuming the box has plenty of memory? Or is is slower than Option 1?
    Anyone else have any comments or additions? I just wnat to understand the best way, if there is one, to deploy BC4J to OC4J.
    Thx,
    Eric

    Can you elobarate on what you mean by
    "The drawback is that all the apps will share the library and you MUST have pesistence turned on and functioning."
    These options control how the the bc4j classes are loaded and have no bearing on application data. Each .ear on oc4j is loaded by a different classloader instance. So beploying bc4j runtime jars in each ear would mean that these classes are loaded multiple times -- which is redundant and would only consume more memory. That's why I think option 1 is the better choice.
    Dhiraj Dhiraj,
    all I meant by that is that you HAVE to have the BC4J persistence collection stuff turned on. We had initially tried to disable this due to some other issues, but running with it off caused errors when trying to run multiple apps. As soon as BC4J persistence collection was turned back on, everything started working correctly.
    I think you are right about the memory thing and I haven't heard any reason not to use Option 1 (a single set of libraries).
    Thx.

  • BC4j/JSP Application not responding after some time - when deployed on 9ias

    Hi,
    We are using BC4j/jsp application on 9ias. The application is not responding
    after some time. We have installed 9ias on PIII(384MB RAM). We tried to accesses
    with 10 users, and server is not responding to BC4J/JSP application.
    However the server could able to publish the JSP pages with standerad JDBC code even after that.
    many many thanks in advance
    null

    When the application deployed by BC4J/JSP not responding, does the sample JSP application still works? i.e. does any other application respond? Does 1 user respond? Is the database source (JDBC), running Oracle 8.1.7? What is the platform running the database (e.g. local NT database)?

  • How deploy BC4J to OC4J

    Hi!
    I have a problem when install my application the which use BC4J to OC4J.
    I have installed in my server:
    Oracle 9iAS 9.0.1
    Oracle Enterprise 9i
    Regards.
    Wil.

    Are you using Oracle9iAS 9.0.2. We don't have a version called 9.0.1 ?
    Oracle9iAS Release 2 is configured to work with BC4J. What problems are you getting and how are you deploying to Oracle9iAS ?
    Please look at http://otn.oracle.com/products/jdev/htdocs/config_oc4j_for_bc4j.html if you are deploying to standalone OC4J.
    regards
    Debu Panda
    Oracle

  • Oc4j bc4j No home wrapper specified

    Hello i have deployed 25 bc4j on oc4j some of the bussiness component gives the error no home wrapper specified but the application runs fine can any one tell me the reason and how to slove this problem???
    ------------- trace of oc4j on start -----------
    D:\ORACLE\iSuites\j2ee\home>java -jar -Xmx256m orion.jar
    Auto-deploying sfaforms_PerceptionAnalysis_ejb.jar (No home wrapper specified for bean 'PerceptionAn
    alysis.PerceptionAppliModule')... done.
    Auto-deploying sfaforms_SFAHORemFoDailyCallInput_ejb.jar (No home wrapper specified for bean 'SFAHOR
    emFoDailyCallInput.SFAHOREMTOINPUTAM')... done.
    Auto-deploying sfaforms_SMC017_ejb.jar (No home wrapper specified for bean 'SMC017.SMC017AM')... don
    e.
    Auto-deploying sfaforms_smc016_ejb.jar (No home wrapper specified for bean 'smc016.clntDtInvoiceAppM
    odule')... done.
    Auto-deploying sfaforms_smc014_ejb.jar (No home wrapper specified for bean 'smc014.productsalesAppMo
    dule')... done.
    Auto-deploying sfaforms_mapsplntodisease_ejb.jar (No home wrapper specified for bean 'mapsplntodisea
    se.mapsplntodiseaseAppModule')... done.
    Oracle9iAS (1.0.2.2.1) Containers for J2EE initialized
    --------- end of trace ----------------

    Hi,
    Still i cudnt find out any solution for your problem...
    Could you please provide some information about your application?
    1. How you are packaging your application?(Using jar file / using winzip)???
    2. You have mentioned that you are getting following error
    "****Warning: The file: C:\..\..\..\..\somefile.jar is not a valid zip file "
    Is " somefile.jar " is your application that has to be deployed???
    3. Please provide complete stack trace of your server console...
    Cheers
    --Venky

  • Trouble with bc4j/jsp tutorial

    I'm having difficulty running the bc4j/jsp tutorial in the doc pages. he ones on the oracle website, not through the help menu cos it's modal!
    After the second start from scratch I'm pretty certain I'm doing excatly as instructed but on starting the oc4j, I get the following error page in IE...
    Any ideas?
    Rick Lawson.
    Application Error
    Return
    Error Message: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
    Error Message: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:372)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    ## Detail 0 ##
    oracle.jbo.JboException: JBO-33001: Cannot find the configuration file /jsptags/common/bc4j.xcfg in the classpath
         at oracle.jbo.client.Configuration.loadFromClassPath(Configuration.java:237)
         at oracle.jbo.common.ampool.PoolMgr.createPool(PoolMgr.java:192)
         at oracle.jbo.common.ampool.PoolMgr.findPool(PoolMgr.java:348)
         at oracle.jbo.common.ampool.ContextPoolManager.findPool(ContextPoolManager.java:169)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:554)
         at oracle.jbo.html.jsp.datatags.ApplicationModuleTag.doStartTag(ApplicationModuleTag.java:143)
         at CustomersView_Browse._jspService(CustomersView_Browse.jsp:10)
         at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:119)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:302)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:407)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:330)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:684)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)

    1. At what step in the tutorial did you see this error?the link to the web page would be http://otn.oracle.com/jdeveloper/help/topic?inOHW=true&file=jar%3Afile% (basically, at the end of autocreating the page and running oc4j (embedded) to see the JSP
    2. Are you running on a deployed environment?No. This was as the tutorial, in the embedded oc4j
    3. What version of JDev/ OC4J are you using?oracle IDE version is 9.0.2.829
    4. Did your BC4J project compile cleanly?yes (or at least it appeared to do!)
    5. Did you check the Deploy Password box when you created your database connection?yes.
    I shall be reading up on the bc4j.xcfg today...
    Thanks for the help
    Rick

  • How to run BC4J JSP programs generated by JDeveloper 9i?

    I used JDeveloper 9i to:
    Create a new Project Workspace
    Create New Business Components
    Click on Run, Run Project
    The Java application works perfectly alright.
    Click on New, BC4J JSP, Business Components JSP Application
    Then a full set of JSP source code is generated based on the Business Components Java Application.
    Right-click on main.html, Run main.html
    I can see that deployment of the JSP programs is OK but the Internet Explorer does not start the main.html.
    I enter address: http://localhost:8988/ in Internet Explorer and can see that OC4J is running.
    I would like to enter the path of the deployed JSP program.
    How can I know what is the path of the URL?

    I have change the settings in tools->preferences to point to the right location, i.e.
    C:\Program Files\Internet Explorer\IEXPLORE.EXE
    Internet Explorer does not start after it shows:
    C:\oracle\ora9ids\jdk\bin\javaw.exe -ojvm -classpath C:\oracle\ora9ids\j2ee\home\oc4j.jar -Dhttp.proxyHost=hqproxy.vtc.edu.hk -Dhttp.proxyPort=8080 com.evermind.server.OC4JServer -config C:\oracle\ora9ids\jdev\system\oc4j-config\server.xml
    [Starting OC4J using the following ports: HTTP=8990, RMI=23893, JMS=9229.]
    [waiting for the server to complete its initialization...]
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app
    ApplicationServer: appName = bc4j
    ApplicationServer: appName = current-workspace-app

  • OCFJ Hanging after 5-7 days

    I am running OC4J 1.0.2.2 on a windows 2000 server.
    I am using it as my JSP engine as well. For some reason the application hangs after 5-7 days of being used. In order to get up again I have to restart it.
    I am running it as a service and using ConnectionPooling.
    Any ideas as to why this may be happening and how to fix it?
    Thanks

    Hi Lemonte,
    My platform is SUN Solaris 7, so what I am about to say may not
    be relevant for your Windows platform, but I think it is and that's
    why I'll say it.
    I think in the release notes it recommends using the JDK that comes
    with 9iAS, which (IIRC) is 1.2.2
    Does your application involve EJB's? There is an issue with OC4J
    keeping bean instances in memory permanently, which can eventually
    cause a memory leak.
    Unless you can give me more details, there's nothing else I can
    suggest right now.
    Hope this helps,
    Avi.

Maybe you are looking for

  • How do you when Ipod's battery is dead?

    Accidently left my cased ipod in my jacket pocket and threw it into the wash. It was only in there for a couple of minutes but thats all it took. I knew the Ipod wasn't too wet because I couldn't see any water under the screen, but the battery was go

  • Global Error page in portal

    Hi This is regarding weblogic portal 8.1. We have a portal project which contains several portlets. For handling exceptions in a page flow we have a global error page at the project root level and each portlet redirects to this error page /error.jsp

  • SSAS - Creating a Measure For Defects Per Unit

    Hello, everyone I'm attempting to create a Defect Per Unit calculation. I have an odd situation where my source data is recording all of instances of a given Defect (the single defect is recorded in multiple locations, DimLocation). So I'm receiving

  • Error in simple Generics program

    Why is this code not compiling? When I changed the <String> to <T> then it works. My question is why should the code listed below fail. Error: non-static class String cannot be referenced from a static context public class SimpleGenerics1<String> {  

  • Can I listen my music while my IPod is used as HDD??

    When I connect my IPod as external drive, I can not listen my songs. Is it possible??, Whan can I do?? Thanks in advance for your comments. Regards. Sony Vaio SR Series   Windows XP Pro