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
>> 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
>>
>>
>>
>
>



  

__
Do You Yahoo!?
Tired of spam? 

Re: imcompatible issue between axis2 and weblogic 10

2009-08-24 Thread Chinmoy Chakraborty
Open 'startWebLogic.cmd' in edit mode and replace line 95 to 97 with the
following text:

set
SAVE_JAVA_OPTIONS=-Djavax.xml.soap.MessageFactory=weblogic.xml.saaj.MessageFactoryImpl
set JAVA_OPTIONS=%SAVE_JAVA_OPTIONS%

and see if this wsorks.

Chinmoy




On Tue, Aug 25, 2009 at 3:02 AM, Hu, Mary - ITG wrote:

> After removed this jar, weblogic can't parse TLD anymore:
>
> Error while parsing the Tag Library Descriptor at "c: ...
> \war\WEB-INF\lib\struts-1.2.9-lib.jar!/META-INF/tlds/struts-tiles.tld".
> com.ctc.wstx.exc.WstxIOException: java.sun.com
>at
> com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
>at
> com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
>at
> weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHe
> lper.java:134)
>
> Mary Hu
> Int: 8.226.2620
> Ext: 973.793.2620
>
> -Original Message-
> From: Andreas Veithen [mailto:andreas.veit...@gmail.com]
> Sent: Monday, August 24, 2009 4:54 PM
> To: axis-user@ws.apache.org
> Subject: Re: imcompatible issue between axis2 and weblogic 10
>
> Try removing geronimo-stax-api_1.0_spec-1.0.1.jar from WEB-INF/lib.
>
> Andreas
>
> On Mon, Aug 24, 2009 at 22:28, Hu, Mary - ITG
> wrote:
> >
> > In axis2 - Application Server Specific Configuration Guide, it
> mentions
> > how to deploy axis2 into weblogic. However, I have seen an issue that
> is
> > blocking me. I wonder anyone has a solution for it:
> >
> > 1. I have a WAR containing axis2 jars.
> >
> > 2. My application requires prefer-web-inf-classes to be set as "true"
> in
> > weblogic.xml.
> >
> > 3. I got below exception:
> >
> > java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
> cannot
> > be cast
> > to javax.xml.stream.XMLInputFactory
> > at
> javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137
> > )
> > at
> weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCach
> > eHelper.java:124)
> >
> >
> > I know it is because weblogic can't use Woodstock stream parser. But
> how
> > to instruct weblogic to use Woodstock beside wrap the app into an EAR
> > (It doesn't apply me case)?
> >
> > Appreciate any help.
> >
> >
> > Mary Hu
> >
> > This email is confidential and subject to important disclaimers and
> > conditions including on offers for the purchase or sale of
> > securities, accuracy and completeness of information, viruses,
> > confidentiality, legal privilege, and legal entity disclaimers,
> > available at http://www.jpmorgan.com/pages/disclosures/email.
> >
>
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
>


FW: [axis-2] attachment with additional string in param

2009-08-24 Thread Rajneesh Kumar
Hi All,

 

Since I didn't get any response on this so I am forwarding it again.

 

Please give some advice/solutions

 --Rajneesh

 

Hi All,

 

I am using file MTOM file uploading methodology of axis-2 in my application
and it works fine. But now my requirement is a bit change. Problem is
current attachment method accepts only one parameter and I have to send one
string also along with this parameter means there would be two parameters.

 

Current Version of MTOM Implementation

 

public org.apache.ws.axis2.mtomsample.AttachmentResponse
attachment(

 
org.apache.ws.axis2.mtomsample.AttachmentRequest param0)

throws Exception

 

{

// business logic goes here

}

 

 

Required

 

 

public org.apache.ws.axis2.mtomsample.AttachmentResponse
attachment(

 
org.apache.ws.axis2.mtomsample.AttachmentRequest param0, String str)

throws Exception

 

{

// business logic goes here

}

 

 

Kindly help.

 

-rajneesh



===
Private, Confidential and Privileged. This e-mail and any files and
attachments transmitted with it are confidential and/or privileged. They are
intended solely for the use of the intended recipient. The content of this
e-mail and any file or attachment transmitted with it may have been changed
or altered without the consent of the author. If you are not the intended
recipient, please note that any review, dissemination, disclosure,
alteration, printing, circulation or Transmission of this e-mail and/or any
file or attachment transmitted with it, is prohibited and may be unlawful.
If you have received this e-mail or any file or attachment transmitted with
it in error please notify OTS Solutions at i...@otssolutions.com

===


===
Private, Confidential and Privileged. This e-mail and any files and
attachments transmitted with it are confidential and/or privileged. They are
intended solely for the use of the intended recipient. The content of this
e-mail and any file or attachment transmitted with it may have been changed
or altered without the consent of the author. If you are not the intended
recipient, please note that any review, dissemination, disclosure,
alteration, printing, circulation or Transmission of this e-mail and/or any
file or attachment transmitted with it, is prohibited and may be unlawful.
If you have received this e-mail or any file or attachment transmitted with
it in error please notify OTS Solutions at i...@otssolutions.com

===



===
Private, Confidential and Privileged. This e-mail and any files and attachments 
transmitted with it are confidential and/or privileged. They are intended 
solely for the use of the intended recipient. The content of this e-mail and 
any file or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended recipient, 
please note that any review, dissemination, disclosure, alteration, printing, 
circulation or Transmission of this e-mail and/or any file or attachment 
transmitted with it, is prohibited and may be unlawful. If you have received 
this e-mail or any file or attachment transmitted with it in error please 
notify OTS Solutions at i...@otssolutions.com
===


RE: Problem with ns qualified attribute of a client message

2009-08-24 Thread Martin Gainty

if your could convince the service provider to provide the wsdl and xsd schema 
we could get a working example for you

Bon Chance
Martin Gainty 
__ 
Note de déni et de confidentialité
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.




> Subject: RE: Problem with ns qualified attribute  of a client message
> From: err...@free.fr
> To: axis-user@ws.apache.org
> Date: Tue, 25 Aug 2009 00:09:33 +0200
> 
> Le lundi 24 août 2009 à 18:03 -0400, Martin Gainty a écrit :
> > http://www.fosstrak.org/epcis/docs/user-guide.html
> 
> Thank you very much for the link Martin, I already knew that project,
> but I wanted to use axis2 for generate my own client (to learn how
> generate ws clients). My problem is a limitation of Axis2 ?
> 
> Of course if there's no way of tunning Axis2 to match my needs, I will
> use fosstrack.
> 
> Thanks again,
> 
> -- 
> MBdC
> 

_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery

RE: Problem with ns qualified attribute of a client message

2009-08-24 Thread error3
Le lundi 24 août 2009 à 18:03 -0400, Martin Gainty a écrit :
> http://www.fosstrak.org/epcis/docs/user-guide.html

Thank you very much for the link Martin, I already knew that project,
but I wanted to use axis2 for generate my own client (to learn how
generate ws clients). My problem is a limitation of Axis2 ?

Of course if there's no way of tunning Axis2 to match my needs, I will
use fosstrack.

Thanks again,

-- 
MBdC



RE: Problem with ns qualified attribute of a client message

2009-08-24 Thread Martin Gainty

http://www.fosstrak.org/epcis/docs/user-guide.html

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.




> Subject: Problem with ns qualified attribute  of a client message
> From: err...@free.fr
> To: axis-user@ws.apache.org
> Date: Mon, 24 Aug 2009 23:36:00 +0200
> 
> Hello,
> 
> I do have a problem with a axis2 generated webservice client.
> The webservice  I use is the standard one specified by EPCglobal (file a
> use to generate the client are on
> http://www.epcglobalinc.org/standards/epcis)
> 
> My problem is that the current code :
> 
>   QueryParams params = new QueryParams();
>   QueryParam p1 = new QueryParam();
>   p1.setName("eventType");
>   p1.setValue("ObjectEvent");
>   params.addParam(p1);
>   
>   Poll polData = new Poll();
>   polData.setQueryName("SimpleEventQuery");
>   polData.setParams(params);
>   
>   PollE poll = new PollE();
>   poll.setPoll(polData);
>   
>   
>   EPCglobalEPCISServiceStub myStub = new 
> EPCglobalEPCISServiceStub("http://localhost:8080/Test";);
>   
>   myStub.poll(poll);
> 
> Generate a SOAP message like this :
> 
> 
>xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";>
>   
>   
>   SimpleEventQuery
>   eventType
>xmlns:s1="http://www.w3.org/2001/XMLSchema-instance"; 
> xmlns:s2="http://www.w3.org/2001/XMLSchema"; 
> s1:type="s2:string">ObjectEvent
>   
>   
> 
> 
> My problem is the server. I don't have access to the code on it
> (proprietary solution :-/). And it does not work as it does not want
> fully qualified type attribute like the ones in  tag. It's
> waiting for 
> ObjectEvent
> instead of :
> http://www.w3.org/2001/XMLSchema-instance";
> xmlns:s2="http://www.w3.org/2001/XMLSchema";
> s1:type="s2:string">ObjectEvent
> 
> any tips to get rid of this attributes ?
> 
> Thank you very much for any help
> 
> Cheers,
> 
> -- 
> MBdC
> 

_
With Windows Live, you can organize, edit, and share your photos.
http://www.windowslive.com/Desktop/PhotoGallery

Problem with ns qualified attribute of a client message

2009-08-24 Thread error3
Hello,

I do have a problem with a axis2 generated webservice client.
The webservice  I use is the standard one specified by EPCglobal (file a
use to generate the client are on
http://www.epcglobalinc.org/standards/epcis)

My problem is that the current code :

QueryParams params = new QueryParams();
QueryParam p1 = new QueryParam();
p1.setName("eventType");
p1.setValue("ObjectEvent");
params.addParam(p1);

Poll polData = new Poll();
polData.setQueryName("SimpleEventQuery");
polData.setParams(params);

PollE poll = new PollE();
poll.setPoll(polData);


EPCglobalEPCISServiceStub myStub = new 
EPCglobalEPCISServiceStub("http://localhost:8080/Test";);

myStub.poll(poll);

Generate a SOAP message like this :


http://schemas.xmlsoap.org/soap/envelope/";>


SimpleEventQuery
eventType
http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:s2="http://www.w3.org/2001/XMLSchema"; 
s1:type="s2:string">ObjectEvent




My problem is the server. I don't have access to the code on it
(proprietary solution :-/). And it does not work as it does not want
fully qualified type attribute like the ones in  tag. It's
waiting for 
ObjectEvent
instead of :
http://www.w3.org/2001/XMLSchema-instance";
xmlns:s2="http://www.w3.org/2001/XMLSchema";
s1:type="s2:string">ObjectEvent

any tips to get rid of this attributes ?

Thank you very much for any help

Cheers,

-- 
MBdC



RE: imcompatible issue between axis2 and weblogic 10

2009-08-24 Thread Hu, Mary - ITG
After removed this jar, weblogic can't parse TLD anymore:

Error while parsing the Tag Library Descriptor at "c: ...
\war\WEB-INF\lib\struts-1.2.9-lib.jar!/META-INF/tlds/struts-tiles.tld".
com.ctc.wstx.exc.WstxIOException: java.sun.com
at
com.ctc.wstx.sr.StreamScanner.throwFromIOE(StreamScanner.java:683)
at
com.ctc.wstx.sr.BasicStreamReader.next(BasicStreamReader.java:1086)
at
weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCacheHe
lper.java:134)

Mary Hu
Int: 8.226.2620
Ext: 973.793.2620

-Original Message-
From: Andreas Veithen [mailto:andreas.veit...@gmail.com] 
Sent: Monday, August 24, 2009 4:54 PM
To: axis-user@ws.apache.org
Subject: Re: imcompatible issue between axis2 and weblogic 10

Try removing geronimo-stax-api_1.0_spec-1.0.1.jar from WEB-INF/lib.

Andreas

On Mon, Aug 24, 2009 at 22:28, Hu, Mary - ITG
wrote:
>
> In axis2 - Application Server Specific Configuration Guide, it
mentions
> how to deploy axis2 into weblogic. However, I have seen an issue that
is
> blocking me. I wonder anyone has a solution for it:
>
> 1. I have a WAR containing axis2 jars.
>
> 2. My application requires prefer-web-inf-classes to be set as "true"
in
> weblogic.xml.
>
> 3. I got below exception:
>
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
cannot
> be cast
> to javax.xml.stream.XMLInputFactory
> at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137
> )
> at
weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCach
> eHelper.java:124)
>
>
> I know it is because weblogic can't use Woodstock stream parser. But
how
> to instruct weblogic to use Woodstock beside wrap the app into an EAR
> (It doesn't apply me case)?
>
> Appreciate any help.
>
>
> Mary Hu
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
>


This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.


Re: imcompatible issue between axis2 and weblogic 10

2009-08-24 Thread Andreas Veithen
Try removing geronimo-stax-api_1.0_spec-1.0.1.jar from WEB-INF/lib.

Andreas

On Mon, Aug 24, 2009 at 22:28, Hu, Mary - ITG wrote:
>
> In axis2 - Application Server Specific Configuration Guide, it mentions
> how to deploy axis2 into weblogic. However, I have seen an issue that is
> blocking me. I wonder anyone has a solution for it:
>
> 1. I have a WAR containing axis2 jars.
>
> 2. My application requires prefer-web-inf-classes to be set as "true" in
> weblogic.xml.
>
> 3. I got below exception:
>
> java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot
> be cast
> to javax.xml.stream.XMLInputFactory
> at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137
> )
> at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCach
> eHelper.java:124)
>
>
> I know it is because weblogic can't use Woodstock stream parser. But how
> to instruct weblogic to use Woodstock beside wrap the app into an EAR
> (It doesn't apply me case)?
>
> Appreciate any help.
>
>
> Mary Hu
>
> This email is confidential and subject to important disclaimers and
> conditions including on offers for the purchase or sale of
> securities, accuracy and completeness of information, viruses,
> confidentiality, legal privilege, and legal entity disclaimers,
> available at http://www.jpmorgan.com/pages/disclosures/email.
>


Issue with client classes generated from wsdl using axis1.3

2009-08-24 Thread BaluKrishnan

Hi
I am using axis1.3 to generate the client classes based on a wsdl that is
built on microsoft framework. The wsdl has a class 'data' which contains
another object 'arrayofdataitems'. The object "arrayofdataitems" holds an
array of object "dataitems".

When I generate the client classes, the axis framework is normalizing it and
creating data class with "dataitems" array, skipping the intermediate
arrayofdataitems.

This is deserialization exception when the message is sent to the server.

Could you please help me resolve this?
-- 
View this message in context: 
http://www.nabble.com/Issue-with-client-classes-generated-from-wsdl-using-axis1.3-tp25123293p25123293.html
Sent from the Axis - User mailing list archive at Nabble.com.



imcompatible issue between axis2 and weblogic 10

2009-08-24 Thread Hu, Mary - ITG

In axis2 - Application Server Specific Configuration Guide, it mentions
how to deploy axis2 into weblogic. However, I have seen an issue that is
blocking me. I wonder anyone has a solution for it:

1. I have a WAR containing axis2 jars. 

2. My application requires prefer-web-inf-classes to be set as "true" in
weblogic.xml. 

3. I got below exception: 

java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory cannot
be cast
to javax.xml.stream.XMLInputFactory
at javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:137
)
at weblogic.servlet.internal.TldCacheHelper$TldIOHelper.parseXML(TldCach
eHelper.java:124)


