1 2 Previous Next 19 Replies Latest reply on Sep 1, 2011 4:09 AM by ropalka

    Can't handle @Resource for ENC name

    samwun9988

      Hi,

       

      I managed to go deploy the WAR file in JBOSS AS7, the WAR file is based on CXF2 and Spring 3.0.5.

      However I think the web service is (WSDL) is failed to publish.

       

      Here is the error:

       

       

      04:32:08,670 INFO  [org.jboss.as.jpa] (MSC service thread 1-2) added javax.persistence.api dependency to order-ws-0.0.1-SNAPSHOT.war

      04:32:08,729 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.databinding.AbstractDataBinding since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,729 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.binding.soap.SoapTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,730 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.headers.HeaderManagerImpl/bus on class org.apache.cxf.headers.HeaderManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,730 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.bus.resource.ResourceManagerImpl/bus on class org.apache.cxf.bus.resource.ResourceManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,730 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.catalog.OASISCatalogManager/bus on class org.apache.cxf.catalog.OASISCatalogManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,730 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.wsdl11.WSDLManagerImpl/bus on class org.apache.cxf.wsdl11.WSDLManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,731 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.endpoint.ServerRegistryImpl/bus on class org.apache.cxf.endpoint.ServerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,731 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.transport.DestinationFactoryManagerImpl/bus on class org.apache.cxf.transport.DestinationFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,731 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus on class org.apache.cxf.transport.http.QueryHandlerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,731 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.transport.ConduitInitiatorManagerImpl/bus on class org.apache.cxf.transport.ConduitInitiatorManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,731 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus on class org.apache.cxf.buslifecycle.CXFBusLifeCycleManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,732 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManager on class org.apache.cxf.workqueue.AutomaticWorkQueueImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,732 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManagerImpl/bus on class org.apache.cxf.workqueue.WorkQueueManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,732 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.service.factory.FactoryBeanListenerManager/bus on class org.apache.cxf.service.factory.FactoryBeanListenerManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,733 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.binding.BindingFactoryManagerImpl/bus on class org.apache.cxf.binding.BindingFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,733 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.binding.AbstractBaseBindingFactory/bus on class org.apache.cxf.binding.AbstractBaseBindingFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,733 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/bus on class org.apache.cxf.jaxws.context.WebServiceContextResourceResolver since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,733 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: org.apache.cxf.transport.http.HTTPTransportFactory/bus on class org.apache.cxf.transport.http.HTTPTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,733 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,734 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-7) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

      04:32:08,739 INFO  [org.jboss.weld] (MSC service thread 1-7) Processing CDI deployment: order-ws-0.0.1-SNAPSHOT.war

      04:32:08,916 INFO  [org.jboss.weld] (MSC service thread 1-6) Starting Services for CDI deployment: order-ws-0.0.1-SNAPSHOT.war

      04:32:08,937 INFO  [org.jboss.weld.Version] (MSC service thread 1-6) WELD-000900 1.1.2 (Final)

      04:32:08,958 INFO  [org.jboss.weld] (MSC service thread 1-1) Starting weld service

      04:32:09,298 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/order-ws-0.0.1-SNAPSHOT]] (MSC service thread 1-2) Initializing Spring root WebApplicationContext

      04:32:09,298 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization started

      04:32:09,321 INFO  [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-2) Refreshing Root WebApplicationContext: startup date [Tue Aug 30 04:32:09 GMT 2011]; root of context hierarchy

      04:32:09,352 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml]

      04:32:09,397 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]

      04:32:09,421 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]

      04:32:09,441 INFO  [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-2) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]

      04:32:09,546 INFO  [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-2) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@42b1b290: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,orderProcess]; root of factory hierarchy

      04:32:09,652 WARNING [org.apache.cxf.bus.spring.OldSpringSupport] (MSC service thread 1-2) Import of META-INF/cxf/cxf-extension-soap.xml has been deprecated and is unnecessary.

      04:32:09,660 INFO  [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-2) Creating Service {http://service.order.service.ix/}OrderProcessImplService from class ix.service.order.service.OrderProcess

      04:32:10,150 INFO  [org.apache.cxf.endpoint.ServerImpl] (MSC service thread 1-2) Setting the server's publish address to be /orderprocess

      04:32:10,161 INFO  [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Root WebApplicationContext: initialization completed in 862 ms

      04:32:10,218 INFO  [org.jboss.web] (MSC service thread 1-2) registering web context: /order-ws-0.0.1-SNAPSHOT

       

       

      pom.xml file:

       

       

                      <!-- Jetty is needed if you're are not using the CXFServlet -->

                              <!--

              <dependency>

                  <groupId>org.apache.cxf</groupId>

                  <artifactId>cxf-rt-transports-http-jetty</artifactId>

                  <version>${cxf.version}</version>

              </dependency>

              -->

                              <!-- Apache CXF dependencies -->

                            

                                

              <dependency>

                  <groupId>org.apache.cxf</groupId>

                  <artifactId>cxf-rt-frontend-jaxws</artifactId>

                  <version>${cxf.version}</version>

              </dependency>

              <dependency>

                  <groupId>org.apache.cxf</groupId>

                  <artifactId>cxf-rt-transports-http</artifactId>

                  <version>${cxf.version}</version>

              </dependency>

                                 

              <dependency>

                  <groupId>wsdl4j</groupId>

                  <artifactId>wsdl4j</artifactId>

                  <version>1.6.2</version>

              </dependency>

       

       

          </dependencies>

          <build>

              <resources>

                  <resource>

                      <directory>${basedir}/src/main/resources</directory>

                  </resource>

                  <resource>

                      <directory>${basedir}/src/main/webapp/WEB-INF</directory>

                      <includes>

                          <include>web.xml</include>

                      </includes>

                      <filtering>true</filtering>

                      <targetPath>${project.build.directory}</targetPath>

                  </resource>

              </resources>

              <plugins>

                  <plugin>

                      <groupId>org.apache.maven.plugins</groupId>

                      <artifactId>maven-surefire-plugin</artifactId>

                      <version>2.5</version>

                      <configuration>

                          <workingDirectory>src/main/webapp</workingDirectory>

                                                             

                      </configuration>

                  </plugin>

                  <plugin>

                      <artifactId>maven-plugin-plugin</artifactId>

                      <configuration>

                          <goalPrefix>embedded-glassfish</goalPrefix>

                      </configuration>

                  </plugin>

                  <plugin>

                      <artifactId>maven-compiler-plugin</artifactId>

                      <configuration>

                          <source>1.6</source>

                          <target>1.6</target>

                      </configuration>

                  </plugin>

                  <plugin>

                      <groupId>org.apache.cxf</groupId>

                      <artifactId>cxf-java2ws-plugin</artifactId>

                      <version>${cxf.version}</version>

                      <dependencies>

                          <dependency>

                              <groupId>org.apache.cxf</groupId>

                              <artifactId>cxf-rt-frontend-jaxws</artifactId>

                              <version>${cxf.version}</version>

                          </dependency>

                          <dependency>

                              <groupId>org.apache.cxf</groupId>

                              <artifactId>cxf-rt-frontend-simple</artifactId>

                              <version>${cxf.version}</version>

                          </dependency>

                      </dependencies>

                      <executions>

                          <execution>

                                                                                                                 

                              <id>generate-test-sources</id>

                              <phase>generate-test-sources</phase>

                              <configuration>

                                  <sourceRoot>generated/wsdl</sourceRoot>

                                  <wsdlOptions>

                                      <wsdlOption>

                                          <wsdl>Order-Process.wsdl</wsdl>

                                      </wsdlOption>

                                  </wsdlOptions>

       

       

                                  <className>ix.service.order.service.OrderProcess</className>

                                  <genWsdl>true</genWsdl>

                                  <keep>true</keep>

                                  <verbose>true</verbose>

                                         <!-- <tasks>

                                              <copy file="${basedir}/generated/wsdl/OrderProcess.wsdl"

                                                    tofile="${basedir}/src/main/resources/wsdl/OrderProcess.wsdl"/>

                                          </tasks> -->

                              </configuration>

                              <goals>

                                  <goal>java2ws</goal>

                              </goals> 

                          </execution>

                      </executions>

                  </plugin>

                  <plugin>

                      <groupId>org.mortbay.jetty</groupId>

                      <artifactId>maven-jetty-plugin</artifactId>

                      <version>6.1.15</version>

                      <configuration>

                          <scanIntervalSeconds>10</scanIntervalSeconds>

                          <connectors>

                              <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">

                                  <port>8080</port>

                              </connector>

                          </connectors>

                          <webXml>${project.build.directory}/web.xml</webXml>

                          <webAppConfig>

                              <contextPath>/</contextPath>

                          </webAppConfig>

                      </configuration>

                  </plugin>

       

       

      Thanks

      Sam

        • 1. Re: Can't handle @Resource for ENC name
          ropalka

          Hi Sam,

           

             AS7 comes with CXF integration by default.

          Please read our https://docs.jboss.org/author/display/AS7

          AS7 documentation how to create web services with AS7.

          1 of 1 people found this helpful
          • 2. Re: Can't handle @Resource for ENC name
            samwun9988

            Hi,

             

            Thanks for the link.

            but its page is unavailable at the moment.

             

            Thanks

            Sam

            • 3. Re: Can't handle @Resource for ENC name
              samwun9988

              The document doesn't have any concret example for setting up JBOSS AS7 to work with CXF2, or there is no example to show how to setup my Spring (web.xml and or pom.xml) for JBOSS AS7.

               

              Any example and pointer is well appreciated.

              Thanks

              Sam

              • 4. Re: Can't handle @Resource for ENC name
                ropalka
                • 5. Re: Can't handle @Resource for ENC name
                  samwun9988

                  Hi Thank you very much for the link.

                  I created a src/main/WEB-INF/jbossws-cxf.xml file, shown as below:

                   

                   

                  <?xml version="1.0" encoding="UTF-8"?>

                  <beans

                    xmlns='http://www.springframework.org/schema/beans'

                    xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'

                    xmlns:beans='http://www.springframework.org/schema/beans'

                    xmlns:jaxws='http://cxf.apache.org/jaxws'

                    xsi:schemaLocation='http://www.springframework.org/schema/beans

                    http://www.springframework.org/schema/beans/spring-beans.xsd

                    http://cxf.apache.org/jaxws

                    http://cxf.apache.org/schemas/jaxws.xsd'>

                   

                   

                    <!-- one or more jaxws:endpoint POJO declarations -->

                    <jaxws:endpoint id="orderProcess"

                                      implementor="ix.service.order.service.OrderProcessImpl"

                                                      address="http://192.168.1.100:8080/orderprocess">

                            </jaxws:endpoint>

                         

                  </beans>

                   

                   

                   

                  But I am still getting similar error exceptions:

                   

                   

                  sam@sam-PC /cygdrive/c/jboss-as-web-7.0.1.Final/bin

                  $ ./standalone.bat

                  Calling C:\jboss-as-web-7.0.1.Final\bin\standalone.conf.bat

                  ===============================================================================

                   

                   

                    JBoss Bootstrap Environment

                   

                   

                    JBOSS_HOME: C:\jboss-as-web-7.0.1.Final

                   

                   

                    JAVA: C:\Java\jdk1.6.0_26\bin\java

                   

                   

                    JAVA_OPTS: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -server

                   

                   

                  ===============================================================================

                   

                   

                  20:22:34,305 �Ϣ    [org.jboss.modules] JBoss Modules version 1.0.1.GA

                   

                   

                  20:22:37,058 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

                  20:22:37,329 INFO  [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting

                  20:22:44,271 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.

                  20:22:44,282 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)

                  20:22:44,284 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.

                  20:22:44,397 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

                  20:22:44,548 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)

                  20:22:44,663 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.

                  20:22:45,047 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem

                  20:22:45,098 INFO  [org.jboss.as.naming] (MSC service thread 1-4) Starting Naming Service

                  20:22:45,110 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem

                  20:22:45,215 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

                  20:22:45,221 INFO  [org.jboss.remoting] (MSC service thread 1-2) JBoss Remoting version 3.2.0.Beta2

                  20:22:45,240 INFO  [org.xnio] (MSC service thread 1-2) XNIO Version 3.0.0.Beta3

                  20:22:45,260 INFO  [org.xnio.nio] (MSC service thread 1-2) XNIO NIO Implementation Version 3.0.0.Beta3

                  20:22:46,533 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-3) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\glassfish3\jdk\bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Windows Live\Shared;C:\apache-ant-1.8.2\bin;C:\apache-maven-3.0.3\bin;C:\Program Files\TortoiseSVN\bin;C:\Java\jdk1.6.0_26\bin;.

                  20:22:46,606 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

                  20:22:46,607 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) Listening on /192.168.1.100:9999

                  20:22:46,616 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-4) Starting remote JMX connector

                  20:22:48,525 INFO  [org.jboss.as.connector] (MSC service thread 1-3) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)

                  20:22:49,452 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) Bound data source [java:jboss/datasources/ExampleDS]

                  20:22:49,616 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--192.168.1.100-8080

                  20:22:51,465 INFO  [org.jboss.as.deployment] (MSC service thread 1-2) Started FileSystemDeploymentService for directory C:\jboss-as-web-7.0.1.Final\standalone\deployments

                  20:22:51,503 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.1.Final "Zap" started in 17643ms - Started 93 of 148 services (55 services are passive or on-demand)

                  20:23:16,583 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Starting deployment of "order-ws-0.0.1-SNAPSHOT.war"

                  20:23:18,645 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb-api.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                  20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry activation.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                  20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jsr173_1.0_api.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                  20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb1-impl.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                  20:23:18,773 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-3) Encountered invalid class name "org.springframework.context.ApplicationContext,org.springframework.beans.BeansException" for service type "org.apache.cxf.bus.factory"

                  20:23:22,855 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to order-ws-0.0.1-SNAPSHOT.war

                   

                   

                  It seems that the deployment doesn't read the WEB-INF/jbossws-cxf.xml file .

                   

                  What is wrong with my project setup?

                   

                  Thanks

                  Sam

                  • 6. Re: Can't handle @Resource for ENC name
                    samwun9988

                    Sorry, my preiovus post only shown the first half of the log message.

                    Here is the rest of the log file:

                     

                     

                    20:23:18,645 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb-api.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                    20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry activation.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                    20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jsr173_1.0_api.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                    20:23:18,646 WARN  [org.jboss.as.server.deployment] (MSC service thread 1-3) Class Path entry jaxb1-impl.jar in "/C:/jboss-as-web-7.0.1.Final/bin/content/order-ws-0.0.1-SNAPSHOT.war/WEB-INF/lib/jaxb-impl-2.1.13.jar"  does not point to a valid jar for a Class-Path reference.

                    20:23:18,773 WARN  [org.jboss.as.server.deployment.service-loader] (MSC service thread 1-3) Encountered invalid class name "org.springframework.context.ApplicationContext,org.springframework.beans.BeansException" for service type "org.apache.cxf.bus.factory"

                    20:23:22,855 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) added javax.persistence.api dependency to order-ws-0.0.1-SNAPSHOT.war

                    20:23:23,236 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.databinding.AbstractDataBinding since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,237 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.binding.soap.SoapTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,237 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.headers.HeaderManagerImpl/bus on class org.apache.cxf.headers.HeaderManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,237 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.bus.resource.ResourceManagerImpl/bus on class org.apache.cxf.bus.resource.ResourceManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,237 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.catalog.OASISCatalogManager/bus on class org.apache.cxf.catalog.OASISCatalogManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,238 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.wsdl11.WSDLManagerImpl/bus on class org.apache.cxf.wsdl11.WSDLManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,238 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.endpoint.ServerRegistryImpl/bus on class org.apache.cxf.endpoint.ServerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,238 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.transport.DestinationFactoryManagerImpl/bus on class org.apache.cxf.transport.DestinationFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,238 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.transport.http.QueryHandlerRegistryImpl/bus on class org.apache.cxf.transport.http.QueryHandlerRegistryImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,239 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.transport.ConduitInitiatorManagerImpl/bus on class org.apache.cxf.transport.ConduitInitiatorManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,239 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.buslifecycle.CXFBusLifeCycleManager/bus on class org.apache.cxf.buslifecycle.CXFBusLifeCycleManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,239 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManager on class org.apache.cxf.workqueue.AutomaticWorkQueueImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,240 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.workqueue.WorkQueueManagerImpl/bus on class org.apache.cxf.workqueue.WorkQueueManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,240 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.service.factory.FactoryBeanListenerManager/bus on class org.apache.cxf.service.factory.FactoryBeanListenerManager since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,240 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.binding.BindingFactoryManagerImpl/bus on class org.apache.cxf.binding.BindingFactoryManagerImpl since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,241 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.binding.AbstractBaseBindingFactory/bus on class org.apache.cxf.binding.AbstractBaseBindingFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,241 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.jaxws.context.WebServiceContextResourceResolver/bus on class org.apache.cxf.jaxws.context.WebServiceContextResourceResolver since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,241 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: org.apache.cxf.transport.http.HTTPTransportFactory/bus on class org.apache.cxf.transport.http.HTTPTransportFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,241 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngine since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,242 WARN  [org.jboss.as.ee.component.ResourceInjectionAnnotationParsingProcessor] (MSC service thread 1-2) Can't handle @Resource for ENC name: cxf on class org.apache.cxf.transport.http_jetty.JettyHTTPServerEngineFactory since it's missing a "lookup" (or "mappedName") value and isn't of any known type

                    20:23:23,274 INFO  [org.jboss.weld] (MSC service thread 1-2) Processing CDI deployment: order-ws-0.0.1-SNAPSHOT.war

                    20:23:23,946 INFO  [org.jboss.weld] (MSC service thread 1-2) Starting Services for CDI deployment: order-ws-0.0.1-SNAPSHOT.war

                    20:23:24,024 INFO  [org.jboss.weld.Version] (MSC service thread 1-2) WELD-000900 1.1.2 (Final)

                    20:23:24,074 INFO  [org.jboss.weld] (MSC service thread 1-3) Starting weld service

                    20:23:24,900 INFO  [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/order-ws-0.0.1-SNAPSHOT]] (MSC service thread 1-4) Initializing Spring root WebApplicationContext

                    20:23:24,901 �Ϣ    [org.springframework.web.context.ContextLoader] (MSC service thread 1-4) Root WebApplicationContext: initialization started

                    20:23:24,944 �Ϣ    [org.springframework.web.context.support.XmlWebApplicationContext] (MSC service thread 1-4) Refreshing Root WebApplicationContext: startup date [Wed Aug 31 20:23:24 EST 2011]; root of context hierarchy

                    20:23:25,000 �Ϣ    [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-4) Loading XML bean definitions from ServletContext resource [/WEB-INF/beans.xml]

                    20:23:25,077 �Ϣ    [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-4) Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]

                    20:23:25,109 �Ϣ    [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-4) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml]

                    20:23:25,144 �Ϣ    [org.springframework.beans.factory.xml.XmlBeanDefinitionReader] (MSC service thread 1-4) Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]

                    20:23:25,434 �Ϣ    [org.springframework.beans.factory.support.DefaultListableBeanFactory] (MSC service thread 1-4) Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@4af1b0e4: defining beans [cxf,org.apache.cxf.bus.spring.BusWiringBeanFactoryPostProcessor,org.apache.cxf.bus.spring.Jsr250BeanPostProcessor,org.apache.cxf.bus.spring.BusExtensionPostProcessor,org.apache.cxf.binding.soap.SoapBindingFactory,org.apache.cxf.binding.soap.SoapTransportFactory,org.apache.cxf.binding.soap.customEditorConfigurer,orderProcess]; root of factory hierarchy

                    20:23:25,554 ����   [org.apache.cxf.bus.spring.OldSpringSupport] (MSC service thread 1-4) Import of META-INF/cxf/cxf-extension-soap.xml has been deprecated and is unnecessary.

                    20:23:25,563 �Ϣ    [org.apache.cxf.service.factory.ReflectionServiceFactoryBean] (MSC service thread 1-4) Creating Service {http://service.order.service.ix/}OrderProcessImplService from class ix.service.order.service.OrderProcess

                     

                     

                    • 7. Re: Can't handle @Resource for ENC name
                      ropalka

                      You have to remove all CXF libs from your application.

                      These are provided by the JBossAS.

                      • 8. Re: Can't handle @Resource for ENC name
                        samwun9988

                        I trired to removed all cxf* related dependancies in pom.xml, but it resulted even worst errors.

                         

                        With the current pom.xml file, which cxf I don't need, please see as below:

                         

                         

                              <dependency>

                                    <groupId>org.apache.cxf</groupId>

                                    <artifactId>cxf-rt-transports-http-jetty</artifactId>

                                    <version>${cxf.version}</version>

                                </dependency>

                         

                         

                                <dependency>

                                    <groupId>wsdl4j</groupId>

                                    <artifactId>wsdl4j</artifactId>

                                    <version>1.6.2</version>

                                </dependency>

                         

                         

                                                <!-- Apache CXF dependencies -->

                                  

                                <dependency>

                                    <groupId>org.apache.cxf</groupId>

                                    <artifactId>cxf-rt-frontend-jaxws</artifactId>

                                    <version>${cxf.version}</version>

                                </dependency>

                         

                            </dependencies>

                            <build>

                                <resources>

                                    <resource>

                                        <directory>${basedir}/src/main/resources</directory>

                                    </resource>

                                    <resource>

                                        <directory>${basedir}/src/main/webapp/WEB-INF</directory>

                                        <includes>

                                            <include>web.xml</include>

                                        </includes>

                                        <filtering>true</filtering>

                                        <targetPath>${project.build.directory}</targetPath>

                                    </resource>

                                </resources>

                                <plugins>

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-surefire-plugin</artifactId>

                                        <version>2.5</version>

                                        <configuration>

                                            <workingDirectory>src/main/webapp</workingDirectory>

                                                                               

                                        </configuration>

                                    </plugin>

                         

                         

                                    <plugin>

                                        <groupId>org.apache.maven.plugins</groupId>

                                        <artifactId>maven-compiler-plugin</artifactId>

                                        <version>2.3.2</version>

                                        <configuration>

                                            <source>1.6</source>

                                            <target>1.6</target>

                                        </configuration>

                                    </plugin>

                                    <plugin>

                                        <artifactId>maven-war-plugin</artifactId>

                                        <version>2.1.1</version>

                                        <configuration>

                                            <packagingExcludes>WEB-INF/web.xml</packagingExcludes>

                                        </configuration>

                                    </plugin>

                                    <plugin>

                                        <groupId>org.apache.cxf</groupId>

                                        <artifactId>cxf-java2ws-plugin</artifactId>

                                        <version>${cxf.version}</version>

                                       

                                        <executions>

                                            <execution>

                                                                                                                                   

                                                <id>generate-test-sources</id>

                                                <phase>generate-test-sources</phase>

                                                <configuration>

                                                    <sourceRoot>generated/wsdl</sourceRoot>

                                                    <wsdlOptions>

                                                        <wsdlOption>

                                                            <wsdl>Order-Process.wsdl</wsdl>

                                                        </wsdlOption>

                                                    </wsdlOptions>

                         

                         

                                                    <className>ix.service.order.service.OrderProcess</className>

                                                    <genWsdl>true</genWsdl>

                                                    <keep>true</keep>

                                                    <verbose>true</verbose>

                                                           <!-- <tasks>

                                                                <copy file="${basedir}/generated/wsdl/OrderProcess.wsdl"

                                                                      tofile="${basedir}/src/main/resources/wsdl/OrderProcess.wsdl"/>

                                                            </tasks> -->

                                                </configuration>

                                                <goals>

                                                    <goal>java2ws</goal>

                                                </goals> 

                                            </execution>

                                        </executions>

                                    </plugin>

                         

                         

                                </plugins>

                            </build>

                         

                         

                        Thanks

                        Sam

                        • 9. Re: Can't handle @Resource for ENC name
                          samwun9988

                          If I removed all cxf references in my pom.xml file, deploy the WAR file to jboss as7, resulted the following errors:

                           

                           

                          $ ./standalone.bat

                          Calling C:\jboss-as-web-7.0.1.Final\bin\standalone.conf.bat

                          ===============================================================================

                           

                           

                            JBoss Bootstrap Environment

                           

                           

                            JBOSS_HOME: C:\jboss-as-web-7.0.1.Final

                           

                           

                            JAVA: C:\Java\jdk1.6.0_26\bin\java

                           

                           

                            JAVA_OPTS: -Dprogram.name=standalone.bat -Xms64M -Xmx512M -XX:MaxPermSize=256M -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Dorg.jboss.resolver.warning=true -Djboss.modules.system.pkgs=org.jboss.byteman -server

                           

                           

                          ===============================================================================

                           

                           

                          22:24:31,409 �Ϣ    [org.jboss.modules] JBoss Modules version 1.0.1.GA

                          22:24:35,915 INFO  [org.jboss.msc] JBoss MSC version 1.0.0.GA

                          22:24:36,681 INFO  [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting

                          22:24:48,690 WARN  [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.

                          22:24:48,699 INFO  [org.jboss.as] creating http management service using network interface (management) port (9990)

                          22:24:48,758 WARN  [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.

                          22:24:48,793 INFO  [org.jboss.as.logging] Removing bootstrap log handlers

                          22:24:48,992 INFO  [org.jboss.as.connector.subsystems.datasources] (Controller Boot Thread) Deploying JDBC-compliant driver class org.h2.Driver (version 1.2)

                          22:24:49,641 INFO  [org.jboss.as.clustering.infinispan.subsystem] (Controller Boot Thread) Activating Infinispan subsystem.

                          22:24:50,506 INFO  [org.jboss.as.naming] (Controller Boot Thread) Activating Naming Subsystem

                          22:24:50,579 INFO  [org.jboss.as.naming] (MSC service thread 1-4) Starting Naming Service

                          22:24:50,596 INFO  [org.jboss.as.osgi] (Controller Boot Thread) Activating OSGi Subsystem

                          22:24:50,857 INFO  [org.jboss.as.security] (Controller Boot Thread) Activating Security Subsystem

                          22:24:50,866 INFO  [org.jboss.remoting] (MSC service thread 1-1) JBoss Remoting version 3.2.0.Beta2

                          22:24:50,883 INFO  [org.xnio] (MSC service thread 1-1) XNIO Version 3.0.0.Beta3

                          22:24:50,910 INFO  [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.0.0.Beta3

                          22:24:54,052 INFO  [org.apache.catalina.core.AprLifecycleListener] (MSC service thread 1-2) The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Java\jdk1.6.0_26\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\cygwin\usr\local\bin;C:\cygwin\bin;C:\Program Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\glassfish3\jdk\bin;C:\Program Files (x86)\QuickTime\QTSystem;C:\Program Files (x86)\Windows Live\Shared;C:\apache-ant-1.8.2\bin;C:\apache-maven-3.0.3\bin;C:\Program Files\TortoiseSVN\bin;C:\Java\jdk1.6.0_26\bin;.

                          22:24:54,519 INFO  [org.jboss.as.ee] (Controller Boot Thread) Activating EE subsystem

                          22:24:54,525 INFO  [org.jboss.as.remoting] (MSC service thread 1-4) Listening on /192.168.1.100:9999

                          22:24:54,667 INFO  [org.jboss.as.jmx.JMXConnectorService] (MSC service thread 1-2) Starting remote JMX connector

                          22:24:55,666 INFO  [org.jboss.as.connector] (MSC service thread 1-4) Starting JCA Subsystem (JBoss IronJacamar 1.0.3.Final)

                          22:24:55,869 INFO  [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Starting Coyote HTTP/1.1 on http--192.168.1.100-8080

                          22:24:56,195 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) Bound data source [java:jboss/datasources/ExampleDS]

                          22:24:58,775 INFO  [org.jboss.as.deployment] (MSC service thread 1-3) Started FileSystemDeploymentService for directory C:\jboss-as-web-7.0.1.Final\standalone\deployments

                          22:24:58,839 INFO  [org.jboss.as] (Controller Boot Thread) JBoss AS 7.0.1.Final "Zap" started in 29127ms - Started 93 of 148 services (55 services are passive or on-demand)

                          22:25:18,182 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "order-ws-0.0.1-SNAPSHOT.war"

                          22:25:18,910 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) Starting deployment of "order-ws-0.0.1-SNAPSHOT.war"

                          22:25:30,032 INFO  [org.jboss.as.jpa] (MSC service thread 1-4) added javax.persistence.api dependency to order-ws-0.0.1-SNAPSHOT.war

                          22:25:30,169 INFO  [org.jboss.weld] (MSC service thread 1-4) Processing CDI deployment: order-ws-0.0.1-SNAPSHOT.war

                          22:25:30,188 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC00001: Failed to start service jboss.deployment.unit."order-ws-0.0.1-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."order-ws-0.0.1-SNAPSHOT.war".INSTALL: Failed to process phase INSTALL of deployment "order-ws-0.0.1-SNAPSHOT.war"

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

                                  at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

                                  at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

                          Caused by: java.lang.NullPointerException

                                  at org.jboss.as.weld.deployment.processors.WeldComponentIntegrationProcessor$1.configure(WeldComponentIntegrationProcessor.java:87)

                                  at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

                                  ... 5 more

                           

                           

                          22:25:30,494 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 1) Deployment of "order-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL: Failed to process phase INSTALL of deployment \"order-ws-0.0.1-SNAPSHOT.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".ValidatorFactory missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]","jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".Validator missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]"]}

                          22:25:30,593 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment order-ws-0.0.1-SNAPSHOT.war in 174ms

                          22:25:30,595 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 2) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL: Failed to process phase INSTALL of deployment \"order-ws-0.0.1-SNAPSHOT.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".ValidatorFactory missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]","jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".Validator missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]"]}}}

                          22:25:32,516 INFO  [org.jboss.as.jpa] (MSC service thread 1-1) added javax.persistence.api dependency to order-ws-0.0.1-SNAPSHOT.war

                          22:25:32,801 INFO  [org.jboss.weld] (MSC service thread 1-1) Processing CDI deployment: order-ws-0.0.1-SNAPSHOT.war

                          22:25:33,200 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC00001: Failed to start service jboss.deployment.unit."order-ws-0.0.1-SNAPSHOT.war".INSTALL: org.jboss.msc.service.StartException in service jboss.deployment.unit."order-ws-0.0.1-SNAPSHOT.war".INSTALL: Failed to process phase INSTALL of deployment "order-ws-0.0.1-SNAPSHOT.war"

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:121)

                                  at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)

                                  at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [:1.6.0_26]

                                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [:1.6.0_26]

                                  at java.lang.Thread.run(Thread.java:662) [:1.6.0_26]

                          Caused by: java.lang.NullPointerException

                                  at org.jboss.as.weld.deployment.processors.WeldComponentIntegrationProcessor$1.configure(WeldComponentIntegrationProcessor.java:87)

                                  at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)

                                  at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)

                                  ... 5 more

                           

                           

                          22:25:33,405 INFO  [org.jboss.as.server.controller] (DeploymentScanner-threads - 2) Deployment of "order-ws-0.0.1-SNAPSHOT.war" was rolled back with failure message {"Failed services" => {"jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL: Failed to process phase INSTALL of deployment \"order-ws-0.0.1-SNAPSHOT.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".Validator missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]","jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".ValidatorFactory missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]"]}

                          22:25:33,476 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-2) Stopped deployment order-ws-0.0.1-SNAPSHOT.war in 71ms

                          22:25:33,478 ERROR [org.jboss.as.deployment] (DeploymentScanner-threads - 1) {"Composite operation failed and was rolled back. Steps that failed:" => {"Operation step-2" => {"Failed services" => {"jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"order-ws-0.0.1-SNAPSHOT.war\".INSTALL: Failed to process phase INSTALL of deployment \"order-ws-0.0.1-SNAPSHOT.war\""},"Services with missing/unavailable dependencies" => ["jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".Validator missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]","jboss.naming.context.java.comp.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\".ValidatorFactory missing [ jboss.naming.context.java.module.\"order-ws-0.0.1-SNAPSHOT\".\"order-ws-0.0.1-SNAPSHOT\" ]"]}}}

                           

                           

                          • 10. Re: Can't handle @Resource for ENC name
                            ropalka

                            Can I see your web.xml file and your war content? Use

                            'jar tvf order-ws-0.0.1-SNAPSHOT.war' command

                            • 11. Re: Can't handle @Resource for ENC name
                              samwun9988

                              Hi, here is the content of the war file:

                               

                               

                              0 Wed Aug 31 22:42:06 EST 2011 META-INF/

                                 122 Wed Aug 31 22:42:04 EST 2011 META-INF/MANIFEST.MF

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/base/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/bean/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/common/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/Enum/

                                   0 Wed Aug 31 22:42:02 EST 2011 WEB-INF/classes/ix/service/order/service/

                                   0 Wed Aug 31 22:42:06 EST 2011 WEB-INF/lib/

                                 775 Tue Aug 30 13:38:12 EST 2011 WEB-INF/beans.xml

                                 215 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/base/IBaseEnum.class

                                1247 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/bean/Order.class

                                 652 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/InvalidMasterProgramAgencyException.class

                                 624 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/ServiceNotContactableException.class

                                 600 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/ServiceTimedOutException.class

                                 612 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/ServiceUnavailableException.class

                                 633 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/UnknownAgencyContextException.class

                                 588 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/UnknownErrorException.class

                                 633 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/UnknownInteractionIdException.class

                                 652 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/common/UnknownMasterProgramAgencyException.class

                                2248 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/Enum/DialogueCancelReasonEnum.class

                                2102 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/Enum/DialogueStatusEnum.class

                                1973 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/Enum/DialogueTypeEnum.class

                                2101 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/Enum/MasterProgramEnum.class

                                 306 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/service/OrderProcess.class

                                1209 Wed Aug 31 22:41:32 EST 2011 WEB-INF/classes/ix/service/order/service/OrderProcessImpl.class

                                 832 Wed Aug 31 20:56:18 EST 2011 WEB-INF/jbossws-cxf.xml

                              443432 Sat Jun 11 19:46:12 EST 2011 WEB-INF/lib/antlr-2.7.6.jar

                                4467 Sat Jun 11 19:46:00 EST 2011 WEB-INF/lib/aopalliance-1.0.jar

                              43578 Tue Aug 16 16:26:48 EST 2011 WEB-INF/lib/asm-3.3.jar

                              16757 Sat Jun 11 19:46:04 EST 2011 WEB-INF/lib/asm-attrs-1.5.3.jar

                              282338 Sat Jun 11 19:46:10 EST 2011 WEB-INF/lib/cglib-2.1_3.jar

                              175426 Sat Jun 11 22:26:20 EST 2011 WEB-INF/lib/commons-collections-2.1.1.jar

                              60686 Tue Aug 16 20:43:54 EST 2011 WEB-INF/lib/commons-logging-1.1.1.jar

                              359048 Tue Aug 16 16:26:24 EST 2011 WEB-INF/lib/cxf-api-2.4.1.jar

                              324897 Tue Aug 16 16:26:12 EST 2011 WEB-INF/lib/cxf-common-utilities-2.4.1.jar

                              173143 Tue Aug 16 16:32:18 EST 2011 WEB-INF/lib/cxf-rt-bindings-soap-2.4.1.jar

                              37249 Tue Aug 16 16:26:28 EST 2011 WEB-INF/lib/cxf-rt-bindings-xml-2.4.1.jar

                              503595 Tue Aug 16 16:26:26 EST 2011 WEB-INF/lib/cxf-rt-core-2.4.1.jar

                              92263 Thu Aug 18 14:08:00 EST 2011 WEB-INF/lib/cxf-rt-databinding-jaxb-2.4.1.jar

                              352328 Tue Aug 16 16:26:42 EST 2011 WEB-INF/lib/cxf-rt-frontend-jaxws-2.4.1.jar

                              98438 Tue Aug 16 16:26:44 EST 2011 WEB-INF/lib/cxf-rt-frontend-simple-2.4.1.jar

                              18223 Tue Aug 16 16:26:26 EST 2011 WEB-INF/lib/cxf-rt-transports-common-2.4.1.jar

                              205007 Tue Aug 16 16:26:24 EST 2011 WEB-INF/lib/cxf-rt-transports-http-2.4.1.jar

                              67046 Tue Aug 16 16:26:28 EST 2011 WEB-INF/lib/cxf-rt-transports-http-jetty-2.4.1.jar

                              87042 Tue Aug 16 16:26:38 EST 2011 WEB-INF/lib/cxf-rt-ws-addr-2.4.1.jar

                              160011 Tue Aug 16 16:26:10 EST 2011 WEB-INF/lib/cxf-tools-common-2.4.1.jar

                              313898 Sat Jun 11 18:46:12 EST 2011 WEB-INF/lib/dom4j-1.6.1.jar

                              208048 Sat Jun 11 19:46:08 EST 2011 WEB-INF/lib/ehcache-1.2.3.jar

                              52847 Sat Jun 11 19:46:08 EST 2011 WEB-INF/lib/ejb3-persistence-1.0.1.GA.jar

                              223298 Tue Aug 16 16:27:02 EST 2011 WEB-INF/lib/geronimo-javamail_1.4_spec-1.7.1.jar

                              96323 Tue Aug 16 16:27:06 EST 2011 WEB-INF/lib/geronimo-servlet_3.0_spec-1.0.jar

                              2274768 Sat Jun 11 19:46:22 EST 2011 WEB-INF/lib/hibernate-3.2.6.ga.jar

                              280196 Sat Jun 11 19:46:10 EST 2011 WEB-INF/lib/hibernate-annotations-3.3.1.GA.jar

                              66426 Sat Jun 11 19:46:08 EST 2011 WEB-INF/lib/hibernate-commons-annotations-3.0.0.ga.jar

                              706710 Sat Jun 11 19:46:14 EST 2011 WEB-INF/lib/hsqldb-1.8.0.10.jar

                              876610 Thu Aug 18 14:08:18 EST 2011 WEB-INF/lib/jaxb-impl-2.1.13.jar

                              20083 Thu Aug 18 13:08:44 EST 2011 WEB-INF/lib/jetty-continuation-7.4.2.v20110526.jar

                              108833 Thu Aug 18 13:08:50 EST 2011 WEB-INF/lib/jetty-http-7.4.2.v20110526.jar

                              89024 Thu Aug 18 13:08:52 EST 2011 WEB-INF/lib/jetty-io-7.4.2.v20110526.jar

                              83096 Tue Aug 16 16:25:54 EST 2011 WEB-INF/lib/jetty-security-7.4.2.v20110526.jar

                              294399 Sat Aug 20 22:19:16 EST 2011 WEB-INF/lib/jetty-server-7.4.2.v20110526.jar

                              207534 Thu Aug 18 13:08:52 EST 2011 WEB-INF/lib/jetty-util-7.4.2.v20110526.jar

                                8812 Wed Aug 17 21:14:08 EST 2011 WEB-INF/lib/jta-1.0.1B.jar

                              69407 Thu Aug 18 13:08:46 EST 2011 WEB-INF/lib/neethi-3.0.0.jar

                              25496 Thu Aug 18 13:08:50 EST 2011 WEB-INF/lib/slf4j-api-1.6.1.jar

                              321190 Tue Aug 16 16:27:12 EST 2011 WEB-INF/lib/spring-aop-3.0.5.RELEASE.jar

                              53082 Tue Aug 16 16:26:58 EST 2011 WEB-INF/lib/spring-asm-3.0.5.RELEASE.jar

                              35548 Tue Aug 16 16:27:12 EST 2011 WEB-INF/lib/spring-aspects-3.0.5.RELEASE.jar

                              555410 Tue Aug 16 16:26:58 EST 2011 WEB-INF/lib/spring-beans-3.0.5.RELEASE.jar

                              668861 Tue Aug 16 16:27:10 EST 2011 WEB-INF/lib/spring-context-3.0.5.RELEASE.jar

                              100870 Tue Aug 16 16:27:12 EST 2011 WEB-INF/lib/spring-context-support-3.0.5.RELEASE.jar

                              382442 Tue Aug 16 16:27:10 EST 2011 WEB-INF/lib/spring-core-3.0.5.RELEASE.jar

                              169752 Tue Aug 16 16:27:00 EST 2011 WEB-INF/lib/spring-expression-3.0.5.RELEASE.jar

                              385712 Tue Aug 16 16:27:10 EST 2011 WEB-INF/lib/spring-jdbc-3.0.5.RELEASE.jar

                              334327 Tue Aug 16 16:27:12 EST 2011 WEB-INF/lib/spring-orm-3.0.5.RELEASE.jar

                              231922 Tue Aug 16 16:27:12 EST 2011 WEB-INF/lib/spring-tx-3.0.5.RELEASE.jar

                              395587 Tue Aug 16 16:26:58 EST 2011 WEB-INF/lib/spring-web-3.0.5.RELEASE.jar

                              182112 Thu Aug 18 13:08:48 EST 2011 WEB-INF/lib/stax2-api-3.1.1.jar

                              15071 Sat Jun 11 19:46:06 EST 2011 WEB-INF/lib/transaction-api-1.1.jar

                              478446 Thu Aug 18 13:08:48 EST 2011 WEB-INF/lib/woodstox-core-asl-4.1.1.jar

                              148429 Tue Aug 16 16:26:58 EST 2011 WEB-INF/lib/wsdl4j-1.6.2.jar

                              84091 Tue Aug 16 16:25:44 EST 2011 WEB-INF/lib/xml-resolver-1.2.jar

                              160085 Tue Aug 16 16:25:42 EST 2011 WEB-INF/lib/xmlschema-core-2.0.jar

                                1554 Tue Aug 30 13:36:22 EST 2011 WEB-INF/web.xml-bak

                                1029 Wed Aug 31 20:38:32 EST 2011 WEB-INF/web.xml

                                   0 Wed Aug 31 22:42:06 EST 2011 META-INF/maven/

                                   0 Wed Aug 31 22:42:06 EST 2011 META-INF/maven/ix.service/

                                   0 Wed Aug 31 22:42:06 EST 2011 META-INF/maven/ix.service/order-ws/

                                7730 Wed Aug 31 22:39:56 EST 2011 META-INF/maven/ix.service/order-ws/pom.xml

                                 117 Wed Aug 31 22:42:06 EST 2011 META-INF/maven/ix.service/order-ws/pom.properties

                               

                               

                               

                              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.com/xml/ns/javaee/web-app_3_0.xsd" version="3.0">

                                  <display-name>OrderProcess</display-name>

                                  <context-param>

                                      <param-name>contextConfigLocation</param-name>

                                      <param-value>WEB-INF/jbossws-cxf.xml</param-value>

                                  </context-param>

                                  <listener>

                                      <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>

                               

                               

                              jbossws-cxf.xml:

                               

                               

                              <?xml version="1.0" encoding="UTF-8"?>

                              <beans

                                xmlns='http://www.springframework.org/schema/beans'

                                xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'

                                xmlns:beans='http://www.springframework.org/schema/beans'

                                xmlns:jaxws='http://cxf.apache.org/jaxws'

                                xsi:schemaLocation='http://www.springframework.org/schema/beans

                                http://www.springframework.org/schema/beans/spring-beans.xsd

                                http://cxf.apache.org/jaxws

                                http://cxf.apache.org/schemas/jaxws.xsd'>

                               

                               

                                <!-- one or more jaxws:endpoint POJO declarations -->

                                <jaxws:endpoint id="orderProcess"

                                                  implementor="ix.service.order.service.OrderProcessImpl"

                                                                  address="http://192.168.1.100:8082/orderprocess">

                                        </jaxws:endpoint>

                                     

                              </beans>

                               

                               

                               

                              Thanks

                              Sam

                              • 12. Re: Can't handle @Resource for ENC name
                                ropalka

                                I see, that org.jboss.as.weld.deployment.processors.BeansXmlProcessor recognized it as WELD deployment.

                                Your WEB-INF/beans.xml is weld configuration file or spring configuration file?

                                • 13. Re: Can't handle @Resource for ENC name
                                  samwun9988

                                  The beans.xml is redundant i think. it was referenced by web.xml before, but it is replaced by jbossws-cxf.xml.

                                   

                                  Is it still being called even I don't put it in web.xml?

                                   

                                  Here is beans.xml content:

                                   

                                   

                                  <?xml version="1.0" encoding="UTF-8"?>

                                  <beans xmlns="http://www.springframework.org/schema/beans"

                                            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/jaxws"

                                            xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd http://cxf.apache.org/jaxws http://cxf.apache.org/schemas/jaxws.xsd">

                                            <import resource="classpath:META-INF/cxf/cxf.xml" />

                                            <import resource="classpath:META-INF/cxf/cxf-extension-soap.xml" />

                                            <import resource="classpath:META-INF/cxf/cxf-servlet.xml" />

                                            <jaxws:endpoint id="orderProcess"

                                                      implementor="ix.service.order.service.OrderProcessImpl"

                                                                      address="/orderprocess">

                                            </jaxws:endpoint>

                                  </beans>

                                   

                                  Thanks

                                  Sam

                                  • 14. Re: Can't handle @Resource for ENC name
                                    ropalka

                                    I see that you still have CXF in your application:

                                     

                                    WEB-INF/lib/cxf-api-2.4.1.jar

                                    ...

                                    If your application is not using Spring and you have it there only

                                    because of CXF, you can remove both CXF & spring from your application.

                                     

                                    Then you can delete jbossws-cxf.xml file.

                                     

                                    Then rewrite your web.xml to just contain the following:

                                     

                                    <servlet>

                                            <servlet-name>CXFServlet</servlet-name>

                                            <servlet-class>

                                                ix.service.order.service.OrderProcessImpl

                                            </servlet-class>

                                        </servlet>

                                        <servlet-mapping>

                                            <servlet-name>CXFServlet</servlet-name>

                                            <url-pattern>/services/*</url-pattern>

                                        </servlet-mapping>

                                    1 2 Previous Next