• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Jboss 404

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
OK. I have dowloaded Calendar.war. And I want to deploy it on Jboss 7, so I put Calendar.war in standalone directory, run standalone.bat, run http://localhost:8080/index.jsp, but I have an error

type Status report

message /index.jsp

description The requested resource (/index.jsp) is not available.
What does it mean? Calendar.war has index.jsp in a root.
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think your application is deployed at root context. By default the context of a web application is the name of the war file it's deployed in. So try http://localhost:8080/Calendar/index.jsp. If that web application contains that JSP then it will be displayed.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jaikiran Pai wrote:I don't think your application is deployed at root context. By default the context of a web application is the name of the war file it's deployed in. So try http://localhost:8080/Calendar/index.jsp. If that web application contains that JSP then it will be displayed.



OK. Another one question. I have this structure:
C:\jboss\standalone\deployments\spr-mvc-hib.war\WEB-INF\pages\home.jsp
what should I run? http://localhost:8080/spr-mvc-hib/WEB-INF/pages/home.jsp doesn't work.
 
Bartender
Posts: 1051
5
Hibernate Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does your spring war contain a web.xml file? If so, could you post its contents?
 
Jaikiran Pai
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Smith Brown wrote:

OK. Another one question. I have this structure:
C:\jboss\standalone\deployments\spr-mvc-hib.war\WEB-INF\pages\home.jsp
what should I run? http://localhost:8080/spr-mvc-hib/WEB-INF/pages/home.jsp doesn't work.



Anything under the WEB-INF isn't accessible directly. So no, you can't access it.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

James Boswell wrote:Does your spring war contain a web.xml file? If so, could you post its contents?


What especial must to contain web.xml, I understood only it is necessary for web-application. Here is it:


<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee"; xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd";
version="3.0">
</web-app>
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Jaikiran Pai wrote:

Smith Brown wrote:

OK. Another one question. I have this structure:
C:\jboss\standalone\deployments\spr-mvc-hib.war\WEB-INF\pages\home.jsp
what should I run? http://localhost:8080/spr-mvc-hib/WEB-INF/pages/home.jsp doesn't work.



Anything under the WEB-INF isn't accessible directly. So no, you can't access it.



OK. I copied all jsp pages to the root http://localhost:8080/spr-mvc-hib/home.jsp - it runs...

But there is error 404 in path http://localhost:8080/spr-mvc-hib/team/list.html, but i have file here.
 
Smith Brown
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Solved
 
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic