| Home » Eclipse Projects » Remote Application Platform (RAP) » Custom widget tutorial problems
 Goto Forum:| 
| Custom widget tutorial problems [message #64060] | Mon, 03 December 2007 12:16  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: newsclient.server32212.xantronnet.de 
 Dear all,
 I need help with the custom widget tutorial. I followed http://help.eclipse.org
 /help33/topic/org.eclipse.rap.help/help/html/advanced/custom -widget.html as far
 as possible, but probably I am missing some important steps.
 
 Can I find the complete custom widget tutorial sources somewhere?
 
 Here are my problems:
 The internal browser shows the normal shaded blue background and nothing else.
 The console displays:
 
 osgi> Dec 3, 2007 5:47:41 PM org.mortbay.http.HttpServer doStart
 INFO: Version Jetty/5.1.x
 Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 INFO: Started org.mortbay.jetty.servlet.ServletHandler@13d28e3
 Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 INFO: Started HttpContext[/,/]
 Dec 3, 2007 5:47:41 PM org.mortbay.http.SocketListener start
 INFO: Started SocketListener on 0.0.0.0:9090
 Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 INFO: Started org.mortbay.http.HttpServer@12a3722
 
 I am most uncertain about the plugin.xml and MANIFEST.MF files. Could you
 check these (below)?
 If no obvious mistake is found in the following files, how can I check what
 is going wrong, given that no error is displayed, but only the background is
 displayed?
 If I just remove the calls
 >GMap map = new GMap( shell, SWT.NONE );
 >map.setAddress( "StephanienstraÃe 20, Karlsruhe" );
 in gmapdemo and remove gmaps from the build path, there is still no widget
 displayed. In addition I have to remove gmaps from the Bundles in the Launch
 Configuration, so that an empty widget is then displayed.
 
 Thank you
 Eike
 
 gmaps plugin.xml
 ================
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.2"?>
 <plugin>
 <extension
 id="org.eclipse.rap.gmaps.gmap"
 point="org.eclipse.rap.ui.resources">
 <resource class="org.eclipse.rap.gmaps.GMapResource"/>
 <resource class="org.eclipse.rap.gmaps.GMapAPIResource"/>
 </extension>
 </plugin>
 
 gmaps MANIFEST.MF
 =================
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: GMap Custom Widget
 Bundle-SymbolicName: org.eclipse.rap.gmaps;singleton:=true
 Bundle-Version: 1.0.0
 Bundle-Vendor: RAP Team
 Require-Bundle: org.eclipse.rap.ui
 Export-Package: org.eclipse.rap.gmaps,
 org.eclipse.rap.internal.gmaps.gmapkit
 
 gmapdemo plugin.xml
 ===================
 <?xml version="1.0" encoding="UTF-8"?>
 <?eclipse version="3.2"?>
 <plugin>
 <extension
 point="org.eclipse.rap.ui.entrypoint">
 <entrypoint
 class="org.eclipse.rap.gmapdemo.GMapDemo"
 id="org.eclipse.rap.gmapdemo.gmapentry"
 parameter="hello2">
 </entrypoint>
 </extension>
 <extension
 point="org.eclipse.ui.perspectives">
 <perspective
 class="org.eclipse.rap.gmapdemo.Perspective"
 id="org.eclipse.rap.gmapdemo.perspective2"
 name="name">
 </perspective>
 </extension>
 <extension
 id="org.eclipse.rap.gmaps.gmap"
 point="org.eclipse.rap.ui.resources">
 <resource class="org.eclipse.rap.gmaps.GMapResource"/>
 <resource class="org.eclipse.rap.gmaps.GMapAPIResource"/>
 </extension>
 </plugin>
 
 gmapdemo MANIFEST.MF
 ====================
 Manifest-Version: 1.0
 Bundle-ManifestVersion: 2
 Bundle-Name: Testgmap Plug-in
 Bundle-SymbolicName: org.eclipse.rap.gmapdemo;singleton:=true
 Bundle-Version: 1.0.0
 Require-Bundle: org.eclipse.rap.ui
 Import-Package: javax.servlet;version="2.4.0",
 javax.servlet.http;version="2.4.0"
 Export-Package: org.eclipse.rap.gmapdemo
 |  |  |  |  | 
| Re: Custom widget tutorial problems [message #64197 is a reply to message #64060] | Tue, 04 December 2007 03:49   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: rherrmann.innoopract.com 
 Eike,
 
 regarding the source of the tutorial: that would be way too easy;) No,
 seriously, I am not aware of that there is a complete download of the
 source as described by the tutorial. However, the gmaps widget can be
 found in the sandbox CVS module.
 
 From what I can see, the plugin.xml and manifest snippets as well las
 the console output look good. To further diagnose the problem:
 * have you tried to type "ss" in the console. This will give you a list
 of bundles along with their state which should be ACTIVE.
 * to see exception messages in the console output that occur during
 bundle startup, try to launch with program argument "-consolelog"
 (ignore those AuthorizationHandler-something exceptions)
 * assuming that you use the RAP launcher, you can enable client-side
 debug- and error-messages by setting the "Client-side log level" to
 "All" and the "Client-side library variant" to "Debug"
 * hm, if all that isn't the case ... come back here;)
 
 Rüdiger
 
 
 newsclient@server32212.xantronnet.de wrote:
 > Dear all,
 > I need help with the custom widget tutorial. I followed http://help.eclipse.org
 >  /help33/topic/org.eclipse.rap.help/help/html/advanced/custom -widget.html as far
 >  as possible, but probably I am missing some important steps.
 >
 > Can I find the complete custom widget tutorial sources somewhere?
 >
 > Here are my problems:
 > The internal browser shows the normal shaded blue background and nothing else.
 > The console displays:
 >
 > osgi> Dec 3, 2007 5:47:41 PM org.mortbay.http.HttpServer doStart
 > INFO: Version Jetty/5.1.x
 > Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 > INFO: Started org.mortbay.jetty.servlet.ServletHandler@13d28e3
 > Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 > INFO: Started HttpContext[/,/]
 > Dec 3, 2007 5:47:41 PM org.mortbay.http.SocketListener start
 > INFO: Started SocketListener on 0.0.0.0:9090
 > Dec 3, 2007 5:47:41 PM org.mortbay.util.Container start
 > INFO: Started org.mortbay.http.HttpServer@12a3722
 >
 > I am most uncertain about the plugin.xml and MANIFEST.MF files. Could you
 >  check these (below)?
 > If no obvious mistake is found in the following files, how can I check what
 >  is going wrong, given that no error is displayed, but only the background is
 >  displayed?
 > If I just remove the calls
 >> GMap map = new GMap( shell, SWT.NONE );
 >> map.setAddress( "Stephanienstraße 20, Karlsruhe" );
 > in gmapdemo and remove gmaps from the build path, there is still no widget
 >  displayed. In addition I have to remove gmaps from the Bundles in the Launch
 >  Configuration, so that an empty widget is then displayed.
 >
 > Thank you
 > Eike
 >
 > gmaps plugin.xml
 > ================
 > <?xml version="1.0" encoding="UTF-8"?>
 > <?eclipse version="3.2"?>
 > <plugin>
 >     <extension
 >       id="org.eclipse.rap.gmaps.gmap"
 >       point="org.eclipse.rap.ui.resources">
 >         <resource class="org.eclipse.rap.gmaps.GMapResource"/>
 >         <resource class="org.eclipse.rap.gmaps.GMapAPIResource"/>
 >     </extension>
 > </plugin>
 >
 > gmaps MANIFEST.MF
 > =================
 > Manifest-Version: 1.0
 > Bundle-ManifestVersion: 2
 > Bundle-Name: GMap Custom Widget
 > Bundle-SymbolicName: org.eclipse.rap.gmaps;singleton:=true
 > Bundle-Version: 1.0.0
 > Bundle-Vendor: RAP Team
 > Require-Bundle: org.eclipse.rap.ui
 > Export-Package: org.eclipse.rap.gmaps,
 >  org.eclipse.rap.internal.gmaps.gmapkit
 >
 > gmapdemo plugin.xml
 > ===================
 > <?xml version="1.0" encoding="UTF-8"?>
 > <?eclipse version="3.2"?>
 > <plugin>
 >    <extension
 >          point="org.eclipse.rap.ui.entrypoint">
 >       <entrypoint
 >             class="org.eclipse.rap.gmapdemo.GMapDemo"
 >             id="org.eclipse.rap.gmapdemo.gmapentry"
 >             parameter="hello2">
 >       </entrypoint>
 >    </extension>
 >    <extension
 >          point="org.eclipse.ui.perspectives">
 >       <perspective
 >             class="org.eclipse.rap.gmapdemo.Perspective"
 >             id="org.eclipse.rap.gmapdemo.perspective2"
 >             name="name">
 >       </perspective>
 >    </extension>
 >     <extension
 >       id="org.eclipse.rap.gmaps.gmap"
 >       point="org.eclipse.rap.ui.resources">
 >         <resource class="org.eclipse.rap.gmaps.GMapResource"/>
 >         <resource class="org.eclipse.rap.gmaps.GMapAPIResource"/>
 >     </extension>
 > </plugin>
 >
 > gmapdemo MANIFEST.MF
 > ====================
 > Manifest-Version: 1.0
 > Bundle-ManifestVersion: 2
 > Bundle-Name: Testgmap Plug-in
 > Bundle-SymbolicName: org.eclipse.rap.gmapdemo;singleton:=true
 > Bundle-Version: 1.0.0
 > Require-Bundle: org.eclipse.rap.ui
 > Import-Package: javax.servlet;version="2.4.0",
 >  javax.servlet.http;version="2.4.0"
 > Export-Package: org.eclipse.rap.gmapdemo
 >
 |  |  |  |  | 
| Re: Custom widget tutorial problems [message #64220 is a reply to message #64197] | Tue, 04 December 2007 04:39   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: e.bork.yahoo.com 
 >regarding the source of the tutorial: that would be way too easy;)
 You are right. Just copying the code doesn't help me much. But if I'm not
 successful following the description, a working solution can still allow
 me to locate the cause of the problems.
 
 >However, the gmaps widget can be found in the sandbox CVS module.
 I'll try that. Although I suspect that rather some project settings are
 wrong than the source code.
 For example, I don't completely understand the differences, what I have to
 put into the Build Path, into the "Dependencies", into "Require-bundle" in
 MANIFEST.MF and into "Build". Is there some (general eclipse) good
 overview on these questions?
 
 > From what I can see, the plugin.xml and manifest snippets as well las the
 >console output look good. To further diagnose the problem:
 >* have you tried to type "ss" in the console. This will give you a list of
 >bundles along with their state which should be ACTIVE.
 all that are listed, are ACTIVE. (see below)
 
 >* to see exception messages in the console output that occur during bundle
 >startup, try to launch with program argument "-consolelog" (ignore those
 >AuthorizationHandler-something exceptions)
 Do you also mean to ignore (see below) this?
 java.lang.NoClassDefFoundError:
 org/eclipse/core/internal/runtime/auth/AuthorizationHandler
 
 >* assuming that you use the RAP launcher, you can enable client-side debug-
 >and error-messages by setting the "Client-side log level" to "All" and the
 >"Client-side library variant" to "Debug"
 >* hm, if all that isn't the case ... come back here;)
 I appreciate your hints. Any new clues from this consolelog?
 
 Eike
 
 comple console output:
 (the GMap*Resource.*() messages stem from print statements which I added
 to those functions)
 
 osgi> !SESSION 2007-12-04 10:25:57.897
 -----------------------------------------------
 eclipse.buildId=unknown
 java.version=1.6.0
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
 Command-line arguments:  -dev
 file:/home/eike/eclipseworkspace/eclipse33/.metadata/.plugin s/org.eclipse.pde.core/gmapdemo/dev.properties
 -os linux -ws gtk -arch x86 -console -consolelog
 
 !ENTRY org.eclipse.core.runtime 2 0 2007-12-04 10:25:59.006
 !MESSAGE Authorization infrastructure
 (org.eclipse.core.runtime.compatibility.auth) not installed.
 !STACK 0
 java.lang.NoClassDefFoundError:
 org/eclipse/core/internal/runtime/auth/AuthorizationHandler
 at
 org.eclipse.core.internal.runtime.InternalPlatform.initializ eAuthorizationHandler(InternalPlatform.java:603)
 at
 org.eclipse.core.internal.runtime.InternalPlatform.start(Int ernalPlatform.java:745)
 at
 org.eclipse.core.internal.runtime.PlatformActivator.start(Pl atformActivator.java:31)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
 at
 org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
 at
 org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
 at
 org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
 at
 org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
 at
 org.eclipse.osgi.framework.internal.core.MultiSourcePackage. loadClass(MultiSourcePackage.java:31)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
 at java.lang.ClassLoader.defineClass1(Native Method)
 at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:161)
 at
 org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:501)
 at
 org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:471)
 at
 org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:430)
 at
 org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:413)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
 at
 org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 at
 org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
 at
 org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
 at
 org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
 at
 org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:350)
 at
 org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1118)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:634)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:508)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:282)
 at
 org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:468)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195)
 at
 org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:297)
 Dec 4, 2007 10:26:00 AM org.mortbay.http.HttpServer doStart
 INFO: Version Jetty/5.1.x
 Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 INFO: Started org.mortbay.jetty.servlet.ServletHandler@136a43c
 Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 INFO: Started HttpContext[/,/]
 Dec 4, 2007 10:26:00 AM org.mortbay.http.SocketListener start
 INFO: Started SocketListener on 0.0.0.0:9090
 Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 INFO: Started org.mortbay.http.HttpServer@3570b0
 GMapResource.isExternal()
 GMapResource.getLoader()
 GMapResource.getCharset()
 GMapResource.getOptions()
 GMapResource.getLocation()
 GMapResource.isJSLibrary()
 GMapResource.isExternal()
 GMapResource.getLoader()
 GMapResource.getCharset()
 GMapResource.getOptions()
 GMapResource.getLocation()
 GMapResource.isJSLibrary()
 GMapApiResource.isExternal()
 GMapApiResource.isExternal()
 GMapResource.isExternal()
 GMapResource.isExternal()
 GMapApiResource.isExternal()
 GMapApiResource.getLocation()
 GMapApiResource.isExternal()
 GMapApiResource.getLocation()
 ss
 
 Framework is launched.
 
 id	State       Bundle
 0	ACTIVE      org.eclipse.osgi_3.3.0.v20070530
 1	ACTIVE      org.eclipse.equinox.http.servlet_1.0.0.20071010-2241
 2	ACTIVE      org.eclipse.osgi.services_3.1.200.v20070605
 3	ACTIVE      org.eclipse.core.expressions_3.3.0.v20070606-0010
 4	ACTIVE      org.eclipse.rap.jface_1.0.0.20071010-2241
 5	ACTIVE      org.eclipse.rap.core.databinding_1.0.0.20071010-2241
 6	ACTIVE      org.eclipse.core.jobs_3.3.0.v20070423
 7	ACTIVE      org.eclipse.rap.ui_1.0.0.20071010-2241
 8	ACTIVE      org.eclipse.equinox.registry_3.3.0.v20070522
 9	ACTIVE      org.eclipse.rap.ui.forms_1.0.0.20071010-2241
 10	ACTIVE      org.eclipse.rap.ui.views_1.0.0.20071010-2241
 12	ACTIVE      org.eclipse.rap.source_1.0.0.20071010-2241
 13	ACTIVE      org.eclipse.core.runtime_3.3.100.v20070530
 14	ACTIVE      org.eclipse.rap.ui.workbench_1.0.0.20071010-2241
 15	ACTIVE      org.eclipse.equinox.app_1.0.0.v20070606
 16	ACTIVE      org.eclipse.equinox.preferences_3.2.100.v20070522
 17	ACTIVE      javax.servlet_2.4.0.20071010-2241
 18	ACTIVE      org.eclipse.core.commands_3.3.0.I20070605-0010
 19	ACTIVE      org.eclipse.rap.jface.databinding_1.0.0.20071010-2241
 20	ACTIVE      org.eclipse.equinox.http.jetty_1.0.0.20071010-2241
 21	ACTIVE      org.eclipse.rap.core.databinding.beans_1.0.0.20071010-2241
 22	ACTIVE      org.apache.commons.logging_1.0.4.20071010-2241
 23	ACTIVE      org.eclipse.rap.demo.databinding_1.0.0.20071010-2241
 24	ACTIVE      org.mortbay.jetty_5.1.11.20071010-2241
 25	ACTIVE      org.eclipse.rap.rwt_1.0.0.20071010-2241
 26	ACTIVE      org.eclipse.core.contenttype_3.2.100.v20070319
 27	ACTIVE      org.eclipse.equinox.http.registry_1.0.0.20071010-2241
 28	ACTIVE      org.eclipse.rap.demo_1.0.0.20071010-2241
 29	ACTIVE      org.eclipse.equinox.common_3.3.0.v20070426
 31	ACTIVE      org.eclipse.rap.gmaps_1.0.0
 32	ACTIVE      org.eclipse.rap.gmapdemo_1.0.0
 
 osgi>
 |  |  |  |  | 
