Could not determine type for: org.hibernateespatial.GeometryUserType

3 messages Options
Embed this post
Permalink
Olumee, Milan

Could not determine type for: org.hibernateespatial.GeometryUserType

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)

Hi,

 

I am using oracle hibernate spatial with spring framework, I get an error when I try to deploy my application in the jBoss.  This is how I defined the geometry column in the domain object. 

 

// Geometry column

    @Column(name="LOCATION", columnDefinition="Geometry", nullable = true)

    @Type(type="org.hibernatespatial.GeometryUserType")

    private Geometry location;

 

    public Geometry getLocation() {

        return location;

    }

 

    public void setLocation(Geometry location) {

        this.location = location;

    }

 

Here is part of my hibernate config file

 

<prop key="hibernate.dialect">org.hibernatespatial.oracle.OracleSpatial10gDialect</prop>

                <prop key="hibernate.connection.autocommit">false</prop>

                <prop key="hibernate.connection.shutdown">true</prop>

                <prop key="hibernate.cache.use_second_level_cache">false</prop>

 

                <!-- update should be used here so table is created on fresh install, but kept around thereafter -->

                <prop key="hibernate.hbm2ddl.auto">update</prop>

                <prop key="hibernate.current_session_context_class">thread</prop>

                <prop key="hibernate.transaction.factory_class ">org.hibernate.transaction.JDBCTransactionFactory</prop>

 

 

I do not use a mapping file rather I use the annotation in the domain to create the schema, My question is can this be done without a mapping file? If not,  is there a workaround for it because I am converting an existing application to hibernate spatial and the current application does not have a mapping file defined. 

 

 

With these I get the following error:

 

2009-10-01 16:25:26,699 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionRegistry' defined in ServletContext resource [/WEB-INF/classes/security-beans.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#10': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cxf' defined in class path resource [META-INF/cxf/cxf.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#10': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.interceptor.TransactionAttributeSourceAdvisor': Cannot create inner bean '(inner bean)' of type [org.springframework.transaction.interceptor.TransactionInterceptor] while setting bean property 'transactionInterceptor'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#10': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#10': Cannot resolve reference to bean 'transactionManager' while setting bean property 'transactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'transactionManager' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/application-hibernate.xml]: Invocation of init method failed; nested exception is org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

Caused by:

org.hibernate.MappingException: Could not determine type for: org.hibernateespatial.GeometryUserType, for columns: [org.hibernate.mapping.Column(LOCATION)]

                at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:266)

                at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:253)

                at org.hibernate.mapping.Property.isValid(Property.java:185)

                at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:440)

                at org.hibernate.mapping.RootClass.validate(RootClass.java:192)

                at org.hibernate.cfg.Configuration.validate(Configuration.java:1102)

 

With respect

 

Hila

 

 


_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
Karel Maesen

Re: Could not determine type for: org.hibernateespatial.GeometryUserType

Reply Threaded More More options
Print post
Permalink
Hi,

In the @Column annotation, try setting columnDefinition =  
"MDSYS.SDO_GEOMETRY".

Regards,
Karel
On 01 Oct 2009, at 23:21, Olumee, Milan wrote:

