You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Reneta Säll (HF/EBC)" <re...@ericsson.com> on 2007/03/21 14:36:37 UTC
Castor in Axis2 not efficient?
Hi all,
Do anybody know why Castor as a data binding framework in Axis2 is not efficient?
We are updating our application from Axis1.4 to Axis2.
Castor is our primary choice as a data binding. To start using a new one will cost us a lot of
refactoring.
Best regards,
Reneta Säll
Re: Castor in Axis2 not efficient?
Posted by Davanum Srinivas <da...@gmail.com>.
We do have a sample on how to use Castor with Axis2..See samples\databinding
thanks,
dims
On 3/21/07, Reneta Säll (HF/EBC) <re...@ericsson.com> wrote:
>
>
> Hi all,
>
> Do anybody know why Castor as a data binding framework in Axis2 is not
> efficient?
>
> We are updating our application from Axis1.4 to Axis2.
> Castor is our primary choice as a data binding. To start using a new one
> will cost us a lot of
> refactoring.
>
> Best regards,
> Reneta Säll
>
--
Davanum Srinivas :: http://wso2.org/ :: Oxygen for Web Services Developers
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Castor in Axis2 not efficient?
Posted by Dennis Sosnoski <dm...@sosnoski.com>.
Castor is based on a SAX parser approach to handling XML which isn't
compatible with the StAX parser basis of Axis2. You can still use it,
but it requires a conversion that adds a heavy performance penalty.
If you're using Castor binding definitions you should be able to convert
them to JiBX (which does work well with Axis2) without restructuring
your code. The same thing might apply for Castor code generated from
schema, but I haven't looked into this lately.
- Dennis
Dennis M. Sosnoski
SOA and Web Services in Java
Training and Consulting
http://www.sosnoski.com - http://www.sosnoski.co.nz
Seattle, WA +1-425-939-0576 - Wellington, NZ +64-4-298-6117
Reneta Säll (HF/EBC) wrote:
> Hi all,
>
> Do anybody know why Castor as a data binding framework in Axis2 is not
> efficient?
>
> We are updating our application from Axis1.4 to Axis2.
> Castor is our primary choice as a data binding. To start using a new
> one will cost us a lot of
> refactoring.
>
> Best regards,
> *Reneta Säll*
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
RE: WSDL2Java problem, Axis2 jaxbri
Posted by "Reneta Säll (HF/EBC)" <re...@ericsson.com>.
Thanks, I will try with jdk 1.5
Best regards, Reneta
This communication is confidential and intended solely for the addressee(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you believe this message has been sent to you in error, please notify the sender by replying to this transmission and delete the message without disclosing it. Thank you.
E-mail including attachments is susceptible to data corruption, interception, unauthorized amendment, tampering and viruses, and we only send and receive e-mails on the basis that we are not liable for any such corruption, interception, amendment, tampering or viruses or any consequences thereof.
________________________________
From: Amila Suriarachchi [mailto:amilasuriarachchi@gmail.com]
Sent: den 22 mars 2007 11:41
To: axis-user@ws.apache.org
Subject: Re: WSDL2Java problem, Axis2 jaxbri
use jdk 1.5. jaxb only works with jdk 1.5
On 3/22/07, Reneta Säll (HF/EBC) <re...@ericsson.com> wrote:
Hi all,
When I run the code generator in Axis2, get this error:
C:\axis2\bin>WSDL2java -uri bank.wsdl -d jaxbri -g
Using AXIS2_HOME: C:\axis2
Using JAVA_HOME: C:\j2sdk1.4.2_12
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/xml/bi
d/JAXBContext (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBR
Extension.java:68)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGene
ationEngine.java:177)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
What is the problem?
--
Amila Suriarachchi,
WSO2 Inc.
Re: WSDL2Java problem, Axis2 jaxbri
Posted by Amila Suriarachchi <am...@gmail.com>.
use jdk 1.5. jaxb only works with jdk 1.5
On 3/22/07, Reneta Säll (HF/EBC) <re...@ericsson.com> wrote:
>
> Hi all,
>
> When I run the code generator in Axis2, get this error:
>
> C:\axis2\bin>WSDL2java -uri bank.wsdl -d jaxbri -g
>
> Using AXIS2_HOME: C:\axis2
> Using JAVA_HOME: C:\j2sdk1.4.2_12
> Exception in thread "main" java.lang.UnsupportedClassVersionError:
> javax/xml/bi
> d/JAXBContext (Unsupported major.minor version 49.0)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
> at java.security.SecureClassLoader.defineClass(
> SecureClassLoader.java:1
> 3)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
> at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage
> (JAXBR
> Extension.java:68)
> at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate
> (CodeGene
> ationEngine.java:177)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
>
> What is the problem?
>
>
>
>
--
Amila Suriarachchi,
WSO2 Inc.
WSDL2Java problem, Axis2 jaxbri
Posted by "Reneta Säll (HF/EBC)" <re...@ericsson.com>.
Hi all,
When I run the code generator in Axis2, get this error:
C:\axis2\bin>WSDL2java -uri bank.wsdl -d jaxbri -g
Using AXIS2_HOME: C:\axis2
Using JAVA_HOME: C:\j2sdk1.4.2_12
Exception in thread "main" java.lang.UnsupportedClassVersionError: javax/xml/bi
d/JAXBContext (Unsupported major.minor version 49.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:1
3)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.axis2.wsdl.codegen.extension.JAXBRIExtension.engage(JAXBR
Extension.java:68)
at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGene
ationEngine.java:177)
at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32)
at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21)
What is the problem?