The following error occurs during the first execution:
[Info] tilesrequestprocessor-tiles definition factory found for request processor ''.
[Info] propertymessageresources-initializing, Config = 'org. Apache. Struts. Actions. localstrings ', returnnull = true
[Info] showaction-avatarcomposite start...
[Error] dispatchaction-Dispatch [/showaction] To method avatarcomposite returned an exception <java. Lang. Reflect. invocationtargetexception> JAVA. Lang. Reflect. invocationtargetexception
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 324)
At org. Apache. Struts. Actions. dispatchaction. dispatchmethod (dispatchaction. Java: 280)
At org.apache.struts.actions.dispatchaction.exe cute (dispatchaction. Java: 216)
At org. Apache. Struts. Action. requestprocessor. processactionperform (requestprocessor. Java: 484)
At org. Apache. Struts. Action. requestprocessor. Process (requestprocessor. Java: 274)
At org. Apache. Struts. Action. actionservlet. Process (actionservlet. Java: 1482)
At org. Apache. Struts. Action. actionservlet. doget (actionservlet. Java: 507)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 689)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 802)
At org. Apache. Catalina. Core. applicationfilterchain. internaldofilter (applicationfilterchain. Java: 237)
At org. Apache. Catalina. Core. applicationfilterchain. dofilter (applicationfilterchain. Java: 157)
At org. Apache. Catalina. Core. standardwrappervalve. Invoke (standardwrappervalve. Java: 214)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardcontextvalve. invokeinternal (standardcontextvalve. Java: 198)
At org. Apache. Catalina. Core. standardcontextvalve. Invoke (standardcontextvalve. Java: 152)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardhostvalve. Invoke (standardhostvalve. Java: 137)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Valves. errorreportvalve. Invoke (errorreportvalve. Java: 117)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 102)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardenginevalve. Invoke (standardenginevalve. Java: 109)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. containerbase. Invoke (containerbase. Java: 929)
At org. Apache. Coyote. tomcat5.coyoteadapter. Service (coyoteadapter. Java: 160)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 799)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. processconnection (http11protocol. Java: 705)
At org.apache.tomcat.util.net. tcpworkerthread. Runit (pooltcpendpoint. Java: 577)
At org. Apache. tomcat. util. threads. threadpool $ controlrunnable. Run (threadpool. Java: 683)
At java. Lang. thread. Run (thread. Java: 534)
Caused by: Java. Lang. unsatisfiedlinkerror: No
JmagickIn Java. Library. Path
At java. Lang. classloader. loadlibrary (classloader. Java: 1491)
At java. Lang. runtime. loadlibrary0 (runtime. Java: 788)
At java. Lang. system. loadlibrary (system. Java: 834)
At magick. magick. <clinit> (magick. Java: 38)
At com. homygame.
Jmagick. Gifcomposite. Composite (gifcomposite. Java: 27)
At com. homygame. Show. showaction. avatarcomposite (showaction. Java: 259)
... 36 More
An error occurred when refreshing:
[Info] showaction-avatarcomposite start...
[Error] dispatchaction-Dispatch [/showaction] To method avatarcomposite returned an exception <java. Lang. Reflect. invocationtargetexception> JAVA. Lang. Reflect. invocationtargetexception
At sun. Reflect. nativemethodaccessorimpl. invoke0 (native method)
At sun. Reflect. nativemethodaccessorimpl. Invoke (nativemethodaccessorimpl. Java: 39)
At sun. Reflect. delegatingmethodaccessorimpl. Invoke (delegatingmethodaccessorimpl. Java: 25)
At java. Lang. Reflect. method. Invoke (method. Java: 324)
At org. Apache. Struts. Actions. dispatchaction. dispatchmethod (dispatchaction. Java: 280)
At org.apache.struts.actions.dispatchaction.exe cute (dispatchaction. Java: 216)
At org. Apache. Struts. Action. requestprocessor. processactionperform (requestprocessor. Java: 484)
At org. Apache. Struts. Action. requestprocessor. Process (requestprocessor. Java: 274)
At org. Apache. Struts. Action. actionservlet. Process (actionservlet. Java: 1482)
At org. Apache. Struts. Action. actionservlet. doget (actionservlet. Java: 507)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 689)
At javax. servlet. http. httpservlet. Service (httpservlet. Java: 802)
At org. Apache. Catalina. Core. applicationfilterchain. internaldofilter (applicationfilterchain. Java: 237)
At org. Apache. Catalina. Core. applicationfilterchain. dofilter (applicationfilterchain. Java: 157)
At org. Apache. Catalina. Core. standardwrappervalve. Invoke (standardwrappervalve. Java: 214)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardcontextvalve. invokeinternal (standardcontextvalve. Java: 198)
At org. Apache. Catalina. Core. standardcontextvalve. Invoke (standardcontextvalve. Java: 152)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardhostvalve. Invoke (standardhostvalve. Java: 137)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Valves. errorreportvalve. Invoke (errorreportvalve. Java: 117)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 102)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. standardenginevalve. Invoke (standardenginevalve. Java: 109)
At org. Apache. Catalina. Core. standardvalvecontext. invokenext (standardvalvecontext. Java: 104)
At org. Apache. Catalina. Core. standardpipeline. Invoke (standardpipeline. Java: 520)
At org. Apache. Catalina. Core. containerbase. Invoke (containerbase. Java: 929)
At org. Apache. Coyote. tomcat5.coyoteadapter. Service (coyoteadapter. Java: 160)
At org. Apache. Coyote. http11.http11processor. Process (http11processor. Java: 799)
At org. Apache. Coyote. http11.http11protocol $ http11connectionhandler. processconnection (http11protocol. Java: 705)
At org.apache.tomcat.util.net. tcpworkerthread. Runit (pooltcpendpoint. Java: 577)
At org. Apache. tomcat. util. threads. threadpool $ controlrunnable. Run (threadpool. Java: 683)
At java. Lang. thread. Run (thread. Java: 534)
Caused by: Java. Lang. noclassdeffounderror
At com. homygame.Jmagick. Gifcomposite. Composite (gifcomposite. Java: 27)
At com. homygame. Show. showaction. avatarcomposite (showaction. Java: 259)
... 36 More
Solution:
Later, it was found that this error was generated by running a web application in eclipse, but this problem does not occur when running Tomcat separately. Therefore, it is determined that the problem is caused by Tomcat configuration in myeclipse:
Window> preference> myeclipse> application servers> Tomcat 5> paths: append to library path
Click Add dir to add C:/Windows/system32 (here isJmagick. Dll storage path, should be installed for usJmagickTheJmagick. Dll is copied to the C:/Windows/system32 directory, so add C:/Windows/system32 here)