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

  • Home
  • SEARCH
  • 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 8540669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T11:39:11+00:00 2026-06-11T11:39:11+00:00

I have web service with method that throw my custom exeption. @WebMethod void someMethod(…)

  • 0

I have web service with method that throw my custom exeption.

@WebMethod void someMethod(...) throws MyException   

MyException class is annotated with @ApplicationException

@ApplicationException  
class public MyException extends Exception {...}   

I was build my project using maven, JDK 1.6 and jaxws-maven-plugin for generating WSDL, and all worked well.
But now I want do the same with JDK 1.7, and now I get error

Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions
java.lang.StackTraceElement does not have a no-arg default constructor.
    this problem is related to the following location:
        at java.lang.StackTraceElement
        at public java.lang.StackTraceElement[] java.lang.Throwable.getStackTrace()
        at java.lang.Throwable
        at private java.lang.Throwable[] com.MyPackage.MyExceptionBean.suppressed
        at com.MyPackage.MyExceptionBean  

Any ideas?

Different is that with JDK 1.6 class MyExceptionBean was generated like

public class MyExceptionBean {

    private String message;

but with JDK 1.7

public class MyExceptionBean {

    private String message;
    private Throwable[] suppressed;  

jaxws-maven-plugin

<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxws-maven-plugin</artifactId>
<version>1.10</version>
  • 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-06-11T11:39:12+00:00Added an answer on June 11, 2026 at 11:39 am

    There is issue of jaxws-maven-plugin and java 7 🙁
    issue tracker

    with version 2.2 works well

    <groupId>org.jvnet.jax-ws-commons</groupId>
    <artifactId>jaxws-maven-plugin</artifactId>
    <version>2.2</version>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a web service method where I would like to throw some custom
I have a Web Service with Just one Web Method that returns a boolean
I have a simple web service method which I'm trying to convert: <WebMethod()> _
I have A WCF service that has a class that inherits System.Web.Security.RoleProvider. In this
I have a web service that throws a BadImageFormatException any time I try to
I have a web service with a method that has two string parameters. When
I have a web service (ASMX) and in it, a web method that does
I have a web service method in which I create a particular type of
When I call, the service's method, I have Web Service Exception happening which I
I do have something more specific in mind, however: Each web service method needs

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.