I know it is because weblogic can't use Woodstock stream parser. But how
to instruct weblogic to use Woodstock beside wrap the app into an EAR
(It doesn't apply me case)?

Appreciate any help.


Mary Hu

This email is confidential and subject to important disclaimers and
conditions including on offers for the purchase or sale of
securities, accuracy and completeness of information, viruses,
confidentiality, legal privilege, and legal entity disclaimers,
available at http://www.jpmorgan.com/pages/disclosures/email.


Re: Combining mtom and gzip compressed soap response

2009-08-24 Thread Andreas Veithen
Håkon,

Could you please be a bit more precise about the problem you are encountering?

Andreas

2009/8/21 Håkon Sagehaug :
> Hi all,
>
> I wanted to know if it's possible to have both gzip compressed soap response
> that "contains" mtom, I got gzip response working on a non-mtom service, but
> not when mtom was enabled.
>
> cheers, Håkon
>
> --
> Håkon Sagehaug, Scientific Programmer
> Parallab, Bergen Center for Computational Science (BCCS)
> UNIFOB AS (University of Bergen Research Company)
>


Re: How to run AXIS2 fine on Tomcat behind an Apache server.

2009-08-24 Thread Andreas Veithen
See AXIS2-3843.

Andreas

On Mon, Aug 24, 2009 at 12:17, frougeot wrote:
>
> Hi, did you find a convenient solution ? We are experiencing the same case,
> and hack the wsdl file generated by axis for now, but it does not suit us
> very well ...
>
>
>
>
>
> pino lollo wrote:
>>
>>
>>
>>
>>
>> How to run AXIS2 fine on Tomcat behind an Apache server.
>>
>> I have problem with internet 80 or intranet 8080 wsdl invocation.
>>
>> Is there anyone who can show me how to do or can tell me where I am wrong?
>>
>>
>>
>>
>> Thanks in advance.
>>
>> Marco
>>
>>
>>
>>
>> 1 Adsl internet connection,
>>
>> 1 public ip address: 83.211.93.144,
>>
>> 1 router modem,
>>
>> 1 lan,
>>
>> 1 pc server (internal ip address 192.168.1.10)
>>
>>
>>
>>
>> On the pc server there are:
>>
>> 1 Apache http server 2.2, 1 Tomcat 6,0.
>>
>> Tomcat responds port 8080, Apache http server responds to internet at port
>> 80.
>>
>> I have same http applications on Apache http server that work and you can
>> see on internet at the address: www.acgcomplementi.com
>>
>> I have also same web applicationes on Tomcat that respond in the lan to
>> port 8080 and are redirected by Apache Http server on Internet:
>> www.p2p2mpa.com and respond there on port 80.
>>
>> To do this I configured a virtual server on the modem router so the
>> requests that arrive from internet at the address 83.211.93.144 and port
>> 80 are redirected to the pc server 192.168.1.10:80, and this works.
>>
>>
>>
>>
>> There, on the pc server, the requests on the port 80 are managed by the
>> Apache Http server. I worked on the file httpd.conf, and I activated the
>> proxy module with these comands:
>>
>> LoadModule proxy_module modules/mod_proxy.so
>>
>> LoadModule proxy_http_module modules/mod_proxy_http.so
>>
>> LoadModule proxy_connect_module modules/mod_proxy_connect.so
>>
>>
>>
>>
>> and I added also these directives:
>>
>>
>>
>>
>> ProxyPass /p2p2mpa/ http://localhost:8080/p2p2mpa/
>>
>> ProxyPass /sito/ http://localhost:8080/sito/
>>
>> ProxyPass /ws_p2p2mpa/ http://localhost:8080/ws_p2p2mpa/
>>
>>
>>
>>
>>
>> (/sito/ is for www.acgcomplementi.com).
>>
>> /p2p2mpa/ is for www.p2p2mpa.com
>>
>> /ws_p2p2mpa/ if for the axis2 webservice that doesn't work.
>>
>>
>>
>>
>> Till now it is all fine.
>>
>> Here began the problems.
>>
>>
>>
>>
>> I developed, using eclipse, a web application that exposes some
>> webservices. I used axis2.
>>
>> I placed the war file (ws_p2p2mpa.war) in the webapps Tomcat directory.
>>
>>
>>
>>
>> If I invoke the the wsdl file in the lan all works fine:
>>
>>
>>
>>
>> at the address http://192.168.1.10:8080/ws_p2p2mpa/
>>
>> the axis2 welcom page responds correctly.
>>
>>
>>
>>
>> At the address
>>
>> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws?wsdl
>>
>>
>>
>>
>> Axis2/Tomcat answers with the right wsdl file: it has the right endpoint:
>>
>>
>>
>>
>>
>>
>>
>> - 
>>
>>   > location="http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/";
>> />
>>
>>   
>>
>>
>>
>>
>>
>>
>>
>> Instead if I invoke the wsdl file from internet I have some problems:
>>
>> If I use this address:
>>
>>
>>
>>
>> http://83.211.93.144/ws_p2p2mpa/
>>
>> Axis2 responds, I see the Axis2 welcome page but I cannot see correctly
>> the Axis2 wing images;
>>
>>
>>
>>
>> if I navigate and I select a link, for example: “Services” it shows and
>> uses this wrong address:
>>
>> http://192.168.1.10:8080/ws_p2p2mpa/services/listServices as it was
>> invoked from the lan and not internet, I aspected:
>>
>>
>>
>> http://83.211.93.144/ws_p2p2mpa/services/listServices
>>
>>
>>
>>
>>
>>
>>
>> If I invoke the wsdl and I use this address
>>
>> http://83.211.93.144/ws_p2p2mpa/services/Ws?wsdl
>>
>> I see the wsdl file but it has as endpoint address the same it has if it
>> is invoked from the lan:
>>
>>
>>
>>
>> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/
>>
>>
>>
>>
>> I aspected
>> http://83.211.93.144/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> Therefore I looked around to find a solution, and I found to manage the
>> axis2.xml configuration file.
>>
>> I changed the file
>>
>> \Apache Software Foundation\Tomcat
>> 6.0\webapps\ws_p2p2mpa\WEB-INF\conf\axis2.xml
>>
>>
>>
>>
>> in this way:
>>
>>
>>
>>
>> first, in the transportReceiver section I added this parameter proxyPort =
>> 80:
>>
>> that is a look of the transposrtReceiver section:
>>
>>
>>
>>
>> 
>>
>> - > class="org.apache.axis2.transport.http.SimpleHTTPServer">
>>
>>   8080
>>
>>   80
>> 
>> but nothing changed.
>>
>>
>>
>>
>> Two, I added this instruction:
>>
>>
>>
>> > name="httpFrontendHostUrl">http://83.211.93.144/ws_p2p2mpa
>> (http without s).
>>
>>
>>
>>
>> Then I tested it but it doesn't work again:
>>
>>
>>
>>
>> the end point address in the wsdl file doesn't changed, it is always the
>> same, if I invoke from internet or lan the end point address it is always
>>
>> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/
>>

RE: How to call a web service from another one???

2009-08-24 Thread Caristi, Joe
You can use the Axis2 Code Generator Tool to create client stubs from your 
WSDL.  Here is a link to a tutorial: 
http://today.java.net/pub/a/today/2006/06/22/axis-2-generated-client-code.html



-Original Message-
From: Asma Maalej [mailto:amaa...@laas.fr]
Sent: Monday, August 24, 2009 12:13 PM
To: axis-user@ws.apache.org
Subject: How to call a web service from another one???

Hello

I am using Axis2.1.4.1 and eclipse ganymede 3.4 and I am trying to
create a web service which is a consumer to another webservice, but I
don't know how could I call another web service from the consumer one.
I knew that with Axis1, this call between web services will be made
across a method from the generated stubs of the webservice which would
be called

here is the instruction:

service = (new
package_name.service_nameServiceLocator()).getService_name();

have you any idea, how would I make this call in Axis2??

thanks
/
/

--
Asma MÂALEJ BESBES
Laboratoire LAAS - CNRS
Toulouse - France
Tèl: +33 (0)5 61 33 62 63
Mobile: +33 (0)6 72 18 36 56
E-mail: amaa...@laas.fr


STATEMENT OF CONFIDENTIALITY:



The information contained in this electronic message and any attachments to
this message are intended for the exclusive use of the addressee(s) and may
contain confidential or privileged information. If you are not the intended
recipient, please notify WHI Solutions immediately at g...@whisolutions.com,
and destroy all copies of this message and any attachments.


How to call a web service from another one???

2009-08-24 Thread Asma Maalej

Hello

I am using Axis2.1.4.1 and eclipse ganymede 3.4 and I am trying to 
create a web service which is a consumer to another webservice, but I 
don't know how could I call another web service from the consumer one.
I knew that with Axis1, this call between web services will be made 
across a method from the generated stubs of the webservice which would 
be called


here is the instruction:

   service = (new 
package_name.service_nameServiceLocator()).getService_name();


have you any idea, how would I make this call in Axis2??

thanks
/
/

--
Asma MÂALEJ BESBES
Laboratoire LAAS - CNRS
Toulouse - France
Tèl: +33 (0)5 61 33 62 63
Mobile: +33 (0)6 72 18 36 56
E-mail: amaa...@laas.fr



Axis 1.4 strange characters < ....

2009-08-24 Thread David Vir

Hello,

My name is David and i have seen that you are an experienced user of axis. I
need to connect to one Web Service that have a wsdl that i can't change.=20

I am receiving strange characters in their response:

For example:

You must present a photo ID when checking in. Your credit card is charged at
the time you book. 
		Bed type and smoking preferences are
not guaranteed.Your reservation is prepaid and is guaranteed

		for late arrival. The total charge includes all room
charges and taxes, as well as fees for access 
		and booking.
Any incidental charges such as parking, phone calls, and room service will
be handled 
		directly between you and the property.

The wsdl is RPC encoded and i can only use Axis 1.4 because Axis 2 doesn't
allow RPC encoded.=20

I don't know how to solve this problem because i receive many strange
characters

Do you know how to solve, including some header in the stub? The stub of
axis have one method setHeader.

I have tried the following:=20

  stub.setHeader("urn:thisNamespace", "charset", "ISO-8859-1"); or
  stub.setHeader("urn:thisNamespace", "charset", "UTF-8");

And the result is the same.

Do you know how to solve?

Regards


-- 
View this message in context: 
http://www.nabble.com/Axis-1.4-strange-characters--lt13--tp25117696p25117696.html
Sent from the Axis - User mailing list archive at Nabble.com.



Re: Securing Axis2-Admin

2009-08-24 Thread Moritz Mädler
Thanks! I added the following lines to the /axis2/WEB-INF/classes/ 
log4j.properties:


de.tamundo.security=WARN, CONSOLE
de 
.tamundo.security.appender.CONSOLE.layout=org.apache.log4j.PatternLayout

de.tamundo.security.appender.CONSOLE.layout.ConversionPattern=[%p] %m%n


I still get the same error.


Am 24.08.2009 um 14:30 schrieb Martin Gainty:

#log4j.properties should contain a statement which associates your  
package to Level e.g.

#package=LEVEL, NameOfAppender

#BEGIN CONSOLE APPENDER (stdout)
#first:type of appender (fully qualified class name) note all stdout  
goes to ConsoleAppender

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#Many appenders require a layout.
log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout

#  additionally, some layouts can take additional information --
#like the ConversionPattern for the PatternLayout.
# log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2}  
(%30F:%L) %3x

- %m%n

# BEGIN Rolling APPENDER: (rolling)
#  first:type of appender (fully qualified class name)
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
#  second: Any configuration information needed for that appender.
#Many appenders require a layout.
log4j.appender.rolling.File=example.log

# max file size of rolling appender will be 100kb
log4j.appender.rolling.MaxFileSize=100KB
#  Keep one backup file
log4j.appender.rolling.MaxBackupIndex=1

#pattern of the logfile
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%p %t %c - %m%n

//default rootCategory for level is debug with output directed to  
stdout or //RollingFileAppender as in

log4j.rootCategory=debug,stdout,rolling

//you want to assign your package=LEVEL,Appender1,Appender2 as  
defined here

de.tamundo.security=warn,stdout,rolling

valid levels are
debug, info, warn, error, fatal and log.

appenders are
console, files, GUI components, remote socket servers, JMS, NT Event  
Loggers, and remote UNIX Syslog daemons


http://logging.apache.org/log4j/1.2/manual.html

HTH
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.






From: m...@moritz-maedler.de
To: axis-user@ws.apache.org
Subject: Securing Axis2-Admin
Date: Mon, 24 Aug 2009 14:11:58 +0200

Hello,

I'm using axis2 1.5 as a tomcat6 servlet. As it runs in production,  
I want to secure the axis2 admin frontend

by restricting the access to a specifig (e.g. local) IP-range.
How can this be implemented? I tried to integrate a filter which  
sends a 403-error upon access with wrong

IP-address. This leaded to following exception when restarting tomcat:
-
Aug 24, 2009 12:47:30 PM org.apache.catalina.core.StandardContext  
processTlds

SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.log4j.Category.isEnabledFor(Category.java:749)
	at  
org 
.apache 
.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:333)
	at  
org 
.apache 
.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:581)

at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:282)
	at  
org 
.apache 
.catalina.core.StandardContext.processTlds(StandardContext.java:4307)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4144)
	at  
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
	at  
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
740)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 
544)
	at  
org 
.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java: 
626)
	at  
org 
.apache 
.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	at  
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	at  
org 
.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 
31

RE: Securing Axis2-Admin

2009-08-24 Thread Martin Gainty

#log4j.properties should contain a statement which associates your package to 
Level e.g.
#package=LEVEL, NameOfAppender

#BEGIN CONSOLE APPENDER (stdout)
#first:type of appender (fully qualified class name) note all stdout goes to 
ConsoleAppender
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#Many appenders require a layout.
log4j.appender.stdout.layout=org.apache.log4j.SimpleLayout

#  additionally, some layouts can take additional information --
#like the ConversionPattern for the PatternLayout.
# log4j.appender.stdout.layout.ConversionPattern=%d %-5p %-17c{2} (%30F:%L) %3x
- %m%n

# BEGIN Rolling APPENDER: (rolling)
#  first:type of appender (fully qualified class name)
log4j.appender.rolling=org.apache.log4j.RollingFileAppender
#  second: Any configuration information needed for that appender.
#Many appenders require a layout.
log4j.appender.rolling.File=example.log

# max file size of rolling appender will be 100kb
log4j.appender.rolling.MaxFileSize=100KB
#  Keep one backup file
log4j.appender.rolling.MaxBackupIndex=1

#pattern of the logfile
log4j.appender.rolling.layout=org.apache.log4j.PatternLayout
log4j.appender.rolling.layout.ConversionPattern=%p %t %c - %m%n

//default rootCategory for level is debug with output directed to stdout or 
//RollingFileAppender as in 
log4j.rootCategory=debug,stdout,rolling

//you want to assign your package=LEVEL,Appender1,Appender2 as defined here
de.tamundo.security=warn,stdout,rolling

valid levels are 

debug,

info,

warn,
error,
fatal
 and log.

appenders are
 console, files, GUI
components, remote socket
servers,  JMS,

 NT
Event Loggers, and remote UNIX Syslog
daemons

http://logging.apache.org/log4j/1.2/manual.html

HTH
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.




From: m...@moritz-maedler.de
To: axis-user@ws.apache.org
Subject: Securing Axis2-Admin
Date: Mon, 24 Aug 2009 14:11:58 +0200

Hello,
I'm using axis2 1.5 as a tomcat6 servlet. As it runs in production, I want to 
secure the axis2 admin frontendby restricting the access to a specifig (e.g. 
local) IP-range. How can this be implemented? I tried to integrate a filter 
which sends a 403-error upon access with wrongIP-address. This leaded to 
following exception when restarting tomcat:-Aug 24, 2009 12:47:30 PM 
org.apache.catalina.core.StandardContext processTldsSEVERE: Error reading tld 
listeners java.lang.NullPointerExceptionjava.lang.NullPointerException   at 
org.apache.log4j.Category.isEnabledFor(Category.java:749)at 
org.apache.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:333)
 at 
