Debugging Alfresco Tomcat with Eclipse

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2008 05:41 AM
I want to setup the Debugging for my Alfresco project with Eclipse, how can i do this?
- Labels:
-
Archive

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-26-2008 10:55 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-15-2009 11:02 PM
I have followed the steps that are given in the link but somehow its not working for me it is giving me Exception like
ERROR [catalina.startup.Bootstrap] Class loader creation threw exception
java.lang.NoSuchFieldError: IS_DIR
at org.apache.catalina.startup.Bootstrap.createClassLoader(Bootstrap.java:173)
at org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java:98)
at org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:213)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:410)
i am using Eclipse Europa and i am running my alfresco using the Build file, so how can i dubug my Alfresco Application???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-16-2009 07:10 AM
Here is the simple steps to follow,
For debugging the eclipse envt…
1) Open Catalina.bat [C:\Alfresco\tomcat\bin], find “DEBUG_OPTS=” and add following line..
set DEBUG_OPTS= -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888
2) Come to Eclipse ->
a)Open debug perspective[Windows->open perspective ->Other->Debug]
b)Run-> Open Debug Dialog -> Remote Java Application -> New configuration ->
c)Select the project -> Enter the port number as debug port in the Catalina.bat (8888)
3) Start Alfresco server.
4) Put the breakpoint in the file
5) Start debug.
6) Use the Alfresco to get to the debug mode..
Thanks
Kayan

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-28-2009 11:05 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2009 11:48 PM
I try this thing but it is not working.It give the following error:
ERROR: JDWP unable to get necessary JVMTI capabilities. ["debugInit.c",L279]
Please help me.
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 12:42 PM
Thanks,
Raja

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-01-2009 01:00 PM
Thanks,
Raja
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2010 06:22 AM
I am trying to debug in eclipse but I cant.
I have my code base setup in eclipse and I can build and run alfresco from eclipse.
I tried the above step set the DEBUG as
In catalina.sh i did
# OS specific support. $var _must_ be set to either true or false.
cygwin=false
os400=false
darwin=false
case "`uname`" in
CYGWIN*) cygwin=true;;
OS400*) os400=true;;
Darwin*) darwin=true;;
esac
set DEBUG_OPTS= -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8888
# resolve links - $0 may be a softlink
PRG="$0"
(2) In eclipse I set the debug configuration i set the port 8888. but when I debug I am getting com.sun.jdi.connect.spi.ClosedConnectionException error message.
Also i tried with 8080 port where tomcat is running. Still it is nt working for me.
Pls share ur ideas if any.
Thanks
PP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-02-2010 07:30 AM
Make sure alfresco is started before you start debugging and remains running.
If you are, for example debugging a unit test that starts and stops alfresco then debug it locally not remotely.
