AW: Apache mod_SSL and Tomcat using mod_jk
Hi actually I'm not a crack in this stuff, but maybe this will help you. This worked with Jserv, with tomcat I have a problem with the definition of virtual hosts in file server.xml (no documentation) regards Markus In httpd.conf I have inserted: # When we also provide SSL we have to listen to the # standard HTTP port (see above) and to the HTTPS port # Listen 80 Listen 443 #--- - # Section 3: Virtual Hosts #--- - # # VirtualHost: If you want to maintain multiple domains/hostnames on your # machine you can setup VirtualHost containers for them. # Please see the documentation at URL:http://www.apache.org/docs/vhosts/ # for further details before you try to setup virtual hosts. # You may use the command line option '-S' to verify your virtual host # configuration. # # If you want to use name-based virtual hosts you need to define at # least one IP address (and port number) for them. # NameVirtualHost 10.1.1.74:80 NameVirtualHost 10.1.1.74:443 #--- - # Section 4: SSL Global Context #--- - # # All SSL configuration in this context applies both to # the main server and all SSL-enabled virtual hosts. # # # Some MIME-types for downloading Certificates and CRLs # # IfDefine SSL AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl # # Disable SSL. Usefull in combination with virtual hosts # SSLEngine off # # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filtering dialog program (`builtin' is a internal # terminal dialog) has to provide the pass phrase on stdout. # SSLPassPhraseDialog builtin # # Set the session cache timeout, in seconds (set to 15 for testing, use a # higher value in real life) # #SSLSessionCacheTimeout 15 # # Semaphore: # Configure the path to the mutual explusion semaphore the # SSL engine uses internally for inter-process synchronization. # SSLMutex sem # # Pseudo Random Number Generator (PRNG): # Configure one or more sources to seed the PRNG of the # SSL library. The seed data should be of good random quality. # WARNING! On some platforms /dev/random blocks if not enough entropy # is available. This means you then cannot use the /dev/random device # because it would lead to very long connection times (as long as # it requires to make more entropy available). But usually those # platforms additionally provide a /dev/urandom device which doesn't # block. So, if available, use this one instead. Read the mod_ssl User # Manual for more details. # SSLRandomSeed startup builtin SSLRandomSeed connect builtin # # Logging: # The home of the dedicated SSL protocol logfile. Errors are # additionally duplicated in the general error log file. Put # this somewhere where it cannot be used for symlink attacks on # a real server (i.e. somewhere where only root can write). # Log levels are (ascending order: higher ones include lower ones): # none, error, warn, info, trace, debug. # SSLLog logs/ssl_engine_log SSLLogLevel info # # Set the CA certificate verification path (must be PEM encoded). # (in addition to getenv("SSL_CERT_DIR"), I think). # #SSLCACertificatePath /usr/local/etc/apache/apache_1.3.1/SSLconf/conf # # Set the CA certificate verification file (must be PEM encoded). # (in addition to getenv("SSL_CERT_FILE"), I think). # SSLCACertificateFile D:\WebSpace\ApacheSSL\conf\ssl.crt\swisskey.crt # # Point SSLCertificateFile at a PEM encoded certificate. # If the certificate is encrypted, then you will be prompted for a pass phrase. # Note that a kill -1 will prompt again. # A test certificate can be generated with "make certificate". # SSLCertificateFile D:\WebSpace\ApacheSSL\conf\ssl.crt\snakeoil-rsa.crt # # If the key is not combined with the certificate, use this directive to # point at the key file. If this starts with a '/' it specifies an absolute # path, otherwise it is relative to the default certificate area. That is, it # means "default/private/keyfile". # SSLCertificateKeyFile D:\WebSpace\ApacheSSL\conf\ssl.key\snakeoil-rsa.key # # Set SSLVerifyClient to: none / optional / require # # SSLVerifyClient optional # # How deeply to verify before deciding they don't have a valid certificate # #SSLVerifyDepth 1 SSLVerifyDepth 10 # # Translate the client X509 into a Basic authorisation. This means that the # standard Auth/DBMAuth methods can be used for access control. The user name # is the "one line" version of the client's X509 certificate. Note that no # password is obtained from the user. Every entry in the user file needs this # password: xxj31ZMTZzkVA. See the code for further explanation. # SSLOptions +FakeBasicAuth # # List the ciphers that
Fw: Checking the time
Hi, i have a problem, i am developing servlets under Tomcat 3.1 and Apache 1.3.1 under a Suse 7.0. I need to develop a program that check the time everynight and send e-mail to the users if it´snecessary. I would like how to configure that program and where must it be placed (a directory of Tomcat..). A lot of thanks in advance
jsp document root
Sorry to ask such a trivial question to all of you but how can I put my .jsp files outside of the ROOT Directory of tomcat in e.g. in apache\htdocs ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Struts errors
Hi, Whenever I add a Struts war to my tomcat server he will give me errors on the struts-config.xml. extract out of exception : Parse Error at line 11 column -1: Attribute "property" is not declared for eleme nt "set-property". org.xml.sax.SAXParseException: Attribute "property" is not declared for element "set-property". at com.sun.xml.parser.Parser.error(Parser.java:2795) at com.sun.xml.parser.Parser.maybeElement(Parser.java:1357) Hope someone can help me on this one :) thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: Tomcat with multiple virtual domains
Hi look at the documents : http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html you will find some information in the document working with mod_jk. are you familiar with virtual host ? you have to make changes in httpd.conf and in the file server.xml (tomcat parameter file). regards markus -Ursprngliche Nachricht- Von:Rooms Christoph [SMTP:[EMAIL PROTECTED]] Gesendet am:Dienstag, 16. Januar 2001 11:39 An: [EMAIL PROTECTED] Betreff:Tomcat with multiple virtual domains Hi, My provider is gonna set up Tomcat for me. He is already using Apache WebServer. On one machine he is running multiple virtual domains. What is the way to implement this. What access should he give to his users ? = developpers. How can the different developpers restart the server ? Isn't there a white paper on this ? Thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Running Tomcat as non-root user
Hi Geoff, As far as I know (and I did a fair bit of research on this topic), there is no way for any java app to start as one user, then switch to running as another user. What I do is run tomcat on port 8080 as non-root, and use a firewall product to redirect port 80 - 8080. This works fine. I can't give you great details, as the firewall stuff was set up by a sysadmin (which I am not), but we use Solaris and I think the firewall is "ifconfig". I guess that linux' ipchains or ipfilter or whatever can do the same job. Regards, Simon -Original Message- From: Geoff Lane [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 11:46 PM To: [EMAIL PROTECTED] Subject: Running Tomcat as non-root user In the Tomcat UG under the heading 'Modify and Customize the Batch Files' it says one of the reasons to do so (modify start up scripts) would be: "To switch user from root to some other user using the "su" UNIX command." This is an excellent idea from a security standpoint. But to bind to port 80 (instead of the default high port 8080) root is needed. How many applications do this (Apache for example) is to initially run as root, bind to port 80, and then drop root privileges. Is something like this possible with Tomcat running standalone? Running concurrently with Apache would accomplish this because the AJP connection could be run as any user since it's on a high port. Thanks. -- Geoff Lane [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Can anybody help us on thisCannot forward as OutputStream or Writer has already been obtained
Hi All, While i try to call a jsp from one jsp using request.dispatcher i am getting a error like this.. It works in other places where the same procedure is followed... How to solve this Murugesh h2Location: /tnpc/norman/jsp/CustomerDetailsOriginal.jsp/h2bInternal Servlet Error:/bbrprejavax.servlet.ServletException: Cannot forward as OutputStream or Writer has already been obtainedat java.lang.Throwable.init(Compiled Code)at java.lang.Exception.init(Compiled Code)at javax.servlet.ServletException.init(ServletException.java:161)at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459)at _0002fnorman_0002fjsp_0002fCustomerDetailsOriginal_0002ejsp_0002fnorman_0002fjsp_0002fCustomerDetailsOriginal_jsp_11._jspSat org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled Code)at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)at org.apache.jasper.servlet.JspServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)at org.apache.tomcat.core.Handler.service(Compiled Code)at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)at org.apache.tomcat.core.ContextManager.service(Compiled Code)at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)at java.lang.Thread.run(Compiled Code)/prebRoot cause:/bprejava.lang.IllegalStateException: Cannot forward as OutputStream or Writer has already been obtainedat java.lang.Throwable.init(Compiled Code)at java.lang.Exception.init(Compiled Code)at java.lang.RuntimeException.init(RuntimeException.java:50)at java.lang.IllegalStateException.init(IllegalStateException.java:48)at org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:150)at _0002fnorman_0002fjsp_0002fCustomerDetailsOriginal_0002ejsp_0002fnorman_0002fjsp_0002fCustomerDetailsOriginal_jsp_11._jspSat org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled Code)at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled Code)at org.apache.jasper.servlet.JspServlet.service(Compiled Code)at javax.servlet.http.HttpServlet.service(Compiled Code)at org.apache.tomcat.core.ServletWrapper.doService(Compiled Code)at org.apache.tomcat.core.Handler.service(Compiled Code)at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)at org.apache.tomcat.core.ContextManager.service(Compiled Code)at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compiled Code)at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)at java.lang.Thread.run(Compiled Code)/pre
Re: AW: Tomcat with multiple virtual domains
Thanks Marcus ! This document was exactly what I needed. I only have now a few extra questions. 1. Are HTML files now putted in the Tomcat directory or is it better to keep them seperate. (for performance ?) It would be easy to put it all in the Tomcat directory so we can use WAR's. 2. If you have multiple instances of Tomcat running, will each instance have it own server.xml ? How can each Developper start his own server? Thanks ! Christoph [EMAIL PROTECTED] wrote: Hi look at the documents : http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html you will find some information in the document working with mod_jk. are you familiar with virtual host ? you have to make changes in httpd.conf and in the file server.xml (tomcat parameter file). regards markus -Ursprngliche Nachricht- Von: Rooms Christoph [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 16. Januar 2001 11:39 An:[EMAIL PROTECTED] Betreff: Tomcat with multiple virtual domains Hi, My provider is gonna set up Tomcat for me. He is already using Apache WebServer. On one machine he is running multiple virtual domains. What is the way to implement this. What access should he give to his users ? = developpers. How can the different developpers restart the server ? Isn't there a white paper on this ? Thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Web-site security
Hi all, How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site.
RE: jsp to email problem on Tomcat
I doubt it, looks like you passed a null string to MimeMessage.setSubject! -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Ian CornerSent: Monday, January 15, 2001 2:37 AMTo: [EMAIL PROTECTED]Subject: jsp to email problem on Tomcat Hi I am not sure where the problem lies but I just want to see ifthe error I am gettingcould be anything to do with Tomcat. Here is the error report. Any help appreciated: Error: 500 Location: /examples/jsp/formsMail/mailsend.jspInternal Servlet Error:javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java) at jsp.f_00025rmsMail._0002fjsp_0002fformsMail_0002fmailsend_0002ejspmailsend_jsp_9._jspService(_0002fjsp_0002fformsMail_0002fmailsend_0002ejspmailsend_jsp_9.java:107) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java) at org.apache.tomcat.core.Handler.service(Handler.java) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java) at org.apache.tomcat.core.ContextManager.service(ContextManager.java) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java) at java.lang.Thread.run(Thread.java:484) Root cause: java.lang.NullPointerException at javax.mail.internet.MimeUtility.checkAscii(MimeUtility.java:877) at javax.mail.internet.MimeUtility.encodeWord(MimeUtility.java:503) at javax.mail.internet.MimeUtility.encodeText(MimeUtility.java:337) at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:541) at javax.mail.internet.MimeMessage.setSubject(MimeMessage.java:507) at jsp.f_00025rmsMail._0002fjsp_0002fformsMail_0002fmailsend_0002ejspmailsend_jsp_9._jspService(_0002fjsp_0002fformsMail_0002fmailsend_0002ejspmailsend_jsp_9.java:81) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java) at org.apache.tomcat.core.Handler.service(Handler.java) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java) at org.apache.tomcat.core.ContextManager.service(ContextManager.java) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java) at java.lang.Thread.run(Thread.java:484) ThanksIan
AW: AW: Tomcat with multiple virtual domains
Hi Christoph I'm glad I could help you. 1. As I remember it's not important where you have your files. What is important, that apache solves the static part of your application and the dynamic part is done by tomcat. 2. you will find answers in the document tomcat-apache HOWTO, chapter multiple tomcat JVMs. regards Markus -Ursprngliche Nachricht- Von:Rooms Christoph [SMTP:[EMAIL PROTECTED]] Gesendet am:Dienstag, 16. Januar 2001 12:11 An: [EMAIL PROTECTED] Betreff:Re: AW: Tomcat with multiple virtual domains Thanks Marcus ! This document was exactly what I needed. I only have now a few extra questions. 1. Are HTML files now putted in the Tomcat directory or is it better to keep them seperate. (for performance ?) It would be easy to put it all in the Tomcat directory so we can use WAR's. 2. If you have multiple instances of Tomcat running, will each instance have it own server.xml ? How can each Developper start his own server? Thanks ! Christoph [EMAIL PROTECTED] wrote: Hi look at the documents : http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html you will find some information in the document working with mod_jk. are you familiar with virtual host ? you have to make changes in httpd.conf and in the file server.xml (tomcat parameter file). regards markus -Ursprngliche Nachricht- Von: Rooms Christoph [SMTP:[EMAIL PROTECTED]] Gesendet am: Dienstag, 16. Januar 2001 11:39 An:[EMAIL PROTECTED] Betreff: Tomcat with multiple virtual domains Hi, My provider is gonna set up Tomcat for me. He is already using Apache WebServer. On one machine he is running multiple virtual domains. What is the way to implement this. What access should he give to his users ? = developpers. How can the different developpers restart the server ? Isn't there a white paper on this ? Thanks, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
help pls
hi, 1)how to restrict users from accessing html files directly(without authentication) in tomcat-apache?? 2) how to prevent directory listing for directories under Tomcat context? pls help thanx, deeps - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat Performance Questions
Sorry if I missed it, early on in the thread, but what servlets etc are you testing the configurations with? In order to assess the performance of the engine, you should be using simple, easily analysed servlets, doing a minimum of functionality. Say, a snoop servlet, a session servlet, and similar in JSP. If you're testing the whole app you've written, the engine may be a small part of the performance overhead, ie if a request in 3.1 takes 50ms, and the servlet takes 500ms to produce the content, moving to 3.2 which *may* give 25ms for a similar call, will not actually produce a large apparent gain in performance. What kind of load are you running? The pool tcp connectors will only really benefit high volume hits, again you're saving the time to construct an object and garbage it, with only having to synch and do a stack pop. If you've a lot of classes, reload=false will be a big benefit. Again, if you're running a lot of code, jdk 1.3 will benefit your app and the engine. Please supply more info on how you're testing this. Ken. [EMAIL PROTECTED] on 15/01/2001 13:51:11 Please respond to [EMAIL PROTECTED] To: [EMAIL PROTECTED] cc:(bcc: Ken X Horn) Subject: RE: Tomcat Performance Questions Sorry, I forgot to mention that. I've tried mod_jk with AJP13 and without. In both cases, the performance was about the same, which is to say not terribly much better than mod_jserv. I was *expecting* a big performance gain going from 3.1 to 3.2 (getting the PoolTcpConnector) and from 3.2 jserv to 3.2 jk (with AJP13) (on account of the faster/better protocol). But my results in these areas show only very miniscule performance gains (unlike setting reload=false and changing from JRE 1.2 to 1.3 --- those both gave real noticeable performance gains). I haven't seen any sort of benchmark that compares jserv to jk despite jk's claims to be faster. I was kind of hoping someone could refer me to such a thing... perhaps this gain is far less pronounced than one might hope? Tomb -Original Message- From: Stefan Langer [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 1:54 PM To: [EMAIL PROTECTED] Subject: RE: Tomcat Performance Questions One thing the documentation states is that you should use the AJP13 Protocol which is suppose to be faster. That connector is not configured in the default server.xml file. They use AJP12 I have not tested this but you might want to give it a try. Stefan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Apache mod_SSL and Tomcat using mod_jk
-Message d'origine- De: Pete Ehli [mailto:[EMAIL PROTECTED]] Date: mardi 16 janvier 2001 08:34 : [EMAIL PROTECTED] Objet: Apache mod_SSL and Tomcat using mod_jk Hello I am new to Apache and am using mod_ssl Apache server connected with Tomcat via the mod_jk module - I've just done that ... (absolute beginer) I get the following warning when starting Apache after I start tomcat "Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (Please recompile it with -DEAPI) same for me... it seems to works anyway... note that I had to install JSSE 102 from sun java site... I've put it into the JRE 1.3 as documented (jar in lib/ext) and changed the security provider list in some properties file as documented... For tomcat servlet/jsp to be able to call-back HTTPS as a client I had to add a -D... that sets the implementor of URL... documented in JSSE also... I also had to set the keystore of jsse extract from tomcat.bat: :runServer rem Running Tomcat in this window if "%2" == "-security" goto runSecure %_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" -Djavax.net.ssl.trustStore="%TOMCAT_HOME%/conf/ssl/cacerts" -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup I am trying to get Apache and Tomcat to use SSL . I don't have a certificate configured and get the following error "localhost:443 should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile]" Can someone point me to the exact directions on how to configure a certificate and also will this module I had to use the snakeoil certificates an keys as documented... all is configured in a virtual host on port 443... the last problem is tha the snakeoil certificate have a /CN= different from my host DNS name (sure, it is a dummy certificate), and thus the HTTPS URL connector refuse to trust an HTTPS server whose certificat CN is different from it's DNS name... I've found example of config files on the web... note the the ifdefined SSL does not works with the apache/mod_ssl found on mod_ssl.org... I have used the IfModule mod_ssl.c I've put parts of the config files at the end... mod_jk work with the version of Apache I am using - Apache_1.3.14-mod_ssl_2.7.2-openssl_0.96-win32.zip and Tomcat 3.2.1 I have configured this via the documentation in Tomcat. Any ideas or suggestion on where to go form here would be much appreciated if some one can explai me how to generate a good server certificat with openssl or keytool... 8) -- here is the SSL config included at the end of the httpd.conf in apache ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP port (see above) and to the HTTPS port ## LoadModule ssl_module modules/ApacheModuleSSL.dll IfModule mod_ssl.c Listen 8000 Listen 8443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filtering dialog program (`builtin' is a internal # terminal dialog) has to provide the pass phrase on stdout. SSLPassPhraseDialog builtin # Inter-Process Session Cache: # Configure the SSL Session Cache: First either `none' # or `dbm:/path/to/file' for the mechanism to use and # second the expiring timeout (in seconds). #SSLSessionCachenone #SSLSessionCacheshm:logs/ssl_scache(512000) SSLSessionCache dbm:logs/ssl_scache SSLSessionCacheTimeout 300 # Semaphore: # Configure the path to the mutual explusion semaphore the # SSL engine uses internally for inter-process synchronization. #SSLMutex file:logs/ssl_mutex # Pseudo Random Number Generator (PRNG): # Configure one or more sources to seed the PRNG of the # SSL library. The seed data should be of good random quality. # WARNING! On some platforms /dev/random blocks if not enough entropy # is available. This means you then cannot use the /dev/random device # because it would lead to very long connection times (as long as # it requires to make more entropy available). But usually those # platforms additionally provide a /dev/urandom device which doesn't # block. So, if available, use this one instead. Read the mod_ssl User # Manual for more details. SSLRandomSeed startup builtin SSLRandomSeed connect builtin #SSLRandomSeed startup file:/dev/random 512 #SSLRandomSeed startup file:/dev/urandom 512 #SSLRandomSeed connect file:/dev/random 512 #SSLRandomSeed connect file:/dev/urandom 512 # Logging: # The home of the dedicated SSL protocol logfile. Errors are # additionally duplicated in the general error log file. Put # this somewhere where it cannot be used for symlink attacks on # a real server (i.e. somewhere where only root can write). # Log levels are (ascending order: higher ones include lower ones): # none, error, warn, info, trace,
RE: Apache mod_SSL and Tomcat using mod_jk
Hello I am new to Apache and am using mod_ssl Apache server connected with Tomcat via the mod_jk module - I've just done that ... (absolute beginer) I get the following warning when starting Apache after I start tomcat "Loaded DSO modules/mod_jk.dll uses plain Apache 1.3 API, this module might crash under EAPI! (Please recompile it with -DEAPI) The module as been compiled on a Standard Apache and you want it to run on a EAPI Apache (ie using mod_ssl). If you're using a Linux Redhat or compatible take a look at my RPM at :ftp://ftp.falsehope.com/home/gomez/tomcat/ or at http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/rpms/ same for me... it seems to works anyway... note that I had to install JSSE 102 from sun java site... I've put it into the JRE 1.3 as documented (jar in lib/ext) and changed the security provider list in some properties file as documented... For tomcat servlet/jsp to be able to call-back HTTPS as a client I had to add a -D... that sets the implementor of URL... documented in JSSE also... I also had to set the keystore of jsse extract from tomcat.bat: :runServer rem Running Tomcat in this window if "%2" == "-security" goto runSecure %_RUNJAVA% %TOMCAT_OPTS% -Dtomcat.home="%TOMCAT_HOME%" -Djavax.net.ssl.trustStore="%TOMCAT_HOME%/conf/ssl/cacerts" -Djava.protocol.handler.pkgs=com.sun.net.ssl.internal.www.protocol org.apache.tomcat.startup.Tomcat %2 %3 %4 %5 %6 %7 %8 %9 goto cleanup I am trying to get Apache and Tomcat to use SSL . I don't have a certificate configured and get the following error "localhost:443 should be SSL-aware but has no certificate configured [Hint: SSLCertificateFile]" Can someone point me to the exact directions on how to configure a certificate and also will this module I had to use the snakeoil certificates an keys as documented... all is configured in a virtual host on port 443... the last problem is tha the snakeoil certificate have a /CN= different from my host DNS name (sure, it is a dummy certificate), and thus the HTTPS URL connector refuse to trust an HTTPS server whose certificat CN is different from it's DNS name... I've found example of config files on the web... note the the ifdefined SSL does not works with the apache/mod_ssl found on mod_ssl.org... I have used the IfModule mod_ssl.c I've put parts of the config files at the end... mod_jk work with the version of Apache I am using - Apache_1.3.14-mod_ssl_2.7.2-openssl_0.96-win32.zip and Tomcat 3.2.1 I have configured this via the documentation in Tomcat. Any ideas or suggestion on where to go form here would be much appreciated if some one can explai me how to generate a good server certificat with openssl or keytool... 8) -- here is the SSL config included at the end of the httpd.conf in apache ## ## SSL Support ## ## When we also provide SSL we have to listen to the ## standard HTTP port (see above) and to the HTTPS port ## LoadModule ssl_module modules/ApacheModuleSSL.dll IfModule mod_ssl.c Listen 8000 Listen 8443 AddType application/x-x509-ca-cert .crt AddType application/x-pkcs7-crl.crl # Pass Phrase Dialog: # Configure the pass phrase gathering process. # The filtering dialog program (`builtin' is a internal # terminal dialog) has to provide the pass phrase on stdout. SSLPassPhraseDialog builtin # Inter-Process Session Cache: # Configure the SSL Session Cache: First either `none' # or `dbm:/path/to/file' for the mechanism to use and # second the expiring timeout (in seconds). #SSLSessionCachenone #SSLSessionCacheshm:logs/ssl_scache(512000) SSLSessionCache dbm:logs/ssl_scache SSLSessionCacheTimeout 300 # Semaphore: # Configure the path to the mutual explusion semaphore the # SSL engine uses internally for inter-process synchronization. #SSLMutex file:logs/ssl_mutex # Pseudo Random Number Generator (PRNG): # Configure one or more sources to seed the PRNG of the # SSL library. The seed data should be of good random quality. # WARNING! On some platforms /dev/random blocks if not enough entropy # is available. This means you then cannot use the /dev/random device # because it would lead to very long connection times (as long as # it requires to make more entropy available). But usually those # platforms additionally provide a /dev/urandom device which doesn't # block. So, if available, use this one instead. Read the mod_ssl User # Manual for more details. SSLRandomSeed startup builtin SSLRandomSeed connect builtin #SSLRandomSeed startup file:/dev/random 512 #SSLRandomSeed startup file:/dev/urandom 512 #SSLRandomSeed connect file:/dev/random 512 #SSLRandomSeed connect file:/dev/urandom 512 # Logging: # The home of the dedicated SSL protocol logfile. Errors are # additionally duplicated in the general error log file. Put # this somewhere where it cannot be used for symlink attacks on # a real server (i.e. somewhere where
mod_jk.so garbled
hai, I copied mod_jk.so file in the libexec directory of serverroot of apache. But when I try to restart the apache I get the error as "Starting httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: API module structure `jk_module' in file /etc/httpd/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO?" I got mod_jk.so from www.rpmfind.net,later by compiling with `make all in the Makefile.linux in the tomcat 3.2.1 source distribution".Finally with the command line given in the mod_jk-homto.html I have apache 1.3.12 tomcat 3.2.1 JDK1.3 RHL6.2 Waiting for your reply kamesh jayachandran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk.so garbled
hai, I copied mod_jk.so file in the libexec directory of serverroot of apache. But when I try to restart the apache I get the error as The RPM you got on falsehope is mod_jk/mod_jserv for an apache compiled with EAPI ! You must run an apache with EAPI (ie apache-mod_ssl or apache present on Redhat 6.2/7.0 and may be recent Suse/Mandrake "Starting httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: API module structure `jk_module' in file /etc/httpd/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO?" I got mod_jk.so from www.rpmfind.net,later by compiling with `make all in the Makefile.linux in the tomcat 3.2.1 source distribution".Finally with the command line given in the mod_jk-homto.html I have apache 1.3.12 tomcat 3.2.1 JDK1.3 RHL6.2 Waiting for your reply kamesh jayachandran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Anyone on Netware?
I am looking for anyone whom has gotten Tomcat to work on Netware or is interested in working on it. -jim
Re: Anyone on Netware?
Hi. Tomcat is working perfectly in my Netware environment. Tomcat works as a standalone webserver and with Apache (for Netware). Ive not gotten Tomcat to work with Netscape webserver. Cristian Prange. I am looking for anyone whom has gotten Tomcat to work on Netware or is interested in working on it. -jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Mod JK directives for Stronghold SSL
Sorry for being so persuasive about this but here goes :- I need to pass SSL info from Stronghold 3.0 to Tomcat. It seems the JK directives differ for various server implementations. Does anyone know the correct values for the following directives so that they are compatible with Stronghold 3.0 ? JkExtractSSL JkHTTPSIndicator JkSESSIONIndicator JkCIPHERIndicator JkCERTSIndicator Thanks Shahed - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
How to set Virtual Drive Mapping
Hello everyone! I use TomCat in connection with the JBuilder4. How can I setup the following virtual paths: /mm/web refers to local c:\dev\mm\web /mm/wap refers to local c:\dev\mm\wap The Context Path of /mm for local Drive c:\dev\mm I have already set in the JBuilder. I need that absolute virtal paths ( /mm/web, /mm/wap) to refer to from other jsp sites. Thanks a lot, Eric Erich Brunner Austrian Research Centers Seibersdorf Dept. Information Technology Authorized Java Center Breitenfurter Strasse 43-45 1120 Vienna/Austria phone: ++43-5-0550/4112 fax: ++43-5-0550/4199 mobile-phone: +43-664-114-79-69 email: [EMAIL PROTECTED] web:www.ajc.at - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: mod_jk.so garbled
On Tue, 16 Jan 2001, GOMEZ Henri wrote: Hai, I am using RHL6.2 stock install.I don't know whether it has mod_ssl support or not.I have seen apache's libexec directory which has no mod_ssl.Where can I get mod_ssl to make mod_jk.so work on my machine? What is EAPI? Thanks kamesh jayachandran hai, I copied mod_jk.so file in the libexec directory of serverroot of apache. But when I try to restart the apache I get the error as The RPM you got on falsehope is mod_jk/mod_jserv for an apache compiled with EAPI ! You must run an apache with EAPI (ie apache-mod_ssl or apache present on Redhat 6.2/7.0 and may be recent Suse/Mandrake "Starting httpd: Syntax error on line 51 of /etc/httpd/conf/httpd.conf: API module structure `jk_module' in file /etc/httpd/libexec/mod_jk.so is garbled - perhaps this is not an Apache module DSO?" I got mod_jk.so from www.rpmfind.net,later by compiling with `make all in the Makefile.linux in the tomcat 3.2.1 source distribution".Finally with the command line given in the mod_jk-homto.html I have apache 1.3.12 tomcat 3.2.1 JDK1.3 RHL6.2 Waiting for your reply kamesh jayachandran - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- /usr/games/fortune kernelnewbies| - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Web-site security
How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site. I'm sure there are probably other ways of handling this but we have a common include file that consists of session checking code and redirects to login.jsp if session is invalid, and this file is included on all pages in our context. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Checking the time
Hi, i have a problem, i am developing servlets under Tomcat 3.1 and Apache 1.3.1 under a Suse 7.0. I need to develop a program that check the time everynight and send e-mail to the users if its necessary. I would like how to configure that program and where must it be placed (a directory of Tomcat..). You could write a GenericServlet(since I'm assuming you don't need support for HTTP methods... post, get, put, etc...) that in the init method starts a persistent thread that waits for a specific time and does something only at that time. Then add this servlet to your web.xml file(templates for doing this are including in the core web.xml files) and add the following line for your new servlet/servlet block in web.xml: load-on-startup 0 /load-on-startup This will cause your servlet to be loaded (and therefore the init method called) when the server is started. The value for this property is a startup index for the priority startup queue. The lower the value(can be negative) the sooner the servlet is loaded. Hope this makes sense. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: please Help --session check
As a part of authentication check, I am checking for a session attribute to validate user login across pages. eg: if (session.getAttr("user")==null){ sendRedirect(loginpage); } But now, I am keeping these lines in all my jsp files(cut and paste)..If I have to change somethg with that I need to change in all jsp pages.. Is there any better way than this?? like keeping session -checking code in seperate file and including in all pages?? Yes, you can put all your common code in a separate file, say common.jsp, and then include the following on all your pages: %@ include file="common.jsp" % You can also have multiple @include tags on a single page so you could split up a file if need be. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: where can I find mod_jk.dll (win32)
the distribution directory has a win32 subfolder. you find the file here: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38 6/mod_jk.dll zipped: http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i38 6/mod_jk.zip Regards Christian -Ursprngliche Nachricht- It is stated to be found in the same directory as the distribution files, but I only found the one for Unix - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
SOLVED : Apache / SSL / Tomcat
I finally got mod_jk to pass SSL info back to tomcat. I had forgot to uncoment the apache SSLOption directive :-( Thanks Shahed. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Very Important and Urgent, please help
Hello, All I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP files, when I try execute any JSP, it returns following error. Error: 500 Location: /examples/jsp/include/include.jspInternal Servlet Error:java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause()Ljava/lang/Throwable; not found at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code)In any example it returns the same error. Please let me know the solution.RegardsYogesh Bhandarkar
RE: what r minimum system requirement for using tomcat ?
Kind of depends on the OS your running. Tomcat will run on any OS that has a JVM port. The actual processor/ram specs are a little more difficult to diagnose; depending on what OS you're running, what else will be running on the machine, etc... I mean you could be running just Tomcat on a linux box and probably get away with 512MB hdd, i486, and 16MB ram for example. While on a W2K system the core filesystem will take close to a 1GB hdd alone to install on some of the versions(Advanced Server for example-which includes IIS) and of course windoze is more of a memory hog. This is really too broad of a question for here. In general, you COULD run tomcat on a VERY minimal 486 box (running linux) but your performance will be pretty miserable if you're using for a dev box as well. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Very Important and Urgent, please help
Could you give us more info : CLASSPATH, JDK "Pour la plupart des hommes, se corriger consiste changer de dfauts." -- Voltaire -Original Message- From: Yogesh Bhandarkar [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:46 PM To: [EMAIL PROTECTED] Subject: Very Important and Urgent, please help Hello, All I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP files, when I try execute any JSP, it returns following error. Error: 500 Location: /examples/jsp/include/include.jsp Internal Servlet Error: java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause()Ljava/lang/Throwable; not found at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC onnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code) In any example it returns the same error. Please let me know the solution. Regards Yogesh Bhandarkar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Anyone on Netware?
Can you, or anyone provide setup/installation information? Thanks -jim -Original Message- From: Cristian Ramos Prange [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:42 AM To: [EMAIL PROTECTED] Subject: Re: Anyone on Netware? Hi. Tomcat is working perfectly in my Netware environment. Tomcat works as a standalone webserver and with Apache (for Netware). Ive not gotten Tomcat to work with Netscape webserver. Cristian Prange. I am looking for anyone whom has gotten Tomcat to work on Netware or is interested in working on it. -jim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Very Important and Urgent, please help
try it with jdk1.3, tools.jar in the classpath. ensure that you have set the JAVA_HOME environment variable. -Original Message-From: Yogesh Bhandarkar [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 2:46 PMTo: [EMAIL PROTECTED]Subject: Very Important and Urgent, please help Hello, All I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP files, when I try execute any JSP, it returns following error. Error: 500 Location: /examples/jsp/include/include.jspInternal Servlet Error:java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause()Ljava/lang/Throwable; not found at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code)In any example it returns the same error. Please let me know the solution.RegardsYogesh Bhandarkar
RE: Very Important and Urgent, please help
I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP files, when I try execute any JSP, it returns following error. Error: 500 Location: /examples/jsp/include/include.jsp Internal Servlet Error: java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause() Ljava/lang/Throwable; not found at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code) Old version of servlet.jar? Check to make sure you don't have multiple copies of servlet.jar sitting around and check the version of the servlet.jar file you're using. I echo the sentiment of Wenz Christian regarding HTML messages(plain text please). --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Error: Not Found (404)
What happens when you use the url http://localhost:8080/jsp/index.html ? Do you get the index page? If not make sure that you have tomcat started and all of your classpaths correctly entered. (JAVA_HOME, TOMCAT_HOME etc.) 404 error means that you have a directory misrouting issue. (File not found) A wild guess would say that IIS is not redirecting to tomcat and you have no "jsp/index.html" in IIS's path. Did you make the registry settings as listed in "IIS how to"? Have you created a virtual directory named "jakarta" in the same folder that the isapi_redirect.dll is located? Have you assigned this directory "execute" access? Have you added the iapid_redirect.dll as a filter in IIS? Make sure that your uriworkermap.properties file has an entry /examples/*=ajp12 . This will be an important file once you get going. This is where the isapi_redirect gets its information. You have to restart tomcat to make changes. Print out the "IIS Howto" so you have a copy in hand. Go through the steps deliberately. Good luck, isapi_redirect.dll is known to work on NT4+ (with service packs). Regards, Craig -Original Message- From: Yeo Kheng Hui [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 1:22 AM To: [EMAIL PROTECTED] Subject: Error: Not Found (404) Hi I have just recently try to set-up tomcat to be integrated with IIS. I have installed the tomcat as an out-process and while trying to load the url=Http:/localhost/examples/jsp/index.html after the installation, i got the error as shown below : Not Found (404) Not Found request /jakarta/isapi_redirect.dll Could you please help me? I have checked through all the troubleshooting guide and could not find a solution Thanks in advance. Regards Kheng Hui - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Web-site security
Thanks Michael, But I was thinking there might be a configuration file that does this. I think that would be a neater way of doing things than including an inlude file in all the pages. Can I write a servlet to which all my requests are directed before being passed on to the respective pages? Thanks, - Original Message - From: "Michael Wentzel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 16 January 2001 6:11 PM Subject: RE: Web-site security How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site. I'm sure there are probably other ways of handling this but we have a common include file that consists of session checking code and redirects to login.jsp if session is invalid, and this file is included on all pages in our context. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: SSL Programatically
Have anybody tried enabling SSL in a browser programatically r is there any AP Ispecification available Gotta say No. And I'd have to say this would probably be a bad thing to be able to do. Sounds kind of like a BackOrifice kind of thing(complete control over a browser). Just my humble opinion though:) --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Web-site security
But I was thinking there might be a configuration file that does this. I think that would be a neater way of doing things than including an inlude file in all the pages. I'm not sure on this one... I don't know of any configurations. Can I write a servlet to which all my requests are directed before being passed on to the respective pages? The only way I can think of doing a servlet would be more messy than the include because all requests would have to go through the servlet first. Another thing is try checking out org.apache.tomcat.request.SessionInterceptor (referred to in server.xml). I haven't looked at this class at all but you might be able to extend it, and using properties files do whatever session checking you need to do before the standard requestInterceptor stuff gets done. Adding a generic block of code and using properties files would allow for changing of session checking without having to recompile. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: jsp document root
How is it possible to create something without a context @ the *very* top root level so you can say: / maps to things in directory /myapp Thanks. - Jon "Simon Oldeboershuis, outermedia" wrote: Regis Muller schrieb: Sorry to ask such a trivial question to all of you but how can I put my .jsp files outside of the ROOT Directory of tomcat in e.g. in apache\htdocs ? you have to configure the position of the directory in the config file: tomcat/conf/server.xml there should be some example. Context path="/myapp" docBase="apache\htdocs\myappdocbase" crossContext="false" debug="0" reloadable="true" /Context The docbase should probably given as an absolute path. simon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Anyone on Netware?
Can you, or anyone provide setup/installation information? Thanks -jim Yes. Mikko Peltonen wrote the following instructions at devforums.novell.com. They have worked for me. But, first of all, download the JVM from Novell. Cristian Ramos Prange () Subject: Re: Info on Jakarta/Tomcat port to Netware Date: Fri, 1 Dec 2000 11:56:13 +0200 From: "Mikko Peltonen" [EMAIL PROTECTED] Organization: Another Netscape Collabra Server User Newsgroups: novell.devsup.jvm References: 1 , 2 , 3 OK. There seemed not to be any documentation concerning NetWare on the official release package of Tomcat 3.2, even though there are now compiled nlm's, so I'll try to briefly give some instructions: - Download Tomcat 3.2 (http://jakarta.apache.org/builds/tomcat/release/v3.2/bin/) and extract it to SYS volume. - Add the following lines to sys:\etc\java.cfg and restart JVM: TOMCAT_HOME=sys:\jakarta-tomcat-3.2 CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\ant.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jasper.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jaxp.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\parser.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\servlet.jar CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\webserver.jar - Create sys:\system\tomcat.ncf, and put in it line: java -Dtomcat.home="sys:/jakarta-tomcat-3.2" org.apache.tomcat.startup.Tomcat - Start Tomcat by executing the ncf file you just created At this point, you should be able to use Tomcat with the Tomcat's built-in http server, which by default listens in port 8080. Try pointing your browser to http://your-server-ip:8080/examples/. If you want to integrate with the Enterprise Server, do the following: - Copy the nsapi_rd.nlm file to sys:/jakarta-tomcat-3.2/bin -directory. This file is the nsapi plugin that handles the communications between Enterprise Server and Tomcat. By default communication is done through sockets by using the ajp12 protocol. - Disable Novell's Servlet Gateway. Go to Web Manager (https://your-server-ip:2200/), Enterprise Web Server configuration - Programs - Novell Servlet Gateway - Activate Servlet Gateway=No. Save Apply. - Edit the sys:\Novonyx\suitespot\https-SERVERNAME\config\obj.conf. Add the following lines. To the Init section, add: Init fn="load-modules" funcs="jk_init,jk_service" shlib="sys:/jakarta-tomcat-3.2/bin/nsapi_rd.nlm" Init fn="jk_init" worker_file="sys:/jakarta-tomcat-3.2/conf/workers.properties" log_level="debug" log_file="sys:/jakarta-tomcat-3.2/logs/nsapi.log" To the NameTrans section of the default object, add: NameTrans fn="assign-name" from="/servlet/*" name="servlet" NameTrans fn="assign-name" from="/examples/*" name="servlet" To the end of the file, add new "servlet" object: Object name="servlet" ObjectType fn="force-type" type="text/plain" Service fn="jk_service" worker="ajp12" /Object - Restart Enterprise Server Now you should be able to get to Tomcat examples through Enterprise Server (http://your-server-ip/examples/). If you want to configure more contexts (URLs) for Tomcat, or want to setup Tomcat to serve only dynamic pages in its contexts, additional information can be found from file sys:\jakarta-tomcat-3.2\doc\tomcat-netscape-howto.html (sections "Adding Additional Contexts" and "Advanced Config Configuration"). Regards, Mikko - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Sessionmanagement with SSL and DISABLED cookies?
Tomcat 3.2.1 standalone with SSL on JDK1.3 Win2K I use the builtin sessionmanagment (session=request.getSession(true);) in a small shopapp. Because cookies are disabled in many browsers, I prefere sessionmangment with urlrewriting. (server.xml -- noCookies) On normal http requests the sessionmanagment make a good job but changing to a safe https SSL connection for sensitive data the session is lost and a new session is created. Every time I reload this (https) page a new session is returned!?? Is this a problem of the https protokoll is urlrewriting under https impossible? Is there a workaround to use the sessions without turning on cookies under https? Is there for example a way to manualy pass the sessionID and get the user session like this: session.getSession("sessionID"); need your help, Martin - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Virtual Hosting
I need some help. I want to access my page in the form www.domain.com/*.jsp but the httpd.conf and the server.xml doesn't work with me. I think it is ME, not Tomcat 3.21 nor Apache 1.3.12 If your solution works, Please Help. Thanks Wilhelm - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat Performance Questions
Sorry if I missed it, early on in the thread, but what servlets etc are you testing the configurations with? In order to assess the performance of the engine, you should be using simple, easily analysed servlets, doing a minimum of functionality. Say, a snoop servlet, a session servlet, and similar in JSP. If you're testing the whole app you've written, the engine may be a small part of the performance overhead, ie if a request in 3.1 takes 50ms, and the servlet takes 500ms to produce the content, moving to 3.2 which *may* give 25ms for a similar call, will not actually produce a large apparent gain in performance. Whereas I appreciate that theory, that does not quite seem to be the case. We time certain of the methods in our API internally and then check the results also at the client side. Whereas I would expect more minor gains at the client side for precisely the reason you have identified, the timing of the API call is basically timing the performance of a request coming to the servlet, being processed in the servlet (a fairly short execution) and being returned from the servlet. For example, I can demonstrate that turning off the reloadable flag dropped timing results for certain API calls from about 200 ms down to about 45 ms (just picking some ballpark figures). I can show that the same timings dropped down to about 35 ms if you had JRE 1.3 running in place of 1.2.2. But the change of 3.1 to 3.2 produced almost negligible differences as did the change from mod_jserv to mod_jk. Now, I am working as part of a test team. The stress we're placing on the system using multiple clients forming and dropping connections as fast as they can while only executing perhaps 1 API call in between (and these are powerful test platform systems running a java based test tool which can spool up many connections at once) is apparently heavy. Now, since I can't quite quantify the number of connections/sec (mostly because I don't have the data), I suppose you can argue we're not hitting the load-extents at which JK with AJP13 or 3.2 might show their true colours. If this is so, then ultimately (as far as we're concerned, given we're trafficking the system heavily to our perspective) the performance gains from 3.1 -- 3.2 or from mod_jserv to mod_jk with AJP13 aren't useful to us because they don't affect the load region we appear to be working in. But it is a good point and well worth considering. What kind of load are you running? The pool tcp connectors will only really benefit high volume hits, again you're saving the time to construct an object and garbage it, with only having to synch and do a stack pop. I would have thought so. But does anyone have any data to quantify what number of connections per sec would be necessary to call this advantage noticeable? Of course, I bet the answer to that would involve specifying a system setup too... because more powerful computers probably make mod_jserv and the SimpleTcpCOnnector look good. If you've a lot of classes, reload=false will be a big benefit. Again, if you're running a lot of code, jdk 1.3 will benefit your app and the engine. Please supply more info on how you're testing this. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Tomcat+Apache+JBoss: Is this possible?
I saw some items about this on the JBoss list. I think that what you need is the JBoss 2.1 code, which is currently only available in the CVS tree. Basically, jBoss 2.0final is set up to work with mod_jserv, and mod_jk support is in devleopment. I've just started looking at JBoss, so I haven't tried this yet myself, but some of the people on the mailing list have been experimenting with it. Ed -Original Message- From: Chris Mayes [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 13, 2001 6:20 PM To: [EMAIL PROTECTED] Subject: Tomcat+Apache+JBoss: Is this possible? Hello, all. Is it possible to get an EJB container stuffed into Tomcat while still piping stuff through mod_jk to Apache? I have the Tomcat+Apache thing working quite nicely (After dinking with it for a couple of days and finally getting it in working order, I discovered that the .debs for Tomcat and mod_jk had finally made it into the Woody tree :-P), but we're starting to gear up to use EJBs for a project at work (whether we actually need to or not is another matter...), so I'd like to set up an EJB container to practice making EJBs (I just started learning about 'em on Thursday, so I have a lot to learn). I wasn't able to find a thread on this or the JBoss list where someone had actually gotten the three pieces to work together (Though someone did ask whether it was possible on the JBoss list... no definitive response). So, before I go and wreck my perfectly happy Apache+Tomcat setup, has anyone gotten EJB working correctly without messing up the mod_jk link? I don't particularly care which EJB container I use (though I do require that it actually works, of course) since I don't plan on using EJBs for any of my personal projects (It'd be overkill for 99% of what I do). It's just for practice. If it's not possible, is there a simple way to have an instance of Tomcat+JBoss working alongside an instance of Apache+Tomcat? Would this be a resource hog? TIA, -Chris __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Web-site security
Amit, There already is code included in tomcat for intercepting all requests for defined sets of URL's and applying authentication. Look at the definitions of RequestInterceptors for Simple and JDBC Realms in your server.xml file and check out the source for these. Also look at the security constraint section of the web.xml in your examples dir and at the example login.jsp in the security dir If you are using a database to authenticate your users there's a howto at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto However be warned I only ever got this to work with tomcat (3.2) standalone. Couldn't get it to work when using apache and tomcat together. From an earlier post on this list got the impression this is because Apache isn't aware of the web.xml settings for your app but don't take my word for it. You are of course also free to write your own custom RequestInterceptor. I'm planning to write my own version of JDBCRealm so that it is capable of handling encrypted passwords. Hope this helps Andrew On Tue, 16 Jan 2001, you wrote: Thanks Michael, But I was thinking there might be a configuration file that does this. I think that would be a neater way of doing things than including an inlude file in all the pages. Can I write a servlet to which all my requests are directed before being passed on to the respective pages? Thanks, - Original Message - From: "Michael Wentzel" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, 16 January 2001 6:11 PM Subject: RE: Web-site security How can i specify the default page for my site hosted on Tomcat on NT. I want to specify a particular file (say index.html) where all new sessions are redirected. If a user types a valid url path to my site, specifying any oher file on my site, he/she should be rediected to the index.html page. Only when he is logged on, should he be able to access the other pages on my site. I'm sure there are probably other ways of handling this but we have a common include file that consists of session checking code and redirects to login.jsp if session is invalid, and this file is included on all pages in our context. --- Michael Wentzel Software Developer A HREF="http://www.aswethink.com"Software As We Think/A A HREF="mailto:[EMAIL PROTECTED]"Michael Wentzel/A - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- === Andrew Robson 10 Bank Street Glasgow G12 8JQ Tel: (0141) 339 9970 Mobile: 07759 430234 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
socket write error
Hi all I'm getting this error message when loading up the the default Tomcat home page: 2001-01-16 01:41:19 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) Connection aborted by peer: socket write error (code10053) But the page seems to load just fine. Anyone know what the problem is here? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
xml.jar
Tomcat use this ( its in the system Classpath created by tomcat.bat ) I need to install another XML parser for my servlet ( WEB-INF/libs ) however the classes in the system classpath seem to be loaded first, screwing up my installed parser. Is there anything I can do about this, ideally I'd like the xml.jar removed from the Class Loader searches for my servlet. thx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
AW: socket write error
Hi all I'm getting this error message when loading up the the default Tomcat home page: 2001-01-16 01:41:19 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) Connection aborted by peer: socket write error (code10053) But the page seems to load just fine. Anyone know what the problem is here? Thanks for any help Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Instructions for pre-compiling JSPs
One of the guys here at work coded a servlet that was put in the web.xml. On init it would go out and compile the jsp's for the webapp. I have not had a chance to look at it myself, but I want to know if this is even going to change anything? Are the jsp's going to load faster at first call, or is Tomcat still going to check to see if they where touched then compile them again if they were? "Hawkins, Keith (Keith)" wrote: Can someone provide or point me to the steps needed to pre-compile JSP pages for use with Tomcat? Thanks, Keith - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] -- C. Jason Benedict - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
multiple workers
Hi, Imagine I have multiple workers, because multiple developpers are working on multiple sites and want to restart the tomcat server without bugging each others. How can one developper restart only his worker ? greetz, christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Trouble configuring Tomcat
Tomcat expects class files to be in WEB-INF/classes and than the package structure as directory structure below that. So if your package is com.mydomain.mypackage the directories would be WEB-INF/classes/com/mydomain/mypackage/ Just add WEB-INF/classes to your path and you should be fine! Thanks for the idea, Stefan, but I'm not quite sure I understand. I tried restarting Tomcat and adding "/home/httpd/share/servlet/WEB-INF/classes" to the CLASSPATH Tomcat uses in its startup script. But that didn't seem to help. In fact, looking at the Tomcat CLASSPATH, I don't see the WEB-INF/classes directories for the other default servlet directories listed either. Maybe I'm missing something else? --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HELP: upgrading to mod_jk ajp13 won't work ;-((((
Hi, I'm getting crazy ;- I'm trying to upgrade my lousy ajp12 mod_jserv config but I'm struggling like hell. Although I can feel slight improvements in my quest, I finally end up with my server not finding my servlets classes ;- Here's what I did: - compiled mod_jk.so, put it in libexec - Inserted next lines into httpd.conf: LoadModule jk_module libexec/mod_jk.so AddModule mod_jk.c Include /home/niemaz/DocumentSoul/build/tomcat/conf/tomcat.conf Include /home/niemaz/DocumentSoul/build/tomcat/conf/mod_jk.conf-auto' - Updated tomcat.conf: every jserv calls were commented out somehow replaced by some jkMount calls .. which could be the weak point (See attached files) - The next lines were inserted into server.xml: Connector className="org.apache.tomcat.service.PoolTcpConnector" Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/ Parameter name="port" value="8009"/ /Connector May I add that I got this warning when compiling mod_jk.so: ../jk/jk_jni_worker.c:764: warning: #warning --- ../jk/jk_jni_worker.c:765: warning: #warning NO JAVA 2 HEADERS! SUPPORT FOR JAVA 2 FEATURES DISABLED ../jk/jk_jni_worker.c:766: warning: #warning --- So how do I make it find my servlets classes? I'm desperate ;-((( Thanx ;-) --mike ## ## httpd.conf -- Apache HTTP server configuration file ## # # Based upon the NCSA server configuration files originally by Rob McCool. # # This is the main Apache server configuration file. It contains the # configuration directives that give the server its instructions. # See URL:http://www.apache.org/docs/ for detailed information about # the directives. # # Do NOT simply read the instructions in here without understanding # what they do. They're here only as hints or reminders. If you are unsure # consult the online docs. You have been warned. # # After this file is processed, the server will look for and process # /home/niemaz/DocumentSoul//conf/apache/srm.conf and then /home/niemaz/DocumentSoul//conf/apache/access.conf # unless you have overridden these with ResourceConfig and/or # AccessConfig directives here. # # The configuration directives are grouped into three basic sections: # 1. Directives that control the operation of the Apache server process as a # whole (the 'global environment'). # 2. Directives that define the parameters of the 'main' or 'default' server, # which responds to requests that aren't handled by a virtual host. # These directives also provide default values for the settings # of all virtual hosts. # 3. Settings for virtual hosts, which allow Web requests to be sent to # different IP addresses or hostnames and have them handled by the # same Apache server process. # # Configuration and logfile names: If the filenames you specify for many # of the server's control files begin with "/" (or "drive:/" for Win32), the # server will use that explicit path. If the filenames do *not* begin # with "/", the value of ServerRoot is prepended -- so "logs/foo.log" # with ServerRoot set to "/usr/local/apache" will be interpreted by the # server as "/usr/local/apache/logs/foo.log". # ### Section 1: Global Environment # # The directives in this section affect the overall operation of Apache, # such as the number of concurrent requests it can handle or where it # can find its configuration files. # # # ServerType is either inetd, or standalone. Inetd mode is only supported on # Unix platforms. # ServerType standalone # # ServerRoot: The top of the directory tree under which the server's # configuration, error, and log files are kept. # # NOTE! If you intend to place this on an NFS (or otherwise network) # mounted filesystem then please read the LockFile documentation # (available at URL:http://www.apache.org/docs/mod/core.html#lockfile); # you will save yourself a lot of trouble. # # Do NOT add a slash at the end of the directory path. # ServerRoot "/opt/Misc/apache_1.3.12/" # # The LockFile directive sets the path to the lockfile used when Apache # is compiled with either USE_FCNTL_SERIALIZED_ACCEPT or # USE_FLOCK_SERIALIZED_ACCEPT. This directive should normally be left at # its default value. The main reason for changing it is if the logs # directory is NFS mounted, since the lockfile MUST BE STORED ON A LOCAL # DISK. The PID of the main server process is automatically appended to # the filename. # LockFile /home/niemaz/DocumentSoul//logs/httpd.lock # # PidFile: The file in which the server should record its process # identification number when it starts. # PidFile /home/niemaz/DocumentSoul//logs/httpd.pid # # ScoreBoardFile: File used to store internal server process information. # Not all architectures require this. But if yours does (you'll know because # this
Apache
Hi, If I use Apache for http Tomcat for jsp/servlet together. Can I still use wars ? greetz, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Apache
Title: RE: Apache yes /===\ | Micky Mimo | | Systems Specialist | | (781) 457 - 1317 | | [EMAIL PROTECTED] | \===/ -Original Message- From: Rooms Christoph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:55 AM To: [EMAIL PROTECTED] Subject: Apache Hi, If I use Apache for http Tomcat for jsp/servlet together. Can I still use wars ? greetz, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: need help using bean (solution)
hi, Just found the problem. Although I specified a context for my /usr/local/apache/htdocs directory as the "/" context, I didn't specify a context for my individual webapps. I thought they would be covered by the "/" context. Anyway, I specified a "/networkdb" context and that fixed the problem. I'm not sure if that makes sense but that was the change that seemed to have fixed the problem. Thanks to all who replied, PS. I can't use any sql from java.sql even if I import java.sql.* in my JSP files. This is not a big problem since I can ( and should ) put all the sql in separate beans anyway, but I'm wondering whether this was indicative of a misconfiguration somewhere. -Kervin "COLE,GLENN (Non-HP-SantaClara,ex2)" wrote: Hi, Kevin -- I couldn't figure out how to run web apps under a directory other than $TOMCAT_HOME/webapps, so I made a link under there to point to my webapp. In your case, under $TOMCAT_HOME/webapps, try ln -s /user/local/apache/htdocs/networkdb networkdb ...although personally I definitely wouldn't put the webapp in the apache directory. What happens when you upgrade Apache? Won't that wipe out your webapp? --Glenn -Original Message- From: Kervin Pierre [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 9:16 AM To: [EMAIL PROTECTED] Subject: Re: need help using bean Hi, Firstly, thanks for the responses Bill and Karan. I created my own application under my apache document directory ( I'm using mod_jk ). Is this going to cause a problem? My apache root is /usr/local/apache/htdocs and hence I placed my application in /usr/local/apache/htdocs/networkdb and my web-inf directory is /usr/local/apache/htdocs/networkdb/WEB-INF/ . I read that beans need to have they class hierarchy mimic on the file system, so I placed my final bean source file in /usr/local/apache/htdocs/networkdb/WEB-INF/classes/edu/fit/eng/networkdb/ . JSP pages load and run fine, so I guess my mod_jk setup is working, but beans do not load. Must I modify my class path? Is there anything I should be doing differently since I'm using mod_jk ( ie., since my application is not under the $TOMCAT_HOME directory ) My simple program now looks like program now looks like %@ page language="java" import="edu.fit.eng.networkdb.*" % jsp:useBean id="connBean" class="edu.fit.eng.networkdb.sqlConnBean" scope="page" / HTML [...] and my bean file ( WEB-INF/classes/edu/fit/eng/networkdb/sqlConnBean.java )... package edu.fit.eng.networkdb; import java.io.*; import java.sql.*; import java.beans.*; public class sqlConnBean { private Connection conn; [...] Any ideas?, -Kervin karanmalhi wrote: Please tell me if you have made your own web application or using the default and have you put your directories(packages) in the classes directory of the web-inf directory i.e. your package should be placed here tomcat_home\webapps\web-inf\classes or if you make your own webapplication e.g. kervin then tomcat_home\webapps\kervin\web-inf\classes hope this will help you karan - Original Message - From: "Kervin Pierre" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 14, 2001 1:09 AM Subject: Re: need help using bean William Brogden wrote: Kervin Pierre wrote: Hello, I can't seem to get this to work. The bean compiles OK but when I try to load it, I get a "Error: 500" below saying that my package couldn't be loaded. ... org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f index_0002ejspindex_jsp_0.java:15: Package edu.fit.eng.networkdb.sqlConnObj not found in import. import edu.fit.eng.networkdb.sqlConnObj.*; ... My jsp page begins like this %@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"% jsp:useBean id="connBean" class="sqlConnBean" scope="page" / When you name your class in the useBean tag you MUST use the complete package - it doesn't matter that you imported the package Thanks, I tried this but I'm getting the same error. [...] org.apache.jasper.JasperException: Unable to compile class for JSP/usr/local/jakarta/build/tomcat/work/localhost_8080/_0002fnetworkdb_0002f index_0002ejspindex_jsp_0.java:15: Package edu.fit.eng.networkdb.sqlConnObj not found in import. import edu.fit.eng.networkdb.sqlConnObj.*; [...] My page reads now %@ page language="java" import="edu.fit.eng.networkdb.sqlConnObj.*"% jsp:useBean id="connBean" class="edu.fit.eng.networkdb.sqlConnObj.sqlConnBean" scope="page" / [...] What does this error mean? How do I fix it? -Kervin - To unsubscribe, e-mail: [EMAIL PROTECTED]
file protection
in a web a want to protect a file. if a user invoques the file it must to ask the password. how can i make it? thanks Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Running Tomcat as non-root user
Kitching - Thanks for the response. I was afraid of that. 'ifconfig' is the utility that lets you see information about the network interfaces, not a firewall. :) Do you run multiple machines with a firewall in front of them to do the redirection (w/ load balancing for example) or do you run the firewall on each machine individually? I asked our operations people about the same thing being done in our load balancer (F5/BigIP) - but apparently it can't be done there. Setting up a redirect on each machine could be a pain - not that I'd have to do it. :) Thanks again. Kitching Simon wrote: Hi Geoff, As far as I know (and I did a fair bit of research on this topic), there is no way for any java app to start as one user, then switch to running as another user. What I do is run tomcat on port 8080 as non-root, and use a firewall product to redirect port 80 - 8080. This works fine. I can't give you great details, as the firewall stuff was set up by a sysadmin (which I am not), but we use Solaris and I think the firewall is "ifconfig". I guess that linux' ipchains or ipfilter or whatever can do the same job. Regards, Simon -Original Message- From: Geoff Lane [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 11:46 PM To: [EMAIL PROTECTED] Subject: Running Tomcat as non-root user In the Tomcat UG under the heading 'Modify and Customize the Batch Files' it says one of the reasons to do so (modify start up scripts) would be: "To switch user from root to some other user using the "su" UNIX command." This is an excellent idea from a security standpoint. But to bind to port 80 (instead of the default high port 8080) root is needed. How many applications do this (Apache for example) is to initially run as root, bind to port 80, and then drop root privileges. Is something like this possible with Tomcat running standalone? Running concurrently with Apache would accomplish this because the AJP connection could be run as any user since it's on a high port. Thanks. -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: file protection
Use Java Security APIs. It's easy to implement. -Original Message- From: Carlos [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: file protection in a web a want to protect a file. if a user invoques the file it must to ask the password. how can i make it? thanks Carlos - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Running Tomcat as non-root user
You may be able to write yourself some native code to do the switcheroo for you. Then use the java calls to the native call. The code to do the user switch is readily available (though I have not searched for it now, I have seen it before, and it is also available from apache subject to the ASL) This, of course, makes you relatively platform specific. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Lane Sent: Tuesday, January 16, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: Re: Running Tomcat as non-root user Kitching - Thanks for the response. I was afraid of that. 'ifconfig' is the utility that lets you see information about the network interfaces, not a firewall. :) Do you run multiple machines with a firewall in front of them to do the redirection (w/ load balancing for example) or do you run the firewall on each machine individually? I asked our operations people about the same thing being done in our load balancer (F5/BigIP) - but apparently it can't be done there. Setting up a redirect on each machine could be a pain - not that I'd have to do it. :) Thanks again. Kitching Simon wrote: Hi Geoff, As far as I know (and I did a fair bit of research on this topic), there is no way for any java app to start as one user, then switch to running as another user. What I do is run tomcat on port 8080 as non-root, and use a firewall product to redirect port 80 - 8080. This works fine. I can't give you great details, as the firewall stuff was set up by a sysadmin (which I am not), but we use Solaris and I think the firewall is "ifconfig". I guess that linux' ipchains or ipfilter or whatever can do the same job. Regards, Simon -Original Message- From: Geoff Lane [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 11:46 PM To: [EMAIL PROTECTED] Subject: Running Tomcat as non-root user In the Tomcat UG under the heading 'Modify and Customize the Batch Files' it says one of the reasons to do so (modify start up scripts) would be: "To switch user from root to some other user using the "su" UNIX command." This is an excellent idea from a security standpoint. But to bind to port 80 (instead of the default high port 8080) root is needed. How many applications do this (Apache for example) is to initially run as root, bind to port 80, and then drop root privileges. Is something like this possible with Tomcat running standalone? Running concurrently with Apache would accomplish this because the AJP connection could be run as any user since it's on a high port. Thanks. -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Running Tomcat as non-root user
You could use EJB's or a mobile agent framework? -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 5:35 PM To: [EMAIL PROTECTED] Subject: RE: Running Tomcat as non-root user You may be able to write yourself some native code to do the switcheroo for you. Then use the java calls to the native call. The code to do the user switch is readily available (though I have not searched for it now, I have seen it before, and it is also available from apache subject to the ASL) This, of course, makes you relatively platform specific. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Lane Sent: Tuesday, January 16, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: Re: Running Tomcat as non-root user Kitching - Thanks for the response. I was afraid of that. 'ifconfig' is the utility that lets you see information about the network interfaces, not a firewall. :) Do you run multiple machines with a firewall in front of them to do the redirection (w/ load balancing for example) or do you run the firewall on each machine individually? I asked our operations people about the same thing being done in our load balancer (F5/BigIP) - but apparently it can't be done there. Setting up a redirect on each machine could be a pain - not that I'd have to do it. :) Thanks again. Kitching Simon wrote: Hi Geoff, As far as I know (and I did a fair bit of research on this topic), there is no way for any java app to start as one user, then switch to running as another user. What I do is run tomcat on port 8080 as non-root, and use a firewall product to redirect port 80 - 8080. This works fine. I can't give you great details, as the firewall stuff was set up by a sysadmin (which I am not), but we use Solaris and I think the firewall is "ifconfig". I guess that linux' ipchains or ipfilter or whatever can do the same job. Regards, Simon -Original Message- From: Geoff Lane [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 11:46 PM To: [EMAIL PROTECTED] Subject: Running Tomcat as non-root user In the Tomcat UG under the heading 'Modify and Customize the Batch Files' it says one of the reasons to do so (modify start up scripts) would be: "To switch user from root to some other user using the "su" UNIX command." This is an excellent idea from a security standpoint. But to bind to port 80 (instead of the default high port 8080) root is needed. How many applications do this (Apache for example) is to initially run as root, bind to port 80, and then drop root privileges. Is something like this possible with Tomcat running standalone? Running concurrently with Apache would accomplish this because the AJP connection could be run as any user since it's on a high port. Thanks. -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Repost: bizarre JasperException on Solaris box (with Stronghold)
The following message was posted last week to this list. The only potential answer we got was dealing with message size limitations. A fragment of that message follows: the method size limit is actually due to the 16bit offset inside a class file. It's not javac. JDK 1.3 won't help either (afaik). I had this problem when using a lot of tags on my page -- they generate loads of code. You could either using scriptlets to call the functions you want instead of tags, or (what i did) refactor the page to minimise the number of actual tags present (I was able to loop a large section and factor out many of the calls). What is the size of you're class files / java files? If they're getting on for 64k this is probably your problem. I'm waiting to move to jsp 1.2 with include/flush=false, to get away from this problem (ie can have almost a method call of JSP). We don't think this is the problem however because we can compile the .java file generated by Jasper from the shell. The only difference it appears is that Tomcat uses the UTF8 character encoding, which we specified from the command line as well. It doesn't seem like it should fail from Jasper but not from the shell. Also mentioned was that somebody else saw this phenomena but they only saw it when running Tomcat through Stronghold Apache, but it worked fine for him when hitting Tomcat directly. We cannot currently test this scenario due to security restrictions on the Solaris box. The original message follows: We're currently running Stronghold Tomcat 3.1 on a Solaris 2.7 box and are running into a bizarre JasperException (see below) where certain large pages won't compile. This problem only occurs on our staging Solaris machines and never on any of our NT development machines. Further when I look at the generated servlet and find the areas that the compiler (we're using javac 1.2.2) is complaining about, it is obvious that there really is not a problem. For example, the first error message claims that a variable has not been initialized but after examining the code it clearly is being initialized. We have also taken the generated servlet and compiled it from the command line without any problems. After examining the stack trace and the Tomcat src it looks like it is javac that is having trouble compiling the page. Unfortunately javac is black box so I can't figure out what the real problem is. So far the only thing that we have been able to determine is that this problem only occurs on large, complex pages (I don't know what the breaking point is but the size of the generated servlet is about 90k). Consequently our current solution is to simplify the page until it works, but this solution really sucks and can be a very painful process. I looked in the list archives and found lots of problems with NT and compilation problems but I didn't see any that mentioned Solaris. Has anyone seen something like this? In the next couple of days I'm going to be tweaking the config of this machine. The problem seems either to be an environment problem or a resource problem (i.e. need to increase JVM size, play with ulimit?, ...). Any other ideas out there? Thanks, Troy == Tomcat error... Error: 500 Location: /psi/en/catalogadminsubcategories.jsp Internal Servlet Error: org.apache.jasper.JasperException: Unable to compile class for JSP/opt/tomcat/work/localhost_8080/_0002fpsi_0002fen_0002fcatalogadminsubcat egories_0002ejspcatalogadminsubcategories_jsp_0.java:970: Variable _jspx_eval_falcon_setListCriteria_18 may not have been initialized. if (_jspx_eval_falcon_setListCriteria_18 != Tag.SKIP_BODY) { ^ /opt/tomcat/work/localhost_8080/_0002fpsi_0002fen_0002fcatalogadminsubcatego ries_0002ejspcatalogadminsubcategories_jsp_0.java:976: Variable _jspx_th_falcon_setListCriteria_18 may not have been initialized. if (_jspx_th_falcon_setListCriteria_18.doEndTag() == Tag.SKIP_PAGE) ^ /opt/tomcat/work/localhost_8080/_0002fpsi_0002fen_0002fcatalogadminsubcatego ries_0002ejspcatalogadminsubcategories_jsp_0.java:1001: Variable _jspx_th_falcon_columnHeader_10 may not have been initialized. if (_jspx_th_falcon_columnHeader_10.doEndTag() == Tag.SKIP_PAGE) ^ /opt/tomcat/work/localhost_8080/_0002fpsi_0002fen_0002fcatalogadminsubcatego ries_0002ejspcatalogadminsubcategories_jsp_0.java:1007: Variable out may not have been initialized. out.print(_jspx_html_data[90]); ^ /opt/tomcat/work/localhost_8080/_0002fpsi_0002fen_0002fcatalogadminsubcatego ries_0002ejspcatalogadminsubcategories_jsp_0.java:1009: Variable _jspx_th_falcon_href_36 may not have been initialized. } while (_jspx_th_falcon_href_36.doAfterBody() ==
Xserver Tomcat
I'm using Tomcat 3.2.1 under Linux 2.2.16 Slack 7.1 and the 1.3 JDK. I have a servlet that does some .gif creation for graphs and returns the .gif in a page. I don't seem to be able to setup Linux and Tomcat together to do this. I always have to be logged in as root. I've set xhost +localhost, I've run xauth, I've set DISPLAY=localhost:0.0 and =machinename:0.0. This is all running under xdm as the xserver. I'm wondering now if anyone in the Tomcat world has run into this and solved it? Kev www.servidium.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Xserver Tomcat
You need to start Xvfb. It should have been installed on your machine as part of XFree86. Do a search through the archives for Xvfb, and you'll get a bunch of references. I assume that when you state that you must be logged in as root, you are starting the server Sounds like you don't have the native graphics context. -Original Message- From: Kevin McIsaac [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:49 AM To: [EMAIL PROTECTED] Subject: Xserver Tomcat I'm using Tomcat 3.2.1 under Linux 2.2.16 Slack 7.1 and the 1.3 JDK. I have a servlet that does some .gif creation for graphs and returns the .gif in a page. I don't seem to be able to setup Linux and Tomcat together to do this. I always have to be logged in as root. I've set xhost +localhost, I've run xauth, I've set DISPLAY=localhost:0.0 and =machinename:0.0. This is all running under xdm as the xserver. I'm wondering now if anyone in the Tomcat world has run into this and solved it? Kev www.servidium.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Meta -inf folder
Dear Mary, They are part of the JAR file. http://www.lirmm.fr/beans/doc/jar.html may help. Yours, Aleksey On Sat, Jan 13, 2001 at 01:31:48AM -, Mary McCarthy wrote: Hi, Anyone know what the Meta-inf folder is for? Thanks in advance. _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Apache
Title: RE: Apache But is it then possible to work under apache with this "WAR directory structure". (like we do when working in Tomcat) -Original Message-From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]Sent: dinsdag 16 januari 2001 19:18To: [EMAIL PROTECTED]Subject: RE: Apache The WEB-INF directory is part of the war file. All a war file comprises is a jar of the entire webapp directory structure, making it easier to distribute than the entire directory. Tomcat unjars the war file for its ease. -Original Message-From: Christoph Rooms [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 1:14 PMTo: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: Apache How ? What is the best approach to keep on working with the WEB-INF directory ? -Original Message-From: micky mimo [mailto:[EMAIL PROTECTED]]Sent: dinsdag 16 januari 2001 17:59To: [EMAIL PROTECTED]Subject: RE: Apache yes /===\ | Micky Mimo | | Systems Specialist | | (781) 457 - 1317 | | [EMAIL PROTECTED] | \===/ -Original Message- From: Rooms Christoph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:55 AM To: [EMAIL PROTECTED] Subject: Apache Hi, If I use Apache for http Tomcat for jsp/servlet together. Can I still use wars ? greetz, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Compiling mod_jserv.so on AIX for IBM HTTP Server
Have you been able to build mod_jk.so for Apache under AIX ? If so, could you please share how you did this? It would be greatly appreciated! Thank you, -Mark- -Original Message- From: Barbara Nelson [mailto:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 10:19 PM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: Compiling mod_jserv.so on AIX for IBM HTTP Server Has anyone succeeded in building mod_jserv.so for AIX for the IBM HTTP Server (not Apache). I've figured out how to build the module for Apache, but not for the IBM HTTP Server. There is a -DAFPA directive, and there is some code in mod_jserv.c that seems to distinguish between the IBM HTTP Server and other servers, based on a flag HAVE_APFD but I can't figure out the correct build flags, and am getting compilation errors. If anyone has either a compiled mod_jserv.so for the IBM HTTP server, or the compiler/loader flags to build it, I would much appreciate it. Many thanks, Barbara Nelson. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Xserver Tomcat
Hi all, Kevin McIsaac wrote: I'm using Tomcat 3.2.1 under Linux 2.2.16 Slack 7.1 and the 1.3 JDK. I have a servlet that does some .gif creation for graphs and returns the gif in a page. I don't seem to be able to setup Linux and Tomcat together to do this. I always have to be logged in as root. I've set xhost +localhost, I've run xauth, I've set DISPLAY=localhost:0.0 and =machinename:0.0. This is all running under xdm as the xserver. I'm wondering now if anyone in the Tomcat world has run into this and solved it? I failed to find the problem. Is it - convincing the XServer to run a servlet? :-) - running tomcat on a linux box ? - runnig a browser on X11 ? - logging into a linux box ? All this (except the first one) runs fine for me. So what is your problem? Jrg -- -- Jrg Ahrens_/ brainCAPITAL GmbH_/_/ Tel.: 0511/8488 5303 _/ _/ email: [EMAIL PROTECTED]_/_/_/_/_/ ._/_/_/_/ _/ -- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
HIGH Priority :RE: socket write error
Folks, sorry for putting high priority for this. I see this problem existing in tomcat archive for a long time. Till now no solution(couple of answers are there, unfortunately they didn't help). Please somebody let us know how to handle this scenario Thanks, Raghu -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:11 AM To: [EMAIL PROTECTED] Subject: AW: socket write error Hi all I'm getting this error message when loading up the the default Tomcat home page: 2001-01-16 01:41:19 - Ctx( ): IOException in: R( + /tomcat-power.gif + null) Connection aborted by peer: socket write error (code10053) But the page seems to load just fine. Anyone know what the problem is here? Thanks for any help Kai - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Trouble configuring Tomcat
The original question for this email is gone, so I can't comment on that :-) Simon, thanks for your comments. I've reattached the original message below. Basically, I was simply hoping that I could run some servlets under http://www.mysite.foo/share-servlet/ , which would be aliased under Apache. Although the servlet directories that came prebuilt with Tomcat ARE working, I don't want to have to run MY servlets under, say, /examples . I've been unable to figure out how to duplicate their configuration so that I can put my own servlets under /share-servlet. So any help is appreciated! Here's the original message: - Although my knowledge of Apache is pretty good, I'm having a bear of a time getting Tomcat/mod_jk configured. I'm definitely hampered by my lack of Java knowledge - it seems each time I try to read one of the installation guides (Tomcat Minimalistic User's Guide, Working with mod_jk, etc), I keep hitting some unfamiliar term or concept that makes me think I've missed something from ANOTHER document I should have read first... and I end up going in circles, never finding quite what I need. I'm coming from a PHP background, so my goal is to (if possible) have a similar arrangement that I have with PHP. Currently, I can put my .php files anywhere in the HTTP docroot, and Apache's PHP handler will see the extension and process them correctly with mod_php. So I would LIKE to be able to have .jsp files anywhere in my docroot. And I would LIKE to have servlet files under one particular directory (/share-servlet) which will be right above the HTTP docroot. (Is it a Bad Thing (or even possible) to have a servlet directory that is actually *below* the webserver's docroot?) (oh, one note before I go on - I was quite confused with all the talk about mod_jserv and mod_jk until it dawned on me that mod_jk has superceded mod_jserv. Is that right? If so, when will the User's Guide be updated?) Tomcat is installed in /usr/local/tomcat/(conf|lib|webapps|etc.) The Apache docroot is /home/httpd/website . The servlets will go under /home/httpd/share/servlet Now here's what I did for JSP - see if this was right: 1) added the following to /usr/local/tomcat/server.xml: Context path="/" docBase="/home/httpd/website" crossContext="true" debug="0" reloadable="true" trusted="false" /Context 2) Created /home/httpd/website/test.jsp 3) Ran http://www.mysite.foo/test.jsp which seemed to work. So was that all I needed to do? (The directive "JkMount /*.jsp ajp13" had already been loaded by the auto-generated mod_jk.conf (which I've modified, copied to mod_jk.mysite.conf, and accessed via an Include directive in Apache's httpd.conf ) My attempts to get servlets working didn't turn out so well. Again, I'm probably inhibited by my lack of Java knowledge (Tomcat is hopefully going be the start of my Java training), but I tried the following: 1) Added this to /usr/local/tomcat/server.xml: Context path="/share-servlet" docBase="/home/httpd/share/servlet" crossContext="true" debug="0" reloadable="true" trusted="false" /Context 2) Added this to my mod_jk.mysite.conf : Alias /share-servlet "/home/httpd/share/servlet" Directory "/home/httpd/share/servlet" Options Indexes FollowSymLinks /Directory JkMount /share-servlet/* ajp13 3) Compiled and created /home/httpd/share/servlet/HelloWorld.class 4) Attempted to access http://www.mysite.foo/share-servlet/HelloWorld but this time I got a 404 error (generated by Tomcat, not Apache). I know the examples that came with tomcat under /usr/local/tomcat/webapp/(admin|test|examples) contains all kinds of things like META-INF and WEB-INF directories, .war files, etc. but I really don't know how they all work. But I don't want to have to run my servlets out of /usr/local/tomcat/* if I can help it. Do I need some/all of those files/directories under /home/httpd/share/servlet if that's where I want my servlets to go? Thanks to anyone who can point me in the right direction. --== Sent via Deja.com ==-- http://www.deja.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Logging in Tomcat
hi, i'd like some information on logging in tomcat. i believe u have to change the verbosity level in the server.xml file. only error logs are being generate in my case. i want the log file to be updated everytime the user access any web application on tomcat. i'd appreciate any help. thanks, Mohan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Logging in Tomcat
Yes, setting the verbosity level is one way to up the amount of log information you are getting. Be aware, if you turn it way up (so you log quite a lot), the consequences can be performance impacting (and not in a good way). There are good reasons the default levels are set to log less information. If you need more information, crank up the log verbosity level but expect slower operation. It's probably not a good thing in a production system. :) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:15 PM To: [EMAIL PROTECTED] Subject: Logging in Tomcat hi, i'd like some information on logging in tomcat. i believe u have to change the verbosity level in the server.xml file. only error logs are being generate in my case. i want the log file to be updated everytime the user access any web application on tomcat. i'd appreciate any help. thanks, Mohan. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Running tomcat
Hi, Can anyone help me out.I tried running tomcat using tomcat run. I'm getting an error message '"Unable to locate servlet.jar.Check TOMCAT_HOME". In Autoexec.bat,I've set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=.;C:\Xerces\xerces.jar;C:\jdk1.3\lib\tools.jar;C:\Soap\lib\soap.jar;C:\jakarata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servlet.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; Do I miss something?.Any ideas/suggetsions will be greatly helpful for me. Thanks in advance. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: Running tomcat
Try removing the ending semi-colon on JAVA_HOME and TOMCAT_HOME -Original Message- From: Ezhil M [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:38 PM To: [EMAIL PROTECTED] Subject: Running tomcat Hi, Can anyone help me out.I tried running tomcat using tomcat run. I'm getting an error message '"Unable to locate servlet.jar.Check TOMCAT_HOME". In Autoexec.bat,I've set JAVA_HOME=C:\jdk1.3; set TOMCAT_HOME=C:\jakarta; set CLASSPATH=.;C:\Xerces\xerces.jar;C:\jdk1.3\lib\tools.jar;C:\Soap\lib\soap.ja r;C:\jakarata\lib; C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper.jar ;C:\jakarta\lib\ant.jar; C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servle t.jar; PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin; Do I miss something?.Any ideas/suggetsions will be greatly helpful for me. Thanks in advance. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
precompile JSP with jspc picking up changes in JSP source
I noticed that if I precompile JSP with jspc and setup servlet mapping in web.xml, changes to the original JSP file will not be picked up by Tomcat. Can I have both or are they mutually exclusive? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS and Basic Authentication
Yes, that was it. I removed all authentication methods (except anonymous) and it started passing the headers correctly. I did this by selecting "Properties" on my "Default Web Site". Then I chose "Directory Security" then "Edit" in the "Anonymous access and authentication control." Then I unchecked the Basic and Integrated windows checkboxes. Then restarted IIS. Worked great. Thank you very much. Andrew McAllister University of Missouri -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:17 AM To: '[EMAIL PROTECTED]' Subject: RE: IIS and Basic Authentication Problem: I'm trying to get IIS (with the isapi redirector) and Tomcat to cooperate on basic authentication. I've written a servlet that handles the basic authentication correctly using the req.getHeader("Authorization"); method and it works well when I connect directly to Tomcat on port 8080. But when I connect via IIS using the redirector, it never passes the authorization header to the servlet. Perhaps you need to completely disable IIS Basic auth, i did run into a problem that looks like yours, but i did see the headers from tomcat, but this was after disable the basic auth from IIS, i dont remember but now it's working for me without problems, so i see auth headers from tomcat. FYI TC3.3 has inside a new option for the AJP12Interceptor to use with IIS that do not tries to read the authenticated user trought AJP12 , lefting this task to Tomcat, thus doing all basic auth trought tomcat without problems... Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: installing tomcat on win98, with apache.
change the initial memory setting of dos window to a value greater than 3200 (or) Edit the config.sys file and add the following line SHELL=c:\command.com /E:4096 /P Restart ur machine U have done everything right ...just do the above step it will work fine Narayanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: Very Important and Urgent, please help
please check if you have put some other older version of servlet.jar in your classpath or in java_home\jre\lib\ext folder. if yes then remove it and the problem will be solved - Original Message - From: Yogesh Bhandarkar To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 7:16 PM Subject: Very Important and Urgent, please help Hello, All I'm Using tomcat 3.2.1 on Redhat Linux 6.2, with apache 1.3.9. Problem here I'm facing is that, I'm not able to execute JSP files, when I try execute any JSP, it returns following error. Error: 500 Location: /examples/jsp/include/include.jspInternal Servlet Error:java.lang.NoSuchMethodError: javax.servlet.ServletException: method getRootCause()Ljava/lang/Throwable; not found at org.apache.tomcat.context.ExceptionHandler.doService(DefaultCMSetter.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.handleError(ContextManager.java, Compiled Code) at org.apache.tomcat.core.Handler.service(Handler.java, Compiled Code) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java, Compiled Code) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java, Compiled Code) at org.apache.tomcat.core.ContextManager.service(ContextManager.java, Compiled Code) at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java, Compiled Code) at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java, Compiled Code) at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java, Compiled Code) at java.lang.Thread.run(Thread.java, Compiled Code)In any example it returns the same error. Please let me know the solution.RegardsYogesh Bhandarkar
Re: Running Tomcat as non-root user
You could use apache or squid as a reverse proxy (web accelerator) to accept connections on port 80 then redirect to another port 1024 via the proxy. Bap. You could use EJB's or a mobile agent framework? -Original Message- From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 5:35 PM To: [EMAIL PROTECTED] Subject: RE: Running Tomcat as non-root user You may be able to write yourself some native code to do the switcheroo for you. Then use the java calls to the native call. The code to do the user switch is readily available (though I have not searched for it now, I have seen it before, and it is also available from apache subject to the ASL) This, of course, makes you relatively platform specific. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Geoff Lane Sent: Tuesday, January 16, 2001 12:29 PM To: [EMAIL PROTECTED] Subject: Re: Running Tomcat as non-root user Kitching - Thanks for the response. I was afraid of that. 'ifconfig' is the utility that lets you see information about the network interfaces, not a firewall. :) Do you run multiple machines with a firewall in front of them to do the redirection (w/ load balancing for example) or do you run the firewall on each machine individually? I asked our operations people about the same thing being done in our load balancer (F5/BigIP) - but apparently it can't be done there. Setting up a redirect on each machine could be a pain - not that I'd have to do it. :) Thanks again. Kitching Simon wrote: Hi Geoff, As far as I know (and I did a fair bit of research on this topic), there is no way for any java app to start as one user, then switch to running as another user. What I do is run tomcat on port 8080 as non-root, and use a firewall product to redirect port 80 - 8080. This works fine. I can't give you great details, as the firewall stuff was set up by a sysadmin (which I am not), but we use Solaris and I think the firewall is "ifconfig". I guess that linux' ipchains or ipfilter or whatever can do the same job. Regards, Simon -Original Message- From: Geoff Lane [SMTP:[EMAIL PROTECTED]] Sent: Monday, January 15, 2001 11:46 PM To: [EMAIL PROTECTED] Subject: Running Tomcat as non-root user In the Tomcat UG under the heading 'Modify and Customize the Batch Files' it says one of the reasons to do so (modify start up scripts) would be: "To switch user from root to some other user using the "su" UNIX command." This is an excellent idea from a security standpoint. But to bind to port 80 (instead of the default high port 8080) root is needed. How many applications do this (Apache for example) is to initially run as root, bind to port 80, and then drop root privileges. Is something like this possible with Tomcat running standalone? Running concurrently with Apache would accomplish this because the AJP connection could be run as any user since it's on a high port. Thanks. -- Geoff Lane [EMAIL PROTECTED] (650) 969-5000 x104 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
problem in running startup.bat
Hi, Can anyone help me out.When i tried to run startup.bat file in tomcat/bin directory,I got, bad command/filename error. Any ideas/suggetions to trace this error will be greatly helpful for me. Thanks in advance. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
org.apache.tomcat.request.SecurityCheck???
Does anyone know why there is no functionality inside the method SecurityCheck.errorPage( Request req, Response response)? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem in running startup.bat
Perhaps the current directory (.) is not in your path? Try ./startup.bat -Y -Original Message- From: Ezhil M [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: problem in running startup.bat Hi, Can anyone help me out.When i tried to run startup.bat file in tomcat/bin directory,I got, bad command/filename error. Any ideas/suggetions to trace this error will be greatly helpful for me. Thanks in advance. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: What is your performance like?
Well, lets see if I can help. I dont find the 3.5 version particularly unstable (I hated the version 2.0) my collegue had to reinstall VA 3 times in one week ;-) that much about stability. Maybe it all depends on what youre doing (right or wrong, whatever) but what I can recomen you is to start the test enviroment for Websphere directly running the class SERunner. (I think this is the name, if is isn't just search SER ...) we want to run the servlets in tomcat. they run well in the Websphere testenvironment, but we have problems getting them to run in a "non-ibm" server. Therefore we created a "HelloWorld" servlet. But till now we didnt get it running in tomcat. I can send you sourcecode for that easy example. Slow database query? . I can hardly believe you. I mean DB2 is a good product. If the query is slow it may be because of another problem. right now we have a 128K ISDN connection to the AS400 machine. Next week we will have a 2MB access. Lets see if we get better results :-) There are lots of ways of optimizing queries. So I have two questions to ask you. First, does the query by itself runs fast? its a simple "select * from table", not to complex, or is it? hehe Second, are you using the Beans from IBM? On anwer I may be able to guide you. most components are to simple to be really usable What do you mean. Are you using the wizards? We use the AS400 tool-beans. Lets take the grid-bean. How do you sort the different collumns? Why does it take so much time to build the grid? It seems that we are not allone, cause IBMs DB2 Tools are now build with Java, too. The grid is a bit faster, but its way to slow. I saw the devexpress-grid component in Delphi5 C/S and that one builds 20.000 rows in milliseconds. No way to reach that level of speed for java. My colleague is taking lessons this week. Next week we will try again to solve the problems with exporting the beans to tomcat. Maybe we can speak about what were doing next week? thanx for your help i appreciate that much sincerely Jrgen Sommer Bye, Gaston ps: isn't it a tomcat-jakarta newsgroup? (dont worry). - Original Message - From: Jrgen Sommer [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, January 14, 2001 7:52 PM Subject: What is your performance like? Hi all, at our company we tried to code some small servlets that work with a small database. For example: - connect to a DB2 database - get about 100 db-entries (select from table) - show them in a grid We work with Visual-Age for Java 3.5. The problems we discovered where: - unstable workspace (VA for Java) - unbearable slow database-queries (DB2 on a big AS400) - most components are to simple to be really usable What experiences do you have with java code-developement? Are db-queries so slow as we have seen it? Are other tools more stable or is VA more stable at your computer? Are there any components that are better to use for a good GUI? I was just curious if there are people having the same problems as we have. thanx to you sincerely Nostromo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: IIS and Basic Authentication
Has anyone successfully setup form-based security authentication? Have you gotten the error page to display when the wrong username/password was entered? What do you recommend for implementing form-based security? Thanks in advance, Bob -Original Message- From: McAllister, Andrew [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:02 PM To: '[EMAIL PROTECTED]' Subject: RE: IIS and Basic Authentication Yes, that was it. I removed all authentication methods (except anonymous) and it started passing the headers correctly. I did this by selecting "Properties" on my "Default Web Site". Then I chose "Directory Security" then "Edit" in the "Anonymous access and authentication control." Then I unchecked the Basic and Integrated windows checkboxes. Then restarted IIS. Worked great. Thank you very much. Andrew McAllister University of Missouri -Original Message- From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:17 AM To: '[EMAIL PROTECTED]' Subject: RE: IIS and Basic Authentication Problem: I'm trying to get IIS (with the isapi redirector) and Tomcat to cooperate on basic authentication. I've written a servlet that handles the basic authentication correctly using the req.getHeader("Authorization"); method and it works well when I connect directly to Tomcat on port 8080. But when I connect via IIS using the redirector, it never passes the authorization header to the servlet. Perhaps you need to completely disable IIS Basic auth, i did run into a problem that looks like yours, but i did see the headers from tomcat, but this was after disable the basic auth from IIS, i dont remember but now it's working for me without problems, so i see auth headers from tomcat. FYI TC3.3 has inside a new option for the AJP12Interceptor to use with IIS that do not tries to read the authenticated user trought AJP12 , lefting this task to Tomcat, thus doing all basic auth trought tomcat without problems... Saludos , Ignacio J. Ortega - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: installing tomcat on win98, with apache.
i got this: D:\dev\tomcat3startup Bad command or file name D:\dev\tomcat3 any clues ? -tc -Original Message- From: Narayanan [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 11:49 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: installing tomcat on win98, with apache. change the initial memory setting of dos window to a value greater than 3200 (or) Edit the config.sys file and add the following line SHELL=c:\command.com /E:4096 /P Restart ur machine U have done everything right ...just do the above step it will work fine Narayanan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
getParameter() help
Hi, I have a servlet which dispatches out various jsp's. Some of the jsp's resulting html contain links back to the servlet to fire off another page like this: A HREF="mainservlet?cmd=loadpage=home"HOME/A When I do a request.getParameter("cmd") the string I get is "cmd" which is right. When I do request.getParameter("page") the string I get is "mainservlet?cmd=load" which is not right. Does anyone know if I'm doing something wrong with how I'm writing the link back to the servlet? Thanks! Matt Becker Mythicwave Productions, Inc. 21053 Devonshire, #201 Chatsworth, Ca. 91311 818-700-1998 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: getParameter() help
No you are not doing anything wrong. But I think you are using a name that is allready reserved for a parameter. (Please correct me if I'm wrong) Try changing page to page1 or something different and see the result. Stefan
FORM BASED AUTHENTICATION...
Has anyone successfully setup form-based security authentication? Have you gotten the error page to display when the wrong username/password was entered? What do you recommend for implementing form-based security? Thanks in advance, Bob - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: problem in running startup.bat
Sorry... .\startup.bat if you're on Windows -Original Message- From: Morahg, Yoav [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 3:48 PM To: '[EMAIL PROTECTED]' Subject: RE: problem in running startup.bat Perhaps the current directory (.) is not in your path? Try ./startup.bat -Y -Original Message- From: Ezhil M [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 3:40 PM To: [EMAIL PROTECTED] Subject: problem in running startup.bat Hi, Can anyone help me out.When i tried to run startup.bat file in tomcat/bin directory,I got, bad command/filename error. Any ideas/suggetions to trace this error will be greatly helpful for me. Thanks in advance. __ Do You Yahoo!? Get email at your own domain with Yahoo! Mail. http://personal.mail.yahoo.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
RE: precompile JSP with jspc picking up changes in JSP source
They are mutually exclusive. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:01 PM To: [EMAIL PROTECTED] Subject: precompile JSP with jspc picking up changes in JSP source I noticed that if I precompile JSP with jspc and setup servlet mapping in web.xml, changes to the original JSP file will not be picked up by Tomcat. Can I have both or are they mutually exclusive? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
jdbc realm
what is a jdbc realm? - Original Message - From: "Marc Saegesser" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January 17, 2001 2:35 AM Subject: RE: precompile JSP with jspc picking up changes in JSP source They are mutually exclusive. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 2:01 PM To: [EMAIL PROTECTED] Subject: precompile JSP with jspc picking up changes in JSP source I noticed that if I precompile JSP with jspc and setup servlet mapping in web.xml, changes to the original JSP file will not be picked up by Tomcat. Can I have both or are they mutually exclusive? Bill - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Qincluded into httpd.conf_?
hi all, I really need help; 1. in my httpd.conf should I include both this two lines include C:/javaLine/tomcat/conf/tomcat-apache.confinclude C:/javaLine/tomcat/conf/tomcat.conf 2. [ I prefer to use Ajp13 but tomcat ]I change from Ajp12 to Ajp13 ,i.e I remove the Ajp12 connector,but it creates a problem when I shut down tomcat,what can I do?my server.xml (below) Connector className="org.apache.tomcat.service.PoolTcpConnector"Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/Parameter name="port" value="8009"//Connector thanks sam
RE: Qincluded into httpd.conf_?
Don't remove it! (AJP12) It says not to in the docs. It is necessary for shutdown. Leave both configured, just make sure the directives to use AJP 13 are in place then the presence of AJP 12 will be irrelevant. -Original Message-From: Sam T. [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 4:42 PMTo: [EMAIL PROTECTED]Subject: Qincluded into httpd.conf_? hi all, I really need help; 1. in my httpd.conf should I include both this two lines include C:/javaLine/tomcat/conf/tomcat-apache.confinclude C:/javaLine/tomcat/conf/tomcat.conf 2. [ I prefer to use Ajp13 but tomcat ]I change from Ajp12 to Ajp13 ,i.e I remove the Ajp12 connector,but it creates a problem when I shut down tomcat,what can I do?my server.xml (below) Connector className="org.apache.tomcat.service.PoolTcpConnector"Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/Parameter name="port" value="8009"//Connector thanks sam
Re: Qincluded into httpd.conf_?
thanks, what about the tomcat-apache.conf which one of them should be included in http.conf file? sam- Original Message - From: Barclay, Tom To: '[EMAIL PROTECTED]' Sent: Tuesday, January 16, 2001 10:37 PM Subject: RE: Qincluded into httpd.conf_? Don't remove it! (AJP12) It says not to in the docs. It is necessary for shutdown. Leave both configured, just make sure the directives to use AJP 13 are in place then the presence of AJP 12 will be irrelevant. -Original Message-From: Sam T. [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 4:42 PMTo: [EMAIL PROTECTED]Subject: Qincluded into httpd.conf_? hi all, I really need help; 1. in my httpd.conf should I include both this two lines include C:/javaLine/tomcat/conf/tomcat-apache.confinclude C:/javaLine/tomcat/conf/tomcat.conf 2. [ I prefer to use Ajp13 but tomcat ]I change from Ajp12 to Ajp13 ,i.e I remove the Ajp12 connector,but it creates a problem when I shut down tomcat,what can I do?my server.xml (below) Connector className="org.apache.tomcat.service.PoolTcpConnector"Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/Parameter name="port" value="8009"//Connector thanks sam
RE: Qincluded into httpd.conf_?
I use tomcat-apache.conf Make sure your JkMount directives in httpd.conf refer to ajp13 rather than ajp12. Then you should be in business. -Original Message-From: Sam T. [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 4:48 PMTo: [EMAIL PROTECTED]Subject: Re: Qincluded into httpd.conf_? thanks, what about the tomcat-apache.conf which one of them should be included in http.conf file? sam- Original Message - From: Barclay, Tom To: '[EMAIL PROTECTED]' Sent: Tuesday, January 16, 2001 10:37 PM Subject: RE: Qincluded into httpd.conf_? Don't remove it! (AJP12) It says not to in the docs. It is necessary for shutdown. Leave both configured, just make sure the directives to use AJP 13 are in place then the presence of AJP 12 will be irrelevant. -Original Message-From: Sam T. [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 4:42 PMTo: [EMAIL PROTECTED]Subject: Qincluded into httpd.conf_? hi all, I really need help; 1. in my httpd.conf should I include both this two lines include C:/javaLine/tomcat/conf/tomcat-apache.confinclude C:/javaLine/tomcat/conf/tomcat.conf 2. [ I prefer to use Ajp13 but tomcat ]I change from Ajp12 to Ajp13 ,i.e I remove the Ajp12 connector,but it creates a problem when I shut down tomcat,what can I do?my server.xml (below) Connector className="org.apache.tomcat.service.PoolTcpConnector"Parameter name="handler" value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/Parameter name="port" value="8009"//Connector thanks sam
RE: Apache
Title: RE: Apache I've been playing around with the war files as well. Tomcat will build the webapp's directory structure from the war file if the directory doesn't already exist; however, it does nothing if the directory structure is already there. I have a mixed environment, where another application is providing html pages and images, and Tomcat is providing servlets. The webapp directory ends up being the common place where everything comes together. Because of this, I would like to keep only part of the webapp in the war file. I would like Tomcat to extract the contents of the war file even if thedirectory tree already exists. Is there a flag that I can set somewhere that will cause this to happen? Thx, Ed -Original Message-From: Christoph Rooms [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 12:32 PMTo: [EMAIL PROTECTED]Subject: RE: Apache But is it then possible to work under apache with this "WAR directory structure". (like we do when working in Tomcat) -Original Message-From: CPC Livelink Admin [mailto:[EMAIL PROTECTED]]Sent: dinsdag 16 januari 2001 19:18To: [EMAIL PROTECTED]Subject: RE: Apache The WEB-INF directory is part of the war file. All a war file comprises is a jar of the entire webapp directory structure, making it easier to distribute than the entire directory. Tomcat unjars the war file for its ease. -Original Message-From: Christoph Rooms [mailto:[EMAIL PROTECTED]]Sent: Tuesday, January 16, 2001 1:14 PMTo: [EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE: Apache How ? What is the best approach to keep on working with the WEB-INF directory ? -Original Message-From: micky mimo [mailto:[EMAIL PROTECTED]]Sent: dinsdag 16 januari 2001 17:59To: [EMAIL PROTECTED]Subject: RE: Apache yes /===\ | Micky Mimo | | Systems Specialist | | (781) 457 - 1317 | | [EMAIL PROTECTED] | \===/ -Original Message- From: Rooms Christoph [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:55 AM To: [EMAIL PROTECTED] Subject: Apache Hi, If I use Apache for http Tomcat for jsp/servlet together. Can I still use wars ? greetz, Christoph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getParameter() help
It looks like the "page" could be a key-word and is pulling "mainservlet?cmd=load",try changing page to something like "pg" and see if u get the same error. Ram From: Matt Becker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: getParameter() help Date: Tue, 16 Jan 2001 12:50:28 -0800 Hi, I have a servlet which dispatches out various jsp's. Some of the jsp's resulting html contain links back to the servlet to fire off another page like this: A HREF="mainservlet?cmd=loadpage=home"HOME/A When I do a request.getParameter("cmd") the string I get is "cmd" which is right. When I do request.getParameter("page") the string I get is "mainservlet?cmd=load" which is not right. Does anyone know if I'm doing something wrong with how I'm writing the link back to the servlet? Thanks! Matt Becker Mythicwave Productions, Inc. 21053 Devonshire, #201 Chatsworth, Ca. 91311 818-700-1998 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getParameter() help
Hi, Ram! I tried changing the name "page" to "pg" but that didn't change that getParameter() returns other part of the text that's not part of the "pg" variable. I thought maybe I was doing something wrong with the URL in how the parameters were being passed in the GET that's being executed when the URL is clicked on. The first parameter "load" is always correct. The separation between values passed is the "" symbol, right? I'm using Tomcat 3.2.1, JDK 1.3, and IE 5.5 on a Win98 machine. Thanks! Matt At 01:58 PM 1/16/01, you wrote: It looks like the "page" could be a key-word and is pulling "mainservlet?cmd=load",try changing page to something like "pg" and see if u get the same error. Ram From: Matt Becker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: getParameter() help Date: Tue, 16 Jan 2001 12:50:28 -0800 Hi, I have a servlet which dispatches out various jsp's. Some of the jsp's resulting html contain links back to the servlet to fire off another page like this: A HREF="mainservlet?cmd=loadpage=home"HOME/A When I do a request.getParameter("cmd") the string I get is "cmd" which is right. When I do request.getParameter("page") the string I get is "mainservlet?cmd=load" which is not right. Does anyone know if I'm doing something wrong with how I'm writing the link back to the servlet? Thanks! Matt Becker Mythicwave Productions, Inc. 21053 Devonshire, #201 Chatsworth, Ca. 91311 818-700-1998 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Failed Tomcat Build on Solaris 2.8
I am trying to build the Tomcat-3.2.1 release on a Solaris machine running Solaris 2.8 When I try to do the build it fails. I have included the first few error messages. Searching for build.xml ... Buildfile: /usr/local/source/jakarta/jakarta-tomcat/build.xml prepare: tomcat: [javac] Compiling 5 source files to /usr/local/source/jakarta/build/tomcat/classes [javac] /usr/local/source/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compile r/JspCompiler.java:136: Method getClassName(java.lang.String) not found in class org.apache.jasper.compiler.ClassName. [javac] realClassName = ClassName.getClassName( getClassFileName() ); [javac] ^ [javac] /usr/local/source/jakarta/jakarta-tomcat/src/share/org/apache/jasper/compile r/JspCompiler.java:137: Exception org.apache.jasper.JasperException is never thrown in the body of the corresponding try statement. [javac] } catch( JasperException ex) { [javac] ^ . . . BUILD FAILED Any ideas? Melissa Matthews Product Development Manager Packexpo.com Phone 703.205.9256 Fax 703.205.2961 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getParameter() help
On Tuesday January 16, 2001 Matt Becker wrote: Hi, Ram! I tried changing the name "page" to "pg" but that didn't change that getParameter() returns other part of the text that's not part of the "pg" variable. I thought maybe I was doing something wrong with the URL in how the parameters were being passed in the GET that's being executed when the URL is clicked on. The first parameter "load" is always correct. The separation between values passed is the "" symbol, right? Yes, that is right. Try changing the "home" to something else, like "test". You are just hard coding "home" right, not using a JSP tag or something? Also, when you hold the cursor over the link in IE what does it say in the status bar? Is the link correct there and also is it correct in the address bar after you click on the link? Elijah Roberts [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
Re: getParameter() help
Matt, You are doing it right.Try restarting the server and close all browser windows that are open(just to make sure that the browser is not dishing out the cached page).Also please post your code so that we can take a look at it. hope this solves your problem Ram From: Matt Becker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: getParameter() help Date: Tue, 16 Jan 2001 14:07:56 -0800 Hi, Ram! I tried changing the name "page" to "pg" but that didn't change that getParameter() returns other part of the text that's not part of the "pg" variable. I thought maybe I was doing something wrong with the URL in how the parameters were being passed in the GET that's being executed when the URL is clicked on. The first parameter "load" is always correct. The separation between values passed is the "" symbol, right? I'm using Tomcat 3.2.1, JDK 1.3, and IE 5.5 on a Win98 machine. Thanks! Matt At 01:58 PM 1/16/01, you wrote: It looks like the "page" could be a key-word and is pulling "mainservlet?cmd=load",try changing page to something like "pg" and see if u get the same error. Ram From: Matt Becker [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: getParameter() help Date: Tue, 16 Jan 2001 12:50:28 -0800 Hi, I have a servlet which dispatches out various jsp's. Some of the jsp's resulting html contain links back to the servlet to fire off another page like this: A HREF="mainservlet?cmd=loadpage=home"HOME/A When I do a request.getParameter("cmd") the string I get is "cmd" which is right. When I do request.getParameter("page") the string I get is "mainservlet?cmd=load" which is not right. Does anyone know if I'm doing something wrong with how I'm writing the link back to the servlet? Thanks! Matt Becker Mythicwave Productions, Inc. 21053 Devonshire, #201 Chatsworth, Ca. 91311 818-700-1998 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED] _ Get your FREE download of MSN Explorer at http://explorer.msn.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]
tomcat contexts and JVMs
Hi All: I am a bit confused. Does each context in server.xml have its own JVM session? For example, I have two contexts: 1) Catalog - for a product catalog app 2) Support - for customer support apps Both these contexts need a connection pool to my backend Oracle database. If both contexts use separate JVM sessions then I would have double the number of connections to my Oracle database and the connections would increase per context added. Is there a way to share the connection pool object across contexts? Again all this relates back to whether the various contexts runs within one JVM session or each has its own JVM session. Thanks, Joshua - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]