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)
(..)
02-07-2008 08:08 PM
02-07-2008 09:03 PM
Now I am atwhich 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!java.lang.NoClassDefFoundError: Could not initialize class org.alfresco.repo.security.authentication.MD4PasswordEncoderImpl
02-07-2008 09:37 PM
I looked up match rules at http://java.sun.com/javase/6/docs/technotes/guides/security/PolicyFiles.html, and after several iteration ended up withI was too hasty ops: Apparently dir/- does not expand to cover access to dir itself. Plus I missed a complaint about inability to execute imageMagic. So the final set of java.io.FilePermissions isas {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";
But I am still running into enormous list of: "Instantiation of bean failed; nested exception java.lang.NoClassDefFoundError: Could not initialize class …"
04-25-2008 11:13 AM
TOMCAT_SECURITY=no
-exec rm -rf
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.