Hi Nandana,
I don't have much experience in Open Source developement. I would be happy
to create the patch and attached it to JIRA.
BTW, What's JIRA? Also my concern is the the changes I make should work with
jdk1.5 also. It should not break anything else.
So for this time I am sending the chanegs i have done through this mail.
Probably you people can take a look at it and then
adopt it..
PolicyBasedResultsValidator.java: Line : 403
sigEncrActions.add(Integer.valueOf(""+action));
WSDOAllSender.java: Line: 260
Integer.valueOf(""+repetition));
HandleParameterDecoder.java: Line : 152
Integer.valueOf(""+repetitionCount));
BTW, I have a question. Does AxisClient using axis2.1.4 work correctly with
Server implemented using Axis1 (1.4)?. Why I am asking is,
I am getting the data from the webservice I am connecting to when I use a
axis1 (1.4) client but not getting any data when I use axis2.1-4 client!
But I am not getting any errors. here is the response from the webserivce
<ns1:getLearningByPersonAndDateRangeResponse soapenv:encodingStyle="
http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="
http://service.ifw.wep.com" xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="
http://www.w3.org/2001/XMLSchema">
<getLearningByPersonAndDateRangeReturn href="#id0"/>
</ns1:getLearningByPersonAndDateRangeResponse>
Thanks & Regards
Hari P
On 5/9/08, Nandana Mihindukulasooriya <[EMAIL PROTECTED]> wrote:
>
> Hi Hari,
> Rampart 1.4 should support JDK 1.4. Can you please create a JIRA in
> Rampart ? Can you please try building Rampart after your changes, so we can
> verify that Rampart is JDK 1.4 compliant. And it will be even great if
> you can create a patch and attach it to the JIRA.
>
> thanks,
> nandana
>
> [1] - http://issues.apache.org/jira/browse/Rampart
>
> On Fri, May 9, 2008 at 1:13 PM, Hari Prasad <[EMAIL PROTECTED]> wrote:
>
>> Hi nandan & Vinh,
>>
>> I think latest Rampart is compatible only with JDK1.5! I am using
>> jdk1.4_08 which doesn't implement
>> the Integer.valueOf(int).. What I did was I extracted the java files from
>> the ramart-core-642231.jar and changed in
>> 3 places valueOf(int) to valueOf( "" + int). Then created the jar again
>> and added to this to my classpath.. Now
>> I don't get this error any more!!. But I am not getting the data yet which
>> I am looking into!
>>
>> Regards
>> HAri P
>>
>>
>> On 5/9/08, Hari Prasad <[EMAIL PROTECTED]> wrote:
>>>
>>> Thanks a lot Vinh!
>>>
>>> Indeed this was the problem. From somewhere I had copied
>>> axis2-security.jar into the lib folder which contained a rampart class.
>>> Once I removed this jar, the module is getting loaded (i guess as there
>>> are no error which I used to get). But now I am running into a different
>>> exception which
>>> I guess, again due to some class conflict. But I'm having difficulty in
>>> resolving it. Here is the error
>>>
>>> java.lang.NoSuchMethodError:
>>> java.lang.Integer.valueOf(I)Ljava/lang/Integer;
>>>
>>> at org.apache.rampart.util.HandlerParameterDecoder.processParameters(
>>> *HandlerParameterDecoder.java:151*
>>> )
>>>
>>> at org.apache.rampart.handler.WSDoAllSender.processBasic(
>>> *WSDoAllSender.java:94*) SO what should be the classpath and order of
>>> the jars?
>>>
>>> Regards
>>> Hari P
>>>
>>>
>>>
>>> On 5/9/08, Vinh Nguyen (vinguye2) <[EMAIL PROTECTED]> wrote:
>>>>
>>>> Normally, classloaders look up classes using the full package path and
>>>> class name, not just the class name. So it's not likely that the problem
>>>> is
>>>> because of clashes between classes that have the same name but different
>>>> packages.
>>>>
>>>> More likely, the NoClassDefFoundError is occuring because no such jar
>>>> exists with that package and class name. Or, as I encountered this a few
>>>> times before, the class does exist but in multiple jars, so the classloader
>>>> doesn't know which to load.
>>>> -Vinh
>>>>
>>>> ------------------------------
>>>> *From:* Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
>>>> *Sent:* Thursday, May 08, 2008 7:48 PM
>>>> *To:* [email protected]
>>>> *Subject:* Re: Problem with engaging security module in Axis2 1.4
>>>> version
>>>>
>>>>
>>>> Hari,
>>>>
>>>> I have this class in the class path but what I found out is the
>>>>> ModulePolicyExtension class belongs to
>>>>> org.apache.axis2.wsdl.codegen.extension
>>>>>
>>>>> But the error I am getting is for this class org*/*apache*/*axis2*/*
>>>>> modules*/*ModulePolicyExtension
>>>>> Some where the code is looking for
>>>>> org.apache.axis2.modules.ModulePolicyExtension class
>>>>>
>>>>> Any inputs?
>>>>>
>>>>
>>>> This seems to be strange. look at this commit [1]. It seems that Axis2
>>>> has replaced org.apache.axis2.modules.ModulePolicyExtension class with
>>>> org.apache.axis2.wsdl.codegen.extension.ModulePolicyExtension . So
>>>> there is no way Rampart 1.4 could refer to this class. Just guessing, is
>>>> there a chance that there is Rampart 1.1 or 1.2 jars in your class path.
>>>>
>>>> thanks,
>>>> nandana
>>>>
>>>> [1] -
>>>> http://markmail.org/message/6vx7ijlhgsdrym6t?q=list:org%2Eapache%2Ews%2Eaxis-cvs+org%2Eapache%2Eaxis2%2Emodules%2EModulePolicyExtension
>>>>
>>>>
>>>>
>>>>> On 5/8/08, Nandana Mihindukulasooriya <[EMAIL PROTECTED]> wrote:
>>>>>>
>>>>>> Hi Hari,
>>>>>> do you have axis2-codegen-1.4.jar in your classpath ? If not,
>>>>>> please add this jar in to your classpath. This jar ships with Axis2
>>>>>> binary
>>>>>> distribution under lib. Even if you download the war distribution or
>>>>>> create
>>>>>> the distribution using maven, it is there. But if you create the war
>>>>>> using
>>>>>> the ant task in binary distribution, that script explicitly excludes this
>>>>>> jar. :( .
>>>>>>
>>>>>> thanks,
>>>>>> nandana
>>>>>>
>>>>>>
>>>>>> On 5/8/08, Hari Prasad <[EMAIL PROTECTED]> wrote:
>>>>>>>
>>>>>>> Hi Nandana,
>>>>>>>
>>>>>>> Thanks for the tips on debugging. I debugged the code and found that
>>>>>>> the faulty modules has this 'rampart' module in it.
>>>>>>> The error is the following
>>>>>>>
>>>>>>> java
>>>>>>> *.*lang*.*NoClassDefFoundError*:* org*/*apache*/*axis2*/*modules*/*
>>>>>>> ModulePolicyExtension
>>>>>>> Which axis2 jar contains this class? I searched in all jars but could
>>>>>>> not find this class. I downloaded the axis2-1.4 binaries yesterday.
>>>>>>>
>>>>>>> Regards
>>>>>>> Hari P
>>>>>>>
>>>>>>> On 5/8/08, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>
>>>>>>> wrote:
>>>>>>>>
>>>>>>>> Hi Hari,
>>>>>>>>
>>>>>>>> There are no compilation errors but when I run the program , I get
>>>>>>>>> the same error
>>>>>>>>> "org.apache.axis2.AxisFault: The system is attempting to engage a
>>>>>>>>> module that is not available: rampart"
>>>>>>>>>
>>>>>>>>
>>>>>>>> The possible reason is Rampart might not have been deployed
>>>>>>>> correctly. Did you add all dependency jars to your classpath ? And if
>>>>>>>> you
>>>>>>>> can debug, you can check ConfigurationContext ->
>>>>>>>> axisConfiguration -> faultyModules to check the reason why it has
>>>>>>>> actually failed to deploy.
>>>>>>>>
>>>>>>>> BTW, Are you using a custom axis2.xml ?
>>>>>>>>
>>>>>>>> thanks,
>>>>>>>> nandana
>>>>>>>>
>>>>>>>>
>>>>>>>>>
>>>>>>>>> On 5/8/08, Nandana Mihindukulasooriya <[EMAIL PROTECTED]>
>>>>>>>>> wrote:
>>>>>>>>>>
>>>>>>>>>> Hi Hari,
>>>>>>>>>>
>>>>>>>>>>> Not knowing what else needs to be done?. I tried using rampart
>>>>>>>>>>> with 1.4 It didn't work. Does Rampart
>>>>>>>>>>> supported with axis2 1.4?
>>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> Yes, you can download Rampart 1.4 RC2 here [1]. Configuration
>>>>>>>>>> should be like this.
>>>>>>>>>>
>>>>>>>>>> <module ref="rampart" />
>>>>>>>>>>
>>>>>>>>>> <parameter name="OutflowSecurity">
>>>>>>>>>> <action>
>>>>>>>>>> <items>UsernameToken Timestamp</items>
>>>>>>>>>> <user>bob</user>
>>>>>>>>>>
>>>>>>>>>> <passwordCallbackClass>org.apache.rampart.samples.sample02.PWCBHandler</passwordCallbackClass>
>>>>>>>>>> </action>
>>>>>>>>>> </parameter>
>>>>>>>>>>
>>>>>>>>>> you can find the complete axis2.xml here [2]. You can go through
>>>>>>>>>> the samples come with Rampart distribution to get a better
>>>>>>>>>> understanding.
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> [1] -
>>>>>>>>>> http://people.apache.org/~nandana/rampart-1.4/RC2/dist/<http://people.apache.org/%7Enandana/rampart-1.4/RC2/dist/>
>>>>>>>>>> [2] -
>>>>>>>>>> http://svn.apache.org/repos/asf/webservices/rampart/trunk/java/modules/rampart-samples/basic/sample02/client.axis2.xml
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> thanks,
>>>>>>>>>> nandana
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Nandana Mihindukulasooriya
>>>>>> WSO2 inc.
>>>>>>
>>>>>> http://nandana83.blogspot.com/
>>>>>> http://nandanasm.wordpress.com/
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>
>>
>>
>