Tuesday, 27 May 2008

build .xml file for compiling with the different version

* this example show how we can build from the different jdk version.

click here

Wednesday, 21 May 2008

Ant resource register sample

Check build.xml for registering resource with jar file.

Click here

[Error] Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_...

Error Message :

ClassNotFoundException : Cannot load SchemaTypeSystem. Unable to load class with name schemaorg_apache_xmlbeans.system.s68C41DB812F52C975439BA10FE4FEE54.TypeSystemHolder. Make sure the generated binary files are on the classpath.

"s68C41DB812F52C975439BA10FE4FEE54" this part will be different

When you have this kind of error
The TypeSystemHolder.class generated by WSDL2Java is not be placed in your classpath in order to avoid this error.

Please copy TypeSystemHolder.class from "resource/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54" folder.

And Paste TypeSystemHolder.class file into your classpath folder (build/classes/schemaorg_apache_xmlbeans/system/s68C41DB812F52C975439BA10FE4FEE54) folder

Wednesday, 14 May 2008

Eclipse- Register Resource

Window > Preferences > Java > Classpath Variable

New ---
Path : D:/Language/java/Axis2/axis2-1.3/repository



* Class Path for whole folder

Build Path > Source Tab > Add Folder > Select some folder > OK

Selected folder is going to set as Classpath (under lib>classes folder)

Eclipse - WS Client [Web App Libraries] - Axis2

You should insert Axis2 library into "Referenced Libraries" for compile the source
and "Web App Libraries" (Project path\WebContent\WEB-INF\lib)

- You can change the path "Referenced Libraries" from Eclipse.
- Web App Libraries :
1. Copy all jar file from "AXIS2_HOME\lib"
*** Please do not copy "jsp-api.jar" file

- And Refersh Eclise Project

Eclipse - Create User's "Add Library"

- Create User's Library

* Window > Preference > Java > Build Path > User Libraries

* New > Type "Axis2" > "Add JARs" > Import Axis\lib\all jar files

After create "user libraries"

* Build Path > Configure Build Path > Add Library > User Library > select Axis2 Library which was created previous step.