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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:24:57+00:00 2026-06-06T21:24:57+00:00

I am new to Webservices. when i try to create a webservice I am

  • 0

I am new to Webservices. when i try to create a webservice I am getting following error.

 Error: java.lang.RuntimeException: org.apache.cxf.service.factory.ServiceConstructionException

java.lang.RuntimeException: org.apache.cxf.service.factory.ServiceConstructionException
    at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:80)
    at org.apache.cxf.tools.java2wsdl.processor.JavaToWSDLProcessor.process(JavaToWSDLProcessor.java:101)
    at org.apache.cxf.tools.java2ws.JavaToWSContainer.processWSDL(JavaToWSContainer.java:110)
    at org.apache.cxf.tools.java2ws.JavaToWSContainer.execute(JavaToWSContainer.java:75)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:103)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:58)
    at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:40)
    at org.apache.cxf.tools.java2ws.JavaToWS.run(JavaToWS.java:77)
    at org.apache.cxf.tools.java2ws.JavaToWS.main(JavaToWS.java:45)
Caused by: org.apache.cxf.service.factory.ServiceConstructionException
    at org.apache.cxf.jaxb.JAXBDataBinding.initialize(JAXBDataBinding.java:297)
    at org.apache.cxf.service.factory.AbstractServiceFactoryBean.initializeDataBindings(AbstractServiceFactoryBean.java:86)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(ReflectionServiceFactoryBean.java:474)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.buildServiceFromClass(JaxWsServiceFactoryBean.java:685)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(ReflectionServiceFactoryBean.java:536)
    at org.apache.cxf.service.factory.ReflectionServiceFactoryBean.create(ReflectionServiceFactoryBean.java:248)
    at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.create(JaxWsServiceFactoryBean.java:205)
    at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:101)
    at org.apache.cxf.frontend.AbstractServiceFactory.createService(AbstractServiceFactory.java:78)
    ... 8 more
Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 20 counts of IllegalAnnotationExceptions
Class has two properties of the same name "boardingPoint"
    this problem is related to the following location:
        at public java.lang.String com.abhibus.oprs.pojo.booking.PrintTicket.getBoardingPoint()
        at com.abhibus.oprs.pojo.booking.PrintTicket
        at com.abhibus.oprs.pojo.booking.TicketBooking
        at com.abhibus.oprs.pojo.booking.ServicePassengerBookingInfo

I am stuck up with this from past two days.
Here in this scenario, ServicePassengerBookingInfo extends TicketBooking and TicketBooking extends PrintTicket. I have defined a property called boardingPoint in Printticket pojo.

Please let me know how to solve this

endpoint source

public class SaveTicketBookingInfo {

    private Long serviceId;
    private Integer adults;
    private Integer childs;
    private String journeyType;
    private Integer journeyTime;
    private Long startPlaceId;
    private Long endPlaceId;
    private Long loginUserId;
    private String paxSeatDetails[];
    private int totalSeatsBooked = 0;
    private Long categoryCodeId[];
    private Long genderCodeId[];
    private String passengerName[];
    private Double passengerAge[];
    private String seatDetails[];
    private Double fareDetails[];
    private Double forwardAdultFare;
    private Double forwardChildFare;
    private double concPerChildPax = 0;
    private int maxPassengerAllowed;
    private String concApplyToChild;
    private int departureDay[];
    private String srvcPlatformNo[];
    private Double concPriceForward;
    private String bookingTypeForward;
    private Double concPriceReturn;
    private String retConc;    
    private String bookingTypeReturn;
    private Long mealIdReturn[];
    private Long mealIdForward[];
    private Double mPriceReturn[];
    private Double mPriceForward[];
    private Integer mQtyForward[];   
    private Integer mQtyReturn[]; 
    private Long depotIds[];
    private Long srvcStationId[];
    private Long accomodationId[];
    private Double tollsPrice[];
    private String acFlag[];   
    private String ticketType;
    private String cancelTicketType;
    private String stockNumber;
    private String stockKey;
    private String cancelType;   
    private String seatNos;
    private int concNoPassengers;
    private String seatsBooked;
    private Long serviceCategoryId;
    private Long concessionId;
    private Double tollFare;
    private String bookingType;
    private String departureTime;
    private String arrivalTime;
    private Double totalAmount;
    private String cardNumber;
    private Double[] bookingTollFare;   
    private Double returnAdultFare;
    private Double returnChildFare;  
    private int retTotalPax = 0;          
    private Double refundPrice;
    private Double refundSrtPrice;
    private Double refundTollFee;
    private Double refundMealPrice;
    private Double refundAccomPrice;
    private Double refundTotalAmount;
    private Long forwardServiceId;
    private Long returnServiceId;
    private Long stationId[];
    private String searchType;
    private String journeyDate;
    private String returnJourneyDate;
    private String[] platFormNo;
    private boolean agentBooking;
    private boolean eBooking;
    private Auditor auditor; 
}

with setter and getter methods

  • 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-06T21:24:58+00:00Added an answer on June 6, 2026 at 9:24 pm

    You can see the root cause in the stack trace you’ve posted:

    Caused by: com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 20 counts of IllegalAnnotationExceptions
    Class has two properties of the same name "boardingPoint"
        this problem is related to the following location:
            at public java.lang.String com.abhibus.oprs.pojo.booking.PrintTicket.getBoardingPoint()
    

    This is the root cause – implicitly or explicitly, you’re defining a class with ambiguous mappings, so that two things map to the same name. Unsurprisingly this can’t be resolved, so the server fails to start up.

    Without the full source of the PrintTicket class I couldn’t say what’s causing this, but look at how you’re annotating its properties. It could be that you’re exporting both fields and methods (so a getter would clash with the field), or you’ve got two getter methods that match (e.g. isBoardingPoint and getBoardingPoint), etc.

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

Sidebar

Related Questions

My webservice generates jsonp response same as http://demos.kendoui.com/service/products . When i try to create
I'm using cxf 2.4.4 to make RESTful webservices I have this service: @WebService public
in android I am getting the following error: NativeStart.main(String[]) line: not available [native method]
So i have this new Axis2 MTOM Webservice serving correctly to a java based
We are trying to consume webservices in blackberry.We are very new in developing apps
I'm trying to develop a new webservice using JAX-WS and JAXB annotations. When I
I'm fairly new to WebService developement and have just set up my own webservice
I'm pretty new to Web Services in java. I was starting on a project
Im pretty new to Java Web Services, but I cant find a good explanation
i am using following webservices for retrieving data from server server side:.net client side:ksoap2

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.