[jboss-as7-dev] Issue in EJB ?
Jason Greene
jgreene at redhat.com
Sat Jul 23 00:48:34 EDT 2011
Did anyone look into this?
Sent from my iPad
On Jul 20, 2011, at 2:52 AM, Jim Ma <ema at redhat.com> wrote:
> I tried to deploy a webserivce endpoint impl with @Stateless annotation packaged in a war file which works with AS5 and AS6 into latest AS7 snapshot and got CNF exception.
> Below I list the error statck trace , endpoint impl class and the web.xml used to deploy this ws endpoint. From the error stack trace , it looks like the issue in ejb side ? But it works
> when I deploy this endpoint with an ejb jar file. Is it another classloader issue ?
>
> Thanks
> Jim
>
>
> -------------------error message------------------
> 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
> 11:03:14,450 ERROR [stderr] (MSC service thread 1-12) javax.xml.datatype.DatatypeConfigurationException: Provider __redirected.__DatatypeFactory not found
> 11:03:14,451 ERROR [stderr] (MSC service thread 1-12) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:137)
> 11:03:14,451 ERROR [stderr] (MSC service thread 1-12) at org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl.<clinit>(EndpointPOJOWrappedDocImpl.java:54)
> 11:03:14,452 ERROR [stderr] (MSC service thread 1-12) at sun.misc.Unsafe.ensureClassInitialized(Native Method)
> 11:03:14,452 ERROR [stderr] (MSC service thread 1-12) at sun.reflect.UnsafeFieldAccessorFactory.newFieldAccessor(UnsafeFieldAccessorFactory.java:25)
> 11:03:14,453 ERROR [stderr] (MSC service thread 1-12) at sun.reflect.ReflectionFactory.newFieldAccessor(ReflectionFactory.java:122)
> 11:03:14,453 ERROR [stderr] (MSC service thread 1-12) at java.lang.reflect.Field.acquireFieldAccessor(Field.java:918)
> 11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at java.lang.reflect.Field.getFieldAccessor(Field.java:899)
> 11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at java.lang.reflect.Field.get(Field.java:358)
> 11:03:14,454 ERROR [stderr] (MSC service thread 1-12) at org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:253)
> 11:03:14,455 ERROR [stderr] (MSC service thread 1-12) at org.jboss.invocation.proxy.AbstractProxyFactory$MethodAccessibilitySetter.run(AbstractProxyFactory.java:244)
> 11:03:14,455 ERROR [stderr] (MSC service thread 1-12) at java.security.AccessController.doPrivileged(Native Method)
> 11:03:14,456 ERROR [stderr] (MSC service thread 1-12) at org.jboss.invocation.proxy.AbstractProxyFactory.afterClassLoad(AbstractProxyFactory.java:108)
> 11:03:14,456 ERROR [stderr] (MSC service thread 1-12) at org.jboss.invocation.proxy.AbstractClassFactory.defineClass(AbstractClassFactory.java:158)
> 11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at org.jboss.invocation.proxy.AbstractProxyFactory.getCachedMethods(AbstractProxyFactory.java:118)
> 11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at org.jboss.as.ejb3.component.stateless.StatelessComponentDescription$2.configure(StatelessComponentDescription.java:121)
> 11:03:14,457 ERROR [stderr] (MSC service thread 1-12) at org.jboss.as.ee.component.ComponentDescription$DefaultFirstConfigurator.configure(ComponentDescription.java:778)
> 11:03:14,458 ERROR [stderr]
> (MSC service thread 1-12) at org.jboss.as.ee.component.EEModuleConfigurationProcessor.deploy(EEModuleConfigurationProcessor.java:65)
> 11:03:14,458 ERROR [stderr] (MSC service thread 1-12) at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:115)
> 11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1765)
> 11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at org.jboss.msc.service.ServiceControllerImpl$ClearTCCLTask.run(ServiceControllerImpl.java:2291)
> 11:03:14,459 ERROR [stderr] (MSC service thread 1-12) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecuto
> r.java:886)
> 11:03:14,460 ERROR [stderr] (MSC service thread 1-12) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 11:03:14,460 ERROR [stderr] (MSC service thread 1-12) at java.lang.Thread.run(Thread.java:662)
> 11:03:14,461 ERROR [stderr] (MSC service thread 1-12) Caused by: java.lang.ClassNotFoundException: __redirected/__DatatypeFactory
> 11:03:14,461 ERROR [stderr] (MSC service thread 1-12) at java.lang.Class.forName0(Native Method)
> 11:03:14,462 ERROR [stderr] (MSC service thread 1-12) at java.lang.Class.forName(Class.java:247)
> 11:03:14,462 ERROR [stderr
> ] (MSC service thread 1-12) at javax.xml.datatype.FactoryFinder.getProviderClass(FactoryFinder.java:121)
> 11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at javax.xml.datatype.FactoryFinder.newInstance(FactoryFinder.java:146)
> 11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at javax.xml.datatype.FactoryFinder.find(FactoryFinder.java:187)
> 11:03:14,463 ERROR [stderr] (MSC service thread 1-12) at javax.xml.datatype.DatatypeFactory.newInstance(DatatypeFactory.java:131)
> 11:03:14,464 ERROR [stderr] (MSC service thread 1-12) ... 22 more
>
> -------------------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<String> stringList;
> static
> {
> stringList = new ArrayList<String>();
> for (int i = 0; i < 10; i++)
> {
> stringList.add("item " + i);
> }
> }
>
> public String sayHello(String toWhom)
> {
> String greeting = "Hello World Greeting for '" + toWhom + "' today";
> return greeting;
> }
> }
>
> -------web.xml----------
> <?xml version="1.0" encoding="UTF-8"?>
>
> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
> version="2.4">
>
> <servlet>
> <servlet-name>EndpointPOJOWrappedDocImpl</servlet-name>
> <servlet-class>org.jboss.test.ws.jaxws.benchmark.test.datatypes.EndpointPOJOWrappedDocImpl</servlet-class>
> </servlet>
> <servlet-mapping>
> <servlet-name>EndpointPOJOWrappedDocImpl</servlet-name>
> <url-pattern>/EndpointPOJOWrappedDocImpl</url-pattern>
> </servlet-mapping>
> </web-app>
>
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-as7-dev/attachments/20110723/23849e60/attachment-0001.html
More information about the jboss-as7-dev
mailing list