You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@syncope.apache.org by tmess567 <gi...@git.apache.org> on 2017/01/03 10:30:23 UTC

[GitHub] syncope pull request #43: Added netbeans to syncope/ide

GitHub user tmess567 opened a pull request:

    https://github.com/apache/syncope/pull/43

    Added netbeans to syncope/ide

    Made all the changes you asked for, but I am still facing a problem. The `ianal` plugin requires me to add the LEGAL and NOTICE files to the META-INF folder (according to what I understood) of the .nbm archive. Now these files are already present in the jar that the nbm archive encapsulates. I am unable to put these files in the META-INF folder of the nbm archive.
    
    I tried using the `nbmResources` configuration of the `nbm-maven-plugin` but this copies the files to the `netbeans` folder inside the archive. Using `../` to specify the parent directory doesn't work either.
    
    ` <nbmResources>`
    `    <nbmResource>`
    `      <targetPath>../META-INF/</targetPath>`
    `      <directory>src/main/resources/META-INF/</directory>`
    `    </nbmResource>`
    `  </nbmResources>`
    
    I am looking for a fix, but just wanted to put in this PR to let you know that I am working on it and to get any new ideas from you.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/tmess567/syncope SYNCOPE-808-2.0.X-2017

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/syncope/pull/43.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #43
    
----
commit 34e6db1d76353cabb58d2dc4287f561d64d00148
Author: Tushar <tu...@gmail.com>
Date:   2017-01-03T10:06:07Z

    Added netbeans to syncope/ide

----


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] syncope pull request #43: Added netbeans to syncope/ide

Posted by asfgit <gi...@git.apache.org>.
Github user asfgit closed the pull request at:

    https://github.com/apache/syncope/pull/43


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] syncope issue #43: Added netbeans to syncope/ide

Posted by ilgrosso <gi...@git.apache.org>.
Github user ilgrosso commented on the issue:

    https://github.com/apache/syncope/pull/43
  
    Linking to SYNCOPE-808


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] syncope issue #43: Added netbeans to syncope/ide

Posted by ilgrosso <gi...@git.apache.org>.
Github user ilgrosso commented on the issue:

    https://github.com/apache/syncope/pull/43
  
    I have examined the PR content, and fixed several things (related to the build process) in the [attached commit](https://github.com/apache/syncope/files/695609/0001-Several-pom-fixes-proper-LICENSE-and-NOTICE-package-.zip): please unzip and apply it to your own branch via `git am`.
    
    Once done that, I have actually tried the plugin with my own Netbeans.
    
    Right after plugin installation, I went to `Window > Apache Syncope` (no icon and in first place inside the menu, room to improve) and a new window appeared on the left side containing the `Apache Syncope` label with two more labels underneath (again, no icons): `Mail Template` (not 'templates'?) and `Report XSLTs` (why not 'templates'?).
    
    I could not find a place where to insert the actual Syncope deployment coordinates (base REST URL, username and password), so I went to the code and found that such info is stored inside a `UserData.txt` file - evidently supposed to be found in my home directory.
    In fact, I tried to click on "Reset Connection" and an exception was reported by Netbeans about such missing file.
    
    So, I created such file with the expected content and got new exception (see below).
    
    I do believe the whole server coordinates management must be properly handled, I would expect that Netbeans offers some mechanism to store a given plugin's preferences; hence URL, username and password could simply go there.
    
    ```
    Annotation: Offending classloader: ModuleCL@191f8315[org.apache.syncope.ide.syncope.ide.netbeans]
    Annotation: Offending classloader: ModuleCL@191f8315[org.apache.syncope.ide.syncope.ide.netbeans]
    Offending classloader: ModuleCL@191f8315[org.apache.syncope.ide.syncope.ide.netbeans]
    Offending classloader: ModuleCL@191f8315[org.apache.syncope.ide.syncope.ide.netbeans]
    Caused: java.util.MissingResourceException: No such bundle org.apache.syncope.ide.netbeans.view.Bundle
    	at org.openide.util.NbBundle.getBundle(NbBundle.java:451)
    	at org.openide.util.NbBundle.getBundle(NbBundle.java:399)
    	at org.openide.util.NbBundle.getMessage(NbBundle.java:642)
    	at org.apache.syncope.ide.netbeans.view.ServerDetailsView.initComponents(ServerDetailsView.java:60)
    	at org.apache.syncope.ide.netbeans.view.ServerDetailsView.<init>(ServerDetailsView.java:35)
    	at org.apache.syncope.ide.netbeans.view.ResourceExplorerTopComponent$4.actionPerformed(ResourceExplorerTopComponent.java:331)
    	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
    	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
    	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    	at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
    	at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
    	at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
    	at java.awt.Component.processMouseEvent(Component.java:6533)
    	at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
    	at java.awt.Component.processEvent(Component.java:6298)
    	at java.awt.Container.processEvent(Container.java:2236)
    	at java.awt.Component.dispatchEventImpl(Component.java:4889)
    	at java.awt.Container.dispatchEventImpl(Container.java:2294)
    	at java.awt.Component.dispatchEvent(Component.java:4711)
    	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4888)
    	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4525)
    	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4466)
    	at java.awt.Container.dispatchEventImpl(Container.java:2280)
    	at java.awt.Window.dispatchEventImpl(Window.java:2746)
    	at java.awt.Component.dispatchEvent(Component.java:4711)
    	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:758)
    	at java.awt.EventQueue.access$500(EventQueue.java:97)
    	at java.awt.EventQueue$3.run(EventQueue.java:709)
    	at java.awt.EventQueue$3.run(EventQueue.java:703)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:86)
    	at java.awt.EventQueue$4.run(EventQueue.java:731)
    	at java.awt.EventQueue$4.run(EventQueue.java:729)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
    	at java.awt.EventQueue.dispatchEvent(EventQueue.java:728)
    	at org.netbeans.core.TimableEventQueue.dispatchEvent(TimableEventQueue.java:159)
    [catch] at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
    	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
    	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
    	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
    	at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
    ```
    



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

[GitHub] syncope issue #43: Added netbeans to syncope/ide

Posted by ilgrosso <gi...@git.apache.org>.
Github user ilgrosso commented on the issue:

    https://github.com/apache/syncope/pull/43
  
    I have added a temporary [SYNCOPE-808 branch](https://github.com/apache/syncope/tree/SYNCOPE-808), based on `2_0_X` with the content of this PR + my attached commit above.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---