[jetty-user] I Can´t start jetty from command line, i t want´s a Main-Class manifest attribute

ambartsumian <[email protected]> Tue, 31 Dec 2013 09:17:54 -0800 (PST)
Newsgroups gmane.comp.java.jetty.support
Message-ID <[email protected]>
Hi Guys, i=C2=B4m new around here, so i will try to ask in the right way ;)

I=C2=B4m doing an app on facebook, and i=C2=B4m using jetty, here is the gu=
ide that
i=C2=B4m using :  Heroku jetty deploy guide
<https://devcenter.heroku.com/articles/deploy-a-java-web-application-that-l=
aunches-with-jetty-runner#deploy-your-application-to-heroku> =20

In this guide, the way to start jetty it=C2=B4s this:
java -jar jetty-runner.jar application.war

and this is exactly the same way recomended for the  jetty howto guide
<http://wiki.eclipse.org/Jetty/Howto/Using_Jetty_Runner>  :
java -jar jetty-runner.jar my.war

So i believe that until here, i=C2=B4m doing everything fine. The war it=C2=
=B4s an
application that i=C2=B4m developing, and the jetty runner jar i obtained t=
hrough
maven, here the tags of my pom.xml, extracted from the heroku guide:
=09=09<plugins>=09=09=09
=09=09=09<plugin>
=09=09=09=09<groupId>org.apache.maven.plugins</groupId>
=09=09=09=09<artifactId>maven-dependency-plugin</artifactId>
=09=09=09=09<version>2.3</version>
=09=09=09=09<executions>
=09=09=09=09=09<execution>
=09=09=09=09=09=09<phase>package</phase>
=09=09=09=09=09=09<goals>
=09=09=09=09=09=09=09<goal>copy</goal>
=09=09=09=09=09=09</goals>
=09=09=09=09=09=09<configuration>
=09=09=09=09=09=09=09<artifactItems>
=09=09=09=09=09=09=09=09<artifactItem>
=09=09=09=09=09=09=09=09=09<groupId>org.mortbay.jetty</groupId>
=09=09=09=09=09=09=09=09=09<artifactId>jetty-runner</artifactId>
=09=09=09=09=09=09=09=09=09<version>8.1.12.v20130726</version>
=09=09=09=09=09=09=09=09=09<destFileName>jetty-runner.jar</destFileName>
=09=09=09=09=09=09=09=09</artifactItem>
=09=09=09=09=09=09=09</artifactItems>
=09=09=09=09=09=09</configuration>
=09=09=09=09=09</execution>
=09=09=09=09</executions>
=09=09=09</plugin>
=09=09</plugins>

So, the reason that i=C2=B4m asking here, it=C2=B4s that i can=C2=B4t start=
 jetty from
command line neither in a remote way (through a deploy on heroku). The erro=
r
i get, when i execute (with master admin privileges in windows 7) /java -ja=
r
jetty-runner.jar my.war/  is the following:
*Failed to load Main-Class manifest attribute from jetty-runner.jar*

And i don=C2=B4t understand this, i=C2=B4m using the jar downloaded through=
 maven,
it=C2=B4s 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?



--
View this message in context: http://jetty.4.x6.nabble.com/I-Can-t-start-je=
tty-from-command-line-it-want-s-a-Main-Class-manifest-attribute-tp4961837.h=
tml
Sent from the Jetty Support mailing list archive at Nabble.com.