cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Holmes <r...@hyperstep.com>
Subject Error loading project after selecting DBCPDataSourceFactory
Date Sat, 28 Apr 2007 20:47:32 GMT
My project refuses to load after selecting the DBCPDataSourceFactory.  
I've checked my dbcp.properties file against the example at http:// 
cayenne.apache.org/doc20/dbcpdatasourcefactory.html, I've checked  
that this properties file is indeed specified in the 'Properties  
File' text field, and I've tried including commons-dbcp and commons- 
pool in the Cayenne Modeler's classpath. All to no avail. Here is the  
stack trace from my modeler.log file.

CayenneModeler WARN  [AWT-EventQueue-0 04-24 23:43:58]  
org.apache.cayenne.modeler.action.OpenProjectAction: Error loading  
project file.
org.apache.cayenne.project.ProjectException: [v.2.0.2 January 14  
2007] Error initializaing project configuration.
         at org.apache.cayenne.project.ApplicationProject.loadProject 
(ApplicationProject.java:130)
         at  
org.apache.cayenne.project.ApplicationProject.postInitialize 
(ApplicationProject.java:106)
         at org.apache.cayenne.project.ApplicationProject.<init> 
(ApplicationProject.java:90)
         at  
org.apache.cayenne.modeler.action.OpenProjectAction.openProject 
(OpenProjectAction.java:111)
         at  
org.apache.cayenne.modeler.action.OpenProjectAction.performAction 
(OpenProjectAction.java:99)
         at  
org.apache.cayenne.modeler.util.CayenneAction.actionPerformed 
(CayenneAction.java:163)
         at javax.swing.AbstractButton.fireActionPerformed 
(AbstractButton.java:1882)
         at javax.swing.AbstractButton$Handler.actionPerformed 
(AbstractButton.java:2202)
         at javax.swing.DefaultButtonModel.fireActionPerformed 
(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed 
(DefaultButtonModel.java:258)
         at javax.swing.plaf.basic.BasicButtonListener.mouseReleased 
(BasicButtonListener.java:234)
         at java.awt.AWTEventMulticaster.mouseReleased 
(AWTEventMulticaster.java:231)
         at java.awt.Component.processMouseEvent(Component.java:5554)
         at javax.swing.JComponent.processMouseEvent(JComponent.java: 
3126)
         at java.awt.Component.processEvent(Component.java:5319)
         at java.awt.Container.processEvent(Container.java:2010)
         at java.awt.Component.dispatchEventImpl(Component.java:4021)
         at java.awt.Container.dispatchEventImpl(Container.java:2068)
         at java.awt.Component.dispatchEvent(Component.java:3869)
         at java.awt.LightweightDispatcher.retargetMouseEvent 
(Container.java:4256)
         at java.awt.LightweightDispatcher.processMouseEvent 
(Container.java:3936)
         at java.awt.LightweightDispatcher.dispatchEvent 
(Container.java:3866)
         at java.awt.Container.dispatchEventImpl(Container.java:2054)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3869)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy 
(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy 
(EventDispatchThread.java:190)
         at java.awt.EventDispatchThread.pumpEvents 
(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEvents 
(EventDispatchThread.java:176)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java: 
110)
Caused by: org.apache.cayenne.CayenneRuntimeException: [v.2.0.2  
January 14 2007] Null dataSource
         at org.apache.cayenne.dba.AutoAdapter.<init> 
(AutoAdapter.java:105)
         at org.apache.cayenne.dba.AutoAdapter.<init> 
(AutoAdapter.java:95)
         at org.apache.cayenne.modeler.util.ModelerDbAdapter.<init> 
(ModelerDbAdapter.java:50)
         at  
org.apache.cayenne.modeler.action.ModelerProjectLoadDelegate.initAdapter 
(ModelerProjectLoadDelegate.java:48)
         at  
org.apache.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode 
(RuntimeLoadDelegate.java:315)
         at org.apache.cayenne.conf.ConfigLoader$NodeHandler.init 
(ConfigLoader.java:330)
         at org.apache.cayenne.conf.ConfigLoader 
$DomainHandler.startElement(ConfigLoader.java:219)
         at  
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElemen 
t(AbstractSAXParser.java:533)
         at  
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanSta 
rtElement(XMLNSDocumentScannerImpl.java:330)
         at  
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl 
$FragmentContentDispatcher.dispatch 
(XMLDocumentFragmentScannerImpl.java:1693)
         at  
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.s 
canDocument(XMLDocumentFragmentScannerImpl.java:368)
         at  
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:834)
         at  
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse 
(XML11Configuration.java:764)
         at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse 
(XMLParser.java:148)
         at  
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse 
(AbstractSAXParser.java:1242)
         at org.apache.cayenne.conf.ConfigLoader.loadDomains 
(ConfigLoader.java:78)
         at org.apache.cayenne.conf.DefaultConfiguration.initialize 
(DefaultConfiguration.java:161)
         at org.apache.cayenne.project.ApplicationProject.loadProject 
(ApplicationProject.java:127)
         ... 30 more



Any ideas?

Thanks,
-Ryan




Mime
View raw message