<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
El 14/05/12 11:20, Leticia Riestra Ainsua escribió:
<blockquote
cite="mid:CAOS71n+J7EP+CwY9=+_S2JAFRDQj_9NVSnPhyKyN1a5fPuS1TA@mail.gmail.com"
type="cite"><br>
<div>Hola</div>
<div>Estamos trabajando sobre gvSIG 2.0.0 con el build 2046 sobre
Windows.</div>
<div><br>
</div>
<div>Estamos creando un módulo de impresión que usa la la clase
FLayoutUtilities.</div>
<div>En el pom de nuestra extensión hemos añadido la dependencia:</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"><</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">dependency</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"
style="margin-top:0cm;margin-right:0cm;margin-left:35.4pt;margin-bottom:0.0001pt"><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"><</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">groupId</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10pt;font-family:'Courier New'">org.gvsig</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"></</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">groupId</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"
style="margin-top:0cm;margin-right:0cm;margin-left:35.4pt;margin-bottom:0.0001pt"><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"><</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">artifactId</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10pt;font-family:'Courier New'">org.gvsig.app.document.layout.app.mainplugin</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"></</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">artifactId</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"
style="margin-top:0cm;margin-right:0cm;margin-left:35.4pt;margin-bottom:0.0001pt"><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"><</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">version</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10pt;font-family:'Courier New'">2.0.0-SNAPSHOT</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"></</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">version</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal"
style="margin-top:0cm;margin-right:0cm;margin-left:35.4pt;margin-bottom:0.0001pt"><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"><</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">scope</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10pt;font-family:'Courier New'">compile</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal"></</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:#3f7f7f">scope</span><span
style="font-size:10.0pt;font-family:"Courier
New";color:teal">></span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<span
style="font-size:10.0pt;line-height:115%;font-family:"Courier
New";color:teal"></</span><span
style="font-size:10.0pt;line-height:115%;font-family:"Courier
New";color:#3f7f7f">dependency</span><span
style="font-size:10.0pt;line-height:115%;font-family:"Courier
New";color:teal">></span></div>
<div><span
style="font-size:10.0pt;line-height:115%;font-family:"Courier
New";color:teal"><br>
</span></div>
<div>El código donde nos falla es el siguiente:</div>
<div><br>
</div>
<div><i><span
style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif"">double
escalaVista =
FLayoutUtilities.getScaleView(nuevoViewPort,
anchoMapaCm/proporcion,anchoMapaPixels);</span></i></div>
<div><i><span
style="font-size:11.0pt;line-height:115%;font-family:"Calibri","sans-serif""><br>
</span></i></div>
<div>En tiempo de compilación no hay ningún fallo pero en tiempo
de ejecución, cuando intenta acceder al método getScaleView, se
produce el siguiente fallo</div>
<div><br>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:0.0001pt"><span
style="font-size:10pt;font-family:'Courier New'">org/gvsig/app/project/documents/layout/FLayoutUtilities</span><span
style="font-size:10.0pt;font-family:"Courier New""></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt;"><span
style="font-size: 10pt; font-family: 'Courier New';">java.lang.NoClassDefFoundError:
org/gvsig/app/project/documents/layout/FLayoutUtilities</span></p>
</div>
</blockquote>
...<br>
<blockquote
cite="mid:CAOS71n+J7EP+CwY9=+_S2JAFRDQj_9NVSnPhyKyN1a5fPuS1TA@mail.gmail.com"
type="cite">
<div><span
style="font-size:10pt;line-height:115%;font-family:'Courier
New'"><br>
</span></div>
<div>Hemos comprabado el contenido del jar en el repositorio de
maven y al abrirlo observamos que aparece la clase
FLayoutUtilities</div>
<div><br>
</div>
<div>¿Se os ocurre cual puede ser el problema?</div>
<div><br>
</div>
<div>Muchas gracias</div>
<div><br>
</div>
-- <br>
Leticia Riestra Ainsua
<div>
<div><i>Laboratorio de Bases de Datos A Coruña</i></div>
<div><i>Tlfono: 981 16 70 00 Ext: 1386</i></div>
</div>
</blockquote>
<br>
Hola Leticia.<br>
<br>
El documento layout antes iba dentro del plugin org.gvsig.app, pero
ahora va en su propio plugin
(org.gvsig.app.document.layout.app.mainplugin), por lo que tendréis
que añadir la dependencia con dicho plugin en el config.xml del
vuestro.<br>
<br>
Saludos.<br>
<pre class="moz-signature" cols="72">--
Cèsar Ordiñana Navarro
gvSIG software architect
DiSiD Technologies (<a class="moz-txt-link-freetext" href="http://www.disid.com">http://www.disid.com</a>)
</pre>
</body>
</html>