Axis2: Read time out for a long operation

2006-08-15 Thread debasish . duttaroy

Hi All
I have a sql operation (read) which is a time consuming one. It is ok if it takes time.

But Axis2 is throwing up exception. The stack trace is below.

I tried to update axis2.xml and increase the request timeout value.

        10                   

Do we need to do anything more?

Thanks
Debasish

org.apache.axis2.AxisFault: Read timed out; nested exception is: 
        java.net.SocketTimeoutException: Read timed out; nested exception is: 
        org.apache.axis2.AxisFault: Read timed out; nested exception is: 
        java.net.SocketTimeoutException: Read timed out
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:227)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:638)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:353)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:284)
        at com.novartis.ws.client.axis2.request.RequestWSStub.getRequestDetails(RequestWSStub.java:156)
        at com.novartis.ws.client.test.WSTestServlet.doGet(WSTestServlet.java:43)
        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: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:534)
Caused by: org.apache.axis2.AxisFault: Read timed out; nested exception is: 
        java.net.SocketTimeoutException: Read timed out
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:314)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:206)
        ... 31 more
Caused by: java.net.SocketTimeoutException: Read timed out
        at java.net.SocketInputStream.socketRead0(Native Method)
        at java.net.SocketInputStream.read(SocketInputStream.java:129)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
        at org.apache.commons.httpclient.HttpParser.readRawLine(HttpParser.java:77)
        at org.apache.commons.httpclient.HttpParser.readLine(HttpParser.java:105)
        at org.apache.commons.httpclient.HttpConnection.readLine(HttpConnection.java:1115)
        at org.apache.commons.httpclient.HttpMethodBase.readStatusLine(HttpMethodBase.java:1832)
        at org.apache.commons.httpclient.HttpMethodBase.readResponse(HttpMethodBase.java:1590)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.java:995)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:397)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDi

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread debasish . duttaroy

Perfect!!!

Thanks a lot.
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Anne Thomas Manes" <[EMAIL PROTECTED]>
08/15/2006 01:33 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT


Validation of your WSDL produces this warning:

There is no schema component of the name [requestRA] defined in the WSDL either via imported or embedded schema.

This error is caused by the definition of the "ralist" element, which is the last child element of the "requestDetails" element. It is defined as: 



Two problems:
1. you must namespace qualify the referenced type. 
2. "requestRA" must be defined as a type rather than an element.

The "raList" definition should be:

 

And the "requestRA" definition should be:


    
        
        ...
    


Anne 

On 8/15/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi Ajith 
I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference. 

There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object. 

At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition. 

Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement. 



___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033 





"Ajith Ranabahu" <[EMAIL PROTECTED] > 
08/15/2006 09:08 AM 
Please respond to axis-user 
        
        To:        axis-user@ws.apache.org 
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis) 
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT



Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:
> I have seen that example on the net. But my list/array is of another object.
> Not a native data type.
> If I do a complextype then this object is not created.
>
> I any case, it creates an array of OMElement[] and not an Object[].
>
> As for creating list vs array, i think it would depend on the tool. If it
> can create one you can get a list.
>
> I am using the nightly build of 08/07/2006. Anybody has got any idea???
>
> It is a simple case, I have a manager Class which has member of array of
> Employee objects who are subordinates to him.
>
> On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > As far as generating code is concerned you *cannot* generate a list
> > field, even if you have a the maxOccurs set to unbound! it is always
> > an array!
> > As for this schema it is not right. What you should be doing is the
> following
> >
> > 
> >
> > 
> >                 
> >                         
> type="xsd:string"/>
> >                 
> > 
> >
> >
> >
> > Ajith
> > On 8/11/06, [EMAIL PROTECTED]
> > < [EMAIL PROTECTED]> wrote:
> > >
> > > All
> > > I need an object which contains a member variable, which is list of
> another
> > > object.
> > >
> > > Class A {
> > > //list of object B
> > > private java.util.List bList;
> > > }
> > >
> > > Class B {
> > > private String str;
> > > }
> > >
> > > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
> I
> > > am using the tool I expect to get a java.util.List
> > >
> > > This is how my current wsdl looks...
> > >
> > > 
> > >
> > > 
> > >         
> > >                 
> > >                         
> > >                 
> > >                 
> > > 
> > >
> > > But when I generate the code inside class A, I get
> > >
> > > protected org.apache.axiom.om.OMElement[] localBList ;
> > >
> > > why an array, and why OMElement?
> > >
> > > Can you tell me what I am missing.
> > > ___
> > > Debasish Dutta Roy
> > > NITAS
> > > Ph: 617-871-3033
> > > _
> > >
> > > CONFIDENTIALITY NOTICE
> > &

Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT

