AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-16 Thread Stadelmann Josef
Hi Andreas,

thank you for your excellent analysis. It is exactly what I are faced with.
I just learned that what is built with an earlier version of maven is not 
what actually works on a given project. I was just failing into this trap
because I've built all versions of maven from sources and used by default 
the latest greates maven 3.0 

Now I have the luxury to select the proper maven version used for axis2 builds 
and it works error free with maven 2.2.1

But I am not that maven guru yet like you able to fix all problems seen with 
maven 3.0
So, thanks for the help

Josef.Stadelmann
@axa-winterthur.ch




-Ursprüngliche Nachricht-
Von: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Gesendet: Mittwoch, 3. Februar 2010 11:28
An: axis-user@ws.apache.org
Cc: axis-...@ws.apache.org
Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

On Tue, Feb 2, 2010 at 10:06, Stadelmann Josef
 wrote:
> Andreas,
>
> Summary:
>
> Builds using MAVEN 2.2.1
> Source Code used,
> Cmd window              NetBeans IDE 6.8                        Maven
> Flags
> downloaded by SVN Tortoise                                      Maven
> 2.2.1           external Maven 2.2.1
>
> Ant 1.7.0               external Ant 1.7.0
>
> C:\asf\webservices\axis2\tags\java\v1.5.1               fails
> fails                                   -Dmave.test.skip=true
> C:\asf\webservices\axis2\tags\java\v1.5.1               success
> success                         .NA.
>
> C:\asf\webservices\axis2\trunk\java                             success
> success                         -Dmave.test.skip=true
> C:\asf\webservices\axis2\trunk\java                             success
> success                         .NA.
>
> Builds using MAVEN 3.0-SNAPSHOT                         AXIS2 is not yet
> maven 3.0-Snapshot ready!
>
> If you have NetBeans IDE 6.8 with the internal or external maven
> 3.0-snapshot then you are unable to open the axis2 root POM correctly.
> However one is  still able to build some off the axis2
> components/artifacts correctly. In short AXIS2 Trunk sources and earlier
> are not yet ready for MAVEN 3.0-SNAPSHOT!
>
> Josef

Maven 3.0 (alpha-6) actually works surprisingly well on the Axis2
build. There are only two issues:

- A duplicate dependency declaration in the integration module; this
is now fixed.

- The root POM has an antrun execution that depends on the output of
several of its sub-modules by directly accessing
modules/xxx/target/classes, but no provisions are made to make sure
that these modules are built before the antrun execution. Depending on
the output of other modules in that way is bad practice, and leads to
unstable/unpredictable build. With Maven 2.0 the build order is such
that it works correctly, but this is probably more a coincidence. We
will probably have to use some maven-assembly-plugin magic to do this
correctly and to make the build order predictable.

Andreas


RE: Please help on Axis2 Exception handling

2010-02-15 Thread Martin Gainty

the client needs to disable setExceptionToBeThrownOnSOAPFault
ServiceClient.setExceptionToBeThrownOnSOAPFault

now the client is free to handle any exception..

you will need to configure the client method to throw your exception which you 
can do at the phase level
ConfigurationContext ctx=UtilServer.getConfigurationContext();
List phases_list=ctx.getAxisConfiguration().getInFlowPhases();
Phase phaseOne=(Phase) phases_list.get(0); //acquire the first phase
phaseOne.addHandler(new FaultHandler());

Notice that the FaultHandler code has these 3 line which you can tweak to 
override the 
FaultHandler 
invoke(MsgContext msgContext)
.
org.apache.axiom.soap.SOAPFactory fac=msgContext.isSOAP11()? 
OMAbstractFactory.getSOAP11Factory() : OMAbstractFactory().getSOAP12Factory();

org.apache.axiom.soap.SOAPFaultCode 
PlaceNewLocalNameHere=fac.createSOAPFaultCode();
//override the value with whatever you need here assuming the new FaultCode 
overrides SOAPFaultCode 
msgContext.setProperty(SOAP12Constants.SOAP_FAULT_CODE_LOCAL_NAME,PlaceNewLocalNameHere);

org.apache.axiom.soap.SOAPReasonName 
PlaceNewReasonHere=fac.createSOAPFaultReason();
///override the reason with whatever you need here assuming the new ReasonName 
overrides SOAPReasonName
msgContext.setProperty(SOAP12Constants.SOAP_FAULT_REASON_NAME,PlaceNewReasonHere);

org.apache.axiom.soap.SOAPFaultDetail 
PlaceNewDetailHere=fac.createSOAPFaultDetail();
//override the PlaceNewDetailHere with whatever you need here assuming new 
SOAPFaultDetail overrides SOAPFaultDetail
msgContext.setProperty(SOAP12Constants.SOAP_FAULT_DETAIL_LOCAL_NAME,PlaceNewDetailHere);

throw new FaultThatOverridesAxisFault("FaultThatOverridesAxisFaultException has 
occured);

Greetings ,
Martin Gainty
USCitizen(contractor)

Please do not alter or disrupt this transmission. Thank You

Date: Mon, 15 Feb 2010 09:04:08 -0500
Subject: Please help on Axis2 Exception handling
From: lim...@gmail.com
To: axis-user@ws.apache.org

Dear All,
I ran into a very weird problem with Axis2 exception handling, which puzzled me 
for long time. Any help from you Axis2 expert will be greately appreciated!
This is what I did:

1. Get my service POJO ready. All method throws a customized MyException which 
is derived from java.lang.Exception2. Use Axis2 java2wsdl to convert this POJO 
to WSDL,. I can see the wsdl:fault part of each service call has been created 
successfully with name as MyException
3. Then use wsdl2java to generate client side API with ADB binding. Suddenly 
Axis2 creates a bunch of exception related classes, such 
as:MyExceptionExceptionMyExceptionExsd/MyException

The methods will throw MyExceptionException, which contains MyExceptionE, which 
contains xsd/MyException. The xsd/MyException has all properties I defined at 
server side. Method also throw AxisFault.

When I run the client code and throw MyException on server, at client side, I 
could only catch AxisFault exception which reason string as return of 
MyException.getMessage() defined on server. I could never catch MyException nor 
MyExceptionException at client side. This is the bigest issue that troubled me. 
If Axis2 has to wrap everything in AxisFault at client side, fine, but whey 
wsdl2java still throws MyExceptionException in generated code and never throw 
it?

Thanks a lot!
Li
  
_
Hotmail: Trusted email with powerful SPAM protection.
http://clk.atdmt.com/GBL/go/201469227/direct/01/

RE: Please help on Axis2 Exception handling

2010-02-15 Thread Sandeep Khurana
Actually, I also faced a similar problem while throwing a RemoteException from 
POJO.
Couldn't get a solution for that. Does anybody have a guide for exception 
handling or the best practices for this?

-Sandeep

From: Li Ma [mailto:lim...@gmail.com]
Sent: Monday, February 15, 2010 7:34 PM
To: axis-user@ws.apache.org
Subject: Please help on Axis2 Exception handling

Dear All,

I ran into a very weird problem with Axis2 exception handling, which puzzled me 
for long time. Any help from you Axis2 expert will be greately appreciated!

This is what I did:

1. Get my service POJO ready. All method throws a customized MyException which 
is derived from java.lang.Exception
2. Use Axis2 java2wsdl to convert this POJO to WSDL,. I can see the wsdl:fault 
part of each service call has been created successfully with name as MyException
3. Then use wsdl2java to generate client side API with ADB binding. Suddenly 
Axis2 creates a bunch of exception related classes, such as:
MyExceptionException
MyExceptionE
xsd/MyException

The methods will throw MyExceptionException, which contains MyExceptionE, which 
contains xsd/MyException. The xsd/MyException has all properties I defined at 
server side. Method also throw AxisFault.

When I run the client code and throw MyException on server, at client side, I 
could only catch AxisFault exception which reason string as return of 
MyException.getMessage() defined on server. I could never catch MyException nor 
MyExceptionException at client side. This is the bigest issue that troubled me. 
If Axis2 has to wrap everything in AxisFault at client side, fine, but whey 
wsdl2java still throws MyExceptionException in generated code and never throw 
it?

Thanks a lot!

Li

DISCLAIMER
==
This e-mail may contain privileged and confidential information which is the 
property of Persistent Systems Ltd. It is intended only for the use of the 
individual or entity to which it is addressed. If you are not the intended 
recipient, you are not authorized to read, retain, copy, print, distribute or 
use this message. If you have received this communication in error, please 
notify the sender and delete all copies of this message. Persistent Systems 
Ltd. does not accept any liability for virus infected mails.


Please help on Axis2 Exception handling

2010-02-15 Thread Li Ma
Dear All,

I ran into a very weird problem with Axis2 exception handling, which puzzled
me for long time. Any help from you Axis2 expert will be greately
appreciated!

This is what I did:

1. Get my service POJO ready. All method throws a customized MyException
which is derived from java.lang.Exception
2. Use Axis2 java2wsdl to convert this POJO to WSDL,. I can see the
wsdl:fault part of each service call has been created successfully with name
as MyException
3. Then use wsdl2java to generate client side API with ADB binding. Suddenly
Axis2 creates a bunch of exception related classes, such as:
MyExceptionException
MyExceptionE
xsd/MyException

The methods will throw MyExceptionException, which contains MyExceptionE,
which contains xsd/MyException. The xsd/MyException has all properties I
defined at server side. Method also throw AxisFault.

When I run the client code and throw MyException on server, at client side,
I could only catch AxisFault exception which reason string as return of
MyException.getMessage() defined on server. I could never catch MyException
nor MyExceptionException at client side. This is the bigest issue that
troubled me. If Axis2 has to wrap everything in AxisFault at client side,
fine, but whey wsdl2java still throws MyExceptionException in generated code
and never throw it?

Thanks a lot!

Li


anyone can help me on exception hanlding in Axis2?

2010-02-12 Thread Li Ma
IF you can spare an hour or so with me on phone to help resolve my exception
halding issue, please let me know.
I'm in eastern standard time zone (New York).

thanks!

Li


Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-03 Thread Andreas Veithen
On Tue, Feb 2, 2010 at 10:06, Stadelmann Josef
 wrote:
> Andreas,
>
> Summary:
>
> Builds using MAVEN 2.2.1
> Source Code used,
> Cmd window              NetBeans IDE 6.8                        Maven
> Flags
> downloaded by SVN Tortoise                                      Maven
> 2.2.1           external Maven 2.2.1
>
> Ant 1.7.0               external Ant 1.7.0
>
> C:\asf\webservices\axis2\tags\java\v1.5.1               fails
> fails                                   -Dmave.test.skip=true
> C:\asf\webservices\axis2\tags\java\v1.5.1               success
> success                         .NA.
>
> C:\asf\webservices\axis2\trunk\java                             success
> success                         -Dmave.test.skip=true
> C:\asf\webservices\axis2\trunk\java                             success
> success                         .NA.
>
> Builds using MAVEN 3.0-SNAPSHOT                         AXIS2 is not yet
> maven 3.0-Snapshot ready!
>
> If you have NetBeans IDE 6.8 with the internal or external maven
> 3.0-snapshot then you are unable to open the axis2 root POM correctly.
> However one is  still able to build some off the axis2
> components/artifacts correctly. In short AXIS2 Trunk sources and earlier
> are not yet ready for MAVEN 3.0-SNAPSHOT!
>
> Josef

Maven 3.0 (alpha-6) actually works surprisingly well on the Axis2
build. There are only two issues:

- A duplicate dependency declaration in the integration module; this
is now fixed.

- The root POM has an antrun execution that depends on the output of
several of its sub-modules by directly accessing
modules/xxx/target/classes, but no provisions are made to make sure
that these modules are built before the antrun execution. Depending on
the output of other modules in that way is bad practice, and leads to
unstable/unpredictable build. With Maven 2.0 the build order is such
that it works correctly, but this is probably more a coincidence. We
will probably have to use some maven-assembly-plugin magic to do this
correctly and to make the build order predictable.

Andreas


Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-02 Thread Andreas Veithen
On Tue, Feb 2, 2010 at 10:06, Stadelmann Josef
 wrote:
> Andreas,
>
> Summary:
>
> Builds using MAVEN 2.2.1
> Source Code used,
> Cmd window              NetBeans IDE 6.8                        Maven
> Flags
> downloaded by SVN Tortoise                                      Maven
> 2.2.1           external Maven 2.2.1
>
> Ant 1.7.0               external Ant 1.7.0
>
> C:\asf\webservices\axis2\tags\java\v1.5.1               fails
> fails                                   -Dmave.test.skip=true
> C:\asf\webservices\axis2\tags\java\v1.5.1               success
> success                         .NA.
>
> C:\asf\webservices\axis2\trunk\java                             success
> success                         -Dmave.test.skip=true
> C:\asf\webservices\axis2\trunk\java                             success
> success                         .NA.
>
> Builds using MAVEN 3.0-SNAPSHOT                         AXIS2 is not yet
> maven 3.0-Snapshot ready!
>
> If you have NetBeans IDE 6.8 with the internal or external maven
> 3.0-snapshot then you are unable to open the axis2 root POM correctly.
> However one is  still able to build some off the axis2
> components/artifacts correctly. In short AXIS2 Trunk sources and earlier
> are not yet ready for MAVEN 3.0-SNAPSHOT!
>
> Josef

You are probably one of the first persons to attempt building Axis2
with Maven 3.0. Normally Maven 3.0 is meant to be a drop-in
replacement for Maven 2.x so there should be no major problems. I will
give it a try.

Andreas


AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-02 Thread Stadelmann Josef
Andreas,

Summary: 

Builds using MAVEN 2.2.1
Source Code used,
Cmd window  NetBeans IDE 6.8Maven
Flags
downloaded by SVN Tortoise  Maven
2.2.1   external Maven 2.2.1

Ant 1.7.0   external Ant 1.7.0  

C:\asf\webservices\axis2\tags\java\v1.5.1   fails
fails   -Dmave.test.skip=true   
C:\asf\webservices\axis2\tags\java\v1.5.1   success
success .NA.

C:\asf\webservices\axis2\trunk\java success
success -Dmave.test.skip=true   
C:\asf\webservices\axis2\trunk\java success
success .NA.

Builds using MAVEN 3.0-SNAPSHOT AXIS2 is not yet
maven 3.0-Snapshot ready! 

If you have NetBeans IDE 6.8 with the internal or external maven
3.0-snapshot then you are unable to open the axis2 root POM correctly.
However one is  still able to build some off the axis2
components/artifacts correctly. In short AXIS2 Trunk sources and earlier
are not yet ready for MAVEN 3.0-SNAPSHOT!

Josef





Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Amila Suriarachchi
On Mon, Feb 1, 2010 at 10:05 PM, Stadelmann Josef <
josef.stadelm...@axa-winterthur.ch> wrote:

> Thank you Andreas,
>
> But why does under NetBeans IDE control, maven build/makes only 26 files
> while running maven in a vista cmd window maven builds/makes 50 files.
> And that is what the error says. File not found ... osn't it?
>
> Looking at the POM I do not understand why this file and others are not
> built when maven is used from NetBeans IDE.
>
> So your saying that I have no choice to have a error free build using
> NetBeans IDE 6.8. I tried to build error free from the trunk sources and in
> absence of a well running build I switched to the tags/v1.5.1 sources, which
> did it perfectly when I used maven 2.2.1 from a Vista cmd window, but fails
> now with the latest greatest NetBeans IDE 6.8
>
> Then I like to formulate my question differently.
> What source code version of axis2 shall I use to have an error free build
> using NetBeans IDE 6.8 with external maven 2.2.1 and ant 1.7?
>

As Andreas has told this is fixed in current trunk and available  with next
release.
For the moment you can remove the jaxws-integration module (this contains
some integration tests for jaxws and since you skip tests anyway it is not
useful) from the root pom.xml

Amila.

>
> Thank you
> Josef
>
>
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Montag, 1. Februar 2010 17:03
> An: axis-user@ws.apache.org
> Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1
>
> Josef,
>
> Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
> recently in the trunk.
>
> Andreas
>
> On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
>  wrote:
> > Hi all,
> >
> > I've used subversion to catch down axis2
> >
> > /trunk/java/
> >
> > /tags/java/v1.5.1
> >
> > /branches/java/v1.5
> >
> > Then I used a Vista cmd window and maven 2.2.1 to build axis2
> >
> > CD C:\asf\webservices\axis2\tags\java\v1.5.1
> >
> > C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
> >
> > And all was built perfect, greatre success, error free.
> >
> > Now I struggle with the same doing it from with NetBeans 6.8,
> >
> > using external maven 2.2.1 from the same location as done using maven
> from
> > the vista cmd window
> >
> > C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
> >
> > Apache Ant version 1.7.1 compiled on June 27 2008
> >
> > C:\asf\webservices\axis2\tags\java\v1.5.1>
> >
> > It fails while building JAXWS Integration Tests
> >
> > Any ideas and hints welcome. What can I do to get my axis2 cleanly built
> > using NetBeans IDE 6.8 and maven 2.2.1 ?
> >
> > I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
> > maschine under Tomcat,
> >
> > with a NetBeans IDE debugger attached to the JVM on OpenVMS.
> >
> > Regards
> >
> > Josef.Stadelmann
> >
> > @Axa-winterthur.ch
> >
> > NetBeans: Executing
> > 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
> > -Dmaven.test.skip=true -Dnetbeans.execution=true
> > -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
> > install'
> >
> > NetBeans:  JAVA_HOME=C:\Program Files\JAVA\jdk1.6.0_14
> >
> > + Error stacktraces are turned on.
> >
> > Scanning for projects...
> >
> > 
> >
> > Building Apache Axis2 - JAXWS Integration Tests
> >
> >task-segment: [clean, install]
> >
> > 
> >
> > [clean:clean]
> >
> > Deleting directory
> >
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target
> >
> > [resources:resources]
> >
> > Using default encoding to copy filtered resources.
> >
> > [compiler:compile]
> >
> > No sources to compile
> >
> > [antrun:run]
> >
> > Executing tasks
> >
> > [mkdir] Created dir:
> >
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema
> >
> > [mkdir] Created dir:
> >
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\src
> >
> > [mkdir] Created dir:
> >
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\classes
> >
> >  [echo] Generating JAX-B classes from 

Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Andreas Veithen
On Mon, Feb 1, 2010 at 18:10, Stadelmann Josef
 wrote:
> Andreas,
>
> The problem I am faced with is twofold.
>
> 1. When I turn oft in NetBeans IDE 6.8 under Option at the Maven tag the 
> checkbox labeled:
> "Skip test for any build executions not directly related to testing"
> those resulting in forcing the maven command having a 
> "-Dmaven.test.skip=true" on board,
> then turning this flag OFF in the option menu for maven
> makes all test classes generated (around 50) and then
> the dedicated copy tasks as shown in the POM runs but al tests run as well 
> (very lengthy)
>
> Therefore: To get an error free build using NetBeans IDE 6.8 and maven 2.2.1 
> I have to work for JAXWS Integration with this flag set to OFF
>
>
> 2. And maybe I get something wrong here but maybe of interest to you:
> When I use the vista cmd window
> ... > mvn -Dmaven.test.skip=true clean install
>
> The build
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration>mvn 
> -Dmaven.test.skip=true clean install
> fails too.

That is the issue we fixed last weekend. See:

http://svn.apache.org/viewvc?view=revision&revision=904780

> So are you saying I have to use the POM from the trunk for JAXWS Integration 
> to build correctly?
> OR
> Where do you think it was fixed; sorry but I am not getting more insight 
> reading the two JIRA's
>
> Josef
>
>
>
>
>
> -Ursprüngliche Nachricht-
> Von: Stadelmann Josef [mailto:josef.stadelm...@axa-winterthur.ch]
> Gesendet: Montag, 1. Februar 2010 17:35
> An: axis-user@ws.apache.org
> Betreff: AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1
>
> Thank you Andreas,
>
> But why does under NetBeans IDE control, maven build/makes only 26 files 
> while running maven in a vista cmd window maven builds/makes 50 files.
> And that is what the error says. File not found ... osn't it?
>
> Looking at the POM I do not understand why this file and others are not built 
> when maven is used from NetBeans IDE.
>
> So your saying that I have no choice to have a error free build using 
> NetBeans IDE 6.8. I tried to build error free from the trunk sources and in 
> absence of a well running build I switched to the tags/v1.5.1 sources, which 
> did it perfectly when I used maven 2.2.1 from a Vista cmd window, but fails 
> now with the latest greatest NetBeans IDE 6.8
>
> Then I like to formulate my question differently.
> What source code version of axis2 shall I use to have an error free build 
> using NetBeans IDE 6.8 with external maven 2.2.1 and ant 1.7?
>
> Thank you
> Josef
>
>
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Montag, 1. Februar 2010 17:03
> An: axis-user@ws.apache.org
> Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1
>
> Josef,
>
> Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
> recently in the trunk.
>
> Andreas
>
> On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
>  wrote:
>> Hi all,
>>
>> I've used subversion to catch down axis2
>>
>> /trunk/java/
>>
>> /tags/java/v1.5.1
>>
>> /branches/java/v1.5
>>
>> Then I used a Vista cmd window and maven 2.2.1 to build axis2
>>
>> CD C:\asf\webservices\axis2\tags\java\v1.5.1
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
>>
>> And all was built perfect, greatre success, error free.
>>
>> Now I struggle with the same doing it from with NetBeans 6.8,
>>
>> using external maven 2.2.1 from the same location as done using maven from
>> the vista cmd window
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
>>
>> Apache Ant version 1.7.1 compiled on June 27 2008
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1>
>>
>> It fails while building JAXWS Integration Tests
>>
>> Any ideas and hints welcome. What can I do to get my axis2 cleanly built
>> using NetBeans IDE 6.8 and maven 2.2.1 ?
>>
>> I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
>> maschine under Tomcat,
>>
>> with a NetBeans IDE debugger attached to the JVM on OpenVMS.
>>
>> Regards
>>
>> Josef.Stadelmann
>>
>> @Axa-winterthur.ch
>>
>> NetBeans: Executing
>> 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
>> -Dmaven.test.skip=true -Dnetbeans.execution=true
>> -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
>> install'
>>
>> NetBeans:  JAVA_HOME=C:\Program 

AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Stadelmann Josef
Andreas,

The problem I am faced with is twofold.

1. When I turn oft in NetBeans IDE 6.8 under Option at the Maven tag the 
checkbox labeled: 
"Skip test for any build executions not directly related to testing" 
those resulting in forcing the maven command having a "-Dmaven.test.skip=true" 
on board, 
then turning this flag OFF in the option menu for maven 
makes all test classes generated (around 50) and then 
the dedicated copy tasks as shown in the POM runs but al tests run as well 
(very lengthy)

Therefore: To get an error free build using NetBeans IDE 6.8 and maven 2.2.1 I 
have to work for JAXWS Integration with this flag set to OFF


2. And maybe I get something wrong here but maybe of interest to you:
When I use the vista cmd window 
... > mvn -Dmaven.test.skip=true clean install

The build
C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration>mvn 
-Dmaven.test.skip=true clean install
fails too.

So are you saying I have to use the POM from the trunk for JAXWS Integration to 
build correctly?  
OR
Where do you think it was fixed; sorry but I am not getting more insight 
reading the two JIRA's

Josef





-Ursprüngliche Nachricht-
Von: Stadelmann Josef [mailto:josef.stadelm...@axa-winterthur.ch] 
Gesendet: Montag, 1. Februar 2010 17:35
An: axis-user@ws.apache.org
Betreff: AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

Thank you Andreas,

But why does under NetBeans IDE control, maven build/makes only 26 files while 
running maven in a vista cmd window maven builds/makes 50 files. 
And that is what the error says. File not found ... osn't it?

Looking at the POM I do not understand why this file and others are not built 
when maven is used from NetBeans IDE.

So your saying that I have no choice to have a error free build using NetBeans 
IDE 6.8. I tried to build error free from the trunk sources and in absence of a 
well running build I switched to the tags/v1.5.1 sources, which did it 
perfectly when I used maven 2.2.1 from a Vista cmd window, but fails now with 
the latest greatest NetBeans IDE 6.8

Then I like to formulate my question differently.
What source code version of axis2 shall I use to have an error free build using 
NetBeans IDE 6.8 with external maven 2.2.1 and ant 1.7?

Thank you
Josef



-Ursprüngliche Nachricht-
Von: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Gesendet: Montag, 1. Februar 2010 17:03
An: axis-user@ws.apache.org
Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

Josef,

Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
recently in the trunk.

Andreas

On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
 wrote:
> Hi all,
>
> I've used subversion to catch down axis2
>
> /trunk/java/
>
> /tags/java/v1.5.1
>
> /branches/java/v1.5
>
> Then I used a Vista cmd window and maven 2.2.1 to build axis2
>
> CD C:\asf\webservices\axis2\tags\java\v1.5.1
>
> C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
>
> And all was built perfect, greatre success, error free.
>
> Now I struggle with the same doing it from with NetBeans 6.8,
>
> using external maven 2.2.1 from the same location as done using maven from
> the vista cmd window
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
>
> Apache Ant version 1.7.1 compiled on June 27 2008
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>
>
> It fails while building JAXWS Integration Tests
>
> Any ideas and hints welcome. What can I do to get my axis2 cleanly built
> using NetBeans IDE 6.8 and maven 2.2.1 ?
>
> I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
> maschine under Tomcat,
>
> with a NetBeans IDE debugger attached to the JVM on OpenVMS.
>
> Regards
>
> Josef.Stadelmann
>
> @Axa-winterthur.ch
>
> NetBeans: Executing
> 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
> -Dmaven.test.skip=true -Dnetbeans.execution=true
> -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
> install'
>
> NetBeans:  JAVA_HOME=C:\Program Files\JAVA\jdk1.6.0_14
>
> + Error stacktraces are turned on.
>
> Scanning for projects...
>
> 
>
> Building Apache Axis2 - JAXWS Integration Tests
>
>    task-segment: [clean, install]
>
> 
>
> [clean:clean]
>
> Deleting directory
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target
>
> [resources:resources]
>
> Using default encoding to copy filtered resources.
>
> [compiler:compile]
>
> No sources to compile
>
> [antrun:run]
>
> Executing tasks
>
>     [mkdir] Created dir:
> C:\asf\

Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Andreas Veithen
On Mon, Feb 1, 2010 at 17:35, Stadelmann Josef
 wrote:
