Deployments of BC4J using Jdeveloper3.2 on Oracle9i AS

I would like to know the deployment proceedures of deploying a BC4J to Oracle 9iAS. At present i am trying deploying BC4J from Jdeveloper directly to an oracle8i.
In future 8i is going to be used as a database with 9i as an application server.
Would appreciate the help put forth,
David.

David,
Here is a document that describes the steps in detail, following the online orders example in JDev 3.2.
Hope this helps,
Lynn
Java Tools Team
IAS 1.0.1 Installation On NT or 2000
==============================
You do not have to do an enterprise installation of IAS to make a jsp
application works. IAS enterprise editions includes Forms, Reports, Discoverer,
Oracle HTtp Server.
For running a jsp application created by oracle Jdeveloper you can just install
Oracle Http Server which is going to take about 250 MB space in your hard drive.
This is the first option Of IAS installation.
Accept all default, when asked for creating Directory Service
(Oracle Internet Directory), ignore this step. You can however
create a local net8 service to test with sql plus. IAS comes in two cds,
you will have to restart your machine when the first cd finishes,
then you will be asked to insert the second cd. after successfully
finishing the installtion, Apache http server will start automatically.
to test it, type the ip address of your machine in any browser http://ipAddress
(no port is needed to be entered)
you should see ORACLE HTTP SERVER default page.
Note: You can install IAS to any directory you want . normally it will
be in Oracle\IAS.
Sample JSP Application
======================
For this demo, we will use Online Auction Sample.
This sample comes with jdeveloper 3.1 or 3.1.1.2 installation under
samples\bc4j directory.
Open jdeveloper and go to FILE\OPEN and navigate to the samples directory
of jdeveloper to select the bc4jauctions.jws
When you open this worspace, you will see 4 projects related to each other.
(businesslogic.jpr, hotbids.jpr, jsps.jpr,setup.jpr)
Before talking about IAS here, you need to open setup.jpr and go to
BC4JAuctions.html to learn about how to run this sample in jdeveloper.
Before compiling, you need to go to jsps.jpr and open the jsp source files
and remove this statement from the IMPORT section:
oracle.jbo.common.appmgr.*,
if you left it, it will work in jdeveloper, but when you run it in the web
server, it will generate some errors that it will not be able to resolve
the appmgr.* classes.
this import is not needed.
Deploying to Sample to IAS 1.0.1
============================
After compiling and running successfully the jsp application in jdeveloper
follow the following steps:
after IAS installation, your IAS_home might look like this:
C:\Oracle\iAS
1. go to C:\Oracle\iAS\Apache\Apache\htdocs and create a folder.
Name that folder auctionDemo.
2. in Jdeveloper, select jsps.jpr and go to Project menu \ Deploy \
new Deployment Profile.
in the deployment wizard, click next and select Web Application to Web server
from the drop down list.
in step 2 of 6, browse to C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo,
(still in step 2 of 6) From file to deploy, check buildjsps.
This will deploy all the jsp and html file plus the webbeans classes,
click next, accept the defaults.
in step 5 of 6 , click next without moving the files
(this is needed only for applets),
in step 6 of 6 move all project libraries to deployed libraries,
click next then FINISH.
click YES to deploy.
After this C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo directory
will have all the following files in it:
including a folder that will be generated by the wizard.
the name of the folder is bc4jauctions and this will contain
another folder called buildjsps in which all the jsp files will be included.
jsps.jar: this contains the jsp files and the webbeans class files
Jdeveloper libraries: use winzip utility to jar these files into one
jar file and call it jdevLib.jar.
the files that need to be jarred are :
aurora_client.jar
classes12.zip
connectionmanager.zip
javax_ejb.zip
jbohtml.zip
jbojdbcpatch.zip
jbomt.zip
jboo8i.zip
jbooorasql.zip
jboremote.zip
jboremoteejb.zip
jdev-rt.zip
jndi.jar
ojc.jar
ojsp.jar
runtime.zip
servlet.jar
vbjorb.jar
vbjapp.jar
xmlparser2.jar
3. copy connections.properties file to auctionDemo. make sure you open
this file in notepad and see if the auction connection is there.
4.copy package1_Package1Module.properties file from jdeveloper_home\samples
\bc4j\bc4jauctions to
C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
5.in jdeveloper select businesslogic.jpr and go to project menu\deploy\
new deployment profile.
choose to deploy as a simple archive, click next. when asked about the archive
path , browse to C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo,
the name of the jar file will be businesslogic.jar
click next, finish then accept to deploy
6. For the images that the jsp application is using , you need to point
to webapp folder that contains them. therefore create a folder in
C:\Oracle\iAS\Apache\Apache\htdocs and call it bc4jauctions.
copy webapp folder from jdeveloper_home\samples\bc4j\bc4jauctions\webapp to
C:\Oracle\iAS\Apache\Apache\htdocs\bc4jauctions
Note: right now, your folder C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
should contain the following files:
*)jsps.jar
*)jdevLib.jar
*)businesslogic.jar
*)connections.properties
*)package1_Package1Module.properties
*)and a folder named bc4jauctions (wich has another folder called buildjsps)
7. you need to set the classpath to point to the above jar files.
to do this you need to modify the jserv.properties file of the http server.
Note: you might find duplicate jser.properties file, make sure to go to
the properties of the file by right clicking on jserv file (located in
C:\Oracle\iAS\Apache\Jserv\Conf)
and make sure that it says in TYPE of FILE: Properies file. that is the one
you need to edit.
open jserv.properties file and add these lines in wrapper.classpath section
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\jdevLib.jar
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\connections.properties
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\package1_Package1Module.properties
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\businesslogic.jar
wrapper.classpath=C:\Oracle\iAS\Apache\Apache\htdocs\auctionDemo\jsps.jar
remember that the main.jsp is inside C:\Oracle\iAS\Apache\Apache\htdocs\
auctionDemo\bc4jauctions\buildjsps
therefore to run this sample in IAS, make sure first that the Oracle Http
Server is running.If it is not running, go to the START menu
\PROGRAMS\Oracle-iAs Home\Oracle Http Server click on
start Http server powered by Apache
8. To run the auction sample in the browser, open netscape or Internet explorer
and type the following URL: http://yourIpAddress/auctionDemo/bc4jauctions/buildjsps/main.jsp
Now you can Play with it.
Cool, isn't it?
null

