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/

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

  • Error deploying BC4J JSP-application to OC4J

    Hi!
    I am trying to deploy a typical default generated jsp - application based on default generated BC4J components (against a simple table in an oracle 8.1.7 database) to an external oc4j - service.
    The application runs without problems in the internal JDeveloper oc4j, but when I deploy it to an external oc4j service, I get the following error:
    ++++++++++++++++++++++++++++++++++++++++++++++++
    Error Message: JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    Error Message: JBO-25029: Data class (a domain?) {0} not found
    JBO-30003: The application pool (mypackage1.Mypackage1Module.Mypackage1ModuleLocal) failed to checkout an application module due to the following exception:
    oracle.jbo.domain.DataCreationException: JBO-25029: Data class (a domain?) {0} not found
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:152)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
         at oracle.jbo.server.EntityDefImpl.loadAttributes(EntityDefImpl.java:2236)
    ## Detail 0 ##
    java.lang.ClassNotFoundException: oracle.jbo.domain.RowID
         at com.evermind.naming.ContextClassLoader.findClass(ContextClassLoader.java:185)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:30)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:136)
         at oracle.jbo.common.JBOClass.findDataClass(JBOClass.java:148)
         at oracle.jbo.server.AttributeDefImpl.loadFromXML(AttributeDefImpl.java:1922)
         at oracle.jbo.server.EntityDefImpl.loadAttribute(EntityDefImpl.java:2293)
    I am using JDeveloper 9.0.2 Production
    and oc4j 9.0.2.0.0
    Ketill

    Jump to the following link, read, and understand everything:
    Re: How to use the classes of ott generated in Visual c++
    Also, locate the C:\Jdev9i\BC4J\bin\bc4j2oc4j.bat file, make the necessary changes for the OC4J_HOME, JDEV_HOME, and JDK_HOME and run. This file should setup the BC4J libraries in your OC4J installation. Be sure your OC4J_HOME\j2ee\home\admin.jar is version compatible with the JDEV_HOME\j2ee\home\admin.jar.
    Arnold Angel
    [email protected]

  • How to deploy JSP application using inbuilt OC4J of Oracle BPEL??

    I have to combine JSP pages with BPEL and for that i have to deploy applications with the inbuilt OC4J i dont know from where to deploy the whole application and how to write build.xml for deploying using obant

    You can deploy your application to the Oracle Bpel Server by specifying a new Application Server connection that points to yout LocalBpelServer.
    You don't need to write a build.xml file, you can just use the Deployment Descriptor functionality of JDeveloper which is much more easier than using the obant.
    The process of automatically deploying your UI-application to the Oracle Bpel Server, without any manual steps or restaring the server, is fully documented on the following blog: http://iadvise.blogspot.com/

  • Deploying JSP Application that instantiate BPEL Processes

    Hi,
    I have a JSP page where I am trying to invoke a BPEL Process. I have looked at the samples, but couldn't find a dcumentation on how to deploy the application. What if I want to deploy this application on a OracleAS 10g not on BPEL Mid-tier if so what libraries do I need. Is there a document I can look at that kind of describes all this what really goes in build.xml and the application is packeaged or does the directory structure should be just like as in the samples provided. There's not enough information as it does tells you do this and you are done but how does that all work. Is there another way to deploy the J2EE application other than using obant.
    Thanks

    Create a web application and a jsp which invokes BPEL process. If you want to see an example you can refer
    OraBPELPM_1\integration\bpelpm\orabpel\samples\tutorials\102.InvokingProcesses\jsp\invokeHelloWorld.jsp
    In this code change
    Locator locator = new Locator("default","bpel"); to
    Hashtable contextProps = new Hashtable();
    contextProps.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    contextProps.put(javax.naming.Context.SECURITY_PRINCIPAL, "admin");
    contextProps.put(javax.naming.Context.SECURITY_CREDENTIALS, "welcome");
    contextProps.put(javax.naming.Context.PROVIDER_URL, "ormi://host:23791/orabpel");
    Locator locator = new Locator("default","bpel", contextProps);
    This should invoke the process.
    For this code to complile you have to set the OraBPEL libraries in the classpath. If you are using BPEL Designer JDev then it's available as a library.
    Deploy this web application in any oc4j instance.

  • 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

  • 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

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

  • Deploy JSP Application

    Can I deploy my JSP application to JRun 3.0 which supports JavaServer Pages 1.1 and the Java Servelet 2.2 API ?

    You can deploy your application to the Oracle Bpel Server by specifying a new Application Server connection that points to yout LocalBpelServer.
    You don't need to write a build.xml file, you can just use the Deployment Descriptor functionality of JDeveloper which is much more easier than using the obant.
    The process of automatically deploying your UI-application to the Oracle Bpel Server, without any manual steps or restaring the server, is fully documented on the following blog: http://iadvise.blogspot.com/

  • Deploying a jsp application in OC4J

    Hi All,
    In 9iAS Release 2, can i run a jsp without deploying it on OC4J(i.e, without creating a war file, web.xml and deploying it using the Enterprise Manager deployment wizard). I need to know if there is any other way i can run a jsp. I assume that i dont need to "deploy" a JSP if i use jserv but i would want to stick onto OC4J.
    Regards,
    Sreedhar

    In R2, this is simple if your application contains plain JSPs http://<server>:7777/j2ee/simple.jsp will run each JSP and they can be called from each other by filename. If you are deploying an app with a Java archive, you may need to follow specific deployment instructions for the archive type.
    Note: If your configuration is different, replace '7777' with whatever port Apache is at.

  • Deploying JSP application

    I have created application in JDeveloper 10g on Windows XP.
    Now I want to deploy on my Red Hat Linux based Application Server.
    Which files to copy where?

    Create a web application and a jsp which invokes BPEL process. If you want to see an example you can refer
    OraBPELPM_1\integration\bpelpm\orabpel\samples\tutorials\102.InvokingProcesses\jsp\invokeHelloWorld.jsp
    In this code change
    Locator locator = new Locator("default","bpel"); to
    Hashtable contextProps = new Hashtable();
    contextProps.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    contextProps.put(javax.naming.Context.SECURITY_PRINCIPAL, "admin");
    contextProps.put(javax.naming.Context.SECURITY_CREDENTIALS, "welcome");
    contextProps.put(javax.naming.Context.PROVIDER_URL, "ormi://host:23791/orabpel");
    Locator locator = new Locator("default","bpel", contextProps);
    This should invoke the process.
    For this code to complile you have to set the OraBPEL libraries in the classpath. If you are using BPEL Designer JDev then it's available as a library.
    Deploy this web application in any oc4j instance.

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