> Thank you Andreas,
>
> But why does under NetBeans IDE control, maven build/makes only 26 files 
> while running maven in a vista cmd window maven builds/makes 50 files.
> And that is what the error says. File not found ... osn't it?

NetBeans somehow decided to run the build with maven.test.skip set to
true. That is what causes the AppleFinderService issue (we figured
that out last weekend after several people had a look into that
issue).

> Looking at the POM I do not understand why this file and others are not built 
> when maven is used from NetBeans IDE.
>
> So your saying that I have no choice to have a error free build using 
> NetBeans IDE 6.8. I tried to build error free from the trunk sources and in 
> absence of a well running build I switched to the tags/v1.5.1 sources, which 
> did it perfectly when I used maven 2.2.1 from a Vista cmd window, but fails 
> now with the latest greatest NetBeans IDE 6.8

Does this imply that you had a build failure using the trunk sources
and plain Maven?

> Then I like to formulate my question differently.
> What source code version of axis2 shall I use to have an error free build 
> using NetBeans IDE 6.8 with external maven 2.2.1 and ant 1.7?

Our priority is to have a build that works correctly with (plain)
Maven. We do not systematically test importing the sources into
various IDEs, so it's impossible to tell which version works with the
particular combination of tools you are using. However, we are happy
to fix issues that occur with specific IDEs (if the required fix has
no negative impact on the normal Maven build) when they are reported.
E.g., myself, from time to time I fix issues to simplify working with
the sources in Eclipse.

> Thank you
> Josef
>
>
>
> -Ursprüngliche Nachricht-
> Von: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Gesendet: Montag, 1. Februar 2010 17:03
> An: axis-user@ws.apache.org
> Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1
>
> Josef,
>
> Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
> recently in the trunk.
>
> Andreas
>
> On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
>  wrote:
>> Hi all,
>>
>> I've used subversion to catch down axis2
>>
>> /trunk/java/
>>
>> /tags/java/v1.5.1
>>
>> /branches/java/v1.5
>>
>> Then I used a Vista cmd window and maven 2.2.1 to build axis2
>>
>> CD C:\asf\webservices\axis2\tags\java\v1.5.1
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
>>
>> And all was built perfect, greatre success, error free.
>>
>> Now I struggle with the same doing it from with NetBeans 6.8,
>>
>> using external maven 2.2.1 from the same location as done using maven from
>> the vista cmd window
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
>>
>> Apache Ant version 1.7.1 compiled on June 27 2008
>>
>> C:\asf\webservices\axis2\tags\java\v1.5.1>
>>
>> It fails while building JAXWS Integration Tests
>>
>> Any ideas and hints welcome. What can I do to get my axis2 cleanly built
>> using NetBeans IDE 6.8 and maven 2.2.1 ?
>>
>> I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
>> maschine under Tomcat,
>>
>> with a NetBeans IDE debugger attached to the JVM on OpenVMS.
>>
>> Regards
>>
>> Josef.Stadelmann
>>
>> @Axa-winterthur.ch
>>
>> NetBeans: Executing
>> 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
>> -Dmaven.test.skip=true -Dnetbeans.execution=true
>> -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
>> install'
>>
>> NetBeans:  JAVA_HOME=C:\Program Files\JAVA\jdk1.6.0_14
>>
>> + Error stacktraces are turned on.
>>
>> Scanning for projects...
>>
>> 
>>
>> Building Apache Axis2 - JAXWS Integration Tests
>>
>>    task-segment: [clean, install]
>>
>> 
>>
>> [clean:clean]
>>
>> Deleting directory
>> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target
>>
>> [resources:resources]
>>
>> Using default encoding to copy filtered resources.
>>
>> [compiler:compile]
>>
>> No sources to compile
>>
>> [antrun:run]
>>
>> Executing tasks
>>
>>     [mkdir] Created dir:
>> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integratio

AW: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Stadelmann Josef
Thank you Andreas,

But why does under NetBeans IDE control, maven build/makes only 26 files while 
running maven in a vista cmd window maven builds/makes 50 files. 
And that is what the error says. File not found ... osn't it?

Looking at the POM I do not understand why this file and others are not built 
when maven is used from NetBeans IDE.

So your saying that I have no choice to have a error free build using NetBeans 
IDE 6.8. I tried to build error free from the trunk sources and in absence of a 
well running build I switched to the tags/v1.5.1 sources, which did it 
perfectly when I used maven 2.2.1 from a Vista cmd window, but fails now with 
the latest greatest NetBeans IDE 6.8

Then I like to formulate my question differently.
What source code version of axis2 shall I use to have an error free build using 
NetBeans IDE 6.8 with external maven 2.2.1 and ant 1.7?

Thank you
Josef



-Ursprüngliche Nachricht-
Von: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Gesendet: Montag, 1. Februar 2010 17:03
An: axis-user@ws.apache.org
Betreff: Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

Josef,

Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
recently in the trunk.

Andreas

On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
 wrote:
> Hi all,
>
> I've used subversion to catch down axis2
>
> /trunk/java/
>
> /tags/java/v1.5.1
>
> /branches/java/v1.5
>
> Then I used a Vista cmd window and maven 2.2.1 to build axis2
>
> CD C:\asf\webservices\axis2\tags\java\v1.5.1
>
> C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
>
> And all was built perfect, greatre success, error free.
>
> Now I struggle with the same doing it from with NetBeans 6.8,
>
> using external maven 2.2.1 from the same location as done using maven from
> the vista cmd window
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
>
> Apache Ant version 1.7.1 compiled on June 27 2008
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>
>
> It fails while building JAXWS Integration Tests
>
> Any ideas and hints welcome. What can I do to get my axis2 cleanly built
> using NetBeans IDE 6.8 and maven 2.2.1 ?
>
> I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
> maschine under Tomcat,
>
> with a NetBeans IDE debugger attached to the JVM on OpenVMS.
>
> Regards
>
> Josef.Stadelmann
>
> @Axa-winterthur.ch
>
> NetBeans: Executing
> 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
> -Dmaven.test.skip=true -Dnetbeans.execution=true
> -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
> install'
>
> NetBeans:  JAVA_HOME=C:\Program Files\JAVA\jdk1.6.0_14
>
> + Error stacktraces are turned on.
>
> Scanning for projects...
>
> 
>
> Building Apache Axis2 - JAXWS Integration Tests
>
>    task-segment: [clean, install]
>
> 
>
> [clean:clean]
>
> Deleting directory
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target
>
> [resources:resources]
>
> Using default encoding to copy filtered resources.
>
> [compiler:compile]
>
> No sources to compile
>
> [antrun:run]
>
> Executing tasks
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\src
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\classes
>
>  [echo] Generating JAX-B classes from XSDs
>
>  [echo] Generating java from soap 11
>
>  [echo] Generating java from echo.xsd
>
>  [echo] Generating java from stock1.xsd
>
>  [echo] Generating java from stock2.xsd
>
>  [echo] Generating java from samplemtom.xsd
>
>  [echo] Generating java from greeterTypes.xsd
>
>  [echo] Generating java from ProxyDocLitWrapped.wsdl
>
>  [echo] Generating java from AddNumbers.wsdl
>
>  [echo] Generating java from ProxyDocLitnonWrapped.wsdl
>
>  [echo] Generating java from samplemtomjpeg.wsdl
>
>  [echo] Generating java from RPCLit.wsdl
>
>  [echo] Generating java from RPCLitSWA.wsdl
>
>  [echo] Generating java from gorilla_dlw.wsdl
>
>  [echo] Generating java from SOAP12Echo.wsdl
>
>  [echo] Generating java from AddNumbersHandler.wsdl
>
>  [echo] Generating java from async_doclitwr.wsdl
>
>  [echo] Generating java from async

Re: help needed building axis2 using NetBeans 6.8 and maven 2.2.1

2010-02-01 Thread Andreas Veithen
Josef,

Please see AXIS2-3290 and AXIS2-4460. This issue has been fixed
recently in the trunk.

Andreas

On Mon, Feb 1, 2010 at 16:35, Stadelmann Josef
 wrote:
> Hi all,
>
> I’ve used subversion to catch down axis2
>
> /trunk/java/
>
> /tags/java/v1.5.1
>
> /branches/java/v1.5
>
> Then I used a Vista cmd window and maven 2.2.1 to build axis2
>
> CD C:\asf\webservices\axis2\tags\java\v1.5.1
>
> C:\asf\webservices\axis2\tags\java\v1.5.1 > mvn install
>
> And all was built perfect, greatre success, error free.
>
> Now I struggle with the same doing it from with NetBeans 6.8,
>
> using external maven 2.2.1 from the same location as done using maven from
> the vista cmd window
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>ant -version
>
> Apache Ant version 1.7.1 compiled on June 27 2008
>
> C:\asf\webservices\axis2\tags\java\v1.5.1>
>
> It fails while building JAXWS Integration Tests
>
> Any ideas and hints welcome. What can I do to get my axis2 cleanly built
> using NetBeans IDE 6.8 and maven 2.2.1 ?
>
> I will use NB 6.8 for debugging axis2 running on a Integrity OpenVMS
> maschine under Tomcat,
>
> with a NetBeans IDE debugger attached to the JVM on OpenVMS.
>
> Regards
>
> Josef.Stadelmann
>
> @Axa-winterthur.ch
>
> NetBeans: Executing
> 'C:\Users\C770817\SW-UMGEBUNG\apache-maven-2.2.1\bin\mvn.bat
> -Dmaven.test.skip=true -Dnetbeans.execution=true
> -Dmaven.repo.local=C:\Users\C770817\.m2\repository --errors -e clean
> install'
>
> NetBeans:  JAVA_HOME=C:\Program Files\JAVA\jdk1.6.0_14
>
> + Error stacktraces are turned on.
>
> Scanning for projects...
>
> 
>
> Building Apache Axis2 - JAXWS Integration Tests
>
>    task-segment: [clean, install]
>
> 
>
> [clean:clean]
>
> Deleting directory
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target
>
> [resources:resources]
>
> Using default encoding to copy filtered resources.
>
> [compiler:compile]
>
> No sources to compile
>
> [antrun:run]
>
> Executing tasks
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\src
>
>     [mkdir] Created dir:
> C:\asf\webservices\axis2\tags\java\v1.5.1\modules\jaxws-integration\target\schema\classes
>
>  [echo] Generating JAX-B classes from XSDs
>
>  [echo] Generating java from soap 11
>
>  [echo] Generating java from echo.xsd
>
>  [echo] Generating java from stock1.xsd
>
>  [echo] Generating java from stock2.xsd
>
>  [echo] Generating java from samplemtom.xsd
>
>  [echo] Generating java from greeterTypes.xsd
>
>  [echo] Generating java from ProxyDocLitWrapped.wsdl
>
>  [echo] Generating java from AddNumbers.wsdl
>
>  [echo] Generating java from ProxyDocLitnonWrapped.wsdl
>
>  [echo] Generating java from samplemtomjpeg.wsdl
>
>  [echo] Generating java from RPCLit.wsdl
>
>  [echo] Generating java from RPCLitSWA.wsdl
>
>  [echo] Generating java from gorilla_dlw.wsdl
>
>  [echo] Generating java from SOAP12Echo.wsdl
>
>  [echo] Generating java from AddNumbersHandler.wsdl
>
>  [echo] Generating java from async_doclitwr.wsdl
>
>  [echo] Generating java from async_doclitwr2.wsdl
>
>  [echo] Generating java from FaultyWebService.wsdl
>
>  [echo] Generating java from FaultsService.wsdl
>
>  [echo] Generating java from jaxbsource
>
>  [echo] Generating java from doclit_nonwrap.wsdl for javabean endpoint
>
>  [echo] support
>
>  [echo] Generating java from doclitwrap.wsdl for javabean endpoint
>
>  [echo] support
>
>  [echo] Generating java from doclitbare.wsdl for javabean endpoint
>
>  [echo] support
>
>  [echo] Generating java from EchoMessage.wsdl for javabean endpoint
>
>  [echo] support
>
>  [echo] Generating java from resourceinjection.wsdl for javabean
>
>  [echo] endpoint Resource Injection
> support
>
>  [echo] Generating java from AnyType.wsdl for javabean endpoint
>
>  [echo] AnyType support
>
>  [echo] Generating java from MessageContext.wsdl for message context
>
>  [echo] properties support
>
>  [echo] Generating java from WSDLMultiTests.wsdl
>
>  [echo] Generating java from Polymorphic shapes.wsdl for javabean
>
>  [echo] endpoint support
>
>  [echo] Generating java from SOAPActionTest.wsdl
>
>  [echo] Generating java from rpclitenum.wsdl
>
>  [echo] Generating java from AddNumbersHandler.wsdl
>
>  [echo] Generating java from rpclitst

RE: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-22 Thread c-tech-aaxis
Good evening all,

Kamran is correct, because of certain limitations I used MyEclipse to
generate JAX-WS web services from a WSDL file.  I haven't changed any
annotations so wsdlLocation does correctly point to the relative location
of the WSDL is located.

What I've seen today is that with a freshly generated project the
in-Eclipse Tomcat correctly builds, deploys and serves the project (ie.
the full WSDL is served).  I have been using axis2-1.2.jar and other JARs
to build and then serve the very same project (w ant tasks), but a reduced
WSDL is served (sans complexTypes).  Comparing the in-Eclipse build vs the
ant-build, the only differences are a context.xml (which causes startup
errors if missing), an almost empty application.properties and
log4j.properties, and the 22 JARs I cobbled together to make compile-time
and serve-time errors disappear.  So I have to assume this is the victim
of annotations not telling the full WSDL story, though all annotations
seem to exist in the classes and on their fields.

Then I tried building and serving with the Eclipse-Tomcat's javaee.jar +
commons-logging, but the app never fully deploys (base webapp directory is
MyEclipse-specific).  I also tried another approach and downloaded the
AXIS2 1.3 zip file, but there is no axis2-1.3.jar in it, and several
others seem to be missing so that seems like a dead end.

Earlier I found out that I cannot directly use the zip-downloaded aar or
code generation tools for AXIS2 since I cannot find an Eclipse plugin
directory from the MyEclipse-fully-integrated IDE.  I did so on a second
machine (Eclipse-only) and the services.xml and other files of course
related to Java classes completely unrelated to the JAX-WS generated from
MyEclipse.

So I feel like I've tried every approach, and I am still looking for an
ant-build version as successful as the IDE version.  I'd at least like a
better understanding of what is going wrong here - is JAX-WS incompatible
with AXIS2?


Thanks,

-Chris


> It seems to me that the original poster is using JAX-WS.  As I understand
> it, wsimport, rather than wsdl2java is what he should be using?  Maybe I
> am
> wrong.  Also, if he is using jax-ws annotations, while I understand he can
> still use a services.xml, just to have axis2 use his wsdl, he just needs
> to
> set his @WebService annotation's wsdlLocation parameter.  Please correct
> me
> if%



RE: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-11 Thread Kamran Shah
It seems to me that the original poster is using JAX-WS.  As I understand
it, wsimport, rather than wsdl2java is what he should be using?  Maybe I am
wrong.  Also, if he is using jax-ws annotations, while I understand he can
still use a services.xml, just to have axis2 use his wsdl, he just needs to
set his @WebService annotation's wsdlLocation parameter.  Please correct me
if I am wrong, I might not know what I am talking about, but this might
clear up my understanding as well.

 

--Kamran

 

From: Amila Suriarachchi [mailto:amilasuriarach...@gmail.com] 
Sent: Friday, December 11, 2009 3:10 AM
To: axis-user@ws.apache.org
Subject: Re: Newbie needs help/resources crafting AXIS2 services.xml

 

 

On Mon, Dec 7, 2009 at 9:44 PM,  wrote:

Good morning,

It appears my lack of being immersed in AXIS2 means nothing works quite
how I expect it to.  From a recent email on a different topic it sounds
like I need to set useOriginalwsdl in a services.xml file in my META-INF
directory for AXIS2 (1.3) to actually use the WSDL I was given.

Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
isn't where AXIS2 expects it to be?

Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
deploying a WAR (what's an AAR?) which seems to be working but may be
confusing matters, what with combining JAX-WS and AXIS2.

The couple of brief examples of services.xml files I've found look to
recreate the basic definitions in the WSDL file, so I'm here in part to
ask for any good references to hand-crafting services.xml files -
primarily about what I need to include so the whole thing still works.
Or... with my setup will it even try to read the services.xml file since
the basic web services have worked so far (just not successfully with
complex types)?

So is the XML at the end of this a complete services.xml file where the
WSDL has a line:
   
and that service has types defined for the input and output?  Or do I need
to bring more of the WSDL into it?


generate the code to your wsdl with the wsdl2java tool. with -ss -sd
parameters. 
you will see a sample services.xml file under resource folder.

thanks,
Amila.



Thanks,

-Chris


--- services.xml? ---

  


 
   true
 





-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.426 / Virus Database: 270.14.102/2556 - Release Date: 12/10/09
07:36:00



Re: Newbie needs help/resources crafting AXIS2 services.xml

2009-12-11 Thread Amila Suriarachchi
On Mon, Dec 7, 2009 at 9:44 PM,  wrote:

> Good morning,
>
> It appears my lack of being immersed in AXIS2 means nothing works quite
> how I expect it to.  From a recent email on a different topic it sounds
> like I need to set useOriginalwsdl in a services.xml file in my META-INF
> directory for AXIS2 (1.3) to actually use the WSDL I was given.
>
> Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
> isn't where AXIS2 expects it to be?
>
> Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
> deploying a WAR (what's an AAR?) which seems to be working but may be
> confusing matters, what with combining JAX-WS and AXIS2.
>
> The couple of brief examples of services.xml files I've found look to
> recreate the basic definitions in the WSDL file, so I'm here in part to
> ask for any good references to hand-crafting services.xml files -
> primarily about what I need to include so the whole thing still works.
> Or... with my setup will it even try to read the services.xml file since
> the basic web services have worked so far (just not successfully with
> complex types)?
>
> So is the XML at the end of this a complete services.xml file where the
> WSDL has a line:
>
> and that service has types defined for the input and output?  Or do I need
> to bring more of the WSDL into it?
>

generate the code to your wsdl with the wsdl2java tool. with -ss -sd
parameters.
you will see a sample services.xml file under resource folder.

thanks,
Amila.

>
>
> Thanks,
>
> -Chris
>
>
> --- services.xml? ---
> 
>   
> 
> 
>  
>true
>  
> 
>
>


-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


Re: WSDL4J help

2009-12-10 Thread Amila Suriarachchi
On Wed, Dec 9, 2009 at 7:22 PM, Stefano Tranquillini <
stefano.tranquill...@gmail.com> wrote:

> Hi.
> i think maybe someone here can help me.
> there's someone that has experience in WSDL4J?
> i needo to insert element, not only to read, but it seems to ignore my
> classes.
> Better:
> i'm not able to add any type of element in my wsdl.
> any idea how to insert operation or porttype?
>

have a look here[1].

thanks,
Amila.

[1]
http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/rmi/src/org/apache/axis2/rmi/wsdl/WSDL11DefinitionBuilder.java?revision=637447&view=markup

>
> PS: there's a mailing list (or similar) for wsdl4j
>
> thanks
> --
> Stefano
>



-- 
Amila Suriarachchi
WSO2 Inc.
blog: http://amilachinthaka.blogspot.com/


WSDL4J help

2009-12-09 Thread Stefano Tranquillini
Hi.
i think maybe someone here can help me.
there's someone that has experience in WSDL4J?
i needo to insert element, not only to read, but it seems to ignore my
classes.
Better:
i'm not able to add any type of element in my wsdl.
any idea how to insert operation or porttype?

PS: there's a mailing list (or similar) for wsdl4j

thanks
-- 
Stefano


Newbie needs help/resources crafting AXIS2 services.xml

2009-12-07 Thread c-tech-aaxis
Good morning,

It appears my lack of being immersed in AXIS2 means nothing works quite
how I expect it to.  From a recent email on a different topic it sounds
like I need to set useOriginalwsdl in a services.xml file in my META-INF
directory for AXIS2 (1.3) to actually use the WSDL I was given.

Or perhaps part of the problem is that the WSDL is in META-INF/wsdl/ and
isn't where AXIS2 expects it to be?

Anyways, MyEclipse never generated a services.xml file.  In fact I'm just
deploying a WAR (what's an AAR?) which seems to be working but may be
confusing matters, what with combining JAX-WS and AXIS2.

The couple of brief examples of services.xml files I've found look to
recreate the basic definitions in the WSDL file, so I'm here in part to
ask for any good references to hand-crafting services.xml files -
primarily about what I need to include so the whole thing still works. 
Or... with my setup will it even try to read the services.xml file since
the basic web services have worked so far (just not successfully with
complex types)?

So is the XML at the end of this a complete services.xml file where the
WSDL has a line:

and that service has types defined for the input and output?  Or do I need
to bring more of the WSDL into it?


Thanks,

-Chris


--- services.xml? ---

   


  
true
  




Re: Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Chinmoy Chakraborty
It seems to me that your CLASSPATH is not set properly...please follow the
'readme' inside stock directory...you also can try your own class and try
JWS mechanism other than the sample ones...then custom wsdd approach.



On Mon, Nov 30, 2009 at 7:16 PM, Liu Bin  wrote:

> The UMLSKS(http://umlsks.nlm.nih.gov/) of NLM(National Library of
> Medicine, U.S.) is providing a web service based on Axis 1.4.
> Thus, I must make use of Apache Axis 1.4, though it might be old.
>
> The sample is called "stock".
>
> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
> 6.0"
> Directory for Axis: "C:\Program Files Green\axis-1_4\"
> DIrectory for Sample: "C:\Program Files Green\axis-1_4\samples\stock"
> (There are also six .class files in the folder "C:\Program Files\Apache
> Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\classes\samples\stock")
>
> I did not do anything to the sample except writing and running a command
> file in the folder "C:\Program Files Green\axis-1_4\samples\stock".
> The command is mentioned in the previous mail:java -cp %AXISCLASSPATH%
> org.apache.axis.client.
> AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>
> The wsdd file is just in the folder called deploy.wsdd
>
> And my problem is the ClassNotFoundException of "Files", which is mentioned
> in the previous email.
> I have listed the packages that have been put both in the two library paths
> in the previous email.
>
>
> Would you please give me some advice about solving this problem?
>
> Sincerely yours,
> Liu
>
>
> 2009/11/30 Chinmoy Chakraborty 
>
> where and how did you deploy your sample in tomcat? where is your wsdd
>> file? You may find this link useful [1].
>>
>> [1].
>> http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide
>>
>>
>> Here
>> I want to make one point. I guess you are using Axis 1.4 which is old. I
>> guess you should try Axis2. Current released version is 1.5.1 [2].
>>
>> [2]. http://ws.apache.org/axis2/
>>
>>
>> Chinmoy
>>
>>
>>
>>
>>
>> On Mon, Nov 30, 2009 at 2:29 PM, Liu Bin  wrote:
>>
>>> Dear my friends,
>>>
>>> My testing is the step mentioned in the page below.
>>> http://ws.apache.org/axis/java/install.html#RunTheAdminClient
>>> or Apache_Axis_1.4_Webservice_
>>> Install.pdf -> Chap 1.10.3
>>>
>>> My platform is Windows XP SP3, with Apache Tomcat 6.0 in port 8080.
>>> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0"
>>> Directory for AXIS: "C:\Program Files Green\axis-1_4\"
>>>
>>> Under directory "C:\Program Files Green\axis-1_4\samples\stock"
>>> Command: java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
>>> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>>> Return information:
>>> Exception in thread "main" java.lang.NoClassDefFoundError: Files
>>> Caused by: java.lang.ClassNotFoundException: Files
>>> at java.net.URLClassLoader$1.run(Unknown Source)
>>> at java.security.AccessController.doPrivileged(Native Method)
>>> at java.net.URLClassLoader.findClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClass(Unknown Source)
>>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>>> Could not find the main class: Files.  Program will exit.
>>>
>>> My Envirionment Variables:
>>> AXIS_HOME = C:\Program Files Green\axis-1_4
>>> AXIS_LIB=%AXIS_HOME%\lib
>>> AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
>>> %AXIS_LIB%\commons-logging.jar;
>>> %AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
>>> %AXIS_LIB%\log4j-1.2.8.jar;
>>> %AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;
>>> %AXIS_LIB%\activation.jar;%AXIS_LIB%\dom.jar
>>>
>>> Package List under both "C:\Program Files Green\axis-1_4\lib" and
>>> "C:\Program Files\Apache Software Foundation\Tomcat
>>> 6.0\webapps\axis\WEB-INF\lib"
>>> activation.jar
>>> axis.jar
>>> axis-ant.jar
>>> commons-discovery.jar
>>> commons-logging.jar
>>> dom.jar
>>> jaxrpc.jar
>>> log4j-1.2.8.jar
>>> log4j.properties
>>> mail.jar
>>> saaj.jar
>>> tools.jar
>>> wsdl4j-1.5.1.jar
>>> xercesImpl.jar
>>> xml-apis.jar
>>> xmlsec.jar
>>>
>>>
>>> Would anyone please share me your idea about what might be wrong in my
>>> installation, thanks :)
>>>
>>>
>>> Yours,
>>> Liu
>>>
>>>
>>> --
>>>
>>> LIU Bin
>>> Shanghai Jiao Tong University
>>>
>>
>>
>
>
> --
>
> LIU Bin
> Shanghai Jiao Tong University
>


Re: Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Liu Bin
The UMLSKS(http://umlsks.nlm.nih.gov/) of NLM(National Library of Medicine,
U.S.) is providing a web service based on Axis 1.4.
Thus, I must make use of Apache Axis 1.4, though it might be old.

The sample is called "stock".
Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
6.0"
Directory for Axis: "C:\Program Files Green\axis-1_4\"
DIrectory for Sample: "C:\Program Files Green\axis-1_4\samples\stock"
(There are also six .class files in the folder "C:\Program Files\Apache
Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\classes\samples\stock")

I did not do anything to the sample except writing and running a command
file in the folder "C:\Program Files Green\axis-1_4\samples\stock".
The command is mentioned in the previous mail:java -cp %AXISCLASSPATH%
org.apache.axis.client.
AdminClient -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd

The wsdd file is just in the folder called deploy.wsdd

And my problem is the ClassNotFoundException of "Files", which is mentioned
in the previous email.
I have listed the packages that have been put both in the two library paths
in the previous email.


Would you please give me some advice about solving this problem?

Sincerely yours,
Liu


2009/11/30 Chinmoy Chakraborty 

> where and how did you deploy your sample in tomcat? where is your wsdd
> file? You may find this link useful [1].
>
> [1].
> http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide
>
>
> Here
> I want to make one point. I guess you are using Axis 1.4 which is old. I
> guess you should try Axis2. Current released version is 1.5.1 [2].
>
> [2]. http://ws.apache.org/axis2/
>
>
> Chinmoy
>
>
>
>
>
> On Mon, Nov 30, 2009 at 2:29 PM, Liu Bin  wrote:
>
>> Dear my friends,
>>
>> My testing is the step mentioned in the page below.
>> http://ws.apache.org/axis/java/install.html#RunTheAdminClient
>> or Apache_Axis_1.4_Webservice_
>> Install.pdf -> Chap 1.10.3
>>
>> My platform is Windows XP SP3, with Apache Tomcat 6.0 in port 8080.
>> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0"
>> Directory for AXIS: "C:\Program Files Green\axis-1_4\"
>>
>> Under directory "C:\Program Files Green\axis-1_4\samples\stock"
>> Command: java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
>> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
>> Return information:
>> Exception in thread "main" java.lang.NoClassDefFoundError: Files
>> Caused by: java.lang.ClassNotFoundException: Files
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> Could not find the main class: Files.  Program will exit.
>>
>> My Envirionment Variables:
>> AXIS_HOME = C:\Program Files Green\axis-1_4
>> AXIS_LIB=%AXIS_HOME%\lib
>> AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
>> %AXIS_LIB%\commons-logging.jar;
>> %AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
>> %AXIS_LIB%\log4j-1.2.8.jar;
>> %AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;
>> %AXIS_LIB%\activation.jar;%AXIS_LIB%\dom.jar
>>
>> Package List under both "C:\Program Files Green\axis-1_4\lib" and
>> "C:\Program Files\Apache Software Foundation\Tomcat
>> 6.0\webapps\axis\WEB-INF\lib"
>> activation.jar
>> axis.jar
>> axis-ant.jar
>> commons-discovery.jar
>> commons-logging.jar
>> dom.jar
>> jaxrpc.jar
>> log4j-1.2.8.jar
>> log4j.properties
>> mail.jar
>> saaj.jar
>> tools.jar
>> wsdl4j-1.5.1.jar
>> xercesImpl.jar
>> xml-apis.jar
>> xmlsec.jar
>>
>>
>> Would anyone please share me your idea about what might be wrong in my
>> installation, thanks :)
>>
>>
>> Yours,
>> Liu
>>
>>
>> --
>>
>> LIU Bin
>> Shanghai Jiao Tong University
>>
>
>


-- 

LIU Bin
Shanghai Jiao Tong University


Re: Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Chinmoy Chakraborty
where and how did you deploy your sample in tomcat? where is your wsdd file?
You may find this link useful [1].

[1].
http://ws.apache.org/axis/java/user-guide.html#InstallingAxisAndUsingThisGuide

Here
I want to make one point. I guess you are using Axis 1.4 which is old. I
guess you should try Axis2. Current released version is 1.5.1 [2].

[2]. http://ws.apache.org/axis2/


Chinmoy




On Mon, Nov 30, 2009 at 2:29 PM, Liu Bin  wrote:

> Dear my friends,
>
> My testing is the step mentioned in the page below.
> http://ws.apache.org/axis/java/install.html#RunTheAdminClient
> or Apache_Axis_1.4_Webservice_
> Install.pdf -> Chap 1.10.3
>
> My platform is Windows XP SP3, with Apache Tomcat 6.0 in port 8080.
> Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
> 6.0"
> Directory for AXIS: "C:\Program Files Green\axis-1_4\"
>
> Under directory "C:\Program Files Green\axis-1_4\samples\stock"
> Command: java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
> -lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
> Return information:
> Exception in thread "main" java.lang.NoClassDefFoundError: Files
> Caused by: java.lang.ClassNotFoundException: Files
> at java.net.URLClassLoader$1.run(Unknown Source)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClass(Unknown Source)
> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
> Could not find the main class: Files.  Program will exit.
>
> My Envirionment Variables:
> AXIS_HOME = C:\Program Files Green\axis-1_4
> AXIS_LIB=%AXIS_HOME%\lib
> AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
> %AXIS_LIB%\commons-logging.jar;
> %AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
> %AXIS_LIB%\log4j-1.2.8.jar;
> %AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;
> %AXIS_LIB%\activation.jar;%AXIS_LIB%\dom.jar
>
> Package List under both "C:\Program Files Green\axis-1_4\lib" and
> "C:\Program Files\Apache Software Foundation\Tomcat
> 6.0\webapps\axis\WEB-INF\lib"
> activation.jar
> axis.jar
> axis-ant.jar
> commons-discovery.jar
> commons-logging.jar
> dom.jar
> jaxrpc.jar
> log4j-1.2.8.jar
> log4j.properties
> mail.jar
> saaj.jar
> tools.jar
> wsdl4j-1.5.1.jar
> xercesImpl.jar
> xml-apis.jar
> xmlsec.jar
>
>
> Would anyone please share me your idea about what might be wrong in my
> installation, thanks :)
>
>
> Yours,
> Liu
>
>
> --
>
> LIU Bin
> Shanghai Jiao Tong University
>


Help! A problem occured when running test Axis-1.4

2009-11-30 Thread Liu Bin
Dear my friends,

My testing is the step mentioned in the page below.
http://ws.apache.org/axis/java/install.html#RunTheAdminClient
or Apache_Axis_1.4_Webservice_
Install.pdf -> Chap 1.10.3

My platform is Windows XP SP3, with Apache Tomcat 6.0 in port 8080.
Directory for Tomcat: "C:\Program Files\Apache Software Foundation\Tomcat
6.0"
Directory for AXIS: "C:\Program Files Green\axis-1_4\"

Under directory "C:\Program Files Green\axis-1_4\samples\stock"
Command: java -cp %AXISCLASSPATH% org.apache.axis.client.AdminClient
-lhttp://localhost:8080/axis/services/AdminService deploy.wsdd
Return information:
Exception in thread "main" java.lang.NoClassDefFoundError: Files
Caused by: java.lang.ClassNotFoundException: Files
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
Could not find the main class: Files.  Program will exit.

My Envirionment Variables:
AXIS_HOME = C:\Program Files Green\axis-1_4
AXIS_LIB=%AXIS_HOME%\lib
AXISCLASSPATH=%AXIS_LIB%\axis.jar;%AXIS_LIB%\commons-discovery.jar;
%AXIS_LIB%\commons-logging.jar;
%AXIS_LIB%\jaxrpc.jar;%AXIS_LIB%\saaj.jar;
%AXIS_LIB%\log4j-1.2.8.jar;
%AXIS_LIB%\xml-apis.jar;%AXIS_LIB%\xercesImpl.jar;
%AXIS_LIB%\activation.jar;%AXIS_LIB%\dom.jar

Package List under both "C:\Program Files Green\axis-1_4\lib" and
"C:\Program Files\Apache Software Foundation\Tomcat
6.0\webapps\axis\WEB-INF\lib"
activation.jar
axis.jar
axis-ant.jar
commons-discovery.jar
commons-logging.jar
dom.jar
jaxrpc.jar
log4j-1.2.8.jar
log4j.properties
mail.jar
saaj.jar
tools.jar
wsdl4j-1.5.1.jar
xercesImpl.jar
xml-apis.jar
xmlsec.jar


Would anyone please share me your idea about what might be wrong in my
installation, thanks :)


Yours,
Liu


-- 

LIU Bin
Shanghai Jiao Tong University


Re: Please help for deploying Axis2 on SunOne Server

2009-11-20 Thread Amila Suriarachchi
try using this
tribes-6.0.16.jar and juli-6.0.16.jar

thanks,
Amila.

On Thu, Nov 19, 2009 at 4:53 PM, a f  wrote:

> Dear all,
>
> I am deploying Axis2 1.5 on SunOne 6.1 sp10 server. But I am having
> problems due to clustering configuration in axis2.xml. Somehow, Axis2 is
> running depending on Apache Tomcat. Since, my service can work without any
> problem on Apache Tomcat server but not on SunOne server. When I deployed it
> on SunOne server it is giving an exception as below:
>
> javax.servlet.ServletException: WEB2778: Servlet.init() for servlet
> AxisServlet threw exception
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3841)
> at com.iplanet.ias.web.WebModule.start(WebModule.java:260)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
> at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
> at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
> at
> com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
> at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
> - Root Cause -
> *java.lang.NoClassDefFoundError:
> org/apache/catalina/tribes/ChannelException*
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:169)
> at
> org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:71)
> at
> org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:181)
> at
> org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
> at
> org.apache.axis2.deployment.WarBasedAxisConfigurator.(WarBasedAxisConfigurator.java:157)
> at
> org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
> at
> org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
> at
> org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
> at
> org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
> at
> org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553)
> at
> org.apache.catalina.core.StandardContext.start(StandardContext.java:3841)
> at com.iplanet.ias.web.WebModule.start(WebModule.java:260)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
> at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
> at
> org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
> at
> org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
> at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
> at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
> at
> com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
> at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.catalina.tribes.ChannelException
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465)
> at
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> ... 21 more
>
>
>
>
> *if I copy catalina-tribes.jar, which contains *ChannelException class,*file 
> from Apache Tomcat to my webapp's lib directory on SunOne, I am getting
> another type of exception as below:
> *
> failure ( 8636): for host 10.1.5.15 trying to GET
> /TESTCM/services/ABCServices22/getUserInformation, service-j2ee reports:
> StandardWrapperValve[AxisServlet]: WEB2792: Servlet.service() for servlet
> AxisServlet threw exception
> java.lang.NullPointerException
> at
> org.apache.axis2.clustering.context.DefaultContextManager.updateContexts(DefaultContextManager.java:81)
> at
> org.apache.axis2.clustering.context.Replicator.replicate(Replicator.java:81)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.replicateState(AbstractMessageReceiver.java:71)
> at
> org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:41)
> at
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
> at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
> at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
> a

Re: [axis2] Need help with HTTPS

2009-11-19 Thread Amila Suriarachchi
On Fri, Nov 20, 2009 at 7:08 AM, Vadim Letitchevski <
vletitchev...@teledyne.com> wrote:

>  I am trying to figure out how to use HTTPS with Apache2-1.5.
> First of al I have used the binary distribution and do not know if it
> supports SSL.
> Second: I have jdk1.6 build 17 and in document
> http://hc.apache.org/httpclient-3.x/sslguide.html it says that it should
> have the proper JSSE support already. I do not know however if it uses same
> certificate and keys as openssl.
> I assumed that (after I have ran axis2server.sh) I should be able to access
> https://localhost:8080 -failed while http://localhost:8080 works fine.
> Tried https://localhost:443 - failed.
> Tried to modify axis2.xml to have
>
> transportReceiver name="https"
>
>
> class="org.apache.axis2.transport.http.SimpleHTTPServer">
>
> 8080
>

try to deploy the axis2.war in tomcat (or any other application server). And
configure
the https as given in the tomcat documentation. Then you will be able to
expose your services
through https.

thanks,
Amila.

>
> It did not help either.
>
> How to setup SSL with apache? Help!!!
>
> OpenSSL seems to be working. At least with self-certification and openssl
> client and server test.
>
> Thanks
> Vadim.
>
>
>  --
> *From:* Martin Gainty [mailto:mgai...@hotmail.com]
> *Sent:* Wednesday, August 12, 2009 8:01 AM
> *To:* axis-user@ws.apache.org
> *Subject:* RE: error sending S/MIME
>
> Illegal interception and manipulation costs businesses millions of dollars
> in lost revenue here
>
> AXIS Security is handled by Rampart
> Rampart doc states these steps for implementing BC
>
> 1.) Download bouncycastle according to your java version. You can download
> bouncycastle from the following link.
> http://www.bouncycastle.org/latest_releases.html
> 2.) Add the bcprov-jdkXX-139.jar to your service's / client's classpath.
> 3.) Add the following line to java.security file which can be found in
> JRE's
> lib/security directory as the last line.
> security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider
>
> Before you try any of the samples makesure you
>
> 1.) Have the Axis2 standard binary distribution downloaded and extracted.
> 2.) Set the AXIS2_HOME environment variable
> 3.) Run ant from the "samples" directory to copy the required libraries and
> modules to relevant directories in AXIS2_HOME.
>
> add both rahas-1.4.mar and rampart-1.4.mar modules to
> /WEB-INF/modules/modules.list
> rahas-1.4.mar
> rampart-1.4.mar
>
> /WEB-INF/conf/axis2.xml would contain this global reference
> 
>
> then configure inflow and outflow security parameters e.g:
> 
>
> 
>
> 
>   
> Timestamp Signature Encrypt
> client
>
> 
> org.apache.rampart.samples.sample10.PWCBHandler
> client.properties
> DirectReference
> DirectReference
> service
>   
> 
>
> 
>   
> Timestamp Signature Encrypt
>
> 
> org.apache.rampart.samples.sample10.PWCBHandler
> client.properties
>   
>
>
> client.properties would contain:
>
> org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider
> org.apache.ws.security.crypto.merlin.keystore.type=jks
>
> org.apache.ws.security.crypto.merlin.keystore.password=PasswordUsedTOCreateKeyStoreFile.jks
> org.apache.ws.security.crypto.merlin.file=client.jks
>
> Martin Gainty
> __
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
>
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
> destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
> l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci 
> est interdite. Ce message sert à l'information seulement et n'aura pas 
> n'importe quel effet légalement obligatoire. Étant donné que les email 
> peuvent facilement être sujets à la manipulation, nous ne pouvons accepter 
> aucune responsabilité pour le contenu fourni.
>
>
>
>
>
>
> > Date: Wed, 12 Aug 2009 

[axis2] Need help with HTTPS

2009-11-19 Thread Vadim Letitchevski
I am trying to figure out how to use HTTPS with Apache2-1.5.
First of al I have used the binary distribution and do not know if it supports 
SSL.
Second: I have jdk1.6 build 17 and in document 
http://hc.apache.org/httpclient-3.x/sslguide.html it says that it should have 
the proper JSSE support already. I do not know however if it uses same 
certificate and keys as openssl.
I assumed that (after I have ran axis2server.sh) I should be able to access 
https://localhost:8080 -failed while http://localhost:8080 works fine.
Tried https://localhost:443 - failed.
Tried to modify axis2.xml to have

transportReceiver name="https"

   class="org.apache.axis2.transport.http.SimpleHTTPServer">

    8080

It did not help either.

How to setup SSL with apache? Help!!!

OpenSSL seems to be working. At least with self-certification and openssl 
client and server test.

Thanks
Vadim.




From: Martin Gainty [mailto:mgai...@hotmail.com]
Sent: Wednesday, August 12, 2009 8:01 AM
To: axis-user@ws.apache.org
Subject: RE: error sending S/MIME

Illegal interception and manipulation costs businesses millions of dollars in 
lost revenue here

AXIS Security is handled by Rampart
Rampart doc states these steps for implementing BC

1.) Download bouncycastle according to your java version. You can download
bouncycastle from the following link.
http://www.bouncycastle.org/latest_releases.html
2.) Add the bcprov-jdkXX-139.jar to your service's / client's classpath.
3.) Add the following line to java.security file which can be found in JRE's
lib/security directory as the last line.
security.provider.X=org.bouncycastle.jce.provider.BouncyCastleProvider

Before you try any of the samples makesure you

1.) Have the Axis2 standard binary distribution downloaded and extracted.
2.) Set the AXIS2_HOME environment variable
3.) Run ant from the "samples" directory to copy the required libraries and
modules to relevant directories in AXIS2_HOME.

add both rahas-1.4.mar and rampart-1.4.mar modules to 
/WEB-INF/modules/modules.list
rahas-1.4.mar
rampart-1.4.mar

/WEB-INF/conf/axis2.xml would contain this global reference


then configure inflow and outflow security parameters e.g:





  
Timestamp Signature Encrypt
client


org.apache.rampart.samples.sample10.PWCBHandler
client.properties
DirectReference
DirectReference
service
  



  
Timestamp Signature Encrypt


org.apache.rampart.samples.sample10.PWCBHandler
client.properties
  
   

client.properties would contain:
org.apache.ws.security.crypto.provider=org.bouncycastle.jce.provider.BouncyCastleProvider
org.apache.ws.security.crypto.merlin.keystore.type=jks
org.apache.ws.security.crypto.merlin.keystore.password=PasswordUsedTOCreateKeyStoreFile.jks
org.apache.ws.security.crypto.merlin.file=client.jks

Martin Gainty
__
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité

Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.

Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.





> Date: Wed, 12 Aug 2009 15:31:39 +0200
> From: tomaz.majerh...@arnes.si
> To: axis-user@ws.apache.org
> Subject: error sending S/MIME
>
> Env:
> OS: Win XP
> Tomcat: 6.0.18
> java: 1.6.0_10-b33
> axis2: 1.4.1
>
>
> I have tomcat web application which use crypto and bouncy castle for signing 
> the mail and it work well.
>
> But when I'm using same class in my soap service(axis2) I get
>
> error:
> javax.mail.MessagingException: IOException while sending message;
> nested exception is:
> javax.activation.UnsupportedDataTypeException: no object DCH for MIME type 
> application/pkcs7-signature; name=smime.p7s; smime-type=signed-data
>
>
>
> Do any body know what is problem.
>
>
> Regards
>


Windows Live™: Keep your life in sync. Check it 
out.<http://windowslive.com/explore?ocid=PID23384::T:WLMTAGL:ON:WL:en-US:NF_BR_sync:082009>


Please help for deploying Axis2 on SunOne Server

2009-11-19 Thread a f
Dear all,

I am deploying Axis2 1.5 on SunOne 6.1 sp10 server. But I am having problems
due to clustering configuration in axis2.xml. Somehow, Axis2 is running
depending on Apache Tomcat. Since, my service can work without any problem
on Apache Tomcat server but not on SunOne server. When I deployed it on
SunOne server it is giving an exception as below:

javax.servlet.ServletException: WEB2778: Servlet.init() for servlet
AxisServlet threw exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:949)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3841)
at com.iplanet.ias.web.WebModule.start(WebModule.java:260)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
- Root Cause -
*java.lang.NoClassDefFoundError: org/apache/catalina/tribes/ChannelException
*
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:169)
at
org.apache.axis2.deployment.ClusterBuilder.buildCluster(ClusterBuilder.java:71)
at
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:181)
at
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
at
org.apache.axis2.deployment.WarBasedAxisConfigurator.(WarBasedAxisConfigurator.java:157)
at
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
at
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:921)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3553)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3841)
at com.iplanet.ias.web.WebModule.start(WebModule.java:260)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:652)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1133)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:355)
at org.apache.catalina.startup.Embedded.start(Embedded.java:995)
at com.iplanet.ias.web.WebContainer.start(WebContainer.java:431)
at com.iplanet.ias.web.WebContainer.startInstance(WebContainer.java:500)
at com.iplanet.ias.server.J2EERunner.confPostInit(J2EERunner.java:161)
Caused by: java.lang.ClassNotFoundException:
org.apache.catalina.tribes.ChannelException
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1465)
at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1301)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
... 21 more




*if I copy catalina-tribes.jar, which contains *ChannelException
class,*file from Apache Tomcat to my webapp's lib directory on SunOne,
I am getting
another type of exception as below:
*
failure ( 8636): for host 10.1.5.15 trying to GET
/TESTCM/services/ABCServices22/getUserInformation, service-j2ee reports:
StandardWrapperValve[AxisServlet]: WEB2792: Servlet.service() for servlet
AxisServlet threw exception
java.lang.NullPointerException
at
org.apache.axis2.clustering.context.DefaultContextManager.updateContexts(DefaultContextManager.java:81)
at
org.apache.axis2.clustering.context.Replicator.replicate(Replicator.java:81)
at
org.apache.axis2.receivers.AbstractMessageReceiver.replicateState(AbstractMessageReceiver.java:71)
at
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:41)
at
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:829)
at
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:255)
at javax.servlet.http.HttpServlet.serv

Re: Please help me with this AxisFault

2009-11-16 Thread Vijay Mali
Hi Jonah,

Thanks for the response!

I have sorted this...!!! Thanks to AXIS -> WSDL2Javamakes life so easy!

Regards,
VJ


From: jonah 
Sent: Monday, November 16, 2009 11:00 AM
To: axis-user@ws.apache.org 
Subject: Re: Please help me with this AxisFault


Hi,pls paste wsdl content.


2009/11/15 Vijay Mali 

  Hi,


  I am new to Webservice. Please see my code below and the exception I am 
getting. Can someone please explain where am I going wrong?







  import java.net.URL;



  import javax.xml.namespace.QName;

  import javax.xml.rpc.ParameterMode;

  import javax.xml.rpc.ServiceFactory;



  import org.apache.axis.client.Call;

  import org.apache.axis.client.Service;

  .

  .

  .

  .

  .

  try {



Service service = new Service();

Call call = (Call)service.createCall(new 
QName("ValidateEmailSoap"));



String endpoint = 
"http://www.webservicex.net/ValidateEmail.asmx";;



call.setPortName(new QName("ValidateEmailSoap"));

call.setProperty( Call.SOAPACTION_USE_PROPERTY, new 
Boolean( true ) );

call.setProperty( Call.SOAPACTION_URI_PROPERTY, 
"http://www.webservicex.net/IsValidEmail";);



  

call.setTargetEndpointAddress(new URL(endpoint));

call.setOperationName( new QName("IsValidEmail") );



String email = new String("vm...@pps.co.za"); // pass email


call.addParameter("Email",org.apache.axis.Constants.XSD_STRING,  
ParameterMode.INOUT);

  

call.setReturnType(org.apache.axis.Constants.XSD_ANY);



Object answer = call.invoke(new Object [] {email});

  



System.out.println("Got result : " + answer.toString());



  } catch (Exception e) {

//System.err.println(e.toString());

e.printStackTrace();

  }



  I am getting following error. Can someone please explain what am I missing??



  AxisFault

  faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

  faultSubcode: 

  faultString: 

  System.Web.Services.Protocols.SoapException: Server was unable to process 
request. ---> System.NullReferenceException: Object reference not set to an 
instance of an object. 
  at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

  at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

  --- End of inner exception stack trace ---

  faultActor: 

  faultNode: 

  faultDetail: 


{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException:
 Server was unable to process request. ---> System.NullReferenceException: 
Object reference not set to an instance of an object.

 at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

 at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

 --- End of inner exception stack trace ---

at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown 
Source)

at 
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)

at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)

at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)

at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

at org.apache.axis.client.Call.invoke(Call.java:2767)

