Forge fails to start
by Zorgan
Hi,
using win32 XP, jdk 1.6.0_24
With tha Alpha3 build forge fails to start with the following stack trace :
*C:\forge-1.0.0.Alpha3\bin>forge
Exception in thread "Thread-0" javax.enterprise.event.ObserverException*
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 java.lang.Class.newInstance0(Class.java:355)
at java.lang.Class.newInstance(Class.java:308)
at
org.jboss.weld.util.reflection.SecureReflections$16.work(SecureReflections.java:395)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.run(SecureReflectionAccess.java:54)
at
org.jboss.weld.util.reflection.SecureReflectionAccess.runAsInstantiation(SecureReflectionAccess.java:216)
at
org.jboss.weld.util.reflection.SecureReflections.newInstance(SecureReflections.java:390)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:40)
at org.jboss.weld.injection.Exceptions.rethrowException(Exceptions.java:92)
at
org.jboss.weld.injection.MethodInjectionPoint.invokeOnInstanceWithSpecialValue(MethodInjectionPoint.java:214)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:270)
at
org.jboss.weld.event.ObserverMethodImpl.sendEvent(ObserverMethodImpl.java:253)
at
org.jboss.weld.event.ObserverMethodImpl.notify(ObserverMethodImpl.java:222)
at
org.jboss.weld.manager.BeanManagerImpl.notifyObservers(BeanManagerImpl.java:632)
at
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:619)
at
org.jboss.weld.manager.BeanManagerImpl.fireEvent(BeanManagerImpl.java:613)
at org.jboss.seam.forge.shell.Bootstrap$2.run(Bootstrap.java:91)
at java.lang.Thread.run(Thread.java:662)
*Caused by: java.lang.NoClassDefFoundError: Could not initialize class
org.fusesource.jansi.internal.Kernel32*
at
org.fusesource.jansi.internal.WindowsSupport.getConsoleMode(WindowsSupport.java:48)
at jline.WindowsTerminal.getConsoleMode(WindowsTerminal.java:259)
at jline.WindowsTerminal.init(WindowsTerminal.java:96)
at jline.TerminalFactory.create(TerminalFactory.java:96)
at jline.TerminalFactory.get(TerminalFactory.java:154)
at
org.jboss.seam.forge.shell.ShellImpl.setupReaderForWindows(ShellImpl.java:1193)
at
org.jboss.seam.forge.shell.ShellImpl.initReaderAndStreams(ShellImpl.java:448)
at
org.jboss.seam.forge.shell.ShellImpl.configureOSTerminal(ShellImpl.java:1183)
at org.jboss.seam.forge.shell.ShellImpl.init(ShellImpl.java:315)
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.seam.forge.shell.org
$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_WeldClientProx
y.init(org$jboss$weld$bean-classpath-ManagedBean-class_org$jboss$seam$forge$shell$ShellImpl_$$_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)
... 8 more
13 years, 6 months
Re: [forge-users] Seam Forge Richfaces Plugin
by Lincoln Baxter, III
It looks like the plugin needs to be updated to the latest snapshot if it is
not in sync.
If you are using Alpha3, make sure you are using '--ref forge-alpha-3' when
you install the plugin.
This should become easier as we get the plugin repository set up.
I hope this helps,
Lincoln
PS. If you could email the dev or user's list in the future that would be
great. Thanks.
https://lists.jboss.org/mailman/listinfo/forge-dev
https://lists.jboss.org/mailman/listinfo/forge-users
On Thu, May 26, 2011 at 10:30 PM, rimolive <
reply+m-7388100-e08b38bc89b0f94a9590a198e3dc67f0191ce4f4(a)reply.github.com>wrote:
> Hey Lincoln,
>
> I'd like to test richfaces-forge-plugin but if seems that this line does
> not work then install plugin:
>
> @Inject
> public RichFacesPlugin(final Project project, final Event<InstallFacets>
> event)
> {
> this.project = project;
> this.installFacets = event;
> }
>
> Only when I remove the Event<InstallFacets> from the constructor I can
> successfuly install the plugin and even run the commands. Could you give me
> any suggestion about what I did wrong?
>
> Regards,
>
> Ricardo
>
> --
> Reply to this email directly or view it on GitHub:
> http://github.com/inbox/7388100#reply
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months
probelm with richfaces plugin
by Holmquist, Lucas
Using forge Alpha 3
I'm trying to add Richfaces to my project. I can get to the part that asks my version and when I select Richfaces 4 I get this error:
Which version of RichFaces?
1 - [RichFaces 4.0.0.Final]
2 - [RichFaces 3.3.3.Final]
Choose an option by typing the number of the selection: 1
***ERROR*** [richfaces setup] org.apache.maven.project.ProjectBuildingException:
[ERROR] Non-resolvable import POM: The repository system is offline
but the artifact org.richfaces:richfaces-bom:pom:4.0.0.Final is not available in the local repository. @ line 11, column 19
for project com.rich.work.please:richTestWorkPlease:1.0.0-SNAPSHOT at C:\Users\lholmquist\richTestWorkPlease\pom.xml
here is the part of my pom that richfaces added:
<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.richfaces</groupId>
<artifactId>richfaces-bom</artifactId>
<version>4.0.0.Final</version>
<type>pom</type>
<scope>import</scope>
</dependency>
</dependencies>
</dependencyManagement>
Thanks for the help
-Luke
________________________________
CONFIDENTIALITY NOTICE: The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer.
13 years, 7 months
Re: [forge-users] Problem while scaffolding from entity
by Lincoln Baxter, III
Ah. File paths on windows are a bit iffy - we are having issues with them
(known bugs right now).
https://issues.jboss.org/browse/SEAMFORGE-163
I'm not sure why you are getting prompt choice errors, that might be caused
if you are offline or have bad data in your maven repository. If you have
some time, try starting over with a clean maven repository.
I hope this helps,
~Lincoln
On Fri, May 6, 2011 at 4:55 AM, Xavier Coulon <xcoulon(a)gmail.com> wrote:
> Hello Lincoln,
>
> Thanks for the answer. Here's what I've got now, using the latest snapshot:
>
> [customers] customers $ scaffold setup
> ? No scaffold type was selected, use default (Metawidget & JSF)? [Y/n] Y
> ? Scaffold provider [metawidget] is not installed. Install it? [Y/n] Y
> ? Facet [forge.maven.WebResourceFacet] requires packaging type(s) [war],
> but is currently [jar]. Update packaging? (Note: this could deactivate other
> plugins in your project.) [Y/n] Y
> ***SUCCESS*** Installed [forge.maven.WebResourceFacet] successfully.
> Wrote /code/sample/customers/src/main/resources/META-INF/persistence.xml
> ***SUCCESS*** Installed [forge.spec.jpa] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/beans.xml
> ***SUCCESS*** Installed [forge.spec.cdi] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/web.xml
> Wrote /code/sample/customers/src/main/webapp/index.html
> ***SUCCESS*** Installed [forge.spec.servlet] successfully.
> Wrote /code/sample/customers/src/main/webapp/WEB-INF/faces-config.xml
> ***SUCCESS*** Installed [forge.spec.jsf] successfully.
> ***ERROR*** [scaffold setup] promptChoice() Cannot ask user to select from
> a list of nothing. Ensure you have values in your options list.
>
> I also had a problem with the 'new-project' command:
> [no project] bin $ new-project --named customers --topLevelPackage
> com.sample.customers --projectFolder
> /code/samples/customers
> ***ERROR*** [new-project] command option '--projectFolder' must be of type
> 'Resource'
>
> But with a turn-around:
>
> [no project] bin $ new-project --named customers --topLevelPackage
> com.sample.customers
> ? Use [/software/forge-1.0.0-SNAPSHOT/bin/customers] as project directory?
> [Y/n] n
> ? Where would you like to create the project? [Press ENTER to use the
> current directory: bin] /code/sample/customers
> Wrote /code/sample/customers/src/main/resources/META-INF/forge.xml
> ***SUCCESS*** Created project [customers] in new working directory
> [/code/sample/customers]
>
>
> Also, I forgot to mention that (sadly for those tests), I'm running on
> win32... (and the prompt message at startup made me laugh ;-))
>
> ____ _____
> / ___| ___ __ _ _ __ ___ | ___|__ _ __ __ _ ___
> \___ \ / _ \/ _` | '_ ` _ \ | |_ / _ \| '__/ _` |/ _ \ \\
> ___) | __/ (_| | | | | | | | _| (_) | | | (_| | __/ //
> |____/ \___|\__,_|_| |_| |_| |_| \___/|_| \__, |\___|
> |___/
> Windows? Really? Okay...
>
>
> Is there any log or anything I should look at to help ?
>
> Regards,
> Xavier
>
>
> On Thu, May 5, 2011 at 11:10 PM, Lincoln Baxter, III <
> lincolnbaxter(a)gmail.com> wrote:
>
>> Strange... could you try downloading a recent snapshot and seeing if this
>> is fixed? The command names may have changed slightly:
>>
>>
>> https://repository.jboss.org/nexus/content/groups/public/org/jboss/forge/...
>> (scroll to the bottom and grab th elatest zip)
>>
>> ~Lincoln
>>
>> On Thu, May 5, 2011 at 11:25 AM, Xavier Coulon <xcoulon(a)gmail.com> wrote:
>>
>>> Hello,
>>>
>>> I'm just starting playing with seam-forge (version 0.3 Alpha), following
>>> the example provided at
>>> http://docs.jboss.org/forge/snapshot/reference/en-US/html_single/
>>>
>>> Hélas, I get the error message below when running the 'scaffold
>>> from-entity' command:
>>>
>>> [forge-customersmgt-sample] Customer.java $ scaffold setup
>>> [forge-customersmgt-sample] Customer.java $ scaffold from-entity
>>> No scaffold type was provided, use Forge default? [Y/n] Y
>>> ***ERROR*** [scaffold from-entity] promptChoice() Cannot ask user to
>>> select from a list of nothing. Ensure you have values in your options list.
>>>
>>> what should I add or check to solve this problem ?
>>>
>>> Thank you in advance.
>>>
>>> Best regards,
>>> --
>>> Xavier
>>>
>>> _______________________________________________
>>> forge-users mailing list
>>> forge-users(a)lists.jboss.org
>>> https://lists.jboss.org/mailman/listinfo/forge-users
>>>
>>>
>>
>>
>> --
>> Lincoln Baxter, III
>> http://ocpsoft.com
>> http://scrumshark.com
>> "Keep it Simple"
>>
>
>
>
> --
> Xavier
>
--
Lincoln Baxter, III
http://ocpsoft.com
http://scrumshark.com
"Keep it Simple"
13 years, 7 months
Problem while scaffolding from entity
by Xavier Coulon
Hello,
I'm just starting playing with seam-forge (version 0.3 Alpha), following
the example provided at
http://docs.jboss.org/forge/snapshot/reference/en-US/html_single/
Hélas, I get the error message below when running the 'scaffold from-entity'
command:
[forge-customersmgt-sample] Customer.java $ scaffold setup
[forge-customersmgt-sample] Customer.java $ scaffold from-entity
No scaffold type was provided, use Forge default? [Y/n] Y
***ERROR*** [scaffold from-entity] promptChoice() Cannot ask user to select
from a list of nothing. Ensure you have values in your options list.
what should I add or check to solve this problem ?
Thank you in advance.
Best regards,
--
Xavier
13 years, 7 months