Discussions

Web tier: servlets, JSP, Web frameworks: jaxb Exception with struts

  1. jaxb Exception with struts (1 messages)

    I have a Web app with struts 1.1 (with jdk 1.4 on Windows XP).
    I choose jaxb (http://java.sun.com/xml/jaxb/index.jsp) to marshall/unmarshall xml stream to java object.
    I used jaxb with a console app and everything was ok.
    The same code, inside struts, give me the following error:

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

    inside log4j log file --> Unable to locate jaxb.properties for package it.genialloyd.servixi.xml

    Could you give me a suggest???

    Thanks
    Aldo Funicelli
  2. jaxb Exception with struts[ Go to top ]

    When you generate the JAXB classes, it should create a jaxb.properties file and a bgm.ser file. These files should be packaged in the jar which contains your JAXB classes.