at org.apache.axis.client.Call.invoke(C

Re: Please help me with this AxisFault

2009-11-16 Thread jonah
Hi,pls paste wsdl content.

2009/11/15 Vijay Mali 

>  *Hi,*
>
> * *
>
> *I am new to Webservice. Please see my code below and the exception I am
> getting. Can someone please explain where am I going wrong?*
>
> * *
>
> * *
>
>
>
> *import java.net.URL;*
>
> * *
>
> *import javax.xml.namespace.QName;*
>
> *import javax.xml.rpc.ParameterMode;*
>
> *import javax.xml.rpc.ServiceFactory;*
>
> * *
>
> *import org.apache.axis.client.Call;*
>
> *import org.apache.axis.client.Service;*
>
> *.*
>
> *.*
>
> *.*
>
> *.*
>
> *.*
>
> *try {*
>
> *  *
>
> *  Service service = new Service();*
>
> *  Call call = (Call)service.createCall(new QName(
> "ValidateEmailSoap"));*
>
> * *
>
> *  String endpoint = "
> http://www.webservicex.net/ValidateEmail.asmx";*
>
> *  *
>
> *  call.setPortName(new QName("ValidateEmailSoap"));*
>
> *  call.setProperty( Call.SOAPACTION_USE_PROPERTY, newBoolean(
> true ) );*
>
> *  call.setProperty( Call.SOAPACTION_URI_PROPERTY, "
> http://www.webservicex.net/IsValidEmail";);*
>
> *  *
>
> **
>
> *  call.setTargetEndpointAddress(new URL(endpoint));*
>
> *  call.setOperationName( new QName("IsValidEmail") );*
>
> *  *
>
> *  String email = new String("vm...@pps.co.za"); // pass
> email*
>
> *  call.addParameter("Email"
> ,org.apache.axis.Constants.XSD_STRING,  ParameterMode.INOUT);*
>
> **
>
> *  call.setReturnType(org.apache.axis.Constants.XSD_ANY);*
>
> *  *
>
> *  Object answer = call.invoke(new Object [] {email});*
>
> **
>
> * *
>
> *  System.out.println("Got result : " +
> answer.toString());*
>
> * *
>
> *} catch (Exception e) {*
>
> *  //System.err.println(e.toString());*
>
> *  e.printStackTrace();*
>
> *}*
>
>
>
> I am getting following error. Can someone please explain what am I
> missing??
>
>
>
> AxisFault
>
> faultCode: 
> {http://schemas.xmlsoap.org/soap/envelope/}Server
>
> faultSubcode:
>
> faultString:
> *System.Web.Services.Protocols.SoapException*: Server was unable to
> process request. ---> *System.NullReferenceException*: Object reference
> not set to an instance of an object.
>
> at ValidateEmail.ValidateEmail.VerifyEmail(String Email)
>
> at ValidateEmail.ValidateEmail.IsValidEmail(String Email)
>
> --- End of inner exception stack trace ---
>
> faultActor:
>
> faultNode:
>
> faultDetail:
>
>   {*
> http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException
> *: Server was unable to process request. ---> *
> System.NullReferenceException*: Object reference not set to an instance of
> an object.
>
>at ValidateEmail.ValidateEmail.VerifyEmail(String Email)
>
>at ValidateEmail.ValidateEmail.IsValidEmail(String Email)
>
>--- End of inner exception stack trace ---
>
>   at org.apache.axis.message.SOAPFaultBuilder.createFault(*
> SOAPFaultBuilder.java:222*)
>
>   at org.apache.axis.message.SOAPFaultBuilder.endElement(*
> SOAPFaultBuilder.java:129*)
>
>   at org.apache.axis.encoding.DeserializationContext.endElement(*
> DeserializationContext.java:1087*)
>
>   at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown
> Source)
>
>   at
> org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown
> Source)
>
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
> Source)
>
>   at
> org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
> Source)
>
>   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>
>   at org.apache.xerces.parsers.XML11Configuration.parse(Unknown
> Source)
>
>   at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
>
>   at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
>
>   at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
> Source)
>
>   at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
>
>   at org.apache.axis.encoding.DeserializationContext.parse(*
> DeserializationContext.java:227*)
>
>   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(*SOAPPart.java:696*)
>
>   at org.apache.axis.Message.getSOAPEnvelope(*Message.java:435*)
>
>   at org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(*
> MustUnderstandChecker.java:62*)
>
>   at org.apache.axis.client.AxisClient.invoke(*AxisClient.java:206*)
>
>   at org.apache.axis.client.Call.invokeEngine(*Call.java:2784*)
>
>   at org.apache.axis.client.Call.invoke(*Cal

Please help me with this AxisFault

2009-11-14 Thread Vijay Mali
Hi,
 

I am new to Webservice. Please see my code below and the exception I am 
getting. Can someone please explain where am I going wrong?

 

 

 

import java.net.URL;

 

import javax.xml.namespace.QName;

import javax.xml.rpc.ParameterMode;

import javax.xml.rpc.ServiceFactory;

 

import org.apache.axis.client.Call;

import org.apache.axis.client.Service;

.

.

.

.

.

try {

  

  Service service = new Service();

  Call call = (Call)service.createCall(new 
QName("ValidateEmailSoap"));

 

  String endpoint = 
"http://www.webservicex.net/ValidateEmail.asmx";;

  

  call.setPortName(new QName("ValidateEmailSoap"));

  call.setProperty( Call.SOAPACTION_USE_PROPERTY, new Boolean( 
true ) );

  call.setProperty( Call.SOAPACTION_URI_PROPERTY, 
"http://www.webservicex.net/IsValidEmail";);

  



  call.setTargetEndpointAddress(new URL(endpoint));

  call.setOperationName( new QName("IsValidEmail") );

  

  String email = new String("vm...@pps.co.za"); // pass email

  
call.addParameter("Email",org.apache.axis.Constants.XSD_STRING,  
ParameterMode.INOUT);



  call.setReturnType(org.apache.axis.Constants.XSD_ANY);

  

  Object answer = call.invoke(new Object [] {email});



 

  System.out.println("Got result : " + answer.toString());

 

} catch (Exception e) {

  //System.err.println(e.toString());

  e.printStackTrace();

}

 

I am getting following error. Can someone please explain what am I missing??

 

AxisFault

faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server

faultSubcode: 

faultString: System.Web.Services.Protocols.SoapException: Server was unable to 
process request. ---> System.NullReferenceException: Object reference not 
set to an instance of an object.

at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

--- End of inner exception stack trace ---

faultActor: 

faultNode: 

faultDetail: 

  
{http://xml.apache.org/axis/}stackTrace:System.Web.Services.Protocols.SoapException:
 Server was unable to process request. ---> System.NullReferenceException: 
Object reference not set to an instance of an object.

   at ValidateEmail.ValidateEmail.VerifyEmail(String Email)

   at ValidateEmail.ValidateEmail.IsValidEmail(String Email)

   --- End of inner exception stack trace ---

  at 
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:222)

  at 
org.apache.axis.message.SOAPFaultBuilder.endElement(SOAPFaultBuilder.java:129)

  at 
org.apache.axis.encoding.DeserializationContext.endElement(DeserializationContext.java:1087)

  at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)

  at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown 
Source)

  at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)

  at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)

  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

  at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)

  at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)

  at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)

  at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown 
Source)

  at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)

  at 
org.apache.axis.encoding.DeserializationContext.parse(DeserializationContext.java:227)

  at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:696)

  at org.apache.axis.Message.getSOAPEnvelope(Message.java:435)

  at 
org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:62)

  at org.apache.axis.client.AxisClient.invoke(AxisClient.java:206)

  at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

  at org.apache.axis.client.Call.invoke(Call.java:2767)

  at org.apache.axis.client.Call.invoke(Call.java:2443)

  at org.apache.axis.client.Call.invoke(Call.java:2366)

  at org.apache.axis.client.Call.invoke(Call.java:1812)

  at za.co.pps.servicemanager.ServiceManager.main(ServiceManager.java:51)

 

 

Regards,

VJ


Re: Calling AXIS2-1.5 web service from AXIS1.1 client Need help

2009-11-12 Thread Sameera Jayasoma
On Wed, Nov 11, 2009 at 5:20 PM, Rajend  wrote:

>
> Hi All,
>
> A web service was created in AXIS1.1 version and deployed to weblogic 8.1.
> From a website (Jdk1.4) the webservice is being called .
>
> Now migration has done as webserivce is created in AXIS2-1.5 and deployed
> weblogic10.3.
>
> is it possible to use the existing web sites (which calls webservice)
> without any modification.
>
> In other words, is it possible to use the client (created with axis1.1) to
> call web serivce (created axis2-1.5).
>

The ultimate goal of web services is the interoperability. Therefore,
theoretically it should be possible to invoke Axis2 Web services, using
Axis1 clients.

Thanks
Sameera

>
> i am looking forward.
>
> Raje
> --
> View this message in context:
> http://old.nabble.com/Calling-AXIS2-1.5-web-service-from-AXIS1.1-client-Need-help-tp26300048p26300048.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>


Calling AXIS2-1.5 web service from AXIS1.1 client Need help

2009-11-11 Thread Rajend

Hi All,

A web service was created in AXIS1.1 version and deployed to weblogic 8.1.
>From a website (Jdk1.4) the webservice is being called .

Now migration has done as webserivce is created in AXIS2-1.5 and deployed
weblogic10.3.

is it possible to use the existing web sites (which calls webservice)
without any modification.

In other words, is it possible to use the client (created with axis1.1) to
call web serivce (created axis2-1.5).

i am looking forward.

Raje
-- 
View this message in context: 
http://old.nabble.com/Calling-AXIS2-1.5-web-service-from-AXIS1.1-client-Need-help-tp26300048p26300048.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Please help on calling Axis2 Pojo Service. I really appreciate any help!!

2009-11-07 Thread Deepal jayasinghe
e.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
> alve.java:233)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
> alve.java:175)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
> ava:128)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
> ava:102)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
> ve.java:109)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
> a:263)
> at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
> :844)
> at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
> ss(Http11Protocol.java:584)
> at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
> 7)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: java.lang.IllegalArgumentException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
> java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
> sorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
> a:194)
> at
> org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
> (RPCMessageReceiver.java:102)
> ... 19 more
>
>
> *2-* My first question is; When I a make a service call for
> *"getUserInfo"* method, I can successfully call the service but the
> problem is my System.out.println(id); print ""..So it can call the
> service but the parameter id comes as empty string.
>
> Please help if you have any idea...I really do appreciate any
> suggesstions.
>
> Thank you in advance.
>
> -- teo


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Please help on calling Axis2 Pojo Service. I really appreciate any help!!

2009-11-06 Thread a f
run(JIoEndpoint.java:44
7)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.IllegalArgumentException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.jav
a:194)
at
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic
(RPCMessageReceiver.java:102)
... 19 more


*2-* My first question is; When I a make a service call for
*"getUserInfo"*method, I can successfully call the service but the
problem is my
System.out.println(id); print ""..So it can call the service but the
parameter id comes as empty string.

Please help if you have any idea...I really do appreciate any suggesstions.

Thank you in advance.

-- teo


Please help on calling Axis2 Pojo Service

2009-11-06 Thread a f
Dear all,

I am trying to implement a simple test service by using Axis2. I have
generated service codes and service archive(.aar file) using eclipse plugin
successfully. I have 2 methods in my service class..
1- public int addNum(int i, int j){


Help regarding Scope of Service

2009-10-27 Thread GAURAV TIWARI
Hi,

I created this simple class

public class MyService
{
   int c;
    MyService(){
 c=0;

    }
    public int serviceMethod()
    {
        c++
    return c;
    }
}

And I deployed it into axis using this descriptor

http://xml.apache.org/axis/wsdd/";
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java";>

 
  
  
  

 



The axis user Guide mentions that scope="Application" implies that all
the request would be served from the singleton object.

"Application" scope will create a singleton shared object to service
all requests"

However every time I call the service the value returned is 1 which
means that a new object is being created every time.
Please suggest.

Thanks and Regards
Gaurav


axis2 ws beginner - proper setup help

2009-10-20 Thread H
I've been working on several webservices for several days now, and I've 
got to the point that I feel that I got the basics so far.
My operations are running, the client application works and messages are 
properly handled on both points (client-server).


My compilation process now exists of a simple batch file (windows) which:
- sets the classpath (adding some axis2 jars)
- compile the java files
- in a dir containing the META-INF/services.xml and the classes, run jar 
to create an .aar file


This worked so far, but now I'd like to get my environment setup 
properly, either using Ant (build.xml) or Maven2 (pom.xml).

I prefer Maven2, since my other projects depend on Maven2 too.

My current dir structure is this:
\
\build\META-INF\services.xml
\build\**\*.class (this is the compilation targetdir)
\src\**\*.java
\web\index.jsp
\web\WEB-INF\web.xml

I hope this email won't get too long, but I'm gonna ask my questions 
anyway.

Feel free to answer them all, or just one of them. Any help is welcome.

1.  What would be a good directory structure (+pom.xml) if I were to use 
Maven2?
2.  What's the best way to create a good WSDL in this process? Depend on 
Axis2 generating it (operation?wsdl) or write it myself.

3.  Where do I put this WSDL file in the dir structure?
4.  How can I handle the .jar dependencies properly?
5.  Does anyone have a good pom.xml that is able to:
   - compile
   - package it the right way (.classes, services.xml, any extra info 
needed) to an .aar


Thanks!



Re: Help -- Not in GZIP format

2009-10-17 Thread Mark_Huang

Any suggestion?

Thanks,

Mark_Huang wrote:
> 
> 
> 1. Server side: I developed a web service using Axis2 and deployed in
> JBoss.
> 
> 2. Client side: I tried to send a big XML file to this web service using
> MTOM mechanism
> 
> 2.1. If I don't set MC_GZIP_REQUEST at client side, every thing works fine
> 
> 2.2. If I set
> org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST to TRUE, I
> got "Not in GZIP format". 
> 
> As the file is very big and I want to zip it before sending to the Web
> Service. It seems MC_GZIP_REQUEST is the one needed for my scenario.
> 
> Do I miss any configuration for AXIS2 GZIP feature?
> 
> Any help is greatly appreciated,
> 
> Mark
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/HelpNot-in-GZIP-format-tp25930026p25939023.html
Sent from the Axis - User mailing list archive at Nabble.com.



Help -- Not in GZIP format

2009-10-16 Thread Mark_Huang


1. Server side: I developed a web service using Axis2 and deployed in JBoss.

2. Client side: I tried to send a big XML file to this web service using
MTOM mechanism

2.1. If I don't set MC_GZIP_REQUEST at client side, every thing works fine

2.2. If I set org.apache.axis2.transport.http.HTTPConstants.MC_GZIP_REQUEST
to TRUE, I got "Not in GZIP format". 

As the file is very big and I want to zip it before sending to the Web
Service. It seems MC_GZIP_REQUEST is the one needed for my scenario.

Do I miss any configuration for AXIS2 GZIP feature?

Any help is greatly appreciated,

Mark



-- 
View this message in context: 
http://www.nabble.com/HelpNot-in-GZIP-format-tp25930026p25930026.html
Sent from the Axis - User mailing list archive at Nabble.com.



Help troubleshooting org.apache.axis2.AxisFault: Read timed out

2009-10-16 Thread laredotornado
; in Phase 'Dispatch'
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,913]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() for Handler 'RequestURIBasedDispatcher' in Phase 'Dispatch'
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,913]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() in Phase "PreDispatch"
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,913]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() in Phase "Security"
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,914]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() in Phase "Addressing"
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,914]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() for Handler 'AddressingBasedDispatcher' in Phase 'Addressing'
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,914]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() in Phase "Transport"
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,914]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() for Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'
DEBUG [org.apache.axis2.engine.Phase, resin-tcp-connection-*:8080-969
2009-10-16 07:58:50,914]:
[MessageContext: logID=urn:uuid:E065E1DD5D6A476C6A1255701509962] Invoking
flowComplete() for Handler 'RequestURIBasedDispatcher' in Phase 'Transport'
DEBUG [org.apache.axis2.transport.TransportUtils,
resin-tcp-connection-*:8080-969 2009-10-16 07:58:50,914]:
Found RequestResponseTransport returning isResponseWritten()
DEBUG [org.apache.axis2.transport.TransportUtils,
resin-tcp-connection-*:8080-969 2009-10-16 07:58:50,914]:
Entering deleteAttachments()
DEBUG [org.apache.axis2.transport.TransportUtils,
resin-tcp-connection-*:8080-969 2009-10-16 07:58:50,914]:
Exiting deleteAttachments()
=End Apache log ===

-- 
View this message in context: 
http://www.nabble.com/Help-troubleshooting-org.apache.axis2.AxisFault%3A-Read-timed-out-tp25926096p25926096.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Webservice UnitTesting | Help

2009-10-13 Thread Sabari Venkatachalam
Hi,
 
try this links..
 
http://www.soapui.org/
 
http://www.vordel.com/products/soapbox/
 
http://www.webinject.org/
 
I hope, this would help you. 
 
Regards,
V.Sabari





From: Appasamy Thirugnana 
To: "axis-user@ws.apache.org" 
Sent: Tue, 13 October, 2009 12:54:02 PM
Subject: Webservice UnitTesting | Help


    
Hi,
 
   Can someone point me some links/framework that I can use for webservice unit 
testing during development.(Apart from wsunit)
    Also I am looking for some webservice testing strategies. It will be 
helpful if someone helps.
  
Thanks,
Appasamy


  Keep up with people you care about with Yahoo! India Mail. Learn how. 
http://in.overview.mail.yahoo.com/connectmore

Webservice UnitTesting | Help

2009-10-13 Thread Appasamy Thirugnana

Hi,

   Can someone point me some links/framework that I can use for webservice unit 
testing during development.(Apart from wsunit)
Also I am looking for some webservice testing strategies. It will be 
helpful if someone helps.

Thanks,
Appasamy



Re: HELP! Axis to .NET - RPC/Encoded style.

2009-10-07 Thread Joey Baghodoughnuts
Since I couldn't get any replies to my original post, I am going to post the 
URL where I finally found the solution: 
http://www.codeproject.com/KB/webservices/DOTNET_with_WS_APACHEAXIS.aspx

Lots of manual work with serialization and using a generic Soap Client.


-Joe





From: Joey Baghodoughnuts 
To: axis-user@ws.apache.org
Sent: Mon, October 5, 2009 5:03:20 PM
Subject: HELP! Axis to .NET - RPC/Encoded style.



Does anyone know whether or not there is a way to get the apache soap schema so 
I can build a .Net client for an axis service that uses the 
http://xml.apache.org/xml-soap:Document object?  I don't even know if this is 
possible, but I'm sure if there's a way, someone on this list should know.  

Further background:
-I cannot modify the wsdl contract / WS, it's a third party app.
-All types (req and response) are of the type 
http://xml.apache.org/xml-soap:Document
-The style is rpc/encoded(i think) (not natively supported in .NET).

Any help would be appreciated.

Thanks!

-Joe 



  

HELP! Axis to .NET - RPC/Encoded style.

2009-10-05 Thread Joey Baghodoughnuts

Does anyone know whether or not there is a way to get the apache soap schema so 
I can build a .Net client for an axis service that uses the 
http://xml.apache.org/xml-soap:Document object?  I don't even know if this is 
possible, but I'm sure if there's a way, someone on this list should know.  

Further background:
-I cannot modify the wsdl contract / WS, it's a third party app.
-All types (req and response) are of the type 
http://xml.apache.org/xml-soap:Document
-The style is rpc/encoded(i think) (not natively supported in .NET).

Any help would be appreciated.

Thanks!

-Joe


  

Axis with Jetty setup - help appreciated

2009-09-17 Thread Scott Thomas
OK, here's the deal. I want to be a SOAP server. I have the WSDL file for
the kind of SOAP server I want to be. I ran it through WSDL2Java. I now have
the deploy and undeploy WSDD files, as well as the auto-generated Java
files. I have written implementations for the operations in the
auto-generated Java files.

Now, I'm starting a Jetty server programatically because I have some special
things to configure (something called a ReversedSocketConnector - what it
does isn't exactly important). That looks like this:

Server server = new Server();

ReversedSocketConnector reversedSocketConnector = new
ReversedSocketConnector();
reversedSocketConnector.setHost(host);
reversedSocketConnector.setPort(port);
reversedSocketConnector.setConnector(connector);
server.addConnector(reversedSocketConnector);

Context defaultContext = new Context(server, "/", Context.SESSIONS);
defaultContext.setResourceBase("webapp");
defaultContext.addServlet(new ServletHolder(new DefaultServlet()), "/");

Context axisContext = new Context(server, "/", Context.SESSIONS);
defaultContext.setResourceBase("webapp");
axisContext.addServlet(new ServletHolder(new AxisServlet()), "/*");

server.start();
server.join();

As you can see, I want to plug Axis into my Jetty server. When SOAP requests
arrive at http://localhost:8080/, I want them to be handled by those
auto-generated classes that I filled in. Forgive me if this is a basic
question, but I would like to know:
1) Where to put the deploy.wsdd and undeploy.wsdd files
2) What other methods to programatically call
3) What else I need to do

in order to get things working the way I want. If something can be done
programatically rather than through XML or config files, I would prefer that
(for testing purposes). Oh wise Axis senseis, lend me your knowledge!

- Scott


Re: Help! Error when testing Axis2 client

2009-09-10 Thread Amila Suriarachchi
On Mon, Aug 24, 2009 at 3:26 PM, Clara  wrote:

> Hi Andreas,
> Thank you for the valuable inputs. The below error has been resolved by
> putting the schema files (schemaorg_apache_xmlbeans) in my classes
> directory. However, I am getting the below error now:
>
> INFO: Deploying module: addressing-1.5 - file:/C:/com/samples/axis2/axis2-
> 1.5.jar
> org.apache.axis2.AxisFault: unknown
> at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
> ava:517)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:371)
>

this may be a problem with the server side. client receives a fault message.
see the server log. check your
 epr etc..

thanks,
Amila.


> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
> peration.java:417)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
> InAxisOperation.java:229)
> at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:
> 165)
> at com.samples.SampleStub.login(SampleStub.java:4546)
> at com.samples.testAxis2.login(testAxis2.java:48)
> at com.samples.testAxis2.test(testAxis2.java:28)
> at com.samples.testAxis2.main(testAxis2.java:23)
>
>
> --- On *Thu, 8/20/09, Andreas Veithen * wrote:
>
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Thursday, August 20, 2009, 12:54 AM
>
>
> If you are sure that all classes/JARs are there, then it means that
> some classes are loaded by the wrong class loader in the class loader
> hierarchy. This is something that is difficult to solve on a mailing
> list. My recommendations:
>
> 1) Start with a fresh server + Axis2 WAR or Axis2 binary distribution,
> deploy the service and check if it works.
> 2) Try to familiarize yourself a bit more with how class loading works
> in Java, especially in the context of an application/Web server. This
> will help you to understand and debug this kind of problems.
>
> Andreas
>
> On Thu, Aug 20, 2009 at 04:40, 
> Clarahttp://mc/compose?to=claire_l...@yahoo.com>>
> wrote:
> >
> > Hi,
> > My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this
> in
> > my classpath (CLASSPATH environment variable) but I am still getting the
> > below error. What could be causing this?
> > --- On Wed, 8/19/09, Andreas Veithen 
> > http://mc/compose?to=andreas.veit...@gmail.com>>
> wrote:
> >
> > From: Andreas Veithen 
> > http://mc/compose?to=andreas.veit...@gmail.com>
> >
> > Subject: Re: Help! Error when testing Axis2 client
> > To: axis-user@ws.apache.org<http://mc/compose?to=axis-u...@ws.apache.org>
> > Date: Wednesday, August 19, 2009, 11:10 AM
> >
> > Which classloader is the xmlbeans JAR loaded from (i.e. where is the
> > xmlbeans JAR located)? Idem for the TypeSystemHolder class.
> >
> > Andreas
> >
> > On Wed, Aug 19, 2009 at 11:43, 
> > Clarahttp://mc/compose?to=claire_l...@yahoo.com>>
> wrote:
> >>
> >> Hi Andreas,
> >> Thank you for your very helpful response. You are right, my jar files
> from
> >> 2
> >> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
> >> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
> >> However, when I tried running my sample client code, I got the below
> error
> >> during runtime:
> >>
> >> [17:10:23.500] java.lang.ExceptionInInitializerError
> >> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
> >> .parse(LoginRequestDocument.java:86)
> >> [17:10:23.500]  at com.sample.Axis2SampleMessageR
> >> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
> >> .
> >> .
> >> .
> >> [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load
> >> SchemaTypeSyst
> >> em. Unable to load class with name
> >> schemaorg_apache_xmlbeans.system.s23B9B2646D7
> >> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary
> >> files
> >> are
> >>  on the classpath.
> >> [17:10:23.500]  at
> >> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
> >> s.java:783)
> >> [17:10:23.500]  at com.sample.LoginRequestDocument. >>>(LoginRequestDocument.java:19)
> >> [17:10:23.500]  ... 21 more
> >> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
> >> schemaorg_apache_xml
> >> beans.system.

Re: Help! Error when testing Axis2 client

2009-09-10 Thread Deepal Jayasinghe
As I can see this is due to some version mis-match, so could you please
check whether you are using right version of Axis2 and addressing module.

Thanks,
Deepal

