1

我会问 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

雄猫报告:

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

有什么建议么?

4

1 回答 1

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 系统,但值得一看。

于 2012-05-21T16:02:37.560 回答