01-06-2008 11:44 AM
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 start
INFO: Starting Coyote HTTP/1.1 on http-8180
30/Dez/2007 3:32:59 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
30/Dez/2007 3:32:59 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/18 config=null
30/Dez/2007 3:32:59 org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
30/Dez/2007 3:32:59 org.apache.catalina.startup.Catalina start
INFO: Server startup in 1628 ms
Dec 30, 2007 2:44:23 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: 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/lib
Dec 30, 2007 2:44:23 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8180
Dec 30, 2007 2:44:23 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1392 ms
Dec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Dec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5
Dec 30, 2007 2:44:23 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Dec 30, 2007 2:44:29 PM org.apache.catalina.startup.HostConfig deployDirectory
SEVERE: Error deploying web application directory alfresco
org.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 more
Caused by: java.security.AccessControlException: access denied (java.io.FilePermission alfresco.log write)
(..)
01-07-2008 10:23 AM
01-31-2008 04:27 AM
02-05-2008 02:37 PM
Hi,I am having the same problems as alixbarbosa, to whom Steve replied in quoted message, although I am installing Alfresco on Ubuntu 6.06 LAMP server. I did essentially the same things as alixbarbosa did, and I did follow quoted directions (fixing minor errors in Installing_Alfresco_on_Ubuntu_7.10 wiki page in the process):
Have you followed the instructions here?:
http://wiki.alfresco.com/wiki/Installing_Alfresco_on_Ubuntu_7.10
Specifically, 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/alfresco
The 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/
My error message is (the source of error, I believe)
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)
I tried the following: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/
- no effect.sudo touch /var/log/alfresco/alfresco.log
sudo chmod 777 /var/log/alfresco/alfresco.log
- no effect.log4j.appender.File.File=/home/alfresco/alfresco.log
- no effect.02-06-2008 05:40 AM
02-06-2008 10:07 PM
@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";
into /etc/tomcat5/policy.d/04webapps.policy right before closing }. 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)
which apparently means that I should find why alfresco cannot talk to java.sun.com:80 and let it.permission java.net.SocketPermission "java.sun.com:80", "connect,resolve";
after the previous one in the same /etc/tomcat5/policy.d/04webapps.policy.ERROR [web.context.ContextLoader] Context initialization failed
java.security.AccessControlException: access denied (java.util.PropertyPermission alfresco.jmx.dir write)
OK, this is almost too easy : add line permission java.util.PropertyPermission "alfresco.jmx.dir", "read,write";
into the familiar place.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 …
Oh, well, this can wait until tomorrow :wink:
02-07-2008 12:34 PM
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)
[ … ]
I first thought that I did not copy all folders packed into alfresco-community-war-2.1.0.tar.gz (./extensions, ./extras etc.) to the proper place. From analyzing what alfresco-community-tomcat-2.1.0.tar.gz unpacks into it looked like "proper place" should be /var/liv/tomcat5/shared/classes/alfresco.Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
:idea: Time to add more permissions to /etc/tomcat5/policy.d/04webapps.policy:permission java.lang.RuntimePermission "accessDeclaredMembers";
Restart … failed again. But now that line says Invocation of init method failed; nested exception is java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks)
:idea: Adding permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
Restart … A-ha! Now the error is Invocation of init method failed; nested exception is org.alfresco.error.AlfrescoRuntimeException: EHCache configuration failed
Further in the message the real culprit seems to be 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)
:idea: Let's give alfresco Java permissions to user.home: permission java.util.PropertyPermission "user.home", "read";
Restarting … Nope. The security exception now seems to be java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
Giving rights to user.* (replace the line above with permission java.util.PropertyPermission "user.*", "read";
) Restarting … Nope. The security exception now seems to be java.security.AccessControlException: access denied (java.util.PropertyPermission java.io.tmpdir read)
OK, adding this permission: permission java.util.PropertyPermission "java.io.tmpdir", "read";
Now it wants to read net.sf.ehcache.disabled; adding permissions to the ehcache.* permission java.util.PropertyPermission "net.sf.ehcache.*", "read";
Now it wants to read /var/lib/tomcat5/temp ?!! 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)
I guess it is looking for tomcat5.pid there. OK, let's allow it: permission java.io.FilePermission "/var/lib/tomcat5/temp/*", "read";
Restart … and the same error. Now I'm stuck.
02-07-2008 03:56 PM
permission java.io.FilePermission "/var/lib/tomcat5/temp", "read";
02-07-2008 04:09 PM
I'm on trip so i only have my laptop, can help you out real time.
Trypermission 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";
as {trailing -} syntax apparently expands to both named directory, all files in it, all its subdirectories and all files in them.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!
02-07-2008 05:02 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.