Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Tapestry 5.3 tutorial and Eclipse Kepler : RegistryStartup service can't be loaded

I am trying to follow the official Tapestry tutorial

Following steps were fine :

  • launching mvn jetty:run (from command line)
  • launching mvn eclipse:eclipse -DdownloadSources=true
  • importing the project inside Eclipse
  • configuring a new Jetty configuration from the imported project inside Eclipse

But as soon as I run the configuration from Eclipse, I get an error, whose log is here. (relevant part, according to me :

ioc.Registry Error building service proxy for service 'RegistryStartup'

)

Also, please notice that my issue is different from the one in this post : indeed, I've managed to set up Jetty 6 in Eclipse.

My OS is Ubuntu 13.10 64 bits.

On ubuntu i've installed Maven 3.1.1

I am using Eclipse Kepler Service Release 2

I installed the jetty plugin (RunJettyRun) 1.3.2 (Jetty 6).

Also, in Eclipse I set up the patch in order to use java8 runtime.

like image 312
loloof64 Avatar asked Apr 04 '14 19:04

loloof64


1 Answers

JVM arguments don't seem to be the cause for this issue.

The jdk8 compatibility guide does indeed list removed options that you may had to set to run large applications in Java 7. Those small example applications still run fine without using this setting in Java 7 though. In Java 8 there is no more need to set those options:

The command line flags PermSize and MaxPermSize have been removed and are ignored.

The full stack trace indicates an incompatibility in the plastic library for bytecode manipulation. The root exception is thrown because the library's ClassReader includes this check and it doesn't seem to care in which version the application has been compiled:

// checks the class version
if (readShort(6) > Opcodes.V1_7) {
    throw new IllegalArgumentException();
}
like image 198
kapex Avatar answered Sep 18 '22 23:09

kapex