-->
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.  [ 4 posts ] 
Author Message
 Post subject: Weird:Session Creation Fails after Redeployment (not before)
PostPosted: Tue Jun 27, 2006 5:06 pm 
Newbie

Joined: Fri Nov 04, 2005 5:40 pm
Posts: 16
The Problem:
When i start my JBoss Server everything works great on the first deployment. But when i redeploy the Application without rebooting the Server the Hibernatesessionfactory seems having weird problems. See the Stacktrace below. What the heck is going on there, is this a bug? Or is Hibernate just not able to be redeployed :(

The Code where Exception occurs:
Code:
    public static Session currentSession() throws HibernateException {
        Session session = (Session) threadLocal.get();

      if (session == null || !session.isOpen()) {
         if (sessionFactory == null) {
            try {
               cfg.configure(CONFIG_FILE_LOCATION);
               sessionFactory = cfg.buildSessionFactory();
            } catch (Exception e) {
               System.err
                     .println("%%%% Error Creating SessionFactory %%%%");
               e.printStackTrace();
            }
         }
         session = (sessionFactory != null) ? sessionFactory.openSession()
               : null;
         threadLocal.set(session);
      }

        return session;
    }


Hibernate version: 3

Mapping documents:

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:
21:48:25,734 INFO [Server] Starting JBoss (MX MicroKernel)...
21:48:25,734 INFO [Server] Release ID: JBoss [Zion] 4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)
21:48:25,765 INFO [Server] Home Dir: C:\Programme\jboss-4.0.4.GA
21:48:25,765 INFO [Server] Home URL: file:/C:/Programme/jboss-4.0.4.GA/
21:48:25,765 INFO [Server] Patch URL: null
21:48:25,765 INFO [Server] Server Name: default
21:48:25,765 INFO [Server] Server Home Dir: C:\Programme\jboss-4.0.4.GA\server\default
21:48:25,765 INFO [Server] Server Home URL: file:/C:/Programme/jboss-4.0.4.GA/server/default/
21:48:25,765 INFO [Server] Server Log Dir: C:\Programme\jboss-4.0.4.GA\server\default\log
21:48:25,765 INFO [Server] Server Temp Dir: C:\Programme\jboss-4.0.4.GA\server\default\tmp
21:48:25,765 INFO [Server] Root Deployment Filename: jboss-service.xml
21:48:26,703 INFO [ServerInfo] Java version: 1.5.0_07,Sun Microsystems Inc.
21:48:26,703 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_07-b03,Sun Microsystems Inc.
21:48:26,703 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
21:48:31,734 INFO [Server] Core system initialized
21:48:37,984 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
21:48:55,468 INFO [SnmpAgentService] SNMP agent going active
21:48:56,015 INFO [AspectDeployer] Deployed AOP: file:/C:/Programme/jboss-4.0.4.GA/server/default/deploy/tc5-cluster.sar/tc5-cluster.aop
21:48:56,718 INFO [TreeCache] setting cluster properties from xml to: UDP(down_thread=false;enable_bundling=true;ip_ttl=2;loopback=false;max_bundle_size=64000;max_bundle_timeout=30;mcast_addr=230.1.2.7;mcast_port=45577;mcast_recv_buf_size=25000000;mcast_send_buf_size=640000;ucast_recv_buf_size=20000000;ucast_send_buf_size=640000;up_thread=false;use_incoming_packet_handler=true;use_outgoing_packet_handler=true):PING(down_thread=false;num_initial_members=3;timeout=2000;up_thread=false):MERGE2(down_thread=false;max_interval=100000;min_interval=20000;up_thread=false):FD(down_thread=false;max_tries=5;shun=true;timeout=2500;up_thread=false):VERIFY_SUSPECT(down_thread=false;timeout=1500;up_thread=false):pbcast.NAKACK(discard_delivered_msgs=true;down_thread=false;gc_lag=50;max_xmit_size=60000;retransmit_timeout=100,200,300,600,1200,2400,4800;up_thread=false;use_mcast_xmit=false):UNICAST(down_thread=false;timeout=300,600,1200,2400,3600;up_thread=false):pbcast.STABLE(desired_avg_gossip=50000;down_thread=false;max_bytes=2100000;stability_delay=1000;up_thread=false):pbcast.GMS(down_thread=false;join_retry_timeout=2000;join_timeout=3000;print_local_addr=true;shun=true;up_thread=false):FC(down_thread=false;max_credits=10000000;min_threshold=0.20;up_thread=false):FRAG2(down_thread=false;frag_size=60000;up_thread=false):pbcast.STATE_TRANSFER(down_thread=false;up_thread=false)
21:48:58,750 INFO [WebService] Using RMI server codebase: http://notebook:8083/
21:49:07,093 INFO [MailService] Mail Service bound to java:/Mail
21:49:08,546 INFO [DefaultPartition] Initializing
21:49:09,093 INFO [TreeCache] interceptor chain is:
class org.jboss.cache.interceptors.CallInterceptor
class org.jboss.cache.interceptors.PessimisticLockInterceptor
class org.jboss.cache.interceptors.UnlockInterceptor
class org.jboss.cache.interceptors.ReplicationInterceptor
21:49:09,093 INFO [TreeCache] cache mode is REPL_ASYNC
21:49:09,750 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
21:49:09,984 INFO [SubscriptionManager] Bound event dispatcher to java:/EventDispatcher
21:49:10,078 INFO [STDOUT]
-------------------------------------------------------
GMS: address is notebook:2678 (additional data: 18 bytes)
-------------------------------------------------------
21:49:12,171 INFO [DefaultPartition] Number of cluster members: 1
21:49:12,171 INFO [DefaultPartition] Other members: 0
21:49:12,187 INFO [DefaultPartition] New cluster view for partition DefaultPartition (id: 0, delta: 0) : [192.168.0.100:1099]
21:49:12,187 INFO [DefaultPartition] Fetching state (will wait for 30000 milliseconds):
21:49:12,265 INFO [DefaultPartition] I am (192.168.0.100:1099) received membershipChanged event:
21:49:12,265 INFO [DefaultPartition] Dead members: 0 ([])
21:49:12,265 INFO [DefaultPartition] New Members : 0 ([])
21:49:12,265 INFO [DefaultPartition] All Members : 1 ([192.168.0.100:1099])
21:49:12,390 INFO [HANamingService] Started ha-jndi bootstrap jnpPort=1100, backlog=50, bindAddress=/0.0.0.0
21:49:12,421 INFO [DetachedHANamingService$AutomaticDiscovery] Listening on /0.0.0.0:1102, group=230.0.0.4, HA-JNDI address=192.168.0.100:1100
21:49:15,265 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000D8000102000000000E3139322E3136382E302E313030000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313030000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
21:49:15,468 INFO [STDOUT]
-------------------------------------------------------
GMS: address is notebook:2680
-------------------------------------------------------
21:49:17,515 INFO [TreeCache] viewAccepted(): [notebook:2680|0] [notebook:2680]
21:49:17,515 INFO [TreeCache] my local address is notebook:2680
21:49:17,515 INFO [TreeCache] state could not be retrieved (must be first member in group)
21:49:17,515 INFO [TreeCache] Cache is started!!
21:49:17,531 INFO [TreeCache] new cache is null (may be first member in cluster)
21:49:18,109 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000D8000102000000000E3139322E3136382E302E313030000DC8000000144A426F73732F5472616E73616374696F6E732F46000000050000000000000008000000004A414300000000010000001C00000000000100010000000105010001000101090000000105010001000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E302E313030000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F0000000400000003000000010000002000000000000000020000002000000004000000000000001F0000000400000003]
21:49:20,484 INFO [Embedded] Catalina naming disabled
21:49:20,718 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
21:49:20,718 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
21:49:22,312 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
21:49:22,312 INFO [Catalina] Initialization processed in 1594 ms
21:49:22,312 INFO [StandardService] Starting service jboss.web
21:49:22,328 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.17
21:49:22,453 INFO [StandardHost] XML validation disabled
21:49:22,593 INFO [Catalina] Server startup in 281 ms
21:49:23,484 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
21:49:27,437 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
21:49:28,109 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp5504jbossws-exp.war/
21:49:28,796 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
21:49:29,875 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
21:49:35,921 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
21:49:36,203 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
21:49:36,343 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
21:49:36,531 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
21:49:36,765 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
21:49:36,937 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
21:49:40,718 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
21:49:41,640 INFO [A] Bound to JNDI name: queue/A
21:49:41,656 INFO Bound to JNDI name: queue/B
21:49:41,656 INFO [C] Bound to JNDI name: queue/C
21:49:41,656 INFO [D] Bound to JNDI name: queue/D
21:49:41,671 INFO [ex] Bound to JNDI name: queue/ex
21:49:41,765 INFO [testTopic] Bound to JNDI name: topic/testTopic
21:49:41,765 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
21:49:41,765 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
21:49:41,796 INFO [testQueue] Bound to JNDI name: queue/testQueue
21:49:41,984 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
21:49:42,156 INFO [DLQ] Bound to JNDI name: queue/DLQ
21:49:42,953 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
21:49:46,140 INFO [TomcatDeployer] deploy, ctxPath=/gameservice, warUrl=.../tmp/deploy/tmp5549gameservice-exp.war/
21:49:51,109 INFO [root] Config: Loaded XML from C:/Programme/jboss-4.0.4.GA/server/default/conf/gameservice-config.xml
21:49:51,125 INFO [root] MBean successfully loaded (de.gameservice.jmx:type=Config) ...
21:49:51,750 INFO [TilesPlugin] Tiles definition factory loaded for module ''.
21:49:52,234 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
21:49:53,562 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
21:49:54,328 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
21:49:54,421 INFO [JkMain] Jk running ID=0 time=0/203 config=null
21:49:54,453 INFO [Server] JBoss (MX MicroKernel) [4.0.4.GA (build: CVSTag=JBoss_4_0_4_GA date=200605151000)] Started in 1m:28s:672ms
21:50:13,000 INFO [TilesRequestProcessor] Tiles definition factory found for request processor ''.
21:50:13,156 INFO [root] Requesting Session
21:50:13,343 INFO [Environment] Hibernate 3.2 cr2
21:50:13,375 INFO [Environment] hibernate.properties not found
21:50:13,375 INFO [Environment] Bytecode provider name : cglib
21:50:13,421 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
21:50:14,093 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
21:50:14,093 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
21:50:14,140 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Currencies.hbm.xml
21:50:14,593 INFO [HbmBinder] Mapping class: de.gameservice.library.Currencies -> currencies
21:50:14,734 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Duelle.hbm.xml
21:50:14,843 INFO [HbmBinder] Mapping class: de.gameservice.library.Duelle -> duelle
21:50:16,875 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Kontofuehrung.hbm.xml
21:50:17,156 INFO [HbmBinder] Mapping class: de.gameservice.library.Kontofuehrung -> kontofuehrung
21:50:17,156 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Regions.hbm.xml
21:50:17,265 INFO [HbmBinder] Mapping class: de.gameservice.library.Regions -> regions
21:50:17,265 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Users.hbm.xml
21:50:17,859 INFO [HbmBinder] Mapping class: de.gameservice.library.Users -> users
21:50:17,875 INFO [Configuration] Reading mappings from resource: de/gameservice/library/TourneyResults.hbm.xml
21:50:17,921 INFO [HbmBinder] Mapping class: de.gameservice.library.TourneyResults -> tourney_results
21:50:17,921 INFO [Configuration] Reading mappings from resource: de/gameservice/library/DuelleResults.hbm.xml
21:50:18,000 INFO [HbmBinder] Mapping class: de.gameservice.library.DuelleResults -> duelle_results
21:50:18,000 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Tourneys.hbm.xml
21:50:18,062 INFO [HbmBinder] Mapping class: de.gameservice.library.Tourneys -> tourneys
21:50:18,078 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Buddies.hbm.xml
21:50:18,093 INFO [HbmBinder] Mapping class: de.gameservice.library.Buddies -> buddies
21:50:18,109 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Messages.hbm.xml
21:50:18,140 INFO [HbmBinder] Mapping class: de.gameservice.library.Messages -> messages
21:50:18,140 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Countries.hbm.xml
21:50:18,171 INFO [HbmBinder] Mapping class: de.gameservice.library.Countries -> countries
21:50:18,171 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Games.hbm.xml
21:50:18,218 INFO [HbmBinder] Mapping class: de.gameservice.library.Games -> games
21:50:18,218 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Spielprofile.hbm.xml
21:50:18,281 INFO [HbmBinder] Mapping class: de.gameservice.library.Spielprofile -> spielprofile
21:50:18,281 INFO [Configuration] Reading mappings from resource: de/gameservice/library/AddressFormats.hbm.xml
21:50:18,328 INFO [HbmBinder] Mapping class: de.gameservice.library.AddressFormats -> address_formats
21:50:18,343 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Languages.hbm.xml
21:50:18,375 INFO [HbmBinder] Mapping class: de.gameservice.library.Languages -> languages
21:50:18,375 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Gamekats.hbm.xml
21:50:18,421 INFO [HbmBinder] Mapping class: de.gameservice.library.Gamekats -> gamekats
21:50:18,421 INFO [Configuration] Configured SessionFactory: null
21:50:18,453 INFO [HbmBinder] Mapping collection: de.gameservice.library.Currencies.userses -> users
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Duelle.duelleResultses -> duelle_results
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.buddiesesForOUsersFk -> buddies
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.messagesesForRUsersFk -> messages
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.tourneyResultses -> tourney_results
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.kontofuehrungs -> kontofuehrung
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.spielprofiles -> spielprofile
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.messagesesForSUsersFk -> messages
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.duelleResultses -> duelle_results
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.buddiesesForFUsersFk -> buddies
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Tourneys.tourneyResultses -> tourney_results
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Countries.userses -> users
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Countries.regionses -> regions
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.spielprofiles -> spielprofile
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.duelles -> duelle
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.tourneyses -> tourneys
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.AddressFormats.countrieses -> countries
21:50:18,468 INFO [HbmBinder] Mapping collection: de.gameservice.library.Languages.userses -> users
21:50:18,484 INFO [HbmBinder] Mapping collection: de.gameservice.library.Gamekats.gameses -> games
21:50:18,546 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
21:50:18,546 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
21:50:18,546 INFO [DriverManagerConnectionProvider] autocommit mode: false
21:50:18,562 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/gameservice
21:50:18,562 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=jcw8dpm7wc}
21:50:19,437 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
21:50:19,437 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
21:50:19,625 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
21:50:19,671 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
21:50:19,703 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
21:50:19,703 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
21:50:19,703 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
21:50:19,703 INFO [SettingsFactory] JDBC batch size: 15
21:50:19,703 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
21:50:19,703 INFO [SettingsFactory] Scrollable result sets: enabled
21:50:19,703 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
21:50:19,703 INFO [SettingsFactory] Connection release mode: auto
21:50:19,718 INFO [SettingsFactory] Maximum outer join fetch depth: 2
21:50:19,718 INFO [SettingsFactory] Default batch fetch size: 1
21:50:19,718 INFO [SettingsFactory] Generate SQL with comments: disabled
21:50:19,718 INFO [SettingsFactory] Order SQL updates by primary key: disabled
21:50:19,718 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
21:50:19,734 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
21:50:19,734 INFO [SettingsFactory] Query language substitutions: {}
21:50:19,750 INFO [SettingsFactory] Second-level cache: enabled
21:50:19,750 INFO [SettingsFactory] Query cache: disabled
21:50:19,750 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
21:50:19,765 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
21:50:19,765 INFO [SettingsFactory] Structured second-level cache entries: disabled
21:50:19,812 INFO [SettingsFactory] Statistics: disabled
21:50:19,812 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
21:50:19,812 INFO [SettingsFactory] Default entity-mode: pojo
21:50:20,015 INFO [SessionFactoryImpl] building session factory
21:50:20,078 WARN [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Programme/jboss-4.0.4.GA/server/default/tmp/deploy/tmp5549gameservice-exp.war/WEB-INF/lib/ehcache-1.2.jar!/ehcache-failsafe.xml
21:50:23,875 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
21:50:26,171 INFO [root] New Query: select count(*) from Users where username = :username and password = :password - RSType: ROWCOUNT
22:35:01,515 INFO [TomcatDeployer] undeploy, ctxPath=/gameservice, warUrl=.../tmp/deploy/tmp5549gameservice-exp.war/
22:35:01,531 INFO [root] MBean successfully destroyed (de.gameservice.jmx:type=Config) ...
22:35:23,671 INFO [TomcatDeployer] deploy, ctxPath=/gameservice, warUrl=.../tmp/deploy/tmp5552gameservice-exp.war/
22:35:27,984 INFO [root] Config: Loaded XML from C:/Programme/jboss-4.0.4.GA/server/default/conf/gameservice-config.xml
22:35:28,000 INFO [root] MBean successfully loaded (de.gameservice.jmx:type=Config) ...
22:35:28,484 INFO [TilesPlugin] Tiles definition factory loaded for module ''.
22:35:51,000 INFO [TilesRequestProcessor] Tiles definition factory found for request processor ''.
22:35:51,093 INFO [root] Requesting Session
22:35:51,109 INFO [Configuration] configuring from resource: /hibernate.cfg.xml
22:35:51,109 INFO [Configuration] Configuration resource: /hibernate.cfg.xml
22:35:51,140 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Currencies.hbm.xml
22:35:51,203 INFO [HbmBinder] Mapping class: de.gameservice.library.Currencies -> currencies
22:35:51,203 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Duelle.hbm.xml
22:35:51,265 INFO [HbmBinder] Mapping class: de.gameservice.library.Duelle -> duelle
22:35:51,265 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Kontofuehrung.hbm.xml
22:35:51,296 INFO [HbmBinder] Mapping class: de.gameservice.library.Kontofuehrung -> kontofuehrung
22:35:51,296 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Regions.hbm.xml
22:35:51,390 INFO [HbmBinder] Mapping class: de.gameservice.library.Regions -> regions
22:35:51,390 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Users.hbm.xml
22:35:51,421 INFO [HbmBinder] Mapping class: de.gameservice.library.Users -> users
22:35:51,421 INFO [Configuration] Reading mappings from resource: de/gameservice/library/TourneyResults.hbm.xml
22:35:51,468 INFO [HbmBinder] Mapping class: de.gameservice.library.TourneyResults -> tourney_results
22:35:51,468 INFO [Configuration] Reading mappings from resource: de/gameservice/library/DuelleResults.hbm.xml
22:35:51,500 INFO [HbmBinder] Mapping class: de.gameservice.library.DuelleResults -> duelle_results
22:35:51,515 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Tourneys.hbm.xml
22:35:51,578 INFO [HbmBinder] Mapping class: de.gameservice.library.Tourneys -> tourneys
22:35:51,578 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Buddies.hbm.xml
22:35:51,593 INFO [HbmBinder] Mapping class: de.gameservice.library.Buddies -> buddies
22:35:51,609 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Messages.hbm.xml
22:35:51,718 INFO [HbmBinder] Mapping class: de.gameservice.library.Messages -> messages
22:35:51,718 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Countries.hbm.xml
22:35:51,750 INFO [HbmBinder] Mapping class: de.gameservice.library.Countries -> countries
22:35:51,750 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Games.hbm.xml
22:35:51,781 INFO [HbmBinder] Mapping class: de.gameservice.library.Games -> games
22:35:51,781 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Spielprofile.hbm.xml
22:35:51,812 INFO [HbmBinder] Mapping class: de.gameservice.library.Spielprofile -> spielprofile
22:35:51,812 INFO [Configuration] Reading mappings from resource: de/gameservice/library/AddressFormats.hbm.xml
22:35:51,875 INFO [HbmBinder] Mapping class: de.gameservice.library.AddressFormats -> address_formats
22:35:51,875 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Languages.hbm.xml
22:35:51,937 INFO [HbmBinder] Mapping class: de.gameservice.library.Languages -> languages
22:35:51,953 INFO [Configuration] Reading mappings from resource: de/gameservice/library/Gamekats.hbm.xml
22:35:52,078 INFO [HbmBinder] Mapping class: de.gameservice.library.Gamekats -> gamekats
22:35:52,078 INFO [Configuration] Configured SessionFactory: null
22:35:52,078 INFO [HbmBinder] Mapping collection: de.gameservice.library.Currencies.userses -> users
22:35:52,078 INFO [HbmBinder] Mapping collection: de.gameservice.library.Duelle.duelleResultses -> duelle_results
22:35:52,078 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.buddiesesForOUsersFk -> buddies
22:35:52,078 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.messagesesForRUsersFk -> messages
22:35:52,078 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.tourneyResultses -> tourney_results
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.kontofuehrungs -> kontofuehrung
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.spielprofiles -> spielprofile
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.messagesesForSUsersFk -> messages
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.duelleResultses -> duelle_results
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Users.buddiesesForFUsersFk -> buddies
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Tourneys.tourneyResultses -> tourney_results
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Countries.userses -> users
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Countries.regionses -> regions
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.spielprofiles -> spielprofile
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.duelles -> duelle
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Games.tourneyses -> tourneys
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.AddressFormats.countrieses -> countries
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Languages.userses -> users
22:35:52,093 INFO [HbmBinder] Mapping collection: de.gameservice.library.Gamekats.gameses -> games
22:35:52,109 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!)
22:35:52,109 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20
22:35:52,109 INFO [DriverManagerConnectionProvider] autocommit mode: false
22:35:52,109 INFO [DriverManagerConnectionProvider] using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/gameservice
22:35:52,109 INFO [DriverManagerConnectionProvider] connection properties: {user=root, password=jcw8dpm7wc}
22:35:52,171 INFO [SettingsFactory] RDBMS: MySQL, version: 5.0.22-community-nt
22:35:52,171 INFO [SettingsFactory] JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-3.1.12 ( $Date: 2005-11-17 15:53:48 +0100 (Thu, 17 Nov 2005) $, $Revision$ )
22:35:52,171 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
22:35:52,171 INFO [TransactionFactoryFactory] Using default transaction strategy (direct JDBC transactions)
22:35:52,171 INFO [TransactionManagerLookupFactory] No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
22:35:52,171 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
22:35:52,171 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
22:35:52,171 INFO [SettingsFactory] JDBC batch size: 15
22:35:52,171 INFO [SettingsFactory] JDBC batch updates for versioned data: disabled
22:35:52,171 INFO [SettingsFactory] Scrollable result sets: enabled
22:35:52,171 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): enabled
22:35:52,171 INFO [SettingsFactory] Connection release mode: auto
22:35:52,171 INFO [SettingsFactory] Maximum outer join fetch depth: 2
22:35:52,171 INFO [SettingsFactory] Default batch fetch size: 1
22:35:52,171 INFO [SettingsFactory] Generate SQL with comments: disabled
22:35:52,171 INFO [SettingsFactory] Order SQL updates by primary key: disabled
22:35:52,187 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
22:35:52,187 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
22:35:52,187 INFO [SettingsFactory] Query language substitutions: {}
22:35:52,187 INFO [SettingsFactory] Second-level cache: enabled
22:35:52,187 INFO [SettingsFactory] Query cache: disabled
22:35:52,187 INFO [SettingsFactory] Cache provider: org.hibernate.cache.EhCacheProvider
22:35:52,187 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
22:35:52,187 INFO [SettingsFactory] Structured second-level cache entries: disabled
22:35:52,187 INFO [SettingsFactory] Statistics: disabled
22:35:52,187 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
22:35:52,187 INFO [SettingsFactory] Default entity-mode: pojo
22:35:52,203 INFO [SessionFactoryImpl] building session factory
22:35:52,203 WARN [ConfigurationFactory] No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: null
22:35:52,203 ERROR [STDERR] %%%% Error Creating SessionFactory %%%%
22:35:52,203 ERROR [STDERR] net.sf.ehcache.CacheException: Error configuring from null. Initial cause was null
22:35:52,203 ERROR [STDERR] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:95)
22:35:52,218 ERROR [STDERR] at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:131)
22:35:52,218 ERROR [STDERR] at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:236)
22:35:52,218 ERROR [STDERR] at net.sf.ehcache.CacheManager.init(CacheManager.java:187)
22:35:52,218 ERROR [STDERR] at net.sf.ehcache.CacheManager.<init>(CacheManager.java:180)
22:35:52,218 ERROR [STDERR] at org.hibernate.cache.EhCacheProvider.start(EhCacheProvider.java:124)
22:35:52,218 ERROR [STDERR] at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:180)
22:35:52,218 ERROR [STDERR] at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1213)
22:35:52,218 ERROR [STDERR] at de.gameservice.library.HibernateSessionFactory.currentSession(HibernateSessionFactory.java:49)
22:35:52,218 ERROR [STDERR] at de.gameservice.business.BusinessLogic.getSession(BusinessLogic.java:57)
22:35:52,218 ERROR [STDERR] at de.gameservice.business.BusinessLogic.queryHibernate(BusinessLogic.java:84)
22:35:52,218 ERROR [STDERR] at de.gameservice.business.BusinessLogic.checkUser(BusinessLogic.java:373)
22:35:52,218 ERROR [STDERR] at de.gameservice.struts.action.LogonAction.login(LogonAction.java:36)
22:35:52,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
22:35:52,218 ERROR [STDERR] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
22:35:52,218 ERROR [STDERR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
22:35:52,218 ERROR [STDERR] at java.lang.reflect.Method.invoke(Method.java:585)
22:35:52,218 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)
22:35:52,218 ERROR [STDERR] at org.apache.struts.actions.DispatchAction.execute(DispatchAction.java:194)
22:35:52,218 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)
22:35:52,218 ERROR [STDERR] at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
22:35:52,218 ERROR [STDERR] at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)
22:35:52,218 ERROR [STDERR] at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
22:35:52,218 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
22:35:52,218 ERROR [STDERR] at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
22:35:52,218 ERROR [STDERR] at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
22:35:52,218 ERROR [STDERR] at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
22:35:52,218 ERROR [STDERR] at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
22:35:52,218 ERROR [STDERR] at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
22:35:52,218 ERROR [STDERR] at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
22:35:52,218 ERROR [STDERR] at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
22:35:52,218 ERROR [STDERR] at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
22:35:52,218 ERROR [STDERR] at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
22:35:52,218 ERROR [STDERR] at java.lang.Thread.run(Thread.java:595)
22:35:52,234 WARN [RequestProcessor] Unhandled Exception thrown: class java.lang.NullPointerException
22:35:52,234 ERROR [[action]] Servlet.service() for servlet action threw exception

[b]Name and version of the database you are using:

MySQL 5 (InnoDB)

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 27, 2006 5:51 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Try putting an ehcache.xml in your classpath, it may be that ehcache is getting confused during the process. There's a sample ehcache.xml in the etc directory of the hibernate distribution: modify it as you see fit, then put it in your war or whatever the JBoss equivalent is. You want the file to end up in the root of your classpath.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
 Post subject: not working
PostPosted: Tue Jun 27, 2006 6:27 pm 
Newbie

Joined: Fri Nov 04, 2005 5:40 pm
Posts: 16
I have put ehcache.xml into my /WEB-INF/ and also tried /WEB-INF/lib
but in both cases its still taking the failsafe on the first run (and fails on redeploy)


maybe it's a bug?


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jun 27, 2006 6:52 pm 
Expert
Expert

Joined: Thu Dec 23, 2004 9:08 pm
Posts: 2008
Neither of those places are in your classpath. Put it in WEB-INF/classes.

_________________
Code tags are your friend. Know them and use them.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.