Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theme not displayed in tomcat
Theme not displayed in tomcat [message #864935] Mon, 30 April 2012 06:35 Go to next message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member
Hi there,

I'm new on RAP.

I working on an app and I'm using the fancy theme. After deploying the .war file to Tomcat, the default theme is used and not the Fancy one. This is how i'm using it.

   <extension
         point="org.eclipse.rap.ui.branding">
      <branding
            defaultEntrypointId="org.vsoft.vmenu.web.vmenuapp"
            id="org.vsoft.vmenu.web.branding"
            servletName="vmenu"
            themeId="org.eclipse.rap.design.example.fancy.theme"
            title="VSoft Menu">
         <presentationFactory
               defaultLayoutId="org.eclipse.rap.design.example.fancy.layout"
               id="org.eclipse.rap.design.example.fancy.factory"
               name="Fancy PresentationFactory">
            <defaultStackPresentation
                  id="org.eclipse.rap.design.example.stack.view">
            </defaultStackPresentation>
         </presentationFactory>
      </branding>
   </extension>


Pls, help, what am i missing?

It works when running in eclipse.
Re: Theme not displayed in tomcat [message #866207 is a reply to message #864935] Mon, 30 April 2012 19:46 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi,

the business and fancy themes are contributed by the bundle
org.eclipse.rap.design.example. Do you have this one up and running in
your web app? If you are unsure, enable the OSGi console in the web.xml.

The command `ss` in the OSGi console prints a list of all bundles and
their states.

Regards, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Theme not displayed in tomcat [message #868410 is a reply to message #866207] Tue, 01 May 2012 22:49 Go to previous messageGo to next message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member
Thank you Ralf for your answer.

The bundle is up and runnig:

32 ACTIVE org.eclipse.rap.design.example_1.5.0.201205011640
33 ACTIVE org.vsoft.vmenu.web_1.0.0.201205011640

I found a post (i couldn't place the link not sure why) but with subject "theme not used when deployed to tomcat"

but, still haven't been able to make it work.

This is what i have.

The servletName is vnenu, as you can see.
And i am creating vmenu.war file.

Based on help for servletName field, apps should be available at host:port/servlet. This works in eclipse, but not in tomcat. I am accessing my app as follows:

localhost:8080/vmenu/rap?startup=org.vsoft.vmenu.web.vmenuapp

Why is not working as help states? What am i missing?

Thanks in advance.
Re: Theme not displayed in tomcat [message #869941 is a reply to message #868410] Fri, 04 May 2012 23:23 Go to previous messageGo to next message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member
Ok, I was able to make theme working in tomcat by specifying the URL localhost:port/myapp/myapp.

why it has to be this way?

Why it is not working like in eclipse just with localhot:port/myapp?

Can someone point me where to read about this?

thanks all in advance.
Re: Theme not displayed in tomcat [message #869989 is a reply to message #869941] Sat, 05 May 2012 14:40 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Hugo,

the first myapp in "localhost:port/myapp/myapp" denotes the web-app
name, the second one is the servlet-name.

The OSGi http service by default deploys to the "root web-app". This is
why you don't need to specify the web-app name in the URL.

See the servlet specification and/or Tomcat/Jetty documentation for
further information.

HTH
Rüdiger

On 05.05.2012 01:23, Hugo Herrera wrote:
> Ok, I was able to make theme working in tomcat by specifying the URL
> localhost:port/myapp/myapp.
>
> why it has to be this way?
>
> Why it is not working like in eclipse just with localhot:port/myapp?
>
> Can someone point me where to read about this?
>
> thanks all in advance.
--
Rüdiger Herrmann
http://codeaffine.com
Re: Theme not displayed in tomcat [message #870081 is a reply to message #869989] Sun, 06 May 2012 09:26 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Hugo,

one small addition: in a RAP launch configuration, you can set the
"Context Path" to "myapp" too. With this setting, you get the same URL
in Eclipse as you would have in a tomcat deployment.

Regards, Ralf


--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Theme not displayed in tomcat [message #870396 is a reply to message #870081] Tue, 08 May 2012 00:00 Go to previous message
Hugo Herrera is currently offline Hugo HerreraFriend
Messages: 20
Registered: July 2009
Junior Member
Thank you very much guys for your response.

Saludos!
Previous Topic:Combo Drop Down Transparency
Next Topic:SWT constants do not work
Goto Forum:
  


Current Time: Tue Apr 16 17:15:29 GMT 2024

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

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

Back to the top