10G JNDI problems

I migrated from 9.0.3 to 9.0.4 and now have the following problem. I am using the local OC4J instance. I am attempting to get the connection to the database using the following code:
try
Context ctxt = new InitialContext();
DataSource ds = (DataSource PortableRemoteObject.narrow(ctxt.lookup("jdbc/RVDS"), DataSource.class);
con = ds.getConnection();
catch (Exception ex)
ex.printStackTrace();
The stack trace is as follows:
04/04/05 12:46:36 javax.naming.NamingException: com.evermind.server.ApplicationInitialContextFactory should only be used inside Orion server environments. For client com.evermind.server.ApplicationClientInitialContextFactory or com.evermind.server.rmi.RMIInitialContextFactory should be used
04/04/05 12:46:36      at com.evermind.server.PreemptiveApplicationContext.getContext(PreemptiveApplicationContext.java:31)
04/04/05 12:46:36      at com.evermind.naming.FilterContext.lookup(FilterContext.java:138)
04/04/05 12:46:36      at javax.naming.InitialContext.lookup(InitialContext.java:347)
04/04/05 12:46:36      at MVRInit.jspService(MVRInit.jsp:35)
04/04/05 12:46:36      at oracle.jsp.runtime.HttpJsp.service(HttpJsp.java:139)
...MORE...
This was working just fine in 9.0.3, Any ideas what is happening?

Kevin -- I'm not sure why it's not working anymore. What you have there looks kind of funky -- you're doing a remote cast on a local object. The stacktrace is telling you that it's not a supported operation -- when you just construct an InitialContext with no parameters, it gives you ApplicationInitialContextFactory, which doesn't support this remote lookup and casting
If you want to get a datasource from JNDI from a servlet/ejb running in the local OC4J container, then it's actually a little bit easier to do. There's no need to do the PortableRemoteObject.narrow(string,class).
If you had a datasource defined with a location of "jdbc/RVDS", and assuming you don't want to do the fully abstract resource-ref-mapping, then you should be able to get the datasource just by doing a lookup of the initialcontext.
try
  InitialContext ic = new InitialContext();
  DataSource ds = (DataSource)ic.lookup("jdbc/RVDS");
  Connection con = ds.getConnection();
If you were running on a remote node (ie application client) and wanted to get a DS from an OC4J instance, then you'd need to use the ApplicationClientInitialContextFactory and specify a corresponding resource ref entry in the deployment descriptor and then look that up.
hope that helps
-steve-                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Oracle 10G connection problem

    Oracle 10G connection problem
    I launch my db with the following script:
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/dbstart"
    su - oracle -c "export ORACLE_HOME=/u01/app/oracle/product/10.1.0/db_1 && /u01/app/oracle/product/10.1.0/db_1/bin/lsnrctl start"
    Here is the output:
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Feb 27 22:17:51 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 188743680 bytes
    Fixed Size 778036 bytes
    Variable Size 162537676 bytes
    Database Buffers 25165824 bytes
    Redo Buffers 262144 bytes
    Database mounted.
    Database opened.
    SQL> Disconnected from Oracle Database 10g Enterprise Edition Release 10.1.0.2.0 - Production
    With the Partitioning, OLAP and Data Mining options
    Database "orcl" warm started.
    LSNRCTL for Linux: Version 10.1.0.2.0 - Production on 27-FEB-2004 22:17:59
    Copyright (c) 1991, 2004, Oracle. All rights reserved.
    Starting /u01/app/oracle/product/10.1.0/db_1/bin/tnslsnr: please wait...
    TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    System parameter file is /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Log messages written to /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    Listening on: (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Connecting to (DESCRIPTION=(ADDRESS=(PROTOCOL=IPC)(KEY=EXTPROC))
    STATUS of the LISTENER
    Alias LISTENER
    Version TNSLSNR for Linux: Version 10.1.0.2.0 - Production
    Start Date 27-FEB-2004 22:17:59
    Uptime 0 days 0 hr. 0 min. 0 sec
    Trace Level off
    Security ON: Local OS Authentication
    SNMP OFF
    Listener Parameter File /u01/app/oracle/product/10.1.0/db_1/network/admin/listener.ora
    Listener Log File /u01/app/oracle/product/10.1.0/db_1/network/log/listener.log
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=ipc)(KEY=EXTPROC))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=xavan_fi
    xe)(PORT=1521)))
    Services Summary...
    Service "PLSExtProc" has 1 instance(s).
    Instance "PLSExtProc", status UNKNOWN, has 1 handler(s) for this service...
    The command completed successfully
    But when i try to connect with sqlplus:
    oracle@xavan_fixe oracle $ sqlplus
    SQL*Plus: Release 10.1.0.2.0 - Production on Ven. Févr. 27 22:19:32 2004
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    Enter user-name: scott
    Enter password:
    ERROR:
    ORA-01034: ORACLE not available
    ORA-27101: shared memory realm does not exist
    Linux Error: 2: No such file or directory

    When you go to get connection you have to set the ORACLE_SID enviroment variable or use the service name in the string to get connection.
    Joel Pérez

  • Crazy JNDI Problem... (Third Party DB Driver Effects Lookup???) (OAS 10g)

    Ok folks, I need some help here...
    The scenario is this...
    I have a simple web app (one jsp) which is used as a "status checker" to ensure that all the session beans we expected to be deployed are actually deployed and that they can be looked up with JNDI and run some small status routine... That war file for that app is included in the ear file with all of the session ejb jar deployments...
    Now, the collection of session beans references three different datasources at one time or another... 2 of which are oracle databases and 1 is a DB2 database...
    Lets name them as follows...
    OracleDataSource1
    OracleDataSource2
    DB2DataSource
    Now, if I configure the three datasources in the oracle standalone OC4J 10g datasource file and deploy the ear file to standalone OC4J 10g, all of the lookups work, and it successfully uses the datasources... no problems at all...
    Ok, so now I try to deploy the ear on OAS 10g using the enterprise manager console, and deployment works fine...
    If I run the app before configuring the datasources, of course the lookups work, but the status routines of certains beans fail because they are not able to look up the datasources... no big deal, just start adding the datasources...
    I configure OracleDataSource1 and rerun... now things still work, the lookups for all the beans works fine, and some pass now, but others still want the other datasources...
    Now configure OracleDataSource2 and rerun... as before, things all work great but there are still complaints looking for the DB2DataSource from a couple of the routines...
    Herein lies the problem...
    I configure DB2DataSource and rerun, and boom, my program crashes claiming that the lookup of the bean failed...
    Now mind you, these beans have all been looked up numerous times during previous runs, and absolutely nothing has been changed with the application... in fact, even the beans that wanted the DB2DataSource were looked up successfully and then just complained of no datasource during their status routine execution...
    It's just that once I configure the DB2DataSource, all of a sudden my lookups don't work... I have tried commenting out a couple of the beans, and regardless of which lookups are commented out, it still fails saying it can't find any of the beans, even if the beans i'm trying to look up don't use the DB2DataSource, it doesn't seem to matter...
    The InitialContext used for the lookup uses the default "new InitialContext()" constructor and the lookups work fine when the DB2DataSource is not configured, but once it is, the lookups fail saying the objects are not found...
    I have consulted with a few other developers here, and noone can seem to understand why this behavior is happening... I have added debugging statements to print the contents of the context's environment, and it is always empty regardless of whether the lookups pass or fail...
    The ONLY difference I can see with this DB2DataSource is that it uses an external 3rd party driver... The oracle connections use a driver which was packaged with the OAS installation... I feel pretty strongly that it has to do with the driver because if I have the DB2DataSource configured (causing the failure) and then I edit that datasource to say that it should us the oracle driver, miraculously it causes the lookups to work again, except now I get the error saying the oracle driver doesn't like my DB2 jdbc url...
    I'm sorry for the long post, but I'm hoping that at least one person has encountered this before... I cannot think of any reason why the configuration of that datasource with the third party driver would cause these problems, especially when the exact same configuration and setup DOES work with standalone OC4J 10g, even with the DB2DataSource configured... ????? And the fact that the lookups work fine until that datasource is configured really blows my mind... i wouldn't think the datasource configuration should have anything to do with whether the lookups of the session beans succeed or not... hahaha...
    Any help would be great... I'm pullin my hair out here... :)
    Thanks,
    -Garrett

    No, I have not asked on the oracle forums yet... :)
    It seems that the cause is the driver itself... if I set a different driver for the datasource configuation, the lookups work but it just complains about the driver not being correct for the individual beans...
    I have found some documentation claiming that there is an OAS version of the DB2 driver, as well as a Merant version, but I can't seem to find jar files for either...
    Does anyone know where I can download the "YMdb2.jar" file? Supposedly this contains the DB2 DataDirect driver that I need...
    Thanks,
    -Garrett

  • Oracle 10g Installation Problem on SUSE Linux 10

    Hello Friends,
    I want to install SAP Solution Manager 7.0 with Oracle 10g on SUSE Linux 10.0.
    But, while starting the Installation i am getting following Errors.
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1,
    asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2009-04-22_03-59-38PM. Please wait ...
    Error in writing to directory /tmp/OraInstall2009-04-22_03-59-38PM. Please ensure that this directory is
    writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    I have checked the Permissions and the Size of /tmp Directory, which is as followed:
    drwxr-xr-x  11 root root    0 2009-04-22 21:19 sys
    drwxrwxrwt  52 root root 1824 2009-04-22 16:00 tmp
    drwxr-xr-x  15 root root  408 2009-04-19 14:43 usr
    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda10             2104376     73112   2031264   4% /tmp
    I am starting the Oracle 10g Installation within orasm7 User which is a member of dba, users, disk groups.
    The directories which are created upon starting the Oracle Installation in /tmp directory are having the situations as followed:
    drwxr-xr-x 3 orasm7   dba          128 2009-04-21 18:41 OraInstall2009-04-21_06-41-14PM
    drwxr-xr-x 3 orasm7   dba          128 2009-04-21 18:41 OraInstall2009-04-21_06-41-25PM
    drwxr-xr-x 3 orasm7   dba          128 2009-04-22 15:59 OraInstall2009-04-22_03-59-38PM
    The Oracle Installation log is as follwoed:
    Using paramFile: /home/MyData/51031676/database/install/oraparam.ini
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    The commandline for unzip:
    /home/MyData/51031676/database/install/unzip -qqq ../stage/Components/oracle.swd.jre/1.4.2.0.8
    /1/DataFiles/\*.jar -d /tmp/OraInstall2009-04-22_03-59-38PM
    I have set DISPLAY variable in this way before starting Installation:
    DISPLAY=$HOSTNAME:0.0
    export DISPLAY
    I tried to search the solution over the internet for this kind of problem, but i am not able to find its solution. Even i tried to start the Orale installation using this parameter: ./runInstaller ignoreSysPrereqs, but still it is giving the same unexpected error.
    I have a doubt on File/Directory permissions which are created for Installation in /tmp. The umask setiing of the system is 0022.
    Please, help me for this issue.
    Thanks & Regards,
    Bhavik G. Shroff

    Hi Markus,
    How are you ?
    Thank you very much for your reply.
    I was executing wrong runInstaller file. RUNINSTALLER is right file for starting the execution. But still i am facing the same error, which is as followed.
    Preparing response files. Please wait:
    ======================================
    Working on /home/MyData/51031676/database/SAP/SVRCUSTOM.RSP
    /home/MyData/51031676/database/SAP/SVRCUSTOM.RSP --> /tmp/.orainst_rsp.27450: Done
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1, asianux-2 or SuSE-10
                                          Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please wait ...
    Error in writing to directory /home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM. Please ensure that
    this directory is writable and has atleast 60 MB of disk space. Installation cannot continue.
    : Success
    SHROFF:~ # cd /home/orasm7/tmpora/
    SHROFF:/home/orasm7/tmpora # ll
    total 0
    drwxr-xr-x 3 orasm7 dba 128 Apr 22 17:25 OraInstall2009-04-22_05-25-26PM
    SHROFF:/home/orasm7/tmpora # cd OraInstall2009-04-22_05-25-26PM/
    SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM # ll
    total 4
    drwxr-xr-x 2 orasm7 dba 304 Apr 22 17:25 images
    -rwxr-xr-x 1 orasm7 dba 504 Apr 22 17:25 installActions2009-04-22_05-25-26PM.log
    SHROFF:/home/orasm7/tmpora/OraInstall2009-04-22_05-25-26PM #
    I have a doubt on tmp_netca_file & tmp_dbca_file variable.
    Please give your suggestion for the same.
    Regards,
    Bhavik G. Shroff
    Edited by: Bhavik G. Shroff on Apr 22, 2009 2:10 PM

  • Oracle 10g installation problem on RHEL4

    hi,
    I am installing oracle 10g on red hat linux. I read the complete documentation and the mailing lists and have installed all the required RPMs.
    When I start install, I get the following three errors:
    error in invoking target 'install' of makefile
    'u/01/app/oracle/ctx/lib/ins_ctx.mk'.
    error in invoking target 'agent nmo nmb' of makefile
    'u/01/app/oracle/ctx/lib/ins_sysman.mk'.
    error in invoking target 'all_no_orcl' of makefile
    'u/01/app/oracle/ctx/lib/ins_rdbms.mk'.
    This error is popped up when the link part is going on. I am installing the standard edition and have done all the possible things mentioned in the documentation.
    Can someone pls help me understand where is the problem
    thanx in advance,
    jayesh

    i had the same sequence of errors on installing (10g on Redhat AS4)
    The first error (INFO: /usr/bin/ld: crt1.o: No such file: No such file or directory
    ) is solved by installing the following package (you need the glibc-devel i386 package installed as well as the x86_64 version)
    up2date --arch=i386 glibc-devel
    The second error, I am currently stuck at (error in invoking target agent nmo nmb...of makefile ins_sysman.mk)
    INFO: /app/oracle/oracle/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o)(.text+0xa3): In function `lmsagbcmt':
    : undefined reference to `SltsPrRead'
    /app/oracle/oracle/product/10.2.0/db_1/lib32//libnls10.a(lmsagb.o)(.text+0x10a):
    Any ideas, people, please?
    Cheerio,
    Nic

  • OracleAS 10g Installation Problem on RedHat AS 3.0

    Hi
    I need to install OracleAS 10g on RedHat AS 3.0 and it seems that I need a patch (Patch 3006854) and the installation is impossible without it.I just started using oracleAS 10g and I dont have any metalink id.
    I think something is wrong here.
    a free trial version with a commercial patch !!!
    can any one please help me out.
    regards yashar

    dear fredrik
    I tried to install it according to the installation guid on http://www.oracle-base.com/articles/10g/OracleAS10gInstallationOnRedHatAS3.php as you see it asked for installation of a patch.
    and yes I tried to install it without installing this patch and I got an error saying that I am missing a file named ld.so in /etc.I thought it might be connected to that patch.
    beside when I was looking for the solution to my problem I saw many people having the same problem and asking the exact same question.
    please notify about any solution that you think might help me solving this problem. I am in a hurry
    regards yashar

  • HTML DB 10g installation problem on linux HTTP-503 ORA-604

    I have a problem after the installation of HTML DB from the linux 10g R2 companion image.
    I installed HTML DB and HTTP server in one go, on an new system that only has the default orcl database installed. I run Red Hat enterprise linux on a x86_64 system.
    The HTML DB installation took a long time, but gave no errors.
    When I access the http://hostname:7777/pls/htmldb url I get an “This server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.”-error.
    But :7777 works fine and give me the http server default page.
    In my Apache error log I see the following errors:
    [Thu Dec  8 13:28:42 2005] [error] [client 10.11.121.20] [ecid: 1134048522:10.14.66.23:28193:0:1,0] mod_plsql: /pls/htmldb/htmldb HTTP-503 ORA-604
    I looked at several internet sources, played with my marvel.conf and my dads.conf but to no avail. My oracle home is different from my html db home. There is no ./network/admin/tnsnames.ora in my HTML_DB _HOME. Should there be? One solution in the faq even told me to copy the htmldb tnsnames.ora over my db tnsnames.ora, but the installation did not create one for me.
    When should I use a dads.conf instead of marvel.conf? I don't understand the need for this second file. I tried to also use it, because some solutions and the post-installation instructions hinted on doing it. But then I get a different error in the logs about a double DAD.
    When I login through sqlplus in the orcl database with the HTMLDB_PUBLIC_USER and my password (that was created during the installation) it works, but I don't see any tables (yet?). So the account is not locked. But should I see some tables when I do “select table_name from user_tables; ?
    I probably missing something obvious here, but I'm a bit of a oracle newby.
    Any help is appreciated,
    Erik

    Thanks Diemar,
    It worked.
    I stopped all oracle process and services.
    I then logged out and in again as oracle to see if the unset stuck.
    I then started my listener, databases, isqlnet and em.
    I then started the httpd with:
    ${HTMLDB_HOME}/opmn/bin/opmnctl start
    opmnctl: opmn started
    ${HTMLDB_HOME}/opmn/bin/opmnctl startproc
    this still gave some errors and the httpd was not started:
    ias-component=HTTP_Server
    opmnctl: starting opmn managed processes...
    ================================================================================opmn id=aberlour.uni.mdx.ac.uk:6200
    0 of 1 processes started.
    ias-instance id=standalone
    ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ias-component/process-type/process-set:
    HTTP_Server/HTTP_Server/HTTP_Server
    Error
    --> Process (pid=3389)
    failed to start a managed process after the maximum retry limit
    Log:
    /mdx/app/oracle/product/10.2.0/http/opmn/logs/HTTP_Server~1
    last lines in this log where:
    05/12/08 15:18:50 Stop process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl stop: httpd stopped
    05/12/08 15:31:55 Start process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl start: execing httpd
    05/12/08 15:31:57 Start process
    /mdx/app/oracle/product/10.2.0/http/Apache/Apache/bin/apachectl start: execing httpd
    I then added the PlsqlNLSLanguage line back into the marvel.conf
    which now looks:
    AddType text/xml xbl
    AddType text/x-component htc
    Alias /i/ /mdx/app/oracle/product/10.2.0/http/Apache/Apache/images/
    <Location /pls/htmldb>
    Order deny,allow
    PlsqlDocumentPath docs
    AllowOverride None
    PlsqlDocumentProcedure wwv_flow_file_manager.process_download
    PlsqlDatabaseConnectString xxxxxx.xxxxx.ac.uk:1521:orcl ServiceNameFormat
    PlsqlNLSLanguage "ENGLISH_UNITED KINGDOM.AL32UTF8"
    PlsqlAuthenticationMode Basic
    SetHandler pls_handler
    PlsqlDocumentTablename wwv_flow_file_objects$
    PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
    PlsqlDefaultPage htmldb
    PlsqlDatabasePassword @BWIuxxxxxxxxxxxxxxxxxxxxxxid4Y4t8b9g==
    Allow from all
    </Location>
    and I started the http again, and it works fine.
    Problem solved. I will try to fine tune it so I'll get the basic LANG setting back in linux but without the .UTF-8 postfix.
    thanks for your help,
    Erik

  • Oracle 10G installation problem, and errors on SOLARIS 10 x86

    HI.
    I installed the last version of oracle 10g on a x86 SOLARIS 10 system.
    When the installer arrived at Configuration assistants, the window is stopping, and I can't see forward. But when I look at the installAction.log, the installation is checked as OK (?).
    When I launch sqlplus, and startup inside, it is said the ora-00205 error (problem with control files), and in the end, I'm really suprised there's no the database I told the installer to create at the beginning. But should I be surprised? As I didn't see really the end of the installation, and the installer didn't propose me the PATH where to install the DB, well, I guess there's something wrong.
    Could anybody tell me how to solve these problems, please?
    Thank you :)

    Two options:
    1. Create database using DBCA - execute $ORACLE_HOME/bin/dbca
    2. Create database manually (without DBCA)

  • OracleAS 10g Installation Problem on Windows2000

    I install OracleAS 10g for “Business Intelligence et Forms”
    While demanding to register for Oracle Internet Directory,
    I seize:
    host: liu-gwej0o37upx (it’s my machine’s name in that I install Oracle9i Server)
    port : 389
    then this is a message of error that the host and port art not correct.
    So I check the connection to Oracle directory manager. I have a problem’s connection with a massage: server liu-gwej0o37upx is not started. But I’m sure that my server is started.
    Thanks for someone to help me to resovle this problem
    florent

    anyone has clue

  • New version of JDev causing JNDI problems

    We just upgraded to the newest Developer Preview of JDEV and all of a sudden client code that compiled and ran fine under the old version is no longer running. I'm guessing something changed in the libraries, but I'm not sure what and why this is occurring.
    Here's what happened:
    1) It seems that the constructor for InitialContext having a parameter for Properties is no longer available. PITA...but whatever, I switched it to use the Hashtable environment which should I figured work. However:
    2) Upon switching to the new environment passage I get an exception:
    javax.naming.CommunicationException with the topmost stacked function being oracle.oc4j.security.KeyExchange.getKeyAgreement.
    I'm guessing that passing the string password into the environment is no longer acceptable?!? WTF!
    So, does anyone have any suggestions to fix this. I'm sure we should be using jndi.properties and all that jazz, but we have tons of client code that works this way and I'm not about to go changing it all unless I really have to.
    edit: I tried a sample piece of code using jndi.properties file and am getting the same exception. Maybe this is a problem between the two libraries (OC4J server & the lib on JDev??) GRRRRRRR!
    Message was edited by:
    [email protected]

    OK...turned out to be the second one. I guess the new JDEV libs aren't compatible with the older server I'm running? I just had to remove all the Jdev libraries from the project and point them to the libs within the server install.
    So...if anyone else runs into this...that's how I fixed it. Sorry I wasted y'alls time and threadspace :D.

  • Crystal Report JRC and JNDI problem

    I need to convert one of our internal web application from using Crystal Report Server 10 RAS to using Crystal Report XI Java Component (JRC). I found several examples from SAP/BusinessObjects but am stuck with a database connectivity problem.
    The basic enviornment info:
    JBoss 4.0.3 SP1
    Crystal Report JRC XI
    Windows XP/Server 2003
    JDK 1.5.x
    MS SQL Server 2005
    The error I am getting is "Error finding JNDI name (xxx)", although the application is already using the same JNDI and was able to display data on the web.
    I added debug code:
                    Context initialContext = null;
                    try {
                        initialContext = new InitialContext();
                        DataSource ds = (DataSource) initialContext.lookup("java:MYAPP");
                        String t = ds.toString();
                        log.debug(t);
                    } catch (NamingException e) {
                        log.error(e);
    I was able to get the data source successfully. The actual report file uses JDBC with JNDI named as "MYAPP". When I call the viewer, it gives
    Error finding JNDI name (MYAPP)
    message.
    Any comment or help would be appreciated.
    Thanks.

    How are you setting your connection info?
    This is what we do:
    IConnectionInfo connectionInfo = new ConnectionInfo();
    PropertyBag propertyBag = new PropertyBag();                    
    propertyBag.put("JNDI Datasource Name", reportJndiName);
    propertyBag.put("Database DLL", DATABASE_DLL); // required!!! (but we don't actually provide a DLL, or even run in windows)
    connectionInfo.setAttributes(propertyBag);
    connectionInfo.setKind(ConnectionInfoKind.SQL);
    ConnectionInfos connectionInfos = databaseController.getConnectionInfos(null);
    IConnectionInfo oldConnectionInfo = connectionInfos.getConnectionInfo(0);
    databaseController.replaceConnection(oldConnectionInfo, connectionInfo, null, DBOptions._useDefault );

  • Can anyone help with 10g install problem?

    Hi there
    I have two problems:
    1. When I try to install 10g on Windows 2003 Ent Server the installer fails with "installation failed" verify enough space, 45mb, in c:\..blah... I have 30gig free on c:\ yet the installer continues to fail. I have also run a scan on the disk for bad sectors etc. I've found a few forum comments but no solution. Any ideas? The exact message is:
    "Error writing to directory c:\docume~1\admin\..' Please ensure that the directory is writable and has at least 45mb of disk space. Installation cannot continue'
    2. I have succesfully installed 10g on XP Pro SP2 however when I launch the em I am presented with:
    "The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation"
    How do I fix this? I tried various options with no success?
    Thanks
    Ben

    After modifying the listeners.ora file to include the SID I was able to succesfully connect (see below).
    SQL> connect sys/<password>@scratch:1521/ora01 as sysdba
    Connected.
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    SQL> startup
    ORACLE instance started.
    TNSPing reports:
    Used parameter files:
    C:\oracle\product\10.1.0\db_1\network\admin\sqlnet.ora
    Used HOSTNAME adapter to resolve the alias
    Attempting to contact (DESCRIPTION=(CONNECT_DATA=(SERVICE_NAME=scratch))(ADDRESS
    =(PROTOCOL=TCP)(HOST=157.58.52.20)(PORT=1521)))
    OK (10 msec)
    However, when I go into launch the EM console via IE, I am continually presented with the following:
    The database status is currently unavailable. It is possible that the database is in mount or nomount state. Click 'Startup' to obtain the current status and open the database. If the database cannot be opened, click 'Perform Recovery' to perform an appropriate recovery operation.
    I am quite confused now. Am I missing something?
    Thanks.

  • 10g Reports Problem

    We have our application ported to 10g. After we run some reports the application server is throwing an error "REP-56055: Exceed max connections allowed: 20". We have tried increasing the maxconnect parameter in the $ORACLE_HOME/reports/conf/repservername.conf file and it works but again gives the same error after some time. Then we have to restart the reports server again. The problem what I feel is that once a report is run completely it is not getting disconnected from the reports server, due to which even if there is a single user running the reports then after the specified no of max connections the app server is throwing the same error.
    Please give some suggestions.
    Thanks in advance.

    Hi All,
    Hope YOu are fine.
    We have running Oracle Forms and Reports Services 10g on Windows 2000 Advanced Server.
    The Application Works fine, and reports are generated successfully.
    But when we access the same application by using either Linux OS (RHEL 4.0, Ubuntu 6),
    The forms works fine but Linux OS could not run the report.
    This seems to be a configuration problem.
    Any Clues.
    Thanks and Looking Forward.
    Aamer Javaid
    [email protected]

  • JDeveloper 10g video problems with Windows Vista

    Hi,
    I'm using JDev 10g 10.1.3.3 over Windows Vista with Aero active. Since I started using Vista, I have always had problems with JDev. First, the fonts in the JDev panels would mess up and the scrolling would not work well. I made some changes in the way JDev uses the JDK, I don't remember exactly what I did, but I think I made the whole JDev environment to use a newer JDK, which is not engouraged/supported by Oracle. Since then, the scrolling problem was solved. But When I run my app, Aero stops working.
    Is there a way to make JDev 10g work perfectly with Vista?
    (No, I'm not willing to migrate to 11g, for several reasons, so I need to stick to 10g for now).
    Thanks!
    Brian
    Edited by: BrianBraun on Nov 12, 2008 7:08 AM

    Try the various tips on this thread:
    Using JDeveloper on Vista - some tips

  • Oracle 10g 2 problem install on Solution manager

    Hi,
    I'm installing Sap Solution Manager 4 on Red Hat Enterprise
    Linux ES release 4 (Nahant Update 5) with Oracle 10g 10.2.0.1.0.
    I have an Oracle error message :
    /oracle/SM1/102_64/lib32//libnls10.a(lxecg2e.o)(.text+0x681): In function `lxecg2e':
    : undefined reference to `ldxdtd'
    There are a lot of message of this type with different end of message :
    /oracle/SM1/102_64/lib32//libnls10.a(lxecg2i.o)(.text+0xf0): In function `lxecg2i':
    : undefined reference to `ldxnbeg'
    But it's always a problem with libnls10.a(lxecg2i.o)....
    Someone have alreaday had this problem before?
    Thx for all.

    you should install 10.2.0.2 with latest patches.
    please read Note 871735 - Current patch set for Oracle 10.2.0

Maybe you are looking for

  • Can I copy a playlist bought from Itunes store.  So far can not see "burn" as choice under File per info

    Bought a compilation CD, 2.3 hours----323MB, and want to make a copy to play in my stereo.  (It has not AUX input so connecting the laptop is not an option) First time I've done this so put in CD-R and got message to mark the playlist and then choose

  • AXI VDMA strange behaviour tvalid and tready

    Hello everybody I'm working very hard to use AXI VDMA but there's something I can't understand. the m_axis_mm2s_tvalid and the s_axis_s2mm_tready works totally random. I'm using Vivado 2014.4 and VDMA v6.2. I'm implementing this on a zedboard. This i

  • Are earphones with built-in minc compatible with EliteBook 8440p?

    I have an EliteBook 8440p.  I need to know if earphones with mic included are compatible with this laptop. Currently, I am trying to use one with 3.5mm jack on the earphones or microphone connector.  When connected to the earphones plug, the earphone

  • Bank guarantee posting problem

    Dear All I am trying to post a bank guarantee with F-49 and F-57 and also I made relevant settings with FBKP. The Error is Customer guarantee Do not use a special GL indicator for down payments Message no. F5762 Vendor Guarantee Enter a statistical s

  • Missing/ very light tools or input cursors

    Hello - I recently migrated Illustrator CS4 to my new MacBook Air. There appears to be a bug in Illustrator now - when I select one of a variety of tools (including Type) and move it into the canvas window the cursor turns to such a light gray I can