axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas" <dava...@gmail.com>
Subject Re: access to hibernate mapping file inside an .aar?
Date Sat, 28 Apr 2007 13:14:19 GMT
Set ServiceTCCL parameter to composite as mentioned here:
http://wso2.org/blog/dims/1131

On 4/28/07, Martin Polet <imacx@skynet.be> wrote:
> Hi,
>
> I will give a little bit more details about my problem:
>
> i follow this article:
>
> http://ws.apache.org/axis2/1_1_1/spring.html
>
> Everything is ok except that my applicationContext can't access my hibernate
> file.
> But, it can access my jdbc.properties which is also in
> /WEB-INF/jbbc.properties...
>
> And the point which is not very clear is the article, is the last point as
> follow:
>
>  <bean id="mySessionFactory"
> class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
>                 <property name="mappingLocations">
>
> <value>classpath*:**/MyEntity.hbm.xml</value>
>                 </property>
>                 ...
>  </bean>
>
> how can i fix the "classpath" in the field value?
>
>
> Can someone help me, thank you !
>
>
>
>
>
>
> Le 27-avr.-07 à 18:04, Martin Polet a écrit :
>
> Hi,
>
>
> I would like to know how to access my hibernate mapping file from the
> applicationContext.xml.
> I'm using Spring 3 with hibernate 3.
>
> Here is my bean from applicationcontext.xml which call my mapping file:
>
> <bean id="mysessionFactory"
> class="org.springframework.orm.hibernate3.LocalSessionFactoryBean">
>             <property name="dataSource">
>                         <ref bean="dataSource" />
>             </property>
>             <property name="hibernateProperties">
>                         <ref bean="myHibernateProperties" />
>             </property>
>             <property name="mappingResources">
>                         <list>
>
>
>
> <value>/WEB-INF/AbsentiaD.hbm.xml</value>
>
>                         </list>
>             </property>
>     </bean>
>
>
>
>
>
>
> Here is the error:
>
>
> [CODE]
> Caused by:
> org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'mysessionFactory' defined in class path
> resource [WEB-INF/applicationContext.xml]: Invocation of
> init method failed; nested exception is java.io.FileNotFoundException: class
> path resource [classpath*:**/AbsentiaD.hbm.xml] cannot be
> opened because it does not exist
> Caused by: java.io.FileNotFoundException: class path resource
> [classpath*:**/AbsentiaD.hbm.xml] cannot be opened because
> it does not exist
> [/CODE]
>
>  Thx a lot
>
>
>
>
> ____________________________________
>
> Martin Polet
> 15 chemin des hayes
> 1380 Lasne
>
> E-mail: martin.polet@skynet.be
> GSM: 0477/ 90 48 51
>
>
>
> ____________________________________
>
> Martin Polet
> 15 chemin des hayes
> 1380 Lasne
>
> E-mail: martin.polet@skynet.be
> GSM: 0477/ 90 48 51
>
>


-- 
Davanum Srinivas :: http://davanum.wordpress.com

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message