|Re: Deploying source using geronimo2.2/eclipse/WTP/GEP [message #642484 is a reply to message #642363]
||Wed, 01 December 2010 14:17
| Larry Isaacs
Registered: July 2009
On 11/30/2010 8:59 PM, firstname.lastname@example.org wrote:|
> When I follow the tutorial steps: creating an eclipse "dynamic web app"
> named HelloWorld:
> https://cwiki.apache.org/GMOxDOC22/developing-a-hello-world- web-application.html
> Then, "run as->run on server" I get "resource not found" - UNLESS I do
> an eclipse "project file->export-> export war" into the Geronimo deploy
> This step is NOT shown in the HelloWorld tutorial on the geronimo cwiki
> tutorial/web site (URL given above).
> Is it simply missing from the tutorial, or should "run on server" take
> care of this extra step?
> Any idea why it is not being deployed, or is the export war file step
> always required?
> Thanks in advance
"Run on Server" is expected to "publish" the project's Web application
to the server so it can be served. Exporting should not be necessary.
I'm not sure how the Geronimo plug-ins accomplish this, so I can't say
what to look at to see if the "publish" occurred successfully.
A "resource not found" is a pretty generic error, conveying not much
more than "something isn't right". What's not right could be a bug or
quirk in the Geronimo plug-ins, but it could also be something in your
project. For example, since URLs are case sensitive, an easy way to
cause a symptom like this is get the case wrong. Naming your JSP
"Hello.jsp" and specifying "hello.jsp" in the web.xml
<welcome-file-list> would lead to the behavior you are seeing.
If you right-click the JSP and select Run As -> Run on Server, it will
open the browser with the URL to access the JSP directly, taking web.xml
<welcome-file-list> out of the picture. If this also gets a "resource
not found" error it would suggest the problem is more likely to be in
the "publishing". You may need to ask on a Geronimo newsgroup for
Powered by FUDForum
. Page generated in 0.01609 seconds