• 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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem with WAR deploy in Tomcat 7

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...

 
Saloon Keeper
Posts: 27752
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Think of how dumb the average person is. Mathematically, half of them are EVEN DUMBER. Smart tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic