<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
Hi Luca.<br>
<br>
I've downloaded your code, I've added the dependences and it works for
me. <br>
<br>
In the repository I can not see the new dependences and I suppose that
you have not done a commit&nbsp; (without dependences I've got the same
error than you). Could you please make a commit?<br>
<br>
Regards,<br>
Jorge.<br>
<br>
<br>
On 08/04/2010 02:36 PM, luca bianconi wrote:
<blockquote
 cite="mid:AANLkTinTtQFj3gOzfVoEsRW6s_Xi_DYCpqhnkMf_u3Rz@mail.gmail.com"
 type="cite">Hi Jorge,<br>
  <br>
I'm very very sorry of being such annoying and boring, I've tried for
the whole morning trying not to bother you all again but really I feel
very discouraged as far as I'm not understanding what is causing this
problem. <br>
I'm not a Maven guru at all but using it is usually not such a pain.<br>
  <br>
I've added the dependency you've kindly suggested in your last email
but it looks like org.gvsig.metadata.simple.Simple.MetaDataLibrary
(I've pasted it after these rows) was found but I've got a BUILD
FAILURE anyway.<br>
  <br>
I know I'm boring but if someone has time and will for helping me I've
put the "clean" code at <a moz-do-not-send="true"
 href="https://svn.forge.osor.eu/svn/gvsig-sandbox/gvsig-sqlite/trunk/SqliteExt/org.gvsig.sqliteext/">https://svn.forge.osor.eu/svn/gvsig-sandbox/gvsig-sqlite/trunk/SqliteExt/org.gvsig.sqliteext/</a>
. If there would be any accessing rights problems I could even send the
code as zip (just about 1MB) attached to a private email.<br>
  <br>
Found 25 libraries:<br>
&nbsp;&nbsp;&nbsp; org.gvsig.sqliteext.impl.SqliteExtDefaultImplLibrary (null)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.sqliteext.SqliteExtLibrary (null)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.tools.ToolsLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.tools.persistence.xml.XMLPersistenceLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.cresques.ProjectionLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.cresques.impl.CresquesCtsLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.geom.GeometryLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.geom.impl.DefaultGeometryLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.metadata.MetadataLibrary (api)<br>
  <div style="margin-left: 40px;">
&nbsp;&nbsp;&nbsp;<span style="color: rgb(51, 204, 0);"> org.gvsig.metadata.simple.</span><span
 style="color: rgb(51, 204, 0);">SimpleMetadataLibrary (impl)</span><br>
  </div>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.DALLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.impl.DALDefaultImplLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.store.memory.MemoryStoreLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.compat.CompatLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.compat.se.SECompatLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.DALFileLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.mapcontext.MapContextLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.mapcontext.impl.MapContextImplLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.geom.operation.impl.DefaultGeometryOperationLibrary
(impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.symbology.SymbologyLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.tools.IverUtilesLibrary (null)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.geom.operation.MapContextGeomOperationsLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.tools.evaluator.sqljep.SQLJEPLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.store.dbf.DBFLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.gvsig.fmap.dal.store.shp.SHPLibrary (impl)<br>
  <br>
  <br>
Best regards and thanks a lot,<br>
Luca<br>
  <br>
  <br>
  <div class="gmail_quote">2010/8/4 Jorge Piera Llodr&aacute; <span>&lt;<a
 moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>&gt;</span><br>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
    <div>
Hi.<br>
    <br>
You are getting a NullPointerException in the line 131 of the
DalLibrary class:<br>
    <br>
130: MetadataManager manager = MetadataLocator.getMetadataManager();<br>
131: if(
manager.getDefinition(DataStore.METADATA_DEFINITION_NAME)==null )....<br>
    <br>
It means that the MetedataManager has been not registered. To register
a MetadatadaManager, add this dependency to your pom.xml file:<br>
    <br>
    <pre>&lt;dependency&gt;
        &lt;groupId&gt;org.gvsig&lt;/groupId&gt;
        &lt;artifactId&gt;org.gvsig.metadata&lt;/artifactId&gt;
        &lt;version&gt;2.0-SNAPSHOT&lt;/version&gt;
        &lt;classifier&gt;simple&lt;/classifier&gt;
        &lt;scope&gt;test&lt;/scope&gt;
&lt;/dependency&gt;
    </pre>
    <br>
Execute the mvn eclipse:eclipse, refresh the eclipse and try to execute
the test other time. If you have done it, it means that the metadata
library is not initialized for any reason. When you execute the test,
you will see on the standar output the list of libraries that your
execution has found. e.g:<br>
    <br>
Found 25 libraries:&nbsp; <br>
    <div>&nbsp;&nbsp;&nbsp; org.gvsig.metadata.MetadataLibrary (api)<br>
    </div>
&nbsp;&nbsp;&nbsp; org.gvsig.metadata.simple.SimpleMetadataLibrary (impl)<br>
&nbsp;&nbsp;&nbsp; org.cresques.ProjectionLibrary (api)<br>
&nbsp;&nbsp;&nbsp; org.cresques.impl.CresquesCtsLibrary (impl)<br>
&nbsp;&nbsp; .....<br>
    <br>
Could you please check if
org.gvsig.metadata.simple.SimpleMetadataLibrary is found?<br>
    <br>
Regards,<br>
    <font color="#888888">Jorge.</font>
    <div>
    <div><br>
    <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp; <br>
On 08/04/2010 09:42 AM, luca bianconi wrote:
    <blockquote>Hi Jorge,<br>
      <br>
I've tried again and I can't fix it. Maybe I'm wrong with something
else. :'(<br>
Thanks a lot anyway,<br>
Luca<br>
      <br>
      <div class="gmail_quote">2010/8/4 Jorge Piera Llodr&aacute; <span>&lt;<a
 moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>&gt;</span><br>
      <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
        <div>Hello Luca.<br>
        <br>
You also have to add the dependency for the org.gvsig.metadata library.
But if you adds this dependency and you tries to compile, you will get
a new error because DAL needs more dependences in run time. Joaquin
send you a link with an example of a pom that shows the dependences of
DAL in run time of a concrete project. Just add some of them (you don't
need org.gvsig.fmap.dal.file) and try again.<br>
        <br>
Regards,<br>
        <font color="#888888">Jorge.<br>
        </font>
        <div>
        <div><br>
        <pre>[1]<a moz-do-not-send="true"
 href="https://forge.osor.eu/plugins/scmsvn/viewcvs.php/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer/pom.xml?root=gvsig-fortuneco&amp;view=markup">https://forge.osor.eu/plugins/scmsvn/viewcvs.php/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer/pom.xml?root=gvsig-fortuneco&amp;view=markup</a>
    </pre>
        <pre>    </pre>
        <br>
        <blockquote>Hi both, <br>
          <br>
sorry again.<br>
I've added such dependency but apparently I can't make it working.<br>
          <br>
In order to understand the origin of my problem I've gone through two
different steps. <br>
I describe them as far as probably for you it's a trivial problem and
if I describe the approach more precisely maybe you can understand
where I'm wrong:<br>
          <div style="margin-left: 40px;"><br>
          </div>
- I've created the simplest plugin with the plugin creation wizard from
the last bin of gvSig 2.0 .<br>
&nbsp; The structure is like that:<br>
&nbsp;&nbsp;&nbsp; * &nbsp; org.gvsig.sqliteext <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + lib.api<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + lib.impl<br>
&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; org.gvsig.sqliteext.app.extension<br>
- I've added a maven project called org.gvsig.sqliteext.sqlite.prov to
the first project (ie org.gvsig.sqliteext)<br>
&nbsp; Now I've a structure like this one: <br>
&nbsp; * &nbsp; org.gvsig.sqliteext <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + lib.api<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + lib.impl<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; + sqlite.prov (it containes within src/main just a class in its
package called as maven default App.java)<br>
&nbsp;&nbsp;&nbsp; *&nbsp;&nbsp; org.gvsig.sqliteext.app.extension<br>
          <br>
- I've added just a class variable (DataManager manager;) to App.js,
referred to org.gvsig.fmap.dal, into sqlite.prov and I've added the
proper (?) dependency [1] into sqlite.prov pom.xml and everything
compiles apparently alright. <br>
          <br>
BUT :<br>
          <br>
- I've added the same variable into the SqliteExtDefaultImplLibrary.js
within the lib.impl project and I've got an error [2] because I have
not included the dependency for org.gvsig.fmap.dal.<br>
          <br>
IF:<br>
          <br>
- I've added the same dependency [1] working for the class described
above but I've got an error [3] during the test phase.<br>
          <br>
So, what I guess it is, as Joaquin has suggested before, maybe I'm
missing something for the dependencies during the test phase.<br>
In that case could anyone help me in understanding that point ?<br>
I mean: what kind of dependency I should add for making my sample code
working ?<br>
          <br>
I've seen many of them are described in documentation [4] but I still
can't understand how they work.<br>
          <br>
Best regards and thanks in advance for your precious help,<br>
Luca<br>
          <br>
          <br>
[1]&nbsp; &nbsp;&nbsp;&nbsp; &lt;dependency&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.gvsig&lt;/groupId&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;artifactId&gt;org.gvsig.fmap.dal&lt;/artifactId&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &lt;version&gt;2.0-SNAPSHOT&lt;/version&gt;<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/dependency&gt;<br>
          <br>
          <br>
          <br>
[2]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [INFO]
------------------------------------------------------------------------<br>
          <div style="margin-left: 40px;">[ERROR] BUILD FAILURE<br>
[INFO]
------------------------------------------------------------------------<br>
[INFO] Compilation failure<br>
          <br>
/home/luca/workspace2/org.gvsig.sqliteext/org.gvsig.sqliteext.lib/org.gvsig.sqliteext.lib.impl/src/main/java/org/gvsig/sqliteext/impl/SqliteExtDefaultImplLibrary.java:[24,25]
package
org.gvsig.fmap.dal
does not exist<br>
          <br>
/home/luca/workspace2/org.gvsig.sqliteext/org.gvsig.sqliteext.lib/org.gvsig.sqliteext.lib.impl/src/main/java/org/gvsig/sqliteext/impl/SqliteExtDefaultImplLibrary.java:[37,1]
cannot
find
symbol<br>
symbol&nbsp; : class DataManager<br>
location: class org.gvsig.sqliteext.impl.SqliteExtDefaultImplLibrary<br>
          <br>
          </div>
          <br>
[3]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HERE ONE OF SURFIRE REPORTS:<br>
          <br>
          <div style="margin-left: 40px;">-------------------------------------------------------------------------------<br>
Test set: org.gvsig.sqliteext.impl.DefaultSqliteExtServiceTest<br>
-------------------------------------------------------------------------------<br>
Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.116
sec &lt;&lt;&lt; FAILURE!<br>
testSqliteExtServiceMessage(org.gvsig.sqliteext.impl.DefaultSqliteExtServiceTest)&nbsp;
Time
elapsed:
0.009 sec&nbsp; &lt;&lt;&lt; ERROR!<br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.registerDataStoreMetadataDefinition(DALLibrary.java:131)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.doPostInitialize(DALLibrary.java:81)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrary.postInitialize(AbstractLibrary.java:143)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.initializeLibraries(AbstractLibrariesInitializer.java:132)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:94)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:84)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.fullInitialize(AbstractLibrariesInitializer.java:100)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase.setUp(AbstractLibraryAutoInitTestCase.java:55)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runBare(TestCase.java:125)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult$1.protect(TestResult.java:106)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.runProtected(TestResult.java:124)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.run(TestResult.java:109)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.run(TestCase.java:118)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:208)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.run(TestSuite.java:203)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)<br>
&nbsp;&nbsp;&nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)<br>
          <br>
