first, thanks for the awswers for my previous mail.
Now, something that I am worry about :
The behaviour seems to be different for a JDO component (with depends
feature) run in Standalone and in Tomcat. This is not a config pb, the
mapping files are found for both environment!
There is a "class not found exception" when I use this class but the mapping
is Ok during the
loadConfig() invocation.
Is there something to do with tomcat config or a specific classloader ?
------------------------------------
Logs ------------------------------------------
Exception
---------
org.exolab.castor.jdo.QueryException: Could not find mapping for class
fr.gouv.culture.jep.site.metier.SiteImpl
at org.exolab.castor.jdo.oql.ParseTreeWalker.checkFromPart(Unknown
Source)
at org.exolab.castor.jdo.oql.ParseTreeWalker.checkErrors(Unknown
Source)
at org.exolab.castor.jdo.oql.ParseTreeWalker.<init>(Unknown Source)
at org.exolab.castor.jdo.engine.OQLQueryImpl.create(Unknown Source)
at org.exolab.castor.jdo.engine.DatabaseImpl.getOQLQuery(Unknown
Source)
at
fr.gouv.culture.jep.site.metier.SiteFactory.getListeSites(SiteFactory.java:2
30)
Prepared Query
--------------
4203 [Thread-5] DEBUG SPF - [JDO] SQL for creating
fr.gouv.culture.jep.site.metier.SiteImpl: INSERT
INTO site
(SIT_CLE,SIT_CLE_COM,SIT_id_ext1,SIT_id_ext2,SIT_lib,SIT_lib_interro,SIT_des
c_court,SIT_d
esc_long,SIT_adresse1,SIT_adresse2,SIT_adresse3,SIT_adresse4,SIT_acces,SIT_C
LE_REG,SIT_tel,SIT_mel,S
IT_actif,SIT_protection,SIT_prot_classe,SIT_prot_inscrit,SIT_prot_etendue,SI
T_accessibilite,SIT_url,
SIT_url_actif,SIT_periode_hist,SIT_ref_photo,SIT_legende_photo,SIT_credit_ph
oto,SIT_CLE_UTI,SIT_date
_maj) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)
Mapping
-------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
"http://castor.exolab.org/mapping.dtd">
<mapping>
<class name="fr.gouv.culture.jep.commun.metier.CommuneImpl" identity="id">
<map-to table="commune" />
<field name="id" type="integer">
<sql name="COM_CLE" />
<bind-xml name="id" />
</field>
<field name="idDep" type="string">
<sql name="COM_CLE_DEP" />
<bind-xml name="idDep" />
</field>
<field name="idReg" type="string">
<sql name="COM_CLE_REG" />
<bind-xml name="idReg" />
</field>
</class>
<class name="fr.gouv.culture.jep.site.metier.SiteImpl"
depends="fr.gouv.culture.jep.commun.metier.CommuneImpl" identity="id">
<map-to table="site" />
<field name="id" type="integer">
<sql name="SIT_CLE" />
<bind-xml name="id" />
</field>
<field name="commune"
type="fr.gouv.culture.jep.commun.metier.CommuneImpl">
<sql name="SIT_CLE_COM" />
<bind-xml name="commune" />
</field>
<field name="adresse1" type="string">
<sql name="SIT_adresse1" />
<bind-xml name="adresse1" />
</field>
<field name="listeManif" collection="collection"
type="fr.gouv.culture.jep.site.metier.ManifestationImpl">
<sql many-key="MAN_CLE_SIT" />
<bind-xml name="listeManif" />
</field>
</class>
<class name="fr.gouv.culture.jep.site.metier.ManifestationImpl"
depends="fr.gouv.culture.jep.site.metier.SiteImpl" identity="id">
<map-to table="manifestation" />
<field name="id" type="integer">
<sql name="MAN_CLE" />
<bind-xml name="id" />
</field>
<field name="idNature" type="integer">
<sql name="MAN_CLE_NAT" />
<bind-xml name="idNature" />
</field>
<field name="idSite" type="integer">
<sql name="MAN_CLE_SIT" />
<bind-xml name="idSite" />
</field>
</class>
</mapping>
Thanks
Arnaud
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev