<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>&gt;Eclipseのビルド設定でクラスパスに通しただけで、<br>&gt;Tomcatからも見えるようになるとは限りません。<br>&gt;WEB-INF/libにPOIのJarを配置しているか、確認を<br>&gt;してみてください。</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>&nbsp;<a href="mailto:koichik@improvement.jp" target="_parent">Koichi Kobayashi</a><br><b>送信日時:</b>&nbsp;‎2013‎年‎12‎月‎14‎日 ‎土曜日 ‎18‎:‎06<br><b>宛先:</b>&nbsp;<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>&gt; 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, &lt;shigeaga@gmail.com&gt; wrote:<br><br>&gt; <br>&gt; 大変申し訳ありません、件名を入れ忘れました。<br>&gt; <br>&gt; 再度送信します。<br>&gt; <br>&gt; <br>&gt; 阿形と申します。よろしくお願いいたします。<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 現在、Teeda1.0.13-sp11&nbsp; POI 3.9 にてシステムの開発を行っております。<br>&gt; <br>&gt; 問題についてですが、HSSFWorkbookが無い(office2003用)<br>&gt; <br>&gt; Fontが無い(Office2007以降)<br>&gt; <br>&gt; というエラーが発生しています。<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; エラーはTeeda側なのかPOI側なのか切り分けと対策ができないで<br>&gt; <br>&gt; います。POIはEclipse4.2でクラスパスも通っています。<br>&gt; <br>&gt; import文にもエラーは出ていません。<br>&gt; <br>&gt; <br>&gt; <br>&gt; 場違いな質問で申し訳ありません。ご教示の程よろしくお願いいたします。<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; 開発環境<br>&gt; Oracle11g&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Windows8.1<br>&gt; JDK 1.7<br>&gt; Tomcat 6.0<br>&gt; Eclipse 4.2<br>&gt; <br>&gt; POI 3.9<br>&gt; <br>&gt; Teeda 1.0.13-sp11 <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; コード<br>&gt; <br>&gt; import org.apache.poi.hssf.usermodel.HSSFCell;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFCellStyle;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFClientAnchor;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFDataFormat;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFFont;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFPatriarch;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFPicture;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFRow;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFSheet;<br>&gt; import org.apache.poi.hssf.usermodel.HSSFWorkbook;<br>&gt; import org.apache.poi.ss.usermodel.IndexedColors;<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; import org.seasar.framework.container.annotation.tiger.Component;<br>&gt; import org.seasar.framework.container.annotation.tiger.InstanceType;<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; import equipment.system.web.emtbl.AbstractEmtblPage;<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; @Component(instance = InstanceType.SINGLETON)<br>&gt; public class&nbsp; CreateDateMarkService extends AbstractEmtblPage{ <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; public void getReportHozen(){<br>&gt;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp; final String EXCEL_FOLDER = "C:\\Users\\";<br>&gt;&nbsp;&nbsp; final String EXCEL_FILE = "設備保全報告書(FH-1-111改01).xls";<br>&gt;&nbsp;&nbsp; final String EXCEL_SHEET = "原紙"; <br>&gt;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp; HSSFWorkbook wb = null;<br>&gt;&nbsp;&nbsp; <br>&gt;&nbsp;&nbsp; try {<br>&gt;&nbsp;&nbsp;&nbsp; wb = new HSSFWorkbook(new FileInputStream(EXCEL_FOLDER + EXCEL_FILE));<br>&gt;&nbsp;&nbsp; } catch (FileNotFoundException e1 ){<br>&gt;&nbsp;&nbsp;&nbsp; e1.printStackTrace();<br>&gt;&nbsp;&nbsp; } catch (IOException e1) {<br>&gt;&nbsp;&nbsp;&nbsp; e1.printStackTrace();<br>&gt;&nbsp;&nbsp; }<br>&gt; <br>&gt;&nbsp; HSSFWorkbook(new FileInputStream(EXCEL_FOLDER + EXCEL_FILE));でエラー発生<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; ログ<br>&gt; <br>&gt; 2013-12-14 00:35:53,595 [http-8080-1] DEBUG org.seasar.framework.aop.interceptors.TraceInterceptor - BEGIN equipment.system.service.CreateDateMarkService#getReportHozen()<br>&gt; 2013-12-14 00:35:53,595 [http-8080-1] DEBUG org.seasar.extension.jta.TransactionImpl - トランザクションを開始しました。tx=[FormatId=4360, GlobalId=1386945555842/255, BranchId=]<br>&gt; 2013-12-14 00:36:11,375 [http-8080-1] DEBUG org.seasar.extension.jta.TransactionImpl - トランザクションをロールバックしました。tx=[FormatId=4360, GlobalId=1386945555842/255, BranchId=]<br>&gt; 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>&gt; 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>&gt; 2013-12-14 00:36:11,392 [http-8080-1] DEBUG org.seasar.teeda.extension.util.TeedaExtensionErrorPageManagerImpl - org/apache/poi/hssf/usermodel/HSSFWorkbook<br>&gt; java.lang.NoClassDefFoundError: org/apache/poi/hssf/usermodel/HSSFWorkbook<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService.getReportHozen(CreateDateMarkService.java:153)<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.$$getReportHozen$$invokeSuperMethod$$(CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.java)<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)<br>&gt;&nbsp; at org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)<br>&gt;&nbsp; at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:50)<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1$$MethodInvocation$$getReportHozen1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at equipment.system.service.CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.getReportHozen(CreateDateMarkService$$EnhancedByS2AOP$$4baf02a1.java)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage.doOnceCreateDatemark(EmtblStampPage.java:50)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4.$$doOnceCreateDatemark$$invokeSuperMethod$$(EmtblStampPage$$EnhancedByS2AOP$$669579a4.java)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:79)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4$$MethodInvocation$$doOnceCreateDatemark1.proceed(MethodInvocationClassGenerator.java)<br>&gt;&nbsp; at equipment.system.web.emtbl.EmtblStampPage$$EnhancedByS2AOP$$669579a4.doOnceCreateDatemark(EmtblStampPage$$EnhancedByS2AOP$$669579a4.java)<br>&gt;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>&gt;&nbsp; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)<br>&gt;&nbsp; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)<br>&gt;&nbsp; at java.lang.reflect.Method.invoke(Method.java:601)<br>&gt;&nbsp; at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:96)<br>&gt;&nbsp; at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:218)<br>&gt;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:163)<br>&gt;&nbsp; at org.seasar.teeda.extension.html.impl.HtmlActionListener.processAction(HtmlActionListener.java:71)<br>&gt;&nbsp; at javax.faces.component.UICommand.broadcast(UICommand.java:149)<br>&gt;&nbsp; at org.seasar.teeda.extension.component.html.THtmlCommandButton.broadcast(THtmlCommandButton.java:78)<br>&gt;&nbsp; at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:192)<br>&gt;&nbsp; at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:117)<br>&gt;&nbsp; at org.seasar.teeda.core.lifecycle.impl.InvokeApplicationPhase.executePhase(InvokeApplicationPhase.java:29)<br>&gt;&nbsp; at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)<br>&gt;&nbsp; at org.seasar.teeda.core.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:97)<br>&gt;&nbsp; at javax.faces.webapp.FacesServlet.service(FacesServlet.java:100)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&gt;&nbsp; at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:79)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&gt;&nbsp; at org.seasar.framework.container.hotdeploy.HotdeployFilter.doHotdeployFilter(HotdeployFilter.java:99)<br>&gt;&nbsp; at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:67)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&gt;&nbsp; at org.seasar.teeda.extension.filter.MultipartFormDataFilter.doFilter(MultipartFormDataFilter.java:83)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&gt;&nbsp; at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)<br>&gt;&nbsp; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)<br>&gt;&nbsp; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)<br>&gt;&nbsp; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)<br>&gt;&nbsp; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)<br>&gt;&nbsp; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:103)<br>&gt;&nbsp; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)<br>&gt;&nbsp; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)<br>&gt;&nbsp; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:861)<br>&gt;&nbsp; at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:606)<br>&gt;&nbsp; at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)<br>&gt;&nbsp; at java.lang.Thread.run(Thread.java:722)<br>&gt; Caused by: java.lang.ClassNotFoundException: org.apache.poi.hssf.usermodel.HSSFWorkbook<br>&gt;&nbsp; at java.lang.ClassLoader.findClass(ClassLoader.java:522)<br>&gt;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:423)<br>&gt;&nbsp; at org.seasar.framework.container.hotdeploy.HotdeployClassLoader.loadClass(HotdeployClassLoader.java:76)<br>&gt;&nbsp; at java.lang.ClassLoader.loadClass(ClassLoader.java:356)<br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; <br>&gt; Windows メール から送信<br><br><br>-- <br>{<br>&nbsp; name: "Koichi Kobayashi",<br>&nbsp; mail: "koichik@improvement.jp",<br>&nbsp; blog: "http://d.hatena.ne.jp/koichik/",<br>&nbsp; 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>