Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo] PersistenceMappingBuilder error
[Teneo] PersistenceMappingBuilder error [message #81952] Fri, 04 May 2007 18:19 Go to next message
Eclipse UserFriend
Originally posted by: gonzalinlinREMOVE_THIS.tiscali.es

This is a multi-part message in MIME format.

------=_NextPart_000_0019_01C78E89.872BD910
Content-Type: multipart/alternative;
boundary="----=_NextPart_001_001A_01C78E89.872BD910"


------=_NextPart_001_001A_01C78E89.872BD910
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi Martin,

I'm integrating my persistence solution (Teneo) with a =
Model-View-Controller solution.

When I call dataStore.initialize() in my code, I get this error =
(javax.servlet.ServletException throws an exception):

java.lang.NoClassDefFoundError: =
org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
java.lang.ClassLoader.defineClass1(Native Method) =
java.lang.ClassLoader.defineClass(ClassLoader.java:620) =
java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124) =
org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClas=
sLoader.java:1847) =
org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.=
java:873) =
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.=
java:1326) =
org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.=
java:1205) java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 ) =
org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore.java=
:377) =
org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366=
) =
org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:1=
56) =
es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaActio=
n.doExecute(CreateEmpresaAction.java:70) =
es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultActio=
n.java:44) =
org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestPro=
cessor.java:431) =
es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortal=
RequestProcessor.processActionPerform(MiniPortalRequestProce ssor.java:41)=
=
org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:2=
36) =
org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196) =
org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414) =
javax.servlet.http.HttpServlet.service(HttpServlet.java:690) =
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
I generated the code in a .genmodel file from 4 .ecore files. I attach =
them. The are relationships between the .ecore's. I tried the "Validate" =
option in all of them, but there are no errors.

Any hint?

Thanks in advance.

With regards,

Gonzalo
------=_NextPart_001_001A_01C78E89.872BD910
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.6000.16414" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff background=3D"">
<DIV><FONT face=3DArial size=3D2>Hi Martin,<BR><BR>I'm integrating my =
persistence=20
solution (Teneo) with a Model-View-Controller solution.<BR><BR>When I =
call=20
dataStore.initialize() in my code, I get this error=20
(javax.servlet.ServletException throws an exception):</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><PRE>java.lang.NoClassDefFoundError: =
org/eclipse/emf/teneo/annotatio<WBR>ns/mapper/PersistenceMappingBui <WBR>l=
der<BR>
java.lang.ClassLoader.defineCla<WBR>ss1(Native Method)<BR> =
java.lang.ClassLoader.defineCla<WBR>ss(ClassLoader.java:620) <BR> =
java.security.SecureClassLoader<WBR>.defineClass(SecureClassLoader.java:1=
24)<BR> =
org.apache.catalina.loader<WBR>.WebappClassLoader.findClassInt <WBR>ernal(=
WebappClassLoader.java:1847)<BR> =
org.apache.catalina.loader<WBR>.WebappClassLoader.findClass(WebappClassLo=
ader.java:873)<BR> =
org.apache.catalina.loader<WBR>.WebappClassLoader.loadClass(WebappClassLo=
ader.java:1326)<BR> =
org.apache.catalina.loader<WBR>.WebappClassLoader.loadClass(WebappClassLo=
ader.java:1205)<BR> =
java.lang.ClassLoader.loadClass<WBR>Internal(ClassLoader.java:319) <BR> =
org.eclipse.emf.teneo.hibernate<WBR>.HbDataStore.mapEPackages(HbDataStore=
..java:377)<BR> =
org.eclipse.emf.teneo.hibernate<WBR>.HbDataStore.mapModel(HbDataStore.jav=
a:366)<BR> =
org.eclipse.emf.teneo.hibernate<WBR>.HbDataStore.initialize(HbDataStore.j=
ava:156)<BR> =
es.udc.fbellas.j2ee.miniportal<WBR>.http.controller.actions <WBR>.CreateEm=
presaAction.doExecute(CreateEmpresaAction.java:70)<BR><BR> =
es.udc.fbellas.j2ee.util<WBR>.struts.action.DefaultAction<WBR >.execute(De=
faultAction.java:44)<BR> =
org.apache.struts.action<WBR>.RequestProcessor.processAction <WBR>Perform(=
RequestProcessor.java:431)<BR> =
es.udc.fbellas.j2ee.miniportal<WBR>.http.controller.frontcontrolle <WBR>r.=
MiniPortalRequestProcessor<WBR>.processActionPerform(MiniPortalRequestPro=
cessor.java:41)<BR> =
org.apache.struts.action<WBR>.RequestProcessor.process(RequestProcessor.j=
ava:236)<BR> =
org.apache.struts.action<WBR>.ActionServlet.process(ActionServlet.java:11=
96)<BR> =
org.apache.struts.action<WBR>.ActionServlet.doGet(ActionServlet.java:414)=
<BR> =
javax.servlet.http.HttpServlet<WBR>.service(HttpServlet.java:690) <BR> =
javax.servlet.http.HttpServlet<WBR>.service(HttpServlet.java:803) </PRE></=
DIV>
<DIV><BR>I generated the code in a .genmodel file from 4 .ecore files. I =
attach=20
them. The are relationships between the .ecore's. I tried the "Validate" =
option=20
in all of them, but there are no errors.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Any hint?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>With regards,</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; Gonzalo</DIV></FONT></BODY></HTML>

