Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/xcode/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Wso2 使用ESB4.9.0打包的AXIS2Server在4.8.0正常工作时无法启动_Wso2_Wso2esb_Axis2 - Fatal编程技术网

Wso2 使用ESB4.9.0打包的AXIS2Server在4.8.0正常工作时无法启动

Wso2 使用ESB4.9.0打包的AXIS2Server在4.8.0正常工作时无法启动,wso2,wso2esb,axis2,Wso2,Wso2esb,Axis2,装有ESB4.9.0的AXIS2Server在4.8.0正常工作时无法启动。有什么帮助吗 您好,我正在Win7 OS 64 it上运行ESB 4.9.0。 假设我的esb在以下位置可用 D:\wso2esb\samples\Axis2服务器 按照运行示例的说明,我能够使用ant成功构建示例应用程序,但axis2服务器根本无法启动。当我执行axis2server.bat时,它会在CMD上打印以下内容。我错过什么了吗 =========================================

装有ESB4.9.0的AXIS2Server在4.8.0正常工作时无法启动。有什么帮助吗

您好,我正在Win7 OS 64 it上运行ESB 4.9.0。 假设我的esb在以下位置可用 D:\wso2esb\samples\Axis2服务器 按照运行示例的说明,我能够使用ant成功构建示例应用程序,但axis2服务器根本无法启动。当我执行axis2server.bat时,它会在CMD上打印以下内容。我错过什么了吗

=========================================================

Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\kashif.kazi>d:

D:\>cd wso2esb\samples\axis2Server\

D:\wso2esb\samples\axis2Server>axis2server.bat
"Starting Sample Axis2 Server ..."
Using AXIS2_HOME:        D:\wso2esb\samples\AXIS2S~1\
Using JAVA_HOME:       C:\Program Files\Java\jdk1.7.0_65
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
    -hotspot      is a synonym for the "server" VM  [deprecated]
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument

    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for m
ore details.
D:\wso2esb\samples\axis2Server>

====================================================

您可以使用旧WSO2 ESB 4.8.0中的.bat或.sh,也可以修复此问题:
Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.

C:\Users\kashif.kazi>d:

D:\>cd wso2esb\samples\axis2Server\

D:\wso2esb\samples\axis2Server>axis2server.bat
"Starting Sample Axis2 Server ..."
Using AXIS2_HOME:        D:\wso2esb\samples\AXIS2S~1\
Using JAVA_HOME:       C:\Program Files\Java\jdk1.7.0_65
Usage: java [-options] class [args...]
           (to execute a class)
   or  java [-options] -jar jarfile [args...]
           (to execute a jar file)
where options include:
    -d32          use a 32-bit data model if available
    -d64          use a 64-bit data model if available
    -server       to select the "server" VM
    -hotspot      is a synonym for the "server" VM  [deprecated]
                  The default VM is server.

    -cp <class search path of directories and zip/jar files>
    -classpath <class search path of directories and zip/jar files>
                  A ; separated list of directories, JAR archives,
                  and ZIP archives to search for class files.
    -D<name>=<value>
                  set a system property
    -verbose:[class|gc|jni]
                  enable verbose output
    -version      print product version and exit
    -version:<value>
                  require the specified version to run
    -showversion  print product version and continue
    -jre-restrict-search | -no-jre-restrict-search
                  include/exclude user private JREs in the version search
    -? -help      print this help message
    -X            print help on non-standard options
    -ea[:<packagename>...|:<classname>]
    -enableassertions[:<packagename>...|:<classname>]
                  enable assertions with specified granularity
    -da[:<packagename>...|:<classname>]
    -disableassertions[:<packagename>...|:<classname>]
                  disable assertions with specified granularity
    -esa | -enablesystemassertions
                  enable system assertions
    -dsa | -disablesystemassertions
                  disable system assertions
    -agentlib:<libname>[=<options>]
                  load native agent library <libname>, e.g. -agentlib:hprof
                  see also, -agentlib:jdwp=help and -agentlib:hprof=help
    -agentpath:<pathname>[=<options>]
                  load native agent library by full pathname
    -javaagent:<jarpath>[=<options>]
                  load Java programming language agent, see java.lang.instrument

    -splash:<imagepath>
                  show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for m
ore details.
D:\wso2esb\samples\axis2Server>
只需使用文本编辑器打开.bat或.sh,并找到带有此stringfor windows的行,以便:

-Djava.io.tmpdir="%AXIS2_HOME%..\..\tmp\" 

尝试删除\after tmp并再次运行服务器,仅此而已。

更正axis2server.bat脚本,如下所示:

在第126行进行以下修改:

删除java.io.tmpdir声明末尾tmp之后的尾随“\”:即将-Djava.io.tmpdir=%AXIS2_HOME%..\\\\\\\\\%\u SERVERNAME%更改为-Djava.io.tmpdir=%AXIS2_HOME%..\\\\\\tmp%\u SERVERNAME%

在“repository”之前的conf声明中添加缺少的“\”:即将-conf%AXIS2\u HOME%repository\conf\AXIS2.xml更改为-conf%AXIS2\u HOME%\repository\conf\AXIS2.xml


保存并重新运行axis2server.bat脚本。

太好了!!请把我的答案设为正确答案-我也有类似的问题,上述解决方案对我也很有效+1.