This is my compilation message :
check last few lines of it :-------
0 [main] INFO org.hibernate.cfg.Environment - Hibernate 3.1 rc1
71 [main] INFO org.hibernate.cfg.Environment - hibernate.properties not found
101 [main] INFO org.hibernate.cfg.Environment - using CGLIB reflection optimizer
131 [main] INFO org.hibernate.cfg.Environment - using JDK 1.4 java.sql.Timestamp handling
601 [main] INFO org.hibernate.cfg.Configuration - configuring from resource: /hibernate.cfg.xml
611 [main] INFO org.hibernate.cfg.Configuration - Configuration resource: /hibernate.cfg.xml
2184 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: contact.hbm.xml
2804 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: package1.Contact -> CONTACT
3005 [main] INFO org.hibernate.cfg.Configuration - Configured SessionFactory: null
3035 [main] INFO org.hibernate.cfg.Configuration - processing extends queue
3035 [main] INFO org.hibernate.cfg.Configuration - processing collection mappings
3035 [main] INFO org.hibernate.cfg.Configuration - processing association property references
3035 [main] INFO org.hibernate.cfg.Configuration - processing foreign key constraints
3445 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
3455 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
3455 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
3536 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.sybase.jdbc2.jdbc.SybDriver at URL: jdbc:sybase:Tds:10.15.1.28:2638/TOS"?JCONNECT_VERSION=5
3566 [main] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=DBA, password=****}
6580 [main] INFO org.hibernate.cfg.SettingsFactory - RDBMS: Adaptive Server Anywhere, version: 7.0.4.3538
6580 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: jConnect (TM) for JDBC (TM), version: jConnect (TM) for JDBC(TM)/5.5(Build 25137)/P/EBF10000/JDK12/Sun Jan 6 21:57:04 2002
6700 [main] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.SybaseAnywhereDialect
6740 [main] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
6750 [main] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
6750 [main] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): disabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: null
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
6760 [main] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
6770 [main] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
6810 [main] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
6810 [main] INFO org.hibernate.cfg.SettingsFactory - Cache provider: org.hibernate.cache.EHCacheProvider
could not instantiate CacheProvider: org.hibernate.cache.EHCacheProvider
Exception in thread "main" java.lang.NullPointerException
at package1.SecondExample.main(SecondExample.java:47)
what i think is that it is not able to find "ehcache.xml" ... thats why gving this error.. please suggest me