I keep gett the UnsupportedOperationException. Does anyone know what I am missing????
hibernate.properties
## Sybase
hibernate.dialect net.sf.hibernate.dialect.SybaseDialect
hibernate.connection.driver_class com.sybase.jdbc2.jdbc.SybDriver
hibernate.connection.username amlcmt
hibernate.connection.password amlcmt123
hibernate.connection.rl jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.com:6064/AMLCMT
hibernate.cfg.xml
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration
PUBLIC "-//Hibernate/Hibernate Configuration DTD//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-2.0.dtd">
<hibernate-configuration>
<session-factory>
<property name="connection.datasource">java:comp/env/jdbc/quickstart</property>
<property name="show_sql">false</property>
<property name="dialect">net.sf.hibernate.dialect.SybaseDialect</property>
<!-- Mapping files -->
<mapping resource="Cat.hbm.xml"/>
</session-factory>
</hibernate-configuration>
[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on http-8080
[INFO] Catalina - -Initialization processed in 4156 ms
[INFO] StandardService - -Starting service Catalina
[INFO] StandardEngine - -Starting Servlet Engine: Apache Tomcat/5.0.24
[INFO] StandardHost - -XML validation disabled
[INFO] StandardHost - -Create Host deployer for direct deployment ( non-jmx )
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:C:
\jakarta\jakarta-tomcat-5.0.24\conf\Catalina\localhost\admin.xml
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.util.
LocalStrings', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.struts.actio
n.ActionResources', returnNull=true
[INFO] PropertyMessageResources - -Initializing, config='org.apache.webapp.admin
.ApplicationResources', returnNull=true
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:C:
\jakarta\jakarta-tomcat-5.0.24\conf\Catalina\localhost\balancer.xml
[INFO] StandardHostDeployer - -Processing Context configuration file URL file:C:
\jakarta\jakarta-tomcat-5.0.24\conf\Catalina\localhost\manager.xml
[INFO] StandardHostDeployer - -Installing web application at context path /jsp-e
xamples from URL file:C:\jakarta\jakarta-tomcat-5.0.24\webapps\jsp-examples
[INFO] StandardHostDeployer - -Installing web application at context path from
URL file:C:\jakarta\jakarta-tomcat-5.0.24\webapps\ROOT
[INFO] StandardHostDeployer - -Installing web application at context path /servl
ets-examples from URL file:C:\jakarta\jakarta-tomcat-5.0.24\webapps\servlets-exa
mples
[INFO] StandardHostDeployer - -Installing web application at context path /tomca
t-docs from URL file:C:\jakarta\jakarta-tomcat-5.0.24\webapps\tomcat-docs
[INFO] StandardHostDeployer - -Installing web application at context path /webda
v from URL file:C:\jakarta\jakarta-tomcat-5.0.24\webapps\webdav
[INFO] Http11Protocol - -Starting Coyote HTTP/1.1 on http-8080
[INFO] ChannelSocket - -JK2: ajp13 listening on 0.0.0.0/0.0.0.0:8009
[INFO] JkMain - -Jk running ID=0 time=0/70 config=C:\jakarta\jakarta-tomcat-5.0
.24\conf\jk2.properties
[INFO] Catalina - -Server startup in 26465 ms
IN DO GET
BEFORE GET SESSION
17:41:10,127 INFO Environment:462 - Hibernate 2.1.3
17:41:10,167 INFO Environment:496 - loaded properties from resource hibernate.p
roperties: {hibernate.connection.driver_class=com.sybase.jdbc2.jdbc.SybDriver, h
ibernate.cglib.use_reflection_optimizer=true, hibernate.cache.provider_class=net
.sf.ehcache.hibernate.Provider, hibernate.cache.use_query_cache=true, hibernate.
max_fetch_depth=1, hibernate.connection.rl=jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.co
m:6064/AMLCMT, hibernate.dialect=net.sf.hibernate.dialect.SybaseDialect, hiberna
te.jdbc.use_streams_for_binary=true, hibernate.jdbc.batch_size=0, hibernate.quer
y.substitutions=true 1, false 0, yes 'Y', no 'N', hibernate.proxool.pool_alias=p
ool1, hibernate.connection.username=amlcmt, hibernate.cache.region_prefix=hibern
ate.test, hibernate.connection.password=amlcmt123, hibernate.connection.pool_siz
e=1}
17:41:10,217 INFO Environment:518 - using java.io streams to persist binary typ
es
17:41:10,227 INFO Environment:519 - using CGLIB reflection optimizer
17:41:10,237 INFO Environment:530 - JVM does not support Statement.getGenerated
Keys()
17:41:10,247 INFO Environment:541 - JVM does not support LinkedHasMap, LinkedHa
shSet - ordered maps and sets disabled
17:41:10,257 INFO Environment:544 - using workaround for JVM bug in java.sql.Ti
mestamp
17:41:10,297 INFO Configuration:872 - configuring from resource: /hibernate.cfg
.xml
17:41:10,297 INFO Configuration:844 - Configuration resource: /hibernate.cfg.xm
l
17:41:10,638 DEBUG DTDEntityResolver:20 - trying to locate
http://hibernate.sour
ceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/
17:41:10,728 DEBUG DTDEntityResolver:29 - found
http://hibernate.sourceforge.net
/hibernate-configuration-2.0.dtd in classpath
17:41:10,918 DEBUG Configuration:830 - connection.datasource=java:comp/env/jdbc/
quickstart
17:41:10,928 DEBUG Configuration:830 - show_sql=false
17:41:10,938 DEBUG Configuration:830 - dialect=net.sf.hibernate.dialect.SybaseDi
alect
17:41:10,948 DEBUG Configuration:989 - null<-org.dom4j.tree.DefaultAttribute@3b4
94b [Attribute: name resource value "Cat.hbm.xml"]
17:41:10,958 INFO Configuration:328 - Mapping resource: Cat.hbm.xml
17:41:10,988 DEBUG DTDEntityResolver:20 - trying to locate
http://hibernate.sour
ceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
17:41:11,008 DEBUG DTDEntityResolver:29 - found
http://hibernate.sourceforge.net
/hibernate-mapping-2.0.dtd in classpath
17:41:11,489 INFO Binder:229 - Mapping class: net.sf.hibernate.examples.quickst
art.Cat -> CAT
17:41:11,899 DEBUG Binder:475 - Mapped property: id -> cat_id, type: string
17:41:12,010 DEBUG Binder:475 - Mapped property: name -> name, type: string
17:41:12,020 DEBUG Binder:475 - Mapped property: sex -> sex, type: character
17:41:12,030 DEBUG Binder:475 - Mapped property: weight -> weight, type: float
17:41:12,040 INFO Configuration:1030 - Configured SessionFactory: null
17:41:12,040 DEBUG Configuration:1031 - properties: {show_sql=false, java.vendor
=Sun Microsystems Inc., catalina.base=C:\jakarta\jakarta-tomcat-5.0.24, connecti
on.datasource=java:comp/env/jdbc/quickstart, catalina.useNaming=true, os.name=Wi
ndows XP, sun.boot.class.path=T:\LegalApps\JDK\1.3.1_06\jre\lib\rt.jar;T:\LegalA
pps\JDK\1.3.1_06\jre\lib\i18n.jar;T:\LegalApps\JDK\1.3.1_06\jre\lib\sunrsasign.j
ar;T:\LegalApps\JDK\1.3.1_06\jre\classes, java.vm.specification.vendor=Sun Micro
systems Inc., java.runtime.version=1.3.1_06-b01, hibernate.cache.provider_class=
net.sf.ehcache.hibernate.Provider, user.name=sanchk, shared.loader=${catalina.ba
se}/shared/classes,${catalina.base}/shared/lib/*.jar, log4j.configuration=file:C
:/jakarta/jakarta-tomcat-5.0.24/webapps/quickstart/WEB-INF/lib/log4j.properties,
user.language=en, java.naming.factory.initial=org.apache.naming.java.javaURLCon
textFactory, sun.boot.library.path=T:\LegalApps\JDK\1.3.1_06\jre\bin, dialect=ne
t.sf.hibernate.dialect.SybaseDialect, java.version=1.3.1_06, user.timezone=Ameri
ca/New_York, java.endorsed.dirs=C:\jakarta\jakarta-tomcat-5.0.24\common\endorsed
, sun.cpu.isalist=pentium i486 i386, file.encoding.pkg=sun.io, package.access=su
n.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.
,sun.beans., file.separator=\, java.specification.name=Java Platform API Specifi
cation, hibernate.cglib.use_reflection_optimizer=true, java.class.version=47.0,
java.home=T:\LegalApps\JDK\1.3.1_06\jre, java.vm.info=mixed mode, os.version=5.1
, hibernate.connection.datasource=java:comp/env/jdbc/quickstart, java.awt.fonts=
, path.separator=;, java.vm.version=1.3.1_06-b01, hibernate.max_fetch_depth=1, h
ibernate.connection.password=amlcmt123, hibernate.jdbc.batch_size=0, java.awt.pr
interjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt
.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=amlcmt, package
.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat
.,org.apache.jasper., hibernate.cache.region_prefix=hibernate.test, java.naming.
factory.url.pkgs=org.apache.naming, user.home=C:\Documents and Settings\sanchk,
hibernate.query.substitutions=true 1, false 0, yes 'Y', no 'N', java.specificati
on.vendor=Sun Microsystems Inc., java.library.path=T:\LegalApps\JDK\1.3.1_06\bin
;.;C:\WINDOWS\System32;C:\WINDOWS;c:\Progra~1\Perl\bin\;C:\WINDOWS\system32;C:\W
INDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Support Tools\;c:\Program Files
\Perl\bin;c:\WINDOWS\System32\;c:\WINDOWS\;c:\Program Files\Support Tools;i:\jre
\1.3.1_06\bin;C:\Progra~1\Perl\bin;c:\Program Files\sybase\OCS-12_0\dll\;c:\Prog
ram Files\sybase\OCS-12_0\bin;c:\Program Files\sybase\asep;c:\Program Files\syba
se\sqlremote\dll;I:\rv\bin;I:\JMSforETXandRV\5.1.1\NT40_JDK1.3.0\bin;I:\JMSforET
XandRV\5.1.1\NT40_JDK1.3.0\lib;c:\Program Files\Microsoft Visual Studio\Common\T
ools\WinNT;c:\Program Files\Microsoft Visual Studio\Common\MSDev98\Bin;c:\Progra
m Files\Microsoft Visual Studio\Common\Tools;c:\Program Files\Microsoft Visual S
tudio\VC98\bin;T:\LegalApps\jakarta\apache-ant-1.5.2\bin, java.vendor.url=http:/
/java.sun.com/, hibernate.connection.driver_class=com.sybase.jdbc2.jdbc.SybDrive
r, hibernate.proxool.pool_alias=pool1, java.vm.vendor=Sun Microsystems Inc., hib
ernate.dialect=net.sf.hibernate.dialect.SybaseDialect, common.loader=${catalina.
home}/common/classes,${catalina.home}/common/endorsed/*.jar,${catalina.home}/com
mon/lib/*.jar, hibernate.jdbc.use_streams_for_binary=true, java.runtime.name=Jav
a(TM) 2 Runtime Environment, Standard Edition, java.class.path=T:\LegalApps\JDK\
1.3.1_06\lib\tools.jar;C:\jakarta\jakarta-tomcat-5.0.24\bin\bootstrap.jar, java.
vm.specification.name=Java Virtual Machine Specification, java.vm.specification.
version=1.0, catalina.home=C:\jakarta\jakarta-tomcat-5.0.24, sun.cpu.endian=litt
le, hibernate.cache.use_query_cache=true, java.io.tmpdir=C:\jakarta\jakarta-tomc
at-5.0.24\temp, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, s
erver.loader=${catalina.home}/server/classes,${catalina.home}/server/lib/*.jar,
hibernate.connection.rl=jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.com:6064/AMLCMT, os.a
rch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=T:
\LegalApps\JDK\1.3.1_06\jre\lib\ext, user.dir=C:\jakarta\jakarta-tomcat-5.0.24\b
in, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, user.region=US, file.encoding=Cp1252,
java.specification.version=1.3, hibernate.show_sql=false, hibernate.connection.
pool_size=1}
17:41:12,250 INFO Configuration:613 - processing one-to-many association mappin
gs
17:41:12,260 INFO Configuration:622 - processing one-to-one association propert
y references
17:41:12,270 INFO Configuration:647 - processing foreign key constraints
17:41:12,410 INFO Dialect:82 - Using dialect: net.sf.hibernate.dialect.SybaseDi
alect
17:41:12,430 INFO SettingsFactory:58 - Maximim outer join fetch depth: 1
17:41:12,440 INFO SettingsFactory:62 - Use outer join fetching: true
17:41:12,480 INFO NamingHelper:26 - JNDI InitialContext properties:{}
17:41:12,550 INFO DatasourceConnectionProvider:51 - Using datasource: java:comp
/env/jdbc/quickstart
17:41:12,600 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLoo
kup configured (in JTA environment, use of process level read-write cache is not
recommended)
17:41:13,191 INFO SettingsFactory:102 - Use scrollable result sets: false
17:41:13,201 INFO SettingsFactory:105 - Use JDBC3 getGeneratedKeys(): false
17:41:13,201 INFO SettingsFactory:108 - Optimize cache for minimal puts: false
17:41:13,211 INFO SettingsFactory:117 - Query language substitutions: {false=0,
no='N', yes='Y', true=1}
17:41:13,221 INFO SettingsFactory:128 - cache provider: net.sf.ehcache.hibernat
e.Provider
17:41:13,251 INFO Configuration:1093 - instantiating and configuring caches
17:41:13,952 INFO SessionFactoryImpl:119 - building session factory
17:41:13,962 DEBUG SessionFactoryImpl:125 - instantiating session factory with p
roperties: {show_sql=false, java.vendor=Sun Microsystems Inc., catalina.base=C:\
jakarta\jakarta-tomcat-5.0.24, connection.datasource=java:comp/env/jdbc/quicksta
rt, catalina.useNaming=true, os.name=Windows XP, sun.boot.class.path=T:\LegalApp
s\JDK\1.3.1_06\jre\lib\rt.jar;T:\LegalApps\JDK\1.3.1_06\jre\lib\i18n.jar;T:\Lega
lApps\JDK\1.3.1_06\jre\lib\sunrsasign.jar;T:\LegalApps\JDK\1.3.1_06\jre\classes,
java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.3.1_
06-b01, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Provider, user.n
ame=sanchk, shared.loader=${catalina.base}/shared/classes,${catalina.base}/share
d/lib/*.jar, log4j.configuration=file:C:/jakarta/jakarta-tomcat-5.0.24/webapps/q
uickstart/WEB-INF/lib/log4j.properties, user.language=en, java.naming.factory.in
itial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=T:\Leg
alApps\JDK\1.3.1_06\jre\bin, dialect=net.sf.hibernate.dialect.SybaseDialect, jav
a.version=1.3.1_06, user.timezone=America/New_York, java.endorsed.dirs=C:\jakart
a\jakarta-tomcat-5.0.24\common\endorsed, sun.cpu.isalist=pentium i486 i386, file
.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apache.coyote
.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=\, java.speci
fication.name=Java Platform API Specification, hibernate.cglib.use_reflection_op
timizer=true, java.class.version=47.0, java.home=T:\LegalApps\JDK\1.3.1_06\jre,
java.vm.info=mixed mode, os.version=5.1, hibernate.connection.datasource=java:co
mp/env/jdbc/quickstart, java.awt.fonts=, path.separator=;, java.vm.version=1.3.1
_06-b01, hibernate.max_fetch_depth=1, hibernate.connection.password=amlcmt123, h
ibernate.jdbc.batch_size=0, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun
.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibern
ate.connection.username=amlcmt, package.definition=sun.,java.,org.apache.catalin
a.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., hibernate.cache.reg
ion_prefix=hibernate.test, java.naming.factory.url.pkgs=org.apache.naming, user.
home=C:\Documents and Settings\sanchk, hibernate.query.substitutions=true 1, fal
se 0, yes 'Y', no 'N', java.specification.vendor=Sun Microsystems Inc., java.lib
rary.path=T:\LegalApps\JDK\1.3.1_06\bin;.;C:\WINDOWS\System32;C:\WINDOWS;c:\Prog
ra~1\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Progra
m Files\Support Tools\;c:\Program Files\Perl\bin;c:\WINDOWS\System32\;c:\WINDOWS
\;c:\Program Files\Support Tools;i:\jre\1.3.1_06\bin;C:\Progra~1\Perl\bin;c:\Pro
gram Files\sybase\OCS-12_0\dll\;c:\Program Files\sybase\OCS-12_0\bin;c:\Program
Files\sybase\asep;c:\Program Files\sybase\sqlremote\dll;I:\rv\bin;I:\JMSforETXan
dRV\5.1.1\NT40_JDK1.3.0\bin;I:\JMSforETXandRV\5.1.1\NT40_JDK1.3.0\lib;c:\Program
Files\Microsoft Visual Studio\Common\Tools\WinNT;c:\Program Files\Microsoft Vis
ual Studio\Common\MSDev98\Bin;c:\Program Files\Microsoft Visual Studio\Common\To
ols;c:\Program Files\Microsoft Visual Studio\VC98\bin;T:\LegalApps\jakarta\apach
e-ant-1.5.2\bin, java.vendor.url=http://java.sun.com/, hibernate.connection.driv
er_class=com.sybase.jdbc2.jdbc.SybDriver, hibernate.proxool.pool_alias=pool1, ja
va.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hibernate.dialect.S
ybaseDialect, common.loader=${catalina.home}/common/classes,${catalina.home}/com
mon/endorsed/*.jar,${catalina.home}/common/lib/*.jar, hibernate.jdbc.use_streams
_for_binary=true, java.runtime.name=Java(TM) 2 Runtime Environment, Standard Edi
tion, java.class.path=T:\LegalApps\JDK\1.3.1_06\lib\tools.jar;C:\jakarta\jakarta
-tomcat-5.0.24\bin\bootstrap.jar, java.vm.specification.name=Java Virtual Machin
e Specification, java.vm.specification.version=1.0, catalina.home=C:\jakarta\jak
arta-tomcat-5.0.24, sun.cpu.endian=little, hibernate.cache.use_query_cache=true,
java.io.tmpdir=C:\jakarta\jakarta-tomcat-5.0.24\temp, java.vendor.url.bug=http:
//java.sun.com/cgi-bin/bugreport.cgi, server.loader=${catalina.home}/server/clas
ses,${catalina.home}/server/lib/*.jar, hibernate.connection.rl=jdbc:sybase:Tds:n
moadsm10.ny.fw.gs.com:6064/AMLCMT, os.arch=x86, java.awt.graphicsenv=sun.awt.Win
32GraphicsEnvironment, java.ext.dirs=T:\LegalApps\JDK\1.3.1_06\jre\lib\ext, user
.dir=C:\jakarta\jakarta-tomcat-5.0.24\bin, line.separator=
, java.vm.name=Java HotSpot(TM) Client VM, user.region=US, file.encoding=Cp1252,
java.specification.version=1.3, hibernate.show_sql=false, hibernate.connection.
pool_size=1}
17:41:17,577 DEBUG SessionFactoryObjectFactory:39 - initializing class SessionFa
ctoryObjectFactory
17:41:17,627 DEBUG SessionFactoryObjectFactory:76 - registered: 14d6a14afca982b1
00fca982c2750000 (unnamed)
17:41:17,637 INFO SessionFactoryObjectFactory:82 - no JNDI name configured
17:41:17,647 DEBUG SessionFactoryImpl:196 - instantiated session factory
17:41:17,657 INFO UpdateTimestampsCache:35 - starting update timestamps cache a
t region: net.sf.hibernate.cache.UpdateTimestampsCache
17:41:17,787 WARN Configurator:123 - No configuration found. Configuring ehcach
e from ehcache-failsafe.xml found in the classpath: file:/C:/jakarta/jakarta-tom
cat-5.0.24/work/Catalina/localhost/quickstart/loader/ehcache-failsafe.xml
17:41:17,847 WARN Plugin:95 - Could not find configuration for net.sf.hibernate
.cache.UpdateTimestampsCache. Configuring using the defaultCache settings.
17:41:17,938 INFO QueryCache:39 - starting query cache at region: net.sf.hibern
ate.cache.QueryCache
17:41:17,948 WARN Plugin:95 - Could not find configuration for net.sf.hibernate
.cache.QueryCache. Configuring using the defaultCache settings.
17:41:18,248 DEBUG SessionImpl:542 - opened session
GOT SESSION
17:41:18,268 DEBUG JDBCTransaction:37 - begin
java.lang.UnsupportedOperationException
at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:161)
at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:532)
at net.sf.hibernate.connection.DatasourceConnectionProvider.getConnection(DatasourceConnectionProvider.java:56)
at net.sf.hibernate.impl.BatcherImpl.openConnection(BatcherImpl.java:278)
at net.sf.hibernate.impl.SessionImpl.connect(SessionImpl.java:3297)
at net.sf.hibernate.impl.SessionImpl.connection(SessionImpl.java:3277)
at net.sf.hibernate.transaction.JDBCTransaction.begin(JDBCTransaction.java:40)
at net.sf.hibernate.transaction.JDBCTransactionFactory.beginTransaction(JDBCTransactionFactory.java:19)
at net.sf.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:2220)
at net.sf.hibernate.examples.quickstart.HibernateCatServlet.doGet(HibernateCatServlet.java:44)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)