Coder Social home page Coder Social logo

felixon / alfresco-java-backed-webscripts-demo Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 196 KB

Automatically exported from code.google.com/p/alfresco-java-backed-webscripts-demo

License: Apache License 2.0

CSS 3.52% Java 92.95% JavaScript 3.52%

alfresco-java-backed-webscripts-demo's People

Watchers

 avatar

alfresco-java-backed-webscripts-demo's Issues

Demo web scripts not appearing in web script index on Alfresco 4.2

What steps will reproduce the problem?

1.  Install and run Alfresco 4.2
2. Download and install demojavawebscripts-1.1.amp
3. Got to http://localhost:8080/alfresco/service/index

What is the expected output? What do you see instead?

Expected to see "Alfresco Java-Backed WebScripts Demo" listed in list of web 
script families, instead it does not appear listed.

What version of the product are you using? On what operating system?

Alfresco 4.2 on Mac OS X 10.7.5

Please provide any additional information below.

---
tbedford@c02g51gjdrjn:/Applications/alfresco-4.2.0/bin$ java -jar 
alfresco-mmt.jar install ../amps/demojavawebscripts-1.1.amp 
../tomcat/webapps/alfresco.war -force
   - WARNING: The file '/WEB-INF/classes/log4j.properties' is being overwritten by this module. The original has been backed-up to '/WEB-INF/classes/alfresco/module/backup/94236e24-71e7-11e2-8008-6137c561c87d.bin'
tbedford@c02g51gjdrjn:/Applications/alfresco-4.2.0/bin$ 

---
tbedford@c02g51gjdrjn:/Applications/alfresco-4.2.0/bin$ java -jar 
alfresco-mmt.jar install ../amps/demojavawebscripts-1.1.amp 
../tomcat/webapps/alfresco.war -preview 
Installing AMP '../amps/demojavawebscripts-1.1.amp' into WAR 
'../tomcat/webapps/alfresco.war'
Adding files relating to version '1.1.1' of module 
'org.alfresco.demojavawebscripts'
   - File '/WEB-INF/lib/demojavawebscripts-1.1.jar' added to war from amp
   - File '/WEB-INF/lib/h2-1.3.158.jar' added to war from amp
   - File '/WEB-INF/lib/h2-support-1.2.jar' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/model/demoscriptsModel.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/extension/model' added to war
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/declarative.get.desc.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/declarative.get.html.ftl' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/declarative.get.json.ftl' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/declarative.get.xml.ftl' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/random.get.desc.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/rendition.get.desc.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo/simple.get.desc.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco/demo' added to war
   - Directory '/WEB-INF/classes/alfresco/extension/templates/webscripts/org/alfresco' added to war
   - Directory '/WEB-INF/classes/alfresco/extension/templates/webscripts/org' added to war
   - Directory '/WEB-INF/classes/alfresco/extension/templates/webscripts' added to war
   - Directory '/WEB-INF/classes/alfresco/extension/templates' added to war
   - File '/WEB-INF/classes/alfresco/extension/custom-model-context.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/custom-model.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/custom-repository-context.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/custom-webscripts-context.xml' added to war from amp
   - File '/WEB-INF/classes/alfresco/extension/file-servers-custom.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/extension' added to war
   - File '/WEB-INF/classes/alfresco/module/org.alfresco.demojavawebscripts/context/service-context.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/org.alfresco.demojavawebscripts/context' added to war
   - File '/WEB-INF/classes/alfresco/module/org.alfresco.demojavawebscripts/log4j.properties' added to war from amp
   - File '/WEB-INF/classes/alfresco/module/org.alfresco.demojavawebscripts/module-context.xml' added to war from amp
   - Directory '/WEB-INF/classes/alfresco/module/org.alfresco.demojavawebscripts' added to war
01080000 ERROR: The amp will overwrite an existing file in the war 
'/WEB-INF/classes/log4j.properties'. Execution halted.  By specifying -force , 
you can force installation of AMP regardless of the current war state.
tbedford@c02g51gjdrjn:/Applications/alfresco-4.2.0/bin$ 

Original issue reported on code.google.com by [email protected] on 11 Feb 2013 at 8:47

issue with Maven

Hi,

