Urgent : Unable to create VALID Initial Context

Hello All,
I am trying to learn JNDI and am using file system service provider which is provided by the sun
I have created the setup directories, but it would not work if I set up those directories on the drive other than C.
The following lines work for C drive :
Hashtable env = new Hashtable(11);
env.put(Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.fscontext.RefFSContextFactory");
env.put(Context.PROVIDER_URL,
"file:/tmp/tutorial");
try {
// Create the initial context
Context ctx = new InitialContext(env);
// Get listing of context
NamingEnumeration list = ctx.list("awt");
// Go through each item in list
while (list.hasMore()) {
NameClassPair nc = (NameClassPair)list.next);
System.out.println(nc);
// Close the context when we're done
ctx.close();
} catch (NamingException e) {
System.out.println("List failed: " + e);
As you all might have guessed this is code from straight from JNDI tutorial. But How do I specify some directory on drives other than C.
Please help : I tried the follwing
env.put (Context.PROVIDER_URL,
NAME);
In place of NAME above I tried the following
"file:///I:\tmp\tutorial"
"I:\tmp\tutorial"
and other silly combinations
****** awt is a directory under "I:\tmp\tutorial"

I wish It would have been pretty ?
But damn it, it doesn't work
I gave something like this
env.put(Context.PROVIDER_URL, "file:///I:/tmp/tutorial");
and the error come like this
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/jndi/toolkit/chars/CharacterDecoder
at com.sun.jndi.fscontext.RefFSContextFactory.createContext(RefFSContextFactory.java:42)
at com.sun.jndi.fscontext.RefFSContextFactory.createContextAux(RefFSContextFactory.java:47)
at com.sun.jndi.fscontext.FSContextFactory.getInitialContext(FSContextFactory.java:49)
at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
at javax.naming.InitialContext.init(Unknown Source)
at javax.naming.InitialContext.<init>(Unknown Source)
at List.main(List.java:53)
If you have any idea whats happening, I would really appreciate

Similar Messages

  • Urgent Unable to create the Instance and reconfiguration of planning

    Hi All
    we are using hyperion 9.3.1 for planning. Long time back we did installation and had some applications on different planning instance.
    Now we need to create a new application then we are trying to create the application but we are unable to create becasue instanse is not there, so we are planninng to create a instance by using configuration utility.
    while we are doing configuration at the first step i am unable to fine the product panel Planning is not available.
    Can any one have the answer??
    Thanks in Advance..
    Rao

    Not sure if this Planning Option Not Visible in Configuration Utility will help you, have a look and let us know.
    Cheers
    John
    http://john-goodwin.blogspot.com/

  • Unable to Create Validations

    I am in Data Manager in Record Mode. I am trying to create validations.
    In the record detail area, I selected Validations tab. In the validations tab, I right click to select "Add Validation"
    Immediately after  that I got error message stating "Error Saving Validation" "Field not Found <0xFFAA1000> Version 7.1(7.1.04.131).
    I am not sure what is the reason for this error.
    Can any one share some tpis, Please.

    Hi SudhaViz,
    This problem will be solved after repair your repository from the MDM Console.
    Please find similar thread with same issue:
    Re: Error while create/change Validation/Assignment after upgrade to MDM 7.1
    Also, please  refer the solution of this SAP NOTE 1433625:
    https://websmp130.sap-ag.de/sap/support/notes/1433625
    Regards,
    Mandeep Saini

  • Error con Initial Context

    I was running the example that this in the tutorial but I am having problems.
    The code is:
    public static void main(String[] args) {
              String name = "autoexec.bat";
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY,
                   "com.sun.jndi.ldap.LdapCtxFactory");
              try {
                   // Create the initial context
                   Context ctx = new InitialContext(env);
                   // Look up an object
                   Object obj = ctx.lookup(name);
                   // Print it
                   System.out.println(name + " is bound to: " + obj);
              } catch (NamingException e) {
                   System.err.println("Problem looking up " + name + ": " + e);
    And the error is:
    Problem looking up autoexec.bat: javax.naming.CommunicationException: localhost:389 [Root exception is java.net.ConnectException: Connection refused: connect]

    you are trying to connect to an LDAP directory server, but obviously there is no such server running on your machine.
    If you want to work with LdapCtxFactory, you need an LDAP server, e.g. openldap, which is included in most LINUX distributions (see also www.openldap.org).

  • Authentication of Initial Context

    When creating an initial context from a client does providing a username,password effect whether the initialContext is created (i.e it fails if enter invalid username,password) or only come into play when looking up beans and then invoking methods on them?
    (Using weblogic application server it does prevent creation of initial context, but doesn't seem to with OC4J Devlopers Release)
    example code ...
    Hashtable env = new Hashtable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
    env.put(Context.PROVIDER_URL,"ormi://localhost:23791/symularity");
    env.put(Context.SECURITY_PRINCIPAL, "testuser");
    env.put(Context.SECURITY_CREDENTIALS,"123456");
    Context initial = new InitialContext(env);

    I faced the same problem. I raised it with oracle support but I could not get much help.
    However, if your intention is establish your credentials, you can use RoleManager. Check documentation for com.evenmind.security.RoleManager.

  • Oracle Database 11.2 Post-Upgrade error: ORA-01658: unable to create INITIA

    Hi,
    While upgrading of database 11.1.0 to 11.2.0, i am getting the below errors.
    SQL> @$ORACLE_HOME/rdbms/admin/utlu112s.sql
    Oracle Database 11.2 Post-Upgrade Status Tool 12-28-2011 23:26:45
    Component Status Version HH:MM:SS
    Oracle Server
    . VALID 11.2.0.1.0 00:33:27
    JServer JAVA Virtual Machine
    . VALID 11.2.0.1.0 00:14:04
    Oracle Real Application Clusters
    . INVALID 11.2.0.1.0 00:00:01
    OLAP Analytic Workspace
    . VALID 11.2.0.1.0 00:00:40
    OLAP Catalog
    . VALID 11.2.0.1.0 00:02:00
    Oracle OLAP API
    . VALID 11.2.0.1.0 00:00:32
    Oracle Label Security
    . OPTION OFF 10.2.0.3.0 00:00:00
    Oracle Enterprise Manager
    . LOADING 00:00:00
    Oracle XDK
    . VALID 11.2.0.1.0 00:01:10
    Oracle Text
    . VALID 11.2.0.1.0 00:01:52
    Oracle XML Database
    . VALID 11.2.0.1.0 00:04:49
    Oracle Database Java Packages
    . VALID 11.2.0.1.0 00:00:28
    Oracle Multimedia
    . VALID 11.2.0.1.0 00:12:37
    Spatial
    . INVALID 11.2.0.1.0 00:09:51
    Oracle Application Express
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-00942: table or view does not exist
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-00942: table or view does not exist
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-00942: table or view does not exist
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . ORA-01658: unable to create INITIAL extent for segment in tablespace HTMLDB
    . INVALID 3.2.1.00.10 00:33:43
    Gathering Statistics
    . 00:44:43
    Total Upgrade Time: 02:40:35
    PL/SQL procedure successfully completed.
    Please help me on this.
    Thanks,

    Vinod Ranjan wrote:
    Hi sb92075,
    Thanks for quick update,
    So is this related error is related to HTMLDB tablespace ?yes
    >
    Is this solution will workout?It depends upon actual size of new datafile added.
    So do as directed & report the results.
    What is current size of HTMLDB datafiles?
    >
    + Use ALTER TABLESPACE ADD DATAFILE to add additional space to the+
    + tablespace or retry with a smaller value for INITIAL +
    Thanks,
    Edited by: Vinod Ranjan on 31 Dec, 2011 7:43 AM

  • Module: AppleODClientLDAP - unable to open connection to LDAP server - unable to create connection context

    Hi everybody,
    I'm running in an urgent problem, because binding to my OpenDirectory got lost. I've lots of "Module: AppleODClientLDAP - unable to open connection to LDAP server - unable to create connection context" messages in the system.log and OD service stoppped running. In the OD-section no server is listed any longer and all buttons are greyed. All network users for sure are not available, but all other services are up. I didn't changed anything to the existing services but started with the netinstall config. I got the following entries in the systemlog
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: server name macminiserver.homenet
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: interface en0: ip 192.168.0.11 mask 255.255.255.0
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: subnets: Failed to convert 'domain_search': Empty array
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: re-reading configuration
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: shadow file size will be set to 48 megabytes
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: age time 00:15:00
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bsdpd: no NetBoot images found
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: bootpd: NetBoot service turned off
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: DHCP REQUEST [en0]: 1,0:1b:77:36:47:f6 <NB01>
    Jun 19 00:35:30 macminiserver.homenet bootpd[95005]: ACK sent NB01 192.168.0.107 pktsize 304
    Since these logentries appeared, no network users and groups are available anymore. I'm running OS X ML 10.8.3 and DNS is fine.
    Are there any steps to perform to get LDAP working again? With all buttons in the server admin OD section greyed out I even can't setup a new directory.
    BR
    Jens

    I was able to restore the existing server with the automatic OD backup that Server.app creates. When my OD fails to start after a crash and db_recover commands don't work, it's always worked for me to restore the odmaster from a backup using the command:
    sudo slapconfig -restoredb /private/var/backups/ServerBackup_OpenDirectoryMaster.sparseimage
    I'm careful to keep an independent OD backup with Carbon Copy Cloner and this preflight script.
    You can also grab an earlier version of the sparse image ServerBackup_OpenDirectoryMaster.sparseimage from a Time Machine backup. It's also possible to rsync the database files directory from a Time Machine backup.

  • ORA-01658: unable to create INITIAL extent for segment in tablespace

    NEW REPOSITORY INSTALLATION ERROR!!
    I want to install a new Repository using Oracle9iR9.2.0.1 and iDS10g on windowsXP Professional the same machine.
    After running all the SQL scripts ( ckqa,ckvalqa,ckcreate,ckreport) with success to installing a new Repository on my Database using "the Scripts Method",I start the Repository Administration Utility( RAU) to scheck the priveleges and so on.
    After pressing the Install button in the RAU:
    -I take public synonyms
    -I scheck the box for "Support Designer Objects", then
    -The Repository size is Medium
    -I have not change the defauft Tablespace of the Repository_Manager names TEMPORARY_TABLES to store the index and table of System Data....Diagram Data.
    After Starting, the Installation began an stop by installing some Tables like schown :
    Operation: Started : 07/03/04 20:26:32
    Reading File: cktabs.sql
    Object : TABLE CDDL_TMP_TBL
    Executing statement(s)...
    Verifying...
    .and so on till....uns so weiter bis
    Reading File: cktabs.sql
    Object : TABLE RM$INFO
    Executing statement(s)...
    Error Submitting Definition: User intervention required...
    RME-02124: Failed to execute SQL statement: CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    Storage (initial 4K next 4K pctincrease 0) Tablespace TEMPORARY_TABLES
    ORA-01658: unable to create INITIAL extent for segment in tablespace TEMPORARY_TABLES
    Dumping Buffer...
    CREATE TABLE RM$INFO
    (NAME VARCHAR2(128) NOT NULL
    ,VALUE VARCHAR2(128)
    ...End of Buffer
    User Requested: Stop Process
    When I read the Help of the Error the
    CAUSE was: Failed to find sufficient contiguous Space to allocate INITIAL extend for Segment being created.
    ACTION: Use ALTER TABLESPACE ADD DATAFILE to add additional space to the tablespace or retry with a smaller Value for initial.
    I then try to resolve it by schecking and changing the Values of INITIAL_VALUE and NEXT_VALUE in the ckparams.txt to 500k.I change the Values of TEMPORARY_TABLES(10214 to 51200k) and TEMPORARY_INDEXES from (20000 to 100000k).Then I run the scripts @ckparams.txt, @ckvalqa, @ckcreate but
    -pressing the Scheck Privileges Button on the RAU still give me 106k for the INITIAL_ and NEXT_VALUE.
    -And the installato still stop with the same Error.
    Question: How schould I resolve this Configuration?
    You could respond in ENGLICH, GERMAN or FRENCH
    Thank you for your Help!

    You are running into database errors. You should refer to the database documentation on how to adjust the size your tablespaces. The online Designer installation guide will advise you as to the sizes of tablespaces you require. (http://otn.oracle.com/pls/wocprod/docs/page/ocom/technology/products/designer/supporting_doc/Des10g_9044/cmnhlp72/rep_insgde/igttl_9i.htm)
    Regards
    Sue

  • Unable to create INITIAL extent

    Hi,
    While creating a table i am getting the following error
    "unable to create INITIAL extent for segment in tablespace SYSTEM"
    So kindly advice how to fix this.
    Thanks,
    Vineet

    If you have a DBA there, ask them what the name of the tablespace is for tables and modify your table create statement to something like
    CREATE TABLE mytable (column1 NUMBER) TABLESPACE tables_tablespace;
    and chance the tables_tablespace bit to whatever your dba says is the tablespace for tables.
    It's probably a good idea to change the default tablespace for the user you are logged into the database with, unless you are logged in as sys, to something other than SYSTEM.
    THT

  • [URGENT HELP] Why is cannot install Windows 7 on my X120e? ERROR : Setup was unable to create..

    i have got X120e from my college with ubuntu 11.04 installed. But my half of softwares dont work on this Lunix OS so decided to install windows 7, downloaded officially as i have keys for activation.
    I used USB drive to install, Windows 7 setup sucessfully started on boot up but its getting error
    "Setup was unable to create a new system partition or locate an existing system partition. See the Setup log files for more information"
    I have not connected any other devices.
    My Hard disk is NOT dynamic, its basic.
    I have contacted lenovo service centre, but this are taking up calls.
    I am fed up of this, please help me..
    I have exams coming and i need this urgently.
    Solved!
    Go to Solution.

    Hello,
    Do you just want to delete the Ubuntu partition?  If so, you may be able to do by booting from the Microsoft Windows 7 installation disc, pressing Shift+F10 to get to a Command Prompt, and then using the DISKPART.EXE program to erase the hard disk drive.
    Regards,
    Aryeh Goretsky
    I am a volunteer and neither a Lenovo nor a Microsoft employee. • Dexter is a good dog • Dexter je dobrý pes
    S230u (3347-4HU) • X220 (4286-CTO) • W510 (4318-CTO) • W530 (2441-4R3) • X100e (3508-CTO) • X120e (0596-CTO) • T61p (6459-CTO) • T43p (2678-H7U) • T42 (2378-R4U) • T23 (2648-LU7)
      Deutsche Community   Comunidad en Español Русскоязычное Сообщество

  • Error in JMS receiver adapter: "Error creating initial context with environment"

    Hello,
    I have some trouble with a JMS receiver adapter (access to JMS-provider with JNDI).
    The message in adapter monitoring is:
    A channel error occurred. Detailed error (if any) :
    com.sap.aii.adapter.jms.api.connector.ConnectorException: Fatal Error looking up connection factoryJMSQueueConnectionFactory, for profile: ConnectionProfile of channel: CC_JMS_RCV_XLIMI00001on node: 503473150 having object id: 5b424f2f79b6350ca636ab35d528cfdd:
    ConnectorException: Error creating initial context with environment: java.naming.provider.url=wcsefdev.example.com:9064; java.naming.factory.initial=com.ibm.websphere.naming.WsnInitialContextFactory; for profile: ConnectionProfile of channel:
    CC_JMS_RCV_XLIMI00001on node: 503473150 having object id: 5b424f2f79b6350ca636ab35d528cfdd: javax.naming.NoInitialContextException:
    Cannot instantiate class: com.ibm.websphere.naming.WsnInitialContextFactory<br> at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createConnectionFactory
    (JndiConnectorImpl.java:152)<br> ....
    Message processing failed. Cause:
    com.sap.aii.adapter.jms.core.fsm.DFA$InvalidTransitionException: No transition found from state: ERROR, on event: process_commence for DFA: CC_JMS_RCV_XLIMI00001:5b424f2f79b6350ca636ab35d528cfdd
    The third party assured me that the specified JNDI parameters are right and everything is configured on their site, so it should work...
    Might there be a problem with the JMS drivers?
    Regards,
    Marcus

    Hi Marcus,
    Have a look at below thread
    Connecting to PI 7.11 JMS Queue from other PI 7.11 Server

  • Error creating initial context with environment

    Hi,
    Currently we are working on a scenarios, where we need to integrate XI and webmethods using JMS.
    It was working fine. But recently they have restarted the webmethods server. After that we re getting an error message like,
    In Adapter Monitoring:
    Channel error occurred; detailed error description: com.sap.aii.adapter.jms.api.connector.ConnectorException: Error creating initial context with environment: {java.naming.provider.url=server:port, java.naming.factory.initial=com.sap.engine.services.jndi.InitialContextFactoryImpl, java.naming.security.principal=XYZ, java.naming.security.credentials=ABC}for profile: ConnectionProfile of channel: CC_RCV_JMS_INon node: 3010950 having object id: ABCXYZ: NamingException: Error getting the server-side naming service functionality during getInitialContext operation.
    at com.sap.aii.adapter.jms.core.connector.JndiConnectorImpl.createInitialContext(JndiConnectorImpl.java:66)
    In RWB
    MP: Exception caught with cause com.sap.aii.af.ra.ms.api.RecoverableException: No transition found from state: STARTING, on event: process_commence for DFA: C_RCV_JMS_IN:e4413a5265a436459e271d5e0dd4859b
    Can one please tell me what the problem is?
    Thanks in advance.
    Regards,
    Prasad Babu.

    Hi,
    Check this link looks like same problem
    Re: file to JMS(for MQ series)
    Thanks
    Vikranth

  • Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index

    I am running an SQL(CE) script to create a DB. All script commands succeed, but the DB get "broken" after creating the last costaint: after running the script, viewing table properties of Table2 and clicking on "Manage relations" gives the following error: Unable to create foreign key: InvalidArgument=Value of '0' is not valid for 'index'. Parameter name: index. Wondering what does that refer to...
    Here it is the script. Please note that no error is thrown by running the following queries (even from code that passing the queries by hand, one-by-one to sql server management studio).
    CREATE TABLE [table1] (
    [id_rubrica] numeric(18,0) NOT NULL
    , [id_campo] numeric(18,0) NOT NULL
    , [nome] nvarchar(100) NOT NULL
    GO
    ALTER TABLE [table1] ADD PRIMARY KEY ([id_rubrica],[id_campo]);
    GO
    CREATE UNIQUE INDEX [UQ__m_campi] ON [table1] ([id_campo] Asc);
    GO
    CREATE TABLE [table2] (
    [id_campo] numeric(18,0) NOT NULL
    , [valore] nvarchar(4000) NOT NULL
    GO
    ALTER TABLE [table2] ADD PRIMARY KEY ([id_campo],[valore]);
    GO
    ALTER TABLE [table2] ADD CONSTRAINT [campo_valoriFissi] FOREIGN KEY ([id_campo]) REFERENCES [table1]([id_campo]);
    GO
    Sid (MCP - http://www.sugata.eu)

    I know this is kind of old post, but did this realy solved your problem?
    I'm getting this same error message after adding a FK constraint via UI on VS2008 Server Explorer.
    I can add the constraint with no errors, but the constraint is not created on the DataSet wizard (strongly typed datasets on Win CE 6) and when I click "Manage Relations" on the "Table Properties" this error pop out:
    "InvalidArgument=Value or '0' is not valid for 'index'.
    Parameter name: index"
    Even after vreating my table with the relation in SQL the same occurs:
    CREATE TABLE pedidosRastreios (
        idPedidoRastreio INT NOT NULL IDENTITY PRIMARY KEY,
        idPedido INT NOT NULL CONSTRAINT FK_pedidosRastreios_pedidos REFERENCES pedidos(idPedido) ON DELETE CASCADE,
        codigo NVARCHAR(20) NOT NULL

  • Unable to create INITIAL extent for segment in tablespace FLOW_4686

    I'm trying to create a new table on here (only 4 rows) from a spreadsheet, and I keep getting the following:
    ORA-20001: Excel load run ddl error: drop table "COMMODITIES" ORA-00942: table or view does not exist ORA-20001: Excel load run ddl error: create table "COMMODITIES" ( "ID" NUMBER, "DEP_ID" NUMBER, "LINE" NUMBER, "CODE" VARCHAR2(6), "COMMOD" VARCHAR2(30), "QUAL" VARCHAR2(30), "COMMOD_TP" VARCHAR2(1), "IMPORT" VARCHAR2(5), constraint "COMMODITIES_PK" primary key("ID") ) ORA-01658: unable to create INITIAL extent for segment in tablespace FLOW_4686
    I'm trying to upload/create this to see if I get the same error messages on here as I do on my local installation for another problem I'm having.
    Thanks

    Thanks Sergio, to you and the rest of the HTMLDB team. I remember reading somewhere that there's only 13 of you guys working on this product, and with development work and answering all of our questions on here, you guys are really doing a great job and deserve every penny you guys make (and more!)
    Thanks again!

  • Creating initial context from a java client

    I have tried to create intial context from a java client.....
    but that gives me the following exception:
    My code:TestClient.java
    import java.util.*;
    import javax.naming.*;
    public class TestClient
    public static void main(String nilesh[]) throws NamingException
    Hashtable hash = new Hashtable();
    hash.put("Context.INITIAL_CONEXT_FACTORY","com.evermind.server.rmi.RMIInitialContextFactory");
    hash.put("Context.PROVIDER_URL","ormi://localhost:23791/symularity");
    hash.put("Context.SECURITY_PRINCIPAL","admin");
    hash.put("Context.SECURITY_CREDENTIALS","admin");
    Context ctx = new InitialContext(hash);
    System.out.println("Context: "+ctx);
    The output is:
    ERROR! Shared library ioser12 could not be found.
    Exception in thread "main" javax.naming.NamingException: Error accessing repository: Cannot con
    nect to ORB
    at com.sun.enterprise.naming.EJBCtx.<init>(EJBCtx.java:51)
    at com.sun.enterprise.naming.EJBInitialContextFactory.getInitialContext(EJBInitialConte
    xtFactory.java:62)
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.init(Unknown Source)
    at javax.naming.InitialContext.<init>(Unknown Source)
    at TestClient.main(TestClient.java:14)
    is anybody able to solve my problem....
    Thanks in advance..
    NileshG

    Nilesh,
    First of all make sure that the shared library error you are getting is fixed by including the library in your classpath. Secondly, where are you running the client from? The connection factory that you use varies depending on where you are connecting from:
    1. ApplicationClientContextFactory is used when looking up remote objects from standalone application clients. This uses refs and mappings in application-client.xml.
    2. RMInitialContextFactory is used when looking up remote objects between different containers.
    3. ApplicationInitalContextFactory is used when looking up remote objects in same application. This is the default initial context factory and this uses refs/mappings in web.xml and ejb-jar.xml.
    Rob Cole
    Oracle Hello Rob cole..
    thank u for ur reply...but actualy i dont know what is application-client.xml and where i can find that file in my j2ee folder...can u give me detail explanation about that...actually i have not created any application or not deployed also without deploying any application i have created that TestClient.java class so how it will relate with application-client.xml....so i have changed the lookup code with ApplicaitonClientContextFactory...but still the same error is coming......can u give me the full explanation or solution of my problem...
    Thanks & Regards
    NileshG...

Maybe you are looking for

  • Display a Calendar View in the Portale Server

    Hi, we use portal server 6.2 and we want to display a view of the calendar inside a channel of the portal. We know that portal have a calendar provider but we really didn't understand how can we use this provider to call a custom view of the calendar

  • How to create a sales order using PO ALE Idoc

    Hi, I  have a purchase order in my ECC6 system, and output for this PO is ALE idoc. Now I want to create a Sales order using that Idoc in the same system, can anbody please tell the procedure sreeram

  • Facebook Apps on Windows 8.1 not working

    Hi guys, I using Windows 8.1 Pro 64bit. But install apps Facebook not working. Although I did enter account and try again several times. I did not detect any errors in the process used Windows. Please check the error and ask for help. Thank you Regar

  • How to know if a specific profileId is written in DB

    Hi all, The checkout of my store supports an order without a persistent profile. After the successful purchase, the profile is persisted in the DB through createItem and addItem... How can I check if this specific profile was already persisted in DB?

  • Complier output question

    I've been working on a java assignment that requires me to write a command line program which will read data from a text file, store the data in a vector and then save the vector to another file in a serialized form. I have written this program using