Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Theme not displayed in tomcat
Theme not displayed in tomcat [message #864935] Mon, 30 April 2012 02:35 Go to next message
Eclipse UserFriend
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 15:46 Go to previous messageGo to next message
Eclipse UserFriend
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 18:49 Go to previous messageGo to next message
Eclipse UserFriend
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 19:23 Go to previous messageGo to next message
Eclipse UserFriend
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 10:40 Go to previous messageGo to next message
Eclipse UserFriend
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 05:26 Go to previous messageGo to next message
Eclipse UserFriend
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] Mon, 07 May 2012 20:00 Go to previous message
Eclipse UserFriend
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: Sat Jun 14 14:05:52 EDT 2025

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

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

Back to the top