You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Karma Yogi <ka...@gmail.com> on 2007/07/18 19:48:10 UTC

Strange Error when deploying web services as war file in Tomcat 5.5

Guys,

   In addition to yesterday's question, here are some more problems that are
driving me crazy.

1) The webapp with my service works perfectly when deployed in exploded
format, but the same thing stops working when I have it deployed as a war
file. (This is very important that I do it this way because the webservices
are embedded in my webapp)
2) I have tried adding the original wsdl files in the META-INF of each
service, kept the services as expanded directories within the
WEB-INF/services folder, tried the .aar file with the
services.listapproach, but all the time I get 'The service cannot be
found for the
endpoint reference '

Is there a specific flag that I can turn on to detect the service end points
(in the log) when my web app comes up without having to deploy the entire
axis web app. I cannot do that because I am embedding axis2 inside another
app.

Any help from the gurus will be appreciated.

Thanks,
Yogi

---------- Forwarded message ----------
From: Karma Yogi <ka...@gmail.com>
Date: Jul 17, 2007 11:00 AM
Subject: End point reference error and extra logging
To: axis-user@ws.apache.org

Folks,

  I would like some guidance on two issues that I am encountering.

1) My web service works very fine on my local server, but the same thing
deployed on a different server comes up with the error
' org.apache.axis2.AxisFault: The service cannot be found for the endpoint
reference (EPR) http://blahblah:8080/somecontext/services/MyWebService'
What are the causes of such an error.

2) How do I enable axis2 logging. I am using a commons bridge that I built
for the logging within my webapp and would like to redirect all axis2 logs
using that bridge. ?

Any help is appreciated.

Thanks,
Yogi

Re: Strange Error when deploying web services as war file in Tomcat 5.5

Posted by Karma Yogi <ka...@gmail.com>.
I have narrowed down the problem further.

One of my wsdls refers to a xsd file and when packaged inside a war file the
loader is unable to open that xsd even though it is present at the same
location as the wsdl.

    ERROR - WSDLException (at /wsdl:definitions/wsdl:types/xsd:schema):
faultCode=OTHER_ERROR:
An error occurred trying to resolve schema referenced at 'common.xsd'.:
java.io.FileNotFoundException:
This file was not found: file:/C:/abcd/tomcat55/bin/common.xsd
    at com.ibm.wsdl.xml.WSDLReaderImpl.parseSchema(Unknown Source)

This is how the xsd is referenced in my wsdl

<xsd:import
      namespace="http://abcd.com/wsdl/common"
      schemaLocation="common.xsd" />


How do I convey the fact that the common.xsd can be found in the same
location as the wsdl ?

Yogi

On 7/18/07, Karma Yogi <ka...@gmail.com> wrote:
>
> I tried that too Haneef, but still get the same error. :(
>
> Yogi
>
>
>
> On 7/18/07, Ali, Haneef <haneef.ali@hp.com > wrote:
> >
> > Create a file called wsdl.list and add the name of the wsdl to it. The
> > wsdl along with wsdl.list should be in meta-inf of your service archive
> > file.
> >
> > Thanks,
> > Haneef
> >
> >
> >
> > ________________________________
> >
> > From: Karma Yogi [mailto: karmayogi31@gmail.com]
> > Sent: Wednesday, July 18, 2007 10:48 AM
> > To: axis-user@ws.apache.org
> > Subject: Strange Error when deploying web services as war file in Tomcat
> >
> > 5.5
> >
> >
> >
> > Guys,
> >
> >    In addition to yesterday's question, here are some more problems that
> > are driving me crazy.
> >
> > 1) The webapp with my service works perfectly when deployed in exploded
> > format, but the same thing stops working when I have it deployed as a
> > war file. (This is very important that I do it this way because the
> > webservices are embedded in my webapp)
> > 2) I have tried adding the original wsdl files in the META-INF of each
> > service, kept the services as expanded directories within the
> > WEB-INF/services folder, tried the .aar file with the services.list
> > approach, but all the time I get 'The service cannot be found for the
> > endpoint reference '
> >
> > Is there a specific flag that I can turn on to detect the service end
> > points (in the log) when my web app comes up without having to deploy
> > the entire axis web app. I cannot do that because I am embedding axis2
> > inside another app.
> >
> > Any help from the gurus will be appreciated.
> >
> > Thanks,
> > Yogi
> >
> > ---------- Forwarded message ----------
> > From: Karma Yogi < karmayogi31@gmail.com <mailto:karmayogi31@gmail.com >
> > >
> > Date: Jul 17, 2007 11:00 AM
> > Subject: End point reference error and extra logging
> > To: axis-user@ws.apache.org
> >
> > Folks,
> >
> >   I would like some guidance on two issues that I am encountering.
> >
> > 1) My web service works very fine on my local server, but the same thing
> > deployed on a different server comes up with the error
> > ' org.apache.axis2.AxisFault: The service cannot be found for the
> > endpoint reference (EPR)
> > http://blahblah:8080/somecontext/services/MyWebService'
> > What are the causes of such an error.
> >
> > 2) How do I enable axis2 logging. I am using a commons bridge that I
> > built for the logging within my webapp and would like to redirect all
> > axis2 logs using that bridge. ?
> >
> > Any help is appreciated.
> >
> > Thanks,
> > Yogi
> >
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> > For additional commands, e-mail: axis-user-help@ws.apache.org
> >
> >
>

