Re: [jetty-user] Re: I Can´t start jetty from comma nd line, it want´s a Main-Class manifest attribute

Joakim Erdfelt <[email protected]> Wed, 1 Jan 2014 13:21:20 -0700
Newsgroups gmane.comp.java.jetty.support
Message-ID <CAG4zZZBTA13cpLU6Zj0XOYwr6r7DLHjor_JmExpp8F1sU9SkKg@mail.gmail.com>
--047d7b62484e8548cf04eeee6bf8
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Confirmed ...

$ curl -O
http://central.maven.org/maven2/org/mortbay/jetty/jetty-runner/8.1.12.v2013=
0726/jetty-runner-8.1.12.v20130726.jar
  % Total    % Received % Xferd  Average Speed   Time    Time     Time
 Current
                                 Dload  Upload   Total   Spent    Left
 Speed
100 5106k  100 5106k    0     0  1961k      0  0:00:02  0:00:02 --:--:--
2028k

$ sha1sum jetty-runner-8.1.12.v20130726.jar
f0824f38c4b6416b3c6da2eedd5f6fac09c3d4dd  jetty-runner-8.1.12.v20130726.jar

$ jar -tvf jetty-runner-8.1.12.v20130726.jar | grep -i manifest
   237 Fri Jul 26 14:57:38 MST 2013 META-INF/MANIFEST.MF
  2891 Fri Sep 09 14:33:52 MST 2011
org/eclipse/jdt/internal/compiler/util/ManifestAnalyzer.class

$ jar -xvf jetty-runner-8.1.12.v20130726.jar META-INF/MANIFEST.MF
 inflated: META-INF/MANIFEST.MF

$ cat META-INF/MANIFEST.MF
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: jesse
Build-Jdk: 1.7.0_25
Implementation-Vendor: MortBay - Jetty
Implementation-Version: 8.1.12.v20130726
url: http://eclipse.org/jetty

Not present.


--
Joakim Erdfelt <[email protected]>
webtide.com <http://www.webtide.com/> - intalio.com/jetty
Expert advice, services and support from from the Jetty & CometD experts
eclipse.org/jetty - cometd.org


On Wed, Jan 1, 2014 at 9:34 AM, ambartsumian <[email protected]> wrote=
:

> Solved.
>
> The problem was that in the version 8.1.12.v20130726, the jar doesn=B4t h=
as a
> main-class attribute in the manifest (i don=B4t know why, and it=B4s very
> confusing). I used the 8.1.14.v20131031 version and it works from command
> line, and in a remote way, as expected.
>
> Thanxs and happy new year!
>
>
>
> --
> View this message in context:
> http://jetty.4.x6.nabble.com/I-Can-t-start-jetty-from-command-line-it-wan=
t-s-a-Main-Class-manifest-attribute-tp4961837p4961838.html
> Sent from the Jetty Support mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>
>

--047d7b62484e8548cf04eeee6bf8
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Confirmed ...<div><br></div><div><div>$ curl -O <a href=3D=
"http://central.maven.org/maven2/org/mortbay/jetty/jetty-runner/8.1.12.v201=
30726/jetty-runner-8.1.12.v20130726.jar">http://central.maven.org/maven2/or=
g/mortbay/jetty/jetty-runner/8.1.12.v20130726/jetty-runner-8.1.12.v20130726=
.jar</a></div>
<div>=A0 % Total =A0 =A0% Received % Xferd =A0Average Speed =A0 Time =A0 =
=A0Time =A0 =A0 Time =A0Current</div><div>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0Dload =A0Upload =A0 Total =A0 Spent =A0 =
=A0Left =A0Speed</div><div>100 5106k =A0100 5106k =A0 =A00 =A0 =A0 0 =A0196=
1k =A0 =A0 =A00 =A00:00:02 =A00:00:02 --:--:-- 2028k</div>
<div><br></div><div>$ sha1sum jetty-runner-8.1.12.v20130726.jar=A0</div><di=
v>f0824f38c4b6416b3c6da2eedd5f6fac09c3d4dd =A0jetty-runner-8.1.12.v20130726=
.jar</div><div><br></div><div>$ jar -tvf jetty-runner-8.1.12.v20130726.jar =
| grep -i manifest</div>
<div>=A0 =A0237 Fri Jul 26 14:57:38 MST 2013 META-INF/MANIFEST.MF</div><div=
>=A0 2891 Fri Sep 09 14:33:52 MST 2011 org/eclipse/jdt/internal/compiler/ut=
il/ManifestAnalyzer.class</div></div><div><br></div><div><div>$ jar -xvf je=
tty-runner-8.1.12.v20130726.jar META-INF/MANIFEST.MF</div>
<div>=A0inflated: META-INF/MANIFEST.MF</div></div><div><br></div><div>$ cat=
 META-INF/MANIFEST.MF=A0</div><div>Manifest-Version: 1.0</div><div>Archiver=
