Re: Struts with Tomcat and Apache
Am Samstag, 10. April 2004 15:30 schrieb Paul Thomas: > I supect that you're trying to use the old mod_jk connector. Try mod_jk2 > instead. No, I use mod_jk2. The connection between Tomcat and Apache works now. But the next problem is that I get an error when trying to access the struts example apps (e.g. struts-blank): exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:290) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) org.apache.jasper.compiler.Parser.parse(Parser.java:171) org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Did I miss anything? Do I have to install anything else for being able to try the example apps? Best regards, Ralf. -- ## Ralf Schneider ## Software Engineering - IT & Research ## Fürstenallee 14, 34454 Bad Arolsen ## www.rs-soft-eng.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
On Saturday 10 April 2004 19:36, Michael McGrady wrote: Well, after downloading the binaries, for me it was nearly kind of out-of the box, after having worried a lot of time with the tomcat-connectors package shipped with SuSE 9.0 (which obviously doesn't work with TC5). The only thing I finally had to do was to adapt the settings in the $TOMCAT_HOME/conf/jk.properties file and map the Tomcat paths in /etc/apache2/workers2.properties (paths are SuSE specific; RedHat | Fedora uses a slightly different scheme). Can't tell about Windows or other environments, but it was much easier than I had thought in the end (after having spent considerable time at the 'not-working-another-time-for-mysterious- reasons' stage). I know it's possible to auto-start Tomcat from the Apache service, but for me, that's something like Advanced Voodoo I'm not capable of. Still, I can start both of them separately via init.d scripts (Tomcat first, then Apache, runlevels 3 | 5), IIRC without having to set any System properties first and even without changing the scripts at all. But well then: as we're OT anyway - does anyone around here (who notably even spends the Easter weekend with technical issues - just like me :-) have a fitting mod_rewrite rule at hand that just does the following: 1. Map .do and .jsp to .html to the outside world, in particular to search engines? What I mean is: calling index.html transparently invokes index.jsp and so on, 2. and possibly even maps parameters to a HTML-friendly structure, so that s/th like /dispatcher.do?firstparam=1&secondparam=2 ends up in something like /dispatcher/1/2/ ? I know it's possible with mod_rewrite, but all this regex stuff seems to be that long gone it just makes me feel dizzy having to remember it these days. -- Chris. > Not sure what you have done, but I had to get an outside startup > script to get things going. I suspect you are running into the same > difficulty. I like to run the application without using System to > set the environmental variables, so that may be a different thing > than you face. > > At 06:30 AM 4/10/2004, you wrote: > >On 09/04/2004 20:55 Ralf Schneider wrote: > >>Hi, > >>I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat > >> 5.0.16 and > >>Apache 2.0.48. The documentation only talks about Tomcat 3.x. > >>My first try was to follow these instructions for Tomcat 3.2.1. I > >> copied the > >>war files included with the binary distribution into the webapps > >>directory of > >>my Tomcat installation. Then I restarted Tomcat, but the file > >>tomcat-apache.conf is not generate as described in the docs. > >>So, I assume the installation works a bit different with these > >> newer versions, > >>but how? I that described anywhere? And if yes, where? > >>Any hint would be apreciated, > >>Ralf. > > > >I supect that you're trying to use the old mod_jk connector. Try > > mod_jk2 instead. > > > >-- > >Paul Thomas > >+--+ > >-+ > > > >| Thomas Micro Systems Limited | Software Solutions for Business > >| | Computer Consultants | > >| http://www.thomas-micro-systems-ltd.co.uk | > > > >+--+ > >-+ > > > > > >- To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
Not sure what you have done, but I had to get an outside startup script to get things going. I suspect you are running into the same difficulty. I like to run the application without using System to set the environmental variables, so that may be a different thing than you face. At 06:30 AM 4/10/2004, you wrote: On 09/04/2004 20:55 Ralf Schneider wrote: Hi, I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The documentation only talks about Tomcat 3.x. My first try was to follow these instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. I supect that you're trying to use the old mod_jk connector. Try mod_jk2 instead. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
Am Samstag, 10. April 2004 15:30 schrieb Paul Thomas: > I supect that you're trying to use the old mod_jk connector. Try mod_jk2 > instead. No, I use mod_jk2. The connection between Tomcat and Apache works now. But the next problem is that I get an error when trying to access the struts example apps (e.g. struts-blank): exception javax.servlet.ServletException: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.servlet.JspServlet.service(JspServlet.java:256) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) root cause java.lang.NoSuchMethodError: javax.servlet.jsp.tagext.TagAttributeInfo.(Ljava/lang/String;ZLjava/lang/String;ZZ)V org.apache.jasper.compiler.TagLibraryInfoImpl.createAttribute(TagLibraryInfoImpl.java:572) org.apache.jasper.compiler.TagLibraryInfoImpl.createTagInfo(TagLibraryInfoImpl.java:432) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:290) org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:204) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:458) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) org.apache.jasper.compiler.Parser.parse(Parser.java:171) org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:552) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:291) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) javax.servlet.http.HttpServlet.service(HttpServlet.java:853) Did I miss anything? Do I have to install anything else for being able to try the example apps? Best regards, Ralf. -- ## Ralf Schneider ## Software Engineering - IT & Research ## Fürstenallee 14, 34454 Bad Arolsen ## www.rs-soft-eng.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
On 09/04/2004 20:55 Ralf Schneider wrote: Hi, I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The documentation only talks about Tomcat 3.x. My first try was to follow these instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. I supect that you're trying to use the old mod_jk connector. Try mod_jk2 instead. -- Paul Thomas +--+-+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +--+-+ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Struts with Tomcat and Apache
On Friday 09 April 2004 21:55, Ralf Schneider wrote: Hi, I've experimented with the same setup some time ago and found this helpful: http://cymulacrum.net/writings/tomcat5/c831.html HTH, -- Chris. NB. Luckily, there are binary versions of mod_jk2 available now, so you can skip the first part (http://www.apache.de/dist/jakarta/tomcat-connectors/jk2/binaries/) > Hi, > > I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat > 5.0.16 and Apache 2.0.48. The documentation only talks about Tomcat > 3.x. > > My first try was to follow these instructions for Tomcat 3.2.1. I > copied the war files included with the binary distribution into the > webapps directory of my Tomcat installation. Then I restarted Tomcat, > but the file tomcat-apache.conf is not generate as described in the > docs. > > So, I assume the installation works a bit different with these newer > versions, but how? I that described anywhere? And if yes, where? > > Any hint would be apreciated, > Ralf. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts with Tomcat and Apache
Hi, I'm new to Struts and I'm trying to install Struts 1.1 with Tomcat 5.0.16 and Apache 2.0.48. The documentation only talks about Tomcat 3.x. My first try was to follow these instructions for Tomcat 3.2.1. I copied the war files included with the binary distribution into the webapps directory of my Tomcat installation. Then I restarted Tomcat, but the file tomcat-apache.conf is not generate as described in the docs. So, I assume the installation works a bit different with these newer versions, but how? I that described anywhere? And if yes, where? Any hint would be apreciated, Ralf. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]