Project folder name in NetBeans interfering with JSF/GlassFish deployment

I am not sure if this is a JSF issue or a NetBeans issue. I am very new to both.
I have a project in a folder, let's say C:\Folder1, and when I try to "deploy" it on the GlassFish server, I get strange errors about a missing class... though that class is not even a part of this project.
I believe that C:\Folder1 may have been something I used in the past for a different project but that is long gone.
So this new project, if I move it to folder C:\Folder1a or C:\Folder2 or ANYTHING else but C:\Folder1... then it will deploy fine. But if I move it back to Folder1 (i.e. the exact same directory structure underneath that level), I get the mysterious error messages from GlassFish server about being unable to find the class that it doesn't even need.
NOTE: When I say I am moving the project folder around, I am of course re-adding it to Netbeans every time via the "open project" under the file menu. In fact, I've even tried creating a brand new "naked" project, and then manually importing my source code into that project's folders. I have scanned every source doc for the mysterious missing classes and they aren't referenced anywhere! It has to be some metadata that Netbeans stores about that directory name since I once used it for a different project which DID have the mystery class name in it. Hopefully that makes sense...
Any ideas? Obviously I can work around it, but it still irks me.
Thanks!

Clean build
Unforunately that does not work. Here are 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.

Similar Messages

  • Dynamic forms with JSF

    Hello guys !
    I hope you can help me. I am trying to do something with JSF, but I am not sure if JSF is the right approach.
    I am trying to build a dynamic web service, based on the information of a web service. That is I dont know the controls ( radio buttons, checkboxed, input boxes) , my form will have in advance, so I dont build any managed bean that maps all the controls.
    What I thought , it is to have a collection, which has the description of all the questions and posible answers, and dynamically go through the collection and build the form. (that is something I can do with datatables), and then when the user submits the form , in the action method ...I would recover the "answers" based on the ID or name of the controls, but for my surprise I cannot set the name of the controls with JSF , so I am clueless to send the answers of the form.
    I post the fill-up of the form to another web service which very briefl requires someting like this
    <answers>
            <answerid></answerid>
            <answervalue></answervalue>
    </answers>I might have the value , but not the answerid
    Thanks,
    Deibys

    or is there a way I cam force the id of a control ?
    <h:selectOneRadio id="#{question.questionid}"  layout="pageDirection" >
                             <f:selectItems value="#{question.answersOptions}" />
                        </h:selectOneRadio>this does not work for me
    org.apache.jasper.JasperException: /encuestaRiesgo.jsp(22,4) PWC6314: According to the TLD, the attribute id is not a deferred-value or deferred-method, but the specified value co

  • Project folder missing

    I have been working on a project in FCPX for a couple of weeks. I was storing everything on an external hard drive and it seemed to be loading fine. The program itself lagged a lot, and was very slow on rendering, but it was workable. Yesterday it crashed and today it crashed twice. When I restarted the computer, I opened FCPX again and my project wasn't loaded. Looking at the external the entire Project folder seems to be missing, and I have no idea what could have caused it. The event folder is still there, and all that info loads properly like it was doing before. Is there any miracle that might bring my project back? And is there anything I can do to ensure this doesn't happen again in the future? (I've looked at Preference Manager, but I'm not sure if it applies?)

    I already a Projects folder on my internal drive with other completed files that are still there. I'm totally certain that I saved to the external. A spotlight search unfortunately didn't yield anything.

  • Help saving a .txt file to Netbeans Project Folder

    I'm a newbie and need some help doing this. The program simply won't read it from outside of Netbeans apparently... it makes since, but I'm still miffed. Anyhow... any help you can offer would be greatly appreciated... this is my first programming class and I'm really nervous about this not working.
    Here is the code that I have so far, please let me know if you see anything that would not let it read in addition to the not being saved correctly part.
    import java.io.*;
    public class assignment3{
    public static void main(String[] args) {
    String fileName = "customer.txt";
    try {
    FileReader fr = new FileReader(fileName);
    BufferedReader bfr = new BufferedReader(fr);
    for (;;){
    String line = bfr.readLine();
    if (line == null) {
    break;
    System.out.println(line);
    fr.close();
    }catch (Exception e){
    System.out.println("Could not read from file:"+ fileName);
    Thanks,
    goodgirlSLCL

    Another post that's got nothing to do with EJBs ;-)
    The filename ("customer.txt") is relative to the NetBeans project folder. If you want it to read another file, elsewhere on the disk, you need to specify the absolute path to it. For example "C:/Documents and Settings/etc/etc/etc/".

  • Bad folder name inside aperture project folders

    Hello,
    As a consequence of a kernel panic, macos partition died and I had to reinstall macos (http://discussions.apple.com/message.jspa?messageID=10349974#10349974). However windows 7 was ok so I did the backup of aperture library from same machine with windows (macdrive).
    I copy pasted back the aperture library from external hard drive, and I get for every picture, "unsupported image format". It appears to be that all folder names inside of every .approject folder where modified. Instead of being something like:
    2009-05-10 @ 10/12/10 PM - 1.apimportgroup
    it is
    2009-05-10 @ 101210 PM - 1.apimportgroup
    When I change the "_" with "/" everything goes back normal.
    I have a lot of projects, so changing every folder name back manually will take years, specially when you need to right click and click show package contents for every folder to get to the bad ones.... You know a workaround for this or a quick way to change all folders name?
    Thanks a lot,
    Best,
    Its aperture 2.1.4 under mac os 10.6.2, macbook pro 15' mid 2007 2.4 core 2 duo, 500 seagate momentus 7200 rpm hard drive, corsair 4gb cl4

    puco,
    If you adept at using the terminal/shell and a couple of unix utilities you can have this fixed up in no time with a variety of shell script and regular expressions (or another scripting language of your choice like perl, awk, etc, etc) as long as you are sure you know what the folder names were. Since they were all changed by WINDOZE in the same way it is a piece of cake to fix.
    A lot of people have this issue when dealing with multiple OS/file systems copies but I mention this solution to you only because you seem clever enough to diagnose it - you can probably deal with a short fix-it script yourself as well.
    RB

  • Renaming LPX Project-(folder) Audio-files by track name?

    Hi
    Is there any way or command to rename LPX Project folder Audio-files by track name automatically?

    If you're really using that version of L8, you really need to get the software update for that - there were quite a few glaringly obvious faults with the initial release of Logic 8, which a couple of updates rectified.
    I can't guarantee that the particular problem you specified is one of them, but you defininitely should do that...

  • How to access a url in file receiver CC with space in the folder name?

    Hi
    PI 7.11 sp4:
    In a file receiver channel I would like to send the message to this folder:
    de-prod.dk\bu\something\something\PTI eventstanden\archive\"
    But I get this error message:
    "Target directory 'F:\usr\sap\XP7\DVEBMGS02\j2ee\cluster\server0\"\de-prod.dk\bu\something\something\PTI eventstanden\archive"' does not exist"
    My question is: where the f.... does it get the 'F:\usr\sap\XP7\DVEBMGS02\j2ee\cluster\server0\  from, and how can I fix it?
    One issue is the space in the folder name. I have tried to replace the space with %20 and then remove the "" s around the whole url, but without any luck.
    When I log on the server on which Pi is running I can access the folder using the mentioned url including the ""s.
    All suggestions would be highly appreciated!
    MIkael

    > But I get this error message:
    >
    > "Target directory 'F:\usr\sap\XP7\DVEBMGS02\j2ee\cluster\server0\"\de-prod.dk\bu\something\something\PTI eventstanden\archive"' does not exist"
    >
    > My question is: where the f.... does it get the 'F:\usr\sap\XP7\DVEBMGS02\j2ee\cluster\server0\  from, and how can I fix it?
    It comes from the "
    Anything else but \ is treated as local folder under working directory of PI
    > One issue is the space in the folder name. I have tried to replace the space with %20 and then remove the "" s around the whole url, but without any luck.
    It works for me just to copy the folder from Windows explorer into channel config. With space and without ".

  • Not able to create a web project with jsf or jsp or struts or spring

    Hi,
    I am trying to create a dynamic web project with jsf or jstl or struts or spring or any of web options available for a web project, but I am not able to do it.
    When I choose any of these options, the wizard asks me to "select an existing jstl/jsf/Spring 2.0 library, or click Add to add a new library." and since it doesn't show any existing libraries there, I clicked on add new library. When I click add, it opens a new dialog box where it has two options :
    1. to use spring/jstl/jsf lib from bea web site - when I choose this option, it tries to connect to the bea web site and gives me error that "connect time out". I don't know why it is not able to connect to the internet. I am not able to see the help also. There it gives error "The requested URL could not be retrieved".
    2. to use libraries from an existing spring installation - I provide the path of a directory where spring lib are, but then it gives me error that this is not a valid installation.
    On another machine, I am able to see the help contents, but still not able to get these libraries from the bea site.
    Please help.
    Thanks in advance,
    Sushma

    Hi Sushma,
    The issue you are facing has been addressed and will be part of the next release. For the current release, please follow the steps listed below.
    Send an email to [email protected] with details on specific facets you are trying to enable on your project.
    You will be provided with a url where you can download the required jars and details on how to manually add the jars to the workspace which will prevent the download on demand scenario.
    Cheers
    Raj

  • My images are still in the catalog, but the Folder name has disappeared. I need to get the folder back into my structure with the images in place

    Help: I have a very well defined folder structure. Folder are located in a Master location and organized by State. Inside of these are my master RAW file folders organized by location. For example: West Virginia > BIRI_RAW_2012, BLFA_RAW_2013, NERI_RAW_2013, etc. After I set up the masterful following a shoot, I go to LR and import the images. At one time I inadvertently imported the NERI_RAW_2013 masterful set as a subset of something else and it was not appearing in my LR Module in the organization I prefer. So I went to my master folders on my drive and moved the NERI file into the West Virginia state folder. When I went back to LR, as expected the NERI folder was grey with a question mark. So I right clicked to find the files and relink, and it did not work. The folder name disappeared. The RAW files are still in the catalog and show up in a missing photos search. I can't reimport because they are already there. I just need to restore my folder structure and get the images back to the right spot.

    So I right clicked to find the files and relink, and it did not work. The folder name disappeared.
    It didn't disappear, it moved (because you told Lightroom to move it). It moved from the incorrect folder location, to the new folder location. Please look in the new folder, in whatever location it is in, not in the old folder and the old location, and you will find the photos.

  • Extremely annoying problem with user folder name in windows 8.1

    Here is the thing:
    Friend of mine bought the laptop (very strong and expensive asus - republic of gamers) with installed windows 8.1 on it, but after a few days only I bought that computer from him because he didn't need it and he didn't use it at all!
    But, his name stayed in the windows. I changed all user accounts names and everything which was possible to be changed, but when i go to C/users his name is still there on folder!
    I can say it is very annoying because that laptop cost almost 3.000  USD and I still need to look at someone else's  name in my user folder!
    I tried to change "ProfileImagePath" in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ .... but after that windows logged in as a temporary profile and I spend another hour to figure out
    how to reverse the thing!
    How is possible that some so basic and simple things can't be changed at all in newest windows??? Only because some name was entered first it's not possible to be changed ever again???? Seriously?
    Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made  the worst thing ever!
    I am extremely unhappy and upset with this operative system! I,m cursing the day when i gave so much money for computer with crap called windows 8.1!!!!
    Very very angry!!!
    (P.S English is not my native language)

    Hi,
    According to your description, it seems that you have resolve that issue.
    Not only this problem, there is too many problems with this windows 8.1! Too many! You definitely made  the worst thing ever!
    Please let us know what problem did you encounter? Please give us more detailed information in order to provide the further help.
    Here is a overall guide for you to know well the Windows 8.1
    Windows 8.1: frequently asked questions
    No Karen, I didn't resolve the issue.
    I asked very simple question how to change something so basic like user folder name in Windows 8.1
    You know:  "C:/Users/"user name"
    All the links you are giving to me doesn't provide any concrete answer to this question. I spent hours and hours googling and researching about this question and only solution which i found is that i need to create completely new user account and delete completely
    the old one, just to be able to remove an old name of user folder! Are you kidding me?
    How is possible that such a basic thing is so complicated?
    Is there any way to change folder user name in any other way because i don't want to create a new user account!
    Simple question, but, like always, no any concrete answers - just some empty talks, and totally useless links and SPINNING IN THE CIRCLE all the time without the CONCRETE solution.
    As for part of my post which you quoted, and your request for more informations in order to provide me further help, i just gave it to you again. I want to change user folder name. What you don't understand in that question?
    UPDATE:
    Ok, i came back to edit this post because i have a feeling that maybe you don't understand the question and giving me this link because maybe you simply don't know that when you go to:
    Control panel/user accounts/change your account name... and change the name, and after that, when you go to C:/users, the folder with the user name still have an old user name. Which means that any changes in control panel or anywhere else doesn't make any
    changes on C:/users/  folder itself!!!!!
    In previous windows versions was possible to change it by editing "ProfileImagePath" in:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList\ ....
    But when I try to do that in Windows 8.1, when I reboot computer it logs in with some temporary account, so i need to reverse everything to be able to use computer with the real account!
    So basically it seems that is absolutely impossible to change user folder name in Windows 8.1, which is simply unbelievable!
    I really think i explained very good now.

  • Unable to open PDFs with CR in the file name or folder name?

    We are unable to open any PDFs with capital CR in the title of the document or if they are stored in a folder with CR in the name of it. This is quite a large problem as we are a CRC (Cooperative Research Centre) and need to use this in most file and folder names.

    Can you please update to the latest version of Adobe Reader available i.e. 10.1.4 (By clicking on Help > Check For Updates from within the Reader application). This should fix your issue.

  • Folder names with diacritics & NFS shares

    OK; sometimes things appear simple but are not. Sharing files with an OSX client has been, and is a nightmare in a Linux environment.
    We have a mostly Ubuntu environment and have tried Samba, and NFS. After a significant amount of work the Mac can do stable NFS Mounts provided the following unconventional settings are implemented:
    In the /etc/exports file on the Ubuntu server:
    /some/catalog/to/export 192.168.0.0/24(rw,sync,nosubtree_check,allsquash,anonuid=1000,anongid=1000,insecure)
    - anonuid needs to be user ID of the user on the server that is the owner of the catalog
    - anongid needs to be group ID of the group on the server that is the primary group for of the catalog
    On the Mac in Disk Utility/File/NFS Mounts:
    - Enter the correct paths
    - click "Advanced" and fill in: resvport,nolocks,locallocks,intr,soft,wsize=32768,rsize=32768
    This finally let's you mount the share
    However, after using the share for a while we discovered that folder names on the share that contains diacritic characters, including characters å,ä,ö and Å,Ä,Ö did not display in the file listing in Finder (In Path Finder Folder names are replaced with " -- "), nor could the folder be opened. However, right-clicking the " -- " in Path Finder and selecting "Get info" did display the correct path to the folder and did display the diacritic characters in the path correctly.
    In a catalog containing 264 folders that all had the same owner and the same group & permissions, 94 did not display properly in OSX/Finder and none could be opened. All 94 contained one or more diacritic characters (åäö or ÅÄÖ). None of the 170 others did contain any diacritics. Spaces, and e.g. "&" does not cause problems.
    With an Ubuntu client I can NFS mount the same server, and I do get the folder names displayed correctly and I can open the folders. It appears likely there is a bug in OSX - likely in Finder/Path Finder, since the correct path name is displayed in "Get Info".
    Message was edited by: TheSnowGirl
    Message was edited by: TheSnowGirl

    Gave up on this and downloaded Interarchy (RBrowser seems similar). This is not NFS and not Samba; rather FTP over SSH (SFTP). Secure, even for remote access and works out of the box, like breeze. All access rights intact . And there is a preview of file, rather that open on remote server...

  • Publishing bug with FTP servers - Spaces at end of file/folder names

    I'm sharing what I've found after lots of troubleshooting with my Mom's iWeb website. I originally came across this in the previous version of iWeb, and have seen it again in the current version.
    For the sake of this example, she had an image gallery on her site. The image file she added to iWeb had a space at the of the filename, just before the file extension, something like "image name .jpg"
    In the old version of iWeb (iWeb 08), we would publish the site to a folder on her computer, and it would generate a folder for each image in the gallery. These folders would hold the original image and thumbnail image. Each folder name was the image's filename, minus the extension. In this example, the folder name was "image name " with a space at the end, which is valid on the Mac OS X file system.
    When we uploaded it to the FTP site (which happened to be GoDaddy) using a 3rd party FTP tool, certain images would always fail to upload. After much testing and troubleshooting with other FTP software, we found that the FTP server did not allow spaces at the end of folder names, and it automatically replaced them with underscores. So, we tried to upload a folder called "image name ", and ended up with one called "image name_". As a result, we couldn't upload any of the files that were supposed to be IN that folder, because it could not be found under it's intended name.
    Fast forward to today, using iWeb 09. Now the software allows you to upload to a 3rd party FTP server, so we've stopped using the other FTP software and do it all in iWeb.
    She added a new image to her gallery and tried to publish changes, and got the error: "There was an error communicating with the FTP server. Try again lager, or check with your service provider"
    Once she removed the image, publishing worked again. It turned out the original image had a space at the end of the filename, just before the extension again. Once this space was removed, everything worked again.
    Hopefully this helps somebody else down the road. If you have trouble with certain files, check them for spaces at the end, just before the extension. Perhaps in a future release, Apple could update the site publishing code to trim leading/trailing spaces from folder names.
    If you've seen this before, or have any further questions/feedback for me, feel free to post a response. Thank you for reading.

    It would be nice if Apple could make their error messages more descriptive of the actual problem so we have a better idea of how to solve it. I am "the mom" who had the problem B2Ben posted about.
    The error message seemed to place blame on the ftp server or my ISP, consequently I wasted a lot of time with these people when it wasn't even remotely their fault.
    As with most computer problems, I ended up learning a lot from it and it always helps with gaining confidence. This is my 20th year as a Mac user!.. yes, since 1989. I look forward to seeing what some of you have experienced with this same issue.
    iMac GHZ PowerPC G$ Mac OS X (10.5.7)

  • Windows 2003 - create folder name with yesterday's date

    Hello friends..
    please advise,
    I want to create folder name with yesterday's date and then move yesterday's date files to this folder...so for example;
    if today is 2014_07_17 then create folder as below (2014_07_16)
    d:\test\214_07_16
    then move all files extension .txt from d:\test\*.txt to d:\test\2014_07_17
    thanks in advance...

    These ones may help.
    Use PowerShell to Create a Bunch of Folders Based upon the
    Date
    Using the Move-Item Cmdlet
    Regards, Dave Patrick ....
    Microsoft Certified Professional
    Microsoft MVP [Windows]
    Disclaimer: This posting is provided "AS IS" with no warranties or guarantees , and confers no rights.

  • Unable to open Sharepoint site with Designer "Folder name is not valid"

    Hi all,
    I'm using SharePoint 2013 with SharePoint Designer 2013, but currently I'm facing a weird behaviour.
    I can open my preproduction SharePoint portal with SharePoint Designer 2013, but when I'm trying to open my production environment, I'm receiving the error "The folder name is not valid". Even it doesn't ask for credentials.
    Anyone knows what is happening?

    There are few other options people used to solve this issue. refer to the following posts if you haven't so far. hope it helps.
    http://hightechdave.com/sharepoint-designer-the-folder-name-is-not-valid-error/
    http://mesiag.blogspot.com/2011/10/sharepoint-designer-2010-folder-name-is.html
    http://community.office365.com/en-us/f/154/t/11825.aspx
    Cheers,

Maybe you are looking for