在 glassfish 中部署 axis2 服务时出错
我一直在尝试使用以下内容部署 axis2 服务:
- Netbeans 6.9.1
- axis2.war (版本 1.4.1) 我也尝试过(版本 1.5.5)
- glassfish 3.1
我创建了一个 Java 类库项目并在里面在这个项目中,我创建了一个“来自 WSDL 的 Axis2 服务”。一切似乎都工作正常(构建没有错误),但是当我尝试将服务部署到 glassfish 服务器上时,我收到一个错误,表明打开 axis2.war 文件时出现问题(请参阅下面的控制台日志)。
我按照以下教程走到了这一步:
http://netbeans.org /kb/69/websvc/gs-axis.html#axis_options_glassfish http://netbeans.dzone.com/news/axis2-web-service-support-netb
我将不胜感激任何帮助
亲切的问候,
贾斯汀
INFO: [AutoDeploy] Selecting file C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\axis2.war for autodeployment.
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/axis2/WEB-INF/lib/activation-1.1.jar
java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/axis2/WEB-INF/lib/activation-1.1.jar
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577)
at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:463)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:213)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
INFO: WEB0671: Loading application [axis2] at [/axis2]
INFO: axis2 was successfully deployed in 72,281 milliseconds.
INFO: [AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\axis2.war.
INFO: [AutoDeploy] Selecting file C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\zip1296260213.tmp for autodeployment.
WARNING: [AutoDeploy] Autodeploy failed : C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\zip1296260213.tmp.
I've been trying to deploy an axis2 service using the following:
- Netbeans 6.9.1
- axis2.war (version 1.4.1) and I've also tried (version 1.5.5)
- glassfish 3.1
I create a Java Class Library project and inside this project I create an "Axis2 Service from WSDL". All appears to work correct (Builds without error) but when I try to deploy the service onto the glassfish server I get an error which indicates that there was a problem opening the axis2.war file (Please see below for a console log).
I followed the following tutorials to get this far:
http://netbeans.org/kb/69/websvc/gs-axis.html#axis_options_glassfish
http://netbeans.dzone.com/news/axis2-web-service-support-netb
I'd appreciate any help
Kind Regards,
Justin
INFO: [AutoDeploy] Selecting file C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\axis2.war for autodeployment.
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
SEVERE: log4j:ERROR LogMananger.repositorySelector was null likely due to error in class reloading, using NOPLoggerRepository.
WARNING: DPL8004: file open failure; file = file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: error in opening zip file -- invalid zip file: file:/C:/Program%20Files/glassfish-3.1/glassfish/domains/domain1/autodeploy/axis2.war
WARNING: Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/axis2/WEB-INF/lib/activation-1.1.jar
java.net.URISyntaxException: Illegal character in path at index 16: file:/C:/Program Files/glassfish-3.1/glassfish/domains/domain1/applications/axis2/WEB-INF/lib/activation-1.1.jar
at java.net.URI$Parser.fail(URI.java:2809)
at java.net.URI$Parser.checkChars(URI.java:2982)
at java.net.URI$Parser.parseHierarchical(URI.java:3066)
at java.net.URI$Parser.parse(URI.java:3014)
at java.net.URI.<init>(URI.java:578)
at java.net.URL.toURI(URL.java:918)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getURIs(SnifferManagerImpl.java:268)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getApplicableSniffers(SnifferManagerImpl.java:202)
at com.sun.enterprise.v3.server.SnifferManagerImpl.getSniffers(SnifferManagerImpl.java:150)
at com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:604)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:368)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:240)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:360)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:370)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1067)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$1200(CommandRunnerImpl.java:96)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1247)
at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:145)
at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:577)
at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:463)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:395)
at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:380)
at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:213)
at java.util.TimerThread.mainLoop(Timer.java:512)
at java.util.TimerThread.run(Timer.java:462)
INFO: WEB0671: Loading application [axis2] at [/axis2]
INFO: axis2 was successfully deployed in 72,281 milliseconds.
INFO: [AutoDeploy] Successfully autodeployed : C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\axis2.war.
INFO: [AutoDeploy] Selecting file C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\zip1296260213.tmp for autodeployment.
WARNING: [AutoDeploy] Autodeploy failed : C:\Program Files\glassfish-3.1\glassfish\domains\domain1\autodeploy\zip1296260213.tmp.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从堆栈跟踪:
路径名中的空格是问题所在。您可以切换到路径中没有空格的其他文件夹吗?
From the stacktrace:
The space in the path name is the problem. Can you switch to a different folder without spaces in path?