Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » Export as war(Could not find a ResourceServlet registration)
Export as war [message #1016344] Wed, 06 March 2013 07:19 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Hi,

I am trying to export my scout application with the export wizard.

I am blocked here:
index.php/fa/13702/0/

What does mean:
Could not find a ResourceServlet registration

In my plugin.xml in the server. I have:
   <extension
         name=""
         point="org.eclipse.equinox.http.registry.servlets">
      <servlet
            alias="/process"
            class="org.eclipse.scout.rt.server.ServiceTunnelServlet">
         <init-param
               name="min-version"
               value="0.0.0">
         </init-param>
      </servlet>
      <servlet
            alias="/remotefiles"
            class="org.eclipse.scout.rt.server.RemoteFileServlet">
      </servlet>
      <servlet
            alias="/updatesite"
            class="org.eclipse.scout.rt.server.RemoteFileServlet">
         <init-param
               name="folder"
               value="/updatesite">
         </init-param>
      </servlet>
      <servlet
            alias="/"
            class="org.eclipse.scout.rt.server.ResourceServlet">
         <init-param
               name="bundle-name"
               value="minifigcreator.server">
         </init-param>
         <init-param
               name="bundle-path"
               value="/resources/html">
         </init-param>
      </servlet>
   </extension>
   <extension
         name=""
         point="org.eclipse.scout.http.servletfilter.filters">
      <filter
            aliases="/process /remotefiles /updatesite"
            class="org.eclipse.scout.http.servletfilter.security.BasicSecurityFilter"
            ranking="20">
      </filter>
      <filter
            aliases="/process /remotefiles /updatesite"
            class="org.eclipse.scout.http.servletfilter.security.AnonymousSecurityFilter"
            ranking="30">
      </filter>
   </extension>


This was generated from the SDK.


What should I change?
Can I skip the "Include client in war" step?

I have tested with:
* Scout SDK 3.8.2.20130211 (Juno SR2 EPP Version)
* Scout SDK 3.9.0.20130303 (nightly)

[Updated on: Wed, 06 March 2013 09:49]

Report message to a moderator

Re: Export scout project [message #1016346 is a reply to message #1016344] Wed, 06 March 2013 07:32 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
My problem might be independent from the server export. I got the same step with the same error when I only export the client.
Re: Export scout project [message #1016406 is a reply to message #1016346] Wed, 06 March 2013 11:32 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Same Eclipse SDK Version:

I have tried with a new application.

Here there is no problem, it is possible to select a "Client Download Location".
index.php/fa/13706/0/

I have compared the file, I do not see any difference.

BUT: the difference between the two projects is that one of them is not in the workspace, because I have shared it with EGit.

It is possible that the lookup for a Ressource Servlet is done only in the Workspace (and not in the logical Workspace, e.g in a workspace containing project references)?
Re: Export scout project [message #1016415 is a reply to message #1016406] Wed, 06 March 2013 11:50 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
Never mind, it has nothing to do with sharing project with EGit or not.

The value in bundle-name was invalid.
      <servlet
            alias="/"
            class="org.eclipse.scout.rt.server.ResourceServlet">
         <init-param
               name="bundle-name"
               value="[color=green]org.eclipsescout.demo[/color].minifigcreator.server">
         </init-param>
         <init-param
               name="bundle-path"
               value="/resources/html">
         </init-param>
      </servlet>


When I renamed my bundle this was not renamed and was wrong.
Re: Export Client Only application [message #1016630 is a reply to message #1016415] Thu, 07 March 2013 08:23 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
After all my tests from yesterday I might have found a bug:

In a client only application there is no server at all.
Create a demo application with:
* Client
* Shared
* UI Swing
* UI SWT

Try to export it.

Step 1 looks good:
index.php/fa/13728/0/

Step 2 show an error:
index.php/fa/13729/0/

I think this could be improved, by providing a checkbox "Include the client as download in the server war" on the "Export Client Application" step. If checked a "Client download location" is requested. If not checked this field is inactive. In case of a client only application (or server not selected in the first step) this check box needs to be disabled and unchecked.
index.php/fa/13730/0/

[Updated on: Thu, 07 March 2013 08:32]

Report message to a moderator

Previous Topic:Change order of traversal
Next Topic:Button "OK"
Goto Forum:
  


Current Time: Tue Apr 23 13:26:38 GMT 2024

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

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

Back to the top