Clara wrote:
> Hi ,
> It's been a while since I posted this error. anybody can help me please?
>
> thanks.
>
> --- On *Mon, 8/24/09, Clara //* wrote:
>
>
> From: Clara 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Monday, August 24, 2009, 11:02 PM
>
> Hi everyone,
>
> Any idea of the below error? Please help. 
>
> --- On *Mon, 8/24/09, Clara //* wrote:
>
>
> From: Clara 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Monday, August 24, 2009, 2:56 AM
>
> Hi Andreas,
> Thank you for the valuable inputs. The error has been resolved
> by putting the schema files (schemaorg_apache_xmlbeans) in my
> classes directory. However, I am getting the below error now:
>
> INFO: Deploying module: addressing-1.5 -
> file:/C:/com/samples/axis2/axis2-
> 1.5.jar
> org.apache.axis2.AxisFault: unknown
> at
> org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
> ava:517)
> at
> org..apache.axis2.description.OutInAxisOperationClient.handleResponse(
> OutInAxisOperation.java:371)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
> peration.java:417)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
> InAxisOperation.java:229)
> at
> org.apache..axis2.client.OperationClient.execute(OperationClient.java:
> 165)
> at com.samples.SampleStub.login(SampleStub.java:4546)
> at com.samples.testAxis2.login(testAxis2.java:48)
> at com.samples.testAxis2.test(testAxis2.java:28)
> at com.samples.testAxis2.main(testAxis2.java:23)
>
>
> --- On *Thu, 8/20/09, Andreas Veithen
> //* wrote:
>
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Thursday, August 20, 2009, 12:54 AM
>
> If you are sure that all classes/JARs are there, then it
> means that
> some classes are loaded by the wrong class loader in the
> class loader
> hierarchy. This is something that is difficult to solve on
> a mailing
> list. My recommendations:
>
> 1) Start with a fresh server + Axis2 WAR or Axis2 binary
> distribution,
> deploy the service and check if it works.
> 2) Try to familiarize yourself a bit more with how class
> loading works
> in Java, especially in the context of an application/Web
> server. This
> will help you to understand and debug this kind of problems.
>
> Andreas
>
> On Thu, Aug 20, 2009 at 04:40,
> Clara wrote:
> >
> > Hi,
> > My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I
> also placed this in
> > my classpath (CLASSPATH environment variable) but I am
> still getting the
> > below error. What could be causing this?
> > --- On Wed, 8/19/09, Andreas Veithen
>  wrote:
> >
> > From: Andreas Veithen 
> > Subject: Re: Help! Error when testing Axis2 client
> > To: axis-user@ws.apache.org
> > Date: Wednesday, August 19, 2009, 11:10 AM
> >
> > Which classloader is the xmlbeans JAR loaded from (i.e.
> where is the
> > xmlbeans JAR located)? Idem for the TypeSystemHolder class.
> >
> > Andreas
> >
> > On Wed, Aug 19, 2009 at 11:43,
> Clara wrote:
> >>
> >> Hi Andreas,
> >> Thank you for your very helpful response. You are
> right, my jar files from
> >> 2
> >> different axis2 versions got mixed up. I was using
> axis2 v1.4 but i used
> >> axis2.jar of axis2 v1.5. The error was resolved by
> using axis2 v1.5.
> >> H

Re: Help! Error when testing Axis2 client

2009-09-09 Thread Clara
Hi ,
It's been a while since I posted this error. anybody can help me please? 

thanks.

--- On Mon, 8/24/09, Clara  wrote:

From: Clara 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Monday, August 24, 2009, 11:02 PM

Hi everyone,
Any idea of the below error? Please help. 

--- On Mon, 8/24/09, Clara  wrote:

From: Clara 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Monday, August 24, 2009, 2:56 AM

Hi Andreas,
Thank you for the valuable inputs. The error has been resolved by putting the 
schema files (schemaorg_apache_xmlbeans) in my classes directory. However, I am 
getting the below error now: 

INFO: Deploying module: addressing-1.5 -
 file:/C:/com/samples/axis2/axis2-
1.5.jar
org.apache.axis2.AxisFault: unknown
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:517)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:371)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:417)
    at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
    at com.samples.SampleStub.login(SampleStub.java:4546)
    at com.samples.testAxis2.login(testAxis2.java:48)
    at com.samples.testAxis2.test(testAxis2.java:28)
    at com.samples.testAxis2.main(testAxis2.java:23)


--- On Thu, 8/20/09, Andreas Veithen  wrote:

From: Andreas Veithen 
Subject: Re: Help! Error when testing Axis2 client
To:
 axis-user@ws.apache.org
Date: Thursday, August 20, 2009, 12:54 AM

If you are sure that all classes/JARs are there, then it means that
some classes are loaded by the wrong class loader in the class loader
hierarchy. This is something that is difficult to solve on a mailing
list. My recommendations:

1) Start with a fresh server + Axis2 WAR or Axis2 binary distribution,
deploy the service and check if it works.
2) Try to familiarize yourself a bit more with how class loading works
in Java, especially in the context of an application/Web server. This
will help you to understand and debug this kind of problems.

Andreas

On Thu, Aug 20, 2009 at 04:40, Clara wrote:
>
> Hi,
> My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this
 in
> my classpath (CLASSPATH environment variable) but I am still getting the
> below error. What could be causing this?
> --- On Wed, 8/19/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Wednesday, August 19, 2009, 11:10 AM
>
> Which classloader is the xmlbeans JAR loaded from (i.e. where is the
> xmlbeans JAR located)? Idem for the TypeSystemHolder class.
>
> Andreas
>
> On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>>
>> Hi Andreas,
>> Thank you for your very helpful response. You are right, my jar files from
>> 2
>> different axis2 versions
 got mixed up. I was using axis2 v1.4 but i used
>> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
>> However, when I tried running my sample client code, I got the below error
>> during runtime:
>>
>> [17:10:23.500] java.lang.ExceptionInInitializerError
>> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
>> .parse(LoginRequestDocument.java:86)
>> [17:10:23.500]  at com.sample.Axis2SampleMessageR
>> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
>> .
>> .
>> .
>> [17:10:23.500] Caused by:
 java.lang.RuntimeException: Cannot load
>> SchemaTypeSyst
>> em. Unable to load class with name
>> schemaorg_apache_xmlbeans.system.s23B9B2646D7
>> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary
>> files
>> are
>>  on the classpath.
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:783)
>> [17:10:23.500]  at com.sample.LoginRequestDocument.>>(LoginRequestDocument.java:19)
>> [17:10:23.500]  ... 21 more
>> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
>> schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
>> [17:10:23.500]  at
>> com.caucho..loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1133)
>>
 [17:10:23.500]  at
>> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1113)
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:769)
>> [17:10:23.500]  ... 22 more
>> I already placed the schemaorg_apache_xml
>> beans.system.s23B9B2646D7

Re: Help with axis1.4.1 (not axis2) and wss4j

2009-08-31 Thread Wishing Carebear
er user can have several roles depending on the type of action.
>> If one of the actions is Signature then the user value is the keystore
>> alias/label in the specified keystore file. The password to the private key
>> is supplied by a custom call back class specified in the passwordCallback
>> parameter. The user value is passed to an instance of the callback class as
>> the identifier.
>>
>> The parameter signaturePropFile specifies the properties file used during
>> the signing process. This file specifies what keystore file to used and the
>> password to the keystore.
>>
>>
>> #
>> # Webservice Security
>> #
>>
>> org.apache.ws.security.crypto.provider=org.apache.ws.security.components.crypto.Merlin
>> org.apache.ws.security.crypto.merlin.keystore.type=pkcs12
>> org.apache.ws.security.crypto.merlin.file=pki/keystore.pfx
>> org.apache.ws.security.crypto.merlin.keystore.password=keypassword
>> #
>>
>> The following example is a template for a password callback class.
>>
>>
>> package com.acme.security ;
>>
>> import  java.io.* ;
>>
>> import javax.security.auth.callback.Callback ;
>> import javax.security.auth.callback.CallbackHandler ;
>> import javax.security.auth.callback.UnsupportedCallbackException ;
>>
>> import org.apache.ws.security.WSPasswordCallback ;
>>
>> public class PasswordCallback implements CallbackHandler
>> {
>> public PasswordCallback ()
>> {
>> }
>>
>> public void handle ( Callback[] callbackArray ) throws IOException,
>> UnsupportedCallbackException
>> {
>> System.out.println ( "PasswordCallback handle" ) ;
>>
>> for ( int i = 0; i < callbackArray.length; i++ )
>> {
>> if ( callbackArray[i] instanceof WSPasswordCallback )
>> {
>> WSPasswordCallback callback =
>> (WSPasswordCallback)callbackArray[i] ;
>>
>> int usage = callback.getUsage () ;
>>
>> String identifier = callback.getIdentifer () ;
>>
>> if ( usage == WSPasswordCallback.UNKNOWN )
>> {
>> System.out.println ( "UNKNOWN " + identifier ) ;
>>
>> continue ;
>> }
>>
>> if ( usage == WSPasswordCallback.DECRYPT )
>> {
>> System.out.println ( "DECRYPT " + identifier ) ;
>>
>> continue ;
>> }
>>
>> if ( usage == WSPasswordCallback.SIGNATURE )
>> {
>> System.out.println ( "SIGNATURE " + identifier ) ;
>>
>> if ( identifier.equals ( "XYZLabel" ) )
>> {
>>  /*
>>  keystore private key password
>>  */
>>
>>  callback.setPassword ( "keypassword" ) ;
>>
>>  return ;
>> }
>>
>> return ;
>> }
>>
>> if ( usage == WSPasswordCallback.KEY_NAME )
>> {
>> System.out.println ( "KEY_NAME " + identifier ) ;
>>
>> continue ;
>> }
>>
>> if ( usage == WSPasswordCallback.USERNAME_TOKEN )
>> {
>> System.out.println ( "USERNAME_TOKEN "  + identifier )
>> ;
>>
>> if ( identifier.equals ( "myuser" ) )
>> {
>>  callback.setPassword ( "mypassword" ) ;
>>
>>  return ;
>> }
>>
>> return ;
>> }
>>
>> if ( usage == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN )
>> {
>> System.out.println ( "USERNAME_TOKEN_UNKNOWN " +
>> identifier ) ;
>>
>> continue ;
>> }
>>
>> if ( usage == WSPasswordCallback.SECURITY_CONTEXT_TOKEN )
>> {
>> System.out.println ( "SECURITY_CONTEXT_TOKEN " +
>> identifier ) ;
>>
>> continue ;
>>  

Re: Help with axis1.4.1 (not axis2) and wss4j

2009-08-31 Thread Wishing Carebear
ty.crypto.merlin.keystore.type=pkcs12
> org.apache.ws.security.crypto.merlin.file=pki/keystore.pfx
> org.apache.ws.security.crypto.merlin.keystore.password=keypassword
> #
>
> The following example is a template for a password callback class.
>
>
> package com.acme.security ;
>
> import  java.io.* ;
>
> import javax.security.auth.callback.Callback ;
> import javax.security.auth.callback.CallbackHandler ;
> import javax.security.auth.callback.UnsupportedCallbackException ;
>
> import org.apache.ws.security.WSPasswordCallback ;
>
> public class PasswordCallback implements CallbackHandler
> {
> public PasswordCallback ()
> {
> }
>
> public void handle ( Callback[] callbackArray ) throws IOException,
> UnsupportedCallbackException
> {
> System.out.println ( "PasswordCallback handle" ) ;
>
> for ( int i = 0; i < callbackArray.length; i++ )
> {
> if ( callbackArray[i] instanceof WSPasswordCallback )
> {
> WSPasswordCallback callback =
> (WSPasswordCallback)callbackArray[i] ;
>
> int usage = callback.getUsage () ;
>
> String identifier = callback.getIdentifer () ;
>
> if ( usage == WSPasswordCallback.UNKNOWN )
> {
> System.out.println ( "UNKNOWN " + identifier ) ;
>
> continue ;
> }
>
> if ( usage == WSPasswordCallback.DECRYPT )
> {
> System.out.println ( "DECRYPT " + identifier ) ;
>
> continue ;
> }
>
> if ( usage == WSPasswordCallback.SIGNATURE )
> {
> System.out.println ( "SIGNATURE " + identifier ) ;
>
> if ( identifier.equals ( "XYZLabel" ) )
> {
>  /*
>  keystore private key password
>  */
>
>  callback.setPassword ( "keypassword" ) ;
>
>  return ;
> }
>
> return ;
> }
>
> if ( usage == WSPasswordCallback.KEY_NAME )
> {
> System.out.println ( "KEY_NAME " + identifier ) ;
>
> continue ;
> }
>
> if ( usage == WSPasswordCallback.USERNAME_TOKEN )
> {
> System.out.println ( "USERNAME_TOKEN "  + identifier )
> ;
>
> if ( identifier.equals ( "myuser" ) )
> {
>  callback.setPassword ( "mypassword" ) ;
>
>  return ;
> }
>
> return ;
> }
>
> if ( usage == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN )
> {
> System.out.println ( "USERNAME_TOKEN_UNKNOWN " +
> identifier ) ;
>
> continue ;
> }
>
> if ( usage == WSPasswordCallback.SECURITY_CONTEXT_TOKEN )
> {
> System.out.println ( "SECURITY_CONTEXT_TOKEN " +
> identifier ) ;
>
> continue ;
> }
> }
> }
>
> throw new java.io.IOException ( "PasswordCallback: unrecognized
> password callback instance or callback usage" ) ;
> }
> }
>
>
> =
>
>
> -Original Message-
> *From:* Wishing Carebear [mailto:wishing.careb...@gmail.com]
> *Sent:* Saturday, 29 August 2009 7:35 AM
> *To:* axis-user@ws.apache.org
> *Subject:* Re: Help with axis1.4.1 (not axis2) and wss4j
>
> Hello:
> Can someone provide some pointers.
>
> Thanks,
> cabear
>
> On Fri, Aug 28, 2009 at 10:13 AM, Wishing Carebear <
> wishing.careb...@gmail.com> wrote:
>
>> Hello:
>> I'm trying to write a client to a WSE 3.0 published webservice. The policy
>> file looks like below:
>>
>> Does wss4j and axis supports addressing.
>>
>> Thanks,
>> cabear
>>
>> 
>>
>> http://schemas.microsoft.com/wse/2005/06/policy"; 
>> <http://schemas.microsoft.com/wse/2005/06/policy>>
>>  
>>  > type="Microsoft.Web.Services3.De

RE: Help with axis1.4.1 (not axis2) and wss4j

2009-08-31 Thread Alick Buckley
urn ;
}
 
return ;
}
 
if ( usage == WSPasswordCallback.KEY_NAME )
{
System.out.println ( "KEY_NAME " + identifier ) ;
 
continue ;
}
 
if ( usage == WSPasswordCallback.USERNAME_TOKEN )
{
System.out.println ( "USERNAME_TOKEN "  + identifier ) ;
 
if ( identifier.equals ( "myuser" ) )
{
 callback.setPassword ( "mypassword" ) ;
 
 return ;
}
 
return ;
}
 
if ( usage == WSPasswordCallback.USERNAME_TOKEN_UNKNOWN )
{
System.out.println ( "USERNAME_TOKEN_UNKNOWN " +
identifier ) ;
 
continue ;
}
 
if ( usage == WSPasswordCallback.SECURITY_CONTEXT_TOKEN )
{
System.out.println ( "SECURITY_CONTEXT_TOKEN " +
identifier ) ;
 
continue ;
}
}
}
 
throw new java.io.IOException ( "PasswordCallback: unrecognized
password callback instance or callback usage" ) ;
}
}
 
====
=
 

-Original Message-
From: Wishing Carebear [mailto:wishing.careb...@gmail.com]
Sent: Saturday, 29 August 2009 7:35 AM
To: axis-user@ws.apache.org
Subject: Re: Help with axis1.4.1 (not axis2) and wss4j


Hello:
Can someone provide some pointers.
 
Thanks,
cabear


On Fri, Aug 28, 2009 at 10:13 AM, Wishing Carebear <
wishing.careb...@gmail.com <mailto:wishing.careb...@gmail.com> > wrote:


Hello:
I'm trying to write a client to a WSE 3.0 published webservice. The policy
file looks like below:
 
Does wss4j and axis supports addressing.
 
Thanks,
cabear



http://schemas.microsoft.com/wse/2005/06/policy";
<http://schemas.microsoft.com/wse/2005/06/policy> >




































































   





Re: Help with axis1.4.1 (not axis2) and wss4j

2009-08-28 Thread Wishing Carebear
Hello:
Can someone provide some pointers.

Thanks,
cabear

On Fri, Aug 28, 2009 at 10:13 AM, Wishing Carebear <
wishing.careb...@gmail.com> wrote:

> Hello:
> I'm trying to write a client to a WSE 3.0 published webservice. The policy
> file looks like below:
>
> Does wss4j and axis supports addressing.
>
> Thanks,
> cabear
>
> 
>
> http://schemas.microsoft.com/wse/2005/06/policy"; 
> >
>   
>type="Microsoft.Web.Services3.Design.UsernameForCertificateAssertion, 
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, 
> PublicKeyToken=31bf3856ad364e35" />
>type="Microsoft.Web.Services3.Design.X509TokenProvider, 
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, 
> PublicKeyToken=31bf3856ad364e35" />
>type="Microsoft.Web.Services3.Design.RequireActionHeaderAssertion, 
> Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, 
> PublicKeyToken=31bf3856ad364e35" />
>   
>   
>renewExpiredSecurityContext="true" requireSignatureConfirmation="false" 
> messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true" 
> ttlInSeconds="300">
>   
>storeName="My" findValue="CN=TMPDMDevelopment" 
> findType="FindBySubjectDistinguishedName" />
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>renewExpiredSecurityContext="true" requireSignatureConfirmation="false" 
> messageProtectionOrder="SignBeforeEncrypt" requireDerivedKeys="true" 
> ttlInSeconds="300">
>   
>storeName="AddressBook" findValue="CN=TMPDMDevelopment" 
> findType="FindBySubjectDistinguishedName" />
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>
>
> 
>
>


Help with axis1.4.1 (not axis2) and wss4j

2009-08-28 Thread Wishing Carebear
Hello:
I'm trying to write a client to a WSE 3.0 published webservice. The policy
file looks like below:

Does wss4j and axis supports addressing.

Thanks,
cabear



http://schemas.microsoft.com/wse/2005/06/policy";
>






































Re: Help! Error when testing Axis2 client

2009-08-24 Thread Clara
Hi everyone,
Any idea of the below error? Please help. 

--- On Mon, 8/24/09, Clara  wrote:

From: Clara 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Monday, August 24, 2009, 2:56 AM

Hi Andreas,
Thank you for the valuable inputs. The error has been resolved by putting the 
schema files (schemaorg_apache_xmlbeans) in my classes directory. However, I am 
getting the below error now: 

INFO: Deploying module: addressing-1.5 - file:/C:/com/samples/axis2/axis2-
1.5.jar
org.apache.axis2.AxisFault: unknown
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:517)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:371)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:417)
    at
 org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
    at com.samples.SampleStub.login(SampleStub.java:4546)
    at com.samples.testAxis2.login(testAxis2.java:48)
    at com.samples.testAxis2.test(testAxis2.java:28)
    at com.samples.testAxis2.main(testAxis2.java:23)


--- On Thu, 8/20/09, Andreas Veithen  wrote:

From: Andreas Veithen 
Subject: Re: Help! Error when testing Axis2 client
To:
 axis-user@ws.apache.org
Date: Thursday, August 20, 2009, 12:54 AM

If you are sure that all classes/JARs are there, then it means that
some classes are loaded by the wrong class loader in the class loader
hierarchy. This is something that is difficult to solve on a mailing
list. My recommendations:

1) Start with a fresh server + Axis2 WAR or Axis2 binary distribution,
deploy the service and check if it works.
2) Try to familiarize yourself a bit more with how class loading works
in Java, especially in the context of an application/Web server. This
will help you to understand and debug this kind of problems.

Andreas

On Thu, Aug 20, 2009 at 04:40, Clara wrote:
>
> Hi,
> My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this
 in
> my classpath (CLASSPATH environment variable) but I am still getting the
> below error. What could be causing this?
> --- On Wed, 8/19/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Wednesday, August 19, 2009, 11:10 AM
>
> Which classloader is the xmlbeans JAR loaded from (i.e. where is the
> xmlbeans JAR located)? Idem for the TypeSystemHolder class.
>
> Andreas
>
> On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>>
>> Hi Andreas,
>> Thank you for your very helpful response. You are right, my jar files from
>> 2
>> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
>> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
>> However, when I tried running my sample client code, I got the below error
>> during runtime:
>>
>> [17:10:23.500] java.lang.ExceptionInInitializerError
>> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
>> .parse(LoginRequestDocument.java:86)
>> [17:10:23.500]  at com.sample.Axis2SampleMessageR
>> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
>> .
>> .
>> .
>> [17:10:23.500] Caused by:
 java.lang.RuntimeException: Cannot load
>> SchemaTypeSyst
>> em. Unable to load class with name
>> schemaorg_apache_xmlbeans.system.s23B9B2646D7
>> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary
>> files
>> are
>>  on the classpath.
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:783)
>> [17:10:23.500]  at com.sample.LoginRequestDocument.>>(LoginRequestDocument.java:19)
>> [17:10:23.500]  ... 21 more
>> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
>> schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
>> [17:10:23.500]  at
>> com.caucho..loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1133)
>>
 [17:10:23.500]  at
>> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1113)
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:769)
>> [17:10:23.500]  ... 22 more
>> I already placed the schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the
>> classpath. Is there something that I might be missing?
>>
>> thanks,
>>
>> Clara
>> --- On Tue, 8/18/09, Andreas Veithen  wrote:
>>
>> From: Andreas Veithen 
>> Subject:

Re: Help! Error when testing Axis2 client

2009-08-24 Thread Clara
Hi Andreas,
Thank you for the valuable inputs. The below error has been resolved by putting 
the schema files (schemaorg_apache_xmlbeans) in my classes directory. However, 
I am getting the below error now: 

INFO: Deploying module: addressing-1.5 - file:/C:/com/samples/axis2/axis2-
1.5.jar
org.apache.axis2.AxisFault: unknown
    at org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.j
ava:517)
    at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:371)
    at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisO
peration.java:417)
    at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(Out
InAxisOperation.java:229)
    at org.apache.axis2.client.OperationClient.execute(OperationClient.java:
165)
    at com.samples.SampleStub.login(SampleStub.java:4546)
    at com.samples.testAxis2.login(testAxis2.java:48)
    at com.samples.testAxis2.test(testAxis2.java:28)
    at com.samples.testAxis2.main(testAxis2.java:23)


--- On Thu, 8/20/09, Andreas Veithen  wrote:

From: Andreas Veithen 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Thursday, August 20, 2009, 12:54 AM

If you are sure that all classes/JARs are there, then it means that
some classes are loaded by the wrong class loader in the class loader
hierarchy. This is something that is difficult to solve on a mailing
list. My recommendations:

1) Start with a fresh server + Axis2 WAR or Axis2 binary distribution,
deploy the service and check if it works.
2) Try to familiarize yourself a bit more with how class loading works
in Java, especially in the context of an application/Web server. This
will help you to understand and debug this kind of problems.

Andreas

On Thu, Aug 20, 2009 at 04:40, Clara wrote:
>
> Hi,
> My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this in
> my classpath (CLASSPATH environment variable) but I am still getting the
> below error. What could be causing this?
> --- On Wed, 8/19/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Wednesday, August 19, 2009, 11:10 AM
>
> Which classloader is the xmlbeans JAR loaded from (i.e. where is the
> xmlbeans JAR located)? Idem for the TypeSystemHolder class.
>
> Andreas
>
> On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>>
>> Hi Andreas,
>> Thank you for your very helpful response. You are right, my jar files from
>> 2
>> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
>> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
>> However, when I tried running my sample client code, I got the below error
>> during runtime:
>>
>> [17:10:23.500] java.lang.ExceptionInInitializerError
>> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
>> .parse(LoginRequestDocument.java:86)
>> [17:10:23.500]  at com.sample.Axis2SampleMessageR
>> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
>> .
>> .
>> .
>> [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load
>> SchemaTypeSyst
>> em. Unable to load class with name
>> schemaorg_apache_xmlbeans.system.s23B9B2646D7
>> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary
>> files
>> are
>>  on the classpath.
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:783)
>> [17:10:23.500]  at com.sample.LoginRequestDocument.>>(LoginRequestDocument.java:19)
>> [17:10:23.500]  ... 21 more
>> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
>> schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
>> [17:10:23.500]  at
>> com.caucho..loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1133)
>> [17:10:23.500]  at
>> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1113)
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:769)
>> [17:10:23.500]  ... 22 more
>> I already placed the schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the
>> classpath. Is there something that I might be missing?
>>
>> thanks,
>>
>> Clara
>> --- On Tue, 8/18/09, Andreas Veithen  wrote:
>>
>> From: Andreas Veithen 
>> Subject: Re: Help! Error when testing Axis2 client
>> To: axis-user@ws.apache.org
>> Date: Tuesday, August 18, 2009, 2:45 AM
>>
>> This probably means that you have a mix of JARs from different Axis2
>> versions (maybe at different locations in the class loader hierarchy).
>>
>> Andreas
>>
>>
>>
>
>



  

Re: Help! Error when testing Axis2 client

2009-08-20 Thread Andreas Veithen
If you are sure that all classes/JARs are there, then it means that
some classes are loaded by the wrong class loader in the class loader
hierarchy. This is something that is difficult to solve on a mailing
list. My recommendations:

1) Start with a fresh server + Axis2 WAR or Axis2 binary distribution,
deploy the service and check if it works.
2) Try to familiarize yourself a bit more with how class loading works
in Java, especially in the context of an application/Web server. This
will help you to understand and debug this kind of problems.

Andreas

