application scope in axis 1.2

2005-08-19 Thread richard falconer

Hi,

I originally deployed my axis 1.2.1 service with the parameter
name=scope value=Session/ As expected each time my client invokes a
service method a new instance of the class is created to satisfy the
request. However I've tried to change this so that I can do some one-off
bootstrapping of resources so changed the parameter setting to the following:

parameter name=scope value=Application/

However I'm still getting a new instance of my class generated for each
client request. Also tried removing the parameter altogether but again my
class is being re-created each time a request comes in.

Any help appreciated,
thanks Richard 





RE: application scope in axis 1.2

2005-08-19 Thread richard falconer
Thanks Philippe but I've already tried that so not sure what I'm doing 
wrong

R

At 10:48 19/08/2005, you wrote:


Hi richard
It works well form me .. But i have value=application .. Just the a in 
lowercase

philippe
-Message d'origine-
De : richard falconer [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 19 août 2005 11:45
À : axis-user@ws.apache.org
Objet : application scope in axis 1.2

Hi,

I originally deployed my axis 1.2.1 service with the parameter 
name=scope value=Session/ As expected each time my client invokes a 
service method a new instance of the class is created to satisfy the 
request. However I've tried to change this so that I can do some one-off 
bootstrapping of resources so changed the parameter setting to the following:


parameter name=scope value=Application/

However I'm still getting a new instance of my class generated for each 
client request. Also tried removing the parameter altogether but again my 
class is being re-created each time a request comes in.


Any help appreciated,
thanks Richard





Re: no SOAPAction header!

2005-08-10 Thread richard falconer

re - Check your classpath and make sure you are using the right jars...
I'm using the latest axis jar from 1_2_1 ??

csj - thanks that works
At 12:37 09/08/2005, you wrote:

Looks like thte SOAPActionURI is empty... add the correct value, for
example in method 'add' do setSOAPActionURI(add).  The action URI should
match the soapAction in the wsdl for the operation.B

On 8/9/05, richard falconer [EMAIL PROTECTED] wrote:
 Hi,
 Still getting the exception being thrown.

 The following lines of code were already in the stub, created by the 
wsdl2java:

 _call.setUseSOAPAction(true);
 _call.setSOAPActionURI();

 ta,
 Richard

   Check your client side BindingStub.java for call.setUseSOAPAction(true)
   and call.setSOAPActionURI(blah) for each method that calls invoke.
  
   Cheers,
  
  
   On Mon, 8 Aug 2005, richard falconer wrote:
  
   Hi,
  
   After running an axis (axis-1_2_1) server on Tomcat 5.0 and testing 
it fine
   from the same machine, once I began testing from a different machine 
I get

   exception below being thrown whether I'm testing it remotely or locally.
  
   Any suggestions appreciated,
   ta Richard
  
   AxisFault
 faultCode: {http://xml.apache.org/axis/}Client.NoSOAPAction
 faultSubcode:
 faultString: no SOAPAction header!
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:no SOAPAction header!
at
  
 
org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:1004)
at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at
  
 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
  
 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)

at
  
 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)

at
  
 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)

at
  
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
  
 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)

at
  
 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)

at
  
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
  
 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

at
  
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at
  
 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)

at
  
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
  
 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

at
  
 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)

at
 org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
  
 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at
 org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
  
 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:536)
  








no SOAPAction header!

2005-08-08 Thread richard falconer

Hi,

After running an axis (axis-1_2_1) server on Tomcat 5.0 and testing it fine 
from the same machine, once I began testing from a different machine I get 
exception below being thrown whether I'm testing it remotely or locally.


Any suggestions appreciated,
ta Richard

AxisFault
 faultCode: {http://xml.apache.org/axis/}Client.NoSOAPAction
 faultSubcode:
 faultString: no SOAPAction header!
 faultActor:
 faultNode:
 faultDetail:
{http://xml.apache.org/axis/}stackTrace:no SOAPAction header!
	at 
org.apache.axis.transport.http.AxisServlet.getSoapAction(AxisServlet.java:1004)

at 
org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:678)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
	at 
org.apache.axis.transport.http.AxisServletBase.service(AxisServletBase.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
	at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
	at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
	at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
	at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
	at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at 
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)

at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
	at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)

at java.lang.Thread.run(Thread.java:536)




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 to the classpath for the server or web 
application.  (One machine I put it in the server\lib, one machine I put 
it in web-inf\lib).


- Unable to find required classes (javax.activation.DataHandler and 
javax.mail.internet.MimeMultipart). Attachment support is disabled.


Jeff


From: Chen, Donald [EMAIL PROTECTED]
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: could not find class javax.activation.DataHandler from file 
activation.jar ???

Date: Wed, 3 Aug 2005 17:53:10 -0400

Hi, there.



I tried to run the http://127.0.0.1:8080/axis/happyaxis.jsp, and got
this message:

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

Axis will not work.

