RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-05 Thread Cyril Furtado
After several failed attempts of putting in the zip :),
Java file
public class DocumentService2 implements Lifecycle {
static com.skire.bluedoor.log.Log logger =

com.skire.bluedoor.log.LogSource.getInstance(DocumentService2.class);

public void init(ServiceContext context) throws AxisFault {
logger.debug("DocumentService2 init context 
");
logger.debug("DocumentService2 message 
checking***");
}

public void destroy(ServiceContext context) {
logger.debug("DocumentService2 destroy context ");
}
private MessageContext inMessge;
public XMLObject getBPRecord (
 String a1
, String a2
, String a3
, String a4
, String a5
)
{

logger.debug("create*:"+this.inMessge);
logger.debug("create***static 
**:"+MessageContext.getCurrentMessageContext());

XMLObject xobj = new 
XMLObject();
xobj.setStatusCode(200);
xobj.setXmlcontents("just 
echo");
return xobj;
}
}
Services.xml file


 document literal Service


http://www.w3.org/2004/08/wsdl/in-only";
 
class="org.apache.axis2.rpc.receivers.RPCInOnlyMessageReceiver"/>
http://www.w3.org/2004/08/wsdl/in-out";
 
class="org.apache.axis2.rpc.receivers.RPCMessageReceiver"/>

com.skire.webservices.service.general.DocumentService2
http://www.w3.org/2004/08/wsdl/in-out"; />



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 7:02 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given

Zip file did not go thru sending the f.aar file in .txt, rename to 
web_services.aar

From: Cyril Furtado
Sent: Tuesday, August 04, 2009 6:55 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given


Thanks
Deepal,
I am enclosing the java file (DocumentService2.java) & the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
& now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println("DocumentService2 init context "); // no 
output
   System.out.println("DocumentService2 message checking***");// no 
output
}
public void destroy(ServiceContext context) {
System.out.println("DocumentService2 destroy context "); // no 
output
}
public getRecord(int id){
   System.out.println("create***static 
**:"+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println("init mes

RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-04 Thread Cyril Furtado
Zip file did not go thru sending the f.aar file in .txt, rename to 
web_services.aar

From: Cyril Furtado
Sent: Tuesday, August 04, 2009 6:55 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working! 
Code given


Thanks
Deepal,
I am enclosing the java file (DocumentService2.java) & the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
& now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println("DocumentService2 init context "); // no 
output
   System.out.println("DocumentService2 message checking***");// no 
output
}
public void destroy(ServiceContext context) {
System.out.println("DocumentService2 destroy context "); // no 
output
}
public getRecord(int id){
   System.out.println("create***static 
**:"+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println("init message called"); // 
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message 
called "); // not seen in output
}

In my method
String getRecord(int id){

System.out.println("message context :"+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril



PK
æ•;   META-INF/þÊPK
å•;ÖW¥\jMETA-INF/MANIFEST.MFóMÌËLK-.Ñ
K-*ÎÌϳR0Ô3àårÌCq,HLÎHUŠ%ÍAÒÎE©‰%©)ºN• õ¦zñfºI¦
Á¥y
¾™ÉEùŕÅ%©¹Å
žyÉzš¼\¼\PK
‡t;
META-INF/com/PK
‹t;META-INF/com/skire/PK
št;META-INF/com/skire/webservices/PK
 t;'META-INF/com/skire/webservices/service/PK
®t;/META-INF/com/skire/webservices/service/general/PK
ɕ;ãG†VüÄEMETA-INF/com/skire/webservices/service/general/DocumentService2.class­VmsÛD~Îq,EVÓԍ
5RÛ´u_Ihiœ†”¾¹˜”wY>¥²”ÑKqÿ¿‡ã:Ãg†Oü"†=Iv\›tZÏx÷´»÷ÜÞ³·'ýù÷o¿8‡–‚y,O!÷e¬d±Š5ȸ,áŠ
  Ë2>úªY£š2®)ØÄG®+˜Á²[2>ú
º‚mܐpSÂ-†Œí¶ÛÜc8¡›nGóï[ךvÈ[®ëiäÔt·½Ê 
[Î6÷ý6g(é®×֌}ÃÜåšÑµüªfºNÀ»&BŒ6¯Å4-³f9Vp™a¢Xj0¤kn‹Žê–Ão„&÷îM›,9Ý5
»ax–xnŒé`×ò–‡2ûž7}î=°lî...@ks‡{†­m¸fØánpíuz>-Vg8S<<å$ºŸ²ÈRJ|ÏÝêÈ<åZ×äûå:¾„Û„Òâ~๲m¬ßºÃM×k1üPÔ÷Œ†fN[«žå´Wÿ/KéªÂÀ²µnÇÖv¶õ›Í=nŠ„SÆ9AüˆðT…8/Ä!.•]·¹ÇP~™ä5ÓNê¯ÔÝÐ3ù¦%
›-UE$¡â5¼®b‹
K£SHÈ/”é'ᎊ:î2¼5܉ÏaÊfÞ§=Q8é±°¤BÏÀ2̏2²ZvKôȌéq#àåþoEŧh¨x'Äè3;¸Gƒ0?0Ë,$Ñ>Wñ¾d(¾(‰*¾Â×

S{¡¸¹ëªøß2\úo-!Xn¤­l2^‰8;ë}8ÝúŽ›MQºÅ± «$7Ð&„Åï†Éo†¤óÃç?9*¢ë2Æþ>w¨AÎþKƒ”ÆLIQVGâû€Ï‰—761ÌÇ)âô
^p
¯Pk×BÏ#ŽG]ï_æ¢<âó N§%ôã+2]ܤL“y§cGӜÀa¯O§>î¼øÚrèH:âIªÙ†ï?s{Œ½ð½eæA[F
²èRzI¥ÄÑ'=Ivj^’'éI#̈́µüìQV ™‰Œ³¨q–ð&ijaœ¢(1ù6ééüOHå&~E:1šŒF`Ә 
¹…2˜¥è\<1£·qšÀ‹4N“.Ñ¿LÅY֒…
²>3¯D®“¤CÐÙt6¦2ãLø¥$‘nàSH÷CÎMõ ”A¶µ‡#ýÝô½Óä}‚£Cט!ϱ•ÌBæþè!·Éïav!óã
 ·Eb8KtWè›à]lз‚Ž*݅ç£\¯ÇY
rmPl%â»A¥©D;iмJDaƒfWˆ1ªÒh’ðr„tV‘qqPÔ¥˜9ŽüÌýŒÔ£¨r•#y)Êò½PK
 •;MgÀèMETA-INF/services.xm

RE: MessageContext is null, is something wrong? Still not working! Code given

2009-08-04 Thread Cyril Furtado

Thanks
Deepal,
I am enclosing the java file (DocumentService2.java) & the web_services.aar 
file , in fact I just ran the code again to re verify , same result, 
MessageContext is null.
Thanks
Cyril



Deepal wrote
I am not sure why that does not work for you, if you can send me your
service. I will give it a try.

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 3:45 PM
To: 'axis-user@ws.apache.org'
Subject: RE: MessageContext is null, is something wrong? Still not working!

Thank you Deepal
 I changed my implementation class as given from the below articles
& now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println("DocumentService2 init context "); // no 
output
   System.out.println("DocumentService2 message checking***");// no 
output
}
public void destroy(ServiceContext context) {
System.out.println("DocumentService2 destroy context "); // no 
output
}
public getRecord(int id){
   System.out.println("create***static 
**:"+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println("init message called"); // 
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message 
called "); // not seen in output
}

In my method
String getRecord(int id){

System.out.println("message context :"+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril





web_services.aar
Description: web_services.aar


DocumentService2.java
Description: DocumentService2.java


RE: MessageContext is null, is something wrong? Still not working!

2009-08-04 Thread Cyril Furtado
Thank you Deepal
 I changed my implementation class as given from the below articles
& now my class looks like
public classMy service implements Lifecycle {
public void init(ServiceContext context) throws AxisFault {
   System.out.println("DocumentService2 init context "); // no 
output
   System.out.println("DocumentService2 message checking***");// no 
output
}
public void destroy(ServiceContext context) {
System.out.println("DocumentService2 destroy context "); // no 
output
}
public getRecord(int id){
   System.out.println("create***static 
**:"+MessageContext.getCurrentMessageContext()); // output null
   return Record.getId();
}
}

my service response gets the correct info ( I have no problem here, its only 
when I want to check the MessageContext)
but the ONLY sys out is create***static **:null
other sys outs are not seen init does not show up
Im using axis2-1.4.1
MessageContext still elusive



I am sorry, those methods does not work anymore. Please refer to the
following article.

https://wso2.org/library/articles/axis2-session-management
http://blogs.deepal.org/2009/06/axis2-tutorials-and-articles.html

Thanks,
Deepal



From: Cyril Furtado
Sent: Tuesday, August 04, 2009 1:50 PM
To: 'axis-user@ws.apache.org'
Subject: MessageContext is null, is something wrong?

I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println("init message called"); // 
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message 
called "); // not seen in output
}

In my method
String getRecord(int id){

System.out.println("message context :"+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril





MessageContext is null, is something wrong?

2009-08-04 Thread Cyril Furtado
I have in my implementation class added two methods as given in Axis2 articles
public void init(MessageContext inMessge, MessageContext outMessage) {
 // store the message contexts
System.out.println("init message called"); // 
is not seen in output & inMesssage is null
this.inMessge = inMessge;
}

public void setOperationContext(OperationContext opContext){
System.out.println("setOperationContext message 
called "); // not seen in output
}

In my method
String getRecord(int id){

System.out.println("message context :"+ 
MessageContext.getCurrentMessageContext());

}

getRecord when called from webservices
the only sys out I see is  message context :null
I do not see any of the other sys outs
Is there any other way to get the messageContext or am I doing something wrong?
Cyril





Axis2 java server/client strange behavior

2009-07-24 Thread Cyril Furtado
I'm running axis2 1.4  on tomcat running behind IIS server,
I generated a java client using the WSDL, this client works correctly when I 
point directly to Tomcat server
When I point to IIS server URL it responds with HTTP Error 430 ,
 on the Server log  I can see (there is no other error)
DEBUG transport.TransportUtils- Did not find RequestResponseTransport 
cannot set response written

Now I build a dot net client & point URL  directly to IIS server is responds 
correctly !!
Wow Java client- Java Server does not work
Dot net client - Java Server  Works

What's Happening??
Is there anything special that need to be done on Java Client??

Cyril


Axis2 runs on tomcat Application server behind IIS Web server

2009-07-21 Thread Cyril Furtado
When I run my client from dot net or from java   I get Error  given below
(Note when I point directly to tomcat using port number) It gives me the 
correct response ) So the server side executes correctly, but when its behind 
the IIS server it fails

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG i18n.ProjectResourceBundle  - 
org.apache.axis2.i18n.resource::handleGetObject(operationnotfoundforepr)

2009-07-21 16:42:17,390 [TP-Processor2] ERROR engine.AxisEngine   - 
The endpoint reference (EPR) for the Operation not found is 
/services/UnifierWebServices and the WSA Action = null

org.apache.axis2.AxisFault: The endpoint reference (EPR) for the Operation not 
found is /services/UnifierWebServices and the WSA Action = null
at 
org.apache.axis2.engine.DispatchPhase.checkPostConditions(DispatchPhase.java:88)
at org.apache.axis2.engine.Phase.invoke(Phase.java:333)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:264)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:163)
at 
org.apache.axis2.transport.http.util.RESTUtil.invokeAxisEngine(RESTUtil.java:136)
at 
org.apache.axis2.transport.http.util.RESTUtil.processURLRequest(RESTUtil.java:130)
at 
org.apache.axis2.transport.http.AxisServlet$RestRequestProcessor.processURLRequest(AxisServlet.java:824)
at 
org.apache.axis2.transport.http.AxisServlet.doGet(AxisServlet.java:253)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
at 
org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() in Phase "PreDispatch"

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() in Phase "Security"

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() in Phase "Addressing"

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() for Handler 'AddressingValidationHandler' in Phase 'Addressing'

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() for Handler 'AddressingBasedDispatcher' in Phase 'Addressing'

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() for Handler 'AddressingInHandler' in Phase 'Addressing'

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() in Phase "Transport"

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() for Handler 'SOAPActionBasedDispatcher' in Phase 'Transport'

2009-07-21 16:42:17,390 [TP-Processor2] DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:77BA4BF9B07321CE981248219737405] Invoking 
flowComplete() for Handler 'RequestURIBasedDispatcher' in Phase 'Transport'

2009-07-21 16:42:17,390 [TP-Processo

Jar files for Base64Binary AttachmentType MTOM Examples

2009-04-10 Thread Cyril Furtado
I am having difficulty compiling the examples in axis2 1.4 , I cannot locate 
the jar files where the following import statements are being referenced

import org.apache.ws.axis2.mtomsample.AttachmentResponse;
import org.apache.ws.axis2.mtomsample.AttachmentType;
import org.w3.www._2005._05.xmlmime.Base64Binary;

which jar/s should I get and from where?
Thanks
Cyril


Axis 1.4 Service and dot net C# 2.0) interoperable issue

2009-04-08 Thread Cyril Furtado
I have Axis2 1.4 Service (document literal) using POJO , when run using Axis2 
client, it works perfectly.
I have MTOM enabled, I have some services which send & receive Attachments, but 
the one I am running on dot net does not use attachments.
 I used the WSDL and generated a C# stub in Visual Studio 2005. When I run the 
service  I get a strange error
"Client found response content type of "multipart/related: 
boundary=MIMEBoundrayurn_uuid_(A;type="Application/xop+xml";start="<0.urn.uuid:9a...@apache.org>";
 start-info="text/xml/" but expected 'text/xml". Request failed.
Yet in the request envelope I see the full data.
Is there some setting which needs to be set?
Please help
Cyril


problem with MTOM and attachments please help

2009-04-07 Thread Cyril Furtado
(using Axis2 1.4  & Tomcat 5.0)
I have 3 methods in my service 2 with attachments, 1 no attachments
The method without attachments runs correctly, but the ones with attachments 
don't
For server returning attachments I have method javax.activation.DataHandler 
sendAttach(String filename)
In axis2.xml I have set MTOM enable to true;
I have client generated by WSDL2Java & also example from Axis2 MTOM guide, both 
return the same error.
What am I missing???
server log shows
2009-04-07 11:50:51, DEBUG builder.StAXOMBuilder   - END_ELEMENT: 
{http://general.service.webservices.skire.com}datahandler:datahandler
2009-04-07 11:50:51, DEBUG builder.StAXOMBuilder   - END_ELEMENT: 
{http://general.service.webservices.skire.com}getAttach:getAttach
2009-04-07 11:50:51, ERROR receivers.RPCMessageReceiver-
Exception occurred while trying to invoke service method getAttach
org.apache.axis2.AxisFault: javax.activation.DataHandler
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:30)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:410)
at 
org.apache.axis2.databinding.utils.BeanUtil.processObject(BeanUtil.java:722)
at 
org.apache.axis2.databinding.utils.BeanUtil.ProcessElement(BeanUtil.java:670)
at 
org.apache.axis2.databinding.utils.BeanUtil.deserialize(BeanUtil.java:602)
at 
org.apache.axis2.rpc.receivers.RPCUtil.processRequest(RPCUtil.java:153)
at 
org.apache.axis2.rpc.receivers.RPCUtil.invokeServiceClass(RPCUtil.java:188)
at 
org.apache.axis2.rpc.receivers.RPCMessageReceiver.invokeBusinessLogic(RPCMessageReceiver.java:102)
at 
org.apache.axis2.receivers.AbstractInOutMessageReceiver.invokeBusinessLogic(AbstractInOutMessageReceiver.java:40)
at 
org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:100)
at 
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:176)
at 
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
at 
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:131)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at 
org.apache.catalina.valves.FastCommonAccessLogValve.invoke(FastCommonAccessLogValve.java:495)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at 
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at 
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at 
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InstantiationException: javax.activation.DataHandler
at java.lang.Class.newInstance0(Class.java:335)
at java.lang.Class.newInstance(Class.java:303)
at 
org.apache.axis2.engine.DefaultObjectSupplier.getObject(DefaultObjectSupplier.java:28)


Services and Group services last problem is http 500 problem before axis2 is up

2009-04-01 Thread Cyril Furtado
Sorry for one more item, I do not know how to reply to the message!.
After going thru the log and configuring the servlet,  I found that the service 
cannot be seen under services, but can be seen under service groups.
I see the following
List Single service
StockQuoteService
Service EPR : http://localhost:8081/services/StockQuoteService
Service REST epr :http://localhost:8081/rest/StockQuoteService
Service Description : StockQuoteService
Service Status : Active
Available operations
getPrice
update

even the wsdl generation is correct.
Only issue is
But when I do a http://localhost:8081/services/StockQuoteService it says http 
500
And the log shows
2009-04-01 16:41:08,189 DEBUG util.StAXUtils - XMLStreamWriter 
is com.ctc.wstx.sw.SimpleNsStreamWriter
2009-04-01 16:41:08,205 DEBUG http.ApplicationXMLFormatter   - end writeTo()
2009-04-01 16:41:08,205 DEBUG transport.TransportUtils   - Did not find 
RequestResponseTransport cannot set response written
Why is this occurring??


Services are not seen is there something Im doing wrong? please help

2009-04-01 Thread Cyril Furtado
I look at /HappyAxis.jsp
It says all core jars are found and located

I have deployed StockQuoteService service as given in the examples
When I open  http://localhost:8081/axis2-web/listService.jsp
It says "There seems to be no services listed! Try hitting refresh"
Also I keep getting
2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG 
http.ApplicationXMLFormatter- end writeTo()
2009-04-01 12:30:58,891 [http-8081-Processor24] DEBUG transport.TransportUtils  
  - Did not find RequestResponseTransport cannot set response written

I look at the log4j and see the following log

2009-04-01 13:04:25,131 [main] INFO  deployment.ServiceDeployer  - 
Deploying Web service: StockQuoteService.aar - 
file:/D:/unifier/apps/ROOT/WEB-INF/services/StockQuoteService.aar
2009-04-01 13:04:25,131 [main] DEBUG util.Utils  - Created 
temporary file : 
D:\unifier\work\Catalina\localhost\_\_axis2\axis24180version.aar
2009-04-01 13:04:25,146 [main] DEBUG util.StAXUtils  - 
XMLStreamReader is com.ctc.wstx.sr.ValidatingStreamReader
2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder   - SPACE: [
]
2009-04-01 13:04:25,146 [main] DEBUG builder.StAXOMBuilder   - 
START_ELEMENT: service:service
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Get 
operation for getPrice
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Target 
namespace: http://quickstart.samples/
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - 
Operations aliases map: {}
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Imported 
namespaces: null
2009-04-01 13:04:25,099 [main] DEBUG description.AxisService - Found 
axis operation:  null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceRequest; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceResponse; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPrice; operation: 
org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: urn:getPrice; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Get 
operation for update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Target 
namespace: http://quickstart.samples/
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
Operations aliases map: 
{urn:getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getpriceresponse=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getprice=org.apache.axis2.description.inoutaxisoperat...@82674b, 
getpricerequest=org.apache.axis2.description.inoutaxisoperat...@82674b}
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Imported 
namespaces: null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - Found 
axis operation:  null
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: updateRequest; 
operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: update; operation: 
org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,115 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: urn:update; 
operation: org.apache.axis2.description.inonlyaxisoperat...@14b84c7named: update
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - Get 
operation for getPrice
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - Found 
axis operation:  org.apache.axis2.description.inoutaxisoperat...@82674b
2009-04-01 13:04:25,131 [main] DEBUG engine.Phase- Handler 
MustUnderstandChecker added to Phase OperationInPhase
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - 
mapActionToOperation: Mapping Action to Operation: action: getPriceRequest; 
operation: org.apache.axis2.description.inoutaxisoperat...@82674bnamed: getPrice
2009-04-01 13:04:25,131 [main] DEBUG description.AxisService - 
mapActionToOperation: This operation is already mapped to this action: 
getPriceRequest; AxisOperation: 
org.apache.axis2.description.inoutaxisoperat...@82674b named: g

Cannot see service give 500 Error

2009-03-31 Thread Cyril Furtado
Hi
I  deployed axis1.4.1  on Tomcat 5.0 , using all the jars provided in the axis2 
lib , added jms,jar , used the /conf/axis2.xml
Using the samples/pojo put StockQuoteService.aar as given in samples under 
/services directory
I have configured web.xml to start the Axis2 servlet
I have checked almost everything, but I cannot see the service

Here is the log --

2009-03-31 13:37:15,761   DEBUG engine.AxisEngine   - 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] sendFault:null

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
pre-condition for Phase "MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking phase 
"MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
post-conditions for phase "MessageOut"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
pre-condition for Phase "Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking phase 
"Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Checking 
post-conditions for phase "Security"

2009-03-31 13:37:15,761   DEBUG addressing.EndpointReference- 
hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is 
Anonymous: true

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- contentType 
set from messageContext =null

2009-03-31 13:37:15,761   DEBUG om.OMOutputFormat   - Start 
getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null 
doOptimize=false doingSWA=false isSOAP11=false charSetEncoding=UTF-8 
xmlVersion=null contentType=null ignoreXmlDeclaration=false 
autoCloseWriter=true actionProperty=null optimizedThreshold=0]

2009-03-31 13:37:15,761   DEBUG om.OMOutputFormat   - 
getContentType= {application/soap+xml}   OMOutputFormat [ mimeBoundary =null 
rootContentId=null doOptimize=false doingSWA=false isSOAP11=false 
charSetEncoding=UTF-8 xmlVersion=null contentType=application/soap+xml 
ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null 
optimizedThreshold=0]

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- (NOTE) 
contentType from format is=application/soap+xml

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- contentType 
returned =application/xml; charset=UTF-8

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- start 
writeTo()

2009-03-31 13:37:15,761   DEBUG util.StAXUtils  - 
XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter

2009-03-31 13:37:15,761   DEBUG http.ApplicationXMLFormatter- end writeTo()

2009-03-31 13:37:15,761   DEBUG transport.TransportUtils- Did not find 
RequestResponseTransport cannot set response written

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking 
flowComplete() in Phase "Security"

2009-03-31 13:37:15,761   DEBUG engine.Phase- 
[MessageContext: logID=urn:uuid:64582CF668548213C21238531835777] Invoking 
flowComplete() in Phase "MessageOut"

Please let me know whats wrong
Thanks
Cyril



Cannot deploy Services whats is wrong?

2008-12-05 Thread Cyril Furtado
I registered url  'ws/services/Document ' as the Axis2 Servlet  on tomcat 5.5.
I put the axis2.xml (taken from axis2 download)
I put services.xml and services.wsdl in the aar file and placed it under th 
web-inf directory
When I type
http:// dt-cyril:8080/ws/services/Document
I see http error 500.
In the server logs Im putting (last 15 lines) I see third last line as "- Did 
not find RequestResponseTransport cannot set response written " is there 
something Im doing wrong?? Please help
Thanks
Cyril

logs
--
2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG engine.Phase  
  - [MessageContext: logID=urn:uuid:662348B38FBE5855C61228526120899] 
Checking post-conditions for phase "Security"

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
addressing.EndpointReference- hasAnonymousAddress: 
http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
http.ApplicationXMLFormatter- contentType set from messageContext =null

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG om.OMOutputFormat 
  - Start getContentType: OMOutputFormat [ mimeBoundary =null 
rootContentId=null doOptimize=false doingSWA=false isSOAP11=false 
charSetEncoding=UTF-8 xmlVersion=null contentType=null 
ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null 
optimizedThreshold=0]

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG om.OMOutputFormat 
  - getContentType= {application/soap+xml}   OMOutputFormat [ mimeBoundary 
=null rootContentId=null doOptimize=false doingSWA=false isSOAP11=false 
charSetEncoding=UTF-8 xmlVersion=null contentType=application/soap+xml 
ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null 
optimizedThreshold=0]

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
http.ApplicationXMLFormatter- (NOTE) contentType from format 
is=application/soap+xml

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
http.ApplicationXMLFormatter- contentType returned =application/xml; 
charset=UTF-8

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
http.ApplicationXMLFormatter- start writeTo()

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG util.StAXUtils
  - XMLStreamWriter is com.ctc.wstx.sw.SimpleNsStreamWriter

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG 
http.ApplicationXMLFormatter- end writeTo()

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG transport.TransportUtils  
  - Did not find RequestResponseTransport cannot set response written

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG engine.Phase  
  - [MessageContext: logID=urn:uuid:662348B38FBE5855C61228526120899] 
Invoking flowComplete() in Phase "Security"

2008-12-05 17:15:20,889 [http-8081-Processor25] DEBUG engine.Phase  
  - [MessageContext: logID=urn:uuid:662348B38FBE5855C61228526120899] 
Invoking flowComplete() in Phase "MessageOut"





Cannot see Axis2 webservices in the URL

2008-11-26 Thread Cyril Furtado
I use Tomcat
I used the axis2.xml as given from the axis2 1.4.1 release
After deploying the services
And I check the URL for the service I see  Http 500 (Server Error)
Looking at the log I can see
"Did not find RequestResponseTransport cannot set response written"

What am I missing?
Cyril


How to debug axis2 log

2008-11-20 Thread Cyril Furtado
When I check for my services in the URL I get http 500
Log shows this ( there are many instances of it)
It's quite difficult to understand, what exactly is the error?

2008-11-20 12:07:22,186 [main] DEBUG scription.ParameterIncludeImpl  -   Value 
Classloader = null
2008-11-20 12:07:22,186 [main] DEBUG scription.ParameterIncludeImpl  - Call 
Stack = DEBUG_FRAME = 
org.apache.axis2.util.JavaUtils.callStackToString(JavaUtils.java:564)
DEBUG_FRAME = 
org.apache.axis2.description.ParameterIncludeImpl.debugParameterAdd(ParameterIncludeImpl.java:316)
DEBUG_FRAME = 
org.apache.axis2.description.ParameterIncludeImpl.addParameter(ParameterIncludeImpl.java:106)
DEBUG_FRAME = 
org.apache.axis2.description.AxisDescription.addParameter(AxisDescription.java:104)
DEBUG_FRAME = 
org.apache.axis2.deployment.DescriptionBuilder.processParameters(DescriptionBuilder.java:568)
DEBUG_FRAME = 
org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConfigBuilder.java:96)
DEBUG_FRAME = 
org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguration(DeploymentEngine.java:641)
DEBUG_FRAME = 
org.apache.axis2.deployment.WarBasedAxisConfigurator.(WarBasedAxisConfigurator.java:157)
DEBUG_FRAME = 
org.apache.axis2.transport.http.AxisServlet.initConfigContext(AxisServlet.java:516)
DEBUG_FRAME = 
org.apache.axis2.transport.http.AxisServlet.init(AxisServlet.java:436)
DEBUG_FRAME = 
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1105)
DEBUG_FRAME = 
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
DEBUG_FRAME = 
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
DEBUG_FRAME = 
org.apache.catalina.core.StandardContext.start(StandardContext.java:4201)
DEBUG_FRAME = 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
DEBUG_FRAME = 
org.apache.catalina.core.StandardHost.start(StandardHost.java:718)
DEBUG_FRAME = 
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)
DEBUG_FRAME = 
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)
DEBUG_FRAME = 
org.apache.catalina.core.StandardService.start(StandardService.java:450)
DEBUG_FRAME = 
org.apache.catalina.core.StandardServer.start(StandardServer.java:709)
DEBUG_FRAME = 
org.apache.catalina.startup.Catalina.start(Catalina.java:551)
DEBUG_FRAME = 
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
DEBUG_FRAME = 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
DEBUG_FRAME = 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
DEBUG_FRAME = java.lang.reflect.Method.invoke(Method.java:585)
DEBUG_FRAME = 
org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)
DEBUG_FRAME = 
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)




Axis2 Startup does not work

2006-06-06 Thread Cyril Furtado



I am using Tomcat 
4.1( will move to Tomcat 5) and JDK 1.5, We do not use a Web-Apps directory 
in Tomcat, Instead use the shared/lib directory to load the jar files. I have 
sucessfully used Axis1.2 for over 18 months in this config, now I am trying to 
switch to Axis2 but it has been very difficult, I cannot get the Admin Servlet 
started. What files are required under the WEB-INF and where does one put the 
services.xml file under the default Root directory of 
Tomcat?
 
When typing http://localhost:8081/axis2-admin in 
the browser I get
Error
Root Causejava.lang.NullPointerException
	at org.apache.axis2.transport.http.AdminAgent.(AdminAgent.java:76)
	at org.apache.axis2.transport.http.AxisAdminServlet.init(AxisAdminServlet.java:52)
	at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:935)
	at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:668)ThanksCyril