在glassfish中部署axis2服务时出错



我一直在尝试使用以下方法部署axis2服务:

  • Netbeans 6.9.1
  • axis2.war(1.4.1版),我也尝试过(1.5.5版)
  • 玻璃鱼3.1

我创建了一个Java类库项目,在这个项目中我创建了"来自WSDL的Axis2服务"。所有操作似乎都是正确的(构建时没有错误),但当我试图将服务部署到glassfish服务器上时,我遇到了一个错误,表明打开axis2.war文件时出现了问题(请参阅下面的控制台日志)。

我遵循了以下教程走到了这一步:

http://netbeans.org/kb/69/websvc/gs-axis.html#axis_options_glassfishhttp://netbeans.dzone.com/news/axis2-web-service-support-netb

我很感激的任何帮助

诚挚的问候,

Justin

INFO: [AutoDeploy] Selecting file C:Program Filesglassfish-3.1glassfishdomainsdomain1autodeployaxis2.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 Filesglassfish-3.1glassfishdomainsdomain1autodeployaxis2.war.
INFO: [AutoDeploy] Selecting file C:Program Filesglassfish-3.1glassfishdomainsdomain1autodeployzip1296260213.tmp for autodeployment.
WARNING: [AutoDeploy] Autodeploy failed : C:Program Filesglassfish-3.1glassfishdomainsdomain1autodeployzip1296260213.tmp.

从堆栈:

索引16处的路径中存在非法字符:文件:/C:/程序文件/glassfish-3.1/glassfish/domains/domain1/applications/axis2/WEB-INF/lib/activation-1.1.jar

路径名中的空格是问题所在。你能在路径中没有空格的情况下切换到另一个文件夹吗?

相关内容

  • 没有找到相关文章

最新更新