Food for thought: Seam Forge scaffolding is not 'continuous'
by Richard Kennard
Hi guys,
There's a nice looking presentation up at...
http://www.slideshare.net/jbaruch/pure-java-rad-and-scaffolding-tools-race
...that slightly 'dings' Seam Forge for not being 'continuous' (slide 43). I asked the authors what they meant by this. They said:
"The reason we stated SeamForge scaffolding as one-time is not because of Metawidget, but because of the fact that generated code inside the entities is
not separated from user-created one. e.g. - I generated Person entity, then changed stuff and added some stuff to it, and SeamForge's entities editing
feature is not usable for me anymore (Metawidget's forms rendering will still work, of course). Just for the contrast, Spring Roo separated the
user-generated content from auto-generated content by using Inter-type declarations. I can edit my entities the way I like and Roo can mess with its ITDs
the way it likes"
Just some food for thought?
Richard.
13 years, 2 months
Generate Code with Forge
by Rafael Pestano
Hi everyone,
this is my first mail to this list and id like to congratulate the Forge
team for their work.
my question is, what's the best way to generate .java, .xhtml files with
forge?
Id like to write a plugin which would receive an entity class as parameter
and generate some code on top of it, eg:
$ generate-service Person
$ generate-controller Person
$ generate-view Person
Where Person is a domain object, is it possible with Forge? if yes, whats
the best way?
thanks in advance.
--
<http://www.advancedit.com.br/>Att,
Rafael M. Pestano
Desenvolvedor Java Cia. de Processamento de Dados do Rio Grande do Sul
Graduando em Ciência da Computação UFRGS
13 years, 2 months
Changes to Forge Modules structure
by Lincoln Baxter, III
I've had to make some changes to the Forge modules structure. I'm not sure
how this will affect what's been done in Tools so far, but... this structure
will help us keep modularity in the future. The previous module structure
was not scalable and was causing plugin classloader leaks.
We can work out any issues, but hopefully there shouldn't be any :)
Thanks,
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 2 months
New Plugin: no class org/jboss/forge/project/facets/BaseFacet
by Mario Antollini
Hello,
I am part of the Switchyard community. We had a set of plugins working for
Forge1.0.0.Alpha4 and we now need to move forward to Forge1.0.0.Beta3.
In Alpha4 we were installing the plugins just copying the jars in the libs
dir. Now, to test the plugins, we need to instruct forge to install them
itself. When I execute the command "forge source-plugin <puglin_src_dir>"
everything works OK: the plugin gets compiled and installed in my .forge dir
inside my home dir.
However, after the installation, when I run forge, it does not start and
throws the following error:
log4j:ERROR A "org.apache.log4j.xml.DOMConfigurator" object is not
assignable to a "org.apache.log4j.spi.Configurator" variable.
log4j:ERROR The class "org.apache.log4j.spi.Configurator" was loaded by
log4j:ERROR [ModuleClassLoader for Module "org.jboss.forge:main" from local
module loader @335856a5 (roots: D:\tools\forge-1.0.0.Beta3\modules,C:\User
s\mario\.forge\plugins)] whereas object of type
log4j:ERROR "org.apache.log4j.xml.DOMConfigurator" was loaded by
[ModuleClassLoader for Module
"org.switchyard.switchyard-forge-plugin.dependencies:0.
3.0-SNAPSHOT-bee75bd4-471b-49c3-9cd2-d1ca8b531098" from local module loader
@335856a5 (roots: D:\tools\forge-1.0.0.Beta3\modules,C:\Users\mario\.forge
\plugins)].
log4j:ERROR Could not instantiate configurator
[org.apache.log4j.xml.DOMConfigurator].
log4j:WARN No appenders could be found for logger (org.jboss.weld.Version).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
Exception in thread "Thread-2" java.lang.LinkageError: Failed to link
org/switchyard/tools/forge/AbstractFacet (Module
"org.switchyard.switchyard-forg
e-plugin.dependencies:0.3.0-SNAPSHOT-bee75bd4-471b-49c3-9cd2-d1ca8b531098"
from local module loader @335856a5 (roots: D:\tools\forge-1.0.0.Beta3\modul
es,C:\Users\mario\.forge\plugins))
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:401)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:26
1)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:
76)
at org.jboss.modules.Module.loadModuleClass(Module.java:590)
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:333)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoad
er.java:310)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java
:103)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
at
org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:26
1)
at
org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:
76)
at org.jboss.modules.Module.loadModuleClass(Module.java:590)
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:183)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoad
er.java:310)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java
:115)
at
org.jboss.forge.shell.CompositeClassLoader.findClass(CompositeClassLoader.ja
va:72)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoad
er.java:310)
at
org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java
:103)
at
org.jboss.weld.environment.se.discovery.url.WeldSEResourceLoader.classForNam
e(WeldSEResourceLoader.java:44)
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:662)
Caused by: java.lang.NoClassDefFoundError:
org/jboss/forge/project/facets/BaseFacet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at
org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:397)
... 32 more
Caused by: java.lang.ClassNotFoundException:
org.jboss.forge.project.facets.BaseFacet from [Module
"org.switchyard.switchyard-forge-plugin.dependencie
s:0.3.0-SNAPSHOT-bee75bd4-471b-49c3-9cd2-d1ca8b531098" from local module
loader @335856a5 (roots:
D:\tools\forge-1.0.0.Beta3\modules,C:\Users\mario\.f
orge\plugins)]
at
org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:191)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:361)
at
org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentCl
assLoader.java:333)
My plugin depends on forge-shell.jar:
<dependency>
<groupId>org.jboss.forge</groupId>
<artifactId>forge-shell</artifactId>
<version>1.0.0.Beta3</version>
<scope>provided</scope>
</dependency>
So, I see the problem is that org/jboss/forge/project/facets/BaseFacet is
not being found during Forge startup. But why is that? I can see
forge-shell-api.jar (the jar containing the required class) is in the
<forge-1.0.0.Beta3>\modules\org\jboss\forge\shell-api\main dir
I would appreciate any good tip!
Thanks in advance
Mario
13 years, 2 months
mvn-plugin Forge command
by Tom Cunningham
Hi,
I'd like to take a look at getting mvn-plugin to work for SwitchYard - I
started taking a look at ForgePlugin.java and noticed that it was
commented out. Is there any project history with regards to
mvn-plugin that would be useful to know? Was it working at some
point and then regressed and then subsequently commented out? Or is
it just in mid-implementation?
It looks like it has arguments spec'ed out - are these the command line
arguments desired?
Thanks,
Tom
13 years, 2 months
Fwd: [JBoss JIRA] Updated: (SEAMFORGE-211) Support structured options in @Commands
by Max Rydahl Andersen
Any recommendations on how we avoid just showing a dull long list in the IDE when no grouping possible ?
/max
Begin forwarded message:
> From: "Lincoln Baxter III (JIRA)" <jira-events(a)lists.jboss.org>
> Subject: [JBoss JIRA] Updated: (SEAMFORGE-211) Support structured options in @Commands
> Date: September 28, 2011 21:04:26 GMT+02:00
> To: max.andersen(a)redhat.com
>
>
> [ https://issues.jboss.org/browse/SEAMFORGE-211?page=com.atlassian.jira.plu... ]
>
> Lincoln Baxter III updated SEAMFORGE-211:
> -----------------------------------------
>
> Fix Version/s: Future
>
>
>> Support structured options in @Commands
>> ---------------------------------------
>>
>> Key: SEAMFORGE-211
>> URL: https://issues.jboss.org/browse/SEAMFORGE-211
>> Project: Seam Forge
>> Issue Type: Feature Request
>> Reporter: Max Rydahl Andersen
>> Fix For: Future
>>
>>
>> ver considered allowing something like
>> generateEntities(@Option String table, @Option String catalog, @Option @Option String schema, @NestedOption final JPADataSource datasource)
>> class DataSource {
>> public DataSource(@Option(...) String name, @Option(..) password, @Option(..) ..)
>> ...
>> )
>> Which would actually provide some more nested structure and be useful in ui construction in IDE plus better naming of things even in shell ?
>> Would also be good to be able to reference "default" @JPADatasource should be "production", "dev" or "test" if SEAMFORGE-210 comes to life?
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
>
/max
http://about.me/maxandersen
13 years, 2 months