JSC 2.1 ignores path properties in nbproject/project.properties ?

Hi,
I have to import a Netbeans 5.0 project into JSC 2.1 in order to use the JSF UI designer. The project has the Java BluePrints source structure with all folders external to the Netbeans project folder (because it was created with other tools in the past). It is a mix of legacy servlets, plain JSP and JSF pages.
In Netbeans it was no problem to import the source tree by using the option "Web Application with Existing sources" from the project wizard and tweaking the pathes in nbproject/project.properties. In JSC this option does not exist. Also I cannot just move all the sources into a standard JSC project folder since it is a large project in a CVS repository. Also I cannot use softlinks since some people work on the project using Windows and some use Linux.
So I tried to edit the path settings in nbproject/project.properties manually. Here are the relevant lines I changed from a default JSF project created by the JSC wizard I used to manually import the project into JSC:
conf.dir=${file.reference.jsctest-src}/conf
file.reference.jsctest-test=../../test
file.reference.jsctest-web=../../web
file.reference.jsctest-src=../../src
jsf.pagebean.package=jsctest
jsf.project.libraries.dir=lib   # <-- not sure what goes in here
source.root=${file.reference.jsctest-src}
src.dir=${file.reference.jsctest-src}/java
test.src.dir=${file.reference.jsctest-test}
web.docbase.dir=${file.reference.jsctest-web}The web.xml, faces-config.xml, ... etc. are all prepared for JSC. JSC seems to understand it and opens it correctly and list the external folders like Netbeans would. But when I try to add a new JSF UI based page I get a NullPointerException. From the message log:
java.lang.reflect.UndeclaredThrowableException
     at $Proxy14.actionPerformed(Unknown Source)
     at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
     at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
     at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
     at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
     at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:234)
     at java.awt.Component.processMouseEvent(Component.java:5488)
Caused by: java.lang.NullPointerException
     at com.sun.rave.api.jsf.project.ui.WebFormIterator.instantiate(WebFormIterator.java:131)
     at org.openide.loaders.TemplateWizard.handleInstantiate(TemplateWizard.java:557)
     at org.openide.loaders.TemplateWizard.instantiateNewObjects(TemplateWizard.java:396)
     at org.openide.loaders.TemplateWizardIterImpl.instantiate(TemplateWizardIterImpl.java:218)
     at org.openide.WizardDescriptor.callInstantiate(WizardDescriptor.java:1425)
     at org.openide.WizardDescriptor.access$900(WizardDescriptor.java:63)
     at org.openide.WizardDescriptor$Listener.actionPerformed(WizardDescriptor.java:1327)
[catch] ... 67 moreWhen I look into the files view of the project I see that JSC recognizes the classes in the external source packages folder like Netbeans would. But it creates at the same time a non-existing folder named src below the JSC project folder which contaings an empty folder named "jsctest" (the default package name I selected for page beans).
So it seems some part of JSC (the web designer?) ignores the path settings in nbproject/project.properties while others (the code from NB4.1?) does not. When I move all project sources into the JSC project folder in their standard location it works but as I wrote above doing that is not an option because CVS etc..
Or do I have to set some additonal properties in the project for the designer? Or is there any other way to import such a legacy project to create new JSF pages with the designer (we cannot change all servlets / pages at once).
Or is it just a bug in JSC 2.1 I should report? Or is it a unsupported feature JSC will never support?
Thanks in advance,
regards,
Thomas

Thanks for your answer.
Unfortunately, as I described in my inital posting, it is not possible for me to do a refactoring of the source structure in Netbeans because the project is based on a CVS repository and I cannot change the pathes there for several reasons. The web folder and sources folder are outside of the Netbeans project folder anyway. I just thouhgt that JSC would read the pathes from the project.properties file like Netbeans but that doesn't seem to be the case.
I guess we have to wait for the next JSC version or check out other options.
Thanks anyway,
Thomas

