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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:31:29+00:00 2026-06-17T14:31:29+00:00

I still consider myself new to Java webservices, and I have hit a real

  • 0

I still consider myself new to Java webservices, and I have hit a real roadblock that I cannot overcome.

I am trying to deploy a @Stateless Web Service and access it’s WSDL over https. Whenever I attempt to access it I get the following error in the browser:

Error generating artifacts for the following WSDL https://localhost:8181/TestService/Test?WSDL

Possible causes can be invoking https when the application is not configured for security

The console is showing the following errors:

INFO: parsing WSDL...

WARNING: Invalid request scheme for Endpoint Test. Expected http . Received https
INFO: [ERROR] Premature end of file.
INFO:   line 1 of https://localhost:8181/TestService/Test?WSDL
WARNING: Invalid request scheme for Endpoint Test. Expected http . Received https
WARNING: MEX0008:Failed to parse metadata returned from server at https://localhost:8181/TestService/Test?WSDL using protocol SOAP_1_2. Continuing attempts.
WARNING: Invalid request scheme for Endpoint Test. Expected http . Received https
WARNING: MEX0008:Failed to parse metadata returned from server at https://localhost:8181/TestService/Test?WSDL using protocol SOAP_1_1. Continuing attempts.
WARNING: Invalid request scheme for Endpoint Test. Expected http . Received https
WARNING: MEX0008:Failed to parse metadata returned from server at https://localhost:8181/TestService/Test?WSDL/mex using protocol SOAP_1_2. Continuing attempts.
WARNING: Invalid request scheme for Endpoint Test. Expected http . Received https
WARNING: MEX0008:Failed to parse metadata returned from server at https://localhost:8181/TestService/Test?WSDL/mex using protocol SOAP_1_1. Continuing attempts.
INFO: [ERROR] Premature end of file.
Failed to read the WSDL document: https://localhost:8181/TestService/Test?WSDL, because 1) could not find the document; /2) the document could not be read; 3) the root element of the document is not <wsdl:definitions>.
INFO: [ERROR] failed.noservice=Could not find wsdl:service in the provided WSDL(s): 
 At least one WSDL with at least one service definition needs to be provided.
INFO:   Failed to parse the WSDL.
INFO: Invoking wsimport with https://localhost:8181/TestService/Test?WSDL
SEVERE: wsimport failed

Again, this is ONLY happening when accessing it over HTTPS. Regular HTTP is fine. However, if I were to remove the @Stateless annotation, it works just fine over https. It fails when I add the @Stateless annotation.

I need the @Stateless annotation since I will be working with JMS Queues, and you need it when doing that.

Below is the code for my class:

package service.test;

import javax.ejb.Stateless;
import javax.jws.WebMethod;
import javax.jws.WebService;

@Stateless
@WebService
public class Test
{
    public String hello()
    {
        return "Hello!";
    }

    @WebMethod
    public int addNumbers(int number1, int number2)
    {
        return number1 + number2;
    }
}

So far at this point, I have never needed to utilize any web descriptors. Everything I have done is by default handled in Eclipse automatically. Do I have to do anything special with the descriptor files? If so, which ones?

Thank You

  • 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-17T14:31:30+00:00Added an answer on June 17, 2026 at 2:31 pm

    This was an odd issue that I never really figured out the cause of. Oddly enough, this issue worked itself out in the end by not needing @Stateless.

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

Sidebar

Related Questions

I consider myself still pretty new to the TDD scene. But find that no
I have just finished this MySQL query and as I still consider myself a
I'm building an ASP.NET MVC application and still consider myself new to ASP.NET MVC.
I still consider myself quite a novice when it comes to JavaScript/JQuery. How would
still new to XML parsing with the iphone so i have a few questions.
Still an iphone dev starter but trying. I would like to have the user
ALthough I've had to dabble in shell scripting and commands, I still consider myself
I've been coding for a while, but still consider myself a beginner. I use
I still consider myself a beginner when it comes to JQUERY+Coldfusion...so I'd like to
I still consider myself a novice with javascript...so be gentle :) Is there a

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.