Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Re: Problems with JSF Pages
Re: Problems with JSF Pages [message #533624] Fri, 14 May 2010 14:36 Go to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2202
Registered: July 2009
Senior Member
On 5/14/10 10:11 AM, jeff.rowell@cgi.com wrote:
> Thanks for the suggestions - I'll try to put together some notes to
> describe my finding.... but today, for some reason that I can't explain
> I've hit another problem... my JSF facelet appliction worked fine
> yesterday, but today when I tried to run it I get an HTTPS 404 error...
> my machine was rebooted last night so I presume something changed as a
> result....
> Fundamentally I'm very confused by how Exclipse is integrating with
> Tomcat... if I start Tomcat from a DOS promt I am able to open the
> Tomcat home page by entering http://localhost:8080 in a browser window
> (i.e. IE)... the Server status in Exclipse, however, shows "stopped". If
> I start the server from within Eclipse I get an error indicating that
> Tomcat is already running... also, when I shutdown Tomcat from a DOS
> prompt and then start it in Eclipse I am not able to view the Tomcat
> home page by entering http://localhost:8080 in a browser window...
>
> I presume that I most have some conflict in my Exclipse settings
> somewhere - I had another version of Tomcat installed until yesterday -
> I downloaded a new copy and re-installed yesterday in an attempt to get
> my JSF application working - could there still must be some invalid
> reference to the old installation somewhere... not sure how to proceed
> with trouble-shooting this.
>
>

First, you really should ask "advanced" questions about the JEE and
web-tools stuff on the Web Tools (WTP) forum group (find it on the
forums home page). I'm copying this response to that group so it will be
in both.
Having said that, from the little I know about how the WTP server
integration works, here's what I think:
Tomcat is essentially just another Java application. You have it
installed somewhere and tell Eclipse where that installation is based,
so that Eclipse can publish to, start, and stop that application. Just
like many other apps, it's possible to start multiple instances of
Tomcat, and that probably actually works fine as long as they're
configured to use different ports.
So if you launch Tomcat manually, Eclipse doesn't really have any way to
know that; it just knows if IT launched Tomcat.
As for viewing the default app, I suspect that is because a standard
installation of Tomcat has some default apps deployed, unless you
configure it otherwise. When Eclipse launches Tomcat, it does so with
specific configuration to only deploy the apps that you've associated,
in Eclipse, with the Tomcat server. It's not surprising to me that
whatever "default" apps are NOT deployed by Eclipse since the idea is
that you tell it what apps to deploy.

Hope this helps,
Eric
Re: Problems with JSF Pages [message #533628 is a reply to message #533624] Fri, 14 May 2010 15:20 Go to previous message
Larry Isaacs is currently offline Larry Isaacs
Messages: 1299
Registered: July 2009
Senior Member
Eric Rizzo wrote:
> On 5/14/10 10:11 AM, jeff.rowell@cgi.com wrote:
>> Thanks for the suggestions - I'll try to put together some notes to
>> describe my finding.... but today, for some reason that I can't explain
>> I've hit another problem... my JSF facelet appliction worked fine
>> yesterday, but today when I tried to run it I get an HTTPS 404 error...
>> my machine was rebooted last night so I presume something changed as a
>> result....
>> Fundamentally I'm very confused by how Exclipse is integrating with
>> Tomcat... if I start Tomcat from a DOS promt I am able to open the
>> Tomcat home page by entering http://localhost:8080 in a browser window
>> (i.e. IE)... the Server status in Exclipse, however, shows "stopped". If
>> I start the server from within Eclipse I get an error indicating that
>> Tomcat is already running... also, when I shutdown Tomcat from a DOS
>> prompt and then start it in Eclipse I am not able to view the Tomcat
>> home page by entering http://localhost:8080 in a browser window...
>>
>> I presume that I most have some conflict in my Exclipse settings
>> somewhere - I had another version of Tomcat installed until yesterday -
>> I downloaded a new copy and re-installed yesterday in an attempt to get
>> my JSF application working - could there still must be some invalid
>> reference to the old installation somewhere... not sure how to proceed
>> with trouble-shooting this.
>>
>>
>
> First, you really should ask "advanced" questions about the JEE and
> web-tools stuff on the Web Tools (WTP) forum group (find it on the
> forums home page). I'm copying this response to that group so it will be
> in both.
> Having said that, from the little I know about how the WTP server
> integration works, here's what I think:
> Tomcat is essentially just another Java application. You have it
> installed somewhere and tell Eclipse where that installation is based,
> so that Eclipse can publish to, start, and stop that application. Just
> like many other apps, it's possible to start multiple instances of
> Tomcat, and that probably actually works fine as long as they're
> configured to use different ports.
> So if you launch Tomcat manually, Eclipse doesn't really have any way to
> know that; it just knows if IT launched Tomcat.
> As for viewing the default app, I suspect that is because a standard
> installation of Tomcat has some default apps deployed, unless you
> configure it otherwise. When Eclipse launches Tomcat, it does so with
> specific configuration to only deploy the apps that you've associated,
> in Eclipse, with the Tomcat server. It's not surprising to me that
> whatever "default" apps are NOT deployed by Eclipse since the idea is
> that you tell it what apps to deploy.
>
> Hope this helps,
> Eric

Details about the Tomcat support in WTP can be found in the Tomcat
FAQ[1]. See if it addresses your questions. As for why your JSF
facelet application stopped working, I would need more details.

Cheers,
Larry

[1] http://wiki.eclipse.org/WTP_Tomcat_FAQ
Previous Topic:Problem creating JSF Facelets / Templating
Next Topic:EclipseLink 2.0.2
Goto Forum:
  


Current Time: Mon Jul 28 18:43:32 EDT 2014

Powered by FUDForum. Page generated in 0.03159 seconds