[jboss-user] [Beginners Corner] - jboss developer studio

fedup do-not-reply at jboss.com
Fri Mar 28 18:16:06 EDT 2008

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#4139780

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4139780

More information about the jboss-user mailing list