AnsweredAssumed Answered

Bonjour à tous, Je suis en train de tester WCM 2.0...

Question asked by mdelmotte on May 18, 2007
Latest reply on Jun 28, 2007 by seraphon
Bonjour à tous,

Je suis en train de tester WCM 2.0 (de février 2007) en suivant les étapes du tutoriel Evaluation guide.
Je tourne avec Alfresco Community 2.0 (de février 2007) en version bundled tomcat sur un serveur virtuel Ubuntu 7.

Je rencontre de types de difficultés :
1- des difficultés techniques :
a- j'ai du modifier le fichier de localisation française de alfresco : erreur sur le container.jsp à cause d'un appel d'une méthode "importer dans l'entrepot" (le {'} à la française n'est vraiment pas supporté dans les systèmes anglophones)
b- depuis cette modification (et je penche fortement sur l'idée que c'est cette modification qui entraine la suite des évenements) je ne peux plus visulaliser les virtual host de tomcat. J'obtiens une erreur dans le log catalina.out :
18 mai 2007 14:54:50 org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: /usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386/client:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/lib/i386:/usr/lib/jvm/java-6-sun-1.6.0.00/jre/../lib/i386:/usr/java/packages/lib/i386:/lib:/usr/lib
18 mai 2007 14:54:51 org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initialisation de Coyote HTTP/1.1 sur http-8180
18 mai 2007 14:54:51 org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 2664 ms
18 mai 2007 14:54:51 org.apache.catalina.core.StandardService start
INFO: Démarrage du service Catalina
18 mai 2007 14:54:51 org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
18 mai 2007 14:54:55 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
18 mai 2007 14:54:56 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=17764792]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
18 mai 2007 14:54:56 org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=17764792]
18 mai 2007 14:54:56 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-shared.properties]
18 mai 2007 14:54:56 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
18 mai 2007 14:54:56 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@193385d]
18 mai 2007 14:54:56 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@105b99f]
18 mai 2007 14:54:56 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy]
18 mai 2007 14:54:57 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy}
18 mai 2007 14:54:57 org.alfresco.jndi.AVMFileDirContext InitAVMRemote
ATTENTION: Retrying JNDI connection….
18 mai 2007 14:55:02 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
18 mai 2007 14:55:02 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=9740137]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
18 mai 2007 14:55:02 org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=9740137]
18 mai 2007 14:55:02 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-shared.properties]
18 mai 2007 14:55:02 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
18 mai 2007 14:55:02 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1e4f7c2]
18 mai 2007 14:55:02 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@145f0e3]
18 mai 2007 14:55:02 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy]
18 mai 2007 14:55:02 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy}
18 mai 2007 14:55:02 org.alfresco.jndi.AVMFileDirContext InitAVMRemote
ATTENTION: Retrying JNDI connection….
18 mai 2007 14:55:07 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
18 mai 2007 14:55:07 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=30472956]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
18 mai 2007 14:55:07 org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=30472956]
18 mai 2007 14:55:07 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-shared.properties]
18 mai 2007 14:55:07 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
18 mai 2007 14:55:07 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@f47396]
18 mai 2007 14:55:07 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@d0af9b]
18 mai 2007 14:55:07 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy]
18 mai 2007 14:55:07 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy}
18 mai 2007 14:55:07 org.alfresco.jndi.AVMFileDirContext InitAVMRemote
ATTENTION: Retrying JNDI connection….
18 mai 2007 14:55:12 org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
INFO: Loading XML bean definitions from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]
18 mai 2007 14:55:12 org.springframework.context.support.AbstractRefreshableApplicationContext refreshBeanFactory
INFO: Bean factory for application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=32946703]: org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy
18 mai 2007 14:55:12 org.springframework.context.support.AbstractApplicationContext refresh
INFO: 15 beans defined in application context [org.springframework.context.support.FileSystemXmlApplicationContext;hashCode=32946703]
18 mai 2007 14:55:12 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-shared.properties]
18 mai 2007 14:55:12 org.springframework.core.io.support.PropertiesLoaderSupport loadProperties
INFO: Loading properties file from URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver.properties]
18 mai 2007 14:55:12 org.springframework.context.support.AbstractApplicationContext initMessageSource
INFO: Unable to locate MessageSource with name 'messageSource': using default [org.springframework.context.support.DelegatingMessageSource@1cd0888]
18 mai 2007 14:55:12 org.springframework.context.support.AbstractApplicationContext initApplicationEventMulticaster
INFO: Unable to locate ApplicationEventMulticaster with name 'applicationEventMulticaster': using default [org.springframework.context.event.SimpleApplicationEventMulticaster@1eb2c1b]
18 mai 2007 14:55:12 org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
INFO: Pre-instantiating singletons in factory [org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy]
18 mai 2007 14:55:13 org.springframework.beans.factory.support.AbstractBeanFactory destroySingletons
INFO: Destroying singletons in factory {org.springframework.beans.factory.support.DefaultListableBeanFactory defining beans [virtserver-properties,authenticationService,reauthenticatingAdvice,avmReauthenticatingAdvisor,avmRemoteTransport,avmRemote,avmRemoteTransportRaw,jndiInfoBean,virtServerInfo,virtServerMBeanServer,virtServerRegistry,serverConnector,virtServerExporter,virtWebappRegistry,cacheControlInfo]; root of BeanFactory hierarchy}
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:597)
   at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authenticationService' defined in URL [file:/opt/alfresco/virtual-tomcat/conf/alfresco-virtserver-context.xml]: Initialization of bean failed; nested exception is java.rmi.NotBoundException: authentication
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:370)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
   at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
   at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:269)
   at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:320)
   at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:89)
   at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:74)
   at org.springframework.context.support.FileSystemXmlApplicationContext.<init>(FileSystemXmlApplicationContext.java:65)
   at org.alfresco.jndi.AVMFileDirContext.InitAVMRemote(AVMFileDirContext.java:259)
   at org.alfresco.catalina.host.AVMHost.init(AVMHost.java:325)
   at org.alfresco.catalina.host.AVMHost.start(AVMHost.java:500)
   at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
   at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
   at org.apache.catalina.core.StandardService.start(StandardService.java:450)
   at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:551)
   … 6 more
