IntelliJ Java IDE
The moose likes Struts and the fly likes jaxb.properties problem with struts Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Application Frameworks » Struts
Reply Bookmark "jaxb.properties problem with struts" Watch "jaxb.properties problem with struts" New topic
Author

jaxb.properties problem with struts

Funicelli Aldo
Greenhorn

Joined: Jan 08, 2003
Posts: 12
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

Joined: Jan 08, 2003
Posts: 12
Sorry ... It was an error of mine: I called the wrong context
JacbContext.newInstance("it.genialloyd.servixi.xml");

This package doesn't exists!!!
 
 
subject: jaxb.properties problem with struts
 
Threads others viewed
jaxb.properties file
Problem in Struts JAXB
Confused with JAXB, Context path
Struts - JAXB problem
Unable to parse xml by jaxb in ejb module
MyEclipse, The Clear Choice