我会问Activiti论坛,但是这三个可怜的不幸者都无济于事:
所以,我问你,StackOverflow ......你能帮忙吗? antfile看起来没有任何问题:
C:\activiti-5.9\setup>ant demo.start
Buildfile: C:\activiti-5.9\setup\build.xml
demo.install:
internal.cfg.create:
[copy] Copying 1 file to C:\activiti-5.9\setup\build\activiti-cfg
[zip] Building zip: C:\activiti-5.9\setup\build\activiti-cfg.jar
[echo] copying configuration to ../workspace/activiti-engine-examples/src/main/config
[unzip] Expanding: C:\activiti-5.9\setup\build\activiti-cfg.jar into C:\activiti-5.9\workspace\activiti-engine-examples\src\ma
in\config
internal.classpath.libs:
internal.taskdef.launch:
h2.start:
[echo] starting H2 database...
[launch] launching cmd 'C:\activiti-5.9\apps\h2\h2.start.bat ' in dir 'C:\activiti-5.9\apps\h2'
[launch] waiting for launch completion msg 'TCP server running on'...
[launch] TCP server running on tcp://192.168.168.62:9092 (others can connect)
[echo] H2 database started
tomcat.start:
[launch] launching cmd 'C:\activiti-5.9\apps\apache-tomcat-6.0.32\bin\startup.bat ' in dir 'C:\activiti-5.9\apps\apache-tomcat-
6.0.32\bin'
[launch] waiting for launch completion msg 'Using CLASSPATH:'...
[launch] Using CATALINA_BASE: "c:\tomcat"
[launch] Using CATALINA_HOME: "c:\tomcat"
[launch] Using CATALINA_TMPDIR: "c:\tomcat\temp"
[launch] Using JRE_HOME: "C:\Program Files\Java\jdk1.7.0_03\jre"
[launch] Using CLASSPATH: "c:\tomcat\bin\bootstrap.jar;c:\tomcat\bin\tomcat-juli.jar"
explorer.browser.open:
demo.start:
BUILD SUCCESSFUL
Total time: 5 seconds
Tomcat报道:
May 21, 2012 10:08:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
May 21, 2012 10:08:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-443"]
May 21, 2012 10:08:21 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
May 21, 2012 10:08:21 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 619 ms
May 21, 2012 10:08:21 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
May 21, 2012 10:08:21 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.20
May 21, 2012 10:08:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory docs
May 21, 2012 10:08:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory examples
May 21, 2012 10:08:21 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory host-manager
May 21, 2012 10:08:22 AM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory manager
May 21, 2012 10:08:22 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
May 21, 2012 10:08:22 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-443"]
May 21, 2012 10:08:22 AM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
May 21, 2012 10:08:22 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 562 ms
当我请求http://localhost:8080/activiti-explorer
时,没有任何内容添加到控制台,但我确实得到了:
HTTP/1.1 404 Not Found
Server: Apache-Coyote/1.1
Content-Length: 0
Date: Mon, 21 May 2012 15:09:09 GMT
有什么建议吗?
答案 0 :(得分:2)
这是我的决议:
CATALINA_ *变量指向我的tomcat版本,而不是Activiti附带的版本。
设置
set CATALINA_BASE="C:\activiti-5.9\apps\apache-tomcat-6.0.32"
set CATALINA_HOME=%CATALINA_BASE%
set CATALINA_TEMP="C:\activiti-5.9\apps\apache-tomcat-6.0.32\temp"
从那里工作得很好。
不确定这个是否适用于* nix系统,但值得一看。