------=_NextPart_001_001A_01C78E89.872BD910--

------=_NextPart_000_0019_01C78E89.872BD910
Content-Type: application/octet-stream;
name="presupuesto.ecore"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="presupuesto.ecore"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=0A=
<ecore:EPackage xmi:version=3D"2.0"=0A=
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=0A=
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" =
name=3D"presupuesto"=0A=
nsURI=3D"http://productoexpediente.presupuesto" =
nsPrefix=3D"productoexpediente.presupuesto">=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"PresupuestoProducto">=0A=
<eOperations name=3D"calcularTotal" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"numPresupuesto" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"partesPresupuesto" lowerBound=3D"1"=0A=
upperBound=3D"-1" eType=3D"#//PartePresupuestoProducto" =
containment=3D"true"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" =
name=3D"PartePresupuestoProducto">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"tipo" =
unique=3D"false" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"descripcion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"importe" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
</eClassifiers>=0A=
</ecore:EPackage>=0A=

------=_NextPart_000_0019_01C78E89.872BD910
Content-Type: application/octet-stream;
name="productoexpediente.ecore"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="productoexpediente.ecore"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=0A=
<ecore:EPackage xmi:version=3D"2.0"=0A=
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=0A=
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" =
name=3D"productoexpediente"=0A=
nsURI=3D"http://productoexpediente" nsPrefix=3D"productoexpediente">=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"ProductoExpediente">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"numExp" =
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"titulo" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"objeto" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaInicio" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"fechaFin" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"importe" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"partes" =
lowerBound=3D"1"=0A=
upperBound=3D"-1" eType=3D"#//ParteProductoFacturado" =
containment=3D"true"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"estadoActual" lowerBound=3D"1"=0A=
eType=3D"#//EstadoAbstractoPE"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"estadosPrevios" upperBound=3D"-1"=0A=
eType=3D"#//EstadoAbstractoPE"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"parties" =
lowerBound=3D"1"=0A=
upperBound=3D"-1" eType=3D"ecore:EClass party.ecore#//Party"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"presupuesto" lowerBound=3D"1"=0A=
eType=3D"ecore:EClass presupuesto.ecore#//PresupuestoProducto"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"EstadoAbstractoPE" =
abstract=3D"true">=0A=
<eOperations name=3D"cambiarEstadoAEnTramitacion">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAEnEjecucion">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoACancelado">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAFinalizado">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaEntradaEnEstado" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaSalidaDeEstado" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" =
name=3D"ParteProductoFacturado">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"numParte" =
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"descripcion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaFacturacion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"EnTramitacionPE" =
abstract=3D"true" eSuperTypes=3D"#//EstadoAbstractoPE">=0A=
<eOperations name=3D"cambiarEstadoADocNoRecibida">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoADocParaFirma">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoADocFirmadaRector">=0A=
<eParameters name=3D"productoExpediente" =
eType=3D"#//ProductoExpediente"/>=0A=
</eOperations>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"DocNoRecibidaPE" =
eSuperTypes=3D"#//EnTramitacionPE"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"DocParaFirmaPE" =
eSuperTypes=3D"#//EnTramitacionPE"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"DocFirmadaRectorPE" =
eSuperTypes=3D"#//EnTramitacionPE"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"EnEjecucionPE" =
eSuperTypes=3D"#//EstadoAbstractoPE"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"CanceladoPE" =
eSuperTypes=3D"#//EstadoAbstractoPE"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FinalizadoPE" =
eSuperTypes=3D"#//EstadoAbstractoPE"/>=0A=
</ecore:EPackage>=0A=