2006-08-15 Thread debasish . duttaroy

Hi Ajith
I also believe the same. There is something wrong in the schema part of the wsdl file. I am attaching the wsdl file for your reference.

There is a requestDetails object and as a member variable of the request details object I want an array of RequestRA object.

At line 84 I have defined the element of raList, which I want as an array/List of RequestRA/Object and then at line 90 is the requestRA definition.

Right now the RequestRA class is getting created but inside requestDetails raList is an array of OMElement.


___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Ajith Ranabahu" <[EMAIL PROTECTED]>
08/15/2006 09:08 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Axis2: Code Generator BUG? - Create list/Array of objects - IMPORTANT


Hi,
If your schema declaration is proper then it should generate an array
of the correct type. If you are still seeing OMElements then there
could be a problem with your schema

Ajith

On 8/15/06, Debasish Dutta Roy <[EMAIL PROTECTED]> wrote:
> I have seen that example on the net. But my list/array is of another object.
> Not a native data type.
> If I do a complextype then this object is not created.
>
> I any case, it creates an array of OMElement[] and not an Object[].
>
> As for creating list vs array, i think it would depend on the tool. If it
> can create one you can get a list.
>
> I am using the nightly build of 08/07/2006. Anybody has got any idea???
>
> It is a simple case, I have a manager Class which has member of array of
> Employee objects who are subordinates to him.
>
> On 8/11/06, Ajith Ranabahu <[EMAIL PROTECTED]> wrote:
> > Hi,
> > As far as generating code is concerned you *cannot* generate a list
> > field, even if you have a the maxOccurs set to unbound! it is always
> > an array!
> > As for this schema it is not right. What you should be doing is the
> following
> >
> > 
> >
> > 
> >                 
> >                         
> type="xsd:string"/>
> >                 
> > 
> >
> >
> >
> > Ajith
> > On 8/11/06, [EMAIL PROTECTED]
> > < [EMAIL PROTECTED]> wrote:
> > >
> > > All
> > > I need an object which contains a member variable, which is list of
> another
> > > object.
> > >
> > > Class A {
> > > //list of object B
> > > private java.util.List bList;
> > > }
> > >
> > > Class B {
> > > private String str;
> > > }
> > >
> > > How do I represent this in WSDL. I am using WSDL2Java commandline. Since
> I
> > > am using the tool I expect to get a java.util.List
> > >
> > > This is how my current wsdl looks...
> > >
> > > 
> > >
> > > 
> > >         
> > >                 
> > >                         
> > >                 
> > >                 
> > > 
> > >
> > > But when I generate the code inside class A, I get
> > >
> > > protected org.apache.axiom.om.OMElement[] localBList ;
> > >
> > > why an array, and why OMElement?
> > >
> > > Can you tell me what I am missing.
> > > ___
> > > Debasish Dutta Roy
> > > NITAS
> > > Ph: 617-871-3033
> > > _
> > >
> > > CONFIDENTIALITY NOTICE
> > >
> > > The information contained in this e-mail message is intended only for
> the
> > > exclusive use of the individual or entity named above and may contain
> > > information that is privileged, confidential or exempt from disclosure
> under
> > > applicable law. If the reader of this message is not the intended
> recipient,
> > > or the employee or agent responsible for delivery of the message to the
> > > intended recipient, you are hereby notified that any dissemination,
> > > distribution or copying of this communication is strictly prohibited. If
> you
> > > have received this communication in error, please notify the sender
> > > immediately by e-mail and delete the material from any computer.  Thank
> you.
> > >
> >
> >
> > --
> > Ajith Ranabahu
> >
> >
> -
> > To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
&

