• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Mike London

.jsf page Display Issue with Spring, Primefaces and Tomcat 6 on Linux

Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

My first time posting so if i break the protocalls I apologise

I have created a project that runs Primefaces with Spring using Eclipse and a tomcat 6 server on windows the application runs perfectly fine, when the application is moved to the "live" server which is a linux box the screens will not display

All the libraries are copied over as they should be, when I try access the url on the linux box with the jsf extention(login.jsf) i recive a 404 error, when i try using the .xhtml extention (login.xhtml) i recive an xml view of the code

my web.xml file:

my login.xhtml

my faces config file

when i start the tomcat there are no errors in the log

thanks in advance
Posts: 1682
Android Mac OS X IntelliJ IDE Spring Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When you say it runs fine on windows are you deploying the app from Eclipse? I would set up an instance of the same version of Tomcat you are running on Linux locally on Windows. I would then build the WAR and deploy it to that instance (not from eclipse) just as you would if you were doing it on Linux. You need to rule eclipse out of the equation.

If it still works fine on Windows and not on Linux than I would start looking at if there are differences in how tomcat is configured locally vs production. I would also make sure your application is not depending on any file resources where the path may be different. Java applications should operate the same regardless of the OS, so I doubt this will end up being a Windows/Linux issue.
    Bookmark Topic Watch Topic
  • New Topic