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 aditya chitre <ch...@gmail.com> on 2011/05/02 08:23:27 UTC
Axis2 Custom Deployers
Hi,
I have custom deployers in my project and I have added the appropriate tags
in axis2.xml for stating the extension, directory and class. I also enabled
'hotupdate' and 'hotdeployment'.
However, when I try starting the server, I get an info log stating that
"[INFO] Unable to instantiate deployer <classname>". Is Axis2 unable to find
these classes?
Regards,
Aditya
Problem with automatically generated WSDL and nested classes
Posted by fa...@uniserv.com.
Hello,
the automatically generated WSDL does not contain the "type" attribute
for the element which corrsponds to the nested class.
My Java class looks like:
package com.uniserv.nested.test;
public class NestedClass {
public static class InnerStruct{
private String x;
private String y;
public InnerStruct(){
x= "";
y= "";
}
public String getX(){
return this.x;
}
public String getY(){
return this.y;
}
public void setX(String x){
this.x = x;
}
public void setY(String y){
this.y = y;
}
}
public class Output{
private InnerStruct[] innerStructArray;
public Output() {
innerStructArray = null;
}
public InnerStruct[] getInnerStructArray(){
return this.innerStructArray;
}
public void setInnerStructArray (InnerStruct[]
innerStructArray){
this.innerStructArray = innerStructArray;
}
}
public Output testIt (String a ){
Output output = new Output();
InnerStruct[] innerStructArray =
output.getInnerStructArray();
if(innerStructArray == null){
innerStructArray = new NestedClass.InnerStruct[2];
InnerStruct struct1 = new NestedClass.InnerStruct();
struct1.setX("x1");
struct1.setY("y1");
innerStructArray[0]= struct1;
InnerStruct struct2 = new NestedClass.InnerStruct();
struct2.setX("x2");
struct2.setY("y2");
innerStructArray[1]= struct2;
}
output.setInnerStructArray(innerStructArray);
return output;
}
}
The automaticaly generated WSDL contains following:
- <wsdl:types>
- <xs:schema xmlns:ax210="http://test.nested.uniserv.com/xsd"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://test.nested.uniserv.com">
<xs:import namespace="http://test.nested.uniserv.com/xsd" />
- <xs:element name="testIt">
- <xs:complexType>
- <xs:sequence>
<xs:element minOccurs="0" name="a" nillable="true"
type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
- <xs:element name="testItResponse">
- <xs:complexType>
- <xs:sequence>
<xs:element minOccurs="0" name="return" nillable="true"
type="ax210:Output" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
- <xs:schema attributeFormDefault="qualified"
elementFormDefault="qualified"
targetNamespace="http://test.nested.uniserv.com/xsd">
- <xs:complexType name="Output">
- <xs:sequence>
<xs:element maxOccurs="unbounded" minOccurs="0"
name="innerStructArray" nillable="true" />
</xs:sequence>
</xs:complexType>
- <xs:complexType name="InnerStruct">
- <xs:sequence>
<xs:element minOccurs="0" name="x" nillable="true" type="xs:string" />
<xs:element minOccurs="0" name="y" nillable="true" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:schema>
</wsdl:types>
The definition of the complexType Output does not contain the type of
the particular elements:
<xs:element maxOccurs="unbounded" minOccurs="0" name="innerStructArray"
nillable="true" />
I would expect to see
<xs:element maxOccurs="unbounded" minOccurs="0" name="innerStructArray"
nillable="true" type="ax210:InnerStruct" />
I can specify my own WSDL and it does function, but I would like to use
the automatically generated one.
How can I influence axis2 to generate correct WSDL?
Thank you,
Fadila
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Netsed (static inner) classe still does not function (in spite of
the patch mentioned in the JIRA-4448)
Posted by Andreas Veithen <an...@gmail.com>.
1.6.0 has been released, but not yet officially announced. I also
started a vote for the 1.5.5 maintenance release:
http://markmail.org/thread/i7s5bu6ddrmo4abv
Andreas
On Mon, May 9, 2011 at 08:28, <fa...@uniserv.com> wrote:
> Thanks, Andreas.
>
> I wasn't able to find any release roadmap, so could you tell me
> what is the scheduled date for Axis2 1.5.5?
>
> Thank you,
> Fadila
>
>
>
> -----Original Message-----
> From: Andreas Veithen [mailto:andreas.veithen@gmail.com]
> Sent: Saturday, May 07, 2011 8:20 PM
> To: java-user@axis.apache.org
> Subject: Re: Netsed (static inner) classe still does not function (in spite of the patch mentioned in the JIRA-4448)
>
> The fix for AXIS2-4448 is scheduled to be shipped with Axis2 1.5.5 and 1.6.0.
>
> Andreas
>
> On Wed, May 4, 2011 at 09:03, <fa...@uniserv.com> wrote:
>> Hi,
>>
>> we are using axis 1.5.3 and have the problem with nested classes.
>>
>> According to the JIRA-4448 this is already fixed.
>>
>> But the source code of the
>>
>> org.apache.axis2.engine.DefaultObjectSupplier.java
>>
>> still contain
>>
>>
>> Class parent = clazz.getDeclaringClass();
>> Object instance = null;
>>
>> if (parent != null) {
>>
>> // if this is an inner class then that
>> can be a non static inner class.
>> // those classes have to be instantiated
>> in a different way than a normal initialization.
>> instance = clazz.getConstructor(new
>> Class[] { parent })
>>
>> instead of
>>
>> Class parent = clazz.getDeclaringClass();
>> Object instance = null;
>>
>> if (parent != null &&
>> !Modifier.isStatic(clazz.getModifiers())) {
>>
>> // if this is an inner class then that
>> can be a non static inner class.
>> // those classes have to be instantiated
>> in a different way than a normal initialization.
>> instance = clazz.getConstructor(new
>> Class[] { parent })
>>
>> One interessting point:
>>
>> the SVN repository contains the correct version of the class, but
>> neither axis 1.5.3 nor 1.5.4 contain this version of the
>> DefaultObjectSupplier.
>>
>> Is there any possibility to fix it?
>>
>> Thanks,
>> Fadila
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-user-help@axis.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
RE: Netsed (static inner) classe still does not function (in spite of the patch mentioned in the JIRA-4448)
Posted by fa...@uniserv.com.
Thanks, Andreas.
I wasn't able to find any release roadmap, so could you tell me
what is the scheduled date for Axis2 1.5.5?
Thank you,
Fadila
-----Original Message-----
From: Andreas Veithen [mailto:andreas.veithen@gmail.com]
Sent: Saturday, May 07, 2011 8:20 PM
To: java-user@axis.apache.org
Subject: Re: Netsed (static inner) classe still does not function (in spite of the patch mentioned in the JIRA-4448)
The fix for AXIS2-4448 is scheduled to be shipped with Axis2 1.5.5 and 1.6.0.
Andreas
On Wed, May 4, 2011 at 09:03, <fa...@uniserv.com> wrote:
> Hi,
>
> we are using axis 1.5.3 and have the problem with nested classes.
>
> According to the JIRA-4448 this is already fixed.
>
> But the source code of the
>
> org.apache.axis2.engine.DefaultObjectSupplier.java
>
> still contain
>
>
> Class parent = clazz.getDeclaringClass();
> Object instance = null;
>
> if (parent != null) {
>
> // if this is an inner class then that
> can be a non static inner class.
> // those classes have to be instantiated
> in a different way than a normal initialization.
> instance = clazz.getConstructor(new
> Class[] { parent })
>
> instead of
>
> Class parent = clazz.getDeclaringClass();
> Object instance = null;
>
> if (parent != null &&
> !Modifier.isStatic(clazz.getModifiers())) {
>
> // if this is an inner class then that
> can be a non static inner class.
> // those classes have to be instantiated
> in a different way than a normal initialization.
> instance = clazz.getConstructor(new
> Class[] { parent })
>
> One interessting point:
>
> the SVN repository contains the correct version of the class, but
> neither axis 1.5.3 nor 1.5.4 contain this version of the
> DefaultObjectSupplier.
>
> Is there any possibility to fix it?
>
> Thanks,
> Fadila
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Netsed (static inner) classe still does not function (in spite of
the patch mentioned in the JIRA-4448)
Posted by Andreas Veithen <an...@gmail.com>.
The fix for AXIS2-4448 is scheduled to be shipped with Axis2 1.5.5 and 1.6.0.
Andreas
On Wed, May 4, 2011 at 09:03, <fa...@uniserv.com> wrote:
> Hi,
>
> we are using axis 1.5.3 and have the problem with nested classes.
>
> According to the JIRA-4448 this is already fixed.
>
> But the source code of the
>
> org.apache.axis2.engine.DefaultObjectSupplier.java
>
> still contain
>
>
> Class parent = clazz.getDeclaringClass();
> Object instance = null;
>
> if (parent != null) {
>
> // if this is an inner class then that
> can be a non static inner class.
> // those classes have to be instantiated
> in a different way than a normal initialization.
> instance = clazz.getConstructor(new
> Class[] { parent })
>
> instead of
>
> Class parent = clazz.getDeclaringClass();
> Object instance = null;
>
> if (parent != null &&
> !Modifier.isStatic(clazz.getModifiers())) {
>
> // if this is an inner class then that
> can be a non static inner class.
> // those classes have to be instantiated
> in a different way than a normal initialization.
> instance = clazz.getConstructor(new
> Class[] { parent })
>
> One interessting point:
>
> the SVN repository contains the correct version of the class, but
> neither axis 1.5.3 nor 1.5.4 contain this version of the
> DefaultObjectSupplier.
>
> Is there any possibility to fix it?
>
> Thanks,
> Fadila
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Netsed (static inner) classe still does not function (in spite of the patch mentioned in the JIRA-4448)
Posted by fa...@uniserv.com.
Hi,
we are using axis 1.5.3 and have the problem with nested classes.
According to the JIRA-4448 this is already fixed.
But the source code of the
org.apache.axis2.engine.DefaultObjectSupplier.java
still contain
Class parent = clazz.getDeclaringClass();
Object instance = null;
if (parent != null) {
// if this is an inner class then that
can be a non static inner class.
// those classes have to be instantiated
in a different way than a normal initialization.
instance = clazz.getConstructor(new
Class[] { parent })
instead of
Class parent = clazz.getDeclaringClass();
Object instance = null;
if (parent != null &&
!Modifier.isStatic(clazz.getModifiers())) {
// if this is an inner class then that
can be a non static inner class.
// those classes have to be instantiated
in a different way than a normal initialization.
instance = clazz.getConstructor(new
Class[] { parent })
One interessting point:
the SVN repository contains the correct version of the class, but
neither axis 1.5.3 nor 1.5.4 contain this version of the
DefaultObjectSupplier.
Is there any possibility to fix it?
Thanks,
Fadila
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org
Re: Axis2 Custom Deployers
Posted by aditya chitre <ch...@gmail.com>.
Yes, the classes are added in the classpath.
On Mon, May 2, 2011 at 10:42 PM, Deepal Jayasinghe <de...@opensource.lk>wrote:
> Did you add the deployer classes to classpath or if you are using Tomcat
> cat put it to WEB-INF/classes
>
> deepal
> On 5/2/2011 2:23 AM, aditya chitre wrote:
> > Hi,
> >
> > I have custom deployers in my project and I have added the appropriate
> > tags in axis2.xml for stating the extension, directory and class. I
> > also enabled 'hotupdate' and 'hotdeployment'.
> > However, when I try starting the server, I get an info log stating
> > that "[INFO] Unable to instantiate deployer <classname>". Is Axis2
> > unable to find these classes?
> >
> > Regards,
> > Aditya
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
> For additional commands, e-mail: java-user-help@axis.apache.org
>
>
Re: Axis2 Custom Deployers
Posted by Deepal Jayasinghe <de...@opensource.lk>.
Did you add the deployer classes to classpath or if you are using Tomcat
cat put it to WEB-INF/classes
deepal
On 5/2/2011 2:23 AM, aditya chitre wrote:
> Hi,
>
> I have custom deployers in my project and I have added the appropriate
> tags in axis2.xml for stating the extension, directory and class. I
> also enabled 'hotupdate' and 'hotdeployment'.
> However, when I try starting the server, I get an info log stating
> that "[INFO] Unable to instantiate deployer <classname>". Is Axis2
> unable to find these classes?
>
> Regards,
> Aditya
---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@axis.apache.org
For additional commands, e-mail: java-user-help@axis.apache.org