As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
JAVA_HOME=/usr/lib/jvm/java-6-sun; export JAVA_HOME PATH=$PATH:$JAVA_HOME/bin export PATH CATALINA_HOME=/usr/share/tomcat5.5 TOMCAT_HOME=/usr/ share/tomcat5.5 CLASSPATH=. export CATALINA_HOME TOMCAT_HOME CLASSPATH
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="admin"/> <role rolename="manager"/> <user username="username" password="password" roles="admin,manager"/> </tomcat-users>
30/Dez/2007 3:32:59 org.apache.coyote.http11.Http11BaseProtocol startINFO: Starting Coyote HTTP/1.1 on http-818030/Dez/2007 3:32:59 org.apache.jk.common.ChannelSocket initINFO: JK: ajp13 listening on /0.0.0.0:800930/Dez/2007 3:32:59 org.apache.jk.server.JkMain startINFO: Jk running ID=0 time=0/18 config=null30/Dez/2007 3:32:59 org.apache.catalina.storeconfig.StoreLoader loadINFO: Find registry server-registry.xml at classpath resource30/Dez/2007 3:32:59 org.apache.catalina.startup.Catalina startINFO: Server startup in 1628 msDec 30, 2007 2:44:23 PM org.apache.catalina.core.AprLifecycleListener lifecycleEventINFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/java/packages/lib/i386:/lib:/usr/libDec 30, 2007 2:44:23 PM org.apache.coyote.http11.Http11BaseProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8180Dec 30, 2007 2:44:23 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 1392 msDec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaDec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/5.5Dec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardHost startINFO: XML validation disabledDec 30, 2007 2:44:29 PM org.apache.catalina.startup.HostConfig deployDirectorySEVERE: Error deploying web application directory alfrescoorg.apache.commons.logging.LogConfigurationException: java.lang.ExceptionInInitializerError (Caused by java.lang.ExceptionInInitializerError)(..)Caused by: java.lang.ExceptionInInitializerError at org.apache.log4j.Logger.getLogger(Logger.java:85) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:229) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:65) 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:513) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:529) … 33 moreCaused by: java.security.AccessControlException: access denied (java.io.FilePermission alfresco.log write)(..)
Hi,Have you followed the instructions here?:http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10Specifically, the section:Create a directory for the logs and make the user and group alfresco it's owner: mkdir -p /var/log/alfresco/tomcat/logs chown -R alfresco:alfresco /var/log/alfrescoThe Alfresco log will be in /var/log/alfresco/alfresco.log. Steve
alex@gcrc-dev:~$ sudo mkdir -p /var/log/alfresco/tomcat/logs alex@gcrc-dev:~$ sudo chown -R alfresco:alfresco /var/log/alfresco alex@gcrc-dev:~$ ls -ld /var/log/alfresco/ drwxr-x— 2 alfresco alfresco 4096 2008-02-04 10:35 /var/log/alfresco/
INFO: Installing web application at context path /alfresco from URL file:/var/lib/tomcat5/webapps/alfresco Feb 5, 2008 12:22:48 PM org.apache.catalina.startup.HostConfig deployWARs SEVERE: Exception while expanding web application archive alfresco.war java.lang.ExceptionInInitializerError [ … ] Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/log/alfresco/alfresco.log write)
alex@gcrc-dev:~$ sudo chmod -R 777 /var/log/alfresco/ alex@gcrc-dev:~$ ls -ld /var/log/alfresco/ drwxrwxrwx 2 alfresco alfresco 4096 2008-02-05 10:35 /var/log/alfresco/
sudo touch /var/log/alfresco/alfresco.log sudo chmod 777 /var/log/alfresco/alfresco.log
log4j.appender.File.File=/home/alfresco/alfresco.log
@apeshansky I did exactly the same thing has you.. I should have updated the thread .I'm still trig to make the war work tho.. I would like to get the war working instead of the tomcat+alfresco pack..Can anyone give us a hand please.
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission /var/log/tomcat5/alfresco.log write) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
permission java.io.FilePermission "/var/log/alfresco/*", "read,write,delete";
FATAL [webapp.webxml.WebXmlParser] Unable to parse web.xml java.security.AccessControlException: access denied (java.net.SocketPermission java.sun.com:80 connect,resolve) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
permission java.net.SocketPermission "java.sun.com:80", "connect,resolve";
ERROR [web.context.ContextLoader] Context initialization failed java.security.AccessControlException: access denied (java.util.PropertyPermission alfresco.jmx.dir write)
permission java.util.PropertyPermission "alfresco.jmx.dir", "read,write";
ERROR [web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneFullTextSearchIndexer' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'indexerAndSearcherFactory' while setting bean property 'indexerAndSearcherFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path …
INFO: Installing web application at context path /alfresco from URL file:/var/lib/tomcat5/webapps/alfresco 10:34:09,295 ERROR [web.context.ContextLoader] Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'luceneFullTextSearchIndexer' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'indexerAndSearcherFactory' while setting bean property 'indexerAndSearcherFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'indexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'admLuceneIndexerAndSearcherFactory' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'admLuceneIndexerAndSearcherFactory' defined in class path resource [alfresco/core-services-context.xml]: Cannot resolve reference to bean 'mlAwareNodeService' while setting bean property 'nodeService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'mlAwareNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeService' while setting bean property 'defaultBinding'; nested exception is org.springframework.beans.factory. BeanCreationException: Error creating bean with name 'dbNodeService' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'dbNodeServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbNodeServiceImpl' defined in class path resource [alfresco/node-services-context.xml]: Cannot resolve reference to bean 'nodeDaoService' while setting bean property 'nodeDaoService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDaoService' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'nodeDaoServiceImpl' while setting bean property 'target'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'nodeDaoServiceImpl' defined in class path resource [alfresco/hibernate-context.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [alfresco/hibernate-context.xml]: Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers) [ … ]
Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
permission java.lang.RuntimePermission "accessDeclaredMembers";
Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: EHCache configuration failed
Caused by: net.sf.ehcache.CacheException: Error configuring from file:/var/lib/tomcat5/webapps/alfresco/WEB-INF/classes/alfresco/ehcache-default.xml. Initial cause was Error configuring from input stream. Initial cause was null:5: Could not set attribute "path".. Message was: java.security.AccessControlException: access denied (java.util.PropertyPermission user.home read)
permission java.util.PropertyPermission "user.home", "read";
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
permission java.util.PropertyPermission "user.*", "read";
java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read)
permission java.util.PropertyPermission "java.io.tmpdir", "read";
permission java.util.PropertyPermission "net.sf.ehcache.*", "read";
ERROR [ehcache.store.DiskStore] org.alfresco.cache.ticketsCacheCache: Could not create disk store. Initial cause was access denied (java.io.FilePermission /var/lib/tomcat5/temp read)
permission java.io.FilePermission "/var/lib/tomcat5/temp/*", "read";
permission java.io.FilePermission "/var/lib/tomcat5/temp", "read";
I'm on trip so i only have my laptop, can help you out real time.Try permission java.io.FilePermission "/var/lib/tomcat5/temp", "read";as it can be access to the directory itself ( i think its possible to have access to the files within the directory but can't get to them cause of the permitions of the directory itself - I may be mistaken )
permission java.io.FilePermission "/var/log/alfresco/*", "read,write,delete"; permission java.io.FilePermission "/var/lib/alfresco/*", "read,write,execute"; permission java.io.FilePermission "/var/lib/alfresco/alf_data/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/alfresco/tmp/-", "read,write,delete,execute";
java.lang.NoClassDefFoundError: Could not initialize class org.alfresco.repo.security.authentication.MD4PasswordEncoderImpl
Now I am at java.lang.NoClassDefFoundError: Could not initialize class org.alfresco.repo.security.authentication.MD4PasswordEncoderImpl which is rather strange, as this class seem to be defined in webapps/alfresco/WEB-INF/lib/alfresco-repository.jar, but there is no alfresco-repository.jar in /opt/alfresco/ tree created by untarring alfresco-community-tomcat!
I looked up match rules at http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html, and after several iteration ended up with permission java.io.FilePermission "/var/log/alfresco/*", "read,write,delete"; permission java.io.FilePermission "/var/lib/alfresco/*", "read,write,execute"; permission java.io.FilePermission "/var/lib/alfresco/alf_data/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/alfresco/tmp/-", "read,write,delete,execute";as {trailing -} syntax apparently expands to both named directory, all files in it, all its subdirectories and all files in them.
permission java.io.FilePermission "/var/log/alfresco/*", "read,write,delete"; permission java.io.FilePermission "/var/lib/alfresco/*", "read,write,execute"; permission java.io.FilePermission "/var/lib/alfresco/alf_data/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/alfresco/tmp/-", "read,write,delete,execute";
permission java.io.FilePermission "/var/log/alfresco/*", "read,write,delete"; permission java.io.FilePermission "/var/lib/alfresco/*", "read,write,execute"; permission java.io.FilePermission "/var/lib/alfresco/alf_data/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/alfresco/tmp/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/alfresco/alf_data", "read,write,execute"; permission java.io.FilePermission "/var/lib/alfresco/tmp", "read,write,execute"; permission java.io.FilePermission "/var/lib/tomcat5/temp/-", "read,write,delete,execute"; permission java.io.FilePermission "/var/lib/tomcat5/temp", "read,write,execute"; permission java.io.FilePermission "<<ALL FILES>>", "execute";
TOMCAT_SECURITY=no
-exec rm -rf