Re: Can't connect to database in DTW WO 5.1
Re: Can't connect to database in DTW WO 5.1
- Subject: Re: Can't connect to database in DTW WO 5.1
- From: Chuck Hill <email@hidden>
- Date: Thu, 01 May 2003 13:22:10 -0700
- Organization: Global Village Consulting, Inc.
First off EOModeler and your app at runtime don't use the same JDBC
adapter. At least on non-Mac platforms with the older EOModeler they
don't. I'm pretty sure this is the same for Mac, but I could be
wrong. So EOModeler working does not mean anything.
Second, classpaths to directories are only good for *.class files.
They will not pick up all jar files in the directory. You need to
either unjar the jar file or explicitly name it on the classpath, e.g.
...:/Library/Java/Extensions/pg73jdbc3.jar:...
Third, jar files in /Library/Java/Extensions are loaded automatically
by the JVM and should not be on the classpath. Some jar files work OK
in this directory, some need to be placed elsewhere and referenced on
the classpath.
Forth, it seems to be looking for a plugin for the JDBC adapter
("Unable to load JDBCPlugIn"). Perhaps your driver needs a plugin?
That may not give you a solution, but it is a place to start.
Welcome to Java Classpath Hell. :-(
Chuck
DPH wrote:
I've seen this question asked many times in the archive but never
answered. The JDBC adaptor works fine in the modeler, but D2W fails
with the following message:
<WorkerThread6> An exception occurred while trying to open a channel:
java.lang.IllegalStateException: Unable to load JDBCPlugIn
'/Library/Java/Extensions/pg73jdbc3.jar' for JDBCAdaptor@11834918.
Check your connection dictionary and make sure the specified JDBCPlugIn
subclass is in your classpath.
the class path is:
Launching webhost.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System"
-DWOLocalRootDirectory=""
-DWOUserDirectory="/Volumes/Fig/Users/danny/webhost/build" -classpath
"/Volumes/Fig/Users/danny/webhost/build/webhost.woa/Contents/Resources/
Java/webhost.jar:...clip...:/System/Library/Frameworks/
JavaJDBCAdaptor.framework/Resources/Java/javajdbcadaptor.jar:/Users/
danny/Library/Java:
>>>/Library/Java:<<<< it's in there, and modeler finds it
(/Library/Java/Extensions/pg73jdbc3.jar)
/System/Library/Java:/Network/Library/Java" Application
I also tried putting the adaptor's file (pg73jdbc3.jar) in as a
resource. I've tried several adaptors, nothing seems to work? Is there
someplace else the adaptor needs to be put?
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
--
Chuck Hill email@hidden
Global Village Consulting Inc. http://www.global-village.net
Progress is the mother of all problems.
- G. K. Chesterton
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.