On Thu, Aug 20, 2009 at 04:40, Clara wrote:
>
> Hi,
> My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this in
> my classpath (CLASSPATH environment variable) but I am still getting the
> below error. What could be causing this?
> --- On Wed, 8/19/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Wednesday, August 19, 2009, 11:10 AM
>
> Which classloader is the xmlbeans JAR loaded from (i.e. where is the
> xmlbeans JAR located)? Idem for the TypeSystemHolder class.
>
> Andreas
>
> On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>>
>> Hi Andreas,
>> Thank you for your very helpful response. You are right, my jar files from
>> 2
>> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
>> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
>> However, when I tried running my sample client code, I got the below error
>> during runtime:
>>
>> [17:10:23.500] java.lang.ExceptionInInitializerError
>> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
>> .parse(LoginRequestDocument.java:86)
>> [17:10:23.500]  at com.sample.Axis2SampleMessageR
>> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
>> .
>> .
>> .
>> [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load
>> SchemaTypeSyst
>> em. Unable to load class with name
>> schemaorg_apache_xmlbeans.system.s23B9B2646D7
>> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary
>> files
>> are
>>  on the classpath.
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:783)
>> [17:10:23.500]  at com.sample.LoginRequestDocument.>>(LoginRequestDocument.java:19)
>> [17:10:23.500]  ... 21 more
>> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
>> schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
>> [17:10:23.500]  at
>> com.caucho..loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1133)
>> [17:10:23.500]  at
>> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
>> ader.java:1113)
>> [17:10:23.500]  at
>> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
>> s.java:769)
>> [17:10:23.500]  ... 22 more
>> I already placed the schemaorg_apache_xml
>> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the
>> classpath. Is there something that I might be missing?
>>
>> thanks,
>>
>> Clara
>> --- On Tue, 8/18/09, Andreas Veithen  wrote:
>>
>> From: Andreas Veithen 
>> Subject: Re: Help! Error when testing Axis2 client
>> To: axis-user@ws.apache.org
>> Date: Tuesday, August 18, 2009, 2:45 AM
>>
>> This probably means that you have a mix of JARs from different Axis2
>> versions (maybe at different locations in the class loader hierarchy).
>>
>> Andreas
>>
>>
>>
>
>


Re: Help! Error when testing Axis2 client

2009-08-19 Thread Clara

Hi, My xmlbeans JAR is located at C:\xmlbeans-2.4.0\lib. I also placed this in 
my classpath (CLASSPATH environment variable) but I am still getting the below 
error. What could be causing this? 
--- On Wed, 8/19/09, Andreas Veithen  wrote:

From: Andreas Veithen 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Wednesday, August 19, 2009, 11:10 AM

Which classloader is the xmlbeans JAR loaded from (i.e. where is the
xmlbeans JAR located)? Idem for the TypeSystemHolder class.

Andreas

On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>
> Hi Andreas,
> Thank you for your very helpful response. You are right, my jar files from 2
> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
> However, when I tried running my sample client code, I got the below error
> during runtime:
>
> [17:10:23.500] java.lang.ExceptionInInitializerError
> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
> .parse(LoginRequestDocument.java:86)
> [17:10:23.500]  at com.sample.Axis2SampleMessageR
> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
> .
> .
> .
> [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load
> SchemaTypeSyst
> em. Unable to load class with name
> schemaorg_apache_xmlbeans.system.s23B9B2646D7
> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary files
> are
>  on the classpath.
> [17:10:23.500]  at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
> s.java:783)
> [17:10:23.500]  at com.sample.LoginRequestDocument.>(LoginRequestDocument.java:19)
> [17:10:23.500]  ... 21 more
> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
> schemaorg_apache_xml
> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
> [17:10:23.500]  at
> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
> ader.java:1133)
> [17:10:23.500]  at
> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
> ader.java:1113)
> [17:10:23.500]  at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
> s.java:769)
> [17:10:23.500]  ... 22 more
> I already placed the schemaorg_apache_xml
> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the
> classpath. Is there something that I might be missing?
>
> thanks,
>
> Clara
> --- On Tue, 8/18/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Tuesday, August 18, 2009, 2:45 AM
>
> This probably means that you have a mix of JARs from different Axis2
> versions (maybe at different locations in the class loader hierarchy).
>
> Andreas
>
>
>



  

Re: Help! Error when testing Axis2 client

2009-08-19 Thread Andreas Veithen
Which classloader is the xmlbeans JAR loaded from (i.e. where is the
xmlbeans JAR located)? Idem for the TypeSystemHolder class.

Andreas

On Wed, Aug 19, 2009 at 11:43, Clara wrote:
>
> Hi Andreas,
> Thank you for your very helpful response. You are right, my jar files from 2
> different axis2 versions got mixed up. I was using axis2 v1.4 but i used
> axis2.jar of axis2 v1.5. The error was resolved by using axis2 v1.5.
> However, when I tried running my sample client code, I got the below error
> during runtime:
>
> [17:10:23.500] java.lang.ExceptionInInitializerError
> [17:10:23.500]  at com.sample.LoginRequestDocument$Factory
> .parse(LoginRequestDocument.java:86)
> [17:10:23.500]  at com.sample.Axis2SampleMessageR
> eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
> .
> .
> .
> [17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load
> SchemaTypeSyst
> em. Unable to load class with name
> schemaorg_apache_xmlbeans.system.s23B9B2646D7
> 77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary files
> are
>  on the classpath.
> [17:10:23.500]  at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
> s.java:783)
> [17:10:23.500]  at com.sample.LoginRequestDocument.>(LoginRequestDocument.java:19)
> [17:10:23.500]  ... 21 more
> [17:10:23.500] Caused by: java.lang.ClassNotFoundException:
> schemaorg_apache_xml
> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
> [17:10:23.500]  at
> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
> ader.java:1133)
> [17:10:23.500]  at
> com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
> ader.java:1113)
> [17:10:23.500]  at
> org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
> s.java:769)
> [17:10:23.500]  ... 22 more
> I already placed the schemaorg_apache_xml
> beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the
> classpath. Is there something that I might be missing?
>
> thanks,
>
> Clara
> --- On Tue, 8/18/09, Andreas Veithen  wrote:
>
> From: Andreas Veithen 
> Subject: Re: Help! Error when testing Axis2 client
> To: axis-user@ws.apache.org
> Date: Tuesday, August 18, 2009, 2:45 AM
>
> This probably means that you have a mix of JARs from different Axis2
> versions (maybe at different locations in the class loader hierarchy).
>
> Andreas
>
>
>


Re: Help! Error when testing Axis2 client

2009-08-19 Thread Clara

Hi Andreas,

Thank you for your very helpful response. You are right, my jar files
from 2 different axis2 versions got mixed up. I was using axis2 v1.4
but i used axis2.jar of axis2 v1.5. The error was resolved by using
axis2 v1.5. However, when I tried running my sample client code, I got the 
below error during runtime:

[17:10:23.500] java.lang.ExceptionInInitializerError
[17:10:23.500]  at com.sample.LoginRequestDocument$Factory
..parse(LoginRequestDocument.java:86)
[17:10:23.500]  at com.sample.Axis2SampleMessageR
eceiverInOut.fromOM(Axis2SampleMessageReceiverInOut.java:2540)
..
..
..
[17:10:23.500] Caused by: java.lang.RuntimeException: Cannot load SchemaTypeSyst
em. Unable to load class with name schemaorg_apache_xmlbeans.system.s23B9B2646D7
77B890CFC862E67D5196A.TypeSystemHolder. Make sure the generated binary files are
 on the classpath.
[17:10:23.500]  at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
s.java:783)
[17:10:23.500]  at com.sample.LoginRequestDocument.(LoginRequestDocument.java:19)
[17:10:23.500]  ... 21 more
[17:10:23.500] Caused by:
 java.lang.ClassNotFoundException: schemaorg_apache_xml
beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder
[17:10:23.500]  at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
ader.java:1133)
[17:10:23.500]  at com.caucho.loader.DynamicClassLoader.loadClass(DynamicClassLo
ader.java:1113)
[17:10:23.500]  at org.apache.xmlbeans.XmlBeans.typeSystemForClassLoader(XmlBean
s.java:769)
[17:10:23.500]  ... 22 more
I already placed the schemaorg_apache_xml

beans.system.s23B9B2646D777B890CFC862E67D5196A.TypeSystemHolder in the  
classpath. Is there something that I might be missing? 

thanks, 

Clara
--- On Tue, 8/18/09, Andreas Veithen  wrote:

From: Andreas Veithen 
Subject: Re: Help! Error when testing Axis2 client
To: axis-user@ws.apache.org
Date: Tuesday, August 18, 2009, 2:45 AM

This probably means that you have a mix of JARs from different Axis2
versions (maybe at different locations in the class loader hierarchy).

Andreas





  


  

Re: Help! Error when testing Axis2 client

2009-08-18 Thread Andreas Veithen
This probably means that you have a mix of JARs from different Axis2
versions (maybe at different locations in the class loader hierarchy).

Andreas

On Tue, Aug 18, 2009 at 11:30, Maria Claribelle M.
Loto wrote:
>
>
>
>
> Hi,
> I am currently developing a webservice using axis2 and Resin 3.1.9. I
> successfully generated the .aar file, dropped it on
> C:\resin\webapps\axis2\WEB-INF\services. I was able to get to the axis2
> happy page. However, when I tried calling my service by accessing it through
> the url like
> http://localhost:90/axis2/services/SampleWebservice/login?username=abc&password=def,
> i am getting the below error in the resin console:
>
> [14:58:14.812] Resin started in 51750ms
> [15:00:31.500] java.lang.NoSuchMethodError:
> org.apache.axis2.engine.AxisEngine.<
> init>(Lorg/apache/axis2/context/ConfigurationContext;)V
> [15:00:31.500]  at
> org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngin
> e(RESTUtil.java:135)
> [15:00:31.500]  at
> org.apache.axis2.transport.http.util.RESTUtil.processURLReque
> st(RESTUtil.java:130)
> [15:00:31.500]  at
> org.apache.axis2.transport.http.AxisServlet$RestRequestProces
> sor.processURLRequest(AxisServlet.java:829)
> [15:00:31.500]  at
> org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet
> .java:255)
> [15:00:31.500]  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
> [15:00:31.500]  at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
> [15:00:31.500]  at
> com.caucho.server.dispatch.ServletFilterChain.doFilter(Servle
> tFilterChain.java:103)
>
>
> Any idea what causes this problem and how I could resolve this?
>
> thanks a lot.
>
> Clara Pia
>
>
>


Help! Error when testing Axis2 client

2009-08-18 Thread Maria Claribelle M. Loto




Hi, 
I am currently developing a webservice using axis2 and Resin 3.1.9. I 
successfully generated the .aar file, dropped it on 
C:\resin\webapps\axis2\WEB-INF\services. I was able to get to the axis2 happy 
page. However, when I tried calling my service by accessing it through the url 
like 
http://localhost:90/axis2/services/SampleWebservice/login?username=abc&password=def,
 i am getting the below error in the resin console: 

[14:58:14.812] Resin started in 51750ms
[15:00:31.500] java.lang.NoSuchMethodError: org.apache.axis2.engine.AxisEngine.<
init>(Lorg/apache/axis2/context/ConfigurationContext;)V
[15:00:31.500]  at org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngin
e(RESTUtil.java:135)
[15:00:31.500]  at
 org.apache.axis2.transport.http.util.RESTUtil.processURLReque
st(RESTUtil.java:130)
[15:00:31.500]  at org.apache.axis2.transport.http.AxisServlet$RestRequestProces
sor.processURLRequest(AxisServlet.java:829)
[15:00:31.500]  at org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet
.java:255)
[15:00:31.500]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:114)
[15:00:31.500]  at javax.servlet.http.HttpServlet.service(HttpServlet.java:91)
[15:00:31.500]  at com.caucho.server.dispatch.ServletFilterChain.doFilter(Servle
tFilterChain.java:103)


Any idea what
 causes this problem and how I could resolve this? 

thanks a lot.

Clara Pia



  


  

Re: Axis2 - session management - HELP!!!

2009-08-17 Thread Andreas Veithen
Why do you need to store this data? The two operations (extracting the
data from the request and preparing the response) will be executed in
the context of the same method invocation, namely
MessageReceiver#receive (or an equivalent method in one of the
subclasses).

Andreas

On Mon, Aug 17, 2009 at 20:32, Ramya K Grama wrote:
> I'm sorry for not being clear enough.
> The specific service that I need to develop needs to be able to
> remember the request message inorder to generate the response message.
> The reason being that most of the response (nearly 80%) is the same as
> the request, except with a few additional data coming from the db.
>
> Sample Request xml & Response XML are as below:
>
> 
> …
> 
> 
>     
>         Req val
>          Req val 
>          Req val 
>         .
>                                 
>                
> 
> 
> 
>
> Response XML:
> 
> …
> 
> 
>               
>         Req val
>          Req val 
>          Req val 
>         
>                               New DBVal
>
>                
> 
> 
> 
>
> So the idea is that since the response format is the same and its just
> a few tag values that need to be updated, we are thinking of saving
> the request XML in the context as a Java Object. Can something like
> below be done in Axis2’s Skeleton?
>
> MessageContext.getOperationContext().setMyObject(“myObj”,abcRequest);
>
> Then be able to retrieve it back on the way out as below:
>
> AbcRequest abcRequest =
> (AbcRequest)MessageContext.getOperationContext().getMyObject(“myObj”);
> AllElements[] allElements = abcRequest.getAllElements();
>
> Update required elements in the allElements array with the new DB values.
> Get hold of the outgoing response Java Object. Set allElements section
> in the response.
> Send the response out.
>
> Can this be done in Axis2?
>
> On Wed, Aug 12, 2009 at 2:00 PM, Andreas Veithen
>  wrote:
>>
>> To be honest, I don't really understand the idea behind your approach.
>> Either there is something missing in your explanation, or your
>> approach is way too complicated.
>>
>> Andreas
>>
>> On Wed, Aug 12, 2009 at 16:05, Ramya K Grama wrote:
>> > Thanks for ur tip on the CDATA. I'll look into that and come back with any
>> > issues I may have.
>> > The other question I have is regarding storing the request xml.
>> > Where and how could that be done?
>> > I read that OperationContext and SOAPSession can be used to achieve this.
>> > But I will need some help with the API.
>> >
>> >
>> >
>> > Thanks,
>> > wsnewbie
>> >
>> > On Wed, Aug 12, 2009 at 3:32 AM, Andreas Veithen 
>> > 
>> > wrote:
>> >>
>> >> You need to take into account that Axis2 by default doesn't preserve
>> >> CDATA sections (and converts them to text nodes). You can use the
>> >> approach described in [1] to change this.
>> >>
>> >> Andreas
>> >>
>> >> [1] http://people.apache.org/~veithen/synapse/faq.html
>> >>
>> >> On Wed, Aug 12, 2009 at 00:39, Ramya K Grama wrote:
>> >> > Hello,
>> >> > I'm using Axis2/Java to create a web service wherein the request and
>> >> > response xmls are very much the same except for some additional data
>> >> > from
>> >> > the db that gets added on to the request as a response.
>> >> > Also, there is a lot of CDATA sections in the request that need to be
>> >> > sent
>> >> > back in the response as is without any modification.
>> >> >
>> >> > In designing this service, we've come up with the strategy of saving the
>> >> > incoming SOAP request.xml(in memory) somewhere so that it can be used to
>> >> > recreate the response + updated data from the db (stuffing in empty tags
>> >> > with data from db).
>> >> >
>> >> > Is this a good approach as far as Axis2 is concerned. If so what/how
>> >> > would
>> >> > be teh best place of storing the request.xml. Are there any
>> >> > multi-threading
>> >> > issues that i need to be concerned about. What would be a fool-proof and
>> >> > optimal approach of doing this in Axis2.
>> >> >
>> >> > From my initial research, I've found that OperationContext with
>> >> > SOAPSession
>> >> > scope can be used for this. Am I correct here?
>> >> >
>> >> > Also, since there are a lot of CDATA sections in the request and
>> >> > response
>> >> > xmls, is there anything special that needs to be done?
>> >> >
>> >> > Your feedback will be very helpful in designing my service further.
>> >> >
>> >> > Thanks,
>> >> > wsNewbie.
>> >
>> >
>


Re: Axis2 - session management - HELP!!!

2009-08-17 Thread Ramya K Grama
I'm sorry for not being clear enough.
The specific service that I need to develop needs to be able to
remember the request message inorder to generate the response message.
The reason being that most of the response (nearly 80%) is the same as
the request, except with a few additional data coming from the db.

Sample Request xml & Response XML are as below:


…


    
        Req val
         Req val 
         Req val 
        .
 





Response XML:

…


   
        Req val
         Req val 
         Req val 
        
   New DBVal






So the idea is that since the response format is the same and its just
a few tag values that need to be updated, we are thinking of saving
the request XML in the context as a Java Object. Can something like
below be done in Axis2’s Skeleton?

MessageContext.getOperationContext().setMyObject(“myObj”,abcRequest);

Then be able to retrieve it back on the way out as below:

AbcRequest abcRequest =
(AbcRequest)MessageContext.getOperationContext().getMyObject(“myObj”);
AllElements[] allElements = abcRequest.getAllElements();

Update required elements in the allElements array with the new DB values.
Get hold of the outgoing response Java Object. Set allElements section
in the response.
Send the response out.

Can this be done in Axis2?

On Wed, Aug 12, 2009 at 2:00 PM, Andreas Veithen
 wrote:
>
> To be honest, I don't really understand the idea behind your approach.
> Either there is something missing in your explanation, or your
> approach is way too complicated.
>
> Andreas
>
> On Wed, Aug 12, 2009 at 16:05, Ramya K Grama wrote:
> > Thanks for ur tip on the CDATA. I'll look into that and come back with any
> > issues I may have.
> > The other question I have is regarding storing the request xml.
> > Where and how could that be done?
> > I read that OperationContext and SOAPSession can be used to achieve this.
> > But I will need some help with the API.
> >
> >
> >
> > Thanks,
> > wsnewbie
> >
> > On Wed, Aug 12, 2009 at 3:32 AM, Andreas Veithen 
> > wrote:
> >>
> >> You need to take into account that Axis2 by default doesn't preserve
> >> CDATA sections (and converts them to text nodes). You can use the
> >> approach described in [1] to change this.
> >>
> >> Andreas
> >>
> >> [1] http://people.apache.org/~veithen/synapse/faq.html
> >>
> >> On Wed, Aug 12, 2009 at 00:39, Ramya K Grama wrote:
> >> > Hello,
> >> > I'm using Axis2/Java to create a web service wherein the request and
> >> > response xmls are very much the same except for some additional data
> >> > from
> >> > the db that gets added on to the request as a response.
> >> > Also, there is a lot of CDATA sections in the request that need to be
> >> > sent
> >> > back in the response as is without any modification.
> >> >
> >> > In designing this service, we've come up with the strategy of saving the
> >> > incoming SOAP request.xml(in memory) somewhere so that it can be used to
> >> > recreate the response + updated data from the db (stuffing in empty tags
> >> > with data from db).
> >> >
> >> > Is this a good approach as far as Axis2 is concerned. If so what/how
> >> > would
> >> > be teh best place of storing the request.xml. Are there any
> >> > multi-threading
> >> > issues that i need to be concerned about. What would be a fool-proof and
> >> > optimal approach of doing this in Axis2.
> >> >
> >> > From my initial research, I've found that OperationContext with
> >> > SOAPSession
> >> > scope can be used for this. Am I correct here?
> >> >
> >> > Also, since there are a lot of CDATA sections in the request and
> >> > response
> >> > xmls, is there anything special that needs to be done?
> >> >
> >> > Your feedback will be very helpful in designing my service further.
> >> >
> >> > Thanks,
> >> > wsNewbie.
> >
> >


Re: Please help me to debug RAMPART issue

2009-07-31 Thread Chinmoy Chakraborty
Hi,

I noticed following property was not set while sending the message back:

179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -  Property set on object
org.apache.axis2.context.messagecont...@12f0ce9
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Key =messageType
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value =text/xml
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value Class =
java.lang.String
179781 DEBUG [http8080-Processor24]
org.apache.axis2.context.AbstractContext -   Value Classloader = null

and then it produces following error:

[http8080-Processor21] org.apache.axis2.transport.TransportUtils - Could
not find a Builder for type (text/html).  Using SOAP.
194422 DEBUG [http8080-Processor21]

httpclient.wire.content - << "Apache Tomcat/5.0.19 -
Error report
HTTP Status 500 - type
Status reportmessage description The
server encountered an internal error () that prevented it from fulfilling
this request.Apache
Tomcat/5.0.19"
194422

DEBUG [http8080-Processor21]org.apache.axiom.om.util.StAXUtils -
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
194422 INFO  [http8080-Processor21]
org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder


Chinmoy






On Fri, Jul 31, 2009 at 2:59 PM, Chinmoy Chakraborty wrote:

> Hi,
>
> I turned on DEBUG and please find attached rampart_debug.log file. Does
> 'WSDoAllReceiver' process faults if any while invoking the business logic? I
> found following commented line at line no. 161 of WSDoAllReceiver.java src:
>
> ...
> // Do not process faults
> SOAPConstants soapConstants = WSSecurityUtil.getSOAPConstants(doc
> .getDocumentElement());
> if (WSSecurityUtil.findElement(doc.getDocumentElement(), "Fault",
> soapConstants.getEnvelopeURI()) != null) {
> return;
> }
> ..
>
> In line 8254 it throws the exception from the service (in the log file the
> service name is ABS) method. In line 8381 it shows :
>
> isReplyRedirected: FaultTo is null. Returning isReplyRedirected
> 194047 DEBUG [http8080-Processor24]
> org.apache.axis2.addressing.AddressingHelper - [MessageContext:
> logID=urn:uuid:B669EB542CF5BAEF9D1249024862072] isReplyRedirected: ReplyTo
> is null. Returning false
>
> Is this the reason of not sending fault SOAP to the client if WSSecurity is
> on and use parameter based WS-Security?
>
> Chinmoy
>
>
>


Re: HELP - ConcurrentModificationException: concurrent access to HashMap -- inside Axis1.x

2009-07-29 Thread Davanum Srinivas

Hey Gary,

Do you want to try switching it to ConcurrentHashMap?

thanks,
dims

On 07/29/2009 06:27 PM, Gary Yue wrote:

Hi all,

I am geting the following exception periodically when axis server tries to 
deserialize incoming requests.
It happens at a relatively low rate (20 times a day out of heavy load traffic, 
like 5M calls).
 From the code, it looks like TypeDesc class is not thread-safe, as inside 
getFieldNameForElement(), multiple threads executing this method could 
potentially be accessing the private member fieldElementMap hashmap at the same 
time (get() and put()), which results in concurrent modification exception. So 
this looks like a threading poblem inside Axis1.x framework.

Has anyone encounter this same problem? Any advice on how to resolve this?
I am using Axis1.1 (but i see Axis1.3 also has the exact same code there)

thanks
gary
  st=java.util.ConcurrentModificationException: concurrent access to HashMap 
attempted by Thread[http-0.0.0.0-8080-Processor107,5,main]
at java.util.HashMap.onEntry(HashMap.java:214)
at java.util.HashMap.transfer(HashMap.java:686)
at java.util.HashMap.resize(HashMap.java:676)
at java.util.HashMap.addEntry(HashMap.java:1049)
at java.util.HashMap.put(HashMap.java:561)
at 
org.apache.axis.description.TypeDesc.getFieldNameForElement(TypeDesc.java:355)
at 
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:209)
at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:963)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:184)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at org.apache.axis.transport.http.AxisServlet.doPostOrGet(AxisServlet.java:954)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:816)


HELP - ConcurrentModificationException: concurrent access to HashMap -- inside Axis1.x

2009-07-29 Thread Gary Yue
Hi all,
 
I am geting the following exception periodically when axis server tries to 
deserialize incoming requests.
It happens at a relatively low rate (20 times a day out of heavy load traffic, 
like 5M calls).
From the code, it looks like TypeDesc class is not thread-safe, as inside 
getFieldNameForElement(), multiple threads executing this method could 
potentially be accessing the private member fieldElementMap hashmap at the same 
time (get() and put()), which results in concurrent modification exception. So 
this looks like a threading poblem inside Axis1.x framework.
 
Has anyone encounter this same problem? Any advice on how to resolve this?
I am using Axis1.1 (but i see Axis1.3 also has the exact same code there)
 
thanks
gary
 st=java.util.ConcurrentModificationException: concurrent access to HashMap 
attempted by Thread[http-0.0.0.0-8080-Processor107,5,main]
at java.util.HashMap.onEntry(HashMap.java:214)
at java.util.HashMap.transfer(HashMap.java:686)
at java.util.HashMap.resize(HashMap.java:676)
at java.util.HashMap.addEntry(HashMap.java:1049)
at java.util.HashMap.put(HashMap.java:561)
at 
org.apache.axis.description.TypeDesc.getFieldNameForElement(TypeDesc.java:355)
at 
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:209)
at 
org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:963)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
at 
org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:722)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:233)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:347)
at 
org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:184)
at org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider.java:333)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:150)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:120)
at org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:481)
at org.apache.axis.server.AxisServer.invoke(AxisServer.java:323)
at org.apache.axis.transport.http.AxisServlet.doPostOrGet(AxisServlet.java:954)
at org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:816)

Re: Help with Deserialization of complex object with Java Webservice

2009-07-29 Thread Carmelo
Sorry, i don't know.
Il giorno mer, 29/07/2009 alle 06.07 -0700, guitarro17 ha scritto:
> Thank you!
> 
> But, in J2ME, What I need to do? Same?
> 
> In my client I have this:
> 
> public void testWebService() throws Exception { 
>   
>   SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>   
>   SoapObject soapObject = new SoapObject(url,"getAlerts");
>   
>   envelope.addMapping(url, "Alert", new Alert().getClass());
>   
>   envelope.setOutputSoapObject(soapObject);
>   
>   HttpTransport transport = new HttpTransport(url);
>   
>   transport.call("getAlerts",envelope);
>   
> //HERE IS THE PROBLEM...
>   Vector ret = (Vector)envelope.getResponse();
>   
>   } 
> 



