function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ProlayProlay 

Force.com IDE and package.xml

Hi,

I tried to create new apex class in Force.com IDE (standalone), but I got the error of package.xml because this new class is not there in package.xml.

 

I would appreciate any help to resolve this deployment issue through Force.com standalone plugin.

 

Thanks in advance.

Prolay

 

 

Subhani PSubhani P

Hi,

 

Please enter the name of new class in package.xml under section classes and save to server.

 


Thanks,
Subhani,
Salesforce Certified Developer,
www.mydbsync.com.

ProlayProlay

Hi Subhani,

 

Thanks for your quick reply.

 

Here is the senario. I installed Force.com (standalone) IDE. I tried to create a test class. Now I tried to deploy it through eclipse deployment option. I got the error of package.xml. My class name is TestApexClassOne.

 

Please tell me how do I modify the package.xml.

 

Thanks,

Subhani PSubhani P

In package.xml, provide the following information.

 

<types>
<members>TestApexClassOne</members>
<name>ApexClass</name>
</types>

 

Once you entered the required data then save it and try to deploy.

 

Thanks,
Subhani,
Salesforce Certified Developer,
www.mydbsync.com.

 

 

Ashish_SFDCAshish_SFDC

Hi Prolay, 

 

Are you using Force.com IDE to deploy or using Force.com Metadata API (ANT- Command line tool). 

The package.xml is the file which includes the components to be deployed via Force.com Metadata API. 

 

Regards,

Ashish

ProlayProlay

Thanks Shubhani and Ashish. I am using Force.com IDE to deploy to server.

 

I made the changes to package.xml, but during deployment validation, I am getting following error.

 

"Description Resource Path Location Type
Save error: Cannot deploy InstalledPackage in Package Manifest with any other types! package.xml /SFDC Project - Test One/src line 0 Force.com save problem".

 

Any update?

Ashish_SFDCAshish_SFDC

Hi Prolay, 

 

See the link below, looks like its the issue with the Force.com IDE v28. The work around is to uninstall the v28 and Install the v27. More details on the link, 

http://salesforce.stackexchange.com/questions/14020/installedpackage-failure-when-deploying-to-sandbox

 

Regards,

Ashish

ProlayProlay

Hi Ashish,

 

I followed the instructions of this link, but I was getting compatibility error with earlier version of Force.com IDE.

 

Thanks,

 

ProlayProlay

Still the issue of JDK 7 is not resolved. I found these threads which is suggesting to downgrade from JDK 7 to JDK 6.

 

It would be helpful if someone have the resolution on this. i.e instead of downgrading JDK version to 6 we can still use JDK 7.

 

http://boards.developerforce.com/t5/General-Development/Unable-to-refresh-resource/td-p/205678
http://boards.developerforce.com/t5/General-Development/Eclipse-Force-com-Project-creation-error-from-Sandbox-amp/td-p/443043
http://boards.developerforce.com/t5/General-Development/Cannot-create-a-new-project-on-the-Force-IDE/td-p/423185/highlight/true

Ashish_SFDCAshish_SFDC

Hi Prolay, 

 

So the issue got resolved after downgrading Java to the previous verison. 

Looks like Salesforce is already working on fixing it, i ll update if I find any more information. 

 

Regards,
Ashish