Re: Axis V1.0 - java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl

2005-05-20 Thread Davanum Srinivas
please don't use Axis 1.0. latest is Axis 1.2

-- dims

On 5/20/05, Tony Chen <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I made a mistake in my last email. The line 1329 is actually within method
> invoke(Object[] params)
> 
> 1329throw new AxisFault( Messages.getMessage("errorInvoking00",
> "\n" + exp) );
> 
> So, the ClassCastException was actually thrown in the try (starting at line
> 1314) block and caught by the catch block at line 1326.
> 
> But can anyone tell me where is org.apache.axis.attachments.AttachmentsImpl
> used and casted in this invoke(Object[] params) method? I was debugging
> this code in WSAD, and found the params Object array always contains one
> object of Login. I can't think of anything different by the way we call
> this invoke() method. Puzzled!
> 
> The full method:
> 
> public Object invoke(Object[] params) throws java.rmi.RemoteException {
> long t0=0, t1=0;
> if( tlog.isDebugEnabled() ) {
> t0=System.currentTimeMillis();
> }
> /* First see if we're dealing with Messaging instead of RPC.
> */
> /* If ALL of the params are SOAPBodyElements then we're doing
> */
> /* Messaging, otherwise just fall through to normal RPC processing.
> */
> 
> //
> SOAPEnvelope  env = null ;
> int i ;
> 
> for ( i = 0 ; params != null && i < params.length ; i++ )
> if ( !(params[i] instanceof SOAPBodyElement) ) break ;
> 
> if ( params != null && params.length > 0 && i == params.length ) {
> /* ok, we're doing Messaging, so build up the message */
> /**/
> isMsg = true ;
> env = new SOAPEnvelope(msgContext.getSOAPConstants());
> 
> if ( !(params[0] instanceof SOAPEnvelope) )
> for ( i = 0 ; i < params.length ; i++ )
> env.addBodyElement( (SOAPBodyElement) params[i] );
> 
> Message msg = new Message( env );
> setRequestMessage(msg);
> 
> invoke();
> 
> msg = msgContext.getResponseMessage();
> if (msg == null) {
>   if (FAULT_ON_NO_RESPONSE) {
> throw new AxisFault(Messages.getMessage("nullResponse00"));
>   } else {
> return null;
>   }
> }
> 
> env = msg.getSOAPEnvelope();
> return( env.getBodyElements() );
> }
> 
> 
> 1312if ( operationName == null )
> 1313throw new AxisFault( Messages.getMessage("noOperation00")
> );
> 1314try {
> 1315Object res=this.invoke(operationName.getNamespaceURI(),
> 1316operationName.getLocalPart(), params);
> 1317if( tlog.isDebugEnabled() ) {
> 1318t1=System.currentTimeMillis();
> 1319tlog.debug("axis.Call.invoke: " + (t1-t0)  + " " +
> operationName);
> 1320}
> 1321return res;
> 1322}
> 1323catch( AxisFault af) {
> 1324throw af;
> 1325}
> 1326catch( Exception exp ) {
> 1327//if ( exp instanceof AxisFault ) throw (AxisFault) exp ;
> 1328entLog.info(Messages.getMessage("toAxisFault00"), exp);
> 1329throw new AxisFault( Messages.getMessage("errorInvoking00",
> "\n" + exp) );
> 1330}
> 1331}
> 
> Tony Chen
> 
> SUN Certified Java 2 Programmer
> IBM Certified Enterprise Developer - WebSphere V4.0 & V5.0
> Canadian Securities Course (CSC) Certification
> 
> Securities Industry Services, IBM Global Services
> phone: 416-478-5852
> e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
>  Tony
>  Chen/Toronto/IBM@
>  IBMCA  To
>axis-user@ws.apache.org
>  05/20/2005 10:32   cc
>  AM
>Subject
>Axis V1.0 -
>  Please respond to java.lang.ClassCastException:
>  axis-user org.apache.axis.attachments.Attachm
>entsImpl
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> Hi Everyone,
> 
> This is my first email to axis-user. We are using axis.jar V1.0 in order to
> access a 3rd-party software. Our system is running fine in production until
> a few days later, we got the following error:
> 
> java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl:
> AxisFault
>  faultCode: {http://xml.apache.org/axis/}Server.generalException
>  faultString: Error invoking operation:
> java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
>  faultActor: null
>  faultDetail:
>   stackTrace: AxisFa

Re: Axis V1.0 - java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl

2005-05-20 Thread Tony Chen
Hi,

I made a mistake in my last email. The line 1329 is actually within method
invoke(Object[] params)

1329throw new AxisFault( Messages.getMessage("errorInvoking00",
"\n" + exp) );

So, the ClassCastException was actually thrown in the try (starting at line
1314) block and caught by the catch block at line 1326.

But can anyone tell me where is org.apache.axis.attachments.AttachmentsImpl
used and casted in this invoke(Object[] params) method? I was debugging
this code in WSAD, and found the params Object array always contains one
object of Login. I can't think of anything different by the way we call
this invoke() method. Puzzled!

The full method:

public Object invoke(Object[] params) throws java.rmi.RemoteException {
long t0=0, t1=0;
if( tlog.isDebugEnabled() ) {
t0=System.currentTimeMillis();
}
/* First see if we're dealing with Messaging instead of RPC.
*/
/* If ALL of the params are SOAPBodyElements then we're doing
*/
/* Messaging, otherwise just fall through to normal RPC processing.
*/

//
SOAPEnvelope  env = null ;
int i ;

for ( i = 0 ; params != null && i < params.length ; i++ )
if ( !(params[i] instanceof SOAPBodyElement) ) break ;

if ( params != null && params.length > 0 && i == params.length ) {
/* ok, we're doing Messaging, so build up the message */
/**/
isMsg = true ;
env = new SOAPEnvelope(msgContext.getSOAPConstants());

if ( !(params[0] instanceof SOAPEnvelope) )
for ( i = 0 ; i < params.length ; i++ )
env.addBodyElement( (SOAPBodyElement) params[i] );

Message msg = new Message( env );
setRequestMessage(msg);

invoke();

msg = msgContext.getResponseMessage();
if (msg == null) {
  if (FAULT_ON_NO_RESPONSE) {
throw new AxisFault(Messages.getMessage("nullResponse00"));
  } else {
return null;
  }
}

env = msg.getSOAPEnvelope();
return( env.getBodyElements() );
}


1312if ( operationName == null )
1313throw new AxisFault( Messages.getMessage("noOperation00")
);
1314try {
1315Object res=this.invoke(operationName.getNamespaceURI(),
1316operationName.getLocalPart(), params);
1317if( tlog.isDebugEnabled() ) {
1318t1=System.currentTimeMillis();
1319tlog.debug("axis.Call.invoke: " + (t1-t0)  + " " +
operationName);
1320}
1321return res;
1322}
1323catch( AxisFault af) {
1324throw af;
1325}
1326catch( Exception exp ) {
1327//if ( exp instanceof AxisFault ) throw (AxisFault) exp ;
1328entLog.info(Messages.getMessage("toAxisFault00"), exp);
1329throw new AxisFault( Messages.getMessage("errorInvoking00",
"\n" + exp) );
1330}
1331}

Tony Chen

SUN Certified Java 2 Programmer
IBM Certified Enterprise Developer - WebSphere V4.0 & V5.0
Canadian Securities Course (CSC) Certification

Securities Industry Services, IBM Global Services
phone: 416-478-5852
e-mail: [EMAIL PROTECTED]



   
 Tony  
 Chen/Toronto/IBM@ 
 IBMCA  To 
   axis-user@ws.apache.org 
 05/20/2005 10:32   cc 
 AM
   Subject 
   Axis V1.0 - 
 Please respond to java.lang.ClassCastException:   
 axis-user org.apache.axis.attachments.Attachm 
   entsImpl
   
   
   
   
   
   








Hi Everyone,

This is my first email to axis-user. We are using axis.jar V1.0 in order to
access a 3rd-party software. Our system is running fine in production

RE: Axis C++ SSL problem

2005-05-20 Thread Popa Horia



I'm using the nightly build, Axis version 1.6. To build 
the client stub, i'm using Microsoft compiler. Please note that I have tried 
with Axis 1.5 but with no result. 


From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] Sent: 20 mai 2005 20:03To: 
[EMAIL PROTECTED]Subject: RE: Axis C++ SSL 
problem

I need to do the same thing pretty 
soon.
 
Did you use Axis 1.5 for C++?  Also, what compiler 
did you use?
 
  THanks!
 
  Cliff
 

  
  
  From: Popa Horia 
  [mailto:[EMAIL PROTECTED] Sent: Friday, May 20, 2005 10:52 
  AMTo: axis-user@ws.apache.orgSubject: Axis C++ SSL 
  problem
  
   
   
      Hi 
  there,
   
   
      
  I have a Java Axis server and i'm trying to connect with a 
  stub in C++. It works fine on http but it failes on https.
  I see when I run the 
  program in debug mode that the HttpSSLChannel is never loaded. 
  The application 
  failes at this line in the Stub: if 
  (AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER)) return pReturn;
      My Tomcat 
  server is behind Apache 1.3.1 and i'm using MOD_JK to make those applications 
  talk to each other. My guess is that the request never leaves my client. To 
  prove this I have used a network sniffer and indeed, the client dies before 
  any request is sent to the server. Maybe I don't have all the DDLs ?? I have 
  installed openssl 
      
  The client runs on Windows.
   
   
      
  Any help is appeciated.
   
   
      
  thanks
   
   
   
      
  


RE: type attribute not set correctly

2005-05-20 Thread Brian Nielsen
Sorry, no help. I'm having the same problem. It seems to me that the
behaviour is locked to rpc style with the xsi-stuff. I'm also running
doc/lit and I didn't have any problems with RC3 either, but unfortunately it
ended up in 1.2-final. It seems related to " dotnet_soapenc_bugfix is
"blindly" reset" [1] in Jira. I thought I had a work around, but since then
I haven't been able to get it right again. I'm also doing XML Schema
validation and I also expect interoperability problems.

It seems to come when using service specific configuration in ex.
Server-config.wsdd.



Regards Brian

[1] http://issues.apache.org/jira/browse/AXIS-1976 

-Original Message-
From: David Kocher [mailto:[EMAIL PROTECTED] 
Sent: 20. maj 2005 15:47
To: axis-user@ws.apache.org
Subject: xsi:type attribute not set correctly

Dear all,
We have a derived type from short in our schema such as:

 
 
 
 
 
 

When sending an instance document (using document/literal) over the wire
  with axis (1.2), it is serialized as:

99

However, I this seems to be incorrect, as MyDerivedFromShort is derived
(!) from xs:short but not xs:short itself.

When parsing this with Xerces it will throw

Validation error: LineNumber: 48 ColumnNumber: 2883 Message: 
cvc-elt.4.3: Type 'xsd:short' is not validly derived from the type
definition, 'MyDerivedFromShortType', of element 'ns2:MyDerivedFromShort'.:

I just upgraded to 1.2 final; as far as I can tell this bug was not present
in the latest release candidate.

Please let me know if I missed something or if there is any known
workaround.

Thanks!
-dk




Java2WSDL LogFactory classloader problem

2005-05-20 Thread Michael Oliver
I have created an ant task as follows:




















  http://alariussystemsllc.com/AJCCWebService/";
location= "http://localhost:8080/AlariusAssignments/services/";
output="AlariusAssignments.wsdl" >





  


commons-logging and log4j are in the compile.classpath

When I run this target I get

axis-java2wsdl:
 [echo] Building wsdl for AlariusAssignments at
C:\Java\ArchivedWorkspaces\AlariusAssignments\AlariusAssignments.wsdl}
[axis-java2wsdl] Java2WSDL
com.alarius.assignments.actions.SaveAssignmentForm
[axis-java2wsdl] java.lang.ExceptionInInitializerError
[axis-java2wsdl]at java.lang.Class.forName0(Native Method)
...
[axis-java2wsdl] Caused by:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException:
org.apache.commons.logging.LogConfigurationException: Class
org.apache.commons.logging.impl.Log4JLogger does not implement Log
[axis-java2wsdl]at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImp
l.java:532)...

So researching this I find that the Log4JLogger does not implement Log
is caused by a classloader problem.

So I found in the eclipse ant runtime preferences Global Entries, both
the commons-logging and log4j jars.  So I removed them from there and
ran ant on that target again...

axis-java2wsdl:
 [echo] Building wsdl for AlariusAssignments at
C:\Java\ArchivedWorkspaces\AlariusAssignments\AlariusAssignments.wsdl}
[axis-java2wsdl] java.lang.NoClassDefFoundError:
org.apache.commons.logging.LogFactory
[axis-java2wsdl]at
org.apache.axis.components.logger.LogFactory.class$(LogFactory.java:84)
...

Huh???

If the ant runtime is loading the commons-logging and log4j jars and
that causes a classloader sequence problem, then removing them from
there and leaving the ones in the compile.classpath should NOT cause a
NoClassDefFoundError.

How can it be that one way it doesn't find LogFactory and the other way
it has a classloader sequence problem?

Conversely if ant needs to load them and the ant axis task also needs to
load them, how do I ensure they are loaded in the proper sequence to
avoid the conflict?

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]





RE: ClassNotFound after deployment, but fine after tomcat restart

2005-05-20 Thread Benjamin . Temko



Hi 
all,
 
My 
experience with this is that any class you want Tomcat and its web applications 
to use has to be available to it at startup time.  It doesn't know anything 
about classes you add to its various and sundry classpaths after you start it 
up.  However, it does seem to pick up on changes to classes in the various 
web applications'  WEB-INF/classes and WEB-INF/lib directories 
(usually it lets you know this with a message in the logfile, something like 
"restarting context").  I don't think it picks up changes to things in 
shared/lib or common/lib but I wouldnt' swear to it.
 
Hope 
this helps!
 
Ben

  -Original Message-From: Dan O'Neill 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 20, 2005 12:43 
  PMTo: axis-user@ws.apache.orgSubject: Re: ClassNotFound 
  after deployment, but fine after tomcat restartI think 
  that is just how tomcat works... everytime you add a file it has to be 
  restarted. I think it even has to be restarted when you change a 
  fileDan 
  On 5/20/05, Hewitt, 
  Christopher <[EMAIL PROTECTED]> 
  wrote: 
  Hi,I 
was hoping someone might be able to help with a funny problem I'm 
having...(tomcat 5.0, java 1.4, axis 1.2 final, Solaris 
environment)1) tomcat running2) copy over new jar file to 
axis/WEB-INF/lib3) deploy service4) service doesn't work 
(classnotfound)5) restart tomcat 6) service works fineWSDL 
is being autogenerated for this service by the way.I've played with 
various TC settings and can't seem to resolve this issue (i thought may it 
had to do with TC's autodeploy, deployOnStatup features, but no luck 
there).Would anyone happen to have some suggestions on how to go 
about resolving this?Thank youChris HewittEmail: [EMAIL PROTECTED] 
-- "I swear, the next bastard 
  that kisses the ground in front of me is gonna getkicked in the antique 
  chicken coops."  - Cohen the Barbarian ___
The information contained in this message and any attachment may be
proprietary, confidential, and privileged or subject to the work
product doctrine and thus protected from disclosure.  If the reader
of this message is not the intended recipient, or an employee or
agent responsible for delivering this message to the intended
recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited.
If you have received this communication in error, please notify me
immediately by replying to this message and deleting it and all
copies and backups thereof.  Thank you.




Re: ClassNotFound after deployment, but fine after tomcat restart

2005-05-20 Thread Dan O'Neill
I think that is just how tomcat works... everytime you add a file it
has to be restarted. I think it even has to be restarted when you
change a file

Dan On 5/20/05, Hewitt, Christopher <[EMAIL PROTECTED]> wrote:
Hi,I was hoping someone might be able to help with a funny problem I'm having...
(tomcat 5.0, java 1.4, axis 1.2 final, Solaris environment)1) tomcat running2) copy over new jar file to axis/WEB-INF/lib3) deploy service4) service doesn't work (classnotfound)5) restart tomcat
6) service works fineWSDL is being autogenerated for this service by the way.I've
played with various TC settings and can't seem to resolve this issue (i
thought may it had to do with TC's autodeploy, deployOnStatup features,
but no luck there).Would anyone happen to have some suggestions on how to go about resolving this?Thank youChris HewittEmail: [EMAIL PROTECTED]
-- "I swear, the next bastard that kisses the ground in front of me is gonna getkicked in the antique chicken coops."  - Cohen the Barbarian


java-delphi

2005-05-20 Thread Omar Bennani
Hi
I'm devloping cgi web servie (an delphi executable)
and i want use a java client, have somebody samples of
codes or tutorials about this, cause i have some
problems
thanx






_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


ClassNotFound after deployment, but fine after tomcat restart

2005-05-20 Thread Hewitt, Christopher
Hi,

I was hoping someone might be able to help with a funny problem I'm having...

(tomcat 5.0, java 1.4, axis 1.2 final, Solaris environment)

1) tomcat running
2) copy over new jar file to axis/WEB-INF/lib
3) deploy service
4) service doesn't work (classnotfound)
5) restart tomcat
6) service works fine

WSDL is being autogenerated for this service by the way.

I've played with various TC settings and can't seem to resolve this issue (i 
thought may it had to do with TC's autodeploy, deployOnStatup features, but no 
luck there).

Would anyone happen to have some suggestions on how to go about resolving this?

Thank you

Chris Hewitt
Email: [EMAIL PROTECTED]



Java2WSDL for multiple java classes

2005-05-20 Thread Michael Oliver
Can Java2WSDL generate a wsdl file that includes methods for more than
one java class?

Michael Oliver
CTO
Alarius Systems LLC
6800 E. Lake Mead Blvd, #1096
Las Vegas, NV 89156
Phone:(702)643-7425
Fax:(702)974-0341
*Note new email changed from [EMAIL PROTECTED]




Best Practice for providing Web Services for existing classes

2005-05-20 Thread Michael Oliver








Let's say I have an existing web application, and it has a number of
behaviors that I want to expose via web services.  These behaviors are
implemented in classes that are designed to handle web events like post and
get.  

 

If these classes have a method I want to expose such as the following:

 

public ActionForward execute(ActionMapping mapping, 

  ActionForm
form, 

  HttpServletRequest
request,         HttpServletResponse
response) throws Exception 

    

(yes some would recognize this is a Struts action class and its default
execute method)

 

The question is

 

1.   
Is it better/easier to take the guts of this class
and copy it to a class without the request and response and mapping which
normally have nothing to do with the processing of the form?

2.   
Is it better/easier to just do a Java2WSDL from
this class?

3.   
Or… refactor the meat of this class into a separate
class and call this new refactored class from from it and then run Java2WSDL
from the new refactored class?

 

 

Michael Oliver

CTO

Alarius Systems LLC

6800 E. Lake Mead Blvd, #1096

Las Vegas, NV 89156

Phone:(702)643-7425

Fax:(702)974-0341

*Note new email changed from [EMAIL PROTECTED]

 








AW: AW: cgi service 2

2005-05-20 Thread Ferruh Zamangoer
I don't know I'am writing my webservice in Java and everything works fine.
When this tag is okay than your WSDL seems to be okay.



