Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Deploy rwt standalone not work
Deploy rwt standalone not work [message #1719368] Thu, 07 January 2016 13:55 Go to next message
excellion fdfds is currently offline excellion fdfdsFriend
Messages: 14
Registered: July 2012
Junior Member
Hello, i create a RWT standalone (as servlet) in projet java with this tuto :
http://www.eclipse.org/rap/developers-guide/devguide.php?topic=rwt-standalone.html&version=3.0
If i launch with web.xml, it works.
Now, i want to deploy this app in embedded jetty server with spring.

if i deploy the rwt servlet, ApplicationConfiguration is reading (title of tab is correct) but the page is blank.

Jetty code to launch RWT Servlet :
  public static void main(String[] args) throws Exception
  {
    new EmbeddedJetty().startJetty(getPortFromArgs(args));
  }

 private void startJetty(int port) throws Exception
  {
    logger.debug("Starting server at port {}", port);
    Server server = new Server(port);
    // lacement bis de rap
    WebAppContext appRap = new WebAppContext();
    appRap.setContextPath("/");
    appRap.setResourceBase(".");
    appRap.setDefaultsDescriptor("src/main/java/test/rap/WEB-INF/web.xml");
    server.setHandler(appRap);

    server.start();
    logger.info("Server started at port {}", port);
    server.join();
  }


AppConfiguration :
public class AppConfiguration implements ApplicationConfiguration
{
  public void configure(Application application)
  {
    Map<String, String> properties = new HashMap<String, String>();
    properties.put( WebClient.PAGE_TITLE, "Hello world rap" );

    application.addEntryPoint("/rap", HelloWorld.class, properties);
  }
}


public class HelloWorld extends AbstractEntryPoint
{
  /**
   *
   */
  private static final long serialVersionUID = 1L;

  public void createContents(Composite parent)
  {
    Label label = new Label(parent, SWT.NONE);
    label.setText("Hello RAP World");
  }
}


Anyone has ideas? Or example of rwt standalone application deployed in embedded jetty server ?
I attach my project. Launch EmbeddyJetty as application java.

[Updated on: Thu, 07 January 2016 14:04]

Report message to a moderator

Re: Deploy rwt standalone not work [message #1719432 is a reply to message #1719368] Thu, 07 January 2016 20:31 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 190
Registered: February 2013
Senior Member
hmmmm I'm not sure could application read web.xml from resourse?
appRap.setDefaultsDescriptor("src/main/java/test/rap/WEB-INF/web.xml");
try put web.xml outside project
context.setDefaultsDescriptor("WEB-INF/web.xml")
Re: Deploy rwt standalone not work [message #1719463 is a reply to message #1719432] Fri, 08 January 2016 08:33 Go to previous messageGo to next message
excellion fdfds is currently offline excellion fdfdsFriend
Messages: 14
Registered: July 2012
Junior Member
Unfortunately there is no change.
And if I'm sure (using debug) : the web.xml is read
Re: Deploy rwt standalone not work [message #1719509 is a reply to message #1719463] Fri, 08 January 2016 13:47 Go to previous messageGo to next message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 190
Registered: February 2013
Senior Member
i run my rap application with embedded jetty
let you email i will send you part of my codes and compare
Re: Deploy rwt standalone not work [message #1719821 is a reply to message #1719509] Tue, 12 January 2016 10:23 Go to previous messageGo to next message
excellion fdfds is currently offline excellion fdfdsFriend
Messages: 14
Registered: July 2012
Junior Member
ok thanks!
My mail : mporeyer@outlook.fr
Re: Deploy rwt standalone not work [message #1719979 is a reply to message #1719821] Wed, 13 January 2016 14:29 Go to previous message
Dmitry Dukhov is currently offline Dmitry DukhovFriend
Messages: 190
Registered: February 2013
Senior Member
have send
Previous Topic:[SOLVED] RAP E4 - PatternInUseException
Next Topic:Will upcoming changes to Java and Firefox affect RAP functionality
Goto Forum:
  


Current Time: Tue Mar 19 02:48:08 GMT 2024

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

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

Back to the top