See http://java.sun.com/products/javabeans/glasgow/jaf.html



I use Axis 12. with Tomcat 5.5 on windows XP professional, the JRE is
J2SE 1.5.



Did I miss something?



Thanks,



Don







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 from sun, where should I
put it?

Thanks,

Don

-Original Message-
From: richard falconer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 4:37 AM
To: axis-user@ws.apache.org
Subject: RE: could not find class javax.activation.DataHandler from file
activation.jar ?

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 to the classpath for the server or
web
application.  (One machine I put it in the server\lib, one machine I
put
it in web-inf\lib).

- Unable to find required classes (javax.activation.DataHandler and
javax.mail.internet.MimeMultipart). Attachment support is disabled.

Jeff

From: Chen, Donald [EMAIL PROTECTED]
Reply-To: axis-user@ws.apache.org
To: axis-user@ws.apache.org
Subject: could not find class javax.activation.DataHandler from file
activation.jar ???
Date: Wed, 3 Aug 2005 17:53:10 -0400

Hi, there.



I tried to run the http://127.0.0.1:8080/axis/happyaxis.jsp, and got
this message:

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

 Axis will not work.

 See http://java.sun.com/products/javabeans/glasgow/jaf.html



I use Axis 12. with Tomcat 5.5 on windows XP professional, the JRE is
J2SE 1.5.



Did I miss something?



Thanks,



Don






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 Tomcat.  Other locations do not work.

I have another minor warning from the Axis Happiness Page though.

  Found JAXP implementation ( javax.xml.parsers.SAXParserFactory ) at an
unknown location.

Any idea?

Don

-Original Message-
From: richard falconer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 8:55 AM
To: axis-user@ws.apache.org
Subject: RE: could not find class javax.activation.DataHandler from file
activation.jar ?

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 from sun, where should I
put it?

Thanks,

Don

-Original Message-
From: richard falconer [mailto:[EMAIL PROTECTED]
Sent: Thursday, August 04, 2005 4:37 AM
To: axis-user@ws.apache.org
Subject: RE: could not find class javax.activation.DataHandler from
file
activation.jar ?

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 to the classpath for the server or
web
 application.  (One machine I put it in the server\lib, one machine I
put
 it in web-inf\lib).
 
 - Unable to find required classes (javax.activation.DataHandler and
 javax.mail.internet.MimeMultipart). Attachment support is disabled.
 
 Jeff
 
 From: Chen, Donald [EMAIL PROTECTED]
 Reply-To: axis-user@ws.apache.org
 To: axis-user@ws.apache.org
 Subject: could not find class javax.activation.DataHandler from file
 activation.jar ???
 Date: Wed, 3 Aug 2005 17:53:10 -0400
 
 Hi, there.
 
 
 
 I tried to run the http://127.0.0.1:8080/axis/happyaxis.jsp, and got
 this message:
 
  Error: could not find class javax.activation.DataHandler from
file
 activation.jar
 
  Axis will not work.
 
  See http://java.sun.com/products/javabeans/glasgow/jaf.html
 
 
 
 I use Axis 12. with Tomcat 5.5 on windows XP professional, the JRE
is
 J2SE 1.5.
 
 
 
 Did I miss something?
 
 
 
 Thanks,
 
 
 
 Don
 





constructor in a subclassed data object

2005-08-03 Thread richard falconer

Hi,

I've a data object which is defined as a java bean with a bunch of common 
parameters that will be shared by 2 classes subclassing this one. The 
problem is that when I create a constructor in the subclass the wsdl2java 
generated class does not have the correct constructor - it seems to ignore 
parameters  available in the superclass. It does recognise that its a 
subclassed object but it doesn't create the correct constructor.


Any ideas?

thanks,
Richard




Re: Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

2005-07-20 Thread richard falconer

Thanks worked great.
At 19:32 19/07/2005, you wrote:

Hi,

 - Unable to find required classes (javax.activation.DataHandler and
 javax.mail.internet.MimeMultipart). Attachment support is disabled.

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
spion





Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled.

2005-07-19 Thread richard falconer
- Unable to find required classes (javax.activation.DataHandler and 
javax.mail.internet.MimeMultipart). Attachment support is disabled.


Hi,

I'm having trouble getting the axis server to recognize the 
javax.activation.jar and getting the above error when deploying my service. 
I want to stream a file to a server using the DataHandler class so I've 
added the activation.jar to the Tomcat5.0\webapps\axis\WEB-INF\lib 
directory and when I run the axis happiness page it states that it has 
Found Activation API ( javax.activation.DataHandler )  at the right 
location. However when I try to deploy my wsdd file (with the 
activation.jar) in the classpath I get the above error, and the wsdl2java 
ignores the DataHandler parameter I've added to the method call.


It seems like some sort of classpath issue? But I have the activation.jar 
in the classpath when I'm running the wsdl2java cmd so any help would be 
much appreciated.


thanks,
Richard