How to run Lenya in eclipse 3.3 JEE edition

View: New views
5 Messages — Rating Filter:   Alert me  

How to run Lenya in eclipse 3.3 JEE edition

by Florent André :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi list,

I already install and run Lenya on a server environment, but now, I want to
set up Lenya in the eclipse 3.3 JEE edition.
I do some manipulation for have no error and I write my experience
procedure in the Lenya wiki
http://wiki.apache.org/lenya/HowToLenyaInEclipse
Now, all build great, no error is detect by eclipse, but I fail to run
Lenya in the eclipse's Tomcat server...

I install Tomcat 5.5 in eclipse and try this :
1 – run the “java project” into a server... but I don't see any
result
2 – create a “Dynamic web project” (I think is the best option) for
import Lenya, but I don't find the right procedure...

Can you help me please ??

Florent


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: How to run Lenya in eclipse 3.3 JEE edition

by vik tara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florent André wrote:

> Hi list,
>
> I already install and run Lenya on a server environment, but now, I want to
> set up Lenya in the eclipse 3.3 JEE edition.
> I do some manipulation for have no error and I write my experience
> procedure in the Lenya wiki
> http://wiki.apache.org/lenya/HowToLenyaInEclipse
> Now, all build great, no error is detect by eclipse, but I fail to run
> Lenya in the eclipse's Tomcat server...
>
> I install Tomcat 5.5 in eclipse and try this :
> 1 – run the “java project” into a server... but I don't see any
> result
> 2 – create a “Dynamic web project” (I think is the best option) for
> import Lenya, but I don't find the right procedure...
>
>  
Have you tried using the eclipse tomcat plugin to control an external
tomcat - and then building lenya as a war?
http://www.eclipsetotale.com/tomcatPlugin.html

It's probably not the most elegant way to do it - but it should work.

Regards

Vik


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: How to run Lenya in eclipse 3.3 JEE edition

by Florent André :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 22 Jul 2008 21:19:35 +0100, Vik Tara <vik@...> wrote:
> Florent André wrote:
>> Hi list,
>>
>> I already install and run Lenya on a server environment, but now, I want
> to
>> set up Lenya in the eclipse 3.3 JEE edition.
....

>>
> Have you tried using the eclipse tomcat plugin to control an external
> tomcat - and then building lenya as a war?
> http://www.eclipsetotale.com/tomcatPlugin.html
>
> It's probably not the most elegant way to do it - but it should work.
>
> Regards
>
> Vik

thanks Vik,

I don't know this plugin, but eclipse 3.3 JEE edition provide the WTP
plugin.

This plugin had many features and allow to run also an embedded (in
eclipse) tomcat or an external server.

I found a solution (not very elegant for the moment) for run lenya in
eclipse. I will write this in documentation this week... and ask some
another questions ! :)

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Re: How to run Lenya in eclipse 3.3 JEE edition

by vik tara :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Florent André wrote:

> On Tue, 22 Jul 2008 21:19:35 +0100, Vik Tara <vik@...> wrote:
>> Florent André wrote:
>>> Hi list,
>>>
>>> I already install and run Lenya on a server environment, but now, I want
>> to
>>> set up Lenya in the eclipse 3.3 JEE edition.
> ....
>> Have you tried using the eclipse tomcat plugin to control an external
>> tomcat - and then building lenya as a war?
>> http://www.eclipsetotale.com/tomcatPlugin.html
>>
>> It's probably not the most elegant way to do it - but it should work.
>>
>> Regards
>>
>> Vik
>
> thanks Vik,
>
> I don't know this plugin, but eclipse 3.3 JEE edition provide the WTP
> plugin.
>
> This plugin had many features and allow to run also an embedded (in
> eclipse) tomcat or an external server.
Sounds good - I'll check that out
>
> I found a solution (not very elegant for the moment) for run lenya in
> eclipse. I will write this in documentation this week... and ask some
> another questions ! :)
Are you able to get lenya to build inside eclipse? - as I am having some
problems with that.
>
> regards
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@...
> For additional commands, e-mail: dev-help@...
>


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...


Parent Message unknown Re: How to run Lenya in eclipse 3.3 JEE edition

by Florent André :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> I don't know this plugin, but eclipse 3.3 JEE edition provide the WTP
>> plugin.
>>
>> This plugin had many features and allow to run also an embedded (in
>> eclipse) tomcat or an external server.
> Sounds good - I'll check that out
>>
>> I found a solution (not very elegant for the moment) for run lenya in
>> eclipse. I will write this in documentation this week... and ask some
>> another questions ! :)
> Are you able to get lenya to build inside eclipse? - as I am having some
> problems with that.

How I proceed :

1 - compile and run Lenya on our tomcat serveur

2 - open eclipse 3.3 JEE edition (a new version of eclipse now exist but I
don't test it)

3 - create a new Web dynamic project in eclipse : a create wizard appear

3.1 - Give a name to your project
3.2 - In "target runtime" click "New" : a new wizard appear. This wizard
will create an instance of tomcat in eclipse
3.2.1 - open the folder "Apache" an select Tomcat 5.5. Note : If you don't
have the tomcat's folder click on the link "Download additional server
adapter" and wait
3.2.2 - check "Also create new local server" (I do that, it should also
work if uncheked). Click next.
3.2.3 - Now you have to select your tomcat installation directory and clic
finish
3.3 - Now you can clic finish or next and next if you want...

4 - You new projet appear in the workbench... Now go on the file system

5 - copy the content of the folder tomcat/webapps/Lenya (on our tomcat
server) in eclipse-workspace/YourProject/WebContent

6 - copy the endorsed libraries required by lenya in the tomcat
installation directory used by eclipse

7 - Go on eclipse, clic on your project and type "F5" (or right clic -->
refresh)

8 - Now test the run : right clic on your project run as -> run on server
--> a wizard appear, clic finish

9 - wait... and your lenya is here !!

In this case, lenya just run with the compiled libraries... We now compile
some of this libraries with eclipse :

10 - go on the file system and copy the Lenya folder in
eclipse-workspace/YourProject/SOURCES/lenya (folder SOURCES in an example)

11 - For example you want to compile sources in news modules. The jar that
containing this sources is
WebContent/WEB-INF/lib/lenya-module-org.apache.lenya.modules.news-impl.jar.
Delete this jar or move it out of the eclipse project.

12 - go on eclipse --> right clic on your project --> build path -->
configure build path : Welcome wizard !
12.1 - in the panel "Source", select the default entry and clic on "Remove"
12.2 - clic on "Add folder" --> deploy SOURCES/Lenya/src/modules/news/java
; check "src" and clic "OK"
12.3 - on the bottom of the source panel clic on "Browse" in order to
define a new Default output folder
12.4 - Select the folder WebContent/WEB-INF/classes

13 - build your project and run Lenya


note :
* Don't try to compile cocoon sources with this procedure, some other
manipulations are needed.


It's clear ? It's work for you ?

regards


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

LightInTheBox - Buy quality products at wholesale price