Projet

General

Profil

[FIXED] Trouble Installing Designer

Ajouté par Fred Warren il y a plus de 10 ans

I am very impressed by the module designer but I cannot seem to get it installed. I have tried both Windows (4.2.c and 4.2.d) and 4.2.d Ubuntu and been unsuccessful. I could use some help. I am confused on the meaning of the statement "You must delete the folders : $SERVER/webapps/alfresco and $SERVER/webapps/share". This would seem to delete the Alfresco web site from within Tomcat which seems strange to me. This directive is not in the INSTALL text provided with the amp files. I have tried installing the files with and without deleting these directories. Installing the Controls module seems to work in the case of not deleting these directories. However, removing the directories results in a Tomcat page not found error for all Alfresco pages and I have to reinstall Alfresco to get things going again. When I leave the directories in place and install Designer, there seems to be fatal error. Here is what it looks like in the Ubuntu log:

SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.extensions.config.ConfigException: 08140000 No sources provided: []
at org.springframework.extensions.config.source.BaseConfigSource.getConfigDeployments(BaseConfigSource.java:91)
at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:258)
at fr.becpg.repo.designer.config.DesignerConfigBootstrap.initConfig(DesignerConfigBootstrap.java:83)
at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:138)
at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:145)
at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:260)

This kills Share, but the Explorer is still working and I can verify that the main Alfresco repository is OK.

If anyone can help, please do. I am stuck at this point.

Thanks!

Fred


Réponses (6)

RE: Trouble Installing Designer - Ajouté par Fred Warren il y a plus de 10 ans

So, I did a little reading and I now understand the way Tomcat handles its WAR files and why it is a good idea to delete the previously created WAR expansion prior to doing another one. However, even when I remove the alfresco and share directories and let Tomcat rebuild them from the new WAR files that contain the Designer code, I still get SEVERE: Exception messages on both Windows and Ubuntu. Help would be very welcome.

Thanks!

Fred

RE: Trouble Installing Designer - Ajouté par Matthieu Laborie il y a plus de 10 ans

Hi!

Can you please explain how you try to deploy it and what are your errors. Tomcat should be stop before deploy and clean (only .war files). Then deploy AMPS . Start Tomcat.
that's it . It should work for alfresco 4.2.c (windows or linux).
If not paste your logs.

Regards

RE: Trouble Installing Designer - Ajouté par Fred Warren il y a plus de 10 ans

Matthieu,

Thank you for taking the time to consider my issue. I have followed your install instructions exactly on both Alfresco 4.2.c and 4.2.d. I have tried the installs on both Windows 7 and Ubuntu. The error always is the same:

2013-09-18 18:41:15,615 ERROR [web.context.ContextLoader] [localhost-startStop-1] Context initialization failed
org.springframework.extensions.config.ConfigException: 08180000 No sources provided: []
at org.springframework.extensions.config.source.BaseConfigSource.getConfigDeployments(BaseConfigSource.java:91)
at org.springframework.extensions.config.BaseConfigService.appendConfig(BaseConfigService.java:258)
at fr.becpg.repo.designer.config.DesignerConfigBootstrap.initConfig(DesignerConfigBootstrap.java:83)
at org.springframework.extensions.config.xml.XMLConfigService.initConfig(XMLConfigService.java:138)
at org.springframework.extensions.config.BaseConfigService.reset(BaseConfigService.java:145)
at org.springframework.extensions.webscripts.AbstractRuntimeContainer.reset(AbstractRuntimeContainer.java:260)
at org.springframework.extensions.webscripts.PresentationContainer.reset(PresentationContainer.java:121)
at org.springframework.extensions.webscripts.LocalWebScriptRuntimeContainer.reset(LocalWebScriptRuntimeContainer.java:118)
at org.springframework.extensions.webscripts.AbstractRuntimeContainer.onApplicationEvent(AbstractRuntimeContainer.java:280)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97)
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.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
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:633)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)

You will note the message "No sources provided: []". From what I can tell, your code expects certain files to be in certain places based on ${dir.root}. In my system the value in alfresco-global.properties is dir.root=F:/Alfresco/alf_data. When I look at the alf_data directory, I do not see any of your files and certainly no directory labeled "designer". This may not be the problem, but it looked suspicious to me.

On Windows 7 I did the AMP installs using the Windows Console with the following commands (cut and pasted in this order):

F:\Alfresco\java\bin\java -jar F:\Alfresco\bin\alfresco-mmt.jar install F:\Alfresco\amps_share\becpg-controls-core-1.5.0.amp F:\Alfresco\tomcat\webapps\share.war -force
F:\Alfresco\java\bin\java -jar F:\Alfresco\bin\alfresco-mmt.jar install F:\Alfresco\amps_share\becpg-controls-share-1.5.0.amp F:\Alfresco\tomcat\webapps\share.war -force
F:\Alfresco\java\bin\java -jar F:\Alfresco\bin\alfresco-mmt.jar install F:\Alfresco\amps_share\becpg-designer-core-1.5.0.amp F:\Alfresco\tomcat\webapps\share.war -force
F:\Alfresco\java\bin\java -jar F:\Alfresco\bin\alfresco-mmt.jar install F:\Alfresco\amps_share\becpg-designer-share-1.5.0.amp F:\Alfresco\tomcat\webapps\share.war -force

I also did these commands with the -verify and have the results saved if you might have a use for them.

If you could tell me how to enable your debug in the log4j.properties file, I could provide this trace.

I hope you can point me in the right direction. You have a wonderful tool for Alfresco and I really want to be able to use it!

Thanks,

Fred

RE: Trouble Installing Designer - Ajouté par Fred Warren il y a plus de 10 ans

Matthieu,

In re-reading your comment I find I am not clear on what you mean by "clean (only .war files)". What I have done is deleted the alfresco and share directories under tomcat/webapps prior to doing the installs. If I was supposed to do some other kind of a clean operation, then that could be my problem.

Let me know.

Thanks!

Fred

RE: Trouble Installing Designer - Ajouté par Matthieu Laborie il y a plus de 10 ans

Hi,

You problem is that you install becpg-controls-core-1.5.0.amp and becpg-designer-core-1.5.0.amp under share.war instead of alfresco.war.

Hope it helps!

Regards

RE: Trouble Installing Designer - Ajouté par Fred Warren il y a plus de 10 ans

Matthieu,

It is always the very stupid errors that get you! Yes, fixing the war targets for the two core modules worked. I have Designer up and it looks great. Now I have to learn to use it.

Thank you!

Fred

    (1-6/6)