Axis2: Code Generator - Create list of objects

2006-08-11 Thread debasish . duttaroy

All
I need an object which contains a member variable, which is list of another object.

Class A {
//list of object B
private java.util.List bList;
}

Class B {
private String str;        
}

How do I represent this in WSDL. I am using WSDL2Java commandline. Since I am using the tool I expect to get a java.util.List

This is how my current wsdl looks...




        
                
                        
                xsd:sequence>
                xsd:complexType>
xsd:element>

But when I generate the code inside class A, I get

protected org.apache.axiom.om.OMElement[] localBList ;

why an array, and why OMElement?

Can you tell me what I am missing. 
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033
_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


Re: Cannot work with Axis2 - URGENT - A quick list of lessons learnt

2006-08-08 Thread debasish . duttaroy

Preface
I have a simple application which does nothing more than Insert, Update, Delete, Select from the Oracle database.
Its a J2EE application where

Front End : Struts 1.2, JSP etc.

Middle Layer - Business Delegates, Service Locator, Value objects etc.

Data Access Layer - iBATIS

The application is deployed in Tomcat 5 and I use myeclipse to build my applications.

My Requirement - Axis2 comes into play
 
My new requirement is to build a web services layer on top of this application. So that all those magic Selects, Inserts, Updates and Deletes can be done via other interfaces.
Hence I chose to use Axis2 to accomplish the task.

My attempt

I am new to Axis2 and web services.

I wanted to use a select, and write a simple servlet to invoke this web service. This is what I did.

1. I had wrote the wsdl file manually. 

2. I am using the nightly build of 08/07/2006. I am seeing some email about broken build. But I am not facing any problem.
        - First doubt was, which jars to use, one from bin-min or bin-std. I decided to use the 24 jars inside bin-min.

