2015-09-02 43 views
0

我有我的GWT-RPC项目,对服务器使用贝宝的SDK商人(用于快速结账)使用下面的类路径:尝试部署在Tomcat 7战从GWT-RPC项目采取

<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 

我从包含猪病战争产生的作战

MovieUniverse MovieUniverse.html WEB-INF 

与终端命令:

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

我从Tomcat的管理器应用部署。 部署发生,我可以在我的Tomcat应用程序列表中看到它。 我去的页面

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

我收到镀铬的控制台上错误的:

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

的页面没有加载,我可以做什么?我认为这是在WEB-INF/lib中插入jar的问题,但我无法解决它。

回答

0

对于未来:我到它,使用命令行:从战争路径内部

sudo jar -cvf MovieUniverse.war *