Quantcast
Channel: Alfresco Forums - Development Environment
Viewing all 158 articles
Browse latest View live

Map a folder with custom properties

$
0
0

Hello,

I'm trying to map a folder in a custom property in the share.

I made a custom model with two properties and I want the first property to be a folder.

I changed Application.ftl and I config the picker, when you edit the properties of an object of my custom model in the share, you can choose a folder with the picker but when I save changes, the property stays "none".

Maybe the property type is incorrect but I tried many of them and the result is always the same.

Here is my declaration of my property in the custom model

<property name="customModel:destinationFolder"><type>d:nodeRef</type><mandatory>false</mandatory></property>

Any help would be appreciated :)


Maven SDK & RM Module

$
0
0

Hi Guys,

I am trying to get an allinone maven 2.1 build which includes the RM module. I can connect to share following build but I cannot get access to create an RM site. I have followed the updated documentation here http://docs.alfresco.com/5.0/tasks/alfresco-sdk-advanced-link-alf-amps-aio.html which specifies how to include the RM dependency and overlay it onto the webapps. I can see that the overlay is being called for both the repo war and the share war but on successful build I still cant get access to create an rm site from share. Any help on where I am going wrong appreciated: The xml to include the rm overlays shown below:

Repo pom
---------------

<dependency>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<!--<version>${alfresco.rm.version}</version>-->
<version>2.3.a.1</version>
<type>amp</type>
</dependency>
 
<!-- Uncomment if you are using RM -->
 
<overlay>
<groupId>${alfresco.groupId}</groupId>
<artifactId>alfresco-rm</artifactId>
<type>amp</type>
</overlay>

Share POM
------------------------------

<dependency><groupId>${alfresco.groupId}</groupId><artifactId>alfresco-rm-share</artifactId><!--<version>${alfresco.rm.version}</version>--><version>2.3.a.1</version><type>amp</type></dependency> 
        <overlay><groupId>${alfresco.groupId}</groupId><artifactId>alfresco-rm-share</artifactId><type>amp</type></overlay>

please note, I have also tried it with the standard version config ie
${alfresco.rm.version}

In my log file I can see the following (note also repeated for share)

Processing overlay [ id org.alfresco:alfresco-rm]
[INFO] getDestFile ():null
[INFO] getDestFile ():null
[INFO] getDestDirectory ():/devel/alfresco5-maven/epa-ecm-5/repo/target/repo
[INFO] Installing /root/.m2/repository/org/alfresco/alfresco-rm/2.3.a.1/alfresco-rm-2.3.a.1.amp into /devel/alfresco5-maven/epa-ecm-5/repo/target/repo

So it looks like it is working but I cannot create an RM site.

Am I missing something I have meant to do.

Brian

Brian O'Neill
http://www.seedim.com.au

Structure amp alfresco 4

$
0
0

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''moduloFacturas.bootstrap''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,20155: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!

4.2.f

Hide/Disable View in Browser and Download for Consumer Role

$
0
0

Good day. I've been searching all over but nothing is working for me yet. previous solutions doesn't seem to work. I'm using 5.0c

Thanks so much!

Surf + Alfresco

$
0
0

Hi,

I'm trying to set up my environment to work with version 50d of Alfresco and Surf (ad-hoc version)

I've used the maven command:
mvn archetype:generate -DarchetypeCatalog=https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/archetype-catalog.xml

to generate the surf archetype:
org.springframework.extensions.surf:spring-surf-archetype

and I get the following choice:
Choose org.springframework.extensions.surf:spring-surf-archetype version:
1: 1.2.0-SNAPSHOT
2: 5.0.0-SNAPSHOT
3: 5.1-SNAPSHOT
4: 5.1-BF-SNAPSHOT

If I select 3 (assuming BF is dodgy)

A project with the following dependancy is generated:


org.springframework.extensions.surf
spring-surf
5.1-SNAPSHOT

However in the surf svn repo, I've got the following tags:

https://src.springframework.org/svn/se-surf/tags/