| Re: Custom widget tutorial problems [message #64332 is a reply to message #64220] | Tue, 04 December 2007 09:35   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: rherrmann.innoopract.com 
 Eike,
 
 please see my comments below.
 
 Cheers,
 Rüdiger
 
 Eike wrote:
 >> regarding the source of the tutorial: that would be way too easy;)
 > You are right. Just copying the code doesn't help me much. But if I'm
 > not successful following the description, a working solution can still
 > allow me to locate the cause of the problems.
 
 My answer regarding the source code was meant in good fun. You are
 right, the tutorial source code should be available. We will try to
 provide this in the near future.
 
 >
 >> However, the gmaps widget can be found in the sandbox CVS module.
 > I'll try that. Although I suspect that rather some project settings are
 > wrong than the source code.
 > For example, I don't completely understand the differences, what I have
 > to put into the Build Path, into the "Dependencies", into
 
 As a general rule, don't use the Build Path except for the JRE System
 Library when PDE is involved. All references to plug-ins as well as
 libraries 'embedded' in the plug-in are declared in the MANIFEST.MF.
 The dependencies page is a more user-friendly representation of what is
 described by Require-Bundle and Import-Package in the MANIFEST.MF
 
 
 > "Require-bundle" in MANIFEST.MF and into "Build". Is there some (general
 > eclipse) good overview on these questions?
 
 - Search the resources page of eclipse.org
 http://www.eclipse.org/resources
 there is also a "Getting Started" link on the left that
 lists some articles
 - Eclipse help: The Platform Plug-in developer guide
 http://help.eclipse.org/help33/index.jsp
 
 >
 >> From what I can see, the plugin.xml and manifest snippets as well las
 >> the console output look good. To further diagnose the problem:
 >> * have you tried to type "ss" in the console. This will give you a
 >> list of bundles along with their state which should be ACTIVE.
 > all that are listed, are ACTIVE. (see below)
 >
 >> * to see exception messages in the console output that occur during
 >> bundle startup, try to launch with program argument "-consolelog"
 >> (ignore those AuthorizationHandler-something exceptions)
 > Do you also mean to ignore (see below) this?
 > java.lang.NoClassDefFoundError:
 > org/eclipse/core/internal/runtime/auth/AuthorizationHandler
 
 Yes
 
 >
 >> * assuming that you use the RAP launcher, you can enable client-side
 >> debug- and error-messages by setting the "Client-side log level" to
 >> "All" and the "Client-side library variant" to "Debug"
 
 Have you tried to enable the client-side debug messages?
 Please note that RAP runs only on Safari, IE and FF.
 
 >> * hm, if all that isn't the case ... come back here;)
 > I appreciate your hints. Any new clues from this consolelog?
 
 the consolelog and the ss output looks like it should.
 
 >
 > Eike
 >
 > comple console output:
 > (the GMap*Resource.*() messages stem from print statements which I added
 > to those functions)
 >
 > osgi> !SESSION 2007-12-04 10:25:57.897
 > -----------------------------------------------
 > eclipse.buildId=unknown
 > java.version=1.6.0
 > java.vendor=Sun Microsystems Inc.
 > BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_US
 > Command-line arguments:  -dev
 >  file:/home/eike/eclipseworkspace/eclipse33/.metadata/.plugin s/org.eclipse.pde.core/gmapdemo/dev.properties
 > -os linux -ws gtk -arch x86 -console -consolelog
 >
 > !ENTRY org.eclipse.core.runtime 2 0 2007-12-04 10:25:59.006
 > !MESSAGE Authorization infrastructure
 > (org.eclipse.core.runtime.compatibility.auth) not installed.
 > !STACK 0
 > java.lang.NoClassDefFoundError:
 > org/eclipse/core/internal/runtime/auth/AuthorizationHandler
 >     at
 >  org.eclipse.core.internal.runtime.InternalPlatform.initializ eAuthorizationHandler(InternalPlatform.java:603)
 >
 >     at
 >  org.eclipse.core.internal.runtime.InternalPlatform.start(Int ernalPlatform.java:745)
 >
 >     at
 >  org.eclipse.core.internal.runtime.PlatformActivator.start(Pl atformActivator.java:31)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleContextImpl$2 .run(BundleContextImpl.java:999)
 >
 >     at java.security.AccessController.doPrivileged(Native Method)
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActivator(BundleContextImpl.java:993)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:974)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
 >
 >     at
 >  org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
 >     at
 >  org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter .postFindLocalClass(EclipseLazyStarter.java:111)
 >
 >     at
 >  org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:417)
 >
 >     at
 >  org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.SingleSourcePackage .loadClass(SingleSourcePackage.java:37)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.MultiSourcePackage. loadClass(MultiSourcePackage.java:31)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:405)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
 >
 >     at
 >  org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
 >
 >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 >     at  java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319 )
 >     at java.lang.ClassLoader.defineClass1(Native Method)
 >     at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
 >     at
 >  org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.def ineClass(DefaultClassLoader.java:161)
 >
 >     at
 >  org.eclipse.osgi.baseadaptor.loader.ClasspathManager.defineC lass(ClasspathManager.java:501)
 >
 >     at
 >  org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findCla ssImpl(ClasspathManager.java:471)
 >
 >     at
 >  org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClassImpl(ClasspathManager.java:430)
 >
 >     at
 >  org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLoc alClass(ClasspathManager.java:413)
 >
 >     at
 >  org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.fin dLocalClass(DefaultClassLoader.java:189)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findLo calClass(BundleLoader.java:340)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:408)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
 >
 >     at
 >  org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
 >
 >     at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:289)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:134)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.AbstractBundle.resu me(AbstractBundle.java:350)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.Framework.resumeBun dle(Framework.java:1118)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.StartLevelManager.r esumeBundles(StartLevelManager.java:634)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.StartLevelManager.i ncFWSL(StartLevelManager.java:508)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.StartLevelManager.d oSetStartLevel(StartLevelManager.java:282)
 >
 >     at
 >  org.eclipse.osgi.framework.internal.core.StartLevelManager.d ispatchEvent(StartLevelManager.java:468)
 >
 >     at
 >  org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEve nt(EventManager.java:195)
 >
 >     at
 >  org.eclipse.osgi.framework.eventmgr.EventManager$EventThread .run(EventManager.java:297)
 >
 > Dec 4, 2007 10:26:00 AM org.mortbay.http.HttpServer doStart
 > INFO: Version Jetty/5.1.x
 > Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 > INFO: Started org.mortbay.jetty.servlet.ServletHandler@136a43c
 > Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 > INFO: Started HttpContext[/,/]
 > Dec 4, 2007 10:26:00 AM org.mortbay.http.SocketListener start
 > INFO: Started SocketListener on 0.0.0.0:9090
 > Dec 4, 2007 10:26:00 AM org.mortbay.util.Container start
 > INFO: Started org.mortbay.http.HttpServer@3570b0
 > GMapResource.isExternal()
 > GMapResource.getLoader()
 > GMapResource.getCharset()
 > GMapResource.getOptions()
 > GMapResource.getLocation()
 > GMapResource.isJSLibrary()
 > GMapResource.isExternal()
 > GMapResource.getLoader()
 > GMapResource.getCharset()
 > GMapResource.getOptions()
 > GMapResource.getLocation()
 > GMapResource.isJSLibrary()
 > GMapApiResource.isExternal()
 > GMapApiResource.isExternal()
 > GMapResource.isExternal()
 > GMapResource.isExternal()
 > GMapApiResource.isExternal()
 > GMapApiResource.getLocation()
 > GMapApiResource.isExternal()
 > GMapApiResource.getLocation()
 > ss
 >
 > Framework is launched.
 >
 > id    State       Bundle
 > 0    ACTIVE      org.eclipse.osgi_3.3.0.v20070530
 > 1    ACTIVE      org.eclipse.equinox.http.servlet_1.0.0.20071010-2241
 > 2    ACTIVE      org.eclipse.osgi.services_3.1.200.v20070605
 > 3    ACTIVE      org.eclipse.core.expressions_3.3.0.v20070606-0010
 > 4    ACTIVE      org.eclipse.rap.jface_1.0.0.20071010-2241
 > 5    ACTIVE      org.eclipse.rap.core.databinding_1.0.0.20071010-2241
 > 6    ACTIVE      org.eclipse.core.jobs_3.3.0.v20070423
 > 7    ACTIVE      org.eclipse.rap.ui_1.0.0.20071010-2241
 > 8    ACTIVE      org.eclipse.equinox.registry_3.3.0.v20070522
 > 9    ACTIVE      org.eclipse.rap.ui.forms_1.0.0.20071010-2241
 > 10    ACTIVE      org.eclipse.rap.ui.views_1.0.0.20071010-2241
 > 12    ACTIVE      org.eclipse.rap.source_1.0.0.20071010-2241
 > 13    ACTIVE      org.eclipse.core.runtime_3.3.100.v20070530
 > 14    ACTIVE      org.eclipse.rap.ui.workbench_1.0.0.20071010-2241
 > 15    ACTIVE      org.eclipse.equinox.app_1.0.0.v20070606
 > 16    ACTIVE      org.eclipse.equinox.preferences_3.2.100.v20070522
 > 17    ACTIVE      javax.servlet_2.4.0.20071010-2241
 > 18    ACTIVE      org.eclipse.core.commands_3.3.0.I20070605-0010
 > 19    ACTIVE      org.eclipse.rap.jface.databinding_1.0.0.20071010-2241
 > 20    ACTIVE      org.eclipse.equinox.http.jetty_1.0.0.20071010-2241
 > 21    ACTIVE
 > org.eclipse.rap.core.databinding.beans_1.0.0.20071010-2241
 > 22    ACTIVE      org.apache.commons.logging_1.0.4.20071010-2241
 > 23    ACTIVE      org.eclipse.rap.demo.databinding_1.0.0.20071010-2241
 > 24    ACTIVE      org.mortbay.jetty_5.1.11.20071010-2241
 > 25    ACTIVE      org.eclipse.rap.rwt_1.0.0.20071010-2241
 > 26    ACTIVE      org.eclipse.core.contenttype_3.2.100.v20070319
 > 27    ACTIVE      org.eclipse.equinox.http.registry_1.0.0.20071010-2241
 > 28    ACTIVE      org.eclipse.rap.demo_1.0.0.20071010-2241
 > 29    ACTIVE      org.eclipse.equinox.common_3.3.0.v20070426
 > 31    ACTIVE      org.eclipse.rap.gmaps_1.0.0
 > 32    ACTIVE      org.eclipse.rap.gmapdemo_1.0.0
 >
 > osgi>
 |  |  |  |  | 
