aspose file tools*
The moose likes JSF and the fly likes Problem with WAR deploy in Tomcat 7 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "Problem with WAR deploy in Tomcat 7" Watch "Problem with WAR deploy in Tomcat 7" New topic
Author

Problem with WAR deploy in Tomcat 7

Jesus Schneider
Greenhorn

Joined: Oct 17, 2012
Posts: 28
Hello everybody!
I have developed a web application with Netbeans 7.2, hibernate 3.2.5 and primefaces 3.5. The web is finished and running perfectly in Glassfish in my computer.
I have hired a virtual server to host my web and I have deployed it successfully on a Tomcat 7.
The very first page seems to be ok ( the index page, has NO database access) but if I try to go to a page that uses the database it gives me this error:



BUT if try to go to another page WITHOUT database access the page loads but it seems that the CSS file is not found (big images, small text... chaos in general )
It seems that tomcat is not finding a lot of files. I suspect the folder distribution of my WAR is not correct. The actual folder distribution is:



As you can see is a usual netbeans project distribution.
Can someone help me with this issue?
Thanks in advance!!!
Jesus Schneider
Greenhorn

Joined: Oct 17, 2012
Posts: 28
I made a copy of the project in netbeans and changed the server from glassfish to tomcat 7. The error list is the same as in the server, so is nothing related with the server. Can someone help me? I'm afraid is something related with libraries...

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16250
    
  21

Well, primero, in JSF, the MVC Controllers are pre-supplied, not user code, so when I see "Controller", "Kontroller", or "Controlador" in a JSF user-coded class name, it inflames the pedant in me.

Although I thought I espied a message reporting initializer recursion in your stack trace, I think your primary problem is that GlassFish is a full-stack JEE server and Tomcat7 is not. In particular, Tomcat7 does not have built-in JSF or EJB classes like full-stack JEE servers do. Anything of that nature has to be packaged in as part of the WAR.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem with WAR deploy in Tomcat 7