Disable open office in Alfresco - alfresco

When trying to start alfresco 4 community edition I am getting the following error.
11:23:02,512 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
11:23:02,604 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'OOoJodconverter' subsystem, ID: [OOoJodconverter, default]
11:23:02,645 ERROR [org.alfresco.enterprise.repo.content.JodConverterSharedInstance] [localhost-startStop-1] Unexpected error in configuring or starting the JodConverter library.The following error is shown for informational purposes only.
java.lang.IllegalArgumentException: officeHome must exist and be a directory
at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.checkArgument(DefaultOfficeManagerConfiguration.java:238)
at org.artofsolving.jodconverter.office.DefaultOfficeManagerConfiguration.setOfficeHome(DefaultOfficeManagerConfiguration.java:59)
We are not using open office, so we didn't select open office during the installation. How do we configure alfresco to ignore this check to have a clean startup log?

The following should work:
jodconverter.enabled=false
jodconverter.officeHome=null
jodconverter.portNumbers=8100
The configuration file: tomcat\shared\classes\alfresco-global.properties

Related

Alfresco Community keeps loading

I try to start Alfresco Community via manual start (alfresco manager tool - Postgres and Tomcat Server), but unfortunately it keeps loading. For your better convenience, i attach you a few lines from the alfresco log file. Any idea what should i do?
9:29:57,101 WARN [org.alfresco.util.RuntimeSystemPropertiesSetter]
[localhost-startStop-1] Could not find alfresco-jmxrmi.password on
classpath
19:30:02,179 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Using database URL
'jdbc:postgresql://localhost:5432/alfresco' with user 'alfresco'.
19:30:08,695 INFO [org.alfresco.repo.admin] [localhost-startStop-1] Connected to database PostgreSQL version 9.2.4
19:31:11,789 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory]
[localhost-startStop-1] Starting 'sysAdmin' subsystem, ID: [sysAdmin,
default]
19:31:12,070 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory]
[localhost-startStop-1] Startup of 'sysAdmin' subsystem, ID:
[sysAdmin, default] complete
19:31:12,273 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Ignoring script patch (post-Hibernate):
patch.db-V4.2-metadata-query-indexes
19:32:35,398 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry]
[localhost-startStop-1] Registered template processor Repository
Template Processor for extension ftl
19:32:35,429 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry]
[localhost-startStop-1] Registered script processor Repository Script
Processor for extension js
19:35:09,343 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Connecting to database:
jdbc:postgresql://localhost:5432/alfresco, UserName=alfresco,
PostgreSQL Native Driver
19:35:09,344 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Schema managed by database dialect
org.hibernate.dialect.PostgreSQLDialect.
19:35:13,533 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Schema validation found 81 potential problems,
results written to:
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-alf_-3183430725471519111.txt
19:35:13,647 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Schema validation found 14 potential problems,
results written to:
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-avm_-7512141432063460367.txt
19:35:13,896 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Schema validation found 28 potential problems,
results written to:
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-jbpm_-5737410679165367310.txt
19:35:14,741 WARN [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Schema validation found 23 potential problems,
results written to:
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-PostgreSQLDialect-Validation-Pre-Upgrade-act_-3173466186980288340.txt
19:35:15,559 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-pre-upgrade-alf_-7486225889050239999.xml.
19:35:15,560 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-pre-upgrade-avm_-7635637824804863260.xml.
19:35:15,560 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-pre-upgrade-jbpm_-5616677644800954648.xml.
19:35:15,561 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-pre-upgrade-act_-5265759256121984983.xml.
19:35:16,164 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-9187881054905799629.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-RepoTables.sql).
19:35:25,067 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-7048610944173087476.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-LockTables.sql).
19:35:25,666 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-9111962919851849560.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ContentTables.sql).
19:35:27,374 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-4605317553201473968.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-PropertyValueTables.sql).
19:35:30,238 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-1923540951665152923.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-AuditTables.sql).
19:35:31,881 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-5967217534682945645.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-ActivityTables.sql).
19:35:33,881 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-6760638796710759808.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-UsageTables.sql).
19:35:34,192 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-7367942087784284032.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-SubscriptionTables.sql).
19:35:34,437 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-3052131204560692858.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-TenantTables.sql).
19:35:34,674 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-6384255534801765324.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoCreate-AvmTables.sql).
19:35:41,319 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-7770841650354199017.sql
(Generated).
19:35:49,655 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-7062476802180431283.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoPostCreate-JBPM-Extra.sql).
19:35:49,685 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-2193606989039742058.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoPostCreate-JBPM-FK-indexes.sql).
19:35:57,881 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Executing database script
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-Update-7168291649866998015.sql
(Copied from
classpath:alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/AlfrescoPostCreate-JBPM-varinst-indexes.sql).
19:35:57,974 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Create scripts executed in 46762 ms
19:36:10,076 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] All executed statements:
F:\Alfresco\tomcat\temp\Alfresco\AlfrescoSchema-PostgreSQLDialect-All_Statements-3634531932850451511.sql.
19:36:23,147 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Compared database schema with reference schema
(all OK): class path resource
[alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/Schema-Reference-ALF.xml]
19:36:25,099 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Compared database schema with reference schema
(all OK): class path resource
[alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/Schema-Reference-AVM.xml]
19:36:35,043 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Compared database schema with reference schema
(all OK): class path resource
[alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/Schema-Reference-JBPM.xml]
19:36:38,921 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Compared database schema with reference schema
(all OK): class path resource
[alfresco/dbscripts/create/org.hibernate.dialect.PostgreSQLDialect/Schema-Reference-ACT.xml]
19:36:58,090 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-post-upgrade-alf_-3832843618215573491.xml.
19:36:58,091 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-post-upgrade-avm_-132108221799615792.xml.
19:36:58,091 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-post-upgrade-jbpm_-3163255027450013646.xml.
19:36:58,092 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap]
[localhost-startStop-1] Normalized schema dumped to file
F:\Alfresco\tomcat\temp\Alfresco\Alfresco-schema-PostgreSQLDialect-post-upgrade-act_-6093218398546186087.xml.
19:37:00,663 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory]
[localhost-startStop-1] Starting 'Search' subsystem, ID: [Search,
managed, solr]
Regards
#asimkon, please don't cross post the same issue on different forums without notice. The log you uploaded in the Alfresco Forums Alfresco keeps loading tells you quite clear the issue:
Caused by: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
You database is not running/accessable ...

