I Can´t start jetty from command line, it want´s a Main-Class manifest attribute

Viewed 3696

i´m new around here, so i will try to ask in the right way ;)

I´m doing an app on facebook, and i´m using jetty, here is the guide that i´m using : Heroku jetty deploy guide. 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:

<plugins>                       
<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 neither from command line nor 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? I believe that i´m doing something really stupid because i can´t find this error anywhere, but i don´t know what :D

3 Answers
Related