> Hi,
>
>
>
> I am using oracle hibernate spatial with spring framework, I get an  
> error when I try to deploy my application in the jBoss.  This is  
> how I defined the geometry column in the domain object.
>
>
>
> // Geometry column
>
>     @Column(name="LOCATION", columnDefinition="Geometry", nullable  
> = true)
>
>     @Type(type="org.hibernatespatial.GeometryUserType")
>
>     private Geometry location;
>
>
>
>     public Geometry getLocation() {
>
>         return location;
>
>     }
>
>
>
>     public void setLocation(Geometry location) {
>
>         this.location = location;
>
>     }
>
>
>
> Here is part of my hibernate config file
>
>
>
> <prop  
> key="hibernate.dialect">org.hibernatespatial.oracle.OracleSpatial10gDi
> alect</prop>
>
>                 <prop key="hibernate.connection.autocommit">false</
> prop>
>
>                 <prop key="hibernate.connection.shutdown">true</prop>
>
>                 <prop  
> key="hibernate.cache.use_second_level_cache">false</prop>
>
>
>
>                 <!-- update should be used here so table is created  
> on fresh install, but kept around thereafter -->
>
>                 <prop key="hibernate.hbm2ddl.auto">update</prop>
>
>                 <prop  
> key="hibernate.current_session_context_class">thread</prop>
>
>                 <prop key="hibernate.transaction.factory_class  
> ">org.hibernate.transaction.JDBCTransactionFactory</prop>
>
>
>
>
>
> I do not use a mapping file rather I use the annotation in the  
> domain to create the schema, My question is can this be done  
> without a mapping file? If not,  is there a workaround for it  
> because I am converting an existing application to hibernate  
> spatial and the current application does not have a mapping file  
> defined.
>
>
>
>
>
> With these I get the following error:
>
>
>
> 2009-10-01 16:25:26,699 ERROR  
> [org.springframework.web.context.ContextLoader] Context  
> initialization failed
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionRegistry' defined in ServletContext  
> resource [/WEB-INF/classes/security-beans.xml]: Initialization of  
> bean failed; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'cxf' defined in class path resource [META-
> INF/cxf/cxf.xml]: Initialization of bean failed; nested exception  
> is org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc
> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w
> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'cxf' defined in class path resource [META-
> INF/cxf/cxf.xml]: Initialization of bean failed; nested exception  
> is org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc
> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w
> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc
> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w
> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
>                 at org.hibernate.mapping.SimpleValue.getType
> (SimpleValue.java:266)
>
>                 at org.hibernate.mapping.SimpleValue.isValid
> (SimpleValue.java:253)
>
>                 at org.hibernate.mapping.Property.isValid
> (Property.java:185)
>
>                 at org.hibernate.mapping.PersistentClass.validate
> (PersistentClass.java:440)
>
>                 at org.hibernate.mapping.RootClass.validate
> (RootClass.java:192)
>
>                 at org.hibernate.cfg.Configuration.validate
> (Configuration.java:1102)
>
>
>
> With respect
>
>
>
> Hila
>
>
>
>
>
> _______________________________________________
> hibernatespatial-users mailing list
> [hidden email]
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users


_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users
Olumee, Milan

Re: Could not determine type for:org.hibernateespatial.GeometryUserType

Reply Threaded More More options
Print post
Permalink
Karel,

Thank you for your suggestion... I got the schema creation working;
however, now I am getting this error
"com.vividsolutions.jts.geom.Geometry does not have a no-arg default
constructor." on the jts geometry,  
Event thought I've created an empty constructor in my domain object.
Below is code snippet from my domain object and the full error message.
Any idea or suggestion how to solve this issue?


@Column(name="LOCATION", columnDefinition = "MDSYS.SDO_GEOMETRY",
nullable = true)
@Type(type="org.hibernatespatial.GeometryUserType")
public Geometry getLocation() {
        return location;
}

public void setLocation(Geometry location) {
     this.location = location;
}


Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1
counts of
IllegalAnnotationExceptions
com.vividsolutions.jts.geom.Geometry does not have a no-arg default
constructor.

        this problem is related to the following location:
                at com.vividsolutions.jts.geom.Geometry
                at public com.vividsolutions.jts.geom.Geometry
com.solers.sushi.
pojo.target.model.ExternalTarget.getLocation()
                at com.solers.sushi.pojo.target.model.ExternalTarget

        at
com.sun.xml.bind.v2.runtime.IllegalAnnotationsException$Builder.check
(IllegalAnnotationsException.java:102)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.getTypeInfoSet(JAXBContex
tImpl.java:438)
        at
com.sun.xml.bind.v2.runtime.JAXBContextImpl.<init>(JAXBContextImpl.ja
va:286)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
139)
        at
com.sun.xml.bind.v2.ContextFactory.createContext(ContextFactory.java:
117)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
javax.xml.bind.ContextFinder.newInstance(ContextFinder.java:202)
        at javax.xml.bind.ContextFinder.find(ContextFinder.java:363)
        at javax.xml.bind.JAXBContext.newInstance(JAXBContext.java:574)
        at
org.apache.cxf.jaxb.JAXBDataBinding.createJAXBContext(JAXBDataBinding
.java:457)
        at
org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:2
38)
        ... 163 more


Regards

Hila

-----Original Message-----
From: [hidden email]
[mailto:[hidden email]] On
Behalf Of Karel Maesen
Sent: Monday, October 05, 2009 4:50 AM
To: Hibernate Spatial Users Discussion
Subject: Re: [hibernatespatial-users] Could not determine type
for:org.hibernateespatial.GeometryUserType

Hi,

In the @Column annotation, try setting columnDefinition =  
"MDSYS.SDO_GEOMETRY".

Regards,
Karel
On 01 Oct 2009, at 23:21, Olumee, Milan wrote:

