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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T17:01:25+00:00 2026-06-05T17:01:25+00:00

I created a simple Java EE project in NetBeans (File -> New Project ->

  • 0

I created a simple Java EE project in NetBeans (File -> New Project -> Java Web -> Web Application).

In the new created project I added a Web Service and called “CesaService”. Here is the source:

package com.convista.jcesa.webservice;

import javax.jws.WebMethod;
import javax.jws.WebParam;
import javax.jws.WebService;

@WebService(serviceName = "CesaService")
public class CesaService {

    @WebMethod(operationName = "hello")
    public String hello(@WebParam(name = "name") String txt) {
        return "Hello " + txt + " !";
    }
}

NetBean then generated the following files:

sun-jaxws.xml:

<?xml version="1.0" encoding="UTF-8"?>
<endpoints version="2.0" xmlns="http://java.sun.com/xml/ns/jax-ws/ri/runtime">
  <endpoint implementation="com.convista.jcesa.webservice.CesaService" name="CesaService" url-pattern="/CesaService"/>
</endpoints>

web.xml:

<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
    <listener>
        <listener-class>com.sun.xml.ws.transport.http.servlet.WSServletContextListener</listener-class>
    </listener>
    <servlet>
        <servlet-name>CesaService</servlet-name>
        <servlet-class>com.sun.xml.ws.transport.http.servlet.WSServlet</servlet-class>
        <load-on-startup>1</load-on-startup>
    </servlet>
    <servlet-mapping>
        <servlet-name>CesaService</servlet-name>
        <url-pattern>/CesaService</url-pattern>
    </servlet-mapping>
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
</web-app>

My server is the shipped Tomcat 7.0.22.0. When I start the project I get the following error:

Schwerwiegend: WSSERVLET11: failed to parse runtime descriptor: javax.xml.ws.WebServiceException: class com.convista.jcesa.webservice.jaxws.Hello do not have a property of the name name
javax.xml.ws.WebServiceException: class com.convista.jcesa.webservice.jaxws.Hello do not have a property of the name name
    at com.sun.xml.ws.server.sei.EndpointArgumentsBuilder$DocLit.<init>(EndpointArgumentsBuilder.java:531)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.createArgumentsBuilder(EndpointMethodHandler.java:133)
    at com.sun.xml.ws.server.sei.EndpointMethodHandler.<init>(EndpointMethodHandler.java:106)
    at com.sun.xml.ws.server.sei.SEIInvokerTube.<init>(SEIInvokerTube.java:82)
    at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:219)
    at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:505)
    at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parseAdapters(DeploymentDescriptorParser.java:253)
    at com.sun.xml.ws.transport.http.DeploymentDescriptorParser.parse(DeploymentDescriptorParser.java:147)
    at com.sun.xml.ws.transport.http.servlet.WSServletContextListener.contextInitialized(WSServletContextListener.java:124)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4723)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5226)
    at org.apache.catalina.core.StandardContext$1.call(StandardContext.java:5221)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: javax.xml.bind.JAXBException: name is not a valid property on class com.convista.jcesa.webservice.jaxws.Hello
    at com.sun.xml.bind.v2.runtime.JAXBContextImpl.getElementPropertyAccessor(JAXBContextImpl.java:971)
    at com.sun.xml.ws.server.sei.EndpointArgumentsBuilder$DocLit.<init>(EndpointArgumentsBuilder.java:520)
    ... 16 more

Jun 13, 2012 2:31:35 PM org.apache.catalina.core.StandardContext startInternal
Schwerwiegend: Error listenerStart
Jun 13, 2012 2:31:35 PM org.apache.catalina.core.StandardContext startInternal
Schwerwiegend: Context [/FST] startup failed due to previous errors
Jun 13, 2012 2:31:35 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextDestroyed
Information: WSSERVLET13: JAX-WS context listener destroyed
Jun 13, 2012 2:31:36 PM org.apache.catalina.core.StandardContext reload
Information: Reloading Context with name [/FST] is completed

Do you have any idea what causes this? I don’t want and have a class com.convista.jcesa.webservice.jaxws.Hello and don’t understand where it is referenced.

Thanks in advance!

  • 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-05T17:01:27+00:00Added an answer on June 5, 2026 at 5:01 pm
     public String hello(@WebParam(name = "name") String txt) {
    

    should be

     public String hello(@WebParam(name = "name") String name) {
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple java web (Vaadin) application project using JPA and it
I have created a simple web-service using Java. i want to load jars related
I have created simple Java Dynamic Web project in Eclipse. I host my project
A hobby project of mine is a Java web application. It's a simple web
I've created a simple console Java application that is built with Maven. Is there
I have created a sample java socket application. I used Socket s = new
I am trying to run a simple Java project. I had created a project
I have created a dynamic web project in Eclipse and have written a simple
I have created a java project following these steps: 1.File->java project 2. Created the
In the NetBeans 6.9 IDE, if you create a New Project >> Java >>

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.