Problem adding libraries to a JSF project using NETBEANS 5.5 (App serv 9.0)
Hi everybody,
I am developing a web application in JSF, usign application server 9.0
update 1.
It works fine till I add 2 libraries, 2 .jar files in the project
properties.
I have to add these 2 libraries because I want to add some specific
controls on the JSF page. The libraries I am trying to add are:
1) tomahawk-1.1.3.jar
2) tomahawk-sandbox-1.1.5-SNAPSHOT.jar
The application deploys in the server, but when I launch it I get this
error in the browser:
"HTTP Status 404 -
description The requested resource () is not available. "
And this is the error message I get on the server log:
"Message ID:
WebModule[/PMA]Exception sending context initialized event to listener
instance of class com.sun.faces.config.ConfigureListener
java.lang.NoClassDefFoundError "
If I remove the libraries, rebuild and redeploy the application again
it works fine.
Any ideas how to make these libraries work on my project?
Thanks for reading.
Gabriele
[1075 byte] By [
ihavegutsa] at [2007-11-26 23:41:48]

Hi Gabrielle,
I have run into a similar problem. My solution (although quite inelegant) is to first rebuild all modules individually. If you have an enterprise application in Netbeans and there is a web module, ejb module, and top level module, do not simply rebuild the top module, but rebuild all. There seems to be an issue sometimes with Netbeans seeing the libraries.
The other possibility is to add the jars to the application servers classpath, this can create portability problems if you want to move the application later to a different server, but it may solve the immediate problem.
Again, I have found that in some instances Netbeans does not seem to include or give visibility to added libraries. There does not seem to be any rhyme or reason to this, it just doesn't work sometimes. What I have noticed is that if the application server and Netbeans are stopped and restarted, eventually this will clear itself up. It's like there's a configuration error on build sometimes.
Hope this helps you over the breech,
Scott