RE: tomcat 3.3b1 performance
Hi Yes , on first access. After precompiling my JSPs, there is still lag time when I first access the page. However, whenever I make changes to my JSP page and recompile it, the lag time is still there. Have you experienced something similar? Cheers Aaron >>> "Ignacio J. Ortega" <[EMAIL PROTECTED]> 08/01/01 01:06pm >>> When you get this behaviour? on first access? Saludos , Ignacio J. Ortega > -----Mensaje original- > De: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Enviado el: miércoles 1 de agosto de 2001 15:06 > Para: [EMAIL PROTECTED] > Asunto: tomcat 3.3b1 performance > > > Hello > >I am using tomcat 3.3b1 .. Despite the fact that i have > precompiled my JSP pages and have appended ?jsp_compile=true > to my URLs, I am still experiencing about a minute of lag > time before the page loads. This is quite annoying, > considering when using an earlier version ( tomcat 3.1) , I > did not experience this. > > Any ideas? > > Aaron Cooper > >
tomcat 3.3b1 performance
Hello I am using tomcat 3.3b1 .. Despite the fact that i have precompiled my JSP pages and have appended ?jsp_compile=true to my URLs, I am still experiencing about a minute of lag time before the page loads. This is quite annoying, considering when using an earlier version ( tomcat 3.1) , I did not experience this. Any ideas? Aaron Cooper
Servlet Mapping
Hi Folks I am using tomcat 3.3 b1. I have the following in my web.xml file. tester2 tester2 tester2 /tester2 However, the page doesnt load, as it cannot find the class. It says cannot find "jsp/tester2". My tester2.jsp page is under a directory called /jsp, but my compiled file and class file is under /WEB-INF/classes. I also tried to put this in my apps-myWebApp.xml file but no luck. Does anybody have any ideas? I think I am just making a silly mistake and there is an easy fix. Aaron
apache -> tomcat
Hi folks i'm using apache 1.3 and tomcat 3.3. apache is working fine, and tomcat is working great.. as standalone. however, apache doesnt seem to be sending the servlet requests to tomcat. I've checked the errror_log from apache, and found the following: [error] Cannot remove module mod_jk.c: not found in module list Would this have anything to do with the above mentioned problem? Any ideas on why apache may not be sending the requests to tomcat? the /examples directory isnt even showing up. Cheers Aaron
Apxs problem
HI folks I re-installed the apache web server , building it from source. Now I am trying to configure tomcat with apache using the mod_jk web adapter. However, when I run apxs, it produces the following message: gcc -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -fpic -DSHARED_CORE - DSHARED_MODULE -I/usr/local/apache/include -I../common -I/opt/java1.2/include -I /opt/java1.2/include/hp-ux -DHPUX11GCC -c ../common/jk_ajp12_worker.c apxs:Break: Command failed with rc=255 Error with apxs I've read the mod_jk howto website, and it says to rebuild the apache web server from source... but that is what I just finished doing :) Any ideas? Cheers Aaron
RE: Apxs
hi Michael, I did change that the the proper directory, but it's still not finding the packages :( >>> "Nance, Michael" <[EMAIL PROTECTED]> 07/25/01 03:38pm >>> I found that the apxs command has a "hard coded" path. If the apache directory is different you may have to update it. edit the apxs and make sure it is correct. -Original Message- From: Aaron Cooper [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 10:28 AM To: [EMAIL PROTECTED] Subject: Apxs hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
Apxs
hi folks I am trying to configure tomcat3.3b1 with apache. however, whenever I run the build-hpux.sh script, it produces the following error messages relating to the apxs script: /opt/apache/bin/apxs[66]: require: not found /opt/apache/bin/apxs[67]: use: not found /opt/apache/bin/apxs[68]: package: not found /opt/apache/bin/apxs[69]: Syntax error at line 74: '(' is not expected. I have not modified apxs at all. Has anyone else encountered these difficulties? i've searched my directory structure for the packages, and they are not found. Aaron
RE: Please HELP / W A R N I N G: LoadModule order
Hi Yes I believe at the top of httpd.conf, it is written that the order in which the modules are loaded is very important. Cheers Aaron >>> Loïc Lefèvre <[EMAIL PROTECTED]> 07/25/01 10:29am >>> Phew I've got on problem resolved (or partially resolved). It seems that the order of the LoadModule command in httpd.conf is very important !!! When I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so Tomcat receive my request but when I put: LoadModule jk_module modules/mod_jk.dll LoadModule rewrite_module modules/mod_rewrite.so nothing appears ! How strange isn't it ? Loïc Lefèvre -Message d'origine- De : Loïc Lefèvre [mailto:[EMAIL PROTECTED]] Envoyé : mercredi 25 juillet 2001 15:10 À : Mailing List Tomcat Objet : Please HELP Hello, I've got the following problem: (please don't stop reading :) ) in the file mod_jk.conf: NameVirtualHost 127.0.0.1 ServerName win.fivia.com DocumentRoot d:/Tomcat/jakarta-tomcat-3.2.3/webapps/adfront JkMount /*.jsp ajp12 JkMount /adfront/* ajp12 RedirectMatch /index.html $1/start/index.html ErrorLog d:/Tomcat/log/loic_error_html.log TransferLog d:/Tomcat/log/loic_access_html.log RewriteEngine on RewriteLog d:/Tomcat/log/loic_rewrite.log RewriteLogLevel 9 RewriteCond %{REQUEST_URI} ^/servlet* [NC] # => RewriteRule ^/servlet/(.*) /adfront/$1 [PT] RewriteCond %{REQUEST_URI} !^/adfront* [NC] RewriteCond %{REQUEST_URI} !^/Image* [NC] RewriteCond %{REQUEST_URI} !^/Elemtech* [NC] RewriteCond %{REQUEST_URI} !^/Erreur* [NC] RewriteCond %{REQUEST_URI} ^/.*/.* # => RewriteRule ^/(.*) /adfront/AdFront?access=/$1 [PT,QSA] then when I try to access http://win.fivia.com/ The module mod_rewrite transforms the uri into: http://win.fivia.com/start/index.html logs: (2) init rewrite engine with requested uri / (3) applying pattern '^/servlet/(.*)' to uri '/' (3) applying pattern '^/(.*)' to uri '/' (4) RewriteCond: input='/' pattern='!^/adfront*' => matched (4) RewriteCond: input='/' pattern='!^/Image*' => matched (4) RewriteCond: input='/' pattern='!^/Elemtech*' => matched (4) RewriteCond: input='/' pattern='!^/Erreur*' => matched (4) RewriteCond: input='/' pattern='^/.*/.*' => not-matched (1) pass through / (2) init rewrite engine with requested uri /index.html (3) applying pattern '^/servlet/(.*)' to uri '/index.html' (3) applying pattern '^/(.*)' to uri '/index.html' (4) RewriteCond: input='/index.html' pattern='!^/adfront*' => matched (4) RewriteCond: input='/index.html' pattern='!^/Image*' => matched (4) RewriteCond: input='/index.html' pattern='!^/Elemtech*' => matched (4) RewriteCond: input='/index.html' pattern='!^/Erreur*' => matched (4) RewriteCond: input='/index.html' pattern='^/.*/.*' => not-matched (1) pass through /index.html (2) init rewrite engine with requested uri /start/index.html (3) applying pattern '^/servlet/(.*)' to uri '/start/index.html' (3) applying pattern '^/(.*)' to uri '/start/index.html' (4) RewriteCond: input='/start/index.html' pattern='!^/adfront*' => matched (4) RewriteCond: input='/start/index.html' pattern='!^/Image*' => matched (4) RewriteCond: input='/start/index.html' pattern='!^/Elemtech*' => matched (4) RewriteCond: input='/start/index.html' pattern='!^/Erreur*' => matched (4) RewriteCond: input='/start/index.html' pattern='^/.*/.*' => matched (2) rewrite /start/index.html -> /adfront/AdFront?access=/start/index.html (3) split uri=/adfront/AdFront?access=/start/index.html -> uri=/adfront/AdFront, args=access=/start/index.html (2) forcing '/adfront/AdFront' to get passed through to next API URI-to-filename handler and then the requested uri is: http://win.fivia.com/adfront/AdFront?access=/start/index.html BUT it does nothing (tomcat receive NO request). And when I try manually to access http://win.fivia.com/adfront/AdFront?access=/start/index.html Tomcat receive and process the uri What's the problem ??? Please HELP Loïc Lefèvre
RE: help please!
Yup, I have checked that. I inserted that in the file. I'm going to have a look at the HowTo again. >>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:45pm >>> I'm going to take another shot at it ;-) Check your JkMounts and make sure that there are some for /baseball. mod_jk.conf-auto or whatever you changed it to. Chris > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 3:37 PM > To: [EMAIL PROTECTED] > Subject: RE: help please! > > > hi Andrew > >I thought that might be the case, but why would I be able > to view the /examples directory from my PC if it were not > configured correctly? > > Because of that, I thought it was configured properly. > > >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>> > Aaron Cooper wrote: > > when I try http://localhost/baseball from my UNIX box, it says > > "Not Found" > > OK, now we're getting somewhere. Apache is not configured correctly > to forward JSP requests off to Tomcat. See if this helps: > http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache- > howto.html > > -- Andrew > >
RE: help please!
hi Andrew I thought that might be the case, but why would I be able to view the /examples directory from my PC if it were not configured correctly? Because of that, I thought it was configured properly. >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:38pm >>> Aaron Cooper wrote: > when I try http://localhost/baseball from my UNIX box, it says > "Not Found" OK, now we're getting somewhere. Apache is not configured correctly to forward JSP requests off to Tomcat. See if this helps: http://jakarta.apache.org/tomcat/tomcat-3.2-doc/tomcat-apache-howto.html -- Andrew
RE: help please!
when I try http://localhost/baseball from my UNIX box, it says "Not Found" >>> Andrew Inggs <[EMAIL PROTECTED]> 07/24/01 04:24pm >>> Aaron Cooper wrote: >I am running apache/tomcat on a UNIX server, and I am > trying to access the page from my PC. I can access the > pages just fine by http://localhost:8080/baseball/ on the > UNIX box, but when I type > http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my > PC, it does not show up, however, /examples in the above > URL works. Hang on, what happened to the :8080? What happens when you try http://localhost/baseball/ from the UNIX box? -- Andrew
RE: help please!
Hi Chris I am running apache/tomcat on a UNIX server, and I am trying to access the page from my PC. I can access the pages just fine by http://localhost:8080/baseball/ on the UNIX box, but when I type http://istest-vac.acc.gc.ca/baseball/baseball.jsp from my PC, it does not show up, however, /examples in the above URL works. I do not believe it is a case sensitivity problem here. I've checked that. Thanks for the reply :) Aaron >>> "Chris McNeilly" <[EMAIL PROTECTED]> 07/24/01 04:08pm >>> Aaron, Are you running apache/tomcat on your PC? We had this problem before and it turned out to be a case problem on the directories. The PC ignores case while UNIX is case-sensitive. We had Web-Inf instead of WEB-INF. Chris > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 1:41 PM > To: [EMAIL PROTECTED] > Subject: help please! > > > Hi > >I've checked documentation and have tried things already > suggested, but still without success. Does anyone know where > I could go to get information or give me some help? > >I have placed a /baseball under /webapps. When I type in > http://localhost:8080/baseball from my UNIX workstation, it > works fine. However, when I type the URL/baseball from my > PC, it cannot find the directory. Apache came already set up > with tomcat, I do not understand why it wont show from my PC, > when the /examples directory shows perfectly finr from my PC. > > Any help greatly appreciated. > > Aaron > >
Re: help please!
i've tried that John :) I'll still plug away at it :) Thanks for the reply. >>> John Hebert <[EMAIL PROTECTED]> 07/24/01 03:54pm >>> Aaron Cooper wrote: > Hi > >I've checked documentation and have tried things already suggested, but still >without success. Does anyone know where I could go to get information or give me some >help? > >I have placed a /baseball under /webapps. When I type in >http://localhost:8080/baseball from my UNIX workstation, it works fine. However, >when I type the URL/baseball from my PC, it cannot find the directory. Apache came >already set up with tomcat, I do not understand why it wont show from my PC, when the >/examples directory shows perfectly finr from my PC. Hmmm. Make sure your browser cache is clean. What you are doesn't seem like it should work. -- John Alex Hebert [EMAIL PROTECTED] System Engineer
help please!
Hi I've checked documentation and have tried things already suggested, but still without success. Does anyone know where I could go to get information or give me some help? I have placed a /baseball under /webapps. When I type in http://localhost:8080/baseball from my UNIX workstation, it works fine. However, when I type the URL/baseball from my PC, it cannot find the directory. Apache came already set up with tomcat, I do not understand why it wont show from my PC, when the /examples directory shows perfectly finr from my PC. Any help greatly appreciated. Aaron
RE: tomcat 3.2.3 configuration
Hi William Thanks for your reply. I appreciate it a lot. Ok, I will try what you suggested. However, I do not have any servlets in my application, just JSP pages. That being said, is it necessary for me to define a servlet mapping? Also, when I try http://localhost:8080/servlet/baseball, it still cannot find the directory. I've been following the examples I've seen to a tea, yet unsuccessful. Aren't computers fun :) I'll check out the URL you gave too. Cheers Aaron >>> William Kaufman <[EMAIL PROTECTED]> 07/24/01 12:18pm >>> It should be http://localhost:8080/servlet/baseball ^^^ If you want to use http://localhost:8080/baseball you'll need to define your own web.xml, aliasing your servlet to "/baseball" like, cut here BaseballServlet baseball BaseballServlet /baseball cut here For more information, read the JSDK spec, at http://java.sun.com/products/servlet/download.html -- Bill K. > -Original Message- > From: Aaron Cooper [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, July 24, 2001 7:59 AM > To: [EMAIL PROTECTED] > Subject: tomcat 3.2.3 configuration > > > Hi folks > >I am really stumped here and am wondering if someone can > lend a helping hand. I want to create my own web > application. From what I have read, if I put a directory > under /webapps, tomcat will automatically add that directory > to its web applications using ContextManager. > > I created a /baseball directory under /webapps, however, > whenever I type in > http://localhost:8080/baseball, it does not find the > directory. So, I went and changed server.xml and added the > > . But that also did not work :) > > Is there something I am doing wrong here? I've noticed in the > /webapps directory there exists .war files... do I need to do > create a war file? if so, how? > > Any help would be greatly appreciated! > > thanks! > > Aaron Cooper >
tomcat 3.2.3 configuration
Hi folks I am really stumped here and am wondering if someone can lend a helping hand. I want to create my own web application. From what I have read, if I put a directory under /webapps, tomcat will automatically add that directory to its web applications using ContextManager. I created a /baseball directory under /webapps, however, whenever I type in http://localhost:8080/baseball, it does not find the directory. So, I went and changed server.xml and added the . But that also did not work :) Is there something I am doing wrong here? I've noticed in the /webapps directory there exists .war files... do I need to do create a war file? if so, how? Any help would be greatly appreciated! thanks! Aaron Cooper
Enterprise JavaBeans support?
Hello I have been checking the online documentation but I have not found the answer I am looking for. I know that Tomcat support JavaBeans, but does it support EJB? Thanks Aaron