尝试从GWT-RPC项目获取的Tomcat 7上的部署战争

问题描述 投票:0回答:1

我有我的GWT-RPC项目,它在服务器上使用paypal的SDK商家(对于Express Checkout)使用以下类路径:

<classpath>
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/TesiFinale/MovieUniverseFinal/src" />
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/TesiFinale/MovieUniverseFinal/war/WEB-INF/classes" />
            <pathelement location="/media/Dati/Uni(IIIanno)/Tesi/postgresql-9.4-1201.jdbc4.jar" />
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/paypal-core-1.4.3.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/gwt-user.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/gwt-dev.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/validation-api-1.0.0.GA-sources.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/validation-api-1.0.0.GA.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/gwt-codeserver.jar" />
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/merchant-sdk-java-2.13.117/merchantsdk/target/merchantsdk-2.13.117.jar" />
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/merchant-sdk-java-2.13.117/merchantsdk/target/merchantsdk-2.13.117-javadoc.jar" />
            <pathelement location="/home/anto0192/Documenti/TesiProvaFinale/merchant-sdk-java-2.13.117/merchantsdk/target/merchantsdk-2.13.117-sources.jar" />
            <pathelement location="/home/anto0192/Documenti/gwt-2.7.0/gwt-dev.jar" />
        </classpath>

在我的战争/ WEB-INF / lib上我添加了

gwt-codeserver.jar  gwt-servlet.jar           paypal-core-1.4.3.jar
gwt-dev.jar         merchantsdk-2.13.117.jar  postgresql-9.4-1201.jdbc4.jar

我从包含var的目录生成war

MovieUniverse  MovieUniverse.html  WEB-INF

使用terminal命令:

sudo jar -cvf MovieUniverse.war MovieUniverse.html WEB-INF;

我从Tomcat的经理应用程序部署。部署发生了,我可以在我的Tomcat应用程序列表中看到它。我进入页面

http://localhost:8080/MovieUniverse/MovieUniverse.html

我在Chrome控制台上收到此错误:

 http://localhost:8080/MovieUniverse/MovieUniverse/MovieUniverse.nocache.js 404 (Not Found)

页面未加载,我该怎么办?我认为在WEB-INF / lib中插入jar有问题,但我无法解决它。

tomcat gwt war gwt-rpc
1个回答
0
投票

对于未来:我通过命令行到达它:

sudo jar -cvf MovieUniverse.war *

从战争路径内部

© www.soinside.com 2019 - 2024. All rights reserved.