You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Daniel Brüßler <ma...@danielbruessler.de> on 2010/10/21 00:19:21 UTC

Re: Lenya blank page - it works in Eclipse debug-mode

Hello,

I'm very happy, that Lenya does work now. I can see it, use it, editing
in Bitflux works very good, publishing and the Ajax-features work great.

I set up Eclipse in debug-mode, so that Jetty starts as Application and
gets the right parameters, so that it runs Lenya.
The HowTo: http://wiki.apache.org/cocoon/LoadInEclipse

By the way I didn't change something of Lenya or Cocoon. So the question
is why does ./build.sh and ./lenya.sh show a blank page and Eclipse can
run Lenya properly?

Here is the Run/Debug configuration:
- Main class: Loader
- Arguments/ Program arguments:
"externals/cocoon_2_1_x/tools/jetty/conf/main.xml" (with double quotes)
- Arguments/ VM arguments:
"-Djava.endorsed.dirs=./externals/cocoon_2_1_x/lib/endorsed"
"-Dwebapp=./build/lenya/webapp"
-Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
-Djetty.port=8888 -Djetty.admin.port=8889 "-Dhome=."
"-Dloader.jar.repositories=./externals/cocoon_2_1_x/tools/jetty/lib,./externals/cocoon_2_1_x/lib/endorsed"
-Dloader.main.class=org.mortbay.jetty.Server
- JRE: Sun JDK 5 update 22
- classpath: jetty and servlet2.3 in
Cocoon-2.1.12-dev-project/tools/jetty/lib ,
                    plus "Advanced" folder
Cocoon-2.1.12-dev-project/tools/loader ,
                    but without the "default classpath"


Did anybody have that mysterious effect?

Cheers!
Daniel


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya blank page - servlet2.2 /2.3 conflict?

Posted by Daniel Brüßler <ma...@danielbruessler.de>.
Hello Florent,
> Hi,
>
> Really strange problem you have ! :)
>   
yes, indeed!
> Has sometimes eclipse embedded his own jre and as it's possible to
> define java version for compil and exe in eclipse, I suspect a problem
> with your operating system jre...
>
> HTH
>   
I can't find the error in the OS, because Cocoon is running properly and
I can't find the problem in the JRE, because I'm using the same JDK/JRE
for Eclipse to run and build.

I got one idea:
When I compiled Cocoon and Lenya as two projects in eclipse I had the
problem that servlet2.2 is shipped with Cocoon, that had a build problem
in the Lenya project.

So when the ./lenya.sh script does include the servlet 2.2 library
(because it's in externals/cocoon_2_1_x/lib/core !) AND servlet2.3 this
is clearly a problem. Can this be the reason? (So the problem is in one
of the ant-scripts)

Cheers!
Daniel

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org


Re: Lenya blank page - it works in Eclipse debug-mode

Posted by florent andré <fl...@4sengines.com>.
Hi,

Really strange problem you have ! :)

Has sometimes eclipse embedded his own jre and as it's possible to
define java version for compil and exe in eclipse, I suspect a problem
with your operating system jre...

HTH
++

On 10/21/2010 12:19 AM, Daniel Brüßler wrote:
> Hello,
> 
> I'm very happy, that Lenya does work now. I can see it, use it, editing
> in Bitflux works very good, publishing and the Ajax-features work great.
> 
> I set up Eclipse in debug-mode, so that Jetty starts as Application and
> gets the right parameters, so that it runs Lenya.
> The HowTo: http://wiki.apache.org/cocoon/LoadInEclipse
> 
> By the way I didn't change something of Lenya or Cocoon. So the question
> is why does ./build.sh and ./lenya.sh show a blank page and Eclipse can
> run Lenya properly?
> 
> Here is the Run/Debug configuration:
> - Main class: Loader
> - Arguments/ Program arguments:
> "externals/cocoon_2_1_x/tools/jetty/conf/main.xml" (with double quotes)
> - Arguments/ VM arguments:
> "-Djava.endorsed.dirs=./externals/cocoon_2_1_x/lib/endorsed"
> "-Dwebapp=./build/lenya/webapp"
> -Dorg.xml.sax.parser=org.apache.xerces.parsers.SAXParser
> -Djetty.port=8888 -Djetty.admin.port=8889 "-Dhome=."
> "-Dloader.jar.repositories=./externals/cocoon_2_1_x/tools/jetty/lib,./externals/cocoon_2_1_x/lib/endorsed"
> -Dloader.main.class=org.mortbay.jetty.Server
> - JRE: Sun JDK 5 update 22
> - classpath: jetty and servlet2.3 in
> Cocoon-2.1.12-dev-project/tools/jetty/lib ,
>                     plus "Advanced" folder
> Cocoon-2.1.12-dev-project/tools/loader ,
>                     but without the "default classpath"
> 
> 
> Did anybody have that mysterious effect?
> 
> Cheers!
> Daniel
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
> For additional commands, e-mail: user-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@lenya.apache.org
For additional commands, e-mail: user-help@lenya.apache.org