Porting from Oracle 10g AS to Oracle 11g Weblogic server

Hi,
I am trying to port J2EE applicatin from Oracle 10g AS to Oracle 11g Weblogic Server. I have jsp files which contains sql code embedded to fetch data from the DB. The components used in this application are Java, JSP, Servlets and Stateless session beans.
I have a commonjar which is used to create DB Connection manager and other common stuff which is present inside web-inf/lib. My application is packaged as an ear and which contains the war and different ejb-project.jar files. When the Stateless bean is trying to call the ConnectionManager class, which is present inside the commonjar inside web-inf/lib, I get InvocationTargetException. When I debugged in Eclipse, I see that that inside ejb the reference ConnectionManager, the variable cannot be resolved. So I guess at runtime, ejb is not able to locate ConnectionManager Class.
I tried to copy this jar to APP-INF/lib and the same jar is present inside web-inf/lib as well. In that case what happens is the jsp fails with the exception ConnectionManager cannot be resolved.
How can I make the ejb work by keeping the commonjar inside web-inf/lib alone.
Any help or suggestions?
Thanks
Raj

The classloader hierarchy in WLS looks like this (arrows denote inheritance direction):
Java bootstrap classloader <- Java CLASSPATH classloader <- WLS $DOMAIN_HOME/lib classloader <- Application (e.g., EAR) classloader <- web app classloader <- single JSP classloader
The Connection Manager is loaded by the web app classloader while the EJBs are loaded by the application classloader so the EJBs have no visibility to the classes loaded by the child (web app) classloader.
The simplest fix might be to move the Connection Manager jar file to the EAR file's APP-INF/lib directory.
One word of caution though, you need to be using WebLogic Server's Data Sources and JDBC connection pooling to make sure that you correct transactional behavior if the application is doing any sort of JTA transaction (regardless of whether the JTA transactions are using XA or not...).
Hope this helps,
Robert