org.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java:581)  
 at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:282)at 
org.apache.catalina.core.StandardContext.processTlds(StandardContext.java:4307) 
 at 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4144)at 
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760) 
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740) 
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)   
 at 
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626) at 
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)   
 at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)  
 at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)   at 
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)   at 
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
  at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)  
  at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)   
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java

Securing Axis2-Admin

2009-08-24 Thread Moritz Mädler

Hello,

I'm using axis2 1.5 as a tomcat6 servlet. As it runs in production, I  
want to secure the axis2 admin frontend

by restricting the access to a specifig (e.g. local) IP-range.
How can this be implemented? I tried to integrate a filter which sends  
a 403-error upon access with wrong

IP-address. This leaded to following exception when restarting tomcat:
-
Aug 24, 2009 12:47:30 PM org.apache.catalina.core.StandardContext  
processTlds

SEVERE: Error reading tld listeners java.lang.NullPointerException
java.lang.NullPointerException
at org.apache.log4j.Category.isEnabledFor(Category.java:749)
	at  
org 
.apache 
.commons.logging.impl.Log4JLogger.isTraceEnabled(Log4JLogger.java:333)
	at  
org 
.apache.catalina.startup.TldConfig.tldScanResourcePaths(TldConfig.java: 
581)

at org.apache.catalina.startup.TldConfig.execute(TldConfig.java:282)
	at  
