Re: Postgresql problem
Re: Postgresql problem
- Subject: Re: Postgresql problem
- From: Giorgio Valoti <email@hidden>
- Date: Fri, 16 Apr 2004 09:45:49 +0200
On 16/apr/04, at 07:00, Peter McGregor wrote:
Hi
I am upgrading some of my applications to 5.2.3
I can generate and run my application in XCode without any problems
However when I try to run the application as a servlet on my same
development machine, I get an error accessing postgres.
The error is
Initializing PostgresqlPlugin
- An exception occurred while trying to open a channel:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot load JDBC
driver class 'null'
Maybe the connection parameters are wrong. EOF is searching a class
with a null name.
The database version is postgres 7.4
I created the servlet by copying a simple servlet demo that I had
created and then modifying web.xml
and changing the .woa application.
I can't figure out how come the application runs under XCode, but not
in a servlet.
Any help welcome
- Peter
My Servlet Frameworks Directory
--------------------------------------------
macshine:~/Documents/downloads/apache/tomcat/jakarta-tomcat-4.1.24/bin
peter$ ls -l ../webapps/rooms/WEB-INF/Library/Frameworks/
total 0
drwxr-xr-x 5 peter peter 170 16 Apr 16:19 ERExtensions.framework
drwxr-xr-x 3 peter peter 102 16 Apr 16:19 ERJars.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaEOAccess.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaEOControl.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaFoundation.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaJDBCAdaptor.framework
drwxr-xr-x 6 peter peter 204 16 Apr 16:19 JavaWOExtensions.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaWOJSPServlet.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaWebObjects.framework
drwxr-xr-x 4 peter peter 136 16 Apr 16:19 JavaXML.framework
drwxr-xr-x 5 peter peter 170 16 Apr 16:20 PostgresqlPlugIn.framework
catalina.out
----------------
- Welcome to rooms!
2189 [main] INFO er.extensions.ERXNSLogLog4jBridge - Welcome to rooms!
- <WOApplication>.primeApplication: Application class is not in a
package. This could cause problems with some appservers.
2190 [main] INFO er.extensions.ERXNSLogLog4jBridge -
<WOApplication>.primeApplication: Application class is not in a
package. This could cause problems with some appservers.
- WOCachingEnabled is true. Disabling the rapid turnaround for
Properties files
2191 [main] INFO er.extensions.ERXConfigurationManager -
WOCachingEnabled is true. Disabling the rapid turnaround for
Properties files
- I assume this is deployment mode, rapid-turnaround mode is disabled
2215 [main] INFO er.extensions.ERXCompilerProxy - I assume this is
deployment mode, rapid-turnaround mode is disabled
- The URL for webserver connect through Servlet Container is:
http://macshine.shine.net.nz//rooms/WebObjects/rooms.woa
2515 [main] INFO er.extensions.ERXNSLogLog4jBridge - The URL for
webserver connect through Servlet Container is:
http://macshine.shine.net.nz//rooms/WebObjects/rooms.woa
Apr 16, 2004 4:27:51 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Apr 16, 2004 4:27:51 PM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Apr 16, 2004 4:27:51 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=7/102
config=/Users/peter/Documents/downloads/apache/tomcat/jakarta-tomcat
-4.1.24/conf/jk2.properties
- 16 Apr 2004 16:27:52 wOName = Main
6170 [Thread-9] INFO er.extensions.ERXNSLogLog4jBridge - 16 Apr 2004
16:27:52 wOName = Main
Initializing PostgresqlPlugin
- An exception occurred while trying to open a channel:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot load JDBC
driver class 'null'
6882 [Thread-9] INFO er.extensions.ERXNSLogLog4jBridge - An exception
occurred while trying to open a channel:
com.webobjects.jdbcadaptor.JDBCAdaptorException: Cannot load JDBC
driver class 'null'
- <com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@b008e7: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
6884 [Thread-9] INFO er.extensions.ERXNSLogLog4jBridge -
<com.webobjects.appserver._private.WOComponentRequestHandler>:
Exception occurred while handling request:
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@b008e7: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
<rooms>[2004-04-16 16:27:53 NZST] <Thread-9>
java.lang.IllegalStateException: _obtainOpenChannel --
com.webobjects.eoaccess.EODatabaseContext
com.webobjects.eoaccess.EODatabaseContext@b008e7: failed to open
database channel. Check your connection dictionary, and ensure your
database is correctly configured.
at
com.webobjects.eoaccess.EODatabaseContext._obtainOpenChannel(EODatabase
Context.java:2132)
at
com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificatio
nEditingContext(EODatabaseContext.java:3195)
at
com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification
(EODatabaseContext.java:3337)
at
com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpeci
fication(EOObjectStoreCoordinator.java:539)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification
(EOEditingContext.java:4053)
at
com.webobjects.eocontrol.EOEditingContext.objectsWithFetchSpecification
(EOEditingContext.java:4438)
at Library.getRecords(Library.java:337)
at Security.getComponent(Security.java:32)
at StandardTemplate.appendToResponse(StandardTemplate.java:40)
at
com.webobjects.appserver._private.WOComponentReference.appendToResponse
(WOComponentReference.java:111)
at
com.webobjects.appserver._private.WODynamicGroup.appendChildrenToRespon
se(WODynamicGroup.java:121)
_______________________________________________
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.
_______________________________________________
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.