unable to launch StartExamples from IDEA (eventually other IDE's as well)
-------------------------------------------------------------------------
Key: WICKET-3014
URL: https://issues.apache.org/jira/browse/WICKET-3014
Project: Wicket
Issue Type: Bug
Components: wicket-examples
Affects Versions: 1.5-M1, 1.4.10
Environment: OS X, java 6, IDEA
Reporter: Peter Ertl
Attachments: wicket-1_4.patch, wicket-1_5.patch
When trying to run
org.apache.wicket.examples.StartExamples
as a Java application trough my IDE (using IntelliJ IDEA) the class loader
complains that it can't find the jetty JARs.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/mortbay/jetty/HandlerContainer
Caused by: java.lang.ClassNotFoundException: org.mortbay.jetty.HandlerContainer
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)
These JARs are using maven scope 'provided' which means the container has to
provide the JARs. As you might expect IDEA has no jetty JARs in the classpath
when running a class. An easy fix is to move StartExamples from src/main/java
to src/test/java so the dependencies are found.
Patch for 1.4 and 1.5 will follow.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.