Hi,
I have an issue creating dotCMS project in Eclipse.
To clone the project, this is what I did:
To create the new project, I followed the documentation line by line.
Everything went well until just before running ant command: "ant compile buildsql buildmXsql"
When I tried to run that ant command, I got no error BUT there is this line:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
and a couple of warnings, which are also shown in the documentation screenshot, so I believe the warnings are normal.
This is the part that I do not understand......
It seems like every jar necessary should have been included..
First of all, just like Maria said, there is no ant-contrib jar in dotCMS/WEB-INF/lib....
Download Apache Ant 1.9.3, set ANT_HOME env var, also set this to PATH so it is available to be called.
Build ant-contrib via "ant" and it returns with BUILD SUCCESSFUL and I can see ant-contrib.jar being created.
Taking this .jar to dotCMS/WEB-INF/lib, run "ant compile buildsql buildmXsql" again, it still shows the same result:
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
This time, I went ahead and do what Maria did, replacing:
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
with:
<taskdef resource="net/sf/antcontrib/antcontrib.properties">
<classpath>
<pathelement location="${dotcms.root.dir}/dotCMS/WEB-INF/lib/ant-contrib-0.6.jar"/>
</classpath>
</taskdef>
hardcoding the path of the .jar....
Doing so, I am able to eliminate [taskdef] error and managed to get the same ant build result as shown in the documentation screenshot....
However, my database is still empty..........
Launching tomcat throws me an error:
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
My question is this, what is this "ant compile buildsql buildmXsql" command supposed to do?
compile - I assume this will compile the source code into classes in /dotCMS/build/classes (as described by the installation doc)
buildsql - It seems like this target is only used to copy correct sql files into dotCMS/dotCMS/WEB-INF/classes
buildmXsql - This.... I am not sure what this is doing...... Is this the population of DB table??
What is antlib.xml?
How do I get ant-contrib installed properly without modifying build.xml? I mean, even after modification, it still does not work the way it is described...
I do not know what I did wrong...... I followed the tutorial line by line, doing it 3x from fresh copy....
Any inputs?
Regards,
Aric