cancel
Showing results for 
Search instead for 
Did you mean: 

Structure amp alfresco 4

magarcia_sm
Star Contributor
Star Contributor
Hi there

I'm migrating a project from alfresco3 to alfresco4
I make the amp, and I install it in the war, so no problem here.
The problem comes when I start Alfresco.

The problem is this
————————————————————————————


INFORMACIÓN: Stopping ProtocolHandler ["http-bio-8443"]
ationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180002 A module component 'moduloFacturas.bootstrap' failed to execute: 05180001 Bootstrap failed
   at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:57)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:357)
   at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:723)
   at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:642)
   at org.alfresco.repo.module.ModuleComponentHelper.access$500(ModuleComponentHelper.java:59)
   at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:257)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:342)
   at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:278)
   … 43 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180001 Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
   at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
   … 50 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 743; column 36 due to error: Can not find Veritas
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:423)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:272)
   at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:480)
   at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:71)
   at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:351)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:355)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
   … 52 more
Caused by: java.lang.UnsupportedOperationException: Can not find Veritas
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel$MutableState.getPermissionReference(PermissionModel.java:1000)
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel.getPermissionReference(PermissionModel.java:1847)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.getPermissionReference(PermissionServiceImpl.java:1022)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.setPermission(PermissionServiceImpl.java:1047)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy40.setPermission(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy49.setPermission(Unknown Source)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter$CreateNewNodeImporterStrategy.importNode(ImporterComponent.java:1445)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:617)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:921)
   at org.alfresco.repo.importer.view.ViewParser.processStartAssoc(ViewParser.java:836)
   at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:333)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
   … 61 more

jun 18, 2015 5:34:13 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.alfresco.web.app.ContextListener
org.alfresco.error.AlfrescoRuntimeException: 05180003 Failed to start modules
   at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:320)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:207)
   at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:142)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy104.startModules(Unknown Source)
   at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:342)
   at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180002 A module component 'moduloFacturas.bootstrap' failed to execute: 05180001 Bootstrap failed
   at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:57)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:357)
   at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:723)
   at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:642)
   at org.alfresco.repo.module.ModuleComponentHelper.access$500(ModuleComponentHelper.java:59)
   at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:257)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:342)
   at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:278)
   … 43 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180001 Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
   at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
   … 50 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 743; column 36 due to error: Can not find Veritas
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:423)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:272)
   at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:480)
   at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:71)
   at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:351)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:355)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
   … 52 more
Caused by: java.lang.UnsupportedOperationException: Can not find Veritas
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel$MutableState.getPermissionReference(PermissionModel.java:1000)
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel.getPermissionReference(PermissionModel.java:1847)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.getPermissionReference(PermissionServiceImpl.java:1022)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.setPermission(PermissionServiceImpl.java:1047)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy40.setPermission(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy49.setPermission(Unknown Source)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter$CreateNewNodeImporterStrategy.importNode(ImporterComponent.java:1445)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:617)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:921)
   at org.alfresco.repo.importer.view.ViewParser.processStartAssoc(ViewParser.java:836)
   at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:333)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
   … 61 more

