3
我想在GlassFish上將java類部署爲web服務。編譯java類到glassfish自動部署的「文件打開失敗」
javac -d C:\glassfish3\glassfish\domains\mydomain\autodeploy grWrapper/HelloWorld.java
沒有錯誤編譯過程中,但我已經在自動部署文件夾server_deployFailed文件,並在server.log中
[#|2011-11-30T00:21:05.616+0400|INFO|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|[AutoDeploy] Selecting file C:\glassfish3\glassfish\domains\mydomain\autodeploy\HelloWorld.class for autodeployment.|#]
[#|2011-11-30T00:21:05.622+0400|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|DPL8004: file open failure; file = file:/C:/glassfish3/glassfish/domains/mydomain/autodeploy/HelloWorld.class|#]
[#|2011-11-30T00:21:05.623+0400|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|error in opening zip file -- invalid zip file: file:/C:/glassfish3/glassfish/domains/mydomain/autodeploy/HelloWorld.class|#]
[#|2011-11-30T00:21:05.624+0400|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|DPL8004: file open failure; file = file:/C:/glassfish3/glassfish/domains/mydomain/autodeploy/HelloWorld.class|#]
[#|2011-11-30T00:21:05.624+0400|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|error in opening zip file -- invalid zip file: file:/C:/glassfish3/glassfish/domains/mydomain/autodeploy/HelloWorld.class|#]
[#|2011-11-30T00:21:05.625+0400|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=41;_ThreadName=Thread-2;|The log message is null.|#]
[#|2011-11-30T00:21:05.626+0400|WARNING|glassfish3.1.1|javax.enterprise.system.tools.deployment.org.glassfish.deployment.common|_ThreadID=41;_ThreadName=Thread-2;|[AutoDeploy] Autodeploy failed : C:\glassfish3\glassfish\domains\mydomain\autodeploy\HelloWorld.class.|#]
任何線索什麼可能是錯的「文件打開失敗」?