Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Java API change in MT 4.1.2?
jfincke
I just upgraded to 4.1.2 and now my custom processor is throwing this error. It's based on skeleton code I downloaded from the support site for Java plugins. Here's the relevant bit of the stacktrace:
java.lang.NoClassDefFoundError: com/interwoven/icm/mtparser/Attribute
at com.interwoven.metatagger.plugin.MTRunPlugin.main(MTRunPlugin.java:29)
The wierd thing is that line 29 doesn't reference Attribute, it only references MTPluginUtils, which is in the same jar file.
Anyway, here's the rest of the stack trace:
Root cause:
java.lang.Exception: [SERVER] CLT processor Error --- c:\interwoven\metatagger\private\java\bin\java.exe -DDB_HOME=c:\interwoven\metatagger\conf -jar c:\interwoven\metatagger\lib\mtplugin.jar "C:\Interwoven\MetaTagger\conf\processors\CLT\extract-pmo-topics.jpi" -facet "PMO Systems and Topics" -crackedText "C:\Interwoven\MetaTagger\conf\tmp\221621744648" -originalText "C:\Interwoven\MetaTagger\conf\tmp\tmp_17854128"
CLT processor msg:
Exception in thread "main" java.lang.NoClassDefFoundError: com/interwoven/icm/mtparser/Attribute
at com.interwoven.metatagger.plugin.MTRunPlugin.main(MTRunPlugin.java:29)
at com.interwoven.icm.mtclient.MetaTaggerClient.send(MetaTaggerClient.java:682)
at com.interwoven.icm.mtclient.MetaTaggerClient.processContent(MetaTaggerClient.java:524)
at com.interwoven.icm.metatagger.Metatagger.suggestCategory(Metatagger.java:558)
at com.interwoven.icm.datacapture.BackendAdaptor.getSuggestion(BackendAdaptor.java:280)
at com.interwoven.icm.datacapture.FileProperties.resuggestMD(FileProperties.java:309)
at org.apache.jsp.metadata.taggerui.SingleEditContent_jsp.ProcessOp(SingleEditContent_jsp.java:1614)
at org.apache.jsp.metadata.taggerui.SingleEditContent_jsp._jspService(SingleEditContent_jsp.java:2216)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:334)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.impl.auth.AuthenticationFilter.doFilter(AuthenticationFilter.java:204)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at com.interwoven.ui.base.util.SetRequestEncodingFilter.doFilter(SetRequestEncodingFilter.java:105)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Thread.java:595)
Find more posts tagged with
Comments
Migrateduser
With 4.1.2 the iw-mt.jar which was shipping for previous versions of MT was re-organized into different jars:
(1) iwmt-api.jar
(2) iwmt-ciadmin.jar
(3) iwmt-civiewer.jar
(4) iwmt-clt.jar
(5) iwmt-studio.jar
can you please check that you have the iwmt-api.jar in your classpath
jfincke
It was the classpath, the tricky part was figuring out where the classpath was specified
A note to anybody else that's using the supporting code for the "cooking with plugins" online course: the classpath is specified in the manifest.mf of the mtplugins.jar file.