Sep 22, 2008 12:26 PM
Debugging Clearspace 2.5 running under Tomcat 6.0 using Eclipse
I am new to these environments so I apologize if terminology is not all there. I am trying to set up a debug environment for Clearspace running under TomCat on my dev box. I am using Eclipse as my IDE.
I am running all this on a Windows XP box with 2G RAM.
Clearspace 2.5
Eclipse 3.4
Tomcat 6.0 server is running embedded in Eclipse
Maven2 plugin for builds
I can build clearspace plugin jars with no problem. I am trying to set this environment so I can do debugging. I followed instructions posted in other discussions. I tried to set up the TomCat server for debugging. It has the following JVM arguments:
-Dcatalina.base="C:\Program Files\Apache Software Foundation\Tomcat 6.0" -Dcatalina.home="C:\Program Files\Apache Software Foundation\Tomcat 6.0" -Dwtp.deploy="C:\Program Files\Apache Software Foundation\Tomcat 6.0\wtpwebapps" -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed"
-Djive.ws.disabled=true
-Xdebug
-Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m
When I try to start this server it hangs and never starts even if I set a long timeout. If I set up the server like below with no debug options it works fine:
-Dcatalina.base="C:\Program Files\Apache Software Foundation\Tomcat 6.0" -Dcatalina.home="C:\Program Files\Apache Software Foundation\Tomcat 6.0" -Dwtp.deploy="C:\Program Files\Apache Software Foundation\Tomcat 6.0\wtpwebapps" -Djava.endorsed.dirs="C:\Program Files\Apache Software Foundation\Tomcat 6.0\endorsed"
-Djive.ws.disabled=true
-XX:MaxPermSize=512m
-Xms512m
-Xmx1024m
Here is the console log so you can see where it hangs. BTW the CPU maxes at 100% while this runs:
Listening for transport dt_shmem at address: 8000
Sep 22, 2008 2:06:16 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jre1.6.0_07\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Windows Resource Kits\Tools\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\DOIM;C:\Program Files\Tumbleweed\Desktop Validator\;C:\PROGRA~1\GRADKE~1\DBSIGN~1\lib;C:\Program Files\GRADKE~1\DBSIGN~1\lib;C:\Program Files\GRADKE~1\DBSIGN~1\lib;C:\Program Files\ActivCard\ActivCard Gold\Resources;C:\Program Files\Microsoft SQL Server\80\Tools\BINN;C:\Program Files\ApproveIt\ThirdParty\Bin\;C:\Program Files\ApproveIt\;C:\Program Files\ActivIdentity\ActivClient\;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Microsoft SQL Server\80\Tools\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\PrivateAssemblies\;C:\Downloads\Maven\apache-maven-2.0.9\bin
Sep 22, 2008 2:06:16 PM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Sep 22, 2008 2:06:16 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 668 ms
Sep 22, 2008 2:06:16 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Sep 22, 2008 2:06:16 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Sep 22, 2008 2:06:16 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive clearspace_community.war
Sep 22, 2008 2:06:18 PM com.jivesoftware.community.JiveGlobals getSetupProperties
INFO: jiveHome set from jive_init.xml to: C:\Program Files\Apache Software Foundation\jiveHome
14:06:18,888 [main] INFO init - jiveHome set to C:\Program Files\Apache Software Foundation\jiveHome
Setting logging threshold to ERROR
2008-09-22 14:06:20.779 Oracle Coherence 3.3.1/389 <Info> (thread=main, member=n/a): Loaded operational configuration from resource "jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/clearspace_community/WEB-INF/lib/coherence.jar!/tangosol-coherence.xml"
2008-09-22 14:06:20.795 Oracle Coherence 3.3.1/389 <Info> (thread=main, member=n/a): Loaded operational overrides from resource "jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/clearspace_community/WEB-INF/lib/coherence.jar!/tangosol-coherence-override-prod.xml"
2008-09-22 14:06:20.795 Oracle Coherence 3.3.1/389 <Info> (thread=main, member=n/a): Loaded operational overrides from resource "jar:file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/clearspace_community/WEB-INF/lib/clearspace_community-2.5.0.rc.jar!/tangosol-coherence-override.xml"
Oracle Coherence Version 3.3.1/389
Enterprise Edition: Production mode
Copyright (c) 2000-2007 Oracle. All rights reserved.
2008-09-22 14:06:20.966 Oracle Coherence EE 3.3.1/389 <Info> (thread=main, member=n/a): Loaded cache configuration from resource "file:/C:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/clearspace_community/WEB-INF/classes/coherence-cache-config.xml"
Sep 22, 2008 2:06:21 PM com.jivesoftware.community.license.ClearspaceLicenseManager init
SEVERE: The "jive.license" license file was not found, evaluation mode will be used
Sep 22, 2008 2:06:21 PM com.jivesoftware.community.license.ClearspaceLicenseManager initialize
INFO: Using license information from local property (jive_startup.xml)
Sep 22, 2008 2:06:21 PM com.jivesoftware.community.license.ClearspaceLicenseManager initialize
WARNING: Initialization with a license file has failed, initializing in evaluation mode.
Sep 22, 2008 2:06:21 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Sep 22, 2008 2:07:26 PM com.jivesoftware.community.license.ClearspaceLicenseManager init
WARNING: Already initialized, call destroy()
Any help would be greatly appreciated.