[JBoss JIRA] (FORGE-1264) Furnace CDI container requires implementation coupling to provide generic typed service
by Lincoln Baxter III (JIRA)
Lincoln Baxter III created FORGE-1264:
-----------------------------------------
Summary: Furnace CDI container requires implementation coupling to provide generic typed service
Key: FORGE-1264
URL: https://issues.jboss.org/browse/FORGE-1264
Project: Forge
Issue Type: Feature Request
Components: Furnace (Container)
Affects Versions: 2.0.0.Alpha13
Reporter: Lincoln Baxter III
ExportedInstanceLazyLoader.loadObject()
{code}
private Object loadObject() throws Exception
{
Object result = null;
for (Addon addon : registry.getAddons(ALL_STARTED))
{
if (ClassLoaders.containsClass(addon.getClassLoader(), serviceType))
{
ServiceRegistry serviceRegistry = addon.getServiceRegistry();
if (serviceRegistry.hasService(serviceType))
{
ExportedInstance<?> instance = serviceRegistry.getExportedInstance(serviceType);
if (instance != null)
{
if (instance instanceof ExportedInstanceImpl)
// FIXME remove the need for this implementation coupling
result = ((ExportedInstanceImpl<?>) instance).get(new LocalServiceInjectionPoint(
injectionPoint,
serviceType));
else
result = instance.get();
if (result != null)
break;
}
}
}
}
if (result == null)
{
throw new IllegalStateException("Remote service [" + serviceType.getName() + "] is not registered.");
}
return result;
}
{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
11 years, 3 months
[JBoss JIRA] (FORGE-1262) Support OS-level notifications
by George Gastaldi (JIRA)
George Gastaldi created FORGE-1262:
--------------------------------------
Summary: Support OS-level notifications
Key: FORGE-1262
URL: https://issues.jboss.org/browse/FORGE-1262
Project: Forge
Issue Type: Feature Request
Components: UI - API
Reporter: George Gastaldi
Fix For: 2.x Future
It would be nice to use OS-level notification mechanisms, like {{terminal-notifier}} in MacOSX and {{notify-send}} in Linux. Need to find an equivalent in Windows
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by Thomas Maslen (JIRA)
[ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin... ]
Thomas Maslen commented on FORGE-1261:
--------------------------------------
Another stack trace, just in case it sheds more/different light. This one is from my original attempt to run "rest endpoint-from-entity". The environment for this one isn't nearly as tidy as the repro-1261 environment above: this one was originally created under Eclipse (JBoss Tools 4.1.0 using Forge 1.3.3), then downloaded Forge 1.4.1 and configured Eclipse to use that instead. So it's a bit of a dog's breakfast. With that caveat...
[still-just-playing-5] still-just-playing-5 $ rest endpoint-from-entity
***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)
java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main" from local module loader @3bc0f2e5 (roots: C:\Users\Administrator\forge-distribution-1.4.1.Final\forge-distribution-1.4.1.Final\modules,C:\Users\Administrator\.forge\plugins,C:\Program Files\Eclipse-4.3.1\eclipse\plugins\org.jboss.tools.forge.runtime.ext_1.2.0.Final-v20130717-0647-B95\modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at freemarker.log.Log4JLoggerFactory.getLogger(Log4JLoggerFactory.java:65)
at freemarker.log.Logger.getLogger(Logger.java:284)
at freemarker.template.utility.SecurityUtilities.<clinit>(SecurityUtilities.java:67)
at freemarker.ext.beans.BeansWrapper.<clinit>(BeansWrapper.java:147)
at freemarker.template.ObjectWrapper.<clinit>(ObjectWrapper.java:69)
at freemarker.core.Configurable.<init>(Configurable.java:139)
at freemarker.template.Configuration.<init>(Configuration.java:142)
at freemarker.template.Configuration.<clinit>(Configuration.java:127)
at org.jboss.forge.spec.javaee.util.FreemarkerTemplateProcessor.<init>(FreemarkerTemplateProcessor.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:239)
at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:134)
at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:385)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:234)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:338)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:775)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:875)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:887)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:775)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:875)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:887)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:731)
at org.jboss.forge.shell.command.Execution.perform(Execution.java:145)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:796)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:819)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:609)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:186)[still-just-playing-5] still-just-playing-5 $
at java.lang.Thread.run(Thread.java:662)
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
> Key: FORGE-1261
> URL: https://issues.jboss.org/browse/FORGE-1261
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 1.4.1.Final
> Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
> Reporter: Thomas Maslen
> Priority: Minor
>
> Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
> java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by Thomas Maslen (JIRA)
[ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin... ]
Thomas Maslen commented on FORGE-1261:
--------------------------------------
OK. The cut-and-paste below is a continuation of the terminal session from my previous comment.
If I am really the only person that's being bitten by this then it's not a big deal, partly because I have an easy workaround (edit the module.xml file) and partly because it turns out that I don't need 1.4.1 anyway, I can just as well continue using 1.3.3 (because the new endpoint-generation strategy that uses DTOs doesn't handle my use case anyway).
Here is the stack trace from this run:
[repro-1261] repro-1261 $ set VERBOSE true
[repro-1261] repro-1261 $ rest setup
***ERROR*** Exception encountered: (type "set VERBOSE false" to disable stack traces)
java.lang.NoClassDefFoundError: Could not initialize class freemarker.template.Configuration
at org.jboss.forge.spec.javaee.util.FreemarkerTemplateProcessor.<init>(FreemarkerTemplateProcessor.java:29)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at org.jboss.weld.introspector.jlr.WeldConstructorImpl.newInstance(WeldConstructorImpl.java:239)
at org.jboss.weld.injection.ConstructorInjectionPoint.newInstance(ConstructorInjectionPoint.java:134)
at org.jboss.weld.bean.ManagedBean.createInstance(ManagedBean.java:385)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.produce(ManagedBean.java:234)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:338)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:775)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:875)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:887)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:775)
at org.jboss.weld.injection.FieldInjectionPoint.inject(FieldInjectionPoint.java:138)
at org.jboss.weld.util.Beans.injectBoundFields(Beans.java:875)
at org.jboss.weld.util.Beans.injectFieldsAndInitializers(Beans.java:887)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1$1.proceed(ManagedBean.java:182)
at org.jboss.weld.injection.InjectionContextImpl.run(InjectionContextImpl.java:54)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget$1.work(ManagedBean.java:176)
at org.jboss.weld.bean.ManagedBean$FixInjectionPoint.run(ManagedBean.java:142)
at org.jboss.weld.bean.ManagedBean$ManagedBeanInjectionTarget.inject(ManagedBean.java:170)
at org.jboss.weld.bean.ManagedBean.create(ManagedBean.java:339)
at org.jboss.weld.context.unbound.DependentContextImpl.get(DependentContextImpl.java:67)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:693)
at org.jboss.weld.manager.BeanManagerImpl.getReference(BeanManagerImpl.java:731)
at org.jboss.forge.shell.command.Execution.perform(Execution.java:145)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:109)
at org.jboss.forge.shell.command.fshparser.FSHRuntime.run(FSHRuntime.java:47)
at org.jboss.forge.shell.ShellImpl$ExecutorThread.run(ShellImpl.java:796)
at org.jboss.forge.shell.ShellImpl.execute(ShellImpl.java:819)
at org.jboss.forge.shell.ShellImpl.doShell(ShellImpl.java:609)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.bean.proxy.AbstractBeanInstance.invoke(AbstractBeanInstance.java:48)
at org.jboss.weld.bean.proxy.ProxyMethodHandler.invoke(ProxyMethodHandler.java:125)
at org.jboss.forge.shell.ShellImpl$Proxy$_$$_WeldClientProxy.doShell(ShellImpl$Proxy$_$$_WeldClientProxy.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.weld.util.reflection.SecureReflections$13.work(SecureReflections.java:305)
at org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInvocation(SecureReflectionAccess.java:163)
at org.jboss.weld.util.reflection.SecureReflections.invoke(SecureReflections.java:299)
at org.jboss.weld.introspector.jlr.WeldMethodImpl.invokeOnInstance(WeldMethodImpl.java:188)
at org.jboss.weld.introspector.ForwardingWeldMethod.invokeOnInstance(ForwardingWeldMethod.java:59)
at org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:198)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:282)
at org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:265)
at org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:234)
at org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:635)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:622)
at org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:616)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:186)
at java.lang.Thread.run(Thread.java:662)
[repro-1261] repro-1261 $
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
> Key: FORGE-1261
> URL: https://issues.jboss.org/browse/FORGE-1261
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 1.4.1.Final
> Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
> Reporter: Thomas Maslen
> Priority: Minor
>
> Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
> java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by Vineet Reynolds (JIRA)
[ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin... ]
Vineet Reynolds commented on FORGE-1261:
----------------------------------------
Hi [~tm2], could you please attach the stack trace? This not easily reproducible and it looks like a codepath is executed that activates the log4j logger for some unknown reason. This is not expected behavior and it would be better to fix this without modifying the JBoss module for Freemarker.
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
> Key: FORGE-1261
> URL: https://issues.jboss.org/browse/FORGE-1261
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 1.4.1.Final
> Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
> Reporter: Thomas Maslen
> Priority: Minor
>
> Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
> java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by Thomas Maslen (JIRA)
[ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin... ]
Thomas Maslen commented on FORGE-1261:
--------------------------------------
Here is a pretty minimal repro that works (well, successfully fails) for me.
To get the cleanest environment I could, I ran Forge 1.4.1 standalone (not in Eclipse) and started with a freshly created empty directory that hadn't been touched by Forge before.
In that directory, starting from my shell (ye olde Windows cmd.exe) with FORGE_HOME, JAVA_HOME and PATH configured (Forge 1.4.1, JDK 1.6.0_45), I executed "forge", "new-project --named repro-1261", and "rest setup" (see below for a cut-and-paste of the log). At that point "rest setup" failed with the same exception I initially noted against "rest endpoint-from-entity".
Herewith a cheesy cut-and-paste of the terminal log:
C:\Users\Administrator>mkdir forge-repro-1261
C:\Users\Administrator>cd forge-repro-1261
C:\Users\Administrator\forge-repro-1261>forge
_____
| ___|__ _ __ __ _ ___
| |_ / _ \| `__/ _` |/ _ \ \\
| _| (_) | | | (_| | __/ //
|_| \___/|_| \__, |\___|
|___/
JBoss Forge, version [ 1.4.1.Final ] - JBoss, by Red Hat, Inc. [ http://forge.jboss.org ]
[no project] forge-repro-1261 $ new-project --named repro-1261
? Use [C:\Users\Administrator\forge-repro-1261\repro-1261] as project directory? [Y/n]
***SUCCESS*** Created project [repro-1261] in new working directory [C:\Users\Administrator\forge-repro-1261\repro-1261]
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\pom.xml
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\src\main\java
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\src\test\java
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\src\main\resources
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\src\test\resources
Wrote C:\Users\Administrator\forge-repro-1261\repro-1261\src\main\java\com\example\repro1261
[repro-1261] repro-1261 $ rest setup
***ERROR*** Exception encountered: org.apache.log4j.Priority from [Module "org.freemarker:main" from local module loader @43462851 (roots: C:\Users\Administrato
r\forge-distribution-1.4.1.Final\forge-distribution-1.4.1.Final\modules,C:\Users\Administrator\.forge\plugins,C:\Users\Administrator\forge-repro-1261)] (type "set VERBOSE true" to enable stack traces)
[repro-1261] repro-1261 $
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
> Key: FORGE-1261
> URL: https://issues.jboss.org/browse/FORGE-1261
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 1.4.1.Final
> Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
> Reporter: Thomas Maslen
> Priority: Minor
>
> Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
> java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by George Gastaldi (JIRA)
[ https://issues.jboss.org/browse/FORGE-1261?page=com.atlassian.jira.plugin... ]
George Gastaldi commented on FORGE-1261:
----------------------------------------
Hi Thomas,
This is kinda awkward, because freemarker requires no dependencies at all and I couldn't manage to reproduce the issue you're facing.
Are you running this against an existent project? Could you paste the pom.xml (or perhaps the steps to create it?).
Best Regards,
George Gastaldi
> "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
> ------------------------------------------------------------------------------------
>
> Key: FORGE-1261
> URL: https://issues.jboss.org/browse/FORGE-1261
> Project: Forge
> Issue Type: Bug
> Components: Plugin API
> Affects Versions: 1.4.1.Final
> Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
> Reporter: Thomas Maslen
> Priority: Minor
>
> Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
> Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
> The long version:
> "rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
> However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
> Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
> java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
> (I have a complete stack trace but it doesn't add anything profound).
> Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months
[JBoss JIRA] (FORGE-1261) "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
by Thomas Maslen (JIRA)
Thomas Maslen created FORGE-1261:
------------------------------------
Summary: "rest endpoint-from-entity" fails, ClassNotFoundException: org.apache.log4j.Priority
Key: FORGE-1261
URL: https://issues.jboss.org/browse/FORGE-1261
Project: Forge
Issue Type: Bug
Components: Plugin API
Affects Versions: 1.4.1.Final
Environment: (Environment-independent, but...) JDK 1.6.0_45, Windows Server 2008 R2
Reporter: Thomas Maslen
Priority: Minor
Summary: the org.freemarker module should express a dependency on org.apache.log4j but doesn't
Workaround: edit modules/org/freemarker/main/module.xml and add the dependency
The long version:
"rest endpoint-from-entity" works fine in the version of Forge that is bundled in JBoss Tools 4.1 (Forge 1.3.3).
However, the DTO-based functionality added in FORGE-1060 looked tasty, so I downloaded Forge 1.4.1 and took it for a spin.
Regardless of whether I run 1.4.1 standalone or within JBoss Tools (Eclipse), "rest endpoint-from-entity" fails with
java.lang.ClassNotFoundException: org.apache.log4j.Priority from [Module "org.freemarker:main"
(I have a complete stack trace but it doesn't add anything profound).
Once I edited modules/org/freemarker/main/module.xml and added a dependency for the "org.apache.log4j" class, "rest endpoint-from-entity" ran happily and generated the expected classes.
--
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
11 years, 3 months