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
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
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
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
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
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
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
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
>>
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?
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
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
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
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
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, .
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
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
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
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
!superClass.getName().startsWith("javax.") &&
(stopClasses == null ||
!stopClasses.contains(superClass.getName( {
loadServiceDescByIntrospectionRecursive(superClass);
}
}
Keith Hatton
Axiom Syste
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:
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
-mail
for such purpose.
.
"Keith Hatton"
@axiomsystems.co
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
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
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?
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
-
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.
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
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
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
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
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
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
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.
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
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
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]'
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");
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:
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
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
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
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
58 matches
Mail list logo