如何在NetBeans IDE 7.1.1中解决GlassFish Server 3.1.2启动失败的错误?

时间:2013-11-08 16:19:00

标签: java xml hibernate glassfish-3 netbeans-7

将端口更改为9999 domain.xml文件并在Netbeans中再次添加服务器,但错误仍然存​​在

1 个答案:

答案 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服务器中删除并再次添加它并为我准备好了