Question

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.

Was it helpful?

Solution

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();
}

OTHER TIPS

The problem was that the tapestry framework needs special java virtual machine settings, which are ignored starting from Java8.

So, I removed java 8 from the build path, and set up java 7 instead.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top