[JBoss JIRA] (FORGE-1644) Addons should have a storage area
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1644?page=com.atlassian.jira.plugin... ]
George Gastaldi reassigned FORGE-1644:
--------------------------------------
Assignee: George Gastaldi
> Addons should have a storage area
> ---------------------------------
>
> Key: FORGE-1644
> URL: https://issues.jboss.org/browse/FORGE-1644
> Project: Forge
> Issue Type: Feature Request
> Components: Furnace (Container)
> Affects Versions: 2.1.1.Final
> Reporter: George Gastaldi
> Assignee: George Gastaldi
> Fix For: 2.x Future
>
>
> If would be nice if each addon had a storage area (not temporary) to store files relevant to the addon execution. This area could live under {{USER_HOME/.forge/store/addon_name}}.
> Here is an example code on how to access it:
> {code}
> @Inject Addon addon;
> File storageArea = addon.getStorageDirectory();
> {code}
> Examples:
> - The current config.xml file could be in the storage directory of the configuration addon
> - The shell specific files (export, alias, history) could be in the storage directory of the shell addon
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (FORGE-1644) Addons should have a storage area
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1644?page=com.atlassian.jira.plugin... ]
George Gastaldi updated FORGE-1644:
-----------------------------------
Description:
If would be nice if each addon had a storage area (not temporary) to store files relevant to the addon execution. This area could live under {{USER_HOME/.forge/store/addon_name}}.
Here is an example code on how to access it:
{code}
@Inject Addon addon;
File storageArea = addon.getStorageDirectory();
{code}
Examples:
- The current config.xml file could be in the storage directory of the configuration addon
- The shell specific files (export, alias, history) could be in the storage directory of the shell addon
was:
If would be nice if each addon had a storage area (not temporary) to store files relevant to the addon execution. This area could live under {{FORGE_HOME/store/addon_name}}.
Here is an example code on how to access it:
{code}
@Inject Addon addon;
File storageArea = addon.getStorageDirectory();
{code}
Examples:
- The current config.xml file could be in the storage directory of the configuration addon
- The shell specific files (export, alias, history) could be in the storage directory of the shell addon
> Addons should have a storage area
> ---------------------------------
>
> Key: FORGE-1644
> URL: https://issues.jboss.org/browse/FORGE-1644
> Project: Forge
> Issue Type: Feature Request
> Components: Furnace (Container)
> Affects Versions: 2.1.1.Final
> Reporter: George Gastaldi
> Fix For: 2.x Future
>
>
> If would be nice if each addon had a storage area (not temporary) to store files relevant to the addon execution. This area could live under {{USER_HOME/.forge/store/addon_name}}.
> Here is an example code on how to access it:
> {code}
> @Inject Addon addon;
> File storageArea = addon.getStorageDirectory();
> {code}
> Examples:
> - The current config.xml file could be in the storage directory of the configuration addon
> - The shell specific files (export, alias, history) could be in the storage directory of the shell addon
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (FORGE-1644) Addons should have a storage area
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1644:
--------------------------------------
Summary: Addons should have a storage area
Key: FORGE-1644
URL: https://issues.jboss.org/browse/FORGE-1644
Project: Forge
Issue Type: Feature Request
Components: Furnace (Container)
Affects Versions: 2.1.1.Final
Reporter: George Gastaldi
Fix For: 2.x Future
If would be nice if each addon had a storage area (not temporary) to store files relevant to the addon execution. This area could live under {{FORGE_HOME/store/addon_name}}.
Here is an example code on how to access it:
{code}
@Inject Addon addon;
File storageArea = addon.getStorageDirectory();
{code}
Examples:
- The current config.xml file could be in the storage directory of the configuration addon
- The shell specific files (export, alias, history) could be in the storage directory of the shell addon
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (FORGE-1643) ClassNotFoundException when running Furnace-SE under Wildfly
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1643:
--------------------------------------
Summary: ClassNotFoundException when running Furnace-SE under Wildfly
Key: FORGE-1643
URL: https://issues.jboss.org/browse/FORGE-1643
Project: Forge
Issue Type: Enhancement
Components: Parsers / File Manipulation
Affects Versions: 2.1.1.Final
Reporter: George Gastaldi
Fix For: 2.x Future
https://github.com/forgeide/forgeide is an attempt to run Furnace as a service inside a web application. Furnace starts up, the following exception is thrown:
{code}
14:27:54,813 ERROR [stderr] (Furnace Container ) Exception in thread "Furnace Container " javax.xml.parsers.FactoryConfigurationError: Provider __redirected.__DocumentBuilderFactory not found
14:27:54,814 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:127)
14:27:54,814 ERROR [stderr] (Furnace Container ) at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:115)
14:27:54,815 ERROR [stderr] (Furnace Container ) at org.jboss.forge.parser.xml.XMLParser.parse(XMLParser.java:81)
14:27:54,815 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.getXmlRoot(AddonRepositoryImpl.java:585)
14:27:54,815 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.access$000(AddonRepositoryImpl.java:51)
14:27:54,816 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$13.call(AddonRepositoryImpl.java:509)
14:27:54,816 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$13.call(AddonRepositoryImpl.java:501)
14:27:54,817 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,817 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.listEnabled(AddonRepositoryImpl.java:500)
14:27:54,817 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$14.call(AddonRepositoryImpl.java:545)
14:27:54,818 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl$14.call(AddonRepositoryImpl.java:541)
14:27:54,818 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,819 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonRepositoryImpl.listEnabledCompatibleWithVersion(AddonRepositoryImpl.java:540)
14:27:54,819 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.ImmutableAddonRepository.listEnabledCompatibleWithVersion(ImmutableAddonRepository.java:87)
14:27:54,820 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.graph.CompleteAddonGraph.getAllEnabledAddonsInAllRepositories(CompleteAddonGraph.java:81)
14:27:54,820 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.graph.CompleteAddonGraph.<init>(CompleteAddonGraph.java:26)
14:27:54,820 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonLifecycleManager$4.call(AddonLifecycleManager.java:194)
14:27:54,821 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonLifecycleManager$4.call(AddonLifecycleManager.java:182)
14:27:54,821 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.LockManagerImpl.performLocked(LockManagerImpl.java:48)
14:27:54,822 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.addons.AddonLifecycleManager.forceUpdate(AddonLifecycleManager.java:181)
14:27:54,822 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.FurnaceImpl.start(FurnaceImpl.java:192)
14:27:54,822 ERROR [stderr] (Furnace Container ) at org.jboss.forge.furnace.impl.FurnaceImpl$1.run(FurnaceImpl.java:123)
14:27:54,823 ERROR [stderr] (Furnace Container ) Caused by: java.lang.ClassNotFoundException: __redirected/__DocumentBuilderFactory
14:27:54,823 ERROR [stderr] (Furnace Container ) at java.lang.Class.forName0(Native Method)
14:27:54,823 ERROR [stderr] (Furnace Container ) at java.lang.Class.forName(Class.java:270)
14:27:54,824 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.FactoryFinder.getProviderClass(FactoryFinder.java:123)
14:27:54,824 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:178)
14:27:54,824 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:147)
14:27:54,825 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:219)
14:27:54,825 ERROR [stderr] (Furnace Container ) at javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:121)
14:27:54,825 ERROR [stderr] (Furnace Container ) ... 21 more
{code}
An elegant solution would be xml-parser to pack its own JAXP implementation, not relying on external confguration.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month
[JBoss JIRA] (FORGE-1623) Could not register resource monitor with track-changes
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1623?page=com.atlassian.jira.plugin... ]
George Gastaldi closed FORGE-1623.
----------------------------------
Resolution: Done
> Could not register resource monitor with track-changes
> ------------------------------------------------------
>
> Key: FORGE-1623
> URL: https://issues.jboss.org/browse/FORGE-1623
> Project: Forge
> Issue Type: Bug
> Components: UI - Shell
> Affects Versions: 2.1.1.Final
> Reporter: Antonio Goncalves
> Assignee: George Gastaldi
> Priority: Critical
> Fix For: 2.1.2.Final
>
>
> Creating a project with {{track-changes}} creates an exception :
> {code}
> [Forge]$ project-new --named test1
> ***SUCCESS*** Project named 'test1' has been created.
> [test1]$ track-changes
> ***SUCCESS*** Resource change tracking is ON.
> [test1]$ cd ..
> [Forge]$ project-new --named test2
> ***ERROR*** Could not register resource monitor
> [Forge]$
> {code}
> The exception is the following :
> {code}
> 19:06:33,624 SEVERE [org.jboss.forge.addon.shell.aesh.CommandAdapter] (AeshProcess: 1) Failed to execute [project-new] due to exception.: java.lang.IllegalStateException: Could not register resource monitor
> at org.jboss.forge.addon.resource.monitor.FileMonitor.registerMonitor(FileMonitor.java:90) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.resource.ResourceFactoryImpl.monitor(ResourceFactoryImpl.java:100) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.resource.ResourceFactoryImpl.monitor(ResourceFactoryImpl.java:86) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.resource.AbstractFileResource.monitor(AbstractFileResource.java:363) [resources-api-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.cacheProject(ProjectFactoryImpl.java:404)
> at org.jboss.forge.addon.projects.impl.ProjectFactoryImpl.createProject(ProjectFactoryImpl.java:316)
> at org.jboss.forge.addon.projects.ui.NewProjectWizard.execute(NewProjectWizard.java:375)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.7.0_45]
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) [rt.jar:1.7.0_45]
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [rt.jar:1.7.0_45]
> at java.lang.reflect.Method.invoke(Method.java:606) [rt.jar:1.7.0_45]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor$1.call(ClassLoaderInterceptor.java:59) [furnace-proxy-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.furnace.util.ClassLoaders.executeIn(ClassLoaders.java:34) [furnace-api-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.furnace.proxy.ClassLoaderInterceptor.invoke(ClassLoaderInterceptor.java:75) [furnace-proxy-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.projects.ui.NewProjectWizard_$$_javassist_1bff18e1-ed11-48bb-8b1e-3a451b01843a.execute(NewProjectWizard_$$_javassist_1bff18e1-ed11-48bb-8b1e-3a451b01843a.java)
> at org.jboss.forge.addon.ui.impl.controller.WizardCommandControllerImpl.execute(WizardCommandControllerImpl.java:153) [ui-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.ui.impl.controller.NoUIWizardControllerDecorator.execute(NoUIWizardControllerDecorator.java:152) [ui-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.shell.aesh.CommandAdapter.execute(CommandAdapter.java:69) [shell-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.aesh.console.AeshConsoleImpl$AeshConsoleCallbackImpl.execute(AeshConsoleImpl.java:292) [aesh-0.49.jar:0.49]
> at org.jboss.aesh.console.AeshProcess.run(AeshProcess.java:36) [aesh-0.49.jar:0.49]
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
> at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]
> Caused by: java.nio.file.NoSuchFileException: /Users/antoniombp/Documents/Code/temp/Forge/test2
> at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86) [rt.jar:1.7.0_45]
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102) [rt.jar:1.7.0_45]
> at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107) [rt.jar:1.7.0_45]
> at sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(UnixFileAttributeViews.java:55) [rt.jar:1.7.0_45]
> at sun.nio.fs.UnixFileSystemProvider.readAttributes(UnixFileSystemProvider.java:144) [rt.jar:1.7.0_45]
> at java.nio.file.Files.readAttributes(Files.java:1684) [rt.jar:1.7.0_45]
> at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:105) [rt.jar:1.7.0_45]
> at java.nio.file.FileTreeWalker.walk(FileTreeWalker.java:69) [rt.jar:1.7.0_45]
> at java.nio.file.Files.walkFileTree(Files.java:2600) [rt.jar:1.7.0_45]
> at java.nio.file.Files.walkFileTree(Files.java:2633) [rt.jar:1.7.0_45]
> at org.jboss.forge.addon.resource.monitor.FileWatcher.registerAll(FileWatcher.java:122) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.resource.monitor.FileWatcher.register(FileWatcher.java:86) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> at org.jboss.forge.addon.resource.monitor.FileMonitor.registerMonitor(FileMonitor.java:86) [resources-impl-2.1.1.Final.jar:2.1.1.Final]
> ... 22 more
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 1 month