Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Creating a servlet using scala in eclipse

 
Vijayalakshmi Karthikeyan
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am new to scala. just started learning scala. I just wanted to create a Hello world servlet using scala.

I just followed these steps.

1) created a dynamic web project
2) in the .project did the below mentioned changes. After which i got 'S' on the top of the project instead of 'J'
3) Created a scala class with the below code.
4) added the entry in web.xml.
But I am getting HTTP 500 ===> java.lang.ClassNotFoundException: HelloServlet

.project file

scala class

web.xml

index.html

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic