Deploy one Application per OC4J instance or multiple

Hello,
I have the following questions on deploying applications on OC4J:
1. What is the best practice for deploying applications on OC4J?
2. Should I deploy only One application per OC4J Instance or multiple applications per OC4J Instance.
3. If I decide to deploy more then one application on one OC4J Instance, for this OC4J Instance, should I increase default_island property to add the number of processes within an OC4J Instance
Thanks,
Manish

You really should read the 9iAS Performance and Tuning Guide. There is no specific recommendation. It is
highly dependent on your specific applications.
You can deploy more than one application per OC4J instance and if you have a high performance machine you will probably want to run more than one JVM per OC4J
instance. If you are running applications which create sessions and replicate state across JVM's then
you may want to create multiple islands to limit the scope of replication.

Similar Messages

  • Load balancing HTTP requests for an OC4J instance w/multiple JVMs

    Hello everyone,
    I am using OAS 10.1.3.1 and wish to load balance HTTP requests across an OC4J group of one or more OC4J instances, where each like named OC4J instance may have multiple JVMs or it may just have one JVM.
    My mod_oc4j.conf file would contain the following directives :
    Oc4jSelectMethod roundrobin:local
    Oc4jRoutingMode Static
    Oc4JMount /xyz/* xyz
    In the degenerate case, I would like to have an OC4J group with a cluster size of one, and have that one OC4J instance have two or more JVMs. I would like to be able to receive a request within my web application, determine that the JVM that has been sent the request is the wrong JVM to process the request, and then call HttpServletResponse.sendRedirect("/xyz"). Then, when the browser receives the HTTP 302 response and issues the subsequent HTTP request, have that request sent to a different JVM than the previous JVM that issued the sendRedirect().
    What I have seen is that the subsequent request is sent back to the same JVM that issued the sendRedirect(). I also call invalidate() against the HttpSession prior to calling sendRedirect(), but that does not seem to affect the behavior that I see.
    In the full blown case, I would have an OC4J group with a cluster size > 1, and each of those OC4J instances would have at least one JVM. In that case, I wish the sendRedirect() call to allow the subsequent request to be sent to any one of the OC4J instances in the group, and any one of those JVMs within all of those OC4J instances.
    Can anyone verify that my mod_oc4j mount directive is appropriate given the select method and routing mode? What else might I need to do to have a chance to have a different JVM respond to the request that results from a sendRedirect()?
    Thank you,
    Doug

    I should clarify that in the full blown environment, the OC4J instances that form a group will each be housed within a separate OAS instance that resides on its own machine.
    So ideally, a request could be inbound to say OAS instance 1 on machine A, OC4J instance AA, JVM 2, and I need to force a redirect so that the request can actually be serviced by OAS instance 3 on machine C, OC4J instance AA, JVM 1, and I need to be able to call sendRedirect() against an HttpServletResponse from within a JVM until the subsequent request from the browser, Internet Explorer in my case, is serviced by that JVM.
    Thanks,
    Doug

  • I have deployed one application containing youtube video but it is not working pls help

    I have deployed one application containing youtube video but it is not working pls help Application is build using struts2 and is deployed in oracle cloud, login page works fine but the success page is not displayed please help

    Hello,
    A wild guess, given the lack of details:
    I wonder whether it would violate the http://en.wikipedia.org/wiki/Same-origin_policy ?
    This is part of the security infrastructure.
    "Stealing" content to insert it anywhere else might also violate copyrights?
    Technically, does it at least work "on premises" onto WLS 10.3.6?
    Regards
    Patrick.

  • Multiple BC4J apps deployed in single 9iAS OC4J instance

    Deploying my BC4J/UIX applications in a single Oracle 9iAS 9.0.2 OC4J instance, causes some of my applications not to find their BC4J configurations. After restarting the OC4J instance some applications start to find the configurations, while some lose the ability arbitrarily. When I deploy each of them in a different OC4J instance, then everything works fine.
    The problem appears also at my client's site. My client has all the latest patches applied to the 9iAS server and they can't afford upgrading to 10g or running every application in separate OC4J instance.
    The BC4J/UIX applications are developed with JDev 9.0.3.4. and the BC4J and UIX libraries of the application server are updated to the versions of JDev 9.0.3.4. My development Oracle9iAS runs on Windows 2000 and my client has it on Sun Solaris.
    The error trace I get from applications that can't find the configuration looks like this:
    oracle.jbo.JboException: JBO-26034: Cannot find Configuration with name :LoginAM
         at oracle.jbo.uicli.mom.JUMetaObjectManager.getSessionDef(JUMetaObjectManager.java:401)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.createPool(JUMetaObjectManager.java:509)
         at oracle.jbo.http.HttpContainer.findSessionCookie(HttpContainer.java:636)
         at oracle.cabo.data.jbo.servlet.RootAppModuleRegistryImpl.getSessionCookie(Unknown Source)
         at oracle.cabo.data.jbo.servlet.RootAppModuleRegistryImpl.useRootAppModule(Unknown Source)
         at oracle.cabo.data.jbo.servlet.RootAppModuleRegistryImpl.useRootAppModule(Unknown Source)
         at oracle.cabo.data.jbo.servlet.RootAppModuleRegistryImpl.useAll(Unknown Source)
         at oracle.cabo.data.jbo.xml.parse.JboParserExtensionImpl$JboPageDescription.renderStarted(Unknown Source)
         at oracle.cabo.servlet.ui.UINodePageRenderer.renderPage(Unknown Source)
         at oracle.cabo.servlet.AbstractPageBroker.renderPage(Unknown Source)
         at oracle.cabo.servlet.PageBrokerHandler.handleRequest(Unknown Source)
         at oracle.cabo.servlet.UIXServlet.doGet(Unknown Source)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:244)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:59)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:283)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:523)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.AJPRequestHandler.run(AJPRequestHandler.java:151)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Best Regards!
    Mihkel Nõges

    Is deploying multiple BC4J applications in single OC4J instance supported?

  • EJB 3.0 Cache Issue With OC4J Instance With Multiple JVM's

    I created an EJB 3.0 project in JDeveloper 10.1.3.3.0 and everything works fine in the embedded OC4J server. I am deploying the application to an OC4J instance consisting of 3 Java Virtual Machines in Oracle Application server 10.1.3 and seem to be getting a different persistence context for each virtual machine. i.e. I'll have 3 browsers that can view the same data even after updating, another 2 browsers that can't see the first 3's changes but can see changes by any browser in this group, etc.
    I tried adding the below to the persistence-unit tag in the persistence.xml but it didn't seem to help.
    <properties>
    <property name="toplink.cache.shared.default" value="true"/>
    </properties>
    How do you get all connections to use the same cache?

    here is the code for my bean.
    package com.ups;
    import java.util.logging.Logger;
    import javax.ejb.ActivationConfigProperty;
    import javax.ejb.EJBException;
    import javax.ejb.MessageDriven;
    import javax.ejb.MessageDrivenContext;
    import javax.jms.JMSException;
    import javax.jms.Message;
    import javax.jms.MessageListener;
    import javax.jms.TextMessage;
    * Message-Driven Bean implementation class for: MessageBean
    @MessageDriven(
              activationConfig = { @ActivationConfigProperty(
                        propertyName = "destinationType", propertyValue = "javax.jms.Queue"
    public class MessageBean implements MessageListener {
         private MessageDrivenContext mdc;
    * Default constructor.
    public MessageBean() {
    // TODO Auto-generated constructor stub
    * @see MessageListener#onMessage(Message)
    public void onMessage(Message message) {
         TextMessage tmsg = null;
    try {
    tmsg = (TextMessage) message;
    System.out.println("MESSAGE BEAN: Message received: " + tmsg.getText( ));
    System.out.println ("The onMessage() is called");
    } catch (JMSException e) {
    e.printStackTrace( );
    mdc.setRollbackOnly( );
    catch (Throwable th) {
    th.printStackTrace();
    public void ejbRemove( )throws EJBException{
         System.out.println("ejbRemove() is executed >>>>>>>");
    I have configured my JMS Distributed queue in the Weblogic.
    If possible please provide more details so that I can get rid of this error as soon as possible.
    Thanks for reply.
    Piyush

  • Deployment getting failed in OC4J Instances

    I am trying to deploy my application in the OC4J instance(Oracle Enterpise Manager 10g) .But it is getting failed every time. Following is the Error stack from log file:
    oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\DDRWSAppV1.0-DDRWSV1.0-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :java.lang.InstantiationException : service endpoint implementation class: 'ddr.ddrws.DDRGetRetailInvItemDayWSUser' not found
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:214)
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
    08/02/11 23:07:11      at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
    08/02/11 23:07:11      at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
    08/02/11 23:07:11      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    08/02/11 23:07:11      at java.lang.Thread.run(Thread.java:595)
    08/02/11 23:07:11 Caused by: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\DDRWSAppV1.0-DDRWSV1.0-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :java.lang.InstantiationException : service endpoint implementation class: 'ddr.ddrws.DDRGetRetailInvItemDayWSUser' not found
    08/02/11 23:07:11      at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:98)
    08/02/11 23:07:11      at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8403)
    08/02/11 23:07:11      at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5465)
    08/02/11 23:07:11      at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5394)
    08/02/11 23:07:11      at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5333)
    08/02/11 23:07:11      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:645)
    08/02/11 23:07:11      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
    08/02/11 23:07:11      at com.evermind.server.Application.getHttpApplication(Application.java:512)
    08/02/11 23:07:11      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
    08/02/11 23:07:11      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
    08/02/11 23:07:11      at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
    08/02/11 23:07:11      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
    08/02/11 23:07:11      ... 8 more
    08/02/11 23:07:11 WARNING: DeployerRunnable.run java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\DDRWSAppV1.0-DDRWSV1.0-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :java.lang.InstantiationException : service endpoint implementation class: 'ddr.ddrws.DDRGetRetailInvItemDayWSUser' not foundoracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\DDRWSAppV1.0-DDRWSV1.0-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :java.lang.InstantiationException : service endpoint implementation class: 'ddr.ddrws.DDRGetRetailInvItemDayWSUser' not found
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:126)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnable.java:52)
         at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:81)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.InstantiationException: Error compiling :D:\product\10.1.3\OracleAS_1\j2ee\home\applications\DDRWSAppV1.0-DDRWSV1.0-WS\WebServices: Error instantiating compiler: webservice artifact generation failed :java.lang.InstantiationException : service endpoint implementation class: 'ddr.ddrws.DDRGetRetailInvItemDayWSUser' not found
         at com.evermind.server.http.WrapperClassGenerator.generateWebServiceArts(WrapperClassGenerator.java:98)
         at com.evermind.server.http.HttpApplication.generateWebServiceArtifacts(HttpApplication.java:8403)
         at com.evermind.server.http.HttpApplication.populateLoaderWithWebServicesDeploymentCache(HttpApplication.java:5465)
         at com.evermind.server.http.HttpApplication.populateLoader(HttpApplication.java:5394)
         at com.evermind.server.http.HttpApplication.initClassLoader(HttpApplication.java:5333)
         at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:645)
         at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
         at com.evermind.server.Application.getHttpApplication(Application.java:512)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite.java:1975)
         at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
         at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
         at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
         at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
         at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
         at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
         ... 4 more
    Please help me in solving the above problem.
    Thanks in Advance
    Vikram

    A strange find that I came up with is, I have sixteen web services, when I try to deploy them,through JDeveloper 10.1.3.2 to OC4J instance. Deployment is getting failed. But when I am deploying it with 15 web services only, deployment is sucessful.
    Please help its urgent
    -Vikram
    Message was edited by:
    KoVik

  • Deploying ADF Application to OC4J Using Jdeveloper

    I tried to deploy an application to standalone OC4J using Jdeveloper, through a process similar to this:
    Deploying a Web Application
    http://www.oracle.com/technology/obe/obe1013jdev/10131/deployment/deployment.htm
    [making WAR for view-controller, JAR for model, and EAR in a new project]
    First I got some errors relating to Apache Log4J jars (org/apache/log4j/Category). The problems are talked over in this forum and oc4j forum. I had to download apache-log4j-1.2.15.zip and add the jar file manually to the project and remove the checks in the WAR file descriptor.
    The application was deployed after some attempts successfully, but, now the first page that appears after launching the application is my Home.jspx which is not the same page which comes up when I use embedded OC4J to run the application. The Home.jspx is blank and when I enter a link manually:
    http://farbod:8888/TestApp/faces/pages/Employees.jspx
    instead of http://farbod:8888/TestApp/faces/pages/Home.jspx
    I receive this error:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Is there anything wrong with my deployment?
    (I just mentioned my initial problem with deployment to know if that gives a clue.
    I am using JDeveloper 10.1.3.3, OC4J 10.1.3.3)
    Thank you in advance.
    Farbod

    Hi,
    hard to say from the error message. What if you create a EAR file that includes the WAR file and then deploy it through Enterprise Manager in OC4J ? Also, having a separate deployment project bears the risk fo missing dependencies. Ensure that the project has the project's dependency property set to all contributing projects
    Frank

  • Deploying JSP Application in OC4J

    Hi Experts,
    Here is my query.
    I have developed a small application containing around 40-50 JSPs. Its developed using Only JSPs & nothing else.
    I use external JARs like *"jakarta-poi-1.5.0-FINAL-20020506.jar", "fileupload.jar"*. This application was testing & run successfully in Apache Tomcat 5.x Server in Window 2003 Server Platform.
    I'm using OC4J which comes with OBIEE Report tool (Oracle Business Intelligence Enterprise Edition) to deploy this application. I'm not sure where these JSPs are to be placed & the JARs used by the JSPs. Kindly help me out on this.
    Thanks,
    Venky

    Hi
    you need to create WAR file or EAR file and deploy to oc4j using Oracle Enterprise manager(OEM ) or command line deployment.
    Please look into following blog to follow the EAR or WAR file structure
    http://soabpel.wordpress.com/2009/03/01/j2ee-enterprise-archive-ear-web-application-war-webservices-war-file-structure/
    please look into following blog to deploy EAR or WAR files into Oc4J using OEM
    http://soabpel.wordpress.com/2009/03/02/oracle-10g-application-server-create-oc4j-deploy-war-deploy-ear-files/
    if your application already working in Tomcat then go to your application under Webapps in TOmcat, use jar utility to create WAR file
    --Webapps
    ----<your application>
    jar -cvf *.* yourapp.war
    Thanks
    Seshagiri.Rayala
    http://soabpel.wordpress.com/

  • Is anyone deployed forms application to OC4J? let me know how that works

    Hello Everyone,
    I am new to OC4J and I am trying to learn about deploying forms applications .fmx files to Oracle Application Server (OC4J). Can someone who had tried this tell me how to go about it.
    Please feel free to e-mail me at [email protected] if that is convenient for you.

    Hi,
    System will pick up the condition record for each condition type based on the access sequence assineg to that consition type.
    For e.g.
    Condition type PB00
    We have access sequence (0002 )for this condition type so system willl first search for condition record maintained for outline agreement (plant specific) then for contact then inforecord.
    System goes in this sequence. Also we have exclusive indicator so when it finds the condtion record for first access sequnce then its stops and it wil not search the next condition record.
    So if i have maitained condition record for contract and also for info record system will take price from contract and not from info record baased on this sequence for given validity period.
    Regards,
    Shailesh

  • How to deploy an application in OC4J standalone?

    I'm trying to deploy Jspell 2004 in a standalone OC4J 10g. All my attempts have failed thus far, as I admit, I don't really know what I am doing.
    I've found several articles, including those from Jspell, and they all start with 'deploy the war file' but how?
    I don't know where I should deploy the WAR file or exaclty which config files I need to modify. I've tried under OH/j2ee/home/applications, OH/j2ee/DevSuite/application-deployments and always get the 'Error instantiating web-application' no application found on server.'
    I'm using the OC4J strictly for forms/reports running on port 8889 and that all works fine. When I start the OC4J, it is referencing the server.xml file in the DevSuite/config folder.
    Any ideas?

    Please look at the OC4J FAQ
    http://www.oracle.com/technology/tech/java/oc4j/904/collateral/oc4j-faq-904.html#oc4j_deploy
    Yes. If you wish to deploy only a Web module then you can utilize the default application OC4J is configured with. This is a two step task:
    First, tell the container about the WAR file to be deployed. Open the <J2EE_HOME>/config/application.xml file in an editor. Add a new <web-module> tag and specify the attributes for your WAR file.
    <web-module id="HRWebModule" path="<PATH-TO-WAR-FILE>"/>
    Secondly, tell the OC4J HTTP server about the new WAR file and provide a URL to access it. Open the <J2EE_HOME>/config/http-web-site.xml file in an editor. Add a new <web-app> tag and specify the attributes for your new Web module. It's important to note that the application attribute must specified as "default" since you have deployed your Web module to the default application. The name attribute should match the ID attribute you specified for the Web module.
    <web-app application="default" name="HRWebModule" root="/hrweb" />
    The WAR file will now be deployed by OC4J and accessible using a URL of /hrweb.
    -Debu
    http://debupanda.com

  • How to create separate log files for each deployed web application in oc4j

    Hi All,
    I am using Windows2000, Oracle9iAS(OC4J). Say I have deployed 3 web applications onto this oc4j server. Then how to create 3 different log files so that I can see the log messages(System.out.println's) of each of these web appliations in a different log file.
    Thanks and Regards,
    Ravi.

    Where do the messages printed via ServletContext.log() go? Is this configurable separately by web application? If so, you could at least replace your System.out.println() with sc.log() statements. For exceptions, you could trap them and log them since the log() method takes a throwable as well as a String.
    John H.

  • Deploying web application to OC4J  - servlet class not found

    Hi,
    Im trying to deploy war file with web application,
    that I run before on Tomcat.
    During deployment procces everything seems to be OK.
    But when I try to log on web, I get 500 error...
    log file:
    07/07/12 15:10:14.562 webapp1: Servlet error
    javax.servlet.ServletException: Error instantiating servlet 'org.apache.jsp.index_jsp'. Servlet class org.apache.jsp.index_jsp not found in web-application webapp1
    where org.apache.jsp.index_jsp is path from web.xml and servlet index_jsp.class is in
    Web-Inf/classes/org/apache/jsp/ dir.
    Any Idea?
    Thanks a lot.
    H.

    Hi Steve,
    thanks for your answer, because my question is quite stupid, I know.
    But I'm not so much interested in pre-translated jsp files dependences on java container.
    Yes, my application use some parts of catalina lib, but I would like to just get index.jsp
    and this compiled class (org.apache.jsp.index_jsp.class) is "catalina lib free" I think?
    Or should I change my build.xml?
    Thanks.
    H.

  • Deploying Application in OC4J 1013 using Ant

    Hello All
    I am trying to deploy my application in OC4J 1013 container using Ant. I am getting
    /view/webappdev3_cruise_view/vobs/Apps/eTA/build_deploy_appl.xml:26: Execute failed: java.io.IOException: /oracle/apps/product/dev/sso/1013/opmn/bin/opmnctl: cannot execute
    I have attached my build.xml file. Please let me know what could be the reason for this.
    Thanks
    Sri
    Edited by: user3539708 on Oct 15, 2009 6:57 PM

    Denis -- This sounds like maybe the RMI port that you are using to connect is the one used by the home instance. Have a look at the other instance you deployed it to and see what RMI port it is using.
    Thanks -- Jeff

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

  • Deleting the  Shared library in oc4j instance of Oracle Application Server

    Hi Friends,
    I am using Oracle Application Server (10.1.3.4.0). I have some system level shared libraries. When i am deploying the application in home instance the application is deploying fine, but when i create an another instance using the default group i am getting two more system level shared libraries that are not present in the home instance. Because of this two shared libraries i am not able to deploy the application.
    Is there a way to delete the system level shared libraries. If so provide the related information. If there is any other alternative solution provide me that also. This is very urgent to me. Please help me in resolving this issue.
    Thank You,
    Ravi kumar.

    Hi Shail,
    i referred the link you have sent it was helpful to me, but the thing is while deleting the shared library apache.webservices it is saying the shared library is in use. When we brought down the Application Server and try to run the removeSharedLibrary command we got other error.
    Error: "Failed at "Could not get DeploymentManager".
    This is typically the result of an invalid deployer URI format being supplied, the target server not being in a started state or incorrect authentication details being supplied.
    Is the way which i have done is correct ?? Please reply me.
    Thank You,
    Ravi kumar.

Maybe you are looking for