Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Spring Hibernate Iceface configuration file get DTD and workoffline

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am using a Spring + Hibernate + Icefaces combination to build a web application and since the firewall and proxy problem, I can not easily connect to internet. So the problem is the spring and hibernate configuration need to load the DTD or schema for validation from internet. Under this condition, I must manully extract the DTD from those jar file. I have tried that it did not work if it zips in the jar file.

Spring work fine under this solution and I set the header of Spring configuration file as following

you can see that the dtd file is extracted to folder dtd. The folder is under web-inf.

Now hibernate will integrated with spring as the configuration below.

you can see that the configuration file is under folder web-inf.

Under this condion. The system will first load spring configuration then load hibernate configuration. The environement will change to eclipse if I developed in Eclipse. But the hibernate configuration file cannot find the DTD again as below configure

the system generate exception


you can see that the environment change to D:\software\eclipse. I have tested if directly deploy to tomcat, the environement will also change to tomcat folder.

So, does anyone have idea to solve this problem?

Thanks and best regards
anthony chan
 
I think I'll just lie down here for a second. And ponder this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic