From: "Ruben Reusser" Received: from headwire.com ([24.249.242.56] verified) by mail.obinary.com (CommuniGate Pro SMTP 5.1.10) with ESMTP id 14527327 for user-list@magnolia.info; Wed, 16 Jul 2008 22:54:59 +0200 Received: from [192.168.42.103] (account rr HELO [10.0.0.2]) by headwire.com (CommuniGate Pro SMTP 3.4.5) with ESMTP id 2788778 for user-list@magnolia.info; Wed, 16 Jul 2008 14:01:00 -0700 Message-ID: <487E6021.6010005@headwire.com> Date: Wed, 16 Jul 2008 13:54:57 -0700 User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: user-list@magnolia.info Subject: Re: [magnolia-user] Problem with magnolia-module-forum References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit I just went through a full checkout/build for the RC1 tag and the community modules. They seem to work except the documentation module (depending on an older version of workflow). I had to disable the tests (win vista) when building with maven in order for the build to proceed. in a new folder execute the following: > svn checkout http://svn.magnolia.info/svn/magnolia/tags/magnolia-3.6-rc1 . > mvn -Dmaven.test.skip=true install for each module you want to compile > svn checkout http://svn.magnolia.info/svn/modules/community/magnolia-module-dms/trunk magnolia-module-dms > cd magnolia-module-dms > mvn install I did a war import of the empty war into eclipse and then added each module jar file to the WEB-INF/lib directory. Some need some extra jar files to run (poll, scheduler, etc) - is there an easy way to get all the runtime jars for a module? On your log below, are you shut down all instances of tomcat and there is no other application running on port 8080? Ruben Adrian Butnaru wrote: > This is my error output when I am starting Magnolia with the new forum > jar. > > 16-jul-2008 21:40:45 org.apache.coyote.http11.Http11Protocol init > INFO: Initializing Coyote HTTP/1.1 on http-8080 > 16-jul-2008 21:40:45 org.apache.catalina.startup.Catalina load > INFO: Initialization processed in 478 ms > 16-jul-2008 21:40:46 org.apache.catalina.core.StandardService start > INFO: Starting service Catalina > 16-jul-2008 21:40:46 org.apache.catalina.core.StandardEngine start > INFO: Starting Servlet Engine: Apache Tomcat/6.0.16 > 16-jul-2008 21:40:46 org.apache.catalina.core.StandardContext > addApplicationLis > ener > INFO: The listener "listeners.ContextListener" is already configured > for this c > ntext. The duplicate definition has been ignored. > 16-jul-2008 21:40:46 org.apache.catalina.core.StandardContext > addApplicationLis > ener > INFO: The listener "listeners.SessionListener" is already configured > for this c > ntext. The duplicate definition has been ignored. > 16-jul-2008 21:40:46 org.apache.catalina.core.StandardContext > addApplicationLis > ener > INFO: The listener > "info.magnolia.cms.servlets.MgnlServletContextListener" is a > ready configured for this context. The duplicate definition has been > ignored. > log4j:WARN Continuable parsing error 29 and column 23 > log4j:WARN The content of element type "log4j:configuration" must > match "(rende > er*,appender*,(category|logger)*,root?,categoryFactory?)". > DEBUG info.magnolia.cms.servlets.MgnlServletContextListener > MgnlServletContext > istener.java(contextInitialized:195) 16.07.2008 21:40:47 rootPath is > D:/Apache > apache-tomcat-6.0.16 - cetle/webapps/magnoliaAuthor, webapp is > magnoliaAuthor > 16-jul-2008 21:40:47 org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > 16-jul-2008 21:40:47 org.apache.catalina.core.StandardContext start > SEVERE: Context [/magnoliaAuthor] startup failed due to previous errors > INFO info.magnolia.cms.beans.config.ShutdownManager > ShutdownManager.java(exec > te:128) 16.07.2008 21:40:47 Executing shutdown tasks > Shutting down Log4J > 16-jul-2008 21:40:48 org.apache.catalina.core.StandardContext > addApplicationLis > ener > INFO: The listener > "info.magnolia.cms.servlets.MgnlServletContextListener" is a > ready configured for this context. The duplicate definition has been > ignored. > log4j:WARN Continuable parsing error 29 and column 23 > log4j:WARN The content of element type "log4j:configuration" must > match "(rende > er*,appender*,(category|logger)*,root?,categoryFactory?)". > DEBUG info.magnolia.cms.servlets.MgnlServletContextListener > MgnlServletContext > istener.java(contextInitialized:195) 16.07.2008 21:40:48 rootPath is > D:/Apache > apache-tomcat-6.0.16 - cetle/webapps/magnoliaPublic, webapp is > magnoliaPublic > 16-jul-2008 21:40:49 org.apache.catalina.core.StandardContext start > SEVERE: Error listenerStart > 16-jul-2008 21:40:49 org.apache.catalina.core.StandardContext start > SEVERE: Context [/magnoliaPublic] startup failed due to previous errors > INFO info.magnolia.cms.beans.config.ShutdownManager > ShutdownManager.java(exec > te:128) 16.07.2008 21:40:49 Executing shutdown tasks > Shutting down Log4J > 16-jul-2008 21:40:49 org.apache.coyote.http11.Http11Protocol start > INFO: Starting Coyote HTTP/1.1 on http-8080 > 16-jul-2008 21:40:49 org.apache.jk.common.ChannelSocket init > INFO: JK: ajp13 listening on /0.0.0.0:8009 > 16-jul-2008 21:40:49 org.apache.jk.server.JkMain start > INFO: Jk running ID=0 time=0/30 config=null > 16-jul-2008 21:40:49 org.apache.catalina.startup.Catalina start > INFO: Server startup in 3407 ms > > Jan Haderka schreef: >> I'm sure it printed some error messages for you either on the update >> page or in the log files. >> Regards, >> Jan >> >> On Wed, 2008-07-16 at 21:20 +0200, Adrian Butnaru wrote: >> >>> Thanks Jan, >>> I quit not the installation of the shell module. >>> Wiki and Forum are very nice to have modules, but when I copy the >>> resulted jars into my magnolia instances I cannot go further than >>> thr update page. >>> Where is the problem? >>> >>> Regards, >>> Adrian >>> Jan Haderka schreef: >>> >>>> Hi Adrian, >>>> the reason svn update solved problem before was because Gregory fixed >>>> the dependencies in pom.xml which were not correct. This is not so in >>>> this case. pom.xml for shell module is perfectly valid. >>>> If you look at http://documentation.magnolia.info/modules.html you >>>> will >>>> find out that shell module depends on Magnolia 3.6+ and its pom.xml >>>> points to Magnolia 3.6-SNAPSHOT as its parent, while you are trying to >>>> compile it with having Magnolia 3.5.8 as a parent. Thus the >>>> compilation >>>> failure. To build the module, you need to build current trunk of >>>> Magnolia since version 3.6 was not released yet. >>>> >>>> And it tells you exactly what is wrong if you read the error properly: >>>> >>>>> :magnolia-project' not found in repository: Unable to download the >>>>> artifact from >>>>> any repository >>>>> >>>>> info.magnolia:magnolia-project:pom:3.6-SNAPSHOT >>>>> >>>>> >>>> Regards, >>>> Jan >>>> >>>> On Wed, 2008-07-16 at 19:44 +0200, Adrian Butnaru wrote: >>>> >>>>> Thnaks Gregory, >>>>> Worked! >>>>> But now I have the same problem with magnolia-module-shell. I >>>>> tried the same solution but it failed. >>>>> I paste here the result. >>>>> >>>>> D:\magnolia-3.5.8\magnolia-module-shell>mvn -e install >>>>> + Error stacktraces are turned on. >>>>> [INFO] Scanning for projects... >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [ERROR] FATAL ERROR >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [INFO] Error building POM (may not be this project's POM). >>>>> >>>>> >>>>> Project ID: null:magnolia-module-shell:jar:1.0-SNAPSHOT >>>>> >>>>> Reason: Cannot find parent: info.magnolia:magnolia-project for >>>>> project: null:mag >>>>> nolia-module-shell:jar:1.0-SNAPSHOT for project >>>>> null:magnolia-module-shell:jar:1 >>>>> .0-SNAPSHOT >>>>> >>>>> >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [INFO] Trace >>>>> org.apache.maven.reactor.MavenExecutionException: Cannot find >>>>> parent: info.magno >>>>> lia:magnolia-project for project: >>>>> null:magnolia-module-shell:jar:1.0-SNAPSHOT fo >>>>> r project null:magnolia-module-shell:jar:1.0-SNAPSHOT >>>>> at >>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:376) >>>>> at >>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:289) >>>>> at >>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) >>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) >>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>>>> Method) >>>>> at >>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >>>>> java:39) >>>>> at >>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >>>>> sorImpl.java:25) >>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>> at >>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>>>> at >>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>>>> at >>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>>>> >>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>>>> Caused by: org.apache.maven.project.ProjectBuildingException: >>>>> Cannot find parent >>>>> : info.magnolia:magnolia-project for project: >>>>> null:magnolia-module-shell:jar:1.0 >>>>> -SNAPSHOT for project null:magnolia-module-shell:jar:1.0-SNAPSHOT >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D >>>>> efaultMavenProjectBuilder.java:1259) >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def >>>>> aultMavenProjectBuilder.java:745) >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi >>>>> leInternal(DefaultMavenProjectBuilder.java:476) >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave >>>>> nProjectBuilder.java:197) >>>>> at >>>>> org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:548) >>>>> at >>>>> org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:458) >>>>> at >>>>> org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:362) >>>>> ... 11 more >>>>> Caused by: org.apache.maven.project.ProjectBuildingException: POM >>>>> 'info.magnolia >>>>> :magnolia-project' not found in repository: Unable to download the >>>>> artifact from >>>>> any repository >>>>> >>>>> info.magnolia:magnolia-project:pom:3.6-SNAPSHOT >>>>> >>>>> from the specified remote repositories: >>>>> central (http://repo1.maven.org/maven2) >>>>> for project info.magnolia:magnolia-project >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo >>>>> sitory(DefaultMavenProjectBuilder.java:571) >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D >>>>> efaultMavenProjectBuilder.java:1255) >>>>> ... 17 more >>>>> Caused by: >>>>> org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable >>>>> to download the artifact from any repository >>>>> >>>>> info.magnolia:magnolia-project:pom:3.6-SNAPSHOT >>>>> >>>>> from the specified remote repositories: >>>>> central (http://repo1.maven.org/maven2) >>>>> >>>>> at >>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De >>>>> faultArtifactResolver.java:206) >>>>> at >>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De >>>>> faultArtifactResolver.java:73) >>>>> at >>>>> org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo >>>>> sitory(DefaultMavenProjectBuilder.java:524) >>>>> ... 18 more >>>>> Caused by: org.apache.maven.wagon.ResourceDoesNotExistException: >>>>> Unable to downl >>>>> oad the artifact from any repository >>>>> at >>>>> org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def >>>>> aultWagonManager.java:324) >>>>> at >>>>> org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De >>>>> faultArtifactResolver.java:194) >>>>> ... 20 more >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> [INFO] Total time: < 1 second >>>>> [INFO] Finished at: Wed Jul 16 19:42:31 CEST 2008 >>>>> [INFO] Final Memory: 1M/4M >>>>> [INFO] >>>>> ------------------------------------------------------------------------ >>>>> >>>>> Grégory Joseph schreef: >>>>> >>>>>> svn update >>>>>> >>>>>> On Jul 16, 2008, at 7:26 PM, Adrian Butnaru wrote: >>>>>> >>>>>> >>>>>>> Hi, >>>>>>> I checked out the forum module (also poll, pur, wiki module). >>>>>>> When I try to build with maven I receive the following result. >>>>>>> What am I do wrong? >>>>>>> Can anybody help? >>>>>>> >>>>>>> Thanks, >>>>>>> Adrian >>>>>>> >>>>>>> D:\magnolia-3.5.8\magnolia-module-forum>mvn -e install >>>>>>> + Error stacktraces are turned on. >>>>>>> [INFO] Scanning for projects... >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [INFO] Building magnolia-module-forum >>>>>>> [INFO] task-segment: [install] >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [INFO] [enforcer:enforce {execution: enforce}] >>>>>>> [INFO] [setproperty:set-property {execution: currentDate}] >>>>>>> [INFO] property magnoliaCurrentDate set to value 16. juli 2008 >>>>>>> (scope: project) >>>>>>> [INFO] property magnoliaNiceVersion set to value 1.0 (Snapshot: >>>>>>> 16.07.2008 19:23 >>>>>>> :14) (scope: project) >>>>>>> [INFO] property magnoliaReleaseDate set to value 16. juli 2008 >>>>>>> (scope: project) >>>>>>> [INFO] Setting property: classpath.resource.loader.class => >>>>>>> 'org.codehaus.plexus >>>>>>> .velocity.ContextClassLoaderResourceLoader'. >>>>>>> [INFO] Setting property: velocimacro.messages.on => 'false'. >>>>>>> [INFO] Setting property: resource.loader => 'classpath'. >>>>>>> [INFO] Setting property: resource.manager.logwhenfound => 'false'. >>>>>>> [INFO] [remote-resources:process {execution: default}] >>>>>>> [INFO] [resources:resources] >>>>>>> [INFO] Using encoding: 'UTF-8' to copy filtered resources. >>>>>>> [INFO] [compiler:compile] >>>>>>> [INFO] Nothing to compile - all classes are up to date >>>>>>> [INFO] [compiler:testCompile {execution: compile-tests}] >>>>>>> [INFO] Compiling 4 source files to >>>>>>> D:\magnolia-3.5.8\magnolia-module-forum\targe >>>>>>> t\test-classes >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [ERROR] BUILD FAILURE >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [INFO] Compilation failure >>>>>>> >>>>>>> D:\magnolia-3.5.8\magnolia-module-forum\src\test\java\info\magnolia\module\forum >>>>>>> >>>>>>> \DefaultForumManagerTest.java:[52,28] cannot find symbol >>>>>>> symbol : class SingleJCRSessionSystemContext >>>>>>> location: package info.magnolia.context >>>>>>> >>>>>>> D:\magnolia-3.5.8\magnolia-module-forum\src\test\java\info\magnolia\module\forum >>>>>>> >>>>>>> \DefaultForumManagerTest.java:[130,66] cannot find symbol >>>>>>> symbol : class SingleJCRSessionSystemContext >>>>>>> location: class info.magnolia.module.forum.DefaultForumManagerTest >>>>>>> >>>>>>> >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [INFO] Trace >>>>>>> org.apache.maven.BuildFailureException: Compilation failure >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa >>>>>>> >>>>>>> ultLifecycleExecutor.java:560) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi >>>>>>> >>>>>>> fecycle(DefaultLifecycleExecutor.java:480) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau >>>>>>> >>>>>>> ltLifecycleExecutor.java:459) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan >>>>>>> >>>>>>> dleFailures(DefaultLifecycleExecutor.java:311) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen >>>>>>> >>>>>>> ts(DefaultLifecycleExecutor.java:278) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi >>>>>>> >>>>>>> fecycleExecutor.java:143) >>>>>>> at >>>>>>> org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:333) >>>>>>> at >>>>>>> org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126) >>>>>>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:282) >>>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native >>>>>>> Method) >>>>>>> at >>>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. >>>>>>> >>>>>>> java:39) >>>>>>> at >>>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces >>>>>>> >>>>>>> sorImpl.java:25) >>>>>>> at java.lang.reflect.Method.invoke(Method.java:597) >>>>>>> at >>>>>>> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) >>>>>>> at >>>>>>> org.codehaus.classworlds.Launcher.launch(Launcher.java:255) >>>>>>> at >>>>>>> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) >>>>>>> >>>>>>> >>>>>>> at org.codehaus.classworlds.Launcher.main(Launcher.java:375) >>>>>>> Caused by: org.apache.maven.plugin.CompilationFailureException: >>>>>>> Compilation fail >>>>>>> ure >>>>>>> at >>>>>>> org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompiler >>>>>>> >>>>>>> Mojo.java:516) >>>>>>> at >>>>>>> org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.jav >>>>>>> >>>>>>> a:102) >>>>>>> at >>>>>>> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi >>>>>>> >>>>>>> nManager.java:447) >>>>>>> at >>>>>>> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa >>>>>>> >>>>>>> ultLifecycleExecutor.java:539) >>>>>>> ... 16 more >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> [INFO] Total time: 5 seconds >>>>>>> [INFO] Finished at: Wed Jul 16 19:23:17 CEST 2008 >>>>>>> [INFO] Final Memory: 18M/32M >>>>>>> [INFO] >>>>>>> ------------------------------------------------------------------------ >>>>>>> >>>>>>> >>>>>>> ---------------------------------------------------------------- >>>>>>> for list details see >>>>>>> http://documentation.magnolia.info/ >>>>>>> ---------------------------------------------------------------- >>>>>>> >>>>>> ---------------------------------------------------------------- >>>>>> for list details see >>>>>> http://documentation.magnolia.info/ >>>>>> ---------------------------------------------------------------- >>>>>> >>>>>> >>>>>> >>>>> ---------------------------------------------------------------- >>>>> for list details see >>>>> http://documentation.magnolia.info/ >>>>> ---------------------------------------------------------------- >>>>> >>>> ---------------------------------------------------------------- >>>> for list details see >>>> http://documentation.magnolia.info/ >>>> ---------------------------------------------------------------- >>>> >>>> >>>> >>> ---------------------------------------------------------------- >>> for list details see >>> http://documentation.magnolia.info/ >>> ---------------------------------------------------------------- >>> >> >> >> ---------------------------------------------------------------- >> for list details see >> http://documentation.magnolia.info/ >> ---------------------------------------------------------------- >> >> >> > > > ---------------------------------------------------------------- > for list details see > http://documentation.magnolia.info/ > ---------------------------------------------------------------- -- ================================================================= java consulting - swing, web UI, hibernate, cms, magnolia, jcr flash consulting - openlaszlo, flex headwire.com, inc ++1 949 595 4365