| Re: Custom widget tutorial problems [message #64354 is a reply to message #64332] | Tue, 04 December 2007 10:53   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: e.bork.yahoo.com 
 Thank you, I got a working widget!
 
 > Eike wrote:
 >>> regarding the source of the tutorial: that would be way too easy;)
 >> You are right. Just copying the code doesn't help me much. But if I'm
 >> not successful following the description, a working solution can still
 >> allow me to locate the cause of the problems.
 
 > My answer regarding the source code was meant in good fun.
 
 I did understand it as fun :-)
 I just wanted to point out that I agree, I consider the "way too easy"
 tutorial not as the ideal way how to teach things, but nevertheless it is
 a valuable "emergency exit".
 
 >>> However, the gmaps widget can be found in the sandbox CVS module.
 
 Got it, combined it with the GMapDemo from the written tutorial, and it
 works. Now I can find out where my mistake was hidden. I don't promise it
 (knowing me) but I hope to post a final answer once I know the reason and
 if it was not too stupid.
 
 (BTW, while struggling with this tutorial I found some comments on two or
 three typos (like "if( parent.classname ==
 "org.eclipse.rap.rwt.widgets.Shell" ) {" in GMap.js where the "rap.rwt"
 needs to be "swt". The answer was "Yep we forgot to update that stuff". If
 you belong to the tutorial authors, pleeeeaaase do those updates).
 
 Thank you :-))
 
 Eike
 |  |  |  |  | 
