JCoder wrote:
> Hi all,
>
> Im just trying to setup a basic project structure in Eclipse with
> Wicket and Spring. I think its pretty smart to separate both Wicket
> and Spring into two different Eclipse projects, isnt it? Thus, I
> created an Eclipse project for the Web part and one for the Spring
> (and later Hibernate as well) part.
> Now when I start Tomcat with Eclipse I get "...Caused by:
> java.lang.NoClassDefFoundError:
> org/springframework/context/ConfigurableApplicationContext"
Then something in your Web project references Spring.
When you use wicket-spring, that's the case, for example.
You can tell Eclipse that it shall get the Spring jars from your
Spring project, then. In your Web project properties, in `Project
references'. The Spring jars and all dependent jars must be marked
as exported in your Spring projects Java Build Path.
But note that in the end, Eclipse will deploy all these jars to the
WEB-INF/lib directory of your Tomcat working directory (usually
.metadata/.plugins/org.eclipse.wst.server.core/tmp*/wtpwebapps/ in
your workspace directory).
HTH,
Joachim
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Joachim Schrod, Roedermark, Germany
Email: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]