RE: trying to access ServletContext within axis webservice

2005-01-20 Thread Keith Hatton
Title: trying to access ServletContext within axis webservice >> File destination = new File(context.getInitParameter("TREND_JDBC_FAULT")); If you are getting parameters from the ServletContext, they need to be defined as s in web.xml, which precede any elements.   To get a servlet's yo

RE: Publishing a human-oriented service-description ?

2004-11-10 Thread Keith Hatton
Most WSDL elements can take a sub-element, though tool support for it is variable. Hope this helps Keith -Original Message- From: Paul Libbrecht [mailto:[EMAIL PROTECTED] Sent: 10 November 2004 10:52 To: [EMAIL PROTECTED] Subject: Publishing a human-oriented service-description ? Hi

RE: AW: log4j help pls

2004-11-03 Thread Keith Hatton
I don't think you need the \\ escape syntax in an XML file. One backslash at a time should work. Keith -Original Message- From: Dorner, Thomas [mailto:[EMAIL PROTECTED] Sent: 03 November 2004 13:58 To: '[EMAIL PROTECTED]' Subject: AW: AW: log4j help pls Hi Steve, I can set the positi

RE: NoClassDefFound: Software, part II (sorry ...)

2004-09-29 Thread Keith Hatton
Try not using long directory names with spaces in them when you're setting the CLASSPATH. I think your AXIS_HOME variable (C:\Programme\Apache Software Foundation\Axis1.2b) or TOMCAT_HOME is the problem. The Java interpreter is having a problem with the command line. Either put it in quotes, rem

RE: Shared resource

2004-09-22 Thread Keith Hatton
It sounds like you need "application" scope for your Web Service, which means Axis will create only one instance of your class to service all requests. Check the docs for how to set this up in your WSDD file. In addition, you might need to introduce some synchronisation in that class to prevent

RE: Class/resource loading with applet killing performance

2004-08-24 Thread Keith Hatton
Hi Mark, For #3, you can call the following to turn off most of the BeanInfo behaviour. java.beans.Introspector.setBeanInfoSearchPath(new String[0]); Another possibility for #3 and #1 is just to provide empty implementations of the BeanInfo and _Helper classes. This is a pain but I haven't seen

RE: Axis and Applets - Missing Feature (bug) Report

2004-08-10 Thread Keith Hatton
Try www.wingfoot.com for a more lightweight Java SOAP client.   -Original Message-From: Rui Craveiro [mailto:[EMAIL PROTECTED]Sent: 10 August 2004 04:43To: [EMAIL PROTECTED]Subject: Axis and Applets - Missing Feature (bug) Report Hello,   I am starting a new project

RE: What happens to Java objects when Axis is reloaded by Tomcat?

2004-07-22 Thread Keith Hatton
You could register a ServletContextListener (in web.xml) that calls some cleanup code on your singleton when the web-app is destroyed. But I don't know how this would affect your other threads, as a new ClassLoader is created when Axis is reloaded (this is why you get "another" singleton). If yo

RE: So how do you get a portable web service?

2004-07-12 Thread Keith Hatton
   >>  It seems to me the answer may be to write a servlet that reads and writes SOAP. Then it would be something that can just be copied to any app server?   Isn't that what Axis is?

RE: Deployment Question

2004-07-09 Thread Keith Hatton
Hi, Axis should only require the classes that an RMI client for your EJBs would also require, i.e. the home and remote interfaces of your EJBs and any value objects or exceptions that might be thrown. I would imagine that your build process produces a JAR file for clients: simply put that JAR i

RE: Urgent & Desperate Help with My Axis Client

2004-07-01 Thread Keith Hatton
Less obvious question. Can you connect to http://localhost:8081/axis/adminDirect - as that is the URL your code actually uses.   -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]Sent: 01 July 2004 16:49To: [EMAIL PROTECTED]Subject: Re: Urgent & Desperate Help

RE: Publish a WebService in an Applet?

2004-06-03 Thread Keith Hatton
I really would try hard to turn your design around, so that the applet calls the server instead of the server calling the applet (remember your applet can push data to the server or pull it back, whichever you require). Even though you are using HTTP transport you will find that many firewalls b

RE: specifying JAXP 1.1 compliant XML parser for Axis

2004-05-20 Thread Keith Hatton
In a project not using Axis we had a need to specify which JAXP implementation to use. I found that a simple code change produced the desired result. I replaced DocumentBuilderFactory f = DocumentBuilderFactory.newInstance(); with DocumentBuilderFactory f = new org.apache.xerces.jaxp.Docu

RE: EJB Authentication

2004-03-04 Thread Keith Hatton
bit confused about what you mean by - replicating EJB security constraints on the Axis servlet. Are you talking about adding the somerole elements? Thanks, Ramesh. -Original Message- From: Keith Hatton [mai

RE: EJB Authentication

2004-03-04 Thread Keith Hatton
Hi Ramesh, What app server are you using now? I've had authentication working using Axis on Weblogic and JBoss in the past, though I do remember it was more complicated than I expected. The call.setUsername() and call.setPassword() approach looks fine from what I remember, but maybe that inf

RE: silly SOAP client question

2004-02-27 Thread Keith Hatton
There is a client-config.wsdd you can generate (similar to the server-config.wsdd). This defines at least some of the configuration (serializers/deserializers etc). Hope this helps Keith -Original Message- From: christopher justin [mailto:[EMAIL PROTECTED] Sent: 27 February 2004 05:19 T

RE: Axis + Weblogic 8.1sp2: Custom Deserialization Problem

2004-02-16 Thread Keith Hatton
I do remember having some difficulty with NoClassDefFoundErrors on Weblogic 7, but not sure if it will help resolve your problem. Anyway, the following works for me on WLS7. EAR file contains WAR file. WAR file contains Axis jars in WEB-INF/lib folder. All my "application" classes are in WEB-INF

RE: Non-Bean Object Serialization

2004-01-23 Thread Keith Hatton
One other thing I forgot to mention is that in some cases you may find that you do not need to write a serializer. For many of my value objects the BeanSerializer or SimpleSerializer did just fine, it was only the deserialization that required me to write code. The WSDD files need somethin

RE: Non-Bean Object Serialization

2004-01-22 Thread Keith Hatton
Is there a good reference you can point me to for hand-creation of WSDL and WSDD that would include use of non-bean objects? I think that lack of knowledge is part of my stumbling. My knowledge is based mainly on "Building Web Services with Java" by Steve Graham et al, published by SAMS. The

RE: Non-Bean Object Serialization

2004-01-22 Thread Keith Hatton
So for non-bean serialization/deserialization I can't use Java2WSDL and WSDL2Java? That's my experience - Java2WSDL would tend to generate a file without most of the section, which was a pain, but work-around-able. In my case these objects tended to be read-only, without a default constructo

Immutable Objects?

2004-01-14 Thread Keith Hatton
This is not an Axis-specific question, but I hope others on the list may have encountered similar issues. I have a number of value objects defined in the section of my WSDL. Generally these have been designed to be immutable - i.e. all their properties are set in the constructor and the origin

WSDL best practices?

2004-01-09 Thread Keith Hatton
Hi all, I'm looking for any experiences and thoughts about best use of the tag in WSDL. In particular, I've noticed that if I use it in the section of my WSDL, the text is copied as a comment into the interface Java source code, which is nice (though it would be even better if the comment wa

RE: axis in tomcat, using ssl

2004-01-08 Thread Keith Hatton
Hi Adi, When you are using HTTPS the SSL handshaking always occurs first, so that any data sent by the client is encrypted. This would include the authentication infro. (You can check this if you have a packet sniffer - look for traffic on port 8443 I think for Tomcat by default - you should se

RE: server-config.wsdd in a Weblogic environment

2004-01-08 Thread Keith Hatton
Hi Yves, You will need to include a preconfigured server-config.wsdd file (which you will probably need to write by hand) in the WEB-INF folder of the war file that gets deployed to Weblogic. Hope this helps Keith -Original Message- From: Yves Langisch [mailto:[EMAIL PROTECTED] Sent:

RE: XML within string parameter to RPC Service

2004-01-06 Thread Keith Hatton
Hi Tom, My understanding (which may be wrong) is that the automagic escaping of < into < means that you don't have to worry about this at all. Axis has done all the hard work. It's a bit like the way you can just stop worrying about quote marks in JDBC when you switch from Statements to Prepare

RE: circular references

2004-01-02 Thread Keith Hatton
I don't know the details of the Axis implementation, but two things you might like to check are: 1. Make sure you are using multirefs ( in server-config.wsdd), otherwise I can't see a way this will ever work. 2. Make sure your User and Group objects properly implement (override) the equals() m

RE: Proxying SSL certificates

2003-12-17 Thread Keith Hatton
I think I will have to give up and duplicate client certificates on both servers. If I am right, the information obtained from the browser certificate chain will not be enough for stablishing a secure connection with the backend server, as it lacks the key necessary to encrypt / decrypt the me

RE: Best practice for Java Object types like Integer, Long, ...

2003-12-12 Thread Keith Hatton
y includes long and Object. I suggest another approach using marker values. Good luck, Rick -Original Message----- From: Keith Hatton [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 6:00 AM To: Axis-User (E-mail) Subject: Best practice for Java Object types like Integer, Long, .

RE: Can webservice code read from file?

2003-12-12 Thread Keith Hatton
Hi Daniel, I don't think there is any problem in principle with reading/writing Files. But your application server's security policy might not permit it by default. The other possibility that springs to mind is that there is some problem with class loaders, and that Axis can't find the classes

Best practice for Java Object types like Integer, Long, ...

2003-12-12 Thread Keith Hatton
Not an Axis-specific question, more about WSDL and Java... I have a number of methods with parameters or return types like java.lang.Integer or java.lang.Long. Using Java2WSDL/WSDL2Java these get converted into int and long, which is not what I need - null is a valid value. But I can't put nill

RE: Bug? Stateful Session EJB support

2003-12-04 Thread Keith Hatton
creation can be automatized, for example, through perl scripts, or through a java doclet. My two cents ;-) Rodrigo Ruiz Keith Hatton wrote: >Hi Rodrigo, > >I have to admit, I haven't tried two clients, but can't see any reason why that >shouldn't work. > >The EJB i

RE: Bug? Stateful Session EJB support

2003-12-04 Thread Keith Hatton
ating the session will make the provider to call the remove() method for you (I haven't read the EJBProvider code). If it is so, you could modify your client wrapper to encapsulate the session invalidation in a remove() method :-) Cheers, Rodrigo Ruiz Keith Hatton wrote: >Well, I didn&#

Bug? Stateful Session EJB support

2003-12-04 Thread Keith Hatton
!superClass.getName().startsWith("javax.") && (stopClasses == null || !stopClasses.contains(superClass.getName( { loadServiceDescByIntrospectionRecursive(superClass); } } Keith Hatton Axiom Syste

RE: Bug? Stateful Session EJB support

2003-12-04 Thread Keith Hatton
Well, I didn't see anything saying that only stateless EJBs were supported ... and stateful beans do work if the client maintains a session, and the server scope is set to session. Keith -Original Message- From: Ekbote, Niranjan [mailto:[EMAIL PROTECTED] Sent: 04 December 2003 15:25 To:

Stateful EJBs with non-default create method

2003-12-03 Thread Keith Hatton
Hi all, Background: I am using Axis to expose several EJB APIs so that they can be called from Web Services clients. I have this working with stateless session EJBs and some stateful session EJBs. However I have now come across an EJB that does not have a default create() method in its home in

RE: A very unique situation.

2003-11-24 Thread Keith Hatton
-mail for such purpose.

RE: A very unique situation.

2003-11-21 Thread Keith Hatton
. "Keith Hatton" @axiomsystems.co

RE: code count for Axis

2003-11-21 Thread Keith Hatton
Using JCSC on the Axis codebase: (http://jcsc.sourceforge.net): [jcsc] Package Count:62 [jcsc] Class Count: 605 [jcsc] Methods Count:5177 [jcsc] Total NCSS Count: 45702 (NCSS = non-comment source statement, not necessarily the same a

RE: A very unique situation.

2003-11-21 Thread Keith Hatton
Hi Pradeep, You can create WSDL from an EJB - just pass the remote interface to Java2WSDL. This may not give you everything that you need - it depends on exactly what types the remote interface contains and you may need to modify it by hand - but then you should be able to run WSDL2Java on it a

RE: Axis vs WebLogic 8.1

2003-11-18 Thread Keith Hatton
Of course, with Weblogic's Web Services, your product will only deploy to Weblogic. Keith > WebLogic 8.1 claims to provide many Web Services features. Is it comparable to Axis > or way over?

RE: AxisServlet and the init() method

2003-09-18 Thread Keith Hatton
A subclass (or implementation of an interface) is allowed to omit exceptions that its own implementation does not throw, so I don't think this is a bug. It shouldn't prevent what you want to do.   Can you provide more detail if you have a specific problem?   Hope this helps Keith   -

RE: axis, connection refused ?

2003-08-27 Thread Keith Hatton
Hi Darek, This is a problem with your web server, not Axis. You will need to check the server documentation on how to make more threads available to the listener. For example, on Weblogic you can set up a separate queue, and I know there is something similar (not sure of the details) on JBoss.

RE: Forwarding from ip:port to ip:port/path

2003-08-22 Thread Keith Hatton
Hi Laura, If I read you correctly, what you need to do is persuade Tomcat that the Axis application (WAR file) is installed as the "root" application (i.e. context="/"). You probably need to tinker with server.xml or config.xml there. Maybe asking on the Tomcat list would get you there quicker

RE: axis with SSL server

2003-08-04 Thread Keith Hatton
You need J2SE 1.4, or to download (from Sun) JSSE and include its libraries in your classpath. Hope this helps Keith -Original Message- From: Henry Lu [mailto:[EMAIL PROTECTED] Sent: 04 August 2003 13:39 To: [EMAIL PROTECTED] Subject: axis with SSL server I go the error when i deploy

RE: Performance comparison 2

2003-08-04 Thread Keith Hatton
Maybe the WSDL2Java-generated code uses a lot of reflection? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 04 August 2003 06:53 To: [EMAIL PROTECTED] Subject: Performance comparison 2 We've implemented a test RPC style web service using the following methods

RE: AXIS & ANT

2003-07-30 Thread Keith Hatton
Maybe you need instead of as you seem to be passing a complete command line in. Keith -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 30 July 2003 11:32 To: [EMAIL PROTECTED] Subject: AXIS & ANT Hi, I want to deploy the AXIS-Webservice via ANT. Here I hav

RE: Can method parameters be documented in WSDL?

2003-07-23 Thread Keith Hatton
Is it worth trying your description in a section? Keith -Original Message- From: Rodrigo Ruiz [mailto:[EMAIL PROTECTED] Sent: 23 July 2003 11:28 To: [EMAIL PROTECTED] Subject: Can method parameters be documented in WSDL? Hi all, I am trying WSDL2Java to generate my client classes wit

RE: Axis / JNI - need help!

2003-06-30 Thread Keith Hatton
Hi Harald,   Do you think this might be a security problem? I've had problems loading native code in Tomcat before.   You might try making sure your JNIDate class is loaded by the system classloader, rather than the application classloader. I'm not familiar with the versions of

RE: java.util.List and 1.1.RC2

2003-04-03 Thread Keith Hatton
For fromArray(), you mean this? java.util.Arrays.asList(Object[]) -Original Message- If you go return (Foo)list.toArray(new Foo[0]); You can turn a list to an array in a snap. A fromArray() would be nice to match it.

RE: Maximum Connections

2003-03-21 Thread Keith Hatton
Title: Message I think you need to look at the server side of your configuration (JBoss - the web server component - Tomcat or Jetty?). Most likely it is refusing connections once a certain number are being handled concurrently.   Keith   -Original Message-From: E.Narayanan [mai

RE: EJB Consuming a Web Service

2003-03-19 Thread Keith Hatton
Hi Dan, Just a thought - I know it's an FAQ when Axis is used with Tomcat so it might just be relevant here - is it a problem with your XML libraries? Too many versions of xerces.jar, perhaps? The J2EE RI should come with its own JAX* and DOM APIs included, so maybe you will not be allowed to

RE: No such method error

2003-03-13 Thread Keith Hatton
I think this is often caused by conflicts of Xerces versions between Axis and Tomcat. A quick search of the archives should help you find the solution. Hope this helps Keith -Original Message- From: Durant, Neil [mailto:[EMAIL PROTECTED] Sent: 13 March 2003 15:17 To: '[EMAIL PROTECTED]'

RE: [axis-user] another SSL question

2003-02-24 Thread Keith Hatton
Could it be that the WSDL2Java-generated code does the required System.setProperty to configure the HTTPS handler, based on the WSDL that was available at compile time? In which case, you might try adding System.setProperty("java.protocol.handler.pkgs", "com.sun.net.ssl.internal.www.protocol");

RE: .so files for AXIS

2003-02-17 Thread Keith Hatton
You might also need to tweak some of the Tomcat security settings, or put the Java piece of the JNI code in the system classpath too, I don't think the servlet classloader will allow you to load native code by default. Keith -Original Message- From: Joe [mailto:[EMAIL PROTECTED]] Sent:

RE: Messages, Handlers, and Architecture

2003-02-06 Thread Keith Hatton
Hi Brian, Maybe I'm way off here, and I'm not suggesting it's trivial, but could you install a servlet filter that receives your "raw" XML and transforms it by wrapping it into the format before the Axis servlet receives the request? Then your message would (if I read correctly) be of "documen

RE: Scalability, Multiple Threads/Objects?

2003-02-05 Thread Keith Hatton
Roy, What normally happens with a servlet (and Axis is a servlet) is that a single instance is used to handle all requests, unless the Web Server provides a pool of servlet instances (in my experience, WebLogic is the only server I've come across that does), or the servlet implements the Single

RE: AW: Out of Memory problem

2003-02-03 Thread Keith Hatton
If the problem is the message rather than the handling of it, have you considered applying ZIP/UNZIP algorithms in the serializer/deserializer for your object? TIFF is quite a compressible format. Keith -Original Message- From: Praveen Peddi [mailto:[EMAIL PROTECTED]] Sent: 03 February

RE: Axis TaskDef

2003-01-23 Thread Keith Hatton
I'm stabbing in the dark, but are you sure that axis-ant.jar is the only file you need to add to the classpath? Sometimes "class not found"-type error messages are not descriptive of the actual problem, to say the least (i.e. maybe Wsdl2javaAntTask is there but can't be loaded because some other