-Ursprüngliche Nachricht-
Von: Omar Bennani [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 20. Mai 2005 16:55
An: axis-user@ws.apache.org
Betreff: Re: AW: cgi service 2

this wsdl file was generated by apache when i submit:
http://localhost:8088/cgi-bin/Project2.exe/wsdl/ITHitchHiker
there is no error in 

--- Ferruh Zamangoer <[EMAIL PROTECTED]> a
écrit:
> I also a newbie to Axis but I have see in your wsdl
> file 
> 
> 
> Do you not need a  ???
> 
> Regards
> Ferruh
>   
> 
> -Ursprüngliche Nachricht-
> Von: Omar Bennani [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 20. Mai 2005 16:34
> An: axis-user@ws.apache.org
> Betreff: cgi service 2
> 
>  I wrote a webservie with delphi, it generate this
>  wsdl
>  file
>  but when I try to generate java client interfaces
>   
>  java org.apache.axis.wsdl.WSDL2Java
>  ITHitchHiker.wsdl
>  
>  he display me an error message:
>  
>  WSDLException (at
>  /definitions/binding/operation[1]/input):
>  faultCode=INVALID_WSDL: Element '{http:/
>  /schemas.xmlsoap.org/wsdl/}input' contained
>  unexpected
>  attributes: 'message':
>  at
> 
>
com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
>  Source)
>  at
> 
> com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
> 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
>  at
> 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
>  at
> 
>
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
>  at java.lang.Thread.run(Unknown Source)
>  
>  please help me
> 
> 
>   
> 
>   
>   
>

> _ 
> Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de
> stockage pour vos mails,
> photos et vidéos ! 
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com
> 
> 







_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails,
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com



Re: AW: cgi service 2

2005-05-20 Thread Omar Bennani
this wsdl file was generated by apache when i submit:
http://localhost:8088/cgi-bin/Project2.exe/wsdl/ITHitchHiker
there is no error in 

--- Ferruh Zamangoer <[EMAIL PROTECTED]> a
écrit:
> I also a newbie to Axis but I have see in your wsdl
> file 
> 
> 
> Do you not need a  ???
> 
> Regards
> Ferruh
>   
> 
> -Ursprüngliche Nachricht-
> Von: Omar Bennani [mailto:[EMAIL PROTECTED] 
> Gesendet: Freitag, 20. Mai 2005 16:34
> An: axis-user@ws.apache.org
> Betreff: cgi service 2
> 
>  I wrote a webservie with delphi, it generate this
>  wsdl
>  file
>  but when I try to generate java client interfaces
>   
>  java org.apache.axis.wsdl.WSDL2Java
>  ITHitchHiker.wsdl
>  
>  he display me an error message:
>  
>  WSDLException (at
>  /definitions/binding/operation[1]/input):
>  faultCode=INVALID_WSDL: Element '{http:/
>  /schemas.xmlsoap.org/wsdl/}input' contained
>  unexpected
>  attributes: 'message':
>  at
> 
>
com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
>  Source)
>  at
> 
> com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
>  Source)
>  at
> 
>
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
>  com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
>  Source)
>  at
> 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
>  at
> 
>
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
>  at
> 
>
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
>  at java.lang.Thread.run(Unknown Source)
>  
>  please help me
> 
> 
>   
> 
>   
>   
>

> _ 
> Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de
> stockage pour vos mails,
> photos et vidéos ! 
> Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com
> 
> 






_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


Axis C++ SSL problem

2005-05-20 Thread Popa Horia



 
 
    Hi 
there,
 
 
    
I have a Java Axis server and i'm trying to connect with a stub 
in C++. It works fine on http but it failes on https.
I see when I run the 
program in debug mode that the HttpSSLChannel is never loaded. 
The application 
failes at this line in the Stub: if 
(AXIS_SUCCESS != m_pCall->initialize(CPP_DOC_PROVIDER)) return pReturn;
    My Tomcat server 
is behind Apache 1.3.1 and i'm using MOD_JK to make those applications talk to 
each other. My guess is that the request never leaves my client. To prove this I 
have used a network sniffer and indeed, the client dies before any request is 
sent to the server. Maybe I don't have all the DDLs ?? I have installed openssl 

    
The client runs on Windows.
 
 
    
Any help is appeciated.
 
 
    
thanks
 
 
 
    



AW: cgi service 2

2005-05-20 Thread Ferruh Zamangoer
I also a newbie to Axis but I have see in your wsdl file 


Do you not need a  ???

Regards
Ferruh
  

-Ursprüngliche Nachricht-
Von: Omar Bennani [mailto:[EMAIL PROTECTED] 
Gesendet: Freitag, 20. Mai 2005 16:34
An: axis-user@ws.apache.org
Betreff: cgi service 2

 I wrote a webservie with delphi, it generate this
 wsdl
 file
 but when I try to generate java client interfaces
  
 java org.apache.axis.wsdl.WSDL2Java
 ITHitchHiker.wsdl
 
 he display me an error message:
 
 WSDLException (at
 /definitions/binding/operation[1]/input):
 faultCode=INVALID_WSDL: Element '{http:/
 /schemas.xmlsoap.org/wsdl/}input' contained
 unexpected
 attributes: 'message':
 at

com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
 at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
 at

org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
 at java.lang.Thread.run(Unknown Source)
 
 please help me







_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails,
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com



cgi service 2

2005-05-20 Thread Omar Bennani
 I wrote a webservie with delphi, it generate this
 wsdl
 file
 but when I try to generate java client interfaces
  
 java org.apache.axis.wsdl.WSDL2Java
 ITHitchHiker.wsdl
 
 he display me an error message:
 
 WSDLException (at
 /definitions/binding/operation[1]/input):
 faultCode=INVALID_WSDL: Element '{http:/
 /schemas.xmlsoap.org/wsdl/}input' contained
 unexpected
 attributes: 'message':
 at