Similar Messages

  • [svn:osmf:] 11292: Removing 'libs' as a library path from the Flex Builder project properties.

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

    Revision: 11292
    Author:   [email protected]
    Date:     2009-10-30 02:28:09 -0700 (Fri, 30 Oct 2009)
    Log Message:
    Removing 'libs' as a library path from the Flex Builder project properties.
    Modified Paths:
        osmf/trunk/framework/MediaFramework/.actionScriptProperties
        osmf/trunk/framework/MediaFramework/.flexLibProperties

  • [svn:fx-trunk] 8057: Some errant renames in the project properties files.

    Revision: 8057
    Author:   [email protected]
    Date:     2009-06-22 12:27:26 -0700 (Mon, 22 Jun 2009)
    Log Message:
    Some errant renames in the project properties files.
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/airframework/.actionScriptProperties
        flex/sdk/trunk/development/eclipse/flex/flash-integration/.project
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.actionScriptProperties

    Thats good news.

  • [svn:fx-trunk] 8056: More updated project properties files for the sparkTest project.

    Revision: 8056
    Author:   [email protected]
    Date:     2009-06-22 12:13:58 -0700 (Mon, 22 Jun 2009)
    Log Message:
    More updated project properties files for the sparkTest project.
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.actionScriptProperties
        flex/sdk/trunk/development/eclipse/flex/sparkTest/.project

    Thats good news.

  • [svn:fx-trunk] 8055: Updating development project properties files.

    Revision: 8055
    Author:   [email protected]
    Date:     2009-06-22 12:10:47 -0700 (Mon, 22 Jun 2009)
    Log Message:
    Updating development project properties files.
    Modified Paths:
        flex/sdk/trunk/development/eclipse/flex/airframework/.project
        flex/sdk/trunk/development/eclipse/flex/spark/.actionScriptProperties
        flex/sdk/trunk/development/eclipse/flex/spark/.flexLibProperties
        flex/sdk/trunk/development/eclipse/flex/spark/.project

    I had downloaded it for test, and requested for evaluation license...
    But I haven't got license, and also I am not able to find Flash Builder Plugins from HFCD site....
    I think those plugins are removed from site....
    Please help me, if anyone have those plugins...

  • Symbole für..... - Modify the project properties using "Property Node"??

    Hi,
    I try to configure automatically the "Symbole für bedingte Deaktivierung" for a project.I have no idea how to translate it. I've attached a screenshot.
    I used the reference for Application -> Project.ActiveProject -> .. I found the Name, Path, Description of the project, but I cannot find these 3 values (from the screenshot).
    I got lost because most of the Properties are in English and my LabView is in German.
    1. Can anyone translate (or make a screenshot) from a English Version - LabView for "Symbole" and "Symbole für bedingte Deaktivierung" window. I'm sure this is going to help me?
    2. It would be even better if someone could tell me directly which property must be modified in order to modify the "Symbole".
    Thanks,
    Paul
    Solved!
    Go to Solution.
    Attachments:
    deutsch.JPG ‏54 KB

    Although you already solved your problem, here the screenshot your requested.
    Regards,
    Manuel
    Attachments:
    Conditional Disable Symbols.png ‏50 KB

  • Bug in workshop Project Properties for a Java Project !!

    I have a Java project which i am trying to make work with junitee so
    that i can automate my test cases. I have installed junitee as a web
    application named 'junitee' and configured it no problem.
    I have my JUnit test cases in Java Project named 'UnitTest'. What i want
    to happen is that when i build my UnitTest project i want the resulting
    JAR file UnitTest.jar copied into the WEB-INF\lib of the junitee project.
    In order to do this i needed to change the project 'Build' options and
    select the "Copy JAR file from Libraires to Project as" and refer to the
    junitee web app as follows:-
    ../junitee/WEB-INF/lib/UnitTest.jar
    Unfortunately when i do this and select Ok to save my changes workshop
    gives me the following error:-
    The JAR name contains illegal characters. Please correct the name.
    However i have managed to get around this and make it work by manually
    modifying my .work file by hand and not through workshop. This works and
    achieves exactly what i want however it must be a bug in workshop to not
    allow this through the Project Properties window !.
    Else if it is deliberate then i cant see why as you should be able to
    copy a JAR file to any lcoation inside the project if you wish to. I
    hope this gets fixed in SP3.
    Martin

    .. I tried using iPhoto to export a QT file of an image slideshow....
    I would start here to play on the knobs&sliders ..
    what were your settings for export? "QT file" => that is many dozends of options of compression, codecs, resolutions, etc. pp ...
    the consumer apps FCE and iM are meant for TV display only => reduced res + reduced colors, quality reduced due to interlace (due to TV standards) ...-
    a Full Res, h264 encoded qt.mov should display your photos in shining quality ...

  • Can't change fps in project properties

    I can't change the fps in the project properties in Motion 3. I can change everything else, but that. It is stuck at 29.97 but I want it to be at 23.98. Even when I change the preset to, say, 720p24, the fps is still at 29.97. Is this a bug, or is their a magic setting to change somewhere else?

    Oh boy! That's weird. I started a new NTSC Broadcast SD project, but the frame rate was still stuck to 29.97 (the frame rate field is not editable). So instead of changing the preset in the project properties, as I've done before, I tried your suggestion. I created a new project, but in an HD format that supported 24p. I chose the DVCProHD 720p24 setting, fortunately this time, the fixed in cement frame rate was at 23.98; I then immediately changed the preset back to NTSC Broadcast SD within the project properties, and whammo! SD res but the frame rate stayed at 23.98.
    This is really, I mean really counter intuitive. Apple really did not think things through. Perhaps it's a programing logic issue... Who knows... it's still sloppy!
    Thanks Mark for pointing me in the right direction.

  • Cannot set project properties

    When I attempt to set the project properties in LiveType, I get the following error:
    "An unexpected error occurred."
    "(Modal session requires modal window)"
    This comes up whether I create a blank project, or create one from a template. In short, I am unable to establish any properties in my project at all.
    Has anyone else seen this?
    Thanks!
    Brian

    A bit of Google research: one or more files that tell Mac OS X how to build the LiveType interface are broken.
    Delete the LiveType application and associated .pkg files in Library/Receipts.
    Reinstall LiveType from the main FCS disk.

  • Which files  should include in path when building J2EE project?

    Hi,
    I'm new to J2EE. Trying some examples on Servlet. But I've the error messages stating that it can't locate the javax.servlet.* classes like the ones below:
    <code>
    import javax.servlet.http.HttpServlet;
    import java.io.IOException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    </code>
    Could anybody pls tell me which file (of J2EE SDK) I should include in my path when building J2EE projects?
    thanks,
    jackling

    You need to have $J2EE_HOME/lib/j2ee.jar in your CLASSPATH when compiling your servlet

  • Project Content panel for Project Properties failure

    I'm trying to inspect/edit the project properties (right click the project in the navigator panel and left click "Project Properties") in JDev build 10.1.3.2.0 on Windows. I get the following stack dump:
    java.lang.IllegalArgumentException: The content folder is not under the specified source root.
         at oracle.jdeveloper.model.ContentFolder.<init>(ContentFolder.java:123)
         at oracle.jdeveloper.model.ContentSetPanel.populateContentList(ContentSetPanel.java:359)
         at oracle.jdeveloper.model.ContentSetPanel.loadFrom(ContentSetPanel.java:157)
         at oracle.jdeveloper.model.JProjectPanel.loadFrom(JProjectPanel.java:211)
         at oracle.jdeveloper.model.JProjectPanel.onProjectPanelEntry(JProjectPanel.java:123)
         at oracle.ide.model.panels.ProjectSettingsTraversablePanel.onEntry(ProjectSettingsTraversablePanel.java:87)
         at oracle.ide.panels.MDDPanel.enterTraversableImpl(MDDPanel.java:926)
         at oracle.ide.panels.MDDPanel.enterTraversable(MDDPanel.java:899)
         at oracle.ide.panels.MDDPanel.mav$enterTraversable(MDDPanel.java:106)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelectedNavigable(MDDPanel.java:1348)
         at oracle.ide.panels.MDDPanel$Tsl.updateSelection(MDDPanel.java:1216)
         at oracle.ide.panels.MDDPanel$Tsl.actionPerformed(MDDPanel.java:1210)
         at javax.swing.Timer.fireActionPerformed(Timer.java:271)
         at javax.swing.Timer$DoPostEvent.run(Timer.java:201)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:461)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:153)
         at java.awt.Dialog$1.run(Dialog.java:515)
         at java.awt.Dialog.show(Dialog.java:536)
         at java.awt.Component.show(Component.java:1300)
         at java.awt.Component.setVisible(Component.java:1253)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.bali.ewt.dialog.JEWTDialog.runDialog(Unknown Source)
         at oracle.ide.dialogs.WizardLauncher.runDialog(WizardLauncher.java:55)
         at oracle.ide.panels.TDialogLauncher.showDialog(TDialogLauncher.java:276)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:223)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:89)
         at oracle.ide.model.panels.ProjectPropertiesDialog.showDialog(ProjectPropertiesDialog.java:80)
         at oracle.jdeveloper.model.JProjectStructureController.handleEvent(JProjectStructureController.java:111)
         at oracle.ide.controller.IdeAction.performAction(IdeAction.java:525)
         at oracle.ide.controller.IdeAction$1.run(IdeAction.java:772)
         at oracle.ide.controller.IdeAction.actionPerformedImpl(IdeAction.java:789)
         at oracle.ide.controller.IdeAction.actionPerformed(IdeAction.java:498)
         at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1849)
         at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2169)
         at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
         at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
         at javax.swing.AbstractButton.doClick(AbstractButton.java:302)
         at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
         at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:1041)
         at java.awt.Component.processMouseEvent(Component.java:5488)
         at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
         at java.awt.Component.processEvent(Component.java:5253)
         at java.awt.Container.processEvent(Container.java:1966)
         at java.awt.Component.dispatchEventImpl(Component.java:3955)
         at java.awt.Container.dispatchEventImpl(Container.java:2024)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
         at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
         at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
         at java.awt.Container.dispatchEventImpl(Container.java:2010)
         at java.awt.Window.dispatchEventImpl(Window.java:1774)
         at java.awt.Component.dispatchEvent(Component.java:3803)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
         at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
    Any suggestions on how to resolve the "The content folder is not under the specified source root." issue? When I click "OK" on the Project Properties I get an "An output directory must be specified." alert box. Clicking "Cancel" clears the panel.
    Thanks.
    John Jeunnette

    Hi,
    please check with another "fresh" project. The error message
    java.lang.IllegalArgumentException: The content folder is not under the specified source root.
    indicates that you messed up with the project file location, which no longer seem to be in the defined source directory.
    Close all workspaces and projects in JDeveloper, and create a new project accepting the default settings. This should work then
    Frank

  • BUG? Default Project Properties, Business Components: Base Classes

    Is it just me, or is there a bug in the Default Project Properties Dialog when attemptiong to specify custom classes for the Business Component Base Classes.
    I have extended EntityCache and can successfully specify it as a base class via the Project Properties dialog, but in Default Project Properties, I get an error stating: "The selected class is not a valid superclass. Either is does not implement the interface oracle.jbo.server.EntityCache or it has an invalid modifier".
    FYI: My custom library has been added to the Default Project Properties->Libraries.
    Any help?

    Does it work if you use the:
    Tools | Preferences... | Business Components > Base Classes panel instead?

  • Setting in Project Properties for PAL 1920 x 1080

    Hi there,
    I have been using LiveType in Std Def without problem.
    Now I have switched to HD, my FCE4 is editing in PAL 1920 x 1080.
    What setting is FILE > Project Properties shall I set in LiveType because I see the canvas has gone too big & not managable !!
    HELP HELP HELP
    Thanks

    Nick Holmes wrote:
    Pick any of the 1080 presets -it doesn't matter which, although you might have to adjust the frame rate to suit.
    Another way to automatically adjust the properties is to simply drop in a small piece of video in the required format via the Place Background Movie command in the File menu. Save the setting and then delete the video.
    I see the canvas has gone too big & not managable !!
    Click the percentage button at the bottom left of the Viewer. Set it to "Fit to Screen".
    Thanks Nick.
    But how do fix the size of all the various windows.
    After I adjust until all the 4 windows are to my liking, I work on it.
    But when I close Live Type and I fired up Live Type on the next time, all the 4 windows go haywire in size again. How do I fixed (and save) the size of the 4 windows once & for all ?
    Thanks

  • Saving Project Properties as Defaults-It Always Opens in NTSC and Not PAL.

    Whenever I open LiveType the Project Properties are set to the default NTSC 40:27.
    All my work is done in PAL 4:3.
    I have selected File>Settings>Remember Settings but still when I open LT I find it has reverted to NTSC.
    Am I doing something wrong or will it always open in NTSC?
    Ian.
    PS Sod's Law! I have just done what I said above and this time it has opened in PAL!
    I wonder if it will always do that or is it just a one-off.
    Message was edited by: Ian R. Brown

    Whenever I open LiveType the Project Properties are
    set to the default NTSC 40:27.
    <SNIP> PS Sod's Law! I have just done what I said above and
    this time it has opened in PAL!
    I wonder if it will always do that or is it just a
    one-off.
    Hi Ian & David
    Whenever I open LT, it's always correct as PAL in my Project Properties.
    However, whenever I go to File>Open Template it always defaults to NTSC, despite repeatedly using Remember Settings.
    I'm new at using LT, so it's probably my fault. In the meantime, I'm very careful when using templates.
    Regards. Robert.

  • What is the "Imported Namespaces" window in Visual Studio Project Properties (VB)

    What is the "Imporeted namespaces" window (see below) in Project properties (VB)

    Hi trogan,
    This is the official document Description from
    How to: Add or Remove Imported Namespaces (Visual Basic):
    Imported namespaces are managed on the References page of the Project Designer. The imports you specify in this dialog box are passed directly to the compiler (/imports) and apply to all files in your project.
    But I think we could understand it better with this document:
    References and Namespaces in VB.NET
    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you.
    Microsoft does not control these sites and has not tested any software or information found on these sites;
    Therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there.
    There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for