现在我用usimg smooks将csv文件转换为java所以我得到了Exception 未找到类别加载项:au.com.bytecode.opencsv.CSVReader,
我得到的例外是
15:03:41,263 ERROR [STDERR] org.milyn.SmooksException: Smooks Filtering operation failed.
15:03:41,264 ERROR [STDERR] at org.milyn.Smooks._filter(Smooks.java:538)
15:03:41,264 ERROR [STDERR] at org.milyn.Smooks.filterSource(Smooks.java:475)
15:03:41,264 ERROR [STDERR] at com.manam.mobee.migrationCustomerManagement.MigrationCustomerHome.runSmooksTransform(MigrationCustomerHome.java:76)
15:03:41,264 ERROR [STDERR] at com.manam.mobee.migrationCustomerManagement.MigrationCustomerHome.displyTempCustomers(MigrationCustomerHome.java:115)
15:03:41,264 ERROR [STDERR] at com.manam.mobee.migrationCustomerManagement.MigrationCustomerHome.listener(MigrationCustomerHome.java:144)
Caused by: java.lang.NoClassDefFoundError: au/com/bytecode/opencsv/CSVReader
15:03:41,268 ERROR [STDERR] at org.milyn.csv.CSVReader.parse(CSVReader.java:314)
15:03:41,268 ERROR [STDERR] at org.milyn.delivery.sax.SAXParser.parse(SAXParser.java:70)
15:03:41,268 ERROR [STDERR] at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:75)
15:03:41,268 ERROR [STDERR] at org.milyn.delivery.sax.SmooksSAXFilter.doFilter(SmooksSAXFilter.java:61)
15:03:41,268 ERROR [STDERR] at org.milyn.Smooks._filter(Smooks.java:516)
15:03:41,269 ERROR [STDERR] ... 92 more
15:03:41,269 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: au.com.bytecode.opencsv.CSVReader
15:03:41,269 ERROR [STDERR] at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
15:03:41,269 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
15:03:41,269 ERROR [STDERR] at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
15:03:41,269 ERROR [STDERR] at java.lang.ClassLoader.loadClass(Unknown Source)
15:03:41,269 ERROR [STDERR] ... 97 more
答案 0 :(得分:0)
可能你错过了类路径中的opencsv-XX.jar(XX表示opencsv版本,如:1.6或1.7)。或者它不适合你的容器看到它(检查WEB-INF / lib)。