problem with dotcms 2.5 run in ecplise

70 views
Skip to first unread message

Wong PF

unread,
Oct 24, 2013, 1:19:07 PM10/24/13
to dot...@googlegroups.com
I download the source from https://github.com/dotcms/dotcms


How can i run the dotcms in ecplise

After run in the last setup, i get with this 

Buildfile: E:\java\dotCMS\build.xml
  [taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
check-src-build:
prepare:
    [mkdir] Created dir: E:\java\dist
    [mkdir] Created dir: E:\java\dotCMS\build
    [mkdir] Created dir: E:\java\dotCMS\build\classes
    [mkdir] Created dir: E:\java\dotCMS\build\lib
compile:
    [javac] E:\java\dotCMS\build.xml:138: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 2376 source files to E:\java\dotCMS\build\classes
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
     [copy] Copying 1 file to E:\java\dotCMS\build\classes\com\dotmarketing\beans
     [copy] Copying 1 file to E:\java\dotCMS\build\classes\com\dotmarketing\beans
     [copy] Copying 1 file to E:\java\dotCMS\build\classes\com\dotmarketing\beans
     [copy] Copying 1 file to E:\java\dotCMS\build\classes\com\dotmarketing\beans
  [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
  [copydir] Copying 4 files to E:\java\dotCMS\build\classes\com\dotmarketing\startup\runonce\sql
     [copy] Copying 2 files to E:\java\dotCMS\build\classes\org\apache\velocity\runtime\defaults
check-src-build:
prepare:
compile:
    [javac] E:\java\dotCMS\build.xml:138: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to E:\java\dotCMS\build\classes
  [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
buildseqsql:
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
buildmXsql:
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
buildsql:
check-src-build:
prepare:
compile:
    [javac] E:\java\dotCMS\build.xml:138: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
    [javac] Compiling 1 source file to E:\java\dotCMS\build\classes
  [copydir] DEPRECATED - The copydir task is deprecated.  Use copy instead.
buildmXsql:
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
     [copy] Copying 1 file to E:\java\dotCMS\dotCMS\WEB-INF\classes
BUILD SUCCESSFUL
Total time: 26 seconds

Jason Tesser

unread,
Oct 24, 2013, 1:31:51 PM10/24/13
to dot...@googlegroups.com
well if you followed everything you should have it in your debug configurations in Eclipse like any other project you debug in Eclipse 

Wong PF

unread,
Oct 26, 2013, 2:02:43 PM10/26/13
to dot...@googlegroups.com
After run the ant build, i run the dotCMS, i get the following error

java.lang.ClassNotFoundException: org.apache.catalina.startup.Catalina
at java.net.URLClassLoader$1.run(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:216)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:391)

LORDs_diakonos於 2013年10月25日星期五UTC+8上午1時31分51秒寫道:

Jason Tesser

unread,
Oct 26, 2013, 7:50:44 PM10/26/13
to dot...@googlegroups.com
I would go back and make sure you are following exactly our steps in the documentation. 

I am not sure why you are running ant build

The error indicate Eclipse is not building your stuff. 

Thanks,
Jason S. Tesser
Director, Product Development, Lead Engineer  
dotcms, Inc.
T: 305.858.1422 x7003
http://twitter.com/dotCMS
www.dotcms.com


--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dotcms+un...@googlegroups.com.
To post to this group, send email to dot...@googlegroups.com.
Visit this group at http://groups.google.com/group/dotcms.
For more options, visit https://groups.google.com/groups/opt_out.

Wong PF

unread,
Oct 27, 2013, 9:54:03 AM10/27/13
to dot...@googlegroups.com, jason....@dotcms.com
I reset the setting in the run configuration, then it works!

Jason Tesser於 2013年10月27日星期日UTC+8上午7時50分44秒寫道:
Reply all
Reply to author
Forward
0 new messages