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 8702921
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T02:46:05+00:00 2026-06-13T02:46:05+00:00

I seem to be having an issue with Java and NetBeans when it comes

  • 0

I seem to be having an issue with Java and NetBeans when it comes to writing web services.
I have searched for a couple of days with no luck, finding people with the same issue as me with zero replies.

I have created a web service which returns a complex type (LoginReply), and that complex type contains an array of another complex type (AppInfo)

However when I generate the WSDL from this, the complex type definition in the XSD is blank, and manually adding the information still makes the web service return null even when data is successfully passed to the web service.

<xs:complexType name="appInfo">
<xs:sequence/>
</xs:complexType>

LoginReply: http://pastebin.com/Umx6ayvi
AppInfo: http://pastebin.com/566WnZ4H

If anyone could point out what I’m doing wrong, or if this is a bug with NetBeans, I’m new to Java so I can’t rule out that I’m simply not understanding something, but I’m close to pulling my hair out here.

EDIT:

Just noticed when i deploy to tomcat via NetBeans I get the following error:

WARNING: duplicate class definition bug occured? Please report this :    uk/co/example/ComplexTypes/LoginReply$JaxbAccessorM_getApplications_setApplications_[Luk_co_example_ComplexTypes_AppInfo;

java.lang.ClassFormatError: Illegal class name "uk/co/example/ComplexTypes/LoginReply$JaxbAccessorM_getApplications_setApplications_[Luk_co_example_ComplexTypes_AppInfo;" in class file uk/co/example/ComplexTypes/LoginReply$JaxbAccessorM_getApplications_setApplications_[Luk_co_example_ComplexTypes_AppInfo;

Notice the random L before co_uk_example. My research suggests this is an old bug that should be fixed, and that no one else has reported this issue in over a year, no sure where to go from here.

Another edit:

Just added a new web method on the service that simply gets a list of appInfo and returns it to the client. This still fails the same way with NetBeans refusing to generate a sequence inside AppInfo.
I’m sure I’m missing something to declare the class, but I have checked it countless times to ensure I’m not missing anything.

  • 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-13T02:46:06+00:00Added an answer on June 13, 2026 at 2:46 am

    This Issue came down to a very simple mistake. The AppInfo class was using non-standard getters and setters.

    public void SetAppID(int AppID)
    {
        this.AppID = AppID;
    }
    

    This is INCORRECT (notice the capital on the Set), it should be:

    public void setAppID(int AppID)
    {
        this.AppID = AppID;
    }
    

    Using a capital is not standard for JavaBeans and as such JAX-WS didn’t know how to generate WSDL for this class. Thanks too shyam from the following link for answering the question

    How to return a custom complex type in JAX-WS web services?

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

Sidebar

Related Questions

I seem to be having an issue with Xalan's translate method. I have the
I seem to be having an issue with JQUERY. I have an onclick event
I am having an issue that I can't seem to figure out. Hopefully somebody
I am having an xslt issue that I cannot seem to solve. Right now
I am having a strange issue that I can't seem to resolve. Here is
I seem to be having an issue with Jax-WS and Jax-b playing nicely together.
Having a very basic issue with running tests in a Java Play 2.0 app.
As I'm extremely new to java, I seem to have trouble grasping some concepts.
I'm having an issue with my programs construction. I can't seem to find where
I seem to be having an issue with Python when I run a script

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.