Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/java/313.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/heroku/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
无法在heroku上部署javalite_Java_Heroku_Activejdbc_Javalite - Fatal编程技术网

无法在heroku上部署javalite

无法在heroku上部署javalite,java,heroku,activejdbc,javalite,Java,Heroku,Activejdbc,Javalite,我有我的文件: 连接详细信息: POM: heroku java控制台命令:运行这个命令显示找不到主类,但我已经正确声明了procfile,我不知道为什么它不工作 E:\WORKSPACE\NETBEANS_WORKSPACE\seeker_Java_Spark>heroku run java console Running java console on seeker-java-spark... up, run.4407 (Free) Error: Could not find or

我有我的文件:

连接详细信息:

POM:

heroku java控制台命令:运行这个命令显示找不到主类,但我已经正确声明了procfile,我不知道为什么它不工作

E:\WORKSPACE\NETBEANS_WORKSPACE\seeker_Java_Spark>heroku run java console
Running java console on seeker-java-spark... up, run.4407 (Free)
Error: Could not find or load main class console

Heroku正在尝试使用命令java$java_OPTS-Dserver.port=30122-jar target/*.jar运行您的应用程序

通过运行Git ls文件,检查您的Procfile是否已签入Git


我不知道heroku运行的java控制台应该是什么。这不是我见过的命令。

这里有一个社区捐赠的页面:看看它是否有用!您的应用程序是单机版还是动态版?@ipolevoystandalone@ipolevoy这个页面javalite.io/deploying_to_heroku没有意义。我正在使用独立应用程序。所有这些配置都不需要修改,该页面已过时,可能有错误。但是,您的问题与JavaLite无关。尝试在Herokukit ls文件上部署一个简单的Hello world应用程序,其中列出src/main/resources/procfile。procfile需要位于Git repo的根目录中。您是对的。默认情况下创建了一个带有$JAVA_OPTS的procfile。将procfile放在根路径解决了这个问题。多谢各位
Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://o3iyl77734btg.cbetxkdyhwsb.us-east-1.rds.amazonaws.com/lt9vgms3ueidoa", "nt2qniqiuhl67", "k2dijxt3xcf9o");
    <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>exec-maven-plugin</artifactId>
        <version>1.2.1</version>
        <configuration>
            <mainClass>com.soul.seeker.Application</mainClass>
            <arguments>
            </arguments>
        </configuration>
    </plugin>

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.6.0</version>
        <configuration>
            <source>1.8</source>
            <target>1.8</target>
            <encoding>UTF-8</encoding>
        </configuration>
    </plugin>

    <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-dependency-plugin</artifactId>
        <version>2.4</version>
        <executions>
            <execution>
                <id>copy-dependencies</id>
                <phase>package</phase>
                <goals>
                    <goal>copy-dependencies</goal>
                </goals>
            </execution>
        </executions>
    </plugin>

    <plugin>
        <groupId>org.javalite</groupId>
        <artifactId>activejdbc-instrumentation</artifactId>
        <version>${activejdbc.version}</version>
        <executions>
            <execution>
                <phase>process-classes</phase>
                <goals>
                    <goal>instrument</goal>
                </goals>
            </execution>
        </executions>
    </plugin>
</plugins>
2017-03-31T08:53:35.035665+00:00 app[api]: Starting process with command `java console` by user .k999@gmail.com
2017-03-31T08:59:37.504808+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-31T08:59:40.018376+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=8577 -jar target/*.jar`
2017-03-31T08:59:42.220679+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-03-31T08:59:42.224224+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-03-31T08:59:42.338167+00:00 app[web.1]: no main manifest attribute, in target/seeker_Java_Spark-1.0-SNAPSHOT.jar
2017-03-31T08:59:42.441817+00:00 heroku[web.1]: Process exited with status 1
2017-03-31T08:59:42.456928+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-31T09:14:41.000000+00:00 app[api]: Build started by user .k999@gmail.com
2017-03-31T09:14:59.771140+00:00 app[api]: Release v13 created by user .k999@gmail.com
2017-03-31T09:14:59.771140+00:00 app[api]: Deploy db9bb50 by user .k999@gmail.com
2017-03-31T09:14:41.000000+00:00 app[api]: Build succeeded
2017-03-31T09:15:00.343156+00:00 app[api]: Release v13 created by user .k999@gmail.com
2017-03-31T09:15:00.464317+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-31T09:15:03.852306+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=30122 -jar target/*.jar`
2017-03-31T09:15:06.100736+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-03-31T09:15:06.106289+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-03-31T09:15:06.253188+00:00 app[web.1]: no main manifest attribute, in target/seeker_Java_Spark-1.0-SNAPSHOT.jar
2017-03-31T09:15:06.338012+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-31T09:15:06.339425+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-31T09:15:06.329112+00:00 heroku[web.1]: Process exited with status 1
2017-03-31T09:15:09.463349+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=49453 -jar target/*.jar`
2017-03-31T09:15:12.032819+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-03-31T09:15:12.037084+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-03-31T09:15:12.129561+00:00 app[web.1]: no main manifest attribute, in target/seeker_Java_Spark-1.0-SNAPSHOT.jar
2017-03-31T09:15:12.210338+00:00 heroku[web.1]: Process exited with status 1
2017-03-31T09:15:12.220183+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-31T09:15:55.312322+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=POST path="//getRecent" host=seeker-java-spark.herokuapp.com request_id=7df2a77a-8a78-43a3-874b-8ecbf394653d fwd="54.224.180.207" dyno= connect= service= status=503 bytes= protocol=https
2017-03-31T09:16:01.138972+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="//data_on_page_load?limit=4&offset=0" host=seeker-java-spark.herokuapp.com request_id=b8ff2299-bd1d-435b-bf84-e358ca9d44f6 fwd="54.224.180.207" dyno= connect= service= status=503 bytes= protoc
l=https
2017-03-31T09:17:06.000000+00:00 app[api]: Build started by user .k999@gmail.com
2017-03-31T09:17:23.683130+00:00 app[api]: Deploy 4968a29 by user .k999@gmail.com
2017-03-31T09:17:23.683130+00:00 app[api]: Release v14 created by user .k999@gmail.com
2017-03-31T09:17:24.061692+00:00 app[api]: Release v14 created by user .k999@gmail.com
2017-03-31T09:17:06.000000+00:00 app[api]: Build succeeded
2017-03-31T09:17:24.717686+00:00 heroku[web.1]: State changed from crashed to starting
2017-03-31T09:17:27.559351+00:00 heroku[web.1]: Starting process with command `java $JAVA_OPTS -Dserver.port=38303 -jar target/*.jar`
2017-03-31T09:17:29.517107+00:00 app[web.1]: Setting JAVA_TOOL_OPTIONS defaults based on dyno size. Custom settings will override them.
2017-03-31T09:17:29.520526+00:00 app[web.1]: Picked up JAVA_TOOL_OPTIONS: -Xmx350m -Xss512k -Dfile.encoding=UTF-8
2017-03-31T09:17:29.605348+00:00 app[web.1]: no main manifest attribute, in target/seeker_Java_Spark-1.0-SNAPSHOT.jar
2017-03-31T09:17:29.727476+00:00 heroku[web.1]: State changed from starting to crashed
2017-03-31T09:17:29.720959+00:00 heroku[web.1]: Process exited with status 1
^CTerminate batch job (Y/N)? y
E:\WORKSPACE\NETBEANS_WORKSPACE\seeker_Java_Spark>heroku run java console
Running java console on seeker-java-spark... up, run.4407 (Free)
Error: Could not find or load main class console