Re: jsp.error.attribute.unterminated -- WTF?
It seems like a custom tag error message. Do u use any custom tags. Antony Paul - Original Message - From: Josh G [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 12:01 PM Subject: jsp.error.attribute.unterminated -- WTF? Hi All, pulling out copious amounts of hair for this one... here's the code: % for (int i = 0; i sectionNames.length; i++ ) { % %= sectionNames[i] %_off = new Image(); %= sectionNames[i] %_off.src = image:local file=%= sectionNames[i] %_off.gif /; %= sectionNames[i] %_on = new Image(); %= sectionNames[i] %_on.src = image:local file=%= sectionNames[i] %_on.gif /; %= sectionNames[i] %_hover = new Image(); %= sectionNames[i] %_hover.src = image:local file=%= sectionNames[i] %_hover.gif /; % } % It is in some client-side javascript, and I get a jsp.error.attribute.unterminated error on a out-of-line-range character on the first line inside the loop. Uncle google has nothing to say about this, and I can't even figure out what the error means, let alone trying to decipher the problem. If I remove the lines inside the loop it works as expected. This is driving me totally nuts, any help here _much_ appreciated. Cheers, -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - 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: Apache-tomcat via mod_jk configuration
Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz openssl-0.9.7c.tar.gz mv openssl-0.9.7c /usr/local/src/ cd /usr/local/src/ ln -s /usr/local/openssl-0.9.7c openssl cd openssl-0.9.7c ./config make make test make install #This will install in /usr/local/ssl Install APACHE tar xvfz httpd-2.0.47.tar.Z cd httpd-2.0.47 ./configure --prefix=/usr/local/apache2 --enable-so --enable-rewrite \ --enable-ssl --with-ssl=/usr/local/ssl --enable-proxy make make install #(places in /usr/local/apache2) Build/Install MOD_JK Connector Build mod_jk cd /usr/local/src/jakarta-tomcat-connectors-jk-1.2.4-src/jk/native ./buildconf.sh ./configure --with-apxs=/usr/local/apache2/bin/apxs make cp apache-2.0/mod_jk.so /usr/local/apache2/modules Installs mod_jk in correct
RE: [SPAM] Re: Apache-tomcat via mod_jk configuration
Thats fine Rethat hava its own httpd that why i added in services httpd1 in /sbib/chkconfig and tomcatd but it tells that unregaconized service . what can i do that for Can i delete httpd i can start in terminal $CATALINA/bin/startup.sh but i am not able to do service httpd1 start and service tomcatd start which gives unregconzied services pls help me resolve the problem Thaking You Dhayalan Original Message Subject: [SPAM] Re: Apache-tomcat via mod_jk configuration From: Oscar Carrillo [EMAIL PROTECTED] Date: Wed, December 17, 2003 11:42 pm To: Tomcat Users List [EMAIL PROTECTED] Are you sure you meant httpd1? The daemon script on my site is httpd. The website explains a setup for Tomcat 4, not Tomcat 5. I don't know if there's any difference, but there may be. I'm also confused as you apparently didn't copy your configuration into this post, you just copied most of the contents of my web page into it. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003 [EMAIL PROTECTED] wrote: Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized for tomcat 4, I still have some questions... I will first explain the desired setup, then I will show what I have. If you gracious folks can help me set this up, I will GLADLY set up a complete HOW-TO replicating the solution on my website for all the world to see. you knows you probably get a lot of questions about this. My hope is to guide the user by the hand step by step for this complex process. I have been using Tomcat 3 for a long time with mod_jk and have been very happy, but I now need the newer features of Tomcat 4. Here's the setup (everywhere hereafter, I've replaced the actual domain names with domainname for privacy...just know that everytime you see that, its actually a domain name, and ignore the brackets Redhat Linux 9 httpd-2.0.48 / usr/loca/apache2 Java JDK 1.4.2_03 ---/usr/lcoal/java Tomcat 5.0.16 Light Edition (since I have jdk 1.4.2_03) .--/usr/local/tomcat mod_jk /usr/lcoal/src/mod_jk my question is there is httpd in linux 9 and postgresql and i installed apache and tomcat and psotgresql i added the httpd1 and tomcat in sbin/chkconfig --add httpd1 amd tomcatd by using the configuration given in http://daydream.stanford.edu/tomcat/install_web_services.html site fullythen i started the catalina_home /bin/startup.sh which was started in command line but i am not able to get test page in Browser it tells that connection refused i start by using httpd1 and tomcatd it shows that unreconized service please help to solve the problem as soon as possible Thakning You Dhayalan.G # Configure Environment Variables Edit and add the lines below to /etc/profile Make sure you logout and login for this to take effect. If you're in XWindow you might need to quit out of XWindow and exit primary shell. Then login again and start XWindow again (startx). It's really good to get this straight from the beginning. JAVA_HOME=/usr/local/java/java CATALINA_HOME=/usr/local/tomcat PATH=$JAVA_HOME/bin:$PATH:$HOME/bin:/sbin:/usr/sbin CLASSPATH=$CATALINA_HOME/bin/bootstrap.jar:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/common/lib/servlet.jar:/usr/local/pgsql/share/java/postgresql.jar:../lib/struts.jar:. Now add the PATH JAVA_HOME CATALINA_HOME CLASSPATH if any aren't in the export line export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC JAVA_HOME CATALINA_HOME CLASSPATH This will output your environment variables env Install JAVA mkdir /usr/local/java cd /usr/local/java sh j2sdk-1_4_2-linux-i586.bin The jdk directory is then extracted mv j2sdk-1.4.2 /usr/local/java ln -s j2sdk1.4.2 java Now the java directory will be in /usr/local/java/java. I do it like this so I can keep all my different JDKs/JREs in one directory and then just change the symbolic link to point to the current one. Install Jakarta TOMCAT tar xvfz jakarta-tomcat-4.1.27.tar.gz mv jakarta-tomcat-4.1.27 /usr/local/ cd /usr/local ln -s jakarta-tomcat-4.1.27 tomcat Install Jakarta ANT tar xvfz jakarta-ant-1.5.4 mv jakarta-ant-1.5.4 /usr/local cd /usr/local ln -s jakarta-ant-1.5.4 ant ln -s /usr/local/ant/bin/ant /usr/local/bin/ant Install OPENSSL tar xvfz
5.0.16 sample deploys!, one recommendation and one question
hi, i finaly got the sample to deploy. needed to change a line in the deploy task to: war=file://${dist.home}/${app.name}-${app.version}.war/ (it was just: war=file://${build.home}/). thanks to all of you who work on tomcat. the sample comes with an web/index.html that gets put in in myapp/ that i can get to work with: http://localhost:8080/myapp/. I had to change a line from: liTo a a href=helloservlet/a. to: liTo a a href=Hiservlet/a using the web.xml below. all is well, but someone might want to fix that war line and update the sample with a web.xml that dtrt. the question is: is there a way to navigate to the servlet without using the servlet mapping. iirc, you could do something like 8080/myapp/servlet/mypackage/Hello in 4.x or perhaps that was only if you were in root. does anyone know the right incantation? it would be nice to have a way to navigate directly to the servlet for sanity reasons. iirc, there is some switch in a config file somewhere that will allow this. thanks !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN http://java.sun.com/dtd/web-app_2_3.dtd; web-app display-nameHello, World Application/display-name descriptionsimple web application/description servlet servlet-nameHelloServlet/servlet-name servlet-classmypackage.Hello/servlet-class /servlet servlet-mapping servlet-nameHelloServlet/servlet-name url-pattern/Hi/url-pattern /servlet-mapping /web-app --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: using mod_rewrite with mod_jk2
Jon, I'm pretty sure you can, because I once had a problem which was fixed by swapping the order of the LoadModule statements for mod_jk2 and mod_rewrite. Not an exact answer, but hopefully some encouragement... Andy -Original Message- From: jon yeargers [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 18:01 To: [EMAIL PROTECTED] Subject: using mod_rewrite with mod_jk2 In what order do the various mod_* bits interact? Can I use mod_rewrite to setup the URL for passage to mod_jk2? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE : using mod_rewrite with mod_jk2
Hi jon, I don't use mod_jk2, but mod_jk (apache 1.3.27), and it works fine only when mod_rewrite is loaded before mod_jk in httpd.conf (for both LoadModule and AddModule directives) -Message d'origine- De : Andy Eastham [mailto:[EMAIL PROTECTED] Envoyé : mercredi 17 décembre 2003 19:59 À : 'Tomcat Users List' Objet : RE: using mod_rewrite with mod_jk2 Jon, I'm pretty sure you can, because I once had a problem which was fixed by swapping the order of the LoadModule statements for mod_jk2 and mod_rewrite. Not an exact answer, but hopefully some encouragement... Andy -Original Message- From: jon yeargers [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 18:01 To: [EMAIL PROTECTED] Subject: using mod_rewrite with mod_jk2 In what order do the various mod_* bits interact? Can I use mod_rewrite to setup the URL for passage to mod_jk2? - 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]
[Tomcat Admin user name password]
Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
TomCat Server Killed
1. I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris 8 system. 2. I exit the console screen from where I started tomcat and everything is still fine. 3. Once I logout the user (From the CDE environment), tomcat is killed. Is there a workaround to start tomcat (and keep it alive) without keeping the user session still open in the CDE environment? Thanx. André Ferreira Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto.
Re: [Tomcat Admin user name password]
in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: TomCat Server Killed
At 12:44 pm +0200 2003/12/18, Ferreira, André wrote: 1. I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris 8 system. 2. I exit the console screen from where I started tomcat and everything is still fine. 3. Once I logout the user (From the CDE environment), tomcat is killed. Is there a workaround to start tomcat (and keep it alive) without keeping the user session still open in the CDE environment? if this is analogous to a similar problem (perhaps not present anymore) with MacOSX, then you should start tomcat from a remote login (or at boot), that is just ssh into your machine (from the machine itself is fine) and give the command again (use the script to start it, as it has to be a background process). BTW, shouldn't be tomcat run as root? HTH Giuliano -- H U M P H || ||| software Java C++ Server/Client/Human Interface applications on MacOS - MacOS X http://www.humph.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tomcat Admin user name password]
Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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: [Tomcat Admin user name password]
check for any file named admin-users.xml. I think Tomcat 5 uses this file. I am not sure. Antony Paul. - Original Message - From: saravanan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:57 PM Subject: Re: [Tomcat Admin user name password] Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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: [Tomcat Admin user name password]
try reboot the tomcat.. - Original Message - From: saravanan To: Tomcat Users List Sent: Thursday, December 18, 2003 2:27 PM Subject: Re: [Tomcat Admin user name password] Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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]
Unexpected Redirect to https
Hi, I'm using Tomcat 4.1.29 on XP Home. I trying to configure Form based authentication with a DataSource based Realm. I've followed the server and web.xml given in the examples supplied with Tomcat. When I try to access my protected index.jsp the request gets redirected to the https port, as follows: Authenticator[/FlatMate]: Security checking request GET /FlatMate/jsp/index.jspAuthenticator[/FlatMate]: Checking constraint 'SecurityConstraint[Protected Area]' against GET /jsp/index.jsp -- trueAuthenticator[/FlatMate]: Subject to constraint SecurityConstraint[Protected Area]Authenticator[/FlatMate]: Calling checkUserData()Authenticator[/FlatMate]: Redirecting to https://localhost:8443/FlatMate/jsp/index.jspAuthenticator[/FlatMate]: Failed checkUserData() test Any help would be appreciated. Regards, Alan Halley - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat Server Killed
We have had the same problem with Solaris 8 and tomcat 4.1.18 No solution found yet. Tried using nohup to start the process but still exits when you leave the session. Donie -Original Message- From: Ferreira, André [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 10:45 To: [EMAIL PROTECTED] Subject: TomCat Server Killed 1. I am starting Tomcat version 3.2.2 as user A (not root) on a Solaris 8 system. 2. I exit the console screen from where I started tomcat and everything is still fine. 3. Once I logout the user (From the CDE environment), tomcat is killed. Is there a workaround to start tomcat (and keep it alive) without keeping the user session still open in the CDE environment? Thanx. André Ferreira Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [Tomcat Admin user name password]
Usually, with a clean install, I used to have the default user name 'admin' with no password. -Original Message- From: saravanan [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 6:14 PM To: [EMAIL PROTECTED] Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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: [Tomcat Admin user name password]
Hi Karam, Thank you so much. Yeah It works. :-) Saravanan L.Karam wrote: try reboot the tomcat.. - Original Message - From: saravanan To: Tomcat Users List Sent: Thursday, December 18, 2003 2:27 PM Subject: Re: [Tomcat Admin user name password] Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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: [Tomcat Admin user name password]
Hi Antony, Thanks for the reply. yeah there is a file called admin.xml. but i dont know what is it meant for. i just restarted tomcat. it works. thanks Saravanan Antony Paul wrote: check for any file named admin-users.xml. I think Tomcat 5 uses this file. I am not sure. Antony Paul. - Original Message - From: saravanan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:57 PM Subject: Re: [Tomcat Admin user name password] Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat/Apache 2/JK 2 Manager Webapp Config Question
I'm trying to get a install of tomcat with apache/jk2 running with the manager webapp. In fact, the install has been running smoothly for some time, except the manager application was never put into place as it was superfluous to our deployment requirements. Now the deployment schedule has stepped up a bit we'd like to use the manager app on a regular basis. OK, so I can get it working without issue (I've had it running in my dev environment for some time) but.. When I deploy a new war file using on the production setup, the manager webapp will (i'm sure some of you can correct the real ins outs, but for simplicity..):- 1. Delete /home/tomcat/intranet.war 2. Delete /home/tomcat/intranet 3. Upload the war file to /home/tomcat/intranet.war. This, in turn will then be:- 1. Unpacked at /home/tomcat/intranet by the 'intranet.eu.xxx.com' host deployed (unpackWARs=true autoDeploy=true) 2. Deployed at tomcat.eu.xxx.com/babcockbrown (Making two instances of the same webapp available from different access points.) My question is: How can I setup the manager to deploy the intranet.war file on intranet.eu./xxx.com without making it available on the other virtual host? My current reasoning says it would make sense to create the manager context inside the intranet.eu.xx.com host, but that doesn't seem possible, given that Apache's document root needs to point to /home/tomcat/intranet for this host (ie making /home/tomcat/manager inaccessible). As a real nasty option, i'd thought about merging the manager intranet web.xml files, and making the intranet webapp privileged, but i'm loathe to do this from a security standpoint. How does everyone else get round this problem? It shouldn't be uncommon, no? Config snippets follow. Thanks in advance for any suggestions, James. * --- directory structures - Tomcat Directory: /apps/pkg/tomcat note: /apps/pkg/tomcat/webapps contains no webapps. Webapps Directory: /home/tomcat --- /apps/pkg/tomcat/conf/server.xml --- !-- note: edited for brevity -- Service name=Tomcat-Apache JK2 Host name=intranet.eu.xxx.com debug=0 appBase=/home/tomcat privileged=true unpackWARs=true autoDeploy=true Context path= docBase=intranet debug=1 crossContext=false reloadable=true autoDeploy=true /Context /Host Host name=tomcat.eu.xxx.com debug=0 appBase=/home/tomcat/manager privileged=true unpackWARs=false autoDeploy=false Context path= docBase= debug=1 crossContext=true ResourceLink name=users global=UserDatabase type=org.apache.catalina.UserDatabase/ Realm className=org.apache.catalina.realm.MemoryRealm debug=2/ /Context /Host --- /apps/pkg/apache/conf/httpd.conf --- snip VirtualHost 10.64.5.10:80 ServerName intranet.eu.xxx.com:80 DocumentRoot /home/tomcat/intranet/ ServerAdmin [EMAIL PROTECTED] ErrorLog /apps/pkg/apache/logs/intranet_http_error_log CustomLog /apps/pkg/apache/logs/intranet_http_access_log combined Location /*.jsp JkUriSet worker ajp13:localhost:8009 /Location Location /*.jhtml JkUriSet worker ajp13:localhost:8009 /Location Location /WEB-INF Options None AllowOverride None order deny,allow deny from all /Location /VirtualHost VirtualHost 10.64.5.10:80 ServerName tomcat.eu.xxx.com:80 DocumentRoot /home/tomcat/manager/ ServerAdmin [EMAIL PROTECTED] ErrorLog /apps/pkg/apache2/logs/manager_http_error_log CustomLog /apps/pkg/apache2/logs/manager_http_access_log combined Location /html/* JkUriSet worker ajp13:localhost:8009 /Location Location /WEB-INF Options None AllowOverride None order deny,allow deny from all /Location /VirtualHost - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache SSL again... those variables are getting me mad!
Sure! This is getting personal... ;-) Apache and Tomcat will not be my friends anymore! :-D Well, I'll try to be a little exhaustive just because sometimes I miss something that is the real point of the question. Let's go. My target is an Apache + Tomcat integration using JK2. Software! Redhat 9.0 Apache 2.0.47 with modssl. Tomcat 5.0.16. JK2 2.0.2 This is what I have done: 1. Install apache properly. Configuration is in /etc/httpd 2. Install tomcat properly. /opt/jakarta-tomcat-5.0.16 3. Compile JK2 2.0.2 from jakarta-connectors because there is a bug in the sources of tomcat that avoid recursivity in mappings like /your_webapp/* 4. Configuration. In httpd.conf I have added these lines: #** LoadModule jk2_module modules/mod_jk2.so #** My workers2.properties looks like this (/etc/httpd/workers2.properties) [logger] level=DEBUG [config:] file=/etc/httpd/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. Options: debug debug=1 # Alternate file logger [logger.file:0] level=DEBUG file=/var/log/httpd/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket debug=1 tomcatId=127.0.0.1:8009 [ajp13:127.0.0.1:8009] channel=channel.socket:127.0.0.1:8009 [status:status] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: worker=status:status #* In tomcat, my jk2.properties looks like this #** handler.list=request,container,channelSocket channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 #** And in server.xml the jk connector is configured as this: #** Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector #** In my ssl.conf the configuration is: (UserMan is my web application) #** IfModule mod_jk2.c Location /UserMan JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /admin JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /manager/html JkUriSet worker ajp13:127.0.0.1:8009 /Location /IfModule #** I am using client authentication and everything goes fine. SSL connection is OK and the server ask the web browser for a client certificate. And my application is displayed properly! I am happy up to this moment but... What about asking for SSL parameters from my webapp? I am doing something like this inside a JSP file: String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); Integer keysize = (Integer)request.getAttribute(javax.servlet.request.key_size); X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); String sessionId = (String)request.getAttribute(javax.servlet.request.ssl_session); X509Certificate [] certs = (X509Certificate [])request.getAttribute(org.apache.coyote.request.X509Certificate); I ALLWAYS GET NULL! What more can I do? Is there anybody that had succeded doing this? What about developers? Thanks in advance! And sorry for this long post, but... Thanks again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Tomcat Admin user name password]
the admin.xml it meant for configuring the context of application called 'admin'. In tomcat5, all of yours applications have a .xml file. - Original Message - From: saravanan To: Tomcat Users List Sent: Thursday, December 18, 2003 2:59 PM Subject: Re: [Tomcat Admin user name password] Hi Antony, Thanks for the reply. yeah there is a file called admin.xml. but i dont know what is it meant for. i just restarted tomcat. it works. thanks Saravanan Antony Paul wrote: check for any file named admin-users.xml. I think Tomcat 5 uses this file. I am not sure. Antony Paul. - Original Message - From: saravanan [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:57 PM Subject: Re: [Tomcat Admin user name password] Hi Karam, Thanks for the reply. I tried it. I also added the following lines. role rolename=manager/ role rolename=admin/ Now if try login with uname as admin and pwd as pass, i get the error message inavalid login. correct me if i am wrong. Thanks for your support. Saravanan L.Karam wrote: in TOMCAT_HOME/conf/tomcat-users.xml you need add a new tag user username=admin password=pass roles=manager,admin/ - Original Message - From: saravanan To: [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:13 PM Subject: [Tomcat Admin user name password] Hi all, i am a newbie for Tomcat. i just installed Tomcat/5.0.16 on my RH 9.0 box and its running. But I cant login to the admin tool. Whats the admin user name pwd. How do i konw it???. any help wud be greatly appreciated. Thanks in advance. TR.Saravanan - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Reading from an xml file from servlet supporting class
Hello Shapira, Thanks for ur reply Regards, Tejashri. Shapira, Yoav [EMAIL PROTECTED] wrote: Howdy, You should read up on ServletContext#getResource and Classloader#getResource. I mentioned this in another thread where you asked a similar question. Yoav Shapira Millennium ChemInformatics -Original Message- From: Teja Jo [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 11:18 PM To: [EMAIL PROTECTED] Subject: Reading from an xml file from servlet supporting class Hi, A class used by my servlet in the web application is using a xml file .These 3 files are in the same folder inside webapps//WEB-INF/classes/ in tomcat - yet the servlet- supporting class cannot read the xml file .Where to place the xml file so that it can be read? Regards, Teja. - Do you Yahoo!? Free Pop-Up Blocker - Get it now This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Free Pop-Up Blocker - Get it now
RE: mod_jk only usable from localhost
1. Make sure machine is visible ping computername 2. Make sure apache is serving pages http://computername 3. Make sure tomcat works in standalone mode http://computername:8080 4. Then edit httpd.conf , tomcat's server.xml ( see docs ) http://computername/context -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 6:45 PM To: Tomcat Subject: mod_jk only usable from localhost Tomcat List, I have installed Apache+Tomcat via mod_jk. I have it configured so that I can use Tomcat from Apache but it only works from the localhost. If I: http://localhost/tomcat-docs it works but if I do: http://computername/tomcat-docs http://computerip/tomcat-docs it doesn't work. Is there something special you have to do to make mod_jk work from computers other than localhost? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-8557 http://www.starprecision.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Convert Text to Image [OT]
Hello, Does anyone know of a tool for Converting Text to images so that I can still have image buttons on my site while having it localised? Thanks, Andoni. PS: I have taken a look at AcmeGif I am looking to see if there is something better though. Or tutorial help on AcmeGif. Acme GIF is at: http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html Ta. A.
mod_jk2.so e jkjni.so problem
Hello all I compiled the sources for jk2 2.0.2 in my linux box, I intalled apache 2.0.40 and Tomcat 5.0.16. When I configure JK2 Connector I receive this messagem in tomcat startup: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final Obvously does not work. I have a 500 internal server error when access a tomcat context from apache. What is this? Is it a problem in compilation? What's wrong? To compile: ./configure --with-apxs2=/usr/lib/apxs2 make If someone could tell me where can i get the binaries for download, I will be cery gratefull.
Problems running pre-compiled JSP classes when in subdirectories
I have pre-compiled my JSP classes using the JspC plugin from ant. My files compile without complaint. However, when I try to access the files through tomcat, I receive some NoClassDefFoundError exceptions. But these exceptions only occur when I'm accessing JSPs in the subdirectories off of the web root. Here's my application's background. I have two files: WEBROOT/index.jsp WEBROOT/dir/index.jsp The contents of the two files are just simple HTML. I precompiled the JSP using the JspC ant target, then compiled using javac. Finally, I created a context pointing the work directory to the location of my java and class files. When I tried to access the first file (http://localhost/context/index.jsp) everything went fine. However, when I tried to access the second file (http://localhost/context/dir/index.jsp), I received the NoClassDefFoundError. The log file looks like this: 2003-12-15 20:11:25 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception javax.servlet.ServletException: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) [deleted ...] - Root Cause - java.lang.NoClassDefFoundError: org/apache/jsp/index_jsp (wrong name: org/apache/jsp/dir/index_jsp) at java.lang.ClassLoader.defineClass0(Native Method) at java.lang.ClassLoader.defineClass(ClassLoader.java:537) at java.lang.ClassLoader.defineClass(ClassLoader.java:448) at org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:215) [deleted] Now, according to my research on this mailing list, the most frequent reason for a NoClassDef error is capitalization. However, this isn't the case in my situation as the two package names are completely different: org/apache/jsp/index_jsp vs. org/apache/jsp/dir/index_jsp. I'm using Tomcat 4.1.29. Any suggestions on how to alleviate this situation would be greatly appreciated. Thanks JDG PS: I should also point out that I have tried the recommended way of precompiling my JSP by converting to servlets (http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jasper-howto.html#Web%2 0Application%20Compilation). However, I have a problem with this method: it makes it that much harder to patch my application. With the non-servlet approach, I just simply deliver the modified JSP files. With the servlet approach, I need to deliver the classes, plus ensure that the web.xml is correct (add new entries, remove old ones, modify where needed), plus restart the context. -- Jay Glanville - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problems using an org.apache.catalina.util class in Tomcat
Hi! I'm trying to use an org.apache.catalina.util class in my web application. It does work fine if I use it standalone, but when it runs within Tomcat 4, I'm getting an exception. I think there is a security incompatibility problem with Tomcat. Thanks for your help! Monica Exception: 2003-12-18 10:53:17,468 ERROR [Thread-3] (ContextFilter.java:189) - Exception Servlet execution threw an exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at com.ah.auk.context.IdentificationFilter.doFilter(IdentificationFilter.java:69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:376) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat Server Killed
At 11:17 am + 2003/12/18, Donie Kelly wrote: We have had the same problem with Solaris 8 and tomcat 4.1.18 No solution found yet. Tried using nohup to start the process but still exits when you leave the session. have you tried my suggestion? What happens if you start other servers in the same way? What happens if you start a java application (with no GUI) that way? Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How can I compile Mod_jdk2 ?
Hi everybody, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? Or maybe send-me the module by e-mail I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Thanks... William Marques Gma Consultoria - Brasil - [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
jsp:include/WAR
Is this a tomcat issue or is this a jdk 1.4 issue where the jsp:include calls in my jsp pages that include files from other directories do not work when the webapp I'm deploying is in WAR format? I have a context setup for it in the server.xml with database parameters and login authentication classes, so when tomcat deploys this webapp it doesn't autoexpand it, hence it executes everything in WAR format and for whatever reason it doesn't allow ANY of my jsp:include calls and serves me blank pages with FileNotFoundException errors in my log files and obviously all my getRealPath() calls break as well...is there any way to force Tomcat to autoexpand my WAR file even though I'm setting it up with a context and realm in server.xml? Or am I stuck going through my entire application and giving absolute paths to all my jsp:include files and writing something to create temporary directories to replace my getRealPath() situations? That's kind of a really big bug if it is in fact a bug... Any help is greatly appreciated. Rob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
too many files open problem
We had a problem with too many files opened in linux. There was a bug with linux that prevented us to set the ulimit. Since we saw many posts with that problem here is the solution we found. You have to run Tomcat as a daemon! Somehow that bypasses the ulimit bug. Here is a startup script. You have to change the account name that you are running tomcat under. We can't take complete credit, we modified a script we found somewhere else. #!/bin/bash #tomcat # This is the init script for starting up the # Jakarta Tomcat server # # chkconfig: 345 50 50 # description: Starts and stops the Tomcat daemon. # # Source function library. . /etc/rc.d/init.d/functions # Get config. . /etc/sysconfig/network # Check that networking is up. [ ${NETWORKING} = no ] exit 0 #tomcat= /usr/local/jakarta-tomcat-5.0.16 startup=/usr/local/jakarta-tomcat-5.0.16/bin/startup.sh shutdown=/usr/local/jakarta-tomcat-5.0.16/bin/shutdown.sh #export JAVA_HOME=/usr/java/j2sdk1.4.1_01 start(){ echo -n $Starting Tomcat service: # Change to tomcat user to start server. Don't run as root. ulimit -n 9000 ; su tomcataccountname -c ulimit -n 9000 ; $startup RETVAL=$? echo } stop(){ action $Stopping Tomcat service: $shutdown RETVAL=$? echo } restart(){ stop start } # See how we were called. case $1 in start) start ;; stop) stop ;; status) # This doesn't work ;) status tomcat ;; restart) restart ;; *) echo $Usage: $0 {start|stop|status|restart} exit 1 esac Hugues Sicotte Senior Bioinformatics Analyst Core Genotyping Facility 10817 grovemont circle Gaithersburg, MD 20877 Tel: 301-496-4060 Fax: 301-480-2235 USPS Mail Address: 8617 Grovemont Circle Gaithersburg, MD 20892-4605 Courier and visitor Address: Advanced Technology Center, Room 152F 8617 Grovemont Circle Gaithersburg, MD 20877 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK exception every first request - Tomcat 5.0.16
Hello, I use Tomcat 5.0.16 with apache and mod_jk (1.2.5) since a few days. (i used before 4.1.29). Every night my Linux reboot, and stuff restart according to my rc files. Every morning, the first response of my web app is a http code 500 with exception below After that, another request works, even if i restart tomcat manually ... smbdy have an idea ? thks 2003-12-18 07:54:24 StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception java.lang.NoClassDefFoundError: org/apache/tomcat/util/http/HttpMessages at org.apache.jk.server.JkCoyoteHandler.appendHead(JkCoyoteHandler.java:350) at org.apache.jk.server.JkCoyoteHandler.action(JkCoyoteHandler.java:402) at org.apache.coyote.Response.action(Response.java:226) at org.apache.coyote.Response.sendHeaders(Response.java:418) at org.apache.jk.server.JkCoyoteHandler.doWrite(JkCoyoteHandler.java:240) at org.apache.coyote.Response.doWrite(Response.java:586) at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:405) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:428) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:348) at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:274) at sun.nio.cs.StreamEncoder$CharsetSE.writeBytes(StreamEncoder.java:336) at sun.nio.cs.StreamEncoder$CharsetSE.implFlushBuffer(StreamEncoder.java:404) at sun.nio.cs.StreamEncoder$CharsetSE.implFlush(StreamEncoder.java:408) at sun.nio.cs.StreamEncoder.flush(StreamEncoder.java:152) at java.io.OutputStreamWriter.flush(OutputStreamWriter.java:213) at org.apache.tomcat.util.buf.WriteConvertor.flush(C2BConverter.java:223) at org.apache.tomcat.util.buf.C2BConverter.flushBuffer(C2BConverter.java:166) at org.apache.coyote.tomcat5.OutputBuffer.realWriteChars(OutputBuffer.java:607) at org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:298) at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java:512) at org.apache.coyote.tomcat5.CoyoteWriter.write(CoyoteWriter.java:165) at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:161) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:368) at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:379) at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:504) at org.apache.taglibs.standard.tag.common.core.UrlSupport.doEndTag(UrlSupport.java:156) at org.apache.jsp.index_jsp._jspx_meth_c_url_2(index_jsp.java:489) at org.apache.jsp.index_jsp._jspx_meth_c_forEach_0(index_jsp.java:407) at org.apache.jsp.index_jsp._jspService(index_jsp.java:137) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:133) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:311) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) 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.catalina.security.SecurityUtil$1.run(SecurityUtil.java:284) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Subject.java:500) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:200) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:278) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:97) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:187) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:183) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at
RE: 5.0.16 sample deploys!, one recommendation and one question
Howdy, the question is: is there a way to navigate to the servlet without using the servlet mapping. iirc, you could do something like 8080/myapp/servlet/mypackage/Hello in 4.x or perhaps that was only if you Yes, comment in the invoker servlet-mapping in $CATALINA_HOME/conf/web.xml. It's in the Tomcat FAQ. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Further details - RequestDispatcher in servlet is not working
Howdy, //uptil this point it gets executed properly strAddress = /WEB-INF/internalJsp/ReceiveJsp.jsp; RequestDispatcher objReqDispatcher = request.getRequestDispatcher(strAddress); objReqDispatcher.forward(request,response); Here request dispatcher is not working - it doesn't forward the request. What happens, then? Don't forget to return from your method above after the .forward call. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: include/WAR
Howdy, Not a big fan of short sentence, huh? ;) Is this a tomcat issue or is this a jdk 1.4 issue where the jsp:include calls in my jsp pages that include files from other directories do not work It's probably neither a tomcat issue nor a JDK 1.4 issue. By other directories, do you mean outside the webapp? when the webapp I'm deploying is in WAR format? I have a context setup for Packed or unpacked WAR? Either way, your webapp should not use getRealPath calls: replace them with ServletContext#getResource or getResourceAsStream. getRealPath() calls break as well...is there any way to force Tomcat to autoexpand my WAR file even though I'm setting it up with a context and Yes, set the unpackWARs attribute to true for the Host element where your Context is. You can verify that your WAR is unpacked by looking at the filesystem. Remember, if you're using tomcat 5 it's under a different directory from tomcat 4. realm in server.xml? Or am I stuck going through my entire application and giving absolute paths to all my jsp:include files and writing something to create temporary directories to replace my getRealPath() situations? You should replace your getRealPath calls anyways. You should have relative paths for your inclusions anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems using an org.apache.catalina.util class in Tomcat
Howdy, You didn't include the root cause portion of your stack trace: the part you included doesn't help. Are you by any chance trying to use the org.apache.catalina class from classes that are loaded in WEB-INF/classes or WEB-INF/lib? Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Problems using an org.apache.catalina.util class in Tomcat Hi! I'm trying to use an org.apache.catalina.util class in my web application. It does work fine if I use it standalone, but when it runs within Tomcat 4, I'm getting an exception. I think there is a security incompatibility problem with Tomcat. Thanks for your help! Monica Exception: 2003-12-18 10:53:17,468 ERROR [Thread-3] (ContextFilter.java:189) - Exception Servlet execution threw an exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.IdentificationFilter.doFilter(IdentificationFilter.j ava: 69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 15) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java :376 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5 94) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn ection(Http11Protocol.java:392) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 65) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja va:619) at java.lang.Thread.run(Thread.java:536) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any
RE: Tomcat and Log4J
Howdy, I could rant on this issue for a long time, but I'll stick to three points. Thanks for the advice. I tried using Log4J directly by one of my classes and, like you said, it worked. Ahh, good, a simple setup that works. However, I wanted to stick with commons logging since this is (supposedly) the most flexible logging solution. Thank you for providing something funny in today's boring batch of emails to this list. ;) Yes, let's take something simple that works and replace it with something complicated that may or may not work after some fidgeting and trial and error. However, I am surprised that this was all necessary. I am also surprised that it is (I think) undocumented. Undocumented? Search this and the log4j-user list's archives for many many many other people who've run into the same problems as you, and worse. You'll find many solutions, workaround, and black magic. And yes, I do consider the list archives as part of the documentation ;) Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: TomCat Server Killed
HYes, your method does work to get Tomcat running, but then the application I am using with tomcat does not work. It seems the application logs some kind of session-id with the CDE session. Uhh:(! André Ferreira -Original Message- From: Giuliano Gavazzi [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 15:24 To: Tomcat Users List Subject:RE: TomCat Server Killed At 11:17 am + 2003/12/18, Donie Kelly wrote: We have had the same problem with Solaris 8 and tomcat 4.1.18 No solution found yet. Tried using nohup to start the process but still exits when you leave the session. have you tried my suggestion? What happens if you start other servers in the same way? What happens if you start a java application (with no GUI) that way? Giuliano - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Note: The information in this e-mail is confidential and is intended solely for the addressee. If you have received this e-mail in error, you are hereby notified that any review, copying or distribution is strictly prohibited. Please inform the sender immediately and destroy the original. Siemens Limited and/or its subsidiaries accepts no liability of whatever nature for any loss, liability, damage or expense resulting directly or indirectly from access to this message and any files or links that are attached hereto.
RE: include/WAR
Yoav, Thanks for the reply...yeah I'm a bit long-winded at times...sorry 'bout that. :) Anyways, to answer a few of your questions...my directory structure is as follows...I have a directory called 'application' and in 'application' I have a header.jsp file...then under 'application' I have 5 subdirectories which contain the 5 functionalities of the software. In these subdirectories, all filed have the jsp:include file=../header.jsp call in them to pull header.jsp from the 'application' directory, so they all share this one common header file. This works perfectly when I drop the actual expanded directory structure in the webapps directory and set the docBase in my server.xml to the parent directory of 'application'...but as soon as I war everything up and drop the war in the webapps directory and set the docBase to the war filename in server.xml, I get blank pages in any call I make to any of the files in any of the subdirectories in the application folder. I also have a few files in the 'application' directory that have jsp:include file=header.jsp in them and those all work perfectly in war format and unpacked format...so I looked at the servlet log in the log directory of tomcat and I have a bunch of FileNotFoundExceptions and it shows tomcat trying to access the file like this: /application/import/../header.jsp It's like its trying to access header.jsp in a subdirectory of import with the directory name of '..' instead of using those '..' to traverse up one directory and look for the file. Very strange stuff. I'm using tomcat 4.0.3 (I know it's old but it's too late in the development process and too close to the next release date to change the version of tomcat we're using (which we plan on doing in the next developmental cycle...but for now, this is really just curiosity...if we are forced to leave it expanded, then so be it, but for out installation process, using the WAR would be SO much nicer...and if we can work around this last bit of trouble, we'd be in the clear.) ) As for the getRealPath...we don't use that call often, but we have a section of the application where we import external files the user tells us the filename of and I guess we're just doing it incorrectly...I'll look into your suggestions on the replacement of the getRealPath...thank you for all your help. Rob -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:19 AM To: Tomcat Users List Subject: RE: include/WAR Howdy, Not a big fan of short sentence, huh? ;) Is this a tomcat issue or is this a jdk 1.4 issue where the jsp:include calls in my jsp pages that include files from other directories do not work It's probably neither a tomcat issue nor a JDK 1.4 issue. By other directories, do you mean outside the webapp? when the webapp I'm deploying is in WAR format? I have a context setup for Packed or unpacked WAR? Either way, your webapp should not use getRealPath calls: replace them with ServletContext#getResource or getResourceAsStream. getRealPath() calls break as well...is there any way to force Tomcat to autoexpand my WAR file even though I'm setting it up with a context and Yes, set the unpackWARs attribute to true for the Host element where your Context is. You can verify that your WAR is unpacked by looking at the filesystem. Remember, if you're using tomcat 5 it's under a different directory from tomcat 4. realm in server.xml? Or am I stuck going through my entire application and giving absolute paths to all my jsp:include files and writing something to create temporary directories to replace my getRealPath() situations? You should replace your getRealPath calls anyways. You should have relative paths for your inclusions anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: jsp.error.attribute.unterminated -- WTF?
On Thu, 2003-12-18 at 01:31, Josh G wrote: Hi All, pulling out copious amounts of hair for this one... here's the code: % for (int i = 0; i sectionNames.length; i++ ) { % %= sectionNames[i] %_off = new Image(); %= sectionNames[i] %_off.src = image:local file=%= sectionNames[i] %_off.gif /; %= sectionNames[i] %_on = new Image(); in the image: / tag that your using you have to make sure that its descriptor in the tld has rtexprvalue equal to true. for example: attribute namerowsPerPage/name rtexprvaluetrue/rtexprvalue /attribute and even if it is, i think you may not be able to concatinate with text the way you are. try this: % String temp = sectionNames[i] + _off.gif; % image:local file=%= temp % / that is i think the attribute has to be either text or an expression, not both. dave %= sectionNames[i] %_on.src = image:local file=%= sectionNames[i] %_on.gif /; %= sectionNames[i] %_hover = new Image(); %= sectionNames[i] %_hover.src = image:local file=%= sectionNames[i] %_hover.gif /; % } % It is in some client-side javascript, and I get a jsp.error.attribute.unterminated error on a out-of-line-range character on the first line inside the loop. Uncle google has nothing to say about this, and I can't even figure out what the error means, let alone trying to decipher the problem. If I remove the lines inside the loop it works as expected. This is driving me totally nuts, any help here _much_ appreciated. Cheers, -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - 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: Problems using an org.apache.catalina.util class in Tomcat
Hi! Howdy, You didn't include the root cause portion of your stack trace: the part you included doesn't help. Uhmm... I'm afraid, that's all there is. None of the logs show any more exceptions/info... Are you by any chance trying to use the org.apache.catalina class from classes that are loaded in WEB-INF/classes or WEB-INF/lib? I think that's what I'm trying to do... I'd like to use the org.apache.catalina.util class from a class in my web application, that is in the WEB-INF/classes of the webapp. Is that not allowed? I guess it probably makes sense not to allow access to tomcat main classes, but this is just an utility... Probably will have to get it from other source or do it in my own package. Yoav Shapira Millennium ChemInformatics Thanks a lot for your answer. Monica -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Problems using an org.apache.catalina.util class in Tomcat Hi! I'm trying to use an org.apache.catalina.util class in my web application. It does work fine if I use it standalone, but when it runs within Tomcat 4, I'm getting an exception. I think there is a security incompatibility problem with Tomcat. Thanks for your help! Monica Exception: 2003-12-18 10:53:17,468 ERROR [Thread-3] (ContextFilter.java:189) - Exception Servlet execution threw an exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.IdentificationFilter.doFilter(IdentificationFilter.j ava: 69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 15) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java :376 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:5
Quick questions about Connector connectionTimeout
My current config looks like this: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8011 minProcessors=5 maxProcessors=150 enableLookups=false redirectPort=443 acceptCount=10 debug=0 connectionTimeout=-1 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ I understand that the connection timeout is disabled with this setting. I searched through the docs, etc, but all I ever found was set the connection timeout in milliseconds. My questions are, where would this matter? Why would I want to enable a timeout here? If this is disabled, and connections are timed out elsewhere (session, etc) shouldn't the processor still terminate normally? I am assuming it is a safegaurd to prevent a run-away situation, but would like some more input. Thanks much, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk2.so errors
I'm receiving this messages in error_log from apache web server. My envirenment is Linux Red Hat 9, Apache 2.0.40-21, Tomcat 5.0.16 What is wrong? Is this a bug? http://myserver/jkstatus works, but nothing more. [EMAIL PROTECTED] conf]# cat /var/log/httpd/error_log [Thu Dec 18 11:38:49 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 18 11:38:49 2003] [notice] Digest: done [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11818 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11820 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11821 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11822 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11824 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11825 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 11:38:50 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 18 11:38:50 2003] [error] jk2_init() Can't find child 11823 in scoreboard [Thu Dec 18 11:38:50 2003] [error] mod_jk child init 1 -2
Tomcat 5.0.16 executes binary CGI scripts as Perl scripts
I am new to 5.0.16 but I have used Tomcat before in the Past. I think I configured my CGI settings correctly according to the documentation, I uncommented the servlet and servlet-mappings sections, renamed the Jar file. I also have .exe MIME mapped as an Application (the default values I didn't muck with any of these). I am running on Windows 2000. My script is installed into ..\Root\WEB-INF\cgi\cgi.exe I am trying to run a binary C-Style CGI script. It appears that tomcat is treating my .exe file as a Perl script. The 500 Error Output reads... java.io.IOException: CreateProcess: perl C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe error=2 I am not sure how to resolve this issue, it looks like from the error Tomcat thinks me exe is a perl script. I didn't know there was a specific configuration for how scripts are handled, it appears the MIME mappings are being ignored or are not used in script execution. Any ideas, is there a way to unmap .exe to perl? I know Tomcat is designed primarily for servlets, this is a special scenario where Tomcat cannot be substituted for Apache (and Apache runs the script A-OK). -- Below are specific details about the error msg and web.xml config settings - Entire error: 2003-12-17 18:41:25 StandardContext[]cgi: findCGI: currentLoc=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi 2003-12-17 18:41:25 StandardContext[]cgi: findCGI: FOUND cgi at C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe 2003-12-17 18:41:25 StandardContext[]cgi: findCGI calc: name=cgi.exe, path=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe, scriptname=/cgi-bin\cgi.exe, cginame=\cgi.exe 2003-12-17 18:41:25 StandardContext[]cgi: runCGI(envp=[{HTTP_USER_AGENT=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; iOpus-I-M; .NET CLR 1.0.3705; .NET CLR 1.1.4322), HTTP_ACCEPT_ENCODING=gzip, deflate, REQUEST_METHOD=GET, AUTH_TYPE=, HTTP_ACCEPT_LANGUAGE=en-us,de;q=0.5, SERVER_NAME=pinecone, SERVER_SOFTWARE=TOMCAT, HTTP_HOST=pinecone, GATEWAY_INTERFACE=CGI/1.1, X_TOMCAT_SCRIPT_PATH=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe, REMOTE_ADDR=192.168.1.144, SERVER_PROTOCOL=HTTP/1.1, PATH_INFO=, REMOTE_HOST=192.168.1.144, QUERY_STRING=command=LoginScreen, HTTP_CONNECTION=Keep-Alive, SERVER_PORT=8080, CONTENT_TYPE=, CONTENT_LENGTH=, SCRIPT_NAME=/cgi-bin\cgi.exe, HTTP_ACCEPT=*/*, REMOTE_USER=, REMOTE_IDENT=}], command=C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe) 2003-12-17 18:41:25 StandardWrapperValve[cgi]: Servlet.service() for servlet cgi threw exception java.io.IOException: CreateProcess: perl C:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF\cgi\cgi.exe error=2 at java.lang.Win32Process.create(Native Method) at java.lang.Win32Process.init(Win32Process.java:66) at java.lang.Runtime.execInternal(Native Method) at java.lang.Runtime.exec(Runtime.java:566) at java.lang.Runtime.exec(Runtime.java:428) at org.apache.catalina.servlets.CGIServlet$CGIRunner.run(CGIServlet.java:1578) at org.apache.catalina.servlets.CGIServlet.doGet(CGIServlet.java:626) at javax.servlet.http.HttpServlet.service(HttpServlet.java:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:156) at
mod_jk2 and RFC1867 problem
Hi, (B (BI use mod_jk2 on apache2.0 on RedHat9.0 as a load balancer. (BTomcat behind are on JBoss 3.2.2. (B (BI can upload files using an application compliant to RFC1867 (Bwhen accessing directly to Tomcat on 8080. (BBut with mod_jk2 on apache2.0, that fails without an error. (B (BCould anyone give me an idea? (B (BThanks in advance. (BTakenori, (B (B- (BTo unsubscribe, e-mail: [EMAIL PROTECTED] (BFor additional commands, e-mail: [EMAIL PROTECTED]
RE: Problems using an org.apache.catalina.util class in Tomcat
Hi! After a bit more investigation, I discover that there is an equivalent class in the common package. So that should make it. Thansk and sorry for the hassle. Monica Hi! Howdy, You didn't include the root cause portion of your stack trace: the part you included doesn't help. Uhmm... I'm afraid, that's all there is. None of the logs show any more exceptions/info... Are you by any chance trying to use the org.apache.catalina class from classes that are loaded in WEB-INF/classes or WEB-INF/lib? I think that's what I'm trying to do... I'd like to use the org.apache.catalina.util class from a class in my web application, that is in the WEB-INF/classes of the webapp. Is that not allowed? I guess it probably makes sense not to allow access to tomcat main classes, but this is just an utility... Probably will have to get it from other source or do it in my own package. Yoav Shapira Millennium ChemInformatics Thanks a lot for your answer. Monica -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Problems using an org.apache.catalina.util class in Tomcat Hi! I'm trying to use an org.apache.catalina.util class in my web application. It does work fine if I use it standalone, but when it runs within Tomcat 4, I'm getting an exception. I think there is a security incompatibility problem with Tomcat. Thanks for your help! Monica Exception: 2003-12-18 10:53:17,468 ERROR [Thread-3] (ContextFilter.java:189) - Exception Servlet execution threw an exception javax.servlet.ServletException: Servlet execution threw an exception at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:269) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.ContextFilter.doFilter(ContextFilter.java:186) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at com.ah.auk.context.IdentificationFilter.doFilter(IdentificationFilter.j ava: 69) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio nFilterChain.java:213) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC hain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j ava:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVal ve.j ava:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e.java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:24 15) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve .java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java :376 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve .jav a:174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo keNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at
Re: UserDatabaseRealm 5.0.16 - immediately available for use by the Realm??
After thinking about it, it probably means a user will be immediatley available if you/developer use the correct Tomcat API, similar to what the admin console uses.You do not have to restart the server. Kwok Peng Tuck [EMAIL PROTECTED] wrote:I think that is refering to a RDBMS realm. Last time I checked, tomcat-users.xml was only read on startup. Ron Andersen wrote: 1) I configured the default authentication realm - UserDatabaseRealm, which is setup to use conf/tomcat-users.xml. However, I am confused about the following statement: This Realm uses the UserDatabase configured in the global JNDI resources under the key UserDatabase. Any edits that are performed against this UserDatabase are immediately available for use by the Realm. 2) Does this mean that I can add user to the conf/tomcat-users.xml and Tomcat will be able to authenticate without restarting the server? - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard
RE: Tomcat (embedded in JBoss) hangs during startup of SSL connector
Hi, solved the problem on my own. It was the linux implementation of Securenumber class that froze the whole tomcat. Adding -Djava.security.egd=urandom to the start command solved the problem. Nicolai -Ursprüngliche Nachricht- Von: Nicolai Bieber [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 17. Dezember 2003 17:27 An: [EMAIL PROTECTED] Betreff: Tomcat (embedded in JBoss) hangs during startup of SSL connector Hi there, I've encountered a strange problem while starting jboss 3.2.1 (including tomcat 4.1.24) with the SSL-Connector enabled on port 443: Symptom: The server hangs while initializing the SSL-connector and never comes back (at least not for several hours). So the whole start-up processes is frozen. The last two lines in the log are: 2003-12-17 13:24:08,268 DEBUG [org.apache.coyote.http11.Http11Protocol] Attribute sslImplementation: null 2003-12-17 13:24:08,268 DEBUG [org.apache.tomcat.util.threads.ThreadPool] Getting new thread data This only occurs on two servers of a customer of ours. The same setup works out just fine on other servers. The configuration is: Suse Linux 7.3 (that is kernel 2.4.10) JBoss 3.2.1 with Tomcat 4.1.24 j2sdk 1.4.2_01 Tomcat listens to port 80 and 443 (just commented out the SSL-Connector in the config file) Security patch of US_export_policy.jar;local_policy.jar for strong encryption was done (and undone withaout any change) I already tried this without any success: - using another port for SSL (80, 8443, 9443) - j2sdk 1.4.2_03, j2sdk 1.4.1_05 - different keystore files - using wrong password = tomcat gives correct exception But: The server starts if operated with JDK 1.3.1_01 but that's unfortunaly no option for our application. I already thought about using the newest JBoss 3.2.3 with the Tomcat 4.1.29, because I saw some serious refactoring in the SSL support (separate classes for JDK 1.4). Due to the fact, that we have about 30 installation of our software based on JBoss 3.2.1 and the new version would have been tested intensivly, the update is not a short term solution. I also filled up the tomcat code with debug output and so I found that the line that actually hangs is: context.init(kmf.getKeyManagers(), tm, new java.security.SecureRandom()); in the initProxy() method of org.apache.tomcat.util.net.jsse.JSSESocketFactory From there it goes into SUN's JSSE-Provider (and never comes back). By the way: If I go through the JSSE code I see obvious (as it seems) infinite loop, which would explain initProxy() invokes SSLContext.init(...) in SSLContext, which just delegates to SSLContextSpi.engineInit(...), which is a abstract method only implemented by SSLContextSpiWrapper.engineInit(...), where we find return statement, but a invokation of SSLContext.init(...) at the end of the method, that makes the circle perfect. On the other hand: How does this work out on all the other installations? May I be tricked by the decompiler? Nicolai - 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: Unexpected Redirect to https
On 12/18/2003 12:20 PMnbsp;Alan Halley wrote: Hi, I'm using Tomcat 4.1.29 on XP Home. I trying to configure Form based authentication with a DataSource based Realm. I've followed the server and web.xml given in the examples supplied with Tomcat. When I try to access my protected index.jsp the request gets redirected to the https port, as follows: Authenticator[/FlatMate]: Security checking request GET /FlatMate/jsp/index.jsp Authenticator[/FlatMate]: Checking constraint 'SecurityConstraint[Protected Area]' against GET /jsp/index.jsp -- true Authenticator[/FlatMate]: Subject to constraint SecurityConstraint[Protected Area] Authenticator[/FlatMate]: Calling checkUserData() Authenticator[/FlatMate]: Redirecting to https://localhost:8443/FlatMate/jsp/index.jsp Authenticator[/FlatMate]: Failed checkUserData() test Hi Alan, it's impossible to say what's going on without seeing the security-constraints xml. Post it here and maybe someone can help. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache SSL again... those variables are getting me mad!
what is null? the certs object ? Why do you have the following 2 lines... X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); X509Certificate [] certs = (X509Certificate [])request.getAttribute(org.apache.coyote.request.X509Certificate); do both of these methods return null? Federico Fernandez Cruz wrote: Sure! This is getting personal... ;-) Apache and Tomcat will not be my friends anymore! :-D Well, I'll try to be a little exhaustive just because sometimes I miss something that is the real point of the question. Let's go. My target is an Apache + Tomcat integration using JK2. Software! Redhat 9.0 Apache 2.0.47 with modssl. Tomcat 5.0.16. JK2 2.0.2 This is what I have done: 1. Install apache properly. Configuration is in /etc/httpd 2. Install tomcat properly. /opt/jakarta-tomcat-5.0.16 3. Compile JK2 2.0.2 from jakarta-connectors because there is a bug in the sources of tomcat that avoid recursivity in mappings like /your_webapp/* 4. Configuration. In httpd.conf I have added these lines: #** LoadModule jk2_module modules/mod_jk2.so #** My workers2.properties looks like this (/etc/httpd/workers2.properties) [logger] level=DEBUG [config:] file=/etc/httpd/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. Options: debug debug=1 # Alternate file logger [logger.file:0] level=DEBUG file=/var/log/httpd/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket debug=1 tomcatId=127.0.0.1:8009 [ajp13:127.0.0.1:8009] channel=channel.socket:127.0.0.1:8009 [status:status] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: worker=status:status #* In tomcat, my jk2.properties looks like this #** handler.list=request,container,channelSocket channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 #** And in server.xml the jk connector is configured as this: #** Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector #** In my ssl.conf the configuration is: (UserMan is my web application) #** IfModule mod_jk2.c Location /UserMan JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /admin JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /manager/html JkUriSet worker ajp13:127.0.0.1:8009 /Location /IfModule #** I am using client authentication and everything goes fine. SSL connection is OK and the server ask the web browser for a client certificate. And my application is displayed properly! I am happy up to this moment but... What about asking for SSL parameters from my webapp? I am doing something like this inside a JSP file: String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); Integer keysize = (Integer)request.getAttribute(javax.servlet.request.key_size); X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); String sessionId = (String)request.getAttribute(javax.servlet.request.ssl_session); X509Certificate [] certs = (X509Certificate [])request.getAttribute(org.apache.coyote.request.X509Certificate); I ALLWAYS GET NULL! What more can I do? Is there anybody that had succeded doing this? What about developers? Thanks in advance! And sorry for this long post, but... Thanks again! - To unsubscribe, e-mail: [EMAIL PROTECTED] For
RE: include/WAR
Howdy, One thing I would, try, then is to have a packed WAR without a corresponding Context entry in server.xml. Just the default settings, and let tomcat handle it. Yoav Shapira Millennium ChemInformatics -Original Message- From: Robert L. Brueckmann [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:43 AM To: Tomcat Users List Subject: RE: include/WAR Yoav, Thanks for the reply...yeah I'm a bit long-winded at times...sorry 'bout that. :) Anyways, to answer a few of your questions...my directory structure is as follows...I have a directory called 'application' and in 'application' I have a header.jsp file...then under 'application' I have 5 subdirectories which contain the 5 functionalities of the software. In these subdirectories, all filed have the jsp:include file=../header.jsp call in them to pull header.jsp from the 'application' directory, so they all share this one common header file. This works perfectly when I drop the actual expanded directory structure in the webapps directory and set the docBase in my server.xml to the parent directory of 'application'...but as soon as I war everything up and drop the war in the webapps directory and set the docBase to the war filename in server.xml, I get blank pages in any call I make to any of the files in any of the subdirectories in the application folder. I also have a few files in the 'application' directory that have jsp:include file=header.jsp in them and those all work perfectly in war format and unpacked format...so I looked at the servlet log in the log directory of tomcat and I have a bunch of FileNotFoundExceptions and it shows tomcat trying to access the file like this: /application/import/../header.jsp It's like its trying to access header.jsp in a subdirectory of import with the directory name of '..' instead of using those '..' to traverse up one directory and look for the file. Very strange stuff. I'm using tomcat 4.0.3 (I know it's old but it's too late in the development process and too close to the next release date to change the version of tomcat we're using (which we plan on doing in the next developmental cycle...but for now, this is really just curiosity...if we are forced to leave it expanded, then so be it, but for out installation process, using the WAR would be SO much nicer...and if we can work around this last bit of trouble, we'd be in the clear.) ) As for the getRealPath...we don't use that call often, but we have a section of the application where we import external files the user tells us the filename of and I guess we're just doing it incorrectly...I'll look into your suggestions on the replacement of the getRealPath...thank you for all your help. Rob -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 9:19 AM To: Tomcat Users List Subject: RE: include/WAR Howdy, Not a big fan of short sentence, huh? ;) Is this a tomcat issue or is this a jdk 1.4 issue where the jsp:include calls in my jsp pages that include files from other directories do not work It's probably neither a tomcat issue nor a JDK 1.4 issue. By other directories, do you mean outside the webapp? when the webapp I'm deploying is in WAR format? I have a context setup for Packed or unpacked WAR? Either way, your webapp should not use getRealPath calls: replace them with ServletContext#getResource or getResourceAsStream. getRealPath() calls break as well...is there any way to force Tomcat to autoexpand my WAR file even though I'm setting it up with a context and Yes, set the unpackWARs attribute to true for the Host element where your Context is. You can verify that your WAR is unpacked by looking at the filesystem. Remember, if you're using tomcat 5 it's under a different directory from tomcat 4. realm in server.xml? Or am I stuck going through my entire application and giving absolute paths to all my jsp:include files and writing something to create temporary directories to replace my getRealPath() situations? You should replace your getRealPath calls anyways. You should have relative paths for your inclusions anyways. Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is
Re: Convert Text to Image [OT]
Andoni, Does anyone know of a tool for Converting Text to images so that I can still have image buttons on my site while having it localised? PS: I have taken a look at AcmeGif I am looking to see if there is something better though. Or tutorial help on AcmeGif. Back when I was working for a client on a web-based website builder (don't ask...), we used a tool called Macromedia Generator would could do tons of sexy things like placing text on top of an existing image, with other text effects, too. We paid like a million bucks a day for the licence or something, and we never used the tool to it's fullest extent. What a shame. Anyhow, that tool exists, and it'll do *everything* you want. I guess it depends on the amount of money you want to spend. I always wanted to do a minimal all-Java re-write of the stuff we needed. It would be faster, cheaper, and easier to manage. (MM Generator only ran on WinNT in those days... all those Sun boxes and a single WinNT box for this tool). If I were you, I'd whip up something quick and dirty around the following core: BufferedImage bi = new BufferedImage(-- sizes --); bi.drawImage(0,0,, etc... if you want to have an image underneath); bi.drawString(center coords, messages.getString(hello.world)); Then, either use AcmeGif or Java's JAI package or the always-there-but-never-supported com.sun.image.codec.jpeg package: http://java.sun.com/j2se/1.4.2/docs/guide/2d/api-jpeg/overview-summary.html Good luck, -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: global.asa - Web.xml
Hi Ben, I'm really new to Tomcat/Jsp. Would you be able to send me a sample web.xml as what should I include if i want to use it from my Jsp. That would be a great help.. Thanks in advance, Regards, Divya -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: 15 December 2003 23:31 To: Tomcat Users List Subject: Re: global.asa - Web.xml In your web.xml file: context-param param-namecity_name/param-name param-valueNY/param-value /context-param In your JSP City: %= application.getInitParameter(session-expired-page)% On Monday 15 December 2003 02:40 pm, you wrote: I'm trying to do something as simple as define global constants for my JSP application. In ASP there is a Global.asa file and the closest thing in JSP is of course the web.xml file. I defined a value in my web.xml file and assumed I could retrieve it using the following line: String test = (String) new InitialContext().getAttribute(html.basepath); I've done something similar for Datasources that works just fine but for some reason tyring to retrieve a basic String in a similar manner doesn't work. Can someone please tell me what I am missing? Thanks. - Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache SSL again... those variables are getting me mad!
That's was an example. I allways get NULL for all calls regarding SSL, even with String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); or the key size example. I know that code won't compile... My intention was pointing you to the real problem... I can't access those variables. Thanks! Mark W. Webb wrote: what is null? the certs object ? Why do you have the following 2 lines... X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); X509Certificate [] certs = (X509Certificate [])request.getAttribute(org.apache.coyote.request.X509Certificate); do both of these methods return null? Federico Fernandez Cruz wrote: Sure! This is getting personal... ;-) Apache and Tomcat will not be my friends anymore! :-D Well, I'll try to be a little exhaustive just because sometimes I miss something that is the real point of the question. Let's go. My target is an Apache + Tomcat integration using JK2. Software! Redhat 9.0 Apache 2.0.47 with modssl. Tomcat 5.0.16. JK2 2.0.2 This is what I have done: 1. Install apache properly. Configuration is in /etc/httpd 2. Install tomcat properly. /opt/jakarta-tomcat-5.0.16 3. Compile JK2 2.0.2 from jakarta-connectors because there is a bug in the sources of tomcat that avoid recursivity in mappings like /your_webapp/* 4. Configuration. In httpd.conf I have added these lines: #** LoadModule jk2_module modules/mod_jk2.so #** My workers2.properties looks like this (/etc/httpd/workers2.properties) [logger] level=DEBUG [config:] file=/etc/httpd/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. Options: debug debug=1 # Alternate file logger [logger.file:0] level=DEBUG file=/var/log/httpd/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket debug=1 tomcatId=127.0.0.1:8009 [ajp13:127.0.0.1:8009] channel=channel.socket:127.0.0.1:8009 [status:status] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: worker=status:status #* In tomcat, my jk2.properties looks like this #** handler.list=request,container,channelSocket channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 #** And in server.xml the jk connector is configured as this: #** Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector #** In my ssl.conf the configuration is: (UserMan is my web application) #** IfModule mod_jk2.c Location /UserMan JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /admin JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /manager/html JkUriSet worker ajp13:127.0.0.1:8009 /Location /IfModule #** I am using client authentication and everything goes fine. SSL connection is OK and the server ask the web browser for a client certificate. And my application is displayed properly! I am happy up to this moment but... What about asking for SSL parameters from my webapp? I am doing something like this inside a JSP file: String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); Integer keysize = (Integer)request.getAttribute(javax.servlet.request.key_size); X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); String sessionId = (String)request.getAttribute(javax.servlet.request.ssl_session); X509Certificate [] certs = (X509Certificate
Re: How can I compile Mod_jdk2 ?
William, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Please provide more information. The error message itself, perhaps. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? This does not exist. Binary versions are not available from Jakarta for Linux. It's because you need to compile it against your own apache version and libc version. Sure, you *can* get one from someone else, but it shouldn't be a big deal to compile it. Or maybe send-me the module by e-mail That's a dangerous request. Someone could send you a trojan... I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Check the archives for your specific error message. We've beat this to death like a million times on this list. If your error mesage is not found, just followup your own post with the error and we'll see what we can do. Since you're using Fedora, it's very possible that you are missing some required library. Fedora isn't exactly ready for prime time. :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk only usable from localhost
Jeremy: I just solved the exact same problem on my setup (Apache 1.3.27 - Tomcat 4.1.27 via mod_jk). In my case, it was because I had enclosed the Tomcat config statements in httpd.conf in a virtual host block. I forget why I had done that, but I had asked a lot of questions on this forum during the initial setup period and those posts led me to the configuration I was using; once I got it working on localhost, I was happy for the time being, until it came time to port the setup from my staging machine to the live web. Anyway, as soon as I removed the virtual host config statement, it worked. See http://www.katzenjammer.us/~jford/apache/tomcat/ for details. Jerry Chakravarthy, Sundar wrote: 1. Make sure machine is visible ping computername 2. Make sure apache is serving pages http://computername 3. Make sure tomcat works in standalone mode http://computername:8080 4. Then edit httpd.conf , tomcat's server.xml ( see docs ) http://computername/context -Original Message- From: Jeremy Whitlock [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 6:45 PM To: Tomcat Subject: mod_jk only usable from localhost Tomcat List, I have installed Apache+Tomcat via mod_jk. I have it configured so that I can use Tomcat from Apache but it only works from the localhost. If I: http://localhost/tomcat-docs it works but if I do: http://computername/tomcat-docs http://computerip/tomcat-docs it doesn't work. Is there something special you have to do to make mod_jk work from computers other than localhost? Thanks, Jeremy Whitlock --- MCP/MCSA IT Manager for Star Precision, Inc. Phone: (970) 535-4795 Metro: (303) 926-0559 Fax: (970) 535-0780 Metro Fax: (303) 926-8557 http://www.starprecision.com - 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]
Mime type for authorware content
Hi all I have 2 Tomcat servers - v3.3 and v4.1.27 - (on Windows and IIS) which host a webapp that plays Macromedia Authorware content. The content doesn't play through Tomcat. I suspect it is because of MIME type that is not defined. I searched through mailing list AND archives and can't find anything on authorware. I did find the MIME type definition for Excel:) . . . mime-mapping extensionxls/extension mime-typeapplication/vnd.ms-excel/mime-type /mime-mapping Can anybody help me with the appropriate entry for Authorware content? The relevant extensions are .aam and .aas. Thanks Sarel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can I compile Mod_jdk2 ?
Ok, Il try to give some more details... I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-apache2=/usr/local/apache2\ --with-apach2-include=/usr/local/apache2/include\ --with-apache2-lib=/usr/local/apache2/lib \ then in the end of configure process, I received a message: no apxs given building connector for apche-2.0 configure: error: can't locate /usr/local/apache2 I try to put the slash in the end of the path, but the same error ocourred and try just ./configure too, but then I receive a message: no Webserver Found I forgot to say thatI compiled apache2 from the source Thank's for the help, anyway... Em Qui, 2003-12-18 s 13:56, Christopher Schultz escreveu: William, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Please provide more information. The error message itself, perhaps. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? This does not exist. Binary versions are not available from Jakarta for Linux. It's because you need to compile it against your own apache version and libc version. Sure, you *can* get one from someone else, but it shouldn't be a big deal to compile it. Or maybe send-me the module by e-mail That's a dangerous request. Someone could send you a trojan... I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Check the archives for your specific error message. We've beat this to death like a million times on this list. If your error mesage is not found, just followup your own post with the error and we'll see what we can do. Since you're using Fedora, it's very possible that you are missing some required library. Fedora isn't exactly ready for prime time. :) -chris - 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]
beanutils.BeanComparator
Hi. I am using the org.apache.commons.beanutils.BeanComparator; I am doing the following: Collections.sort(people, new BeanComparator(lastname)); How can I sort by lastname and then by firstname? If I do this: Collections.sort(people, new BeanComparator(lastname)); Collections.sort(people, new BeanComparator(firstname)); It's only sorted by firstname. Please help and best regards. Soren - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: beanutils.BeanComparator
Try asking the commons-user list. This is the tomcat list. -Tim Søren Blidorf wrote: Hi. I am using the org.apache.commons.beanutils.BeanComparator; I am doing the following: Collections.sort(people, new BeanComparator(lastname)); How can I sort by lastname and then by firstname? If I do this: Collections.sort(people, new BeanComparator(lastname)); Collections.sort(people, new BeanComparator(firstname)); It's only sorted by firstname. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and Log4J
Kent, A gothcha to be aware of: if you put log4j.jar in common/lib, all webapps will share the same log4j configuration. This causes a race at server startup - the last one to initialize log4j wins, ie gets it's own settings. Everything else then logs into the same file. This is a symptom of static variables loaded by the same class loader, so all webapps share the same instance of the static log4j variables. I put log4j.jar in each of my webapps' WEB-INF/lib folder to avoid this, then each webapp can configure log4j to it's own requirements. Andy -Original Message- From: Kent Boogaart [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 04:45 To: '[EMAIL PROTECTED]' Subject: RE: Tomcat and Log4J Howdy, Your problem is not log4j, it's commons-logging, which is nearly always the culprit. The issue arises if log4j is in a classloader below commons-logging, so commons-logging doesn't know log4j is there. You're configuring log4j OK, and if you used a log4j Logger rather than a commons-logging Log, you'd see expected behavior. But you're using a commons-logging Log, which uses the commons-logging configuration, which is tied to your server and outputs to the console. Yoav Shapira Millennium ChemInformatics Shapira, Thanks for the advice. I tried using Log4J directly by one of my classes and, like you said, it worked. However, I wanted to stick with commons logging since this is (supposedly) the most flexible logging solution. Therefore, I tried sticking log4j.jar into ${TOMCAT_HOME}/common/lib and log4j.xml into ${TOMCAT_HOME}/common/classes. This worked for Tomcat classes but not my own (my log output was still going to stdout). This had me stumped. After further stuffing around, one of my work collegues mentioned he'd gotten around this problem by including commons-logging.jar and commons-logging-api.jar in his web app. I tried this and it worked. I then removed commons-logging-api.jar from my web app and it still worked. In a way this all kind of makes sense - my web app has its own commons logging package which finds the log4j package and the configuration. However, I am surprised that this was all necessary. I am also surprised that it is (I think) undocumented. Anyways, thanks for your help. Regards, Kent - 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: Loadbalancing with mod_jk2
Try this. -sean [lb:cluster] debug=0 disabled=0 [ajp13:localhost:8009] group=cluster [ajp13:localhost:8010] group=cluster [uri:/foobar/*] group=cluster -Original Message- From: Johann Uhrmann [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 9:33 AM To: Tomcat Users List Subject: Loadbalancing with mod_jk2 Hello, what is the correct way to use JK2 for load balancing? According to the docs, jk2 should support load balancing and graceful shutdown of a worker. (Meaning that a particular worker will not get any new sessions.) This is a snippet my current configuration: [channel.socket:localhost:8009] port=8009 host=127.0.0.1 [channel.socket:localhost:8010] port=8010 host=127.0.0.1 [ajp13:localhost:8009] channel=channel.socket:localhost:8009 [ajp13:localhost:8010] channel=channel.socket:localhost:8010 [uri:/foobar/*] worker=ajp13:localhost:8009 How can I tell jk2 that foobar is served by both tomcat instances? How to tell that tomcat2 should not get new sessions for foobar? Thank You very much, Johann Uhrmann -- Johann Uhrmann xpecto AG | Lindenstrasse 81 | D-84030 Ergolding Telefon: 0700 xpecto 00 (0700 973286 00) Telefax: 0700 xpecto 10 (0700 973286 10) Internet: http://www.xpecto.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This email has been scanned for all viruses by the MessageLabs Email Security System. For more information on a proactive email security service working around the clock, around the globe, visit http://www.messagelabs.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/web.xml
I am trying to setup Tomcat 5 to use a Struts 1.1 application. I keep receiving the following error when trying to acces a struts page. The strange part is that the description of the error changes periodically to different files. A maority of the time it complains about WEB-INF/web.xml, but has also thrown the exact same error with WEB-INF/struts-tiles.tld (it will eventually list all tld's setup in my web.xml file). Below is the error and below that is the web.xml file. Does anyone know what I've done wrong? Thanks. Anna Yates 2003-12-17 17:11:30 StandardWrapperValve[action]: Servlet.service() for servlet action threw exception org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: XML parsing error on file /WEB-INF/web.xml at org.apache.jasper.compiler.TldLocationsCache.init(TldLocationsCache.java:210 ) at org.apache.jasper.compiler.TldLocationsCache.getLocation(TldLocationsCache.j ava:181) at org.apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext .java:516) at org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:457) at org.apache.jasper.compiler.Parser.parseDirective(Parser.java:523) at org.apache.jasper.compiler.Parser.parseElements(Parser.java:1577) at org.apache.jasper.compiler.Parser.parse(Parser.java:171) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:247) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:149) at org.apache.jasper.compiler.ParserController.parse(ParserController.java:135) at org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:237) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:456) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:5 52) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 91) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:301) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:248) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:204) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:742) at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDis patcher.java:506) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:443) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:359) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 69) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:455) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279) 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:743) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:284) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:204) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContext Valve.java:245) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:199) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:195 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:164 ) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:149) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :156) at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContex t.java:151) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:564) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:972) at
RE: How can I compile Mod_jdk2 ?
I'd stick a space between the apache2 and the '\' Does live there and work? Greg -Original Message- From: William Marques [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 16:43 To: Tomcat Users List Subject: Re: How can I compile Mod_jdk2 ? Ok, Il try to give some more details... I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-apache2=/usr/local/apache2\ --with-apach2-include=/usr/local/apache2/include\ --with-apache2-lib=/usr/local/apache2/lib \ then in the end of configure process, I received a message: no apxs given building connector for apche-2.0 configure: error: can't locate /usr/local/apache2 I try to put the slash in the end of the path, but the same error ocourred and try just ./configure too, but then I receive a message: no Webserver Found I forgot to say thatI compiled apache2 from the source Thank's for the help, anyway... Em Qui, 2003-12-18 s 13:56, Christopher Schultz escreveu: William, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Please provide more information. The error message itself, perhaps. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? This does not exist. Binary versions are not available from Jakarta for Linux. It's because you need to compile it against your own apache version and libc version. Sure, you *can* get one from someone else, but it shouldn't be a big deal to compile it. Or maybe send-me the module by e-mail That's a dangerous request. Someone could send you a trojan... I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Check the archives for your specific error message. We've beat this to death like a million times on this list. If your error mesage is not found, just followup your own post with the error and we'll see what we can do. Since you're using Fedora, it's very possible that you are missing some required library. Fedora isn't exactly ready for prime time. :) -chris - 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: How can I compile Mod_jdk2 ?
the \ it's to indicate that all comands is in the same line with one space between the arguments, but thank's at all... Em Qui, 2003-12-18 s 14:48, [EMAIL PROTECTED] escreveu: I'd stick a space between the apache2 and the '\' Does live there and work? Greg -Original Message- From: William Marques [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 16:43 To: Tomcat Users List Subject: Re: How can I compile Mod_jdk2 ? Ok, Il try to give some more details... I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-apache2=/usr/local/apache2\ --with-apach2-include=/usr/local/apache2/include\ --with-apache2-lib=/usr/local/apache2/lib \ then in the end of configure process, I received a message: no apxs given building connector for apche-2.0 configure: error: can't locate /usr/local/apache2 I try to put the slash in the end of the path, but the same error ocourred and try just ./configure too, but then I receive a message: no Webserver Found I forgot to say thatI compiled apache2 from the source Thank's for the help, anyway... Em Qui, 2003-12-18 s 13:56, Christopher Schultz escreveu: William, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Please provide more information. The error message itself, perhaps. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? This does not exist. Binary versions are not available from Jakarta for Linux. It's because you need to compile it against your own apache version and libc version. Sure, you *can* get one from someone else, but it shouldn't be a big deal to compile it. Or maybe send-me the module by e-mail That's a dangerous request. Someone could send you a trojan... I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Check the archives for your specific error message. We've beat this to death like a million times on this list. If your error mesage is not found, just followup your own post with the error and we'll see what we can do. Since you're using Fedora, it's very possible that you are missing some required library. Fedora isn't exactly ready for prime time. :) -chris - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Convert Text to Image [OT]
Use JMagick in a servlet, or use php with freetype and libgd. Make a template button, then add text on the fly. Sean Web Solutions That Work Developing custom web solutions designed specifically to accomplish the unique objectives of our clients. Phone 503-639-2727 Fax 503-639-0807 - Original Message - From: Andoni [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 5:13 AM Subject: Convert Text to Image [OT] Hello, Does anyone know of a tool for Converting Text to images so that I can still have image buttons on my site while having it localised? Thanks, Andoni. PS: I have taken a look at AcmeGif I am looking to see if there is something better though. Or tutorial help on AcmeGif. Acme GIF is at: http://www.acme.com/java/software/Acme.JPM.Encoders.GifEncoder.html Ta. A. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache + Tomcat
Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box? Is so, then what's the secret to compile a functional version of mod_jk2? I downloaded the sources and compiled them. When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: - When tomcat starts: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final -When apache starts: [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 18 14:27:42 2003] [notice] Digest: done [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 Any help is welcome.
RE: Apache + Tomcat
To compile mod_jk2 on linux you require: Apache Portable Runtime (APR) apr-0.9.4.tar.gzhttp://apr.apache.org/ Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/ During the build process if you see the error shown in Table 2?5: Table 2?5:make Error [so] stdErr[so] /usr/bin/ld: cannot fine -lapr [so] collect2: ld returned 1 exit status Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib. ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: Apache + Tomcat Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box? Is so, then what's the secret to compile a functional version of mod_jk2? I downloaded the sources and compiled them. When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: - When tomcat starts: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final -When apache starts: [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 18 14:27:42 2003] [notice] Digest: done [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 Any help is welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Unexpected Redirect to https
- Original Message - From: Adam Hardy [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:26 PM Subject: Re: Unexpected Redirect to https Hi Thanks for responding. The security-constraints are security-constraint display-nameExample Security Constraint/display-name web-resource-collection web-resource-nameProtected Area/web-resource-name !-- Define the context-relative URL(s) to be protected -- url-pattern/jsp/*/url-pattern !-- If you list http methods, only those methods are protected -- http-methodDELETE/http-method http-methodGET/http-method http-methodPOST/http-method http-methodPUT/http-method /web-resource-collection auth-constraint !-- Security roles referenced by this web application -- role-nametomcat/role-name role-namerenter/role-name /auth-constraint user-data-constraint descriptiondummy/description transport-guarantee/ /user-data-constraint /security-constraint Alan On 12/18/2003 12:20 PMnbsp;Alan Halley wrote: Hi, I'm using Tomcat 4.1.29 on XP Home. I trying to configure Form based authentication with a DataSource based Realm. I've followed the server and web.xml given in the examples supplied with Tomcat. When I try to access my protected index.jsp the request gets redirected to the https port, as follows: Authenticator[/FlatMate]: Security checking request GET /FlatMate/jsp/index.jsp Authenticator[/FlatMate]: Checking constraint 'SecurityConstraint[Protected Area]' against GET /jsp/index.jsp -- true Authenticator[/FlatMate]: Subject to constraint SecurityConstraint[Protected Area] Authenticator[/FlatMate]: Calling checkUserData() Authenticator[/FlatMate]: Redirecting to https://localhost:8443/FlatMate/jsp/index.jsp Authenticator[/FlatMate]: Failed checkUserData() test Hi Alan, it's impossible to say what's going on without seeing the security-constraints xml. Post it here and maybe someone can help. Adam -- struts 1.1 + tomcat 5.0.16 + java 1.4.2 Linux 2.4.20 Debian - 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]
This works...
My frien Nuno Faria tell me that: ./buildconf.sh ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And it works!!! Thanks everybody for the help!! Now I'll try to put Apche Working together Tomcat - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat
I have this [EMAIL PROTECTED] apache2]# ls -l /usr/lib/libapr* -rw-r--r--1 root root 169320 Jan 25 2003 /usr/lib/libapr-0.a -rw-r--r--1 root root 707 Jan 25 2003 /usr/lib/libapr-0.la - lrwxrwxrwx1 root root 26 Dec 18 14:16 /usr/lib/libapr-0.so - /usr/lib/libapr-0.so.0.9.2 lrwxrwxrwx1 root root 17 Dec 18 09:38 /usr/lib/libapr-0.so.0 - libapr-0.so.0.9.2 -rwxr-xr-x1 root root 122648 Jan 25 2003 /usr/lib/libapr-0.so.0.9.2 lrwxrwxrwx1 root root 15 Dec 18 13:58 /usr/lib/libapr.so - libapr.so.0.0.0 lrwxrwxrwx1 root root 15 Dec 15 13:07 /usr/lib/libapr.so.0 - libapr.so.0.0.0 -rwxr-xr-x1 root root 118328 Feb 25 2003 /usr/lib/libapr.so.0.0.0 -rw-r--r--1 root root 117652 Jan 25 2003 /usr/lib/libaprutil-0.a -rw-r--r--1 root root 735 Jan 25 2003 /usr/lib/libaprutil-0.la lrwxrwxrwx1 root root 21 Dec 18 09:38 /usr/lib/libaprutil-0.so.0 - libaprutil-0.so.0.9.2 -rwxr-xr-x1 root root85200 Jan 25 2003 /usr/lib/libaprutil-0.so.0.9.2 lrwxrwxrwx1 root root 19 Dec 18 13:58 /usr/lib/libaprutil.so - libaprutil.so.0.0.0 lrwxrwxrwx1 root root 19 Dec 15 13:07 /usr/lib/libaprutil.so.0 - libaprutil.so.0.0.0 -rwxr-xr-x1 root root82868 Feb 25 2003 /usr/lib/libaprutil.so.0.0.0 The link marked with a - was created by me because when I ran 'make', it stops with an error like this: i386-redhat-linux-gcc: /usr/lib/libapr-0.so: No such file or directory make[1]: *** [../../../build/jk2/apache2/jkjni.la] Error 1 - Original Message - From: Asif Chowdhary To: Tomcat Users List ; Walter do Valle Sent: Thursday, December 18, 2003 2:48 PM Subject: RE: Apache + Tomcat To compile mod_jk2 on linux you require: Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/ Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/ During the build process if you see the error shown in Table 2?5: Table 2?5:make Error [so] stdErr[so] /usr/bin/ld: cannot fine -lapr [so] collect2: ld returned 1 exit status Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib. ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: Apache + Tomcat Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box? Is so, then what's the secret to compile a functional version of mod_jk2? I downloaded the sources and compiled them. When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: - When tomcat starts: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final -When apache starts: [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 18 14:27:42 2003] [notice] Digest: done [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 Any help is welcome.
JK2 launching Tomcat
Hi, has any one managed to make jk2 launche Tomcat5.0 from within Apache2 on Linux Box with J2SDK1.4.2 ?? Normal Apache via jk2 tomcat connection works fine. Thanks skruk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache SSL again... those variables are getting me mad!
Does the following return null? If so, your ssl.conf may be messed up. Is the servlet that executes this code running over SSL? java.security.cert.X509Certificate[] certs = (java.security.cert.X509Certificate[])req.getAttribute(javax.servlet.request.X509Certificate) Federico Fernandez Cruz wrote: That's was an example. I allways get NULL for all calls regarding SSL, even with String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); or the key size example. I know that code won't compile... My intention was pointing you to the real problem... I can't access those variables. Thanks! Mark W. Webb wrote: what is null? the certs object ? Why do you have the following 2 lines... X509Certificate [] certs = (X509Certificate [])request.getAttribute(javax.servlet.request.X509Certificate); X509Certificate [] certs = (X509Certificate [])request.getAttribute(org.apache.coyote.request.X509Certificate); do both of these methods return null? Federico Fernandez Cruz wrote: Sure! This is getting personal... ;-) Apache and Tomcat will not be my friends anymore! :-D Well, I'll try to be a little exhaustive just because sometimes I miss something that is the real point of the question. Let's go. My target is an Apache + Tomcat integration using JK2. Software! Redhat 9.0 Apache 2.0.47 with modssl. Tomcat 5.0.16. JK2 2.0.2 This is what I have done: 1. Install apache properly. Configuration is in /etc/httpd 2. Install tomcat properly. /opt/jakarta-tomcat-5.0.16 3. Compile JK2 2.0.2 from jakarta-connectors because there is a bug in the sources of tomcat that avoid recursivity in mappings like /your_webapp/* 4. Configuration. In httpd.conf I have added these lines: #** LoadModule jk2_module modules/mod_jk2.so #** My workers2.properties looks like this (/etc/httpd/workers2.properties) [logger] level=DEBUG [config:] file=/etc/httpd/conf/workers2.properties debug=1 debugEnv=1 [uriMap:] info=Maps the requests. Options: debug debug=1 # Alternate file logger [logger.file:0] level=DEBUG file=/var/log/httpd/jk2.log [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=/var/run/jk2.shm size=100 debug=0 disabled=0 [workerEnv:] info=Global server options timing=1 debug=1 # Default Native Logger (apache2 or win32 ) # can be overriden to a file logger, useful # when tracing win32 related issues logger=logger.file:0 [channel.socket:127.0.0.1:8009] info=Ajp13 forwarding over socket debug=1 tomcatId=127.0.0.1:8009 [ajp13:127.0.0.1:8009] channel=channel.socket:127.0.0.1:8009 [status:status] info=Status worker, displays runtime informations [vm:] info=Parameters used to load a JVM in the server process #JVM=C:\jdk\jre\bin\hotspot\jvm.dll OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/server/lib/commons-logging.jar OPT=-Dtomcat.home=${TOMCAT_HOME} OPT=-Dcatalina.home=${TOMCAT_HOME} OPT=-Xmx128M #OPT=-Djava.compiler=NONE disabled=1 [uri:/jkstatus/*] info=Display status information and checks the config file for changes. group=status: worker=status:status #* In tomcat, my jk2.properties looks like this #** handler.list=request,container,channelSocket channelSocket.port=8009 channelSocket.address=127.0.0.1 channelSocket.maxPort=port+10 #** And in server.xml the jk connector is configured as this: #** Connector port=8009 protocol=AJP/1.3 protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler redirectPort=8443 /Connector #** In my ssl.conf the configuration is: (UserMan is my web application) #** IfModule mod_jk2.c Location /UserMan JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /admin JkUriSet worker ajp13:127.0.0.1:8009 /Location Location /manager/html JkUriSet worker ajp13:127.0.0.1:8009 /Location /IfModule #** I am using client authentication and everything goes fine. SSL connection is OK and the server ask the web browser for a client certificate. And my application is displayed properly! I am happy up to this moment but... What about asking for SSL parameters from my webapp? I am doing something like this inside a JSP file: String cipher = (String)request.getAttribute(javax.servlet.request.cipher_suite); Integer keysize =
Deployment with Symbolic Links
I'm looking for some kind of best practice guidelines. Here's the situation. I'm developing a web application locally and deploying it to a remote server using ant. I am currently packaging up the web app into a WAR file and using the tomcat manager ant tasks to install the web app from the WAR file. When I wish to reload the web app, I am removing it and then reinstalling it. Additionally, the web app would like to have access to an image directory hosted by apache on the same server. I have managed this by creating a symbolic link in the web app's directory that points to the image directory. The problem occurs when I reload the web app - the symbolic link is removed. So, here are my questions: Is using a WAR file the best way to deploy a web app to a remote server? Is there a better way to reload the web app other than to remove and reinstall it? Is there a better way to grant the web app access to the image directory other than the symbolic link? Thus far, I have gotten around the problem by using the exec task to execute a command via SSH. The command rebuilds the symbolic link after the WAR file has been unpacked and installed. I have found, however, that Tomcat does not recognize the link until it has been restarted. Rob Abernethy Dynamic Edge, Inc. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
mod_jk + Apache 1.3 Tomcat 4.1.29 on OSX (Panther)
Is there something special about how to get mod_jk + Apache 1.3/Tomcat 4.1.29 working together on OSX? I was able to successfully configure my Win32 box using these components, but on the OSX platform I get the following Errors: On the page: Forbidden You don't have permission to access /examples/ on this server. Apache/1.3.28 Server at localhost Port 80 In the error_log in /var/log/httpd: [Thu Dec 18 10:34:49 2003] [error] [client 127.0.0.1] (13)Permission denied: access to /examples/ failed because search permissions are missing on a component of the path My mod_jk.log file is zero bytes. I am starting both the Apache Server and Tomcat as root. I have checked the permissions on mod_jk.so. I am not using the auto generation of the mod_jk.conf file, instead I have added the following to my httpd.conf file: # Load MOD JK LoadModule jk_module libexec/httpd/mod_jk.so # Configure Mod JK File JkWorkersFile /tomcat/conf/jk/workers.properties JkLogFile /tomcat/logs/mod_jk_log.txt JkLogLevel info JkMount /examples/*.jsp ajp13 JkMount /examples/servlet/* ajp13 Alias /examples/ /tomcat/webapps/examples/ Directory /tomcat/webapps/examples Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all /Directory Location /*/WEB-INF/* AllowOverride None Deny from all /Location Please, any help would be appreciated! Michael Griffith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Apache + Tomcat
I downloaded, compiled and intalled apr from apache. The error persists. - Original Message - From: Asif Chowdhary To: Tomcat Users List ; Walter do Valle Sent: Thursday, December 18, 2003 2:48 PM Subject: RE: Apache + Tomcat To compile mod_jk2 on linux you require: Apache Portable Runtime (APR) apr-0.9.4.tar.gz http://apr.apache.org/ Apache Portable Runtime Utility (APR) apr-util-0.9.4.tar.gz http://apr.apache.org/ During the build process if you see the error shown in Table 2?5: Table 2?5:make Error [so] stdErr[so] /usr/bin/ld: cannot fine -lapr [so] collect2: ld returned 1 exit status Create a symbolic link libapr-0.so in /usr/lib from /usr/local/apr/lib. ln -s /usr/local/apr/lib/libapr-0.so /usr/lib/libapr-0.so -Original Message- From: Walter do Valle [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 1:41 PM To: [EMAIL PROTECTED] Subject: Apache + Tomcat Is there anyone in the list using sucessfully Apache 2.0.40 or greater and Tomcat 5.0.16 with mod_jk2 v 2.0.2 connector in a linux box? Is so, then what's the secret to compile a functional version of mod_jk2? I downloaded the sources and compiled them. When I try to use the generated files jkjni.so and mod_jk2.so two problems ocurr: - When tomcat starts: INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/lib/httpd/modules/jkjni.so: /usr/lib/httpd/modules/jkjni.so: undefined symbol: apr_md5_final -When apache starts: [Thu Dec 18 14:27:42 2003] [notice] Digest: generating secret for digest authentication ... [Thu Dec 18 14:27:42 2003] [notice] Digest: done [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19850 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19852 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19853 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19854 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19856 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19857 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 [Thu Dec 18 14:27:43 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations [Thu Dec 18 14:27:43 2003] [error] jk2_init() Can't find child 19855 in scoreboard [Thu Dec 18 14:27:43 2003] [error] mod_jk child init 1 -2 Any help is welcome.
RE: 5.0.16 sample deploys!, one recommendation and one question
At 09:12 AM 12/18/03 -0500, you wrote: Howdy, the question is: is there a way to navigate to the servlet without using the servlet mapping. ... Yes, comment in the invoker servlet-mapping in $CATALINA_HOME/conf/web.xml. It's in the Tomcat FAQ. got it! thanks --- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat 4.1 on JDK1.4
Hi all, I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having problems start tomcat 4.1 which used to work fine on JDK1.3.1. I get this exception java.lang.reflect.InvocationTargetException and further down I see java.lang.NullPointerException at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141 ) Please help, Thanks Kal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Deployment with Symbolic Links
Howdy, Is using a WAR file the best way to deploy a web app to a remote server? Yes. Is there a better way to reload the web app other than to remove and reinstall it? You can use the Tomcat Manager's webapp deploy/reload mechanisms, either graphically in the browser or via Ant. Is there a better way to grant the web app access to the image directory other than the symbolic link? There are alternatives, including: - Specifying the image directory name (absolute path) in your web.xml as a context-param or servlet-param, or in another configuration file your app reads. - Specifying the image directory as an env-entry-ref in your web.xml and defining it as a resource in the server, i.e. in server.xml for tomcat. - Including the images in your WAR. - Putting the images in a database. Are you serving images directly out of this directory, i.e. it's part of an img src=... tag? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1 on JDK1.4
Howdy, What version of tomcat 4.1? Not an -LE edition? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:36 PM To: Tomcat Users List (E-mail) Subject: tomcat 4.1 on JDK1.4 Hi all, I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having problems start tomcat 4.1 which used to work fine on JDK1.3.1. I get this exception java.lang.reflect.InvocationTargetException and further down I see java.lang.NullPointerException at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:14 1 ) Please help, Thanks Kal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat 4.1 on JDK1.4
I had a similar problem, and although I don't feel that I figured it out completely, perhaps I can point you in the right direction. It has to do with the classloader, and different bundled functions in 1.4.x vs 1.3. I would look in you lib directories in either your app, or in a combination of the tomcat server lib, common lib, and endorsed to see if you have any older versions of the xml parsers laying around. Many things are in 1.4 that were not in 1.3. If these were included with your build, there are areas of override in the class loader where the older class may have gotten loaded. Check this page out for more info: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html Hope this was of some assistance. Jim -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 2:36 PM To: Tomcat Users List (E-mail) Subject: tomcat 4.1 on JDK1.4 Hi all, I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having problems start tomcat 4.1 which used to work fine on JDK1.3.1. I get this exception java.lang.reflect.InvocationTargetException and further down I see java.lang.NullPointerException at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:141 ) Please help, Thanks Kal - 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: tomcat 4.1 on JDK1.4
Version 4.1.12 Kal -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:42 PM To: Tomcat Users List Subject: RE: tomcat 4.1 on JDK1.4 Howdy, What version of tomcat 4.1? Not an -LE edition? Yoav Shapira Millennium ChemInformatics -Original Message- From: Kal Govindu [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:36 PM To: Tomcat Users List (E-mail) Subject: tomcat 4.1 on JDK1.4 Hi all, I am moving from JDK1.3.1 to JDK1.4 on my Unix AIX machine. I am having problems start tomcat 4.1 which used to work fine on JDK1.3.1. I get this exception java.lang.reflect.InvocationTargetException and further down I see java.lang.NullPointerException at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:14 1 ) Please help, Thanks Kal - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Deployment with Symbolic Links
Yes, I'm serving images directly out of this directory. Web app: /path/to/tomcat/webapps/foo Context: /foo Images: /path/to/apache/images index.jsp contains an image link - src=images/foo.jpg Rob Abernethy Dynamic Edge, Inc. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:42 PM To: Tomcat Users List Subject: RE: Deployment with Symbolic Links Howdy, Is using a WAR file the best way to deploy a web app to a remote server? Yes. Is there a better way to reload the web app other than to remove and reinstall it? You can use the Tomcat Manager's webapp deploy/reload mechanisms, either graphically in the browser or via Ant. Is there a better way to grant the web app access to the image directory other than the symbolic link? There are alternatives, including: - Specifying the image directory name (absolute path) in your web.xml as a context-param or servlet-param, or in another configuration file your app reads. - Specifying the image directory as an env-entry-ref in your web.xml and defining it as a resource in the server, i.e. in server.xml for tomcat. - Including the images in your WAR. - Putting the images in a database. Are you serving images directly out of this directory, i.e. it's part of an img src=... tag? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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: Deployment with Symbolic Links
Howdy, Yes, I'm serving images directly out of this directory. Then I would reduce your options to 2: - Have Apache serve the images, not tomcat, i.e. have the img src point to the Apache server. - Have Tomcat serve the images by including a copy of the images in your WAR file. Symbolic links are not suitable for this task ;) Yoav Shapira Web app: /path/to/tomcat/webapps/foo Context: /foo Images: /path/to/apache/images index.jsp contains an image link - src=images/foo.jpg Rob Abernethy Dynamic Edge, Inc. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 3:42 PM To: Tomcat Users List Subject: RE: Deployment with Symbolic Links Howdy, Is using a WAR file the best way to deploy a web app to a remote server? Yes. Is there a better way to reload the web app other than to remove and reinstall it? You can use the Tomcat Manager's webapp deploy/reload mechanisms, either graphically in the browser or via Ant. Is there a better way to grant the web app access to the image directory other than the symbolic link? There are alternatives, including: - Specifying the image directory name (absolute path) in your web.xml as a context-param or servlet-param, or in another configuration file your app reads. - Specifying the image directory as an env-entry-ref in your web.xml and defining it as a resource in the server, i.e. in server.xml for tomcat. - Including the images in your WAR. - Putting the images in a database. Are you serving images directly out of this directory, i.e. it's part of an img src=... tag? Yoav Shapira This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - 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] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Unable to connect socket
I have a web application which is connecting to another server. While running this under tomcat 4.1.29 on HP-UX, I am not able to open a socket. I have included SocketPermission for all IPs and Ports. I am running with -security option. I can see the following in the Catalina.out log file. access: domain 1 ProtectionDomain (file:/home/aarranz/jakarta-tomcat-4.1.29/bin/bootstrap.jar no certificates) [EMAIL PROTECTED] ( (java.net.SocketPermission *:* connect,resolve) I am not seeing any errors in the log file. I can run this application as a standalone without any issues. Socket connection is done through a set of native libraries, and I have given RuntimePermission for those too. (java.lang.RuntimePermission loadLibrary.*) What am I missing? Do I have to start tomcat as a particular user or something ? Thanks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Illegal State Exception while redirecting
Hello, I am including a jsp header in every jsp page as follows: jsp:include page=ConnInclude_Authenticate.jsp flush=true / In this header, I call a class that checks if the valid user objects exists in session. Otherwise the class returns authentication as false. If the user object donot exist I redirect to another web site using response.sendRedirect. However I get illegal state Exception (java.lang.IllegalStateException at org.apache.coyote.tomcat4.CoyoteResponseFacade.sendRedirect(CoyoteResponseFa cade.java:340) Any suggestions please.. The page of header is as follows: % boolean isAuthenticated = AuthenticationManager.authenticate(request.getParameter(userId)==null?:r equest.getParameter(userId), request.getParameter(password)==null?:request.getParameter(password),s ession); if(!isAuthenticated) { System.out.println(\n AUTHENTICATION FAILED); response.sendRedirect(http://sgtwebdv/gm?format=Sogeti/testAuth/portalHead. shtmlappId=1ul=/reports.jsp); return; } % - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Quick questions about Connector connectionTimeout
Does anyone have any insight on this? Any help at all would be much appreciated. Thank you. Jim -Original Message- From: Howard Jim Sent: Thursday, December 18, 2003 8:48 AM To: [EMAIL PROTECTED] Subject: Quick questions about Connector connectionTimeout My current config looks like this: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8011 minProcessors=5 maxProcessors=150 enableLookups=false redirectPort=443 acceptCount=10 debug=0 connectionTimeout=-1 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ I understand that the connection timeout is disabled with this setting. I searched through the docs, etc, but all I ever found was set the connection timeout in milliseconds. My questions are, where would this matter? Why would I want to enable a timeout here? If this is disabled, and connections are timed out elsewhere (session, etc) shouldn't the processor still terminate normally? I am assuming it is a safegaurd to prevent a run-away situation, but would like some more input. Thanks much, Jim - 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]
Importing the Certificate?
Hello: A read thisin ssl=howto: Import the Chain Certificate into you keystore keytool -import -alias root -keystore your_keystore_filename \ -trustcacerts -file filename_of_the_chain_certificate And finally import your new Certificate keytool -import -alias tomcat -keystore your_keystore_filename \ -trustcacerts -file your_certificate_filename I recevie a email from verisign with a code (like a certificate that I send to they) and I don't know what is a filename_of_the_chain_certificate and your_certificate_filename, because the email only have one certificate, and just do the first part, I a don't know what to do with other. Please tell me what to test the ssl connector. How can I find the chain_certificate and your_certificate_filename,and what they mean. best regards. Owen.
RE: Importing the Certificate?
Go to verisign, there is a chain certificate somewhere on the site (I do not remember where). Justin -Original Message- From: Anibal Constante Brito [mailto:[EMAIL PROTECTED] Sent: Thursday, December 18, 2003 5:37 PM To: Tomcat UserList Subject: Importing the Certificate? Hello: A read this in ssl=howto: * Import the Chain Certificate into you keystore http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif keytool -import -alias root -keystore your_keystore_filename \ -trustcacerts -file filename_of_the_chain_certificate http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif * And finally import your new Certificate http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif keytool -import -alias tomcat -keystore your_keystore_filename \ -trustcacerts -file your_certificate_filename http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif http://jakarta.apache.org/tomcat/tomcat-5.0-doc/images/void.gif I recevie a email from verisign with a code (like a certificate that I send to they) and I don't know what is a filename_of_the_chain_certificate and your_certificate_filename, because the email only have one certificate, and just do the first part, I a don't know what to do with other. Please tell me what to test the ssl connector. How can I find the chain_certificate and your_certificate_filename, and what they mean. best regards. Owen.
Re: jsp.error.attribute.unterminated -- WTF?
At 12:40 AM 19/12/2003, you wrote: in the image: / tag that your using you have to make sure that its descriptor in the tld has rtexprvalue equal to true. for example: attribute namerowsPerPage/name rtexprvaluetrue/rtexprvalue /attribute and even if it is, i think you may not be able to concatinate with text the way you are. try this: % String temp = sectionNames[i] + _off.gif; % image:local file=%= temp % / that is i think the attribute has to be either text or an expression, not both. dave Tried that already, getting the same flamin error, and checking the tld was the first thing that sprang to mind. Unfiortunately, it's correct, and the first occurence (where is shows the error) isn't inside a taglib tag at all :( This is really killing me, _anyone_ out there suffered something similar? -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Way to get Reference to Servlet from Filter?
Hello, I don't think this is possible, but I'm giving it a shot anyway. :) I'd like to get ahold of a servlet reference from within a filter. Is there a way? I have a filter that creates objects and places them within the request scope, but it does it differently for each end-result servlet. I'd like the filter to look at the URI, determine the servlet, and grab the servlet. Then, it can either grab its init-params or just call a special method to get the data it needs. Now, this idea might be broken to begin with. The other idea is to just create a super class for the servlet and handle this base logic from there. If I can use a filter, though, that would be great. Any tips or hints? I hope I wasn't too vague. Thanks very much! Seth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: setting opts to avoid OutOfMemory errors
Hi, David Rees wrote: All increasing the -Xmx256M setting will do is delay the onset of the OOM condition, it won't fix it. If you compile a lot of JSPs, make sure that in the container's web.xml you set the fork attribute of the JspServlet to true or use jikes, otherwise that will leak memory as well. With a machine that has 500M, I wouldn't use more than 256M for Tomcat unless nothing else is running on it. -Dave Sorry but how do I set the fork attribute of the JspServlet to true? This seems like an obvoius memory leak in somewhere IMHO: I run tomcat-4.1.29 SUN JDK 1.4.1 (or 1.4.2 if that matters) and creating this test.jsp htmlhead/headbody % System.gc(); out.print(Runtime.getRuntime().freeMemory()); out.print(\t + Runtime.getRuntime().totalMemory()); out.print(\t + new java.util.Date()); % /body/html and following bash script: while [ 1 ] do /usr/bin/lynx -dump http://localhost:8080/test.jsp /tmp/m.txt touch /usr/local/jakarta-tomcat-4.1.29/webapps/ROOT/test.jsp done slowly crashes the tomcat instance. You can watch the progress via tail -f /tmp/m.txt. Is this how is tomcat supposed to work (on SUN's JDK)? Best regards, David - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rtexprvalue ignored?
Hi All, I've tracked down my problem, and despite tomcat's bogus error reporting the problem is this code: image:local file=%= tmp %_off.gif / Which should work as far as I can tell, since I have rtexprvalue set to true in the .tld file. Is this just being ignored for some reason? Also, is it correct for tomcat to 500 if I move the rtexprvalue element in the xml above the required or name elements? Cheers, -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rtexprvalue ignored?
This is what i was telling you before, the attribute has to be either a expression or a constant, not both. so add the _off.gif part to the tmp variable before you put it in the tags attribute. like this: % String temp = sectionNames[i] + _off.gif; % image:local file=%= temp % / thats what i've done before to fix the problem. dave On Thu, 2003-12-18 at 20:33, Josh G wrote: Hi All, I've tracked down my problem, and despite tomcat's bogus error reporting the problem is this code: image:local file=%= tmp %_off.gif / Which should work as far as I can tell, since I have rtexprvalue set to true in the .tld file. Is this just being ignored for some reason? Also, is it correct for tomcat to 500 if I move the rtexprvalue element in the xml above the required or name elements? Cheers, -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - 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: rtexprvalue ignored? - fixed
At 11:47 AM 19/12/2003, you wrote: This is what i was telling you before, the attribute has to be either a expression or a constant, not both. so add the _off.gif part to the tmp variable before you put it in the tags attribute. like this: % String temp = sectionNames[i] + _off.gif; % image:local file=%= temp % / thats what i've done before to fix the problem. dave Ah, gotcha... Now I see. I misread it, and thought you meant that my problem was within the %= %, not in the tag attribute. Cheers mate. If it helps you any, I also got image:local file=%= tmp + off.gif % / to work, since I'm doing a lot of these lines and assigning tmp to sectionNames[i] above the block. (sent this back to the list so it turns up in the archive, sorry if this pisses anyone off). Again, thanks, have a beer on me. -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rtexprvalue ignored? - fixed
On Thu, 2003-12-18 at 20:53, Josh G wrote: At 11:47 AM 19/12/2003, you wrote: This is what i was telling you before, the attribute has to be either a expression or a constant, not both. so add the _off.gif part to the tmp variable before you put it in the tags attribute. like this: % String temp = sectionNames[i] + _off.gif; % image:local file=%= temp % / thats what i've done before to fix the problem. dave Ah, gotcha... Now I see. I misread it, and thought you meant that my problem was within the %= %, not in the tag attribute. Cheers mate. If it helps you any, I also got image:local file=%= tmp + off.gif % / to work, since I'm doing a lot of these lines and assigning tmp to sectionNames[i] above the block. Right on, I hadn't tried it that way before. I guess as long as the whole attribute inside the expression tag, any expression will work. Makes sense. Have a good one. Again, thanks, have a beer on me. no problem, and i'm heading out to have one now. dave -Josh He likes to run, And then the thing with the.. person.. ... Oh boy, that monkey is going to pay. [ Josh 'G' McDonald ] -- [ Pirion Systems, Brisbane] [ 07 3257 0490 ] -- [ 0415 784 825 ] -- [ http://www.gfunk007.com/ ] - 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: How can I compile Mod_jdk2 ?
I know that ;-) Just wondered if it might make a difference to your shell. Does apxs work on its own and is it there? Greg -Original Message- From: William Marques [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 17:35 To: Tomcat Users List Subject: RE: How can I compile Mod_jdk2 ? the \ it's to indicate that all comands is in the same line with one space between the arguments, but thank's at all... Em Qui, 2003-12-18 s 14:48, [EMAIL PROTECTED] escreveu: I'd stick a space between the apache2 and the '\' Does live there and work? Greg -Original Message- From: William Marques [mailto:[EMAIL PROTECTED] Sent: 18 December 2003 16:43 To: Tomcat Users List Subject: Re: How can I compile Mod_jdk2 ? Ok, Il try to give some more details... I use the jakarta-tomcat-connectors-jk2-2.0.2-src and try this: ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-apache2=/usr/local/apache2\ --with-apach2-include=/usr/local/apache2/include\ --with-apache2-lib=/usr/local/apache2/lib \ then in the end of configure process, I received a message: no apxs given building connector for apche-2.0 configure: error: can't locate /usr/local/apache2 I try to put the slash in the end of the path, but the same error ocourred and try just ./configure too, but then I receive a message: no Webserver Found I forgot to say thatI compiled apache2 from the source Thank's for the help, anyway... Em Qui, 2003-12-18 s 13:56, Christopher Schultz escreveu: William, I trying to compile the mod_jdk from the source version jakarta-tomcat-connectors-jk2-2.0.2 but everytime an error happens. Please provide more information. The error message itself, perhaps. Does anybody know a place where I can get a binary for linux, to connect my apache 2.0.48 and Tomcat 5.0.16 ? This does not exist. Binary versions are not available from Jakarta for Linux. It's because you need to compile it against your own apache version and libc version. Sure, you *can* get one from someone else, but it shouldn't be a big deal to compile it. Or maybe send-me the module by e-mail That's a dangerous request. Someone could send you a trojan... I using Fedora Core box and J2sdk 1.4.2 If this is impossible, maybe someone just has passed for the same troubles ?I have now, and help me with something. Check the archives for your specific error message. We've beat this to death like a million times on this list. If your error mesage is not found, just followup your own post with the error and we'll see what we can do. Since you're using Fedora, it's very possible that you are missing some required library. Fedora isn't exactly ready for prime time. :) -chris - 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] - 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: Quick questions about Connector connectionTimeout
The reason to have the connectionTimeout is to free up the thread to process other requests, instead of blocking to see if the client is going to request anything else. The default value is reasonable to serve up the page + images etc. in one TCP connection. If you have a very high-traffic site, then you usually want to disable keep-alive altogether (so the timeout value (almost) doesn't matter, since Tomcat will serve one request only on the thread). For a low-traffic site, it doesn't usually matter what you do :). Also, this has nothing to do with the session timeout. It is possible that if you leave your browser open when you go to lunch, that the session will timeout but the request thread will still be sitting there waiting for the browser to ask for something else. Howard Jim [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] My current config looks like this: Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8011 minProcessors=5 maxProcessors=150 enableLookups=false redirectPort=443 acceptCount=10 debug=0 connectionTimeout=-1 useURIValidationHack=false protocolHandlerClassName=org.apache.jk.server.JkCoyoteHandler/ I understand that the connection timeout is disabled with this setting. I searched through the docs, etc, but all I ever found was set the connection timeout in milliseconds. My questions are, where would this matter? Why would I want to enable a timeout here? If this is disabled, and connections are timed out elsewhere (session, etc) shouldn't the processor still terminate normally? I am assuming it is a safegaurd to prevent a run-away situation, but would like some more input. Thanks much, Jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fedora (RedHat) Linux and gcj
I saw this in Fedora 2 release schedule. We have set a very aggressive schedule for Fedora Core 2. Red Hat considers two items absolutely stop-ship -- that is, we will slip the release if necessary to include them. These two items are the 2.6 Linux kernel and SELinux functionality integrated into the distribution. Other areas of technology that the Fedora Community (Red Hat and third parties together) will focus on will include GNOME 2.6 (tight schedule, particularly dependent on Gtk+ 2.4), KDE 3.2, more Java software using gcj (Ant, Tomkat, Jakarta, Eclipse, but not Mozilla plugins, AWT, or Swing), and integrating work on other architectures (at least AMD64, and possibly also SPARC). Does anyone have any ideas on Tomcat running under gcj? Does it work well already, and would we expect real performance benefits from it? Since Tomcat (Tomkat) isn't spelled correctly in the release schedule, I don't have a lot of confidence that this means anything. Oscar http://daydream.stanford.edu/tomcat/install_web_services.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB Compliance
This might be a re-post...sorry if it is... Is Tomcat 4.1 (or even 5.0) EJB Compliant? If so, is it compliant with the EJB 1.1 or 2.0 specification? I can't seem to find appropriate documentation. Also, in the Tomcat docs under the Context element, it doesn't even mention the Ejb element, but, of course, it is provided in the sample server.xml file. Thanks Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]