Hi,

That's one issue I have with Maven: it doesn't use content hashes by
default. In theory, a mirror of the Maven repo could even inject a virus
into a library. See also
http://stackoverflow.com/questions/7094035/how-secure-is-using-maven

The H2 build contains the content hashes of all referenced libraries
(Lucene and so on), therefore such problems would be detected. The
disadvantage is that the content hashes of the libraries are in the build
configuration.

Regards,
Thomas



On Mon, Jun 23, 2014 at 6:18 PM, Edgar Espina <[email protected]
<javascript:_e(%7B%7D,'cvml','[email protected]');>> wrote:

> It was Maven! The dowload of 1.4.178.jar was corrupted or something.
>
> I deleted and downloaded it again and everything work as expected.
>
> Thanks
>
>
> On Monday, June 23, 2014 12:01:00 PM UTC-3, Edgar Espina wrote:
>>
>> I found it.
>>
>> *1.4.178.jar is broken or something*
>>
>> (1.3.74, 1.4.177] & 1.4.179 work without any problem in Java 8
>>
>> On Monday, June 23, 2014 11:48:19 AM UTC-3, Edgar Espina wrote:
>>>
>>> It's odd. I tried the web console and seems to work :S
>>>
>>> In the maven project I shared before if you do this:
>>>
>>> @Test
>>>>   public void connect() throws Exception {
>>>>     Driver driver = new org.h2.Driver();
>>>>   }
>>>
>>>
>>> and then with: mvn clean package, I got:
>>>
>>> ERROR] COMPILATION ERROR :
>>>> [INFO] -------------------------------------------------------------
>>>> [ERROR] error reading /Users/edgar/.m2/repository/
>>>> com/h2database/h2/1.4.178/h2-1.4.178.jar;* invalid LOC header (bad
>>>> signature)*
>>>> [ERROR] error reading /Users/edgar/.m2/repository/
>>>> com/h2database/h2/1.4.178/h2-1.4.178.jar; *cannot read zip file entry*
>>>> [ERROR] 
>>>> /Users/edgar/Source/java8h2/src/test/java/java8h2/Java8H2Test.java:[11,31]
>>>> *package org.h2 does not exist*
>>>> [INFO] 3 errors
>>>
>>>
>>> Thanks
>>>
>>> On Monday, June 23, 2014 10:56:30 AM UTC-3, Atul wrote:
>>>>
>>>> Can you simply run the H2 jar against Java 8 and launch the web console
>>>>
>>>> e.g. C:\h2\bin>java -jar h2-<version>.jar
>>>>
>>>> If this works and you can connect and say, create a table, I'd venture
>>>> to guess that it most certainly is your configuration.
>>>> On Mon, Jun 23, 2014 at 9:37 AM, Edgar Espina <[email protected]>
>>>> wrote:
>>>>
>>>>> Can you do me a favor? Please download the zip file and then execute:
>>>>> mvn clean package on Java 8.
>>>>>
>>>>> I isolated the problem still got the CNFException.
>>>>>
>>>>> Thanks for your help.
>>>>>
>>>>>
>>>>> On Monday, June 23, 2014 10:06:30 AM UTC-3, Noel Grandin wrote:
>>>>>>
>>>>>>
>>>>>>
>>>>>> On 2014-06-23 02:44 PM, Edgar Espina wrote:
>>>>>> >
>>>>>> >  From what I saw there is an issue with some JDBC classes, like
>>>>>> org.h2.Driver and org.h2.jdbcx.JdbcDataSource. For
>>>>>> > example, Java 8 comes with JDBC 4.1 and org.h2.Driver doesn't have
>>>>>> a *getParentLogger* method (same for JdbcDataSource).
>>>>>> > That missing method makes the classloader to fail bc org.h2.Driver
>>>>>> doesn't implement java.sql.Driver.
>>>>>> >
>>>>>>
>>>>>> It that was a problem, you would have seen something like
>>>>>> AbstractMethodError, not ClassNotFoundException.
>>>>>>
>>>>>> There is a problem with your build configuration.
>>>>>>
>>>>>>  --
>>>>> You received this message because you are subscribed to the Google
>>>>> Groups "H2 Database" group.
>>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>>> an email to [email protected].
>>>>> To post to this group, send email to [email protected].
>>>>> Visit this group at http://groups.google.com/group/h2-database.
>>>>> For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>>
>>>>  --
> You received this message because you are subscribed to the Google Groups
> "H2 Database" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected]
> <javascript:_e(%7B%7D,'cvml','h2-database%[email protected]');>
> .
> To post to this group, send email to [email protected]
> <javascript:_e(%7B%7D,'cvml','[email protected]');>.
> Visit this group at http://groups.google.com/group/h2-database.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "H2 
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply via email to