GlassFish4 と NetBeans IDE 8.0.2 とWindows8.1

わかりやすいJavaEEウェブシステム入門

わかりやすいJavaEEウェブシステム入門

重大:   Exception while deploying the app [test01] : org.xml.sax.SAXParseExceptionpublicId: file:/C:/Users/太郎/GlassFish_Server/glassfish/lib/schemas/web-app_3_1.xsd; lineNumber: 281; columnNumber: 47; Deployment descriptor file WEB-INF/web.xml in archive [web].  src-resolve: 名前'javaee:web-commonType'を'group'コンポーネントに解決できません。
org.xml.sax.SAXParseExceptionpublicId: file:/C:/Users/太郎/GlassFish_Server/glassfish/lib/schemas/web-app_3_1.xsd; lineNumber: 281; columnNumber: 47; Deployment descriptor file WEB-INF/web.xml in archive [web].  src-resolve: 名前'javaee:web-commonType'を'group'コンポーネントに解決できません。
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:324)
	at com.sun.enterprise.deployment.io.DeploymentDescriptorFile.read(DeploymentDescriptorFile.java:245)
	at com.sun.enterprise.deployment.archivist.Archivist.readStandardDeploymentDescriptor(Archivist.java:665)

この問題に付き合って、読んでた本も1章でアウトになりそうだったが、

  • JavaBeansとGlassFish4をインストールしたディレクトリに「Program Files」みたいな空白が怪しい。
  • どうもC:/Users/太郎/GlassFish_Serverの「太郎」あたりが怪しい。

と思って、両方を避けて再インストールして解決できました。