Setting Up A Development Environment In Eclipse

175 views
Skip to first unread message

David Higginbotham

unread,
Jul 30, 2012, 2:45:19 PM7/30/12
to dot...@googlegroups.com
Hi.

I am trying set up my Eclipse environment to run the dotCms 2.1 tag. 

I followed the instructions on page http://dotcms.com/docs/2.0/SettingUpADevelopmentEnvironmentInEclipse. When I attempt to run the java app I get the following error:

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

I have org.apache.catalina.startup.Bootstrap in the Main class of the debug configuration. 

Here are my vm arguments, where 'dotCms 2.1 8690ec257a Tag' is my project name. 

-Xmx768M 
-Dfile.encoding=UTF8  
-Duser.timezone=GMT  
-Djava.endorsed.dirs="/dotCms 2.1 8690ec257a Tag/tomcat/common/endorsed"  
-Dcatalina.base="/dotCms 2.1 8690ec257a Tag/tomcat"  
-Dcatalina.home="/dotCms 2.1 8690ec257a Tag/tomcat" 
-Djava.io.tmpdir="/dotCms 2.1 8690ec257a Tag/tomcat/temp"

The user entry points to the bootstrap jar in the project's tomcat/bin folder.

Any ideas ?

Thanks,

David

Jorge Urdaneta

unread,
Jul 30, 2012, 3:31:56 PM7/30/12
to dot...@googlegroups.com
I think you're missing bootstrap.jar on classpath for "user entries"
check again those instructions

2012/7/30 David Higginbotham <davidrayhi...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "dotCMS User Group" group.
To post to this group, send email to dot...@googlegroups.com.
To unsubscribe from this group, send email to dotcms+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/dotcms?hl=en.



--

Jorge Urdaneta
dotcms support team

David Higginbotham

unread,
Jul 31, 2012, 10:06:17 AM7/31/12
to dot...@googlegroups.com
tomcat/lib is referenced in the project. That's where the catalina jar is at.

Jorge Urdaneta

unread,
Jul 31, 2012, 10:07:58 AM7/31/12
to dot...@googlegroups.com
bootstrap.jar is on tomcat/bin

2012/7/31 David Higginbotham <davidrayhi...@gmail.com>

David Higginbotham

unread,
Jul 31, 2012, 10:12:11 AM7/31/12
to dot...@googlegroups.com
Yes, I've referenced the bootstrap jar in the debug configuration. I noticed a difference in the documentation between the screenshot and the list of vm args. In the screenshot there is jaas referenced. Do I need to include that ?

Jorge Urdaneta

unread,
Jul 31, 2012, 10:58:42 AM7/31/12
to dot...@googlegroups.com
See my current configuration on attached images

2012/7/31 David Higginbotham <davidrayhi...@gmail.com>
Screenshot from 2012-07-31 10:29:27.png
Screenshot from 2012-07-31 10:30:02.png
Screenshot from 2012-07-31 10:30:14.png
Reply all
Reply to author
Forward
0 new messages