Hi Zakaria,

I have observed that when using Apache Tomcat, the demo app gives this error.

The problem was that Apache Tomcat could not location 
"META-INF/xfire/services.xml" in the web app class path.
The web app class path is typically "WEB-INF/classes" folder and all the jars 
present in "WEB-INF/lib".

I had worked around this by creating following directory structure under 
"WEB-INF/classes".

WEB-INF
  |
   ----classes
        |
        -----META-INF
               |
               ----xfire
                     |
                     ----services.xml
                    

Hope this helps.

Same WAR file seemed to have worked fine on Jboss.

Regards,
Srikanth
 

-----Original Message-----
From: zakaria ghandour [mailto:[EMAIL PROTECTED] 
Sent: Thursday, May 31, 2007 5:27 PM
To: [email protected]
Subject: Re: [xfire-user] first WebService HelloWorld



1- i build book project with maven command line
2- i deployer war created in step 2
3- http://localhost:7070/xfire-book-1.2.6/services/BookService?wsdl when i want 
to access to wsdl file i have error message in internet explorer

type Rapport d'exception

message 

description Le serveur a rencontré une erreur interne () qui l'a empêché de 
satisfaire la requête.

exception 

javax.servlet.ServletException: Error initializing XFireServlet.
        
org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:52)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:595)


cause mère 

org.springframework.beans.factory.BeanDefinitionStoreException: IOException 
parsing XML document from class path resource [META-INF/xfire/services.xml]; 
nested exception is java.io.FileNotFoundException: class path resource 
[META-INF/xfire/services.xml] cannot be opened because it does not exist

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:180)

org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:148)

org.codehaus.xfire.spring.XFireConfigLoader.getXFireApplicationContext(XFireConfigLoader.java:103)

org.codehaus.xfire.spring.XFireConfigLoader.loadContext(XFireConfigLoader.java:41)

org.codehaus.xfire.transport.http.XFireConfigurableServlet.loadConfig(XFireConfigurableServlet.java:86)

org.codehaus.xfire.transport.http.XFireConfigurableServlet.createXFire(XFireConfigurableServlet.java:54)
        
org.codehaus.xfire.transport.http.XFireServlet.init(XFireServlet.java:45)
        javax.servlet.GenericServlet.init(GenericServlet.java:211)

org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
        
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
        
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)

org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)

org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)

org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
        java.lang.Thread.run(Thread.java:595)


note La trace complète de la cause mère de cette erreur est disponible dans les 
fichiers journaux de Apache Tomcat/5.5.17.

do you know wath is the cause of this error

thanks




--
View this message in context: 
http://www.nabble.com/first-WebService-HelloWorld-tf3845610.html#a10892375
Sent from the XFire - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. 

WARNING: Computer viruses can be transmitted via email. The recipient should 
check this email and any attachments for the presence of viruses. The company 
accepts no liability for any damage caused by any virus transmitted by this 
email.
 
www.wipro.com

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to