Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Morgan Shepherd
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • 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
 
Bill Gorder
Bartender
Posts: 1682
7
Android IntelliJ IDE Linux Mac OS X Spring
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic