将端口更改为9999 domain.xml文件并在Netbeans中再次添加服务器,但错误仍然存在
答案 0 :(得分:0)
如果更改端口后错误仍然存在,那么您应该做的就是消除 domain.xml 位于安装目录+ glassfish \ domains \ domain1 \ config 中然后删除不再存在的所有项目。如果此项目不存在则删除
<applications>
<Application context-root = "/ MyProject" location = "file :/ C :/ Users / Administrator / Documents / NetBeansProjects / MyProject / build / web /" name = "MyProject" directory-deployed = "true" object-type = "user">
<property name="preserveAppScopedResources" value="true"> </ property>
<property name="appLocation" value="file:/C:/Users/Administrador/Documents/NetBeansProjects/MyProject/build/web/"> </ property>
<property name="defaultAppName" value="web"> </ property>
<property name="keepSessions" value="true"> </ property>
<module name="MyProject">
<Engine sniffer="jpa"> </ engine>
<Engine sniffer="security"> </ engine>
<Engine sniffer="web"> </ engine>
</ Module>
</ Application>
然后从Netbeans Glassfish服务器中删除并再次添加它并为我准备好了