【发布时间】:2021-12-05 02:58:48
【问题描述】:
您好,我在 glassfish 服务器中遇到问题 我已经使用 intellij 部署了我的应用程序,它成功地向我展示了 Hello World 的第一页,当我添加到 url 时,显示了 404page 服务的名称
这是网络服务的代码
package test;
import javax.jws.WebMethod;
import javax.jws.WebService;
@WebService(serviceName = "HelloService")
public class Hello {
public Hello() {
}
@WebMethod()
public int calcul (int a , int b){
return a+b;
}
}
web.xml
<!DOCTYPE web-app PUBLIC
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd" >
<web-app>
<display-name>Archetype Created Web Application</display-name>
</web-app>
index.jsp
<html>
<body>
<h1>Test the application the problem is that the glassfish can't access to the webservers</h1>
<h2>Hello World!</h2>
</body>
</html>
This is when I run the application for the first time
This is when I add the webservice name to the url
This is the Glassfish5 GUI showing it doesn't detect the components of the new webservices
【问题讨论】:
标签: glassfish http-status-code-404 jax-ws