Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Deploying source using geronimo2.2/eclipse/WTP/GEP (missing a deploy step ?)
Deploying source using geronimo2.2/eclipse/WTP/GEP [message #642363] Wed, 01 December 2010 01:59 Go to next message
No real name is currently offline No real name
Messages: 1
Registered: December 2010
Junior Member
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 directory.

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
Re: Deploying source using geronimo2.2/eclipse/WTP/GEP [message #642484 is a reply to message #642363] Wed, 01 December 2010 14:17 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1305
Registered: July 2009
Senior Member
On 11/30/2010 8:59 PM, surfer.maui@gmail.com 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
> directory.
>
> 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
additional help.

Cheers,
Larry
Previous Topic:IWAB0014E error when trying to create WebService in Helios
Next Topic:CSS Brace Position
Goto Forum:
  


Current Time: Mon Sep 22 08:21:23 GMT 2014

Powered by FUDForum. Page generated in 0.01643 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software