Re: [EOModeler] problem : can't use the JNDIAdaptor to modelize an LDAP connection with EOModeler

Pierre-Yves MARIE <[email protected]> Thu, 29 Jan 2004 10:53:25 +0100
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <[email protected]>
Thanks,
both of you help me...

The Chuck advice permit me to access to the "next" panel in the "New 
Model wizard". I have now the "JNDI Connection" panel, and i can 
configure my LDAP server URL, user and password to use. The plugin is by 
default com.webobjects.jndiadaptor.LDAPPlugIn and the context factory is 
com.sun.jndi.ldap.LdapCtxFactory

But now when i confirm this configuration panel, i get the following 
error message:
"Cannot create InitialDirContext: 
javax.naming.NoInitialContextException: Cannot instantiate class: 
com.sun.jndi.ldap.LdapCtxFactory [Root exception is 
java.lang.ClassNotFoundException: com.sun.jndi.ldap.LdapCtxFactory] "

It seems to be a classpath problem, or the EOModeler don't search the 
class in the rigth directory because the 
com.sun.jndi.ldap.LdapCtxFactory class is in the rigth place now..... ????

I will try again to do it work with EOModeler, and if i can't manage i 
will take the Jonathan advice by "figure out my proper connection 
dictionary and schema, without  EOModeler's reverse engineering 
features".  whish me good luck!! :D

If you have some extra-idea, feel free to comunicate me, i'll be pleased! ;)

Thanks again,
PYM

Jonathan Rochkind a écrit :

> It's worth noting that that JDK 1.1.8 stuff is really only neccesary 
> for EOModeler on Windows. For your running application, it is not used.
>
> Back when I was on Windows, because I was too lazy to figure out the 
> JDK 1.1.8 stuff, I'd set the connection dictionary with the 
> 'inspector' instead of with any of EOModeler's dialog boxes. I 
> couldn't use the schema syncronization/reverse engineering features of 
> EOModeler, but I could then procede to edit my model in EOModeler no 
> problem, EOModeler wouldn't complain.  My running application worked 
> fine.
>
> This wasn't with JNDI, this was just with a JDBC driver that was not 
> 1.1.8 compatible. Hey, yeah, so now that I remember, it wasn't that I 
> was too lazy, it was that I had no choice; my JDBC driver just didn't 
> work with JDK 1.1.8.
>
> So, anyway, that's an option to keep in mind.  If you can't get 
> EOModeler actually connecting through LDAP to your data source, you 
> can still use EOModeler to describe your model (minus EOModeler's 
> fancy features that actually access your data source), and your 
> running app will still work fine. Just set the connection dictionary 
> manually in the inspector, instead of using EOModeler's fancier dialog 
> boxes or wizards.  [Of course, figuring out the proper connection 
> dictionary and schema, _without_ EOModeler's reverse engineering 
> features, could be a challenge].
>
> The confusing thing about the Windows instructions on the page Chuck 
> gives you:  they suggest that on Windows you should _only_ install 
> JNDI 1.1.2 and LDAP 1.0.3, the old JDK 1.1.8 versions. Again, I have 
> not actually used JNDI/LDAP myself, but I suspect this is not true: I 
> suspect you want _both_ the 1.1.8 versions they give you (only so 
> EOModeler's fancier features will work) AND the modern versions they 
> mention in the "OSX" instructions section (so your running 
> application, which will be using JDK 1.3.1 or 1.4.1, can use them).
>
> --Jonathan
>
> At 11:08 AM -0800 1/28/04, Chuck Hill wrote:
>
>> Have you followed the instructions here:
>> http://developer.apple.com/documentation/LegacyTechnologies/WebObjects/WebObjects_5.1/PostInstall/EOAdaptors/Installation.html 
>>
>>
>> jdk 1.1.8 directory is $NEXT_ROOT/Library/Java
>>
>> Chuck
>>
>> Pierre-Yves MARIE wrote:
>>
>>> Hi the list,
>>>
>>> I want to use EOModeler to create my EOModel and my EO objects for 
>>> an LDAP connection.
>>> When i use the 'new model wizard' i can chose the JNDI adaptor in 
>>> the available adaptors list.
>>> But when i click the next button i get the following error messages :
>>>
>>> "No Reason provided" (the first time i try)
>>>
>>> and
>>>
>>> "classForAdaptorNamed:: Unable to load the bundle for the adaptor 
>>> named JNDI. The possible causes for this error are: the adaptor 
>>> executable cannot be dynamically linked into your application, you 
>>> are on PDO and have not linked the adaptor into your application, or 
>>> the adaptor executable is not present on your host."
>>> ????
>>>
>>> In the Apple documentation i find the JAR i have to install on my 
>>> workstation.
>>> i copied it in my environment but wihtout result.....
>>>
>>> Can anybody help me with understanding what i have to do to get the 
>>> LDAP Plug-in or the JNDIAdaptor to work whith my EOModeler ?
>>> For information i have installed WO 5.2 on WinXP SP1 , EOModeler 
>>> (Yellow box for windows 1.0) and jndi.jar (V 1.2.1);
>>> [ ldap.jar, providerutil.jar, ldapbp.jar ](V 1.2.4 )
>>>
>>> I'm a newbie with WO and EOModeler, so may be i missed something .....
>>>
>>> Thanks,
>>>
>>> _______________________________________________
>>> EOF mailing list
>>> [email protected]
>>> http://www.omnigroup.com/mailman/listinfo/eof
>>
>>
>> -- 
>>
>> Chuck Hill                                 [email protected]
>> Global Village Consulting Inc.             http://www.global-village.net
>>
>> It is a funny thing about life; if you refuse to accept
>> anything but the best, you very often get it."
>>   --  W. Somerset Maugham
>>
>> <shamelessPlug>
>>   Practical WebObjects
>>   http://www.amazon.com/exec/obidos/tg/detail/-/1590592964
>> </shamelessPlug>
>>
>>
>> _______________________________________________
>> EOF mailing list
>> [email protected]
>> http://www.omnigroup.com/mailman/listinfo/eof
>
>

_______________________________________________
EOF mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/eof
py.marie.vcf (text/x-vcard, 383 B)
begin:vcard
fn:Pierre-Yves MARIE
n:MARIE;Pierre-Yves
org;quoted-printable:Centre Hospitalier de Rouffach;Direction des syst=C3=A8mes d'information
adr:;;27, rue du 4ieme R.S.M;ROUFFACH;;68250 ;FRANCE
email;internet:[email protected]
tel;work:+33 (0)3.89.78.70.70 poste: 6073
tel;fax:+33 (0)3.89.78.71.62
x-mozilla-html:TRUE
url:http://www.ch-rouffach.fr
version:2.1
end:vcard