Re: Problem building jahia from source
Serge Huber <[email protected]> Wed, 19 Dec 2007 16:29:46 +0100
| Newsgroups | gmane.comp.cms.jahia.devel |
|---|---|
| Message-ID | <[email protected]> |
I suggest you use our guide here : = https://www.jahia.net/jahia/webdav/site/jahia_net/shared/Documentation/How_= to_use_Eclipse_for_Jahia_development.pdf Even if you don't use Eclipse (we actually use IDEA), just follow all = the steps for Maven in there. I am sure you have missed a few :) Also, please note that Tomcat 6 is not yet supported. = Regards, Serge Huber. Vasko Gjurovski a =E9crit : > I have managed to buld jahi a but when I deploy it in tomcat I get = > this error: > > SEVERE: Error deploying web application archive jahia.war > java.lang.NoClassDefFoundError: = > org/apache/jetspeed/engine/JetspeedEngineConstants > at java.lang.ClassLoader.defineClass1(Native Method) > at java.lang.ClassLoader.defineClass(ClassLoader.java:620) > at = > java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) > at org.apache.catalina.loader.WebappClassLoader.findClassInternal = > (WebappClassLoader.java:1847) > at = > org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.= java:873) > at = > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.= java:1326) > at = > org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.= java:1205) > at = > org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java= :1068) > at org.apache.catalina.core.StandardWrapper.load = > (StandardWrapper.java:966) > at = > org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.ja= va:3956) > at = > org.apache.catalina.core.StandardContext.start(StandardContext.java:4230) > at org.apache.catalina.core.ContainerBase.addChildInternal = > (ContainerBase.java:760) > at = > org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) > at = > org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544) > at org.apache.catalina.startup.HostConfig.deployWAR = > (HostConfig.java:825) > at = > org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:714) > at = > org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:490) > at org.apache.catalina.startup.HostConfig.start (HostConfig.java:1138) > at = > org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311) > at = > org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSup= port.java:120) > at org.apache.catalina.core.ContainerBase.start = > (ContainerBase.java:1022) > at org.apache.catalina.core.StandardHost.start(StandardHost.java:736) > at = > org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014) > at org.apache.catalina.core.StandardEngine.start = > (StandardEngine.java:443) > at = > org.apache.catalina.core.StandardService.start(StandardService.java:448) > at = > org.apache.catalina.core.StandardServer.start(StandardServer.java:700) > at org.apache.catalina.startup.Catalina.start (Catalina.java:552) > 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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295) > at org.apache.catalina.startup.Bootstrap.main (Bootstrap.java:433) > > jetspeed wrong version? > > On Dec 19, 2007 3:11 PM, Vasko Gjurovski <[email protected] = > <mailto:[email protected]>> wrote: > > yeap... am sega se obiduvam da ti ja napravam Netbeans Project za > da mozesh polesno da rabotehs.. ;) > > > On Dec 19, 2007 3:08 PM, dime Filipov < [email protected] > <mailto:[email protected]>> wrote: > > So sakas da kazis deka a izbilda? :) > --- Vasko Gjurovski <[email protected] > <mailto:[email protected]>> wrote: > > > Thanks for the hint.. should have thought of that.. > > :) That solved my > > problem... > > > > On Dec 18, 2007 4:46 PM, Serge Huber > > <[email protected] <mailto:[email protected]>> wrote: > > > > > > > > Hi Vasko, > > > > > > Are you using JDK 6 ? It doesn't currently work > > for compiling Jahia. You > > > must use JDK 5. > > > > > > We are working on Maven 2 integration that will > > solve this issue. > > > > > > Regards, > > > Serge Huber. > > > > > > Vasko Gjurovski a =E9crit : > > > > Hi all, > > > > > > > > During build with maven i had the folowing > > problem: > > > > > > > > >> Unable to obtain goal [allBuild] > > > > >> Error parsing project.xml > > > > > > 'D:\NetBeansWorkspace\jahia\jahia\core\project.xml' > > > > >> ParseError at [row,col]:[1121,34] > > > > Message: The entity "jetspeed-version" was > > referenced, but not declared. > > > > > > > > then I realized that the problem was with > > finding the entity > > > > "jetspeed-version" defined in the project.xml, > > or to be more precise > > > > the locator.ent file was not been loaded (I do > > not know the reason for > > > > that). After copying all the entities from the > > locator.ent file into > > > > the project.xml file the entity was found, but > > there was a new > > > > problem, this time with the name of the jas > > dependencies from > > > > jetspeed. The artefacts were getting names like > > > > > > > org.apache.portals.jetspeed-2:jetspeed-sso:2.1-dev2.1-dev:jar > > (NOTICE > > > > THE VERSION PARAMETER). And of course, the jars > > were not found on the > > > > repository servers. The I manualy set-ed the > > version of the jetspeed > > > > libs to 2.1-dev and the download was successful. > > > > > > > > But then I got the folowing error: > > > > > > > > Errors stack : > > > > >> Unable to obtain goal [allBuild] > > > > >> File...... > > file:/D:/NetBeansWorkspace/jahia/jahia/maven.xml > > > > >> Element... maven:reactor > > > > >> Line...... 23 > > > > >> Column.... 40 > > > > >> Unable to obtain goal [jahia:war] > > > > >> File...... file:/C:/Documents and > > > > > > > Settings/user1/.maven/cache/maven- java-plugin-1.6.1/plugin.jelly > > > > >> Element... ant:javac > > > > >> Line...... 94 > > > > >> Column.... 48 > > > > >> Compile failed; see the compiler error output > > for details. > > > > > > > > Exception stack traces : > > > > > > org.apache.maven.werkz.UnattainableGoalException: > > Unable to obtain > > > > goal [allBuild] > > > > at > > org.apache.maven.werkz.Goal.fire(Goal.java:698) > > > > at > > org.apache.maven.werkz.Goal.attain(Goal.java:623) > > > > at > > > > > > > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.j= ava > > > :712) > > > > at > > > > > > > org.apache.maven.MavenSession.attainGoals(MavenSession.java:265) > > > > at > > org.apache.maven.cli.App.doMain(App.java:307) > > > > at > > org.apache.maven.cli.App.main(App.java:217) > > > > 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 > > com.werken.forehead.Forehead.run(Forehead.java :551) > > > > at > > com.werken.forehead.Forehead.main(Forehead.java:581) > > > > Caused by: > > org.apache.commons.jelly.JellyTagException : > > > > > > > file:/D:/NetBeansWorkspace/jahia/jahia/maven.xml:23:40: > > <maven:re > > > > actor> Reactor subproject failure occurred > > > > at > > > > > > > org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.jav= a:380) > > > > at > > org.apache.commons.jelly.impl.TagScript.run > > > > (TagScript.java:250) > > > > at > > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > > > > at > > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( > > > MavenGoalTag.java:83) > > > > at > > > > > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag$MavenGoalAction.pe= rformAction > > > > > (MavenGoalTag.java:116) > > > > at > > org.apache.maven.werkz.Goal.fire(Goal.java:691) > > > > ... 11 more > > > > Caused by: > > org.apache.maven.werkz.UnattainableGoalException : > > Unable to > > > > obtain goal [jahia:war] > > > > at > > org.apache.maven.werkz.Goal.fire(Goal.java:698) > > > > at > > org.apache.maven.werkz.Goal.attain(Goal.java :623) > > > > at > > > > > > > org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.j= ava > > > :712) > > > > at > > org.apache.maven.MavenSession.attainGoals > > > > (MavenSession.java:265) > > > > at > > > > > > > org.apache.maven.jelly.tags.maven.ReactorTag.doTag(ReactorTag.jav= a:370) > > > > ... 16 more > > > > Caused by: > > org.apache.commons.jelly.JellyTagException: > > > > file:/C:/Documents and > > Settings/user1/.maven/cache/maven-java-plu > > > > gin-1.6.1/plugin.jelly:94:48: <ant:javac> > > Compile failed; see the > > > > compiler error output for details. > > > > at > > > > > > > org.apache.commons.jelly.impl.TagScript.handleException(TagScript= .java > > > :681) > > > > at > > org.apache.commons.jelly.impl.TagScript.run > > > > (TagScript.java:262) > > > > at > > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:95) > > > > at > > > > > > > org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:18= 6) > > > > at > > org.apache.commons.jelly.tags.core.WhenTag.doTag > > > > (WhenTag.java:46) > > > > at > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java > > > :250) > > > > at > > > > > > > org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java > :95) > > > > at > > org.apache.commons.jelly.TagSupport.invokeBody > > > > (TagSupport.java:186) > > > > at > > > > > > > org.apache.commons.jelly.tags.core.ChooseTag.doTag > (ChooseTag.java:38) > > > > at > > > org.apache.commons.jelly.impl.TagScript.run(TagScript.java > > > :250) > > > > at > > org.apache.commons.jelly.impl.ScriptBlock.run > > > > (ScriptBlock.java:95) > > > > at > > > > > > > org.apache.maven.jelly.tags.werkz.MavenGoalTag.runBodyTag( > > > MavenGoalTag.java:83) > > > =3D=3D=3D message truncated =3D=3D=3D> > _______________________________________________ > > dev_list mailing list > > [email protected] <mailto:[email protected]> > > > http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list > > > > > > = > ________________________________________________________________= ____________________ > Looking for last minute shopping deals? > Find them fast with Yahoo! Search. > http://tools.search.yahoo.com/newsearch/category.php?category=3D= shopping > _______________________________________________ > dev_list mailing list > [email protected] <mailto:[email protected]> > http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list > > > > ------------------------------------------------------------------------ > > _______________________________________________ > dev_list mailing list > [email protected] > http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list > = > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. = > Version: 7.5.503 / Virus Database: 269.17.4/1189 - Release Date: 12/18/20= 07 9:40 PM > = _______________________________________________ dev_list mailing list [email protected] http://lists.jahia.org/cgi-bin/mailman/listinfo/dev_list