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
LosintikfosLosintikfos 

enum error

I am getting error
 
"syntax error on token "enum", class expected. and "org.apache.axis cannot be resolved to a type"
 
using JDK 6 then i changed it to 1.4 - but switched the error to
 

Syntax error, 'for each' statements are only available if source level is 5.0

 
Any help please!
Best Answer chosen by Admin (Salesforce Developers) 
LosintikfosLosintikfos
This issue has been resolved!
What i did was to migrate from Axis to Axis2 - did the trick.:smileyvery-happy:

All Answers

wyvernwyvern
If you're getting an error about org.apache.axis not being found, you probably have classpath issues. I could never get Axis to work right with the partner WSDL anyway, though, so I don't have any particular Axis experience.
LosintikfosLosintikfos
This issue has been resolved!
What i did was to migrate from Axis to Axis2 - did the trick.:smileyvery-happy:
This was selected as the best answer
IMDEVIMDEV
 how to migrate from axis to axis2??
Message Edited by IMDEV on 02-04-2009 01:42 AM
LosintikfosLosintikfos

You can generate all your stubs in Axis1_4 and therefore ignore all the bit of trouble you will go through using Axis2 since the sforce platform has a massive support for axis1 platform.

 

If you chooce to deploy on Axis2 - i  suggest you add the axis2 pluggin to eclipse generate the WSDL2Java stubs using the axis2 pluggin and then add all the axis2 lib jars to your build path or classpath to resolve all inconsistencies.

 

I haven't got time else i would have put something together by now to support sforce axis2 migration. But think this gives you the clue.