hi all
i'm trying to create a simple app in jboss developer studio, but having big trouble
getting it to work
i created a dynamic web project
then created a helloworld servlet in the src folder
| public class HelloWorldServlet extends HttpServlet
| {
| protected void service(HttpServletRequest request, HttpServletResponse response)
| throws ServletException, IOException
| {
| ServletOutputStream out = response.getOutputStream();
| out.println("<html><body><h1>Hello
World!</h1></body></html>");
| }
| }
In webContent -> WEB-INF -> web.xml i added this
| <servlet>
| <servlet-name>HelloWorldServlet</servlet-name>
| <servlet-class>test.HelloWorldServlet</servlet-class>
| </servlet>
|
| <servlet-mapping>
| <servlet-name>HelloWorldServlet</servlet-name>
| <url-pattern>/Hello</url-pattern>
| </servlet-mapping>
|
I then right-click on the folder and select Debug As - debug on server
jboss start up and i get the error - Bad version number in .class file
in the broswer address bar i put
http://localhost:8080/Test/Hello but i get a 404 error
What am i doing wrong
using jboss developer studio
java 1.5
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4139780#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...