Apache with OC4J

How do we configure Apache to handle the static HTML and OC4J to handle the dynamic (JSP) content within a J2EE Application with a Web Module?
I've just browsed both the General and J2EE forums, searching on "Apache". I see where others have asked the same or similar question, but none of the replies explain how to accomplish this.
I just attended Oracle's "Develop, Deploy and Manage J2EE Applications"; the course instructor indicated that OC4J (we're at iAS version 1.0.2.2.1) supports mixing JSP and HTML content within a single web site directory and the static content could be served by Apache.
At present we have the static HTML pages at our site's DocRoot directory. In this directory we have installed our J2EE EAR application (as an exploded EAR directory). Under the EAR root directory we have a single Web Module, in which we have our JSP files and some static HTML files.
We have Apache configured with mod_proxy to forward requests for "mmrrc/" to the OC4J container (ie, http://<ourserver_on_port_80>/mmrrc/ is redirected to OC4J). This works. However, both our JSP and HTML content is served by OC4J when accessing anything under /mmrrc/. Static HTML is only served by Apache if it exists outside of the /mmrrc/ space (ie, /*.html and /documents/*.html).
Is it possible to get Apache to handle the static HTML within the J2EE Web application? If so, how? And, if not, is our configuration about as good as one can do?
Thanks, much.
Rick

Sorry, I left off my email address: [email protected]

Similar Messages

  • UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk

    RDBMS Version: 8.1.7.x
    Operating System and Version: SUSE Linux 7.2 / Win NT/2k/XP
    Product (i.e., OAS, IAS, etc): 9ias 1.0.2.2 OC4J 9.0.2.0.0
    Product Version:
    JDK Version: 1.3.1
    Error number:
    UNSUPPORTED : The way it works Apache with OC4J via AJPV13 with mod_jk
    We dont want to use the lame and old mod_jserv so we want to use oc4j but in connection with Apache.
    This is like mod_oc4j in the Oracle 9ias Release 2
    This guide is for advanced users !
    Step-by-Step :
    1) get Tomcat 3.3 for linux or nt with Apache module mod_jk
    http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.3/bin/
    2) add mod_jk module to httpd.conf (9ias) and comment all mod_jserv, dms, oproc, ojsp ....
    LoadModule jk_module libexec/mod_jk.so
    Include mod_jk.conf
    3) edit mod_jk.conf
    JkMount /*.jsp ajp13
    JkMount /servlet/* ajp13 JkMount /servlets/* ajp13
    <Location "/WEB-INF/"> AllowOverride None
    deny from all
    </Location>
    3) edit workers.properties
    workers.tomcat_home=/opt/oracle/ias/oc4j/j2ee/home
    workers.java_home=/usr/java
    worker.list=ajp13
    worker.ajp13.port=8009 worker.ajp13.host=localhost worker.ajp13.type=ajp13
    4) edit http-web-site.xml (oc4j)
    <web-site host="localhost" port="8009" protocol="ajp13" display-name="Oracle9iAS Containers for J2EE HTTP Web Site">
    5) start oc4j
    java -verbose -jar oc4j.jar
    6) start apache (look in error_log)
    apachectl startssl
    7) try to request a jsp page or servlet ..
    http://localhost:7777/test.jsp
    8) good luck it works fine .. !!
    Matthias Roth
    Technical Manager
    Z|rich Investmentgesellschaft mbH
    [email protected]

    Thanks for the tip Mathias, it's always good to see people trying out experimental things with the products.
    We're providing a new module (mod_oc4j) with our Oracle9iAS Release2 product to do this directly from the Oracle HTTP Server (Apache). We've re-written bits and pieces of the module to improve it's performance. Likewise, we've also integrated mod_oc4j with our HA story so it will be notified when new OC4J instances are brought online or if existing ones go down, enabling it to actively route requests around the available OC4J instances.
    Thanks again!
    -steve0

  • Integrate Apache with OC4J instance

    Hi all,
    How to integrate mod_oc4j with apache so that I can route the request from apache http server to a specific oc4j instance.
    thanks
    Jayson

    This guide explains how to do it with the Apache2 version that comes on the Companion CD:
    http://download-uk.oracle.com/docs/cd/B25221_03/web.1013/b25777/config.htm#sthref90

  • Connect Apache and OC4J

    Hello, I'm trying to connect Apache with OC4J to handle servlets and JSPs, but it doesn't work.
    I've already installed both, but I'm not sure which are the files I've to configure. I've configure the following:
    In httpd.conf I've added:
    LoadModule oc4j_module modules/mod_oc4j.so
    include "C:/ ... ..... . /conf/mod_oc4j.conf"
    In the same directory: Apache2\conf, I've added to mod_oc4j.conf at the first line:
    LoadModule oc4j_module modules/mod_oc4j.so
    and finally I've added in modules directory the mod.oc4j.so
    I'm grateful for any help
    Thanks a lot

    Hello, I have followed the documentation, exactly the point C.7.3 Setting Up a Static Configuration with mod_oc4j, because I am trying to connect generic Apache with OC4J in localhost. But, I have only be able to charge mod_oc4j.so into mod_oc4j.conf, because mod_onsint.so, ApacheModuleOnsint.dll and ApacheModuleOc4j.dll cannot be loaded, log files said me:
    - ORACLE_HOME must be set in the environment to use mod_onsint, although I have established ORACLE_HOME in my path. (this is the fail for mod_onsint)
    - ApacheModuleOnsint.dll and ApacheModuleOc4j.dll cannot be found, although I have included it in my modules directory.
    So, with the following lines added to my mod_oc4j.conf... :
    LoadModule oc4j_module modules/mod_oc4j.so
    Oc4jMount /sauce/jsp/*.jsp home
    I have obtained that the .html pages can be viewed by the firefox, but when I try to access to jsp pages I obtain the following result in error.log of the Apache:
    mod_oc4j: There is no oc4j process (for destination: home) available to service request.
    I think it is because Apache doesn't know where to redirect jsp pages. How can I show Apache Server to redirect jsp pages to my OC4J?
    Sorry, but I am inexperienced in this issues
    Any help?
    Thanks a lot

  • How can I use a 3rd party XML parser such as xerces with OC4J ?

    Hi all tech experts,
    I am using Oracle Application Server 10g Release 2 (10.1.2) and i have
    installed Portal and Wireless and OracleAS Infrastructure on the same
    computer.
    i tried all the solutions on this thread
    Use of Xerces Parser in out application with Oracle App Server 9.0.4
    but still fighting.
    I have also posted this query on OTN on following thread
    How can I use a 3rd party XML parser such as xerces with OC4J?
    but no reply....
    Please help me on this issue.
    Since OC4J is preconfigured to use the Oracle XML parser which is xmlparserv2.jar.
    i have read the following article which states that
    OC4J is preconfigured to use the Oracle XML parser. The Oracle XML parser is fully JAXP 1.1 compatible and will serve the needs of applications which require JAXP functionality. This approach does not require the download, installation, and configuration of additional XML parsers.
    The Oracle XML parser (xmlparserv2.jar) is configured to load as a system level library of OC4J through it's inclusion as an entry in the Class-Path entry of the oc4j.jar Manifest.mf file. This results in the Oracle XML parser being used for all common deployment and packaging situations. You are not permitted to modify the Manifest.mf file of oc4j.jar.
    It must be noted that configuring OC4J to run with any additional XML parser or JDBC library is not a supported configuration. We do know customers who have managed to successfully replace the system level XML parser and the Oracle JDBC drivers that ship with the product, but we do not support this type of configuration due to the possibility of unexpected system behavior and system errors that might occur from replacing the tested and certified libraries.
    If you absolutely must use an additional XML parser such as xerces, then you have to start OC4J such that the xerces.jar file is loaded at a level above the OC4J system classpath. This can be accomplished using the -Xbootclasspath flag of the JRE.
    i have also run the following command
    java -Xbootclasspath/a:d:\xerces\xerces.jar -jar oc4j.jar
    but no success.
    How could i utilize my jar's like xerces.jar and xalan.jar for parsing instead of OC4J in-built parser ?
    All reply will be highly appreciated.
    Thnx in advance to all.
    Neeraj Sidhaye
    try_catch_finally @ Y !

    Hi Neeraj Sidhaye,
    I am trying to deploy a sample xform application to the Oracle Application Server (10.1.3). However, I encountered the class loader issue that is similar to your stuation. I tried all the three solutions but the application is still use the Oracle xml paser class. I am wondering if you have any insight about this?
    Thanks for your help.
    Xingsheng Qian
    iPass Inc.
    Here is the error message I got.
    Message:
    java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
    Stack Trace:
    org.chiba.xml.xforms.exception.XFormsException: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.dispatch(Unknown Source)
         at org.chiba.xml.xforms.Container.initModels(Unknown Source)
         at org.chiba.xml.xforms.Container.init(Unknown Source)
         at org.chiba.xml.xforms.ChibaBean.init(Unknown Source)
         at org.chiba.adapter.servlet.ServletAdapter.init(ServletAdapter.java:153)
         at org.chiba.adapter.servlet.ChibaServlet.doGet(ChibaServlet.java:303)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:719)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:376)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:870)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:451)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:299)
         at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:187)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.ClassCastException: oracle.xml.parser.v2.XMLElement
         at org.chiba.xml.xforms.Instance.iterateModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.initializeModelItems(Unknown Source)
         at org.chiba.xml.xforms.Bind.init(Unknown Source)
         at org.chiba.xml.xforms.Initializer.initializeBindElements(Unknown Source)
         at org.chiba.xml.xforms.Model.modelConstruct(Unknown Source)
         at org.chiba.xml.xforms.Model.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.performDefault(Unknown Source)
         at org.chiba.xml.xforms.XFormsDocument.dispatchEvent(Unknown Source)
         at org.apache.xerces.dom.NodeImpl.dispatchEvent(Unknown Source)
         ... 18 more

  • Integrating PDK with OC4J

    Hi friends,
    I am using PDK with OC4J(9.0.0.2.0)
    I created a provider.xml, created a provider using Oracle Portal, created a page which contais this provider created, but when I run this page some error messages are being displayed:
    Exception:
    oracle.jsp.parse.JspParseException: Line Number : 1,
    Error: oracle.xml.parser.v2.XMLParseException: Invalid element 'servlet' in content of 'web-app', expected elements '[servlet-mapping, session-config, mime-mapping, welcome-file-list, error-page, taglib, resource-ref, security-constraint, login-config, security-role, env-entry, ejb-ref]'.
    at oracle.jsp.parse.JspDirectiveTaglib.validateAttributes(JspDirectiveTaglib.java:79)
    at oracle.jsp.parse.JspParseTagDirective.validateTagAttributes(JspParseTagDirective.java:124)
    at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java:672)
    at oracle.jsp.parse.JspParseTagDirective.parse(JspParseTagDirective.java:200)
    at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java:548)
    at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java:160)
    at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
    at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1667)
    at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1297)
    at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1141)
    at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:797)
    at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:368)
    at oracle.jsp.JspServlet.doDispatch(JspServlet.java:265)
    at oracle.jsp.JspServlet.internalService(JspServlet.java:184)
    at oracle.jsp.JspServlet.service(JspServlet.java:154)
    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.include(ServletRequestDispatcher.java:108)
    at oracle.portal.provider.v2.render.http.ResourceRenderer.renderBody(Unknown Source)
    at oracle.portal.provider.v2.render.RenderManager.render(Unknown Source)
    at oracle.portal.provider.v2.DefaultPortletInstance.render(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.showPortlet(Unknown Source)
    at oracle.webdb.provider.v2.adapter.soapV1.ProviderAdapter.handleHttp(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.doHTTPCall(Unknown Source)
    at oracle.webdb.provider.v2.adapter.SOAPServlet.service(Unknown Source)
    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)
    What I must do to solve this problem?
    Thanks.

    hi
    can you please tell me how did you solve that problem.I am having the same problem.Not able to find the solution.
    oracle.jsp.parse.JspParseException: Line # 10,
    Error: Attribute: releasemode is not a valid attribute name
         at oracle.jsp.parse.OpenJspTagHandler.processAttributeValue(OpenJspTagHandler.java, Compiled Code)
         at oracle.jsp.parse.JspParseTag.parse(JspParseTag.java, Compiled Code)
         at oracle.jsp.parse.OpenJspTagHandler.parse(OpenJspTagHandler.java:467)
         at oracle.jsp.parse.JspParseTag.parseNextTag(JspParseTag.java, Compiled Code)
         at oracle.jsp.parse.JspParseTagFile.parse(JspParseTagFile.java, Compiled Code)
         at oracle.jsp.parse.OracleJsp2Java.transform(OracleJsp2Java.java:40)
         at oracle.jsp.app.JspAppLoader.translatePage(JspAppLoader.java:1513)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java:1146)
         at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java:1005)
         at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java:671)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java:343)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java:259)
         at oracle.jsp.JspServlet.internalService(JspServlet.java, Compiled Code)
         at oracle.jsp.JspServlet.service(JspServlet.java:148)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at oracle.portal.provider.v1.http.JspRenderer.renderBody(JspRenderer.java:133)
         at oracle.portal.provider.v1.RenderManager.render(RenderManager.java:165)
         at oracle.portal.provider.v1.http.ServletProviderResponse.showPortlet(ServletProviderResponse.java:524)
         at oracle.portal.provider.v1.http.HttpProvider.dispatchProviderAction(HttpProvider.java:660)
         at oracle.portal.provider.v1.http.HttpProvider.service(HttpProvider.java:390)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:435)
         at org.apache.jserv.JServConnection.run(JServConnection.java, Compiled Code)
         at java.lang.Thread.run(Thread.java, Compiled Code
    Thanks
    ashwini

  • How to install and config Struts with oc4j?

    Hi,
    I download jakarta-struts-1.0,but I don't know
    how to install and config Struts with oc4j?Can you
    tell me the detail steps?
    Thanks!

    Follow the instructions in this link:
    http://jakarta.apache.org/struts/installation-oas.html. It's
    for Orion but should also apply for oc4j.

  • Could I try to use with OC4J another XML transformer factory than default?

    Hello, the masters of masterpieces.
    The application was written and deployed on TomCat 4.0 with standard xalan.jar and xerces.jar from Apache projects?
    I want to run it on OC4J-instance.
    Could I try to use different XML transformer factory than default with OC4J? If I use Apache's jars inside
    classpath it can't help, really: every time request goes to oracle xml-transformer. Please, any advices or
    comments. I'll appreciate every advice which can't destroy the functionality of AppServer.
    Thanks. Regards. Igor.

    Hi,
    I had this same problem where I needed Xalan (more robust). Step I took:
    1) Unjar oc4j.jar into a clean directory
    2) Modify ParserManager.properties to
    defaultParser = xerces
    3) Modify MANIFEST.MF such that xerces.jar and xalan.jar are early on the classpath
    Class -Path ejb.jar xerces.jar xalan.jar ...
    4) Then re-jar the file back up
    jar -cfm oc4j.jar META-INF/MANIFEST.MF .
    5) Copy oc4j.jar as well as xerces.jar and xalan.jar into your j2ee/home directory (making a backup of your previous oc4j.jar to play it safe).
    Larry

  • How to Bounce Apache or OC4J for OAF Development

    hi all,
    yesterday i've been trying to get answers as to why the changes i make in an OAF page does not reflect immediately. after doing research i found out that i need to bounce the apache or oc4j everytime i make changes to ui xml or class files.
    i then realized that it would be really annoying to bug our dba to bounce the apache or oc4j everytime i make changes. so i came up with this idea where i create a concurrent program and hope that maybe this can bounce the apache or oc4j for me.
    i create a shell script with the code below
    $INST_TOP/admin/scripts/adapcctl.sh restart
    exitunfortunately the script i have doesn't work and returns an error.
    01/09/10-11:49:19 :: adapcctl.sh: exiting with status 204
    ================================================================================
    01/09/10-11:57:59 :: adapcctl.sh version 120.7.12010000.2
    01/09/10-11:57:59 :: adapcctl.sh: stopping OPMN managed OHS instancei then search for codes on how to restart the apache and found this thread
    Bouncing Apache for OAF deployment
    Kali V wrote:
    Sharwan,
    Bouncing the server is different in 11i and R12, Check the following,
    To clear HTML cache and bounce Apache at R12 level :
    1.
    cd $INST_TOP/admin/scripts
    dierctory is :
    /global/oracle/your_sid/inst/apps/sid_server/admin/scripts
    here are the scripts :
    adalnctl.sh adexecsql.pl adoafmctl.sh adstrtal.sh jtffmctl.sh
    adapcctl.sh adformsctl.sh adopmnctl.sh gsmstart.sh mwactl.sh
    adautocfg.sh adformsrvctl.sh adpreclone.pl ieo mwactlwrpr.sh
    adcmctl.sh adoacorectl.sh adstpall.sh java.sh
    2.
    adapcctl.sh stop
    3.
    To clear HTML cache :
    cd $COMMON_TOP/_pages
    Direcetory is :
    /global/oracle/your_sid/apps/apps_st/comn/_pages
    Here are the java classes to clear.
    Do rm * in _pages directory after having checked there are only compiled classes in this directory
    4.
    cd $INST_TOP/admin/scripts
    dierctory is :
    /global/oracle/your_sid/inst/apps/sid_server/admin/scripts
    adapcctl.sh start
    Thanks.
    With Regards,
    Kali.
    OSSI.just wanted to know if putting this in my shell script, it will continue the process even though i get disconnected to the EBS Form? one thing i'm assuming is that if the apache is stop, i will have no access to its web / form interface.. so basically after i run the concurrent program i most likely will get disconnected.
    can anyone help me with this.
    thanks
    allen

    user12195296 wrote:
    Hi A.Sandiego ,
    You can use these steps to bounce apache in R12
    1) login to your instance with putti or any other software
    2) cd $ADMIN_SCRIPTS_HOME
    3) adapcctl.sh stop
    4) adoacorectl.sh stop
    5) adapcctl.sh start
    6) adoacorectl.sh start
    Every time you bounce apache you need to follow these steps in same sequence.
    Try This i am sure this will work
    Regards.thank you for your suggestion.
    currently my user in the unix box does not have the permission to execute these scripts which is why i went ahead and thought of creating a shell script that executes those lines of codes for me. then i will create a concurrent program in Oracle EBS which executes this script. now my concern is, if i run the program that executes the shell script, most likely i will get disconnected from Oracle EBS. my question is, will the program run in the background even though i have been disconnected from Oracle EBS?
    thanks
    allen

  • What is the difference between Apache and OC4J?

    Hi All,
    i am new to AS
    just a question in my mind
    what is the difference between Apache and OC4J?
    Thanks

    Apache is a webserver which comes with OracleAS with added Oracle modules.
    OC4J = Oracle Containers for Java
    enjoy yourself with some reading
    http://download.oracle.com/docs/cd/B14099_19/core.1012/b13994/toc.htm

  • Http Server with Oc4j

    Hi,
    I have installed oracle soa in one host and Http server in another host.(in windows 2003 server).
    I need to deploy the war files using Http server .
    I need to know, how to configure Http server with Oc4j.
    Regards,
    Latha

    BEST SOLUTION:
    Use Apache HTTPD that comes with the SOA Suite distribution. This includes a mod_oc4j which calls the OC4J installation.
    More information can be taken from the "Oracle® HTTP Server Administering a Standalone Deployment Based on Apache" guides.
    Here is one link http://download.oracle.com/docs/cd/B31017_01/web.1013/b28949/load.htm#sthref637
    MINIMAL SOLUTION:
    Implement a page redirect in your HTTP configuration.
    --olaf                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to do with OC4J

    Q: How to do Many:1, and 1:Many OR-mapping with OC4J/Jdev9i (NO
    BC4J)?
    Q: How to do SessionTracking & debuggning with OC4J?
    Q: How to do batch-updates ?
    HS

    Hi Hamid,
    I don't know the answers to your questions, but the following
    resources may be helpful (if you don't already know about them):
    NOTE: Not in any particular order.
    http://www.orionserver.com
    http://www.orionsupport.com
    http://www.atlassian.com
    http://www.elephantwalker.com
    Hope this helps,
    Avi.

  • Custom Tag in race condition with OC4J v9.0.2.0.0...

    Hello all,
    (I tried deploying my application with OC4J 9.0.3 but none of my existing
    tags worked)
    I developed a OC4J web application implementing my own tag library extension
    and found out that there was occurring a race condition to the fact that two
    users (different sessions) where accessing the same
    tag at the same time. In the offending tag implementation I only have
    instance members and not static which could also cause a
    concurrent access problem.
    I found that OC4J was reusing concurrently the same
    Tag instance when it should not do that!!!
    public class pagesIteratorTag extends BodyTagSupport {
    // only instance class members...
    public void doInitBody() throws JspException {
    System.out.println("pageSetIteratorTag::doInitBody - Tag instance value: " + this.toString() + " for user: " + this.pageContext.getSession().getAttribute("j_username"));
    public int doAfterBody() throws JspException {           
    System.out.println("pageSetIteratorTag::doAfterBody - Tag instance value: " + this.toString() + " for user: " + this.pageContext.getSession().getAttribute("j_username"));
    Note the pagesIteratorTag@2e same instance is used when it should not
    1 because the tag instance should be protected from multiple concurrent
    access even though it can be pooled and reused if it is free.
    pageSetIteratorTag::doInitBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Frank
    pageSetIteratorTag::doAfterBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Frank
    pageSetIteratorTag::doInitBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Giovanni
    pageSetIteratorTag::doAfterBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Giovanni
    pageSetIteratorTag::doInitBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Giovanni
    pageSetIteratorTag::doAfterBody - Tag instance value: com.kdlabs.fogal.tagext.pagesIteratorTag@2e for user: Giovanni
    Session for user Frank throws a null pointer exception because Giovanni's session
    started accessing the variable.
    Can anyone advise please?
    Best Regards,
    Giovanni

    First of all, you said none of your tags worked in 9.0.3. What happened? Did you do any debugging of the problem?
    Comparing the "toString()" output of your tag does not guarantee they are the same instance. That is just the output of "hashcode()", not the "pointer" to the object. The hashcode is generated from the contents of the object, not its "identity".
    I suggest you track the NPE in the debugger and get more information before you assume the container is at fault (which is still an outside possibility). SDK API Javadoc
    Object class:
    The general contract of hashCode is:
    1-. Whenever it is invoked on the same object more than once during an execution of a Java application, the hashCode method must consistently return the same integer, provided no information used in equals comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
    So, the toString() is properly returning the suffix of the object instance
    number unique for that instance and is then being reused by OC4J even though
    it is being accessed from another session thread, that must not happen and it
    is not compliant with the JSP spec.
    The other history is that when I implemented my custom tags OC4J was JSP 1.1 compliant
    and not 1.2, so after moving to 1.2 the scripting variables can be defined in XML and
    by subclassing TagInfo class, the last option doesn't work with OC4J 9.0.3, not good...
    Thanks for your help,
    I will keep trying to figure out what the problem migth be,
    Best Regards,
    Giovanni

  • Integrating Web server (eg Apache) with the application server

    I am thinking a project in which I use more static HTML files than JSPs. One way is to use an Apache server to display those HTML files (it should be faster), and deploy the JSPs into the J2EE server; another way is just simple to change the web container�s port to 80 (of the PE 8), and wrap all the files into a war file and deploy it into the application server.
    So can someone advise my which way is better? And if I use the first one, I�d like to know if it is the same way to integrate Apache with Tomcat.
    Thank you very much!

    In the past there has been a belief that the Apache web server serves static content faster than tomcat. Site managers would configure apache to deliver static content and integrate a web container to handle the dynamic content. I believe this argument is losing steam as tomcat gets better. I guess the only way you will know for sure is to deploy your application in PE 8.0 and then in an apache/web container configuration and do some benchmarking. I have no such benchmark data to compare and I base my comments on what I have read in newsgroups over the past months. Personally, I would opt for the app server only setup just to ease configuration. Others may have a different opinion.

  • Can't use sqltaglib.tld with oc4j

    I can't get sqltaglib.tld to work on oc4j(9.0.2.1).
    I've added sqltaglib.tld to default-web-app\WEB-INF, with ojsp.jar, ojsputil.jar and xmlparserv2.jar on both oc4j\lib and oc4j\j2ee\home\lib. However, I always get HTTP 500 Internal server error. The oc4j server runs JSP fine without sqltaglib.
    Do I miss anything?
    Thanks,

    Matthew,
    There should be any need to copy the jar files.
    The tld file would be under /web-inf
    Could you please check the ojspdemos which are available with oc4j standalone and test the sql tag lib examples.
    Please find the ojspdemos.ear under /j2ee/home/demo directory.
    -Prasad

Maybe you are looking for

  • I can not delete or copy new files to my Iomega external hard drive

    Hi, I can not delete or copy new files to my Iomega external hard drive. Opening hard drive folder I can see that I can not overwrite it. I have heard that I need to install some program for the external hard drive to operate properly in Mac. Please

  • Pages 5.1 not responding after updated from AppStore

    I've update my Pages app to v.5.1 in my MacBook Pro and I can't open it after updated. When I open it, it still not responding all time. I've replace Pages app with older version and it can open but I can't open my newer version document that I've ed

  • Dynamic Themes in mapinit.jsp

    Hi , How can I pass dynamic themes using mapinit.jsp , For example alongwith all the parameters like map size , basemap etc.. I want to give a new date parameter . based on the given date I need to put a where clause in my themes like where date=para

  • Custom text - help needed

    Hi Guys, I've got to design a Family Tree for a client and they want a very particular style. An arc sits at the bottom centre of the page, and inside the arc there are two names/birthdays/deaths/marriages etc. At right angles outside the arc, more n

  • Need help in Update rule coding - URGENT

    Hi Gurus,           I am creating an update rule there i need to compare some filed with the fields in inforsouce so here what should be the name used for the infosource can i use something like this read table TAB where       <fields1>       =  DATA