Home » Eclipse Projects » Remote Application Platform (RAP) » deploying RAP: new tutorial?
|
Re: deploying RAP: new tutorial? [message #138685 is a reply to message #138673] |
Mon, 29 June 2009 20:15 |
Rüdiger Herrmann Messages: 581 Registered: July 2009 |
Senior Member |
|
|
Hans,
the WAR deployment tutorial from the RAP help describes how to
accomplish this task. It can either be viewed online [1] but is also
included in the developer guide that comes with the RAP Tooling.
HTH
Rüdiger
[1]
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .rap.help/help/html/advanced/deployment.html
Hans K. wrote:
> This blog has been very useful for my first steps with eclipse 3.3:
> http://eclipsesource.com/blogs/2007/11/28/rap-deployment-par t-1-deploying-your-application-with-jetty/
>
>
> Now I want to update to eclipse 3.4 or 3.5, but I cannot deploy RAP
> applications anymore. The blog says:
> "Update 2008/8/11: note that this instructions are NOT accurate for
> deploying RAP 1.1 with Eclipse 3.4. According to the mailing list there
> are at least two changes: These projects should not be opened in your
> workspace: javax.servlet, org.apache.commons.logging,
> org.eclipse.equinox.http.jetty, org.eclipse.equinox.http.registry,
> org.eclipse.equinox.http.servlet, org.mortbay.jetty. And you now *have*
> to use the ConfigIniCreator to create a valid config.ini file. I will
> schedule some time to do an fully updated re-post of this tutorial in
> August."
> I don't know if August means August 2008, 2009 or 2010. But has somebody
> written an update recently, how to deploy RAP with eclipse >= 3.4?
>
> regards
> Hans
>
|
|
| |
Re: deploying RAP: new tutorial? [message #138707 is a reply to message #138673] |
Tue, 30 June 2009 06:39 |
Aleksandar Pavlov Messages: 79 Registered: July 2009 |
Member |
|
|
Hans K. wrote:
> has somebody written an update recently, how to deploy RAP with
eclipse >= 3.4?
This document prepared for our project should help. It uses Eclipse
Ganymede (a.k.a 3.4).
1. Check out the KMS.Fronend project.
a.
b.
c. Also in the Project/Preferences/Java Build Path/Libraries/Add
Library choose Plug-in dependencies and the library
org.eclipse.rap.rwt_[version-build].jar.
d. If there is problem with the RAP resources set the target platform
to ${your eclipse home}\configuration\org.eclipse.rap.target-1.2\eclipse.
Access through Window/Preferences/Plug-in development/Target
Platform/Location.
2. Create a feature project
a. Checkout the the rap feature demo from the eclipse CVS at
„:pserver:dev.eclipse.org:/cvsroot/rt“ and then project „org.eclipse.rap
/releng/org.eclipse.rap.demo.feature“. The username requred is ‚
anonymous ‘ and there is no password required.
3. Obtain the servlet bridge.
Checkout the the Equinox projects from the eclipse CVS at
„:pserver:dev.eclipse.org:/cvsroot/rt“ and then folder
„org.eclipse.equinox/server-side/bundles/“. In it you need:
1. org.eclipse.equinox.http.servletbridge
2. org.eclipse.equinox.servletbridge
Check these project out.
4. Import the org.eclipse.update.configurator plug-in from your eclipse
installation (not the target!).Choose File > Import > Plug-ins and
Fragments. In the “Import From” group uncheck the option “The target
platform (as specified in the Preferences”). Under “Plug-in Location”
enter the path to your plugins directory (for example:
c:temp/eclipse/plugins). Next. Select „org.eclipse.update.configurator“.
Add it. Finish.
5. Make a copy of the org.eclipse.rap.demo.feature and name it
KMS.Admin.feature.
6. Adjust the copied feature.xml.Change the id to “KMS.Admin.feature“.
Change the fields Version, Name and Provider to your liking. Then modify
the list of Plug-ins and Fragments: remove org.eclipse.rap.demo; add
KMS.Fronend. Save. Then add the org.eclipse.equinox.http.servlet and
org.eclipse.equinox.http.servletbridge. At the end you should have 27
plugins in the feature. Namely:
1. org.eclipse.core.commands
2. org.eclipse.core.contenttype
3. org.eclipse.core.jobs
4. org.eclipse.core.runtime
5. org.eclipse.equinox.common
6. org.eclipse.equinox.http.registry
7. org.eclipse.equinox.http.servlet
8. org.eclipse.equinox.http.servletbridge
9. org.eclipse.equinox.preferences
10. org.eclipse.equinox.registry
11. org.eclipse.osgi
12. org.eclipse.osgi.services
13. org.eclipse.rap.jface
14. org.eclipse.rap.rwt
15. org.eclipse.rap.ui.workbench
16. org.eclipse.core.expressions
17. org.eclipse.equinox.app
18. org.eclipse.rap.ui
19. org.eclipse.rap.rwt.q07
20. org.eclipse.rap.jface.databinding
21. org.eclipse.core.databinding
22. org.eclipse.core.databinding.observable
23. org.eclipse.core.databinding.property
24. com.ibm.icu.base
25. org.eclipse.rap.ui.views
26. KMS.Frontend
27. org.eclipse.update.configurator
7. Adjust the copied ant script under scriptwebappBuilder.xml.
• Change the servletbridge.dir property to point to the absolute
location of the org.eclipse.equinox.servletbridge plugin on your
machine. Remember to use ‘/’ as the path delimiter.
• Change the webapp.name to KMS.Admin.
• Change the features property to “KMS.Admin.feature “. This determines
which feature the script will export.
• Save.
8. Check the contents of the file
“/KMS.Admin.feature/templates/WEB-INF/eclipse/configuratio n/config.ini”.
Make sure it contains the following:
#Eclipse Runtime Configuration File
osgi.bundles=org.eclipse.equinox.common@2:start,
org.eclipse.update.configurator@start,
org.eclipse.equinox.http.servletbridge@start,
org.eclipse.equinox.http.registry@start
osgi.bundles.defaultStartLevel=4
9. Configure and run the ant task.
• Select webappBuilder.xml and open the External Tools Dialog (Run >
External Tools > Open External Tools Dialog).
• Double click on “Ant Build”.
• Select the new entry (KMS.Admin.feature webappBuilder.xml).
• In the JRE Tab adjust “Runtime JRE” to “Run in the same JRE as the
workspace” (otherwise the script will not be able to use the PDE Ant
Task for exporting our feature).
• Run.
• You should see a “BUILD SUCCESSFUL” message on the console. Notice
that the PDE Export task is still running in the background (progress
indicator). Wait until it finishes.
10. Select the calc.ui.war.feature and hit Refresh (F5).You should now
have a build directory in that project with the following content:
• Build/ KMS.Admin/WEB-INF/eclipse/configuration
• Build/ KMS.Admin/WEB-INF/eclipse/features
• Build/ KMS.Admin/WEB-INF/eclipse/plugins
• Build/ KMS.Admin/WEB-INF/eclipse/.eclipseproduct
• Build/ KMS.Admin/WEB-INF/eclipse/launch.ini
• Build/ KMS.Admin/WEB-INF/lib/servletbridge.jar
• Build/ KMS.Admin/WEB-INF/web.xml
11. Zip the KMS.Admin to a *.war archieve. One may use the
buildWarDeploy.xml ant build file for ease of the deployment process.
12. Keep in mind that the application servlet is set to ‘kms’ so in the
browser you need some-thing like: http://yourserver:yourport/KMS.Admin/kms
13. Additionally one should check the target project settings.
Setup the plugin.xml in the target (main) project (e.g. the
KMS.Frontend). That means the build tab in the plugin.xml editor and the
binary build section. Select the META-INF, ${our_project_name}.launch,
bin, lib, plugin.xml, resources and the theme1 check boxes.
[1]
http://www.screencast.com/users/eclipsenuggets/folders/eclip se/media/9c9f07f6-4b0a-4efa-844c-83e3d7e6ea4b
[2]
http://eclipsesource.com/blogs/2007/12/07/rap-deployment-par t-2-deploying-your-application-as-a-war-file/
[3]
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. rap.help/help/html/advanced/deployment.html
|
|
| | | |
Re: deploying RAP: new tutorial? [message #138878 is a reply to message #138837] |
Wed, 01 July 2009 14:21 |
Hans K. Messages: 10 Registered: July 2009 |
Junior Member |
|
|
Unfortunately I still don't know which parts of your link [1] to follow
and which to leave out.
And if I am to follow the following parts, I don't know
1) What is meant by "We also assume that you have a checkout of the
servlet bridge and demo feature bundles in your workspace." The link
"servlet bridge and demo feature bundles" points to a file
"servletbridge-anon.psf" with the contents
<?xml version="1.0" encoding="UTF-8"?>
<psf version="2.0">
<provider id="org.eclipse.team.cvs.core.cvsnature">
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.equinox/server-side/bundles/org.ecl ipse.equinox.http.servletbridge,org.eclipse.equinox.http.ser vletbridge "/>
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.equinox/server-side/bundles/org.ecl ipse.equinox.servletbridge,org.eclipse.equinox.servletbridge "/>
<project
reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.rap/releng/org.eclipse.rap.demo.fea ture,org.eclipse.rap.demo.feature "/>
</provider>
</psf>
Is this link supposed to offer a download of org.eclipse.rap.demo.feature
instead?
2) where to get the org.eclipse.rap.demo.feature and the script directory
therein (section "Prepare your build script")
3) How to "Run the ConfigIniCreator as java application". I find no
documentation on the ConfigIniCreator class and don't have this class
anywhere in my type hierarchy.
Maybe I don't need to know 1) and 2). But please tell me where to find the
ConfigIniCreator class or application or whatever. And could I have found
this class/application by using the eclipse help or google? How?
I am not so experienced that sentences like
"Open the script/webappBuilder.xml of the org.eclipse.rap.demo.feature
with the Ant editor." are of any use to me if the help describes nowhere
how to get the files that I am supposed to open.
I am using Eclipse Version: 3.5.0 Build id: I20090611-1540.
regards,
Hans
|
|
|
Re: deploying RAP: new tutorial? [message #138913 is a reply to message #138878] |
Wed, 01 July 2009 14:39 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
hi,
please see
http://www.eclipse.org/newsportal/article.php?id=6924&gr oup=eclipse.technology.rap#6924
for my comments.
greetings,
ben
Hans K. schrieb:
> Unfortunately I still don't know which parts of your link [1] to follow
> and which to leave out.
>
> And if I am to follow the following parts, I don't know
> 1) What is meant by "We also assume that you have a checkout of the
> servlet bridge and demo feature bundles in your workspace." The link
> "servlet bridge and demo feature bundles" points to a file
> "servletbridge-anon.psf" with the contents
> <?xml version="1.0" encoding="UTF-8"?>
> <psf version="2.0">
> <provider id="org.eclipse.team.cvs.core.cvsnature">
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.equinox/server-side/bundles/org.ecl ipse.equinox.http.servletbridge,org.eclipse.equinox.http.ser vletbridge "/>
>
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.equinox/server-side/bundles/org.ecl ipse.equinox.servletbridge,org.eclipse.equinox.servletbridge "/>
>
> <project
> reference="1.0,:pserver:anonymous@dev.eclipse.org :/cvsroot/rt,org.eclipse.rap/releng/org.eclipse.rap.demo.fea ture,org.eclipse.rap.demo.feature "/>
>
> </provider>
> </psf>
> Is this link supposed to offer a download of
> org.eclipse.rap.demo.feature instead?
>
> 2) where to get the org.eclipse.rap.demo.feature and the script
> directory therein (section "Prepare your build script")
>
> 3) How to "Run the ConfigIniCreator as java application". I find no
> documentation on the ConfigIniCreator class and don't have this class
> anywhere in my type hierarchy.
>
> Maybe I don't need to know 1) and 2). But please tell me where to find
> the ConfigIniCreator class or application or whatever. And could I have
> found this class/application by using the eclipse help or google? How?
>
> I am not so experienced that sentences like
> "Open the script/webappBuilder.xml of the org.eclipse.rap.demo.feature
> with the Ant editor." are of any use to me if the help describes nowhere
> how to get the files that I am supposed to open.
>
> I am using Eclipse Version: 3.5.0 Build id: I20090611-1540.
>
> regards,
> Hans
>
|
|
| |
Re: deploying RAP: new tutorial? [message #138948 is a reply to message #138936] |
Thu, 02 July 2009 08:39 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
Hi,
you need to copy the rap demo feature and adjust it to your needs, meaning to clean the feature.xml (through the PDE editor) from all unnecessary plug-ins and fragment.
there you need to list ALL plug-ins (except the ones described in the deployment guide) that are needed for your application to run, take the launch config from the IDE
into consideration.
hth,
ben
Hans K. schrieb:
> Following Bens hint I checked out the plugins in
> http://help.eclipse.org/galileo/topic/org.eclipse.rap.help/h elp/html/advanced/servletbridge-anon.psf,
> now being able to run ConfigIniCreator.
>
> But when I "Run Ant" on the script/webappBuilder.xml as described in the
> help ("Create the build content") I get this error:
> PDE Export encountered a problem:
> Unable to find plug-in: org.eclipse.rap.examples_0.0.0. Please check the
> error log for more details.
>
> I have imported http://www.eclipse.org/rap/resources/rap.psf, but don't
> find a plugin org.eclipse.rap.examples anywhere. Neither with google.
> Please help once again.
>
> Hans
>
|
|
| | |
Goto Forum:
Current Time: Fri Sep 20 07:59:18 GMT 2024
Powered by FUDForum. Page generated in 0.04496 seconds
|