premissionerrors on linux install

Former SVN Browser
thor918
Posts: 5
Joined: Fri Aug 11, 2006 12:48 pm

premissionerrors on linux install

Postby thor918 » Fri Aug 11, 2006 12:55 pm

Hi I have setuped
tomcat 5.0,
apache2,
svn trough webdav
on a ubuntu linux.

I successfully deployed the war file trough the tomcat admin.
then I edited the web.xml for svnwebclient.
but I can't seem to get the webapplication started.

2006-08-11 14:14:38 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2006-08-11 14:24:58 StandardContext[/manager]HTMLManager: start: Starting web application at '/svnwebclient'
2006-08-11 14:24:58 StandardContext[/svnwebclient]Exception sending context initialized event to listener instance of class org.polarion.svnwebclient.web.InitListener
java.lang.ExceptionInInitializerError
at org.apache.log4j.Logger.getLogger(Logger.java:94)
at org.polarion.svnwebclient.web.InitListener.contextInitialized(InitListener.java:61)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3831)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4323)
at org.apache.catalina.core.StandardHostDeployer.start(StandardHostDeployer.java:830)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:991)
at org.apache.catalina.manager.ManagerServlet.start(ManagerServlet.java:1326)
at org.apache.catalina.manager.HTMLManagerServlet.start(HTMLManagerServlet.java:530)
at org.apache.catalina.manager.HTMLManagerServlet.doGet(HTMLManagerServlet.java:104)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at sun.reflect.GeneratedMethodAccessor64.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:272)
at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
at org.apache.catalina.core.ApplicationFilterChain.access$0(ApplicationFilterChain.java:50)
at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:540)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission SVNWebClient.log write)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:264)
at java.security.AccessController.checkPermission(AccessController.java:427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
at java.lang.SecurityManager.checkWrite(SecurityManager.java:962)
at java.io.FileOutputStream.<init>(FileOutputStream.java:169)
at java.io.FileOutputStream.<init>(FileOutputStream.java:102)
at org.apache.log4j.FileAppender.setFile(FileAppender.java:272)
at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:151)
at org.apache.log4j.DailyRollingFileAppender.activateOptions(DailyRollingFileAppender.java:206)
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:113)
... 48 more


I can see a FilePermission error on logmessages, but I can't figure out how to get this running.

<!--
Optional. Path to temporary directory. This directory is used for temporary files storage, etc.
Values: Valid path
Example: c:/temp
-->
<context-param>
<param-name>TempDirectory</param-name>
<param-value>/tmp/</param-value>
</context-param>

<!--
Optional. Path to folder where log messages will be stored persistently
Values: Valid path
Example: c:/temp/cache
-->
<context-param>
<param-name>CacheDirectory</param-name>
<param-value>/tmp/cache/</param-value>
</context-param>

brenda.gillespie
Posts: 3
Joined: Wed Aug 23, 2006 4:30 pm

Postby brenda.gillespie » Fri Aug 25, 2006 3:12 pm

I am not an expert either, but I will try to help....

Your error

2006-08-11 14:14:38 StandardContext[/manager]HTMLManager: list: Listing contexts for virtual host 'localhost'
2006-08-11 14:24:58 StandardContext[/manager]HTMLManager: start: Starting web application at '/svnwebclient'

Look in the server.xml file for the config of the host. I have noticed that the appbase="xxxxx" doesn't like "/" in there.

thor918
Posts: 5
Joined: Fri Aug 11, 2006 12:48 pm

Postby thor918 » Wed Sep 06, 2006 8:57 pm

thanks for the reply.
I simply gave it up.

I did try to add the atribute you gave me but no good.
Isn't there a better readme?
because all these variables that are put there are frustrating for a neewbie...

%PROJECT_ROOT%
$TOMCAT_ROOT

and how about the
TempDirectory
CacheDirectory
in a linux envirment?

i set theme to:
TempDirectory = /tmp
CacheDirectory = /tmp/cache

and how about the
ParentRepositoryDirectory
does it support https?
I currently set it to the default http
http://localhost/svn
that one has no password.

the application won't start because of the premission error.
so I'm wondering if it has something to do with the tempdir and cachdir.

brenda.gillespie
Posts: 3
Joined: Wed Aug 23, 2006 4:30 pm

Postby brenda.gillespie » Thu Sep 07, 2006 2:25 pm

When I declared my temp and cache directory I put in the entire path.
And made sure that the temp / cache directories were created.
And you do need to make sure that it can be written to.

chmod +w temp

for more details google chmod

-Brenda

brenda.gillespie
Posts: 3
Joined: Wed Aug 23, 2006 4:30 pm

Postby brenda.gillespie » Thu Sep 07, 2006 2:26 pm

I have been frustrated with the documentation on this as well.

thor918
Posts: 5
Joined: Fri Aug 11, 2006 12:48 pm

Postby thor918 » Thu Sep 07, 2006 2:48 pm

hi there.
I used the standard tmp folder that every linux has,
and it has every permission bits on(it's standard).
what user/group do you have on your temp/cache folder?

maby I could try to create a new folder to test if it gets better...

thor918
Posts: 5
Joined: Fri Aug 11, 2006 12:48 pm

Postby thor918 » Thu Sep 07, 2006 5:02 pm

Caused by: java.security.AccessControlException: access denied (java.io.FilePermission SVNWebClient.log write)

V. "Polarion SVN Web Client" logging
====================================
1) all errors are logged in %TOMCAT_HOME%/bin/SVNWebClient.log (by default)
2) you can specify other logging file path and name in log4j.properties in %TOMCAT_HOME%/webapps/%SVNWebClient%/WEB-INF/classes (previously unpack war), for example log4j.appender.FA.file=c:/temp/my.log


so I tied to change the path.
but still the premission error.

made a new dir. added all premissions to it. dosen't work either.


Return to “Polarion SVN Web Client”

Who is online

Users browsing this forum: No registered users and 4 guests