Application scope objects that retain data

2005-08-04 Thread J.W.F. Thirion
Hi everyone, I appologise if this has been asked already, but I would like to know the following: Is it possible to have a Java class, e.g. Test in my Test.java, to keep the value of its static variables between calls to the service. E.g. I have a static variable temp, to which I just add string

RE: could not find class javax.activation.DataHandler from file activation.jar ?

2005-08-04 Thread richard falconer
Additionally to the activation.jar, you'll need the mailapi.jar from java's mail api. This library is located somewhere on suns website. Best regards Richard At 23:07 03/08/2005, you wrote: I'm still learning all of this, but I used to get the message below, I fixed it by adding activation.jar

Re: Change the Port that Axis Service runs as

2005-08-04 Thread James Wilson
I haven't been using Axis all that long either. However I don't think Axis itself can run on a port. Thus the application fighting over port 8080 would be your servlet container. Are you starting Tomcat via an Eclipse plugin? hope it helps, james Quoting J H [EMAIL PROTECTED]: Hi Everyone.

RE: could not find class javax.activation.DataHandler from file activation.jar ?

2005-08-04 Thread Chen, Donald
The Error I got only concerns javaax.activation.DataHander and has no sign related to the mailapi.jar. Do I still need the mailapi.jar? If I get it from sun, where should I put it? Thanks, Don -Original Message- From: richard falconer [mailto:[EMAIL PROTECTED] Sent: Thursday,

Application scope objects that retain data

2005-08-04 Thread J.W.F. Thirion
Hi everyone, I appologise if this has been asked already, but I would like to know the following: Is it possible to have a Java class, e.g. Test in my Test.java, to keep the value of its static variables between calls to the service. E.g. I have a static variable temp, to which I just add string

Inheritance issue with WDSL2Java - ok with wscompile

2005-08-04 Thread trebor iksrazal
Hi all, I just finished project using JWSDP and I'm starting a new one using Axis :-) . I know axis well from other projects. I have this WSDL, which I would like to use in my new project: complexType name=ReturnWeb_Base sequence element name=errorMessage type=string/

RE: could not find class javax.activation.DataHandler from file activation.jar ?

2005-08-04 Thread richard falconer
You still need both jars - not sure why. Add both to the axis lib: Tomcat5.0\webapps\axis\WEB-INF\lib Richard At 13:40 04/08/2005, you wrote: The Error I got only concerns javaax.activation.DataHander and has no sign related to the mailapi.jar. Do I still need the mailapi.jar? If I get it

Re: Change the Port that Axis Service runs as

2005-08-04 Thread trebor iksrazal
Hi all, I just subscribed to the list, so I'm replying to James. Is the goal running two seperate web services in the same servlet container? It seems you are using the same configuration for both web services. At least one way to solve it - if I understand the problem correctly - is two have

Re: Inheritance issue with WDSL2Java - ok with wscompile

2005-08-04 Thread Davanum Srinivas
Please log a bug and upload your wsdl. Are u using Axis 1.2.1? thanks, dims On 8/4/05, trebor iksrazal [EMAIL PROTECTED] wrote: Hi all, I just finished project using JWSDP and I'm starting a new one using Axis :-) . I know axis well from other projects. I have this WSDL, which I would

Re: Application scope objects that retain data

2005-08-04 Thread James Wilson
This is interesting. I can't speak to the Axis internals. But what this shows me is that Axis is creating more than one service implementation class. Thus there is more than one instance of your Test class instanciated even though they will live to service many requests. This is what I would

Re: Inheritance issue with WDSL2Java - ok with wscompile

2005-08-04 Thread trebor iksrazal
Yes, I am running Axis 1.2.1 . I will write a simple test case and submit via JIRA today. Regards, iksrazal --- Davanum Srinivas [EMAIL PROTECTED] wrote: Please log a bug and upload your wsdl. Are u using Axis 1.2.1? thanks, dims On 8/4/05, trebor iksrazal [EMAIL PROTECTED] wrote:

RE: could not find class javax.activation.DataHandler from file activation.jar ?

2005-08-04 Thread richard falconer
No worries, Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location. - me too now that you mention it!! R At 14:11 04/08/2005, you wrote: Thanks, Richard. The suggested approach works!! I put the activation.jar and mailapi.jar under the common\lib of the

Re: How to enforce maxLength validation in Axis

2005-08-04 Thread Anne Thomas Manes
You can use a handler to perform schema validation. Anne On 8/3/05, Jeremy Nix [EMAIL PROTECTED] wrote: My WSDL+XSD constrains all my fields down to specific lengths or enumerated values. I'm noticing however that the maxLength constraints are not being validated by my web service. Is

RE: could not find class javax.activation.DataHandler from file activation.jar ?

2005-08-04 Thread Guy Rixon
I thnk this means that the jar was found inside the JDK, not on your classpath. Nothing to worry about. On Thu, 4 Aug 2005, richard falconer wrote: No worries, Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an unknown location. - me too now that you mention it!! R

RE: Application scope objects that retain data

2005-08-04 Thread J.W.F. Thirion
Thanks for your advice. I did try moving the temp= part to the top (static initializer) and the same thing happens. PS: What do you mean by following the Singleton pattern. I am more from a C/C++ background so the terminology is a bit strange to me. Thanks for the help! Derik -Original

Re: Application scope objects that retain data

2005-08-04 Thread Javier Gonzalez
To put it simply, it's a class of wich exactly one instance exists. In such class you keep your 'persistent' string. It's usually achieved by making the constructor private (so nobody but the class itself can call new SingletonClass(...)) and a static method to access a static field that holds

RE: How to enforce maxLength validation in Axis

2005-08-04 Thread Jeremy Nix
Has anyone else done this before? I can't imagine I'm the 1st person who has attempted to constrain their web service interface. I'm not seeing any Axis handlers that mention validation in them. Does anyone have a Handler that I can plugin in that will perform validation based on my WSDL/XSD?

RE: Application scope objects that retain data

2005-08-04 Thread James Wilson
hmmm, if there was no 'temp=' in the constructor then it makes me think you either stoped Tomcat or did a deploy between tests. I just ran a quick test with one of the service methods I'm working on. I also use scope=Application and I couldn't get more than one instance of my service

RE: an Axis faq, and a few questions about a simple ws

2005-08-04 Thread John M. Gabriele
Ok, [rolls up sleeves] perhaps I'll get more help with this if I edit the official wiki rather than my own wiki. :) I edited the following pages: http://wiki.apache.org/ws/FrontPage/Axis http://wiki.apache.org/ws/FrontPage/Axis/AxisGeneral

Re: Change the Port that Axis Service runs as

2005-08-04 Thread J H
Well, I started out using Eclipse to create WAR files for both webapplications (axis and interface), but I never ran the two in unison through Eclipse. Is there a way to change the port that a servlet runs on? Thanks, Jeff From: James Wilson [EMAIL PROTECTED] Reply-To:

RE: an Axis faq, and a few questions about a simple ws

2005-08-04 Thread meghan . pietila
John, I'm just learning Axis for client-side, also, but I'm using JMS transport instead of HTTP so I'm not sure how similar our setups are. However, if you look at the user-guide.html that is in the /docs folder of the Axis 1.2.1 download, it gives an example of configuring the Call object--I

Re: can my .jws file have static inner classes in it?

2005-08-04 Thread John M. Gabriele
--- Javier Gonzalez [EMAIL PROTECTED] wrote: Using the wsdd approach lets you use almost any class for providing services, and no restrictions to using inner types. Plus it's easier to develop and test in an IDE and then pack it in a .jar and put it in the axis-enabled servlet engine.

RE: an Axis faq, and a few questions about a simple ws

2005-08-04 Thread John M. Gabriele
--- [EMAIL PROTECTED] wrote: John, I'm just learning Axis for client-side, also, but I'm using JMS transport instead of HTTP so I'm not sure how similar our setups are. However, if you look at the user-guide.html that is in the /docs folder of the Axis 1.2.1 download, it gives an

Re: can my .jws file have static inner classes in it?

2005-08-04 Thread Javier Gonzalez
emmm, nopes, it was intended for the list :D Well, there ya go: just make the top-level class implement methods that call all the inner classes and you are set. (As a rule I try to keep the classes that get published as web services as 'dumb' as possible, and try to keep all the important work

Re: Change the Port that Axis Service runs as

2005-08-04 Thread J H
They are both setup to use different URI's, but I think what is going on is that the first webapp is listening through port 8080 for slide messages and the second, axis, webapp/service is listening for soap requests. When the slide webapp receives a request it starts up a axis call to the

Re: Change the Port that Axis Service runs as

2005-08-04 Thread James Wilson
What is the actuall error/exceptions you are seeing? Before you make a request to your client application, can you successfully request the services wsdl from axis (http://localhost:9090/axis/services/MyPort?wsdl)? Quoting J H [EMAIL PROTECTED]: They are both setup to use different URI's, but

Accents

2005-08-04 Thread Christophe Roudet
I am using Axis 1.1 in rpc. I have some troubles with accents: item name xsi:type=xsd:stringcluLogin/name value xsi:type=xsd:stringmémè/value !-- meme -- /item Is there something to do for axis 1.1 to handle correctly accents? Christophe

Re: Accents

2005-08-04 Thread meghan . pietila
On the off chance this is useful, I ran across this old JIRA ticket this morning while searching for some different encoding problems: http://issues.apache.org/jira/browse/AXIS-1132 I don't know JIRA well enough yet to tell what version this patch went into, but it sounds like perhaps a later

Client / server separation in WSDL2Java

2005-08-04 Thread Clark Dorman
I am using axis on both the client and server side, but I am having a problem with the relationship between them. In particular, I want to separate out the code but WSDL2Java puts them in the same directory and the namespaces are off. I use ant as my builder. Heres the + src + client

RES: Axis can't get detailed exception error from C# Server

2005-08-04 Thread Marcelo Razzolini Correia
Hi, I'm still stuck here...this is the response I'm getting from my server: ?xml version=1.0 encoding=utf-8? soap:Envelope xmlns:soap=http://schemas.xmlsoap.org/soap/envelope/; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xmlns:xsd=http://www.w3.org/2001/XMLSchema; soap:Body

Persistence and sessions (beginner)

2005-08-04 Thread John M. Gabriele
My web service is just one class. When I start up Tomcat, does an instance of my MyService get created and just stay there, instantiated, between uses of the service, as long as Tomcat is running? Or, for each (remote) call to one of its instance methods, does an instance get created, the method

RE: Axis can't get detailed exception error from C# Server

2005-08-04 Thread Simon Fell
That's not a valid response, detail should contain a namespaced child element, it not allowed to have text data in it directly. -Original Message- From: Marcelo Razzolini Correia [mailto:[EMAIL PROTECTED] Sent: Thursday, August 04, 2005 12:55 PM To: axis-user@ws.apache.org; Anne Thomas

Re: Persistence and sessions (beginner)

2005-08-04 Thread Jeff Greif
It depends. Look in the user guide for 'scope'. This has 3 values (something like 'request', 'session' and 'application'). The first indicates that the object carrying out the request has the same lifetime as the request in the server. The second indicates the lifetime extends over the

Re: Persistence and sessions (beginner)

2005-08-04 Thread John M. Gabriele
--- Jeff Greif [EMAIL PROTECTED] wrote: It depends. Look in the user guide for 'scope'. Ah. There we are. Thanks for the reply Jeff. Though, there's only a short paragraph there, and it doesn't say how to tell Axis to start a session, or how to specify that the session is now over (for

Re: Persistence and sessions (beginner)

2005-08-04 Thread Jeff Greif
Look in the same user guide or in the wiki for use of sessions. I believe that usually sessions are created and destroyed by handlers (deployed for the service) of the request. Requests typically come with and without some kind of session key (often in the SOAP Headers, or an Http cookie).

Re: Change the Port that Axis Service runs as

2005-08-04 Thread J H
Here's is the complete stack trace... Again, the scenario is that when I install the 2 wars on seperate machines, everything works fine. When I install the wars on the same machine, nothing works and I get the message pasted below after about 5 minutes from the first client axis/soap call.

Axis version which supports SOAP with attachments

2005-08-04 Thread Mukesh Kumar Maniraj
Hello, Can any one please let me know, which version of axis supports SOAP with attachments, I am using axis 1.1with activation1.0.1.jar and saaj-api.jar and I am getting the following AxisFault exception, faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException faultSubcode:

WSDL2Java and BCEL ?

2005-08-04 Thread Murali Yelamanchili
Hi, Is there a plan to integrate BCEL with Axis WSDL2Java ? Right now, WSDL2Java generates .java files for the complex types present in a WSDL - We are working on a standalone Java application, that could be deployed in a machine without a JDK install. The application requirements states that

0.95 Release RoadMap

2005-08-04 Thread Eran Chinthaka
Hi Axis2 Developers/Users, I'd like to propose to release Axis2 0.95 on next Friday (12-08-2005) and to have a code freeze on next Tuesday (9-8-2005). Followings are MUST do things before the release: 116, 112, 103, 100, 95, 82, 55, 51. Guys please give us a helping hand to fix these,

Happyaxis reports problems loading libraries, found but with problems

2005-08-04 Thread Jonathan J. Vargas R.
Greets, I tried to install xmlsec into axis, but seems axis has problems doing this. The problem is with xmlsec, but I still don't know how to solve it or fix it. I am using tomcat, This is the happyaxis report: Optional Components Warning: could not find a dependency of class