release-1.0.0/
release-1.0.0-RC1/
release-1.0.0-RC2/
release-1.0.0.M1/
release-1.0.0.M2/
release-1.0.0.M3/
release-1.1.0-RC1/
release-1.2.0-M1/
release-1.2.0-M10/
release-1.2.0-M11/
release-1.2.0-M2/
release-1.2.0-M3/
release-1.2.0-M4/
release-1.2.0-M5/
release-1.2.0-M6/
release-1.2.0-M7/
release-1.2.0-M8/
release-1.2.0-M9/

With the pom.xml that are matching the tags version

Nothing that looks like 5.1

Does anyone know what version is what?

Many thanks.

Thomas

Setting Up Dev-Environment with SDK2.1

$
0
0

Hello,
I made several trials to set up a development environment in order to follow the tutorials by Jeff Pott [ http://ecmarchitect.com/alfresco-developer-series ].
I always get stuck at the same Point.

In our company I am sitting behind a proxy/frewall. I managed to get through it by using a CNTLM-Service on my Computer.
As you see in the file [ https://docs.google.com/document/d/15uRRmT2kwjrkRrSOmAnvOyf8_41ehoxiw6IJA1KW-Xo/edit?usp=sharing (shortened logfile) / full file: see the attached textfile] at first all went well:
mvn --Version ...OK.
mvn archetype:generate -Dfilter=org.alfresco: ...OK.

but when ist come to
mvn install
the download process gets stuck with several errors. Always at the same position.
...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d @
[ERROR] Unknown packaging: amp @ line 9, column 16
...

=> Can anyone see what the probelm is?
=> What's the best way to analyze?
=> Is there a way to download the whole package (with all dependencies)?

Best regards,
Joerg Glasauer

-----------

ERRORS:

...
Downloading: http://oss.sonatype.org/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://repo.maven.apache.org/maven2/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloaded: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom (4 KB at 9.4 KB/sec)
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
[ERROR][ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d@
[ERROR] Unknown packaging: amp @ line 9, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25
[ERROR]'dependencies.dependency.version'for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR]'dependencies.dependency.version'for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29@
[ERROR] The build could not read 1 project ->[Help 1]
[ERROR]
[ERROR] The project at.kabeg:kabeg-mvn-sdk21tutorial-repo:1.0-SNAPSHOT (C:\Daten\AlfSDK21TutorialHome\kabeg-mvn-sdk21tutorial-repo\pom.xml) has 5 errors
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d: Failed to read artifact descriptor for org.alfresco:alfresco-mmt:jar:5.0.d: Could not transfer artifact org.alfresco:alfresco-mmt:pom:5.0.d from/to sonatype-public (http://oss.sonatype.org/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: amp @ line 9, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25 -> [Help 3]
[ERROR]'dependencies.dependency.version'for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR]'dependencies.dependency.version'for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR][Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR][Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
[ERROR][Help 3] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
5.0.d

Maven and Eclipse code completion & suggestions

$
0
0

Hi,

With the old SDK I used to configure Eclipse so it knew where the sources were and therefor it could provide code completion and other features like that.
Now that I changed to SDK 2 with Maven I can't get this to work at all any more.

Can someone point me in the right direction how to get this working again?

Thanks!

5.0.d

Surf and Forms

$
0
0

Hi,
I'd like to use forms with surf and I'm not quite sure if everything described on http://docs.alfresco.com/5.0/tasks/forms-config.html is already set up in the different jars loaded with maven configuration:

<dependency>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-surf</artifactId>
<version>5.1-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.springframework.extensions.surf</groupId>
<artifactId>spring-surf-api</artifactId>
<version>5.1-SNAPSHOT</version>
</dependency>

does anyone know whether I need to create manually files like src/main/webapp/WEB-INF/classes/org/springframework/extensions/surf/forms-client-context.xml or whether there is better thing to do?

Thanks,
Thomas


How to install Javascript Console to Alfresco Maven All-in-One Archtype

$
0
0

Hi Guys,

I have been trying to add Javascript Console to Alfresco Maven All-in-One Archetype but did not have much success so far.
I have tried using the dependency/overlay method but it did not work. My pom.xml config is as follows;
pom.xml in repo folder
<dependencies>
...
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
...
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-repo</artifactId>
<type>amp</type>
</overlay>

pom.xml in share folder

<dependencies>
...
<dependency>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<version>0.6.0</version>
<type>amp</type>
</dependency>
</dependencies>
<overlays>
...
<overlay>
<groupId>org.sharextras</groupId>
<artifactId>javascript-console-share</artifactId>
<type>amp</type>
</overlay>
</overlays>

Any help much appreciated.

4.2

Regards,
Kavi
Seed Information Management
http://www.seedim.com.au

Customizing 4.2.f with AMP

$
0
0

I have been trying to build an AMP file, using Maven and the 4.2.f SDK, with no apparent success.

Yes, when I do "maven install -Prun" I am able to access the system using "http://localhost:8080/share," but my changed logo image does not appear; I only see the default Alfresco Community logo.

I have been following "https://angelborroy.wordpress.com/2015/04/24/customizing-alfresco-for-demo-purposes/" as recommended, which is intended to customize the Login page, among other things, but none of those changes appear.

In the 4.2.f SDK AllInOne, I have tried adding the changed files shown in that article to both the "share" and "amp" sub-directories, with the same results. I suspect that I should be doing this in the "amp" sub-directory, in any case.

Is this article intended for Alfresco 5, rather than 4, and the method for doing what I am attempting has changed?

Thank you,
Brian

4.2.f

Cant create alfresco amp archetype 2.1

$
0
0

Hi, when i try to setup an alfresco amp archetype version 2.1, Eclipse never finishes the project creation and i get the following message:

Could not calculate build plan: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failure to transfer org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from http://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-public has elapsed or updates are forced. Original error: Could not transfer artifact org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from/to sonatype-public (http://oss.sonatype.org/content/groups/public): Network is unreachable: connect Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failure to transfer org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from http://oss.sonatype.org/content/groups/public was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-public has elapsed or updates are forced. Original error: Could not transfer artifact org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 from/to sonatype-public (http://oss.sonatype.org/content/groups/public): Network is unreachable: connect

My internet connection is fine, so i dont know what goes wrong.

5.0

"Participate, Contribute, Collaborate"

CMIS: DataIntegrityViolationException

$
0
0

Hi,

I have following problem:

Caused by: org.springframework.dao.DataIntegrityViolationException: Detected stale node entry: NodeVersionKey [nodeId=175860260, version=4] (now [NodeVersionKey [nodeId=175860260, version=5 ]]) at org.alfresco.repo.domain.node.AbstractNodeDAOImpl$AspectsCallbackDAO.findByKey(AbstractNodeDAOImpl.java:2795) at org.alfresco.repo.domain.node.AbstractNodeDAOImpl$AspectsCallbackDAO.findByKey(AbstractNodeDAOImpl.java:2770) at org.alfresco.repo.cache.lookup.EntityLookupCache.getByKey(EntityLookupCache.java:321) at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.getNodeAspectsCached(AbstractNodeDAOImpl.java:2734) at org.alfresco.repo.domain.node.AbstractNodeDAOImpl.getNodeAspects(AbstractNodeDAOImpl.java:2560) at org.alfresco.repo.node.db.DbNodeServiceImpl.getAspects(DbNodeServiceImpl.java:1013) at sun.reflect.GeneratedMethodAccessor648.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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.alfresco.repo.tenant.MultiTNodeServiceInterceptor.invoke(MultiTNodeServiceInterceptor.java:105) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy322.getAspects(Unknown Source) at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.hasPermission(PermissionServiceImpl.java:528) at org.alfresco.repo.security.permissions.impl.PermissionServiceImpl.hasPermission(PermissionServiceImpl.java:1042) at sun.reflect.GeneratedMethodAccessor650.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 $Proxy344.hasPermission(Unknown Source) at org.alfresco.repo.security.permissions.impl.acegi.ACLEntryVoter.vote(ACLEntryVoter.java:510) at net.sf.acegisecurity.vote.AffirmativeBased.decide(AffirmativeBased.java:69) at net.sf.acegisecurity.intercept.AbstractSecurityInterceptor.beforeInvocation(AbstractSecurityInterceptor.java:398) at net.sf.acegisecurity.intercept.method.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:77) 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.alfresco.repo.transaction.RetryingTransactionInterceptor$1.execute(RetryingTransactionInterceptor.java:79) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:401) at org.alfresco.repo.transaction.RetryingTransactionInterceptor.invoke(RetryingTransactionInterceptor.java:69) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at $Proxy322.getProperties(Unknown Source) at org.alfresco.repo.template.TemplateNode.getProperties(TemplateNode.java:263) ... 81 more