com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
 Source)
 at

com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at
 com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
 Source)
 at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
 at

org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
 at

org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
 at java.lang.Thread.run(Unknown Source)
 
 please help me






_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com

ITHitchHiker.wsdl
Description: 732268295-ITHitchHiker.wsdl


Axis V1.0 - java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl

2005-05-20 Thread Tony Chen




Hi Everyone,

This is my first email to axis-user. We are using axis.jar V1.0 in order to
access a 3rd-party software. Our system is running fine in production until
a few days later, we got the following error:

java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl:
AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultString: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
 faultActor: null
 faultDetail:
  stackTrace: AxisFault
 faultCode: {http://xml.apache.org/axis/}Server.generalException
 faultString: Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
 faultActor: null
 faultDetail:

Error invoking operation:
java.lang.ClassCastException: org.apache.axis.attachments.AttachmentsImpl
  at org.apache.axis.client.Call.invoke(Call.java:1329)
  at com.actuate.schemas.ActuateSoapBindingStub.login(Unknown Source)
  at com.ibm.sis.util.ActuateHelper.getProxyForUser(Unknown Source)
...

I downloaded the source code for Axis v1.0 and the line 1329 of Call.java
is "return this.invoke(params);" in method "public Object invoke(QName
operationName, Object[] params)"

1324public Object invoke(QName operationName, Object[] params)
1325  throws java.rmi.RemoteException {
1326QName origOpName = this.operationName;
1327this.operationName = operationName;
1328try {
1329return this.invoke(params);
1330}
1331catch (java.rmi.RemoteException re) {
1332this.operationName = origOpName;
1333throw re;
1334}
1335catch (RuntimeException re) {
1336this.operationName = origOpName;
1337throw re;
1338}
1339catch (Error e) {
1340this.operationName = origOpName;
1341throw e;
1342}
1343} // invoke

Can anyone please give me a hand on why this is happening? The interesting
thing is everything runs okay in development and test systems. The
ClassCastException only happens in production system after it has been
running for a few day. To recover from the problem, we have to restart the
app server.

Best regards,

Tony Chen

SUN Certified Java 2 Programmer
IBM Certified Enterprise Developer - WebSphere V4.0 & V5.0
Canadian Securities Course (CSC) Certification

Securities Industry Services, IBM Global Services
phone: 416-478-5852
e-mail: [EMAIL PROTECTED]



Re: Timeout for service request.

2005-05-20 Thread Jeff
MyLocator locator = new MyLocator();
MyStub stub = (MyStub)locator.getPort(MyPortType.class);
stub.setTimeout(60);// 60 ms  =>  10 min


Jeff Lawson


- Original Message - 
From: <[EMAIL PROTECTED]>
To: 
Sent: Friday, May 20, 2005 10:21 AM
Subject: Timeout for service request.


Is there a way to change the read timeout on the Client side?  I have an
operation that can take multiple minutes to complete.  The following is the
failure that I get:


Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException

 faultSubcode:
 faultString: java.net.SocketTimeoutException: Read timed out
 faultActor:
 faultNode:
 faultDetail:

{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException
 :
 Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPS
ender.java:569)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:142)

at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)

---
Clifford Grimm
Centera Integration Architect
EMC Centera Engineering
EMC² 
Where Information Lives
* Office: 508-249-5159 (toll free 877-362-2887 x45159)
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED] 
*  Instant Messaging: [EMAIL PROTECTED]



Timeout for service request.

2005-05-20 Thread Grimm_Clifford
Is there a way to change the read timeout on the Client side?  I have an
operation that can take multiple minutes to complete.  The following is the
failure that I get:


Exception in thread "main" AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 
 faultSubcode:
 faultString: java.net.SocketTimeoutException: Read timed out
 faultActor:
 faultNode:
 faultDetail:
 
{http://xml.apache.org/axis/}stackTrace:java.net.SocketTimeoutException
 :
 Read timed out
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
at
org.apache.axis.transport.http.HTTPSender.readHeadersFromSocket(HTTPS
ender.java:569)
at
org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:142)

at
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg
y.java:32)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:2424)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke(Call.java:1804)

---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




Retrieve DIME response using chunked mode

2005-05-20 Thread Alessandro Busato
Hello,
I've created a client to the web service (gSoap toolkit) which return 
message is a base64binary.
The attachment is return in a  DIME chuncked mode .
I would want to read the attachment before reading the whole SOAP 
message in order by
to use it in a the chunked mode.
I have searched throught google, your mail-list archive for this axis 
capability but nothing.
have you any suggest for it?

Thanks in advance.
Alessandro


cgi service

2005-05-20 Thread Omar Bennani
I wrote a webservie with delphi, it generate this wsdl
file
but when I try to generate java client interfaces
 
java org.apache.axis.wsdl.WSDL2Java ITHitchHiker.wsdl

he display me an error message:

WSDLException (at
/definitions/binding/operation[1]/input):
faultCode=INVALID_WSDL: Element '{http:/
/schemas.xmlsoap.org/wsdl/}input' contained unexpected
attributes: 'message':
at
com.ibm.wsdl.util.xml.DOMUtils.throwWSDLException(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingInput(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.parseBindingOperation(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.parseBinding(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.parseDefinitions(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
at
com.ibm.wsdl.xml.WSDLReaderImpl.readWSDL(Unknown
Source)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:514)
at
org.apache.axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:493)
at
org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:360)
at java.lang.Thread.run(Unknown Source)

please help me






_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


xsi:type attribute not set correctly

2005-05-20 Thread David Kocher
Dear all,
We have a derived type from short in our schema such as:






When sending an instance document (using document/literal) over the wire 
 with axis (1.2), it is serialized as:

99
However, I this seems to be incorrect, as MyDerivedFromShort is derived 
(!) from xs:short but not xs:short itself.

When parsing this with Xerces it will throw
Validation error: LineNumber: 48 ColumnNumber: 2883 Message: 
cvc-elt.4.3: Type 'xsd:short' is not validly derived from the type 
definition, 'MyDerivedFromShortType', of element 'ns2:MyDerivedFromShort'.:

I just upgraded to 1.2 final; as far as I can tell this bug was not 
present in the latest release candidate.

Please let me know if I missed something or if there is any known 
workaround.

Thanks!
-dk


Questions about Scope in Axis 1.2.

2005-05-20 Thread Grimm_Clifford
In Application scope, are the requests to the service serialized to only one
running at a time? If not, I could use a little explanation of how the class
objects for the service are "shared" in a thread safe manner between
multiple sessions for any given service.

I am also assuming that the "Session" scope allows for multiple simultaneous
threads since each session will have it's own service object.

Also where can I find information about the "Factory" scope?  Is this fully
implemented in 1.2?

Thanks!!


---
Clifford Grimm 
Centera Integration Architect 
EMC Centera Engineering 
EMC²   
Where Information Lives 
* Office: 508-249-5159 (toll free 877-362-2887 x45159) 
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED]  
*  Instant Messaging: [EMAIL PROTECTED]




persistent connections call.invoke()

2005-05-20 Thread marc boguerra
Hi,

Is there a way to create persistent connections on the
client side by using axis call.invoke() method?

The last discussions on that subject on axis users
mailing list are from year 2003 and are not really
helping.

Thanks

Marc.







_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


Re: services

2005-05-20 Thread Tom Ziemer
Hi,
it sounds to me like you are missing a jar file. Maybe commons-discovery 
:o)? You might want to try to add this to your classpath along with the 
other jars distributed with axis.

Hope this helps,
Tom
Omar Bennani wrote:
hi
i'm trying to use axis/soap
 but when i try to compile thegoogle service i have
this error message:
java org.apache.axis.wsdl.WSDL2Java GoogleSearch.wsdl
Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/commons/discovery/tools/Discov
erSingleton
at
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at
org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)
at
org.apache.axis.i18n.ProjectResourceBundle.(ProjectResourceBundle.java:53)
at
org.apache.axis.i18n.MessagesConstants.(MessagesConstants.java:32)
at
org.apache.axis.utils.Messages.(Messages.java:36)
at
org.apache.axis.wsdl.WSDL2Java.(WSDL2Java.java:112)
what's the matter?


	
		
_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


services

2005-05-20 Thread Omar Bennani
hi
i'm trying to use axis/soap
 but when i try to compile thegoogle service i have
this error message:
java org.apache.axis.wsdl.WSDL2Java GoogleSearch.wsdl

Exception in thread "main"
java.lang.NoClassDefFoundError:
org/apache/commons/discovery/tools/Discov
erSingleton
at
org.apache.axis.components.logger.LogFactory$1.run(LogFactory.java:45)
at
java.security.AccessController.doPrivileged(Native
Method)
at
org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
at
org.apache.axis.components.logger.LogFactory.(LogFactory.java:33)
at
org.apache.axis.i18n.ProjectResourceBundle.(ProjectResourceBundle.java:53)
at
org.apache.axis.i18n.MessagesConstants.(MessagesConstants.java:32)
at
org.apache.axis.utils.Messages.(Messages.java:36)
at
org.apache.axis.wsdl.WSDL2Java.(WSDL2Java.java:112)

what's the matter?







_ 
Découvrez le nouveau Yahoo! Mail : 1 Go d'espace de stockage pour vos mails, 
photos et vidéos ! 
Créez votre Yahoo! Mail sur http://fr.mail.yahoo.com


Version Mismatch (Envelope schema)

2005-05-20 Thread Markus Krogemann
Dear List,

this may well be an often-asked question but I did not find any entries
in the FAQ-List or did not look under the right subject, so here goes:

>From a webservice server I receive a response envelope starting like this:

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

Now I think the namespace declaration is equivalent to a versioning, right?
My application asks Axis to deserialize the response and Axis throws an
exception like below. Is there a way to tell Axis how to deal with this
kind of response? I am using axis1.1 (have tried 1.2, but same result).