Similar Messages

  • Using WebLogic Server with Oracle9i RAC

    A new white paper has been posted to dev2dev -
    "Using WebLogic Server with Oracle9i RAC" at
    http://dev2dev.bea.com/products/wlserver81/whitepapers/wls_bea_hp.jsp
    Abstract:
    "This paper presents best practices when using WebLogic Server with Oracle Real Application Clusters. It includes an analysis of
    various use-case and failure scenarios and proposes possible recovery solutions. This paper also includes an evaluation of
    Transparent Application Failover, a product from Oracle that is functionally similar to WebLogic Server MultiPools."

    "satyam" <[email protected]> writes:
    Can I use WebLogic Application Server 6.0, the mid level server (not the express
    or the enterprise version)
    with VisiBroker 4.x ?If you have ejb support - then yes - although you may want to wait for
    a future 6.0 rolling patch to get updated IDL generation.
    andy

  • Remote Debug in oas 4.0.8.2 using JDeveloper3.1

    Now I can do remote debug using JDeveloper3.1 in Tomcat or WebLogic!
    But I can not do remote debug in Oralce Application Server 4.0.8.2.
    Who knows how to remote debug in OAS, mainly for how to configure OAS to support remote debug, please tell me as quickly as possible!
    I appreciate ... very much!!!!!!
    We are using JDeveloper3.1 and OAS for our business application. So we must know how to remote debug in OAS with JDeveloper3.1.

    In the JAva Environment settings for your OAS Application you should add the remote debugging name-value pairs using
    X_OPTION
    X_OPTION
    runjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    X_OPTION debug
    X_OPTION noagent
    JAVA_COMPILER NONE
    INITIAL_HEAP 32m
    MAX_HEAP 32m
    After adding the configuration start the OAS and try to connect to remote OAS VM for JDeveloper
    raghu

  • Master-detail jsp for bc4j using JBO tags

    I have created a master-detail jsp for bc4j using JBO tags. However, I can not get the correct result. There are some examples on OTN, but they are about jsp programs. How to define the relationship of the master view-object and the detail view-object?
    Thanks for your help.

    I know you're having a problem upgrading, but...
    Could you upgrade to 9.0.3 and tell us what problems you're encountering?
    Thanks.
    Sung

  • How to use SQL*loader in oracle9i???

    Hi,
    I have installed oracle9i, and want to use sql*loader to load text data into table.
    However, I can not find a tool called SQL*loader anywhere on the manu.
    It will be appreciated if some experts can give me an advice where I can find it, and how to use it to load text data.
    Thanks.
    Chuck

    When I go to tahiti.oracle.com and search on "external table", I get dozens of hits that explain how to create an external table and give numerous examples. If you have specific questions, I'd be happy to try to go into more detail. A generic SQL*Loader guide, however, would be well bayond the scope of this forum.
    http://otn.oracle.com/pls/db92/db92.drilldown?remark=&word=external+table&book=&preference=
    Justin

  • How to run using command line in oracle9i

    Hi there...I would like to know how do you a program using the command line in oracle9i JDeveloper...coz my program is processing the input typed from the user.How do you run in oracle9i Jdeveloper.

    errr Typed input would be done by typing in the console window...provided your java is waiting for keyboard input.
    If you mean as commandline parameter, then you need to modify your runtime configuration for the project.

  • IAS/BC4J using iCache

    Hi,
    I have installed iAS Enterprise Edition on solaris and am trying to change the sample Bc4J application to use iCache (which is installed and working). What I did was:
    add $ORACLE_HOME/jdbc/lib to LD_LIBRARY_PATH in jserv.propertes
    add an entry in jserv.properties wrapper.env=ORA_OCI_CACHE=1
    all of the other stuff looks fine.
    Then, I editted the submit_login.jsp and changed "jdbc:oracle:thin:" to "jdbc:oracle:oci8:"
    When logging in , I use "@tnsname" as the connection string. However, when trying to access any of the data screens, I am getting "JBO-26061" (unable to open the jdbc connection) mentioning an "SO error". What is the proper procedure for taking the sample BC4J app in iAS and converting it to use the oci drivers instead of the thin drivers?
    Much obliged!

    More info:
    The text with the JBO-26061 is:
    "Io exception: SO Exception was generated"
    Regards

  • BC4J using Tomcat DataSource: ClassCast Exception

    Hi
    need help with this problem:
    i have deployed a bc4j module to tomcat.
    the module is confgured to use an excisting datasource within the servlets context.
    everything works fine, like
    o ApplicationModule is created (using the correct Datasource on Tomcat)
    o a ViewObject is looked up by name
    but here it starts to get messy:
    executing the a query on the ViewObject leads to a ClassCast Exception (see below)
    One additional remark:
    The same code works fine, when using a Connection instead of a DataSource.
    But this is J2EE, so why not use a DataSource ?
    Thanks for any ideas
    Volker
    java.lang.ClassCastException: org.apache.commons.dbcp.DelegatingPreparedStatement
         at oracle.jbo.server.OracleSQLBuilderImpl.doStatementSetRowPrefetch(OracleSQLBuilderImpl.java:976)
         at oracle.jbo.server.DBTransactionImpl.createPreparedStatement(DBTransactionImpl.java:3346)
         at oracle.jbo.server.DBTransactionImpl2.createPreparedStatement(DBTransactionImpl2.java:425)
         at oracle.jbo.server.DBTransactionImpl.createReUsePreparedStatement(DBTransactionImpl.java:4173)
         at oracle.jbo.server.ViewObjectImpl.getPreparedStatement(ViewObjectImpl.java:7750)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:586)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:547)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:3422)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:663)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
         at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3363)
         at de.mtag.demo.server.Demo.start(Demo.java:88)

    I know it´s been a long time since you've posted this question. But did you resolve this problem ? I'm having the exact same situation here.
    Any help would be good.
    Thanks a lot,
    John

  • BC4J- using Update/delete queries??

    How do I send a delete/update query using the BC4J without iterating over the viewObject ??? -
    I would like to execute the operation at the database side.
    null

    I'm not sure exactly what you mean by executing the operation at the database side, but I'll explain a bit about how updating a view object works.
    To delete or update rows in a view object, you update the row set, then commit your changes. As you're updating the row set, the entity cache is automatically being updated, and when you do a commit(), the correct database query is generated and executed. So in effect the operation does take place on the database side.
    You could get the JDBC connection and write the update statement directly in JDBC, bypassing the business components, but you lose the transaction handling, locking, and so on that business components are giving you, so that probably isn't a good idea.
    Thanks
    Blaise

  • Bc4j using JNDI

    Hi,
    I need help please. I developed an application in jdeveloper using bc4j and it uses bc4j.xcfg for database connections. When I try to deployed it to a remote server 9iAS 9.0.3, it says deployment incomplete.
    I read in the forum that we need to modify bc4j.xcfg to make jdev use JNDI. So I modified it as follows
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="BC4JTestPKGModuleLocal">
    <AppModuleJndiName>BC4JTestPKG.BC4JTestPKGModule</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCDataSource>OracleDS</JDBCDataSource>
    <ApplicationName>BC4JTestPKG.BC4JTestPKGModule</ApplicationName>
    <jbo.project>BC4JTestPRJ</jbo.project>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="OracleDS">
    <ENTRY name="jdbc/mmrrcdb" value="java:comp/env/jdbc/mmrrcdb"/>
    </ConnectionDefinition>
    </BC4JConfig>
    I am not sure of what fits exactly in <JDBCDataSource>
    and also <ENTRY name="jdbc/mmrrcdb" ---/>
    I also added resource-ref to web.xml
    Do we need to configure anything else other than above?
    Someone please help me in solving this
    Thanks,
    Kavitha

    Hi,
    I need help please. I developed an application in jdeveloper using bc4j and it uses bc4j.xcfg for database connections. When I try to deployed it to a remote server 9iAS 9.0.3, it says deployment incomplete.
    I read in the forum that we need to modify bc4j.xcfg to make jdev use JNDI. So I modified it as follows
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <BC4JConfig>
    <AppModuleConfigBag>
    <AppModuleConfig name="BC4JTestPKGModuleLocal">
    <AppModuleJndiName>BC4JTestPKG.BC4JTestPKGModule</AppModuleJndiName>
    <DeployPlatform>LOCAL</DeployPlatform>
    <JDBCDataSource>OracleDS</JDBCDataSource>
    <ApplicationName>BC4JTestPKG.BC4JTestPKGModule</ApplicationName>
    <jbo.project>BC4JTestPRJ</jbo.project>
    </AppModuleConfig>
    </AppModuleConfigBag>
    <ConnectionDefinition name="OracleDS">
    <ENTRY name="jdbc/mmrrcdb" value="java:comp/env/jdbc/mmrrcdb"/>
    </ConnectionDefinition>
    </BC4JConfig>
    I am not sure of what fits exactly in <JDBCDataSource>
    and also <ENTRY name="jdbc/mmrrcdb" ---/>
    I also added resource-ref to web.xml
    Do we need to configure anything else other than above?
    Someone please help me in solving this
    Thanks,
    Kavitha

  • Running Oracle reports 2.5 designed using developer 2000 in Oracle9i

    We are in the process of upgrading our database from 8.0.6 to 9i (9.0.2). We have some developer 2000 reports (using reports version 2.5) that are running in AIX verion 5.1 currently. How do we run these scripts in 9i environment? Any suggested documentation from OTN or other sources would grately appreciated. Thanks.

    Check your printer setting on your unix machine.You need to install a default printer on that machine.
    null

  • URGENT: Using VB to query Oracle9i DB

    Hi,
    I have a Microsoft Visual Basic program that accesses an Oracle Database. Previously the database was an Access database and I used the Migration Workbench to migrate to Oracle. I can get an ODBC connection to the database just fine and some queries work, but whenever I do an inner join, oracle doesnt return all of the columns it should. The query works when I put it in SQL Plus, but not from my code. This is my code:
    QueryString = "SELECT * " + "FROM neworcldb10.Spectra INNER JOIN neworcldb10.CharacterizationData on Spectra.CharacterDBID=CharacterizationData.CharacterDBID where ((Spectra.Type_ = " + CStr(tmp) + "));"
    QueryData.Open QueryString, DBConnection.DBHandle, adOpenStatic, , adCmdText
    DBRow.SpectraDBID = CLng(QueryData.Fields("SpectraDBID"))
    Even though I select all the columns, the primary key column of Spectra (SpectraDBID) is not returned from the query and all others are. I get this error in VB when I get to that last line of code:
    Run-time error '3265':
    Item cannot be found in the collection corresponding to the requested name or ordinal
    Any help would be appreciated.
    Thank you,
    Malina

    First, technical questions need to be addressed to one of the technical forums. Technologies | Windows | ODBC would probably be appropriate.
    What version of the Oracle database are you using? Oracle didn't support the SQL 99 join syntax until 9i. What version of the Oracle ODBC driver are you using? You probably want to grab the latest version of the driver for your client.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Insert/Update/Delete in forms6i using Objects table in Oracle9i server

    I am using Oracle 9i server and dev 6i (forms6i).
    i have a form based on Object tables (including REF's items). when i try to insert update, delete the reocrd in the form, it gives error.
    Insert/Update/Delete failed because of OCI_22132: hexadecimal string does not corresopond to a valid REF.
    when i remove REFs items from form (not from database) then it does all functions (insert,update,delete,query).
    Actually i haved used this form with Oracle 8i and it did all functions(insert,update,delete,query). i am using the same tables and types definations in Oracle 9i but it is not working.
    Note: Insert, Update, Delete, or Query is not being done through forms when using REFs items. Others tools like sql*plus are performing the same actions very well.
    Please help.
    I will be thankful to you.
    M. Faisal.

    user563114,
    As James (padders) told you in his reply to a similar question that you posted (Typed tables is treated in the same way as a relational table?) in the Typed tables is treated in the same way as a relational table? forum, the only way you can tell for sure is to try it out both ways, measure and compare the times.
    Of-course, there are many factors that effect the time, apart from whether you use a nested table or a regular table.
    Good Luck,
    Avi.

  • Problems with CORBA deployed BC4J used by JSP app

    Hi JDev Team all is beginning to run
    , we are trying with EJB's but now we are turn to CORBA for close
    view, in a first look CORBA is more complicated than EJB's but
    the performance for EJB's is poor from our point of view, if you
    are interested in our tryings, more in a another message.
    But now in our very first probe with CORBA using the
    onlineOrders tuttorial as base, with the jars, classpaths and all
    the inner works in a ( as far we knows ) correct state, deployed
    and generated, when i try to navigate from de main.jsp (
    generated ) to, for example, CustomerView i get this error in the
    browser :
    Error Message: JBO-25008: Object SupplierView is referenced by
    SuppliedByLink. Cannot be removed
    Remember that for now we do not modify any code in the generated
    jsp's, and the tester runs OK on the deployed BC from
    onlineorders, deployed in a fresh schema created in the process
    and prepared like the tutorial says.
    We continue impressed and very very pleased in the process of
    learning JDdev 3.0 and your works :-)
    Regards, Nacho
    null

    Hi
    It is a bug discovered late but there is a workaround for this.
    The error lies in the following iine in
    oracle\DataWebBeanImpl.java am.getTransaction().reconnect(false);
    Commenting this line out solves the problem.
    Workaround Description:
    1.Extract jboHTMLsrc.zip to get
    oracle\jdeveloper\html\DataWebBeanImpl.java
    and comment out the line:
    am.getTransaction().reconnect(false);
    2. Add this file to your project or compile it and add the .class
    file to the classpath.
    regards
    raghu
    Ignacio Ortega (guest) wrote:
    : Hi JDev Team all is beginning to run
    : , we are trying with EJB's but now we are turn to CORBA for
    close
    : view, in a first look CORBA is more complicated than EJB's but
    : the performance for EJB's is poor from our point of view, if
    you
    : are interested in our tryings, more in a another message.
    : But now in our very first probe with CORBA using the
    : onlineOrders tuttorial as base, with the jars, classpaths and
    all
    : the inner works in a ( as far we knows ) correct state,
    deployed
    : and generated, when i try to navigate from de main.jsp (
    : generated ) to, for example, CustomerView i get this error in
    the
    : browser :
    : Error Message: JBO-25008: Object SupplierView is referenced by
    : SuppliedByLink. Cannot be removed
    : Remember that for now we do not modify any code in the
    generated
    : jsp's, and the tester runs OK on the deployed BC from
    : onlineorders, deployed in a fresh schema created in the process
    : and prepared like the tutorial says.
    : We continue impressed and very very pleased in the process of
    : learning JDdev 3.0 and your works :-)
    : Regards, Nacho
    null

  • EJB Deployment Error using JDeveloper3.1

    While deploying a session bean (in which I am instantiating a user defined class) to the Oracle Server 8.1.6 using JDeveloper 3.1, I am getting the following error -
    "Class not found during deserialization of descriptor".
    Why is this error coming?
    Do i need to change anything like setting any permissions to the oracle schema which i am using?
    Thanks in Advance.
    null

    When I install the same standalone OC4J version via:
    1. setting JAVA_HOME to JDK 1.4.2
    2. unpacking the OC4J zip-file
    3. running oc4j -start
    The application can be deployed.
    Does this mean that the default JDK at the time OC4J is installed can not be changed later on?!
    Regards, Ronald

Maybe you are looking for

  • Ideas for tension and compression test stand

    Hello, I currently work for a company that manufactures weigh scale devices.  A majority of the devices are either patient weight scales ( the kind you stand on at the doctors ) or a tension load cell (displays patient weight when on a lifter).  Typi

  • Attempting to include an external hard drive to my time machine backup

    I have an Apple Time Capsule that I am using as my back-up destination using Time Capsule. I have another ext hard drive (WD) that I use as an 'everyday drive'. I want to include this drive into my time capsule backup - but for some reason, this hard

  • Email on my Pre - IMAP username and password not working

    I am trying to set up my work email on my new Palm Pre.  I am using the identical settings as I did (successfully) in my Treo 755p.  IMAP server, SSL, etc.  But on the Pre I always get an error message that my username or password are incorrect.  My

  • How to find the tables corresponding to a particular field in datasource.

    Hi Experts, There are lot of extra fields in the structure like MCEKKN as compared with the table EKKN. The data in these fields are coming from some other table. So can u tell me how to find these tables corresponding to these fields? Let me be more

  • Pick List: Missing part

    Hello Experts, In our plant we release the Production order even though there is missing part.  The pick list contains all the components. Is there a way to indicate in the pick list if the part is missing? Regards Tom