It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Starting JIRA and JIRA Development

wajdhaikal Feb 20, 2012

Hi all,

I reached this point (have successfully build JIRA source and a WAR file is generaed).

Now as documentation says it should run under tomcat, I did install tomcat 6.0.

I can not understand then what I need exactly I have IDEA IDE , I want to be able to run JIRA in debugging mode and modify the code and re-run JIRA to test the change.

can you please send me a good guidline to ahcieve my goal. I have also eclips indiego developers edition and I insalled all web components for servers like tomcat.

Can I open JIRA project wih source and start running it.

1 answer

1 accepted

0 votes
Answer accepted
Andy Brook (DEV) Feb 20, 2012

Debugging JIRA from your IDE means setting some VM arguments. Once done, you can create a remote socket target on the port you gave (as per link). Your local plugin project can have source code associated with it, deploy a plugin, set a breakpoint, connect.

You can also debug with Atlassian SDK embedded JIRA: https://developer.atlassian.com/display/DOCS/atlas-debug.

If you really want to Add a Tomcat to Eclipse you will need to configure it similarly.

wajdhaikal Feb 20, 2012

Its ok now, but I need more clarification here, do I need both the source code that was used to generate the .war file for debugging, and in the time of debugging JIRA must be running under tomcate?, the installation files (extracted WAR) and the source files are in different locations.

Andy Brook (DEV) Feb 20, 2012

If you are making changes, yes. Though, Unless you're going down a big customization effort, why are you even compiling everything? Just get the standalone JIRA download that includes tomcat (or the WAR download), which you havent needed to build, and get the source zip, exploded locally, just add that to the Eclipse (/other) source lookup tree.

wajdhaikal Feb 20, 2012

Thanks Andy the picture now is more clear, do u mean run JIRA alone and open the source projec in Eclipse will do the debugging purpose for me?

wajdhaikal Feb 21, 2012

But I sill have this problem when I started tomcat, JIRA home is not set, I did set it in the windows environment varibles JIRA_HOME, I'm I missing something? and worked as instruced in the documentation, I build JIRA after I set the JIRA_HOME:

Nic Brough [Adaptavist] Community Leader Feb 21, 2012

You need to give it more PermGen memory. Have a look at http://confluence.atlassian.com/display/JIRA/Increasing+JIRA+Memory

wajdhaikal Feb 21, 2012

what about this error, afer connecing to database and tables were built on SQL server 2008, I recieved this error after posting the license in the wizard:

HTTP Status 404 - Could not execute action [Setup!input]:PermGen space<p><small><small><pre>java.lang.OutOfMemoryError: PermGen space

wajdhaikal Feb 21, 2012

Yes, but I'm running tomcat 6 and in the bin directory there is no batch files I have only

bootstap.jar

tomcat-juli.jar

tomcat6.exe

tomcat6w.exe,

I ran tomcat6w.exe as an administrator and lunched a dialog

Tomcat 6.0 Properties > JAVA and I can assigne minimum and maximum pool size from there

wajdhaikal Feb 21, 2012

I had this error after maximizing the size:


... 130 more

Caused by: java.io.IOException: Unable to delete file: c:\jira\home\plugins\.osg

i-plugins\felix\felix-cache\bundle9\version0.0\bundle.jar

at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)

at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)

at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)

at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)

at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)

at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)

at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)

at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)

at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:977)

at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1381)

at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1044)

at com.atlassian.plugin.osgi.container.impl.DefaultOsgiPersistentCache.v

alidate(DefaultOsgiPersistentCache.java:87)

... 275 more

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in United States

Topic Tuesday: Agile

Another week, another Topic Tuesday!  Agile has been on my mind a lot lately because I've seen good implementations and bad implementations, but now as a Jira admin it matters more to me whether...

36 views 0 0
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you