------=_NextPart_000_0019_01C78E89.872BD910
Content-Type: application/octet-stream;
name="factura.ecore"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="factura.ecore"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=0A=
<ecore:EPackage xmi:version=3D"2.0"=0A=
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=0A=
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" =
name=3D"factura"=0A=
nsURI=3D"http://productoexpediente.factura" =
nsPrefix=3D"productoexpediente.factura">=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Factura">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"lineasFactura" lowerBound=3D"1"=0A=
upperBound=3D"-1" eType=3D"#//FacturaLinea" =
containment=3D"true"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"numFactura" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaEmision" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"totalFactura" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"estadoActual" lowerBound=3D"1"=0A=
eType=3D"#//EstadoAbstractoFactura"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"estadosPrevios" upperBound=3D"-1"=0A=
eType=3D"#//EstadoAbstractoFactura"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaLinea">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"cantidad" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"totalFacturaLinea" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"lineaParteFacturada" lowerBound=3D"1"=0A=
eType=3D"ecore:EClass =
productoexpediente.ecore#//ParteProductoFacturado"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" =
name=3D"EstadoAbstractoFactura" abstract=3D"true">=0A=
<eOperations name=3D"cambiarEstadoAFacturaNoEnviada">=0A=
<eParameters name=3D"factura" eType=3D"#//Factura"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAFacturaEnviada">=0A=
<eParameters name=3D"factura" eType=3D"#//Factura"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAFacturaCobrada">=0A=
<eParameters name=3D"factura" eType=3D"#//Factura"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAFacturaDevuelta">=0A=
<eParameters name=3D"factura" eType=3D"#//Factura"/>=0A=
</eOperations>=0A=
<eOperations name=3D"cambiarEstadoAFacturaCancelada">=0A=
<eParameters name=3D"factura" eType=3D"#//Factura"/>=0A=
</eOperations>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaEntradaEnEstado" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"fechaSalidaDeEstado" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaNoEnviada" =
eSuperTypes=3D"#//EstadoAbstractoFactura"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaEnviada" =
eSuperTypes=3D"#//EstadoAbstractoFactura"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaCobrada" =
eSuperTypes=3D"#//EstadoAbstractoFactura"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaDevuelta" =
eSuperTypes=3D"#//EstadoAbstractoFactura"/>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"FacturaCancelada" =
eSuperTypes=3D"#//EstadoAbstractoFactura"/>=0A=
</ecore:EPackage>=0A=

------=_NextPart_000_0019_01C78E89.872BD910
Content-Type: application/octet-stream;
name="party.ecore"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="party.ecore"

<?xml version=3D"1.0" encoding=3D"UTF-8"?>=0A=
<ecore:EPackage xmi:version=3D"2.0"=0A=
xmlns:xmi=3D"http://www.omg.org/XMI" =
xmlns:xsi=3D"http://www.w3.org/2001/XMLSchema-instance"=0A=
xmlns:ecore=3D"http://www.eclipse.org/emf/2002/Ecore" name=3D"party"=0A=
nsURI=3D"http://party" nsPrefix=3D"party">=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Party" =
abstract=3D"true">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"direccion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"localidad" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"codPostal" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"provincia" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"telefono1" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"extTel" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"telefono2" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"correoE" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"fax" =
unique=3D"false" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"web" =
unique=3D"false" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" =
name=3D"productos" upperBound=3D"-1"=0A=
eType=3D"ecore:EClass =
productoexpediente.ecore#//ProductoExpediente"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Empresa" =
eSuperTypes=3D"#//Party">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"cif" =
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"denominacion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"nombreComercial" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"cnae" =
unique=3D"false" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"contacto" =
lowerBound=3D"1"=0A=
upperBound=3D"-1" eType=3D"#//ContactoEmpresa" =
containment=3D"true" eOpposite=3D"#//ContactoEmpresa/empresa"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Persona" =
abstract=3D"true" eSuperTypes=3D"#//Party">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"nif" =
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"nombre" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"apellido1" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"apellido2" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"fechaNac" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDate"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"ContactoEmpresa" =
eSuperTypes=3D"#//Persona">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"cargo" =
unique=3D"false" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"dptoEmpresa" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EReference" name=3D"empresa" =
lowerBound=3D"1"=0A=
eType=3D"#//Empresa" eOpposite=3D"#//Empresa/contacto"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Pdi" =
eSuperTypes=3D"#//Persona">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"catAcademica" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"areaConocimiento" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"departamento" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"centro" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"codCtaCliente" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"remuneracion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"horasSemanales" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Pas" =
eSuperTypes=3D"#//Persona">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"gratificacion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"cosCtaCliente" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" name=3D"centro" =
unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
</eClassifiers>=0A=
<eClassifiers xsi:type=3D"ecore:EClass" name=3D"Becario" =
eSuperTypes=3D"#//Persona">=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"catAcademica" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"titulacion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"codCtaCliente" eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EString"/>=0A=
<eStructuralFeatures xsi:type=3D"ecore:EAttribute" =
name=3D"remuneracion" unique=3D"false"=0A=
eType=3D"ecore:EDataType =
http://www.eclipse.org/emf/2002/Ecore#//EDouble"/>=0A=
</eClassifiers>=0A=
</ecore:EPackage>=0A=

