java - Heroku Webapp CRASHING when process type is configured in pom.xml -


i creating web service , using embedded tomcat in application. this, i've implemented main class(main.java) tomcat server instance created.

now deploying application on heroku, using maven plugin. in configuration tag i've given process type as:

<processtypes>      <web>java $java_opts -cp target/classes:target/dependency/* main</web> </processtypes> 

when deployed, app crashed saying main class not found, i've kept main.java in root directory.do need make changes in command?

above eclipse directory structure. eclpse directory structure

it looks main.java not in maven src directory. doubt it's being compiled maven (but eclipse compile it).

try moving main.java file src/main/java directory.


Comments

Popular posts from this blog

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

Using django-mptt to get only the categories that have items -