<html><body bgcolor="#FFFFFF"><div>Did anyone look into this?<br><br>Sent from my iPad</div><div><br>On Jul 20, 2011, at 2:52 AM, Jim Ma &lt;<a href="mailto:ema@redhat.com">ema@redhat.com</a>&gt; wrote:<br><br></div><div></div><blockquote type="cite"><div>

    I tried to deploy a webserivce endpoint impl with @Stateless
    annotation packaged in a war file which works with AS5 and AS6&nbsp; into
    latest AS7 snapshot and got&nbsp; CNF exception. <br>
    Below I list the error statck trace ,&nbsp; endpoint impl class and the
    web.xml used to deploy this ws endpoint.&nbsp;&nbsp; From the error stack
    trace , it looks like the issue in ejb side ? But it works<br>
    when I deploy this endpoint with an ejb jar file.&nbsp;&nbsp; Is it another
    classloader issue ?<br>
    <br>
    Thanks<br>
    Jim<br>
    <br>
    <br>
    <pre class="paste_scroller">-------------------error message------------------</pre>
    <div class="container">
      <div id="paste_border">
        <pre class="paste_scroller"><div id="paste_container"><ol class="paste_lines"><li id="1" class="lineno"><div class="paste_content">de/git-client/maerqiang-work/jboss-as/build/target/jboss-as-7.1.0.Alpha1-SNAPSHOT/standalone/data/wsdl/jaxws-benchmark-datatypes-pojo.war/EndpointWrappedRPCService.wsdl</div></li><li id="2" class="lineno"><div class="paste_content">11:03:14,450 ERROR [stderr] (MSC service thread 1-12) javax.xml.datatype.DatatypeConfigurationException: Provider __redirected.__DatatypeFactory not found</div></li><li id="3" class="lineno"><div class="paste_content">11:03:14,451 ERROR [stderr] (MSC service thread 1-12)         at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:137)</div></li><li id="4" class="lineno"><div class="paste_content">11:03:14,451 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl.&lt;clinit&gt;(EndpointPOJOWrappedDocImpl.java:54)</div></li><li id="5" c="" lass="lineno special"><div class="paste_content">11:03:14,452 ERROR [stderr] (MSC service thread 1-12)         at sun.misc.Unsafe.ensureClassInitialized(Native Method)</div></li><li id="6" class="lineno"><div class="paste_content">11:03:14,452 ERROR [stderr] (MSC service thread 1-12)         at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)</div></li><li id="7" class="lineno"><div class="paste_content">11:03:14,453 ERROR [stderr] (MSC service thread 1-12)         at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)</div></li><li id="8" class="lineno"><div class="paste_content">11:03:14,453 ERROR [stderr] (MSC service thread 1-12)         at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)</div></li><li id="9" class="lineno"><div class="paste_content">11:03:14,454 ERROR [stderr] (MSC service thread 1-12)         at java.lang.reflect.Field.getFieldAccessor(Field.java:899)</div></li><li id="10" class="lineno special"><div class="pas
te_content">11:03:14,454 ERROR [stderr] (MSC service thread 1-12)         at java.lang.reflect.Field.get(Field.java:358)</div></li><li id="11" class="lineno"><div class="paste_content">11:03:14,454 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:253)</div></li><li id="12" class="lineno"><div class="paste_content">11:03:14,455 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:244)</div></li><li id="13" class="lineno"><div class="paste_content">11:03:14,455 ERROR [stderr] (MSC service thread 1-12)         at java.security.AccessController.doPrivileged(Native Method)</div></li><li id="14" class="lineno"><div class="paste_content">11:03:14,456 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:108)</div></li><li id="15" class="lineno special"><div class="paste_content">11:03:14,456 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:158)</div></li><li id="16" class="lineno"><div class="paste_content">11:03:14,457 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:118)</div></li><li id="17" class="lineno"><div class="paste_content">11:03:14,457 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.as.ejb3.component.stateless.StatelessComponentDescription$2.configure(StatelessComponentDescription.java:121)</div></li><li id="18" class="lineno"><div class="paste_content">11:03:14,457 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.as.ee.component.ComponentDescription$DefaultFirstConfigurator.configure(ComponentDescription.java:778)</div></li><li id="19" class="lineno"><div class="paste_content">11:03:14,458 ERROR [stderr]
 (MSC service thread 1-12)         at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)</div></li><li id="20" class="lineno special"><div class="paste_content">11:03:14,458 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)</div></li><li id="21" class="lineno"><div class="paste_content">11:03:14,459 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)</div></li><li id="22" class="lineno"><div class="paste_content">11:03:14,459 ERROR [stderr] (MSC service thread 1-12)         at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)</div></li><li id="23" class="lineno"><div class="paste_content">11:03:14,459 ERROR [stderr] (MSC service thread 1-12)         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
