I solved... 1-The <location> on <errorpage>, and the <jsp-file> on <servlet> must have "/" preceding the file:
<location>/errorpage.jsp</location> <jsp-file>/index.jsp</jsp-file> 2-The context-root must be relative and with no "/" as a prefix. <context-root>lbs</context-root> regards, pedro salazar. On Thu, 24 Oct 2002, psalazar wrote: > Greetings, > > I deploy a web application (war) wrapped in a ear file. But I can't map > any jsp file in my web context!? (even my welcome index.jsp!). When I > enter just the context root it shows a directory archive with no files > inside (probably because a security issue). > > http://localhost:8000/lbs/ > --> lists root directory with no files > > http://localhost:8000/lbs/index.jsp > --> HTTP Status 404 - /lbs/index.jsp > The requested resource (/lbs/index.jsp) is not available. > > I create my ear file with my war file and I verified it in deploytool of > J2EE1.3.1 before deploying it. > > I put below my configurations. > I'll appreciate any help! > > psalazar. > > >>> CONFIGURATIONS: > > ---------------------- > -->my web directory: > . > |-- WEB-INF > | | > | `-- web.xml > |-- errorpage.jsp > |-- index.jsp > > ----------------- > --> web.xml file [WAR]: > > <web-app> > <display-name>LBSWAR</display-name> > <servlet> > <servlet-name>index</servlet-name> > <display-name>index</display-name> > <jsp-file>index.jsp</jsp-file> > </servlet> > <servlet-mapping> > <servlet-name>index</servlet-name> > <url-pattern>/</url-pattern> > </servlet-mapping> > <session-config> > <session-timeout>30</session-timeout> > </session-config> > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > <error-page> > <exception-type>java.lang.Exception</exception-type> > <location>errorpage.jsp</location> > </error-page> > </web-app > > ------------------- > --> application.xml descriptor file [EAR]: > > <application> > <display-name>LBS</display-name> > <description>Location Based Service</description> > <module> > <web> > <web-uri>war-lbs.war</web-uri> > <context-root>http://<host>:<port>/lbs/</context-root> > </web> > </module> > </application> > > > -- > pedro salazar (pt-inovacao) <[EMAIL PROTECTED]> > > ________________________________________________________________________ > ___ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html > -- pedro salazar (pt-inovacao) <[EMAIL PROTECTED]> -----BEGIN PGP PUBLIC KEY BLOCK----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org mQGiBD1AA8URBAD6f+Ttr6Yat6UukbUOl6RYHrdgIFlVXBHnAdJ3eZvWQY6Fx2T0 C0X6Gk5QuX4AAZ8YKTH8W8ICSD0arT04aDcEg28Xivrd645/1OOJikxXqowE89Pu +5BrFIBCd2npybPn2PEWB/R2iTMCiVsMSw9D+mOkNQ78T8bEXfynL6oiawCgpcGq MElx0/Yvl24fxe5W5t1rZ9UEAKO7RWyaW03Pc/LE8EGnrlaXRASAT9OOIpiFN6cu 0sBLjEu4a4zshF+pvkPEANUy6x93UdpBR2oq6EqvHzNFpFpe/fFu0sdY2ZdJzSiX vY2UXiA0hxJZu2mhF3O5A3PHm05Elv9crMj7foTo52uJnyf27IoHUa5giynflJ+P YiW1A/48ql9BoivKRIPGMyWOjbidkPNShxS6/5qjSd94EzQ+xlv3lxbs6RBok0FT GMhfH1ThnUHZ6znOxfpI89enkvttBBVxymwnGeEsMPPjseY+96wzCRF0UhjlH0a4 kiTb3lDE2LmiRJGAH7TErLVNe99aGaGnp0yhZpoWBsjFFv/8iLQ7UGVkcm8gU2Fs YXphciAocHQtaW5vdmFjYW8pIDxwZWRyby1iLXNhbGF6YXJAcHRpbm92YWNhby5w dD6IXQQTEQIAHQUCPUADxQUJAeEzgAULBwoDBAMVAwIDFgIBAheAAAoJEA4SnjHY A7xhNwkAninS2GoP9v+zazP2Ww31p4r7WkFVAKCCFBfKkspAw+NZFIabjWTMWRtn 7LkBDQQ9QAPMEAQAneAOhdRIUGho+pDiqOTK0rrEWxySK46KHrIFxdP6ogO841uw tzkGnESfpetnamTeJwmCnsDeqTu77rjJURVdWLaLss5b6dQjdAtc33bbTKCWzzRH OFKwtqn35qO60CfuKU0Gw28TwcL7uyzJntIT8B4H8JHCGmsUqh+nYJLWvVcABRED /jWqY8Nu9dc/nfqX3sRcLlO0KCiMaQYB4W5awBuVTdOiiMtmi2O/3xB+14Aj/0E6 qg/ieQc6plEax8RsFmrSTbUneguTCKdHFuR9TRsvHcWuMJmrSZdsNraM20uMJTcp AGi3ADPq/DKqxxl6g0Snvq1Cp4mQXB+773kko4sg26UkiEwEGBECAAwFAj1AA8wF CQHhM4AACgkQDhKeMdgDvGF9GACbBM4QWGbcwfLy/M5MqPsYge19yHQAni2BMH50 wq+B1DsueAoAeOWs7nNH =E9NO -----END PGP PUBLIC KEY BLOCK----- ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html