请问jsp如果调com组件,麻烦知道的大侠给个简单的例子,100分送上。
------解决方案--------------------
linux不支持windows的com。java本来就是跨平台的。你这样做有点……
------解决方案--------------------
jacob
http://topic.csdn.net/t/20050718/21/4152809.html
JCOM
http://dev.csdn.net/article/73/73339.shtm
------解决方案--------------------
org.apache.jasper.JasperException: A COM exception has been encountered:
At Invoke of: CreateThumbnail
Description: Զ³̹ý³̵÷ÓÃʧ°ܡ£
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:372)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
root cause
com.jacob.com.ComFailException: A COM exception has been encountered:
At Invoke of: CreateThumbnail
Description: Զ³̹ý³̵÷ÓÃʧ°ܡ£
com.jacob.com.Dispatch.invokev(Native Method)
com.jacob.com.Dispatch.call(Dispatch.java)
org.apache.jsp.Album.test_jsp._jspService(test_jsp.java:53)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
note The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.
以上是我用jacob来实现的,但还是出现以上问题,知道的还望指教