This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
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!!!
Joined: Oct 17, 2012
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...
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.