Caused by: java.rmi.NotBoundException: authentication
   at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
   at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
   at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
   at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
   at sun.rmi.transport.Transport$1.run(Transport.java:159)
   at java.security.AccessController.doPrivileged(Native Method)
   at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
   at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
   at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
   at java.lang.Thread.run(Thread.java:619)
   at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
   at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
   at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
   at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
   at java.rmi.Naming.lookup(Naming.java:84)
   at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:156)
   at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:125)
   at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(RmiClientInterceptor.java:110)
   at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:66)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1059)
   at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:363)
   … 21 more
Erreure que pour le moment je n'arrive pas à corriger ni à correctement interpréter.

2- des difficultés de compréhension concernant la mise en oeuvre de wcm (dans la pratique) : j'arrive à suivre correctement le tutorial mais il et certain aujourd'hui que pour apprendre à développer un site web complet avec wcm, il va me falloir des documents plus complets (que je n'ai actuellement pas trouvé sur le web). En effet, le tuto part d'un architecture complète existante (architecture construite sur la base de jsp de ce que j'ai pu comprendre). Il n'y a pas d'explication sur la construction effective du template (comment préparer le code html ou autre…) ainsi que sur les obligations à avoir dans la préparation de ce template.

Voila quelques remarques à chauds concernant WCM.

Si vous avez plus d'info sur des tutos de mise en oeuvre un peu plus complet et éventuellement sur des modèles au format html (plutôt que jsp que je ne maîtrise pas du tout). J'ai découvert qu'il existe sur la forge d'alfresco un framework pouvant m'aider mais il n'y aucun téléchargement possible.

Je pense qu'alfresco est un super produit pouvant allez au delà de ce que fait Microsoft avec WSS mais avec Wcm (qui est pourtant en version stable) je dois avoué avoir été un peu refroidi.

Pour votre avis

Merci

Mathieu

Outcomes