It works ok if the response starts like this:

http://www.w3.org/2001/12/soap-envelope";>

Thanks for any pointers,
Markus

AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}VersionMismatch
 faultSubcode:
 faultString: Version Mismatch
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:Version Mismatch
at
org.apache.axis.message.EnvelopeBuilder.startElement(EnvelopeBuilder.java:102)
at
org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
at
org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
at
org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(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 javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
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:424)
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:2765)
at org.apache.axis.client.Call.invoke(Call.java:2748)
at org.apache.axis.client.Call.invoke(Call.java:1902)



Re: org.apache.axis.ConfigurationException: No service named is available

2005-05-20 Thread Mike Haller
Hey all,
can anyone give me a hint on what I'm doing wrong?
java.lang.NullPointerException

org.apache.catalina.loader.WebappClassLoader.findResources(WebappClassLoader.java:956)
java.lang.ClassLoader.getResources(ClassLoader.java:851)

org.apache.commons.discovery.jdk.JDK12Hooks.getResources(JDK12Hooks.java:150)

org.apache.commons.discovery.resource.DiscoverResources$1.getNextResources(DiscoverResources.java:153)

org.apache.commons.discovery.resource.DiscoverResources$1.getNextResource(DiscoverResources.java:129)

org.apache.commons.discovery.resource.DiscoverResources$1.hasNext(DiscoverResources.java:116)

org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassNames(DiscoverNamesInFile.java:186)

org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.getNextClassName(DiscoverNamesInFile.java:170)

org.apache.commons.discovery.resource.names.DiscoverNamesInFile$1.hasNext(DiscoverNamesInFile.java:157)

org.apache.commons.discovery.resource.names.NameDiscoverers$1.getNextIterator(NameDiscoverers.java:143)

org.apache.commons.discovery.resource.names.NameDiscoverers$1.hasNext(NameDiscoverers.java:126)

org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.getNextResource(ResourceClassDiscoverImpl.java:159)

org.apache.commons.discovery.resource.classes.ResourceClassDiscoverImpl$1.hasNext(ResourceClassDiscoverImpl.java:147)

org.apache.axis.configuration.EngineConfigurationFactoryFinder$1.run(EngineConfigurationFactoryFinder.java:120)
java.security.AccessController.doPrivileged(Native Method)

org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:113)

org.apache.axis.configuration.EngineConfigurationFactoryFinder.newFactory(EngineConfigurationFactoryFinder.java:160)
org.apache.axis.client.Service.getEngineConfiguration(Service.java:812)
org.apache.axis.client.Service.getAxisClient(Service.java:103)
org.apache.axis.client.Service.(Service.java:112)
de.innovations.licenseserver.axis.Retriever.initCall(Retriever.java:73)
de.innovations.licenseserver.axis.Retriever.(Retriever.java:47)
org.apache.jsp.index_jsp._jspService(index_jsp.java:102)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
Mike Haller schrieb:
Hey all,
i'm trying to connect to a self-developed web service from a jsp page.
The web service is deployed in the same tomcat and is working.
I can successfully use Axis: http://../../ServiceName?method=getVersion
I can use a java console application to call getVersion() on my service.
However, trying to use the webservice from within a JSP page, it results 
in the following exception.

I think it has something to do with the client-config.wsdd.
Since the service is defined there.
It is found in standalone mode, but I think that he might have problems 
getting it in Tomcat. The classpath where client-config.wsdd resides, is 
added to the Tomcat classpath (in the Sysdeo Tomcat Eclipse Plugin).

If anyone has a tipp, a comment or anything. Please let me know :-)
regards
Mike

-CLIENT-CODE IN JSP:--
<% Retriever retriever = new Retriever(); %>
<%=retriever.getVersion();%>
-RETRIEVER:--
  Service service = new Service();
 // I gave him the service name here for testing,
 // but didn't help.
 //  new QName("","ServiceName");
  call = (Call) service.createCall();
  call.setOperationStyle(Style.WRAPPED);
  call.setOperationUse(Use.LITERAL);
  call.setUsername(username);
  call.setPassword(password);
  call.setTargetEndpointAddress(endpoint); // endpoint is correct
  call.setOperation("GetVersion");
  Object obj = call.invoke(new Object[] { someParameters });

VERSIONS---
Java 1.4.2_06, running on Windows 2000
Tomcat 5.0.30, running in Eclipse 3.1M7
Axis 1.2 final, running in same Tomcat
Struts 1.2, running in same Tomcat
-EXCEPTION:--
15:57:16,984 DEBUG [org.apache.axis.i18n.ProjectResourceBundle] 
org.apache.axis.i18n.resource::handleGetObject(engineFactory)
15:57:16,984 DEBUG 
[org.apache.axis.configuration.EngineConfigurationFactoryFinder] Got 
EngineFactory: 
org.apache.axis.configuration.EngineConfigurationFactoryDefault
15:57:16,984 DEBUG [org.apache.axis.AxisEngine] Enter: AxisEngine::init
15:57:17,000 DEBUG [org.apache.axis.AxisEngine] Exit: AxisEn