3. First mistake done and a major one. Do not use the eclipse plug-in tool for code generation. Use the commandline tool that is packaged inside the nightly build. Thanks Dims for the information (don't know how many times I am going to thank this guy)

4. Update the My*Skeleton code to call my delegate which in turn calls the iBATIS layer (my DAO classes) to get the information from the database. Convert the object to one for the return type.

5. I export the java project from eclipse as a jar file and rename it to .aar. Short, simple and works for dev purposes. Next mistake made here - Never put the axis2 distribution jar files inside the .aar file. Put them in the WEB-INF/lib. This is also identified and prompted by Dims. Thanks again.

6. So now, where do I put my iBATIS jars and log4j jars (there could be more). Create a directory "lib" inside the .aar and place them inside it. Basically I created a folder "lib" at the root of my eclipse java project and placed all these jars in there.

7. Now deploy this .aar in Axis2. Check out the services to confirm all is golden.

8. Now I took the same wsdl file as if I am a client and have no whereabouts of the webservice. Now I want to write a servlet in my webapp, one in my world, who knows nothing of the above. First I generated only the client code using the WSDL2Java commandline tool and this wsdl file. Yes, I am writing an axis2 client. This created just one My*Stub.java. All other required classes are created as inner classes. How can I make the tool create separate java files rather than all these inner classes?

9. Now from the servlet I call this stub and the method and hope to get a response. This took me 2 days and I could have done nothing without Dims who removed the major road blocks (you were great! Thanks again!!!).

10. When you are returning an object, then make sure to populate all the fields of the object. I was asking Dims, whether there is any default rule in Axis2. Well, I think we should take care of this in the middle layer business logic, and the onus should not be on Axis2.

11. In my application, I had all my iBATIS and other config xml and properties under a xml folder and they were placed in the .aar accordingly. But the regular release has a classpath issue because of which it fails to find and load the properties. This was also pointed out by Dims and he fixed it and was available in the nightly build. Thanks again.

12. So, make sure you are using the nightly build if you have a similar structure as mine, Make sure you run the wsdl2java again (don't mix and match old generated code with new jars or vice versa).
Make sure you thoroughly check all the jars that are in your environment. It's very easy to mix jars and not know about it - These are all words from Dims, I am putting it here again. Thanks!.

Hope it helps and again big thanks for the apache group and especially Dims.

Thanks
Debasish

___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033

_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


Re: Cannot work with Axis2 - URGENT

2006-08-07 Thread debasish . duttaroy

Dims
I am now using the jars from nightly build of 7th August. I took all the jars that are inside the zip file of "min" and not the "std".

Can you tell me what is this issue? Is it a mere classpath issue because of incorrect jar files or is it something else.

Here is my wsdl file I write by m own


___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Davanum Srinivas" <[EMAIL PROTECTED]>
08/07/2006 10:33 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Cannot work with Axis2 - URGENT


Debashish,

- Make sure you are using the nightly build.
- Make sure you run the wsdl2java again (don't mix and match old
generated code with new jars or vice versa)
- Make sure you thoroughly check all the jars that are in your
environment. It's very easy to mix jars and not know about it.

-- dims

On 8/7/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> Hi all
> I am now really frustrated with Axis2. I have spend enormous amount of time
> but cannot get my application going anywhere.
> I am getting into a stage where I have to quit Axis2 to save my job and go
> for some other option.
> I am wondering is anyone actually using Axis2 for some real application or
> is it only for writing hello world etc. Because I can do that too. If anyone
> have anything more, please help.
>
> Here is the scenario...
>
> I have downloaded the nightly version for Axis2 of 7th August.
>
> I have a java project in MyEclipse which is called PhoenixWebServices. Just
> one project.
> I have more than one packages inside it.
>
> 1. I have a package for business delegates, which contains delegate classes
> that call dao classes in dao package.
> This package also contains a folder called "xml" that contains, iBATIS
> related xml files. These xmls are loaded by a static block.
>
> 2. I have a package for DAO classes. These implement dao operations.  I use
> iBATIS for database operations.
>
> 3. I have a package for webservices. This has all META-INF/wsdl and
> services.xml files. Also the WSDL2Java generated server and client codes.
> Client code is modified to call the business delegate mentioned in point 1.
>
> All are packaged in a .aar file and deployed to Axis2. I am attaching the
> .aar file.
>
> I have a webapp and a simple servlet. I have taken the WSDL file and
> generated client code here and the servlet calls the service.
> Simple. There is no rocket science here. But I have not been able to do
> this. Am I doing anything strange. I should be able to do this.
>
> Please advise. Else can anyone suggest an alternative for Axis2. I opened my
> big mouth and praised about Axis2 to management and now I am screwed up.
>
> SEVERE: java.lang.NoSuchMethodError:
> org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError:
> org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
>         at
> org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>         at
> com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
>         at
> com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
>         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: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)
>  

Cannot work with Axis2 - URGENT

2006-08-07 Thread debasish . duttaroy

Hi all
I am now really frustrated with Axis2. I have spend enormous amount of time but cannot get my application going anywhere.
I am getting into a stage where I have to quit Axis2 to save my job and go for some other option.
I am wondering is anyone actually using Axis2 for some real application or is it only for writing hello world etc. Because I can do that too. If anyone have anything more, please help.

Here is the scenario...

I have downloaded the nightly version for Axis2 of 7th August.

I have a java project in MyEclipse which is called PhoenixWebServices. Just one project.
I have more than one packages inside it. 

1. I have a package for business delegates, which contains delegate classes that call dao classes in dao package.
This package also contains a folder called "xml" that contains, iBATIS related xml files. These xmls are loaded by a static block.

2. I have a package for DAO classes. These implement dao operations.  I use iBATIS for database operations.

3. I have a package for webservices. This has all META-INF/wsdl and services.xml files. Also the WSDL2Java generated server and client codes.
Client code is modified to call the business delegate mentioned in point 1.

All are packaged in a .aar file and deployed to Axis2. I am attaching the .aar file.

I have a webapp and a simple servlet. I have taken the WSDL file and generated client code here and the servlet calls the service.
Simple. There is no rocket science here. But I have not been able to do this. Am I doing anything strange. I should be able to do this.

Please advise. Else can anyone suggest an alternative for Axis2. I opened my big mouth and praised about Axis2 to management and now I am screwed up.

SEVERE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
        at com.debasish.remote.axis2.client.request.RequestWSStub.getRequestDetails(RequestWSStub.java:119)
        at com.debasish.remote.test.RemoteAxis2Servlet.doGet(RemoteAxis2Servlet.java:49)
        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: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:534)
