Not able to download metadata for application in force.com IDE - salesforce

I am facing a few problems when trying to integrate the force.com ide with salesforce.com.
Currently i am using eclipse(4.22 Juno) and have installed the plugin Force.com IDE(2.9) and have a developers version in salesforce.com. I was able to successfully connect to salesforce without any errors thru force.com ide, by creating a new application with the name of the application that i have created in the web version.
Right now the application is created with the sub folders classes, triggers etc... but they are empty. I also tried setting the proxy in the connections of eclipse. But even that does not seem to work.
Does anybody have any idea what could be wrong.
Thanks--

Can you post the content of your package.xml file? It's kind of project definition, it contains info which files (objects, classes, pages, reports, profiles...) you want to download & push changes to.
Check http://wiki.developerforce.com/page/An_Introduction_to_Force.com_Metadata for example - have you skipped step similar to this?

Related

SharePoint Framework (SPFx) -- Web Part Solution Uploaded, Enabled, Not Deploying

I'm trying to deploy a custom web part solution built with SPFx to my site collection app catalog on SharePoint. When I upload the .sppkg file, I get no errors, and the web part is automatically 'enabled'. According to this Microsoft tutorial, I should at this point be prompted to deploy the web part. But I'm not getting that prompt and I can't find any option to actually deploy the thing.
Here is what my app catalog looks like post-upload:
app catalog view
This problem also happens when I try to upload/deploy the default SPFx project generated by the yeoman generator (#yo/sharepoint). This leads me to believe it's an issue with my app catalog rather than my code.
I'm using the following commands to bundle and package the solution:
gulp bundle --ship
gulp package-solution --ship
I also tried without the --ship option, no help.
Any suggestions would be appreciated, I'm desperate at this point. Thanks

Visual Studio Solution with Two Projects Hosted on Azure

This is the first website that I am trying to publish to make live and rather lost on how exactly I should go about it. I have a Solution in Visual Studio 2015 that is separated into two projects. My AngularJS front end is in one project and I have a web api back end that communicates with a SQL DB to fill http request from the front end. I have been testing to make sure that everything works by launching from visual studios and setting them to communicate with localhost:. Everything works fine when I do this.
I now want to host this project as an Azure web app. I have tried downloading the publish settings and hitting publish for each of the projects in visual studio. Visual Studio tells me that my solution has been successfully deployed, but when visiting the site, all I get is a "Server Error in '/' Application".
I do not really know how to go about doing this. Any help would be greatly appreciated.
The problem is that each time you're publishing your project to Azure it overrides previously deployed project. So if you're deploying you client project last it will override previously deployed API and vise versa.
There are several ways to do achieve what you want.
First is to have two Azure Web Apps, one for client and one for API. But it will lead to cross domain requests.
Or you can do like pre-deploy event on your side before publish which will combine your API and Client in one "project". There are also several ways you can do this. You can reference one project from another and build API and Client proejcts in one folder or have a pre-deploy event which will merge API and Client. Also, keep in mind that you will have to merge your web.config files. Also not the best way.
Or the best one. Just create a several virtual directories in your Azure Web App I would prefer this one.

connection between postgresql db and application(jsf+hibernate) running on cloudfoundry

The application(JSF+hibernate) is been deployed using the vmc commands as on the cloudfoundry site. able to see the welcome page. postgreSQl service is binded with the application but the application is not able to connect with the database.
And also viewed about the VCAP_SERVICES using java but dont know much about it rather how to create it.
Cloud Foundry uses auto-reconfiguration if you have one service (either MySQL or Postgres) bind to your application. That means you don't need to touch your code at all!
Please review the following article on our docs site:
http://docs.cloudfoundry.com/frameworks/java/spring/spring.html#using-cloud-foundry-services-in-spring-applications
If you still have issues, go ahead and upload a war file of your app and we can take a look.

"Calls to the web service will fail..." Once Again

Last year someone reported encountering this problem ("The Silverlight project you are about to debug uses web services. Calls to the web service will fail unless the silverlight project is hosted in and launched from the same web project that contains the web services.") and accepted the answer to "set the web project which hosts the Silverlight application to be your startup project."
I'm seeing the same message, but think the solution might have to be different. I am building in VS 2010 a Silverlight application to access the Google Weather API, with VB as the code-behind. The API will return a XML file with data for the specified city (ex., "http://www.google.com/ig/api?weather=london,england"). The Solution Explorer only shows my VB/Silverlight project ("GetWeather"), and the Project Properties dialog box shows the Startup Object as "GetWeather.App" -- the only choice. I'm trying to use a WebClient object to make the call and an XDocument object to parse the return. But I repeatedly get the above error message, with no other result. What am I doing wrong?
Thank you in advance!
I would add a simple Web project and configure it to host the Silverlight app. You'll need to host the app somewhere anyways, so why not create a stub ASP.NET application in your solution? The easiest way is to create a new Silverlight app solution selecting an ASP.NET web project as the host, and then copying your existing code to that solution. Then you should set the web project as the startup one. This should make debugging a lot easier.
Besides, do remember to configure the client access policy to enable cross-domain calls. Check out this article

Apex and salesforce

I am new to salesforce and apex as well. trying to use to understand both while working. I was wondering about following things
Is it possiable to run the Java code inside Salesforce, instead of Apex?
Is it possible to have packages in the Apex code so that I could enable the like wide classed together?
Is there any easy way to debug an Apex application on my local system? At present I am trying to put system.debug and execute it with Salesforce.
Can I configure the environment variable in the salesforce and use it in the Apex?
Thanks a lot for helping me out
You cannot run Java. Only Apex.
Not sure what you mean by packages. Apex doesn't have anything like Java packages.
There is no local debugging or local engine. Only runs in the cloud.
For environment variables, custom settings are probably the closest analog.
You can't work with java directly in salesforce. But you can use Salesforce in your local java application and it sync your data with salesforce. I used it before and it's pretty easy, try to google it.
you can also go with database.com + heroku/amazon if you want to develop with different language in salesforce platform
Just started with Apex and Salesforce myself. I realize this is an old post but here is my advice so far. Use Install java 1.6, Helios eclipse, and then the force.com ide plugin. In that order.

Resources