Todd, I just went through the install process of getting apache tomcat and struts working together. It appears that you have done every thing pretty much correct. With the exception that you don't need to modify the tomcat-apache.conf file. I believe this only needs to be done with version 3.2.1. Sooo what I would suggest is reinstalling tomcat and apache, add the JkMount /*.do ajp12 to the mod_jk.conf-auto after tomcat has started and before apache. If this works then you can play with moving it around. Then include the reference in the httpd.conf file. I hope this can be of some help.
>>> [EMAIL PROTECTED] 10/03/01 07:33AM >>> Rick, I have removed all the sub directories of the "work" directory under Tomcat and this has made no difference. I have set the jasper log to "debug" to try to see if it would shed any light on what was happening. I did the following test: 1. First I hit the standard examples provided by Tomcat to ensure that they are still working correctly and they are. 2. Hit "struts-documentation" and it worked as expected. 3. Hit the "struts-example" webapp, I got the error show below. I have included a copy the jasper.log and servlet.log for anyone's input on this. Thanks for the assistance. Regards, Todd G. Nist [EMAIL PROTECTED] <----- jasper.log -----> 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:32 - Scratch dir for the JSP engine is: D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples 2001-10-03 07:26:32 - IMPORTANT: Do not modify the generated servlets 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:32 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:33 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:35 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:36 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:26:37 - Parent class loader is: AdaptiveClassLoader( ) 2001-10-03 07:27:20 - JspEngine --> /jsp/snp/snoop.jsp 2001-10-03 07:27:20 - ServletPath: /jsp/snp/snoop.jsp 2001-10-03 07:27:20 - PathInfo: null 2001-10-03 07:27:20 - RealPath: D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp 2001-10-03 07:27:20 - RequestURI: /examples/jsp/snp/snoop.jsp 2001-10-03 07:27:20 - QueryString: null 2001-10-03 07:27:20 - Request Params: 2001-10-03 07:27:20 - Classpath according to the Servlet Engine is: D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes 2001-10-03 07:27:20 - Package name is: jsp.snp 2001-10-03 07:27:20 - Class file name is: D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00 02fsnoop_0002ejspsnoop.class 2001-10-03 07:27:20 - Java file name is: D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00 02fsnoop_0002ejspsnoop_jsp_0.java 2001-10-03 07:27:20 - Class name is: _0002fjsp_0002fsnp_0002fsnoop_0002ejspsnoop_jsp_0 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(9,20) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(11,13) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(13,18) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(15,14) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(17,11) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(19,17) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(21,14) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(23,16) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(25,14) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(27,13) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(29,13) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(31,13) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(33,16) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(35,13) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(37,22) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(39,8) 2001-10-03 07:27:20 - Accepted org.apache.jasper.compiler.Parser$Expression at D:\jakarta-tomcat-3.2.3\webapps\examples\jsp\snp\snoop.jsp(41,29) 2001-10-03 07:27:20 - Compiling with: -encoding UTF8 -classpath D:\jakarta-tomcat-3.2.3\classes;D:\jakarta-tomcat-3.2.3\lib\ant.jar;D:\jakar ta-tomcat-3.2.3\lib\jasper.jar;D:\jakarta-tomcat-3.2.3\lib\jaxp.jar;D:\jakar ta-tomcat-3.2.3\lib\parser.jar;D:\jakarta-tomcat-3.2.3\lib\servlet.jar;D:\ja karta-tomcat-3.2.3\lib\webserver.jar;.;d:\applications;D:\Program Files\OpenLink\jdk1.3\opljdbc2.jar;D:\Program Files\OpenLink\jdk1.3\megathin2.jar;D:\Apache\xalan-j_2_0_0\bin\xalan.jar;D: \Apache\xalan-j_2_0_0\bin\xerces.jar;D:\Apache\xalan-j_2_0_0\bin\bsf.jar;D:\ Apache\xalan-j_2_0_0\bin;d:\applications\jdkse1.3\jre\lib\ext\mysql.jar;D:\a pplications;D:\Program Files\Progress_SonicMQ\lib;D:\Program Files\Progress_SonicMQ\lib\jndi.jar;D:\Program Files\Progress_SonicMQ\lib\gnu-regexp-1.0.6.jar;D:\Program Files\Progress_SonicMQ\lib\client.jar;D:\Program Files\Progress_SonicMQ\lib\webclient.jar;;D:\applications\jdkse1.3\lib\tools .jar;D:\jakarta-tomcat-3.2.3\webapps\examples\WEB-INF\classes;null;D:\jakart a-tomcat-3.2.3\work\localhost_8080%2Fexamples -d D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples\_0002fjsp_0002fsnp_00 02fsnoop_0002ejspsnoop_jsp_0.java 2001-10-03 07:27:39 - JspEngine --> /index.jsp 2001-10-03 07:27:39 - ServletPath: /index.jsp 2001-10-03 07:27:39 - PathInfo: null 2001-10-03 07:27:39 - RealPath: D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp 2001-10-03 07:27:39 - RequestURI: /struts-example/index.jsp 2001-10-03 07:27:39 - QueryString: null 2001-10-03 07:27:39 - Request Params: 2001-10-03 07:27:39 - Classpath according to the Servlet Engine is: D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta-to mcat-3.2.3\webapps\struts-example\WEB-INF\lib\commons-beanutils.jar;D:\jakar ta-tomcat-3.2.3\webapps\struts-example\WEB-INF\lib\commons-collections.jar;D :\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\lib\commons-digester.j ar;D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar 2001-10-03 07:27:39 - Package name is: [default package] 2001-10-03 07:27:39 - Class file name is: D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fstruts-example\_0002findex_000 2ejspindex.class 2001-10-03 07:27:39 - Java file name is: D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fstruts-example\_0002findex_000 2ejspindex_jsp_0.java 2001-10-03 07:27:39 - Class name is: _0002findex_0002ejspindex_jsp_0 2001-10-03 07:27:39 - Handling Directive: page {language=java} 2001-10-03 07:27:39 - Accepted org.apache.jasper.compiler.Parser$Directive at D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp(0,0) 2001-10-03 07:27:39 - Handling Directive: taglib {uri=/WEB-INF/struts-bean.tld, prefix=bean} 2001-10-03 07:28:18 - JspServlet.destroy() 2001-10-03 07:28:18 - JspServlet.destroy() 2001-10-03 07:28:18 - JspServlet.destroy() 2001-10-03 07:28:18 - JspServlet.destroy() 2001-10-03 07:28:18 - JspServlet.destroy() 2001-10-03 07:28:18 - JspServlet.destroy() <----- Servlet.log -----> 2001-10-03 07:26:32 - path="/examples" :jsp: init 2001-10-03 07:26:32 - path="/admin" :jsp: init 2001-10-03 07:26:32 - path="" :jsp: init 2001-10-03 07:26:32 - path="/struts-blank" :jsp: init 2001-10-03 07:26:33 - path="/struts-blank" :action: init 2001-10-03 07:26:33 - path="/struts-blank" :action: Loading application resources from resource ApplicationResources 2001-10-03 07:26:33 - path="/struts-blank" :action: Initializing configuration from resource path /WEB-INF/struts-config.xml 2001-10-03 07:26:33 - path="/struts-blank" :action: Process servletName=action, urlPattern=*.do 2001-10-03 07:26:33 - path="/struts-blank" :action: Mapping for servlet 'action' = '*.do' 2001-10-03 07:26:33 - path="/struts-documentation" :jsp: init 2001-10-03 07:26:33 - path="/struts-example" :jsp: init 2001-10-03 07:26:33 - path="/struts-example" :database: init 2001-10-03 07:26:33 - path="/struts-example" :database: Initializing database servlet 2001-10-03 07:26:33 - path="/struts-example" :database: Loading database from '/WEB-INF/database.xml' 2001-10-03 07:26:34 - path="/struts-example" :action: init 2001-10-03 07:26:34 - path="/struts-example" :action: Loading application resources from resource org.apache.struts.webapp.example.ApplicationResources 2001-10-03 07:26:34 - path="/struts-example" :action: Initializing configuration from resource path /WEB-INF/struts-config.xml 2001-10-03 07:26:35 - path="/struts-example" :action: Process servletName=action, urlPattern=*.do 2001-10-03 07:26:35 - path="/struts-example" :action: Mapping for servlet 'action' = '*.do' 2001-10-03 07:26:35 - path="/struts-exercise-taglib" :jsp: init 2001-10-03 07:26:35 - path="/struts-exercise-taglib" :action: init 2001-10-03 07:26:35 - path="/struts-exercise-taglib" :action: Initializing configuration from resource path /WEB-INF/struts-config.xml 2001-10-03 07:26:36 - path="/struts-exercise-taglib" :action: Process servletName=action, urlPattern=*.do 2001-10-03 07:26:36 - path="/struts-exercise-taglib" :action: Mapping for servlet 'action' = '*.do' 2001-10-03 07:26:36 - path="/struts-template" :jsp: init 2001-10-03 07:26:36 - path="/struts-upload" :jsp: init 2001-10-03 07:26:36 - path="/struts-upload" :action: init 2001-10-03 07:26:36 - path="/struts-upload" :action: Initializing configuration from resource path /WEB-INF/struts-config.xml 2001-10-03 07:26:37 - path="/struts-upload" :action: Process servletName=action, urlPattern=*.do 2001-10-03 07:26:37 - path="/struts-upload" :action: Mapping for servlet 'action' = '*.do' 2001-10-03 07:26:37 - path="/test" :jsp: init 2001-10-03 07:27:23 - path="/examples" :jsp: init 2001-10-03 07:28:18 - path="/struts-blank" :action: Finalizing this controller servlet 2001-10-03 07:28:18 - path="/struts-example" :action: Finalizing this controller servlet 2001-10-03 07:28:18 - path="/struts-example" :database: Finalizing database servlet -----Original Message----- From: Rick Smith [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 02, 2001 6:07 PM To: [EMAIL PROTECTED] Subject: Re: Please - a little help with "NoSuchMethodError" with Tomcat, Stru ts and Apache If the problem is with Tomcat, Struts and Apache wouldn't you delete the files in localhost and not localhost_8080? [EMAIL PROTECTED] wrote: > John, > > I tried as you suggested, but to no avail. The same error is still being > produced. Any other ideas as to where to look? > > Regards, > > Todd > > -----Original Message----- > From: John Raley [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, October 02, 2001 4:51 PM > To: [EMAIL PROTECTED] > Subject: Re: Please - a little help with "NoSuchMethodError" with > Tomcat, Stru ts and Apache > > > Try cleaning out your tomcat work directory (i.e. delete everything in > D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples). > > [EMAIL PROTECTED] wrote: > > >>I followed the instructions in the installations (tomcat-apache.conf). >>However, when I try to run an example like struts-example, I am >> > encountering > >>the below error, NoSuchMethodError. I have included the JkMount /*.do ajp12 >>in my mod_jk.conf-prod file referenced by Apache, and it appears correct. I >>have reviewed the jasper.log file and it appears as though the request is >>valid: >> >> >>2001-09-09 11:39:01 - Scratch dir for the JSP engine is: >>D:\jakarta-tomcat-3.2.3\work\localhost_8080%2Fexamples >>2001-09-09 11:39:01 - IMPORTANT: Do not modify the generated servlets >>2001-09-09 11:39:23 - JspEngine --> /index.jsp >>2001-09-09 11:39:23 - ServletPath: /index.jsp >>2001-09-09 11:39:23 - PathInfo: null >>2001-09-09 11:39:23 - RealPath: >>D:\jakarta-tomcat-3.2.3\webapps\struts-example\index.jsp >>2001-09-09 11:39:23 - RequestURI: /struts-example/index.jsp >>2001-09-09 11:39:23 - QueryString: null >>2001-09-09 11:39:23 - Request Params: >>2001-09-09 11:39:23 - Classpath according to the Servlet Engine is: >>D:\jakarta-tomcat-3.2.3\webapps\struts-example\WEB-INF\classes;D:\jakarta- t >> > o > >>mcat-3.2.3\webapps\struts-example\WEB-INF\lib\struts.jar >> >>I have no idea what is causing this error. I am running Apache 1.3.14, >>Tomcat 3.2.3, and Struts 1.0. The above seems to indicate that it is >>finding the page ok so I would have to conclude that I missed something >>somewhere during the setup, but am not sure where else to look. >> >>Any assistance is greatly appreciated. Thanks in advance. >> >>Todd G. Nist >>Email: [EMAIL PROTECTED] >> >><-------- Error Encountered --------> >>Error: 500 >>Location: /struts-example/index.jsp >>Internal Servlet Error: >> >>javax.servlet.ServletException >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) >> at >>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) >> at org.apache.tomcat.core.Handler.service(Handler.java:287) >> at >>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) >> at >>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 8 >> > 1 > >>2) >> at >>org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) >> at >>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti o >> > n > >>(Ajp12ConnectionHandler.java:166) >> at >>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) >> at >>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) >> at java.lang.Thread.run(Thread.java:484) >> >>Root cause: >>java.lang.NoSuchMethodError >> at >>org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryIn f >> > o > >>Impl.java:524) >> at >>org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfo I >> > m > >>pl.java:432) >> at >>org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl. j >> > a > >>va:385) >> at >>org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:233 ) >> at >>org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseE v >> > e > >>ntListener.java:706) >> at >>org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingLi s >> > t > >>ener.java:116) >> at >>org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:215) >> at org.apache.jasper.compiler.Parser.parse(Parser.java:1077) >> at org.apache.jasper.compiler.Parser.parse(Parser.java:1042) >> at org.apache.jasper.compiler.Parser.parse(Parser.java:1038) >> at org.apache.jasper.compiler.Compiler.compile(Compiler.java:209) >> at >>org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:612) >> at >>org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) >> at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:542) >> at >>org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Jsp S >> > e > >>rvlet.java:258) >> at >>org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet. j >> > a > >>va:268) >> at >>org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429) >> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500) >> at javax.servlet.http.HttpServlet.service(HttpServlet.java:865) >> at >>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405) >> at org.apache.tomcat.core.Handler.service(Handler.java:287) >> at >>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) >> at >>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java: 8 >> > 1 > >>2) >> at >>org.apache.tomcat.core.ContextManager.service(ContextManager.java:758) >> at >>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti o >> > n > >>(Ajp12ConnectionHandler.java:166) >> at >>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416) >> at >>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:501) >> at java.lang.Thread.run(Thread.java:484) >> >> >>The information in this electronic mail ("e-mail") message may >>be confidential and for use of only the named recipient. The >>information may be protected by privilege, work product immunity >>or other applicable law. If you are not the intended recipient >>the retention, dissemination, distribution or copying of this >>e-mail message is strictly prohibited. If you receive this e-mail >>message in error please notify us immediately by telephone >>at 770-723-1011 or [EMAIL PROTECTED] Thank you. >> >> >> > > > > > The information in this electronic mail ("e-mail") message may > be confidential and for use of only the named recipient. The > information may be protected by privilege, work product immunity > or other applicable law. If you are not the intended recipient > the retention, dissemination, distribution or copying of this > e-mail message is strictly prohibited. If you receive this e-mail > message in error please notify us immediately by telephone > at 770-723-1011 or [EMAIL PROTECTED] Thank you. > > > > The information in this electronic mail ("e-mail") message may be confidential and for use of only the named recipient. The information may be protected by privilege, work product immunity or other applicable law. If you are not the intended recipient the retention, dissemination, distribution or copying of this e-mail message is strictly prohibited. If you receive this e-mail message in error please notify us immediately by telephone at 770-723-1011 or [EMAIL PROTECTED] Thank you.