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

Jonathan Rochkind <[email protected]> Wed, 28 Jan 2004 13:26:35 -0600
Newsgroups gmane.comp.web.webobjects.eof
Message-ID <p0600200dbc3dbbaeea57@[129.105.237.199]>
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