Caused by: java.lang.Exception: org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J; nested exception is: 
        java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTolong(Ljava/lang/String;)J
        at org.apache.axis2.transport.http.AxisSe

Re: Totally messed after downloading 2nd august nightly build - URGENT

2006-08-04 Thread debasish . duttaroy

hmm..
Where should it be. Is it inside the bindings tag?

Something like:

        <wsdl:binding type="axis2:HelloWorldPortType" name="HelloWorldSOAP11Binding">
                <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
                <wsdl:operation name="sayHello">
                        <soap:operation style="document" soapAction="urn:sayHello" />
                        <wsdl:input>
                                <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
                        wsdl:input>
                        <wsdl:output>
                                <soap:body namespace="http://ws.apache.org/axis2" use="literal" />
                        wsdl:output>
                wsdl:operation>
        wsdl:binding>

Is it a mandatory thing? I was trying to imitate from a sample wsdl? Do you think that is the problem?
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Anne Thomas Manes" <[EMAIL PROTECTED]>
08/04/2006 02:14 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Totally messed after downloading 2nd august nightly build - URGENT


Your hand-written WSDL is not valid. It's missing a  definition.

Anne

On 8/3/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
> I downloaded nightly build of 2nd august as I was facing some class loader
> issues. Now things are so screwed up I cannot even run a hello world
> service.
>
> Here is my hand written hello wsdl. This used to work fine.
>
> Now I can upload the service. And when I browse to see the wsdl in the
> browser (I suppose generated by Axis2) it is very different from my written
> wsdl. Now it has added something like
>
> - 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> name="HelloWSPortType">
> - 
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> name="sayHello">
>   
> xmlns:wsaw="http://www.w3.org/2005/08/addressing/wsdl"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> message="ns0:name" wsaw:Action="" />
>   
> xmlns:wsaw="http://www.w3.org/2005/08/addressing/wsdl"
> xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
> message="ns0:helloSuccess"
> wsaw:Action="">
> />
>   
>   
>
> wsaw:Action attribute and named it sayHelloResponse. Now the client code
> gives an exception saying unexpected element sayHelloResponse found.
>
> Should I download next build. How do I get back to scratch and write a hello
> world successfully.
>
>
>
>
>  ___
>  Debasish Dutta Roy
>  NITAS
>  Ph: 617-871-3033
>  _
>
>  CONFIDENTIALITY NOTICE
>
>  The information contained in this e-mail message is intended only for the
> exclusive use of the individual or entity named above and may contain
> information that is privileged, confidential or exempt from disclosure under
> applicable law. If the reader of this message is not the intended recipient,
> or the employee or agent responsible for delivery of the message to the
> intended recipient, you are hereby notified that any dissemination,
> distribution or copying of this communication is strictly prohibited. If you
> have received this communication in error, please notify the sender
> immediately by e-mail and delete the material from any computer.  Thank you.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


Re: Totally messed after downloading 2nd august nightly build - URGENT

2006-08-04 Thread debasish . duttaroy

Yes I did.

Yesterday I was wondering why is wsaw getting added. It did not on the normal download version of Axis2. I had to revert back to that to solve this problem.

I believe the nightly build was based upon WSDL2.0 and that is why it adds the wsaw.

The reason I downloaded the nightly build was because I was not able to avoid some classpath/classloader issues. I remember you suggested to get the nightly build since you had put some fix. But with that I am not able to run Hello world also. Offcourse I am missing something

