Here are the contents of one of my war files, as listed by jar:
>jar -tf info.war META-INF/ META-INF/MANIFEST.MF WEB-INF/ WEB-INF/jsp/ WEB-INF/lib/ image/ image/blue/ WEB-INF/info-servlet.xml WEB-INF/jsp/footer.jsp WEB-INF/jsp/header.jsp WEB-INF/jsp/home.jsp WEB-INF/jsp/include.jsp WEB-INF/jsp/props.jsp WEB-INF/lib/commons-logging.jar WEB-INF/lib/info-1.0.jar WEB-INF/lib/jstl.jar WEB-INF/lib/log4j-1.2.8.jar WEB-INF/lib/spring.jar WEB-INF/lib/standard.jar WEB-INF/web.xml image/blue/body.gif image/blue/th_data.gif index.jsp info.css port.jsp props.jsp request.jsp
URL to access home page: http://localhost:8080/info/index.jsp
Thanks for the info. Between posting my original message and getting your response, I did find the web site you mentioned. Very helpful.
I've got my .jsp page working, but when I try to invoke the servlet (either by clicking "submit" on my JSP page, or directly, I get the same 404 result:
type Status report
description The requested resource (/pnp/PnpAuth) is not available.
My .war file looks like this:
And my web.xml looks like this:
<?xml version="1.0" encoding="UTF-8"?>
Plug-N-Pay credit card authorization application
pnp.PnpAuth is the servlet. So what am I missing? I have a feeling it's going to be something fundamental and simple, but I just can't see it.
Sorry for the brain dump -- any help anyone could provide would be greatly appreciated!
The problem is with the url-pattern.
According to the error message, clicking on the "submit" button requests a resource named "/pnp/PnpAuth". But the url-pattern identifies a resource whose name would be "/pnp/mmmi_pnp.jsp". Change your url-pattern to "/PnpAuth" (the prefix "/pnp" is assumed based on your war file name).
That fixed it. I knew it would be something simple. I see now that I had misunderstood the url-mapping tag and the servlet-mapping node generally. That clarified things for me.
Thanks a ton!
When I try to deploy a JSP to Jboss, I get the following error.
The JSP file is in the C:\...\jboss-4.0.4RC1\server\default\deploy\FRStest.war folder.
HTTP Status 404 - /test.war/date.jsp
The requested resource (/test.war/date.jsp) is not available.
Appreciate any help!
It would appear that you are using the url http://locahost:8080/test.war/date.jsp. You should, instead, be using http://locahost:8080/test/date.jsp. Note that JBoss uses the .war extension to identify the type of component being deployed, but that extension does not appear in the web context.
P.S. You should have started a new post rather than appending to an existing one.