RE: Help with Deserialization of complex object with Java Webservice

2009-07-29 Thread guitarro17

Actually i'm returning an array. The method in webservice is something like
this:

public Alert[] getAlerts(){
   ...
}

And I'm using the NetBeans plugin for axis2 webservice, so, the WSDL is
automatically generated...

When the webservice returns a Alert[], how can I "take"  this array on my
J2ME application?


mgainty wrote:
> 
> 
> complex return types such as Vector would need to be defined in the WSDL
> e.g.
>   http://xml.apache.org/xml-soap";
> xmlns="http://www.w3.org/2001/XMLSchema";>
>http://DefaultNamespace"/>
>http://schemas.xmlsoap.org/soap/encoding/"/>
>
> 
>   type="xsd:anyType"/>
> 
>
>   
>  
> 
> Martin Gainty 
> __ 
> Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
>  
> Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene
> Empfaenger sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte
> Weiterleitung oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht
> dient lediglich dem Austausch von Informationen und entfaltet keine
> rechtliche Bindungswirkung. Aufgrund der leichten Manipulierbarkeit von
> E-Mails koennen wir keine Haftung fuer den Inhalt uebernehmen.
> Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le
> destinataire prévu, nous te demandons avec bonté que pour satisfaire
> informez l'expéditeur. N'importe quelle diffusion non autorisée ou la
> copie de ceci est interdite. Ce message sert à l'information seulement et
> n'aura pas n'importe quel effet légalement obligatoire. Étant donné que
> les email peuvent facilement être sujets à la manipulation, nous ne
> pouvons accepter aucune responsabilité pour le contenu fourni.
> 
> 
> 
> 
>> Date: Wed, 29 Jul 2009 06:07:32 -0700
>> From: guitarr...@yahoo.com.br
>> To: axis-user@ws.apache.org
>> Subject: Re: Help with Deserialization of complex object with Java
>> Webservice
>> 
>> 
>> Thank you!
>> 
>> But, in J2ME, What I need to do? Same?
>> 
>> In my client I have this:
>> 
>> public void testWebService() throws Exception { 
>>  
>>  SoapSerializationEnvelope envelope = new
>> SoapSerializationEnvelope(SoapEnvelope.VER11);
>>  
>>  SoapObject soapObject = new SoapObject(url,"getAlerts");
>>  
>>  envelope.addMapping(url, "Alert", new Alert().getClass());
>>  
>>  envelope.setOutputSoapObject(soapObject);
>>      
>>  HttpTransport transport = new HttpTransport(url);
>>  
>>  transport.call("getAlerts",envelope);
>>  
>> //HERE IS THE PROBLEM...
>>  Vector ret = (Vector)envelope.getResponse();
>>  
>>  } 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24718858.html
>> Sent from the Axis - User mailing list archive at Nabble.com.
>> 
> 
> _
> Bing™ brings you maps, menus, and reviews organized in one place. Try it
> now.
> http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1
> 

-- 
View this message in context: 
http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24720614.html
Sent from the Axis - User mailing list archive at Nabble.com.



RE: Help with Deserialization of complex object with Java Webservice

2009-07-29 Thread Martin Gainty

complex return types such as Vector would need to be defined in the WSDL
e.g.
  http://xml.apache.org/xml-soap"; 
xmlns="http://www.w3.org/2001/XMLSchema";>
   http://DefaultNamespace"/>
   http://schemas.xmlsoap.org/soap/encoding/"/>
   

 

   
  
 

Martin Gainty 
__ 
Verzicht und Vertraulichkeitanmerkung/Note de déni et de confidentialité
 
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.




> Date: Wed, 29 Jul 2009 06:07:32 -0700
> From: guitarr...@yahoo.com.br
> To: axis-user@ws.apache.org
> Subject: Re: Help with Deserialization of complex object with Java Webservice
> 
> 
> Thank you!
> 
> But, in J2ME, What I need to do? Same?
> 
> In my client I have this:
> 
> public void testWebService() throws Exception { 
>   
>   SoapSerializationEnvelope envelope = new
> SoapSerializationEnvelope(SoapEnvelope.VER11);
>   
>   SoapObject soapObject = new SoapObject(url,"getAlerts");
>   
>   envelope.addMapping(url, "Alert", new Alert().getClass());
>   
>   envelope.setOutputSoapObject(soapObject);
>   
>   HttpTransport transport = new HttpTransport(url);
>   
>   transport.call("getAlerts",envelope);
>   
> //HERE IS THE PROBLEM...
>   Vector ret = (Vector)envelope.getResponse();
>   
>   } 
> 
> -- 
> View this message in context: 
> http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24718858.html
> Sent from the Axis - User mailing list archive at Nabble.com.
> 

_
Bing™ brings you maps, menus, and reviews organized in one place. Try it now.
http://www.bing.com/search?q=restaurants&form=MLOGEN&publ=WLHMTAG&crea=TXT_MLOGEN_Local_Local_Restaurants_1x1

Re: Help with Deserialization of complex object with Java Webservice

2009-07-29 Thread guitarro17

Thank you!

But, in J2ME, What I need to do? Same?

In my client I have this:

public void testWebService() throws Exception { 

SoapSerializationEnvelope envelope = new
SoapSerializationEnvelope(SoapEnvelope.VER11);

SoapObject soapObject = new SoapObject(url,"getAlerts");

envelope.addMapping(url, "Alert", new Alert().getClass());

envelope.setOutputSoapObject(soapObject);

HttpTransport transport = new HttpTransport(url);

transport.call("getAlerts",envelope);

//HERE IS THE PROBLEM...
Vector ret = (Vector)envelope.getResponse();

} 

-- 
View this message in context: 
http://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24718858.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Help with Deserialization of complex object with Java Webservice

2009-07-29 Thread Carmelo
Probably you have to write a metod in your client to deserialize that
object, and you need to do your class Alert implementing serializable.
ES: public class Alert implements serializable{
attributes...
public Allert(){}
}
Remember you have to do a class with an empty constructor.
Then befor you use the metod Invoke you ha to do this:

QName qnameAlert = new QName("urn:nameWebService", "Alert");
Class classeAlert = Alert.class;
call.registerTypeMapping(classeAlert, qnameAlert,
BeanSerializerFactory.class,
BeanDeserializerFactory.class);

BeanSerializer/DeserializerFactory.class make for you serialization and
deserialization.
Bye.
Il giorno mar, 28/07/2009 alle 16.47 -0700, guitarro17 ha scritto:
> Let me explain. 
> I have this object:
> public class Alert {
>   private String name;
>   private String approximateStartDate;
>   private String startDate;
>   private String stopDate;
> ...
> }
> And in my webservice, I have this method:
>   public Alert[] getAlerts() throws Exception{
>   Vector vetorAlerts = new Vector();
>   vetorAlerts = leitor.readAlerts();
> 
> Alert[] Alerts = new Alert[vetorAlerts.size()];
> for(int i=0; i Alerts[i]=vetorAlerts.get(i);
> }
>   return Alerts;
>   }
> 
> But When I'm trying to access this with J2SE, just like this:
>   Call call = (Call) new Service().createCall();
>   call.setTargetEndpointAddress(local);
>   call.setOperationName("getAlerts");
>   Object[] param = null;
>   Alert alerts[] = (Alert[])call.invoke(param);
> 
> I'm getting this error:
> 
> Unable to find required classes (javax.activation.DataHandler and
> javax.mail.internet.MimeMultipart). Attachment support is disabled.
> - Exception:
> org.xml.sax.SAXException: SimpleDeserializer encountered a child element,
> which is NOT expected, in something it was trying to deserialize.
>   at
> org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(SimpleDeserializer.java:145)
> ...
> 
> I have no idea what I need to do to solve this problem =(
> 



Help with Deserialization of complex object with Java Webservice

2009-07-28 Thread guitarro17

Let me explain. 
I have this object:
public class Alert {
private String name;
private String approximateStartDate;
private String startDate;
private String stopDate;
...
}
And in my webservice, I have this method:
public Alert[] getAlerts() throws Exception{
Vector vetorAlerts = new Vector();
vetorAlerts = leitor.readAlerts();

Alert[] Alerts = new Alert[vetorAlerts.size()];
for(int i=0; ihttp://www.nabble.com/Help-with-Deserialization-of-complex-object-with-Java-Webservice-tp24709922p24709922.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Need help working with xsi:type and ADB

2009-06-05 Thread Glen Mazza

I think I can answer my own question now.  The ADBBean generated,
RequestQuery in my example below, already had a nice addExtraAttributes()
method for me to add the attribute but not an addExtraElement(OMElement)
method to add the extra element--that's because my actual WSDL had an
 (causing the former method to appear) but no 
sequence element.  I placed the latter in to the WSDL, and wsdl2java created
a setExtraElement(OMElement) method for me.


Glen Mazza wrote:
> 
> Hello, I'm writing a client of a web service WSDL that uses xsi:type[1],
> which is a method of dynamically changing the type of element being used. 
> (I'm using Axis2 with ADB).  The WSDL just asks for a RequestQuery, as
> defined below:
> 
> 
>   
>   
>   
>   
>   
> 
> 
> where RequestQuery is:
> 
>   
>   
>   
> 
> 
> But request query has a derived type that I need to use, say
> FinancialRequestQuery:
> 
> 
>   
>   
>   
>type="xs:string"/>
>   
>   
>   
> 
> 
> Over the wire, however, instead of sending a FinancialRequestQuery I have
> to use a RequestQuery with xsi:type as follows:
> 
> 
>hello
>how are you
> 
> 
> ADB binding does not provide me the necessary setters for this though--I'm
> provided a method to set reqVal (because it's normally part of Request)
> but not finanReqVal (because it's only allowed here because of the
> xsi:type changing it to the derived FinancialRequestQuery type.)
> 
> What I guess I need to do is, (1) given an ADB generated object such as
> RequestQuery, to manually construct an xsi:type attribute and add it to
> that element; and (2) to manually construct an  child
> element and add it to the ADB RequestQuery object.  Does anyone have quick
> code snippets on how to do that?  (Other ideas or suggestions for working
> with xsi:type also welcome.)
> 
> Thanks,
> Glen
> 
> [1] http://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_over_st1.html
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Need-help-working-with-xsi%3Atype-and-ADB-tp23853502p23888560.html
Sent from the Axis - User mailing list archive at Nabble.com.



Need help working with xsi:type and ADB

2009-06-03 Thread Glen Mazza

Hello, I'm writing a client of a web service WSDL that uses xsi:type[1],
which is a method of dynamically changing the type of element being used. 
(I'm using Axis2 with ADB).  The WSDL just asks for a RequestQuery, as
defined below:









where RequestQuery is:






But request query has a derived type that I need to use, say
FinancialRequestQuery:











Over the wire, however, instead of sending a FinancialRequestQuery I have to
use a RequestQuery with xsi:type as follows:


   hello
   how are you


ADB binding does not provide me the necessary setters for this though--I'm
provided a method to set reqVal (because it's normally part of Request) but
not finanReqVal (because it's only allowed here because of the xsi:type
changing it to the derived FinancialRequestQuery type.)

What I guess I need to do is, (1) given an ADB generated object such as
RequestQuery, to manually construct an xsi:type attribute and add it to that
element; and (2) to manually construct an  child element
and add it to the ADB RequestQuery object.  Does anyone have quick code
snippets on how to do that?  (Other ideas or suggestions for working with
xsi:type also welcome.)

Thanks,
Glen

[1] http://www.zvon.org/xxl/XMLSchemaTutorial/Output/ser_over_st1.html

-- 
View this message in context: 
http://www.nabble.com/Need-help-working-with-xsi%3Atype-and-ADB-tp23853502p23853502.html
Sent from the Axis - User mailing list archive at Nabble.com.



Help Required for SOAP/JMS

2009-05-20 Thread sachin shah

Hi,

Need help with SOAP/JMS implementation with AXIS2.

My scenario is as below I just wanted to ensure I am putting right information 
in my documents before confirming preferred framework for problem in hand. 

The component I am developing need to provide access to non tibco client to the 
services deployed on Tibco ESB. Reference Architecture of the client mandates 
that all service acess should be through SOAP/JMS and only presentation 
services should use SOAP/HTTP. Hence I think I will be using just a Axis2 
client to send messages using SOAP/JMS transport as below.

1) WSDL will be provided for the service that is deployed on ESB
2) Generate AXIS2 client to use this WSDL and create stubs. 
3) I will expose a custom java interface for all non tibco client to access any 
service on the ESB. 
4) This custom java interface will delegate the call to generated axis2 client 
to send request using transport SOAP/JMS. 
5) I am not sure of Axis2's SOAP/JMS implementation if it is synchronous or 
asynchronous or both (configurable)? I would think it should be transperant to 
client hence synchronous. 
6) If it is asynchronous, do I need to develop a listener (MDB) in my 
application to receive response or again AXIS2 supports through some sort of 
JMSReceiver and I just configure for that particular service? 
7) With respect to other requirements of security, encryption, message signing 
etc. I am assuming filter chain and modules will do the trick? Am I correct to 
assume this. 

Que: 
1) Do I need to do any configuration for queues or topic to be used? or this is 
taken care by the WSDL and generated stubs. 
2) Is Axis2's SOAP/JMS implementation synchronous or asynchronous?
3) If Asynchronous do I have to develop custom components (MDB) to receive 
response. 
4) Other requirements like security, encryption, message signing etc. will be 
possible to implement using modules and filter chain. 

Any help is appreciated. If you can point to similar implementation (other JMS 
provider) it will be really helpful. 

Sachin 


  


leave a comment and help our mother land

2009-05-17 Thread Ushan Adikaram
guys leave your valuable comments here behalf of our mother sri lanka and
our brave soldiers who are still fighting to free our country from terrorism
and the people who have been killed by the terrorists. we should give
answers to the international pro ltte community who are attacking our
country using media hiding behind a nice little word " GENOCIDE " .

http://internationaldesk.blogs.cnn.com/2009/05/14/leave-sri-lanka-comments-here/#comment-5623


Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal Jayasinghe
My recommendation is to use paramters as much as you can, but if you can
not solve your problem with paramters then you have to use other types.

If you want have that variable access only for single execution, then do
not use ConfigurationContext, use MesageContext of OperationContext.

Deepal

J. Hondius wrote:
> Thanks again Deepal!
>
> Thats the exactly the point.
> I *want* it to be for single execution/one invocation.
> The problem is that static variables behave badly in axis!
> They get shared between invocations and persist from one invocation to
> the next.
>
> In my book thats weird behaviour, altough i think i understand why
> axis behaves that way:
> Axis' classloader loads once, but every invocation gets a fresh instance.
> The static var is part of a the class, not of the fresh instance however.
>
> So statics can be used instead of ConfigurationContext params ;)
> (not advisable?)
>
> Please reply if you think i'm reasoning incorrectly, more code will
> rely on this solution.
>
> Greetings, Joek
>
>
> Deepal jayasinghe schreef:
>> Nope, that is not going to work. The reason is MessageContext has very
>> limited lifetime, and that is only for single execution. So if you want
>> to share something in one invocation then messageContext is fine, but if
>> you want to have the "static nature" then you need to store the value in
>> the ConfigurationContext.
>>
>> Deepal
>>  
>>> I think i found a way.
>>> See below.
>>> Please comment on it.
>>>
>>>
>>> J. Hondius schreef:
>>>
>>>> Hi,
>>>>
>>>> Please help.
>>>> I have a need for a variable that is globally accessible from my
>>>> service implementation.
>>>> The normal way to do this in java is using statics AFAIK.
>>>>
>>>> I am however painfully aware that i cannot use static variables in
>>>> axis2.
>>>> They will be shared across all service instances, and persist after
>>>> the service call is done.
>>>> I believe this has to do with the axis2 classloader.
>>>>
>>>> I really need to use some globally accessible variable in my service
>>>> implementation though! How do i go about?
>>>>
>>>> My service implementation is a pojo BTW.
>>>>
>>>> Greetings from Holland, Joek
>>>>   
>>> Im registring the "global variable" as a property in the
>>> messagecontext.
>>> Access to this "global variable/messagecontect property" is via a
>>> getter and setter in a obeject that is a static itself.
>>> Because its a static its acessible from anywhere in the code.
>>> Testing reveils that the values do not get messed up.
>>>
>>> PS a am aware that using globals is not a nice thing.
>>>
>>> Example code:
>>>
>>> the wrapper class for the get/set access
>>> ---
>>> public class GlobalHolder{
>>>// staticly instantiate itself
>>>public static GlobalHolder globalholder = new GlobalHolder();
>>>
>>>public int getGlobalVar() {
>>>MessageContext messageContext =
>>> MessageContext.getCurrentMessageContext();
>>> return (Integer) messageContext.getProperty("globalvar");
>>>}
>>>
>>>public int setGlobalVar(int pValue) {
>>>MessageContext messageContext =
>>> MessageContext.getCurrentMessageContext();
>>> messageContext.setProperty("globalvar", pValue);
>>>}
>>>   }
>>>
>>>
>>> in the Main class
>>> -
>>> public class Mainclass {
>>>public Mainclass(){
>>> //constructor: make sure the property exists to avoid null
>>> pointers
>>> GlobalHolder.globalholder.setGlobalVar(0);
>>>}
>>>
>>>public int myMethod(){
>>>// go about getting and setting it everywhere in the code.
>>>GlobalHolder.globalholder.setGlobalVar(700);
>>>return GlobalHolder.globalholder.getGlobalVar();
>>>}
>>>
>>> }
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> 
>>
>>
>>   
>

-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Re: Please help, pojo "global variable"

2009-05-13 Thread J. Hondius

Thanks again Deepal!

Thats the exactly the point.
I *want* it to be for single execution/one invocation.
The problem is that static variables behave badly in axis!
They get shared between invocations and persist from one invocation to 
the next.


In my book thats weird behaviour, altough i think i understand why axis 
behaves that way:

Axis' classloader loads once, but every invocation gets a fresh instance.
The static var is part of a the class, not of the fresh instance however.

So statics can be used instead of ConfigurationContext params ;)
(not advisable?)

Please reply if you think i'm reasoning incorrectly, more code will rely 
on this solution.


Greetings, Joek


Deepal jayasinghe schreef:

Nope, that is not going to work. The reason is MessageContext has very
limited lifetime, and that is only for single execution. So if you want
to share something in one invocation then messageContext is fine, but if
you want to have the "static nature" then you need to store the value in
the ConfigurationContext.

Deepal
  

I think i found a way.
See below.
Please comment on it.


J. Hondius schreef:
    

Hi,

Please help.
I have a need for a variable that is globally accessible from my
service implementation.
The normal way to do this in java is using statics AFAIK.

I am however painfully aware that i cannot use static variables in
axis2.
They will be shared across all service instances, and persist after
the service call is done.
I believe this has to do with the axis2 classloader.

I really need to use some globally accessible variable in my service
implementation though! How do i go about?

My service implementation is a pojo BTW.

Greetings from Holland, Joek
  

Im registring the "global variable" as a property in the messagecontext.
Access to this "global variable/messagecontect property" is via a
getter and setter in a obeject that is a static itself.
Because its a static its acessible from anywhere in the code.
Testing reveils that the values do not get messed up.

PS a am aware that using globals is not a nice thing.

Example code:

the wrapper class for the get/set access
---
public class GlobalHolder{
   // staticly instantiate itself
   public static GlobalHolder globalholder = new GlobalHolder();

   public int getGlobalVar() {
   MessageContext messageContext =
MessageContext.getCurrentMessageContext();
return (Integer) messageContext.getProperty("globalvar");
   }

   public int setGlobalVar(int pValue) {
   MessageContext messageContext =
MessageContext.getCurrentMessageContext();
messageContext.setProperty("globalvar", pValue);
   }
  }


in the Main class
-
public class Mainclass {
   public Mainclass(){
//constructor: make sure the property exists to avoid null
pointers
GlobalHolder.globalholder.setGlobalVar(0);
   }

   public int myMethod(){
   // go about getting and setting it everywhere in the code.
   GlobalHolder.globalholder.setGlobalVar(700);
   return GlobalHolder.globalholder.getGlobalVar();
   }

}











  


Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal jayasinghe
Nope, that is not going to work. The reason is MessageContext has very
limited lifetime, and that is only for single execution. So if you want
to share something in one invocation then messageContext is fine, but if
you want to have the "static nature" then you need to store the value in
the ConfigurationContext.

Deepal
> I think i found a way.
> See below.
> Please comment on it.
>
>
> J. Hondius schreef:
>> Hi,
>>
>> Please help.
>> I have a need for a variable that is globally accessible from my
>> service implementation.
>> The normal way to do this in java is using statics AFAIK.
>>
>> I am however painfully aware that i cannot use static variables in
>> axis2.
>> They will be shared across all service instances, and persist after
>> the service call is done.
>> I believe this has to do with the axis2 classloader.
>>
>> I really need to use some globally accessible variable in my service
>> implementation though! How do i go about?
>>
>> My service implementation is a pojo BTW.
>>
>> Greetings from Holland, Joek
>
> Im registring the "global variable" as a property in the messagecontext.
> Access to this "global variable/messagecontect property" is via a
> getter and setter in a obeject that is a static itself.
> Because its a static its acessible from anywhere in the code.
> Testing reveils that the values do not get messed up.
>
> PS a am aware that using globals is not a nice thing.
>
> Example code:
>
> the wrapper class for the get/set access
> ---
> public class GlobalHolder{
>// staticly instantiate itself
>public static GlobalHolder globalholder = new GlobalHolder();
>
>public int getGlobalVar() {
>MessageContext messageContext =
> MessageContext.getCurrentMessageContext();
> return (Integer) messageContext.getProperty("globalvar");
>}
>
>public int setGlobalVar(int pValue) {
>MessageContext messageContext =
> MessageContext.getCurrentMessageContext();
> messageContext.setProperty("globalvar", pValue);
>}
>   }
>
>
> in the Main class
> -
> public class Mainclass {
>public Mainclass(){
> //constructor: make sure the property exists to avoid null
> pointers
> GlobalHolder.globalholder.setGlobalVar(0);
>}
>
>public int myMethod(){
>// go about getting and setting it everywhere in the code.
>GlobalHolder.globalholder.setGlobalVar(700);
>return GlobalHolder.globalholder.getGlobalVar();
>}
>
> }
>
>
>
>
>
>
>


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Re: Please help, pojo "global variable"

2009-05-13 Thread J. Hondius

I think i found a way.
See below.
Please comment on it.


J. Hondius schreef:

Hi,

Please help.
I have a need for a variable that is globally accessible from my 
service implementation.

The normal way to do this in java is using statics AFAIK.

I am however painfully aware that i cannot use static variables in axis2.
They will be shared across all service instances, and persist after 
the service call is done.

I believe this has to do with the axis2 classloader.

I really need to use some globally accessible variable in my service 
implementation though! How do i go about?


My service implementation is a pojo BTW.

Greetings from Holland, Joek


Im registring the "global variable" as a property in the messagecontext.
Access to this "global variable/messagecontect property" is via a getter 
and setter in a obeject that is a static itself.

Because its a static its acessible from anywhere in the code.
Testing reveils that the values do not get messed up.

PS a am aware that using globals is not a nice thing.

Example code:

the wrapper class for the get/set access
---
public class GlobalHolder{
   // staticly instantiate itself
   public static GlobalHolder globalholder = new GlobalHolder();

   public int getGlobalVar() {
   MessageContext messageContext = 
MessageContext.getCurrentMessageContext();

return (Integer) messageContext.getProperty("globalvar");
   }

   public int setGlobalVar(int pValue) {
   MessageContext messageContext = 
MessageContext.getCurrentMessageContext();

messageContext.setProperty("globalvar", pValue);
   }
  
}



in the Main class
-
public class Mainclass {
   public Mainclass(){
//constructor: make sure the property exists to avoid null pointers
GlobalHolder.globalholder.setGlobalVar(0);
   }

   public int myMethod(){
   // go about getting and setting it everywhere in the code.
   GlobalHolder.globalholder.setGlobalVar(700);
   return GlobalHolder.globalholder.getGlobalVar();
   }

}








Re: Please help, pojo "global variable"

2009-05-13 Thread Deepal jayasinghe
You can store the value in ConfigurationContext.

Deepal
> Hi,
>
> Please help.
> I have a need for a variable that is globally accessible from my
> service implementation.
> The normal way to do this in java is using statics AFAIK.
>
> I am however painfully aware that i cannot use static variables in axis2.
> They will be shared across all service instances, and persist after
> the service call is done.
> I believe this has to do with the axis2 classloader.
>
> I really need to use some globally accessible variable in my service
> implementation though! How do i go about?
>
> My service implementation is a pojo BTW.
>
> Greetings from Holland, Joek
>


-- 
Thank you!


http://blogs.deepal.org
http://deepal.org



Please help, pojo "global variable"

2009-05-13 Thread J. Hondius

Hi,

Please help.
I have a need for a variable that is globally accessible from my service 
implementation.

The normal way to do this in java is using statics AFAIK.

I am however painfully aware that i cannot use static variables in axis2.
They will be shared across all service instances, and persist after the 
service call is done.

I believe this has to do with the axis2 classloader.

I really need to use some globally accessible variable in my service 
implementation though! How do i go about?


My service implementation is a pojo BTW.

Greetings from Holland, Joek


Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-08 Thread Cesar de Almeida Correia