testSqliteExtServiceDate(org.gvsig.sqliteext.impl.DefaultSqliteExtServiceTest)&nbsp;
Time
elapsed:
0.019 sec&nbsp; &lt;&lt;&lt; ERROR!<br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.registerDataStoreMetadataDefinition(DALLibrary.java:131)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.doPostInitialize(DALLibrary.java:81)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrary.postInitialize(AbstractLibrary.java:143)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.initializeLibraries(AbstractLibrariesInitializer.java:132)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:94)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:84)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.fullInitialize(AbstractLibrariesInitializer.java:100)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase.setUp(AbstractLibraryAutoInitTestCase.java:55)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runBare(TestCase.java:125)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult$1.protect(TestResult.java:106)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.runProtected(TestResult.java:124)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.run(TestResult.java:109)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.run(TestCase.java:118)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:208)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.run(TestSuite.java:203)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)<br>
&nbsp;&nbsp;&nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)<br>
          <br>
testSqliteExtServiceManager(org.gvsig.sqliteext.impl.DefaultSqliteExtServiceTest)&nbsp;
Time
elapsed:
0.052 sec&nbsp; &lt;&lt;&lt; ERROR!<br>
java.lang.NullPointerException<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.registerDataStoreMetadataDefinition(DALLibrary.java:131)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.fmap.dal.DALLibrary.doPostInitialize(DALLibrary.java:81)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrary.postInitialize(AbstractLibrary.java:143)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.initializeLibraries(AbstractLibrariesInitializer.java:132)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:94)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:84)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.fullInitialize(AbstractLibrariesInitializer.java:100)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase.setUp(AbstractLibraryAutoInitTestCase.java:55)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runBare(TestCase.java:125)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult$1.protect(TestResult.java:106)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.runProtected(TestResult.java:124)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestResult.run(TestResult.java:109)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.run(TestCase.java:118)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.runTest(TestSuite.java:208)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestSuite.run(TestSuite.java:203)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java:213)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(AbstractDirectoryTestSuite.java:140)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(AbstractDirectoryTestSuite.java:127)<br>
&nbsp;&nbsp;&nbsp; at org.apache.maven.surefire.Surefire.run(Surefire.java:177)<br>
&nbsp;&nbsp;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
&nbsp;&nbsp;&nbsp; at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
&nbsp;&nbsp;&nbsp; at java.lang.reflect.Method.invoke(Method.java:597)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)<br>
&nbsp;&nbsp;&nbsp; at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:1009)<br>
          <br>
          <br>
          <br>
          <br>
          </div>
