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.  [ 1 post ] 
Author Message
 Post subject: Hibernate exception that's only occouring in LInux server
PostPosted: Fri Mar 07, 2008 9:41 am 
Newbie

Joined: Fri Mar 07, 2008 8:54 am
Posts: 1
My project is a tomcat project,I m creating war files through eclipse to deploy in server.
The versions used in my project are
Hibernate verion 3.1.3
JDk version 1.5
Tomcat version 5.5
The application works fine in my local Pc,Windows server,and some Linux server.

In some Linux server the application which resides in tomcat didn't starts .

In tomcat's log file that is catelina.out it's only giving that
" ERROR LISTENER START."
But when i am looking the log file that my application is doing at the time of starting tomcat.

After successfully mapping some db table columns with my hibernate.hbm.xml files it through exception like this

2008-03-07 07:09:03,786 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.mf.bean.CreditReasonBean -> t_credit_reason
2008-03-07 07:09:03,786 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: id -> id
2008-03-07 07:09:03,786 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: version -> version
2008-03-07 07:09:03,788 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: reason -> reason
2008-03-07 07:09:03,789 [main] DEBUG org.hibernate.cfg.Configuration - null<-org.dom4j.tree.DefaultAttribute@365f2d91 [Attribute: name resource value "com/mf/bean/InvoiceBean.hbm.xml"]
2008-03-07 07:09:03,789 [main] INFO org.hibernate.cfg.Configuration - Reading mappings from resource: com/mf/bean/InvoiceBean.hbm.xml
2008-03-07 07:09:03,791 [main] DEBUG org.hibernate.util.DTDEntityResolver - trying to resolve system-id [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd]
2008-03-07 07:09:03,791 [main] DEBUG org.hibernate.util.DTDEntityResolver - recognized hibernate namespace; attempting to resolve on classpath under org/hibernate/
2008-03-07 07:09:03,791 [main] DEBUG org.hibernate.util.DTDEntityResolver - located [http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd] in classpath
2008-03-07 07:09:03,820 [main] INFO org.hibernate.cfg.HbmBinder - Mapping class: com.mf.bean.InvoiceBean -> t_invoice2008-03-07 07:09:03,821 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: id -> id
2008-03-07 07:09:03,821 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: version -> version
2008-03-07 07:09:03,823 [main] DEBUG org.hibernate.cfg.HbmBinder - Mapped property: invoiceNumber -> invoice_number
2008-03-07 07:09:03,832 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/CRC] - Exception sending context initialized event to listener instance of class com.mf.servlet.MFServletContextListener
org.hibernate.HibernateException: Could not read mappings from resource: com/mf/bean/InvoiceBean.hbm.xml
at com.mf.utils.HibernateSessionFactory.initializeSessionFactory(HibernateSessionFactory.java:126)
at com.mf.servlet.MFServletContextListener.contextInitialized(MFServletContextListener.java:65)
at org.apache.catalina.core.StandardContext.listenerStart(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployWARs(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.25.jar.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.25.jar.so)
at java.lang.reflect.Method.invoke(libgcj.so.8rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)

2008-03-07 07:09:03,841 [main] DEBUG com.mf.servlet.MFServletContextListener - *Connection Closed called from contextDestroyed
2008-03-07 07:09:03,845 [main] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/CRC] - Exception sending context destroyed event to listener instance of class com.mf.servlet.MFServletContextListener
java.lang.NullPointerException
at com.mf.servlet.MFServletContextListener.contextDestroyed(MFServletContextListener.java:54)
at org.apache.catalina.core.StandardContext.listenerStop(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardContext.stop(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardContext.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.addChildInternal(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.addChild(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardHost.addChild(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployWAR(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployWARs(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.deployApps(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.start(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(catalina-5.5.25.jar.so)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardHost.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.ContainerBase.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardEngine.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardService.start(catalina-5.5.25.jar.so)
at org.apache.catalina.core.StandardServer.start(catalina-5.5.25.jar.so)
at org.apache.catalina.startup.Catalina.start(catalina-5.5.25.jar.so)
at java.lang.reflect.Method.invoke(libgcj.so.8rh)
at org.apache.catalina.startup.Bootstrap.start(bootstrap.jar.so)
at org.apache.catalina.startup.Bootstrap.main(bootstrap.jar.so)

I don't think there is any problem in source code or in data base.
The same code and DB script is used in both Windows and Linux server.

If some one can figure out my problem that will be very helpfull to me.

Waiting for an early response

Thanks in Advance


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

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.