Could not see my WSDL using Apache Axis 2 with Eclipse WTP

December 7, 2009 Leave a comment

I have spent some time figuring out why I could not see any WSDL despite everything else seemed to be OK.

After having followed these kind of steps: Creating web services with Eclipse (Bottom up) it appears that I could not see any WSDL.
So I have typed http://localhost:8080/Axis2/axis2-web/index.jsp , then clicked on services and the following screen was displayed:

Axis main screen

Axis main screen

The service  – Converter – seemed to be running ! but when trying to reach the WSDL by clicking on the Converter link I had this:

WSDL page

WSDL page

After some experiments I have found that the WSDL was actually correct (!) . it was just not displayed in Safari. Running the same URL on Firefox confirmed it.

It’s not the first time something is hidden by Safari unfortunately. It seems it waits a really clean html code. It’s still viewable by clicking on view-> view Source but you don’t expect immediately such a thing to happen.

Categories: java, Web services Tags: , , ,

Manual binding for Flex ArrayCollection

November 10, 2009 Leave a comment

I have been pulling my hair out for a while on this!
I was manually binding an arrayCollection using mx.binding.utils.ChangeWatcher:, "_comboChoices", prepareDataProvider);

and it did not work. After googling I have found the reason here:–watch—ArrayCollection-td20594413.html

and I finally came with this single – yet working – line of code:

_modelLocator._comboChoices.addEventListener(CollectionEvent.COLLECTION_CHANGE, prepareDataProvider);

that’s it ! My prepareDataProvider function was called ! 🙂

Eclipse 3.5 now runs with Java6 on Mac OSX

May 30, 2009 Leave a comment

At last Eclipse can now be run withJava6 on mac OSX. For sure it may not be stable as the version of Eclipse is still not a release candidate but it’s a clear step forward.

Here are the steps I did to make it work:

  1. Make java6 be the default JDK.
  2. remove the link to java 5 JDK.
  3. set JAVA_HOME environment variable.
  4. download eclipse 3.5 64 bits cocoa for mac OSX.
  5. change the eclipse.ini file 
  6. change the Info.plist file

I’ve now illustrated them in details:


  • type java preferences in spotlight and set the parameters as illustrated below:









  • removing the link of JDK 1.5 

In the folder /System/Library/Frameworks/JavaVM.framework/Versions remove the current link to JDK1.5 and set it to JDK1.6

sudo rm CurrentJDK

sudo ln -s 1.6 CurrentJDK

Here is my files in this folder after the operation is completed


Picture 2







  • setting JAVA_HOME environment variable

Check that the JAVA_HOME environment variable points to the correct path by typing env | grep JAVA_HOME

If it’s not JAVA_HOME=/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home then in your home folder edit the .bash_profile file and add

export JAVA_HOME
export PATH


export JAVA_HOME


export PATH

  • download the right version of eclipse


and uncompress it in the folder of your choice.

  • change the config.ini file

There ‘s a config.ini file in the configuration folder of the eclipse installation. Edit it to add:


-vm /System/Library/Frameworks/JavaVM.framework/Versions/1.6.0/Home/bin/java

It tells eclipse platform the default version to use to run the program.

Then you’re done, launch ./eclipse in the root directory of the eclipse installation.

Eclipse 3.5 running with Java 6

I have done this with Eclipse 3.5M5 version. The release candidate should be available very soon.