Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/ant/2.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
尝试从ant运行jetty时出错:“未能创建任务或键入jetty.run”_Ant_Jetty_Jetty 8 - Fatal编程技术网

尝试从ant运行jetty时出错:“未能创建任务或键入jetty.run”

尝试从ant运行jetty时出错:“未能创建任务或键入jetty.run”,ant,jetty,jetty-8,Ant,Jetty,Jetty 8,我收到以下错误: Buildfile: ...\jetty.xml jetty.run: BUILD FAILED ...\jetty.xml:29: Problem: failed to create task or type jetty.run Cause: The name is undefined. Action: Check the spelling. Action: Check that any custom tasks/types have been declared. Acti

我收到以下错误:

Buildfile: ...\jetty.xml
jetty.run:

BUILD FAILED
...\jetty.xml:29: Problem: failed to create task or type jetty.run
Cause: The name is undefined.
Action: Check the spelling.
Action: Check that any custom tasks/types have been declared.
Action: Check that any <presetdef>/<macrodef> declarations have taken place.

Total time: 617 milliseconds
上述目标jetty.run在语法上与文档see/search for stopping相同。为什么jetty.run不工作,jetty run在哪里

码头运行输出:

虽然使用jetty.run和jetty.stop,但这并不适用。很明显,这与vs有关,但我目前无法解释为什么,也无法获得和工作

类路径:

[echo] Classpath is 
...\com.sun.el-2.2.0.v201108011116.jar
...\javax.activation-1.1.0.v201105071233.jar
...\javax.annotation-1.1.0.v201108011116.jar
...\javax.el-2.2.0.v201108011116.jar
...\javax.mail.glassfish-1.4.1.v201005082020.jar
...\javax.servlet.jsp-2.2.0.v201112011158.jar
...\javax.servlet.jsp.jstl-1.2.0.v201105211821.jar
...\javax.transaction-1.1.1.v201105210645.jar
...\jetty-ajp-8.1.16.v20140903.jar
...\jetty-annotations-8.1.16.v20140903.jar
...\jetty-ant-8.1.16.v20140903.jar
...\jetty-client-8.1.16.v20140903.jar
...\jetty-continuation-8.1.16.v20140903.jar
...\jetty-deploy-8.1.16.v20140903.jar
...\jetty-http-8.1.16.v20140903.jar
...\jetty-io-8.1.16.v20140903.jar
...\jetty-jmx-8.1.16.v20140903.jar
...\jetty-jndi-8.1.16.v20140903.jar
...\jetty-monitor-8.1.16.v20140903.jar
...\jetty-overlay-deployer-8.1.16.v20140903.jar
...\jetty-plus-8.1.16.v20140903.jar
...\jetty-policy-8.1.16.v20140903.jar
...\jetty-rewrite-8.1.16.v20140903.jar
...\jetty-security-8.1.16.v20140903.jar
...\jetty-server-8.1.16.v20140903.jar
...\jetty-servlet-8.1.16.v20140903.jar
...\jetty-servlets-8.1.16.v20140903.jar
...\jetty-util-8.1.16.v20140903.jar
...\jetty-webapp-8.1.16.v20140903.jar
...\jetty-websocket-8.1.16.v20140903.jar
...\jetty-xml-8.1.16.v20140903.jar
...\org.apache.jasper.glassfish-2.2.2.v201112011158.jar
...\org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar
...\org.eclipse.jdt.core-3.7.1.jar
...\org.objectweb.asm-3.1.0.v200803061910.jar
...\servlet-api-3.0.jar
...\spdy-core-8.1.16.v20140903.jar
...\spdy-jetty-8.1.16.v20140903.jar
...\spdy-jetty-http-8.1.16.v20140903.jar
在这种情况下,jetty.run不起作用,而jetty run不起作用的原因是任务
Buildfile: ...\jetty.xml
jetty-run:
    [jetty] Configuring Jetty for project: system-tests
    [jetty] 2015-04-22 17:16:46.603:INFO:oejs.Server:jetty-8.1.16.v20140903
    [jetty] 2015-04-22 17:16:46.728:WARN:oejsh.RequestLogHandler:!RequestLog
    [jetty] 2015-04-22 17:16:46.884:INFO:oejs.AbstractConnector:Started SelectChannelConnector@0.0.0.0:8080
[echo] Classpath is 
...\com.sun.el-2.2.0.v201108011116.jar
...\javax.activation-1.1.0.v201105071233.jar
...\javax.annotation-1.1.0.v201108011116.jar
...\javax.el-2.2.0.v201108011116.jar
...\javax.mail.glassfish-1.4.1.v201005082020.jar
...\javax.servlet.jsp-2.2.0.v201112011158.jar
...\javax.servlet.jsp.jstl-1.2.0.v201105211821.jar
...\javax.transaction-1.1.1.v201105210645.jar
...\jetty-ajp-8.1.16.v20140903.jar
...\jetty-annotations-8.1.16.v20140903.jar
...\jetty-ant-8.1.16.v20140903.jar
...\jetty-client-8.1.16.v20140903.jar
...\jetty-continuation-8.1.16.v20140903.jar
...\jetty-deploy-8.1.16.v20140903.jar
...\jetty-http-8.1.16.v20140903.jar
...\jetty-io-8.1.16.v20140903.jar
...\jetty-jmx-8.1.16.v20140903.jar
...\jetty-jndi-8.1.16.v20140903.jar
...\jetty-monitor-8.1.16.v20140903.jar
...\jetty-overlay-deployer-8.1.16.v20140903.jar
...\jetty-plus-8.1.16.v20140903.jar
...\jetty-policy-8.1.16.v20140903.jar
...\jetty-rewrite-8.1.16.v20140903.jar
...\jetty-security-8.1.16.v20140903.jar
...\jetty-server-8.1.16.v20140903.jar
...\jetty-servlet-8.1.16.v20140903.jar
...\jetty-servlets-8.1.16.v20140903.jar
...\jetty-util-8.1.16.v20140903.jar
...\jetty-webapp-8.1.16.v20140903.jar
...\jetty-websocket-8.1.16.v20140903.jar
...\jetty-xml-8.1.16.v20140903.jar
...\org.apache.jasper.glassfish-2.2.2.v201112011158.jar
...\org.apache.taglibs.standard.glassfish-1.2.0.v201112081803.jar
...\org.eclipse.jdt.core-3.7.1.jar
...\org.objectweb.asm-3.1.0.v200803061910.jar
...\servlet-api-3.0.jar
...\spdy-core-8.1.16.v20140903.jar
...\spdy-jetty-8.1.16.v20140903.jar
...\spdy-jetty-http-8.1.16.v20140903.jar
BUILD FAILED
...\build.xml:9: typedef class org.eclipse.jetty.server.ServerConnector cannot be found