I am looking for archetype for full Alfresco project lifecycle above demo.

If possible the please let me know.

Thanks,
Jamil

Original issue reported on code.google.com by [email protected] on 6 May 2013 at 1:24

maven-amp-plugin doesn't resolve

What steps will reproduce the problem?
1. Checkout 
http://alfresco-java-backed-webscripts-demo.googlecode.com/svn/trunk@10
2. Run mvn clean

What is the expected output? What do you see instead?

I expect to see a successful build. However, I see the following error message:

[ERROR]   The project org.alfresco:demojavawebscripts:1.0 
(/home/aball/git/alfresco-java-backed-webscripts-demo.git/pom.xml) has 2 errors
[ERROR]     Unresolveable build extension: Plugin 
org.alfresco.maven.plugin:maven-amp-plugin:3.0.3-SNAPSHOT or one of its 
dependencies could not be resolved: Could not find artifact 
org.alfresco.maven.plugin:maven-amp-plugin:jar:3.0.3-SNAPSHOT in 
alfresco-public (http://maven.alfresco.com/nexus/content/groups/public) -> 
[Help 2]

What version of the product are you using? On what operating system?

http://alfresco-java-backed-webscripts-demo.googlecode.com/svn/trunk@10 on 
Ubuntu Linux 11.10

Please provide any additional information below.

I found a few solutions to this problem:

(1) Replace the alfresco-public-snapshots repository URL of 
http://repository.sourcesense.com/nexus/content/groups/public-snapshots with 
http://maven.alfresco.com/nexus/content/repositories/snapshots 
(replace_repo_url.diff)

(2)Change the version for the dependency to 3.0.4 
(replace_repo_url_and_use_version_3.0.4.diff)

It seems like using version 3.0.4 and changing the repository URL would both be 
a good idea.

Original issue reported on code.google.com by [email protected] on 10 May 2012 at 9:25

Attachments:

Changes in pom.xml so mvn build works on Windows 7 / Maven 3.0.4

When running
  mvn clean package

I first get 
[WARNING] The POM for 
org.alfresco.maven.plugin:maven-amp-plugin:jar:3.0.1-SNAPSHOT is missing, no 
dependency information available
...
[ERROR]     Unresolveable build extension: Plugin 
org.alfresco.maven.plugin:maven-amp-plugin:3.0.1-SNAPSHOT or one of its 
dependencies could not be resolved: Failure to find 
org.alfresco.maven.plugin:maven-amp-plugin:jar:3.0.1-SNAPSHOT in 
http://maven.alfresco.com/nexus/content/groups/public was cached in the local 
repository, resolution will not be reattempted until the update interval of 
alfresco-public has elapsed or updates are forced -> [Help 2]

Changing 
 <version>3.0.1-SNAPSHOT</version>
to
 <version>3.0.3-SNAPSHOT</version>
solves this issue.


The second issue:

[INFO] ------------------------------------------------------------------------
[INFO] Building Alfresco Java-Backed WebScripts Samples 1.0
[INFO] ------------------------------------------------------------------------
...
[ERROR] Plugin com.sourcesense.maven:maven-nosnapshot-plugin:0.0.5-SNAPSHOT or 
one of its dependencies could not be resolved: Failed to read artifact 
descriptor for 
com.sourcesense.maven:maven-nosnapshot-plugin:jar:0.0.5-SNAPSHOT: Failure to 
find org.alfresco:maven-alfresco-lifecycle:pom:1.0.0-SNAPSHOT in 
http://maven.alfresco.com/nexus/content/groups/public was cached in the local 
repository, resolution will not be reattempted until the update interval of 
alfresco-public has elapsed or updates are forced -> [Help 1]

could be solved by changing
       maven-nosnapshot-plugin
from
 <version>0.0.5-SNAPSHOT</version>
to
 <version>0.0.5</version>






Original issue reported on code.google.com by [email protected] on 20 Feb 2012 at 1:27

Add the MoveCategory webscript

We should add the MoveCategory webscript provided by Jeff Potts in his blog:
http://ecmarchitect.com/archives/2012/03/07/1565

Original issue reported on code.google.com by piergiorgiolucidi on 15 Feb 2013 at 2:02

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.