-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 
Author Message
 Post subject: java.lang.UnsupportedOperationException
PostPosted: Fri May 21, 2004 6:04 pm 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
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)


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 21, 2004 7:47 pm 
Senior
Senior

Joined: Fri Nov 21, 2003 5:55 am
Posts: 155
Do you have deploy all jar needed?
There is only these informations for the exception?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 8:56 am 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
subich,

Yes, I think I have all the jars deployed. I deployed all jars based on the Hibernate 3rd Party libraries in chapter 1. Quickstart with Tomcat. Do you think I am missing some??

Yes, that is all I am getting.

Thanks,

kjsanchez


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 8:57 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Don't use DBCP, use one of the other pools.

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 2:32 pm 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
Thanks!!! Will try and let you know..


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2004 2:57 pm 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
Hello Again,

Sorry for the inconvenience.....

I am now using C3PO, but now getting the following error:

java.lang.AbstractMethodError
at com.mchange.v2.sql.filter.FilterDatabaseMetaData.supportsResultSetType(FilterDatabaseMetaData.java:442)
at net.sf.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:75)
at net.sf.hibernate.cfg.Configuration.buildSettings(Configuration.java:1132)
at net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:766)
at net.sf.hibernate.examples.quickstart.HibernateUtil.<clinit>(HibernateUtil.java:27)
at net.sf.hibernate.examples.quickstart.HibernateCatServlet.doGet(HibernateCatServlet.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)


[INFO] Http11Protocol - -Initializing Coyote HTTP/1.1 on http-8080
[INFO] Catalina - -Initialization processed in 4324 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=10/60 config=C:\jakarta\jakarta-tomcat-5.
0.24\conf\jk2.properties
[INFO] Catalina - -Server startup in 30058 ms
IN DO GET
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
BEFORE GET SESSION
14:55:47,932 INFO Environment:462 - Hibernate 2.1.3
14:55:47,972 INFO Environment:496 - loaded properties from resource hibernate.p
roperties: {hibernate.connection.password=amlcmt123, hibernate.query.substitutio
ns=true 1, false 0, yes 'Y', no 'N', hibernate.cache.region_prefix=hibernate.tes
t, hibernate.proxool.pool_alias=pool1, hibernate.c3p0.max_statements=100, hibern
ate.jdbc.batch_size=0, hibernate.c3p0.timeout=5000, hibernate.cache.use_query_ca
che=true, hibernate.max_fetch_depth=1, hibernate.c3p0.min_size=5, hibernate.jdbc
.use_streams_for_binary=true, hibernate.session_factory_name=jdbc/quickstart, hi
bernate.connection.pool_size=1, hibernate.connection.username=amlcmt, hibernate.
connection.driver_class=com.sybase.jdbc.SybDriver, hibernate.cache.provider_clas
s=net.sf.ehcache.hibernate.Provider, hibernate.c3p0.max_size=2, hibernate.connec
tion.provider_class=net.sf.hibernate.connection.C3P0ConnectionProvider, hibernat
e.cglib.use_reflection_optimizer=true, hibernate.transaction.factory_class=net.s
f.hibernate.transaction.JDBCTransactionFactory, hibernate.dialect=net.sf.hiberna
te.dialect.SybaseDialect, hibernate.connection.url=jdbc:sybase:Tds:nmoadsm10.ny.
fw.gs.com:6064/AMLCMT}
14:55:48,022 INFO Environment:518 - using java.io streams to persist binary typ
es
14:55:48,043 INFO Environment:519 - using CGLIB reflection optimizer
14:55:48,053 INFO Environment:530 - JVM does not support Statement.getGenerated
Keys()
14:55:48,073 INFO Environment:541 - JVM does not support LinkedHasMap, LinkedHa
shSet - ordered maps and sets disabled
14:55:48,103 INFO Environment:544 - using workaround for JVM bug in java.sql.Ti
mestamp
14:55:48,143 INFO Configuration:872 - configuring from resource: /hibernate.cfg
.xml
14:55:48,163 INFO Configuration:844 - Configuration resource: /hibernate.cfg.xm
l
14:55:48,593 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sour
ceforge.net/hibernate-configuration-2.0.dtd in classpath under net/sf/hibernate/