-Version: Plexus Archiver</div><div>Created-By: Apache Maven</div><div>Buil=
t-By: jesse</div>
<div>Build-Jdk: 1.7.0_25</div><div>Implementation-Vendor: MortBay - Jetty</=
div><div>Implementation-Version: 8.1.12.v20130726</div><div>url: <a href=3D=
"http://eclipse.org/jetty">http://eclipse.org/jetty</a></div><div><br></div=
>
<div>Not present.</div><div><br></div></div><div class=3D"gmail_extra"><br =
clear=3D"all"><div><div dir=3D"ltr"><div>--</div><div>Joakim Erdfelt &lt;<a=
 href=3D"mailto:[email protected]" target=3D"_blank">[email protected]</a=
>&gt;</div>
<div><a href=3D"http://www.webtide.com/" target=3D"_blank">webtide.com</a>=
=A0- <a href=3D"http://intalio.com/jetty" target=3D"_blank">intalio.com/jet=
ty</a></div><div><span>Expert advice, services and support from=A0</span><s=
pan>from the Jetty &amp; CometD experts</span></div>
<div><a href=3D"http://eclipse.org/jetty/" target=3D"_blank">eclipse.org/je=
tty</a>=A0-=A0<a href=3D"http://cometd.org/" target=3D"_blank">cometd.org</=
a></div></div></div>
<br><br><div class=3D"gmail_quote">On Wed, Jan 1, 2014 at 9:34 AM, ambartsu=
mian <span dir=3D"ltr">&lt;<a href=3D"mailto:[email protected]" target=
=3D"_blank">[email protected]</a>&gt;</span> wrote:<br><blockquote cla=
ss=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid;pa=
dding-left:1ex">
Solved.<br>
<br>
The problem was that in the version 8.1.12.v20130726, the jar doesn=B4t has=
 a<br>
main-class attribute in the manifest (i don=B4t know why, and it=B4s very<b=
r>
confusing). I used the 8.1.14.v20131031 version and it works from command<b=
r>
line, and in a remote way, as expected.<br>
<br>
Thanxs and happy new year!<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href=3D"http://jetty.4.x6.nabble.com/I-Can=
-t-start-jetty-from-command-line-it-want-s-a-Main-Class-manifest-attribute-=
tp4961837p4961838.html" target=3D"_blank">http://jetty.4.x6.nabble.com/I-Ca=
n-t-start-jetty-from-command-line-it-want-s-a-Main-Class-manifest-attribute=
-tp4961837p4961838.html</a><br>

<div class=3D"HOEnZb"><div class=3D"h5">Sent from the Jetty Support mailing=
 list archive at Nabble.com.<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe from this list, please visit:<br>
<br>
=A0 =A0 <a href=3D"http://xircles.codehaus.org/manage_email" target=3D"_bla=
nk">http://xircles.codehaus.org/manage_email</a><br>
<br>
<br>
</div></div></blockquote></div><br></div>

--047d7b62484e8548cf04eeee6bf8--