r.java:886)</div></li><li id="24" class="lineno"><div class="paste_content">11:03:14,460 ERROR [stderr] (MSC service thread 1-12)         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)</div></li><li id="25" class="lineno special"><div class="paste_content">11:03:14,460 ERROR [stderr] (MSC service thread 1-12)         at java.lang.Thread.run(Thread.java:662)</div></li><li id="26" class="lineno"><div class="paste_content">11:03:14,461 ERROR [stderr] (MSC service thread 1-12) Caused by: java.lang.ClassNotFoundException: __redirected/__DatatypeFactory</div></li><li id="27" class="lineno"><div class="paste_content">11:03:14,461 ERROR [stderr] (MSC service thread 1-12)         at java.lang.Class.forName0(Native Method)</div></li><li id="28" class="lineno"><div class="paste_content">11:03:14,462 ERROR [stderr] (MSC service thread 1-12)         at java.lang.Class.forName(Class.java:247)</div></li><li id="29" class="lineno"><div class="paste_content">11:03:14,462 ERROR [stderr
] (MSC service thread 1-12)         at javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:121)</div></li><li id="30" class="lineno special"><div class="paste_content">11:03:14,463 ERROR [stderr] (MSC service thread 1-12)         at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:146)</div></li><li id="31" class="lineno"><div class="paste_content">11:03:14,463 ERROR [stderr] (MSC service thread 1-12)         at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:187)</div></li><li id="32" class="lineno"><div class="paste_content">11:03:14,463 ERROR [stderr] (MSC service thread 1-12)         at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:131)</div></li><li id="33" class="lineno"><div class="paste_content">11:03:14,464 ERROR [stderr] (MSC service thread 1-12)         ... 22 more</div></li></ol>
-------------------EndpointPOJOWrappedDocImpl.java------------------
@WebService(serviceName = "EndpointWrappedDocService", portName = "EndpointWrappedDocPort", endpointInterface = "org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointWrappedDoc")
@Stateless
public class EndpointPOJOWrappedDocImpl implements EndpointDoc
{
   private static Duration dayDuration;
   static
   {
      try
      {
         dayDuration = DatatypeFactory.newInstance().newDuration(86400000L);
      }
      catch (DatatypeConfigurationException e)
      {
         dayDuration = null;
         e.printStackTrace();
      }
   }
   private static final List&lt;String&gt; stringList;
   static
   {
      stringList = new ArrayList&lt;String&gt;();
      for (int i = 0; i &lt; 10; i++)
      {
         stringList.add("item " + i);
      }
   }

   public String sayHello(String toWhom)
   {
      String greeting = "Hello World Greeting for '" + toWhom + "' today";
      return greeting;
   }
}

-------web.xml----------
&lt;?xml version="1.0" encoding="UTF-8"?&gt;

&lt;web-app xmlns=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/xml/ns/j2ee">"<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a>"</a> xmlns:xsi=<a class="moz-txt-link-rfc2396E" href="http://www.w3.org/2001/XMLSchema-instance">"<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"</a>
        xsi:schemaLocation=<a class="moz-txt-link-rfc2396E" href="http://java.sun.com/xml/ns/j2eehttp://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">"<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a> <a href="http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd</a>"</a>
        version="2.4"&gt;

        &lt;servlet&gt;
                &lt;servlet-name&gt;EndpointPOJOWrappedDocImpl&lt;/servlet-name&gt;
                &lt;servlet-class&gt;org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl&lt;/servlet-class&gt;
        &lt;/servlet&gt;
        &lt;servlet-mapping&gt;
                &lt;servlet-name&gt;EndpointPOJOWrappedDocImpl&lt;/servlet-name&gt;
                &lt;url-pattern&gt;/EndpointPOJOWrappedDocImpl&lt;/url-pattern&gt;
        &lt;/servlet-mapping&gt;
&lt;/web-app&gt;

</div></pre>
      </div>
    </div>
    <br>
    <br>
    <br>
  

</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>jboss-as7-dev mailing list</span><br><span><a href="mailto:jboss-as7-dev@lists.jboss.org">jboss-as7-dev@lists.jboss.org</a></span><br><span><a href="https://lists.jboss.org/mailman/listinfo/jboss-as7-dev">https://lists.jboss.org/mailman/listinfo/jboss-as7-dev</a></span><br></div></blockquote></body></html>