org 
.apache.catalina.core.StandardContext.processTlds(StandardContext.java: 
4307)
	at  
org.apache.catalina.core.StandardContext.start(StandardContext.java: 
4144)
	at  
org 
.apache 
.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java: 
740)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java: 
544)
	at  
org 
.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java: 
626)
	at  
org 
.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java: 
553)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java: 
488)

at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)
	at  
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java: 
311)
	at  
org 
.apache 
.catalina 
.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1022)

at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java: 
1014)
	at org.apache.catalina.core.StandardEngine.start(StandardEngine.java: 
443)
	at  
org.apache.catalina.core.StandardService.start(StandardService.java:448)
	at org.apache.catalina.core.StandardServer.start(StandardServer.java: 
700)

at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at  
sun 
.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 
39)
	at  
sun 
.reflect 
.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 
25)

at java.lang.reflect.Method.invoke(Method.java:597)
	at  
org.apache.commons.daemon.support.DaemonLoader.start(DaemonLoader.java: 
177)
Aug 24, 2009 12:47:31 PM org.apache.catalina.core.StandardContext  
processTlds



The filter-config looks like web.xml looks like

[AXIS-CONF]




IPFilter
IPFilter
de.tamundo.security.IPFilter


IPFilter
/IPFilter



I copied the filterclass under /axis2/WEB-INF/de/tamundo/security.

