The first thing you'll probably need to do is to do a clean build of your
project. More than likely you are using classes/interfaces that are
removed, refactored and/or moved. 3.5.6 to 4.3 is a big jump; the move to
4.0 can be especially disruptive (
).
A fresh compile will show you those problems better.
Anyway, DTDEntityResolver has moved packaging as part of the initial OSGi
efforts to org.hibernate.internal.util.xml.DTDEntityResolver
On Thu, Oct 23, 2014 at 3:53 PM, Adriano Santos <adriano.nego(a)gmail.com>
wrote:
Hi, Gunnar.
I updated my POM.XML with:
<dependencies>
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>1.2.16</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-annotations</artifactId>
<version>3.5.6-Final</version>
</dependency>
<dependency>
<groupId>org.codehaus.jackson</groupId>
<artifactId>jackson-mapper-asl</artifactId>
<version>1.9.13</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>4.3.6.Final</version>
</dependency>
<dependency>
<groupId>javassist</groupId>
<artifactId>javassist</artifactId>
<version>3.12.1.GA</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-log4j12</artifactId>
<version>1.5.8</version>
</dependency>
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>9.3-1102-jdbc41</version>
</dependency>
And I try to run my sample and I received this message error:
Initial SessionFactory creation failed.java.lang.NoClassDefFoundError:
org/hibernate/util/DTDEntityResolver
On Thu, Oct 23, 2014 at 5:13 PM, Gunnar Morling <gunnar(a)hibernate.org>
wrote:
> Hi,
>
> The current version is 4.3.6.Final:
>
http://search.maven.org/#search|ga|1|g%3A%22org.hibernate%22%20AND%20v%3A...
> <
http://search.maven.org/#search%7Cga%7C1%7Cg%3A%22org.hibernate%22%20AND%...
>
>
> Note that hibernate-annotations has been merged into hibernate-core as of
> 3.6.
>
> Hth,
>
> --Gunnar
>
>
> 2014-10-23 20:58 GMT+02:00 Adriano Santos <adriano.nego(a)gmail.com>:
>
>> Hi, Sanne.
>>
>> Thanks for your support. So... Which is the version do you indicates?
I'm
>> using the Maven Repository and the last establish version is
3.5.6-Final.
>> I'm using (without the dependencies):
>>
>> - hibernate-annotations
>> - hibernate-core
>> - hibernate-entitymanager
>>
>> Ths for all.
>>
>>
>> On Thu, Oct 23, 2014 at 1:12 PM, Sanne Grinovero <sanne(a)hibernate.org>
>> wrote:
>>
>> > Hi Adriano,
>> > that version is very old, it's going to be unlikely to find someone
>> > able to help you. But it looks like a very interesting feature :-)
>> >
>> > If you could change your code and testing to use latest master from
>> > github, or the latest stable version 4.3, then someone on this list
>> > might volunteer to help you include the new JSON Type into the
>> > Hibernate codebase, if you agree with that.
>> >
>> > Sanne
>> >
>> > On 23 October 2014 16:28, Adriano Santos <adriano.nego(a)gmail.com>
>> wrote:
>> > > Hi, everyone.
>> > >
>> > > I'm trying to get a JSON value from Postgres DB, but I'm
receiving
>> this
>> > > error:
>> > >
>> > > DefaultLoadEventListener:160 - Error performing load command
>> > > org.hibernate.PropertyAccessException: could not set a field value
by
>> > > reflection setter of DTO.Processo._tramites
>> > > at
>> > >
>> >
>>
org.hibernate.property.DirectPropertyAccessor$DirectSetter.set(DirectPropertyAccessor.java:151)
>> > >
>> > > I saw that Hipernate don’t have a JSON Type yet, so I build a type
for
>> > this.
>> > >
>> > > I did a “My UserType” (StringJsonUserType implements UserType) and
>> > > JsonPostgreSQLDialect (extends PostgresPlusDialect). I insert data ,
>> but
>> > > when I try to get some value, i got this error return.
>> > >
>> > > I using Hibernat version 3.5.6.final and postgresql-9.3-1102-jdbc.
>> > >
>> > > Anybody have some idea about whats happen and can I workaround this
>> > problem?
>> > >
>> > > Best regards.
>> > >
>> > >
>> > >
>> > > --
>> > >
>> > > Adriano Araújo Santos
>> > >
>> > >
>> > > *"A mente que se abre a uma nova idéia jamais voltará ao seu
tamanho
>> > > original."*
>> > > _______________________________________________
>> > > hibernate-dev mailing list
>> > > hibernate-dev(a)lists.jboss.org
>> > >
https://lists.jboss.org/mailman/listinfo/hibernate-dev
>> >
>>
>>
>>
>> --
>>
>> Adriano Araújo Santos
>>
>>
>> *"A mente que se abre a uma nova idéia jamais voltará ao seu tamanho
>> original."*
>> _______________________________________________
>> hibernate-dev mailing list
>> hibernate-dev(a)lists.jboss.org
>>
https://lists.jboss.org/mailman/listinfo/hibernate-dev
>>
>
>
--
Adriano Araújo Santos
*"A mente que se abre a uma nova idéia jamais voltará ao seu tamanho
original."*
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev