This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Slaxmi Raj
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<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
Rancher
Posts: 1601
5
Android Java Java ME
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Slaxmi Raj
Ranch Hand
Posts: 45
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 1601
5
Android Java Java ME
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should check server log.
 
Jaikiran Pai
Marshal
Pie
Posts: 10444
227
IntelliJ IDE Ubuntu
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on what you have posted, the access URL should be http://localhost:8080/Hello/HelloWorld
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic