cancel
Showing results for 
Search instead for 
Did you mean: 

error MMT installation

henk
Champ in-the-making
Champ in-the-making
hi, when i try to installate alfresco-blog-integration i get the following error:

alfrescoinst:/opt/alfresco/bin# java -jar alfresco-mmt-2.1.0.jar install alfresco-blog-integration-2.1.0.amp /opt/alfresco/tomcat/webapps/alfresco.war
Exception in thread "main" java.lang.ExceptionInInitializerError
   at java.lang.Class.initializeClass(libgcj.so.70)
   at org.alfresco.repo.module.tool.ModuleManagementTool.<clinit>(ModuleManagementTool.java:90)
   at java.lang.Class.initializeClass(libgcj.so.70)
   at java.lang.reflect.Method.invoke(libgcj.so.70)
   at com.simontuffs.onejar.Boot.run(Boot.java:247)
   at com.simontuffs.onejar.Boot.main(Boot.java:105)
Caused by: java.util.MissingResourceException: Bundle de.schlichtherle.io.DefaultRaesZipDetector not found
   at java.util.ResourceBundle.getBundle(libgcj.so.70)
   at java.util.ResourceBundle.getBundle(libgcj.so.70)
   at java.util.logging.Logger.<init>(libgcj.so.70)
   at java.util.logging.Logger.getLogger(libgcj.so.70)
   at de.schlichtherle.io.DefaultRaesZipDetector.<clinit>(Unknown Source)
   at java.lang.Class.initializeClass(libgcj.so.70)
   …5 more

the alfresco-mmt-2.1.0.jar and the alfresco-blog-integration-2.1.0.amp file are located in the :/opt/alfresco/bin

alfresco is installed on a linux debian 4.0 system and i installed java jre-6u3

any help will be appreciated!
3 REPLIES 3

henk
Champ in-the-making
Champ in-the-making
I fixed the problem!


The environment variable PATH wasn't set!

export PATH=/opt/java/jdk1.6.0_03/bin:$PATH

grtzz

tommorris
Champ in-the-making
Champ in-the-making
I've experienced a different error trying to use the MMT.

Attempting to install website-tools AMP file using the MMT distributed with 2.1.2 enterprise, fails.
See instructions to fix, below.

When doing this:
E:\Alfresco\bin>java -jar alfresco-mmt.jar install /alfresco/websitetools.amp /alfresco/tomcat/webapps/alfresco.war

You get this:
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at com.simontuffs.onejar.Boot.run(Boot.java:287)
        at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: java.lang.NoClassDefFoundError: org/safehaus/uuid/UUIDGenerator
        at org.alfresco.repo.module.tool.ModuleManagementTool.generateGuid(ModuleManagementTool.java:809)
        at org.alfresco.repo.module.tool.ModuleManagementTool.copyToWar(ModuleManagementTool.java:570)
        at org.alfresco.repo.module.tool.ModuleManagementTool.installModule(ModuleManagementTool.java:359)
        at org.alfresco.repo.module.tool.ModuleManagementTool.main(ModuleManagementTool.java:777)
        … 6 more

Fix it by:
The MMT jar distributed with the previous version, contained the jug JAR.
I took the jug from: E:\Alfresco\tomcat\webapps\alfresco\WEB-INF\lib\jug-lgpl-2.0.0.jar
…renamed it to jug.jar (name doesn't really matter, of course),
…and put it back in the LIB directory of the JAR archive.

It then works.

wabson
Star Contributor
Star Contributor
Tom,

Thanks for spotting this - we've fixed the build script to include lib/jug-lgpl-2.0.0.jar in the MMT jar. This should fix future releases - the workaround as you mentioned in the meantime is to manually copy jug-lgpl-2.0.0.jar into the JAR file.

http://issues.alfresco.com/browse/AR-2272

Cheers,
Will.