-Debasish
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Davanum Srinivas" <[EMAIL PROTECTED]>
08/04/2006 12:55 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Totally messed after downloading 2nd august nightly build - URGENT


Debasish,

Did you run codegen (ie wsdl2java) again with the latest nightly?

-- dims

On 8/4/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> But why is this wsaw getting added. I do not have that in my hello.wsdl which I attached in the previous email?
>
> I got the 08/04 nightly build today. I still have the same problem. It appears in the wsdl that axis2 is generating.
>
> Also, can anyone tell me why I get this, this is related to the same...
>
> Aug 4, 2006 10:40:51 AM org.apache.axis2.transport.http.AxisServlet doPost
> SEVERE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(Ljava/lang/String;)Ljava/lang/String;
> org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(Ljava/lang/String;)Ljava/lang/String;
>         at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
>         at com.novartis.phoenix.webservices.hello.HelloWSStub.sayHello(HelloWSStub.java:105)
>         at com.novartis.phoenix.web.test.TestServlet.doGet(TestServlet.java:36)
>         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: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:534)
>
> Do I need to put some jar files in the web-inf lib of axis2?
>
>  ___
>  Debasish Dutta Roy
>  NITAS
>  Ph: 617-871-3033
>
>
>
>
>
> "Martin Gainty" <[EMAIL PROTECTED]>
>
> 08/04/2006 10:36 AM
> Please respond to axis-user
>
>
>         To:        axis-

RE: Totally messed after downloading 2nd august nightly build - URGENT

2006-08-04 Thread debasish . duttaroy

But why is this wsaw getting added. I do not have that in my hello.wsdl which I attached in the previous email?

I got the 08/04 nightly build today. I still have the same problem. It appears in the wsdl that axis2 is generating.

Also, can anyone tell me why I get this, this is related to the same...

Aug 4, 2006 10:40:51 AM org.apache.axis2.transport.http.AxisServlet doPost
SEVERE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(Ljava/lang/String;)Ljava/lang/String;
org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertTostring(Ljava/lang/String;)Ljava/lang/String;
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
        at com.novartis.phoenix.webservices.hello.HelloWSStub.sayHello(HelloWSStub.java:105)
        at com.novartis.phoenix.web.test.TestServlet.doGet(TestServlet.java:36)
        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: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:534)

Do I need to put some jar files in the web-inf lib of axis2?
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Martin Gainty" <[EMAIL PROTECTED]>
08/04/2006 10:36 AM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        RE: Totally messed after downloading 2nd august nightly build - URGENT


Regarding your wsaw namespace identifier

I could locate
http://www.w3.org/2006/03/addressing/ws-addr.xsd
where 'Action' is defined as


where AttributedURIType is defined-

    
        
            
        
    


where anyURI is defined as

    
        
            
            
            
            
            
            
            
            
            
            
        
        
source="http://www.w3.org/TR/xmlschema-2/#anyURI"/>
    
    
        
id="anyURI.whiteSpace"/>
    


I see a restriction on the anyURI being non-numeric which may cause the 
problem

Anyone else ??
Martin Gainty
__
Disclaimer and confidentiality note
Everything in this e-mail and any attachments relates to the official 
business of Sender. This transmission is of a confidential nature and Sender 
does not endorse distribution to any party other than intended recipient. 
Sender does not necessarily endorse content contained within this 
transmission.
(mobile) 001-603-438-5053





>From: [EMAIL PROTECTED]
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Totally messed after downloa

Totally messed after downloading 2nd august nightly build - URGENT

2006-08-03 Thread debasish . duttaroy

I downloaded nightly build of 2nd august as I was facing some class loader issues. Now things are so screwed up I cannot even run a hello world service.

Here is my hand written hello wsdl. This used to work fine. 

Now I can upload the service. And when I browse to see the wsdl in the browser (I suppose generated by Axis2) it is very different from my written wsdl. Now it has added something like 