------=_NextPart_000_0019_01C78E89.872BD910--
Re: [Teneo] PersistenceMappingBuilder error [message #81970 is a reply to message #81952] Fri, 04 May 2007 19:21 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
I would need some extra information to comment on this. How are your plugins/jar organised?

gr. Martin

Eclipse wrote:
> Hi Martin,
>
> I'm integrating my persistence solution (Teneo) with a
> Model-View-Controller solution.
>
> When I call dataStore.initialize() in my code, I get this error
> (javax.servlet.ServletException throws an exception):
>
>
> java.lang.NoClassDefFoundError: org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>
> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> I generated the code in a .genmodel file from 4 .ecore files. I attach
> them. The are relationships between the .ecore's. I tried the "Validate"
> option in all of them, but there are no errors.
>
> Any hint?
>
> Thanks in advance.
>
> With regards,
>
> Gonzalo


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #81985 is a reply to message #81970] Fri, 04 May 2007 21:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gonzalinlinREMOVE_THIS.tiscali.es

Hi Martin, I attach 2 captures from my Eclipse project, so you can see how
it is organized. I have 3 source folders. At the same level, I create a
Build folder (for the 3 source folders). Inside the Build, there are
"Classes" and "Jar" folders.

The "src" folder contains the code generated by my .genmodel file (I created
this .genmodel with the four .ecore files I attached in my previous e-mail).
These ecore are models of different packages, and I needed to relation them.

I use Apache Tomcat as a servlet container. When I make the "deploy", I copy
every jar I need to the webapps/../lib folder.

Maybe my project isn't well organized by now, but I'm in a experimental
phase and trying to integrate (Teneo + Hibernate) with a View-Controller
solution, and with the Model generated by EMF's .genmodel. If I have
success, I'll go on with Teneo.

As I told you, there is a problem with the dataStore.initialize() call.

I hope this is the answer to your question.

Thank you!

With regards,

Gonzalo
"Martin Taal" <mtaal@elver.org> escribi
  • Attachment: Capture1.jpg
    (Size: 83.41KB, Downloaded 123 times)
  • Attachment: Capture2.jpg
    (Size: 51.04KB, Downloaded 158 times)
Re: [Teneo] PersistenceMappingBuilder error [message #82003 is a reply to message #81985] Fri, 04 May 2007 21:46 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
Which teneo jars do you copy to the WEB-INF/lib folder?

gr. Martin

Gonzalo wrote:
> Hi Martin, I attach 2 captures from my Eclipse project, so you can see how
> it is organized. I have 3 source folders. At the same level, I create a
> Build folder (for the 3 source folders). Inside the Build, there are
> "Classes" and "Jar" folders.
>
> The "src" folder contains the code generated by my .genmodel file (I created
> this .genmodel with the four .ecore files I attached in my previous e-mail).
> These ecore are models of different packages, and I needed to relation them.
>
> I use Apache Tomcat as a servlet container. When I make the "deploy", I copy
> every jar I need to the webapps/../lib folder.
>
> Maybe my project isn't well organized by now, but I'm in a experimental
> phase and trying to integrate (Teneo + Hibernate) with a View-Controller
> solution, and with the Model generated by EMF's .genmodel. If I have
> success, I'll go on with Teneo.
>
> As I told you, there is a problem with the dataStore.initialize() call.
>
> I hope this is the answer to your question.
>
> Thank you!
>
> With regards,
>
> Gonzalo
> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
> news:f1g147$2b3$1@build.eclipse.org...
>> Hi Gonzalo,
>> I would need some extra information to comment on this. How are your
>> plugins/jar organised?
>>
>> gr. Martin
>>
>> Eclipse wrote:
>>> Hi Martin,
>>>
>>> I'm integrating my persistence solution (Teneo) with a
>>> Model-View-Controller solution.
>>>
>>> When I call dataStore.initialize() in my code, I get this error
>>> (javax.servlet.ServletException throws an exception):
>>>
>>>
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>>>
>>> java.lang.ClassLoader.defineClass1(Native Method)
>>> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
>>> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
>>> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
>>> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>>>
>>> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
>>> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
>>> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
>>> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
>>> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
>>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>
>>>
>>> I generated the code in a .genmodel file from 4 .ecore files. I attach
>>> them. The are relationships between the .ecore's. I tried the "Validate"
>>> option in all of them, but there are no errors.
>>>
>>> Any hint?
>>>
>>> Thanks in advance.
>>>
>>> With regards,
>>>
>>> Gonzalo
>>
>> --
>>
>> With Regards, Martin Taal
>>
>> Springsite/Elver.org
>> Office: Hardwareweg 4, 3821 BV Amersfoort
>> Postal: Nassaulaan 7, 3941 EC Doorn
>> The Netherlands
>> Tel: +31 (0)84 420 2397
>> Fax: +31 (0)84 225 9307
>> Mail: mtaal@springsite.com - mtaal@elver.org
>> Web: www.springsite.com - www.elver.org
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #82016 is a reply to message #82003] Fri, 04 May 2007 22:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gonzalinlinREMOVE_THIS.tiscali.es

Hi Martin,

I copy the following teneo jars to the WEB-INF/lib folder:

- org.eclipse.emf.teneo.hibernate.mapper_0.7.5v200704222357.ja r
- org.eclipse.emf.teneo.hibernate_0.7.5v200704222357.jar
- org.eclipse.emf.teneo_0.7.5v200704222357.jar

With regards,

Gonzalo

"Martin Taal" <mtaal@elver.org> escribi
Re: [Teneo] PersistenceMappingBuilder error [message #82030 is a reply to message #82016] Fri, 04 May 2007 22:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
The org.eclipse.emf.teneo.annotations jar should also be there.

gr. Martin

Gonzalo wrote:
> Hi Martin,
>
> I copy the following teneo jars to the WEB-INF/lib folder:
>
> - org.eclipse.emf.teneo.hibernate.mapper_0.7.5v200704222357.ja r
> - org.eclipse.emf.teneo.hibernate_0.7.5v200704222357.jar
> - org.eclipse.emf.teneo_0.7.5v200704222357.jar
>
> With regards,
>
> Gonzalo
>
> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
> news:f1g9k1$red$1@build.eclipse.org...
>> Hi Gonzalo,
>> Which teneo jars do you copy to the WEB-INF/lib folder?
>>
>> gr. Martin
>>
>> Gonzalo wrote:
>>> Hi Martin, I attach 2 captures from my Eclipse project, so you can see
>>> how it is organized. I have 3 source folders. At the same level, I create
>>> a Build folder (for the 3 source folders). Inside the Build, there are
>>> "Classes" and "Jar" folders.
>>>
>>> The "src" folder contains the code generated by my .genmodel file (I
>>> created this .genmodel with the four .ecore files I attached in my
>>> previous e-mail). These ecore are models of different packages, and I
>>> needed to relation them.
>>>
>>> I use Apache Tomcat as a servlet container. When I make the "deploy", I
>>> copy every jar I need to the webapps/../lib folder.
>>>
>>> Maybe my project isn't well organized by now, but I'm in a experimental
>>> phase and trying to integrate (Teneo + Hibernate) with a View-Controller
>>> solution, and with the Model generated by EMF's .genmodel. If I have
>>> success, I'll go on with Teneo.
>>>
>>> As I told you, there is a problem with the dataStore.initialize() call.
>>>
>>> I hope this is the answer to your question.
>>>
>>> Thank you!
>>>
>>> With regards,
>>>
>>> Gonzalo
>>> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
>>> news:f1g147$2b3$1@build.eclipse.org...
>>>> Hi Gonzalo,
>>>> I would need some extra information to comment on this. How are your
>>>> plugins/jar organised?
>>>>
>>>> gr. Martin
>>>>
>>>> Eclipse wrote:
>>>>> Hi Martin,
>>>>>
>>>>> I'm integrating my persistence solution (Teneo) with a
>>>>> Model-View-Controller solution.
>>>>>
>>>>> When I call dataStore.initialize() in my code, I get this error
>>>>> (javax.servlet.ServletException throws an exception):
>>>>>
>>>>>
>>>>> java.lang.NoClassDefFoundError:
>>>>> org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>>>>>
>>>>> java.lang.ClassLoader.defineClass1(Native Method)
>>>>> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
>>>>> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
>>>>> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
>>>>> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>>>>>
>>>>> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
>>>>> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
>>>>> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
>>>>> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
>>>>> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
>>>>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>>
>>>>>
>>>>> I generated the code in a .genmodel file from 4 .ecore files. I attach
>>>>> them. The are relationships between the .ecore's. I tried the
>>>>> "Validate"
>>>>> option in all of them, but there are no errors.
>>>>>
>>>>> Any hint?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> With regards,
>>>>>
>>>>> Gonzalo
>>>> --
>>>>
>>>> With Regards, Martin Taal
>>>>
>>>> Springsite/Elver.org
>>>> Office: Hardwareweg 4, 3821 BV Amersfoort
>>>> Postal: Nassaulaan 7, 3941 EC Doorn
>>>> The Netherlands
>>>> Tel: +31 (0)84 420 2397
>>>> Fax: +31 (0)84 225 9307
>>>> Mail: mtaal@springsite.com - mtaal@elver.org
>>>> Web: www.springsite.com - www.elver.org
>>>
>>
>> --
>>
>> With Regards, Martin Taal
>>
>> Springsite/Elver.org
>> Office: Hardwareweg 4, 3821 BV Amersfoort
>> Postal: Nassaulaan 7, 3941 EC Doorn
>> The Netherlands
>> Tel: +31 (0)84 420 2397
>> Fax: +31 (0)84 225 9307
>> Mail: mtaal@springsite.com - mtaal@elver.org
>> Web: www.springsite.com - www.elver.org
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #82044 is a reply to message #82030] Fri, 04 May 2007 22:29 Go to previous message
Eclipse UserFriend
Originally posted by: gonzalinlinREMOVE_THIS.tiscali.es

Hi Martin,

thank you very very much! Now I don't get that error.

Thank you again! Now I can go on a little more! :)

With regards,

Gonzalo

"Martin Taal" <mtaal@elver.org> escribi
Re: [Teneo] PersistenceMappingBuilder error [message #605250 is a reply to message #81952] Fri, 04 May 2007 19:21 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
I would need some extra information to comment on this. How are your plugins/jar organised?

gr. Martin

Eclipse wrote:
> Hi Martin,
>
> I'm integrating my persistence solution (Teneo) with a
> Model-View-Controller solution.
>
> When I call dataStore.initialize() in my code, I get this error
> (javax.servlet.ServletException throws an exception):
>
>
> java.lang.NoClassDefFoundError: org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>
> java.lang.ClassLoader.defineClass1(Native Method)
> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>
> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>
>
> I generated the code in a .genmodel file from 4 .ecore files. I attach
> them. The are relationships between the .ecore's. I tried the "Validate"
> option in all of them, but there are no errors.
>
> Any hint?
>
> Thanks in advance.
>
> With regards,
>
> Gonzalo


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #605254 is a reply to message #81970] Fri, 04 May 2007 21:15 Go to previous message
Gonzalo is currently offline GonzaloFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Martin, I attach 2 captures from my Eclipse project, so you can see how
it is organized. I have 3 source folders. At the same level, I create a
Build folder (for the 3 source folders). Inside the Build, there are
"Classes" and "Jar" folders.

The "src" folder contains the code generated by my .genmodel file (I created
this .genmodel with the four .ecore files I attached in my previous e-mail).
These ecore are models of different packages, and I needed to relation them.

I use Apache Tomcat as a servlet container. When I make the "deploy", I copy
every jar I need to the webapps/../lib folder.

Maybe my project isn't well organized by now, but I'm in a experimental
phase and trying to integrate (Teneo + Hibernate) with a View-Controller
solution, and with the Model generated by EMF's .genmodel. If I have
success, I'll go on with Teneo.

As I told you, there is a problem with the dataStore.initialize() call.

I hope this is the answer to your question.

Thank you!

With regards,

Gonzalo
"Martin Taal" <mtaal@elver.org> escribi
  • Attachment: Capture1.jpg
    (Size: 83.41KB, Downloaded 101 times)
  • Attachment: Capture2.jpg
    (Size: 51.04KB, Downloaded 103 times)
Re: [Teneo] PersistenceMappingBuilder error [message #605257 is a reply to message #81985] Fri, 04 May 2007 21:46 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
Which teneo jars do you copy to the WEB-INF/lib folder?

gr. Martin

Gonzalo wrote:
> Hi Martin, I attach 2 captures from my Eclipse project, so you can see how
> it is organized. I have 3 source folders. At the same level, I create a
> Build folder (for the 3 source folders). Inside the Build, there are
> "Classes" and "Jar" folders.
>
> The "src" folder contains the code generated by my .genmodel file (I created
> this .genmodel with the four .ecore files I attached in my previous e-mail).
> These ecore are models of different packages, and I needed to relation them.
>
> I use Apache Tomcat as a servlet container. When I make the "deploy", I copy
> every jar I need to the webapps/../lib folder.
>
> Maybe my project isn't well organized by now, but I'm in a experimental
> phase and trying to integrate (Teneo + Hibernate) with a View-Controller
> solution, and with the Model generated by EMF's .genmodel. If I have
> success, I'll go on with Teneo.
>
> As I told you, there is a problem with the dataStore.initialize() call.
>
> I hope this is the answer to your question.
>
> Thank you!
>
> With regards,
>
> Gonzalo
> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
> news:f1g147$2b3$1@build.eclipse.org...
>> Hi Gonzalo,
>> I would need some extra information to comment on this. How are your
>> plugins/jar organised?
>>
>> gr. Martin
>>
>> Eclipse wrote:
>>> Hi Martin,
>>>
>>> I'm integrating my persistence solution (Teneo) with a
>>> Model-View-Controller solution.
>>>
>>> When I call dataStore.initialize() in my code, I get this error
>>> (javax.servlet.ServletException throws an exception):
>>>
>>>
>>> java.lang.NoClassDefFoundError:
>>> org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>>>
>>> java.lang.ClassLoader.defineClass1(Native Method)
>>> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
>>> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
>>> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
>>> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>>>
>>> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
>>> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
>>> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
>>> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
>>> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
>>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>
>>>
>>> I generated the code in a .genmodel file from 4 .ecore files. I attach
>>> them. The are relationships between the .ecore's. I tried the "Validate"
>>> option in all of them, but there are no errors.
>>>
>>> Any hint?
>>>
>>> Thanks in advance.
>>>
>>> With regards,
>>>
>>> Gonzalo
>>
>> --
>>
>> With Regards, Martin Taal
>>
>> Springsite/Elver.org
>> Office: Hardwareweg 4, 3821 BV Amersfoort
>> Postal: Nassaulaan 7, 3941 EC Doorn
>> The Netherlands
>> Tel: +31 (0)84 420 2397
>> Fax: +31 (0)84 225 9307
>> Mail: mtaal@springsite.com - mtaal@elver.org
>> Web: www.springsite.com - www.elver.org
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #605261 is a reply to message #82003] Fri, 04 May 2007 22:05 Go to previous message
Gonzalo is currently offline GonzaloFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Martin,

I copy the following teneo jars to the WEB-INF/lib folder:

- org.eclipse.emf.teneo.hibernate.mapper_0.7.5v200704222357.ja r
- org.eclipse.emf.teneo.hibernate_0.7.5v200704222357.jar
- org.eclipse.emf.teneo_0.7.5v200704222357.jar

With regards,

Gonzalo

"Martin Taal" <mtaal@elver.org> escribi
Re: [Teneo] PersistenceMappingBuilder error [message #605264 is a reply to message #82016] Fri, 04 May 2007 22:10 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
Hi Gonzalo,
The org.eclipse.emf.teneo.annotations jar should also be there.

gr. Martin

Gonzalo wrote:
> Hi Martin,
>
> I copy the following teneo jars to the WEB-INF/lib folder:
>
> - org.eclipse.emf.teneo.hibernate.mapper_0.7.5v200704222357.ja r
> - org.eclipse.emf.teneo.hibernate_0.7.5v200704222357.jar
> - org.eclipse.emf.teneo_0.7.5v200704222357.jar
>
> With regards,
>
> Gonzalo
>
> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
> news:f1g9k1$red$1@build.eclipse.org...
>> Hi Gonzalo,
>> Which teneo jars do you copy to the WEB-INF/lib folder?
>>
>> gr. Martin
>>
>> Gonzalo wrote:
>>> Hi Martin, I attach 2 captures from my Eclipse project, so you can see
>>> how it is organized. I have 3 source folders. At the same level, I create
>>> a Build folder (for the 3 source folders). Inside the Build, there are
>>> "Classes" and "Jar" folders.
>>>
>>> The "src" folder contains the code generated by my .genmodel file (I
>>> created this .genmodel with the four .ecore files I attached in my
>>> previous e-mail). These ecore are models of different packages, and I
>>> needed to relation them.
>>>
>>> I use Apache Tomcat as a servlet container. When I make the "deploy", I
>>> copy every jar I need to the webapps/../lib folder.
>>>
>>> Maybe my project isn't well organized by now, but I'm in a experimental
>>> phase and trying to integrate (Teneo + Hibernate) with a View-Controller
>>> solution, and with the Model generated by EMF's .genmodel. If I have
>>> success, I'll go on with Teneo.
>>>
>>> As I told you, there is a problem with the dataStore.initialize() call.
>>>
>>> I hope this is the answer to your question.
>>>
>>> Thank you!
>>>
>>> With regards,
>>>
>>> Gonzalo
>>> "Martin Taal" <mtaal@elver.org> escribió en el mensaje
>>> news:f1g147$2b3$1@build.eclipse.org...
>>>> Hi Gonzalo,
>>>> I would need some extra information to comment on this. How are your
>>>> plugins/jar organised?
>>>>
>>>> gr. Martin
>>>>
>>>> Eclipse wrote:
>>>>> Hi Martin,
>>>>>
>>>>> I'm integrating my persistence solution (Teneo) with a
>>>>> Model-View-Controller solution.
>>>>>
>>>>> When I call dataStore.initialize() in my code, I get this error
>>>>> (javax.servlet.ServletException throws an exception):
>>>>>
>>>>>
>>>>> java.lang.NoClassDefFoundError:
>>>>> org/eclipse/emf/teneo/annotations/mapper/PersistenceMappingB uilder
>>>>>
>>>>> java.lang.ClassLoader.defineClass1(Native Method)
>>>>> java.lang.ClassLoader.defineClass(ClassLoader.java:620)
>>>>> java.security.SecureClassLoader.defineClass(SecureClassLoade r.java:124)
>>>>> org.apache.catalina.loader.WebappClassLoader.findClassIntern al(WebappClassLoader.java:1847)
>>>>> org.apache.catalina.loader.WebappClassLoader.findClass(Webap pClassLoader.java:873)
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1326)
>>>>> org.apache.catalina.loader.WebappClassLoader.loadClass(Webap pClassLoader.java:1205)
>>>>> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapEPackages(HbD ataStore..java:377)
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.mapModel(HbDataS tore.java:366)
>>>>> org.eclipse.emf.teneo.hibernate.HbDataStore.initialize(HbDat aStore.java:156)
>>>>> es.udc.fbellas.j2ee.miniportal.http.controller.actions.Creat eEmpresaAction.doExecute(CreateEmpresaAction.java:70)
>>>>>
>>>>> es.udc.fbellas.j2ee.util.struts.action.DefaultAction.execute (DefaultAction.java:44)
>>>>> org.apache.struts.action.RequestProcessor.processActionPerfo rm(RequestProcessor.java:431)
>>>>> es.udc.fbellas.j2ee.miniportal.http.controller.frontcontroll er.MiniPortalRequestProcessor.processActionPerform(MiniPorta lRequestProcessor.java:41)
>>>>> org.apache.struts.action.RequestProcessor.process(RequestPro cessor.java:236)
>>>>> org.apache.struts.action.ActionServlet.process(ActionServlet .java:1196)
>>>>> org.apache.struts.action.ActionServlet.doGet(ActionServlet.j ava:414)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
>>>>> javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>>>>>
>>>>>
>>>>> I generated the code in a .genmodel file from 4 .ecore files. I attach
>>>>> them. The are relationships between the .ecore's. I tried the
>>>>> "Validate"
>>>>> option in all of them, but there are no errors.
>>>>>
>>>>> Any hint?
>>>>>
>>>>> Thanks in advance.
>>>>>
>>>>> With regards,
>>>>>
>>>>> Gonzalo
>>>> --
>>>>
>>>> With Regards, Martin Taal
>>>>
>>>> Springsite/Elver.org
>>>> Office: Hardwareweg 4, 3821 BV Amersfoort
>>>> Postal: Nassaulaan 7, 3941 EC Doorn
>>>> The Netherlands
>>>> Tel: +31 (0)84 420 2397
>>>> Fax: +31 (0)84 225 9307
>>>> Mail: mtaal@springsite.com - mtaal@elver.org
>>>> Web: www.springsite.com - www.elver.org
>>>
>>
>> --
>>
>> With Regards, Martin Taal
>>
>> Springsite/Elver.org
>> Office: Hardwareweg 4, 3821 BV Amersfoort
>> Postal: Nassaulaan 7, 3941 EC Doorn
>> The Netherlands
>> Tel: +31 (0)84 420 2397
>> Fax: +31 (0)84 225 9307
>> Mail: mtaal@springsite.com - mtaal@elver.org
>> Web: www.springsite.com - www.elver.org
>
>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo] PersistenceMappingBuilder error [message #605270 is a reply to message #82030] Fri, 04 May 2007 22:29 Go to previous message
Gonzalo is currently offline GonzaloFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Martin,

thank you very very much! Now I don't get that error.

Thank you again! Now I can go on a little more! :)

With regards,

Gonzalo

"Martin Taal" <mtaal@elver.org> escribi
Previous Topic:[Teneo] PersistenceMappingBuilder error
Next Topic:[Teneo+Hibernate] IAction: the chosen operation is currently not available
Goto Forum:
  


Current Time: Fri Jan 22 14:03:52 GMT 2021

Powered by FUDForum. Page generated in 0.02838 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top