[nbj2ee] Project folder name in NetBeans interfering with JSF/GlassFish deployment

  • From: "The111" < >
  • To:
  • Subject: [nbj2ee] Project folder name in NetBeans interfering with JSF/GlassFish deployment
  • Date: Sun, 22 Apr 2012 01:10:28 +0000

I got a suggestion elsewhere to try "cleaning" and re-building the project, 
but that did not work.  Here is more detail about the steps I followed:

Create new project in Netbeans, point it to an empty folder called Ex2605. 
After that, I bring a couple source files (.java and .xhtml) into that Ex2605 
directory structure. When I clean and build, it says ok. When I try to 
deploy, I get this error:

Error occurred during deployment: Exception while loading the app : 
java.lang.IllegalStateException: ContainerBase.addChild: start: 
org.apache.catalina.LifecycleException: java.lang.RuntimeException: 
java.lang.NoClassDefFoundError: LShoppingCart;. Please see server.log for 
more details.
C:\<path>\Ex2605\nbproject\build-impl.xml:721: The module has not been 
deployed.
See the server log for details.
BUILD FAILED (total time: 16 seconds)

"ShoppingCart" is a class from a different project, that I once long ago had 
in a directory named Ex2605 at the same location. But that directory is long 
gone, it has been removed from the Netbeans project list, and there are NO 
references to the ShoppingCart class anywhere in any of the files currently 
in the Ex2605 folder. So that fact that Netbeans apparently is looking for 
something called LShoppingCart tells me it maintains a history somewhere else 
of what I used to have in the Ex2605 folder, and apparently I need to purge 
that history but have no idea how.

If I try all of the above with any directory NOT named Ex2605, it works fine.






[nbj2ee] Project folder name in NetBeans interfering with JSF/GlassFish deployment

The111 04/21/2012

[nbj2ee] Project folder name in NetBeans interfering with JSF/GlassFish deployment

The111 04/22/2012

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20131025.e7cbc9d). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close