Weird Startup Problem on .14 Snapshot

Hi,

I just pulled .14 Snapshot from master, built, and am running into an odd
problem:

$ bin/elasticsearch

Exception in thread "main" java.lang.NoClassDefFoundError:

org/elasticsearch/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.elasticsearch.bootstrap.Bootstrap.
Program will exit.

Has something changed in the build process? I used 'gradlew clean release'
to build.

...Thanks,
...Ken

Hey,

Works ok for me. Did you by any chance try and run the elasticsearch
script not out of the (extracted) distribution? Usually people get it when
they try and run it from the root bin/... .

-shay.banon

On Mon, Nov 22, 2010 at 7:04 PM, Kenneth Loafman kenneth@loafman.comwrote:

Hi,

I just pulled .14 Snapshot from master, built, and am running into an odd
problem:

$ bin/elasticsearch

Exception in thread "main" java.lang.NoClassDefFoundError:

org/elasticsearch/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.elasticsearch.bootstrap.Bootstrap.
Program will exit.

Has something changed in the build process? I used 'gradlew clean release'
to build.

...Thanks,
...Ken

I was running from project itself, so that was a red-herring. When running
from an updated node I get:

ken@stealth:/opt/es-node0$
{elasticsearch/0.14.0-SNAPSHOT/2010-11-22T17:04:25}: Initialization Failed
...

  • NoClassSettingsException[Failed to load class setting [gateway.type] with
    value [s3]]
    ClassNotFoundException[s3]

I copied cloud-aws from
build/distributions/plugins/elasticsearch-cloud-aws-0.14.0-SNAPSHOT.zip to
/opt/es-node$N/plugins/cloud-aws.zip just like always. It seems not to
recognize that anymore.

...Ken

On Mon, Nov 22, 2010 at 11:08 AM, Shay Banon
shay.banon@elasticsearch.comwrote:

Hey,

Works ok for me. Did you by any chance try and run the elasticsearch
script not out of the (extracted) distribution? Usually people get it when
they try and run it from the root bin/... .

-shay.banon

On Mon, Nov 22, 2010 at 7:04 PM, Kenneth Loafman kenneth@loafman.comwrote:

Hi,

I just pulled .14 Snapshot from master, built, and am running into an odd
problem:

$ bin/elasticsearch

Exception in thread "main" java.lang.NoClassDefFoundError:

org/elasticsearch/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.elasticsearch.bootstrap.Bootstrap.
Program will exit.

Has something changed in the build process? I used 'gradlew clean
release' to build.

...Thanks,
...Ken

Hi,

Since 0.12, the plugins needs to be in their extracted form under the
plugins directory.

-shay.banon

On Mon, Nov 22, 2010 at 9:25 PM, Kenneth Loafman kenneth@loafman.comwrote:

I was running from project itself, so that was a red-herring. When running
from an updated node I get:

ken@stealth:/opt/es-node0$
{elasticsearch/0.14.0-SNAPSHOT/2010-11-22T17:04:25}: Initialization Failed
...

  • NoClassSettingsException[Failed to load class setting [gateway.type] with
    value [s3]]
    ClassNotFoundException[s3]

I copied cloud-aws from
build/distributions/plugins/elasticsearch-cloud-aws-0.14.0-SNAPSHOT.zip to
/opt/es-node$N/plugins/cloud-aws.zip just like always. It seems not to
recognize that anymore.

...Ken

On Mon, Nov 22, 2010 at 11:08 AM, Shay Banon <shay.banon@elasticsearch.com

wrote:

Hey,

Works ok for me. Did you by any chance try and run the elasticsearch
script not out of the (extracted) distribution? Usually people get it when
they try and run it from the root bin/... .

-shay.banon

On Mon, Nov 22, 2010 at 7:04 PM, Kenneth Loafman kenneth@loafman.comwrote:

Hi,

I just pulled .14 Snapshot from master, built, and am running into an odd
problem:

$ bin/elasticsearch

Exception in thread "main" java.lang.NoClassDefFoundError:

org/elasticsearch/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.elasticsearch.bootstrap.Bootstrap.
Program will exit.

Has something changed in the build process? I used 'gradlew clean
release' to build.

...Thanks,
...Ken

Thanks! That was it.

...Ken

On Mon, Nov 22, 2010 at 2:26 PM, Shay Banon shay.banon@elasticsearch.comwrote:

Hi,

Since 0.12, the plugins needs to be in their extracted form under the
plugins directory.

-shay.banon

On Mon, Nov 22, 2010 at 9:25 PM, Kenneth Loafman kenneth@loafman.comwrote:

I was running from project itself, so that was a red-herring. When
running from an updated node I get:

ken@stealth:/opt/es-node0$
{elasticsearch/0.14.0-SNAPSHOT/2010-11-22T17:04:25}: Initialization Failed
...

  • NoClassSettingsException[Failed to load class setting [gateway.type]
    with value [s3]]
    ClassNotFoundException[s3]

I copied cloud-aws from
build/distributions/plugins/elasticsearch-cloud-aws-0.14.0-SNAPSHOT.zip to
/opt/es-node$N/plugins/cloud-aws.zip just like always. It seems not to
recognize that anymore.

...Ken

On Mon, Nov 22, 2010 at 11:08 AM, Shay Banon <
shay.banon@elasticsearch.com> wrote:

Hey,

Works ok for me. Did you by any chance try and run the elasticsearch
script not out of the (extracted) distribution? Usually people get it when
they try and run it from the root bin/... .

-shay.banon

On Mon, Nov 22, 2010 at 7:04 PM, Kenneth Loafman kenneth@loafman.comwrote:

Hi,

I just pulled .14 Snapshot from master, built, and am running into an
odd problem:

$ bin/elasticsearch

Exception in thread "main" java.lang.NoClassDefFoundError:

org/elasticsearch/bootstrap/Bootstrap
Caused by: java.lang.ClassNotFoundException:
org.elasticsearch.bootstrap.Bootstrap
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
Could not find the main class: org.elasticsearch.bootstrap.Bootstrap.
Program will exit.

Has something changed in the build process? I used 'gradlew clean
release' to build.

...Thanks,
...Ken