org.alfresco.error.AlfrescoRuntimeException: 09050000 GetModelsDiff return status is 404 while running the Alfresco

I have imported a maven project from git hub and followed the instructions given in its README file to run Alfresco. While testing the application I have entered http://localhost:8080/share/ for which I am successfully getting the login page for Alfresco. But when I am giving the default username and password I am not able to login to the application. Getting an error "Your authentication details have not been recognized or Alfresco may not be available at this time." When I checked the console and the Alfresco log file, I found org.springframework.beans.factory.BeanCreationException followed by org.alfresco.error.AlfrescoRuntimeException: 09050000 GetModelsDiff return status is 404.
Installed the following:
Apache Tomcat 7.0 version
PostgreSQL 9.4
Also installed few dependencies needed for the project(Elastic Search6.4 and ActiveMQ5.0).
Working on Java8.
Github repository link of the imported project: GitHub - Open-MBEE/mms: Model Management System
Below is the exceptions observed in the console
INFO: Initializing Spring root WebApplicationContext
2018-10-05 13:25:28,063 INFO [alfresco.repo.admin] [localhost-startStop-1] Using database URL 'jdbc:h2:C:\Users\alien147\git\mms_modified\mms-ent/alf_data_dev/h2_data/alf_dev;AUTO_SERVER=TRUE;DB_CLOSE_ON_EXIT=FALSE;LOCK_TIMEOUT=10000;MVCC=FALSE;LOCK_MODE=0' with user 'alfresco'.
2018-10-05 13:25:28,065 INFO [alfresco.repo.admin] [localhost-startStop-1] Connected to database H2 version 1.4.190 (2015-10-11)
2018-10-05 13:25:32,648 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V4.2-metadata-query-indexes
2018-10-05 13:25:32,648 INFO [domain.schema.SchemaBootstrap] [localhost-startStop-1] Ignoring script patch (post-Hibernate): patch.db-V5.1-metadata-query-indexes
2018-10-05 13:25:38,538 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
2018-10-05 13:25:38,715 INFO [management.subsystems.ChildApplicationContextFactory] [localhost-startStop-1] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
2018-10-05 13:25:40,942 WARN [context.support.XmlWebApplicationContext] [localhost-startStop-1] Exception encountered during context initialization - cancelling refresh attempt
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'emsConfig' defined in class path resource [alfresco/module/mms-amp/context/mms-init-service-context.xml]: Invocation of init method failed; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1514)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:521)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:458)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:223)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:191)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:618)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:934)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:479)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:410)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:306)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:112)
at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:70)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
at java.util.Properties$LineReader.readLine(Properties.java:434)
at java.util.Properties.load0(Properties.java:353)
at java.util.Properties.load(Properties.java:341)
at gov.nasa.jpl.view_repo.util.EmsConfig.setProperties(EmsConfig.java:17)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:269)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.doInvoke(MethodInvokingFactoryBean.java:162)
at org.springframework.beans.factory.config.MethodInvokingFactoryBean.afterPropertiesSet(MethodInvokingFactoryBean.java:152)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1573)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1511)
... 22 more
org.alfresco.error.AlfrescoRuntimeException: 09050000 GetModelsDiff return status is 404
at org.alfresco.solr.client.SOLRAPIClient.getModelsDiff(SOLRAPIClient.java:1157)
at org.alfresco.solr.tracker.ModelTracker.trackModelsImpl(ModelTracker.java:249)
at org.alfresco.solr.tracker.ModelTracker.trackModels(ModelTracker.java:207)
at org.alfresco.solr.tracker.ModelTracker.ensureFirstModelSync(ModelTracker.java:229)
at org.alfresco.solr.tracker.CoreWatcherJob.registerForCore(CoreWatcherJob.java:131)
at org.alfresco.solr.tracker.CoreWatcherJob.execute(CoreWatcherJob.java:74)
at org.quartz.core.JobRunShell.run(JobRunShell.java:216)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:563)
Can anyone please help me out in solving the problem?
Thanks in advance.
The alfresco WAR and share WAR are completely separate. It is quite common for the share WAR to start up and show the login page while the back-end it talks to (the alfresco WAR) has failed to start.
That's what is happening in this case. It appears that the emsConfig bean, defined in https://github.com/Open-MBEE/mms/blob/develop/mms-ent/repo-amp/src/main/amp/config/alfresco/module/mms-amp/context/mms-init-service-context.xml, is getting a null pointer, probably because it cannot find that properties file.
On the installation instructions for this project it is written :
"Create and edit the mms.properties file in the $TOMCAT_HOME/shared/classes directory (You can copy mms-ent/mms.properties.example)".
Have you performed this step ?

