You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Alejandro Calbazana <al...@calbazana.com> on 2007/05/17 17:01:07 UTC
Axis2 + Hibernate
Hi,
I am trying to load hibernate mappings during the my service's startUp
event. The hibernate configuration file loads ok, but it fails to load
any of the mapping files found in the hibernate configuration. I tried
setting the TCCL to "composite" as part of my services.xml, but this
does not seem to work. My hibernate mapping files are packed in a .jar
file containing my domain classes. This jar is included my service's
/lib directory. Any hints on how I can get this to load? I'd like to
keep the mappings where they reside instead of moving them to an
alternate location.
Thanks,
Al
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Axis2 + Hibernate
Posted by Martin Polet <im...@skynet.be>.
Hi ,
I had the exactly the same problem tha you.
I resolv it like that
1.Created a jar of all the classfiles, xml input files
2.Placed that jar file in <TOMCAT_HOME>/webapps/axis/WEB-INF/lib
folder.
3.Built the services.xml,manifest.mf, wsdl file into an .aar file
4.Placed the .aar file in <TOMCAT_HOME>/webapps/axis/WEB-INF/services
folder.
5. start tomcat
source:
http://marc.info/?l=axis-user&m=116903503019338&w=2
Le 17-mai-07 à 17:01, Alejandro Calbazana a écrit :
> Hi,
>
> I am trying to load hibernate mappings during the my service's
> startUp event. The hibernate configuration file loads ok, but it
> fails to load any of the mapping files found in the hibernate
> configuration. I tried setting the TCCL to "composite" as part of
> my services.xml, but this does not seem to work. My hibernate
> mapping files are packed in a .jar file containing my domain
> classes. This jar is included my service's /lib directory. Any
> hints on how I can get this to load? I'd like to keep the mappings
> where they reside instead of moving them to an alternate location.
>
> Thanks,
>
> Al
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
____________________________________
Martin Polet
15 chemin des hayes
1380 Lasne
E-mail: martin.polet@skynet.be
GSM: 0477/ 90 48 51