jun 18, 2015 5:34:13 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Excepción enviando evento inicializado de contexto a instancia de escuchador de clase org.alfresco.repo.webdav.WebDAVSessionListener
org.alfresco.error.AlfrescoRuntimeException: 05180003 Failed to start modules
   at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:320)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.module.ModuleComponentHelper.startModules(ModuleComponentHelper.java:207)
   at org.alfresco.repo.module.ModuleServiceImpl.startModules(ModuleServiceImpl.java:142)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy104.startModules(Unknown Source)
   at org.alfresco.repo.module.ModuleStarter$1.execute(ModuleStarter.java:66)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:342)
   at org.alfresco.repo.module.ModuleStarter$2.doWork(ModuleStarter.java:76)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.module.ModuleStarter.onBootstrap(ModuleStarter.java:71)
   at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEventInternal(SafeApplicationEventMulticaster.java:209)
   at org.alfresco.repo.management.SafeApplicationEventMulticaster.multicastEvent(SafeApplicationEventMulticaster.java:180)
   at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)
   at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:911)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:428)
   at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
   at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
   at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
   at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63)
   at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4973)
   at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5467)
   at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
   at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
   at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
   at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
   at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
   at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
   at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
   at java.util.concurrent.FutureTask.run(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
   at java.lang.Thread.run(Unknown Source)
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180002 A module component 'moduloFacturas.bootstrap' failed to execute: 05180001 Bootstrap failed
   at org.alfresco.error.AlfrescoRuntimeException.create(AlfrescoRuntimeException.java:57)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:357)
   at org.alfresco.repo.module.ModuleComponentHelper.executeComponent(ModuleComponentHelper.java:723)
   at org.alfresco.repo.module.ModuleComponentHelper.startModule(ModuleComponentHelper.java:642)
   at org.alfresco.repo.module.ModuleComponentHelper.access$500(ModuleComponentHelper.java:59)
   at org.alfresco.repo.module.ModuleComponentHelper$1$1.execute(ModuleComponentHelper.java:257)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:342)
   at org.alfresco.repo.module.ModuleComponentHelper$1.doWork(ModuleComponentHelper.java:278)
   … 43 more
Caused by: org.alfresco.error.AlfrescoRuntimeException: 05180001 Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:362)
   at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
   at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
   … 50 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 743; column 36 due to error: Can not find Veritas
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
   at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:423)
   at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:272)
   at org.alfresco.repo.importer.ImporterBootstrap.doImport(ImporterBootstrap.java:480)
   at org.alfresco.repo.importer.ImporterBootstrap.access$000(ImporterBootstrap.java:71)
   at org.alfresco.repo.importer.ImporterBootstrap$1$1.execute(ImporterBootstrap.java:351)
   at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:452)
   at org.alfresco.repo.importer.ImporterBootstrap$1.doWork(ImporterBootstrap.java:355)
   at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
   … 52 more
Caused by: java.lang.UnsupportedOperationException: Can not find Veritas
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel$MutableState.getPermissionReference(PermissionModel.java:1000)
   at org.alfresco.repo.security.permissions.impl.model.PermissionModel.getPermissionReference(PermissionModel.java:1847)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.getPermissionReference(PermissionServiceImpl.java:1022)
   at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.setPermission(PermissionServiceImpl.java:1047)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy40.setPermission(Unknown Source)
   at sun.reflect.GeneratedMethodAccessor356.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
   at java.lang.reflect.Method.invoke(Unknown Source)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:309)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:80)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:46)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:161)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at com.sun.proxy.$Proxy49.setPermission(Unknown Source)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter$CreateNewNodeImporterStrategy.importNode(ImporterComponent.java:1445)
   at org.alfresco.repo.importer.ImporterComponent$NodeImporter.importNode(ImporterComponent.java:617)
   at org.alfresco.repo.importer.view.ViewParser.importNode(ViewParser.java:921)
   at org.alfresco.repo.importer.view.ViewParser.processStartAssoc(ViewParser.java:836)
   at org.alfresco.repo.importer.view.ViewParser.processStartElement(ViewParser.java:333)
   at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:176)
   … 61 more

jun 18, 2015 5:34:13 PM com.sun.xml.ws.transport.http.servlet.WSServletContextListener contextInitialized
INFORMACIÓN: WSSERVLET12: JAX-WS context listener initializing



————————————————————————————————–
This is the code that generated the amp.
————————————————————————————————–

