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

Include AMP Dependencies with SDK 2.1


How can i audit Webscript

$
0
0

Hi,
I would like to know how can i audit Webscripts, i implemented a webscript that extends AbstractWebScript, i added @auditable to the execute method and activated the audit :

audit.enabled=true
audit.alfresco-access.enabled=true
but still not getting the action audited, any help please.
4.2.c

sdk and records management

$
0
0

I'm trying to add Records Management support to an Alfresco project created from the SDK 2.0.0 all-in-one archetype, and I get the error "Bean property 'useLocalCaches' is not writable". This was discussed before, but solution isn't working for me. I'm stuck.

When I run:
$mvn integration-test -Prun
my application loads correctly, but when I run
$mvn integration-test -Prun,rm
it fails.

And it works, but when I add "rm" to the list of profiles, I get the error "Context initialization failed"
caused by:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'useLocalCaches' of bean class[org.alfresco.ibatis.HierarchicalSqlSessionFactoryBean]: Bean property 'useLocalCaches' is not writable or has an invalid setter method.

I see that this was discussed before

The solution was to run the command:
$mvn clean install -Prm

I can run that command without error. But that command doesn't actually launch my server. When I try to run the All-in-one project I've created:
$mvn install -Prun,rm OR
$mvn integration-test -Prun,rm

The error occurs, and Alfresco doesn't launch correctly.
Am I missing something?

Thanks,
David

[SOLVE] Change Share logout URL

$
0
0

Hi, i need to change the logout link in share (Alfresco 4.2.e).

I tried to replace in share-config.xml the line:

<item type="link" id="logout" condition="!context.externalAuthentication">/dologout</item>

with:

<item type="external-link" id="logout">https://www.google.it/</item>

but it does not work.

How can i change the logout URL?

4.2.e

Metadata

Transform .doc to pdf

$
0
0

Hi,

I try to transform word document to pdf document with a alfresco explorer action, transformation is succefully but in the footer lost a part of original footer, in return this message appears "OpenOfficeContentTransformer-source-{documentname}".

Any suggestion for this?.

4.2.f

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 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

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

Include AMP Dependencies with SDK 2.1

How can i audit Webscript

$
0
0

Hi,
I would like to know how can i audit Webscripts, i implemented a webscript that extends AbstractWebScript, i added @auditable to the execute method and activated the audit :

audit.enabled=true
audit.alfresco-access.enabled=true
but still not getting the action audited, any help please.
4.2.c

sdk and records management

$
0
0

I'm trying to add Records Management support to an Alfresco project created from the SDK 2.0.0 all-in-one archetype, and I get the error "Bean property 'useLocalCaches' is not writable". This was discussed before, but solution isn't working for me. I'm stuck.

When I run:
$mvn integration-test -Prun
my application loads correctly, but when I run
$mvn integration-test -Prun,rm
it fails.

And it works, but when I add "rm" to the list of profiles, I get the error "Context initialization failed"
caused by:
Caused by: org.springframework.beans.NotWritablePropertyException: Invalid property 'useLocalCaches' of bean class[org.alfresco.ibatis.HierarchicalSqlSessionFactoryBean]: Bean property 'useLocalCaches' is not writable or has an invalid setter method.

I see that this was discussed before

The solution was to run the command:
$mvn clean install -Prm

I can run that command without error. But that command doesn't actually launch my server. When I try to run the All-in-one project I've created:
$mvn install -Prun,rm OR
$mvn integration-test -Prun,rm

The error occurs, and Alfresco doesn't launch correctly.
Am I missing something?

Thanks,
David

[SOLVE] Change Share logout URL

$
0
0

Hi, i need to change the logout link in share (Alfresco 4.2.e).

I tried to replace in share-config.xml the line:

<item type="link" id="logout" condition="!context.externalAuthentication">/dologout</item>

with:

<item type="external-link" id="logout">https://www.google.it/</item>

but it does not work.

How can i change the logout URL?

4.2.e

Metadata


Transform .doc to pdf

$
0
0

Hi,

I try to transform word document to pdf document with a alfresco explorer action, transformation is succefully but in the footer lost a part of original footer, in return this message appears "OpenOfficeContentTransformer-source-{documentname}".

Any suggestion for this?.

4.2.f

Disable print button in browser

$
0
0

Normally we can disable "print" by set CSS media:print properties, but I cannot find which CSS should be modified.
Anybody can help me to do this?

maven amp plugin

$
0
0

Hi, I'm trying to use the maven amp plugin but got the following error:

[ERROR] Failed to execute goal on project alf-timesheet-server: Could not resolve dependencies for project com.leftmotif:alf-timesheet-server:amp:1.0-SNAPSHOT: The following artifacts could not be resolved: org.alfresco:alfresco-repository:jar:config:5.0.d, org.alfresco:alfresco-data-model:jar:config:5.0.d: Could not find artifact org.alfresco:alfresco-repository:jar:config:5.0.d in alfresco-public (https://artifacts.alfresco.com/nexus/content/groups/public) -> [Help 1]

Did I miss something?
Thanks,
Thomas

JVM Tunnig

$
0
0

Good morning,

I am trying to increase the performance of my installation alfresco.In lots oforums is suggested changing some variables. However I have some doubts that I couldn't find the answer:

1) The file where should I change is the \tomcat\bin\setenv.bat?
2) If so, the change would

set JAVA_OPTS=++JvmOptions="-XX:MaxPermSize=512M"++JvmOptions="Xmx32GB "%JAVA_OPTS%

3) I am using a java application that uses the bulk importer tool to import folders with 500 files, 81KB size each one. Does anyone have any suggestions as to the maximum number of file per folder imported by Bulk?

I have a Alfresco Community 4.2.f installation on a Windows Server 2012 R2 Datacenter 64GB 2 processors

Thank you a lot

4.2.f

Frederico Americano Linhares

If this post was helpful, please click "mark comment as useful"

HTTP Status 404 - /alfresco/testCMISfromJS.html

$
0
0

I'm trying to run html file on Alfresco on folder (alfrescodir)/tomcat/webapps . I try to run http://localhost:8080/alfresco/testCMISfromJS.html but I got the error:

HTTP Status 404 - /alfresco/testCMISfromJS.html
type Status report

message /alfresco/testCMISfromJS.html

description The requested resource is not available.
How can i solve this? Please help me.

Viewing all 158 articles
Browse latest View live