• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem with WAR deploy in Tomcat 7

 
Jesus Schneider
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 18212
53
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic