how to Deploy salesforce app from eclipse - eclipse

Ok so i'm new to salesforce.I started by installing the force IDE from http://wiki.developerforce.com/page/Force.com_IDE_Installation
I have a salesforce application code that i want to deploy in my salesforce org.
I have imported the app into eclipse but don't know what to do next.
Can any one guide me or provide any useful links to achieve what i'm trying to do.

Right click on the resources you want to deploy and select Force.com/Deploy to server... in the context menu.
More flexible way to deploy is described here.
More links could be found in this answer.

Related

How to run/debug java web service project in eclipse

I have a Java Web Service project which was just handed over to me by a colleague who just resigned (no one is assisting me in my new company). Im new to Java (J2EE) and my background is .Net + frontend + azure so I am pretty much very confused with setting up and running the java project. Also, Since my background is .Net Im referencing everything with how things work in Visual Studio from running a project, setting up a project to setting up and debugging a WCF project which I realized now is very different from eclipse + java.
I would really appreciate if someone could explain to me how I can run this project which is supposedly a java web service (as I was told)?
First I have a project that is like this:
Im assuming that the project boxed as blue is the webservice (and the rest are just libraries)? Is this correct? if so how do I run and debug the project using eclipse
Second when I click on debug as -> debug on server this is all I see:
Another colleague told me to install JBOSS (I haven't installed a server in eclipse) because that is what they used. Is there good documentation (step-by-step guide) on how to install JBOSS to run in eclipse. Im assuming that JBOSS + eclipse is like IIS express + Visual studio. Are there also other alternatives to JBOSS + eclipse like perhaps tomcat + ecplise that I can configure.
I really really find it hard to setup the java web service project in eclipse I have little to no prior experience with java j2ee programming especially with web services so any clarifications with my questions would be much appreciated. To sum up:
How would I really know that the project is a java webservice?
If so, how do I run the project and host the project using debugging in eclipse with tomcat or jboss?
I would appreciate if anyone can point me to the right direction of figuring out the source code
From here we can only guide you, you will have to go through some tutorials to understand how java projects work.
Your project is a webservice project according to your web.xml file because its having context params for rest.
the context param sets a front url to your webservice which in this case is gametime.
Check these tutorials and you will understand how it works
http://www.mkyong.com/tutorials/jax-rs-tutorials/
Create simple examples given in the above tutorial and then you can execute your's program
Jboss is a application server which we use to run our app.
You can install jboss in eclipse or you can use it externally also.
To install eclipse and jboss you can follow the link
http://theopentutorials.com/tutorials/java-ee/installing-jboss-tools-in-eclipse/
The other option is to download eclipse and jboss seperately
and use them.
Go to jbosshome/bin
If you download both of them seperately
then in that case for jboss
Invoke the add-user.sh or add-user.bat script. ...
Choose to add a Management user. ...
Choose the realm for the user. ...
Enter the desired username and password. ...
Choose whether the user represents a remote JBoss Enterprise Application Platform 6 server instance. ...
Enter additional users. ...
Create users non-interactively.
After this go to eclipse and follow steps of below link to add jboss to eclipse
http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse
A Java web application among other things has a predefined directory structure including folders named WEB-INF, WEB-CONTENT etc.
On how to deploy a web application to Tomcat via Eclipse you can follow the steps in this tutorial.

How to deploy a Glassfish application on CloudBees

I'm trying to deploy my Web application running on Glassfish on Cloudbees.
Unfortunately I didn't find any documentation or tutorial.
I'll be very thankful if anybody can explain me the best way to do this. I'm lost...
Thank you!
(PS: I'm working on Netbeans)
To deploy, you need to right-click on the project in the NetBeans project list and click "Deploy". Obviously you need to ensure that the properties for the project are pointing to the correct deployment location and directory.
To get a glassfish container at runtime you'll need to setup your application to run he related clickstack. You'll need the CloudBees SDK installed, and run this command :
bees app:deploy -a DOMAIN/APP_ID -t glassfish3 hello.war
Another option is to use cloudbees clickstart (see clickstart icon top left on cloudbees web toolbar) and select the glassfish one. Then commit your own code in the generated application skeleton, or change the generated jenkins job to point to your existing SCM
Please note this container is a community work in progress, doesn't provide all the features you can have on the tomcat6 or jboss7 runtimes. If your application isn't container dependent, those ones may be a better option then.
My application is working, actually I had to create an application using JavaEE6 in configuration (it's a jboss server in reality).
I configured the persistence.xml and added a cloudbees-web.xml.
I also deleted some hibernate and mysql jar(s) and it has worked!
I hope that can help others cloudbees developers!

jbpm with liferay

I can run a sample workflow done with jbpm5 ​​outside of liferay
but now I want to run this example in liferay
So the problem is how to integrate jbpm5 with liferay
I think I need to edit some configuration files in liferay
I'm reading these instructions but I can not find the solution
It's not than simple if you are trying to integrate jBPM5. As you can see the tutorial that you mention has being written for jbpm 3.1.2, a very old version. It will be a great community contribution to integrate jBPM5 to liferay, so if you are interested we can guide you, but you will need to do the work and research to get it working. I can help you with the jBPM5 but you will need to dig into the liferay bits.
I suggest if you want to run Workflow inside Liferay, first you must find a plugin for workflow engine. As fas as I know, Liferay supports Activity, JBPM, Kaleo,.. Have you downloaded JBPM plugin for Liferay? Because for default Liferay using Kaleo.

Deploying to a Tomcat server using Aptana

I am very new to Aptana. I like it but I am having some issues.
Very simply: How do I deploy or "add" a web project to a tomcat server in Eclipse?
Also, if you can send me any beginner guides on this kind of development specifically (Deploying Aptana projects in Eclipse) it would be much appreciated.
So:
I know how to create a project and run the internal Aptana server to preview the page.
I do not know how to deploy it to a server other than the internal one.
I have looked around and I mostly find forms and sites saying use the "Run Web Deployment Wizard".
I do not understand how to use it (mostly because I am trying to deploy on a local tomcat server created using eclipse.
The "Deploy App" function is also confusing because I think I can get it to sync with a server but.... thats it.
The non-Aptana way seems very easy and straight forward:
Create dynamic web project
add to server using "Add and Remove" function
done! access the page using a browser!
Umm should I try pure Java EE? I heard it might be easier because Aptana is "bloated and tries to be too many things while excelling at none"-Another form
Slightly off topic but, opinions? also I am assuming that git works well with Java EE like it does with Aptana.
Don't know if i get it wrong but you could try the following:
In Aptana Studio select Window->Show View->Servers
this should open the server-tab on the bottom, where the console resides.
Now you can add an external webserver by clicking the arrow left to the "add server"-button.
you should now be able to add the created custom-server as your projects deployment-server
http://screencast.com/t/pnqxrHu89 may be useful

Consuming Web Services in Netbeans

I've setup a project in Netbeans 6.5 with some web services that I've created myself and some web services that I've imported from WSDL files. I've setup a couple of desktop application through Netbeans in order to consume these web services. I'm not too sure where to go from here.
I have the GUI setup but not sure how to reference the web services so they can be consumed. I was wondering would anybody be able to guide me through this process or point me in the direction of a relevant tutorial. I'd also like to learn how to consume a web service through a JSP (also created in Netbeans) if possible.
Thanks.
You may find this tutorial useful:
http://netbeans.org/kb/docs/websvc/client.html, but since you are using Netbean 6.5 this may be the correct version:
http://netbeans.org/kb/61/websvc/client.html. As the steps show, it isn't difficult to build a jax-ws client using Netbeans.
But, it depends on what version of Java you are using also, most likely. You may want to download the latest version of jax-ws, if you get errors with your wsdl.
For a JSP, just create a custom tag to call the client.