<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20315">
<style type="text/css"><!--html { font-family: "Color Emoji", "Meiryo", "Calibri", "Segoe UI", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; }--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst,
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Meiryo', 'Calibri', 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif';font-size:11.4975pt;"><div>å°æž—様</div><div><br></div><div>ãŠä¸–話ã«ãªã£ã¦ãŠã‚Šã¾ã™ã€‚阿形ã§ã™ã€‚</div><div><br></div><div>>Eclipseã®ãƒ“ルドè¨å®šã§ã‚¯ãƒ©ã‚¹ãƒ‘スã«é€šã—ãŸã ã‘ã§ã€<br>>Tomcatã‹ã‚‰ã‚‚見ãˆã‚‹ã‚ˆã†ã«ãªã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“。<br>>WEB-INF/libã«POIã®Jarã‚’é…ç½®ã—ã¦ã„ã‚‹ã‹ã€ç¢ºèªã‚’<br>>ã—ã¦ã¿ã¦ãã ã•ã„。</div><div><br></div><div>Tomcatã®libフォルダーã¸ã€jarファイルをé…ç½®ã—ãŸã¨ã“ã‚</div><div>エラーã¯å‡ºãªããªã‚Šã¾ã—ãŸã€‚本当ã«ã‚ã‚ŠãŒã¨ã†ã”ã–ã„ã¾ã—ãŸã€‚</div><div><br></div><div><br></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Meiryo', 'Calibri', 'Segoe UI', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: "Meiryo", "Calibri", "Segoe UI", "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>差出人:</b> <a href="mailto:koichik@improvement.jp" target="_parent">Koichi Kobayashi</a><br><b>é€ä¿¡æ—¥æ™‚:</b> ‎2013‎年‎12‎月‎14‎日 ‎土曜日 ‎18‎:‎06<br><b>宛先:</b> <a href="mailto:seasar-user@ml.seasar.org" target="_parent">seasar-user@ml.seasar.org</a></font></div></div><div><br></div><div dir=""><div id="readingPaneBodyContent">å°æž— (koichik) ã§ã™ã€‚<br><br>> POIã¯Eclipse4.2ã§ã‚¯ãƒ©ã‚¹ãƒ‘スも通ã£ã¦ã„ã¾ã™ã€‚<br><br>Eclipseã®ãƒ“ルドè¨å®šã§ã‚¯ãƒ©ã‚¹ãƒ‘スã«é€šã—ãŸã ã‘ã§ã€<br>Tomcatã‹ã‚‰ã‚‚見ãˆã‚‹ã‚ˆã†ã«ãªã‚‹ã¨ã¯é™ã‚Šã¾ã›ã‚“。<br>WEB-INF/libã«POIã®Jarã‚’é…ç½®ã—ã¦ã„ã‚‹ã‹ã€ç¢ºèªã‚’<br>ã—ã¦ã¿ã¦ãã ã•ã„。<br><br><br>On Fri, 13 Dec 2013 16:22:26 +0000, <shigeaga@gmail.com> wrote:<br><br>> <br>> 大変申ã—訳ã‚ã‚Šã¾ã›ã‚“ã€ä»¶åを入れ忘れã¾ã—ãŸã€‚<br>> <br>> å†åº¦é€ä¿¡ã—ã¾ã™ã€‚<br>> <br>> <br>> 阿形ã¨ç”³ã—ã¾ã™ã€‚よã‚ã—ããŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚<br>> <br>> <br>> <br>> <br>> ç¾åœ¨ã€Teeda1.0.13-sp11 POI 3.9 ã«ã¦ã‚·ã‚¹ãƒ†ãƒ ã®é–‹ç™ºã‚’è¡Œã£ã¦ãŠã‚Šã¾ã™ã€‚<br>> <br>> å•é¡Œã«ã¤ã„ã¦ã§ã™ãŒã€HSSFWorkbookãŒç„¡ã„(office2003用)<br>> <br>> FontãŒç„¡ã„(Office2007以é™)<br>> <br>> ã¨ã„ã†ã‚¨ãƒ©ãƒ¼ãŒç™ºç”Ÿã—ã¦ã„ã¾ã™ã€‚<br>> <br>> <br>> <br>> <br>> エラーã¯Teedaå´ãªã®ã‹POIå´ãªã®ã‹åˆ‡ã‚Šåˆ†ã‘ã¨å¯¾ç–ãŒã§ããªã„ã§<br>> <br>> ã„ã¾ã™ã€‚POIã¯Eclipse4.2ã§ã‚¯ãƒ©ã‚¹ãƒ‘スも通ã£ã¦ã„ã¾ã™ã€‚<br>> <br>> importæ–‡ã«ã‚‚エラーã¯å‡ºã¦ã„ã¾ã›ã‚“。<br>> <br>> <br>> <br>> å ´é•ã„ãªè³ªå•ã§ç”³ã—訳ã‚ã‚Šã¾ã›ã‚“。ã”教示ã®ç¨‹ã‚ˆã‚ã—ããŠé¡˜ã„ã„ãŸã—ã¾ã™ã€‚<br>> <br>> <br>> <br>> <br>> 開発環境<br>> Oracle11g Windows8.1<br>> JDK 1.7<br>> Tomcat 6.0<br>> Eclipse 4.2<br>> <br>> POI 3.9<br>> <br>> Teeda 1.0.13-sp11 <br>> <br>> <br>> <br>> <br>> コード<br>> <br>> import org.apache.poi.hssf.usermodel.HSSFCell;<br>> import org.apache.poi.hssf.usermodel.HSSFCellStyle;<br>> import org.apache.poi.hssf.usermodel.HSSFClientAnchor;<br>> import org.apache.poi.hssf.usermodel.HSSFDataFormat;<br>> import org.apache.poi.hssf.usermodel.HSSFFont;<br>> import org.apache.poi.hssf.usermodel.HSSFPatriarch;<br>> import org.apache.poi.hssf.usermodel.HSSFPicture;<br>> import org.apache.poi.hssf.usermodel.HSSFRow;<br>> import org.apache.poi.hssf.usermodel.HSSFSheet;<br>> import org.apache.poi.hssf.usermodel.HSSFWorkbook;<br>> import org.apache.poi.ss.usermodel.IndexedColors;<br>> <br>> <br>> <br>> <br>> <br>> import org.seasar.framework.container.annotation.tiger.Component;<br>> import org.seasar.framework.container.annotation.tiger.InstanceType;<br>> <br>> <br>> <br>> <br>> import equipment.system.web.emtbl.AbstractEmtblPage;<br>> <br>> <br>> <br>> <br>> @Component(instance = InstanceType.SINGLETON)<br>> public class CreateDateMarkService extends AbstractEmtblPage{ <br>> <br>> <br>> <br>> <br>> <br>> public void getReportHozen(){<br>> <br>> final String EXCEL_FOLDER = "C:\\Users\\";<br>> final String EXCEL_FILE = "è¨å‚™ä¿å…¨å ±å‘Šæ›¸(FH-1-111改01).xls";<br>> final String EXCEL_SHEET = "原紙"; <br>> <br>> HSSFWorkbook wb = null;<br>> <br>> try {<br>> wb = new HSSFWorkbook(new FileInputStream(EXCEL_FOLDER + EXCEL_FILE));<br>> } catch (FileNotFoundException e1 ){<br>> e1.printStackTrace();<br>> } catch (IOException e1) {<br>> e1.printStackTrace();<br>> }<br>> <br>> HSSFWorkbook(new FileInputStream(EXCEL_FOLDER + EXCEL_FILE));ã§ã‚¨ãƒ©ãƒ¼ç™ºç”Ÿ<br>> <br>> <br>> <br>> <br>> ãƒã‚°<br>> <br>> 2013-12-14 00:35:53,595 [http-8080-1] DEBUG org.seasar.framework.aop.interceptors.TraceInterceptor - BEGIN equipment.system.service.CreateDateMarkService#getReportHozen()<br>> 2013-12-14 00:35:53,595 [http-8080-1] DEBUG org.seasar.extension.jta.TransactionImpl - トランザクションを開始ã—ã¾ã—ãŸã€‚tx=[FormatId=4360, GlobalId=1386945555842/255, BranchId=]<br>> 2013-12-14 00:36:11,375 [http-8080-1] DEBUG org.seasar.extension.jta.TransactionImpl - トランザクションをãƒãƒ¼ãƒ«ãƒãƒƒã‚¯ã—ã¾ã—ãŸã€‚tx=[FormatId=4360, GlobalId=1386945555842/255, BranchId=]<br>> 2013-12-14 00:36:11,392 [http-8080-1] DEBUG org.seasar.framework.aop.interceptors.TraceInterceptor - END equipment.system.service.CreateDateMarkService#getReportHozen() Throwable:java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook<br>> 2013-12-14 00:36:11,392 [http-8080-1] DEBUG org.seasar.framework.aop.interceptors.TraceInterceptor - END equipment.system.web.emtbl.EmtblStampPage#doOnceCreateDatemark() Throwable:java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook<br>> 2013-12-14 00:36:11,392 [http-8080-1] DEBUG org.seasar.teeda.extension.util.TeedaExtensionErrorPageManagerImpl - org/apache/poi/hssf/usermodel/HSSFWorkbook<br>> java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook<br>> at equipment.system.service.CreateDateMarkService.getReportHozen(CreateDateMarkService.java:153)<br>> at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.$$getReportHozen$$invokeSuperMethod$$(CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.java)<br>> at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>> at org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)<br>> at org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)<br>> at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:50)<br>> at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>> at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>> at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>> at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.getReportHozen(CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.java)<br>> at equipment.system.web.emtbl.EmtblStampPage.doOnceCreateDatemark(EmtblStampPage.java:50)<br>> at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4.$$doOnceCreateDatemark$$invokeSuperMethod$$(EmtblStampPage$$EnhancedByS2AOP$$669579a4.java)<br>> at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>> at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:79)<br>> at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>> at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>> at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>> at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4.doOnceCreateDatemark(EmtblStampPage$$EnhancedByS2AOP$$669579a4.java)<br>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>> at java.lang.reflect.Method.invoke(Method.java:601)<br>> at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:96)<br>> at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:218)<br>> at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:163)<br>> at org.seasar.teeda.extension.html.impl.HtmlActionListener.processAction(HtmlActionListener.java:71)<br>> at javax.faces.component.UICommand.broadcast(UICommand.java:149)<br>> at org.seasar.teeda.extension.component.html.THtmlCommandButton.broadcast(THtmlCommandButton.java:78)<br>> at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:192)<br>> at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:117)<br>> at org.seasar.teeda.core.lifecycle.impl.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:29)<br>> at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)<br>> at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:97)<br>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:100)<br>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>> at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:79)<br>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>> at org.seasar.framework.container.hotdeploy.HotdeployFilter.doHotdeployFilter(HotdeployFilter.java:99)<br>> at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:67)<br>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>> at org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilter(MultipartFormDataFilter.java:83)<br>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>> at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)<br>> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>> at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>> at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>> at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>> at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)<br>> at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>> at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br>> at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)<br>> at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)<br>> at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>> at java.lang.Thread.run(Thread.java:722)<br>> Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook<br>> at java.lang.ClassLoader.findClass(ClassLoader.java:522)<br>> at java.lang.ClassLoader.loadClass(ClassLoader.java:423)<br>> at org.seasar.framework.container.hotdeploy.HotdeployClassLoader.loadClass(HotdeployClassLoader.java:76)<br>> at java.lang.ClassLoader.loadClass(ClassLoader.java:356)<br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> <br>> Windows メール ã‹ã‚‰é€ä¿¡<br><br><br>-- <br>{<br> name: "Koichi Kobayashi",<br> mail: "koichik@improvement.jp",<br> blog: "http://d.hatena.ne.jp/koichik/",<br> twitter: "@koichik"<br>}<br><br>_______________________________________________<br>Seasar-user mailing list<br>Seasar-user@ml.seasar.org<br>https://ml.seasar.org/mailman/listinfo/seasar-user<br></div></div></div>
</body>
</html>