Using Resin with Netbeans

courtenayt
courtenayt used Ask the Experts™
on
I'm trying to figure out if there is a way to run Resin 2.x and 3.x using Netbeans.  Does anyone have any info on how I can do this?
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®

Commented:
There is one way that I can think of:
1. Configure Cargo within Netbeans - http://cargo.codehaus.org/Netbeans+Plugin . I think they releeased it at Mevenide - http://mevenide.codehaus.org/mevenide-netbeans-project/ but you  should be able to install onluy Cargo also.
2. Inside Cargo configure the  Resin container

I do not think there is another way but if someone can give another idea, I may learn something new.

Author

Commented:
Hi,

thanks for the info.  I looked at the cargo downloads page and I'm not clear which one I should be downloading.  I'm not even really clear what Cargo is, but I guess if I can get it configured, that doesn't matter as much.

Thanks for the idea!

Commented:
Uh.. they never did a separate build for the Netbeans  plugin. Then you  need http://mevenide.codehaus.org/mevenide-netbeans-project/ I am afraid.
Haven't used this for a while but will try to help if you have issues.
Why Diversity in Tech Matters

Kesha Williams, certified professional and software developer, explores the imbalance of diversity in the world of technology -- especially when it comes to hiring women. She showcases ways she's making a difference through the Colors of STEM program.

Author

Commented:
Hi,

Thanks - I downloaded the mavenide-2.3 release http://mevenide.codehaus.org/m2-site/index.html and installed it into netbeans according to their online instructions.  I'm not clear what I am supposed to do next.  I don't see any reference to cargo in anything I downloaded or in netbeans after I added the modules.  How do I go about finding cargo and using it to add resin?

Commented:
It should already be there actually I think...
See this: http://cargo.codehaus.org/Quick+start

PS: It had been really LONG ago when I last used this.. Doh.

Author

Commented:
Hi,

I guess I have to say, I have absolutely no idea what I should do.  I was able to figure out that I install the plugins into netbeans, but I don't understand a word of the web page you just sent.  Do I do something with that code?  How does that relate to Resin or Netbeans?  Where does it go?  

Sorry to be a pain - I really appreciate your help, but I am definitely not familiar with anything to do with setting up these kind of things.  I've never set up any of this - purely worked on the application code side of things.

Thanks

Author

Commented:
I actually am having trouble getting Resin to install too.  The resin website is a royal pain!  I don't suppose you know what I should be doing to install it on Windows?  I can start a new question to give you more points if you would like!  I really appreciate your help!

Commented:
It is not for the points AT ALL :)
OK - I need to wrap something in the office so I will try to return in a few of hours and see if I can help further

Author

Commented:
Thanks :)

Author

Commented:
Hi,

I was hoping you might be able to help me figure out how to install Resin on Windows before the question was closed (Please see above).

Thanks for your help!
Courtenay

Commented:
I totally forgot about the question actualy until I came over it in cleanup.

See if this http://www.caucho.com/resin-3.0/install/install.xtp helps? Or maybe http://www.caucho.com/resin-3.0/install/install.xtp#Windows - depending on how you want to install it. I had used the second way. Let me know where this fails.

Author

Commented:
Thanks, I think i now have Resin 3.1.1 installed and the mavenide-2.3 release http://mevenide.codehaus.org/m2-site/index.html installed into netbeans according to their online instructions.  I'm not clear what I should be doing next.  You gave me the link to here: http://cargo.codehaus.org/Quick+start but I'm not following what I should do with this.

Thanks,
Courtenay

Commented:
Well - this is a standard webserver.
Once you have it, you need to make sure that the mavenade uses it.
What is the problem exactly?
you need to write the code that will be run in Resin and to start it.

Author

Commented:
Sorry to be a pain, but I know absolutely nothing about what I am supposed to do.  I've never set up anything like this before in my life and I just don't know what code I should put where.  I have plenty of code written for my application.  I know my jsp code goes underC:\resin-3.1.1\webapps\ROOT\ and my java beans & servlets go under: C:\resin-3.1.1\webapps\ROOT\WEB-INF\,  but I don't know how to get Resin to be the webserver that NetBeans uses.  I've downloaded mevenide2-netbeans-2.3 and followed the instructions to install it into netbeans.  That is complete.  I've downloaded and installed resin 3.1.1, and that is working as well.  I just don't know what I do to make resin available to netbeans.

Commented:
What's wrong with following these instructions?
http://cargo.codehaus.org/Quick+start

Create the standard war file contaiing all your resources as you would have do for deploying on any server and then follow one of the three methods.

Author

Commented:
I guess I just don't know how to ask the question, I don't understand what the code on that page has to do with setting up Resin on Netbeans.  I don't know where I would put that code or what it would do for me.  

I'm not finished writing all of my code so I don't want to put it in a war file.  I just want to be able to access resin via netbeans so I can more easily test my code as I write it on my local machine using netbeans instead of using a text editor.  My understanding is that netbeans comes with tomcat installed, I just need to know how to get netbeans to compile my code with Resin instead.  

In addition I've never used a war file before and have no idea how to create one.  I don't have my code in netbeans, I've been writing it in a simple code editor - which at the moment seems a lot less complicated than setting up anything in netbeans.  

Sorry if this isn't clear - I just don't know what I should do.

Commented:
This is how you specify where is your Resin and where is your war file so they can be run.

As far as I know there will be no way to do anything on the Resin side until yo put the file in the war. May be wrong though.

OK.. let me see if I can explain this:
Think of Cargo as a platform that gives you the possibility to run the Resin (and other containers) from it and to deploy the applications in it. All you need to do is to make the deployment (for tomcat it can be either source or xml files, for Resin it is always code).

PS: I mentioned that I had not used it at all for a while so trying to remember here
Commented:
By the way : you saw already this picture http://cargo.codehaus.org/Netbeans+Plugin or something similar, right?
Just click on the Cargo container you need and start from there

Author

Commented:
Maybe that is where I am running into the problem.  I installed mevenide2-netbeans-2.3 (listed as the latest version on the Mevenide site), but I don't seem to have any reference to cargo under my runtime tab in netbeans.  Could they have taken cargo out of mevenide2?  I didn't run into any problems installing it as per instructions and I just ran updates and got 2 updates to Mevenide, so it seems to be installed properly.  I see references to the installation under the Edit Menu/Find Maven Repository and under the Window Menu/ Maven2 Repository Browser and Continum Servers.  Unfortunatly the website for Mevenide2 doesn't give much of any information and doesn't reference Cargo at all.  I'm not sure what to do about this.

Author

Commented:
Hi,

I'm still hoping someone can help me with this issue, it seems mevenide2 did not install cargo into netbeans, can anyone help me with this?

Thanks,
Courtenay

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial