You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by ashtek <as...@yahoo.com> on 2009/02/11 00:08:54 UTC

Maven Class not found exception

Hey All,

 I am running my jetty with maven, and  I have a dependency in my POM for
wicket-contrib-tinymce. Maven downloaded the wicket-contrib-tinymce jar file
and I can see it in my repo. Jetty starts up fine as well, but I get a
NoClassDefFoundError when I click on a link that contains a page that
references this class.


I am not sure where or how the classpath is generated when I run
maven/jetty. Can someone please help?

WicketMessage: Can't instantiate page using constructor public
com.jasneo.web.EditQuestion()

Root cause:

java.lang.NoClassDefFoundError: wicket/contrib/tinymce/TinyMceBehavior
at com.jasneo.web.EditQuestion$QuestionsMCForm.<init>(EditQuestion.java:54)
at com.jasneo.web.EditQuestion.<init>(EditQuestion.java:25)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at
org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:149)


Thanks!
-- 
View this message in context: http://www.nabble.com/Maven-Class-not-found-exception-tp21944885p21944885.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Class not found exception

Posted by ashtek <as...@yahoo.com>.
Thanks for replying Wayne.

This is my depedency.

		<dependency>		
		   <groupId>org.wicketstuff</groupId>
    		   <artifactId>wicket-contrib-tinymce</artifactId>
                   <version>1.3-SNAPSHOT</version>		
		</dependency>	

I start jetty like this - mvn jetty:run and all of that starts fine and does
not complain about this missing class file.

And the packaging is war. 

	<modelVersion>4.0.0</modelVersion>
	<groupId>com.jasneo</groupId>
	<artifactId>ib</artifactId>
	<packaging>war</packaging>
	<version>1.3.5</version>
	<!-- TODO project name  -->
	<name>quickstart</name>
	<description></description>

-- 
View this message in context: http://www.nabble.com/Maven-Class-not-found-exception-tp21944885p21945560.html
Sent from the Maven - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Maven Class not found exception

Posted by Wayne Fay <wa...@gmail.com>.
>  I am running my jetty with maven, and  I have a dependency in my POM for
> wicket-contrib-tinymce. Maven downloaded the wicket-contrib-tinymce jar file
> and I can see it in my repo. Jetty starts up fine as well, but I get a
> NoClassDefFoundError when I click on a link that contains a page that
> references this class.

What does the <dependency> look like in your pom?

How are you starting Jetty? What kind of packaging are you using in
your project - war?

Wayne

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org