- 
- 
   
   
  wsdl:operation>
  wsdl:portType>

wsaw:Action attribute and named it sayHelloResponse. Now the client code gives an exception saying unexpected element sayHelloResponse found.

Should I download next build. How do I get back to scratch and write a hello world successfully.




___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033
_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


services.xml
Description: Binary data


hello.wsdl
Description: Binary data


helloAxis2.wsdl
Description: Binary data
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Facing error after getting 2nd august nightly build

2006-08-03 Thread debasish . duttaroy

SEVERE: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/String;)I
org.apache.axis2.AxisFault: java.lang.NoSuchMethodError: org.apache.axis2.databinding.utils.ConverterUtil.convertToint(Ljava/lang/String;)I
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:287)
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033
_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


Re: Problem with dependant jar files inside aar - URGENT

2006-08-01 Thread debasish . duttaroy

Thanks dims!
I will pick it up.
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Davanum Srinivas" <[EMAIL PROTECTED]>
08/01/2006 04:15 PM
Please respond to axis-user

        
        To:        axis-user@ws.apache.org
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        Re: Problem with dependant jar files inside aar - URGENT


Debasish,

Yes, this should be fixed if you pick up a nightly build in a few hours.

-- dims

On 8/1/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>
>
> As a resource
>
> Reader reader = Resources.getResourceAsReader("xml/dao.xml");
>
> I get a file not found exception.
>
> However, if I put all the jars in WEB-INF lib of Axis2 then the file is found. But you surely dont want to do that. Also if I put it all in WEB-INF lib now, I am getting problems with jdbc context not found, meaning the datasource and all. Its getting recursive and now all getting coupled together.
>
> My dao.xml has
>
> 
>         
> 
>
> And in sql-map-config file I have JNDI datasource defined.
>
> Can anyone point to an example of how I should typically design my services around my business delegates and OR-mapping layers.
>
>
> Thanks
> Debasish
>
>  ___
>  Debasish Dutta Roy
>  NITAS
>  Ph: 617-871-3033
>
>
>
>
>
> "Derek" <[EMAIL PROTECTED]>
>
> 08/01/2006 03:04 PM
> Please respond to axis-user
>
>         To:        
>         cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
>         Subject:        RE: Problem with dependant jar files inside aar - URGENT
>
>
> How are you trying to open the dao.xml file? As a resource? As a file? What lines of code are you using?
>
> -Original Message-
>  From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>  Sent: Tuesday, August 01, 2006 8:50 AM
>  To: axis-user@ws.apache.org
>  Subject: Problem with dependant jar files inside aar - URGENT
>
>
>  Hi
>  Here is my scenario.
>
>  1. I have a myeclipse Java project MyCommons. This contains some util libraries etc.
>
>  2.I have a  myeclipse Java proeject named MyPersistence which communicates with the database.
>
>  3. I have a myeclipse java project named MyServices which has all the business rules and calls the DAO classes inside MyPersistence. I have a dao.xml file inside this project.
>
>  4. I have a myeclipse java project named MyWebServices where I have my web services. The Skeleton client class is updated to call the delegate methods inside MyServices.
>
>  With this done, I deploy the service like
>
>  --Services
>          ---MyWebServices
>                  --lib
>                          //contains all the jar files like axis2 jars, iBATIS jars and MyPersistence, MyServices & MyCommons exported as jar files
>                  --META-INF
>                          //contains services.xml and wsdl files
>
>
>  The services are deployed perfectly. Did not give any problems. But at runtime, the control gets into the business delegate class inside MyServices, but the delegate cannot find the dao.xml, which is there inside the MyServices.jar file.
>
>  I am pretty sure this is an ordinary situation and perhaps is a combination of packaging and class loader issue. Looking forward for some resolution.
>
>  Thanks
>  Debasish
>  ___
>  Debasish Dutta Roy
>  NITAS
>  Ph: 617-871-3033
>  _
>
>  CONFIDENTIALITY NOTICE
>
>  The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.
>
>
>  _
>
>  CONFIDENTIALITY NOTICE
>
>  The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby 