[4] <a moz-do-not-send="true"
 href="http://jornadas.gvsig.org/projects/gvsig-desktop/docs/devel/org.gvsig.fmap.dal/2.0.0/binarios/view?set_language=en">http://jornadas.gvsig.org/projects/gvsig-desktop/docs/devel/org.gvsig.fmap.dal/2.0.0/binarios/view?set_language=en</a><br>
          <div style="margin-left: 40px;"><br>
          <br>
          <br>
          </div>
          <br>
          <br>
          <br>
          <div class="gmail_quote">2010/8/3 Jorge Piera Llodr&aacute; <span>&lt;<a
 moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>&gt;</span><br>
          <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
            <div>Hello.<br>
            <br>
You don't have any implementation of the ICRSFactory in run time while
you are executing your test. Just add to your pom next dependence:
            <div><br>
            <br>
&lt;dependency&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;groupId&gt;org.gvsig&lt;/groupId&gt;<br>
            </div>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;artifactId&gt;org.gvsig.projection&lt;/artifactId&gt;
            <div><br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;version&gt;2.0-SNAPSHOT&lt;/version&gt;<br>
            </div>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;classifier&gt;cresques-impl&lt;/classifier&gt;<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &lt;scope&gt;test&lt;/scope&gt;<br>
&lt;/dependency&gt;<br>
            <br>
