Bug 778416 (SOA-900) - groovy_gateway quickstart fails on deploy
Summary: groovy_gateway quickstart fails on deploy
Keywords:
Status: CLOSED NEXTRELEASE
Alias: SOA-900
Product: JBoss Enterprise SOA Platform 4
Classification: JBoss
Component: Documentation, Examples
Version: 4.3 IR5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
: ---
Assignee: David Le Sage
QA Contact:
URL: http://jira.jboss.org/jira/browse/SOA...
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-09-30 21:25 UTC by Burr Sutter
Modified: 2010-02-09 20:01 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 778417 (view as bug list)
Environment:
Last Closed: 2010-02-09 20:01:55 UTC
Type: Bug


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 777711 0 medium CLOSED Need to add -D java.awt.headless=true to jboss-soa-p.4.2.0/jboss-as/bin/jboss_init_redhat.sh - without this - server ca... 2021-02-22 00:41:40 UTC
Red Hat Bugzilla 778141 0 high CLOSED Embedded & Enterprise console - needs jawa.awt.headless=true 2021-02-22 00:41:40 UTC
Red Hat Issue Tracker SOA-900 0 None None None Never

Internal Links: 777711 778141

Description Burr Sutter 2008-09-30 21:25:17 UTC
Affects: Documentation (Ref Guide, User Guide, etc.)
Date of First Response: 2008-10-01 04:34:15
project_key: SOA

Just use "ant deploy" in groovy_gateway quickstart.  The following is the result on the server console.

java.lang.RuntimeException: Failed to create component forframe reason: java.awt
.HeadlessException
        at groovy.swing.SwingBuilder.createNode(SwingBuilder.java:399)
        at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:129)
        at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:95)
        at org.codehaus.groovy.runtime.Invoker.invokeMethod(Invoker.java:136)
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.
java:111)
        at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(Scrip
tBytecodeAdapter.java:187)
        at Script1.run(Script1.groovy:37)
        at org.jboss.soa.esb.listeners.gateway.GroovyGateway.doRun(GroovyGateway
.java:147)
        at org.jboss.soa.esb.listeners.lifecycle.AbstractThreadedManagedLifecycl
e.run(AbstractThreadedManagedLifecycle.java:115)
        at java.lang.Thread.run(Thread.java:595)
Caused by: java.awt.HeadlessException
        at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:1
59)
        at java.awt.Window.<init>(Window.java:317)
        at java.awt.Frame.<init>(Frame.java:419)
        at java.awt.Frame.<init>(Frame.java:384)
        at javax.swing.JFrame.<init>(JFrame.java:150)
        at groovy.swing.SwingBuilder.createFrame(SwingBuilder.java:852)
        at groovy.swing.SwingBuilder$4.newInstance(SwingBuilder.java:525)
        at groovy.swing.SwingBuilder.createNode(SwingBuilder.java:385)
        ... 9 more

Comment 1 Kevin Conner 2008-10-01 08:34:15 UTC
This is obviously a consequence of the decision to forbid graphical access in the platform.

I'll create an ESB issue to have the quickstart updated.

(SOA-227 and SOA-654 appear to be related)

Comment 2 Kevin Conner 2008-10-01 08:34:48 UTC
Link: Added: This issue is related to SOA-654


Comment 3 Kevin Conner 2008-10-01 08:34:48 UTC
Link: Added: This issue is related to SOA-227


Comment 4 Kevin Conner 2008-10-01 08:44:11 UTC
Link: Added: This issue depends JBESB-2085


Comment 5 Mark Little 2008-10-01 08:58:13 UTC
Please set the components in the issue: that's why they are there.

Comment 6 Julian Coleman 2008-10-09 09:30:30 UTC
For the 4.3 release, we will document that this quickstart needs to be
run with headless=false.  See SOA-906.

Comment 7 Julian Coleman 2008-10-09 09:39:44 UTC
Move the fix for this to 4.4.  For 4.3, we will document the limitation as part
of SOA-906.  For 4.4, we should probably rewrite this to not use a graphical
interface.

Comment 8 Len DiMaggio 2008-10-09 15:30:26 UTC
Affects: Added: [Documentation (Ref Guide, User Guide, etc.)]


Comment 9 David Le Sage 2010-01-27 01:22:50 UTC
Does this still need to be documented as a known issue in 5.0?  Thanks.

Comment 10 Martin Vecera 2010-01-28 10:03:25 UTC
Hello David, yes, it still needs to be documented. It is not an issue but a feature. If the headless mode is turned on, the QS cannot ask for any input.

Comment 11 Burr Sutter 2010-01-28 14:56:50 UTC
But I think it works now that default is the new default in SOA5.

I only use the "out of the box" default config and this quickstart seems to work as expected.  
Martin, can you double check on a clean install with
"bin\run"
and "ant deploy"




Comment 12 David Le Sage 2010-02-05 05:59:36 UTC
We tested this today and it is still an issue.


Here is the draft text of the Release Note:


https://jira.jboss.org/jira/browse/SOA-900

    The default configuration for the SOA Platform includes the setting java.awt.headless set to true.
    This is required for the embedded console to function. However both the groovy_gateway
    Quickstart and the Hypersonic database manager require that this value be set to false
    and therefore will not work. If you require either of these items you can change this setting in
    run.conf, but doing this will disable the embedded console.


Comment 13 Len DiMaggio 2010-02-08 20:17:40 UTC
The release note text is incomplete - it only says:  groovy_gateway quickstart fails on deploy

Comment 14 David Le Sage 2010-02-08 22:09:44 UTC
Len, 



I think you must have been looking at an old version of the Release Notes. I have just republished the latest one on the Documentation-Stage server.  I can confirm that the full text is in there.


Thanks and cheers,


David

Comment 15 Len DiMaggio 2010-02-09 20:01:55 UTC
Verifed in the docs.


Note You need to log in before you can comment on or make changes to this bug.