Is there another possibility to secure the Axis2-Admin?

Thanks alot!

Moritz




Re: How to run AXIS2 fine on Tomcat behind an Apache server.

2009-08-24 Thread frougeot

Hi, did you find a convenient solution ? We are experiencing the same case,
and hack the wsdl file generated by axis for now, but it does not suit us
very well ...





pino lollo wrote:
> 
> 
> 
> 
> 
> How to run AXIS2 fine on Tomcat behind an Apache server. 
> 
> I have problem with internet 80 or intranet 8080 wsdl invocation. 
> 
> Is there anyone who can show me how to do or can tell me where I am wrong? 
> 
> 
> 
> 
> Thanks in advance. 
> 
> Marco 
> 
> 
> 
> 
> 1 Adsl internet connection, 
> 
> 1 public ip address: 83.211.93.144, 
> 
> 1 router modem, 
> 
> 1 lan, 
> 
> 1 pc server (internal ip address 192.168.1.10) 
> 
> 
> 
> 
> On the pc server there are: 
> 
> 1 Apache http server 2.2, 1 Tomcat 6,0. 
> 
> Tomcat responds port 8080, Apache http server responds to internet at port
> 80. 
> 
> I have same http applications on Apache http server that work and you can
> see on internet at the address: www.acgcomplementi.com 
> 
> I have also same web applicationes on Tomcat that respond in the lan to
> port 8080 and are redirected by Apache Http server on Internet:
> www.p2p2mpa.com and respond there on port 80. 
> 
> To do this I configured a virtual server on the modem router so the
> requests that arrive from internet at the address 83.211.93.144 and port
> 80 are redirected to the pc server 192.168.1.10:80, and this works. 
> 
> 
> 
> 
> There, on the pc server, the requests on the port 80 are managed by the
> Apache Http server. I worked on the file httpd.conf, and I activated the
> proxy module with these comands: 
> 
> LoadModule proxy_module modules/mod_proxy.so 
> 
> LoadModule proxy_http_module modules/mod_proxy_http.so 
> 
> LoadModule proxy_connect_module modules/mod_proxy_connect.so 
> 
> 
> 
> 
> and I added also these directives: 
> 
> 
> 
> 
> ProxyPass /p2p2mpa/ http://localhost:8080/p2p2mpa/ 
> 
> ProxyPass /sito/ http://localhost:8080/sito/ 
> 
> ProxyPass /ws_p2p2mpa/ http://localhost:8080/ws_p2p2mpa/ 
> 
> 
> 
> 
>   
> (/sito/ is for www.acgcomplementi.com). 
> 
> /p2p2mpa/ is for www.p2p2mpa.com 
> 
> /ws_p2p2mpa/ if for the axis2 webservice that doesn't work. 
> 
> 
> 
> 
> Till now it is all fine. 
> 
> Here began the problems. 
> 
> 
> 
> 
> I developed, using eclipse, a web application that exposes some
> webservices. I used axis2. 
> 
> I placed the war file (ws_p2p2mpa.war) in the webapps Tomcat directory. 
> 
> 
> 
> 
> If I invoke the the wsdl file in the lan all works fine: 
> 
> 
> 
> 
> at the address http://192.168.1.10:8080/ws_p2p2mpa/ 
> 
> the axis2 welcom page responds correctly. 
> 
> 
> 
> 
> At the address 
> 
> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws?wsdl 
> 
> 
> 
> 
> Axis2/Tomcat answers with the right wsdl file: it has the right endpoint: 
> 
> 
> 
> 
> 
> 
> 
> -  
> 
>    location="http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/";
> /> 
> 
>    
> 
> 
> 
> 
> 
> 
> 
> Instead if I invoke the wsdl file from internet I have some problems: 
> 
> If I use this address: 
> 
> 
> 
> 
> http://83.211.93.144/ws_p2p2mpa/ 
> 
> Axis2 responds, I see the Axis2 welcome page but I cannot see correctly
> the Axis2 wing images; 
> 
> 
> 
> 
> if I navigate and I select a link, for example: “Services” it shows and
> uses this wrong address: 
> 
> http://192.168.1.10:8080/ws_p2p2mpa/services/listServices as it was
> invoked from the lan and not internet, I aspected: 
> 
>   
> 
> http://83.211.93.144/ws_p2p2mpa/services/listServices 
> 
> 
> 
> 
> 
> 
> 
> If I invoke the wsdl and I use this address 
> 
> http://83.211.93.144/ws_p2p2mpa/services/Ws?wsdl 
> 
> I see the wsdl file but it has as endpoint address the same it has if it
> is invoked from the lan: 
> 
> 
> 
> 
> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/ 
> 
> 
> 
> 
> I aspected
> http://83.211.93.144/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/ 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Therefore I looked around to find a solution, and I found to manage the
> axis2.xml configuration file. 
> 
> I changed the file 
> 
> \Apache Software Foundation\Tomcat
> 6.0\webapps\ws_p2p2mpa\WEB-INF\conf\axis2.xml 
> 
> 
> 
> 
> in this way: 
> 
> 
> 
> 
> first, in the transportReceiver section I added this parameter proxyPort =
> 80: 
> 
> that is a look of the transposrtReceiver section: 
> 
> 
> 
> 
>  
> 
> -  class="org.apache.axis2.transport.http.SimpleHTTPServer"> 
> 
>   8080 
> 
>   80 
> 
> but nothing changed. 
> 
> 
> 
> 
> Two, I added this instruction: 
> 
> 
> 
>  name="httpFrontendHostUrl">http://83.211.93.144/ws_p2p2mpa
> (http without s). 
> 
> 
> 
> 
> Then I tested it but it doesn't work again: 
> 
> 
> 
> 
> the end point address in the wsdl file doesn't changed, it is always the
> same, if I invoke from internet or lan the end point address it is always 
> 
> http://192.168.1.10:8080/ws_p2p2mpa/services/Ws.WsHttpSoap11Endpoint/ 
> 
> 
> 
> 
> 
> 
> 
> If I invoke the axis2 welcome page from internet it work fine, instead if
> I invoke th

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
>>
>>
>>
>
>



  