<project name="Vertias Digitalizacion Facturas v1.2" default="package-amp" basedir=".">

   <property name="project.dir" value="."/>
   <!–<property name="build.dir" value="${project.dir}/build"/>–>
   <property name="build.dir" value="D:\Alfresco4\tomcat\webapps"/>
   <property name="web.dir" value="${project.dir}/web" />
   <property name="config.dir" value="${project.dir}/config"/>
   <property name="module.dir" value="/alfresco/module" />
   <property name="module.id" value="org.alfresco.facturas" />
   <property name="extension.dir" value="${config.dir}/alfresco/extension" />
   <property name="data.dir" value="${project.dir}/data" />
   <property name="package.file.jar" value="${build.dir}/ocr/veritas-1.2.jar"/>
   <property name="package.file.ocr9.jar" value="${build.dir}/ocr9/veritas-1.2.jar"/>
   <property name="package.file.zip" value="${build.dir}/veritas-1.2.zip"/>
   <property name="package.file.amp" value="${build.dir}/veritas-1.2.amp" />
   <!–
   <property name="alfresco.web.dir" value="D:\Programs\SMGD\Configuracion\tomcat\webapps\alfresco" />
   <property name="alfresco.war.path" value="D:\Programs\SMGD\Configuracion\tomcat\webapps" />
   –>
   <property name="alfresco.web.dir" value="D:\Alfresco4\tomcat\webapps\alfresco" />
   <property name="alfresco.war.path" value="D:\Alfresco4\tomcat\webapps" />
   
   <target name="clean" description="Removes all generated files">
      <delete dir="${build.dir}" />
      <delete dir="${bin.dir}" />      
   </target>
   
   <target name="clean-tomcat" description="Removes deployed extension directory, lib/factura*.jar, and factura/" >
      <delete dir="${alfresco.web.dir}/WEB-INF/classes/alfresco/extension" />
      <delete dir="${alfresco.web.dir}/WEB-INF/classes/alfresco/module" />
      <delete dir="${alfresco.web.dir}/jsp/extension" />
      <delete dir="${alfresco.web.dir}/factura" />
      <delete file="${alfresco.web.dir}/WEB-INF/lib/factura-action-1.2.jar" />
   </target>
   
   <target name="mkdirs">
      <mkdir dir="${build.dir}/lib" />
   </target>
   
   <path id="class.path">
      <dirset dir="${build.dir}" />
      <fileset dir="${project.dir}/lib" includes="**/*.jar"/>
   </path>
   
   <target name="compile">
      <mkdir dir="${build.dir}" />
      <javac classpathref="class.path" srcdir="${project.dir}/source" destdir="${build.dir}" />
      
      <!– copy in non-compiled files like props if needed –>
      <copy todir="${build.dir}">
         <fileset dir="${project.dir}/source" excludes="**/*.java"/>
      </copy>
   </target>
   
   <target name="package-jar">
      <delete file="${package.file.jar}" /> 
      <jar destfile="${package.file.jar}">
         <fileset dir="${build.dir}" includes="org/**" />
         <fileset dir="${build.dir}" includes="META-INF/**" />
         <fileset dir="${build.dir}" includes="config/**" />
         <fileset dir="${build.dir}" includes="alfresco/**" excludes="alfresco/extension/ocr9-FR-transformers-context.xml"/>
      </jar>
   </target>
   
   <target name="package-jar-ocr9">
         <delete file="${package.file.ocr9.jar}" />
         <jar destfile="${package.file.ocr9.jar}">
            <fileset dir="${build.dir}" includes="org/**" />
            <fileset dir="${build.dir}" includes="META-INF/**" />
            <fileset dir="${build.dir}" includes="config/**" />
            <fileset dir="${build.dir}" includes="alfresco/**" excludes="alfresco/extension/ocr-FR-transformers-context.xml"/>
         </jar>
      </target>
   
   <target name="package-extension" depends="package-jar">
      <delete file="${package.file.zip}" />
      <zip destfile="${package.file.zip}">
         <zipfileset file="${package.file.jar}" prefix="WEB-INF/lib" />
         <zipfileset dir="${web.dir}" />
      </zip>
   </target>
     
   <target name="integrate-extension" depends="package-extension">
     <available file="alfresco.war" type="file" property="alfresco.war.present" />
     <fail unless="alfresco.war.present"
            message="Could not find alfresco.war, please copy it to ${basedir}" />
     <zip destfile="alfresco.war" update="true">
        <zipfileset file="${package.file.jar}" prefix="WEB-INF/lib" />
        <zipfileset dir="${web.dir}" />
     </zip>
   </target>

   <target name="package-amp1" depends="mkdirs, package-jar" description="Package AMP the Module" >
      <zip destfile="${amp.file}" >
         <fileset dir="${project.dir}/build" includes="lib/*.jar" />
         <fileset dir="${project.dir}" includes="config/**/*.*" excludes="**/module.properties" />
         <fileset dir="${project.dir}/config/alfresco/module/sdkDemoAmp" includes="module.properties" />
      </zip>
   </target>
   
   <target name="package-amp" depends="mkdirs, package-jar" description="Packages the customizations as an Alfresco module in ${package.file.amp}">
      <delete file="${package.file.amp}" />
      <zip destfile="${package.file.amp}">
         <zipfileset dir="${web.dir}/jsp" prefix="web/jsp" />
         <zipfileset dir="${web.dir}/images" prefix="web/images" />
         <zipfileset dir="${web.dir}/applets" prefix="web/applets" />
         <zipfileset dir="${web.dir}/WEB-INF/lib" prefix="lib" />
         <zipfileset file="${web.dir}/WEB-INF/faces-config-custom.xml" prefix="web/config" />
         <zipfileset file="${web.dir}/WEB-INF/repo.tld" prefix="web/config" />
         <zipfileset file="${config.dir}${module.dir}/${module.id}/module.properties" />                  
         <zipfileset file="${config.dir}${module.dir}/${module.id}/file-mapping.properties" />
         <zipfileset file="${config.dir}${module.dir}/${module.id}/module-context.xml" prefix="config${module.dir}/${module.id}" />
         <zipfileset dir="${data.dir}" prefix="config${module.dir}/${module.id}/bootstrap" />
         <zipfileset dir="${extension.dir}/model" prefix="config${module.dir}/${module.id}/model" />
         <!–<zipfileset file="${config.dir}${extension.dir}/someco-model-context.xml" prefix="config${module.dir}/${module.id}" />–>
         <zipfileset file="${extension.dir}/web-client-config-custom.xml" prefix="config${module.dir}/${module.id}/ui" />
         <zipfileset file="${package.file.jar}" prefix="lib" />
      </zip>
   </target>
   
   <target name="install-amp" depends="package-amp" description="Uses the Alfresco MMT to install the AMP into ${alfresco.war.path}">
      <java dir="." fork="true" classname="org.alfresco.repo.module.tool.ModuleManagementTool">
         <classpath refid="classpath"/>
         <arg line="install ${package.file.amp} ${alfresco.war.path} -force -verbose"/>
      </java>
   </target>
      
   <target name="deploy-amp" depends="install-amp" description="Unzips the AMP'd WAR file into ${alfresco.web.dir}">
      <unzip src="${alfresco.war.path}" dest="${alfresco.web.dir}" />
   </target>

   <target name="deploy" depends="package-extension" description="Unzips the ${package.file.zip} into ${alfresco.web.dir}">
      <unzip src="${package.file.zip}" dest="${alfresco.web.dir}" />
   </target>

   <target name="update-war" depends="package-amp" description="Update the WAR file.  Set -Dwar.file=…" >
      <echo>Installing SDK Demo AMP into WAR</echo>
      <java dir="." fork="true" classname="org.alfresco.repo.module.tool.ModuleManagementTool">
         <classpath refid="class.path" />
         <arg line="install ${amp.file} ${war.file} -force -verbose"/>
      </java>
   </target>
   
</project>   


————————————————————————
I leave a picture with the project structure in alfresco3
Do I need to change something about the structure to alfresco4?

Thanks in advance!
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
looks like some permission override is missing.    I suspect you have some configuration outside of the AMP that is causing problems.

magarcia_sm
Star Contributor
Star Contributor
hi again

Yes we have implemented an extension code in our eclipse project under the section /source. However when we run the build.xml file to produce the amp file seems that this code is not included in the amp file generated and I think this might be causing the issue.

I am sure I am touched something, as before the amp included this custom java code we created, but now I am not able to produce it in the amp file and so I am not able to install it in the alfresco.war.

If you dont mind I have passed you our build.xml file (previous post). I am not sure that in the "package-amp" I must include again the "compile" section… but then I do not know how to include our code in /source in the amp file and install it correctly in an alfresco.war for 4.2.f 

Let me pass you also another image of our project structure where you can see the code in source. In the amp file the new alfresco model information is included and the module seems to be installed ok… but then is when we realize that the main code with their java classes do not appear.

Thanks in advance!!