I guess I am not understanding how your application is different then a typical axis2 application, and why you are not setting those properties in the axis2.xml file located in the conf directory.
On 7/13/07, Sandhu <[EMAIL PROTECTED]> wrote:
I added in web.xml of my application as follows <servlet> <servlet-name>AxisServlet</servlet-name> <servlet-class> org.apache.axis2.transport.http.AxisServlet </servlet-class> <init-param> <param-name>axis2.xml.path</param-name> <param-value>/WEB-INF/axis2.xml</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> axis2.xml has the following entries <parameter name="contextRoot">emco/alcms</parameter> <parameter name="servicePath">alcms/services</parameter> However, I get the following errors, it could not file axis2.xml 2007-07-13 11:55:22,656 ERROR [org.apache.axis2.deployment.WarBasedAxisConfigurator] java.io.FileNotFoundException: \WEB-INF\axis2.xml (The system cannot find the path specified) java.io.FileNotFoundException: \WEB-INF\axis2.xml (The system cannot find the path specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(FileInputStream.java:106) at java.io.FileInputStream.<init>(FileInputStream.java:66) Chad DeBauch wrote: > > In your axis2.xml file you need to have these two properties set as such: > > <parameter name="contextRoot">emco/alcms</parameter> > <parameter name="servicePath">alcms/services</parameter> > > Chad > > On 7/11/07, Sandhu <[EMAIL PROTECTED]> wrote: >> >> >> Hi, >> >> I have application that uses Spring 2.0.5, Axis2 1.2, JDK 1.4.x. >> >> Issue: If I try to deploy as an ear file with context root e.g. >> /emco/elcms >> on Jboss 4.0.4 or any other application server, Spring Aware Web Service >> does not work. >> >> Using: Spring 2.0.5, Hiberate 3.x, Struts 1.2, Axis2 1.2 >> >> If I deploy as an alcms.ear file to jboss >> http://localhost:9090/emco/alcms OK >> >> http://localhost:9090/emco/alcms/services/SpringAwareService/getValue?val=2 >> Does not work ??? >> >> However, If I try to deploy as an alcms.war file on jboss 4.0.4, tomcat >> 6.x, >> it works. >> >> http://localhost:9090/alcms OK >> http://localhost:9090/alcms/services...getValue?val=2 OK >> >> Any idea, what could be wrong with context root. Context root works for >> the >> whole web application except when I try to access web service >> >> I have attached file that has >> 1) application.xml >> 2) web services directory services which is included under >> WEB-INF/services/SpringAwareService/META-INF/services.xml >> WEB-INF/services/SpringAwareService/services.wsdl >> http://www.nabble.com/file/p11551142/temp.zip temp.zip >> -- >> View this message in context: >> http://www.nabble.com/Context-Root-Issue-using-ear-format%3A-Spring-Aware-Web-Service-using-Axis2-1.2-tf4065266.html#a11551142 >> Sent from the Axis - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > -- View this message in context: http://www.nabble.com/Context-Root-Issue-using-ear-format%3A-Spring-Aware-Web-Service-using-Axis2-1.2-tf4065266.html#a11585713 Sent from the Axis - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]