• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Postgresql problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Postgresql problem


  • Subject: Postgresql problem
  • From: Peter McGregor <email@hidden>
  • Date: Fri, 16 Apr 2004 17:00:34 +1200

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'


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(EODatabaseContext.java:2132)
at com.webobjects.eoaccess.EODatabaseContext._objectsWithFetchSpecificationEditingContext(EODatabaseContext.java:3195)
at com.webobjects.eoaccess.EODatabaseContext.objectsWithFetchSpecification(EODatabaseContext.java:3337)
at com.webobjects.eocontrol.EOObjectStoreCoordinator.objectsWithFetchSpecification(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.appendChildrenToResponse(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.



  • Follow-Ups:
    • Re: Postgresql problem
      • From: Giorgio Valoti <email@hidden>
  • Prev by Date: Re: filteredArrayWithQualifier and AllowsConcurrentRequestHandling
  • Next by Date: Frameworks and DisplayGroups
  • Previous by thread: Re: Best Practice Displaying Option Text Field
  • Next by thread: Re: Postgresql problem
  • Index(es):
    • Date
    • Thread