Home » Eclipse Projects » Remote Application Platform (RAP) » RAP application works in Tomcat, but not Websphere(RAP application works in Tomcat, but not Websphere)
RAP application works in Tomcat, but not Websphere [message #535277] |
Fri, 21 May 2010 19:31 |
Mark Proe Messages: 34 Registered: July 2009 |
Member |
|
|
Hello,
My RAP application works great in Tomcat, but I get the following errors in Websphere:
Could not evaluate javascript response:
SyntaxError: missing ) after argument list
org.eclipse.swt.EventUtil.suspendEventHandling();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "35" );var wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.newWidget( "w284", "", false, null, "qx.ui.menubar.Button" );org.eclipse.swt.MenuUtil.setLabelMode( w );var t = wm.findWidgetById( "w17" );t.addAt( w, 2 );w.setAppearance( "menubar-button" );w.setLabel( "Query" );var w = wm.newWidget( "w285", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w286", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w287", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w288", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w289", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w290", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w291", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w292", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w293", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w294", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w295", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w296", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w297", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w298", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w299", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w300", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w301", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w302", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w303", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w304", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w305", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w306", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w307", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w308", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w309", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w310", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w311", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w312", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w313", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.newWidget( "w314", "", false, null, "qx.ui.menu.Menu" );w.addToDocument();var t = wm.findWidgetById( "w284" );t.setMenu( w );org.eclipse.swt.MenuUtil.initialize( w );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4 );var w = wm.findWidgetById( "w31" );w.setSpace( 0, 58, 0, 22 );w.updateHandleBounds();wm.setParent( wm.findWidgetById( "w32" ), "w31" );var w = wm.findWidgetById( "w32" );w.setSpace( 6, 48, 0, 22 );var w = wm.newWidget( "w315", "w30", true, null, "qx.ui.toolbar.ToolBar" );w.addState( "rwt_FLAT" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 298 );var w = wm.newWidget( "w316", "w71", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 3, 1329, 26, 728 );w.setZIndex( 300 );var t = wm.findWidgetById( "w16" );t.addActivateListenerWidget( w );var w = wm.newWidget( "w317", "w316", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 1329, 0, 728 );w.setZIndex( 300 );var w = wm.newWidget( "w318", "w317", true, null, "org.eclipse.swt.custom.CTabFolder" );w.addState( "rwt_FLAT" );org.eclipse.swt.custom.CTabFolder.setToolTipTexts( "Minimize", "Maximize", "Restore", "Show List", "Close" );w.setSpace( 0, 1329, 0, 728 );w.setZIndex( 300 );w.setTabIndex( 28 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.setTabPosition( "bottom" );w.setTabHeight( 17 );w.setHasSelectionListener( true );w.hideChevron();var w = wm.newWidget( "w319", "", false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 0, 50, 709, 19 );w.setLabel( "General" );w.addState( "firstItem" );var w = wm.newWidget( "w320", "", false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 50, 68, 709, 19 );w.setLabel( "Query List" );var w = wm.newWidget( "w321", "", false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 118, 44, 709, 19 );w.setLabel( "Query1" );w.setSelected( true );var w = wm.newWidget( "w322", "", false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 162, 44, 709, 19 );w.setLabel( "Query2" );var w = wm.newWidget( "w323", "", false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 206, 44, 709, 19 );w.setLabel( "Query3" );var w = wm.newWidget( "w324", "w318", true, null, "org.eclipse.swt.custom.ScrolledComposite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 29 );w.setVisibility( false );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );w.setClipWidth( 0 );w.setClipHeight( 0 );w.setOverflow( "hidden" );var w = wm.newWidget( "w325", "w324", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setWidth( 0 );w.setHeight( 0 );w.setZIndex( 300 );w.setTabIndex( 30 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w = wm.newWidget( "w326", "w325", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 31 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w = wm.newWidget( "w327", "w326", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 32 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w = wm.newWidget( "w328", "w327", true, null, "qx.ui.basic.Atom" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setVisibility( false );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w = wm.newWidget( "w329", "w325", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 299 );w.setTabIndex( 33 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff" );var w = wm.newWidget( "w330", "w329", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 34 );w.setTextColor( "#000000" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, true, false );var w = wm.newWidget( "w331", "w330", true, null, "qx.ui.basic.Atom" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTextColor( "#316ac5" );w.setBackgroundColor( null );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, true, false );org.eclipse.swt.LabelUtil.setText( w, "Query Name" );var w = wm.newWidget( "w332", "w330", true, null, "qx.ui.basic.Atom" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 299 );w.setBackgroundColor( "#ffffff" );var w = wm.newWidget( "w333", "w330", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 298 );w.setTabIndex( 35 );w.setBackgroundColor( "#ffffff" );w.addEventListener( "mouseup", org.eclipse.swt.EventUtil.mouseUp );w.addEventListener( "mousedown", org.eclipse.swt.EventUtil.mouseDown );var w = wm.newWidget( "w334", "w333", true, null, "qx.ui.form.TextField" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.addState( "rwt_SINGLE" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 36 );w.setValue( "UntitledMark2" );w.setReadOnly( true );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = wm.newWidget( "w335", "w329", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 299 );w.setTabIndex( 37 );w.setTextColor( "#000000" );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, true, false );var w = wm.newWidget( "w336", "w335", true, null, "qx.ui.basic.Atom" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTextColor( "#316ac5" );w.setBackgroundColor( null );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida Sans Unicode", "sans-serif" ], 11, true, false );org.eclipse.swt.LabelUtil.setText( w, "Version" );var w = wm.newWidget( "w337", "w335", true, null, "qx.ui.basic.Atom" );
Any help would be appreciated. (I am running 1.2.1 versions of the RAP plug-ins.)
Thanks,
Mark
|
|
|
Re: RAP application works in Tomcat, but not Websphere [message #535514 is a reply to message #535277] |
Mon, 24 May 2010 08:18 |
|
Hi Mark,
it's very unlikely that this problem is caused by the servlet container.
The Javascript code you attached looks sane but incomplete (maybe just
truncated in the error page).
I'd suggest to check 1) there are no server-side exceptions 2) is the
error reproducable after restarting the server? Please note that the
first user session must run uninterrupted 3) there is no custom
Javascript code causing this issue (custom widgets?).
If this doesn't help, you can try with 1.2.2, maybe you run into some
bug that is fixed in the second service release.
Hope this helps,
Ralf
Mark Proe wrote:
> Hello,
>
> My RAP application works great in Tomcat, but I get the following errors
> in Websphere:
>
> Could not evaluate javascript response:
>
> SyntaxError: missing ) after argument list
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "35" );var
> wm = org.eclipse.swt.WidgetManager.getInstance();var w = wm.newWidget(
> "w284", "", false, null, "qx.ui.menubar.Button"
> );org.eclipse.swt.MenuUtil.setLabelMode( w );var t = wm.findWidgetById(
> "w17" );t.addAt( w, 2 );w.setAppearance( "menubar-button" );w.setLabel(
> "Query" );var w = wm.newWidget( "w285", "", false, null,
> "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w286", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w287", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w288", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w289", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w290", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w291", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w292", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w293", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w294", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w295", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w296", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w297", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w298", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w299", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w300", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w301", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w302", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w303", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w304", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w305", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w306", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w307", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w308", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w309", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w310", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w311", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w312", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w313", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.newWidget( "w314", "", false, null, "qx.ui.menu.Menu"
> );w.addToDocument();var t = wm.findWidgetById( "w284" );t.setMenu( w
> );org.eclipse.swt.MenuUtil.initialize( w
> );org.eclipse.swt.MenuUtil.setMenuListener( w, true );w.setWidth( 4
> );var w = wm.findWidgetById( "w31" );w.setSpace( 0, 58, 0, 22
> );w.updateHandleBounds();wm.setParent( wm.findWidgetById( "w32" ), "w31"
> );var w = wm.findWidgetById( "w32" );w.setSpace( 6, 48, 0, 22 );var w =
> wm.newWidget( "w315", "w30", true, null, "qx.ui.toolbar.ToolBar"
> );w.addState( "rwt_FLAT" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 298
> );var w = wm.newWidget( "w316", "w71", true, null,
> "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus(
> true );w.setAppearance( "composite" );w.setSpace( 3, 1329, 26, 728
> );w.setZIndex( 300 );var t = wm.findWidgetById( "w16"
> );t.addActivateListenerWidget( w );var w = wm.newWidget( "w317", "w316",
> true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden"
> );w.setHideFocus( true );w.setAppearance( "composite" );w.setSpace( 0,
> 1329, 0, 728 );w.setZIndex( 300 );var w = wm.newWidget( "w318", "w317",
> true, null, "org.eclipse.swt.custom.CTabFolder" );w.addState( "rwt_FLAT"
> );org.eclipse.swt.custom.CTabFolder.setToolTipTexts( "Minimize",
> "Maximize", "Restore", "Show List", "Close" );w.setSpace( 0, 1329, 0,
> 728 );w.setZIndex( 300 );w.setTabIndex( 28 );w.addEventListener(
> "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener(
> "focusout", org.eclipse.swt.EventUtil.focusLost );w.setTabPosition(
> "bottom" );w.setTabHeight( 17 );w.setHasSelectionListener( true
> );w.hideChevron();var w = wm.newWidget( "w319", "", false, null,
> "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false'
> );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 0, 50, 709,
> 19 );w.setLabel( "General" );w.addState( "firstItem" );var w =
> wm.newWidget( "w320", "", false, null,
> "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false'
> );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 50, 68,
> 709, 19 );w.setLabel( "Query List" );var w = wm.newWidget( "w321", "",
> false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById(
> "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w
> );w.setSpace( 118, 44, 709, 19 );w.setLabel( "Query1" );w.setSelected(
> true );var w = wm.newWidget( "w322", "", false, null,
> "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById( "w318" ), false'
> );var t = wm.findWidgetById( "w318" );t.add( w );w.setSpace( 162, 44,
> 709, 19 );w.setLabel( "Query2" );var w = wm.newWidget( "w323", "",
> false, null, "org.eclipse.swt.custom.CTabItem", 'wm.findWidgetById(
> "w318" ), false' );var t = wm.findWidgetById( "w318" );t.add( w
> );w.setSpace( 206, 44, 709, 19 );w.setLabel( "Query3" );var w =
> wm.newWidget( "w324", "w318", true, null,
> "org.eclipse.swt.custom.ScrolledComposite" );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 300 );w.setTabIndex( 29 );w.setVisibility( false
> );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );w.setClipWidth(
> 0 );w.setClipHeight( 0 );w.setOverflow( "hidden" );var w = wm.newWidget(
> "w325", "w324", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow(
> "hidden" );w.setHideFocus( true );w.setAppearance( "composite"
> );w.setWidth( 0 );w.setHeight( 0 );w.setZIndex( 300 );w.setTabIndex( 30
> );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w =
> wm.newWidget( "w326", "w325", true, null, "qx.ui.layout.CanvasLayout"
> );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance(
> "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex(
> 31 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w =
> wm.newWidget( "w327", "w326", true, null, "qx.ui.layout.CanvasLayout"
> );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance(
> "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex(
> 32 );w.setTextColor( "#316ac5" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "MS Sans Serif" ], 12, true, false );var w =
> wm.newWidget( "w328", "w327", true, null, "qx.ui.basic.Atom"
> );org.eclipse.swt.LabelUtil.initialize( w
> );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 300 );w.setVisibility( false );w.setTextColor( "#316ac5"
> );w.setBackgroundColor( "#ffffff" );wm.setFont( w, [ "MS Sans Serif" ],
> 12, true, false );var w = wm.newWidget( "w329", "w325", true, null,
> "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus(
> true );w.setAppearance( "composite" );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 299 );w.setTabIndex( 33 );w.setTextColor( "#316ac5"
> );w.setBackgroundColor( "#ffffff" );var w = wm.newWidget( "w330",
> "w329", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow(
> "hidden" );w.setHideFocus( true );w.setAppearance( "composite"
> );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300 );w.setTabIndex( 34
> );w.setTextColor( "#000000" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida
> Sans Unicode", "sans-serif" ], 11, true, false );var w = wm.newWidget(
> "w331", "w330", true, null, "qx.ui.basic.Atom"
> );org.eclipse.swt.LabelUtil.initialize( w
> );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 300 );w.setTextColor( "#316ac5" );w.setBackgroundColor(
> null );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma",
> "Lucida Sans Unicode", "sans-serif" ], 11, true, false
> );org.eclipse.swt.LabelUtil.setText( w, "Query Name" );var w =
> wm.newWidget( "w332", "w330", true, null, "qx.ui.basic.Atom"
> );org.eclipse.swt.LabelUtil.initialize( w
> );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 299 );w.setBackgroundColor( "#ffffff" );var w =
> wm.newWidget( "w333", "w330", true, null, "qx.ui.layout.CanvasLayout"
> );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance(
> "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 298 );w.setTabIndex(
> 35 );w.setBackgroundColor( "#ffffff" );w.addEventListener( "mouseup",
> org.eclipse.swt.EventUtil.mouseUp );w.addEventListener( "mousedown",
> org.eclipse.swt.EventUtil.mouseDown );var w = wm.newWidget( "w334",
> "w333", true, null, "qx.ui.form.TextField"
> );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER"
> );w.addState( "rwt_SINGLE" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 300
> );w.setTabIndex( 36 );w.setValue( "UntitledMark2" );w.setReadOnly( true
> );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w =
> wm.newWidget( "w335", "w329", true, null, "qx.ui.layout.CanvasLayout"
> );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance(
> "composite" );w.setSpace( 0, 0, 0, 0 );w.setZIndex( 299 );w.setTabIndex(
> 37 );w.setTextColor( "#000000" );w.setBackgroundColor( "#ffffff"
> );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma", "Lucida
> Sans Unicode", "sans-serif" ], 11, true, false );var w = wm.newWidget(
> "w336", "w335", true, null, "qx.ui.basic.Atom"
> );org.eclipse.swt.LabelUtil.initialize( w
> );org.eclipse.swt.LabelUtil.setWrap( w, true );w.setSpace( 0, 0, 0, 0
> );w.setZIndex( 300 );w.setTextColor( "#316ac5" );w.setBackgroundColor(
> null );wm.setFont( w, [ "Segoe UI", "Corbel", "Calibri", "Tahoma",
> "Lucida Sans Unicode", "sans-serif" ], 11, true, false
> );org.eclipse.swt.LabelUtil.setText( w, "Version" );var w =
> wm.newWidget( "w337", "w335", true, null, "qx.ui.basic.Atom" );
>
> Any help would be appreciated. (I am running 1.2.1 versions of the RAP
> plug-ins.)
>
> Thanks,
> Mark
|
|
|
Re: RAP application works in Tomcat, but not Websphere [message #536545 is a reply to message #535514] |
Fri, 28 May 2010 15:59 |
Mark Proe Messages: 34 Registered: July 2009 |
Member |
|
|
Ralf,
There are no server-side exceptions, and I've always restarted the server each time. I use no custom widgets.
I've upgraded to 1.2.2, but there is no difference. I haven't tried 1.3.0 because that isn't an option for me at this time.
If I move around some controls, I can change the error message shown in the browser.
Could not evaluate javascript response:
Unterminated string constant
org.eclipse.swt.EventUtil.suspendEventHandling();var req = org.eclipse.swt.Request.getInstance();req.setRequestCounter( "32" );var wm = org.eclipse.swt.WidgetManager.getInstance();
.....
var w = wm.newWidget( "w321", "w319", true, null, "qx.ui.basic.Atom" );org.eclipse.swt.LabelUtil.initialize( w );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 73, 6, 5, 16 );w.setZIndex( 299 );w.setContextMenu( wm.findWidgetById( "w239" ) );w.addEventListener( "contextmenu", org.eclipse.swt.MenuUtil.contextMenu );w.setBackgroundColor( "#ffffff" );w.addEventListener( "mouseup", org.eclipse.swt.EventUtil.mouseUp );w.addEventListener( "mousedown", org.eclipse.swt.EventUtil.mouseDown );w.setUserData( "keyListener", true );org.eclipse.swt.LabelUtil.setText( w, ">" );var w = wm.newWidget( "w322", "w319", true, null, "qx.ui.form.TextField" );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER" );w.addState( "rwt_SINGLE" );w.setSpace( 89, 102, 3, 21 );w.setZIndex( 298 );w.setTabIndex( 70 );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.setValue( "6226" );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, true );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w = wm.newWidget( "w323", "w317", true, null, "qx.ui.layout.CanvasLayout" );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance( "composite" );w.addState( "rwt_BORDER" );w.setSpace( 5, 40, 41, 26 );w.setZIndex( 299 );w.setContextMenu( wm.findWidgetById( "w240" ) );w.addEventListener( "contextmenu", org.eclipse.swt.MenuUtil.contextMenu );w.setBackgroundColor( "#ffffff" );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost );w.addEventListener( "mouseup", org.eclipse.swt.EventUtil.mouseUp );w.addEventListener( "mousedown", org.eclipse.swt.EventUtil.mouseDown );w.setUserData( "keyListener", true );var w = wm.newWidget( "w324", "w323", true, null, "qx.u
It looks like the JavaScript is always truncated at 32K characters. Is that intentional only for purposes of displaying the error message in the browser? Or is there a problem here with code being lost? I have a dozen nested composites containing several controls in my editor.
Thanks,
Mark
|
|
|
Re: RAP application works in Tomcat, but not Websphere [message #537499 is a reply to message #536545] |
Wed, 02 June 2010 16:11 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
On 28.05.2010 17:59, Mark Proe wrote:
> Ralf,
>
> There are no server-side exceptions, and I've always restarted the
> server each time. I use no custom widgets.
>
> I've upgraded to 1.2.2, but there is no difference. I haven't tried
> 1.3.0 because that isn't an option for me at this time.
>
> If I move around some controls, I can change the error message shown in
> the browser.
>
> Could not evaluate javascript response:
>
> Unterminated string constant
>
> org.eclipse.swt.EventUtil.suspendEventHandling();var req =
> org.eclipse.swt.Request.getInstance();req.setRequestCounter( "32" );var
> wm = org.eclipse.swt.WidgetManager.getInstance();
> ....
> var w = wm.newWidget( "w321", "w319", true, null, "qx.ui.basic.Atom"
> );org.eclipse.swt.LabelUtil.initialize( w
> );org.eclipse.swt.LabelUtil.setWrap( w, false );w.setSpace( 73, 6, 5, 16
> );w.setZIndex( 299 );w.setContextMenu( wm.findWidgetById( "w239" )
> );w.addEventListener( "contextmenu",
> org.eclipse.swt.MenuUtil.contextMenu );w.setBackgroundColor( "#ffffff"
> );w.addEventListener( "mouseup", org.eclipse.swt.EventUtil.mouseUp
> );w.addEventListener( "mousedown", org.eclipse.swt.EventUtil.mouseDown
> );w.setUserData( "keyListener", true
> );org.eclipse.swt.LabelUtil.setText( w, ">" );var w = wm.newWidget(
> "w322", "w319", true, null, "qx.ui.form.TextField"
> );org.eclipse.swt.TextUtil.initialize( w );w.addState( "rwt_BORDER"
> );w.addState( "rwt_SINGLE" );w.setSpace( 89, 102, 3, 21 );w.setZIndex(
> 298 );w.setTabIndex( 70 );w.addEventListener( "focusin",
> org.eclipse.swt.EventUtil.focusGained );w.addEventListener( "focusout",
> org.eclipse.swt.EventUtil.focusLost );w.setValue( "6226"
> );org.eclipse.swt.TextUtil.setHasVerifyOrModifyListener( w, true
> );org.eclipse.swt.TextUtil.setHasSelectionListener( w, false );var w =
> wm.newWidget( "w323", "w317", true, null, "qx.ui.layout.CanvasLayout"
> );w.setOverflow( "hidden" );w.setHideFocus( true );w.setAppearance(
> "composite" );w.addState( "rwt_BORDER" );w.setSpace( 5, 40, 41, 26
> );w.setZIndex( 299 );w.setContextMenu( wm.findWidgetById( "w240" )
> );w.addEventListener( "contextmenu",
> org.eclipse.swt.MenuUtil.contextMenu );w.setBackgroundColor( "#ffffff"
> );w.addEventListener( "focusin", org.eclipse.swt.EventUtil.focusGained
> );w.addEventListener( "focusout", org.eclipse.swt.EventUtil.focusLost
> );w.addEventListener( "mouseup", org.eclipse.swt.EventUtil.mouseUp
> );w.addEventListener( "mousedown", org.eclipse.swt.EventUtil.mouseDown
> );w.setUserData( "keyListener", true );var w = wm.newWidget( "w324",
> "w323", true, null, "qx.u
>
> It looks like the JavaScript is always truncated at 32K characters. Is
> that intentional only for purposes of displaying the error message in
> the browser? Or is there a problem here with code being lost? I have a
> dozen nested composites containing several controls in my editor.
RAP itself doesn't truncate the Javascript and the error message isn't
shortened either. Maybe Webshpere is the one truncating?
If you use Firebug or some other tool that shows the request/reponse
content you should be able to see what is actually transferred.
HTH
Rüdiger
>
> Thanks,
> Mark
--
Rüdiger Herrmann
http://eclipsesource.com
|
|
|
Goto Forum:
Current Time: Sun Dec 08 19:53:16 GMT 2024
Powered by FUDForum. Page generated in 0.03273 seconds
|