In search of ... Actual JNDI Context
Although I realize that in a default environment, there is no need to supply a HashTable to the InitialContext constructor -
could someone please provide the Hashtable elements that make up the default connection to the default naming service associated with a SJSE6 JNDI lookup -
Any help is appreciated -
John Schmitt
I found my own answer:
private String _jndiContextFactory = "com.sun.jndi.rmi.registry.RegistryContextFactory";
private String _jndiProviderURL = "rmi://localhost:1099";
Similar Messages
-
Hello.
I'm currently using SQLDeveloper version 1.5.0.5.3 and since maybe three versions ago, I started getting frequently the following error when opening the application:
{color:#ff0000}SEVERE 60 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
SEVERE 61 16 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
SEVERE 62 15 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
SEVERE 63 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
SEVERE 64 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper failed to create naming Context for db connections at url: file:/C:/Documents and Settings/jvargem/Application Data/SQL Developer/system1.5.0.53.38/o.jdeveloper.db.connection.11.1.1.0.22.49.35/connections.xml
SEVERE 65 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.{color}
When this error happens, no connections are displayed, which prevents me from using the application unless I create the connection all over again!
As I said this happens frequently and afterwards I have to close and restart the application several times until the error goes away. The problem is that sometimes it doesn't go away and I have to restart the computer and restart all over again, hoping it will work.
As anyone experienced this? Any idea of what may be happening and how to solve it?
Thanks a lot
João VargemPlease read the whole thread before posting.
You did search the forum, which is great, but then read what people respond! There was only 1 reply here, so that shouldn't be too much work...
If the latest version still gives you problems, do get back though.
Regards,
K. -
Faster way ? properties file vs weblogic.xml jndi context
Anyone knows what is faster way to get a value from a parameter,
a) using a properties file
b) using jndi context ( env-entries )
Anyway to get new values from a runtime changed files ?
Regards
jsanzaThe real question is what are you trying to do, since that may make the
decision. If you need to be able to change a parameter, either build
parameter maintenance into your app (a page for example) or use the file
method so you actually edit the stuff.
JNDI is in-memory, which is fast. Pulling from disk will be pretty fast too
on most systems (typically it is from memory if the file has been changed,
since everything used gets cached by most OSs).
Peace,
Cameron Purdy
Tangosol Inc.
<< Tangosol Server: How Weblogic applications are customized >>
<< Download now from http://www.tangosol.com/download.jsp >>
"jsanza" <[email protected]> wrote in message
news:3b72c402$[email protected]..
>
>
Anyone knows what is faster way to get a value from a parameter,
a) using a properties file
b) using jndi context ( env-entries )
Anyway to get new values from a runtime changed files ?
Regards
jsanza -
How to search data from a context node.
Hi Friends,
Thanks for ur help for previous problem . I am facing some other problem i.e how to
search data from a context node.
i have a context node :-
Car(main node) which consist of details, owners, engine and Brand as its sub node.
the value attibutes of difft nodes are:-
Car- category
Details- Mileage, Price, registration_no, miles_used
owner - name, phnno,addrs
Brand - main_brand, co_brand
Engine- Bhp,Rpm
Now i have to apply a search criteria on the basis of price, miles_used .
pls help to implement that .
Thanks & regards
Pravin jhaHi PRAVIN,
What I can understand from your problem is that, you have a list with various properties and you want to display them and search them in your WD App. If I am correct, use the following approach:
Instead of using "details, owners, engine and Brand" Nodes, use the attributes inside the parent node. i.e in the node Car, add all the attributes viz. Mileage, Price, registration_no, miles_used, name, phnno,addr etc.
Now you can create a table of this node "Car" and can easily search on the basis of any criteria.
I hope this solves your issue. If you are looking for something else, please revert, I'll be happy to help you.
Cheers!!!
Umang -
JNDI Context Retrieval in EJB 3.0
I have a doubt about JNDI context retrieval in EJB 3.0. I know that when I call a bean from another bean I can use this line:
InitialContext ctx=new InitialContext();
But I'd like to know whether in a Client I am obliged to pass this parameter:
InitialContext ctx=new InitialContext(System.getProperties());
This method was the one I called when I used EJB 2.1..Now in many examples I find both these approaches...I'd like to know what differentiates one from another and which is the standard in EJB 3.0?
I read that when calling a bean from another bean I can use the first constructor with no parameters...but in clients I am obliged to give the param..why?
Thanks!Correct me if I am wrong: the application client
container is a "static" container: you need to know
which EJB to call at develop time and you can not
change it later without recompiling.That's not quite right. First, there's nothing special about the application client
container with respect to retrieving Java EE dependencies that is not also true
of Java EE web containers and EJB containers. The programming model for
defining and accessing EE dependencies is exactly the same, independent of
whether the code is running in an Application Client, EJB container, etc.
It's true that dependencies are defined at development time, but one of the
whole reasons for the level of indirection provided by Java EE dependencies
is to allow the target of those dependencies to change without changing code.
E.g, with EJB dependencies this is done using the ejb-link attribute in ejb-ref
or ejb-local-ref. That specifies which EJB is the target of the ejb dependency
without changing the code used to retrieve the dependency.
>
JNDI was designed to be more flexible: you can
dynamically lookup EJB homes, then call a remote
method you like at runtime. Is that flexibility lost
with application client container. Is there any way
to dynamically inquiry-invoke?In the Java EE programming model, components always define what their
dependencies are so that the deployer can configure them. The idea of
doing a direct global lookup without using a Java EE dependency is
outside the scope of Java EE. It works in many implementations but the
specifics are not portable.
We have a presentation that covers some of these topics you might find
interesting. See here :
https://glassfish.dev.java.net/javaee5/ejb/compdependencies_xmlforum_nov15.pdf -
Why opening from java the rpt search for a JNDI when it's setup for a DNS ?
I downloaded CR for eclipse 2.
All is 'quite' working froma a java app.
i've only a problem with an 'jndi name search error'. I'll try to explain.
In the RPT i use a DSN connection to a sql server into a differente machine. When I open directly the rpt, all is working.
From java code, i'll open the report, but when i try to export to pdf iit tell me about an error 'jndi name search error', with the name of the DSN connection i setup.
Why? Why opening rpt all is working, but opening from code NOT is working ?
What's the difference from two opening methods? Why an .rpt opened from java cannot just open the connection like when opened from cristal report !?
*My question is: why opening from java the rpt search for a JNDI when it's setup for a DNS connection ?! *The .rpt has been originally created from an ancient version of Cristal report. probably the '8'.
In an italian software called 'Business', the .rpt is populated for printing of invoices and similar docs.
My society is trying to 'integrate' our software with the .rpt used from our customer.
So we want simply open .rpt, add a new logo, set the selection for record and save as pdf.
We so bought Cristal report 2008 (v.12 ), opened the .rpt, saved (so it 's now in a supported version).
The sql server is located at 10.1.2.40, and is a Microsoft Sql Server.
In my development pc I've installed Cr 12. I added a User DSN to point to Sql server at 10.1.2.40, at right DB with username and password. Opening from my development machine the .rpt and 'running' it, it display the data. Ok !
I downloaded CR4 Eclipse 2.
I open report using the unmanaged sdk. (to access it through file system, not via RAS), Ok.
I set selection record. Ok.
I execute .export with 'PDF' for format option and here I get an exception: the JNDI name 'CPR' is not found. Where CPR is the DSN name setup into .rpt from Cristal Report 2008.
So, no, i'm not trying to using the designer from Eclipse, but from the full application. But I must use the rpt at runtime to export some rendered records.
What must I do to do this?
CR4E only supports java based connections, so it is looking for the JDBC/JNDI name and won't look at the DSN's.
How Can i setup at runtime a JDBC / JNDI connection ?
I already have a 'connection' from my code to the sql server, using sqlserver jdbc driver v. 4 from microsoft. And executing query I see the results. So i have right driver, ip, db name, user name and password
But is there a way to simply tell at runtime to my .rpt to use THIS connection? Or a similar connection...
Thanks in advance for help provided to us. (we bought a CR license only for this work...) -
How-to map multiple explicit search help values to context attributes?
Hi,
I have a custom explicit Search Help with multiple attributes set as export and uses search help exit for data retrieval. I have set this Search Help for one of the context attribute that is binded to one of the input fields on view.
Now, is it possible to dynamically map other export attributes from this Search Help to other Context attributes?
I know this works for Input helps that are directly derived from check tables but not sure how to do it for explicit Search Helps.
Can anyone please confirm and let me if this is possible? If yes, then can you please share an example or describe how to do it?
Thanks and Regards,Hi Srinivas,
Check this ..Search help can be dynamically assigned to a field.
data lo_nd_info type if_wd_context_node_info.
lo_nd_info = lo_nd->get_node_info( ).
CALL METHOD lo_nd_info->set_attribute_value_help
EXPORTING
name = 'ATTR1' " Your attribute Name
value_help_mode = '121' " Valid value help mode
value_help = 'Z187442'. " Search help name
The various possible values that you can pass to value_help_mode are as shown below.
deactivated 101
automatic 111
ddic 121
ovs 131
Also refer this..
Re: How to put dynamic search help in web dynpro ABAP.
Cheers,
Kris. -
OC4J 1.0.2.2.1 Creating 2 JNDI Contexts
Hello,
I have a problem when creating two JNDI contexts.
I've got a very simple class that creates 2 contexts serially with 2 separate property objects.
But the 2nd context seems to be being created with the first properties object. And yes I am closing the first.
Here is it
public class TestLookup
private static void lookup(String name, String password)
InitialContext ctx = null;
try
Properties p = new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
p.setProperty(Context.PROVIDER_URL, "ormi://localhost:23791");
p.setProperty(Context.SECURITY_PRINCIPAL, name);
p.setProperty(Context.SECURITY_CREDENTIALS, password);
ctx = new InitialContext(p);
ctx.lookup("Security");
System.out.println("finish");
catch (Exception e)
try
if (ctx != null)
ctx.close();
System.out.println("ctx closed");
catch (Exception e2)
e2.printStackTrace();
e.printStackTrace();
public static void main(String[] args)
lookup("123", "admin");
lookup("admin", "admin");
Here is the output
ctx closed
java.lang.SecurityException: Invalid username/password for default (123)
etc....
ctx closed
java.lang.SecurityException: Invalid username/password for default (123)
etc....
Any ideas anyoneThis may be problem with your userid/password. Please look the $OC4J_HOME/j2ee/home/config/principals.xml whether you have a right userid password.
I did a quick test at looking up at "jdbc/OracleDS" for two users admin and SCOTT and this works fine both in 1.0.2.2.x an 9.0.2
I got your errors when I had wrong passwords for these users
regards
Debu -
Error in SQL Developer: Database Connections has no JNDI context so cannot
Hello,
I have installed SQL Developer 3.1.07 version on Linux. Previously I was able to create a connection and browse the existing tables, add tables, etc.
Now when I launch SQL Developer, I see that no connections are displayed. Instead there are these three messages indicating an error. Can you please advice on how to resolve this?
Thanks,
Errors:
SEVERE 44 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
SEVERE 43 36 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/home/user/.sqldeveloper/system3.1.07.42/o.jdeveloper.db.connection.11.1.1.4.37.59.48/connections.xml
SEVERE 42 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/home/user/.sqldeveloper/system3.1.07.42/o.jdeveloper.db.connection.11.1.1.4.37.59.48/connections.xmlHi uparthas,
Here is a similar thread (Windows 7) marked as answered, and may be applicable to a Linux environment if you are using jdk1.7 rather than jdk1.6:
Lost my connections.
If that does not solve the issue, you might also wish to ...
1. Exit SQL Developer
2. Delete or rename the /home/user/.sqldeveloper/system3.1.07.42 directory
3. Launch SQL Developer, perhaps without choosing to migrate settings from a prior install.
Hope this helps,
Gary
SQL Developer Team -
How to remove spotlight search - it actually slowing down my new iMac?
How to remove spotlight search - it actually slowing down my new iMac while indexing data.
iMac wrote:
How to remove spotlight search - it actually slowing down my new iMac while indexing data.
You shouldn't disable Spotlight completely; Apple's App Store relies on it to keep track of updates to software you've downloaded and permit you to update them when they're available. Instead, in Spotlight preferences, uncheck everything in "Search Results." Spotlight will still run for OS and App Store purposes but won't be useful for your search needs any longer. Instead, check out EasyFind in the App Store. It's fast, flexible, and will search external drives Spotlight hasn't indexed. -
How to initialize the jndi context?
Hello!
install the j2ee sdk 1.4 on a server that has the ip address 211.83.144.48.
then I deploy a EJB ,but I want to call the method from another pc.
The problem is that how I initialize the jndi context? How can get the url for "Context.PROVIDER_URL"?
thks.You need to look document of the application server that u are using.
Because this depends on application servers. -
DatabaseConnections has no JNDI context so cannot list connections
All my connections are missing and I cannot create or save new ones.
The messagse from the logging page are:
oracle.jdevimpl.db.adapter.DefaultContextWrapper -
failed to create naming Context for db connections at url: file:/C:/Documents and Settings/PhilDeFrancesco/Application Data/SQL Developer/system1.5.1.54.40/o.jdeveloper.db.connection.11.1.1.0.22.49.42/connections.xml
oracle.jdeveloper.db.DatabaseConnection
DatabaseConnections has no JNDI context so cannot list connectionsThe thread suggesting changes to .jar files did not work:
http://forums.oracle.com/forums/ann.jspa?annID=737
However,
I found this on another thread and it worked for me.
Connection problems with SQL Developer -- ANSWERED
"Try removing the SQL Developer SYSTEM folder that is created on Startup.
\Documents and Settings\<user>\Application Data\SQL Developer\system1.5.0.53.38.
Note that this will remove any connections and settings created, but as you are not able to import or create connections, that should not be a concern. This system folder is created when you first invoke SQL Developer and is updated while you work, storing and preserving connections and various settings as you work. " -
Start-up error "DatabaseConnections has no JNDI context so cannot list ..."
Hi,
Since this morning, every time I startup SQLDeveloper I nolonger see my database connections. All I see is a logging page with entries like the one given below.
I have re-downloaded and installed sqldeveloper using sqldeveloper-2.1.1.64.45.zip, and I have also trashed the "system" folder(s) under:
C:\Documents and Settings\anipatel\Datos de programa\SQL Developer
...but the error continues.
I have not applied any Sqldeveloper updates nor have I updated any other software on the PC (OS XP Pro SP3).
Any pointers as to how to resolve this issue?
Thanks - Anit
SEVERE 56 1329 oracle.ide.IdeCore Exception firing mainWindowOpened to oracle.dbtools.raptor.RaptorDBAddin$1@10eb2f0
SEVERE 52 1532 oracle.ide.IdeCore Exception firing mainWindowOpened to oracle.ideimpl.jsr198.OracleIDE$1@871dcc
SEVERE 49 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
SEVERE 48 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/C:/Documents and Settings/anipatel/Datos de programa/SQL Developer/system2.1.1.64.45/o.jdeveloper.db.connection.11.1.1.2.36.55.30/connections.xml
SEVERE 47 390 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/C:/Documents and Settings/anipatel/Datos de programa/SQL Developer/system2.1.1.64.45/o.jdeveloper.db.connection.11.1.1.2.36.55.30/connections.xml
SEVERE 46 0 oracle.ide.IdeCore Exception firing addinsLoaded to oracle.jdevimpl.vcs.VCSManagerImpl$6@7ac6c
SEVERE 62 0 oracle.jdeveloper.db.DatabaseConnections DatabaseConnections has no JNDI context so cannot list connections.
SEVERE 61 0 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/C:/Documents and Settings/anipatel/Datos de programa/SQL Developer/system2.1.1.64.45/o.jdeveloper.db.connection.11.1.1.2.36.55.30/connections.xml
SEVERE 60 375 oracle.jdevimpl.db.adapter.DefaultContextWrapper Failed to create naming Context for db connections at url: file:/C:/Documents and Settings/anipatel/Datos de programa/SQL Developer/system2.1.1.64.45/o.jdeveloper.db.connection.11.1.1.2.36.55.30/connections.xml
SEVERE 57 281 oracle.ide.IdeCore Exception firing mainWindowOpened to oracle.dbtools.raptor.RaptorDBAddin$1@154fc43
SEVERE 55 2017 oracle.ide.IdeCore Exception firing mainWindowOpened to oracle.ideimpl.jsr198.OracleIDE$1@1f4ff23
SEVERE 50 0 oracle.ide.IdeCore Exception firing addinsLoaded to oracle.jdevimpl.vcs.VCSManagerImpl$6@12801c5Bringing this old post back to add some information.
Since our company upgraded versions (from "v-GO" with the circles in the system tray to "ESSO" with a big oracle O in the system tray), I no longer have to kill the SSO processes in order to run SQL Developer.
Instead, I simply have to launch SQL Developer 3 times.
First time: SQL Developer crashes. Just click OK.
Second time: SQL Developer loads but no connections appear. However, it does load much faster than the first time.
Third time: SQL Developer loads properly.
I'd rather launch SQL developer 3 times than have it crash (1st time), remember that I have to kill all ESSO processes, then re-launch SQL Developer (2nd time), then re-launch ESSO. So, this is how I've been doing it for the last few months and it "works" every time. -
Using JNDI Context with HTTP Tunneling (Detecting Connection Problems)
Hi there,
We are using connection to WL 5.1.0,SP6 cluster to create JNDI Context. Everything works fine until tcp/ip timeouts occur.
After that ...
Is there a way to subscribe for connection events?
I don't want to use T3CLient for this, since WL advises not
to do that. The recommended method is to create a Context and
work with it.
Help.
For the curious here is one exception which we can not even
trap. Is this fixed in SP8?:
weblogic.utils.AssertionError: ***** ASSERTION FAILED *****[ MBuf used after writeTo() called ]
at weblogic.socket.MBuf.checkNotWritten(MBuf.java:68)
at weblogic.socket.MBuf.writeTo(MBuf.java:140)
at weblogic.socket.JVMSocketHTTPClient.sendMsg(JVMSocketHTTPClient.java:253)
at weblogic.socket.JVMAbbrevSocket.sendOutMsg(JVMAbbrevSocket.java:348)
at weblogic.socket.JVMAbbrevSocket.sendMsg(JVMAbbrevSocket.java:237)
at weblogic.rjvm.ConnectionManager.sendMsg(ConnectionManager.java:420)
at weblogic.rjvm.RJVMImpl.send(RJVMImpl.java:494)
at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSendRaw(MsgAbbrevOutputStream.java:155)
at weblogic.rjvm.MsgAbbrevOutputStream.flushAndSend(MsgAbbrevOutputStream.java:163)
at weblogic.rjvm.MsgAbbrevOutputStream.sendRecv(MsgAbbrevOutputStream.java:186)
at weblogic.rmi.internal.BasicOutgoingRequest.sendRecv(BasicOutgoingRequest.java:23)
at weblogic.rmi.extensions.AbstractRequest.sendReceive(AbstractRequest.java:73)
atDownload Firmware 2.77 MB...
TFTP Download , download both the files on the desktop only...
Double click the TFTP.exe file and click run :
For Server- Enter the IP Address of the router that you assigned. By default, the router is 192.168.1.1...
For Password- Enter the password you assigned the router. By default, the router’s password is “admin”.
For File- Click the triple “…” button and browse for the .bin firmware file...
Click Upgrade button to start upgrading. A progress bar should show up to show the progress.
Once the Upgrade is done press and hold the reset button for 30 seconds...Release the reset button...Unplug the power cable from your router, wait for 30 seconds and re-connect the power cable...Now re-configure your router... -
How to add a custom jndi object into weblogic jndi context.
Hi,
I noticed that there is a standard way of adding jndi entry in the weblogic jndi context. One is through the console by specifying the jndi name (e.g DataSource) and this is added in config.xml and in its appropriate "jdbc/xxx-jdbc.xml". The question now is, I have an object which I would like to be included in the global weblogic jndi context.
<entry key="java:comp/env/jms/wsnotificationCF">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
</entry>
or
<entry key="java:comp/env/obj/UUID_CLASS_KEY" value="org.apache.servicemix.bpe.uuid.ActiveMQUUIDService"/>
This is just a sample of a possible entry. Is there then a way I could add this object in weblogic jndi context ?
Regards,
FritzHi,
I noticed that there is a standard way of adding jndi entry in the weblogic jndi context. One is through the console by specifying the jndi name (e.g DataSource) and this is added in config.xml and in its appropriate "jdbc/xxx-jdbc.xml". The question now is, I have an object which I would like to be included in the global weblogic jndi context.
<entry key="java:comp/env/jms/wsnotificationCF">
<bean class="org.apache.activemq.ActiveMQConnectionFactory">
<property name="brokerURL" value="tcp://localhost:61616"/>
</bean>
</entry>
or
<entry key="java:comp/env/obj/UUID_CLASS_KEY" value="org.apache.servicemix.bpe.uuid.ActiveMQUUIDService"/>
This is just a sample of a possible entry. Is there then a way I could add this object in weblogic jndi context ?
Regards,
Fritz
Maybe you are looking for
-
Dynamically Link OneNote Page to SharePoint 2010 Page Viewer Web Part
I'm trying to display a OneNote page within a SharePoint 2010 Page Viewer web part whereby the OneNote page can be edited by users with read/write permission, but not having any success. I was able to save the OneNote page as a web page (.mht) file
-
Hi, I used to be able to play my videos saved from my iPhone 4 and previously 3G from iPhoto. Now, when I click on a video nothing happens and they will not play. Any help is greatly appreciated... Mike
-
Passign in and auto selecting a date in a DateField
How can I pass a date into a form and have a DateField preselected with the value that I passed in? Thanks in Advance
-
Add new filed EXNUM in FBL5N Layout
Hi Frnds, I want add new field in T-Code FBL5N layout, the field is Excise number from table J_1IExchdr, can anybody tell me how to do that ? dont worry about points. Thanks in advance. mahesh.
-
Other apps open Keynote?
Do any other apps open Keynote files? I've tried the usuals, but need to get into a file created in a version later than my version of Keynote.