-->
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: Probelms with Mapping-file and JBoss
PostPosted: Thu Sep 11, 2003 7:43 pm 
Newbie

Joined: Mon Sep 08, 2003 12:45 pm
Posts: 10
Hi,

I'm using JBoss 3.0.3 with Hibernate 2.1beta3 and Struts 1.1.

While deploying my project as a SAR-file, I get the following error:
2003-09-12 01:38:08,206 INFO [net.sf.hibernate.cfg.Configuration] Mapping resource: WEB-INF/classes/de/sam/strutstest/dto/mappings/User.hbm.xml
2003-09-12 01:38:08,237 ERROR [net.sf.hibernate.cfg.Configuration] Could not compile the mapping document
java.lang.ClassNotFoundException: de.sam.strutstest.dto.User

But the WAR-file inside includes the class de.sam.strutstest.dto.User in strutstest.war/WEB-INF/classes/de/sam/strutstest/dto (the mapping file is in path strutstest.war/WEB-INF/classes/de/sam/strutstest/dto/mappings).

Sorry, if this is a stupid question. It's late and I haven't an idea where the error is coming from.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Sep 13, 2003 9:37 am 
Newbie

Joined: Mon Sep 08, 2003 12:45 pm
Posts: 10
The WAR-file is nested in the SAR-file. Normally all the code is in the WEB-INF directory of the WAR-file. Now I've put the persitent class code directly into the SAR-file. After that Hibernate finds the class files. Is there a possibility to put the code into the WEB-INF directory of the WAR-file? Is there a complete description of the parameters of the jboss-service.xml file?


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.