lenya-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Brüßler <m...@danielbruessler.de>
Subject Re: Lenya blank page - right to create folders
Date Fri, 15 Oct 2010 13:24:14 GMT
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


Mime
View raw message