JRun 4 Support (run / debug) in IDEA 4.5

Has anybody managed to get run / debug configurations for Macromedia JRun 4 running in IDEA 4.5 yet? Currently about the best I can achieve is debugging in Tomcat with the exploded directory, coupled with packaging my .war file to my JRun server path. Obviously all this does is let me publish my .war to JRun after testing it in Tomcat which is normally ok, however at times there are problems specific to the JRun implementation which I can't debug within IDEA.

I read a very helpful post from a guy called Robert Hedin who managed to get JRun working with IDEA 3.0.5 however most of these instructions are now invalid with the way servers are handled in IDEA 4.5 and I can't seem to achieve the same results. The post is here:

http://www.intellij.net/forums/thread.jsp?forum=4&thread=16481&message=401105&q=4a52756e#401390

Is there anybody out there who has managed to succeed in getting JRun to work with IDEA 4.5 or does anybody know of a plugin which might help achieve this integration??

Thanks in advance for any help you can give me.

4 comments

Rob Bradley wrote:

Has anybody managed to get run / debug configurations for Macromedia JRun 4 running in IDEA 4.5 yet? Currently about the best I can achieve is debugging in Tomcat with the exploded directory, coupled with packaging my .war file to my JRun server path. Obviously all this does is let me publish my .war to JRun after testing it in Tomcat which is normally ok, however at times there are problems specific to the JRun implementation which I can't debug within IDEA.

I read a very helpful post from a guy called Robert Hedin who managed to get JRun working with IDEA 3.0.5 however most of these instructions are now invalid with the way servers are handled in IDEA 4.5 and I can't seem to achieve the same results. The post is here:

http://www.intellij.net/forums/thread.jsp?forum=4&thread=16481&message=401105&q=4a52756e#401390

Is there anybody out there who has managed to succeed in getting JRun to work with IDEA 4.5 or does anybody know of a plugin which might help achieve this integration??

Thanks in advance for any help you can give me.

I use remote debugging with JRun and it works fine. What's your problem?

0

Hi Brad,

Maybe it's just more to do with my lack of JRun knowledge than anything wrong in IDEA. I've always used the Tomcat in the past but the project I'm currently working on is in JRun and I'm not really sure where to start in IDEA.

I'm assuming I should be putting it in as a "JSR45 Compatible Server", however I'm not 100% sure of exactly what I need to put in it. Probably easiest if I list my questions:

1> On the "Server" tab under "Application Server" I have added a server called JRun. Do I need to Attach any Jar files to that? I have only attached "%JRUN_HOME%/lib/jrun.jar" so far.

2> Do I need to add anything in "VM parameters" (I assume no), "JSP's package", or "VM options variable"?

3> On the "Startup/Connection" tab do I need to pass any parameters to the Startup / Shutdown scripts, or any Environment Variables for in the Run / Debug configurations?

My apologies for the novice questions, this is the first time I've worked with JRun at all, let alone in IDEA. I would obviously appreciate any other tips or recommendations for working with JRun / IDEA in general if you think they might prove useful.

Thanks in advance for your time.

Rob :)

0

Rob Bradley wrote:

Hi Brad,

Maybe it's just more to do with my lack of JRun knowledge than anything wrong in IDEA. I've always used the Tomcat in the past but the project I'm currently working on is in JRun and I'm not really sure where to start in IDEA.

I'm assuming I should be putting it in as a "JSR45 Compatible Server", however I'm not 100% sure of exactly what I need to put in it. Probably easiest if I list my questions:

1> On the "Server" tab under "Application Server" I have added a server called JRun. Do I need to Attach any Jar files to that? I have only attached "%JRUN_HOME%/lib/jrun.jar" so far.

2> Do I need to add anything in "VM parameters" (I assume no), "JSP's package", or "VM options variable"?

3> On the "Startup/Connection" tab do I need to pass any parameters to the Startup / Shutdown scripts, or any Environment Variables for in the Run / Debug configurations?

My apologies for the novice questions, this is the first time I've worked with JRun at all, let alone in IDEA. I would obviously appreciate any other tips or recommendations for working with JRun / IDEA in general if you think they might prove useful.

Thanks in advance for your time.

Rob :)

I don't think you can use the JSR45 tab with JRun. I use remote
debugging. Just setup a remote instance and copy the command line args
to your jvm.config file in %JRun home%/bin.

0

Thanks Brad, that is probably where I'm going wrong... I knew I was doing something silly. I'll give the Remote tab a try tomorrow and let you know how I get on. Thanks again for the advice.

0

Please sign in to leave a comment.