> Hi,
>
>
>
> I am using oracle hibernate spatial with spring framework, I get an  
> error when I try to deploy my application in the jBoss.  This is  
> how I defined the geometry column in the domain object.
>
>
>
> // Geometry column
>
>     @Column(name="LOCATION", columnDefinition="Geometry", nullable  
> = true)
>
>     @Type(type="org.hibernatespatial.GeometryUserType")
>
>     private Geometry location;
>
>
>
>     public Geometry getLocation() {
>
>         return location;
>
>     }
>
>
>
>     public void setLocation(Geometry location) {
>
>         this.location = location;
>
>     }
>
>
>
> Here is part of my hibernate config file
>
>
>
> <prop  
> key="hibernate.dialect">org.hibernatespatial.oracle.OracleSpatial10gDi

> alect</prop>
>
>                 <prop key="hibernate.connection.autocommit">false</
> prop>
>
>                 <prop key="hibernate.connection.shutdown">true</prop>
>
>                 <prop  
> key="hibernate.cache.use_second_level_cache">false</prop>
>
>
>
>                 <!-- update should be used here so table is created  
> on fresh install, but kept around thereafter -->
>
>                 <prop key="hibernate.hbm2ddl.auto">update</prop>
>
>                 <prop  
> key="hibernate.current_session_context_class">thread</prop>
>
>                 <prop key="hibernate.transaction.factory_class  
> ">org.hibernate.transaction.JDBCTransactionFactory</prop>
>
>
>
>
>
> I do not use a mapping file rather I use the annotation in the  
> domain to create the schema, My question is can this be done  
> without a mapping file? If not,  is there a workaround for it  
> because I am converting an existing application to hibernate  
> spatial and the current application does not have a mapping file  
> defined.
>
>
>
>
>
> With these I get the following error:
>
>
>
> 2009-10-01 16:25:26,699 ERROR  
> [org.springframework.web.context.ContextLoader] Context  
> initialization failed
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionRegistry' defined in ServletContext  
> resource [/WEB-INF/classes/security-beans.xml]: Initialization of  
> bean failed; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'cxf' defined in class path resource [META-
> INF/cxf/cxf.xml]: Initialization of bean failed; nested exception  
> is org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc

> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w

> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'cxf' defined in class path resource [META-
> INF/cxf/cxf.xml]: Initialization of bean failed; nested exception  
> is org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc

> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w

> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name  
> 'org.springframework.transaction.interceptor.TransactionAttributeSourc

> eAdvisor': Cannot create inner bean '(inner bean)' of type  
> [org.springframework.transaction.interceptor.TransactionInterceptor] w

> hile setting bean property 'transactionInterceptor'; nested  
> exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name '(inner bean)#10': Cannot resolve reference  
> to bean 'transactionManager' while setting bean property  
> 'transactionManager'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'transactionManager' defined in  
> ServletContext resource [/WEB-INF/classes/application-
> hibernate.xml]: Cannot resolve reference to bean 'sessionFactory'  
> while setting bean property 'sessionFactory'; nested exception is  
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.springframework.beans.factory.BeanCreationException: Error  
> creating bean with name 'sessionFactory' defined in ServletContext  
> resource [/WEB-INF/classes/application-hibernate.xml]: Invocation  
> of init method failed; nested exception is  
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
> Caused by:
>
> org.hibernate.MappingException: Could not determine type for:  
> org.hibernateespatial.GeometryUserType, for columns:  
> [org.hibernate.mapping.Column(LOCATION)]
>
>                 at org.hibernate.mapping.SimpleValue.getType
> (SimpleValue.java:266)
>
>                 at org.hibernate.mapping.SimpleValue.isValid
> (SimpleValue.java:253)
>
>                 at org.hibernate.mapping.Property.isValid
> (Property.java:185)
>
>                 at org.hibernate.mapping.PersistentClass.validate
> (PersistentClass.java:440)
>
>                 at org.hibernate.mapping.RootClass.validate
> (RootClass.java:192)
>
>                 at org.hibernate.cfg.Configuration.validate
> (Configuration.java:1102)
>
>
>
> With respect
>
>
>
> Hila
>
>
>
>
>
> _______________________________________________
> hibernatespatial-users mailing list
> [hidden email]
> http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/ 
> hibernatespatial-users


_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatia
l-users
_______________________________________________
hibernatespatial-users mailing list
[hidden email]
http://www.hibernatespatial.org/cgi-bin/mailman/listinfo/hibernatespatial-users