RE: Problem with dependant jar files inside aar - URGENT

2006-08-01 Thread debasish . duttaroy

As a resource

Reader reader = Resources.getResourceAsReader("xml/dao.xml");

I get a file not found exception.

However, if I put all the jars in WEB-INF lib of Axis2 then the file is found. But you surely dont want to do that. Also if I put it all in WEB-INF lib now, I am getting problems with jdbc context not found, meaning the datasource and all. Its getting recursive and now all getting coupled together.

My dao.xml has

<transactionManager type="SQLMAP">
        <property name="SqlMapConfigResource" value="xml/sql-map-config.xml"/>
transactionManager>

And in sql-map-config file I have JNDI datasource defined.

Can anyone point to an example of how I should typically design my services around my business delegates and OR-mapping layers.

Thanks
Debasish

___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033






"Derek" <[EMAIL PROTECTED]>
08/01/2006 03:04 PM
Please respond to axis-user

        
        To:        
        cc:        (bcc: Debasish DuttaRoy/X/PH/Novartis)
        Subject:        RE: Problem with dependant jar files inside aar - URGENT


How are you trying to open the dao.xml file? As a resource? As a file? What lines of code are you using?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 01, 2006 8:50 AM
To: axis-user@ws.apache.org
Subject: Problem with dependant jar files inside aar - URGENT


Hi 
Here is my scenario. 

1. I have a myeclipse Java project MyCommons. This contains some util libraries etc. 

2.I have a  myeclipse Java proeject named MyPersistence which communicates with the database. 

3. I have a myeclipse java project named MyServices which has all the business rules and calls the DAO classes inside MyPersistence. I have a dao.xml file inside this project. 

4. I have a myeclipse java project named MyWebServices where I have my web services. The Skeleton client class is updated to call the delegate methods inside MyServices. 

With this done, I deploy the service like 

--Services 
        ---MyWebServices 
                --lib 
                        //contains all the jar files like axis2 jars, iBATIS jars and MyPersistence, MyServices & MyCommons exported as jar files 
                --META-INF 
                        //contains services.xml and wsdl files 


The services are deployed perfectly. Did not give any problems. But at runtime, the control gets into the business delegate class inside MyServices, but the delegate cannot find the dao.xml, which is there inside the MyServices.jar file. 

I am pretty sure this is an ordinary situation and perhaps is a combination of packaging and class loader issue. Looking forward for some resolution. 

Thanks 
Debasish
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033
_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.


Problem with dependant jar files inside aar - URGENT

2006-08-01 Thread debasish . duttaroy

Hi
Here is my scenario.

1. I have a myeclipse Java project MyCommons. This contains some util libraries etc.

2.I have a  myeclipse Java proeject named MyPersistence which communicates with the database.

3. I have a myeclipse java project named MyServices which has all the business rules and calls the DAO classes inside MyPersistence. I have a dao.xml file inside this project.

4. I have a myeclipse java project named MyWebServices where I have my web services. The Skeleton client class is updated to call the delegate methods inside MyServices.

With this done, I deploy the service like

--Services
        ---MyWebServices
                --lib
                        //contains all the jar files like axis2 jars, iBATIS jars and MyPersistence, MyServices & MyCommons exported as jar files
                --META-INF
                        //contains services.xml and wsdl files


The services are deployed perfectly. Did not give any problems. But at runtime, the control gets into the business delegate class inside MyServices, but the delegate cannot find the dao.xml, which is there inside the MyServices.jar file.

I am pretty sure this is an ordinary situation and perhaps is a combination of packaging and class loader issue. Looking forward for some resolution.

Thanks
Debasish
___
Debasish Dutta Roy
NITAS
Ph: 617-871-3033
_

CONFIDENTIALITY NOTICE

The information contained in this e-mail message is intended only for the exclusive use of the individual or entity named above and may contain information that is privileged, confidential or exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, or the employee or agent responsible for delivery of the message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify the sender immediately by e-mail and delete the material from any computer.  Thank you.