Quantcast

WARNING: User database is not persistable - no write permissions on directory

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

WARNING: User database is not persistable - no write permissions on directory

Dimas
Hi,

I've installed an Ubuntu Server 8.10 with the Tomcat6 package. When I
start it this msg appears on the Catalina log:

WARNING: User database is not persistable - no write permissions on
directory

Do you know why? Anyway the Tomcat starts OK, but when I deploy an
application (JasperServer 3.0) it doesn't start with more permissions
errors on the log:

Catalina log
Nov 7, 2008 2:48:10 PM org.apache.catalina.core.NamingContextListener
addResource
WARNING: Failed to register in JMX: javax.naming.NamingException: Could
not create resource factory instance [Root exception is
java.lang.ClassNotFoundException:
org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]
...
Nov 7, 2008 2:48:13 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Nov 7, 2008 2:48:13 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/jasperserver] startup failed due to previous errors

Localhost log

SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.util.Log4jConfigListener
java.security.AccessControlException: access denied
(java.util.PropertyPermission jasperserver.root read)
...
SEVERE: Exception sending context initialized event to listener instance
of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanDefinitionStoreException: Error
registering bean with name 'fileVirtualizerFactory' defined in
ServletContext resource [/WEB-INF/applicationContext.xml]: Could not
resolve placeholder 'java.io.tmpdir'
...
SEVERE: Exception sending context initialized event to listener instance
of class com.tonbeller.tbutils.res.ResourcesFactoryContextListener
java.lang.ExceptionInInitializerError
...
Caused by: java.security.AccessControlException: access denied
(java.util.PropertyPermission tbeller.InitialResourceProvider read)
...
SEVERE: Exception sending context initialized event to listener instance
of class
com.jaspersoft.jasperserver.war.util.SecurityContextHolderStrategyInitializer
java.lang.ExceptionInInitializerError
...
SEVERE: Exception sending context destroyed event to listener instance
of class org.springframework.web.util.Log4jConfigListener
java.security.AccessControlException: access denied
(java.util.PropertyPermission * read,write)

I tried to chown all tomcat6 directory to the tomcat6 user, and make a
777 pemission folder, but no result :(

Any suggestion?

Thx!

--
____________________________________
Dimas Streich i Colomeda
dimas.sc <http://dimas.sc> ARROVA gmail.com <http://gmail.com>
http://www.dimas.cat

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: WARNING: User database is not persistable - no write permissions on directory

Christopher Schultz-2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dimas,

Dimas wrote:
> I've installed an Ubuntu Server 8.10 with the Tomcat6 package. When I
> start it this msg appears on the Catalina log:
>
> WARNING: User database is not persistable - no write permissions on
> directory
>
> Do you know why?

My guess is that you don't have write permissions on the directory where
the user database exists(!).

Tomcat is running as what user? The user database is owned by what user?
The directory where that user database resides is owned by what user?

Note that unless you are using the manager application to modify users,
this warning is not relevant to you.

> Anyway the Tomcat starts OK, but when I deploy an
> application (JasperServer 3.0) it doesn't start with more permissions
> errors on the log:
>
> Catalina log
> Nov 7, 2008 2:48:10 PM org.apache.catalina.core.NamingContextListener
> addResource
> WARNING: Failed to register in JMX: javax.naming.NamingException: Could
> not create resource factory instance [Root exception is
> java.lang.ClassNotFoundException:
> org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]

Now /that's/ a bigger problem: your Tomcat install is broken. Tomcat
ships with DBCP and should always be found. Have you been playing with
any of the JAR files that come with Tomcat? Have you added anything to
Tomcat's library directories? Have you deployed DBCP along with your own
application? If not, you should talk to the Ubuntu folks about their
broken Tomcat6 package, because this doesn't happen when you install
from Tomcat's official distribution.


> SEVERE: Exception sending context initialized event to listener instance
> of class org.springframework.web.util.Log4jConfigListener
> java.security.AccessControlException: access denied
> (java.util.PropertyPermission jasperserver.root read)

You also don't have proper permissions to your log directory.

> I tried to chown all tomcat6 directory to the tomcat6 user, and make a
> 777 pemission folder, but no result :(

I'm guessing that this is not standard procedure when using a packaged
version of Tomcat. I recommend asking for help on the Ubuntu Tomcat forums.

Please note that I'm not simply trying to get you to go away: this is an
Ubuntu problem and we have been told in the past that we should refer
these kinds of problems to /their/ forums instead of stamping our feet
and telling their users to discard their packages (which is typically
what we do, because it nearly /always/ works). So, help the Ubuntu folks
make things better and they'll also be better equipped to give you more
information about a "standard" Ubuntu Tomcat install.

Hope that helps,
- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkkUYcIACgkQ9CaO5/Lv0PC58ACfZoSnJchvJa7D3Ru0HdlWMoYO
NF4AnA1FO9sfQKhuV5I0ng5p8vsNF9gb
=j6Xd
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To start a new topic, e-mail: [hidden email]
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Loading...