我对于关于<wls:package-name>org.apache.xerces.*</wls:package-name>
的classnotfound异常的weblogic 10.3.6上的类加载问题感到不安。
试图将weblogic-application.xml
放入xercesImpl-2.10.0.jar
。确保将XMLGregorianCalendarImpl
放在耳朵的根部,但是weblogic忽略了这个事实:(
XMLStreamReader
显然用于 final JAXBContext context = JAXBContext.newInstance(typeClass);
final Unmarshaller unmarshaller = context.createUnmarshaller();
final XMLStreamReader xmlr = XMLInputFactory.newInstance().createXMLStreamReader(reader);
功能。
java.lang.NoClassDefFoundError: org/apache/xerces/jaxp/datatype/XMLGregorianCalendarImpl
at org.apache.xerces.jaxp.datatype.DatatypeFactoryImpl.newXMLGregorianCalendar(Unknown Source)
at com.sun.xml.bind.DatatypeConverterImpl._parseDateTime(DatatypeConverterImpl.java:408)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$4.parse(RuntimeBuiltinLeafInfoImpl.java:288)
at com.sun.xml.bind.v2.model.impl.RuntimeBuiltinLeafInfoImpl$4.parse(RuntimeBuiltinLeafInfoImpl.java:290)
at com.sun.xml.bind.v2.runtime.reflect.TransducedAccessor$CompositeTransducedAccessorImpl.parse(TransducedAccessor.java:247)
at com.sun.xml.bind.v2.runtime.unmarshaller.LeafPropertyLoader.text(LeafPropertyLoader.java:65)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallingContext.text(UnmarshallingContext.java:515)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.processText(StAXStreamConnector.java:339)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.handleEndElement(StAXStreamConnector.java:217)
at com.sun.xml.bind.v2.runtime.unmarshaller.StAXStreamConnector.bridge(StAXStreamConnector.java:186)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:368)
at com.sun.xml.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:347)
at dk.skat.efi.wls.bebb.common.util.LargeXmlFileProcessorHandler.process(LargeXmlFileProcessorHandler.java:83)
at dk.skat.efi.wls.bebb.common.util.LargeXmlFileProcessorHandler.validate(LargeXmlFileProcessorHandler.java:38)
at dk.skat.efi.wls.bebb.bum.processor.BumFTPFileProcessor.downloadFileAndSave(BumFTPFileProcessor.java:102)
at dk.skat.efi.wls.bebb.bum.processor.BumFTPFileProcessor.process(BumFTPFileProcessor.java:91)
at dk.skat.efi.wls.bebb.bum.processor.BumFTPFileProcessor.process(BumFTPFileProcessor.java:35)
at dk.skat.efi.wls.bebb.common.integration.FTPClientManager.handleFiles(FTPClientManager.java:142)
at dk.skat.efi.wls.bebb.bum.job.BumHentFraUdbetalingDkWorkerExecutorImpl.doWork(BumHentFraUdbetalingDkWorkerExecutorImpl.java:62)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
at com.sun.proxy.$Proxy1828.doWork(Unknown Source)
at dk.skat.efi.wls.bebb.scheduler.BumHentFraUdbetalingDkTaskImpl.execute(BumHentFraUdbetalingDkTaskImpl.java:35)
at dk.skat.efi.common.scheduling.AbstractScheduledTask.execute(AbstractScheduledTask.java:320)
at dk.skat.efi.common.scheduling.AbstractScheduledTask$PrivilegedTaskAction$1.doInTransactionWithoutResult(AbstractScheduledTask.java:253)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)
at dk.skat.efi.common.scheduling.AbstractScheduledTask$PrivilegedTaskAction.run(AbstractScheduledTask.java:251)
at dk.skat.efi.common.scheduling.AbstractScheduledTask$PrivilegedTaskAction.run(AbstractScheduledTask.java:235)
如何让weblogic接受过滤方法? 该应用程序具有apache cxf和jaxws webservices。 我卡住了,PLZ帮助:( 在这里查看整个堆栈跟踪:
inverse1
答案 0 :(得分:1)
找到了解决方法。该应用程序使用xmlbeans,现在使用jaxb。创建了一个DateAdapter并继承自XMLAdapter,指定应该如何编组日期。然后将其添加到我的xjb配置中。
public class XmlToDateAdapter extends XmlAdapter<String, Date> {
public static final DateFormat SKAT_DATE_FORMATTER = new SimpleDateFormat("yyyy-MM-dd");
@Override
public Date unmarshal(String v) throws Exception {
Date date = SKAT_DATE_FORMATTER.parse(v);
return date;
}
@Override
public String marshal(Date v) throws Exception {
return SKAT_DATE_FORMATTER.format(v);
}
}