Adding a field of array type
by Ivan St. Ivanov
Hi folks,
I wonder is it possible to add a field to a JavaClass and to set an array
as its type. The setType(String) method does not support arrays yet and I
don't want to use the other two variants of this method (taking Class and
JavaResource parameters).
I looked at the mentioned method (setType(String)). And found a suitable
place where I could add the support for arrays. However, I'm afraid that
JDT's AST class does not have a convenient newArray....() method.
Or maybe I'm missing something?
Cheers,
Ivan
12 years, 5 months
What to do about our little Windows joke...?
by Lincoln Baxter, III
Hey everyone... we've recently gotten some critical feedback about our
little "Windows? Really? Ok..." joke.
https://community.jboss.org/message/749952#749952
What are your thoughts? Perhaps we could make this a little less targeted
by turning it into more of a pluggable feature, where different messages
show up randomly based on runtime conditions?
Like sometimes it might say, "Just 32 bits?" or "Sun still makes Java?" or
"Linux... nice... does your family know?" or "OSX? What is a lion, anyway?"
Would like to hear ideas. But I certainly don't want to give up the
character :)
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 5 months
LGPL to EPL
by Lincoln Baxter, III
Ok, it seems we've collected approvals from everyone we needed :) so we are
100% OK to switch Forge to the EPL:
http://en.wikipedia.org/wiki/Eclipse_Public_License
We will be beginning this transition soon, at which point we will see some
very large commits :) when this occurs, if you are working on the Forge
core runtime, you will need to update your Formatter profile to use the new
license. If you are working on separate plugins, you don't need to change
anything, since plugins can be licensed whatever under you wish and even
closed-sourced (this is the primary reason for the change.)
~Lincoln
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 5 months
JBoss AS7 Plugin Improvements
by Lincoln Baxter, III
Hey James,
Awesome work on the AS7 plugin enhancements. I have a few comments :)
It looks like pressing CTRL-C kills the appserver, which may or may not be
a good thing.
[as7-test] as7-test $
> [as7-test] as7-test $ [killed]
> [as7-test] as7-test $ 16:57:46,157 INFO [org.jboss.as.osgi] (MSC service
> thread 1-3) JBAS011942: Stopping OSGi Framework
> 16:57:46,188 INFO [org.jboss.as.logging] JBAS011503: Restored bootstrap
> log handlers
> 16:57:46,200 INFO [com.arjuna.ats.jbossatx] ARJUNA032018: Destroying
> TransactionManagerService
> 16:57:46,204 INFO [com.arjuna.ats.jbossatx] ARJUNA032014: Stopping
> transaction recovery manager
> 16:57:46,214 INFO [org.jboss.as] JBAS015950: JBoss AS 7.1.1.Final
> "Brontes" stopped in 65ms
>
> [as7-test] as7-test $
>
Also looks like once that is done, when you exit the project, the plugin
tries to shut down the server?
[as7-test] as7-test $
> [as7-test] as7-test $ cd ..
> ***INFO*** An event occurred that requires the server be shutdown.
> [no project] Desktop $
>
Also, when downloading AS7, you probably want to activate the shell Wait:
https://github.com/forge/core/blob/master/shell/src/test/java/org/jboss/f...
[generated-pom] as7 $
> [generated-pom] as7 $ as7 setup
> ? The Java Home
> '/System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home' is
> already set, would you like to override it? [y/N]
> ? A default version of 7.1.1.Final is already set, would you like to
> override it? [y/N]
> ? Enter path for JBoss AS or leave blank to download:
> ? You are about to download JBoss AS 7.1.1.Final to
> '/Users/lbaxter/Desktop/as7/target/jboss-as-dist' which could take a while.
> Would you like to continue? [Y/n]
> ***SUCCESS*** Installed [AS7ServerFacet] successfully.
> [generated-pom] as7 $
>
Looks great!
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 5 months
Bug with AS7 plugin
by Lincoln Baxter, III
Looks like there is something amiss here. Possible bug in Forge. Mind
taking a look?
This happens when running "new-project --named blah" while the AS7 plugin
is installed. I'm guessing that the AS7 plugin is trying to reference a
scoped configuration object in the Facet isInstalled() method, which may or
may not work at this stage, which may or may not be something we need to
fix in forge.
~Lincoln
Caused by: java.lang.reflect.InvocationTargetException
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.solder.unwraps.UnwrapsInvocationHandler.invoke(UnwrapsInvocationHandler.java:82)
at
org.javassist.tmp.java.lang.Object_$$_javassist_0.getScopedConfiguration(Object_$$_javassist_0.java)
at
org.jboss.as.forge.ProjectServerConfigurator.hasConfiguration(ProjectServerConfigurator.java:78)
at org.jboss.as.forge.AS7ServerFacet.isInstalled(AS7ServerFacet.java:85)
at
org.jboss.forge.project.BaseProject.registerFacet(BaseProject.java:167)
at
org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:222)
at
org.jboss.forge.project.services.ProjectFactory.registerSingleFacet(ProjectFactory.java:200)
at
org.jboss.forge.project.services.ProjectFactory.registerFacets(ProjectFactory.java:192)
at
org.jboss.forge.project.services.ProjectFactory.findProject(ProjectFactory.java:251)
at
org.jboss.forge.project.services.ProjectFactory.containsProject(ProjectFactory.java:230)
at
org.jboss.forge.shell.plugins.builtin.NewProjectPlugin.create(NewProjectPlugin.java:156)
... 36 more
Caused by: java.lang.IllegalStateException: No delegates were found in
configuration - cannot retrieve scope
at
org.jboss.forge.shell.env.ScopedConfigurationAdapter.getScopedConfiguration(ScopedConfigurationAdapter.java:76)
... 51 more
--
Lincoln Baxter, III
http://ocpsoft.org
"Simpler is better."
12 years, 5 months
trying to close the gap on a SwitchYard demo
by Dan Allen
Keith,
I've been going through the SwitchYard video to get the Greeting service
working starting w/ Forge [1]. However, I keep hitting the same problem
when I try to run the first test:
16:22:46,228 ERROR [work.SwitchYardServiceTaskHandler] serviceRef
({urn:switchyard:application:greeting}Hello) == null
16:22:46,228 ERROR [work.SwitchYardServiceTaskHandler] serviceRef
({urn:switchyard:application:greeting}Goodbye) == null
I follow the steps exactly, the only difference is that I'm not using the
BPM2 visual editor to create the service because I can't seem to get it to
work.
new-project --named greeting --topLevelPackage org.example.greeting
project install-facet switchyard
project install-facet switchyard.bpm
bpm-service create --serviceName Greeting
project install-facet switchyard.bean
bean-service create --serviceName Hello
bean-service create --serviceName Goodbye
switchyard create-service-test --serviceName Greeting
# edit code to use System.out.println in HelloBean and GoodbyeBean and
change Greeter interface
# copied attached bpmn file from the forums
test
If you have a better simple Forge-based example instead, I'll take that too.
-Dan
[1] http://vimeo.com/29659525
--
Dan Allen
Principal Software Engineer, Red Hat | Author of Seam in Action
Registered Linux User #231597
http://google.com/profiles/dan.j.allen
http://mojavelinux.com
http://mojavelinux.com/seaminaction
12 years, 5 months
forge list-commands
by Burr Sutter
Last Friday, while in Boston, we ran a few dozen people through our "Getting Started Tutorial" - a hands-on lab
http://www.jboss.org/jdf/examples/ticket-monster/tutorial/Introduction/
I made several notes on "gotchas" that students struggled with and one of them was forge's "list-commands".
In the tutorial, we instruct the student to use the "entity" command and one student said "hey, this list-commands is broken, entity is not listed".
and my immediate response was "yes, list-commands rarely tells me what I want" and the students response was "then how do I know what Forge offers me" and my response was "you have to read a document, like this tutorial we provided".
The light-bulb turns on - we must have a usability problem :-)
At this time, People mostly wish to use Forge to:
- new project
- new entity (with bean validations)
- rest endpoints
- jsf scaffolding
- reverse engineer a database
So, we need a better list-commands and better docs that "list out the commands". Based on current "docs", Forge only does a few things - https://docs.jboss.org/author/display/FORGE/Samples :-)
12 years, 5 months
Forge meeting 07-04-2012
by George Gastaldi
Minutes: http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.2012-07-04-13.58.html
Minutes (text): http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.2012-07-04-13.58.txt
Log: http://transcripts.jboss.org/meeting/irc.freenode.org/forge/2012/forge.2012-07-04-13.58.log.html
12 years, 5 months