Re: charset problems coming up during runtime
On 11/05/2003 09:31 AM Christoph Lechleitner wrote: I have a really weird problem with charset handling concerning special characters like German umlaute (i.e. ä, ö, ü) (it also concerns characters from French and so on). I have done extensive Google and list searches, but all information I found handles installations that are unable to handle special characters at all, but my problem is a bit different: When Tomcat (4.1.27) starts, my applications handle umlauts absolute correctly (i.e., an ä read from a file or a database is encoded correctly as aamp; by my encoding methods). But, after some (mostly long) runtime, this changes and an ä is suddenly dedected as something completely different, forcing my methods to replace it with a ? or a space. Unfortunately, as the problem does never occur on a freshly started tomcat, it is impossible to reproduce it reliable ;- My observation and research results so far: - The problem occurs before my encoding loop can do it's work, i.e. an 'ä' in a String to be parsed does not match a constcant char 'ä' any more, or in other words ... somestring.charAt(someIndex) == 'ä' is false althoug the character is an 'ä'. This observation does also mean that no output filtering functionality (which AFAIK I do not use) can be the evil. - As it happens with strings read from files as well as with strings read from mysql databases, it seems to be a Tomcat or JRE(?) problem. - As the problem does not exist with a freshly started Tomcat, the general environment (language settings and so on) seem to be correct. - In most cases, the problem starts after days or even weeks without a tomcat restart, but sometimes it occurs only minutes or a few hours after tomcat's start. - It happens with several Sun JDKs from 1.3.1 up to all majar 1.4.x releases, i.e, 1.4.0, 1.4.1, 1.4.2. The software versions used are: - Tomcat 4.1.x (currently I am using 4.1.27) - SuSE Linux 8.1, 8.2, 9.0, kernels 2.4.*, optimized for Athlon family. - I am not using any template-engine or filter-functions of tomcat (as far as I understand it ;-) - System, filesystems, and all applications set to use ANSI respectively ISO-8859-1 / ISO-8859-15, which share the same codes at least for all legacy charachters and German Umlauts. I am not sure if I should blame the JRE or SuSE or the compilers (jikes!?) perhaps (instead of stealing your time), but if my problem is caused by some kind of bug or perhaps by an undetected feature in either of these software, this list is, by far, my best hope to find other victims ;;-)) Any Ideas? Hi Christoph with a difficult-to-reproduce bug like this, you have to narrow down the problem area more. Basically you are saying the problem is with reading these characters from files and databases. Is that correct? When the problem occurs, does tomcat carry on handling incoming characters correctly? e.g. saving them to the DB or file correctly? I mean, how does the problem manifest itself? In the browser, or the database or the logs or other files? Which character set are you using? iso-8859-1 or iso-8859-15? You say you have your OS, your Java, appserver and database all set to use one of these, if I understand correctly. Presumably consistently the one or the other and not a mix? Is this app in production? What sort of load is it handling? I ask to see what the feasibility of changing the appserver is - try the 90 day trial of weblogic for instance. Does that suffer the problem too? What about changing to IBM Java? Or even from Linux to Windows? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
server.xml JNDIRealm
Ok, more nifty questions from myself. The format that the rest of the company uses for NT Authentication is [domain].com\[username] in the username field, and then [pass] in the password field. The NT Admins would really like if my application would do the same (so as not to throw off users). Is it possible to split characters off of the username field before providing them to the userSearch query... ie userSearch=(sAMAccountName={0}) with the [domain].com\ part gone? Justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Client-Auth and Client-Cert??
Hi In my understanding: (1) Client-Auth is set to true: every client who accesses Tomcat must has his own certificate. And the certificate of the CA who issued client certificate must in the truststore list. The default location of the truststore list is at JAVA_HOME/jre/lib/security/cacerts. Question: it is possible to set it in the different location?? (2) Client-Cert is set in the web application configuration file (web.xml) : every client who accesses this web application must has his own trusted certificate. web-app ... login-config auth-methodCLIENT-CERT/auth-method realm-nameClientName/realm-name /login-config ... /web-app Question: in the configuration, what is realm-name represents for??? Is I can define the client list (such as using CN value in the certificate) in the memoryrealm or some other place, to achieve the access control. In other word, I want to only allow selected users to access the web application, of cause, those users must has their own certificate. Can I do this?? Thanks Jack _ Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
rare problem with javac
Hi I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main and I receive the same with javac -h javac -? javac -classpath . Algo.java ...etc I never seen something like this...andy idea ? xl PD: I'm running java on W2K server __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ant tasks problem
Hello allI have a problem that i'm not sure how to go about it.. I want to use ant to help with developement and deployment.I plan to use install and deploy tasksWhen i try to use the install task...i get an error: BUILD FAILED file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception java.io.IOException: java.lang.IllegalState Exception: Context path is already in use: I want to have my website install with this context / but the default /ROOT is already using this contexthow can I remove this context? Below are printouts of my ant list and install results == Ant List: = C:\DEV_WORK\russellpitre.comant list Buildfile: build.xml list: [echo] Listing Installed and Deployed Web Applications ... [list] OK - Listed applications for virtual host localhost [list] /admin:running:0:../server/webapps/admin [list] /webdav:running:0:C:\Program Files\Apache Group\Tomcat 4.1\webapps\webdav [list] /examples:running:0:examples [list] /tomcat-docs:running:0:C:\Program Files\Apache Group\Tomcat 4.1\webapps\tomcat-docs **[list] /:running:1:C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT [list] /manager:running:0:../server/webapps/manager BUILD SUCCESSFUL Total time: 1 second Ant Install error: C:\DEV_WORK\russellpitre.comant install Buildfile: build.xml init: prepare: [echo] Creating russellpitre's war directory ... build: [echo] Building russellpitre ... package: [echo] Packaging russellpitre's web archive file ... [jar] Building jar: C:\DEV_WORK\russellpitre.com\russellpitre.war install: [echo] Installing russellpitre ... [install] FAIL - Encountered exception java.io.IOException: java.lang.IllegalStateException: Context path is already in use BUILD FAILED file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception java.io.IOException: java.lang.IllegalState Exception: Context path is already in use Total time: 2 seconds - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: charset problems coming up during runtime
Sorry for the unintentional double posting. I did suggest my first posting would have been lost. With hindsight I think a temporary DNS problem at our side has deferred my first posting due to lack of sender domain resolvability. kr Christoph Lechleitner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: charset problems coming up during runtime
On Wed, 5 Nov 2003 [EMAIL PROTECTED] wrote: Check the database charset. UTF8 should supports different languages. That will not help concerning data read from files, and it does not explain why everything works fine at tomcat start but starts to work wrong after some time. kr Christoph Lechleitner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Obtaining JK2 binaries for Linux
Quoting Andy Eastham [EMAIL PROTECTED]: Thanks a million, just a few lines but it helped me a lot :) I succeeded in building mod_jk2.so, jkjni.so I had to download apache to get the missing apxs. Now getting busy testing ... Thanks again, Patrick Patrick, I found this, but I did manage to compile them from source. Unfortunately my notes don't seem to be that good, but here they are: build mod_jk2: download connector src: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz gunzip and untar cd jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-java-home=/usr/j ava/j2sdk1.4.2 make Built libraries are: jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/mod_jk2. so jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz/jk/build/jk2/apache2/jkjni.so Copy these libraries into /usr/local/apache2/modules cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules/ cp jakarta-tomcat-connectors-jk2-2.0.2-src/jk/build/jk2/apache2/jkjni.so /usr/local/apache2/modules/ Perhaps the options in configure above may be helpful? Andy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 05 November 2003 12:11 To: Tomcat Users List Subject: Obtaining JK2 binaries for Linux Hi, I try to set up JK2 for Apache/2.0.40 - Jakarta-Tomcat-4.1.29 on RedHat Linux 9.0. I cannot find the binary distribution for the connector, or cannot access it ! The only binary distributions availables are for Solaris and Windows :( I am based in Switzerland and wonder if the smart mirrors redirection process head me to an incomplete mirror ? I tried directly accessing this URL found on some doc (outside Apache.org): http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/rele ase/v1.2.2/bin/linux/i386/ But keep on being redirected to the official Apache binary download page. I also tried building the connector from source (jakarta-tomcat-connectors-jk2-2.0.2-src) but can't manage to have it done. Any link, advice appreciated Patrick - 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: charset problems coming up during runtime
On Wed, 5 Nov 2003, Adam Hardy wrote: Basically you are saying the problem is with reading these characters from files and databases. Is that correct? Yes. When the problem occurs, does tomcat carry on handling incoming characters correctly? e.g. saving them to the DB or file correctly? I will focus this detail the next time I can reproduce the problem. I mean, how does the problem manifest itself? In the browser, or the database or the logs or other files? Basically the problem manifests in producing the html output. i.e., the so far correct data from the DB or file are not getting encoded, the browser gets ? instead of auml; (for ä). If this happens when filling forms with current values of some parameter, the error indirectly finds its way into the DB or file. Which character set are you using? iso-8859-1 or iso-8859-15? You say you have your OS, your Java, appserver and database all set to use one of these, if I understand correctly. Presumably consistently the one or the other and not a mix? AFAIK they are the same except the EURO symbol which we don't need so far. Nevertheless, all components are supposed to use iso-8859-1. Is this app in production? Yes. The problem occurs in a new Application as well as in another which is in production for 2 years now. (So far, we tried to notice the problem each time it occurs and to correct eventual damages manually) What sort of load is it handling? I ask to see what the feasibility of changing the appserver is - try the 90 day trial of weblogic for instance. Does that suffer the problem too? I don't think it's a general system problem. The production site is a shared host server with about 200 virtual webservers, about 50 of it use PHP4 (this includes comples CMS appps), 30 mysql, 20 Perl (including the Webmailer neomail); none of these has a problem with these characters. Btw., the problem also has occured on the development and on the test system, both without any load. What about changing to IBM Java? I am actually thinking about this, perhaps I just try. Or even from Linux to Windows? Windows? The server room has no Windows, it's underground ;- Seriously, Windows is not an option, we need reliable, calculable and trustworthy systems. kr Christoph Lechleitner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
Am Mittwoch, 5. November 2003 19:02 schrieb Javier: Hi I'm trying to compile my first servlet but Iýve problems with javac. Hi - Java Examples in a Nutshell - David Flanagan - page 460 - in the 2nd Edition: Compiling Servlets Your servlet conainer should come with a JAR file that contains the class files for the Servlet API. It will probably be in a file named lib/servlets.jar. You need this JAR file to be able to compile the classes in this chapter. [ remark ... Well - not only those in this book I guess - Jan ... ] Either edit your _CLASSPATH_ environment variable to include the file or place a copy of the file in the lib/jre/ext/ directory of your Java SDK, where the Java VM can find it automatically. Once you have done this, you can compile servlet classes with javac, just as you would compile other Java classes. If you cannot find the Servlet API classes in your servlet container distribution, you should be able to download them from Sun´s web site (http://java.sun.com/products/servlet/;). Be careful to download a version that matches the specifications supported by your servlet container. Hope it helps - Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
Better ... If you already have tomcat, take the JAR from $TOMCAT_HOME/common/lib dir. --- Jan Faerber [EMAIL PROTECTED] wrote: Am Mittwoch, 5. November 2003 19:02 schrieb Javier: Hi I'm trying to compile my first servlet but Iýve problems with javac. Hi - Java Examples in a Nutshell - David Flanagan - page 460 - in the 2nd Edition: Compiling Servlets Your servlet conainer should come with a JAR file that contains the class files for the Servlet API. It will probably be in a file named lib/servlets.jar. You need this JAR file to be able to compile the classes in this chapter. [ remark ... Well - not only those in this book I guess - Jan ... ] Either edit your _CLASSPATH_ environment variable to include the file or place a copy of the file in the lib/jre/ext/ directory of your Java SDK, where the Java VM can find it automatically. Once you have done this, you can compile servlet classes with javac, just as you would compile other Java classes. If you cannot find the Servlet API classes in your servlet container distribution, you should be able to download them from Sun´s web site (http://java.sun.com/products/servlet/;). Be careful to download a version that matches the specifications supported by your servlet container. Hope it helps - Jan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
Javier, Check this out.. http://forum.java.sun.com/thread.jsp?forum=32thread=292032tstart=0trange=15 Vlad At 01:02 PM 11/5/2003, you wrote: Hi I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main and I receive the same with javac -h javac -? javac -classpath . Algo.java ...etc I never seen something like this...andy idea ? xl PD: I'm running java on W2K server __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: V Host
If you don't want to edit your server.xml file, add a anywhere.xml file in webapps dir, with the same code. This is suggested becuase, it helps you change settings easily, without fear of corrupting server.xml file , (for other webapps). --- Dominique Batard [EMAIL PROTECTED] wrote: Put your webapp anywhere, ie C:\anywhere +--anywhere +--images +--WEB-INF +--classes +--listeners +--filters +--compressionFilters +--util Server.xml : appBase must be the absolute path Host name=pjkt debug=0 appBase=C:\anywhere Context path=/PruebaJavier reloadable=true docBase=. / /Host http://pjkt:8080/PruebaJavier Dom - Original Message - From: Javier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 8:49 PM Subject: V Host Hi I want to know if it's possible to configure a virtual host placed outside webapps... and how could I make it... (a simple sample will be helpfull) Thanks in advance jl - 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] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
I could see what the problem is: The PATH is the ariable, in which the various Directories are searched in order. Hence, it is often beneficial to have the env. variable set like: PATH=%JAVA_HOME\bin;%PATH%;. --- Vladimer Shioshvili [EMAIL PROTECTED] wrote: Javier, Check this out.. http://forum.java.sun.com/thread.jsp?forum=32thread=292032tstart=0trange=15 Vlad At 01:02 PM 11/5/2003, you wrote: Hi I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main and I receive the same with javac -h javac -? javac -classpath . Algo.java ...etc I never seen something like this...andy idea ? xl PD: I'm running java on W2K server __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Vladimer Shioshvili QRC Division of Macro International Inc. 7315 Wisconsin Avenue, Suite 400W Bethesda, MD 20814 Phone: (301) 657 3077 ext. 155 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Ant tasks problem
Howdy, How about rm -rf $CATALINA_HOME/webapps/ROOT ;) Yoav Shapira Millennium ChemInformatics -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: Ant tasks problem Hello allI have a problem that i'm not sure how to go about it.. I want to use ant to help with developement and deployment.I plan to use install and deploy tasksWhen i try to use the install task...i get an error: BUILD FAILED file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception java.io.IOException: java.lang.IllegalState Exception: Context path is already in use: I want to have my website install with this context / but the default /ROOT is already using this contexthow can I remove this context? Below are printouts of my ant list and install results == Ant List: = C:\DEV_WORK\russellpitre.comant list Buildfile: build.xml list: [echo] Listing Installed and Deployed Web Applications ... [list] OK - Listed applications for virtual host localhost [list] /admin:running:0:../server/webapps/admin [list] /webdav:running:0:C:\Program Files\Apache Group\Tomcat 4.1\webapps\webdav [list] /examples:running:0:examples [list] /tomcat-docs:running:0:C:\Program Files\Apache Group\Tomcat 4.1\webapps\tomcat-docs **[list] /:running:1:C:\Program Files\Apache Group\Tomcat 4.1\webapps\ROOT [list] /manager:running:0:../server/webapps/manager BUILD SUCCESSFUL Total time: 1 second Ant Install error: C:\DEV_WORK\russellpitre.comant install Buildfile: build.xml init: prepare: [echo] Creating russellpitre's war directory ... build: [echo] Building russellpitre ... package: [echo] Packaging russellpitre's web archive file ... [jar] Building jar: C:\DEV_WORK\russellpitre.com\russellpitre.war install: [echo] Installing russellpitre ... [install] FAIL - Encountered exception java.io.IOException: java.lang.IllegalStateException: Context path is already in use BUILD FAILED file:C:/DEV_WORK/russellpitre.com/build.xml:94: FAIL - Encountered exception java.io.IOException: java.lang.IllegalState Exception: Context path is already in use Total time: 2 seconds - 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]
setting tomcat to listen on port 80
I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
MOD_JK2 Problem
Hi, I am having a problem with mod_jk2. Here are the details: Windows 2000 Apache 2.0.47, running on port 80 Apache Tomcat 4.1.24, running on port 8080 (AJP13 on port 8009) Mod_JK2 v2.0.2 (Pre-Built Binary) I couldn't find jkjni.dll pre-built, so I didn't use JNI. I have included a list of all the config files etc. in a text file (attachment). I've exhausted almost all possibilities trying to connect Apache and Tomcat. It doesn't work. (I've included the Error Log in the textfile.) So please help me out and tell me what the problem is. I don't have a decent C++ compiler (like VC++/G++) - so compiling the source code from scratch is ruled out :( So please help me out. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfreeworkers2.properties --- # Define the communication channel [channel.socket:localhost:8009] info=Ajp13 forwarding over socket tomcatId=localhost:8009 # Define the comunication channel #[channel.jni:jni] #info=The jni channel, used if tomcat is started inprocess # Define the parameters for the Java Virtual Machine #[vm:] #info=Parameters used to load a JVM in the server process #OPT=-Djava.class.path=${TOMCAT_HOME}/lib/tomcat-jni.jar;${TOMCAT_HOME}/lib/tomcat.jar #OPT=-Dtomcat.home=${TOMCAT_HOME} #OPT=-Dcatalina.home=${TOMCAT_HOME} #OPT=-Xmx128M # JNI worker startup handler #[worker.jni:onStartup] #info=Command to be executed by the VM on startup. This one will start tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=start #stdout=${serverRoot}/logs/stdout.log #stderr=${serverRoot}/logs/stderr.log # JNI worker shutdown handler #[worker.jni:onShutdown] #info=Command to be executed by the VM on shutdown. This one will stop tomcat. #class=org/apache/jk/apr/TomcatStarter #ARG=stop # Map the Tomcat examples webapp to the Web server uri space [uri:/examples/*] info=Map the whole webapp httpd.conf -- LoadModule jk2_module modules/mod_jk2.dll (v2.0.2) jk2.properties -- # Set the desired handler list handler.list=apr,request,channelJni # Override the default port for the socketChannel channelSocket.port=8019 # Default: # channelUnix.file=${jkHome}/work/jk2.socket # Just to check if the the config is working shm.file=${jkHome}/work/jk2.shm # In order to enable jni use any channelJni directive channelJni.disabled = 0 # And one of the following directives: # apr.jniModeSo=/opt/apache2/modules/mod_jk2.so # If set to inprocess the mod_jk2 will Register natives itself # This will enable the starting of the Tomcat from mod_jk2 apr.jniModeSo=inprocess server.xml (default, as in distro) -- AJP13 on 8009 config -- x Win2000 x Apache 2.0.47 x Tomcat 4.1.24 x JK2 2.0.2 (Binary) x JDK 1.4.2 x All on localhost (Accessed URL : http://localhost/examples) (Also tried : http://localhost/examples/servlet/HelloWorldExample) error.log - [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [notice] Parent: Created child process 724 [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [notice] Child 724: Child process is running [Wed Nov 05 16:17:53 2003] [error] shm.init(): No file [Wed Nov 05 16:17:53 2003] [error] mod_jk child init 1 0 [Wed Nov 05 16:17:53 2003] [notice] Child 724: Acquired the start mutex. [Wed Nov 05 16:17:53 2003] [notice] Child 724: Starting 250 worker threads. [Wed Nov 05 16:17:58 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:17:58 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:17:58 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:17:58 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:00 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:00 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:00 2003] [error] lb.service() unrecoverable error... [Wed Nov 05 16:18:00 2003] [error] mod_jk.handler() Error connecting to tomcat 12 [Wed Nov 05 16:18:01 2003] [error] workerEnv.init() create slot epStat.0 failed [Wed Nov 05 16:18:01 2003] [error] lb.service() worker failed 12 for ajp13:localhost:8009 [Wed Nov 05 16:18:01 2003] [error]
RE: JNDIRealm...more
Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart, Justin Sent: Tuesday, November 04, 2003 12:39 PM To: Tomcat Users List Subject: RE: JNDIRealm...more I used * as my role-name. Justin -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:38 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Justin, I REALLY appreciate your help. I've been stuck for a while. I believe that Users is a CN . (scanning thru the script, I don't see Users ever set as an OU,
Re: setting tomcat to listen on port 80
I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: tomcat connector 4.1.29 problem
When you say you built the new connector, where did you get your source? From the HEAD of the repository? I know there is some work going on right now on the mod_jk2 connector, to move it to using the APR library exclusively. You might have gotten a version that is in transition. Of course, the error on the older connector seems to indicate an APR problem as well. [EMAIL PROTECTED] 11/5/03 9:36:15 AM I upgraded tomcat from 4.1.24 to 4.1.29. There are two issues with the new connector. 1. If I use the old connector 4.1.24 with tomcat 4.1.29, I got this error but tomcat ran fine. INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.2/jre/lib/i386/libjkjni.so: libapr-0.so.0: cannot open shared object file: No such file or directory 2. So I built new connector 4.1.29 and restarted tomcat. I got the following error and tomcat won't serve my webapps. INFO: JK2: ajp13 listening on /0.0.0.0:8009 [Wed Nov 05 11:04:41 2003] ( info ) [jk_config_file.c (280)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Wed Nov 05 11:04:41 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Wed Nov 05 11:04:41 2003] ( info ) [jk_shm.c (333)] shm.init(): shm file not specified [Wed Nov 05 11:04:41 2003] ( info ) [jk_workerEnv.c (412)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties Nov 5, 2003 11:04:41 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr Nov 5, 2003 11:04:41 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr Nov 5, 2003 11:04:41 AM org.apache.jk.server.JkMain start workers2.properties is located in /usr/local/apache2/conf and readable by everyone. I specified shm file in both jk2.properties and workers2.properties. I found similar postings and replies on the list. That didn't satisfy me. One suggestion is wrong location. If location is a problem, why didn't 4.1.24 connector complain? Does any body have a solution? Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting tomcat to listen on port 80
I should mention I'm running Tomcat on Linux... I'm not sure if that makes any difference. N.K. -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: JWSDP installation in Suse8.0
Suze is not a supported platform http://java.sun.com/webservices/downloads/webservicespack.html -- Jeanfrancois r h wrote: Hi, I tried to install Java web service developer pack 1.3 which has a built in tomcat container on my suse linux 8.0 OS. But I am getting the following message.. # sh jwsdp-1_3-unix.sh -is:javahome /root/j2sdk1.4.2_02/ Using /var/tmp as temporary directory... Searching for Java(TM) 2 Platform, Standard Edition... Initializing InstallShield Wizard... Exception in thread main java.lang.NoClassDefFoundError: JWSDP I have j2sdk in the specified directory and also I changed the enviroment variables JDK_HOME to that path. But it doesnt seem to work. Does anybody has any suggestion? Thanking you in advance.. __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: setting tomcat to listen on port 80
Howdy, Your 8005 error is because you started tomcat before, and shut it down inappropriately, or not at all, so it's still listening on port 8005. 8005 is the default tomcat shutdown port. Shut down the first tomcat properly and completely. Then you'll be able to start on port 80 (and 8005 -- a server shutdown port is always required in addition to the connector port). Yoav Shapira Millennium ChemInformatics -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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 connector 4.1.29 problem
I downloaded connector source from http://apache.mirror.secondchapter.info/jakarta/tomcat-4/v4.1.29/src/ Please ignore issue 1 since I don't use jni. -Original Message- From: Jeff Tulley [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 1:52 PM To: [EMAIL PROTECTED] Subject: Re: tomcat connector 4.1.29 problem When you say you built the new connector, where did you get your source? From the HEAD of the repository? I know there is some work going on right now on the mod_jk2 connector, to move it to using the APR library exclusively. You might have gotten a version that is in transition. Of course, the error on the older connector seems to indicate an APR problem as well. [EMAIL PROTECTED] 11/5/03 9:36:15 AM I upgraded tomcat from 4.1.24 to 4.1.29. There are two issues with the new connector. 1. If I use the old connector 4.1.24 with tomcat 4.1.29, I got this error but tomcat ran fine. INFO: APR not loaded, disabling jni components: java.io.IOException: java.lang.UnsatisfiedLinkError: /usr/local/j2sdk1.4.2/jre/lib/i386/libjkjni.so: libapr-0.so.0: cannot open shared object file: No such file or directory 2. So I built new connector 4.1.29 and restarted tomcat. I got the following error and tomcat won't serve my webapps. INFO: JK2: ajp13 listening on /0.0.0.0:8009 [Wed Nov 05 11:04:41 2003] ( info ) [jk_config_file.c (280)] config.update(): Can't find config file ${serverRoot}/conf/workers2.properties [Wed Nov 05 11:04:41 2003] ( info ) [jk_logger_file.c (184)] Initializing log file stderr [Wed Nov 05 11:04:41 2003] ( info ) [jk_shm.c (333)] shm.init(): shm file not specified [Wed Nov 05 11:04:41 2003] ( info ) [jk_workerEnv.c (412)] workerEnv.init() ok ${serverRoot}/conf/workers2.properties Nov 5, 2003 11:04:41 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr Nov 5, 2003 11:04:41 AM org.apache.jk.apr.AprImpl init INFO: JK2: Initialized apr Nov 5, 2003 11:04:41 AM org.apache.jk.server.JkMain start workers2.properties is located in /usr/local/apache2/conf and readable by everyone. I specified shm file in both jk2.properties and workers2.properties. I found similar postings and replies on the list. That didn't satisfy me. One suggestion is wrong location. If location is a problem, why didn't 4.1.24 connector complain? Does any body have a solution? Jeff Tulley ([EMAIL PROTECTED]) (801)861-5322 Novell, Inc., The Leading Provider of Net Business Solutions http://www.novell.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting tomcat to listen on port 80
Oh, I don't know how to thank you!!! That's it! It finally works Now should we be using port 80 and running as root or should we better use port redirection: /etc/sysconfig/ipchains -I input --proto TCP --dport 80 -j REDIRECT 8080 -I input --proto TCP --dport 443 -j REDIRECT 8443 Thanks for your help. N.K. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:48 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Howdy, Your 8005 error is because you started tomcat before, and shut it down inappropriately, or not at all, so it's still listening on port 8005. 8005 is the default tomcat shutdown port. Shut down the first tomcat properly and completely. Then you'll be able to start on port 80 (and 8005 -- a server shutdown port is always required in addition to the connector port). Yoav Shapira Millennium ChemInformatics -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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]
Problem with JSP to access XML files
Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(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:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:666) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NullPointerException at org.apache.xerces.parsers.AbstractSAXParser.setErrorHandler(Unknown Source) at xpert.DocXML.loadXML(DocXML.java:80) at xpert.Users.checkLogin(Users.java:39) at org.apache.jsp.measurer_jsp._jspService(measurer_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at
Re: charset problems coming up during runtime
On 11/05/2003 07:02 PM Christoph Lechleitner wrote: Basically the problem manifests in producing the html output. i.e., the so far correct data from the DB or file are not getting encoded, the browser gets ? instead of auml; (for ä). If this happens when filling forms with current values of some parameter, the error indirectly finds its way into the DB or file. Which character set are you using? iso-8859-1 or iso-8859-15? You say you have your OS, your Java, appserver and database all set to use one of these, if I understand correctly. Presumably consistently the one or the other and not a mix? AFAIK they are the same except the EURO symbol which we don't need so far. Nevertheless, all components are supposed to use iso-8859-1. Is this app in production? Yes. The problem occurs in a new Application as well as in another which is in production for 2 years now. (So far, we tried to notice the problem each time it occurs and to correct eventual damages manually) What sort of load is it handling? I ask to see what the feasibility of changing the appserver is - try the 90 day trial of weblogic for instance. Does that suffer the problem too? I don't think it's a general system problem. The production site is a shared host server with about 200 virtual webservers, about 50 of it use PHP4 (this includes comples CMS appps), 30 mysql, 20 Perl (including the Webmailer neomail); none of these has a problem with these characters. Btw., the problem also has occured on the development and on the test system, both without any load. What about changing to IBM Java? I am actually thinking about this, perhaps I just try. Or even from Linux to Windows? Windows? The server room has no Windows, it's underground ;- Seriously, Windows is not an option, we need reliable, calculable and trustworthy systems. kr Christoph Lechleitner - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Well OK so now we know the problem: - it lies with the character set interpretation in the HTML output from the database and files - which files? I'm not familiar with file reading or whether you have to specify a character set. - it occurs after random time intervals after starting tomcat. It doesn't ever go away again does it? - the problem is overcome currently by restarting tomcat. This narrows it down to Java or Tomcat basically. So you can forget the OS or the database. - you manually encode umlauted letters into HTML code. I presume you have a filter with a big switch case construct that parses your output strings. Perhaps you should log the output of the ASCII value of the umlauted letters, to see what you are really getting instead of what you should be getting. Where does the filter operate in your app? Obviously you have already fetched your output string from either JDBC or from a file at the point when you apply the filter. It is unlikely that both JDBC and the file-reading processes always go wrong simulataneously. That is the case though? Adam -- struts 1.1 + tomcat 5.0.12 + java 1.4.2 Linux 2.4.20 RH9 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: setting tomcat to listen on port 80
Howdy, You shouldn't run tomcat, or any java program, or any server program open to the outside world, as root. However, only root can bind port 80 on unix. So you have some options: 1. Use tomcat 5.x which can run as a non-root user and still bind to port 80. 2. Use Apache httpd in front of tomcat, apache runs on port 80, tomcat on another port, and apache directs requests for servlets/jsps to tomcat. 3. Use some unix redirections e.g. ipchains to redirect port 80 requests to 8080, where tomcat is running as non-root. 4. Some other options are available, but those are probably the best. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nadia Kunkov [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Oh, I don't know how to thank you!!! That's it! It finally works Now should we be using port 80 and running as root or should we better use port redirection: /etc/sysconfig/ipchains -I input --proto TCP --dport 80 -j REDIRECT 8080 -I input --proto TCP --dport 443 -j REDIRECT 8443 Thanks for your help. N.K. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:48 PM To: Tomcat Users List Subject: RE: setting tomcat to listen on port 80 Howdy, Your 8005 error is because you started tomcat before, and shut it down inappropriately, or not at all, so it's still listening on port 8005. 8005 is the default tomcat shutdown port. Shut down the first tomcat properly and completely. Then you'll be able to start on port 80 (and 8005 -- a server shutdown port is always required in addition to the connector port). Yoav Shapira Millennium ChemInformatics -Original Message- From: V.Karthik Kumar [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:47 PM To: Tomcat Users List Subject: Re: setting tomcat to listen on port 80 I really don't know how to help you. The server.xml file works well in Windows (i've tried it out, on port 80). So, temporarily, till one of us comes up with a solution, start httpd, and give a redirection page to http://yourhost:8080. Tomcat uses more ports such as a Shutdown Port / AJP13 Port etc. This you can see in all the Connector lists in server.xml file. There is nothing wrong in using port 80. It works well on Windows.. But i really don't know why it doesn't work on Linux. (That doesn't answer the question anyway) --- Nadia Kunkov [EMAIL PROTECTED] wrote: I'd like Tomcat 4 to be listening on port 80. I have changed server.xml file to read: Connector name = org.apache.catalina.connector.http.HttpConnector port = 80 . I'm running as root, I know only root can access this port. When I try to start Tomcat (tomcat4 start) I get a message: bind exception - permission denied:80, bind exception - 8005 address already in use. So I found a file /etc/tomcat4/tomcat4.conf where I changed tomcat-user to root. Now when I try to start Tomcat I only have one error: bind exception 8005 address already in use. My httpd is disabled, since we are using Tomcat as web server. In Firewall configuration I added a line with Accept action for port 80. It created an /etc/sysconfig/ipchains file. When I ran netstat -tupan I see no entry for port 80. But there is an entry for port 8005 that reads Java. Could you explain to me what does it all mean? I'm pretty new to this stuff so bear with me. Dies Tomcat need both ports 80 and 8005? Isn't Java mean Tomcat is listening on 8005? Anyway how can I make Tomcat listen on port 80? Just changing server.xml doesn't seem to be enough. Any ideas would be greatly appreciated. Thanks in advance. N.K - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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
Re: Problem with JSP to access XML files
See inline [.] root cause java.lang.NullPointerException at org.apache.xerces.parsers.AbstractSAXParser.setErrorHandler(Unknown Source) at xpert.DocXML.loadXML(DocXML.java:80) What this class actually doing? Seems a null is passed to Xerces? Not sure the problem is with the JSP. Is xpert a kind of library? -- Jeanfrancois at xpert.Users.checkLogin(Users.java:39) at org.apache.jsp.measurer_jsp._jspService(measurer_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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:2417) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(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.invok eNext(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:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:781) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne ction(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:589) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav a:666) at java.lang.Thread.run(Thread.java:536) Apache Tomcat/4.1.29 It's maybe cause of the reference of the XML file. Have I to put c:\path_to_wath_I_want or file://c:/path_to_wath_I_want? Have I to use relatives links or not? The XML file is like this : ?xml version=1.0 encoding=UTF-8 ? - !-- edited with XMLSPY v5 U (http://www.xmlspy.com) by Alexandre (Alexandre) -- - users xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:noNamespaceSchemaLocation=./Xsd/users.xsd user login=nicolas pswd=nicolas status=admin / /users Really thanks to help me resolve this problem Nicolas Fabry - 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: Problem with JSP to access XML files
Howdy, Post the relevant part of Users.java and DocXML.java. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 17) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 k eNext(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:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 81) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn e ction(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 89) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja v a:666) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NullPointerException at org.apache.xerces.parsers.AbstractSAXParser.setErrorHandler(Unknown Source) at xpert.DocXML.loadXML(DocXML.java:80) at xpert.Users.checkLogin(Users.java:39) at org.apache.jsp.measurer_jsp._jspService(measurer_jsp.java:57) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 10) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at
HTTP response header displayed for JSP
When trying to fetch a simple JSP page, the following header displayed on the browser (IE 6.0 on WinXP): HTTP/1.1 200 OK Content-Type: text/plain;charset=ISO-8859-1 Content-Length: 2183 Date: Wed, 05 Nov 2003 19:42:16 GMT Server: Apache Tomcat/4.1.29-LE-jdk14 (HTTP/1.1 Connector) After click the refresh button, the text displayed correctly. But if I click the refresh button again, the above header displayed again. I searched the archive and google and couldn't find anything useful. I also changed some cookie settings in IE and that didn't fix either. The tomcat server is running standalone on a Linux RedHat 9.0 box with j2sdk 1.4.2. Howard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: rare problem with javac
This mailing list is for people that are writing Java servlets that use the Tomcat servlet containers. Are you using Tomcat or are you trying to write a normal Java applet or application? If you are writing a normal Java applet or application, you should look at the Java FAQ by Peter van der Linden. I looked up your question in the FAQ. If you follow this link http://java.sun.com/people/linden/faq_a.html#Getting%20Started and look at question 2 - Why doesn't my Hello World! program compile? - you should get some good suggestions on fixing your problem. If that doesn't help, try the comp.lang.java.programmer newsgroup on Usenet. If you are using Tomcat, what version of Tomcat are you using and what operating system are you using? What is the version of the operating system? Which JSDK are you using? Also, are you using an IDE; if yes, which one? Rhino - Original Message - From: Javier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:02 PM Subject: rare problem with javac Hi I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main and I receive the same with javac -h javac -? javac -classpath . Algo.java ...etc I never seen something like this...andy idea ? xl PD: I'm running java on W2K server __ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree - 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: JNDIRealm...more
Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all users are. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 11:40 AM To: Tomcat Users List Subject: RE: JNDIRealm...more Oh, for the AD LDAP, I've been using the programs that came with Active Directory. There is also an ldp.exe, I dunno where that came from, but that's pretty useful. -Original Message- From: Hart,
Re: Problem with JSP to access XML files
(xpert is a package for all my classes) I put in attachements the differents files who are responsibles of this error. The error appears in the method LoadXML in the DocXML.java file the line wich is the cause of this problem is : myReader.setErrorHandler(exh); Thank you very much for your help - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:50 PM Subject: RE: Problem with JSP to access XML files Howdy, Post the relevant part of Users.java and DocXML.java. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 17) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 k eNext(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:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 81) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn e ction(Http11Protocol.java:549) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:5 89) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPoo l.ja v a:666) at java.lang.Thread.run(Thread.java:536) root cause java.lang.NullPointerException at org.apache.xerces.parsers.AbstractSAXParser.setErrorHandler(Unknown Source) at xpert.DocXML.loadXML(DocXML.java:80) at
RE: Problem with JSP to access XML files
Howdy, You're call setErrorHandler with a null argument (exh) is null. That's why the error happens. Make sure you have an actual error handler that's not null before you call that method. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:14 PM To: Tomcat Users List Subject: Re: Problem with JSP to access XML files (xpert is a package for all my classes) I put in attachements the differents files who are responsibles of this error. The error appears in the method LoadXML in the DocXML.java file the line wich is the cause of this problem is : myReader.setErrorHandler(exh); Thank you very much for your help - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:50 PM Subject: RE: Problem with JSP to access XML files Howdy, Post the relevant part of Users.java and DocXML.java. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 17) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 k eNext(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:193) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:7 81) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process Conn e
Re: Slow response times
On Wed, November 5, 2003 at 9:14 am, Turansky, Mark wrote: Tomcat 4.1.27 is running in my company's DMZ. Users external to my company's network see the normal, fast response times from Tomcat. On my cable modem at home, it is very fast to respond. Users internal to my company's network (behind our firewall) see very slow response times, often several seconds. On my desktop in the office, it is very slow. This happens with Tomcat running on port 8080 and port 80. This problem does *not* occur with websites on IIS in our DMZ. It does not occur with Tomcat inside our firewall in a development environment. any idea why this lag would occur? Any known issues regarding Tomcat and firewalls? Try setting enableLookups to false in your connectors. It defaults to true in the default server.xml, but I think it should probably default to false. -Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with JSP to access XML files
What is strange is that exactly the same program is running on another PC (but with Windows XP -- I don't think the problem is that one). Thus, Is it really the java code the problem? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:18 PM Subject: RE: Problem with JSP to access XML files Howdy, You're call setErrorHandler with a null argument (exh) is null. That's why the error happens. Make sure you have an actual error handler that's not null before you call that method. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:14 PM To: Tomcat Users List Subject: Re: Problem with JSP to access XML files (xpert is a package for all my classes) I put in attachements the differents files who are responsibles of this error. The error appears in the method LoadXML in the DocXML.java file the line wich is the cause of this problem is : myReader.setErrorHandler(exh); Thank you very much for your help - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:50 PM Subject: RE: Problem with JSP to access XML files Howdy, Post the relevant part of Users.java and DocXML.java. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 17) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.jav a:17 2 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java: 480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at
Re: Problem with JSP to access XML files
Check your xerces version. Are they the same? Still make sure you don't pass a null -- Jeanfrancois Nicolas Fabry wrote: What is strange is that exactly the same program is running on another PC (but with Windows XP -- I don't think the problem is that one). Thus, Is it really the java code the problem? - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:18 PM Subject: RE: Problem with JSP to access XML files Howdy, You're call setErrorHandler with a null argument (exh) is null. That's why the error happens. Make sure you have an actual error handler that's not null before you call that method. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 3:14 PM To: Tomcat Users List Subject: Re: Problem with JSP to access XML files (xpert is a package for all my classes) I put in attachements the differents files who are responsibles of this error. The error appears in the method LoadXML in the DocXML.java file the line wich is the cause of this problem is : myReader.setErrorHandler(exh); Thank you very much for your help - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:50 PM Subject: RE: Problem with JSP to access XML files Howdy, Post the relevant part of Users.java and DocXML.java. Yoav Shapira Millennium ChemInformatics -Original Message- From: Nicolas Fabry [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:34 PM To: Tomcat Users List Subject: Problem with JSP to access XML files Hello, I have a problem since one week. I have to upgrade an existing system working with JSP and XML files. There is a login page written in .jsp and the login/password are written in a XML file. Any time I try tu access the system (by loggin), a compilation error appear. I'm using TOMCAT 4.1.29 and J2SDK 1.4.1_05. It's a little bit long, but you can have a look just to the firsts lines of the ROOT CAUSE (and the exception) HTTP Status 500 - --- - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j ava: 2 54) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295 ) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applic atio n FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFil terC h ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVal ve.j a va:256) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 a va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticato rBas e .java:494) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(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 17) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.jav a:18 0 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherV alve . java:171) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext. invo k eNext(StandardPipeline.java:641) at
Re: Connector Problem
lohcl When following the following procedure to build the connector, [snip ..] lohcl Following error occur, pls help ... lohcl BUILD FAILED lohcl file:/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/build.xml:222: lohcl java.io.IOException: libtool: not found You need to have the tools automake and autoconf installed on your system to run buildconf.sh. But in recent bundled of jakarta-tomcat-connectors, you might be able to skip that step and just run ./configure. Libtool is needed as well. -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: rare problem with javac
On 05/11/2003 at 13:21 Vladimer Shioshvili wrote: Javier, Check this out.. http://forum.java.sun.com/thread.jsp?forum=32thread=292032tstart=0trange =15 Thanks a lot !!! jl - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JNDIRealm...more
Thanks for the pointer, I'll see about pointing to one of our 2 mail servers. I wonder if they talk back and forth. Also, Do you know how I can extract the sign-ed on user's user-id once they've authenticated? robyne -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:06 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Great to hear that information worked for you. I included the alternateURL in the event our primary AD went down for one reason or another and our users could still access the password protected sites. Without an alternate AD active or specified you will not have access to your web applications. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Wed 11/5/2003 13:46 To: Tomcat Users List Cc: Subject:RE: JNDIRealm...more Dean! Mine works! A thousand thanks! I hope I can return the favor some time. Your nice explanation helped. I did not need the alternatURL in mine. I found out that we have 2 mail servers, well the server.xml only allows for 1 alternate. I decided to try it without any and it worked. Much appreciation, Robyne Vaughn -Original Message- From: Dean Searle [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 9:48 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Hello, I hope that I am not to late to post here. I have just returned to the land of the living and have started to catch up on my reading. I noticed that Robyne you were trying to find the collective all for your users. I have just recently figured this out after working on it for two days. Here is my working server.xml: Realm className=org.apache.catalina.realm.JNDIRealm debug=99 connectionURL=ldap://your.AD.com; alternateURL=ldap://other.AD.com; connectionName=cn=USER DISPLAY NAME,ou=FIRST SUB-GROUP,dc=AD,dc=com connectionPassword=XX referrals=follow userBase=dc=AD,dc=com userSearch=(amp;(sAMAccountName={0})(objectClass=user)) userSubtree=true roleBase=dc=AD,dc=com roleSearch=(uniqueMember={0}) roleName=cn / KEY: cn = common name ou = organizational unit dc = domain controller your.AD.comwww.yahoo.com other.AD.com mail.yahoo.com USER DISPLAY NAME This is the full name that shows up in your AD, ie user might be johnd but full name is John Doe. For the connection name and password, it must be user that has authority to access AD. This part is necessary to connect. FIRST SUB-GROUP This depends on how your organization is built in AD. You might have departments like: Accounting, Human Resources, Information Technologies. In an AD structure it might look something like this: COM | |_Yahoo | | |_Accounting | |_John Doe | |_Information Technologies ||_Jack Daniels | |_Human Resources |_Mary Jane sAMAccountName is the account name you most commonly login into your computers with objectClass=user this should be user, as defined in AD unless your sys admin or someone has tampered the AD. referrals=follow this is necessary to traverse the full AD without knowing the user's base location. I hope that this clears up some issues for you. Please let me know if I can help you more. Dean E. Searle Computing Oasis 989.245.7369 (P) 989.921.3904 (F) -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:25 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks. -Original Message- From: Hart, Justin [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 12:10 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Good luck. -Original Message- From: Robyne Vaughn [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2003 1:07 PM To: Tomcat Users List Subject: RE: JNDIRealm...more Thanks, Justin, You've given me some good pointers. I guess I'll do some more hammering and snooping. Our AD is on a server and the administrators gave me an administrator type password to try hitting it with, but they don't want me snooping around too much. I don't actually have direct access to it. Like I said, I have hit it with some JNDI, but that is new to me also, and I still couldn't discover the tree structure adequately. Anyway, I guess I'll try to pull things out of the loading script and my LDAP books. It's so frustrating. I can't find and the administrators don't know where the collective all of our users are located. They found an example script, used it, and don't really know what they have yet. I really appreciate your time. Thanks, Rob Ps I expect I'll have more questions later. Right now, I'm still stuck just figuring out where all
ServletContext.log Where?!
Hi, I'm trying to log messages in the ServletContext.log, but after I ran the application did not find where the log is? The documentation asks me to consult the Application Server Documentation!! but I couldn't find it anywhere? Can someone kindly hint me out on where is the log? thanks. Notes: its not in the catalina.out nor the localhost_myapp_log.xxx.txt!!!
RE: Connector Problem
Linux's libtools is needed. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: November 5, 2003 3:33 PM To: Tomcat Users List Subject: Re: Connector Problem lohcl When following the following procedure to build the connector, [snip ..] lohcl Following error occur, pls help ... lohcl BUILD FAILED lohcl file:/PTSDEV/jakarta-tomcat-connectors-4.1.27-src/jk/native/build.xml:222: lohcl java.io.IOException: libtool: not found You need to have the tools automake and autoconf installed on your system to run buildconf.sh. But in recent bundled of jakarta-tomcat-connectors, you might be able to skip that step and just run ./configure. Libtool is needed as well. -- Steve - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: RE : memory-leaks in servlets, tool for tracing ?
Laurent, What about classes with static method and/or static attributes ? Are they deleted from the old webapp ? I don't believe that the VM ever releases resources taken up by Class objects (I think this includes static resources for a class). There used to be a VM option, -noclassgc, that was often used so that instance-less Classes wouldn't get GC'd. Almost everyone who ran Java apps turned that option on. I'm not even sure if that option is still available. They may have simply eliminated the GC'ing of Class objects altogether. I know that in my stock tc 4.1.27 on Sun's 1.4.2 VM, that after a re-load, all the old Class objects stick around. It's quite disconcerting because the heap grows by around 600 classes every time a context-reload occurs. The solution, of course, is not to enable context-reloading on production :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat 4 losing session (may be related to Win XP)
Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Slow response times
Mark, Tomcat 4.1.27 is running in my company's DMZ. Users external to my company's network see the normal, fast response times from Tomcat. On my cable modem at home, it is very fast to respond. Users internal to my company's network (behind our firewall) see very slow response times, often several seconds. On my desktop in the office, it is very slow. This happens with Tomcat running on port 8080 and port 80. This problem does *not* occur with websites on IIS in our DMZ. It does not occur with Tomcat inside our firewall in a development environment. Is it possible that someone has turned-on some kind of Quality Of Service (QoS) settings on the firewall, which sets ports 80 and 8080 as low-priority? If so, then your internal users may have sluggish connections because packets destined for other ports are cutting in line. If this is the case, you'll have to convince your sysadmin to change the QoS settings. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OT] Re: Tomcat 4 losing session (may be related to Win XP)
for those of you who want to run their oracle, beware that oracle will grab the port 8080 from your system (the tomcat port) you can either change tomcat (conf/server.xml) or oracle (see scripts below) as sysdba execute call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081)) then restart Oracle, reference below http://www.interealm.com/technotes/roby/xdb_ports.html - Original Message - From: Longley, Andrew [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:27 PM Subject: Tomcat 4 losing session (may be related to Win XP) Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.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: rare problem with javac
Javier, I'm trying to compile my first servlet but Iýve problems with javac. If I try to run javac without parameters I receive the message: Exception in thread main java.lang.NoClassDefFoundError: com/sun/tools/javac/Main So, this happens if you invoke javac both with and without parameters? I'd say that's less than rare. Is %JAVA_HOME%\bin in your path? Does %JAVA_HOME%\lib\tools.jar exist? If not, re-install your JDK, cause it's broken. -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with mod_jk2
Two prefaces... 1) I hope this is the right list. I didn't see one specifically for mod_jk/mod_jk2. 2) I've read all the doc's I can find. I've been reading and trying for the last two days. Please don't send me replies telling me to RTM. The whole reason for my post is that I'm stuck and think I'm dealing with mod_jk docs not being updated for mod_jk2. I have a RH Linux ES 2.1 server. It has apache 1.3.27 installed via RH's up2date. I also have mod_ssl, and a few other mod's. The apache part is up and running correctly on non-standard ports, but I've tested it with local telnets and remotely through a web-browser. Our original configuration on the server was just pure Tomcat (4.1.27) listening on port 80. We wanted to add SSL support (port 443) and split our services at the same time, allowing us to later have Tomcat and Apache on different servers, hence why I installed Apache. I've spent the last two days reading the relevant portions of WROX's Professional Apache Tomcat and loads of information on the jakarta.apache.org site. Unfortunately, it seems that a lot of the docs (and my book) are still referencing mod_jk syntax options and causing me confusion trying to use mod_jk2. My apache and mod_ssl are from RPM, not source. My Tomcat (ver. 4.1.27... need to get this working before going to 4.1.29) is from a binary (jakarta-tomcat-4.1.27.tar.gz). My mod_jk2 is from jakarta-tomcat-connectors-jk2-src-current.tar.gz and was built by cd'ing into ~/jk/native2, then running 'buildconf.sh' and then 'configure --with-apxs=/usr/sbin/apxs'. The file mod_jk2.so was created and I copied it to my modules directory (/usr/lib/apache - stock on RH ES 2.1). I have the following in my server.xml: !-- Define an AJP 1.3 Connector on port 8009 -- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ I've created a workers.properties file in /usr/jakarta-tomcat-4.1.27/conf/jk. It looks like this: # Setting variables workers.tomcat_home=/usr/tomcat workers.java_home=/usr/java/j2sdk1.4.1_04 ps=/ worker.list=TomcatWorker1 # Settings for TomcatWorker1 worker worker.TomcatWorker1.port=8009 worker.TomcatWorker1.host=localhost worker.TomcatWorker1.type=ajp13 Lastly, I've added the following to the end of my httpd.conf: # Load mod_jk2 LoadModule jk2_module modules/mod_jk2.so # Configure mod_jk2 JkWorkersFile /etc/httpd/conf/workers2.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkMount /usr/tomcat/webapps/Genvault/*.jsp TomcatWorker1 Here's my problem. When I run apachectl configtest, I get: [Wed Nov 05 23:27:15 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd Create config for main host Syntax error on line 1499 of /etc/httpd/conf/httpd.conf: Invalid command 'JkWorkersFile', perhaps mis-spelled or defined by a module not included in the server configuration Obviously the module is loading. I even tried the AddModule directive, but it just tells me the module is already loaded. I tried commenting out the 'JkWorkersFile' parameter, but it just errors on the next line: [Wed Nov 05 23:28:56 2003] ( info) [mod_jk2.c (208)]: Set serverRoot /etc/httpd Create config for main host Syntax error on line 1500 of /etc/httpd/conf/httpd.conf: Invalid command 'JkLogFile', perhaps mis-spelled or defined by a module not included in the server configuration Any thoughts on how to get this working? I feel like I'm real close, but missing something obvious. I've searched around google and found a post saying to use jk2.properties instead of workers.properties for mod_jk2. I've tried this and the appropriate path change, but it didn't work. The post also said to put in in apache's conf dir and it will look for it there (/etc/httpd/conf). I tried that and it didn't work either. Reference: http://zarb.org/pipermail/jpackage-discuss/2003-July/002573.html -- Andrew Davis, Founder SoCalLinuxSolutions [EMAIL PROTECTED] 760-525-4689 SoCalLinuxSolutions.com Linux Consultation Integration Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP response header displayed for JSP
Howard, When trying to fetch a simple JSP page, the following header displayed on the browser (IE 6.0 on WinXP): HTTP/1.1 200 OK Content-Type: text/plain;charset=ISO-8859-1 Content-Length: 2183 Date: Wed, 05 Nov 2003 19:42:16 GMT Server: Apache Tomcat/4.1.29-LE-jdk14 (HTTP/1.1 Connector) Maybe M$ is intentionally breaking for sites which run OSS :) -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletContext.log Where?!
Hatem, AbouHassan wrote: I'm trying to log messages in the ServletContext.log, but after I ran the application did not find where the log is? [snip] its not in the catalina.out nor the localhost_myapp_log.xxx.txt!!! You should have a Logger entry in your server.xml file for the context in question. This will specify the log file. Generally, that file appears in $TOMCAT_HOME/logs/[logname]. If you are running from a shared install of Tomcat, then you'll find those logs at $CATALINA_HOME/logs -chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: [OT] Re: Tomcat 4 losing session (may be related to Win XP)
Do you also have a get_this_crap_off_my_system script I can borrow. Thanks Chuck -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:32 PM To: Tomcat Users List Subject: [OT] Re: Tomcat 4 losing session (may be related to Win XP) for those of you who want to run their oracle, beware that oracle will grab the port 8080 from your system (the tomcat port) you can either change tomcat (conf/server.xml) or oracle (see scripts below) as sysdba execute call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081)) then restart Oracle, reference below http://www.interealm.com/technotes/roby/xdb_ports.html - Original Message - From: Longley, Andrew [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:27 PM Subject: Tomcat 4 losing session (may be related to Win XP) Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [OT] Re: Tomcat 4 losing session (may be related to Win XP)
Do you also have a get_this_crap_off_my_system script I can borrow. that is what you pay $1MM license fees to oracle for, ask them :) Filip - Original Message - From: Goehring, Chuck Mr., RCI - San Diego [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:42 PM Subject: RE: [OT] Re: Tomcat 4 losing session (may be related to Win XP) Do you also have a get_this_crap_off_my_system script I can borrow. Thanks Chuck -Original Message- From: Filip Hanik [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:32 PM To: Tomcat Users List Subject: [OT] Re: Tomcat 4 losing session (may be related to Win XP) for those of you who want to run their oracle, beware that oracle will grab the port 8080 from your system (the tomcat port) you can either change tomcat (conf/server.xml) or oracle (see scripts below) as sysdba execute call dbms_xdb.cfg_update(updateXML(dbms_xdb.cfg_get(), '/xdbconfig/sysconfig/protocolconfig/httpconfig/http-port/text()',8081)) then restart Oracle, reference below http://www.interealm.com/technotes/roby/xdb_ports.html - Original Message - From: Longley, Andrew [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:27 PM Subject: Tomcat 4 losing session (may be related to Win XP) Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.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] - 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: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml Context = localhost When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote: I'm having the same problems, Tony. I got mod_jk2 compiled and tried to setup the connection between Apache 2.0.47 and Tomcat 4.1.29. I get the missing child (children ? ;)) errors, but I was able to get the servlets and JSPs working, though they spit out errors occasionally. Can you post your jk2.properties and workers2.properties? I'm trying to update my HOWTO (http://cymulacrum.net/tomcat/tomcat_toc.html) because it
Re: Problem with mod_jk2
On Wed, 5 Nov 2003, Andrew Davis wrote: I've created a workers.properties file in /usr/jakarta-tomcat-4.1.27/conf/jk. It looks like this: # Setting variables workers.tomcat_home=/usr/tomcat workers.java_home=/usr/java/j2sdk1.4.1_04 ps=/ worker.list=TomcatWorker1 # Settings for TomcatWorker1 worker worker.TomcatWorker1.port=8009 worker.TomcatWorker1.host=localhost worker.TomcatWorker1.type=ajp13 The syntax of the workers file is different for jk2. It should be called workers2.properties and be put in your apache conf directory. The documentation is a little light, but you can see the tomcat website for some examples of what it should look like at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html Lastly, I've added the following to the end of my httpd.conf: # Load mod_jk2 LoadModule jk2_module modules/mod_jk2.so # Configure mod_jk2 JkWorkersFile /etc/httpd/conf/workers2.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkMount /usr/tomcat/webapps/Genvault/*.jsp TomcatWorker1 You don't need anything but the LoadModule line for jk2. The other stuff is configured in the workers2.properties file. The documentation for this is extremely light, but might be somewhat helpful. Check http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/installhowto.html Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP response header displayed for JSP
Howard Lin wrote: When trying to fetch a simple JSP page, the following header displayed on the browser (IE 6.0 on WinXP): HTTP/1.1 200 OK Content-Type: text/plain;charset=ISO-8859-1 Content-Length: 2183 Date: Wed, 05 Nov 2003 19:42:16 GMT Server: Apache Tomcat/4.1.29-LE-jdk14 (HTTP/1.1 Connector) After click the refresh button, the text displayed correctly. But if I click the refresh button again, the above header displayed again. I searched the archive and google and couldn't find anything useful. I also changed some cookie settings in IE and that didn't fix either. The tomcat server is running standalone on a Linux RedHat 9.0 box with j2sdk 1.4.2. I don't know about this issue, but you're using a deprecated HTTP connector. Try the default one. -- x Rémy Maucherat Senior Developer Consultant JBoss Group (Europe) SàRL x - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat + JK2 == dynamic Host (subdomain) ?
Hi, My configuration : apache + tomcat5 + jk2 I've got my site www.mysite.com which points on my webapp. I'd like to create dynamicaly hosts like user1.mysite.com, user2.mysite.com, ... I manage my DNS, *.mysite.com is directed towards good IP of the Apache server == If i ping user1.mysite.com all is ok. In Apache, i have a virtual host www.mysite.com with an alias *.monsite.com == all is ok here. In tomcat : Host name=www.myste.com debug=0 appBase=/home/jakarta-tomcat/webapps unpackWARs=true autoDeploy=true Context path= docBase=mysite debug=0/ Alias*.mysite.com/Alias /Host Here is my JK2 configuration : [uri:www.mysite.com/*] worker=ajp13:localhost:8019 == OK, www.mysite.com is ok and display my webapp But if i try : [uri:*.mysite.com] worker=ajp13:localhost:8019 or [uri:*.mysite.com] worker=ajp13:localhost:8019 == when i try to display user1.mysite.com , it doesn't work !!! In fact, i found that *.mysite.com is not redirected to Tomcat because if i try user1.mysite.com/INDEX.JSP, it displays the source of my jsp file, it is not interpreted by Tomcat !!! Do you understand my problem ? Is there a solution ? Sorry for my poor english ;o( Thanx - Do You Yahoo!? -- Une adresse @yahoo.fr gratuite et en français ! Testez le nouveau Yahoo! Mail
Re: Problem with mod_jk2
Thanks. That helps. I'm playing with the options now. I notice, however, that in the examples at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html there are no options for specifying the path to java or tomcat anymore as there were in the mod_jk workers.properties file. Is this oversight, assumption, or is it simply no longer needed? AD [EMAIL PROTECTED] wrote: On Wed, 5 Nov 2003, Andrew Davis wrote: I've created a workers.properties file in /usr/jakarta-tomcat-4.1.27/conf/jk. It looks like this: # Setting variables workers.tomcat_home=/usr/tomcat workers.java_home=/usr/java/j2sdk1.4.1_04 ps=/ worker.list=TomcatWorker1 # Settings for TomcatWorker1 worker worker.TomcatWorker1.port=8009 worker.TomcatWorker1.host=localhost worker.TomcatWorker1.type=ajp13 The syntax of the workers file is different for jk2. It should be called workers2.properties and be put in your apache conf directory. The documentation is a little light, but you can see the tomcat website for some examples of what it should look like at http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html Lastly, I've added the following to the end of my httpd.conf: # Load mod_jk2 LoadModule jk2_module modules/mod_jk2.so # Configure mod_jk2 JkWorkersFile /etc/httpd/conf/workers2.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel info JkMount /usr/tomcat/webapps/Genvault/*.jsp TomcatWorker1 You don't need anything but the LoadModule line for jk2. The other stuff is configured in the workers2.properties file. The documentation for this is extremely light, but might be somewhat helpful. Check http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/installhowto.html Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Andrew Davis, Founder SoCalLinuxSolutions [EMAIL PROTECTED] 760-525-4689 SoCalLinuxSolutions.com Linux Consultation Integration Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat 4 losing session (may be related to Win XP)
Are the sessions the same between the two calls? That is, when you call HttpSession#getId() for each of them do you get the same id back? justin At 02:27 PM 11/5/2003, you wrote: Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: HTTP response header displayed for JSP
Howard, Strangely enough, I'd never seen the HTTP headers display raw in a page like that until today. We were having a problem (unrelated, very specific to our environment) where some junk was being spit out BEFORE the headers (again, not a Tomcat issue but a proxy issue). You might want to debug your raw servlet/JSP output by telnetting directly to the server or sniffing the packets with tcpdump or the like. Something somewhere might be gumming up your output. Good luck, Larry Karnowski On Nov 5, 2003, at 2:55 PM, Howard Lin wrote: When trying to fetch a simple JSP page, the following header displayed on the browser (IE 6.0 on WinXP): HTTP/1.1 200 OK Content-Type: text/plain;charset=ISO-8859-1 Content-Length: 2183 Date: Wed, 05 Nov 2003 19:42:16 GMT Server: Apache Tomcat/4.1.29-LE-jdk14 (HTTP/1.1 Connector) After click the refresh button, the text displayed correctly. But if I click the refresh button again, the above header displayed again. I searched the archive and google and couldn't find anything useful. I also changed some cookie settings in IE and that didn't fix either. The tomcat server is running standalone on a Linux RedHat 9.0 box with j2sdk 1.4.2. Howard - 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: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Almost finished my updated mod_jk2 compilation write-up. Should be on my site by today. You will need the following packages installed (rpm or source): - automake - autoconf - m4 - libtool (BTW, good company you work for! I use the site quite frequently to translate Mandarin to English and vice versa...) Regards, pascal chong Tony F. White wrote: Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool.c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprIm p l.c Linking /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2/mod_jk 2 .so I have tried re-compiling it a couple of times but I still cannot get it to work. Tony -Original Message- From: Peter O'Reilly [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 12:49 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots The quickest way to do this is, ( assumes testing with http://localhost ) 1) copy the /WEB-INF/classes directory from the /examples/WEB-INF/classes to your directory. 2) Add the html code to call one of the servlets. If you can call one of the example servlets then you can backtrack and get ride of the example servlets and JSP and add your own. If testing on localhost make sure you have workers.properies, property.host =localhost AND make sure the servlet.xml Context = localhost When that's complete you'll want to clean up the web.xml file also. -Peter At 09:35 PM 11/4/2003, you wrote:
RE: Tomcat 4 losing session (may be related to Win XP)
I've been pulling hair out for several days with what turns out to be the same problem, except it's occurring on a Windows 2000 Server running IIS 5.0 and Tomcat 4.1.24. The logs show that the first request to a servlet done via POST gets a different session id than the follow-on request via GET to the same servlet, same URL. The same app works fine on another Win2K server running Apache. The one that doesn't work is behind a proxy server doing proxypassdir's to map a URL to an internal IP. Could this be the problem, or is it an IIS thing? Wendell Holmes Education Logistics, Inc. -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 4:25 PM To: Tomcat Users List Subject: Re: Tomcat 4 losing session (may be related to Win XP) Are the sessions the same between the two calls? That is, when you call HttpSession#getId() for each of them do you get the same id back? justin At 02:27 PM 11/5/2003, you wrote: Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Justin Ruthenbeck Software Engineer, NextEngine Inc. justinr - AT - nextengine DOT com Confidential. See: http://www.nextengine.com/confidentiality.php - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure make with the jakarta-tomcat-connectors-4.1.29 as there isnt a configure command Thanks for your help, and I am glad you like our services. Cheers Tony -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 9:45 AM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Almost finished my updated mod_jk2 compilation write-up. Should be on my site by today. You will need the following packages installed (rpm or source): - automake - autoconf - m4 - libtool (BTW, good company you work for! I use the site quite frequently to translate Mandarin to English and vice versa...) Regards, pascal chong Tony F. White wrote: Hi Chong, Load balancing is just a change in the configuration file thats all, I think it has to have something to do with the compilation, what lib was it that you were missing? Perhaps that is our problem too. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 5:23 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony, I can't help you with the load balanced configuration because I'm not using load balancing (yet). I was using the older version of mod_jk2 just fine too. When the rpm file disappeared from the download site, I had to compile using the latest version, and that is when my problems started. From the description of your problem, I would say that something is wrong either with the file you downloaded (corrupted download?) or your compilation failed somewhere. The bad thing about jk2's compile is that it doesn't give you many errors when it fails, and if you don't look too closely, the failure can be invisible. I spent 2 days compiling and re-compiling initially, because I was missing a library file (and didn't even know it). I'm investigating this on my end too. Has anybody else on this list tried and succeeded with Tomcat 4.1.29/Apache 2.0.47/mod_jk2/Linux ? Regards, pascal chong Tony F. White wrote: Note when I change the mod_jk2.so to the old version (from tomcat 4.1.24) it does log the [error] mod_jk child init 1 -2 after the jk_init error message. Everything else stays the same the only thing I have changed is the mod_jk2.so and it works. But we need to be sure we are using the more recent version cause we feel that it could be the cause of some of our problems. Kind Regards Tony F. White WorldLingo Technical Support -Original Message- From: Tony F. White [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 November 2003 4:16 PM To: 'Tomcat Users List' Subject: RE: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi, I dont think the problem is on the tomcat side of things, as if I change the mod_jk2.so back to the old version we have it we are able to connect. I have looked over the archives and noticed that others have had this message but for them it was followed by [error] mod_jk child init 1 -2 I am not getting this line... I also cannot access the /jkstatus page which comes form mod_jk does it not? The library compiled find apart from the usual warnings: apache20: [mkdir] Created dir: /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/build/jk2/apache2 [so] Compiling 42 out of 42 Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ j k _logger_apache2.c Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ m o d_jk2.c [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ m o d_jk2.c:294: warning: missing initializer [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/server/apache2/ m o d_jk2.c:294: warning: (near initialization for `jk2_cmds[3].func') ... [so] Warnings: [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool. c : In function `jk2_pool_a_strdup': [so] /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/common/jk_pool. c : 283: warning: empty body in an if-statement Compiling /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/native2/jni/jk_jni_aprI m p l.c Linking
Admin Application
I created a new virtual host using the Admin Application, and attempted to deploy the Manager application using the interface. Initial attempts gave this message: java.lang.ClassNotFoundException: org.apache.catalina.manager.HTMLManagerServlet org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:891) org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLo ader.java:756) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:594) After some fooling around, I found that the issue was that the context need the privileged attribute set to true. I looked, but I don't understand how to use the Admin application to set this attribute for a context. More to the point, is it possible for the manager application to work across multiple virtual hosts? It seems like quite a waste to have to configure the manager application for each virtual host? I guess another, perhaps better question is why does the Admin application not have controls to stop, start, and re-load contexts? George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which is the winner----Singleton Class or Base Servlet????
hi Shapira, In addition to what others have said, why don't you ask your highly knowledgeable friend for proof of what he's claiming? Yes! i could do that.Once he says so,then i should find out whether his statements bear any truth? Instead, asking him would not reveal the facts at all. Anyway his answer to this question is,-- using base servlet does not create a separate object instance as it is done when using a singleton class.That way u use one object less from JVM point of view.However this answer did not solve my quest. regards sat - Original Message - From: Shapira, Yoav [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 11:12 PM Subject: RE: Which is the winnerSingleton Class or Base Servlet Howdy, In addition to what others have said, why don't you ask your highly knowledgeable friend for proof of what he's claiming? Yoav Shapira Millennium ChemInformatics -Original Message- From: kgsat [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 1:36 AM To: Tomcat Users List; tomcat-user-sc.1064369106.oligoebllpoplhbjhnhi- [EMAIL PROTECTED] Subject: Which is the winnerSingleton Class or Base Servlet Dear experts, It may not be appropriate to ask this doubt here.Though i am aware of it , i chose to ask here thinking that experts would forgive me. Now the doubt is... In a web application, what is the performance difference of using singleton class and a base servlet to do the database related operations such as loading the driver, obtaining the dbURL and obtaining the connection instance for further db operations. I use a singleton class for my db requirements in jsps and servlets and also in other beans. One of my friends suggests that using base servlet to do the same work is more efficient. Can any one throw some more light on this topic.i want to improve the performance of my web application. Any white papers or pointing URLs are given astounding welcome. thanks and regards sat 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: Which is the winner----Singleton Class or Base Servlet????
Hi Rodrigo Ruiz currently i am not resorting to servlet way of downloading the video files.Instead i am using http download , that is, the user is forced to right click and select the -'save target as 'option to save the file into his harddisk. And i am storing the files in the separate machine(file server like) which runs IIS and serves the files to the end user once when he clicks on the download link of a particular video clip. Otherwise all other pages are served by apache-tomcat on linux. regards sat - Original Message - From: Rodrigo Ruiz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 8:20 PM Subject: Re: Which is the winnerSingleton Class or Base Servlet JNDI adds a little performance penalty (extra overhead), and provides you more independency from the database layer. If that independency is not much important for you, your current configuration will probably suit better ;-) Apart from this, if your app serves video content, a careful tunning of your servlet output buffer size, and number of concurrent client connections will probably be the best point to optimize. Just curiosity, where do you store the video clips? file system, oracle or somewhere else? kgsat wrote: Hi Rodrigo Ruiz Thanks for your response.I have been using oracle conneciton pooling features in my singleton db class for the faster connectivity with the database from my application. Should i go for a JNDIDatasource model for the better db access or the current one will serve the needs.My application is a video download application meant for the members of the site. U have any thing to suggest with respect to database access ? regards sat - Original Message - From: Rodrigo Ruiz [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 6:23 PM Subject: Re: Which is the winnerSingleton Class or Base Servlet Both techniques have their advantaes and disadvantages. A singleton class usually has problems when reloading the context. Using a Servlet Base for JSPs makes you container version dependent (As the minimum implementation required can change among jasper versions). Anyway, the performance improvements you can achieve selecting between these two options are probably minimal. Depending on your webapp DB load, you could obtain a greater performance boost using a connection pool. Look at the JNDI DataSource HOW-TO for more info about this :-) Hope this help, Rodrigo Ruiz kgsat wrote: Dear experts, It may not be appropriate to ask this doubt here.Though i am aware of it , i chose to ask here thinking that experts would forgive me. Now the doubt is... In a web application, what is the performance difference of using singleton class and a base servlet to do the database related operations such as loading the driver, obtaining the dbURL and obtaining the connection instance for further db operations. I use a singleton class for my db requirements in jsps and servlets and also in other beans. One of my friends suggests that using base servlet to do the same work is more efficient. Can any one throw some more light on this topic.i want to improve the performance of my web application. Any white papers or pointing URLs are given astounding welcome. thanks and regards sat - 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]
More Admin Application: Service Reloading Question
I am evaluating Tomcat 5.0.14 for use in a ASP Hosting environment. As part of this environment I would need to routinely create (or destroy) virtual hosts. One major showstopper seems to be that if I create a virtual host and click on the Commit Changes, then the service reloads, including all of the virtual hosts, and their associated contexts. Is there some setting I don't see that can affect this restarting behavior? Without the capability to create virtual hosts on the fly, I will have to schedule routine re-starts of the servlet engine. This is really less than optimal. Any ideas would be appreciated. George Sexton MH Software, Inc. Voice: 303 438 9585 http://www.mhsoftware.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Bean Generation Tool?
Hi all, I have this tool I cobbled together for building vanilla java web applications. You feed it an XML config file that defines tables and columns. It generates: 1) source for simple databeans to hold those rows 2) source for simple database access classes (mapping a result set to a databean, composing an INSERT, UPDATE, or SELECT clause) 3) basic JSP forms to edit the beans. I find this tool somewhat useful, I'd like to continue to refactor it and make it more generally useful. I've done some looking at various tools out there. I'm not going to worry about the JSP side much, for the foreseeable future. JSP code is simple enough by itself, and the JSP side always ends up getting massaged extensively, so I'm not sure I really like generating it like this. (I keep meaning to read up on JSF and get a solid idea of what it brings into this but I can't seem to find a simple, concise definition of what JSF is/does.) Hiberate looks very, very cool and I want to move as much as possible to using it for the database side. I don't see anything in Hibernate - or anywhere else for that matter, though I may not be using the right google search terms - for generating the simple databeans. My immediate plans, however, are to: 1) move from using print() to using a more sophisticated code generation tool (velocity?) 2) refactor a lot of the boilerplate that gets wrapped around each databean instance variable into a set of standard input classes. E.g. instead of using a Date class and having a lot of boilerplate generated for each bean for parsing the date on input and formatting it on output, I'd have a DateInput class that would have that, and use a DateInput for the bean's instance variable. This second, in particular, it seems like there should be an existing package for already, but I haven't managed to find it. I'm thinking each input class will have: 1) getters/setters for String inputs from forms 2) getters for producing Strings appropriate to use in an SQL query. 3) an isDirty flag for determining what values where changed from the original values loaded. 4) a collection of InputTest classes that can be run against the value to make sure it's safe to enter. each TestInput would have a isValid() and getErrorMessage() Ultimately/eventually I can see that the forms and the beans and the tables should be more separated. Ideally I'd generate databeans that the forms populate, and have a separate bean-to-database-mapping mechanism. But for now I'm just trying to build a tool to build a simple solution to a specific problem. -- Steven J. Owens [EMAIL PROTECTED] I'm going to make broad, sweeping generalizations and strong, declarative statements, because otherwise I'll be here all night and this document will be four times longer and much less fun to read. Take it all with a grain of salt. - Me at http://darksleep.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with mod_jk2
On Wed, 5 Nov 2003, Andrew Davis wrote: Thanks. That helps. I'm playing with the options now. I notice, however, that in the examples at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html there are no options for specifying the path to java or tomcat anymore as there were in the mod_jk workers.properties file. Is this oversight, assumption, or is it simply no longer needed? I believe you will only need the location of java and tomcat if you are trying to do a JNI integration between them. There is a more detailed workers2.properties example in the jakarta-tomcat-connectors-jk2-2.0.2-src/jk/conf directory of the source bundle. It has examples for setting up JNI startup, etc. I haven't used that feature, so I won't be able to offer that much help on it. Jonathan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Which is the winner----Singleton Class or Base Servlet????
At 05:07 PM 11/5/2003, you wrote: In addition to what others have said, why don't you ask your highly knowledgeable friend for proof of what he's claiming? Anyway his answer to this question is,-- using base servlet does not create a separate object instance as it is done when using a singleton class.That way u use one object less from JVM point of view.However this answer did not solve my quest. Really? That's the reason? Ignore it. Choosing to implement something in a base class or in a singleton is a decision based on your app's architecture -- choose whichever is more clear and/or more maintainable for you. There may be performance issues involved, but that would have to be discussed with specific examples ... in any case, this is not one of them. justin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat 4 losing session (may be related to Win XP)
At 04:14 PM 11/5/2003, you wrote: I've been pulling hair out for several days with what turns out to be the same problem, except it's occurring on a Windows 2000 Server running IIS 5.0 and Tomcat 4.1.24. The logs show that the first request to a servlet done via POST gets a different session id than the follow-on request via GET to the same servlet, same URL. The same app works fine on another Win2K server running Apache. The one that doesn't work is behind a proxy server doing proxypassdir's to map a URL to an internal IP. Could this be the problem, or is it an IIS thing? If you really want to see what's happening, put your own proxy between the client and the first server on your backend (I use zproxy -- google for it) to look at the http messages going back and forth. Check the response that you're getting from Tomcat and note the JSESSIONID provided after the first call. See what JSESSIONID the client machine sends back. You can put the same proxy (or any http-level sniffer) between any of the servers and see who's passing what. If you've established that Tomcat is receiving two different sessionId values, then you can be sure there's a mixup somewhere else (and the more hands you've got in the cookie jar, the more chances someone else is screwing things up). Wendell Holmes justin -Original Message- From: Justin Ruthenbeck [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 4:25 PM To: Tomcat Users List Subject: Re: Tomcat 4 losing session (may be related to Win XP) Are the sessions the same between the two calls? That is, when you call HttpSession#getId() for each of them do you get the same id back? justin At 02:27 PM 11/5/2003, you wrote: Hi all, I've come across a situation I can't figure out and I'm wondering if it has to do with the fact that this is the first time we've installed Tomcat on Windows XP Prof. Symptom: Tomcat loses session. If you set up a very simple two JSP process where page 1 stuffs (setAttribute) something into the session, and page 2 displays it, the value comes back as null Tests: if I copy the two JSPs to the examples directory included in the Tomcat distribution, the pages perform properly. If I create my own context and execute the pages from there, the getAttribute returns null. I created the context by duplicating the context in the server.xml file and pretty much just changing the codebase. Other environment info: running behind Apache2 (latest), on port 8082 (http) and 8009 (AJP13) because Oracle Servlet Engine shows up on port 8080 (side note: anyone have info on how to get the flying pig to go away when you've uninstalled the Oracle HTTP server???); JDK 1.4.*, and this is Tomcat 4 (latest). The exact same set up works fine on Windows 2003 and Windows 2000 Prof. And this machine works fine as a client to the server running on any other machine, so it's not a cookie issue I don't think. Am I missing something obvious? Could it be permission-related? Something in the way the session data is stored on disk? Sure would appreciate any advice. Andrew Longley Senior Software Developer MindFlow Technologies, Inc. http://www.mindflow.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Tony ! I'm surprised you got the ant command working ! I tried that first, and wasted a lot of time tinkering with the build.xml with no success. I always use the configure command now. Ant is a great tool, but I suspect that the buildfile is broken somehow (or maybe it's just me !). Regards, pascal chong Tony F. White wrote: Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure make with the jakarta-tomcat-connectors-4.1.29 as there isnt a configure command Thanks for your help, and I am glad you like our services. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with mod_jk2
Thanks... I was able to get everything working. Your help was much appreciated. :) [EMAIL PROTECTED] wrote: On Wed, 5 Nov 2003, Andrew Davis wrote: Thanks. That helps. I'm playing with the options now. I notice, however, that in the examples at: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebex.html there are no options for specifying the path to java or tomcat anymore as there were in the mod_jk workers.properties file. Is this oversight, assumption, or is it simply no longer needed? I believe you will only need the location of java and tomcat if you are trying to do a JNI integration between them. There is a more detailed workers2.properties example in the jakarta-tomcat-connectors-jk2-2.0.2-src/jk/conf directory of the source bundle. It has examples for setting up JNI startup, etc. I haven't used that feature, so I won't be able to offer that much help on it. Jonathan -- Andrew Davis, Founder SoCalLinuxSolutions [EMAIL PROTECTED] 760-525-4689 SoCalLinuxSolutions.com Linux Consultation Integration Services - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Allocated instances
The thread dumps are attached Shapira, Yoav wrote: Howdy, Very interesting, actually... Post the thread dumps if you can... Yoav Shapira Millennium ChemInformatics -Original Message- From: Yonatan Goraly [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2003 2:05 AM To: Tomcat Users List Subject: Re: Allocated instances I was at that customer today, and disabled the CPU hyper threading feature. Tomcat and the application seems to work normally now. I sent the thread dumps to myself, but unfortunately they didn't arrive. Not sure it is still relevant. Shapira, Yoav wrote: Howdy, At this particular installation, each time I shut down Tomcat, I get a message that is waiting for x instance(s) to be deallocated - can get to It'd be useful to know instances of what class ;) Can the customer, or you, reproduce this problem easily? If so, you can run the app inside a profiler or another tool that will give you a heap snapshot showing what those instances are. Since it is a standard configuration that didn't cause any problems so far, I don't think it has anything to do with the application code. Maybe, maybe not. It's impossible to rule out the application code without further information. legacy HTTP1.1 connector - same behavior. A thread dump shows various threads as locked (don't have it with me now) - but I understood that it doesn't necessarily implies a deadlock. It doesn't necessarily mean a deadlock, you're right. But it could mean a deadlock, and it could be very helpful in determining what's causing problems. If you post the thread dump we'll help analyze it... ;) 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] MonitorRunnable daemon prio=5 tid=0x18638b70 nid=0x960 in Object.wait() [1ac4f000..1ac4fdb0] at java.lang.Object.wait(Native Method) - waiting on 0x109ae1d8 (a org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:503) - locked 0x109ae1d8 (a org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable) at java.lang.Thread.run(Thread.java:534) Thread-5 daemon prio=5 tid=0x1874a538 nid=0x908 runnable [1ac0f000..1ac0fdb0] at java.net.PlainSocketImpl.socketAccept(Native Method) at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:353) - locked 0x1085d3f8 (a java.net.PlainSocketImpl) at java.net.ServerSocket.implAccept(ServerSocket.java:448) at java.net.ServerSocket.accept(ServerSocket.java:419) at org.apache.tomcat.util.net.DefaultServerSocketFactory.acceptSocket(DefaultServerSocketFactory.java:107) at org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:356) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) at java.lang.Thread.run(Thread.java:534) Thread-4 daemon prio=5 tid=0x18551b70 nid=0x918 in Object.wait() [1abcf000..1abcfdb0] at java.lang.Object.wait(Native Method) - waiting on 0x109ae300 (a org.apache.tomcat.util.threads.ThreadPool$ControlRunnable) at java.lang.Object.wait(Object.java:429) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:595) - locked 0x109ae300 (a
The Logger of ServletContext.log again!!
Thanks for the previous reply, but I checked the server.xml and made sure that my application has a logger element identified as: Context path=/myapp docBase=myapp debug=5 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=labtower_myapp_log. suffix=.txt timestamp=true/ ... /Context and I can see all deferent logging messages such as the outcome from Log4j Logger, System.out.println(..) , exceptions printStackTrace(), etc. EXCEPT the ServletContext.log(..) messages... they are not in the catalina.out either!!! it is not like the end of the world, but (you know the developer brain, it is stubborn) Thanks again.
CGI Script not found!
can someone please advice on the problem attached? annisha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ant deploy
Hi, I wanna use ant deploy task to deploy a war onto Tomcat, but always got a UnknownHostName exception. What's wrong here? Did anyone used the deploy task with sucessful? Regards. -- Steven Woody
RE: Issues | Suggestion any?
Hi Shapira y and tomcat users, #You're putting too many things in one message. ;) Can't help that...;), in fact I would like to add some more things here :). #So with your configuration, you'd always have between 30*12 = 360 and #100*12 = 1200 open database connections. Is this really what you want? #If your DB can't handle 1000 connections, much less 1200, configure your #pools so that they don't reach this max. Yeah right but there is a catch here. Because we are using the dynamic scheme the connections can go beyond the 100 connections which is the max connections. Seems, the problem comes up when the number of connections cross 250 on any individual tomcat. What we want is whenever there is this surge of load the connection pool should be able to request the same. I don't have pointers which says that 200-250 connections size of oracle connection pool is not supported by classes12.jar and only have observation. #Not sure is right. Threads could be waiting on a lot of things, and #it's not always bad to wait (e.g. idle HTTP processor threads). Which #threads were waiting and was it for a common monitor address? Why I thought that it was waiting for closing the logical connections was because the thread dump had some pointers and this time I am enclosing those snapshots. Thread-360 prio=5 tid=0x00ac4f50 nid=0xc99 waiting for monitor entry [b108..b1081998] at oracle.jdbc.pool.OracleConnectionEventListener.connectionClosed(OracleCo nnectionEventListener.java:125) - waiting to lock 0xd4d2c820 (a oracle.jdbc.pool.OracleConnectionEventListener) at oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnect ion.java:482) at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnect ion.java:445) - locked 0xcc4f5700 (a oracle.jdbc.pool.OraclePooledConnection) at oracle.jdbc.driver.OracleConnection.logicalClose(OracleConnection.java:2 900) - locked 0xcc4f57c0 (a oracle.jdbc.driver.OracleConnection) at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1418) - locked 0xcc4f57c0 (a oracle.jdbc.driver.OracleConnection) Thread-360 prio=5 tid=0x00ac4f50 nid=0xc99 waiting for monitor entry [b108..b1081998] at oracle.jdbc.pool.OracleConnectionEventListener.connectionClosed(OracleCo nnectionEventListener.java:125) - waiting to lock 0xd4d2c820 (a oracle.jdbc.pool.OracleConnectionEventListener) at oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnect ion.java:482) at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnect ion.java:445) - locked 0xcc4f5700 (a oracle.jdbc.pool.OraclePooledConnection) at oracle.jdbc.driver.OracleConnection.logicalClose(OracleConnection.java:2 900) - locked 0xcc4f57c0 (a oracle.jdbc.driver.OracleConnection) at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1418) - locked 0xcc4f57c0 (a oracle.jdbc.driver.OracleConnection) Thread-358 prio=5 tid=0x00ac37a0 nid=0xc97 waiting for monitor entry [b128..b1281998] at oracle.jdbc.pool.OracleConnectionEventListener.connectionClosed(OracleCo nnectionEventListener.java:125) - waiting to lock 0xd4d2c820 (a oracle.jdbc.pool.OracleConnectionEventListener) at oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnect ion.java:482) at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnect ion.java:445) - locked 0xc51d5eb8 (a oracle.jdbc.pool.OraclePooledConnection) at oracle.jdbc.driver.OracleConnection.logicalClose(OracleConnection.java:2 900) - locked 0xc51d5f78 (a oracle.jdbc.driver.OracleConnection) at oracle.jdbc.driver.OracleConnection.close(OracleConnection.java:1418) - locked 0xc51d5f78 (a oracle.jdbc.driver.OracleConnection) Thread-357 prio=5 tid=0x00ac30c0 nid=0xc96 runnable [b138..b1381998] at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:129) at java.io.BufferedInputStream.fill(BufferedInputStream.java:183) at java.io.BufferedInputStream.read1(BufferedInputStream.java:222) at java.io.BufferedInputStream.read(BufferedInputStream.java:277) - locked 0xc73bdcf0 (a java.io.BufferedInputStream) Thread-356 prio=5 tid=0x00ac2a38 nid=0xc95 waiting for monitor entry [b148..b1481998] at oracle.jdbc.pool.OracleConnectionEventListener.connectionClosed(OracleCo nnectionEventListener.java:125) - waiting to lock 0xd4d2c820 (a oracle.jdbc.pool.OracleConnectionEventListener) at oracle.jdbc.pool.OraclePooledConnection.callListener(OraclePooledConnect ion.java:482) at oracle.jdbc.pool.OraclePooledConnection.logicalClose(OraclePooledConnect ion.java:445) - locked 0xc9ffd1c8 (a oracle.jdbc.pool.OraclePooledConnection) at
RE: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Hi Chong, I know I did have some problems when I first tried it but found this page http://www.pubbitch.org/jboss/mod_jk2.html I dont use jboss but step 8 certainly did solve at least one of the problems I came across. Cheers Tony -Original Message- From: Chong Yu Meng [mailto:[EMAIL PROTECTED] Sent: Thursday, 6 November 2003 2:40 PM To: Tomcat Users List Subject: Re: jk2_init() Can't find child in none of the 1024 scoreboard slots Hi Tony ! I'm surprised you got the ant command working ! I tried that first, and wasted a lot of time tinkering with the build.xml with no success. I always use the configure command now. Ant is a great tool, but I suspect that the buildfile is broken somehow (or maybe it's just me !). Regards, pascal chong Tony F. White wrote: Hi Chong, I have managed to get the connectors working... This time I downloaded the JK2 connectors from http://jakarta.apache.org/site/sourceindex.cgi And did an old fashioned cd /usr/local/jakarta-tomcat-connectors-jk2-2.0.2-src/jk/native2 ./configure --with-apxs2=/usr/local/apache2/bin/apxs make And copy to apache2/modules/ So far so good... Previously I was doing cd /usr/local/jakarta-tomcat-connectors-4.1.29-src/jk/ cp build.properties.sample build.properties vim build.properties ant native and copy... The native method has normally worked for me no problems, I hadn't done the configure make with the jakarta-tomcat-connectors-4.1.29 as there isnt a configure command Thanks for your help, and I am glad you like our services. Cheers Tony - 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: Client-Auth and Client-Cert??
I *really* need to update the Tomcat 4.1 docs :-(. jack lee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi In my understanding: (1) Client-Auth is set to true: every client who accesses Tomcat must has his own certificate. And the certificate of the CA who issued client certificate must in the truststore list. The default location of the truststore list is at JAVA_HOME/jre/lib/security/cacerts. Question: it is possible to set it in the different location?? For TC 5, this is covered in the ssl-howto. For TC 4.1: -Djavax.net.ssl.trustStore=/path/to/TrustStore \ -Djavax.net.ssl.trustStorePassword=your-password-here (2) Client-Cert is set in the web application configuration file (web.xml) : every client who accesses this web application must has his own trusted certificate. web-app ... login-config auth-methodCLIENT-CERT/auth-method realm-nameClientName/realm-name /login-config ... /web-app Question: in the configuration, what is realm-name represents for??? Is I can define the client list (such as using CN value in the certificate) in the memoryrealm or some other place, to achieve the access control. In other word, I want to only allow selected users to access the web application, of cause, those users must has their own certificate. Can I do this?? In this case realm-name is just for show (e.g. in the 'admin' webapp). After you enable MemoryRealm, you configure tomcat-users.xml with the cert's DN (aka Subject) as the username, and anything you want as the password (it is ignored for CLIENT-CERT auth). Thanks Jack _ Send a QuickGreet with MSN Messenger http://www.msnmessenger-download.com/tracking/cdp_games - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: jk2_init() Can't find child xxxx in none of the 1024 scoreboard slots
Thanks for the link, Tony ! Just uploaded my updated write-up with corrections and modifications to the mod_jk2 compile. Regards, pascal chong Tony F. White wrote: Hi Chong, I know I did have some problems when I first tried it but found this page http://www.pubbitch.org/jboss/mod_jk2.html I dont use jboss but step 8 certainly did solve at least one of the problems I came across. Cheers Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]