Ensure that the 'dir.root' property '/var/lib/alfresco/alf_data_dev' is pointing to the correct data

We are doing the alfresco 5.1 installation in multiple servers in clone env.Except in one server ,we are seeing below error other 3 servers.To resolve this error we have done below steps but no luck.please note that below path was there in all servers.
1)Stop all shared servers
2)Drop database schema and create new schema.
3)Delete contents(contentstore & contentstore.deleted) inside /var/lib/alfresco/alf_data_dev
4)Start all shared servers.
07-28 07:01:30,864 ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] CONTENT INTEGRITY ERROR: System content not found in content store.
2016-07-28 07:01:30,864 ERROR [repo.admin.ConfigurationChecker] [localhost-startStop-1] Ensure that the 'dir.root' property '/var/lib/alfresco/alf_data_dev_new' is pointing to the correct data location.
2016-07-28 07:01:30,867 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: 06280002 Ensure that the 'dir.root' property '/var/lib/alfresco/alf_data_dev' is pointing to the correct data location.
at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:263)
at org.alfresco.repo.admin.ConfigurationChecker.access$0(ConfigurationChecker.java:198)
at org.alfresco.repo.admin.ConfigurationChecker$1$1.doWork(ConfigurationChecker.java:186)
at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:555)
at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:182)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)
at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:352)

Importing a third party binary to Artifactory from a Windows PC