[axis-2] zip uploading & extraction

2009-08-24 Thread Rajneesh Kumar
 

Hi all,

 

I have uploaded the simple file using axis2 web service and its work
correctly. Now the problem is to upload a zip which will be extracted using
the service and upload all the extracted files to the server (tomcat). How
to do it?

 

 

Please help

 

 

 

 

 -- rajneesh

 

 



===
Private, Confidential and Privileged. This e-mail and any files and attachments 
transmitted with it are confidential and/or privileged. They are intended 
solely for the use of the intended recipient. The content of this e-mail and 
any file or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended recipient, 
please note that any review, dissemination, disclosure, alteration, printing, 
circulation or Transmission of this e-mail and/or any file or attachment 
transmitted with it, is prohibited and may be unlawful. If you have received 
this e-mail or any file or attachment transmitted with it in error please 
notify OTS Solutions at i...@otssolutions.com
===


[axis2] SocketPermission exception while calling another webservice in WAS 5.1

2009-08-24 Thread Rajeevr

Hi,

I run Axis 1.3 project on WebSphere Platform 5.1 with JDK 1.4.2. Host
Operating System is Linux.

I have two web services. I get SocketPermission error while the first
service calls the next service. Both services are placed at the same jvm. I
even tried to deploy these two services on two different jvm but I get the
same error. 

Same works fine in local Tomcat environment. I have proper policy entry for
this in was.policy file.

Can it be related to port access rights? 

I can see SimpleHTTPServer transportReceiver is set to 8080 in axis2.xml
file. Do we need to change it to some other value? I don't have admin access
to WAs so cannot comment on this.

Log trace is:
-
[8/24/09 2:34:47:667 EDT] 6c1dbeed SystemOut O Before calling
partnerOutFLow Service
[8/24/09 2:34:47:758 EDT] 6c1dbeed SecurityManag W SECJ0314W: Current Java 2
Security policy reported a potential violation of Java 2 Security
Permission. Please refer to Problem Determination Guide for further
information.
Permission:
  tools-dev.abc.com : access denied (java.net.SocketPermission
tools-stage.abc.com resolve)
Code:
 com.abc.ws.partnerService.PartnerService  in 
{file:/opt/httpd/root/apps/wsx/ibm/ccx-dev-ear/wsx.war/WEB-INF/services/PartnerService/}
Stack Trace:
java.security.AccessControlException: access denied
(java.net.SocketPermission tools-stage.abc.com resolve)

was.policy file:
--
grant codeBase "file:${application}"
{
permission java.lang.RuntimePermission
"accessClassInPackage.sun.util.logging.resources";
permission java.io.FilePermission "${was.install.root}/properties", "read";
permission java.io.FilePermission
"/opt/netegrity/siteminder/taiagent/TAI-1.0/config/ccxapp-dev-3", "read";
permission java.io.FilePermission
"/opt/netegrity/siteminder/taiagent/TAI-1.0/config/ccxapp-stage-4", "read";
permission java.io.FilePermission
"/opt/netegrity/siteminder/taiagent/TAI-1.0/config/ccxapp-stage-20", "read";
permission java.io.FilePermission
"/opt/netegrity/siteminder/taiagent/TAI-1.0/config", "read";
permission java.lang.RuntimePermission "shutdownHooks";
permission java.net.SocketPermission "tools-dev.abc.com", "resolve,connect";
permission java.net.SocketPermission "tools-stage.abc.com",
"connect,resolve";  
};

Can someone give pointer to this problem?

Thanks in advance.

Regards,
Rajeev

-- 
View this message in context: 
http://www.nabble.com/-axis2--SocketPermission-exception-while-calling-another-webservice-in-WAS-5.1-tp25111801p25111801.html
Sent from the Axis - User mailing list archive at Nabble.com.



[axis-2] attachment with additional string in param

2009-08-24 Thread Rajneesh Kumar
Hi All,

 

I am using file MTOM file uploading methodology of axis-2 in my application
and it works fine. But now my requirement is a bit change. Problem is
current attachment method accepts only one parameter and I have to send one
string also along with this parameter means there would be two parameters.

 

Current Version of MTOM Implementation

 

public org.apache.ws.axis2.mtomsample.AttachmentResponse
attachment(

 
org.apache.ws.axis2.mtomsample.AttachmentRequest param0)

throws Exception

 

{

// business logic goes here

}

 

 

Required

 

 

public org.apache.ws.axis2.mtomsample.AttachmentResponse
attachment(

 
org.apache.ws.axis2.mtomsample.AttachmentRequest param0, String str)

throws Exception

 

{

// business logic goes here

}

 

 

Kindly help.

 

-rajneesh



===
Private, Confidential and Privileged. This e-mail and any files and attachments 
transmitted with it are confidential and/or privileged. They are intended 
solely for the use of the intended recipient. The content of this e-mail and 
any file or attachment transmitted with it may have been changed or altered 
without the consent of the author. If you are not the intended recipient, 
please note that any review, dissemination, disclosure, alteration, printing, 
circulation or Transmission of this e-mail and/or any file or attachment 
transmitted with it, is prohibited and may be unlawful. If you have received 
this e-mail or any file or attachment transmitted with it in error please 
notify OTS Solutions at i...@otssolutions.com
===