Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » No standard icons (e.g. Twisties, Menu items etc) following deployment
No standard icons (e.g. Twisties, Menu items etc) following deployment [message #653548] Thu, 10 February 2011 08:47 Go to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
I have deployed my simple RAP app to a WebSphere server (WAS) using the WAR Product feature. The app has no extra branding and I start it using the 'rap' servlet.

No icons of any kind (including standard images on comboboxes etc) are shown when the app runs on the WAS but are shown when running in the test environment.

Is a plug-in missing? Do I need to add something in my plug-in build settings?

Thanks

Paul

[Updated on: Thu, 10 February 2011 11:03]

Report message to a moderator

Re: No icons following deployment [message #653589 is a reply to message #653548] Thu, 10 February 2011 10:52 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Paul,

the FAQ covers a couple of pitfalls related to deployment. Most likely
you forgot to update the build.properties [1].

HTH
Rüdiger

[1]
http://wiki.eclipse.org/RAP/FAQ#I_cannot_access_resource.2Fi mage_after_deploying_as_a_WAR


On 10.02.2011 09:47, paulr wrote:
> I have deployed my simple RAP app to a WebSphere server (WAS) using the
> WAR Product feature. The app has no extra branding and I start it using
> the 'rap' servlet.
>
> No icons are shown when the app runs on the WAS but are shown when
> running in the test environment.
>
> Is a plug-in missing? Do I need to add something in my plug-in build
> settings?
> Thanks
>
> Paul
Re: No icons following deployment [message #653594 is a reply to message #653589] Thu, 10 February 2011 11:09 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Rüdiger,

thanks for the reply.

I guess I wasn't explicit enough, but the images I'm missing include those I would regard as built-in e.g. the triangle on a combo box or the 'x' on a view tab.

I also don't see my own images e.g. those on menu items. I selected the images folder in the 'Binary build' section but they can't be found on the deploy server.

Paul
Re: No icons following deployment [message #653721 is a reply to message #653594] Thu, 10 February 2011 20:08 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
On 10.02.2011 12:09, paulr wrote:
> Rüdiger,
>
> thanks for the reply.
>
> I guess I wasn't explicit enough, but the images I'm missing include
> those I would regard as built-in e.g. the triangle on a combo box or the
> 'x' on a view tab.
>
> I also don't see my own images e.g. those on menu items. I selected the
> images folder in the 'Binary build' section but they can't be found on
> the deploy server.
If you 'look into' the deployed bundles, do they contain the images?

>
> Paul
Re: No icons following deployment [message #653784 is a reply to message #653721] Fri, 11 February 2011 07:52 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Rüdiger,

In the WAR on the WebSphere server I can unzip my JAR and see the images I added to my project. I don't know where the 'standard' images are kept. I tried a few likely candidates (rap.ui etc) but couldn't find anything.

I have not applied any custom branding or layout and am using the standard.

Paul
Re: No icons following deployment [message #653821 is a reply to message #653784] Fri, 11 February 2011 12:24 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
On 11.02.2011 08:52, paulr wrote:
> Rüdiger,
>
> In the WAR on the WebSphere server I can unzip my JAR and see the images
> I added to my project. I don't know where the 'standard' images are
> kept. I tried a few likely candidates (rap.ui etc) but couldn't find
> anything.
For now, let's assume that the RAP images are there too. BTW, did you
build the RAP bundles from source or did you use those from the target
platform?

Can you find the image files in the servlet engines working directory?
If you run on Tomcat it would be
/<tomcat-install>/work/Catalina/localhost/<web-app-name> /eclipse/workspace/.metadata/.plugins/org.eclipse.rap.ui/con text/rwt-resources

Did you try to run the WAR in another environment, e.g. a plain servlet
engine?

Can you ensure that the images are actually requested by the client and
the requests point to the right places? I.e. use the developer tools of
the browser of your choice to track the requests.

>
> I have not applied any custom branding or layout and am using the standard.
>
> Paul
Re: No icons following deployment [message #653827 is a reply to message #653821] Fri, 11 February 2011 13:09 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Rudiger,

the requests look like

http://srvxyz/webapps/rap/rwt-resources/resource/widget/rap/ ctabfolder/close.gif
http://srvxyz/webapps/rap/rwt-resources/resource/static/imag e/dotted_white.gif

and return a 404 (my context root is /webapps/rap)

----

I located the WAS working directory here

WASROOT\AppServer\profiles\AppSrv\temp\SRVxyz\RAP_Test\FairM anagement_war\FairManagement.war\eclipse\workspace\.metadata \.plugins\org.eclipse.rap.ui\context\rwt-resources

For example the dotted_white.gif is here

WASROOT\AppServer\profiles\AppSrv\temp\SRVxyz\RAP_Test\FairM anagement_war\FairManagement.war\eclipse\workspace\.metadata \.plugins\org.eclipse.rap.ui\context\rwt-resources\resource\ static\image

which does look similar to the failed request.

----

No, I havn't tried to run this on any other server except the built-in Jetty and WAS.


----

I did not build from source. I downloaded the Helios RAP release in early Jan 2011


Paul
Re: No icons following deployment [message #653879 is a reply to message #653827] Fri, 11 February 2011 16:58 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Paul,

I would deploy the WAR on a different, plain servlet engine, just to be
sure that WebSphere isn't the reason why.
I remeber that someone else reported the same problem on this newsgroup.
It might be a year or more ago. If you take some time to search the
newsgroup archive [1] you will certainly find the post.

HTH
Rüdiger

[1] http://www.eclipse.org/forums/index.php?t=thread&frm_id= 34
[2] http://dev.eclipse.org/mhonarc/lists/rap-dev/threads.html
On 11.02.2011 14:09, paulr wrote:
> Rudiger,
>
> the requests look like
>
> http://srvxyz/webapps/rap/rwt-resources/resource/widget/rap/ ctabfolder/close.gif
>
> http://srvxyz/webapps/rap/rwt-resources/resource/static/imag e/dotted_white.gif
>
>
> and return a 404 (my context root is /webapps/rap)
>
> ----
>
> I located the WAS working directory here
>
> WASROOT\AppServer\profiles\AppSrv\temp\SRVxyz\RAP_Test\FairM
> anagement_war\FairManagement.war\eclipse\workspace\.metadata
> \.plugins\org.eclipse.rap.ui\context\rwt-resources
>
> For example the dotted_white.gif is here
>
> WASROOT\AppServer\profiles\AppSrv\temp\SRVxyz\RAP_Test\FairM
> anagement_war\FairManagement.war\eclipse\workspace\.metadata
> \.plugins\org.eclipse.rap.ui\context\rwt-resources\resource\ static\image
>
> which does look similar to the failed request.
>
> ----
>
> No, I havn't tried to run this on any other server except the built-in
> Jetty and WAS.
>
>
> ----
>
> I did not build from source. I downloaded the Helios RAP release in
> early Jan 2011
>
>
> Paul
>
Re: No icons following deployment [message #654102 is a reply to message #653879] Mon, 14 February 2011 08:30 Go to previous messageGo to next message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
Rüdiger,

thanks for your help.

I have just tried the app on Tomcat and get the same problem. So it is not a WebSphere-specific problem which I guess is good.

You mentioned that there might have been a similar post over a year ago. Was that related to deploying to websphere or related to not finding static resources? I have searched but not found anything helpful yet.

Paul
Re: No icons following deployment [message #654113 is a reply to message #654102] Mon, 14 February 2011 09:29 Go to previous message
Paul Ramsden is currently offline Paul RamsdenFriend
Messages: 84
Registered: February 2011
Location: BW, Germany
Member
It now works Smile

I noticed that there was an exception in the logs. Something to do with Jetty and an Address already in use bind error. I was surprised that Jetty would be active on the Tomcat server so I checked my plugin dependencies. In the end I removed all the dependencies and added the 'Required plugins'. That seemed to cure the problem. After redeploying, there were no Jetty exceptions and I get the images which were missing.

Hope this helps someone else.
Previous Topic:Table-Font - strikethrough, LOGFONT
Next Topic:File Drag & Drop from Desktop
Goto Forum:
  


Current Time: Thu Apr 25 07:11:24 GMT 2024

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

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

Back to the top