| Re: Custom widget tutorial problems [message #64400 is a reply to message #64354] | Tue, 04 December 2007 11:05   |  | 
| Eclipse User  |  |  |  |  | Originally posted by: rherrmann.innoopract.com 
 Eike,
 
 good to hear that it finally worked out. I forwarded the typos to the
 author.
 
 Cheers,
 Rüdiger
 
 Eike wrote:
 > Thank you, I got a working widget!
 >
 >> Eike wrote:
 >>>> regarding the source of the tutorial: that would be way too easy;)
 >>> You are right. Just copying the code doesn't help me much. But if I'm
 >>> not successful following the description, a working solution can
 >>> still allow me to locate the cause of the problems.
 >
 >> My answer regarding the source code was meant in good fun.
 >
 > I did understand it as fun :-)
 > I just wanted to point out that I agree, I consider the "way too easy"
 > tutorial not as the ideal way how to teach things, but nevertheless it
 > is a valuable "emergency exit".
 >
 >>>> However, the gmaps widget can be found in the sandbox CVS module.
 >
 > Got it, combined it with the GMapDemo from the written tutorial, and it
 > works. Now I can find out where my mistake was hidden. I don't promise
 > it (knowing me) but I hope to post a final answer once I know the reason
 > and if it was not too stupid.
 >
 > (BTW, while struggling with this tutorial I found some comments on two
 > or three typos (like "if( parent.classname ==
 > "org.eclipse.rap.rwt.widgets.Shell" ) {" in GMap.js where the "rap.rwt"
 > needs to be "swt". The answer was "Yep we forgot to update that stuff".
 > If you belong to the tutorial authors, pleeeeaaase do those updates).
 >
 > Thank you :-))
 >
 > Eike
 >
 |  |  |  |  | 
| Re: Custom widget tutorial problems SOLVED [message #64446 is a reply to message #64332] | Tue, 04 December 2007 12:15  |  | 
| Eclipse User  |  |  |  |  | Originally posted by: e.bork.yahoo.com 
 Finally it was the missing line "members:{" in the GMap.js that I copied
 and pasted from the eclipse help.
 
 Other replies when someone was fighting with the Javascript suggested to
 open the script in a js validating editor. Is this the only possibility?
 
 > Have you tried to enable the client-side debug messages?
 Yes, I did, without any more output.
 
 Is there no setting so that RAP reports or throws an Exception for broken
 Javascript?
 
 Eike
 |  |  |  | 
 
 
 Current Time: Fri Oct 31 14:30:59 EDT 2025 
 Powered by FUDForum . Page generated in 0.04079 seconds |