Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Web Services
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Web Services
[META/cxf/cxf.xml] cannot be opened because it does not exist
sam White
Ranch Hand
Posts: 229
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I have built a cxf2 base web service war file.
During the deployment to Glassfish 3.1.1, it throws the following error:
[#|2011-10-02T23:44:29.765+1100|SEVERE|glassfish3.1.1|javax.enterprise.system.tools.admin.org.glassfish.deployment.admin|_ThreadID=17;_ThreadName=Thread-2;|Exception while invoking class com.sun.enterprise.web.WebApplication start method java.lang.Exception: java.lang.IllegalStateException: ContainerBase.addChild: start: org.apache.catalina.LifecycleException: org.springframework.beans.factory.BeanDefinitionStoreException: IOException parsing XML document from class path resource [META/cxf/cxf.xml]; nested exception is java.io.FileNotFoundException: class path resource [META/cxf/cxf.xml] cannot be opened because it does not exist at com.sun.enterprise.web.WebApplication.start(WebApplication.java:138)
Here is a list of the files in the war package:
jar -tvf bmi.war 0 Sun Oct 02 23:43:16 EST 2011 META-INF/ 127 Sun Oct 02 23:43:14 EST 2011 META-INF/MANIFEST.MF 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/classes/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/classes/com/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/classes/com/company/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/classes/com/company/bmi/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/classes/com/company/bmi/services/ 0 Sun Oct 02 23:43:16 EST 2011 WEB-INF/lib/ 0 Sun Oct 02 23:43:16 EST 2011 META-INF/cxf/ 1105 Mon Oct 03 00:24:46 EST 2011 WEB-INF/web.xml 501 Sun Oct 02 23:43:14 EST 2011 WEB-INF/classes/com/company/bmi/services/IBMICalculatorImpl.class 342 Sun Oct 02 23:43:14 EST 2011 WEB-INF/classes/com/company/bmi/services/IBMICalculator.class 503595 Sun Oct 02 23:38:10 EST 2011 WEB-INF/lib/cxf-rt-core-2.4.1.jar 876610 Sun Oct 02 23:38:12 EST 2011 WEB-INF/lib/jaxb-impl-2.1.13.jar 160085 Sun Oct 02 23:38:10 EST 2011 WEB-INF/lib/xmlschema-core-2.0.jar 223298 Sun Oct 02 23:38:10 EST 2011 WEB-INF/lib/geronimo-javamail_1.4_spec-1.7.1.jar 359048 Sun Oct 02 23:38:12 EST 2011 WEB-INF/lib/cxf-api-2.4.1.jar 69407 Sun Oct 02 23:38:10 EST 2011 WEB-INF/lib/neethi-3.0.0.jar 148429 Sun Oct 02 23:38:12 EST 2011 WEB-INF/lib/wsdl4j-1.6.2.jar 98438 Sun Oct 02 23:38:12 EST 2011 WEB-INF/lib/cxf-rt-frontend-simple-2.4.1.jar 173143 Sun Oct 02 23:38:14 EST 2011 WEB-INF/lib/cxf-rt-bindings-soap-2.4.1.jar 160011 Sun Oct 02 23:38:14 EST 2011 WEB-INF/lib/cxf-tools-common-2.4.1.jar 352328 Sun Oct 02 23:38:14 EST 2011 WEB-INF/lib/cxf-rt-frontend-jaxws-2.4.1.jar 84091 Sun Oct 02 23:38:14 EST 2011 WEB-INF/lib/xml-resolver-1.2.jar 43578 Sun Oct 02 23:38:16 EST 2011 WEB-INF/lib/asm-3.3.jar 87042 Sun Oct 02 23:38:16 EST 2011 WEB-INF/lib/cxf-rt-ws-addr-2.4.1.jar 205007 Sun Oct 02 23:38:16 EST 2011 WEB-INF/lib/cxf-rt-transports-http-2.4.1.jar 18223 Sun Oct 02 23:38:16 EST 2011 WEB-INF/lib/cxf-rt-transports-common-2.4.1.jar 37249 Sun Oct 02 23:38:16 EST 2011 WEB-INF/lib/cxf-rt-bindings-xml-2.4.1.jar 92263 Sun Oct 02 23:38:18 EST 2011 WEB-INF/lib/cxf-rt-databinding-jaxb-2.4.1.jar 3103700 Sun Oct 02 23:38:42 EST 2011 WEB-INF/lib/jaxb-xjc-2.1.13.jar 324897 Sun Oct 02 23:38:20 EST 2011 WEB-INF/lib/cxf-common-utilities-2.4.1.jar 478446 Sun Oct 02 23:38:26 EST 2011 WEB-INF/lib/woodstox-core-asl-4.1.1.jar 182112 Sun Oct 02 23:38:20 EST 2011 WEB-INF/lib/stax2-api-3.1.1.jar 670258 Thu Sep 15 21:15:12 EST 2011 WEB-INF/lib/spring-context-3.0.6.RELEASE.jar 53082 Thu Sep 15 21:15:10 EST 2011 WEB-INF/lib/spring-asm-3.0.6.RELEASE.jar 382184 Thu Sep 15 21:15:14 EST 2011 WEB-INF/lib/spring-core-3.0.6.RELEASE.jar 60686 Fri Sep 16 17:58:52 EST 2011 WEB-INF/lib/commons-logging-1.1.1.jar 398149 Thu Sep 15 21:15:14 EST 2011 WEB-INF/lib/spring-web-3.0.6.RELEASE.jar 4467 Fri Sep 16 17:58:52 EST 2011 WEB-INF/lib/aopalliance-1.0.jar 419488 Thu Sep 15 21:15:14 EST 2011 WEB-INF/lib/spring-webmvc-3.0.6.RELEASE.jar 101450 Thu Sep 15 21:15:14 EST 2011 WEB-INF/lib/spring-context-support-3.0.6.RELEASE.jar 231913 Fri Sep 16 00:03:54 EST 2011 WEB-INF/lib/spring-tx-3.0.6.RELEASE.jar 169752 Thu Sep 15 21:15:10 EST 2011 WEB-INF/lib/spring-expression-3.0.6.RELEASE.jar 556590 Thu Sep 15 21:15:14 EST 2011 WEB-INF/lib/spring-beans-3.0.6.RELEASE.jar 321428 Thu Sep 15 21:15:20 EST 2011 WEB-INF/lib/spring-aop-3.0.6.RELEASE.jar 245274 Fri Sep 16 17:58:56 EST 2011 WEB-INF/lib/commons-lang-2.3.jar 970 Mon Oct 03 00:13:20 EST 2011 META-INF/cxf/cxf.xml 374 Sun Oct 02 21:59:22 EST 2011 index.jsp 0 Sun Oct 02 23:43:18 EST 2011 META-INF/maven/ 0 Sun Oct 02 23:43:18 EST 2011 META-INF/maven/com.company.bmi/ 0 Sun Oct 02 23:43:18 EST 2011 META-INF/maven/com.company.bmi/bmi/ 7642 Mon Oct 03 00:27:30 EST 2011 META-INF/maven/com.company.bmi/bmi/pom.xml 110 Sun Oct 02 23:43:16 EST 2011 META-INF/maven/com.company.bmi/bmi/pom.properties
I've searched similar problem in google, but I couldn't found a solution.
Any suggestion would be very appreciated.
Thanks
Sam
sam White
Ranch Hand
Posts: 229
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Here is my META-INF/web.xml file:
<?xml version="1.0" encoding="UTF-8"?> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.co m/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0"> <display-name>BMI</display-name> <context-param> <param-name>contextConfigLocation</param-name> <param-value>classpath:META/cxf/cxf.xml</param-value> </context-param> <listener> <display-name>Spring Context Loader</display-name> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>CXFServlet</servlet-name> <servlet-class> org.apache.cxf.transport.servlet.CXFServlet </servlet-class> </servlet> <servlet-mapping> <servlet-name>CXFServlet</servlet-name> <url-pattern>/services/*</url-pattern> </servlet-mapping> </web-app>
I like you because you always keep good, crunchy cereal in your pantry. This tiny ad agrees:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Trouble with running Maven Tomcat plugin through Eclipse
controller not getting call on start up
Quick refresher.....
How to copy generated wsdl file to WAR file?
NoClassDefFoundError: org/springframework/context/ApplicationListener
More...