axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "robert lazarski" <robertlazar...@gmail.com>
Subject Re: Exception: Unable to load bytecode for class...
Date Thu, 08 Nov 2007 19:59:29 GMT
Though I'm not a AspectJ, wrapping your transactions in interfaces has
solved similair problems:

http://www.mail-archive.com/axis-user@ws.apache.org/msg24681.html

HTH,
Robert

On Nov 8, 2007 2:50 PM, Oliver Zeigermann <oliver@zeigermann.de> wrote:
> Hi Robert!
>
> You are quite right. I use some AspectJ stuff to do declarative
> transaction control.
>
> This is my services.xml
>
>  <service name="SpringAwareService">
>     <description>
>         simple spring example
>     </description>
>     <parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter>
>     <parameter name="SpringBeanName">springAwareService</parameter>
>     <operation name="getValue">
>         <messageReceiver
> class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver"/>
>         <!-- messageReceiver
> class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/-->
>     </operation>
> </service>
>
> It was more or less taken from the Spring howto from axis2 website.
>
> Oliver
>
> 2007/11/8, robert lazarski <robertlazarski@gmail.com>:
> > Just a guess from the cglib reference: You are using spring and or
> > hibernate with an axis2 service, though you are instatiating it via
> > ServiceClass in the services.xml , ie reflection.  Yet whatever AOP
> > you are using probably wants to preload your object. You would really
> > have to explain what you are trying to do for me to help further.
> >
> > HTH,
> > Robert
> >
> > On Nov 8, 2007 2:08 PM, Oliver Zeigermann <ozeigermann@apache.org> wrote:
> > > Just in case anyone bothers: This is caused by some AOP magic which
> > > wraps my service.  Because of this bytecode for the dynamic wrapper
> > > can not be found.
> > >
> > > Can this be considered a bug in axis? Why is this done anyway?
> > >
> > > Oliver
> > >
> > > 2007/11/8, Oliver Zeigermann <ozeigermann@apache.org>:
> > > > Folks!
> > > >
> > > > I get the following exception when I try to load my web service:
> > > >
> > > > Caused by: java.io.IOException: Unable to load bytecode for class
> > > > de.zeigermann.remoting.Axis2Service$$EnhancerByCGLIB$$fae2e45b
> > > >         at org.apache.axis2.description.java2wsdl.bytecode.ClassReader.getBytes(ClassReader.java:84)
> > > >         at org.apache.axis2.description.java2wsdl.bytecode.ParamReader.<init>(ParamReader.java:57)
> > > >         at org.apache.axis2.description.java2wsdl.bytecode.ChainedParamReader.<init>(ChainedParamReader.java:52)
> > > >         at org.apache.axis2.description.java2wsdl.bytecode.MethodTable.<init>(MethodTable.java:30)
> > > >         at org.apache.axis2.description.java2wsdl.DefaultSchemaGenerator.<init>(DefaultSchemaGenerator.java:116)
> > > >         at org.apache.axis2.deployment.util.Utils.fillAxisService(Utils.java:340)
> > > >         at org.apache.axis2.deployment.ServiceBuilder.populateService(ServiceBuilder.java:347)
> > > >         ... 39 more
> > > >
> > > > I use Java 1.6 and the latest axis2 release. Could this be caused by 1.6?
> > > >
> > > > Any ideas?
> > > >
> > > > Thanks in advance and cheers
> > > >
> > > > Oliver
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > > For additional commands, e-mail: axis-user-help@ws.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Mime
View raw message