Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Images in Tomcat
Images in Tomcat [message #138751] Tue, 30 June 2009 09:13 Go to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi,
Does anybody can explain me why I do not see any images in my deployed
application (on Tomcat) since my last update of RAP...
I have not changed the way the image is got:

public Image getImage(String name){
String path = "resources/images/"+name;
return
Graphics.getImage(path,NSFWWebApplication.class.getClassLoad er());
}

bin.includes = (...) src/resources/,\ (...)

All the images have disapeared, including images of RWT dialog (warning,
error, ...). So this let me think that the problem is not in my code.

Do I have to change something?

Thanks.
Re: Images in Tomcat [message #139142 is a reply to message #138751] Thu, 02 July 2009 22:42 Go to previous messageGo to next message
Benjamin Muskalla is currently offline Benjamin MuskallaFriend
Messages: 338
Registered: July 2009
Senior Member
Hi Emmanuel,


Emmanuel Marchal wrote:
> Hi,
> Does anybody can explain me why I do not see any images in my deployed
> application (on Tomcat) since my last update of RAP...
> I have not changed the way the image is got:
We neither ;-)

>
> public Image getImage(String name){
> String path = "resources/images/"+name;
> return
> Graphics.getImage(path,NSFWWebApplication.class.getClassLoad er());
> }
>
> bin.includes = (...) src/resources/,\ (...)
>
> All the images have disapeared, including images of RWT dialog (warning,
> error, ...). So this let me think that the problem is not in my code.

You should check the error logs of your tomcat to see if the requests
get rejected in any way. Maybe some server configuration problem.

You could also check with FireBug or similar tools what happens to the
requests.

Just some ideas - don't have a clue what could be wrong here. But maybe
we can find out :)

Greets
Ben

> Thanks.


--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
Re: Images in Tomcat [message #139755 is a reply to message #139142] Wed, 08 July 2009 13:53 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi Benjamin,

I do not see any errors related to the images.

Maybe a clue: to test the war export with the last version, I have checked
out the CVS version of RAP.

... and I have an error org.eclipse.rap.rwt about graphics package:

Package 'org.eclipse.rwt.graphics' does not exist in this
plug-in MANIFEST.MF /org.eclipse.rap.rwt/META-INF line 17 Plug-in Problem

I saw that Graphics class (inside this package) contains the getImage
method with seems to do not work correctly...

Does that help you to find my problem ?

Emmanuel


Benjamin Muskalla wrote:

> Hi Emmanuel,


> Emmanuel Marchal wrote:
>> Hi,
>> Does anybody can explain me why I do not see any images in my deployed
>> application (on Tomcat) since my last update of RAP...
>> I have not changed the way the image is got:
> We neither ;-)

>>
>> public Image getImage(String name){
>> String path = "resources/images/"+name;
>> return
>> Graphics.getImage(path,NSFWWebApplication.class.getClassLoad er());
>> }
>>
>> bin.includes = (...) src/resources/, (...)
>>
>> All the images have disapeared, including images of RWT dialog (warning,
>> error, ...). So this let me think that the problem is not in my code.

> You should check the error logs of your tomcat to see if the requests
> get rejected in any way. Maybe some server configuration problem.

> You could also check with FireBug or similar tools what happens to the
> requests.

> Just some ideas - don't have a clue what could be wrong here. But maybe
> we can find out :)

> Greets
> Ben