Similar Messages

  • Convert Window Oracle 10g to Linux Oracle 11g

    HI Experts
    My current version is Oracle 10g on Window and i want to convert on Oracle 11g on Linux.
    What will be the best way to convert it ? can possible to direct convert
    or i need to be database migration from window Oracle 10g to Linux Oracle 10g and then covert from Linux Oracle 10g to Linux Oracle 11g.
    If the direct conversion is possible then please let me know the way or if u have document then please share it.
    I searched lot but i didn't get anything.....
    Thanks in advance

    What is the expected downtime duration ?
    What is the database size ?
    For a "small" database with no downtime constraint you could use Data Pump to move data.
    For a "large" database with minimum downtime you could use Oracle Streams (with Enterprise Edition) or Golden Gate (separate product: needs new licensing).
    You can find detailed migration/upgrade recommendations and scenarios on OTN database upgrade page:
    http://www.oracle.com/technetwork/products/upgrade/index.html
    Edited by: P. Forstmann on 22 mars 2013 13:03

  • Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?

    Hi all,
    I am lil bit confuse to decide about my oracle core dba certification.
    Please help me to know, as per the present requirements of the business organizations.
    ***Should I go for Oracle 10g OCA/OCP or 11g OCA/OCP Certification?***
    Hope u guys answer me earliest.
    Thanks & Regards,

    Most likely, it doesn't matter too much. I doubt that most employers are terribly concerned with what recent version of Oracle you have a certification on.
    That said, if it matters
    - What does your organization use? What are their plans to upgrade? If your company still uses 9.2 primarily and has plans to upgrade to 10.2 this year, you're probably better off with a 10g certification. If your company is already running mostly 11.2, you're probably better off with an 11g certification.
    - What do most employers in your particular part of the world tend to use? What do job postings in your particular part of the world generally list?
    Justin

  • Connect Oracle 10G XE and Oracle 9.2i Simultaneously from same machine

    Hello,
    How to Connect Oracle 10G XE and Oracle 9.2i Simultaneously from same machine using .Net Application.
    I have one application which is in .net, i want to connect it with oracle 10g XE and oracle 9.2i Simultaneously.
    it always connect only one database which is first in environment variable (path).
    please reply.

    Use SQL*Net or JDBC Connections. Looks like you are connecting using the Bequeathed connections
    Christopher Soza
    Oracle BI DBA

  • Oracle gateway for Oracle 10g DB on Windows 64 bit server

    Is there any place that I can find Oracle dateway for Oracle 10g DB on Windows 64 bit server? I can only find Gateway for Oracle 11g on Windows 32 bit server. Please help me to identify this. Thanks.

    yingkuan:
    Thanks a lot. The link tells the details. It seems that Oracle has not release Gateway for Oracle database 10.2.0.x on Windows 64 bit server. Probably they don't do it.
    So under this circumstance, if I want to install Gateway (32 bit) on Oracle 10.2.0.3 DB on Windows 64 bit server for Teradata, I probably have to install Gateway software in another Oracle Home, then configure it right. Please give more advice on this. 32 bit Gateway will work for 64 bit database?

  • Oracle 10g R2 vs Oracle 10g;;;Plz Help Me

    Hi all;
    I'm preparing my first OCA exam ; Oracle Database 10g: Administration I. I 'm doing my preparation basically from 2 books ; Sybex Book OCA-Exam and All-in-One Exam Guide book.
    Both books 're based on the first release of Oracle 10g.
    My questions 're :
    - What's the diffrence between Oracle 10g R2 vs Oracle 10g R1?
    - What's New in Oracle 10g R2 (parameters, default parameters values, features...)?
    thanks a lot,
    Best REgards,
    W
    Edited by: OracleJavaLinux on Oct 30, 2008 8:01 AM

    Well satish has given link for the difference in both the versions. I shall add to this that at this moment of writing,there is not anything which makes the exams depend on the release 2.The sybex books would be good enough but I shall recommend to attend Oracle Univ training for the same.
    You can go ahead with the exam by preparing from these books, no issues would be there.
    HTH
    Aman....

  • Oracle 10g Installation Error on Windows 2008 server

    Hi Experts,
    I have tried to install Oracle 10g via "51036975 ORACLE 10.2.0.4 Failsafe Server 3.4.1.5 Windows 2008" as per note no. Note 1303262 - Oracle on Windows Server 2008. Server is 64 bit server.
    Oracle service is not getting started and showing as "starting" in services.msc. I cant stop the service. I have taken the restart of the server as well but no luck.
    Just before the end of installation of Oracle, one pop up box named isqlplussvc opened up stating as "Failed to start the service, Error:0, the operation completed successfully".
    Can you please suggest how to handle this error and start the service?
    Regards,
    Naresh.

    Hi All,
    Yes, I started with Failsafe server CD only. After trying installing Oracle couple of times, once the service didnt went into starting mode & it couldnt start as well. Then I started going ahead with SAP installation and later I found that the service got automatically started.
    I was under the impression that the service has to be started before going for SAP installation.
    Thanks all for your replies.
    Regards,
    Naresh.

  • Connect Oracle 10g Developer with Oracle 8i database

    Is it possible to connect Oracle 10g Developer with Oracle 8i database. If possible then plz guide how i can.

    with Oracle Developer 10g 9.0.4 is no problem to connect to Oracle 8i.
    with Oracle Developer 10g 10.1.2. you need the Patch 8.1.7.4 for 8i, i think.

  • How we import oracle 10g dump to oracle 9i

    Hi
    Expert I want to import oracle 10g dump to oracle 9i
    is it possible ??????????
    but how
    Thanks
    Madhvesh

    Welcome to the forums !
    Pl post details of your OS and database versions.
    Pl see MOS Doc 1065604.1 (How to Import to lower version database or run network export with exp/imp utilities)
    HTH
    Srini

  • Cannot install Oracle 10g rel. 2 on Win Server 2003 SB

    Hello,
    I cannot install Oracle 10g rel. 2 on Win Server 2003 SB, because when the the configuration assistant installer try to copy the db files, it stop with the following errors:
    ORA-24324 Service Handle not Initialized
    ORA-24323 Value not authorized
    ORA-28547 Connection to Server failed probable Oracle NET ADMIN errorRegards
    Siyavuş

    You should be connected as a local administrator to perform the install process.
    Try to perfom a software only install, then once you make sure the installation was successful, launch the dbca. It is important for you to use a local account to perform the installation and db setup process, otherwise, if you have authentication problems, even if you comment the authentication line at the sqlnet.ora file you will be facing issues that will make fail the assistant, since it is designed to work assuming the user is OS authenticated.
    ~ Madrid
    http://hrivera99.blogspot.com/

  • Deployment of Oracle 10g Application on oracle 10g application server

    Sir,
    I am new in this forum. Please guide me how to deploy oracle 10g application on oracle 10g application server.

    Dear Ghulam,
    1)Create A new OC4j instance on Oracle 10g Application Server
    2)Deploy ur war or ear file accordingly on this OC4J.
    3)Create the datasource ie connection of application with the database
    4)Tune your Java Parameters inside the OC4J for better performance.
    The details of this is explained on the above post ie two link.
    Regards
    Fabian

  • Obiee 11g weblogic server startup problem

    [oracle@pip bin]$ ./startWebLogic.sh
    SVR_GRP =
    JAVA Memory arguments: -Xms256m -Xmx512m
    WLS Start Mode=Production
    CLASSPATH=/home/oracle/OBIEE_HOME/wlserver_10.3/server/ext/jdbc/oracle/11g/ojdbc6dms.jar:/home/oracle/OBIEE_HOME/patch_wls1033/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/home/oracle/OBIEE_HOME/jrockit_160_17_R28.0.0-679/lib/tools.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/weblogic_sp.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/weblogic.jar:/home/oracle/OBIEE_HOME/modules/features/weblogic.server.modules_10.3.3.0.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/webservices.jar:/home/oracle/OBIEE_HOME/modules/org.apache.ant_1.7.1/lib/ant-all.jar:/home/oracle/OBIEE_HOME/modules/net.sf.antcontrib_1.1.0.0_1-0b2/lib/ant-contrib.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/weblogic.jar:/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.dms_11.1.1/dms.jar:/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.jmx_11.1.1/jmxframework.jar:/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.jmx_11.1.1/jmxspi.jar:/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.odl_11.1.1/ojdl.jar:/home/oracle/OBIEE_HOME/oracle_common/soa/modules/commons-cli-1.1.jar:/home/oracle/OBIEE_HOME/oracle_common/soa/modules/oracle.soa.mgmt_11.1.1/soa-infra-mgmt.jar:/home/oracle/OBIEE_HOME/Oracle_BI1/common/jlib/11.1.2.0/ctg.jar:/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.jrf_11.1.1/jrf.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/common/derby/lib/derbyclient.jar:/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/xqrl.jar
    PATH=/home/oracle/OBIEE_HOME/wlserver_10.3/server/bin:/home/oracle/OBIEE_HOME/modules/org.apache.ant_1.7.1/bin:/home/oracle/OBIEE_HOME/jrockit_160_17_R28.0.0-679/jre/bin:/home/oracle/OBIEE_HOME/jrockit_160_17_R28.0.0-679/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/usr/X11R6/bin:/home/oracle/bin:/home/oracle/oracle/product/10.2.0/db_1/bin
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http://hostname:port/console *
    starting weblogic with Java version:
    java version "1.6.0_17"
    Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
    Oracle JRockit(R) (build R28.0.0-679-130297-1.6.0_17-20100312-2128-linux-ia32, compiled mode)
    Starting WLS with line:
    /home/oracle/OBIEE_HOME/jrockit_160_17_R28.0.0-679/bin/java -jrockit -Xms256m -Xmx512m -Dweblogic.Name=AdminServer -Djava.security.policy=/home/oracle/OBIEE_HOME/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.ProductionModeEnabled=true -da -Dplatform.home=/home/oracle/OBIEE_HOME/wlserver_10.3 -Dwls.home=/home/oracle/OBIEE_HOME/wlserver_10.3/server -Dweblogic.home=/home/oracle/OBIEE_HOME/wlserver_10.3/server -Ddomain.home=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain -Dcommon.components.home=/home/oracle/OBIEE_HOME/oracle_common -Djrf.version=11.1.1 -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger -Djrockit.optfile=/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.jrf_11.1.1/jrocket_optfile.txt -Doracle.domain.config.dir=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/fmwconfig -Doracle.server.config.dir=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/fmwconfig/servers/AdminServer -Doracle.security.jps.config=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/fmwconfig/jps-config.xml -Djava.protocol.handler.pkgs=oracle.mds.net.protocol -Digf.arisidbeans.carmlloc=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/fmwconfig/carml -Digf.arisidstack.home=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/fmwconfig/arisidprovider -Dweblogic.alternateTypesDirectory=/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.ossoiap_11.1.1,/home/oracle/OBIEE_HOME/oracle_common/modules/oracle.oamprovider_11.1.1 -Dweblogic.jdbc.remoteEnabled=false -Doracle.biee.search.bisearchproperties=/home/oracle/OBIEE_HOME/Oracle_BI1/bifoundation/jee/BISearchConfig.properties -Dweblogic.management.clearTextCredentialAccessEnabled=true -Doracle.notification.filewatching.interval=2000 -Dweblogic.security.SSL.ignoreHostnameVerification=true -DEPM_ORACLE_HOME=/home/oracle/OBIEE_HOME/Oracle_BI1 -Doracle.ecsf.crawl.mode.debug=true -Doracle.ecsf.security.service=oracle.biee.search.security.BISearchSecurityService -Doracle.ecsf.configuration.class=oracle.biee.search.services.BISearchServiceConfiguration -Dxdo.server.config.dir=/home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/config/bipublisher -DXDO_FONT_DIR=/home/oracle/OBIEE_HOME/Oracle_BI1/common/fonts -Dorg.eclipse.emf.ecore.EPackage.Registry.INSTANCE=com.sigmadynamics.emf.util.SDEMFRegistry -Dweblogic.wsee.skip.async.response=true -Drtd.instanceName=RTD_AdminServer -Dem.oracle.home=/home/oracle/OBIEE_HOME/oracle_common -Djava.awt.headless=true -Dweblogic.management.discover=true -Dwlw.iterativeDev=false -Dwlw.testConsole=false -Dwlw.logErrorsToConsole=false -Dweblogic.ext.dirs=/home/oracle/OBIEE_HOME/patch_wls1033/profiles/default/sysext_manifest_classpath weblogic.Server
    [WARN ] Use of -Djrockit.optfile is deprecated and discouraged.
    <Feb 4, 2011 3:42:09 PM IST> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Oracle JRockit(R) Version R28.0.0-679-130297-1.6.0_17-20100312-2128-linux-ia32 from Oracle Corporation>
    <Feb 4, 2011 3:42:10 PM IST> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: Unable to obtain lock on /home/oracle/OBIEE_HOME/user_projects/domains/bifoundation_domain/servers/AdminServer/tmp/AdminServer.lok. Server may already be running
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:159)
    at weblogic.management.internal.ServerLocks.getServerLock(ServerLocks.java:58)
    at weblogic.management.internal.DomainDirectoryService.start(DomainDirectoryService.java:74)
    at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:461)
    at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:166)
    at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:803)
    at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:493)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:446)
    at weblogic.Server.main(Server.java:67)
    >
    <Feb 4, 2011 3:42:10 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Feb 4, 2011 3:42:10 PM IST> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Feb 4, 2011 3:42:10 PM IST> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Edited by: user618668 on Feb 4, 2011 3:00 AM

    Hi,
    Some admin server process is still running ....so check the process using ps command and kill the process and try to start again . When you kill the process all lok file will get removed.
    Arminder
    Edited by: 838241 on Feb 20, 2011 8:48 AM

  • Need help regarding upgrading Oracle 10g Forms to Oracle 11g Fusion Middlew

    Hi All,
    I am trying to create a workshop on a VM for showing the migration / upgrading of Oracle Forms 10g to Oracle 11g FMW using the Upgrade Assistant tool available in <ORACLE_HOME>/bin/ua.bat.
    As per my understanding of pre-requisites:
    1)     I need to install Oracle SOA Suite 10g on my VM.
    2)     I also need to install Oracle SOA Suite 11g on my VM.
    3)     I need to install Oracle Forms/Reports Services 10g on my Oracle SOA Suite 10g installation.
    4)     I need to run Oracle Forms/reports installer on my Oracle SOA Suite 11g installation.
    5)     I need to run upgrade assistant tool on my VM to upgrade my form from source(Oracle SOA Suite 10g) to destination(Oracle SOA Suite 11g). Is it mandatory for this migration that I should have Oracle SOA Suite 10g and Oracle SOA Suite 11g on the same system ?
    Having all these software installed on one VM would be difficult. So just wanted to check can I avoid any software to install on VM ?
    If there is any alternative suggestion then please let me know.
    Regards,

    What do you want to do with the SOA-suite? At least for Froms10G is is not necessary.

  • Importing a few Oracle 10g schemas into oracle 11g database

    Hi,
    I have the task to import a few schemas that are on oracle 10g database (10.2.0.4) into oracle 11gR2 database (11.2.0.2). Now I have only oracle 10g export and import utility (the 11g server is in not where I am given the import rights).
    Can I do the export of the 10g schemas using the 10g export utility and then import into 11g database using the 10g import utility? I ran a test to do that and found it works but would also like to have expert opinion on it.
    Also another question is: if the source schema is 11g - suppose- in that case can the 10g export/import utility still work? I mean export the schema from say db1 (which is 11g) using 10g export utility and import them into 11g database db2 (which is again 11g) using 10g import? I am asking because I don't have access to 11g server and trying to find what I can do with the 10g utilities.
    Thanks,

    set up a database link to the 10gR2 version database in the 11gR2 database.
    Now using the 11gR2 client impdp utility use
    impdp network_link=<link to 10gR2 database>
    Done.
    Your 'objection' you don't have access to 11gR2 doesn't count as you can install a 11gR2 client.
    Also generally speaking you should not use a lower version imp to imp to a higher version database
    Also exp and imp are deprecated in 10g and higher.
    Sybrand Bakker
    Senior Oracle DBA

  • Migration from Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 Server

    I am working on migrating Oracle 9i 32 bit to Oracle 10G 64 bit on Windows 2003 from Old server to new server. We have db around 500 GB and 3 schemas. I installed Oracle 10G on new server, created tablespaces, schema's blah blah and now doing export and import at schema level from old server to new server.
    Import is taking more than 4 to 5 hours on new server. My manager is saying, window time is bit longer and he wants me to try possiblities to make this process faster. Can some one help me on this, to use the best possible method to complete this process faster?
    Will below step work, if I try?
    If I install, oracle 9i and 10g both on new server in different home directories and take the hot backup from old machine and restore on new machine in 9i home directory and use the upgrade configuration assistant from 10g and do the upgrade? Pls advice.
    Thanks in advance,
    Hari babu
    Edited by: user6367891 on Mar 2, 2010 5:28 AM

    It looks good.
    I have one question in below steps:
    To migrate an Oracle9i or older database to an Oracle Database 10g Release 1 (10.1) database for 64-bit Windows:
    1 Perform steps 1 - 11 in "Migrating an Oracle Database 10g Release 1 (10.1) Database".
    2 Shut down the database on the 64-bit computer:
    SQL> SHUTDOWN IMMEDIATE;
    3 Start the database migration:
    SQL> STARTUP MIGRATE;
    4 Migrate the database as described in Chapter 3, "Upgrading a Database to the New Oracle Database 10g Release" in Oracle Database Upgrade Guide.
    In step 4, it says, migrate database as described in chapter 3. In chapter 3, it says, to do the upgrade the process using dbca or manually. Pls confirm whether do the upgrade process after issuing startup migrate or not.
    Thanks in advance.

Maybe you are looking for