小编DJ-*_*DJ-的帖子

用于 angular 7 的谷歌云应用程序 yaml

我的项目目录看起来像

**demo**
 -->
   **ui**-->
     **dist**-->
       **ui**-->
         *.html
         *.js files


In my app.yaml    

runtime: python27
api_version: 1
threadsafe: true`enter code here`
handlers:
- url: /
  static_files: dist/\1/index.html
  upload: dist/(.*)/(.*)
Run Code Online (Sandbox Code Playgroud)

每当我部署我的应用程序并点击 URL 时,我都会看到 404 无法加载资源:服务器以 404 () 状态响应除 index.html 之外的所有文件。

任何有关如何进一步进行的帮助将不胜感激。

阅读堆栈溢出相关问题但没有运气

google-app-engine google-cloud-platform angular

4
推荐指数
1
解决办法
2063
查看次数

严重:Servlet/JAXRS-HelloWorld抛出了load()异常java.lang.ClassNotFoundException:com.sun.jersey.spi.container.servlet.ServletContainer

我阅读了很多与此问题相关的帖子,但无法获得任何帮助.

错误感谢是否有人可以帮助我.

在此输入图像描述

这就是我的POM和网络的样子.我已经尝试将所需的war文件复制到C:\ appache tomcat 7但没有运气.即使在日食中部署它也会给我带来同样的错误.

WEb 在此输入图像描述

pom.xml中: -

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>com.tutorialacademy.rest</groupId>
  <artifactId>helloworld</artifactId>
  <packaging>war</packaging>
  <version>0.0.1-SNAPSHOT</version>
  <name>helloworld Maven Webapp</name>
  <url>http://maven.apache.org</url>
    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <repositories>  
 <repository>  
  <id>maven2-repository.java.net</id>  
  <name>Java.net Repository for Maven</name>  
  <url>http://download.java.net/maven/2/</url>  
  <layout>default</layout>  
 </repository>  
</repositories>  

    <dependencies>
        <dependency>
            <groupId>junit</groupId>
            <artifactId>junit</artifactId>
            <version>3.8.1</version>
            <scope>test</scope>
        </dependency>
        <dependency>
            <groupId>com.sun.jersey</groupId>
            <artifactId>jersey-server</artifactId>
            <version>1.19</version>
        </dependency>
     <dependency>
    <groupId>com.sun.jersey.contribs</groupId>
    <artifactId>jersey-apache-client</artifactId>
    <version>1.19</version>
</dependency>
    </dependencies>



    <build>
        <sourceDirectory>src/main/java</sourceDirectory>

        <plugins>

            <plugin>
                <artifactId>maven-war-plugin</artifactId>
                <version>2.4</version>
                <configuration>
                    <warSourceDirectory>WebContent</warSourceDirectory>
                    <failOnMissingWebXml>false</failOnMissingWebXml>
                </configuration>
            </plugin>

            <plugin>
               <groupId>org.apache.maven.plugins</groupId>
               <artifactId>maven-compiler-plugin</artifactId>
               <configuration>
                    <source>1.6</source>
                    <target>1.6</target>
               </configuration>
          </plugin>


        </plugins>

    </build>
</project>
Run Code Online (Sandbox Code Playgroud)

eclipse rest tomcat jersey restful-url

0
推荐指数
1
解决办法
9702
查看次数