And try again.<br>
            <br>
Regards,<br>
Jorge.
            <div>
            <div><br>
            <br>
            <br>
On 08/02/2010 05:35 PM, luca bianconi wrote: </div>
            </div>
            <blockquote>
              <div>
              <div>Hi both,<br>
              <br>
I've tried to enjoy of both your suggestions but I still can't compile
it. :-(<br>
              <br>
I've tried to adapt the pom of the project suggested by Joaquin [1] but
I've got a new error.<br>
I get it from&nbsp;
/home/luca/workspace2/org.gvsig.myprov/org.gvsig.myprov.lib/org.gvsig.myprov.lib.impl/target/surefire-reports
as
suggested
by
Jorge : <br>
              <br>
              <div style="margin-left: 40px;"><i>testMyProvServiceMessage(org.gvsig.myprov.impl.DefaultMyProvServiceTest)&nbsp;
Time
elapsed:
0.024
sec&nbsp; &lt;&lt;&lt; ERROR!<br>
An instance of ICRSFactory has not been registered in the CRSFactory<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.exception.BaseRuntimeException.&lt;init&gt;(BaseRuntimeException.java:73)<br>
&nbsp;&nbsp;&nbsp; at
org.cresques.CRSFactoryNotRegisteredException.&lt;init&gt;(CRSFactoryNotRegisteredException.java:46)<br>
&nbsp;&nbsp;&nbsp; at
org.cresques.ProjectionLibrary.doPostInitialize(ProjectionLibrary.java:45)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrary.postInitialize(AbstractLibrary.java:143)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.initializeLibraries(AbstractLibrariesInitializer.java:132)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:94)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.postInitialize(AbstractLibrariesInitializer.java:84)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.library.AbstractLibrariesInitializer.fullInitialize(AbstractLibrariesInitializer.java:100)<br>
&nbsp;&nbsp;&nbsp; at
org.gvsig.tools.junit.AbstractLibraryAutoInitTestCase.setUp(AbstractLibraryAutoInitTestCase.java:55)<br>
&nbsp;&nbsp;&nbsp; at junit.framework.TestCase.runBare(TestCase.java:125)<br>
              <br>
              <br>
              </i><br>
              </div>
