PDA

View Full Version : creating a servlet



ganesh_vk
07-16-2007, 06:18 AM
I have tried to deploy my own servlet class file called “Helloservlet” in Pentaho.war context directory.
I'd put my servlet class file in the pentaho.war/WEB-INF/classes directory.
I have mapped for my servlet in the deployment descriptor file as follows:
Web.xml:

<servlet>
<servlet-name>Helloservlet</servlet-name>
<servlet-class>Helloservlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>Helloservlet</servlet-name>
<url-pattern>/Helloservlet</url-pattern>
</servlet-mapping>

I've Started the JBOSS 4.0 server. It reports the following error:

Caused by classNotFoundException: Helloservlet

For that I have added my servlet called ‘Helloservlet’ to a jar file named myservlet.jar and put it in a pentaho.war/WEB-INF/lib directory. Then restart the JBOSS server.
Again I got the above error. Kindly give me a correct solution