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/15 15:24:14 UTC

Re: Lenya blank page - right to create folders

Hello,

I suppose Lenya tries to create some folders when it starts the first
time - and Jetty isn't allowed to do this.

I always give the full rights after a build (and after the
lenya-download-and-untar) with
chmod -R 774 ./

and start Jetty as the current user. Here's the output of top -p 14312

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                     
14312 daniel    20   0  1832  536  452 S  0.0  0.0   0:00.00 lenya.sh

My last try was the checkout of subversion BRANCH_2_0_X . Here the same
problem with the blank page.

The first run of lenya stops (like in versions 2.0.2, 2.0.3) and tells,
that just this folder is missing:

src/webapp/WEB-INF/logs

When I create it and give also for this the rights 774,
in the next start lenya doesn't stop and just renders that blank page.

So what can I do now to let lenya run properly?

this shows that there seems to be a rights-problem:

-----

(...)
BUILD SUCCESSFUL
Total time: 1 minute 18 seconds
daniel@daniel-desktop:/d/REPOS/java/lenya20branch$ chmod -R 774 ./
daniel@daniel-desktop:/d/REPOS/java/lenya20branch$ ./lenya.sh
./lenya.sh: executing default action 'servlet', use -h to see other actions
./lenya.sh: using /d/REPOS/java/lenya20branch/src/webapp as the webapp directory
INFO: Jetty Port is 8888
INFO: Jetty Admin Port is 8889
INFO: build/lenya/webapp directory already exists.
-------------------- Loading --------------------
Processing repository: /d/REPOS/java/lenya20branch/tools/jetty/lib
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/lib/servlet-2.4.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/lib/org.mortbay.jmx-5.1.4.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/lib/org.mortbay.jetty-5.1.4.jar
Processing repository: /d/REPOS/java/lenya20branch/tools/jetty/extra/lib
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/lib/org.mortbay.jetty.plus-5.1.4.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/lib/org.mortbay.jaas-5.1.4.jar
Processing repository: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/jotm_jrmp_stubs.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/log4j.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/jotm_iiop_stubs.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/jotm.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/howl.jar
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/extra/ext/commons-cli-1.0.jar
Processing repository: /d/REPOS/java/lenya20branch/tools/jetty/ext
Adding jar: /d/REPOS/java/lenya20branch/tools/jetty/ext/commons-logging.jar
Processing repository: /d/REPOS/java/lenya20branch/tools/jetty/extra/resources
Processing repository: /d/REPOS/java/lenya20branch/src/webapp/WEB-INF/lib/endorsed
-------------------- Executing -----------------
Main Class: org.mortbay.jetty.plus.Server
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /d/REPOS/java/lenya20branch/src/webapp/WEB-INF/logs/jetty-log4j.log (No such file or directory)
	at java.io.FileOutputStream.openAppend(Native Method)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:177)
	at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
	at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
	at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:156)
	at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
	at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:247)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:123)
	at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:87)
	at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:645)
	at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:603)
	at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:500)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:406)
	at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:432)
	at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:460)
	at org.apache.log4j.LogManager.<clinit>(LogManager.java:145)
	at org.apache.log4j.Logger.getLogger(Logger.java:85)
	at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:102)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
	at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:525)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:272)
	at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:246)
	at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:395)
	at org.mortbay.util.Container.<clinit>(Container.java:39)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at Loader.invokeMain(Unknown Source)
	at Loader.run(Unknown Source)
	at Loader.main(Unknown Source)
0    [main] INFO  org.mortbay.util.Credential  - Checking Resource aliases
221  [main] INFO  org.mortbay.http.HttpServer  - Statistics on = false for org.mortbay.jetty.plus.Server@a01335
223  [main] INFO  org.mortbay.http.HttpServer  - Version Jetty/5.1.4
378  [main] INFO  org.mortbay.jetty.servlet.XMLConfiguration  - No WEB-INF/web.xml in /d/REPOS/java/lenya20branch/src/webapp. Serving files and default/dynamic servlets only
380  [main] INFO  org.mortbay.util.Container  - Started org.mortbay.jetty.servlet.WebApplicationHandler@e3b895
382  [main] INFO  org.mortbay.util.Container  - Started WebApplicationContext[/,/]
388  [main] INFO  org.mortbay.http.SocketListener  - Started SocketListener on 0.0.0.0:8888
389  [main] WARN  org.mortbay.jetty.plus.Server  - EXCEPTION 
org.mortbay.util.MultiException[java.io.IOException: Cannot write log directory /d/REPOS/java/lenya20branch/src/webapp/WEB-INF/logs]
	at org.mortbay.http.HttpServer.doStart(HttpServer.java:731)
	at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
	at org.mortbay.util.Container.start(Container.java:72)
	at org.mortbay.jetty.plus.Server.main(Server.java:202)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at Loader.invokeMain(Unknown Source)
	at Loader.run(Unknown Source)
	at Loader.main(Unknown Source)
java.io.IOException: Cannot write log directory /d/REPOS/java/lenya20branch/src/webapp/WEB-INF/logs
	at org.mortbay.util.RolloverFileOutputStream.setFile(RolloverFileOutputStream.java:137)
	at org.mortbay.util.RolloverFileOutputStream.<init>(RolloverFileOutputStream.java:94)
	at org.mortbay.http.NCSARequestLog.start(NCSARequestLog.java:307)
	at org.mortbay.http.HttpServer.doStart(HttpServer.java:744)
	at org.mortbay.jetty.plus.Server.doStart(Server.java:153)
	at org.mortbay.util.Container.start(Container.java:72)
	at org.mortbay.jetty.plus.Server.main(Server.java:202)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:592)
	at Loader.invokeMain(Unknown Source)
	at Loader.run(Unknown Source)
	at Loader.main(Unknown Source)

---------------------------

Cheers!
Daniel

>> Hello Thorsten,
>>
>> shure, I did a build before running lenya :-)
>>     
>
> Hmm, then I do not understand why you see the logs in the src tree.
>   


---------------------------------------------------------------------
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


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

Posted by Daniel Brüßler <ma...@danielbruessler.de>.
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