Hi,
I tend to run my applications by creating a run main class in my IDE
(intellij) and let that start a Jetty instance. This has the nice benefit of
getting all the classes on the classpath without any hassles and allowing
easy debugging. This works fine for Tapestry 5 until I start referring to
libraries (e.g. SLF4J) that are loaded at the System level. The then start
to get class def not found.

e.g. My system class loader has
-> slf4j
-> tapestry5
-> etc

My start part works fine until I put a reference to SLF4J in it. At that
point it complains (when run via a main()  ) that is can't find slf4j.

Running the same code via mvn jetty:run the apps works fine.

It looks like the generated class doesn't have access to the system class
loader and can only see a subset of the classes. (SLF4J is definitely there
and working fine for Tapestry core classes).

Any ideas how I can work around this?

Reply via email to