I would like to keep customized versions of third party binaries (.exe, .bin etc.) in artifactory, which eventually will be used together with Bamboo and Ansible to automate and repeat setup of those softwares.
But I cannot find a way to Upload the binary from my windows PC to the artifactory -- these bin files are not classic jar files per se with associated metadata, so I was hoping to find a way to create a custom repo(which I did create) and a way to upload the binary(which I am not able to).
Under "Import Repository from Path", I cannot browse my local file system from artifactory as it is showing a remote file system which I find a bit weird. So I manually pasted the path, which resulted in an error. What am I doing wrong here?
2015-05-06 11:07:07,335 [art-exec-1] [INFO ] (o.a.r.d.i.DbRepoImportHandler:125) - third-party-bin import started /C:/Users/zencv/Downloads/alfresco-community-5.0.d-installer-linux-x64.bin
2015-05-06 11:07:07,336 [art-exec-1] [ERROR] (o.a.r.d.i.DbRepoImportHandler:127) - Error Import: Cannot import null, non existent folder or non directory file '/C:/Users/zencv/Downloads/alfresco-community-5.0.d-installer-linux-x64.bin'.
2015-05-06 11:07:07,337 [art-exec-795758] [ERROR] (o.a.r.s.ImportJob :153) - Import had failed due to java.lang.NullPointerException: null
2015-05-06 11:07:07,337 [art-exec-795758] [ERROR] (o.a.r.s.ImportJob :157) - Error occurred during import: null: NullPointerException
2015-05-06 11:07:07,338 [art-exec-795758] [INFO ] (o.a.r.s.ImportJob :134) - Import of 1 repositories completed
2015-05-06 11:07:34,706 [art-exec-1] [INFO ] (o.a.r.d.i.DbRepoImportHandler:125) - third-party-bin import started /C:/Users/zencv/Downloads/alfresco-community-5.0.d-installer-linux-x64.bin
2015-05-06 11:07:34,706 [art-exec-1] [ERROR] (o.a.r.d.i.DbRepoImportHandler:127) - Error Import: Cannot import null, non existent folder or non directory file '/C:/Users/zencv/Downloads/alfresco-community-5.0.d-installer-linux-x64.bin'.
2015-05-06 11:07:34,707 [art-exec-795765] [ERROR] (o.a.r.s.ImportJob :153) - Import had failed due to java.lang.NullPointerException: null
2015-05-06 11:07:34,707 [art-exec-795765] [ERROR] (o.a.r.s.ImportJob :157) - Error occurred during import: null: NullPointerException
2015-05-06 11:07:34,708 [art-exec-795765] [INFO ] (o.a.r.s.ImportJob :134) - Import of 1 repositories completed
You have an option to deploy files from the Artifactory UI.
To do so, simply click the "Deploy" tab, upload the desired file and deploy it to the target repository
For mote information see the deploying artifacts section in the Artifactory documentation.

CDI (Weld) / Seam 3 Persistence module / Glassfish 3 - Unexplainable exception when starting server