Maybe you are looking for

  • Error: Preset not found: '/etc/mkinitcpio.d/linux.preset' [Solved]

    Hi I tried to initial RAM disk with and got error message [root@archiso /]# mkinitcpio -p linux ==> ERROR; Preset not found: '/etc/mkinitcpio.d/linux.preset' And I found some answers but one said ALARM doesn't use an uInitrd. and another said I have

  • How do I fix distorted photos in catalog?

    I went into PSE8 Editor and clicked Edit, Preferences, Editing and inadvertantly set settings to default. Now the photos are "stretched" vertically.  How can I fix this? Thanks,   Don

  • ADF security from Datababse

    Hello , I am using JDeveloper 11.2.3.0. I am using ADF security and I am using DB tables for authentication. I created the DB authentication in th weblogic and I inserted the SQL queries in the provider configuration. In the ADF app , I enabled adf s

  • Stand-alone EJB3 Client

    My EJB is located on a remote located java application server (v9). The access code is:. System.setProperty("org.omg.CORBA.ORBInitialHost","abc.selfip.com"); InitialContext ctx = new InitialContext(); SessionUpdaterBean br = (SessionUpdaterBean) ctx.

  • Prevent start of Slideshow when pressing play/pause on keyboard

    Hello, Does this annoy anyone else? You have music playing in itunes and are working happily in iphoto and then phone rings for example. You automatically hit the pause button on the keyboard to stop itunes, but instead it starts a slideshow of the i