My tests with Firefox weren't very reliable. With acces log Valve in Tomcat
was possible find the problem. My test in Firefox was done in same session
that the web application that has the client, and already done login. My
service in web.xml was asking for authorization and the server, after
handshake, presented the login page in html. I withdrew the auth constraint
configuration for the web service and everything worked fine.

Thanks for the help!!

Best Regards,

Cesar.



   
   
   
   Re: Help Axis don't work under https - First Element must contain the
   local name, Envelope , but found html   
   
   
   Cesar de Almeida Correia
   para:   
   axis-user   
   07/05/2009 18:08
   
   
  Responda a axis-user 
   
   
   






Hi,

I had convert my cert to pkcs12 and imported in Firefox. Calling the web
service method via Firefox, using a web http call, all works fine. I had
enable the Tomcat acces log valve. He told me that all POSTS and GET to
call with Firefox. With my client only one POST is showed. I guess that my
client has some misconfiguration. Well, I builded my client under http
enviroment. Actually, should I have to build it under https?

Thanks in advance.
   
   
   


Oculta??o de detalhes inativa deRe: Help Axis don't work under https -
First Element must contain the local name, Envelope , buRe: Help Axis don't
work under https - First Element must contain the local name, Envelope ,
but found html

   
   
   
   
 Re: Help Axis don't work under https - First Element must contain
 the local name, Envelope , but found html 
   
   
   
 Andreas Veithen   
   
 para: 
   
  axis-use
  r
   
  07/05/2009 16:15
   
   
   
 Responda a axis-user  
   
   
   





The error message tells you that the root element of the returned
document is . In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
 wrote:
> Hello all,
>
> I have some services under apache axis. It work fine under http, but with
> https fail. Finished certs configuration in service and client, I am
getting
> the folowing error. Is missing some exta configuration to use https?
>
> Thanks in advance.
>
> INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBui

Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Cesar de Almeida Correia

Hi,

I had convert my cert to pkcs12 and imported in Firefox. Calling the web
service method via Firefox, using a web http call, all works fine. I had
enable the Tomcat acces log valve. He told me that all POSTS and GET to
call with Firefox. With my client only one POST is showed. I guess that my
client has some misconfiguration. Well, I builded my client under http
enviroment. Actually, should I have to build it under https?

Thanks in advance.








   
   
   
   Re: Help Axis don't work under https - First Element must contain the
   local name, Envelope , but found html   
   
   
   Andreas Veithen 
   para:   
   axis-user   
   07/05/2009 16:15
   
   
  Responda a axis-user 
   
   
   






The error message tells you that the root element of the returned
document is . In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
 wrote:
> Hello all,
>
> I have some services under apache axis. It work fine under http, but with
> https fail. Finished certs configuration in service and client, I am
getting
> the folowing error. Is missing some exta configuration to use https?
>
> Thanks in advance.
>
> INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
> org.apache.axiom.soap.SOAPProcessingException: First Element must contain
> the local name, Envelope , but found html
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode
(StAXSOAPModelBuilder.java:251)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement
(StAXSOAPModelBuilder.java:209)
> at
>
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement
(StAXSOAPModelBuilder.java:191)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next
(StAXOMBuilder.java:172)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope
(StAXSOAPModelBuilder.java:156)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.
(StAXSOAPModelBuilder.java:105)
> at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder
(BuilderUtil.java:677)
> at
> org.apache.axis2.transport.TransportUtils.createDocumentElement
(TransportUtils.java:182)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage
(TransportUtils.java:112)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage
(TransportUtils.java:88)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse
(OutInAxisOperation.java:353)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisOperation.java:416)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl
(OutInAxisOperation.java:228)
> at org.apache.axis2.client.OperationClient.execute
(OperationClient.java:163)
> at
> br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus
(PCollectaServiceStub.java:2010)
> at
>
br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus
(PCollectaWebServiceClient.java:266)
> at
> br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus
(PCollectaWSDAO.java:246)
> at
> br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval
(EtlProcessBO.java:640)
> at
> br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun
(EtlProcessBO.java:513)
> at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl
(EtlProcessBO.java:91)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess
(ImportProcessBO.java:866)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls
(ImportProcessBO.java:425)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled
(ImportProcessBO.java:210)
> at
> br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled
(PcollectaFacade.java:58)
> at
> br.ufmg.lcc.pcollecta.controller.ScheduleAgentController$ScheduleThread
$1.run(ScheduleAgentController.java:878)
>
<><><>

Re: Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Andreas Veithen
The error message tells you that the root element of the returned
document is . In general this means an error page. So you have
to investigate on the server side.

Andreas

On Thu, May 7, 2009 at 20:20, Cesar de Almeida Correia
 wrote:
> Hello all,
>
> I have some services under apache axis. It work fine under http, but with
> https fail. Finished certs configuration in service and client, I am getting
> the folowing error. Is missing some exta configuration to use https?
>
> Thanks in advance.
>
> INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
> org.apache.axiom.soap.SOAPProcessingException: First Element must contain
> the local name, Envelope , but found html
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(StAXSOAPModelBuilder.java:251)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(StAXSOAPModelBuilder.java:209)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement(StAXSOAPModelBuilder.java:191)
> at
> org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:172)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:156)
> at
> org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:105)
> at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:677)
> at
> org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:182)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:112)
> at
> org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:88)
> at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:353)
> at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:416)
> at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:228)
> at org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
> at
> br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus(PCollectaServiceStub.java:2010)
> at
> br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus(PCollectaWebServiceClient.java:266)
> at
> br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus(PCollectaWSDAO.java:246)
> at
> br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval(EtlProcessBO.java:640)
> at
> br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun(EtlProcessBO.java:513)
> at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl(EtlProcessBO.java:91)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess(ImportProcessBO.java:866)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls(ImportProcessBO.java:425)
> at
> br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled(ImportProcessBO.java:210)
> at
> br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled(PcollectaFacade.java:58)
> at
> br.ufmg.lcc.pcollecta.controller.ScheduleAgentController$ScheduleThread$1.run(ScheduleAgentController.java:878)
>


Help Axis don't work under https - First Element must contain the local name, Envelope , but found html

2009-05-07 Thread Cesar de Almeida Correia
Hello all,

I have some services under apache axis. It work fine under http, but with
https fail. Finished certs configuration in service and client, I am
getting the folowing error. Is missing some exta configuration to use
https?

Thanks in advance.

INFO org.apache.axis2.builder.BuilderUtil - OMException in getSOAPBuilder
org.apache.axiom.soap.SOAPProcessingException: First Element must contain
the local name, Envelope , but found html
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode(
StAXSOAPModelBuilder.java:251)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMElement(
StAXSOAPModelBuilder.java:209)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createNextOMElement
(StAXSOAPModelBuilder.java:191)
  at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
StAXOMBuilder.java:172)
  at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(
StAXSOAPModelBuilder.java:156)
  at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(
StAXSOAPModelBuilder.java:105)
  at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(
BuilderUtil.java:677.)
  at org.apache.axis2.transport.TransportUtils.createDocumentElement(
TransportUtils.java:182)
  at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:112)
  at org.apache.axis2.transport.TransportUtils.createSOAPMessage(
TransportUtils.java:88)
  at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(
OutInAxisOperation.java:353)
  at org.apache.axis2.description.OutInAxisOperationClient.send(
OutInAxisOperation.java:416)
  at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(
OutInAxisOperation.java:228)
  at org.apache.axis2.client.OperationClient.execute(
OperationClient.java:163)
  at
br.ufmg.lcc.pcollecta.ws.client.PCollectaServiceStub.getRequestItemStatus(
PCollectaServiceStub.java:2010)
  at
br.ufmg.lcc.pcollecta.ws.client.PCollectaWebServiceClient.getRequestItemStatus
(
PCollectaWebServiceClient.java:266)
  at
br.ufmg.lcc.pcollecta.model.data.PCollectaWSDAO.getRequestItemStatus(
PCollectaWSDAO.java:246)
  at
br.ufmg.lcc.pcollecta.model.EtlProcessBO.waitForHarvestItemApproval(
EtlProcessBO.java:640)
  at br.ufmg.lcc.pcollecta.model.EtlProcessBO.prepareToRun(
EtlProcessBO.java:513)
  at br.ufmg.lcc.pcollecta.model.EtlProcessBO.processEtl(
EtlProcessBO.java:91)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.doTransferProcess(
ImportProcessBO.java:866)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.runEtls(
ImportProcessBO.java:425)
  at br.ufmg.lcc.pcollecta.model.ImportProcessBO.runProcessScheduled(
ImportProcessBO.java:210)
  at br.ufmg.lcc.pcollecta.model.PcollectaFacade.runProcessScheduled(
PcollectaFacade.java:58)
  at br.ufmg.lcc.pcollecta.controller.ScheduleAgentController
$ScheduleThread$1.run(ScheduleAgentController.java:878)

Re: Need help in designing POJO webservice

2009-04-22 Thread Sagara Gunathunga
Hi Kris,
You can use Axis2's MTOM support for this , it it possible to have
either DataHandler or a byte array as a method arguments for binary
data, but DataHandler is much more optimized way to handle this. Try
to refer following tutorials [1] ,[2]


[1] - http://wso2.org/library/3860
[2] - http://wso2.org/library/264

Thanks,

On Wed, Apr 22, 2009 at 8:42 PM, Kris82  wrote:
>
> Hi,
>
> I have a web application which basically uploads a image and stores it in a
> database. Now i want to make it a webservice, I already created Spring POJO
> webservice which does other operations, Now i want to add a operation to
> upload a photo ( Client sends a photo (multi-part) as a request). Can you
> please suggest me the best approach to write an interface to accept the
> multipart request.
>
> Can I have this operation:- String upload(String name, FileInputStream fis){
> /* DOA's and stuff to store the photo in the DB *?
>
> }
>
> And i will have Axis with attachments to send the multipart request. Or is
> there any better approach to get this done easily.
>
> Please  provide your valuable suggestion.
>
> Thanks
> Kris
> --
> View this message in context: 
> http://www.nabble.com/Need-help-in-designing-POJO-webservice-tp23175517p23175517.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Need help in designing POJO webservice

2009-04-22 Thread Kris82

Hi,

I have a web application which basically uploads a image and stores it in a
database. Now i want to make it a webservice, I already created Spring POJO
webservice which does other operations, Now i want to add a operation to
upload a photo ( Client sends a photo (multi-part) as a request). Can you
please suggest me the best approach to write an interface to accept the
multipart request.

Can I have this operation:- String upload(String name, FileInputStream fis){ 
/* DOA's and stuff to store the photo in the DB *?

}

And i will have Axis with attachments to send the multipart request. Or is
there any better approach to get this done easily. 

Please  provide your valuable suggestion.

Thanks
Kris
-- 
View this message in context: 
http://www.nabble.com/Need-help-in-designing-POJO-webservice-tp23175517p23175517.html
Sent from the Axis - User mailing list archive at Nabble.com.



Help Webservice security | Axis2 client with .net Webservice

2009-04-21 Thread karaiyandi sethurajan

 
Hi All,
 
I need to access webservice hosted in .net server. The webservice was secured. 
I need access the webservice using Java Client. 
 
The following ceritificates is provided.

1. PartnerRe_Root_CA_TST.cer is our temporary Root Certificate Authority's 
public key we have to trust.
2.PartnerRe CWS Services Client v1.0.cer

I can able to create client stubs using Axis2. How can i use Rampart in this 
scenario to access the  webservice hosted in .net server.

Any help on this will  be much appreciated.

Thanks in Advance
Karai



  Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! 
Edition http://downloads.yahoo.com/in/firefox/


RE: Raw beginner needs help with Axis admin page

2009-04-15 Thread Martin Gainty

check for errors in %TOMCAT_HOME%/logs/localhost.-MM-DD.log

Martin 
__ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.






> From: ckn...@onebox.com
> To: axis-user@ws.apache.org
> Subject: Raw beginner needs help with Axis admin page
> Date: Wed, 15 Apr 2009 18:33:14 -0400
> 
> I've installed Axis on the Geronimo/Tomcat server. 
> The Axis2 Happiness Page appears at 
> "http://localhost:8090/axis2/axis2-web/HappyAxis.jsp";.
> 
>  I now want to log in to the admin page, however, when I try the URL 
> "http://localhost:8090/axis2/axis2-admin/login";, I get an "Internal server 
> error" message.
> 
> Can anyone point me in the right direction?
> 
> Thanks.
> 
> -- 
> Charles Knell
> ckn...@onebox.com - email
> 
> 

_
Rediscover Hotmail®: Get e-mail storage that grows with you. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Storage1_042009

Raw beginner needs help with Axis admin page

2009-04-15 Thread cknell
I've installed Axis on the Geronimo/Tomcat server. 
The Axis2 Happiness Page appears at 
"http://localhost:8090/axis2/axis2-web/HappyAxis.jsp";.

 I now want to log in to the admin page, however, when I try the URL 
"http://localhost:8090/axis2/axis2-admin/login";, I get an "Internal server 
error" message.

Can anyone point me in the right direction?

Thanks.

-- 
Charles Knell
ckn...@onebox.com - email




problem with MTOM and attachments please help

2009-04-07 Thread Cyril Furtado
(using Axis2 1.4  & Tomcat 5.0)
I have 3 methods in my service 2 with attachments, 1 no attachments
The method without attachments runs correctly, but the ones with attachments 
don't
For server returning attachments I have method javax.activation.DataHandler 
sendAttach(String filename)
In axis2.xml I have set MTOM enable to true;
I have client generated by WSDL2Java & also example from Axis2 MTOM guide, both 
return the same error.
What am I missing???
server log shows
2009-04-07 11:50:51, DEBUG builder.StAXOMBuilder   - END_ELEMENT: 
{http://general.service.webservices.skire.com}datahandler:datahandler
2009-04-07 11:50:51, DEBUG builder.StAXOMBuilder   - END_ELEMENT: 
{http://general.service.webservices.skire.com}getAttach:getAttach
2009-04-07 11:50:51, ERROR receivers.RPCMessageReceiver-
Exception occurred while trying to invoke service method getAttach
org.apache.axis2.AxisFault: javax.activation.DataHandler
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:30)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:410)
at 
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:722)
at 
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:670)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:602)
at 
org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:188)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InstantiationException: javax.activation.DataHandler
at java.lang.Class.newInstance0(Class.java:335)
at java.lang.Class.newInstance(Class.java:303)
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)


Webservice Java/mysql/Tomcat/Axis2 help

2009-04-04 Thread M1d0

I am developing a webservice in java using eclipse,Apache Tomcat, Axis2, and
mysql. And getting this error when invoking the service ( exception occured
while trying to invoke service method xxx.) Inverstigating it more it gave
me a null error and when creating a client it gives exception coz QName is
Null due to SQLException.

Appreciate the help
-- 
View this message in context: 
http://www.nabble.com/Webservice-Java-mysql-Tomcat-Axis2-help-tp22880776p22880776.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Need help- with Axis2 1.1

2009-04-02 Thread Sagara Gunathunga
Hi Pricilla,
Axis2 installation guide[1] describe how to  install on a web server
like JBoss , then refer Axis2 Quick Start Guide[2]  to create your
first service.

Also if it is possible move to latest Axis2 version like 1.4.1.

[1] - http://ws.apache.org/axis2/1_4_1/installationguide.html#servlet_container
[2] - http://ws.apache.org/axis2/1_4_1/quickstartguide.html

Thanks ,


On Thu, Apr 2, 2009 at 3:01 PM, pricilla p  wrote:
>
>
> Hi,
>
> I have downloaded axis2-1.1.1 to my system
> I also have jboss-3.0.4_tomcat-4.0.6 installed.
>
> Could you please give me the series of steps to be followed to create a web
> service using axis2-1.1.1.
>
> Thanks in advance.
>
> Regards,
> Pricilla
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://sagaras.awardspace.com/


Need help- with Axis2 1.1

2009-04-02 Thread pricilla p
Hi,

I have downloaded axis2-1.1.1 to my system
I also have jboss-3.0.4_tomcat-4.0.6 installed.

Could you please give me the series of steps to be followed to create a web
service using axis2-1.1.1.

Thanks in advance.

Regards,
Pricilla


Needs help with ServiceLifeCycle

2009-04-01 Thread Alain Drolet

Hi Everyone

I work in a team that is creating a new web service using jax-ws.
Our SOAP interface is defined using a wsdl file.
We generate code from our wsdl using wsimport under maven.

Initial attempt failed at using the aar archive format, so we got 
success packaging our web service as a jar file.

This file is deployed in the WEB-INF/servicejars directory of axis2.
Axis2 1.4.1, runs inside tomcat 5.5. We are using Java 1.5.
These versions are dictated by the deployment environment.

The deployment under servicejars does not require a services.xml.

I did some searching and found out I could get initialization code 
called by specifying

a class that implement ServiceLifeCycle in the services.xml file.
(The LifeCycle interface does not seem adequate for our need)
Something like:
...

Initial testing seems to indicate that the services.xml is ignored if 
the service is deployed in servicejars directory.

The entry class for our service is properly annotated with @WebService...

Question1:
Is there a way to get x.y.MyInitializer called at deployment time, for a 
web service deployed in servicejars?


- - - - - -
Alternatively I'm currently trying to use the aar format and deploy 
under WEB-INF/services


I found a few things.
- The wsdl file that we specify in our service class implementation using:
@WebService(...wsdlLocation = "META-INF/wsdl/myWSDL.wsdl"
is ignored. I suspect that the wsdlLocation attribute is not used when 
deployed as a aar file.


- I renamed my wsdl file service.wsdl and moved it to META-INF/service.wsdl
Now axis2 is reading it.
I was surprised to see that the wsdl name was hard-coded, but a page 
found on the web indicated this constraint.


- My next fight is defining the messageReceivers in the services.xml
I'm only starting to explore this area, I need to do more homework.
What I know although is that when I made a small web service prototype 
and used axis2 wsdl2java,
I ended up with files like xxxServiceMessageReceiverInOut that could be 
used as messageReceivers.

wsimport does not generate these files.

Question 2:
Is there some predefined messageReceivers that I should use when 
deploying a jaxws-based web service?


Thank you for your help

Alain

-
Alain Drolet
email: adro...@nortel.com




RE: Services are not seen is there something Im doing wrong? please help

2009-04-01 Thread Martin Gainty

the service.xml packaged inside your aar is not valid
unzip your .aar 
locate service.xml contained within .aar
and validate service.xml with a XML Validator..e.g.
http://www.stg.brown.edu/service/xmlvalid

Martin 
__ 
Disclaimer and confidentiality note 
This message is confidential and may be privileged. If you are not the intended 
recipient, we kindly ask you to  please inform the sender. Any unauthorised 
dissemination or copying hereof is prohibited. This message serves for 
information purposes only and shall not have any legally binding effect. Given 
that e-mails can easily be subject to manipulation, we can not accept any 
liability for the content provided.






From: cyr...@skire.com
To: axis-user@ws.apache.org
Date: Wed, 1 Apr 2009 13:17:50 -0700
Subject: Services are not seen is there something Im doing wrong? please help
















I look at /HappyAxis.jsp

It says all core jars are found and located

 

I have deployed StockQuoteService service as given in the
examples

When I open  http://localhost:8081/axis2-web/listService.jsp

It says “There seems to be no services listed! Try
hitting refresh”

Also I keep getting 

2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG
http.ApplicationXMLFormatter- end writeTo() 

2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG
transport.TransportUtils- Did not
find RequestResponseTransport cannot set response written 

 

I look at the log4j and see the following log

 

2009-04-01 13:04:25,131 [main] INFO 
deployment.ServiceDeployer  - Deploying Web
service: StockQuoteService.aar -
file:/D:/unifier/apps/ROOT/WEB-INF/services/StockQuoteService.aar 

2009-04-01 13:04:25,131 [main] DEBUG util.Utils  -
Created temporary file :
D:\unifier\work\Catalina\localhost\_\_axis2\axis24180version.aar 

2009-04-01 13:04:25,146 [main] DEBUG
util.StAXUtils 
- XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader 

2009-04-01 13:04:25,146 [main] DEBUG
builder.StAXOMBuilder  
- SPACE: [

] 

2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder  
- START_ELEMENT: service:service 

2009-04-01 13:04:25,099 [main] DEBUG
description.AxisService - Get
operation for getPrice 

2009-04-01 13:04:25,099 [main] DEBUG
description.AxisService -
Target namespace: http://quickstart.samples/ 

2009-04-01 13:04:25,099 [main] DEBUG description.AxisService
- Operations aliases map: {} 

2009-04-01 13:04:25,099 [main] DEBUG
description.AxisService -
Imported namespaces: null 

2009-04-01 13:04:25,099 [main] DEBUG
description.AxisService - Found
axis operation:  null 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action: getPriceRequest;
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed:
getPrice 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action: getPriceResponse;
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed:
getPrice 

2009-04-01 13:04:25,115 [main] DEBUG description.AxisService
- mapActionToOperation: Mapping Action to Operation: action: getPrice;
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed:
getPrice 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action: urn:getPrice;
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed:
getPrice 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService - Get
operation for update 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
Target namespace: http://quickstart.samples/ 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
Operations aliases map: 
{urn:getprice=org.apache.axis2.description.inoutaxisoperat...@82674b,
getpriceresponse=org.apache.axis2.description.inoutaxisoperat...@82674b,
getprice=org.apache.axis2.description.inoutaxisoperat...@82674b,
getpricerequest=org.apache.axis2.description.inoutaxisoperat...@82674b} 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
Imported namespaces: null 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService - Found
axis operation:  null 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action: updateRequest;
operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named:
update 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action: update; operation:
org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update 

2009-04-01 13:04:25,115 [main] DEBUG
description.AxisService -
mapActionToOperation: Mapping Action to Operation: action

Services are not seen is there something Im doing wrong? please help

2009-04-01 Thread Cyril Furtado
I look at /HappyAxis.jsp
It says all core jars are found and located

I have deployed StockQuoteService service as given in the examples
When I open  http://localhost:8081/axis2-web/listService.jsp
It says "There seems to be no services listed! Try hitting refresh"
Also I keep getting
2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG 
http.ApplicationXMLFormatter- end writeTo()
2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG transport.TransportUtils  
  - Did not find RequestResponseTransport cannot set response written

I look at the log4j and see the following log

2009-04-01 13:04:25,131 [main] INFO  deployment.ServiceDeployer  - 
Deploying Web service: StockQuoteService.aar - 
file:/D:/unifier/apps/ROOT/WEB-INF/services/StockQuoteService.aar
2009-04-01 13:04:25,131 [main] DEBUG util.Utils  - Created 
temporary file : 
D:\unifier\work\Catalina\localhost\_\_axis2\axis24180version.aar
2009-04-01 13:04:25,146 [main] DEBUG util.StAXUtils  - 
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder   - SPACE: [
]
2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder   - 
START_ELEMENT: service:service
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Get 
operation for getPrice
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Target 
namespace: http://quickstart.samples/
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - 
Operations aliases map: {}
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Imported 
namespaces: null
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Found 
axis operation:  null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceRequest; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceResponse; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPrice; operation: 
org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: urn:getPrice; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Get 
operation for update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Target 
namespace: http://quickstart.samples/
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
Operations aliases map: 
{urn:getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getpriceresponse=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getpricerequest=org.apache.axis2.description.inoutaxisoperat...@82674b}
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Imported 
namespaces: null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Found 
axis operation:  null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: updateRequest; 
operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: update; operation: 
org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: urn:update; 
operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - Get 
operation for getPrice
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - Found 
axis operation:  org.apache.axis2.description.inoutaxisoperat...@82674b
2009-04-01 13:04:25,131 [main] DEBUG engine.Phase- Handler 
MustUnderstandChecker added to Phase OperationInPhase
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceRequest; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - 
mapActionToOperation: This operation is already mapped to this action: 
getPriceRequest; AxisOperation: 
org.apache.axis2.description.inoutaxisoperat...@82674b named: g

Re: Help with wsdl2java

2009-03-31 Thread Frank Vyncke
On 31/03/2009 09:48, "Andreas Veithen"  wrote:

> Frank,
> 
> MTOM is a _transparent_ way of optimizing messages. Why does the WSDL
> explicitly reference xop:Include?

That is a very good question... And not one I can answer immediatly.

I am 'new' to MTOM, that is, I learned it about 2 months ago, and I learned
it through gSOAP. At the level of gSOAP (in C++), it is not transparent... I
think I see at that level the 'processed' message with it's attachments.

What you are saying is that the WSDL should in fact contain a binary blob
there, with mime type attribute, instead of the xop:Include object.

Makes sense, but then I have to investigate how I can make such a setup with
gSAOP (where I start from C++ classes...)

Thanks for the input

Frank
> 
> Andreas
> 
> On Mon, Mar 30, 2009 at 18:18, Frank Vyncke  wrote:
>> I,
>> 
>> Am starting to develop a 'client' for a gSOAP based server, using MTOM
>> attachments.
>> 
>> I have a wsdl file, but when I try to compile the wsdl file, I get an
>> exception with the following message:
>> 
>> Caused by: org.apache.axis2.schema.SchemaCompilationException: can not find
>> the element {http://www.w3.org/2004/08/xop/include}Include from the parent
>> schema http://www.genivia.com/schemas/mtom_stream_test.xsd
>> 
>> Can anyone tell me where this error comes from, because the wsdl file does
>> import the http://www.w3.org/2004/08/xop/include schema correctly (I think,
>> there is no way I can check if it really imported the schema or not).
>> 
>> Thanks
>> Frank
>> 
>> 



  1   2   3   4   5   6   7   8   9   10   >