Does it make any sense to you ? I felt quite discouraged. <br>
If anyone has enough patience to help me I could put it on <a
 moz-do-not-send="true"
 href="https://svn.forge.osor.eu/svn/gvsig-sandbox/gvsig-sqlite/trunk/TestCode/ExtensionsTests">https://svn.forge.osor.eu/svn/gvsig-sandbox/gvsig-sqlite/trunk/TestCode/ExtensionsTests</a>
. Probably it's a trivial thing for you but it's driving me crazy and
making me loosing lots of time.<br>
              <br>
Thanks both for your precious help,<br>
Luca<br>
              <br>
[1] <a moz-do-not-send="true"
 href="https://forge.osor.eu/plugins/scmsvn/viewcvs.php/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer/pom.xml?root=gvsig-fortuneco&amp;view=markup">https://forge.osor.eu/plugins/scmsvn/viewcvs.php/org.gvsig.landregistryviewer/trunk/org.gvsig.landregistryviewer/pom.xml?root=gvsig-fortuneco&amp;view=markup</a><br>
              </div>
              </div>
              <pre><fieldset></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<div><a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
  </div></pre>
            </blockquote>
            <br>
            <br>
            <pre>-- 
Jorge Piera Llodr&aacute;
gvSIG Development Team
PRODEVELOP
Plaza Don Juan de Villarrasa, 14 - 5
46001 Valencia
Tel: +34 963510612
Fax: +34 963510908
e-mail: <a moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a><div>
<a moz-do-not-send="true" href="http://www.prodevelop.es">http://www.prodevelop.es</a>
<a moz-do-not-send="true" href="http://www.gvsig.org">http://www.gvsig.org</a>
</div></pre>
            </div>
            <br>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
            <a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
            <a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
            <br>
          </blockquote>
          </div>
          <br>
          <pre><fieldset></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
  </pre>
        </blockquote>
        <br>
        <br>
        <pre>-- 
Jorge Piera Llodr&aacute;
gvSIG Development Team
PRODEVELOP
Plaza Don Juan de Villarrasa, 14 - 5
46001 Valencia
Tel: +34 963510612
Fax: +34 963510908
e-mail: <a moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>
<a moz-do-not-send="true" href="http://www.prodevelop.es">http://www.prodevelop.es</a>
<a moz-do-not-send="true" href="http://www.gvsig.org">http://www.gvsig.org</a>
    </pre>
        </div>
        </div>
        </div>
        <br>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
        <a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
        <a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
        <br>
      </blockquote>
      </div>
      <br>
      <pre><fieldset></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
  </pre>
    </blockquote>
    <br>
    <br>
    <pre>-- 
Jorge Piera Llodr&aacute;
gvSIG Development Team
PRODEVELOP
Plaza Don Juan de Villarrasa, 14 - 5
46001 Valencia
Tel: +34 963510612
Fax: +34 963510908
e-mail: <a moz-do-not-send="true" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>
<a moz-do-not-send="true" href="http://www.prodevelop.es">http://www.prodevelop.es</a>
<a moz-do-not-send="true" href="http://www.gvsig.org">http://www.gvsig.org</a>
    </pre>
    </div>
    </div>
    </div>
    <br>
_______________________________________________<br>
Gvsig_internacional mailing list<br>
    <a moz-do-not-send="true"
 href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a><br>
    <a moz-do-not-send="true"
 href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a><br>
    <br>
  </blockquote>
  </div>
  <br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
Gvsig_internacional mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Gvsig_internacional@listserv.gva.es">Gvsig_internacional@listserv.gva.es</a>
<a class="moz-txt-link-freetext" href="http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional">http://listserv.gva.es/cgi-bin/mailman/listinfo/gvsig_internacional</a>
  </pre>
</blockquote>
<br>
<br>
<pre class="moz-signature" cols="72">-- 
Jorge Piera Llodr&aacute;
gvSIG Development Team
PRODEVELOP
Plaza Don Juan de Villarrasa, 14 - 5
46001 Valencia
Tel: +34 963510612
Fax: +34 963510908
e-mail: <a class="moz-txt-link-abbreviated" href="mailto:jpiera@prodevelop.es">jpiera@prodevelop.es</a>
<a class="moz-txt-link-freetext" href="http://www.prodevelop.es">http://www.prodevelop.es</a>
<a class="moz-txt-link-freetext" href="http://www.gvsig.org">http://www.gvsig.org</a>
</pre>
</body>
</html>