Re: namespace prefix question

2005-05-26 Thread Jan Delannoy
Thanks, Mark.  I'm afraid your suspicion is correct, though.  I looked
into this SerializationContext class and it looks like the right place
indeed, except that there doesn't seem to be a way to configure this
SerializationContext using the createCall - invoke way of calling a
service... Looks like I'll have to go with the XSLT transformation for
now.

Regards,
Jan


On 5/26/05, Mark Ford <[EMAIL PROTECTED]> wrote:
> The only place where I've seen something like this is in the
> SerializationContext.getPrefixForURI(String uri, String defaultPrefix). When
> calling this, you'll get the existing prefix mapped to the namespace or the
> default prefix you passed in. If you passed null for the default and there
> is no existing mapping, then you'll get a generated prefix of the form "ns"
> + counter.
> 
> This worked out well for me since I'm using the axis serialization classes
> directly as opposed to generated stubs. I'm not sure if it's much help to
> you though.
> 
> -Original Message-
> From: Jan Delannoy [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 25, 2005 12:46 PM
> To: axis-user@ws.apache.org
> Subject: namespace prefix question
> 
> Hi,
> 
> I'm using an Axis generated stub class to call a web service. The generated
> messages use namespace prefixes like ns1, ns2, ns3, etc.
> even when it's the same namespace.  Can I force Axis to use a namespace
> prefix of my choice for a given namespace? I'm using Axis
> 1.2 final.
> 
> Many thanks,
> Jan
> 
> 
>


remote procedure returning an array of object

2005-05-26 Thread Omar Bennani
Hi all
I have to write a java client to send and receive an
array of object but there is no XSD type to use with
call.addParameter() and call.setReturnType()
how can i do ? some one has an example ? should I use
wsdl2java with my wsdl file? what i have to do after
that?
help please






_ 
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: Intermediaries

2005-05-26 Thread Anne Thomas Manes
Typically what you do is create a WSDL whose location points to the
first intermediary, and then use WS-Addressing headers to indicate
further routing information.

Anne

On 5/26/05, Wayne Richards <[EMAIL PROTECTED]> wrote:
> Hi all, 
> Does amy one have ideas on how intermediaries actually work. I have done som
> reading and they see to do most of what I would want to do, but I cannot
> find concrete examples. 
> What service is called first, would it be the first header's uri? 
> How can you hide the final end point from the client. Requirement for
> security reasons and then have the intermediary change it to the correct end
> point. 
> Any idea or info appreciated. 
> Wayne
> 
> 
> 
>  Find local movie times and trailers on Yahoo! Movies.
>  
> 
>


Intermediaries

2005-05-26 Thread Wayne Richards
Hi all,
Does amy one have ideas on how intermediaries actually work. I have done som reading and they see to do most of what I would want to do, but I cannot find concrete examples.
What service is called first, would it be the first header's uri?
How can you hide the final end point from the client. Requirement for security reasons and then have the intermediary change it to the correct end point.
Any idea or info appreciated.
Wayne
Find local movie times and trailers on Yahoo! Movies.

1.2 can't handle a simple String[]???

2005-05-26 Thread Dan Armbrust
This seems to be a serious regression bug... But maybe I'm doing 
something wrong...


I was using 1.2 beta, and everything was working for me.  Now under 1.2 
final, the handling of arrays appears broken.


Here is the error:
org.apache.axis.AxisFaultorg.xml.sax.SAXException: Found character data 
inside an array element while deserializing


Here is the message that it choked on:
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

 
   
 xmlns:ns1="urn://hl7.org/CTSVAPI" 
xsi:type="ns1:ArrayOf_xsd_string">IdenticalIgnoreCase
 
StartsWithIgnoreCase
 
EndsWithIgnoreCase
 
ContainsPhraseIgnoreCase

   
 



What it is supposed to be returning is a simple String[]. 


A snippit  from the wsdl file:
  
   
  
  
   

 name="getSupportedMatchAlgorithmsReturn" type="xsd:string"/>


   
  


My build process is kind of complicated - my initial definition of the 
API is in IDL.  The idl is compiled into Java.  Then, my WSDL is 
generated by the java2wsdl tool, using the "-y WRAPPED"  option.


Then, I generate java using wsdl2java tool - and I implement my API 
using the resulting java classes.  One thing that I noted here, was that 
1.2 beta generated  "ArrayOf_X" classes  for each array object, while 
1.2 final does not generate any ArrayOf_X classes.


Finally I install the code into my Axis server, and try it out.  I can 
call most of the methods in my API - but anything that returns an Array 
throws an exception, as detailed above.


Thanks for any advice,

Dan









RE: ClassNotFound after deployment, but fine after tomcat restart

2005-05-26 Thread Hewitt, Christopher



Thanks 
for replying.
 
I 
should have also mentioned a strange problem I have related the to original 
post.
 
After 
deploying a service and restarting tomcat (restart #1), behavior is 
unexpected...
The 
?wsdl url is viewable in my web browser, however, my client application says 
that it can't process the wsdl when I try to create a Service 
object.
 
If I 
then restart tomcat again (restart #2), there are no more 
problems!  I simply can't understand how anything could be different after 
the 2nd restart of TC... but it appears that way.
 
Has 
anyone else ever had such a strange thing happen?
 
--Chris
 
[EMAIL PROTECTED]
 

  -Original Message-From: 
  [EMAIL PROTECTED] 
  [mailto:[EMAIL PROTECTED]Sent: Friday, May 20, 
  2005 1:13 PMTo: axis-user@ws.apache.orgSubject: RE: 
  ClassNotFound after deployment, but fine after tomcat 
  restart
  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.




Fw: HTTP 500 When try view WSDL / Ecedute method as test with Get

2005-05-26 Thread Tony Hamill



Hi (sorry for report I am at a total 
impasse),
    I am 
very new to AXIS. I have been able to get Tomcat (5.5) working and installed 
AXIS. I can verify the install by viewing the happyaxis.jsp page. The only jar I 
don't have is xmlsec which is optional. 
I can view the list of deployed services - 
AdminService and Version. I can also browse their WSDL. 
 
However in the install guide it calls the 
EchoHeaders.jws?method=list. When I try this I get a HTTP 500 Error "The page 
cannot be displayed". I get the same error if I try to browse the 
WSDL.
 
Also if I create a jws file from a java source 
file and put it into the axis folder I get the same error when I try to view its 
wsdl.
 
Finally I cannot se the 
SOAPMonitorApplet.
 
Is this a permission issue?
 
Any help greatly appreciated.
 
Thanks
 


client-config.wsdd revisited

2005-05-26 Thread Michael Oliver
I am having trouble with client-config.wsdd 

I found the following in the archives

---
Axis looks for client-config.wsdd in two places:

1) The current directory of the process

2) The classpath, in package org/apache/axis/client

Therefore if you put it at the root of your classpath, it won't find it
(that's a common mistake, and perhaps we should have it look there too).
If
it's in the directory from which you run your program, though, it should
find it just fine, likewise if it's in the right package on your
classpath
(which is why the version in axis.jar gets picked up if it can't find
another one).  We could also add some kind of debugging option to print
the
location of the client-config.wsdd which was found by a running
client

---

Thanks Glen for that posting.

My client-config.wsdd looks like this...


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












I have a Tomcat webapp "AJCS" and I have tried locating the above in

/AJCS/WEB-INF/classes/org/apache/axis/client/client-config.wsdd
/AJCS/WEB-INF/client-config.wsdd

With no effect, I also put it in the same jar as the
com.ajcs.salesforce.SOAPMonitor class at
/org/apache/axis/client/client-config.wsdd

The logs show it is finding the jar in /AJCS/WEB-INF/lib/ 

The class is a simple log handler that looks like...

public class SOAPMonitor extends BasicHandler {
private static Log log = LogFactory.getLog(SOAPMonitor.class);

public void invoke(MessageContext msgContext) throws AxisFault {
if (msgContext.getPastPivot()) {
Message inMsg = msgContext.getRequestMessage();
Message outMsg =
msgContext.getResponseMessage();

if (inMsg != null) {
log.debug("**");
log.debug(":::SOAP Request:::");
log.debug("**");
log.debug(inMsg.getSOAPPartAsString());
}

if (outMsg != null) {
log.debug("**");
log.debug(":::SOAP Response:::");
log.debug("vv");
log.debug(outMsg.getSOAPPartAsString());
log.debug("^^");
}
}
}

public void undo(MessageContext msgContext) {
}
}

So what else should I try?

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: Undeploying issues

2005-05-26 Thread Kador, Daniel
Nevermind.  I've solved the issue.  Silly oversight on my part.
Apologies for cluttering up the list.

-Original Message-
From: Kador, Daniel 
Sent: Thursday, May 26, 2005 1:20 PM
To: axis-user@ws.apache.org
Subject: Undeploying issues


I've created a very simple web-service.  I can deploy and test it with
no problems, but the problem arises when I try to undeploy it.  The
AdminClient tool throws up this error:

Exception: AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.apache.axis.ConfigurationException:
java.lang.IllegalStateException: removeAttribute: Session already
invalidated

This makes me nervous, as something is obviously going wrong, but
deployment and testing proceeded without any (visible) issues.  I've
checked both deploy.wsdd and undeploy.wsdd and didn't see any obvious
errors, but I'm certainly no expert.  I've attached both.  Any
suggestions?

Thanks,
Dan


Undeploying issues

2005-05-26 Thread Kador, Daniel
I've created a very simple web-service.  I can deploy and test it with
no problems, but the problem arises when I try to undeploy it.  The
AdminClient tool throws up this error:

Exception: AxisFault
 faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode:
 faultString: org.apache.axis.ConfigurationException:
java.lang.IllegalStateException: removeAttribute: Session already
invalidated

This makes me nervous, as something is obviously going wrong, but
deployment and testing proceeded without any (visible) issues.  I've
checked both deploy.wsdd and undeploy.wsdd and didn't see any obvious
errors, but I'm certainly no expert.  I've attached both.  Any
suggestions?

Thanks,
Dan


undeploy.wsdd
Description: undeploy.wsdd


deploy.wsdd
Description: deploy.wsdd


RE: Using Axis With Weblogic

2005-05-26 Thread Mark Ford
Don't convert, rather expose the existing EJB as a web service through the
WS4EE / JSR 109 specification. Check your weblogic manuals for information
on this. They must have some working examples.

-Original Message-
From: Chandu Koppella [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 26, 2005 11:38 AM
To: axis-user@ws.apache.org
Subject: Using Axis With Weblogic

Hi , 

 Please Please  suggest me the possible solutionsI have been looking for
it from past 2 weeks with out any definite solution... 

I am assigned to convert an EJB packed as jar file in to web services ...my
application server is weblogic...I started with servicegen utility in
weblogic to convert the EJB to services but some of the methods in EJB has
return type java.util.Map which is not supported by servicegen so i had to
switch my plan to using Axis along with weblogic... 

Is this possible with Axis+weblogic...I have gone through some tutorials
where they explained how to use AXIS to convert java classes to web services
but not about the EJBs that are packed in to jar files.Please point me to
the tutorial if there is any...or please give me some clues to start
withYour Help is HIGHLY APPRECIATED. 

Thanks 

Chandu 

__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 



ANNOUNCE: WSABI For Axis v1.0 RC2 now available

2005-05-26 Thread mbarton
Fellow Axis Users!!

WSABI For Axis 1.0 RC2, a new version of the leading open source Web services
management (WSM) product has been released. It is now available in source and
binary form at Source Forge. This is a Release Candidate snapshot of the latest
development tree, adding new features and fixing recently discovered bugs.

The latest version of WSABI For Axis includes a brand new manage module allowing
users to better control the lifecycle of their web services. Also included in
this release is an upgrade in the performance charting feature and improvements
to our 1-Click Security Feature.

This is a Release Candidate snapshot of the latest development tree,
adding new features and fixing recently discovered bugs.

Live Demo:http://demo.wsabi.org
Download :http://sourceforge.net/projects/wsabi4axis

---

NOTE: This is Release Candidate release. This build passes most of our
test suite and fixes a lot of reported bugs found in the previous
versions. However, please be aware that this is not a production WSABI
release. There are still some open issues and critical bugs that affect
this release as well.

We are actively working to fix these issues and will make a new release
where these are fixed as soon as possible. This snapshot gives you an
opportunity for testing and evaluating the upcoming WSABI for Axis
version 1.0.



Using Axis With Weblogic

2005-05-26 Thread Chandu Koppella

Hi , 
 Please Please  suggest me the possible solutionsI have been looking for it from past 2 weeks with out any definite solution... 

I am assigned to convert an EJB packed as jar file in to web services ...my application server is weblogic...I started with servicegen utility in weblogic to convert the EJB to services but some of the methods in EJB has return type java.util.Map which is not supported by servicegen so i had to switch my plan to using Axis along with weblogic... 
Is this possible with Axis+weblogic...I have gone through some tutorials where they explained how to use AXIS to convert java classes to web services but not about the EJBs that are packed in to jar files.Please point me to the tutorial if there is any...or please give me some clues to start withYour Help is HIGHLY APPRECIATED. 

Thanks 
Chandu __Do You Yahoo!?Tired of spam?  Yahoo! Mail has the best spam protection around http://mail.yahoo.com 

RE: namespace prefix question

2005-05-26 Thread Mark Ford
The only place where I've seen something like this is in the
SerializationContext.getPrefixForURI(String uri, String defaultPrefix). When
calling this, you'll get the existing prefix mapped to the namespace or the
default prefix you passed in. If you passed null for the default and there
is no existing mapping, then you'll get a generated prefix of the form "ns"
+ counter.

This worked out well for me since I'm using the axis serialization classes
directly as opposed to generated stubs. I'm not sure if it's much help to
you though.

-Original Message-
From: Jan Delannoy [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 25, 2005 12:46 PM
To: axis-user@ws.apache.org
Subject: namespace prefix question

Hi,

I'm using an Axis generated stub class to call a web service. The generated
messages use namespace prefixes like ns1, ns2, ns3, etc.
even when it's the same namespace.  Can I force Axis to use a namespace
prefix of my choice for a given namespace? I'm using Axis
1.2 final.

Many thanks,
Jan




Re: namespace prefix question

2005-05-26 Thread Jan Delannoy
Yes, in theory they are equivalent.  The problem is I'm using a kind
of scripting tool that allows me to define variables using XPath
expressions, but for some reason this tool expects an explicit
namespace prefix... So I can only see two solutions: 1) make the
namespaces explicit using an intermediary XSLT transformation, or 2)
make Axis generate explicit namespaces.  I'd rather go for 2...

Regards,
Jan


On 5/27/05, Tom Oinn <[EMAIL PROTECTED]> wrote:
> Jan Delannoy wrote:
> > Hi again,
> 
> > I would really appreciate it if someone could help me out with this,
> > even just letting me know that this isn't possible would already be
> > helpfull...
> 
> As far as I can tell the two fragments you show above are equivalent -
> is there any particular reason you want one form rather than the other?
> If you load either into any sensible XML object model you'll get
> identical results I believe, or am I missing something...?
> 
> Tom
>


Re: namespace prefix question

2005-05-26 Thread Tom Oinn

Jan Delannoy wrote:

Hi again,



I would really appreciate it if someone could help me out with this,
even just letting me know that this isn't possible would already be
helpfull...


As far as I can tell the two fragments you show above are equivalent - 
is there any particular reason you want one form rather than the other? 
If you load either into any sensible XML object model you'll get 
identical results I believe, or am I missing something...?


Tom


Re: Different wsdl2java behaviour between 1.2Beta and 1.2Rel Axis (Java version)

2005-05-26 Thread Jan Delannoy
Have you tried using the -w (or --wrapArrays) option of WSDL2Java?
Apparently this is only documented in the documentation that comes
with the download, I can't seem to find this on the Axis web site...
The documentation says:

-
 -w, --wrapArrays

When processing a schema like this:


 
  
   
  
 


The default behavior (as of Axis 1.2 final) is to map this XML
construct to a Java String array (String[]). If you would rather a
specific JavaBean class (i.e. ArrayOfString) be generated for these
types of schemas, you may specify the -w or --wrapArrays option.
-

Regards,
Jan




On 5/26/05, MacKinnon, Tim <[EMAIL PROTECTED]> wrote:
>  
> 
> I downloaded the Axis 1.2 Final Java release from
> http://www.apache.org/dyn/closer.cgi/ws/axis/1_2 the other
> day. I wanted to upgrade from the 1.2 Beta version that I have been using
> for the past few months. I replaced my old Axis jars with the newest ones
> and updated some classpath info. 
> 
> With the 1.2 Final release, I am getting some different behaviour with my
> wsdl2java stub generation. 
> 
> It seems that any object comprised of an array of subobjects is not
> generating a stub. 
> 
> 1.2 Beta 
> 
> With debugging turned on : 
> 
> [axis-wsdl2java]
> org.apache.axis.wsdl.symbolTable.DefinedType 
> [axis-wsdl2java] QName: {http://tempuri.org/ns.xsd}CardInfoList 
> [axis-wsdl2java] name: 
> com.ciena.cvas.client.soap.beans.CardInfoList 
> [axis-wsdl2java] isReferenced?  true 
> [axis-wsdl2java] Class:
> org.apache.axis.wsdl.symbolTable.DefinedType 
> [axis-wsdl2java] Base?: false 
> [axis-wsdl2java] Undefined?:false 
> [axis-wsdl2java] isSimpleType?  false 
> [axis-wsdl2java] Node:  [complexType: null] 
> [axis-wsdl2java] Dims:  
> [axis-wsdl2java] RefType:   null 
> 
> [axis-wsdl2java] Generating
> D:\workspaceCVAS\Axis1.2Bug\1.2Beta\client\build\axis\src\com\ciena\cvas\client\soap\beans\CardInfoList.java
> 
> 1.2 Rel 
> 
> With debugging turned on : 
> 
> [axis-wsdl2java]
> org.apache.axis.wsdl.symbolTable.DefinedType 
> [axis-wsdl2java] QName: {http://tempuri.org/ns.xsd}CardInfoList 
> [axis-wsdl2java] name: 
> com.ciena.cvas.client.soap.beans.CardInfo[] 
> [axis-wsdl2java] isReferenced?  true 
> [axis-wsdl2java] Class:
> org.apache.axis.wsdl.symbolTable.DefinedType 
> [axis-wsdl2java] Base?: false 
> [axis-wsdl2java] Undefined?:false 
> [axis-wsdl2java] isSimpleType?  false 
> [axis-wsdl2java] Node:  [complexType: null] 
> [axis-wsdl2java] Dims:  [] 
> [axis-wsdl2java] isOnlyLiteralReferenced: false 
> [axis-wsdl2java] RefType: 
> 
> No CardInfoList stub file generation. 
>  
> 
> I was hoping someone could help me out with this. I have consulted the Axis
> Tools Reference page -
> http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference
> to see if there is some compile option that I could be missing but I did not
> see anything here. I am using Ant 1.6.1 and jre 1.4.2_07 for my compiles. 
> 
> I have created a zip file with the following structure : 
> 
> 1.2 Beta 
> | 
> --> Build 
> |  | 
> |  --> build.xml 
> | 
> --> Axis 
>| 
>--> 1.2 Beta Jars 
> | 
> | 
> --> ns.wsdl 
> 
> 1.2 Rel 
> | 
> -->Build 
> |  | 
> |  --> build.xml 
> | 
> --> Axis 
> |  | 
> |  --> 1.2 Rel Jars 
> | 
> --> ns.wsdl 
> 
> You can simply run 'ant' in the build directory to see the different
> behaviour between the two sets of code. I can send this to someone directly
> if they can possibly help. I don't want to attach it to this mail because it
> is a little large. 
> 
> Thanks in advance for any help. 
> 
> Tim MacKinnon 
>


Re: namespace prefix question

2005-05-26 Thread Jan Delannoy
Hi again,

Another question about namespaces in Axis: can I force Axis to use
explicit namespace prefixes instead of default namespaces? What I
would like is something like this:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:product="http://www.example.com/product";>

TEST1234



instead of:


http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>

http://www.example.com/product";>TEST1234



This last message is what Axis is generating for me now.

I would really appreciate it if someone could help me out with this,
even just letting me know that this isn't possible would already be
helpfull...

Many thanks,
Jan

PS: My old question (see below) is also still open...


On 5/25/05, Jan Delannoy <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm using an Axis generated stub class to call a web service. The
> generated messages use namespace prefixes like ns1, ns2, ns3, etc.
> even when it's the same namespace.  Can I force Axis to use a
> namespace prefix of my choice for a given namespace? I'm using Axis
> 1.2 final.
> 
> Many thanks,
> Jan
>


Different wsdl2java behaviour between 1.2Beta and 1.2Rel Axis (Java version)

2005-05-26 Thread MacKinnon, Tim
Title: Different wsdl2java  behaviour between 1.2Beta and 1.2Rel Axis (Java version)






I downloaded the Axis 1.2 Final Java release from http://www.apache.org/dyn/closer.cgi/ws/axis/1_2 the other day. I wanted to upgrade from the 1.2 Beta version that I have been using for the past few months. I replaced my old Axis jars with the newest ones and updated some classpath info.

With the 1.2 Final release, I am getting some different behaviour with my wsdl2java stub generation.


It seems that any object comprised of an array of subobjects is not generating a stub.


1.2 Beta


With debugging turned on :


[axis-wsdl2java] org.apache.axis.wsdl.symbolTable.DefinedType

[axis-wsdl2java] QName: {http://tempuri.org/ns.xsd}CardInfoList

[axis-wsdl2java] name:  com.ciena.cvas.client.soap.beans.CardInfoList

[axis-wsdl2java] isReferenced?  true

[axis-wsdl2java] Class: org.apache.axis.wsdl.symbolTable.DefinedType

[axis-wsdl2java] Base?: false

[axis-wsdl2java] Undefined?:    false

[axis-wsdl2java] isSimpleType?  false

[axis-wsdl2java] Node:  [complexType: null]

[axis-wsdl2java] Dims:  

[axis-wsdl2java] RefType:   null


[axis-wsdl2java] Generating D:\workspaceCVAS\Axis1.2Bug\1.2Beta\client\build\axis\src\com\ciena\cvas\client\soap\beans\CardInfoList.java

1.2 Rel


With debugging turned on :


[axis-wsdl2java] org.apache.axis.wsdl.symbolTable.DefinedType

[axis-wsdl2java] QName: {http://tempuri.org/ns.xsd}CardInfoList

[axis-wsdl2java] name:  com.ciena.cvas.client.soap.beans.CardInfo[]

[axis-wsdl2java] isReferenced?  true

[axis-wsdl2java] Class: org.apache.axis.wsdl.symbolTable.DefinedType

[axis-wsdl2java] Base?: false

[axis-wsdl2java] Undefined?:    false

[axis-wsdl2java] isSimpleType?  false

[axis-wsdl2java] Node:  [complexType: null]

[axis-wsdl2java] Dims:  []

[axis-wsdl2java] isOnlyLiteralReferenced: false

[axis-wsdl2java] RefType:


No CardInfoList stub file generation.



I was hoping someone could help me out with this. I have consulted the Axis Tools Reference page - http://ws.apache.org/axis/java/reference.html#WSDL2JavaReference to see if there is some compile option that I could be missing but I did not see anything here. I am using Ant 1.6.1 and jre 1.4.2_07 for my compiles.

I have created a zip file with the following structure :


1.2 Beta

|

--> Build

|  |

|  --> build.xml

|

--> Axis

   |

   --> 1.2 Beta Jars

|

|

--> ns.wsdl


1.2 Rel

|

-->Build

|  |

|  --> build.xml

|

--> Axis

|  |

|  --> 1.2 Rel Jars

|

--> ns.wsdl


You can simply run 'ant' in the build directory to see the different behaviour between the two sets of code. I can send this to someone directly if they can possibly help. I don't want to attach it to this mail because it is a little large.

Thanks in advance for any help.


Tim MacKinnon






Callling MapPoint WebService

2005-05-26 Thread Sebastien Arbogast
Hi,

I'm trying to figure out a way to access a location web service for my
web application. I just discovered MapPoint Web Service so I got an
evaluation account and I tried to execute the last sample on this page
: http://demo.mappoint.net/, which uses Axis 1.2 RC2

I got the application running but it couldn't connect to the Web
Service and displayed an error dialog box. I just added a debugging
instruction to know what was this exception and I got the following
exception stack trace :

AxisFault
faultCode: {http://xml.apache.org/axis/}Server.userException
faultString: java.io.IOException
faultActor: null
faultDetail:
stackTrace: java.io.IOException
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(RenderServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
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:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.net.ProtocolException: Server redirected too many times (20)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:809)
at 
sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:1465)
at java.net.URLConnection.getContentType(URLConnection.java:382)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:94)
... 29 more


java.io.IOException
at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:63)
at 
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:182)
at org.apache.axis.client.Call.invokeEngine(Call.java:2113)
at org.apache.axis.client.Call.invoke(Call.java:2102)
at org.apache.axis.client.Call.invoke(Call.java:1851)
at org.apache.axis.client.Call.invoke(Call.java:1777)
at org.apache.axis.client.Call.invoke(Call.java:1315)
at net.mappoint.s.RenderServiceSoapStub.getMap(RenderServiceSoapStub.java:986)
at MapDisplay.renderMap(MapDisplay.java:295)
at MapDisplay.reshape(MapDisplay.java:255)
at java.awt.Component.setBounds(Component.java:1664)
at java.awt.BorderLayout.layoutContainer(BorderLayout.java:691)
at java.awt.Container.layout(Container.java:1020)
at java.awt.Container.doLayout(Container.java:1010)
at java.awt.Container.validateTree(Container.java:1092)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validateTree(Container.java:1099)
at java.awt.Container.validate(Container.java:1067)
at java.awt.Window.show(Window.java:461)
at MainWindow.main(MainWindow.java:40)
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:324)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:7Cool
Caused by: java.io.IOException
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:602)
at SimpleHTTPSender.readFromConnection(SimpleHTTPSender.java:99)
at SimpleHTTPSender.invoke(SimpleHTTPSender.java:60)
... 28 more
Caused by: java.net.ProtocolException: Se

Re: Axis vs Other App Containers

2005-05-26 Thread Mark Hansen
Axis is a great choice because if you switch
containers again, you can stick with Axis.  Also, it
is a lot simpler than dealing with all the overhead of
managing and deploying web services in a big bulky
J2EE container ... (my personal bias ...).

However, if you must manage your web services within
the container, say as EJBs, then have a look at the
the WSEE v1.1 specification (JSR-109).  Web Services
built and packaged this way should run in any J2EE
container.  Here is an article about it ->
http://www-106.ibm.com/developerworks/webservices/library/ws-jsrart/

P.S.  you shouldn't have to regenerate the skeleton
classes for each new container as long as the entire
application - including the generated classes - are
packaged in your EAR.  Of course, if you change your
WSDL and regnerate using the tools from the new
container, then the results will be incompatible with
the older container's stuff.

--- Kiran Kumar <[EMAIL PROTECTED]> wrote:
> Hello friends, I need to provide some webservices in
> my web-application. Currently this application is on
> oracle 9iAS. They have plans to migrate this
> application on weblogic 8.1, but in near future. 
>  
> I want to build the web services such a way that
> when I migrate to a different container, I don't
> have to change any code. 
>  
> But once I generate the skeleton classes (server
> side) using 9iAS tools (Jbuilder..), I will edit the
> "impl" classes to call my business logic.. When I
> eventually switch to a different container, I will
> again have to generate the skeleton classes and may
> need to edit the impl classes and they may generate
> different class names also.
>  
> So If I choose Axis, I won't have these problems. I
> just have to deploy the war file without changing
> any code. But I will be limited to what Axis
> provides, I will not be able to utilize any extra
> features provided by the container.
>  
> I want to take your opinion whether to go with Axis
> in my scenario or put the effort to configure the
> web services when I switch to a different container.
>  
> Sorry for long mail. I appreciate your help and
> time.
>  
> Thanks
> Kiran
> 
> 
> 
> This e-mail, and any attachments thereto, is
> confidential and is intended only for the
> individual(s) named.  If you are not the intended
> recipient, please let us know by e-mail reply and
> delete it from your system; do not copy/save this
> e-mail or disclose its contents to anyone.  E-mail
> transmissions cannot be guaranteed to be secure or
> error-free as the transmission could be interrupted,
> corrupted, lost, destroyed, altered, arrive late or
> contain viruses.  ObjectWave does not accept
> liability for any errors or omissions in the
> contents of this e-mail which arise as a result of
> e-mail transmission.  The views expressed in this
> e-mail do not necessarily reflect those of
> ObjectWave or its affiliates.
> 
> 
> 
> 
> 


Axis vs Other App Containers

2005-05-26 Thread Kiran Kumar

Hello friends, I 
need to provide some webservices in my web-application. Currently this 
application is on oracle 9iAS. They have plans to migrate this application on 
weblogic 8.1, but in near future. 
 
I want to build the web services such a 
way that when I migrate to a different container, I don't have to 
change any code. 
 
But once I generate the skeleton 
classes (server side) using 9iAS tools (Jbuilder..), I will edit the 
"impl" classes to call my business logic.. When I eventually 
switch to a different container, I will again have to generate the skeleton 
classes and may need to edit the impl classes and they may generate different 
class names also.
 
So If I choose Axis, I won't have these 
problems. I just have to deploy the war file without changing any code. But I 
will be limited to what Axis provides, I will not be able to utilize any 
extra features provided by the container.
 
I want to take your opinion whether to go 
with Axis in my scenario or put the effort to configure the web services when I 
switch to a different container.
 
Sorry for long mail. I appreciate your help 
and time.
 
Thanks
Kiran

This e-mail, and any attachments thereto, is confidential and is intended only for the individual(s) named.  If you are not the intended recipient, please let us know by e-mail reply and delete it from your system; do not copy/save this e-mail or disclose its contents to anyone.  E-mail transmissions cannot be guaranteed to be secure or error-free as the transmission could be interrupted, corrupted, lost, destroyed, altered, arrive late or contain viruses.  ObjectWave does not accept liability for any errors or omissions in the contents of this e-mail which arise as a result of e-mail transmission.  The views expressed in this e-mail do not necessarily reflect those of ObjectWave or its affiliates.


RE: AxisFault: Did not understand "MustUnderstand" header(s)

2005-05-26 Thread Anand, Rajesh
Title: Message


	
		
    Can you paste your full soap msg which goes out to the 
wire and your java pgm which builds this soap msg. 
 
    rgds,
Rajesh 
Anand Email:[EMAIL PROTECTED] 

  
  -Original Message-From: Manuel Nicolas 
  Ortuño [mailto:[EMAIL PROTECTED] Sent: 26 May 2005 
  14:07To: axis-user@ws.apache.orgSubject: AxisFault: Did 
  not understand "MustUnderstand" header(s)
  
  I have a client of web service 
  that use axis api. When I call the service I get the exception 
  
   
  AxisFault
   faultCode: 
  {http://schemas.xmlsoap.org/soap/envelope/}MustUnderstand
   faultSubcode: 
  
   faultString: 
  Did not understand "MustUnderstand" 
  header(s):
   faultActor: 
  
   faultNode: 
  
   faultDetail: 
  
    
  {http://xml.apache.org/axis/}stackTrace:
    
  at 
  org.apache.axis.handlers.soap.MustUnderstandChecker.invoke(MustUnderstandChecker.java:96)
    
  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)
    
  at es.carm.ctyc.wc.CSigepal.m1.main(m1.java:66)
   
  Axis 
  1.2
  j2sdk1.4.2_08
   
  …
  Service service = new 
  Service();
  Call call = 
  (org.apache.axis.client.Call) 
  service.createCall();
  …
  call.invoke…
   
  I’d see xml that the service web 
  return and the problem is 
  With axis 1.1 not problem but with 1.2 throw 
  exception
  Please help, how I solve 
  this?
  Thx
		
			
		
		If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
		
			
		


AxisFault: Did not understand "MustUnderstand" header(s)

2005-05-26 Thread Manuel Nicolas Ortuño








I have a client of web service that use axis api.
When I call the service I get the exception 

 

AxisFault

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

 faultSubcode: 

 faultString: Did not understand
"MustUnderstand" header(s):

 faultActor: 

 faultNode: 

 faultDetail: 

 
{http://xml.apache.org/axis/}stackTrace:

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

  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)

 
at es.carm.ctyc.wc.CSigepal.m1.main(m1.java:66)

 

Axis 1.2

j2sdk1.4.2_08

 

…

Service service = new Service();

Call call = (org.apache.axis.client.Call)
service.createCall();

…

call.invoke…

 

I’d see xml that the service web return and the
problem is 

With axis 1.1 not problem but with 1.2 throw exception

Please help, how I solve this?

Thx








RE: weblogic 8.1 and axis 1.2

2005-05-26 Thread Kiran Kumar
Hi Anish,
 
There is nothing specific you need to configure when you are using Axis on a 
different container (other than tomcat). Think Axis as a web-application, you 
can war it and deploy it on any container, it should work right out of the box. 
 
But with weblogic 8.1 there is a conflict between webservices.jar and saaj.jar. 
There are 2 ways to solve this problem. 
 
(a) put the following entry in weblogic.xml of your Axis web-app.
 
true
  
(b) If above one doesn't workput saaj.jar before webservices.jar in 
startWeblogic.cmd's classpath variable. But this will impact other apps.
 
I tried Axis 1.2 with weblogic 8.1 and Jboss, and it was working fine.
 
Thanks
Kiran



From: Anish Jindal [mailto:[EMAIL PROTECTED]
Sent: Thu 5/26/2005 6:40 AM
To: axis-user@ws.apache.org
Subject: weblogic 8.1 and axis 1.2



Hi, 
i have weblogic 8.1 and axis 1.2 on my comp. and i knwo how to run axis with 
tomcat...but i want to run it with weblogic and Jrun. 
so please give me some tutorial for configuring my weblogic server for axis and 
also for Jrun 
Thank You 
Anish Jindal



This e-mail, and any attachments thereto, is confidential and is intended only 
for the individual(s) named.  If you are not the intended recipient, please let 
us know by e-mail reply and delete it from your system; do not copy/save this 
e-mail or disclose its contents to anyone.  E-mail transmissions cannot be 
guaranteed to be secure or error-free as the transmission could be interrupted, 
corrupted, lost, destroyed, altered, arrive late or contain viruses.  
ObjectWave does not accept liability for any errors or omissions in the 
contents of this e-mail which arise as a result of e-mail transmission.  The 
views expressed in this e-mail do not necessarily reflect those of ObjectWave 
or its affiliates.




<>

RE: Weblogic 8.1.2 and Axis 1.2

2005-05-26 Thread Ayers, Sam
Thanks, Aoife!

I hate to be a hard case, but please also mention in that BEA ticket that a 
reply to this list might also prevent them from losing a chunk of their 
customer base :-)

Sam

-Original Message-
From: Aoife Kavanagh (Ext. 987) [mailto:[EMAIL PROTECTED]
Sent: Thursday, May 26, 2005 9:02 AM
To: 'axis-user@ws.apache.org'
Subject: Re: Weblogic 8.1.2 and Axis 1.2


Hi, 

Just to mention that I eventually got my beans working with Axis 1.2 and
Weblogic
I originally tested adding just saaj.jar to the front of the classpath used
by starting the weblogic server but this did not help.  Following some
further tweaking of configuration I retried this and it now works.  I do
have the 
true
/container-descriptor>
entry in my weblogic.xml and I udpated my  entries in
weblogic-application.xml

This is hardly a desirable long term solution because of the fact that such
a workaround is required.  As I have an open case with BEA I mentioned that
a comment on this list about this issue would probably be appreciated.

Anyway, thanks to those who came forward with suggestions.

Aoife



**
The information contained in this e-mail is confidential, may be privileged and 
is intended only for the user of the recipient named above.  If you are not the 
intended recipient or a representative of the intended recipient, you have 
received this e-mail in error and must not copy, use or disclose the contents 
of this e-mail to anybody else.  If you have received this e-mail in error, 
please notify the sender immediately by return e-mail and permanently delete 
the copy you received.  This e-mail has been swept for computer viruses.  
However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
**

  
Learn more about Paymentech's payment processing services at www.paymentech.com
THIS MESSAGE IS CONFIDENTIAL.  This e-mail message and any attachments are 
proprietary and confidential information intended only for the use of the 
recipient(s) named above.  If you are not the intended recipient, you may not 
print, distribute, or copy this message or any attachments.  If you have 
received this communication in error, please notify the sender by return e-mail 
and delete this message and any attachments from your computer.
..


Re: Weblogic 8.1.2 and Axis 1.2

2005-05-26 Thread Aoife Kavanagh (Ext. 987)
Hi, 

Just to mention that I eventually got my beans working with Axis 1.2 and
Weblogic
I originally tested adding just saaj.jar to the front of the classpath used
by starting the weblogic server but this did not help.  Following some
further tweaking of configuration I retried this and it now works.  I do
have the 
true
/container-descriptor>
entry in my weblogic.xml and I udpated my  entries in
weblogic-application.xml

This is hardly a desirable long term solution because of the fact that such
a workaround is required.  As I have an open case with BEA I mentioned that
a comment on this list about this issue would probably be appreciated.

Anyway, thanks to those who came forward with suggestions.

Aoife



**
The information contained in this e-mail is confidential, may be privileged and 
is intended only for the user of the recipient named above.  If you are not the 
intended recipient or a representative of the intended recipient, you have 
received this e-mail in error and must not copy, use or disclose the contents 
of this e-mail to anybody else.  If you have received this e-mail in error, 
please notify the sender immediately by return e-mail and permanently delete 
the copy you received.  This e-mail has been swept for computer viruses.  
However, you should carry out your own virus checks. 
Registered in Ireland, No. 205721.  http://www.FINEOS.com
**



RE: Weblogic 8.1.2 and Axis 1.2

2005-05-26 Thread Ayers, Sam
Thanks, Bob.  This is very useful and informative information.

Since BEA Weblogic is a significant player in the app container space, and as 
there are many folks out here who need to use both weblogic app serves and 
apache axis web applications, is there anyone from BEA listening in here who 
can comment about this?

While putting the jar files ahead of weblogic's jar files might fix the Axis 
problem, it will potentially break weblogic, or at least create a situation 
where BEA support might be invalidated (as this is likely not a "supported" 
configuration).

So, can someone from BEA comment?  This is important to a lot of folks out 
here, including some big players who might potentially have to deploy to 
alternate app server platforms, if there is no supported solution.

Thanks,
Sam

-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 7:38 PM
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Sam,

It seems to be working OK. I can access (most) soap providers without
problem. I say most because I will be submitting a question to the list soon
about some problems my client calls are having, but I don't think the
problems are related to using Axis the way that I am. I'm only working in
SOAP client mode, not sure what would happen if I were to setup a service.

I do plan to use weblogic soap services at some point, but haven't needed to
yet.

--BobC


-Original Message-
From: Ayers, Sam [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 10:42 AM
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Interesting...

Doesn't putting the jar files ahead in the startweblogic classpath cause the
weblogic server to pick up the classes in the axis jar files (instead of
usting its own)?

If so, does weblogic seem to behave OK running the axis classes instead of
its own? Or, do you just avoid using weblogic web services if you use this
technique?

Sam

-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 1:27 PM
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Aoife,

I was NOT able to get it to work with the web.xml having this:


true
/container-descriptor>

If you remove it, and place the axis jars like I mentioned below, then it
should work.

--BobC

-Original Message-
From: Aoife Kavanagh (Ext. 987) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 8:02 AM
To: 'axis-user@ws.apache.org'
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Bob,

Thanks for the reply but unfortunately  no joy.
I did as you suggested but that just introduced problems for my
initialisation servlet.
Once change since I originally posted is that I replaced the
NoClassDefFoundError with a NullPointerException by also deploying the
wsdl4j.jar along with the other five jars (axis.jar saaj.jar
commons-logging.jar commons-discovery.jar jaxrpc.jar) in my WEB-INF\lib
directory.
My server now appears to get further that it did before with my client
getting back an AxisFault with a faultCode of Server.userException.  The
start of the faultDetail is
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at
org.apache.axis.message.MessageElement.addTextNode(Ljava.lang.String;)Ljavax
.xml.soap.SOAPElement;(MessageElement.java:1387)
at
org.apache.axis.message.SOAPHandler.addTextNode()V(SOAPHandler.java:148)
at
org.apache.axis.message.SOAPHandler.endElement(Ljava.lang.String;Ljava.lang.
String;Lorg.apache.axis.encoding.DeserializationContext;)V(SOAPHandler.java:
112)
at org.apache.axis.encoding.DeserializationContext.endElement
Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(DeserializationCont
ext.java:1087)
at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement
.

I did find in JIRA a bug with Axis 1.2RC2 that seems similar but from what i
can read that should now be fixed so I'm really at a loss at how to proceed.

I don't want to add an APP-INF directory to my deployed ear file as that is
weblogic specific and I want the structure of my file to be generic so it
can be deployed on either weblogic or websphere.

Aoife

-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: 25 May 2005 15:01
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Aoife,

You and I are working similar problems. I posted my question on BEA's
dev2dev forum. No one really had a good explanation - the axis' jars being
in the WEB-INF/lib should work, but doesn't. So, someone suggested the
brute-force method of adding the jars to the classpath of the app by
including them in CLASSPATH of the startWebLogic.cmd.

So, I added a folder /lib, put the six Axis 1.2 jars there and
added the six in the CLASSPATH of the app's startWebLogic.cmd and it now
works.

If anyone knows a more elegant way to bundle these in the EAR, please let
share the info.

--BobC

-O

weblogic 8.1 and axis 1.2

2005-05-26 Thread Anish Jindal

Hi,
i have weblogic 8.1 and axis 1.2 on
my comp. and i knwo how to run axis with tomcat...but i want to run it
with weblogic and Jrun.
so please give me some tutorial for
configuring my weblogic server for axis and also for Jrun
Thank You
Anish Jindal

Eclipse & Axis

2005-05-26 Thread Anand, Rajesh
Title: Eclipse & Axis


	
		


Folks,


    As this is my first experiment.


    I need answers to some questions.


    1. When I have completed and tested my Java app using Eclipse on

PC. If I want to run the same app on 400, what object/s I need to ship

to my as400??


    Is it just the compiled source or the whole project??


    2. I've created 2 java classes in my package, however, when I

try to use a method from one class in the other class, I get "method is

undefined" .



    Any ideas how can I do this??


    Thanks in advance, 


Rajesh Anand

Email:[EMAIL PROTECTED]






		
			
		
		If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
		
			
		


RE: Weblogic 8.1.2 and Axis 1.2

2005-05-26 Thread Aoife Kavanagh (Ext. 987)
Hi Bob,

That is what I did (in fact I tried it both ways).  
I get an error starting the module with a no ClassDefFoundError for
org/apache/log4/Priority which my beans use (I ship the log4j.jar that I
want used in my WEB-INF\lib directory).  I also get a NoClassDefFoundError
for org/apache/axis/server/AxisServer.

As an aside my deployment also contains a weblogic-application.xml which
contains a classloader-structure element where I specify that my bean
modules should be loaded prior to my war module.  Playing around with this
does not help.

And to be honest, even if I did get it work by modifying the classpath it's
not a long term solution.  But thanks for the suggestion anyway.

Aoife


-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: 25 May 2005 18:27
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Aoife,

I was NOT able to get it to work with the web.xml having this:


true
/container-descriptor>

If you remove it, and place the axis jars like I mentioned below, then it
should work.

--BobC

-Original Message-
From: Aoife Kavanagh (Ext. 987) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 8:02 AM
To: 'axis-user@ws.apache.org'
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Bob,

Thanks for the reply but unfortunately  no joy.
I did as you suggested but that just introduced problems for my
initialisation servlet.
Once change since I originally posted is that I replaced the
NoClassDefFoundError with a NullPointerException by also deploying the
wsdl4j.jar along with the other five jars (axis.jar saaj.jar
commons-logging.jar commons-discovery.jar jaxrpc.jar) in my WEB-INF\lib
directory.
My server now appears to get further that it did before with my client
getting back an AxisFault with a faultCode of Server.userException.  The
start of the faultDetail is
{http://xml.apache.org/axis/}stackTrace:java.lang.NullPointerException
at
org.apache.axis.message.MessageElement.addTextNode(Ljava.lang.String;)Ljavax
.xml.soap.SOAPElement;(MessageElement.java:1387)
at
org.apache.axis.message.SOAPHandler.addTextNode()V(SOAPHandler.java:148)
at
org.apache.axis.message.SOAPHandler.endElement(Ljava.lang.String;Ljava.lang.
String;Lorg.apache.axis.encoding.DeserializationContext;)V(SOAPHandler.java:
112)
at org.apache.axis.encoding.DeserializationContext.endElement
Ljava.lang.String;Ljava.lang.String;Ljava.lang.String;)V(DeserializationCont
ext.java:1087)
at weblogic.apache.xerces.parsers.AbstractSAXParser.endElement
.

I did find in JIRA a bug with Axis 1.2RC2 that seems similar but from what i
can read that should now be fixed so I'm really at a loss at how to proceed.

I don't want to add an APP-INF directory to my deployed ear file as that is
weblogic specific and I want the structure of my file to be generic so it
can be deployed on either weblogic or websphere.

Aoife

-Original Message-
From: Bob Carpenter [mailto:[EMAIL PROTECTED]
Sent: 25 May 2005 15:01
To: axis-user@ws.apache.org
Subject: RE: Weblogic 8.1.2 and Axis 1.2


Hi Aoife,

You and I are working similar problems. I posted my question on BEA's
dev2dev forum. No one really had a good explanation - the axis' jars being
in the WEB-INF/lib should work, but doesn't. So, someone suggested the
brute-force method of adding the jars to the classpath of the app by
including them in CLASSPATH of the startWebLogic.cmd.

So, I added a folder /lib, put the six Axis 1.2 jars there and
added the six in the CLASSPATH of the app's startWebLogic.cmd and it now
works.

If anyone knows a more elegant way to bundle these in the EAR, please let
share the info.

--BobC

-Original Message-
From: Aoife Kavanagh (Ext. 987) [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 25, 2005 4:59 AM
To: 'axis-user@ws.apache.org'
Subject: Weblogic 8.1.2 and Axis 1.2


Hi,

I'm working with Weblogic 8.1.2 and Axis 1.2 on a Windows environment.  I'm
deploying an EAR file that contains the following: a number of message
driven beans and a war file containing an init servlet and my application
libs including my axis jars.

My transport is SOAP over JMS so my beans receive JMS messages which they
then forward on via Axis.

Using Axis 1.1 everything worked fine.
Since upgrading to Axis 1.2 I'm getting a NoClassDefFoundError for
org/apache/axis/description/OperationDesc in my bean.  I've done some web
searches and I can't find anything that fixes this.  I saw the issue about
the conflict between weblogic webservices.jar and Axis's saaj.jar and added
the section

true
/container-descriptor>
to my weblogic.xml.  This makes no difference whatsoever.  Is there some
equivalent for the application classes?

Any help appreciated.
Thanks,
Aoife



**
The information contained in this e-mail is confidential, may be privileged
and is intended only for the user of the recipient named above.  If you are