>> Thanks.
Re: Images in Tomcat [message #139766 is a reply to message #139755] Wed, 08 July 2009 14:35 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
More info:

I have 3 different plugins for rap.rwt !

org.eclipse.rap.rwt_1.2.0.20090616-1425.jar
org.eclipse.rap.rwt_1.2.0.200907081602.jar
org.eclipse.rap.rwt_1.2.0.200907081622.jar

Does this could explain my problem ?
Re: Images in Tomcat [message #139776 is a reply to message #139142] Wed, 08 July 2009 16:13 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
That's the first time I am happy to see an error !
Here it is :

08-juil.-2009 18:10:55 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: "Servlet.service()" pour la servlet equinoxbridgeservlet a
g�n�r� une exception
java.lang.IllegalArgumentException: Resource
'resource/widget/rap/datetime/up_button.gif' not found for theme 'RAP
Default Theme'
at
org.eclipse.rwt.internal.theme.ThemeManager.registerThemeabl eWidgetImages(ThemeManager.java:704)
at
org.eclipse.rwt.internal.theme.ThemeManager.registerThemeFil es(ThemeManager.java:629)
at
org.eclipse.rwt.internal.theme.ThemeManager.registerResource s(ThemeManager.java:383)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:298)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:33)
at
org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
at
org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:65)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:62)
at
org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
at
org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:48 )
at
org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:36)
at
org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
at
org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
at org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
at
org.eclipse.rap.ui.internal.servlet.RequestHandler.service(R equestHandler.java:51)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
at
org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.eclipse.equinox.servletbridge.BridgeServlet.service(Brid geServlet.java:120)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
at java.lang.Thread.run(Unknown Source)
Re: Images in Tomcat [message #139786 is a reply to message #139776] Wed, 08 July 2009 16:21 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Emmanuel,

please run your application inside Tomcat with -console -consolelog
switches and post the result from the "ss" command.

Best,
Ivan

Emmanuel Marchal wrote:
> That's the first time I am happy to see an error !
> Here it is :
>
> 08-juil.-2009 18:10:55 org.apache.catalina.core.StandardWrapperValve
> invoke
> GRAVE: "Servlet.service()" pour la servlet equinoxbridgeservlet a
> g�n�r� une exception
> java.lang.IllegalArgumentException: Resource
> 'resource/widget/rap/datetime/up_button.gif' not found for theme 'RAP
> Default Theme'
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerThemeabl eWidgetImages(ThemeManager.java:704)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerThemeFil es(ThemeManager.java:629)
>
> at
> org.eclipse.rwt.internal.theme.ThemeManager.registerResource s(ThemeManager.java:383)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCA.write Libraries(DisplayLCA.java:298)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade Impl.writeLibrariesInternal(DisplayLCAFacadeImpl.java:33)
>
> at
> org.eclipse.swt.internal.widgets.displaykit.DisplayLCAFacade .writeLibraries(DisplayLCAFacade.java:36)
>
> at
> org.eclipse.rwt.internal.lifecycle.DisplayUtil.writeLibrarie s(DisplayUtil.java:65)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getLibraries(LifeCycleServiceHandlerConfigurer.java:2 02)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandlerConf igurer.getTemplateOfStartupPage(LifeCycleServiceHandlerConfi gurer.java:62)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.renderScript( BrowserSurvey.java:90)
>
> at
> org.eclipse.rwt.internal.service.BrowserSurvey.sendBrowserSu rvey(BrowserSurvey.java:51)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.int ernalService(LifeCycleServiceHandler.java:197)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.acc ess$1(LifeCycleServiceHandler.java:185)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler$Lif eCycleServiceHandlerSync.doService(LifeCycleServiceHandler.j ava:150)
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.serviceInternal(RWTLifeCycleServiceHandlerSync.java:48 )
>
> at
> org.eclipse.rwt.internal.lifecycle.RWTLifeCycleServiceHandle rSync.service(RWTLifeCycleServiceHandlerSync.java:36)
>
> at
> org.eclipse.rwt.internal.service.LifeCycleServiceHandler.ser vice(LifeCycleServiceHandler.java:157)
>
> at
> org.eclipse.rwt.internal.service.ServiceManager$HandlerDispa tcher.service(ServiceManager.java:101)
>
> at
> org.eclipse.rwt.internal.engine.RWTDelegate.doPost(RWTDelega te.java:63)
> at
> org.eclipse.rap.ui.internal.servlet.RequestHandler.service(R equestHandler.java:51)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.equinox.http.servlet.internal.ServletRegistratio n.handleRequest(ServletRegistration.java:90)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.proce ssAlias(ProxyServlet.java:111)
>
> at
> org.eclipse.equinox.http.servlet.internal.ProxyServlet.servi ce(ProxyServlet.java:59)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.eclipse.equinox.servletbridge.BridgeServlet.service(Brid geServlet.java:120)
>
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(ApplicationFilterChain.java:290)
>
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationFilterChain.java:206)
>
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperValve.java:233)
>
> at
> org.apache.catalina.core.StandardContextValve.invoke(Standar dContextValve.java:191)
>
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.java:128)
>
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.java:102)
>
> at
> org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineValve.java:109)
>
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.java:286)
>
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Proce ssor.java:845)
>
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHand ler.process(Http11Protocol.java:583)
>
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoin t.java:447)
> at java.lang.Thread.run(Unknown Source)
>
Re: Images in Tomcat [message #139820 is a reply to message #139786] Thu, 09 July 2009 07:58 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
Fragments=78, 102
1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
2 ACTIVE com.ibm.icu_3.8.1.v20080530
3 ACTIVE javax.xml_1.3.4.v200806030440
4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
16 INSTALLED org.apache.commons.el_1.0.0.v200806031608
17 ACTIVE org.apache.commons.fileupload_1.2.0.200907081808
18 ACTIVE org.apache.commons.io_1.3.2.200907081808
19 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
20 INSTALLED org.apache.jasper_5.5.17.v200806031609
21 ACTIVE org.apache.xerces_2.9.0.v200805270400
22 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
23 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
24 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
25 ACTIVE
org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
26 ACTIVE
org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
27 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
28 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
29 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
30 ACTIVE org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
31 ACTIVE
org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
32 ACTIVE
org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
0521
33 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
34 ACTIVE
org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
02
35 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
36 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
37 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
38 ACTIVE org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
39 ACTIVE
org.eclipse.core.databinding.observable_1.2.0.I20090604-2000

40 ACTIVE
org.eclipse.core.databinding.property_1.2.0.I20090526-2000
41 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
42 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
43 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
44 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
45 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
46 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
2
47 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
48 ACTIVE
org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
050755
49 ACTIVE
org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
8270255
50 ACTIVE
org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
51 ACTIVE org.eclipse.datatools.connectivity_1.1.2.v200901090028
52 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
53 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
54 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
55 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
56 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
57 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
58 ACTIVE org.eclipse.equinox.http.registry_1.0.200.200907081808
59 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.100.200907081808
60 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
61 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090520-1800
62 ACTIVE org.eclipse.equinox.registry_3.4.100.200907081808
Fragments=127, 148
63 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
64 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
65 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
66 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
Master=67
67 ACTIVE org.eclipse.rap.rwt_1.2.0.200907081755
Fragments=66
68 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
69 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
70 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
71 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
72 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200907081808
73 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
74 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
75 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
76 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
77 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
78 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
81 RESOLVED NSFW_3.0.10
102 RESOLVED org.eclipse.birt.api_1.0.0
Master=0
112 RESOLVED
org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
127 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
80610
Master=62
145 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200907081808
148 RESOLVED org.eclipse.rap.equinox.registry_1.2.0.200907081808
Master=62
152 RESOLVED org.eclipse.rap.rwt_1.2.0.20090616-1425
153 RESOLVED org.eclipse.rap.rwt_1.2.0.200907081637
163 RESOLVED org.mozilla.rhino_1.6.7.v20080214
167 RESOLVED org.w3c.sac_1.3.0.v20070710
168 ACTIVE SCOOP_CS_1.1.0
Re: Images in Tomcat [message #139830 is a reply to message #139820] Thu, 09 July 2009 08:21 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Emmanuel,

as a starting point you can remove these duplicate "org.eclipse.rap.rwt"
bundles and leave only one (from the target platform
"org.eclipse.rap.rwt_1.2.0.20090616-1425") as you mention in one of the
previous posts. I think that "org.eclipse.update.configurator" is not
needed too.

Best,
Ivan

Emmanuel Marchal wrote:
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
> Fragments=78, 102
> 1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
> 2 ACTIVE com.ibm.icu_3.8.1.v20080530
> 3 ACTIVE javax.xml_1.3.4.v200806030440
> 4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
> 5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
> 6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
> 7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
> 8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
> 9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
> 10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
> 11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
> 12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
> 13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
> 14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
> 15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
> 16 INSTALLED org.apache.commons.el_1.0.0.v200806031608
> 17 ACTIVE org.apache.commons.fileupload_1.2.0.200907081808
> 18 ACTIVE org.apache.commons.io_1.3.2.200907081808
> 19 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
> 20 INSTALLED org.apache.jasper_5.5.17.v200806031609
> 21 ACTIVE org.apache.xerces_2.9.0.v200805270400
> 22 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
> 23 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
> 24 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
> 25 ACTIVE
> org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
> 26 ACTIVE
> org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
> 27 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
> 28 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
> 29 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
> 30 ACTIVE
> org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
> 31 ACTIVE
> org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
> 32 ACTIVE
> org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
> 0521
> 33 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
> 34 ACTIVE
> org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
> 02
> 35 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
> 36 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
> 37 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
> 38 ACTIVE
> org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
> 39 ACTIVE
> org.eclipse.core.databinding.observable_1.2.0.I20090604-2000
>
> 40 ACTIVE
> org.eclipse.core.databinding.property_1.2.0.I20090526-2000
> 41 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
> 42 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
> 43 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
> 44 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
> 45 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
> 46 ACTIVE
> org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
> 2
> 47 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
> 48 ACTIVE
> org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
> 050755
> 49 ACTIVE
> org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
> 8270255
> 50 ACTIVE
> org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
> 51 ACTIVE
> org.eclipse.datatools.connectivity_1.1.2.v200901090028
> 52 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
> 53 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
> 54 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
> 55 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
> 56 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
> 57 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
> 58 ACTIVE
> org.eclipse.equinox.http.registry_1.0.200.200907081808
> 59 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.100.200907081808
> 60 ACTIVE
> org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
> 61 ACTIVE
> org.eclipse.equinox.preferences_3.2.300.v20090520-1800
> 62 ACTIVE org.eclipse.equinox.registry_3.4.100.200907081808
> Fragments=127, 148
> 63 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
> 64 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
> 65 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
> 66 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
> Master=67
> 67 ACTIVE org.eclipse.rap.rwt_1.2.0.200907081755
> Fragments=66
> 68 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
> 69 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
> 70 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
> 71 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
> 72 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200907081808
> 73 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
> 74 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
> 75 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
> 76 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
> 77 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
> 78 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
> 81 RESOLVED NSFW_3.0.10
> 102 RESOLVED org.eclipse.birt.api_1.0.0
> Master=0
> 112 RESOLVED
> org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
> 127 RESOLVED
> org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
> 80610
> Master=62
> 145 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200907081808
> 148 RESOLVED org.eclipse.rap.equinox.registry_1.2.0.200907081808
> Master=62
> 152 RESOLVED org.eclipse.rap.rwt_1.2.0.20090616-1425
> 153 RESOLVED org.eclipse.rap.rwt_1.2.0.200907081637
> 163 RESOLVED org.mozilla.rhino_1.6.7.v20080214
> 167 RESOLVED org.w3c.sac_1.3.0.v20070710
> 168 ACTIVE SCOOP_CS_1.1.0
>
Re: Images in Tomcat [message #139841 is a reply to message #139830] Thu, 09 July 2009 09:13 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi Ivan,

First, thanks so much for your help.

I have cleaned my plugins to have only one rap.rwt. I have kept
update.configurator because nothing is working without it.

Here is the ss dump:

osgi> ss

Framework is launched.

id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
Fragments=76, 98
1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
2 ACTIVE com.ibm.icu_3.8.1.v20080530
3 ACTIVE javax.xml_1.3.4.v200806030440
4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
16 ACTIVE org.apache.commons.fileupload_1.2.0.200907091105
17 ACTIVE org.apache.commons.io_1.3.2.200907091105
18 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
19 ACTIVE org.apache.xerces_2.9.0.v200805270400
20 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
21 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
22 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
23 ACTIVE
org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
24 ACTIVE
org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
25 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
26 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
27 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
28 ACTIVE org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
29 ACTIVE
org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
30 ACTIVE
org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
0521
31 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
32 ACTIVE
org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
02
33 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
34 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
35 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
36 ACTIVE org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
37 ACTIVE
org.eclipse.core.databinding.observable_1.2.0.I20090604-2000

38 ACTIVE
org.eclipse.core.databinding.property_1.2.0.I20090526-2000
39 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
40 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
41 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
42 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
43 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
44 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
2
45 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
46 ACTIVE
org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
050755
47 ACTIVE
org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
8270255
48 ACTIVE
org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
49 ACTIVE org.eclipse.datatools.connectivity_1.1.2.v200901090028
50 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
51 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
52 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
53 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
54 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
55 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
56 ACTIVE org.eclipse.equinox.http.registry_1.0.200.200907091105
57 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.100.200907091105
58 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
59 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090520-1800
60 ACTIVE org.eclipse.equinox.registry_3.4.100.200907091105
Fragments=123
61 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
62 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
63 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
64 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
Master=65
65 ACTIVE org.eclipse.rap.rwt_1.2.0.20090616-1425
Fragments=64
66 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
67 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
68 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
69 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
70 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200907091105
71 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
72 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
73 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
74 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
75 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
76 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
79 RESOLVED NSFW_3.0.10
98 RESOLVED org.eclipse.birt.api_1.0.0
Master=0
108 RESOLVED
org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
123 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
80610
Master=60
141 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200907091105
144 INSTALLED org.eclipse.rap.equinox.registry_1.2.0.200907091105
157 RESOLVED org.mozilla.rhino_1.6.7.v20080214
161 RESOLVED org.w3c.sac_1.3.0.v20070710
162 ACTIVE SCOOP_CS_1.1.0
Re: Images in Tomcat [message #139854 is a reply to message #139841] Thu, 09 July 2009 09:43 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan FurnadjievFriend
Messages: 2426
Registered: July 2009
Location: Sofia, Bulgaria
Senior Member
Hi Emmanuel,

now the exeption:
----
08-juil.-2009 18:10:55 org.apache.catalina.core.StandardWrapperValve invoke
GRAVE: "Servlet.service()" pour la servlet equinoxbridgeservlet a
g�n�r� une exception
java.lang.IllegalArgumentException: Resource
'resource/widget/rap/datetime/up_button.gif' not found for theme 'RAP
Default Theme'
---
is gone... I suppose :-). How did you generate the config.ini file (with
ConfigIniCreator.java)? How did you create the war? Did you follow the
guide available here [1]?

[1]
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .rap.help/help/html/advanced/deployment.html

Best,
Ivan

Emmanuel Marchal wrote:
> Hi Ivan,
>
> First, thanks so much for your help.
>
> I have cleaned my plugins to have only one rap.rwt. I have kept
> update.configurator because nothing is working without it.
>
> Here is the ss dump:
>
> osgi> ss
>
> Framework is launched.
>
> id State Bundle
> 0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
> Fragments=76, 98
> 1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
> 2 ACTIVE com.ibm.icu_3.8.1.v20080530
> 3 ACTIVE javax.xml_1.3.4.v200806030440
> 4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
> 5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
> 6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
> 7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
> 8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
> 9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
> 10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
> 11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
> 12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
> 13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
> 14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
> 15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
> 16 ACTIVE org.apache.commons.fileupload_1.2.0.200907091105
> 17 ACTIVE org.apache.commons.io_1.3.2.200907091105
> 18 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
> 19 ACTIVE org.apache.xerces_2.9.0.v200805270400
> 20 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
> 21 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
> 22 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
> 23 ACTIVE
> org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
> 24 ACTIVE
> org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
> 25 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
> 26 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
> 27 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
> 28 ACTIVE
> org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
> 29 ACTIVE
> org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
> 30 ACTIVE
> org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
> 0521
> 31 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
> 32 ACTIVE
> org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
> 02
> 33 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
> 34 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
> 35 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
> 36 ACTIVE
> org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
> 37 ACTIVE
> org.eclipse.core.databinding.observable_1.2.0.I20090604-2000
>
> 38 ACTIVE
> org.eclipse.core.databinding.property_1.2.0.I20090526-2000
> 39 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
> 40 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
> 41 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
> 42 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
> 43 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
> 44 ACTIVE
> org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
> 2
> 45 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
> 46 ACTIVE
> org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
> 050755
> 47 ACTIVE
> org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
> 8270255
> 48 ACTIVE
> org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
> 49 ACTIVE
> org.eclipse.datatools.connectivity_1.1.2.v200901090028
> 50 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
> 51 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
> 52 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
> 53 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
> 54 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
> 55 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
> 56 ACTIVE
> org.eclipse.equinox.http.registry_1.0.200.200907091105
> 57 ACTIVE
> org.eclipse.equinox.http.servletbridge_1.0.100.200907091105
> 58 ACTIVE
> org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
> 59 ACTIVE
> org.eclipse.equinox.preferences_3.2.300.v20090520-1800
> 60 ACTIVE org.eclipse.equinox.registry_3.4.100.200907091105
> Fragments=123
> 61 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
> 62 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
> 63 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
> 64 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
> Master=65
> 65 ACTIVE org.eclipse.rap.rwt_1.2.0.20090616-1425
> Fragments=64
> 66 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
> 67 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
> 68 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
> 69 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
> 70 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200907091105
> 71 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
> 72 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
> 73 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
> 74 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
> 75 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
> 76 RESOLVED
> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
> Master=0
> 79 RESOLVED NSFW_3.0.10
> 98 RESOLVED org.eclipse.birt.api_1.0.0
> Master=0
> 108 RESOLVED
> org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
> 123 RESOLVED
> org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
> 80610
> Master=60
> 141 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200907091105
> 144 INSTALLED org.eclipse.rap.equinox.registry_1.2.0.200907091105
> 157 RESOLVED org.mozilla.rhino_1.6.7.v20080214
> 161 RESOLVED org.w3c.sac_1.3.0.v20070710
> 162 ACTIVE SCOOP_CS_1.1.0
>
>
Re: Images in Tomcat [message #468191 is a reply to message #139854] Tue, 04 August 2009 13:23 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
Hi Ivan!
After some other work (and some vacation ;-)), I am back trying to solve
my problem of export.

I have no more exceptions at deployment.
Yes I follow the official guide that you mentionned to export my webapp to
a WAR file.

Everything worked fine before... (it's always difficult to know excatly
what)... some RAP upgrades, BIRT integration, ...

Maybe a clue (or a possible related issue):
The translation of my plug-in manifest stoped working at approximatively
the same time. However all required plugins like
org.eclipse.rap.equinox.registry are still in my launch configuration (in
bundles)...

I'm getting stressed because I have to generate a war of my application
for the end of the week :-(

Thanks for your help

Emmanuel


Ivan Furnadjiev wrote:

> Hi Emmanuel,

> now the exeption:
> ----
> 08-juil.-2009 18:10:55 org.apache.catalina.core.StandardWrapperValve invoke
> GRAVE: "Servlet.service()" pour la servlet equinoxbridgeservlet a
> g�n�r� une exception
> java.lang.IllegalArgumentException: Resource
> 'resource/widget/rap/datetime/up_button.gif' not found for theme 'RAP
> Default Theme'
> ---
> is gone... I suppose :-). How did you generate the config.ini file (with
> ConfigIniCreator.java)? How did you create the war? Did you follow the
> guide available here [1]?

> [1]
>
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .rap.help/help/html/advanced/deployment.html

> Best,
> Ivan

> Emmanuel Marchal wrote:
>> Hi Ivan,
>>
>> First, thanks so much for your help.
>>
>> I have cleaned my plugins to have only one rap.rwt. I have kept
>> update.configurator because nothing is working without it.
>>
>> Here is the ss dump:
>>
>> osgi> ss
>>
>> Framework is launched.
>>
>> id State Bundle
>> 0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
>> Fragments=76, 98
>> 1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
>> 2 ACTIVE com.ibm.icu_3.8.1.v20080530
>> 3 ACTIVE javax.xml_1.3.4.v200806030440
>> 4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
>> 5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
>> 6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
>> 7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
>> 8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
>> 9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
>> 10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
>> 11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
>> 12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
>> 13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
>> 14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
>> 15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
>> 16 ACTIVE org.apache.commons.fileupload_1.2.0.200907091105
>> 17 ACTIVE org.apache.commons.io_1.3.2.200907091105
>> 18 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
>> 19 ACTIVE org.apache.xerces_2.9.0.v200805270400
>> 20 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
>> 21 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
>> 22 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
>> 23 ACTIVE
>> org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
>> 24 ACTIVE
>> org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
>> 25 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
>> 26 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
>> 27 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
>> 28 ACTIVE
>> org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
>> 29 ACTIVE
>> org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
>> 30 ACTIVE
>> org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
>> 0521
>> 31 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
>> 32 ACTIVE
>> org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
>> 02
>> 33 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
>> 34 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
>> 35 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
>> 36 ACTIVE
>> org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
>> 37 ACTIVE
>> org.eclipse.core.databinding.observable_1.2.0.I20090604-2000
>>
>> 38 ACTIVE
>> org.eclipse.core.databinding.property_1.2.0.I20090526-2000
>> 39 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
>> 40 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
>> 41 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
>> 42 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
>> 43 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
>> 44 ACTIVE
>> org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
>> 2
>> 45 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
>> 46 ACTIVE
>> org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
>> 050755
>> 47 ACTIVE
>> org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
>> 8270255
>> 48 ACTIVE
>> org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
>> 49 ACTIVE
>> org.eclipse.datatools.connectivity_1.1.2.v200901090028
>> 50 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
>> 51 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
>> 52 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
>> 53 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
>> 54 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
>> 55 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
>> 56 ACTIVE
>> org.eclipse.equinox.http.registry_1.0.200.200907091105
>> 57 ACTIVE
>> org.eclipse.equinox.http.servletbridge_1.0.100.200907091105
>> 58 ACTIVE
>> org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
>> 59 ACTIVE
>> org.eclipse.equinox.preferences_3.2.300.v20090520-1800
>> 60 ACTIVE org.eclipse.equinox.registry_3.4.100.200907091105
>> Fragments=123
>> 61 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
>> 62 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
>> 63 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
>> 64 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
>> Master=65
>> 65 ACTIVE org.eclipse.rap.rwt_1.2.0.20090616-1425
>> Fragments=64
>> 66 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
>> 67 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
>> 68 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
>> 69 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
>> 70 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200907091105
>> 71 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
>> 72 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
>> 73 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
>> 74 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
>> 75 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
>> 76 RESOLVED
>> org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
>> Master=0
>> 79 RESOLVED NSFW_3.0.10
>> 98 RESOLVED org.eclipse.birt.api_1.0.0
>> Master=0
>> 108 RESOLVED
>> org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
>> 123 RESOLVED
>> org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
>> 80610
>> Master=60
>> 141 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200907091105
>> 144 INSTALLED org.eclipse.rap.equinox.registry_1.2.0.200907091105
>> 157 RESOLVED org.mozilla.rhino_1.6.7.v20080214
>> 161 RESOLVED org.w3c.sac_1.3.0.v20070710
>> 162 ACTIVE SCOOP_CS_1.1.0
>>
>>
Re: Images in Tomcat [message #468192 is a reply to message #468191] Tue, 04 August 2009 13:27 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
ss dump:
id State Bundle
0 ACTIVE org.eclipse.osgi_3.5.0.v20090520
Fragments=76, 98
1 ACTIVE org.eclipse.update.configurator_3.2.200.v20080417
2 ACTIVE com.ibm.icu_3.8.1.v20080530
3 ACTIVE javax.xml_1.3.4.v200806030440
4 ACTIVE org.apache.batik.bridge_1.6.0.v200805290154
5 ACTIVE org.apache.batik.css_1.6.0.v200805290154
6 ACTIVE org.apache.batik.dom.svg_1.6.0.v200805290154
7 ACTIVE org.apache.batik.dom_1.6.0.v200805290154
8 ACTIVE org.apache.batik.ext.awt_1.6.0.v200805290154
9 ACTIVE org.apache.batik.parser_1.6.0.v200805290154
10 ACTIVE org.apache.batik.svggen_1.6.0.v200805290154
11 ACTIVE org.apache.batik.transcoder_1.6.0.v200805290154
12 ACTIVE org.apache.batik.util.gui_1.6.0.v200805290154
13 ACTIVE org.apache.batik.util_1.6.0.v200805290154
14 ACTIVE org.apache.batik.xml_1.6.0.v200805290154
15 ACTIVE org.apache.commons.codec_1.3.0.v20080530-1600
16 ACTIVE org.apache.commons.fileupload_1.2.0.200908041238
17 ACTIVE org.apache.commons.io_1.3.2.200908041238
18 ACTIVE org.apache.commons.logging_1.0.4.v200904062259
19 ACTIVE org.apache.xerces_2.9.0.v200805270400
20 ACTIVE org.apache.xml.resolver_1.2.0.v200806030312
21 ACTIVE org.apache.xml.serializer_2.7.1.v200806030322
22 ACTIVE
org.eclipse.birt.chart.device.extension_2.3.2.r232_20090115
23 ACTIVE
org.eclipse.birt.chart.engine.extension_2.3.2.r232_20090115
24 ACTIVE org.eclipse.birt.chart.engine_2.3.2.r232_v20090521
25 ACTIVE org.eclipse.birt.chart.reportitem_2.3.2.r232_20090115
26 ACTIVE org.eclipse.birt.core_2.3.2.r232_v20090521
27 ACTIVE org.eclipse.birt.data.aggregation_2.3.2.r232_v20090211
28 ACTIVE org.eclipse.birt.data_2.3.2.r232_v20090521
29 ACTIVE
org.eclipse.birt.report.data.adapter_2.3.2.r232_v20090211
30 ACTIVE
org.eclipse.birt.report.engine.emitter.html_2.3.2.r232_v2009
0521
31 ACTIVE org.eclipse.birt.report.engine_2.3.2.r232_v20090522
32 ACTIVE
org.eclipse.birt.report.item.crosstab.core_2.3.2.r232_200902
02
33 ACTIVE org.eclipse.birt.report.model_2.3.2.r232_20090522
34 ACTIVE org.eclipse.core.commands_3.5.0.I20090525-2000
35 ACTIVE org.eclipse.core.contenttype_3.4.0.v20090429-1800
36 ACTIVE org.eclipse.core.databinding.beans_1.2.0.I20090525-2000
37 ACTIVE
org.eclipse.core.databinding.observable_1.2.0.I20090604-2000

38 ACTIVE
org.eclipse.core.databinding.property_1.2.0.I20090526-2000
39 ACTIVE org.eclipse.core.databinding_1.2.0.I20090604-2000
40 ACTIVE org.eclipse.core.expressions_3.4.100.v20090429-1800
41 ACTIVE org.eclipse.core.filesystem_1.2.0.v20080604-1400
42 ACTIVE org.eclipse.core.jobs_3.4.100.v20090429-1800
43 ACTIVE org.eclipse.core.resources_3.4.2.R34x_v20090126
44 ACTIVE
org.eclipse.core.runtime.compatibility.auth_3.2.100.v2007050
2
45 ACTIVE org.eclipse.core.runtime_3.5.0.v20090525
46 ACTIVE
org.eclipse.datatools.connectivity.oda.consumer_3.1.3.v20080
8270255
47 ACTIVE
org.eclipse.datatools.connectivity.oda.profile_3.0.7.v200812
050755
48 ACTIVE
org.eclipse.datatools.connectivity.oda_3.1.3.v200808270255
49 ACTIVE org.eclipse.datatools.connectivity_1.1.2.v200901090028
50 ACTIVE org.eclipse.emf.common_2.4.0.v200902171115
51 ACTIVE org.eclipse.emf.ecore.xmi_2.4.1.v200902171115
52 ACTIVE org.eclipse.emf.ecore_2.4.2.v200902171115
53 ACTIVE org.eclipse.equinox.app_1.2.0.v20090520-1800
54 ACTIVE org.eclipse.equinox.common_3.5.0.v20090520-1800
55 ACTIVE org.eclipse.equinox.http.jetty_2.0.0.v20090520-1800
56 ACTIVE org.eclipse.equinox.http.registry_1.0.200.200908041238
57 ACTIVE
org.eclipse.equinox.http.servletbridge_1.0.100.200908041238
58 ACTIVE org.eclipse.equinox.http.servlet_1.0.200.v20090520-1800
59 ACTIVE org.eclipse.equinox.preferences_3.2.300.v20090520-1800
60 ACTIVE org.eclipse.equinox.registry_3.4.100.200908041238
Fragments=123
61 ACTIVE org.eclipse.osgi.services_3.2.0.v20090520-1800
62 ACTIVE org.eclipse.rap.jface.databinding_1.2.0.20090616-1425
63 ACTIVE org.eclipse.rap.jface_1.2.0.20090616-1425
64 RESOLVED org.eclipse.rap.rwt.q07_1.2.0.20090616-1425
Master=65
65 ACTIVE org.eclipse.rap.rwt_1.2.0.20090616-1425
Fragments=64
66 ACTIVE org.eclipse.rap.ui.forms_1.2.0.20090616-1425
67 ACTIVE org.eclipse.rap.ui.views_1.2.0.20090616-1425
68 ACTIVE org.eclipse.rap.ui.workbench_1.2.0.20090616-1425
69 ACTIVE org.eclipse.rap.ui_1.2.0.20090616-1425
70 ACTIVE org.eclipse.rwt.widgets.upload_1.0.0.200908041238
71 ACTIVE org.mortbay.jetty.server_6.1.15.v200905151201
72 ACTIVE org.mortbay.jetty.util_6.1.15.v200905182336
73 ACTIVE org.w3c.css.sac_1.3.0.v200805290154
74 ACTIVE org.w3c.dom.smil_1.0.0.v200806040011
75 ACTIVE org.w3c.dom.svg_1.1.0.v200806040011
76 RESOLVED org.eclipse.equinox.servletbridge.extensionbundle_1.0.0
Master=0
79 RESOLVED NSFW_3.0.10
98 RESOLVED org.eclipse.birt.api_1.0.0
Master=0
108 RESOLVED
org.eclipse.birt.report.engine.fonts_2.3.2.r232_20090202
123 RESOLVED
org.eclipse.core.runtime.compatibility.registry_3.2.200.v200
80610
Master=60
141 RESOLVED org.eclipse.equinox.servletbridge_1.1.0.200908041238
144 INSTALLED org.eclipse.rap.equinox.registry_1.2.0.200908041238
157 RESOLVED org.mozilla.rhino_1.6.7.v20080214
161 RESOLVED org.w3c.sac_1.3.0.v20070710
162 ACTIVE SCOOP_CS_1.1.0
Re: Images in Tomcat [message #478733 is a reply to message #468192] Thu, 06 August 2009 15:13 Go to previous messageGo to next message
Emmanuel Marchal is currently offline Emmanuel MarchalFriend
Messages: 59
Registered: July 2009
Member
I really don't understand!!!
I have downgraded my RAP version down to "when it worked".
Also all my workspace's plugins like org.eclipse.equinox.servletbridge, ...
Also my eclipse version (back to Ganymede)...

... and my images are still not there!!!

Does anybody can help me, please.
Re: Images in Tomcat [message #478821 is a reply to message #478733] Fri, 07 August 2009 07:01 Go to previous messageGo to next message
Aleksandar Pavlov is currently offline Aleksandar PavlovFriend
Messages: 79
Registered: July 2009
Member
I will not read the whole thread, but will have a shot. In your
plugin.xml, tab build. Do you have your images folder selected in the
'binary build' section?
Hope that helps

Emmanuel Marchal wrote:
> I really don't understand!!!
> I have downgraded my RAP version down to "when it worked".
> Also all my workspace's plugins like org.eclipse.equinox.servletbridge, ...
> Also my eclipse version (back to Ganymede)...
>
> ... and my images are still not there!!!
>
> Does anybody can help me, please.
>
Re: Images in Tomcat [message #495330 is a reply to message #138751] Wed, 04 November 2009 15:17 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi Emmanuel,

do you have solved you problem? I have the same after upgrade from RAP
Target 1.2.0 to 1.2.1

The problem is: I cannot see the images, that must be loaded from bundle
resource, (the resources are all exported on pde build), icons and so
on. But the images, that are loaded from database blobs are displayed. I
cannot see any errors in logs!

Only what we have done: we have changed the target. If we go back to
1.2.0, we have no problems!

Any suggestions from RAP-Team?

Many Thanks in advance and best regards,

Nikolai

Emmanuel Marchal schrieb:
> Hi,
> Does anybody can explain me why I do not see any images in my deployed
> application (on Tomcat) since my last update of RAP...
> I have not changed the way the image is got:
>
> public Image getImage(String name){
> String path = "resources/images/"+name;
> return
> Graphics.getImage(path,NSFWWebApplication.class.getClassLoad er());
> }
>
> bin.includes = (...) src/resources/,\ (...)
>
> All the images have disapeared, including images of RWT dialog (warning,
> error, ...). So this let me think that the problem is not in my code.
>
> Do I have to change something?
>
> Thanks.
Re: Images in Tomcat [message #495362 is a reply to message #495330] Wed, 04 November 2009 15:53 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
ok, I see now (osgi ss), that rwt bundles are:

org.eclipse.rap.rwt.q07_1.2.0.20090813-1453.jar
org.eclipse.rap.rwt_1.2.1.20090813-1453.jar

rwt has version 1.2.1 and rwt qooxdoo fragment has 1.2.0. Can it be right?

Best regards,

Nikolai
Re: Images in Tomcat [message #495549 is a reply to message #495362] Thu, 05 November 2009 10:33 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Nikolai,

Nikolai Raitsev wrote:
> ok, I see now (osgi ss), that rwt bundles are:
>
> org.eclipse.rap.rwt.q07_1.2.0.20090813-1453.jar
> org.eclipse.rap.rwt_1.2.1.20090813-1453.jar
>
> rwt has version 1.2.1 and rwt qooxdoo fragment has 1.2.0. Can it be right?

these are indeed the bundle versions that are included in the 1.2.1
target platform, so this is not a problem. It seems that we forgot to
bump the version number of the q07 fragment.

Regarding your original problem: did you make sure that the images are
included in your build.properties? Do they show up when you start from
Eclipse? Do you see theming images like the x in dialog titlebars?

Regards, Ralf
Re: Images in Tomcat [message #495598 is a reply to message #495549] Thu, 05 November 2009 13:11 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi Ralf, thank you for replying!

Ralf Sternberg schrieb:
> Hi Nikolai,
>
>
> Regarding your original problem: did you make sure that the images are
> included in your build.properties?

yes, the folders are included in build.properties and I see they in
exported jars and I see the images in it. Btw, the build process except
the target path has been don't changed. If I go back to 1.2.0 target,
run pde build, make war package and deploy it on tomcat (undeploying
before the old wars and cleaning the work-direktory under
catalina/localhost) I can't see any problem...

> Do they show up when you start from Eclipse?

yes, with the same target (1.2.1), no problem

> Do you see theming images like the x in dialog titlebars?

Yes, I see x in dialogs.

here is little peace of log and code:
first, code:

try
{
logger.debug("* * * * * getting image");
logger.debug("* * * * * loading resource as stream");
InputStream inputStream =
getClass().getResourceAsStream("/images/screenshot_jterms_600.png ");

logger.debug("* * * * * inputstream is " + inputStream + " and has " +
inputStream.available() + " bytes");

logger.debug("* * * * * getting image RAP.Graphics and InputStream");
Image image = Graphics.getImage("images/title" + inputStream.toString(),
inputStream); //$NON-NLS-1$
logger.debug("* * * * * image is " + image);

Label labelImage = getFormToolkit().createLabel(parent, "");

logger.debug("* * * * * setting image on label ");
labelImage.setImage(image);

}catch(Exception e){
logger.error("* * * * * some error on getting image and setting it on
label", e);
}

and log:

[UIThread DEBUG XXX.LoginView - * * * * * getting image
[UIThread DEBUG XXX.LoginView - * * * * * loading resource as stream
[UIThread DEBUG XXX.LoginView - * * * * * inputstream is
org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry$ZipBundleEntryInputStream@5b13ed
and has 149531 bytes
[UIThread DEBUG XXX.LoginView - * * * * * getting image RAP.Graphics
and InputStream
[UIThread DEBUG XXX.LoginView - * * * * * image is
org.eclipse.swt.graphics.Image@134accc
[UIThread DEBUG XXX.LoginView - * * * * * setting image on label


You can see, no error occured! Image gets from InputStream and is
setting to the Label!

But, I cannot find that image
(" titleorg.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry$ZipBundleEntryInputStream@5b13ed")
file in
tomcat/current/work/Catalina/localhost/mynewapp/eclipse/work space/.metadata/.plugins/org.eclipse.rap.ui/context/images


I'm baffled

have you any suggestions?

The OS is linux, ubuntu 9.04, tomcat version 6.0.16, RAP target 1.2.1

Best regards,

Nikolai
Re: Images in Tomcat [message #495886 is a reply to message #495598] Fri, 06 November 2009 14:16 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Nikolai,

one thing you could you try is to use a simpler path in
Graphics.getImage( path, inputStream )
e.g. use the input stream's hashCode() instead of toString() - does that
change anything?

However I do not see how this problem could be caused by changing from
1.2.0 to 1.2.1. Just to make sure that your configuration is sane - what
does your list of bundles look like?

Could you also check if you can see images in the RAP demo, deployed as
described in the RAP help?

Ralf

Nikolai Raitsev wrote:
> Hi Ralf, thank you for replying!
>
> Ralf Sternberg schrieb:
>> Hi Nikolai,
>>
>>
>> Regarding your original problem: did you make sure that the images are
>> included in your build.properties?
>
> yes, the folders are included in build.properties and I see they in
> exported jars and I see the images in it. Btw, the build process except
> the target path has been don't changed. If I go back to 1.2.0 target,
> run pde build, make war package and deploy it on tomcat (undeploying
> before the old wars and cleaning the work-direktory under
> catalina/localhost) I can't see any problem...
>
>> Do they show up when you start from Eclipse?
>
> yes, with the same target (1.2.1), no problem
>
>> Do you see theming images like the x in dialog titlebars?
>
> Yes, I see x in dialogs.
>
> here is little peace of log and code:
> first, code:
>
> try
> {
> logger.debug("* * * * * getting image");
> logger.debug("* * * * * loading resource as stream");
> InputStream inputStream =
> getClass().getResourceAsStream("/images/screenshot_jterms_600.png ");
>
> logger.debug("* * * * * inputstream is " + inputStream + " and has " +
> inputStream.available() + " bytes");
>
> logger.debug("* * * * * getting image RAP.Graphics and InputStream");
> Image image = Graphics.getImage("images/title" + inputStream.toString(),
> inputStream); //$NON-NLS-1$
> logger.debug("* * * * * image is " + image);
>
> Label labelImage = getFormToolkit().createLabel(parent, "");
>
> logger.debug("* * * * * setting image on label ");
> labelImage.setImage(image);
>
> }catch(Exception e){
> logger.error("* * * * * some error on getting image and setting it on
> label", e);
> }
>
> and log:
>
> [UIThread DEBUG XXX.LoginView - * * * * * getting image
> [UIThread DEBUG XXX.LoginView - * * * * * loading resource as stream
> [UIThread DEBUG XXX.LoginView - * * * * * inputstream is
> org.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry$ZipBundleEntryInputStream@5b13ed
> and has 149531 bytes
> [UIThread DEBUG XXX.LoginView - * * * * * getting image RAP.Graphics
> and InputStream
> [UIThread DEBUG XXX.LoginView - * * * * * image is
> org.eclipse.swt.graphics.Image@134accc
> [UIThread DEBUG XXX.LoginView - * * * * * setting image on label
>
>
> You can see, no error occured! Image gets from InputStream and is
> setting to the Label!
>
> But, I cannot find that image
> (" titleorg.eclipse.osgi.baseadaptor.bundlefile.ZipBundleEntry$ZipBundleEntryInputStream@5b13ed")
> file in
> tomcat/current/work/Catalina/localhost/mynewapp/eclipse/work space/.metadata/.plugins/org.eclipse.rap.ui/context/images
>
>
>
> I'm baffled
>
> have you any suggestions?
>
> The OS is linux, ubuntu 9.04, tomcat version 6.0.16, RAP target 1.2.1
>
> Best regards,
>
> Nikolai
Re: Images in Tomcat [message #495995 is a reply to message #495886] Fri, 06 November 2009 22:41 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi Ralf, thank you!

Ralf Sternberg schrieb:
> Hi Nikolai,
>
> one thing you could you try is to use a simpler path in
> Graphics.getImage( path, inputStream )
> e.g. use the input stream's hashCode() instead of toString() - does that
> change anything?

yes! It solved the problem! So this is the length of the path, that was
"wrong". But in 1.2.0, this problem do not exist. Should I open an issue
for this "behavior" in 1.2.1?

Best regards,

Nikolai
Re: Images in Tomcat [message #496096 is a reply to message #495995] Sun, 08 November 2009 15:52 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Nikolai,

Nikolai Raitsev wrote:
>> one thing you could you try is to use a simpler path in
>> Graphics.getImage( path, inputStream )
>> e.g. use the input stream's hashCode() instead of toString() - does that
>> change anything?
>
> yes! It solved the problem! So this is the length of the path, that was
> "wrong". But in 1.2.0, this problem do not exist. Should I open an issue
> for this "behavior" in 1.2.1?

yes, please do so! Please also add your server OS version and an example
path that fails, in case we can't reproduce it.

Thanks, Ralf
Re: Images in Tomcat [message #496193 is a reply to message #496096] Mon, 09 November 2009 10:32 Go to previous messageGo to next message
Nikolai Raitsev is currently offline Nikolai RaitsevFriend
Messages: 102
Registered: July 2009
Senior Member
Hi,

bug 294579 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=294579) submitted.

Best Regards,

Nikolai

Ralf Sternberg schrieb:
> Hi Nikolai,
>
> Nikolai Raitsev wrote:
>>> one thing you could you try is to use a simpler path in
>>> Graphics.getImage( path, inputStream )
>>> e.g. use the input stream's hashCode() instead of toString() - does that
>>> change anything?
>> yes! It solved the problem! So this is the length of the path, that was
>> "wrong". But in 1.2.0, this problem do not exist. Should I open an issue
>> for this "behavior" in 1.2.1?
>
> yes, please do so! Please also add your server OS version and an example
> path that fails, in case we can't reproduce it.
>
> Thanks, Ralf
Re: Images in Tomcat [message #501132 is a reply to message #496193] Tue, 01 December 2009 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: m.schnelle.msit-solutions.com

Hello,

i have the same problem indeed in eclipse jetty.
I have an inputstream of the Image and using the

Image img = Graphics.getImage("image"+is.hashCode(),is);
preview.setImage(img);

But the image won't be showed.
If i'm writing the inputstream to the hd the image is ok.

The code works for weeks but since yesterday the image are broken.
Have anybody an advice?

best regards, Markus





Nikolai Raitsev schrieb:
> Hi,
>
> bug 294579 (https://bugs.eclipse.org/bugs/show_bug.cgi?id=294579)
> submitted.
>
> Best Regards,
>
> Nikolai
>
> Ralf Sternberg schrieb:
>> Hi Nikolai,
>>
>> Nikolai Raitsev wrote:
>>>> one thing you could you try is to use a simpler path in
>>>> Graphics.getImage( path, inputStream )
>>>> e.g. use the input stream's hashCode() instead of toString() - does
>>>> that
>>>> change anything?
>>> yes! It solved the problem! So this is the length of the path, that was
>>> "wrong". But in 1.2.0, this problem do not exist. Should I open an issue
>>> for this "behavior" in 1.2.1?
>>
>> yes, please do so! Please also add your server OS version and an example
>> path that fails, in case we can't reproduce it.
>>
>> Thanks, Ralf
Previous Topic:deploying RAP: new tutorial?
Next Topic:Call URLs content with browser widget into a string
Goto Forum:
  


Current Time: Thu Mar 28 11:03:04 GMT 2024

Powered by FUDForum. Page generated in 0.05738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top