Java Mailing List Archive

http://www.junlu.com/

Home » user.castor »

[castor-user] [JDO] spring 3 with castor orm on gf3?

Zoltan Levardy

2013-01-23

Replies: Find Java Web Hosting

Author LoginPost Reply
hi,

I am trying use old code (castor 0.9.5.3), with spring v3 on a glassfish v3 server. Is there any hints on this topic? (avoid, or working, … etc.)

Next imports in place now in DAO:
import org.exolab.castor.jdo.Database;
import org.exolab.castor.jdo.JDO;
import org.exolab.castor.jdo.OQLQuery;
import org.exolab.castor.jdo.PersistenceException;
import org.exolab.castor.jdo.TransactionNotInProgressException;
import org.exolab.castor.jdo.QueryResults;
import org.exolab.castor.mapping.MappingException;
and in DTO:
import org.exolab.castor.jdo.TimeStampable;

to use as it was, simply giving error at mapping.xml:
<mapping> 
<class name="com.company.dto.CountryDTO" …

it gives exception like this, and it is strange, because the com.company.dto.CountryDTO is absolutely there:
[#|2013-01-23T10:46:39.539+0100|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=135;_ThreadName=Thread-75;|[2013-01-23 10:46:39.538+0100] [App:ERROR] [Thread-75] BaseDAO(): 
org.exolab.castor.mapping.MappingException: Could not find the class com.company.dto.CountryDTO

found something here, but not sure is it working with spring v3, and gf v3:
http://mvnrepository.com/artifact/org.codehaus.castor/spring-orm/1.3

thanks for any hints,
Zol
©2008 junlu.com - Jax Systems, LLC, U.S.A.