Re: kept getting HTTP Status 404 - please help. thanx.
Normally, Admin and no password Fred - Original Message - From: John Qin [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Sunday, February 02, 2003 7:10 AM Subject: Re: kept getting HTTP Status 404 - please help. thanx. hi Jacob Kjome .thanx for ur help. I got it work, thanx for ur help. by the way, do u kno how to get into tomcat administration section. Whats the default ID and password for that. Thank you. John Qin. --- Jacob Kjome [EMAIL PROTECTED] wrote: Are you accessing it like this? http://localhost:8080/servlet/MyServlet If so, note that the /servlet/* mapping is for the invoker servlet which is commented out (by default) in Tomcat conf/web.xml. Uncomment the mapping for the invoker servlet and you will be able to access your servlet. BTW, you should always put your servlet in an actual package if you haven't already. Something like com.mycompany.MyServlet instead of placing your classes in the root of WEB-INF/classes which is the default package. You can't import the default package. Jake At 09:07 PM 2/1/2003 -0800, you wrote: Ijust installed tomcat 4.1.18 today. everything seems fine. i can see this page http://localhost:8080/index.jsp. and i run those Servlet Examples, it showed up, everyting is good. then i wrote a servlet page myself, and try to run it. it told me cannot find it, I got http status 404 error. I am sure my coding is rite. cuz I download htem directly from web site. after i compile the .java file, I put it .class file into WEB-INF/classes folder. I followed hte instruction step by step. I check thousands time, still have no clue whts wrong. if u have any ideas please help me out. thanx. john. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Admin user and passwd
Hi, what is the default user and password for web admin interface od Tomcat? Thanks. Liquid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
URGENT: many apache processes
hi, this night switched a site online. it worked fluidly, but now (i guess the hit-rate is much higher) more and more apache-processes are listed, and the log of tomcat says Feb 2, 2003 2:40:09 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Feb 2, 2003 2:40:09 PM org.apache.jk.common.ChannelSocket processConnection INFO: Server has been restarted or reset this connection many many times. any guess why this is? tomcat's httpd is serving the pages fast, but with mod_jk and apache it can't berly surf. Thx Sven - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
coyote connector: timeout log messages and broken sessions
Hi, how can i disable the coyote timeout (error) messages with tomcat 4.1.18 and apache 1.3.x. there is also a problem with timed out sessions under tomcat. thanks and best regards, thorsten _ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plusref=lmtplus - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Admin user and passwd
The Tomcat homepage gives hints: NOTE: For security reasons, using the administration webapp is restricted to users with role admin. The manager webapp is restricted to users with role manager. Users are defined in $CATALINA_HOME/conf/tomcat-users.xml. More can be found in the documentation: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/manager-howto.html Michael -Original Message- From: Liquid [mailto:[EMAIL PROTECTED]] Sent: Sonntag, 2. Februar 2003 13:04 To: [EMAIL PROTECTED] Subject: Admin user and passwd Hi, what is the default user and password for web admin interface od Tomcat? Thanks. Liquid - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URGENT: many apache processes
this night switched a site online. it worked fluidly, but now (i guess the hit-rate is much higher) more and more apache-processes are listed, and the log of tomcat says just for others: i had to set the number of maxProcessors in AJP13 connector to a value greater then MaxProcesses value in apache's http.conf. Now it works fluidly. This is also stated in the docs, but i overread it. Feb 2, 2003 2:40:09 PM org.apache.jk.common.ChannelSocket processConnection INFO: connection timeout reached Feb 2, 2003 2:40:09 PM org.apache.jk.common.ChannelSocket processConnection INFO: Server has been restarted or reset this connection i guess these don't matter much they still appear - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with tomcat and ssl
Hi, I'm using tomcat server 4.1.18 on linux but I can't use SSL with tomcat. When I try to display the https://localhost:8443/ page, nothing appears. However, the page http://localhost:8080/ runs! When I'm looking in the logs, I obtain the following messages: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:723) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.tomcat.util.net.jsse.JSSEImplementation.init(JSSEImplementation.java:80) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:107) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:88) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:103) at org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Protocol.java:450) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:133) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1032) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) Does someone see where the problem is? However it' said on tomcat site that JSSE should be installed and that's what I made! Thanks for any help. -- Gandalf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL and non-SSL webapps (Apache 2.0.44/mod_jk/Tomcat 4.1.18)
You should be able to do this without much trouble. The thing to remember is that Apache treats non-ssl and ssl connections as two different entities. You have a VirtualHost configuration for the non-ssl stuff on port 80 and a VirtualHost configuration for SSL communication. You can mount or not mount in either of these areas. The tricky part is to keep the document root of each one seperate, that may be where your running into trouble. In my ssl setup I make my document root, for a given virtual host, a completely different location then its non-ssl counterpart. Thus for a given host www.testhost.com I may have the following doc roots: Non-SSL /var/httpd/nonsecure/htdocs/testhost SSL /var/httpd/secure/htdocs/testhost This way I have a clear delineation of where my secure content is served from vs. my non secure content. Ed On Sat, 2003-02-01 at 13:30, Oscar Carrillo wrote: I am having a difficult time with what would appear to be a common issue. I have Tomcat 4.1.18 with mod_jk connecting with Apache/SSL. It works great, but I am having difficulty figuring out how to separate SSL and non-SSL communcations. Ideally, it would seem that the proper way for this to function would be to have VirtualHost in Apache and they mount the repective webapps directory (or none at all for inaccessibility) using the mod_jk connector configuration. But mounting seems to be global as far as I can tell. So that http://myhost.mydomain/myTomcatDirectory/ goes the same place that https://myhost.mydomain/myTomcatDirectory/ If this is not possible or very involved, maybe it would somehow be easier to disable just that directory in Apache for port 80. I could not get that to work either as it seemed to pass the request to the mod_jk connector. I may have done something wrong there, but I tried to follow the documentation with Directory directives. If that had worked I could not use that same directory name for content on the Apache side but that's not that big of a deal. The other option I thought of was to do URL Rewriting in Apache so that all http://myhost.mydomain/myTomcatDirectory; would get replaced with https://myhost.mydomain/myTomcatDirectory;. That seemed like a decent option to, but the configuration for the mod_rewrite was a bear to try and figure out. If someone knows how do something simple like I describe please post. The other option I could think of is to not have apache listen on port 80, and then run another instance of apache with it's own config files that would just listen to port 80. Seems a little awkward but I also had difficulty getting a second copy of apache running. A little enlightenment is greatly appreciated. Thank you, Oscar Carrillo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Ed Robbins [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: kept getting HTTP Status 404 - please help. thanx.
Glad you got it working :-) Both the admin and manager apps can use arbitrary usernames and passwords. The only requirement is that a user have the roles admin or manager for each respective app. So, in tomcat-users.xml, add something like... user username=myManagerUser password=whateverPasswordIChoose roles=manager/ user username=myAdminUser password=anotherPasswordIChose roles=admin/ user username=someOtherSuperUser password=myFavoritePassword roles=manager,admin/ Jake At 10:10 PM 2/1/2003 -0800, you wrote: hi Jacob Kjome .thanx for ur help. I got it work, thanx for ur help. by the way, do u kno how to get into tomcat administration section. Whats the default ID and password for that. Thank you. John Qin. --- Jacob Kjome [EMAIL PROTECTED] wrote: Are you accessing it like this? http://localhost:8080/servlet/MyServlet If so, note that the /servlet/* mapping is for the invoker servlet which is commented out (by default) in Tomcat conf/web.xml. Uncomment the mapping for the invoker servlet and you will be able to access your servlet. BTW, you should always put your servlet in an actual package if you haven't already. Something like com.mycompany.MyServlet instead of placing your classes in the root of WEB-INF/classes which is the default package. You can't import the default package. Jake At 09:07 PM 2/1/2003 -0800, you wrote: Ijust installed tomcat 4.1.18 today. everything seems fine. i can see this page http://localhost:8080/index.jsp. and i run those Servlet Examples, it showed up, everyting is good. then i wrote a servlet page myself, and try to run it. it told me cannot find it, I got http status 404 error. I am sure my coding is rite. cuz I download htem directly from web site. after i compile the .java file, I put it .class file into WEB-INF/classes folder. I followed hte instruction step by step. I check thousands time, still have no clue whts wrong. if u have any ideas please help me out. thanx. john. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: tomcat as a standalone webserver
You can either use the Alias container in server.xml to alias www.xyz.com to localhost, or you can use the Host container to create as many virtual hosts as you want. The Host container for localhost in server.xml is a Tomcat virtual host. It just happens to be called localhost but it could be called anything. To create a separate virtual host from the one already given (localhost), simply copy the Host/Host container that's already there and everything in between, and edit to your specifications. Lots more in the docs: http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/host.html John -Original Message- From: krip pane [mailto:[EMAIL PROTECTED]] Sent: Saturday, February 01, 2003 5:08 PM To: Tomcat Users List Subject: RE: tomcat as a standalone webserver John, Thanks for the info, in reference to teh 2nd question about (setting up www.xyz.com asa url instead of the localhost)could you elaborate more on how that can be done or point to some documentation. I couldn't fnd any documentation. Thanks --- Turner, John [EMAIL PROTECTED] wrote: Please search the archives. This comes up almost daily. First - if your web application works fine with Tomcat alone, and you don't mind running Tomcat as root on port 80, then just use Tomcat and call it good. If you don't like running things as root on port 80, if you have legacy issues like support for PHP, CGI and custom Apache modules, or a need to load balance to multiple Tomcats, or a need for any other of Apache's many, many capabilities in addition to support for JSPs and servlets, then use Apache. Second - yes. John -Original Message- From: krip pane [mailto:[EMAIL PROTECTED]] Sent: Friday, January 31, 2003 11:09 PM To: tomcat Subject: tomcat as a standalone webserver Hi, Sorry if this question was asked before, I'm a newbie finding my way around still. Question is what is the advantage of running tomcat and apache (as a webserver)with some connector (such as mod_jk) as opposed to running tomcat alone as a web server. Also, is it possible to create virtual web servers with tomcat similarly to apache. I want to install tomcat and give it an www.xyz.com name instead of the default server name as the URL. Thanks __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 --- Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.449 / Virus Database: 251 - Release Date: 1/27/2003 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: SSL and non-SSL webapps (Apache 2.0.44/mod_jk/Tomcat 4.1.18)
Thank You! You got me on the right track and I've been able to get something working. I don't feel very confident in my http.conf or ssl.conf being completely how it should be. I think my main problem was that I was including in http.conf the mod_jk.conf that is automatically generated by tomcat. And I believe that the file needs to be included not inside a VirtualHost tag. So that would make it global? Now I just manually moved the relevant listings in mod_jk.conf to http.conf and ssl.conf. Is that how you have your setup? The other thing that is odd, is that if I set my browser pointed at the webapps directory (or anywhere inside of it), the browser gets redirected to the secure connection (https). This is EXACTLY how I want it to behave, but I don't know what makes that happen. Thanks again, Oscar On 2 Feb 2003, Ed Robbins wrote: You should be able to do this without much trouble. The thing to remember is that Apache treats non-ssl and ssl connections as two different entities. You have a VirtualHost configuration for the non-ssl stuff on port 80 and a VirtualHost configuration for SSL communication. You can mount or not mount in either of these areas. The tricky part is to keep the document root of each one seperate, that may be where your running into trouble. In my ssl setup I make my document root, for a given virtual host, a completely different location then its non-ssl counterpart. Thus for a given host www.testhost.com I may have the following doc roots: Non-SSL /var/httpd/nonsecure/htdocs/testhost SSL /var/httpd/secure/htdocs/testhost This way I have a clear delineation of where my secure content is served from vs. my non secure content. Ed On Sat, 2003-02-01 at 13:30, Oscar Carrillo wrote: I am having a difficult time with what would appear to be a common issue. I have Tomcat 4.1.18 with mod_jk connecting with Apache/SSL. It works great, but I am having difficulty figuring out how to separate SSL and non-SSL communcations. Ideally, it would seem that the proper way for this to function would be to have VirtualHost in Apache and they mount the repective webapps directory (or none at all for inaccessibility) using the mod_jk connector configuration. But mounting seems to be global as far as I can tell. So that http://myhost.mydomain/myTomcatDirectory/ goes the same place that https://myhost.mydomain/myTomcatDirectory/ If this is not possible or very involved, maybe it would somehow be easier to disable just that directory in Apache for port 80. I could not get that to work either as it seemed to pass the request to the mod_jk connector. I may have done something wrong there, but I tried to follow the documentation with Directory directives. If that had worked I could not use that same directory name for content on the Apache side but that's not that big of a deal. The other option I thought of was to do URL Rewriting in Apache so that all http://myhost.mydomain/myTomcatDirectory; would get replaced with https://myhost.mydomain/myTomcatDirectory;. That seemed like a decent option to, but the configuration for the mod_rewrite was a bear to try and figure out. If someone knows how do something simple like I describe please post. The other option I could think of is to not have apache listen on port 80, and then run another instance of apache with it's own config files that would just listen to port 80. Seems a little awkward but I also had difficulty getting a second copy of apache running. A little enlightenment is greatly appreciated. Thank you, Oscar Carrillo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with tomcat and ssl
Hi, I'm using tomcat server 4.1.18 on linux but I can't use SSL with tomcat. When I try to display the https://localhost:8443/ page, nothing appears. However, the page http://localhost:8080/ runs! When I'm looking in the logs, I obtain the following messages: Exception during startup processing java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Caused by: java.lang.NoClassDefFoundError: javax/net/ServerSocketFactory at java.lang.ClassLoader.findBootstrapClass(Native Method) at java.lang.ClassLoader.findBootstrapClass0(ClassLoader.java:723) at java.lang.ClassLoader.loadClass(ClassLoader.java:294) at java.lang.ClassLoader.loadClass(ClassLoader.java:292) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:265) at java.lang.ClassLoader.loadClass(ClassLoader.java:255) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:941) at org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClassLoader.java:857) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:140) at org.apache.tomcat.util.net.jsse.JSSEImplementation.init(JSSEImplementation.java:80) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:274) at java.lang.Class.newInstance0(Class.java:306) at java.lang.Class.newInstance(Class.java:259) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:107) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:88) at org.apache.tomcat.util.net.SSLImplementation.getInstance(SSLImplementation.java:103) at org.apache.coyote.http11.Http11Protocol.checkSocketFactory(Http11Protocol.java:450) at org.apache.coyote.http11.Http11Protocol.init(Http11Protocol.java:133) at org.apache.coyote.tomcat4.CoyoteConnector.initialize(CoyoteConnector.java:1032) at org.apache.catalina.core.StandardService.initialize(StandardService.java:579) at org.apache.catalina.core.StandardServer.initialize(StandardServer.java:2245) at org.apache.catalina.startup.Catalina.start(Catalina.java:511) at org.apache.catalina.startup.Catalina.execute(Catalina.java:400) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) Does someone see where the problem is? However it' said on tomcat site that JSSE should be installed and that's what I made! Thanks for any help. -- Gandalf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
may i have answer and help
hello sir/madam i have operating system 98. and i have develop a small project on online bookshopping. i have used MsAccess as database. and Jsp as server pages. the problem is that while working and executing the files the server is automatically shutdown. that is i start the tomcat server by startup and startting doing work after execution of one or two pages it automatically gives an error message server not found and when i see in cmd promt the java startup program is alredy shutdown and i againg have to startup and then do work . i have develop this project for the book shop if such condition is arises when the users are using it is not the way a programmer develop. i have gone through ur site i have got many help from it but may i have solution of this problem. 1) The tomcat server is automatically shutdown. The work i am doing is in my pc the server and the client is in same machine. pls i am glad if i get the solution of the problem thanks the user rekha upadhyaya Software Engineer(Nepal) - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now
mod_jk2 + index.jsp
I'm trying Tomcat 4.1.18 with mod_jk2 (2.0.2) on apache (1.3.27) It works fine in a URL like : http://servername/index.jsp but if I try : http://servername/ it does not show the index.jsp connecting direct to tomcat http://servername:8080/ works correctly. index.jsp are in my DirectotyIndex directive. and it worked fine with jserv and tomcat 3.x appears to be a bug in mod_jk2 support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Default root for servlets with JK2
Hello, can you tell me where can i put my servlet with the JK2 connector. Is it an URI in the 'workers2.properties' ? Is it an alias in the httpD .conf ? Thank you for your help. Fred
Broken Pipe
Hi im using Tomcat 3.3.1 with JDK 1.3.1 on FreeBSD and i have stderr.log full of this error and proces of Tomcat take 98 - 100% of CPU time. Can you help me? Many thanks for any help. Liquid stderr.log: - java.io.IOException: Broken pipe at java.net.SocketOutputStream.socketWrite(Native Method) at java.net.SocketOutputStream.write(SocketOutputStream.java:83) at org.apache.tomcat.modules.server.Ajp13.send(Ajp13.java:841) at org.apache.tomcat.modules.server.Ajp13.doWrite(Ajp13.java:727) at org.apache.tomcat.modules.server.Ajp13Response.doWrite(Ajp13Interceptor.java:491) at org.apache.tomcat.core.OutputBuffer.realWriteBytes(OutputBuffer.java:188) at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:360) at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:346) at org.apache.tomcat.util.buf.IntermediateOutputStream.write(C2BConverter.java:234) at java.io.OutputStreamWriter.write(OutputStreamWriter.java:184) at org.apache.tomcat.util.buf.WriteConvertor.write(C2BConverter.java:188) at org.apache.tomcat.util.buf.C2BConverter.convert(C2BConverter.java:113) at org.apache.tomcat.core.OutputBuffer.realWriteChars(OutputBuffer.java:336) at org.apache.tomcat.util.buf.CharChunk.flushBuffer(CharChunk.java:388) at org.apache.tomcat.core.OutputBuffer.flush(OutputBuffer.java:314) at org.apache.tomcat.core.OutputBuffer.close(OutputBuffer.java:305) at org.apache.tomcat.facade.ServletWriterFacade.close(ServletWriterFacade.java:117) at GameList.processRequest(GameList.java:963) at GameList.doGet(GameList.java:984) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at javax.servlet.http.HttpServlet.service(HttpServlet.java) at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:574) at org.apache.tomcat.core.Handler.invoke(Handler.java:322) at org.apache.tomcat.core.Handler.service(Handler.java:235) at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:485) at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:917) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:833) at org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Ajp13Interceptor.java:341) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:494) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:516) at java.lang.Thread.run(Thread.java:484) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
include for server.xml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a tomcat/apache setup with several virtual hosts. The information for the virtual hosts lives in a database. In the apache config file, I can just use the 'Include' directive to include my automatically generated configuration file (with all the virtual host definitions) in the httpd.conf. I've been looking all over the archives of this list, the jakarta site, and google, but have not been able to locate an equivalent for use in the server.xml file. Is there one? Bye for now, Ward. - -- Pong.be -( Those who do not understand Unix are condemned to)- Virtual hosting -( reinvent it, poorly. -- Henry Spencer )- http://pong.be -( )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s JzWbEwo6Y+ETChW0FEWTZec= =a2/6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include for server.xml
There is no such concept associated with server.xml.But there is in XML :-) You can define an ENTITY element at the top of your server.xml file and reference it inside the body of the server element. Do something like this: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; and then inside the server element: server . coyoteConnector /server -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a tomcat/apache setup with several virtual hosts. The information for the virtual hosts lives in a database. In the apache config file, I can just use the 'Include' directive to include my automatically generated configuration file (with all the virtual host definitions) in the httpd.conf. I've been looking all over the archives of this list, the jakarta site, and google, but have not been able to locate an equivalent for use in the server.xml file. Is there one? Bye for now, Ward. - -- Pong.be -( Those who do not understand Unix are condemned to)- Virtual hosting -( reinvent it, poorly. -- Henry Spencer )- http://pong.be -( )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s JzWbEwo6Y+ETChW0FEWTZec= =a2/6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: kept getting HTTP Status 404 - please help. thanx.
Could you post your web.xml file? That will be a good starting point for us to help you :-) -- Jeanfrancois John Qin wrote: Ijust installed tomcat 4.1.18 today. everything seems fine. i can see this page http://localhost:8080/index.jsp. and i run those Servlet Examples, it showed up, everyting is good. then i wrote a servlet page myself, and try to run it. it told me cannot find it, I got http status 404 error. I am sure my coding is rite. cuz I download htem directly from web site. after i compile the .java file, I put it .class file into WEB-INF/classes folder. I followed hte instruction step by step. I check thousands time, still have no clue whts wrong. if u have any ideas please help me out. thanx. john. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Could not reserve enough space for object heap
Seems you JAva VM is not properly installed. If you type java -version, does it works? Are other Java programs work? -- Jeanfrancois Pierre-Philipp Braun wrote: Hi all, now i'm trying the binaries from http://jakarta.apache.org/ but i've got difficulties setting this up even. When i do: # bin/startup.sh Using CATALINA_BASE: /home/elge/tp/lala2/jakarta-tomcat-4.1.18 Using CATALINA_HOME: /home/elge/tp/lala2/jakarta-tomcat-4.1.18 Using CATALINA_TMPDIR: /home/elge/tp/lala2/jakarta-tomcat-4.1.18/temp Using JAVA_HOME: /usr/pkg/java/sun-1.4.0 # nothing seems to be lauched. Here is the whole content of catalina.out: Shared object libjava.so not found Error occurred during initialization of VM Could not reserve enough space for object heap Error occurred during initialization of VM Could not reserve enough space for object heap Unable to initialize threads: cannot find class java/lang/Thread Error occurred during initialization of VM Could not reserve enough space for object heap Error occurred during initialization of VM Could not reserve enough space for object heap Any advice would be appreciated. Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include for server.xml
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey thanks for that. Unfortunately, the Xerces doesn't seem to like the first line: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; Feb 2, 2003 11:22:56 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:375) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305) at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:681) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) ... Any advice? bfn, Ward. On Sun, Feb 02, 2003 at 04:17:13PM -0500, Jeanfrancois Arcand wrote: There is no such concept associated with server.xml.But there is in XML :-) You can define an ENTITY element at the top of your server.xml file and reference it inside the body of the server element. Do something like this: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; and then inside the server element: server . coyoteConnector /server -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a tomcat/apache setup with several virtual hosts. The information for the virtual hosts lives in a database. In the apache config file, I can just use the 'Include' directive to include my automatically generated configuration file (with all the virtual host definitions) in the httpd.conf. I've been looking all over the archives of this list, the jakarta site, and google, but have not been able to locate an equivalent for use in the server.xml file. Is there one? Bye for now, Ward. - -- Pong.be -( Those who do not understand Unix are condemned to )- Virtual hosting -( reinvent it, poorly. -- Henry Spencer )- http://pong.be -( )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s JzWbEwo6Y+ETChW0FEWTZec= =a2/6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ward Vandewege. - -- Pong.be -( The Linux philosophy is 'Laugh in the face of )- Virtual hosting -(danger'. Oops. Wrong One. 'Do it yourself'. Yes, )- http://pong.be -( that's it. -- Linus )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PZp4qC3O5tzmh5wRAmCpAJ9ZUO9gR0dS0iSUBWEmeNqCFz2B8ACcDG41 m0z78XVHHraB6WcMc3tgkPU= =Q/4J -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: URGENT: many apache processes
On Sun, Feb 02, 2003 at 01:55:22PM +0100, Sven Köhler wrote: just for others: i had to set the number of maxProcessors in AJP13 connector to a value greater then MaxProcesses value in apache's http.conf. If you have a number of apache servers using the same Tomcat, do you have to set maxProcessors in the AJP13 connector to greater than MaxProcesses * number of apaches? Matt - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include for server.xml
Try this: !DOCTYPEblablabla [ !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; ] and then reference it using -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey thanks for that. Unfortunately, the Xerces doesn't seem to like the first line: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; Feb 2, 2003 11:22:56 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:375) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305) at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:681) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) ... Any advice? bfn, Ward. On Sun, Feb 02, 2003 at 04:17:13PM -0500, Jeanfrancois Arcand wrote: There is no such concept associated with server.xml.But there is in XML :-) You can define an ENTITY element at the top of your server.xml file and reference it inside the body of the server element. Do something like this: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; and then inside the server element: server . coyoteConnector /server -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a tomcat/apache setup with several virtual hosts. The information for the virtual hosts lives in a database. In the apache config file, I can just use the 'Include' directive to include my automatically generated configuration file (with all the virtual host definitions) in the httpd.conf. I've been looking all over the archives of this list, the jakarta site, and google, but have not been able to locate an equivalent for use in the server.xml file. Is there one? Bye for now, Ward. - -- Pong.be -( Those who do not understand Unix are condemned to )- Virtual hosting -( reinvent it, poorly. -- Henry Spencer )- http://pong.be -( )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s JzWbEwo6Y+ETChW0FEWTZec= =a2/6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ward Vandewege. - -- Pong.be -( The Linux philosophy is 'Laugh in the face of )- Virtual hosting -(danger'. Oops. Wrong One. 'Do it yourself'. Yes, )- http://pong.be -( that's it. -- Linus )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PZp4qC3O5tzmh5wRAmCpAJ9ZUO9gR0dS0iSUBWEmeNqCFz2B8ACcDG41 m0z78XVHHraB6WcMc3tgkPU= =Q/4J -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: include for server.xml
Try this: !DOCTYPE blablabla [ !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; ] and then reference it using -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hey thanks for that. Unfortunately, the Xerces doesn't seem to like the first line: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; Feb 2, 2003 11:22:56 PM org.apache.commons.digester.Digester fatalError SEVERE: Parse Fatal Error at line 1 column 3: The markup in the document preceding the root element must be well-formed. org.xml.sax.SAXParseException: The markup in the document preceding the root element must be well-formed. at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:232) at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(ErrorHandlerWrapper.java:213) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:375) at org.apache.xerces.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:305) at org.apache.xerces.impl.XMLScanner.reportFatalError(XMLScanner.java:1269) at org.apache.xerces.impl.XMLDocumentScannerImpl$PrologDispatcher.dispatch(XMLDocumentScannerImpl.java:681) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:329) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:525) at org.apache.xerces.parsers.DTDConfiguration.parse(DTDConfiguration.java:581) at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:152) at org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1175) ... Any advice? bfn, Ward. On Sun, Feb 02, 2003 at 04:17:13PM -0500, Jeanfrancois Arcand wrote: There is no such concept associated with server.xml.But there is in XML :-) You can define an ENTITY element at the top of your server.xml file and reference it inside the body of the server element. Do something like this: !ENTITY coyoteConnector SYSTEM http://your_configuration.xml; and then inside the server element: server . coyoteConnector /server -- Jeanfrancois Ward Vandewege wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I have a tomcat/apache setup with several virtual hosts. The information for the virtual hosts lives in a database. In the apache config file, I can just use the 'Include' directive to include my automatically generated configuration file (with all the virtual host definitions) in the httpd.conf. I've been looking all over the archives of this list, the jakarta site, and google, but have not been able to locate an equivalent for use in the server.xml file. Is there one? Bye for now, Ward. - -- Pong.be -( Those who do not understand Unix are condemned to )- Virtual hosting -( reinvent it, poorly. -- Henry Spencer )- http://pong.be -( )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PYaBqC3O5tzmh5wRAsKtAJ9376Ne/7o9iX/oe0YwysUtSvNukACfTt3s JzWbEwo6Y+ETChW0FEWTZec= =a2/6 -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Ward Vandewege. - -- Pong.be -( The Linux philosophy is 'Laugh in the face of )- Virtual hosting -(danger'. Oops. Wrong One. 'Do it yourself'. Yes, )- http://pong.be -( that's it. -- Linus )- GnuPG public key: http://gpg.dtype.org -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.0 (GNU/Linux) iD8DBQE+PZp4qC3O5tzmh5wRAmCpAJ9ZUO9gR0dS0iSUBWEmeNqCFz2B8ACcDG41 m0z78XVHHraB6WcMc3tgkPU= =Q/4J -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to run Tomcat on port 80 instead of 8080
Hi, I want to run Tomcat on port 80 instead of 8080. How can I do that? I shall appreciate any help. Thanks and Regardds, Runu __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to run Tomcat on 80 instead of 8080 on Windows
Hi, I am running Tomcat on Windows 2000. I want to run it on post 80 instead of 8080. How do I do that? I shall appreciate any help. Thanks and Regards, Runu Rathi __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat's serlvet container and http
Hello I have some questions related to how tomcat's servlet container handles some HTTP/1.1 issues. Understanding these, I think, would be beneficial in improving the performance of my web-application. Here they go: 1. How can my servlet respond with transfer encoding as chunked? When is my serlvet's OutputStream committed? I dont have all my data ready, I want send it out in chunks - how do I do it? 2. How can I use 100 Continue response header? This is usually used on slow links, but I want to use it when my processing is slow. My servlet is doing some processing and is going to take some more time - how do I inform this to my client? Can I just set HttpServletResponse.setStatus (SC_CONTINUE)? (Can this response be sent more than once?) If this method is not right for the scenario, what is the recommended way of informing the client to patiently wait for some more time? 3. The response in HTTP/1.1 can have footers in addition to headers, how do I set a footer? I guess we cannot use HttpServletResponse.setHeader because the servlet spec says setting a header has no effect if the response is already committed. 4. Persistant connections - is this configurable in a tomcat? It might be the case that this is not something a user should bother about, the servlet container will take care of it. What does tomcat do? Whenever needed, I want to recommend my client to use a persistant connection for following requests. Can I do it? An IE question: what factors determine that IE should use a persistant connection? 5. If-modified-since header. There is a getLastModified method in the servlet interface, this returns a long(for date). I guess I should implement this method for tomcat to respect the if-modified-since header. I recently implemented a caching filter, which intelligently uses the default servlet to serve cached static content. But since the former method is simple and more effective, I would like to know when IE uses this header. Since this header is optional, how do I recommend IE to use it? Thank you, ~rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
JK2 for Apache 2.0.44 on Linux
Does anyone here know where i can find jk2 2.0.2 for apache 2.0.44?? i am trying to get tomcat 4.1.18 running on my Redhat 8 box, but i cannot seem to get connectors build for myself. I also cannot find them on Apache's site. Thanks in advance
JSP's not compiling under 4.1.19
Hi there, This is an intermittent problem that I have been having with both Tomcat 4.1.18 and 4.1.19 Each time I think I have fixed ti something else start it off again. Basically the JSP' wont compile, I get the following error org.apache.jasper.JasperException: Unable to compile class for JSP An error occurred at line: -1 in the jsp file: null Generated servlet error: [javac] Since fork is true, ignoring compiler setting. [javac] Compiling 1 source file [javac] Since fork is true, ignoring compiler setting. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandle r.java:130) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:2 93) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:345) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:357) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:4 74) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:1 84) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher. java:684) at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatch er.java:432) at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher .java:356) at org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:10 14) at org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProces sor.java:417) at org.apache.struts.action.RequestProcessor.processActionForward(RequestProces sor.java:390) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292) at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492) at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:260) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:191) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve. java:170) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172 ) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:641) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java :174) at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok eNext(StandardPipeline.java:643) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995) at org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:594) at
Re: how to run Tomcat on 80 instead of 8080 on Windows
You have to change the Coyote Connector settings in $CATALINA_HOME/conf/server.xml. By default it runs on 8080. I guess you can also do so using the tomcat /admin application which is installed by default. Affan - Original Message - From: runu rathi [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 03, 2003 6:47 AM Subject: how to run Tomcat on 80 instead of 8080 on Windows Hi, I am running Tomcat on Windows 2000. I want to run it on post 80 instead of 8080. How do I do that? I shall appreciate any help. Thanks and Regards, Runu Rathi __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: JK2 for Apache 2.0.44 on Linux
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/ John -Original Message- From: Paul Gregoire To: Tomcat Users List Sent: 2/2/03 10:05 PM Subject: JK2 for Apache 2.0.44 on Linux Does anyone here know where i can find jk2 2.0.2 for apache 2.0.44?? i am trying to get tomcat 4.1.18 running on my Redhat 8 box, but i cannot seem to get connectors build for myself. I also cannot find them on Apache's site. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: JK2 for Apache 2.0.44 on Linux
That is the JK2 2.0.1 release and it does not include a build for 2.0.44 unless the 2.0.43 version works with 2.0.44. but anyhow im looking for JK2 2.0.2 - Original Message - From: Turner, John [EMAIL PROTECTED] To: 'Tomcat Users List ' [EMAIL PROTECTED] Sent: Sunday, February 02, 2003 8:09 PM Subject: RE: JK2 for Apache 2.0.44 on Linux http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/release/v2.0. 1/bin/linux/i386/ John -Original Message- From: Paul Gregoire To: Tomcat Users List Sent: 2/2/03 10:05 PM Subject: JK2 for Apache 2.0.44 on Linux Does anyone here know where i can find jk2 2.0.2 for apache 2.0.44?? i am trying to get tomcat 4.1.18 running on my Redhat 8 box, but i cannot seem to get connectors build for myself. I also cannot find them on Apache's site. Thanks in advance - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk
When I use a tomcat-apache connector to redirect http requests to port 80 to port 8080, can I still use port 8080 to connect to tomcat directly bypassing apache? If yes, how do I not allow this? By running tomcat on lo's 8080? What about on Windows? Thank you Rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
Rf - When you use mod_jk, Apache communicates to Tomcat on (default) port 8009. Port 8080 is for direct HTTP connections to Tomcat which, by default is enabled. So, the answer is yes: you can expose web applications to Apache via mod_jk, and access them on the Apache port, but also access them by point your browser directly to the Tomcat port. Regards, Lajos rf wrote: When I use a tomcat-apache connector to redirect http requests to port 80 to port 8080, can I still use port 8080 to connect to tomcat directly bypassing apache? If yes, how do I not allow this? By running tomcat on lo's 8080? What about on Windows? Thank you Rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: mod_jk
To answer your second part of the question about disabling port 8080 communication. Just comment out the line below in server.xml. Should do the trick. You mod_jk communication should still be fine over its port. !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Oscar On Sun, 2 Feb 2003, rf wrote: When I use a tomcat-apache connector to redirect http requests to port 80 to port 8080, can I still use port 8080 to connect to tomcat directly bypassing apache? If yes, how do I not allow this? By running tomcat on lo's 8080? What about on Windows? Thank you Rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: may i have answer and help
what do the logs say? - Original Message - From: rekha upadhyaya [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 02, 2003 2:41 AM Subject: may i have answer and help hello sir/madam i have operating system 98. and i have develop a small project on online bookshopping. i have used MsAccess as database. and Jsp as server pages. the problem is that while working and executing the files the server is automatically shutdown. that is i start the tomcat server by startup and startting doing work after execution of one or two pages it automatically gives an error message server not found and when i see in cmd promt the java startup program is alredy shutdown and i againg have to startup and then do work . i have develop this project for the book shop if such condition is arises when the users are using it is not the way a programmer develop. i have gone through ur site i have got many help from it but may i have solution of this problem. 1) The tomcat server is automatically shutdown. The work i am doing is in my pc the server and the client is in same machine. pls i am glad if i get the solution of the problem thanks the user rekha upadhyaya Software Engineer(Nepal) - Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: mod_jk
Thank you Lajos and Oscar. Btw, what is the interface Apache uses to communicate to Tomcat at 8009? I guess it wont be HTTP. For security reasons, I assume it would be safer to run all tomcat processes on the lo interface. Is this correct, and recommended? ~rf. --- Lajos [EMAIL PROTECTED] wrote: Rf - When you use mod_jk, Apache communicates to Tomcat on (default) port 8009. Port 8080 is for direct HTTP connections to Tomcat which, by default is enabled. So, the answer is yes: you can expose web applications to Apache via mod_jk, and access them on the Apache port, but also access them by point your browser directly to the Tomcat port. Regards, Lajos rf wrote: When I use a tomcat-apache connector to redirect http requests to port 80 to port 8080, can I still use port 8080 to connect to tomcat directly bypassing apache? If yes, how do I not allow this? By running tomcat on lo's 8080? What about on Windows? Thank you Rf __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Lajos Moczar Open Source Support, Consulting and Training Cocoon Developer's Handbook (www.amazon.com/exec/obidos/tg/detail/-/0672322579) _ _ / \ / /___\ / / \ / http://www.galatea.com -- powered by AzSSL - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Apache 2.0.43, mod_jk2, and other delights
Okay, I have several questions pertaining to apache 2.0.43, mod_jk2, all running under Solaris 8, and using Java 1.4.1_01 1. I'm trying to build a load balanced, falut tolerent configuration for my apache servers to talk to mulitple instances of tomcat. Does anyone have a good example of a loadbalanced workers2.properties file? I have implemented one that seems to work but I'm not convinced that it's the best/optimal configuration. 2. I'm seeing a lot of these errors in my apache error_log: [Mon Feb 03 16:00:35 2003] [error] channelSocket.receive(): Error receiving message body -1 11 [Mon Feb 03 16:00:35 2003] [error] workerEnv.processCallbacks() Error reading reply [Mon Feb 03 16:00:35 2003] [error] ajp13.service() ajpGetReply recoverable error 12 Cam anyone shed any light on these? I see that the error is recoverable, but that are hundreds and hundreds of these messages and I'm hoping that someone can show me the errors of my way!!! 3. I'm seeing a problem where an application we have running under tomcat starts to mis-behave under load. Specifically, tomcat will serve pages upto a certain point, and then it stops serving pages. Hitting tomcat directly through it's http connector, or from a web server using the ajp13 connector gives no results. What we are also seeing is that amount of context switching going on in the system, and a truss shows a lot of lwp type processing going on. Phew!!! I know that's a lot of questions... hopefully somebody will be able to shed some list Matthew Forder Unix Systems Administration Manager - Service Support and Delivery * +61 3 9201 4327 or +61 409 357 362 @ [EMAIL PROTECTED] * Sensis Pty Ltd, 181-189 Victoria Parade, Collingwood, VIC 3066 www.sensis.com.au A leading Australian advertising, information and directories business. www.yellowpages.com.au www.whitepages.com.au www.citysearch.com.au www.whereis.com.au www.telstra.com.au This email and any attachments are intended only for the use of the recipient and may be confidential and/or legally privileged. Sensis Pty Ltd disclaims liability for any errors, omissions, viruses, loss and/or damage arising from using, opening or transmitting this email. If you are not the intended recipient you must not use, interfere with, disclose, copy or retain this email and you should notify the sender immediately by return email or by contacting Sensis Pty Ltd by telephone on [+61 3 9201 4888] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Always with my configuration apache ssl + tomcat on redhat 7. 2
A 09:10 30/01/2003 -0500, vous avez écrit : What URL generates a 404? The url that generate a 404 is : https://crip-lxagal.ujf-grenoble.fr/webapps/examples/servlets/ At this url I see all the examples of servlets and when I want to test one, I have the 404. - I don't see a Context in server.xml for your webapp...do you have one, or are you using ROOT? - if Apache and Tomcat are on the same machine, I would change .host in workers.properties to localhost instead of the domain name. Not sure why, but sometimes that makes a difference to mod_jk. The auto-config option doesn't generate SSL directives. If you want SSL to work, you will have to stick in a VirtualHost some.ip.address:443 block in httpd.conf, and put the JkMount statements, etc in there. HTH John -Original Message- From: Helene Figueiredo [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 30, 2003 8:55 AM To: [EMAIL PROTECTED] Subject: RE: Always with my configuration apache ssl + tomcat on redhat 7. 2 Hello, Ok John, I've make a break, then take a step back and verify all my configuration files methodically. And I'm on a new situation : I have always my page 404 but my mod_jk.conf file are different now. I think it's now good because it's look like the example find in your url : http://www.johnturner.com/howto/mod_jk_conf.html Please find again my configuration files : My server.xml : Server port=8005 shutdown=SHUTDOWN debug=0 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig modJk=/local/apache/libexec/mod_jk.so / Service name=Tomcat-Standalone Connector className=org.apache.coyote.tomcat4.CoyoteConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=100 debug=0 connectionTimeout=2 useURIValidationHack=false disableUploadTimeout=true / Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ Engine name=Standalone defaultHost=crip-lxagal.ujf-grenoble.fr debug=0 !-- Define the default virtual host -- Host name=crip-lxagal.ujf-grenoble.fr debug=0 appBase=/local/apache/www/webapps unpackWARs=true autoDeploy=true Listener className=org.apache.ajp.tomcat4.config.ApacheConfig append=true forwardAll=false modJk=/local/apache/libexec/mod_jk.so/ My workers.properties : # BEGIN workers.properties worker.list=ajp13 worker.ajp13.port=8009 # change this line to match apache ServerName and Host name in server.xml worker.ajp13.host=crip-lxagal.ujf-grenoble.fr worker.ajp13.type=ajp13 # END workers.properties The mod_jk.conf auto generated : ## Auto generated on Thu Jan 30 10:16:03 CET 2003## IfModule !mod_jk.c LoadModule jk_module /local/apache/libexec/mod_jk.so /IfModule JkWorkersFile /local/src/jakarta-tomcat-4.1.18/conf/jk/workers.properties JkLogFile /local/src/jakarta-tomcat-4.1.18/logs/mod_jk.log JkLogLevel emerg VirtualHost crip-lxagal.ujf-grenoble.fr ServerName crip-lxagal.ujf-grenoble.fr crip-lxagal.ujf-grenoble.fr:/admin # Static files Alias /admin /local/apache/www/webapps/../server/webapps/admin Directory /local/apache/www/webapps/../server/webapps/admin Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location /admin/WEB-INF/* AllowOverride None deny from all /Location Location /admin/META-INF/* AllowOverride None deny from all /Location JkMount /admin/j_security_check ajp13 JkMount /admin/*.do ajp13 JkMount /admin/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/webdav # Static files Alias /webdav /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Directory /usr/local/src/jakarta-tomcat-4.1.18/webapps/webdav Options Indexes FollowSymLinks DirectoryIndex index.jsp index.html index.htm /Directory # Deny direct access to WEB-INF and META-INF # Location /webdav/WEB-INF/* AllowOverride None deny from all /Location Location /webdav/META-INF/* AllowOverride None deny from all /Location JkMount /webdav/*.jsp ajp13 crip-lxagal.ujf-grenoble.fr:/examples # Static files Alias /examples /local/apache/www/webapps/examples Directory /local/apache/www/webapps/examples Options Indexes FollowSymLinks DirectoryIndex index.html index.htm index.jsp /Directory # Deny direct access to WEB-INF and META-INF # Location