users@glassfish.java.net

Re: Why is glassfish looking in docroot for my jspx file?

From: <glassfish_at_javadesktop.org>
Date: Sun, 28 Dec 2008 12:05:11 PST

Alexis Moussine...

Thanks for your suggestions, however, I am still looking for a solution. After deploying my foo.ear into glassfish auotdeploy (using Eclipse Export->EAR File), I opened my Opera (or firefox) to render the following URL:

http://localhost:8080/foo-web/pages/autho/new.jspx

But glassfish reports (short version):

[b]
[#|2008-12-28T19:22:47.756+0000|FINE|sun-appserver2.1|org.apache.jasper.servlet.JspServlet|_ThreadID=25;_ThreadName=httpSSLWorkerThread-8080-0;ClassName=org.apache.jasper.servlet.JspServlet;MethodName=service;_RequestID=97fe4739-c904-4385-a31c-d382b55456c2;|JspEngine --> [/foo-web/pages/autho/new.jspx] ServletPath: [/foo-web/pages/autho/new.jspx] PathInfo: [null] RealPath: [/home/fooprj/applications/glassfish/domains/domain1/docroot/foo-web/pages/autho/new.jspx] RequestURI: [/foo-web/pages/autho/new.jspx] QueryString: [null]|#]


[#|2008-12-28T19:22:47.759+0000|SEVERE|sun-appserver2.1|org.apache.jasper.servlet.JspServlet|_ThreadID=25;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=97fe4739-c904-4385-a31c-d382b55456c2;|PWC6117: [u]File "/home/fooprj/applications/glassfish/domains/domain1/docroot/foo-web/pages/autho/new.jspx" not found[/u]|#]
[/b]
Note the 'docroot' in the following file path:

File "/home/fooprj/applications/glassfish/domains/domain1/[b][u]docroot[/u][/b]/foo-web/pages/autho/new.jspx" not found.

[b]Project Structure:[/b]
fooEAR
fooEJB
fooWEB
.....WebContent
..........|---pages
...............|--autho
....................|--new.jspx
 

[b]Questions:[/b]
1.Why is it looking in docroot when I have no file in there or put another way, why is it attaching 'docroot' to the file path?
2.Under what circumstance would glassfish attach 'docroot' to the file path.

If I know the answer to question 2, I would be able to gain some insight into the causes.

Any suggestion or hint would be appreciated.
[Message sent by forum member 'nuffsaidx' (nuffsaidx)]

http://forums.java.net/jive/thread.jspa?messageID=323457