I'm checking the new RichTextEditor feature in RAP 3.1. I've built a simple 
demo project which consists only of an EntryPoint adding a 
RichTextEditor-Widget.
When I access the webapp's url it works fine when I set 
CATALINA_OPTS=-Dorg.eclipse.rap.rwt.developmentMode=true.
Without this option the webapp produces a strange error

Error: Error: Operation "call" on target "rwt.client.ClientFileLoader" of type 
"null" failed:
Cannot read property 'handler' of undefined
Properties: file = rwt-resources/ckeditor/ckeditor.js
type = js


 Script: 
{"head":{"cid":"03fb7d47"},"operations":[["call","rwt.client.ClientFileLoader","load",{"file":"rwt-resources/ckeditor/ckeditor.js","type":"js"}],["call","rwt.client.ClientFileLoader","load",{"file":"rwt-resources/ckeditor/config.js","type":"js"}],["call","rwt.client.ClientFileLoader","load",{"file":"rwt-resources/ckeditor/RichTextEditor.js","type":"js"}],["call","rwt.client.ClientFileLoader","load",{"file":"rwt-resources/ckeditor/RichTextEditorHandler.js","type":"js"}],["create","w2","rwt.widgets.Shell",{"style":["NO_TRIM"]}],["listen","w2",{"Move":true,"Resize":true,"Activate":true,"Close":true}],["set","w2",{"active":true,"mode":"maximized","minimumSize":[30,0],"activeControl":"w3","children":["w3"],"bounds":[0,0,1920,1031],"visibility":true}],["create","w3","rwt.widgets.Composite",{"parent":"w2","style":["NONE"],"children":[],"bounds":[0,0,1920,1031],"tabIndex":1,"clientArea":[0,0,1920,1031]}],["set","w1",{"focusControl":"w3"}],["set","rwt.client.ClientMessages",{"messag
es":{"ServerError":"Server Error","ServerErrorDescription":"The application terminated unexpectedly.","ConnectionError":"Network Error","ConnectionErrorDescription":"The server seems to be temporarily unavailable.","SessionTimeout":"Session Timeout","SessionTimeoutDescription":"The server session timed out.","ClientError":"Client Error","ClientErrorDescription":"The application terminated 
unexpectedly.","Retry":"Retry","Restart":"Restart","Details":"Details"}}],["create","r4","rwt.widgets.RichTextEditor",{"parent":"w3","config":{"toolbarGroups":[{"name":"basicstyles","groups":["basicstyles","cleanup"]},{"name":"paragraph","groups":["list","indent","align"]},"/",{"name":"styles"},{"name":"colors"}],"removeButtons":",PasteText,PasteFromWord,Styles,Format","toolbarCanCollapse":false,"toolbarStartupExpanded":true}}]]}
 Stack: Error: Operation "call" on target "rwt.client.ClientFileLoader" of type 
"null" failed:
Cannot read property 'handler' of undefined
Properties: file = rwt-resources/ckeditor/ckeditor.js
type = js

   at Object._processError 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:225:3803)
   at Object.processOperationArray 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:225:920)
   at Object.processMessage 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:225:249)
   at _handleSuccess 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:229:3428)
   at Object._success 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:98:1012)
   at Object._onReadyStateChange 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:98:1821)
   at XMLHttpRequest. 
(http://localhost:8080/webtest/rwt-resources/310/rap-client.js:7:219)
 Debug: off
 Request: 
{"head":{"requestCounter":0},"operations":[["set","w1",{"bounds":[0,0,1920,1031],"dpi":[96,96],"colorDepth":24}],["set","rwt.client.ClientInfo",{"timezoneOffset":-120}],["set","w1",{"cursorLocation":[0,0]}]]}


I've attached a demo maven project, just unzip and run mvn package, then deploy 
the War in your Tomcat.
Accessing "/webtest/start" yields the error. Now set your CATALINA_OPTS to -Dorg.eclipse.rap.rwt.developmentMode=true and restart the Tomcat, everything is fine.

Has anyone an idea what's amiss here?


To participate in the discussion, go here: 
https://www.eclipse.org/forums/index.php?t=rview&frm_id=64
_______________________________________________
nebula-dev mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from 
this list, visit
https://dev.eclipse.org/mailman/listinfo/nebula-dev

Reply via email to