I am using Weld, Jboss' implementation of CDI. JPA/Hibernate for persistence. For something different I am giving it a crack on Glassfish 3 which I have not used before. I am using Maven for dependency management.
As CDI doesn't have transaction management included out of the box, I decided to use the Seam 3 Persistence module instead of rolling my own. Now, I am well aware that this is only in Alpha at the moment so maybe I am asking for trouble. I'm hoping someone else has seen this and can either help me fix it or at least let me know why I'm getting the problems that I am.
So, before adding the persistence module, everything builds and runs fine. I can open the homepage of the app fine. However, when I add the Seam 3 persistence module to my pom.xml, the application throws an exception when starting up. The only difference between working and not working is the one dependency I am adding to the pom.xml
The dependency I am adding to my pom.xml is:
<dependency>
<groupId>org.jboss.seam.persistence</groupId>
<artifactId>seam-persistence-impl</artifactId>
<version>3.0.0.Alpha1</version>
</dependency>
I added this dependency based on the instructions at http://seamframework.org/Seam3/PersistenceModule . I'm aware that when clicking on the documentation from this page it mentions a couple of other dependencies but I get the same problem when adding them as well. This is the dependency that I have narrowed the problem down to.
So, after adding the dependency above and starting the server I get the following on startup:
INFO: Launching GlassFish on Felix platform
Welcome to Felix
================
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Grizzly Framework 1.9.18-o started in: 113ms listening on port 8080
INFO: Grizzly Framework 1.9.18-o started in: 33ms listening on port 4848
INFO: Grizzly Framework 1.9.18-o started in: 76ms listening on port 8181
INFO: Starting Grizzly Framework 1.9.18-o - Thu Oct 28 23:06:04 BST 2010
INFO: Grizzly Framework 1.9.18-o started in: 10ms listening on port 3700
INFO: Starting Grizzly Framework 1.9.18-o - Thu Oct 28 23:06:04 BST 2010
INFO: Grizzly Framework 1.9.18-o started in: 7ms listening on port 7676
INFO: The Admin Console is already installed, but not yet loaded.
INFO: GlassFish Server Open Source Edition 3.0.1 (22) startup time : Felix(4429ms) startup services(1530ms) total(5959ms)
INFO: Hibernate Validator bean-validator-3.0-JBoss-4.0.2
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Grizzly Framework 1.9.18-o started in: 16ms listening on port 8080
INFO: Binding RMI port to *:8686
INFO: JMXStartupService: Started JMXConnector, JMXService URL = service:jmx:rmi://192.168.1.73:8686/jndi/rmi://192.168.1.73:8686/jmxrmi
INFO: Using com.sun.enterprise.transaction.jts.JavaEETransactionManagerJTSDelegate as the delegate
INFO: [Thread[GlassFish Kernel Main Thread,5,main]] started
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /Applications/NetBeans/glassfish-3.0.1/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /var/folders/Q0/Q00qqJF1Gi8VesnYN54iM++++TI/-Tmp-/fileinstall-2957414086269585283, felix.fileinstall.filter = null}
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /var/folders/Q0/Q00qqJF1Gi8VesnYN54iM++++TI/-Tmp-/fileinstall--8933010182761076907, felix.fileinstall.filter = null}
INFO: Started bundle: file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.scr.jar
INFO: Started bundle: file:/Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/osgi-web-container.jar
INFO: SEC1002: Security Manager is OFF.
INFO: Security startup service called
INFO: SEC1143: Loading policy provider com.sun.enterprise.security.provider.PolicyWrapper.
INFO: Realm admin-realm of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm file of classtype com.sun.enterprise.security.auth.realm.file.FileRealm successfully created.
INFO: Realm certificate of classtype com.sun.enterprise.security.auth.realm.certificate.CertificateRealm successfully created.
INFO: Security service(s) started successfully....
INFO: Created HTTP listener http-listener-1 on port 8080
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Created HTTP listener admin-listener on port 4848
INFO: Created virtual server server
INFO: Created virtual server __asadmin
INFO: Virtual server server loaded system default web module
INFO: Updating configuration from org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: Installed /Applications/NetBeans/glassfish-3.0.1/glassfish/modules/autostart/org.apache.felix.fileinstall-autodeploy-bundles.cfg
INFO: {felix.fileinstall.poll (ms) = 5000, felix.fileinstall.dir = /Applications/NetBeans/glassfish-3.0.1/glassfish/domains/domain1/autodeploy/bundles, felix.fileinstall.debug = 1, felix.fileinstall.bundles.new.start = true, felix.fileinstall.tmpdir = /var/folders/Q0/Q00qqJF1Gi8VesnYN54iM++++TI/-Tmp-/fileinstall-9012588867170808207, felix.fileinstall.filter = null}
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
INFO: Portable JNDI names for EJB EjbSynchronizations : [java:global/com.coffeesnobs_web_war_1.0-SNAPSHOT/EjbSynchronizations, java:global/com.coffeesnobs_web_war_1.0-SNAPSHOT/EjbSynchronizations!org.jboss.seam.persistence.transaction.LocalEjbSynchronizations]
INFO: WELD-000900 1.0.1 (SP3)
INFO: Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.
SEVERE: Exception while loading the app
org.glassfish.deployment.common.DeploymentException: Exception #0 :null
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:167)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception #0 :null
at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:45)
at org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.fire(ProcessAnnotatedTypeImpl.java:44)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:61)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:88)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:134)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:377)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:165)
... 30 more
INFO: Perform lazy SSL initialization for the listener 'http-listener-2'
INFO: Created HTTP listener http-listener-2 on port 8181
INFO: Grizzly Framework 1.9.18-o started in: 14ms listening on port 8181
As you can see, there really isn't much to go on.
Have you seen this exception before? Do you have any idea what is causing it? And finally, do you know how to fix it?
I've been seeing this too. I increased the loggin on Glassfish and found the following.
FINER: loadClass(org.jboss.logging.MessageLogger)
FINER: Delegating to classloader1 org.glassfish.internal.api.DelegatingClassLoader#6f9240a4
FINER: Searching local repositories
FINER: findClass(org.jboss.logging.MessageLogger)
FINER: findClassInternal(org.jboss.logging.MessageLogger)
FINER: --> Passing on ClassNotFoundException
SEVERE: Exception while loading the app
org.glassfish.deployment.common.DeploymentException: Exception #0 :null
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:167)
at org.glassfish.kernel.event.EventsImpl.send(EventsImpl.java:125)
at org.glassfish.internal.data.ApplicationInfo.load(ApplicationInfo.java:224)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:338)
at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:183)
at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:272)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:305)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1176)
at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1235)
at com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.java:1224)
at com.sun.enterprise.v3.admin.AdminAdapter.doCommand(AdminAdapter.java:365)
at com.sun.enterprise.v3.admin.AdminAdapter.service(AdminAdapter.java:204)
at com.sun.grizzly.tcp.http11.GrizzlyAdapter.service(GrizzlyAdapter.java:166)
at com.sun.enterprise.v3.server.HK2Dispatcher.dispath(HK2Dispatcher.java:100)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:245)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:791)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:693)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:954)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFilter.java:170)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultProtocolChain.java:135)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:102)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.java:88)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java:76)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextTask.java:53)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.java:57)
at com.sun.grizzly.ContextTask.run(ContextTask.java:69)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:330)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool.java:309)
at java.lang.Thread.run(Thread.java:637)
Caused by: org.jboss.weld.exceptions.DefinitionException: Exception #0 :null
at org.jboss.weld.bootstrap.events.AbstractDefinitionContainerEvent.fire(AbstractDefinitionContainerEvent.java:45)
at org.jboss.weld.bootstrap.events.ProcessAnnotatedTypeImpl.fire(ProcessAnnotatedTypeImpl.java:44)
at org.jboss.weld.bootstrap.BeanDeployer.addClass(BeanDeployer.java:61)
at org.jboss.weld.bootstrap.BeanDeployer.addClasses(BeanDeployer.java:88)
at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:134)
at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:377)
at org.glassfish.weld.WeldDeployer.event(WeldDeployer.java:165)
... 30 more
It looks like there is a JBoss logging dependency problem. MessgeLogger is a new class in the jboss logging framework that the new Seam extensions appear to be using.
I added the following to my pom
<dependency>
<groupId>org.jboss.slf4j</groupId>
<artifactId>slf4j-jboss-logging</artifactId>
<version>1.0.2.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging-log4j</artifactId>
<version>2.1.0.GA</version>
</dependency>
<dependency>
<groupId>org.jboss.logging</groupId>
<artifactId>jboss-logging</artifactId>
<version>3.0.0.Beta4</version>
</dependency>
This seems to have fixed the missing class but now I get a NPE.
Caused by: java.lang.NullPointerException
at org.apache.log4j.LogManager.getLogger(LogManager.java:188)
at org.apache.log4j.Logger.getLogger(Logger.java:104)
at org.jboss.logging.Log4jLogger.<init>(Log4jLogger.java:35)
at org.jboss.logging.Log4jLoggerProvider.getLogger(Log4jLoggerProvider.java:33)
at org.jboss.logging.Logger.getLogger(Logger.java:2164)
at org.jboss.slf4j.JBossLoggerFactory.getLogger(JBossLoggerFactory.java:66)
at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:246)
at org.hibernate.search.util.LoggerFactory.make(LoggerFactory.java:38)
at org.hibernate.search.store.FSDirectoryProvider.<clinit>(FSDirectoryProvider.java:55)
I think it's a log4j config problem on Glassfish.
It turns out it was a bug with the versions and combination of technologies we were using. We are now using the final version of Jboss 6 and the beta version of the Seam Persistence Module and all seems to be working ok.

Resources