You need to sign in to do that
Don't have an account?
Can't deploy apex code to a prouduction account in Professional edition
We have developed a app in our developer edition account, and now we
want that to be deployed into
our Professional edition production account. We used Force.com
migration tool to retrieve the code
from the developer edition account. Now when we try to deploy to the
Professional edition
account using the following command,
<code>
ant deployCode -lib ../ant-salesforce.jar -verbose
</code>
We get a build failed message with the following traceback,
Apache Ant(TM) version 1.8.2 compiled on August 19 2011
Trying the default build file: build.xml
Buildfile: /home/azhagu/Workspaces/Force.com
IDE/salesforce_ant_23.0/sample/build.xml
Detected Java version: 1.6 in: /usr/lib/jvm/java-6-openjdk/jre
Detected OS: Linux
parsing buildfile /home/azhagu/Workspaces/Force.com
IDE/salesforce_ant_23.0/sample/build.xml with URI =
file:/home/azhagu/Workspaces/Force.com%20IDE/salesforce_ant_23.0/sample/build.xml
Project base dir set to: /home/azhagu/Workspaces/Force.com
IDE/salesforce_ant_23.0/sample
parsing buildfile
jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI = jar:file:/usr/share/ant/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
[property] Loading /home/azhagu/Workspaces/Force.com
IDE/salesforce_ant_23.0/sample/build.properties
[property] Loading Environment env.
Build sequence for target(s) `deployCode' is [deployCode]
Complete build sequence is [deployCode, listMetadata,
deployCodeFailingTest, retrieveCode, deployCodeCheckOnly,
retrieveUnpackaged, retrievePkg, bulkRetrieve, describeMetadata, test,
deployUnpackaged, undeployCode, deployZip, ]
deployCode:
parsing buildfile
jar:file:/home/azhagu/Workspaces/Force.com%20IDE/salesforce_ant_23.0/sample/../ant-salesforce.jar!/com/salesforce/antlib.xml
with URI = jar:file:/home/azhagu/Workspaces/Force.com%20IDE/salesforce_ant_23.0/sample/../ant-salesforce.jar!/com/salesforce/antlib.xml
from a zip file
[sf:deploy] Using proxy: 192.168.1.1:3128
[sf:deploy] Using proxy: 192.168.1.1:3128
[sf:deploy] Request for a deploy submitted successfully.
[sf:deploy] Request Id for the current deploy task: 04s400000003tLoAAI
[sf:deploy] Waiting for server to finish processing the request...
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: InProgress
[sf:deploy] Request Status: Completed
BUILD FAILED
/home/azhagu/Workspaces/Force.com
IDE/salesforce_ant_23.0/sample/build.xml:46: FAILURES:
Error: classes/PramataAdminSettingsController.cls:Not available for
deploy for this organization
Error: classes/PramataProxyController.cls-meta.xml:Not available for
deploy for this organization
Error: classes/PramataControllerTests.cls:Not available for deploy for
this organization
Error: classes/PramataSettingsController.cls-meta.xml:Not available
for deploy for this organization
Error: classes/PramataAdminSettingsController.cls-meta.xml:Not
available for deploy for this organization
Error: classes/PramataProxyController.cls:Not available for deploy for
this organization
Error: classes/PramataSettingsController.cls:Not available for deploy
for this organization
Error: classes/PramataControllerTests.cls-meta.xml:Not available for
deploy for this organization
Error: components/PramataSnapshotView.component(PramataSnapshotView):Apex
class 'PramataSettingsController' does not exist
Error: pages/PramataSettings.page(PramataSettings):Apex class
'PramataAdminSettingsController' does not exist
Error: pages/PramataSnapshots.page(PramataSnapshots):Apex class
'PramataSettingsController' does not exist
Error: pages/PramataUserSettings.page(PramataUserSettings):Apex class
'PramataProxyController' does not exist
at com.salesforce.ant.DeployTask.handleResponse(DeployTask.java:116)
at com.salesforce.ant.SFDCMDAPIAntTaskRunner.runTask(SFDCMDAPIAntTaskRunner.java:94)
at com.salesforce.ant.DeployTask.execute(DeployTask.java:59)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
at org.apache.tools.ant.Main.runBuild(Main.java:809)
at org.apache.tools.ant.Main.startAnt(Main.java:217)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)
Total time: 41 seconds
Please advise on where we are going wrong.
Raj,
There are a number of things to consider when deploying to a PE org. The main considerations are; you must deploy a managed package that has passed security review and not make use of any features that are from EE.
http://wiki.developerforce.com/page/Designing_an_Application_for_Group_and_Professional_Edition
Hope this helps,
Dan Smith
http://www.virtrock.com