Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » EMF RAP and Tomcat deployment
EMF RAP and Tomcat deployment [message #523546] Fri, 26 March 2010 18:17 Go to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member
Hi all,

I'm new to the web app side of things and I've been trying to get a tomcat deployment of an (arbitrary) EMF model working. Here's what I've been able to accomplish:

1. Get the example WARs (non-EMF) up and running.
2. Get the EMF library example and my own custom examples working as hosted runtimes both using the editor application and the entry point approaches.
3. Read all of the docs on troubleshooting, etc..

Despite a day of fumbling around, I have not been able to get an EMF editor working on Tomcat. Nor have I been able to get the RAP ant build working OOTB, but I am able to get it working with just a little bit of fiddling. (Changing the lib and editing the config.ini.) I was able to learn a lot by tearing apart a working RAP jar and diffing that against what the builder was making. My sense is that I'm probably pretty close, but the trial and error is wearing pretty thin and the working WAR I'm looking at has pretty old dependencies so there are a lot of pieces to fiddle around with.

One of the problems is that once I get the dependency issues fixed that show up in the work dir logs and assuming that I don't have any other messed up configuration issues, I'm not seeing anything in any of the logs, just an error msg on console, e.g. : message ProxyServlet: /rapf5 "The requested resource (ProxyServlet: /rapf5) is not available."

My suspicion is that I just have something that isn't set up right on the plugin extension side or there is something missing from my deployment plugins or config.ini..no matter ow carefully one goes through that, it's easy to miss something. If I add the demos into my config.ini, I get the demos working, but if I take them out and add the library example dependencies, it doesn't.

This is all just a lead in to ask if someone has a working set of projects or even a WAR file that work for tomcat deployment of EMF so that I can dissect them.

cheers -- and I really think EMF support is an exciting development,

Miles

[Updated on: Fri, 26 March 2010 18:19]

Report message to a moderator

Re: EMF RAP and Tomcat deployment [message #524015 is a reply to message #523546] Tue, 30 March 2010 10:18 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Miles,

I recommend to start with the tutorial that comes with the RAP Tooling
(Help System -> RAP Developer Guide -> Advanced Topics WAR Development)
and can also be read online
< http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .rap.help/help/html/advanced/deployment.html>.
Note that the online tutorial applies to RAP 1.2.
You will end up with a functioning WAR file that contains the RAP
workbench demo.
Based on that you should be able to add EMF and other bundles to the
feature, rebuild and update the config.ini accordingly.
The FAQ <http://wiki.eclipse.org/RAP/FAQ> also contains several hints
regarding WAR deployment.
A ready-made WAR file that contains all the RAP demo applications can be
found in the online examples:
http://rap.eclipsesource.com/rapdemo/examples
(use the "Download the Example WAR" link at the right bottom)

If you have any further question, feel free to ask here.

HTH
Rüdiger


On 26.03.2010 19:18, Miles Parker wrote:
> Hi all,
>
> I'm new to the web app side of things and I've been trying to get a
> tomcat deployment of an (arbitrary) EMF model working. Here's what I've
> been able to accomplish:
>
> 1. Get the example WARs (non-RAP) up and running.
> 2. Get the EMF library example and my own custom examples working as
> hosted runtimes both using the editor application and the entry point
> approaches.
> 3. Read all of the docs on troubleshooting, etc..
>
> Despite a day of fumbling around, I have not been able to get an EMF
> editor working on Tomcat. Nor have I been able to get the RAP ant build
> working OOTB, but I am able to get it working with just a little bit of
> fiddling. (Changing the lib and editing the config.ini.) I was able to
> learn a lot by tearing apart a working RAP jar and diffing that against
> what the builder was making. My sense is that I'm probably pretty close,
> but the trial and error is wearing pretty thin and the working WAR I'm
> looking at has pretty old dependencies so there are a lot of pieces to
> fiddle around with.
>
> One of the problems is that once I get the dependency issues fixed that
> show up in the work dir logs and assuming that I don't have any other
> messed up configuration issues, I'm not seeing anything in any of the
> logs, just an error msg on console, e.g. : message ProxyServlet: /rapf5
> "The requested resource (ProxyServlet: /rapf5) is not available."
>
> My suspicion is that I just have something that isn't set up right on
> the plugin extension side or there is something missing from my
> deployment plugins or config.ini..no matter ow carefully one goes
> through that, it's easy to miss something. If I add the demos into my
> config.ini, I get the demos working, but if I take them out and add the
> library example dependencies, it doesn't.
>
> This is all just a lead in to ask if someone has a working set of
> projects or even a WAR file that work for tomcat deployment of EMF so
> that I can dissect them.
>
> cheers -- and I really think EMF support is an exciting development,
>
> Miles


--
Rüdiger Herrmann
http://eclipsesource.com
Re: EMF RAP and Tomcat deployment [message #524091 is a reply to message #524015] Tue, 30 March 2010 16:10 Go to previous messageGo to next message
Miles Parker is currently offline Miles ParkerFriend
Messages: 1341
Registered: July 2009
Senior Member

Hi Rüdiger,

Please see below..

Rüdiger Herrmann wrote on Tue, 30 March 2010 06:18
Miles,

I recommend to start with the tutorial that comes with the RAP Tooling
(Help System -> RAP Developer Guide -> Advanced Topics WAR Development)
and can also be read online
< http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .rap.help/help/html/advanced/deployment.html>.
Note that the online tutorial applies to RAP 1.2.
You will end up with a functioning WAR file that contains the RAP
workbench demo.
Based on that you should be able to add EMF and other bundles to the
feature, rebuild and update the config.ini accordingly.
The FAQ <http://wiki.eclipse.org/RAP/FAQ> also contains several hints
regarding WAR deployment.
A ready-made WAR file that contains all the RAP demo applications can be
found in the online examples:
http://rap.eclipsesource.com/rapdemo/examples
(use the "Download the Example WAR" link at the right bottom)




I followed all of those examples and docs quite closely -- see original msg. Unfortunately, the ready made WAR has older dependencies so there isn't a one to one correspondence -- i.e. I can't take the new demo library EMF example and simply add those dependencies to the existing project. What I get out of the builder example doesn't build out of the box with the latest release either though as I say its pretty close. There are enough variables to get right that it's become a matter of trial and error and I haven't had time to keep going through that cycle more for the time being and I've gotten to the point that even with all the FAQ hints about various logs to check, I'm getting nothing to go on from tomcat except for the failure itself. For example, I can't tell if its failing because I don't have the right dependencies (I think it does, because I got to the point where there weren't dependency errors in the log anymore) or because somehow I don't have the application entry stuff set up right. So really it would just be helpful to have an example for an EMF installation itself. Otherwise I'll just post back here with details on what isn't working in build process when I have time to experiment more.

thanks,

Miles
Re: EMF RAP and Tomcat deployment [message #524363 is a reply to message #524091] Wed, 31 March 2010 16:11 Go to previous message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 581
Registered: July 2009
Senior Member
Miles,

as there is currently no ready made EMF deployment example, I would
suggest to get the deployment from the tutorial with 1.3 M5 running.

I can't find any issues with M5 and the the WAR tutorial. However,
please feel free to post your problems here.

Once you are there it should be no problem at all to add EMF and the
library example.

Regards
Rüdiger
--
Rüdiger Herrmann
http://eclipsesource.com


On 30.03.2010 18:10, Miles Parker wrote:
>
> Hi Rüdiger,
>
> Please see below..
>
> Rüdiger Herrmann wrote on Tue, 30 March 2010 06:18
>> Miles,
>>
>> I recommend to start with the tutorial that comes with the RAP Tooling
>> (Help System -> RAP Developer Guide -> Advanced Topics WAR
>> Development) and can also be read online <
>> http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse
>> .rap.help/help/html/advanced/deployment.html>. Note that the online
>> tutorial applies to RAP 1.2.
>> You will end up with a functioning WAR file that contains the RAP
>> workbench demo.
>> Based on that you should be able to add EMF and other bundles to the
>> feature, rebuild and update the config.ini accordingly.
>> The FAQ <http://wiki.eclipse.org/RAP/FAQ> also contains several hints
>> regarding WAR deployment.
>> A ready-made WAR file that contains all the RAP demo applications can
>> be found in the online examples:
>> http://rap.eclipsesource.com/rapdemo/examples
>> (use the "Download the Example WAR" link at the right bottom)
>
>
>
> I followed all of those examples and docs quite closely -- see original
> msg. Unfortunately, the ready made WAR has older dependencies so there
> isn't a one to one correspondence -- i.e. I can't take the new demo
> library EMF example and simply add those dependencies to the existing
> project. What I get out of the builder example doesn't build out of the
> box with the latest release either though as I say its pretty close.
> There are enough variables to get right that it's become a matter of
> trial and error and I haven't had time to keep going through that cycle
> more for the time being and I've gotten to the point that even with all
> the FAQ hints about various logs to check, I'm getting nothing to go on
> from tomcat except for the failure itself. For example, I can't tell if
> its failing because I don't have the right dependencies (I think it
> does, because I got to the point where there weren't dependency errors
> in the log anymore) or because somehow I don't have the application
> entry stuff set up right. So really it would just be helpful to have an
> example for an EMF installation itself. Otherwise I'll just post back
> here with details on what isn't working in build process when I have
> time to experiment more.
>
> thanks,
>
> Miles
Previous Topic:RAP with JPA/Eclipselink Shell for Glassfish
Next Topic:RAP databinding example
Goto Forum:
  


Current Time: Wed Dec 01 10:21:27 GMT 2021

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

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

Back to the top