Web services GlassFish v3.0.1忽略sun-web.xml

Web services GlassFish v3.0.1忽略sun-web.xml,web-services,web-applications,glassfish,war,Web Services,Web Applications,Glassfish,War,我有一个WAR(extendedname1.01.WAR),我已经建立了一个sun-web.xml,如下所示: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application Server 7.0 Servlet 2.3//EN" "http://www.sun.com/software

我有一个WAR(extendedname1.01.WAR),我已经建立了一个sun-web.xml,如下所示:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE sun-web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Sun ONE Application         
Server 7.0 Servlet 2.3//EN" "http://www.sun.com/software/sunone/appserver/dtds/sun- web-app_2_3-0.dtd">
<sun-web-app>
   <context-root>/app</context-root>
 </sun-web-app>

/应用程序
部署war时,它会忽略sun-web.xml中的上下文,并将上下文根保留为/extendedname1.01

sun-web.xml位于my war的web-INF/文件夹中

有人能解释一下吗


非常感谢

管理GUI工具出现问题。 您应该通过命令行
asadmin
工具部署应用程序: 例如:

./asadmin deploy extendedname1.01

管理GUI工具存在问题。 您应该通过命令行
asadmin
工具部署应用程序: 例如:

./asadmin deploy extendedname1.01