Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7175535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T16:19:06+00:00 2026-05-28T16:19:06+00:00

I want to generate xml file from Struts action object. So that I have

  • 0

I want to generate xml file from Struts action object. So that I have tried to use the plugin named struts2-jaxb-plugin. Infact I am new to this and they have given an example to how to use the JAXB plugin in struts2. Click here to see the example what I have tried.

While starting the server, it gives the following Exception.

INFO - Could not locate any XML to UnMarshall an object from. Attempted using the parameter jaxbXML
23 Jan, 2012 1:12:26 PM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet default threw exception
java.lang.NoSuchMethodError: com.opensymphony.xwork2.ActionContext.get(Ljava/lang/Object;)Ljava/lang/Object;
at org.apache.struts2.result.jaxb.JAXBResultType.isGzipOkay(JAXBResultType.java:213)
at org.apache.struts2.result.jaxb.JAXBResultType.prepareForResponse(JAXBResultType.java:113)
at org.apache.struts2.result.jaxb.JAXBResultType.doExecute(JAXBResultType.java:58)
at org.apache.struts2.dispatcher.StrutsResultSupport.execute(StrutsResultSupport.java:186)
at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:362)
at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:266)

…

I am using the following jars in my project:

xwork-core-2.1.6.jar,
struts2-core-2.2.1.jar

JAXB-plugin jar: struts2-jaxb-plugin.jar

Thanks in advance friends!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T16:19:06+00:00Added an answer on May 28, 2026 at 4:19 pm

    Looks like this Plugin is writen for an older version Struts 2.0.x and is not compatible for newer versions like 2.1.x or higher.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to write an XML file. I have created an XSD file named
I have an XML file that I want to base some unit tests off
I use XSLT to generate an HTML table using info from an XML file.
I have an XML File that I am processing using LINQ. I want to
I need to generate an XML file in C#. I want to write the
I've a file with xml data. And I want to generate a report out
I want to generate random numbers manually. I know that every language have the
Note, I am not trying to generate the schema for an XML file from
I have a schema (xsd), and I want to create xml files that conform
Are there any API/solution to generate PDF report from XML file data and definition.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.