-->
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.  [ 2 posts ] 
Author Message
 Post subject: Road to Hibernate question/problem
PostPosted: Tue Apr 13, 2004 9:28 am 
Newbie

Joined: Tue Apr 13, 2004 9:22 am
Posts: 2
Hi,

I'm new to Hibnerate so I'm going through the tutorial at http://www.gloegl.de/5.html. Specifically, I am working on the tomcat and webwork portion of the tutorial.

I've written the code, but when I go to deploy in under tomcat I get these exception when starting the app:

2004-04-12 22:35:43 StandardManager[/eventmanager]: Seeding random number generator class java.security.SecureRandom
2004-04-12 22:35:43 StandardManager[/eventmanager]: Seeding of random number generator has been completed
2004-04-12 22:35:45 StandardContext[/eventmanager]: Exception starting filter sessionmanager
javax.servlet.ServletException: Error reading resource: com/adhamh/road2hibernate/data/Event.hbm.xml
at com.adhamh.road2hibernate.util.SessionManager.init(SessionManager.java:41)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:266)
at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:327)
at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:120)


What would cause this? The file appears to be in the correct place as seen here:

adhamh@Amsterdam:webapps/eventmanager:>pwd
/usr/local/tomcat/webapps/eventmanager
adhamh@Amsterdam:webapps/eventmanager:>find . -print | grep hbm
./WEB-INF/classes/com/adhamh/road2hibernate/data/Event.hbm.xml
./WEB-INF/classes/com/adhamh/road2hibernate/data/User.hbm.xml


Thanks,

Adhamh


Top
 Profile  
 
 Post subject: Re: Road to Hibernate question/problem
PostPosted: Tue Apr 13, 2004 9:40 am 
Newbie

Joined: Tue Apr 13, 2004 9:22 am
Posts: 2
More information:

When I download the example code, it works fine so this is definitely my error.

Here is the method where the exception is occuring in SessionManager.java.

public void init(FilterConfig filterConfig) throws ServletException {
//init hibernate
try {
factory = new Configuration().configure().buildSessionFactory();

} catch (HibernateException ex) {throw new ServletException(ex);}
}


Thanks.


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