wood burning stoves 2.0*
The moose likes Spring and the fly likes .jsf page Display Issue with Spring, Primefaces and Tomcat 6 on Linux Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Spring
Bookmark ".jsf page Display Issue with Spring, Primefaces and Tomcat 6 on Linux" Watch ".jsf page Display Issue with Spring, Primefaces and Tomcat 6 on Linux" New topic
Author

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

Morgan Shepherd
Greenhorn

Joined: Oct 22, 2012
Posts: 1
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

Joined: Mar 07, 2010
Posts: 1648
    
    7

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.


[How To Ask Questions][Read before you PM me]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: .jsf page Display Issue with Spring, Primefaces and Tomcat 6 on Linux
 
Similar Threads
Problem with RichFaces
Facelet example not working in Eclipse
Starting a JSF 2.0 project with PrimeFaces 2.2. M1 and Glassfish 3.0
Facelet example not working in Eclipse
Error JSF 2.1: java.io.FileNotFoundException:*/*.xhtml Not Found in ExternalContext