cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Fischer <farkmisc...@gmail.com>
Subject Cayenne wicket application
Date Wed, 01 Dec 2010 20:22:18 GMT
I cannot get my wicket application to run once I add cayenne.  I get "Can
not load JDBC driver named 'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver".  I have the microsoft jdbc
driver in my classpath so I do not understand why it is not being found?  I
tried googling but did not come up with anything that seemed to relate to
this problem.  What am I doing wrong?



INFO  - log                        - Logging to
org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
org.mortbay.log.Slf4jLog
>>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
INFO  - log                        - jetty-6.1.4
INFO  - log                        - NO JSP Support for /, did not find
org.apache.jasper.servlet.JspServlet
INFO  - WebXmlFile                 - web.xml: found filter with name
wicket.lockbox. url-pattern=/*
INFO  - Application                - [wicket.lockbox] init: Wicket core
library initializer
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IBehaviorListener, method=public abstract
void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IBehaviorListener, method=public abstract
void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IFormSubmitListener, method=public abstract
void
org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IFormSubmitListener, method=public abstract
void
org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=ILinkListener, method=public abstract void
org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IOnChangeListener, method=public abstract
void
org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IOnChangeListener, method=public abstract
void
org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IRedirectListener, method=public abstract
void org.apache.wicket.IRedirectListener.onRedirect()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IRedirectListener, method=public abstract
void org.apache.wicket.IRedirectListener.onRedirect()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IResourceListener, method=public abstract
void org.apache.wicket.IResourceListener.onResourceRequested()]
INFO  - RequestListenerInterface   - registered listener interface
[RequestListenerInterface name=IResourceListener, method=public abstract
void org.apache.wicket.IResourceListener.onResourceRequested()]
INFO  - WebApplication             - [wicket.lockbox] Started Wicket version
1.5-M2.1 in development mode
********************************************************************
*** WARNING: Wicket is running in DEVELOPMENT mode.              ***
***                               ^^^^^^^^^^^                    ***
*** Do NOT deploy to your live server(s) without changing this.  ***
*** See Application#getConfigurationType() for more information. ***
********************************************************************
INFO  - RuntimeLoadDelegate        - started configuration loading.
INFO  - RuntimeLoadDelegate        - loaded domain: HMDomain
INFO  - RuntimeLoadDelegate        - loaded <map name='LockBoxMap'
location='LockBoxMap.map.xml'>.
INFO  - RuntimeLoadDelegate        - loading <node name='LockBoxDomainNode'
datasource='LockBoxDomainNode.driver.xml'
factory='org.apache.cayenne.conf.DriverDataSourceFactory'
schema-update-strategy='org.apache.cayenne.access.dbsync.SkipSchemaUpdateStrategy'>.
INFO  - RuntimeLoadDelegate        - using factory:
org.apache.cayenne.conf.DriverDataSourceFactory
INFO  - DriverDataSourceFactory    - loading driver information from
'LockBoxDomainNode.driver.xml'.
INFO  - DriverDataSourceFactory    - loading driver
com.microsoft.sqlserver.jdbc.SQLServerDriver
INFO  - DriverDataSourceFactory    - loading user name and password.
INFO  - QueryLogger                - Created connection pool:
jdbc:sqlserver://HM-22\SQLEXPRESS;databaseName=Lockbox;SelectMethod=cursor
    Driver class: com.microsoft.sqlserver.jdbc.SQLServerDriver
    Min. connections in the pool: 1
    Max. connections in the pool: 1
INFO  - QueryLogger                - *** Connecting: FAILURE.
java.sql.SQLException: Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conn.DriverDataSource.loadDriver(DriverDataSource.java:59)
    at
org.apache.cayenne.conn.DriverDataSource.setDriverClassName(DriverDataSource.java:253)
    at
org.apache.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:98)
    at
org.apache.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:84)
    at org.apache.cayenne.conn.PoolManager.<init>(PoolManager.java:89)
    at
org.apache.cayenne.conf.DriverDataSourceFactory.getDataSource(DriverDataSourceFactory.java:82)
    at
org.apache.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:334)
    at
org.apache.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:345)
    at
org.apache.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:222)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
    at
org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:78)
    at
org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)
    at
org.apache.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:83)
    at
org.apache.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:59)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
    at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
    at org.mortbay.jetty.Server.doStart(Server.java:220)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at com.havenmanor.lockbox.Start.main(Start.java:35)
INFO  - RuntimeLoadDelegate        - Error: DataSource load failed
java.sql.SQLException: Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conn.DriverDataSource.loadDriver(DriverDataSource.java:59)
    at
org.apache.cayenne.conn.DriverDataSource.setDriverClassName(DriverDataSource.java:253)
    at
org.apache.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:98)
    at
org.apache.cayenne.conn.DriverDataSource.<init>(DriverDataSource.java:84)
    at org.apache.cayenne.conn.PoolManager.<init>(PoolManager.java:89)
    at
org.apache.cayenne.conf.DriverDataSourceFactory.getDataSource(DriverDataSourceFactory.java:82)
    at
org.apache.cayenne.conf.RuntimeLoadDelegate.shouldLoadDataNode(RuntimeLoadDelegate.java:334)
    at
org.apache.cayenne.conf.ConfigLoader$NodeHandler.init(ConfigLoader.java:345)
    at
org.apache.cayenne.conf.ConfigLoader$DomainHandler.startElement(ConfigLoader.java:222)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
Source)
    at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
Source)
    at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
Source)
    at
org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:78)
    at
org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)
    at
org.apache.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:83)
    at
org.apache.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:59)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
    at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
    at org.mortbay.jetty.Server.doStart(Server.java:220)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at com.havenmanor.lockbox.Start.main(Start.java:35)
INFO  - RuntimeLoadDelegate        - no adapter set, using automatic
adapter.
INFO  - RuntimeLoadDelegate        - loaded map-ref: LockBoxMap.
ERROR - log                        - failed Cayenne Filter
org.apache.cayenne.ConfigurationException: [v.3.0.1 Sep 06 2010 15:09:38]
Error during Configuration initialization. [v.3.0.1 Sep 06 2010 15:09:38]
Load failures. Main configuration class:
org.apache.cayenne.conf.DefaultConfiguration, details:
    domain.node.name=LockBoxDomainNode,
domain.node.datasource=LockBoxDomainNode.driver.xml, reason: DataSource load
failed - Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:168)
    at
org.apache.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:83)
    at
org.apache.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:59)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
    at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
    at org.mortbay.jetty.Server.doStart(Server.java:220)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at com.havenmanor.lockbox.Start.main(Start.java:35)
Caused by: org.apache.cayenne.ConfigurationException: [v.3.0.1 Sep 06 2010
15:09:38] Load failures. Main configuration class:
org.apache.cayenne.conf.DefaultConfiguration, details:
    domain.node.name=LockBoxDomainNode,
domain.node.datasource=LockBoxDomainNode.driver.xml, reason: DataSource load
failed - Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:489)
    at
org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:79)
    at
org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)
    ... 14 more
ERROR - log                        - Failed startup of context
org.mortbay.jetty.webapp.WebAppContext@9df354{/,src/main/webapp}
org.apache.cayenne.ConfigurationException: [v.3.0.1 Sep 06 2010 15:09:38]
Error during Configuration initialization. [v.3.0.1 Sep 06 2010 15:09:38]
Load failures. Main configuration class:
org.apache.cayenne.conf.DefaultConfiguration, details:
    domain.node.name=LockBoxDomainNode,
domain.node.datasource=LockBoxDomainNode.driver.xml, reason: DataSource load
failed - Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:168)
    at
org.apache.cayenne.conf.ServletUtil.initializeSharedConfiguration(ServletUtil.java:83)
    at
org.apache.cayenne.conf.WebApplicationContextFilter.init(WebApplicationContextFilter.java:59)
    at org.mortbay.jetty.servlet.FilterHolder.doStart(FilterHolder.java:99)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:594)
    at org.mortbay.jetty.servlet.Context.startContext(Context.java:139)
    at
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1218)
    at
org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:500)
    at
org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:448)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at
org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:117)
    at org.mortbay.jetty.Server.doStart(Server.java:220)
    at
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:40)
    at com.havenmanor.lockbox.Start.main(Start.java:35)
Caused by: org.apache.cayenne.ConfigurationException: [v.3.0.1 Sep 06 2010
15:09:38] Load failures. Main configuration class:
org.apache.cayenne.conf.DefaultConfiguration, details:
    domain.node.name=LockBoxDomainNode,
domain.node.datasource=LockBoxDomainNode.driver.xml, reason: DataSource load
failed - Can not load JDBC driver named
'com.microsoft.sqlserver.jdbc.SQLServerDriver':
com.microsoft.sqlserver.jdbc.SQLServerDriver
    at
org.apache.cayenne.conf.RuntimeLoadDelegate.finishedLoading(RuntimeLoadDelegate.java:489)
    at
org.apache.cayenne.conf.ConfigLoader.loadDomains(ConfigLoader.java:79)
    at
org.apache.cayenne.conf.DefaultConfiguration.initialize(DefaultConfiguration.java:152)
    at
org.apache.cayenne.conf.Configuration.initializeSharedConfiguration(Configuration.java:159)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message