I look to the source code org.alfresco.repo.domain.node.AbstractNodeDAOImpl at lines (decompiled code):

privateclass AspectsCallbackDAO extends EntityLookupCallbackDAOAdaptor<NodeVersionKey, Set<QName>, Serializable>{
// ...
public Pair<NodeVersionKey, Set<QName>> findByKey(NodeVersionKey nodeVersionKey){
Long nodeId = nodeVersionKey.getNodeId();
Set nodeIds =Collections.singleton(nodeId);
Map nodeAspectQNameIdsByVersionKey = AbstractNodeDAOImpl.this.selectNodeAspects(nodeIds);
Set nodeAspectQNames =(Set)nodeAspectQNameIdsByVersionKey.get(nodeVersionKey);
if(nodeAspectQNames ==null){
if(nodeAspectQNameIdsByVersionKey.size()!=0){
AbstractNodeDAOImpl.this.invalidateNodeCaches(nodeId);
thrownew DataIntegrityViolationException("Detected stale node entry: "+ nodeVersionKey +" (now "+ nodeAspectQNameIdsByVersionKey.keySet()+")");
}
 
nodeAspectQNames =Collections.emptySet();
}
 
returnnew Pair(nodeVersionKey, Collections.unmodifiableSet(nodeAspectQNames));
}

As I understand, this exception occurs when nodeVersionKey object is not inside nodeAspectQNameIdsByVersionKey map - obtain from database.
I think this may occur when nodeVersionKey has version field different then version obtain from database (in call selectNodeAspects(nodeIds)) - because I don't believe that nodeVersionKey could have different nodeId field.
Is it true?
Maybe something change alf_node table direct in database?

Please tell me, why it is possible, that this DataIntegrityViolationException can be thrown? What exactly it means?
And how Alfresco developer predicted such situation and write those 'if else' condition with exception throwing.
And the most important - how to prevent this exception?

Please help me.

4.1

log4j configuration is not working in AIO SDK 2.0.0

$
0
0

Hi

i have AIO successfully running with sdk version 2.0.0 BUT i can not configure logging classes. (it is working fine when i use repo-only module) ...
i am editing this file:
alf-project/repo/src/main/resources/alfresco/extension/dev-log4j.properties

but it seems its not being picked up/merged into the main log4j configuration file.

thanks

jaen

Query for content model and content type

$
0
0

Hi,

I have deployed ContentModel.XML file to Data Dictionary > Models space. How to define new content type? How can i see the changes. I am new to alfresco development. Is it possible to get response.

5.0.d

SDK 2.1 - Including Third Party JAR Libraries

$
0
0

Hi Folks,

I know this is going to be a silly fix and probably staring me right in the face. However, I have recently moved to the Alfresco 2.1 SDK, from ANT and am deploying new projects on Alfresco 5.0.d. I have installed and setup the all-in-one (aio) archetype using maven and all is working great (very nice project btw). RAD is working just fine (did have to change the maven filters to ignore JS and CSS), but cannot seem to figure out where to put my external JARs for importing into my Java classes.

In ANT I used to put them in a folder called "projects/third_party/lib", add them to my classpath, and then it would be exported with the project. In my maven project (using SDK 2.1), I add the external libraries to my classpath and it complies my Alfresco classes, picking up the imports. However, maven does not build and as you can see in the attachment, complains about not being exported.

My question is: how do I configure my project so that it will export the JARs with my AMP/build, is there a specific place I should be adding them?

Also, why does the all-in-one default archetype give me that server.xml error? Everything seems to work with it, but it is rather annoying :)

