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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T06:55:49+00:00 2026-05-15T06:55:49+00:00

(axis2 1.3, struts2 2.1.8.1, tomcat 6.x, java 1.5.0) I’ve got problem with making my

  • 0

(axis2 1.3, struts2 2.1.8.1, tomcat 6.x, java 1.5.0)

I’ve got problem with making my first web service.

  1. I create a MOCK api which i want to test. My action:

    public HotelMessage[] getMessages(String roomNr) {
    HotelMessage[] msg2return = new HotelMessage[1];
    HotelMessage m1 = new HotelMessage();
    m1.setId(1L);
    m1.setMessage("wiadomosc pierwsza");
    m1.setTitle("title pierwszy");
    m1.setRead(false);
    m1.setRoomNr(roomNr);
    System.err.println("returning messages");
    return msg2return;
    

    }

My HotelMessage class looks like that:

import java.io.Serializable;
import java.sql.Date;

public class HotelMessage implements Serializable{

    private static final long serialVersionUID = -6785924436619067967L;
        private long id;
    private boolean read;
    private String roomNr;
    private String title;
    private String message;
    private Date create_date;

    //setters + getters
        }

After making aar, i upload this to mu axis2 on tomcat, then:

wsdl2java.bat -uri http://localhost:8088/axis2/services/HotelAPI?wsdl -d adb -s -S .

everything works just fine, but I got this exception, while i was trying to call getMessages(“STH”) action with code:

HotelAPIStub.GetMessages getMessages = new HotelAPIStub.GetMessages();
    getMessages.setParam0("ble");
    HotelAPIStub.HotelMessage[] tmp; 
    try{
        HotelAPIStub.GetMessagesResponse resp3 = stub.getMessages(getMessages);
        tmp = resp3.get_return();
        System.err.println("THERE ARE "+tmp.length+"MESSAGES!");
    }catch (RemoteException ex){
        System.err.println("NO MESSAGES!");
        ex.printStackTrace();
    }

i’ve got this Exception:

org.apache.axis2.AxisFault: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
    at com.swmind.IPTV.hotel.HotelAPIStub.getMessages(HotelAPIStub.java:371)
    at com.swmind.IPTV.hotel.actions.ShowBillClass.execute(ShowBillClass.java:57)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

Could anyone please help me ? I’ve tried to google it, but didn’t found anything useful.
Thx
Tzim

  • 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-15T06:55:50+00:00Added an answer on May 15, 2026 at 6:55 am

    Solution: restart tomcat with axis2 in it…

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

Sidebar

Related Questions

I have an AXIS2/JAX-WS web service using a code first implementation (yes I know,
Is it possible with Axis2 and Eclipse to generate a Web Service client and
I want to build an Axis2 client (I'm only accessing a remote web service,
I'm actually developing a Web Service in Java using Axis 2. I designed my
I deployed on Tomcat Axis2 and OpenEjb and got the error. If deploy either
I have Axis2 created web service client. This service uses both SSL and WS-Security
I am using Apache Axis to connect my Java app to a web server.
Help! I have an Axis web service that is being consumed by a C#
My BlackBerry application consumes axis2 web services. SOAP POST HTTP request constantly fails with
I have created a axis2 webservice including a method with multiple parameters: class Service

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.