启动服务器时出现异常

时间:2014-12-19 11:33:28

标签: jax-ws

Caused by: java.lang.ArrayStoreException
                at sun.reflect.annotation.AnnotationParser.parseClassArray(AnnotationParser.java:665)
                at sun.reflect.annotation.AnnotationParser.parseArray(AnnotationParser.java:472)
                at sun.reflect.annotation.AnnotationParser.parseMemberValue(AnnotationParser.java:298)
                at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:234)
                at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:81)
                at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:64)
                at com.ibm.oti.reflect.AnnotationParser.parseAnnotations(AnnotationParser.java:63)
                at java.lang.Class.getDeclaredAnnotations(Class.java:1869)
                at java.lang.Class.getAnnotations(Class.java:1826)
                at java.lang.Class.getAnnotation(Class.java:1806)
                at java.lang.Class.isAnnotationPresent(Class.java:1900)
                at com.sun.xml.ws.model.RuntimeModeler.getPortTypeName(RuntimeModeler.java:1397)
                at com.sun.xml.ws.server.EndpointFactory.createEndpoint(EndpointFactory.java:161)
                at com.sun.xml.ws.api.server.WSEndpoint.create(WSEndpoint.java:467)
                at org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:333)
                at org.jvnet.jax_ws_commons.spring.SpringService.getObject(SpringService.java:45)
                at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:168)
            ... 76 more

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题;你使用任何常见的图书馆,例如从容器内部加载的东西?

例如,我们的server.xml如下所示:

<classloader commonLibraryRef="EclipseLinkLib" delegation="parentLast"/>

我们遇到了类似的例外,请参阅:Missing NamedQueries annotation in WAS Liberty enviroment 通过将委派更改为parentFirst,应用程序就可以了。