Thanks for any help on this!

- Sarah

5.0.d

Content model deployment

$
0
0

I have installed and tried to deploy content model to my local. I have copied three webscript files to config > alfresco > extension > templates and some other content model xml files. Build.xml was successfully build. The issue is, after performing those steps, unable to start my alfresco.
Can i get some help?

5.0.d

,IELTS,GRE,TOEIC,TOEFL,PET, FCE, CAE, CPE, BEC,YLE, KET,BULATS,ILEC, ICFE CERTIFICATE FOR SALE We sell registered IELTS,GRE,TOEI

$
0
0

,IELTS,GRE,TOEIC,TOEFL,PET, FCE, CAE, CPE, BEC,YLE, KET,BULATS,ILEC, ICFE CERTIFICATE FOR SALE
We sell registered IELTS,GRE,TOEIC,TOEFL,PET, FCE, CAE, CPE, BEC,YLE, KET,BULATS,ILEC, ICFE and other certificates.

We deal and specialize IELTS,GRE,TOEIC,TOEFL,PET, FCE, CAE, CPE, BEC,YLE, KET,BULATS,ILEC, ICFE CELTA/DELTA & all
Certificates.

contact if you need any certificate or documents at
email

risalatrahman1234@outlook.com

cell +237656287172 or 00237656287172