14:55:48,723 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net
/hibernate-configuration-2.0.dtd in classpath
14:55:48,943 DEBUG Configuration:830 - connection.datasource=java:comp/env/jdbc/
quickstart
14:55:48,963 DEBUG Configuration:830 - show_sql=false
14:55:48,973 DEBUG Configuration:830 - dialect=net.sf.hibernate.dialect.SybaseDi
alect
14:55:49,003 DEBUG Configuration:989 - null<-org.dom4j.tree.DefaultAttribute@aeb
74 [Attribute: name resource value "Cat.hbm.xml"]
14:55:49,023 INFO Configuration:328 - Mapping resource: Cat.hbm.xml
14:55:49,053 DEBUG DTDEntityResolver:20 - trying to locate http://hibernate.sour
ceforge.net/hibernate-mapping-2.0.dtd in classpath under net/sf/hibernate/
14:55:49,083 DEBUG DTDEntityResolver:29 - found http://hibernate.sourceforge.net
/hibernate-mapping-2.0.dtd in classpath
14:55:49,574 INFO Binder:229 - Mapping class: net.sf.hibernate.examples.quickst
art.Cat -> CAT
14:55:50,154 DEBUG Binder:475 - Mapped property: id -> cat_id, type: string
14:55:50,275 DEBUG Binder:475 - Mapped property: name -> name, type: string
14:55:50,285 DEBUG Binder:475 - Mapped property: sex -> sex, type: character
14:55:50,295 DEBUG Binder:475 - Mapped property: weight -> weight, type: float
14:55:50,305 INFO Configuration:1030 - Configured SessionFactory: null
14:55:50,315 DEBUG Configuration:1031 - properties: {show_sql=false, java.vendor
=Sun Microsystems Inc., catalina.base=C:\jakarta\jakarta-tomcat-5.0.24, hibernat
e.connection.url=jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.com:6064/AMLCMT, connection.
datasource=java:comp/env/jdbc/quickstart, catalina.useNaming=true, os.name=Windo
ws XP, sun.boot.class.path=T:\LegalApps\JDK\1.3.1_06\jre\lib\rt.jar;T:\LegalApps
\JDK\1.3.1_06\jre\lib\i18n.jar;T:\LegalApps\JDK\1.3.1_06\jre\lib\sunrsasign.jar;
T:\LegalApps\JDK\1.3.1_06\jre\classes, hibernate.c3p0.max_size=2, java.vm.specif
ication.vendor=Sun Microsystems Inc., java.runtime.version=1.3.1_06-b01, hiberna
te.c3p0.min_size=5, hibernate.cache.provider_class=net.sf.ehcache.hibernate.Prov
ider, user.name=sanchk, shared.loader=${catalina.base}/shared/classes,${catalina
.base}/shared/lib/*.jar, log4j.configuration=file:C:/jakarta/jakarta-tomcat-5.0.
24/webapps/quickstart/WEB-INF/lib/log4j.properties, hibernate.session_factory_na
me=jdbc/quickstart, hibernate.c3p0.timeout=5000, user.language=en, java.naming.f
actory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.pa
th=T:\LegalApps\JDK\1.3.1_06\jre\bin, dialect=net.sf.hibernate.dialect.SybaseDia
lect, java.version=1.3.1_06, user.timezone=America/New_York, java.endorsed.dirs=
C:\jakarta\jakarta-tomcat-5.0.24\common\endorsed, sun.cpu.isalist=pentium i486 i
386, file.encoding.pkg=sun.io, package.access=sun.,org.apache.catalina.,org.apac
he.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=\, j
ava.specification.name=Java Platform API Specification, hibernate.cglib.use_refl
ection_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.datasourc
e=java:comp/env/jdbc/quickstart, hibernate.transaction.factory_class=net.sf.hibe
rnate.transaction.JDBCTransactionFactory, java.awt.fonts=, path.separator=;, jav
a.vm.version=1.3.1_06-b01, hibernate.max_fetch_depth=1, hibernate.connection.pas
sword=amlcmt123, hibernate.jdbc.batch_size=0, java.awt.printerjob=sun.awt.window
s.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.window
s.WToolkit, hibernate.connection.username=amlcmt, package.definition=sun.,java.,
org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., h
ibernate.cache.region_prefix=hibernate.test, java.naming.factory.url.pkgs=org.ap
ache.naming, user.home=C:\Documents and Settings\sanchk, hibernate.query.substit
utions=true 1, false 0, yes 'Y', no 'N', java.specification.vendor=Sun Microsyst
ems 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:\WINDOWS;C:\WINDOWS\Syste
m32\Wbem;C:\Program Files\Support Tools\;c:\Program Files\Perl\bin;c:\WINDOWS\Sy
stem32\;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:\Program Files\sybase\OCS-12
_0\bin;c:\Program Files\sybase\asep;c:\Program Files\sybase\sqlremote\dll;I:\rv\
bin;I:\JMSforETXandRV\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 F
iles\Microsoft Visual Studio\Common\MSDev98\Bin;c:\Program Files\Microsoft Visua
l Studio\Common\Tools;c:\Program Files\Microsoft Visual Studio\VC98\bin;T:\Legal
Apps\jakarta\apache-ant-1.5.2\bin, java.vendor.url=http://java.sun.com/, hiberna
te.connection.driver_class=com.sybase.jdbc.SybDriver, hibernate.proxool.pool_ali
as=pool1, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=net.sf.hiberna
te.dialect.SybaseDialect, common.loader=${catalina.home}/common/classes,${catali
na.home}/common/endorsed/*.jar,${catalina.home}/common/lib/*.jar, hibernate.jdbc
.use_streams_for_binary=true, java.runtime.name=Java(TM) 2 Runtime Environment,
Standard Edition, java.class.path=T:\LegalApps\JDK\1.3.1_06\lib\tools.jar;C:\jak
arta\jakarta-tomcat-5.0.24\bin\bootstrap.jar, java.vm.specification.name=Java Vi
rtual Machine Specification, java.vm.specification.version=1.0, catalina.home=C:
\jakarta\jakarta-tomcat-5.0.24, sun.cpu.endian=little, hibernate.cache.use_query
_cache=true, hibernate.connection.provider_class=net.sf.hibernate.connection.C3P
0ConnectionProvider, 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=${catali
na.home}/server/classes,${catalina.home}/server/lib/*.jar, os.arch=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\bin, line.separato
r=
, java.vm.name=Java HotSpot(TM) Client VM, file.encoding=Cp1252, user.region=US,
java.specification.version=1.3, hibernate.show_sql=false, hibernate.c3p0.max_st
atements=100, hibernate.connection.pool_size=1}
14:55:50,835 INFO Configuration:613 - processing one-to-many association mappin
gs
14:55:50,855 INFO Configuration:622 - processing one-to-one association propert
y references
14:55:50,875 INFO Configuration:647 - processing foreign key constraints
14:55:51,075 INFO Dialect:82 - Using dialect: net.sf.hibernate.dialect.SybaseDi
alect
14:55:51,105 INFO SettingsFactory:58 - Maximim outer join fetch depth: 1
14:55:51,115 INFO SettingsFactory:62 - Use outer join fetching: true
14:55:51,145 INFO ConnectionProviderFactory:53 - Initializing connection provid
er: net.sf.hibernate.connection.C3P0ConnectionProvider
14:55:51,185 INFO C3P0ConnectionProvider:48 - C3P0 using driver: com.sybase.jdb
c.SybDriver at URL: jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.com:6064/AMLCMT
14:55:51,205 INFO C3P0ConnectionProvider:49 - Connection properties: {user=amlc
mt, password=amlcmt123}
14:55:51,486 INFO TransactionFactoryFactory:31 - Transaction strategy: net.sf.h
ibernate.transaction.JDBCTransactionFactory
14:55:51,526 INFO TransactionManagerLookupFactory:33 - No TransactionManagerLoo
kup configured (in JTA environment, use of process level read-write cache is not
recommended)
Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@415056 [ conn
ectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@7779
e3 [ acquireIncrement -> 1, autoCommitOnClose -> false, connectionTesterClassNam
e -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, factoryClassLocation -> n
ull, forceIgnoreUnresolvedTransactions -> false, idleConnectionTestPeriod -> 0,
initialPoolSize -> 5, maxIdleTime -> 5000, maxPoolSize -> 2, maxStatements -> 10
0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSo
urce@14e21 [ description -> null, driverClass -> null, factoryClassLocation -> n
ull, jdbcUrl -> jdbc:sybase:Tds:nmoadsm10.ny.fw.gs.com:6064/AMLCMT, properties -
> {user=amlcmt, password=amlcmt123} ] , propertyCycle -> 300, testConnectionOnCh
eckout -> false ] , factoryClassLocation -> null, numHelperThreads -> 3 ]


Top
 Profile  
 
 Post subject: Re: java.lang.UnsupportedOperationException
PostPosted: Mon May 24, 2004 3:26 pm 
Beginner
Beginner

Joined: Thu May 20, 2004 3:40 pm
Posts: 33
kjsanchez wrote:
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
hibernate.connection.password
hibernate.connection.rl


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)


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 7 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.