In this guide, the way to start jetty it´s this:
java -jar jetty-runner.jar application.war
and this is exactly the same way recomended for the jetty howto guide:
java -jar jetty-runner.jar my.war
So i believe that until here, i´m doing everything fine. The war it´s an application that i´m developing, and the jetty runner jar i obtained through maven, here the tags of my pom.xml, extracted from the heroku guide:
<plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-dependency-plugin</artifactId> <version>2.3</version> <executions> <execution> <phase>package</phase> <goals> <goal>copy</goal> </goals> <configuration> <artifactItems> <artifactItem> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-runner</artifactId> <version>8.1.12.v20130726</version> <destFileName>jetty-runner.jar</destFileName> </artifactItem> </artifactItems> </configuration> </execution> </executions> </plugin> </plugins>
So, the reason that i´m asking here, it´s that i can´t start jetty from command line neither in a remote way (through a deploy on heroku). The error i get, when i execute (with master admin privileges in windows 7) java -jar jetty-runner.jar my.war is the following:
Failed to load Main-Class manifest attribute from jetty-runner.jar
And i don´t understand this, i´m using the jar downloaded through maven, it´s supose to work in the right way, right?
I open the manifest of the jetty-runer.jar and it doesnt have a Main-class attribute, so? what should i do?
Re: I Can´t start jetty from command line, it want´s a Main-Class manifest attribute
The problem was that in the version 8.1.12.v20130726, the jar doesn´t has a main-class attribute in the manifest (i don´t know why, and it´s very confusing). I used the 8.1.14.v20131031 version and it works from command line, and in a remote way, as expected.
The problem was that in the version 8.1.12.v20130726, the jar doesn´t has a
main-class attribute in the manifest (i don´t know why, and it´s very
confusing). I used the 8.1.14.v20131031 version and it works from command
line, and in a remote way, as expected.