Class Loading Error: ResourceLoadingException
by Ryan Bradley
Hi all,
I am trying to use seam-render in my plugin, for classes such as
TemplateCompiler. However, when I include it in the project and try to
build the plugin in Forge, I get a strange ResourceLoadingException
which suggests that the class is not being found. Can anyone shed some
light on this problem?
Thanks,
Ryan
13 years
WindowBlu for Forge
by Mike Brock
So, I've been back working on Forge Core -- scripting and internal API improvements. One thing that upset me was that Forge lacked a sub-buffering facility for console output, so you could intercept console output and do fun stuff like add a status bar. Well, Forge has this limitation no longer -- at least not in my branch (https://github.com/mikebrock/core)
Haven't pushed the changes upstream, mainly because I don't know if they break JBoss Tools or not -- pretty sure they don't break anything else.
Anyways, here's my first demo plugin that takes advantage of these new features in the shell API: https://github.com/mikebrock/core
Mike.
13 years
Re: [forge-dev] JPA review on Forge reverse engineering
by Lincoln Baxter
Great! First-question:
https://issues.jboss.org/browse/FORGE-372
Is this a good idea? (I have an opinion, but want to hear others.)
~Lincoln
----- Original Message -----
From: "Jonathan Fuerth" <jfuerth(a)redhat.com>
To: "Rodney Russ" <rruss(a)redhat.com>
Cc: "Lincoln Baxter" <lbaxter(a)redhat.com>, "Xavier Coulon" <xcoulon(a)redhat.com>
Sent: Tuesday, November 22, 2011 2:13:06 PM
Subject: Re: JPA review on Forge reverse engineering
I have loads of Java-and-SQL experience and a bit of Hibernate from way-back-when. I've only played briefly with JPA (in the context of a Google App Engine project in my spare time.)
I'd be happy to discuss stuff with Lincoln if he'd like my input from this perspective!
-Jonathan
----- Original Message -----
From: "Rodney Russ" <rruss(a)redhat.com>
To: "Jonathan Fuerth" <jfuerth(a)redhat.com>, "Xavier Coulon" <xcoulon(a)redhat.com>
Cc: "Lincoln Baxter" <lbaxter(a)redhat.com>
Sent: Monday, November 14, 2011 3:55:51 PM
Subject: JPA review on Forge reverse engineering
Hey Jonathan and Xavier,
I'm pinging you guys because Lincoln is looking for someone with practical (pragmatic) JPA experience from the real world. You guys are the last ones on the team to come from developer shops and have the best chance at still being able to think like a developer. :)
Do you guys have enough JPA experience that you could work with Lincoln on reviewing what the reverse engineering functionality in Forge provides?
Thanks,
Rodney
13 years, 1 month
debug output from bean discovery during startup
by Keith Babo
Hey,
I get about 60 lines of the following debug output (snipped for brevity) when starting Forge with one of our plugins installed. The plugin works just fine after this error is reported. My guess is that this is really just a harmless discovery error, but it looks pretty ugly from a user standpoint. Is there an option/setting for disabling or redirecting this output? FWIW, the class mentioned in the stack trace is present within the module.
thanks,
keith
2011-11-23 20:56:37 ClassLoading [DEBUG] WELD-000119 Not generating any bean definitions from org.switchyard.component.bpm.config.model.v1.V1ProcessActionModel because of underlying class loading error
2011-11-23 20:56:37 ClassLoading [DEBUG] catching
org.jboss.weld.resources.spi.ResourceLoadingException: java.lang.NoClassDefFoundError: org/switchyard/component/bpm/common/ProcessActionType
at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:70)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:82)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:134)
at org.jboss.weld.bootstrap.BeanDeployment.createBeans(BeanDeployment.java:191)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:368)
at org.jboss.weld.environment.se.Weld.initialize(Weld.java:92)
at org.jboss.forge.shell.Bootstrap$1.run(Bootstrap.java:82)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.lang.NoClassDefFoundError: org/switchyard/component/bpm/common/ProcessActionType
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
at java.lang.Class.getDeclaredMethods(Class.java:1791)
at org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForName(WeldSEResourceLoader.java:59)
... 7 more
Caused by: java.lang.ClassNotFoundException: org.switchyard.component.bpm.common.ProcessActionType from [Module "org.switchyard.switchyard-forge-plugin:0.3.0-SNAPSHOT" from local module loader @2bb5340c (roots: /opt/forge-1.0.0.Beta3/modules,/Users/kbabo/.forge/plugins)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:361)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:333)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:310)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:103)
... 11 more
13 years, 1 month
How does ocpsoft.rewrite get into generated pom.xml?
by Richard Kennard
Hi guys,
While refactoring a bunch of the UI scaffolding code, I seem to have broken the bit where it injects...
<dependency>
<groupId>com.ocpsoft.rewrite</groupId>
<artifactId>rewrite-impl-servlet</artifactId>
<version>1.0.0.Alpha10</version>
</dependency>
...into the generated pom.xml. It is still building the URLRewriteConfiguration.java, but the overall project won't build because of missing imports.
Where should I look to fix this bit?
Richard.
13 years, 1 month
Re: [forge-dev] Spring Plugin for Forge
by Lincoln Baxter, III
Hey Ryan,
Copying forge-dev so everyone can give thoughts. We (I) really need to get
the website up with the tutorials so things like this are more
straightforward. Sorry!
If you use the built-in "new-plugin" command, you get the POM creation
stuff for free. I don't see a reason to duplicate that. It'll basically
just give you a java maven project, which can then be customized using the
DependencyFacet, and other facets like JavaSourceFacet.
Mostly we don't assume we need to create projects, because we just operate
on a "new-project" or any other existing project.
For examples of this, take a look at the javaee-impl/ module in the forge
core/ project on GitHub. This is a pretty comprehensive example of the
intended architecture (facets to abstract functionality away from the
project, then plugins to interact with the facets.)
Glad to see this! Looking forward to doing some spring stuff!
~Lincoln
On Mon, Nov 14, 2011 at 10:52 PM, Ryan Bradley <rbradley(a)redhat.com> wrote:
> Hi Lincoln,
>
> I'm not sure if you remember, but Marius introduced us at the JBoss
> face-to-face meeting in Toronto a few months ago. I've just started
> working on a Forge plugin that can be used to create Spring web
> applications.
>
> However, Marius doesn't have much experience with the Forge API, so I was
> wondering if I could ask you a question. I was wondering how I could use
> Forge to create and edit new files. For example, when the user creates a
> new project, the plugin should create files such as a POM for the web app.
> If there's a simple answer, or a good spot to look within the Forge core,
> that would be much appreciated.
>
> Thanks,
> Ryan
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 1 month