• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

jaxb.properties problem with struts

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have a Web app with struts 1.1 (jdk1.4): I choose jaxb 1.4 to serialize/deserialize xml stream/file into java objects.

Until I test it inside a console app, everything works.
As I use the same code with an Action class, the code:

JAXBContext jc = JAXBContext.newInstance("it.genialloyd.servixi.xml");

produce the exception (that I report inside log4j log file)

--> Unable to locate jaxb.properties for package it.genialloyd.servixi.xml

I check if this file is present inside web-inf/classes, and it's there, as I expect ...

Any suggest???
Thanks
Aldo Funicelli
 
Funicelli Aldo
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry ... It was an error of mine: I called the wrong context
JacbContext.newInstance("it.genialloyd.servixi.xml");

This package doesn't exists!!!
 
A "dutch baby" is not a baby. But this tiny ad is baby sized:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic