aspose file tools
The moose likes JBoss/WildFly and the fly likes HTTP Status 404 in jboss-as-7.1.1.Final (Brontes) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Products » JBoss/WildFly
Reply Bookmark "HTTP Status 404 in jboss-as-7.1.1.Final (Brontes)" Watch "HTTP Status 404 in jboss-as-7.1.1.Final (Brontes)" New topic
Author

HTTP Status 404 in jboss-as-7.1.1.Final (Brontes)

Slaxmi Raj
Ranch Hand

Joined: Apr 20, 2012
Posts: 40
Hi,
I would like deploy a simple servlet injboss-as-7.1.1.Final (Brontes), my war file was deployed successfully but when i run my localhost getting HTTP Status 404 error. unable to trace the error in the configuration.
please find the below deployment structure.

Hello.war--->WEB-INF{(classes--->HelloWorld.class),(web.xml)}



I deployed Hello.war in D:\jboss-as-7.1.1.Final (Brontes)\jboss-as-7.1.1.Final\standalone\deployments\Hello.war, it was successfully deployed after that in the browser
http://localhost:8080/Hello/ it shows the error like this.

HTTP Status 404 - /Hello/

type Status report

message /Hello/

description The requested resource (/Hello/) is not available.

JBoss Web/7.0.13.Final



and my java class ,

Helloworld.java



web.xml



please any one tell me how to deploy servlet in jboss 7.1.1 final


Thanks in advance.
Ifteqar Ald
Ranch Hand

Joined: Dec 26, 2011
Posts: 68
<url-pattern>/HelloWorld</url-pattern>

Since you have given HelloWorld as url-pattern so you have to access this like.

http://localhost:8080/HelloWorld

Hope this helps.
Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1237

In your deployment descriptor the servlet class name is specified as com.HelloWorld. But your source (HelloWorld.java) does not seem to show any package name.


Swastik
Slaxmi Raj
Ranch Hand

Joined: Apr 20, 2012
Posts: 40
Thank you saahil gupta for your reply. i tried
http://localhost:8080/HelloWorld

but the same error
HTTP Status 404 - /HelloWorld

type Status report

message /HelloWorld

description The requested resource (/HelloWorld) is not available.

JBoss Web/7.0.13.Final


Thank you Swastik Dey for your reply. i created a package called com added package statement in java class and this time also getting the same error.


would you people suggest me any other options ?

Thank you.




Swastik Dey
Ranch Hand

Joined: Jan 08, 2009
Posts: 1237

You should check server log.
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 8211
    
  71

Based on what you have posted, the access URL should be http://localhost:8080/Hello/HelloWorld

[My Blog] [JavaRanch Journal]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: HTTP Status 404 in jboss-as-7.1.1.Final (Brontes)
 
Similar Threads
adding a servlet
Head fisrt servlets and jsp:- unable to run the first example
Problem with accessing servlet from browser
Accessing servlet
HttpStatsuError