skype kellypink30

below are additional documents that we offer

Adoption Certificates
Baptism Certificates
Birth Certificates
Death Certificates
Divorce Certificates
Marriage Certificates
Custom Certificates
prostitution certificate
High School Diplomas
G.E.D. Diplomas
Home School Diplomas
College Degrees
University Degrees
Trade Skill Certificates
Social Security
Validate SSN Number
Driver License

contact email

skype kellypink30

tel number +237656287172 or 00237656287172

for more details

Maven and Eclipse code completion & suggestions

$
0
0

Hi,

With the old SDK I used to configure Eclipse so it knew where the sources were and therefor it could provide code completion and other features like that.
Now that I changed to SDK 2 with Maven I can't get this to work at all any more.

Can someone point me in the right direction how to get this working again?

Thanks!

5.0.d

Setting Up Dev-Environment with SDK2.1

$
0
0

Hello,
I made several trials to set up a development environment in order to follow the tutorials by Jeff Pott [ http://ecmarchitect.com/alfresco-developer-series ].
I always get stuck at the same Point.

In our company I am sitting behind a proxy/frewall. I managed to get through it by using a CNTLM-Service on my Computer.
As you see in the file [ https://docs.google.com/document/d/15uRRmT2kwjrkRrSOmAnvOyf8_41ehoxiw6IJA1KW-Xo/edit?usp=sharing (shortened logfile) / full file: see the attached textfile] at first all went well:
mvn --Version ...OK.
mvn archetype:generate -Dfilter=org.alfresco: ...OK.

but when ist come to
mvn install
the download process gets stuck with several errors. Always at the same position.
...
[ERROR] [ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d @
[ERROR] Unknown packaging: amp @ line 9, column 16
...

=> Can anyone see what the probelm is?
=> What's the best way to analyze?
=> Is there a way to download the whole package (with all dependencies)?

Best regards,
Joerg Glasauer

-----------

ERRORS:

...
Downloading: http://oss.sonatype.org/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://oss.sonatype.org/content/repositories/snapshots/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: https://repo.maven.apache.org/maven2/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloading: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom
Downloaded: http://clojars.org/repo/org/clojars/pmonks/spinner/0.2.0/spinner-0.2.0.pom (4 KB at 9.4 KB/sec)
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
Downloading: https://artifacts.alfresco.com/nexus/content/groups/public-snapshots/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
Downloading: https://repo.maven.apache.org/maven2/org/alfresco/alfresco-platform-distribution/5.0.d/alfresco-platform-distribution-5.0.d.pom
[ERROR][ERROR] Some problems were encountered while processing the POMs:
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d@
[ERROR] Unknown packaging: amp @ line 9, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25
[ERROR]'dependencies.dependency.version'for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR]'dependencies.dependency.version'for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29@
[ERROR] The build could not read 1 project ->[Help 1]
[ERROR]
[ERROR] The project at.kabeg:kabeg-mvn-sdk21tutorial-repo:1.0-SNAPSHOT (C:\Daten\AlfSDK21TutorialHome\kabeg-mvn-sdk21tutorial-repo\pom.xml) has 5 errors
[ERROR] Unresolveable build extension: Plugin org.alfresco.maven.plugin:alfresco-maven-plugin:2.1.0 or one of its dependencies could not be resolved: Failed to collect dependencies at org.alfresco.maven.plugin:alfresco-maven-plugin:jar:2.1.0 -> org.alfresco:alfresco-mmt:jar:5.0.d: Failed to read artifact descriptor for org.alfresco:alfresco-mmt:jar:5.0.d: Could not transfer artifact org.alfresco:alfresco-mmt:pom:5.0.d from/to sonatype-public (http://oss.sonatype.org/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target -> [Help 2]
[ERROR] Unknown packaging: amp @ line 9, column 16
[ERROR] Non-resolvable import POM: Could not transfer artifact org.alfresco:alfresco-platform-distribution:pom:5.0.d from/to alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public): sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target @ line 48, column 25 -> [Help 3]
[ERROR]'dependencies.dependency.version'for org.alfresco:alfresco-repository:jar is missing. @ line 62, column 21
[ERROR]'dependencies.dependency.version'for junit:junit:jar is missing. @ org.alfresco.maven:alfresco-sdk-parent:2.1.0, C:\Users\glasauerj\.m2\repository\org\alfresco\maven\alfresco-sdk-parent\2.1.0\alfresco-sdk-parent-2.1.0.pom, line 701, column 29
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR][Help 1] http://cwiki.apache.org/confluence/display/MAVEN/ProjectBuildingException
[ERROR][Help 2] http://cwiki.apache.org/confluence/display/MAVEN/PluginManagerException
[ERROR][Help 3] http://cwiki.apache.org/confluence/display/MAVEN/UnresolvableModelException
5.0.d

Query for content model and content type

$
0
0

Hi All,

I am able to deploy the content model from the below URL -

http://docs.alfresco.com/print/book/export/html/578595

However, not getting content of custom type.

When searching for http://localhost:8080/alfresco/service/modeltest/MyWhitepaper, getting an error which says 404.

Copied my log file below -

2015-08-16 23:07:24,296 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 497 Web Scripts (+0 failed), 649 URLs
2015-08-16 23:07:24,296 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 1 Package Description Documents (+0 failed)
2015-08-16 23:07:24,296 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
2015-08-16 23:07:24,340 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 11 Web Scripts (+0 failed), 82 URLs
2015-08-16 23:07:24,340 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Package Description Documents (+0 failed)
2015-08-16 23:07:24,340 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)
2015-08-16 23:07:24,384 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 11 Web Scripts (+0 failed), 82 URLs
2015-08-16 23:07:24,384 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Package Description Documents (+0 failed)
2015-08-16 23:07:24,384 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [localhost-startStop-1] Registered 0 Schema Description Documents (+0 failed)
2015-08-16 23:07:24,385 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] [localhost-startStop-1] Initialised Public Api Web Script Container (in 1254.2977ms)
2015-08-16 23:07:24,413 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 11 Web Scripts (+0 failed), 82 URLs
2015-08-16 23:07:24,413 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Package Description Documents (+0 failed)
2015-08-16 23:07:24,413 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] [asynchronouslyRefreshedCacheThreadPool1] Registered 0 Schema Description Documents (+0 failed)

5.0.d
Viewing all 158 articles
Browse latest View live