Trust file for .Net/C# client

Posted by Srinivasa Rao K <re...@yahoo.com>.
Hi
  
 We are using .jks trust file for java clients. How to provide a trust file
 for .Net/C# client?
   
  Thanks,
  Srini

       
---------------------------------
Park yourself in front of a world of choices in alternative vehicles.
Visit the Yahoo! Auto Green Center.

Re: Strange Error when deploying web services as war file in Tomcat 5.5

Posted by Karma Yogi <ka...@gmail.com>.
I tried that too Haneef, but still get the same error. :(

Yogi



On 7/18/07, Ali, Haneef <ha...@hp.com> wrote:
>
> Create a file called wsdl.list and add the name of the wsdl to it. The
> wsdl along with wsdl.list should be in meta-inf of your service archive
> file.
>
> Thanks,
> Haneef
>
>
>
> ________________________________
>
> From: Karma Yogi [mailto:karmayogi31@gmail.com]
> Sent: Wednesday, July 18, 2007 10:48 AM
> To: axis-user@ws.apache.org
> Subject: Strange Error when deploying web services as war file in Tomcat
> 5.5
>
>
>
> Guys,
>
>    In addition to yesterday's question, here are some more problems that
> are driving me crazy.
>
> 1) The webapp with my service works perfectly when deployed in exploded
> format, but the same thing stops working when I have it deployed as a
> war file. (This is very important that I do it this way because the
> webservices are embedded in my webapp)
> 2) I have tried adding the original wsdl files in the META-INF of each
> service, kept the services as expanded directories within the
> WEB-INF/services folder, tried the .aar file with the services.list
> approach, but all the time I get 'The service cannot be found for the
> endpoint reference '
>
> Is there a specific flag that I can turn on to detect the service end
> points (in the log) when my web app comes up without having to deploy
> the entire axis web app. I cannot do that because I am embedding axis2
> inside another app.
>
> Any help from the gurus will be appreciated.
>
> Thanks,
> Yogi
>
> ---------- Forwarded message ----------
> From: Karma Yogi < karmayogi31@gmail.com <ma...@gmail.com>
> >
> Date: Jul 17, 2007 11:00 AM
> Subject: End point reference error and extra logging
> To: axis-user@ws.apache.org
>
> Folks,
>
>   I would like some guidance on two issues that I am encountering.
>
> 1) My web service works very fine on my local server, but the same thing
> deployed on a different server comes up with the error
> ' org.apache.axis2.AxisFault: The service cannot be found for the
> endpoint reference (EPR)
> http://blahblah:8080/somecontext/services/MyWebService'
> What are the causes of such an error.
>
> 2) How do I enable axis2 logging. I am using a commons bridge that I
> built for the logging within my webapp and would like to redirect all
> axis2 logs using that bridge. ?
>
> Any help is appreciated.
>
> Thanks,
> Yogi
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>

RE: Strange Error when deploying web services as war file in Tomcat 5.5

Posted by "Ali, Haneef" <ha...@hp.com>.
Create a file called wsdl.list and add the name of the wsdl to it. The
wsdl along with wsdl.list should be in meta-inf of your service archive
file.  

Thanks,
Haneef

 

________________________________

From: Karma Yogi [mailto:karmayogi31@gmail.com] 
Sent: Wednesday, July 18, 2007 10:48 AM
To: axis-user@ws.apache.org
Subject: Strange Error when deploying web services as war file in Tomcat
5.5



Guys,

   In addition to yesterday's question, here are some more problems that
are driving me crazy.

1) The webapp with my service works perfectly when deployed in exploded
format, but the same thing stops working when I have it deployed as a
war file. (This is very important that I do it this way because the
webservices are embedded in my webapp) 
2) I have tried adding the original wsdl files in the META-INF of each
service, kept the services as expanded directories within the
WEB-INF/services folder, tried the .aar file with the services.list
approach, but all the time I get 'The service cannot be found for the
endpoint reference ' 

Is there a specific flag that I can turn on to detect the service end
points (in the log) when my web app comes up without having to deploy
the entire axis web app. I cannot do that because I am embedding axis2
inside another app. 

Any help from the gurus will be appreciated.

Thanks,
Yogi

---------- Forwarded message ----------
From: Karma Yogi < karmayogi31@gmail.com <ma...@gmail.com>
>
Date: Jul 17, 2007 11:00 AM
Subject: End point reference error and extra logging
To: axis-user@ws.apache.org

Folks,

  I would like some guidance on two issues that I am encountering.

1) My web service works very fine on my local server, but the same thing
deployed on a different server comes up with the error
' org.apache.axis2.AxisFault: The service cannot be found for the
endpoint reference (EPR)
http://blahblah:8080/somecontext/services/MyWebService'
What are the causes of such an error. 

2) How do I enable axis2 logging. I am using a commons bridge that I
built for the logging within my webapp and would like to redirect all
axis2 logs using that bridge. ?

Any help is appreciated.

Thanks,
Yogi





---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org