PDA

View Full Version : Tiles2 support for Web application (spring DM bundles)


fcm4409
May 9th, 2008, 07:06 PM
Hi,

I have a simple web application that is trying to use Tiles2. When I start the bundle I am getting the error:

SEVERE: Error loading java.net.FactoryURLClassLoader@1a99836 org.apache.tiles.servet.TilesServlet
java.lang.ClassNotFoundException: org.apache.tiles.servlet.TilesServlet

my web.xml file contains a definition as follows:
<servlet>
<servlet-name>tiles</servlet-name>
<servlet-class>org.apache.tiles.servlet.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<load-on-startup>2</load-on-startup>
</servlet>

The app is not an MVC app. It is just a basic web application.

Any ideas are welcomed. Thanks in advance.

Costin Leau
May 12th, 2008, 03:35 AM
Try adding an import for this package (org.apache.tiles.servlet) to your bundle before starting.