RE: Where is javax.sql
That's in Oracle's JDBC classes file (named classes12.jar for my installation), not in Tomcat. Make sure you install this file for your Oracle connections to work (put it in your $TOMCAT_HOME/lib directory). It can be downloaded from Oracle. Kenny It is java.sql which gives you resultset and other functional packages and interfaces it is not javax.sql. __ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat Problem
Hello, I cannot view the Tomcat Console. I am using Tomcat 4.0 on Win XP. Also, I cannot start the Tomcat from Start - Programmes - Apache Tomcat. I need to go to the Control Panel - Admin Tools - Services and then start the Tomcat over there. Can any one tell me what is wrong? I am also using JDK1.4.0 Thanks Uma Java Developer http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
I need to run a servlet periodically
Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. Thanks. Filip Rachunek __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Hi Uma, it seems you installed Tomcat as a service. You could deinstall this service or set it to manual start. Then you should be able to start Tomcat manually from the script. On Sun, 29 Sep 2002 19:30:50 -0500 there was a message from Jacob Kjome (Subject: Re: Need Help ASAP w. Tomcat install!), where he also explained, how to install or deinstall the service from the command line. Andreas On 5 Oct 2002 at 7:54, Uma Maheswar wrote: Hello, I cannot view the Tomcat Console. I am using Tomcat 4.0 on Win XP. Also, I cannot start the Tomcat from Start - Programmes - Apache Tomcat. I need to go to the Control Panel - Admin Tools - Services and then start the Tomcat over there. Can any one tell me what is wrong? I am also using JDK1.4.0 Thanks Uma Java Developer http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Hi Probst, Sorry, I did that. Not helpful. Any other way? Uma - Original Message - From: Andreas Probst [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED] Sent: Saturday, October 05, 2002 12:56 PM Subject: Re: Tomcat Problem Hi Uma, it seems you installed Tomcat as a service. You could deinstall this service or set it to manual start. Then you should be able to start Tomcat manually from the script. On Sun, 29 Sep 2002 19:30:50 -0500 there was a message from Jacob Kjome (Subject: Re: Need Help ASAP w. Tomcat install!), where he also explained, how to install or deinstall the service from the command line. Andreas On 5 Oct 2002 at 7:54, Uma Maheswar wrote: Hello, I cannot view the Tomcat Console. I am using Tomcat 4.0 on Win XP. Also, I cannot start the Tomcat from Start - Programmes - Apache Tomcat. I need to go to the Control Panel - Admin Tools - Services and then start the Tomcat over there. Can any one tell me what is wrong? I am also using JDK1.4.0 Thanks Uma Java Developer http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
tomcat installation
hi! i installed Tomcat4.1.12 the Tomacat 4.1 dir. is on the desktop. and my autoexec.bat is set JAVA_HOME=C:\jdk1.3.0_02 set CATALINA_HOME=c:\WINDOWS\DESKTOP\ __ Do you Yahoo!? Faith Hill - Exclusive Performances, Videos More http://faith.yahoo.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: download 4.0.3?
Ricky Leung wrote: Why don't you use 4.0.5? That should be the release that you should be using, which has the most bug fixes and a security fix. With 4.1.12, you might have to do additional testing to ensure that your application is working. Old releases can be downloaded from the archives folder: http://jakarta.apache.org/builds/jakarta-tomcat-4.0/archives/ However, some of these have security issues and various bugs, so it is not recommended to use them, except in a controlled environment. Of course, you can download them to see the improvements since 4.0 M1 was released ;-) I recommend you upgrade to Tomcat 4.0.5 if you want to keep using the 4.0.x branch. Remy -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Problem
Well, the error message might be helpful, but if you try starting it by going into command line and browse to C:\$yourtomcathome\bin And run from there \ catalina run you should see a stacktrace of why tomcat doesn't startup. It usually has something to do with bad formed server.xml Hope it helps -reynir -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 02:25 To: Tomcat Users List Subject: Tomcat Problem Hello, I cannot view the Tomcat Console. I am using Tomcat 4.0 on Win XP. Also, I cannot start the Tomcat from Start - Programmes - Apache Tomcat. I need to go to the Control Panel - Admin Tools - Services and then start the Tomcat over there. Can any one tell me what is wrong? I am also using JDK1.4.0 Thanks Uma Java Developer http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Getting the name of the context
You could try ServletContext sc = getServletContext(); http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/javax/servlet/GenericServlet.html#getServletContext() And then: String contextname = sc.getServletContextName(); Hope it helps -reynir -Original Message- From: shanmugampl [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 03:52 To: [EMAIL PROTECTED] Subject: Re: Getting the name of the context Thanks for your suggestion, but i load the servlet on startup by giving it in the load-on-startup. In the servlets init method i will be initializing some basic parameters. Here I want the name of the context for regestering it. I do not have access to the request object from my init method. How do i get the name in this case. Craig R. McClanahan wrote: Use request.getContextPath(). Craig On Fri, 4 Oct 2002, shanmugampl wrote: Date: Fri, 04 Oct 2002 17:20:52 +0530 From: shanmugampl [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED], [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Getting the name of the context Hi, I have a requirement where i need to know the name of the context i am in.Say i have a servlet class present in my Tomcat_Home/webapp/myapp/. Now i want to get the name of the application(in this case 'myapp') from my servlet. Is there a way of doing it. One of the way i found was specifying a name for the display-name attribute present in the web.xml. This name can be retrieved from the ServletContext. The problem here is two contexts can have the same display name which is not desired. Thanks Shanmugam.PL -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: auto deploy WAR + embedded tomcat
Ok how come someone is sending emails with my name on it (in the from address) ? -Original Message- From: Reynir Hübner [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 09:23 To: [EMAIL PROTECTED] Subject: auto deploy WAR + embedded tomcat Hello Tomcat community! Quick question: What is the proper way to expand WAR files during deploy via the API? Thanks, Patrick _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
What is InvocationTargetException?
Can someone enlighten me as to what this error I get in the localhost log means? I haven't got a clue even where to start troubleshooting this... Tnx Ola Tuvesson 2002-10-05 10:26:07 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2002-10-05 10:26:15 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2002-10-05 10:26:15 WebappLoader[/manager]: Deploying class repositories to work directory C:\Tomcat\work\Standalone\localhost\manager 2002-10-05 10:26:16 ContextConfig[/manager]: Configured an authenticator for method BASIC 2002-10-05 10:26:16 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2002-10-05 10:26:16 StandardManager[/manager]: Seeding of random number generator has been completed 2002-10-05 10:26:16 StandardWrapper[/manager:default]: Loading container servlet default 2002-10-05 10:26:16 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2002-10-05 10:26:16 HostConfig[localhost]: Expanding web application archive nfc.war 2002-10-05 10:26:16 StandardHost[localhost]: Installing web application at context path /nfc from URL file:C:/Tomcat/webapps/nfc 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploying class repositories to work directory C:\Tomcat\work\Standalone\localhost\nfc 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/chatserver.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/chatserver_flash.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver_flash.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jms.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jms.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jndi.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jndi.jar 2002-10-05 10:26:16 StandardManager[/nfc]: Seeding random number generator class java.security.SecureRandom 2002-10-05 10:26:16 StandardManager[/nfc]: Seeding of random number generator has been completed 2002-10-05 10:26:16 StandardContext[/nfc]: Servlet /nfc threw load() exception javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:63) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92 4) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3341) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) 2002-10-05 10:26:16 StandardWrapper[/nfc:default]: Loading container servlet default 2002-10-05 10:26:16 StandardWrapper[/nfc:invoker]: Loading container servlet invoker 2002-10-05 10:26:16 HostConfig[localhost]: Deploying web application directory ROOT 2002-10-05 10:26:16 StandardHost[localhost]: Installing web application at context path from URL file:C:\Tomcat\webapps\ROOT 2002-10-05 10:26:16 WebappLoader[]: Deploying class repositories to work directory
RE: What is InvocationTargetException?
You are using the reflection mechanism, and the error is occuring where you are trying to invoke an object. Look in the TunnelServlet.java line 63 Hope it helps -reynir -Original Message- From: Ola Tuvesson [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 09:36 To: Tomcat Users List Subject: What is InvocationTargetException? Can someone enlighten me as to what this error I get in the localhost log means? I haven't got a clue even where to start troubleshooting this... Tnx Ola Tuvesson 2002-10-05 10:26:07 HostConfig[localhost]: Deploying configuration descriptor admin.xml 2002-10-05 10:26:15 HostConfig[localhost]: Deploying configuration descriptor manager.xml 2002-10-05 10:26:15 WebappLoader[/manager]: Deploying class repositories to work directory C:\Tomcat\work\Standalone\localhost\manager 2002-10-05 10:26:16 ContextConfig[/manager]: Configured an authenticator for method BASIC 2002-10-05 10:26:16 StandardManager[/manager]: Seeding random number generator class java.security.SecureRandom 2002-10-05 10:26:16 StandardManager[/manager]: Seeding of random number generator has been completed 2002-10-05 10:26:16 StandardWrapper[/manager:default]: Loading container servlet default 2002-10-05 10:26:16 StandardWrapper[/manager:invoker]: Loading container servlet invoker 2002-10-05 10:26:16 HostConfig[localhost]: Expanding web application archive nfc.war 2002-10-05 10:26:16 StandardHost[localhost]: Installing web application at context path /nfc from URL file:C:/Tomcat/webapps/nfc 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploying class repositories to work directory C:\Tomcat\work\Standalone\localhost\nfc 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/chatserver.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/chatserver_flash.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\chatserver_flash.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jms.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jms.jar 2002-10-05 10:26:16 WebappLoader[/nfc]: Deploy JAR /WEB-INF/lib/jndi.jar to C:\Tomcat\webapps\nfc\WEB-INF\lib\jndi.jar 2002-10-05 10:26:16 StandardManager[/nfc]: Seeding random number generator class java.security.SecureRandom 2002-10-05 10:26:16 StandardManager[/nfc]: Seeding of random number generator has been completed 2002-10-05 10:26:16 StandardContext[/nfc]: Servlet /nfc threw load() exception javax.servlet.ServletException: java.lang.reflect.InvocationTargetException at com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServl et.java:63) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardW rapper.java:92 4) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper. java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(Standar dContext.java: 3341) at org.apache.catalina.core.StandardContext.start(StandardContext .java:3534) at org.apache.catalina.core.ContainerBase.addChildInternal(Contai nerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase. java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(Standard HostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConf ig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L ifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService .java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.j ava:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaServ ice.java:271) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.BootstrapService.start(BootstrapSe rvice.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapSer vice.java:307)
RE: What is InvocationTargetException?
Thanks Reynir! Was possibly a problem with the servlet not finding its logfile directory. I've changed it to use stderr.log and stdout.log instead but now I get a different error, this time in stderr.log: Created catalinaLoader in: C:\Tomcat\server\lib 05-Oct-2002 10:54:17 org.apache.commons.modeler.Registry loadRegistry INFO: Loading registry information 05-Oct-2002 10:54:17 org.apache.commons.modeler.Registry getRegistry INFO: Creating new Registry instance 05-Oct-2002 10:54:18 org.apache.commons.modeler.Registry getServer INFO: Creating MBeanServer 05-Oct-2002 10:54:19 org.apache.coyote.http11.Http11Protocol init INFO: Initializing Coyote HTTP/1.1 on port 8080 java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at com.lyrisoft.chat.server.remote.TunnelServlet.init(TunnelServlet.java:44) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:92 4) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:813) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3341) at org.apache.catalina.core.StandardContext.start(StandardContext.java:3534) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:8 21) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:807) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:579) at org.apache.catalina.core.StandardHostDeployer.install(StandardHostDeployer.j ava:257) at org.apache.catalina.core.StandardHost.install(StandardHost.java:772) at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:502) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:410) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:879) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:368) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor t.java:166) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1196) at org.apache.catalina.core.StandardHost.start(StandardHost.java:738) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347) at org.apache.catalina.core.StandardService.start(StandardService.java:497) at org.apache.catalina.core.StandardServer.start(StandardServer.java:2189) at org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:271) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245 ) at org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307) Caused by: java.lang.NullPointerException at com.lyrisoft.chat.server.remote.ChatServer.log(ChatServer.java:226) at com.lyrisoft.chat.server.remote.auth.jdbc.Jdbc.init(Jdbc.java:51) at com.lyrisoft.chat.server.remote.auth.jdbc.JdbcAuthenticator.init(JdbcAuthe nticator.java:32) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at java.lang.Class.newInstance0(Unknown Source) at java.lang.Class.newInstance(Unknown Source) at com.lyrisoft.chat.server.remote.ChatServer.init(ChatServer.java:99) at com.lyrisoft.chat.server.remote.ChatServer.init(ChatServer.java:134) ... 32 more Oct 05 10:54:24 CommandProcessorRemote: initting the rclient command processor Oct 05 10:54:24 CommandProcessorRemote: initting the quit command processor Oct 05 10:54:24 CommandProcessorRemote: initting the kill command processor Oct 05 10:54:24 CommandProcessorRemote: initting the unignore command processor Oct 05 10:54:24 CommandProcessorRemote: initting the users command processor Oct 05 10:54:24 CommandProcessorRemote: initting the rooms command processor Oct 05 10:54:24 CommandProcessorRemote: initting the signon command processor Oct 05 10:54:24 CommandProcessorRemote: initting the bping command processor Oct 05 10:54:24 CommandProcessorRemote: initting the ignore command processor Oct 05 10:54:24
Re: Form Based Authentication, getting login and password
Externo wrote: Sorry by my English. How I can guess login and password strings of an user, from error page (JSP) using Form Based Authentication of Tomcat? I need know it to lock the count each 3 error tries (if login is ok but password is bad, insteed). Something like enhanced security mode in some OSes? Methods 'getRemoteUser', 'isUserInRole' and 'getUserPrincipal' of HttpServletRequest interface have this result: If no user has been authenticated, returns null, false and null respectly. For this reason, they aren't utils for me. If I don´t know login what user writed, I can't lock his/her count. Exist solution for this? Thanks Only to write your own authentication module. That shouldn't be too hard. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Connection pool DBCP
[EMAIL PROTECTED] wrote: I have been seen that nobody is able to answer to this question, I presume it's interesting for anybody, for a few days. I wish I knew if DBCP is able to find when db is restarted and reconnect. I'd like to use the jakarta instrument DBCP because all the products of the jakarta community are very good, but the main point is to know if DBCP can recconect to DB lonely. Can some answer to this question? Don't take my word for it, but I think it cannot. It could be that the main problem is the JDBC interface. Does it have any method to determine if the DB went down and to check if it came up again? Or any way to determine that JDBC connections have been disconnected? Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Shared JSP taglibs
Craig R. McClanahan wrote: In my experience, the (small) memory savings of putting classes into /shared/lib (or /common/lib) is not worth the hassles it brings: What about building a server-wide environment? Suppose you have a set of Tag Libraries that you either trust or wish to enforce on your server. Then it would make sense to place them server-wide. Of course, there are reasons against such a strategy. - All the webapps running in this Tomcat installation must share the same version of the tag library (or whatever -- it's not just limited to these), so you have to upgrade them all together in lockstep. Perhaps not such a bad idea. Of course, this puts an additional strain on the administartor. - If your shared library wants to access application-specific classes that are only available in /WEB-INF/classes or /WEB-INF/lib, you have to program them specifically to access those classes via the thread context class loader. True. Could Tomcat in some distant future release have a setup option in server.xml on which global/local classes to use. It may be too much to ask. And it is definitely a road to chaos. - You are depending on a non-portable feature of Tomcat (no concept of shared library directories is required by any of the Java specs; although most servers offer something like it, they are all implemented differently). Yup. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat4.1.12 + Apache2.0.35 + jk2
I have Tomcat running successfully Standalone, but I am trying to link it via jk2/jni to Apache to speed it up a bit (even locally it is slow). I set it up as best I could via the documents on the www.apache.org website, but alas, I am stuck. [it is FreeBSd 4.6] LoadModule jk_module libexec/apache2/mod_jk2 causes: Cannot load /usr/local/libexec/apache2/mod_jk2.so into server: /usr/local/libexec/apache2/mod_jk2.so: Undefined symbol pthread_mutex_unlock so, I installed linuxthreads from the Port Collection (pthreads support) that created /usr/lib/liblthread.* It doesn't seem to affect Apache's error. If I specifically try to LoadModule it, it says that it doesn't fit the API -- otherwise it says that pthread_mutex_unlock is undefined. Any thoughts? PS I also tried linking the linux-sun-jdk14 native_threads/libhpi.so into the lib/apache2 and libexec/apache2 directories, but no luck there either... Any help would be greatly appreciated. Thanks. Malachi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I need to run a servlet periodically
Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. You're making a mistake. A Java Servlet is a Java component that responds to a web request. That's it - nothing more, nothing less, just what it is designed for. It is not designed to be a cron job. Something like that doesn't belong to a web application - or should we say, to the web GUI part of a web application. In a full JEE application which has a web portal (like Tomcat), you would place such a cron job somewhere other than a web interface. I'm not sure where, I'm no expert on JEE (yet). This was like asking can CGI script be configured to run at regular intervals?. Of course you could run a cron job that would act as a web client and send a request that would fire up that CGI or Servlet. But that is going slightly around it. And doing it at the wrong point. Web applications are request driven application and should not be twisted into something unnatural. Use a regular cron job for this. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: I need to run a servlet periodically
Unless you are just trying to do refresh, in which case you could use the meta-tags to do auto-refresh and server-push. If you were trying to do a servlet that managed something always running, then you would want a daemon that could handle live-updates. Please be more clear on the usage. Malachi 10/5/2002 3:47:59 AM, Nikola Milutinovic [EMAIL PROTECTED] wrote: Filip Rachunek wrote: Hello, is it possible to have a servlet in Tomcat container which is invoked automatically each gived time period? [e.g. each 10 minutes] And I would also need this special servlet to access other resources of my web application [connection pool, ...]. You're making a mistake. A Java Servlet is a Java component that responds to a web request. That's it - nothing more, nothing less, just what it is designed for. It is not designed to be a cron job. Something like that doesn't belong to a web application - or should we say, to the web GUI part of a web application. In a full JEE application which has a web portal (like Tomcat), you would place such a cron job somewhere other than a web interface. I'm not sure where, I'm no expert on JEE (yet). This was like asking can CGI script be configured to run at regular intervals?. Of course you could run a cron job that would act as a web client and send a request that would fire up that CGI or Servlet. But that is going slightly around it. And doing it at the wrong point. Web applications are request driven application and should not be twisted into something unnatural. Use a regular cron job for this. Nix. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Hi Reynir, I do not have any error message. If I need to start the Tomcat in my PC running on Win XP, I need to go to Start - Control Panel - Admin Tools - Services and then start the Tomcat. There is no other option for me than this. Now the Tomcat gets started if I do so. But I wanted to view its Console (Black DOS like Window). How can I get this? Thanks Uma http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Problem
Ok go to : Start - run - cmd C:\cd jakarta tomcat C:\jakarta tomcat\ cd bin C:\jakarta tomcat\bin\ catalina run Just try it. You could also try starting the startup.bat in the same folder. -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 10:54 To: Tomcat Users List Subject: Re: Tomcat Problem Hi Reynir, I do not have any error message. If I need to start the Tomcat in my PC running on Win XP, I need to go to Start - Control Panel - Admin Tools - Services and then start the Tomcat. There is no other option for me than this. Now the Tomcat gets started if I do so. But I wanted to view its Console (Black DOS like Window). How can I get this? Thanks Uma http://www.javagalaxy.com -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Hi Reynir, I tried it, I got this messages C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\bin But I dont see the console. My Tomcat is working when I type http://localhost:8080 . Please suggest me. Thanks Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Reynir, I tried this and it gave me some error messages. Can you suggest me now? Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Problem
Yes, In server.xml you have specified a WARP connector. It seems to me like you have an extra space in here : org.apache.catalina.connector. warp.WarpConnector ^ Fix it, and try again . -hope it helps Reynir -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 11:18 To: Tomcat Users List Subject: Re: Tomcat Problem Reynir, I tried this and it gave me some error messages. Can you suggest me now? Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat Problem
Reynir, I never changed the server.xml file. I dont know that stuff. Can you tell me how to change WARP? Thanks -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat Problem
Just open it up (tomcat/conf/server.xml) and read the instructions. -reynir -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 5. október 2002 11:25 To: Tomcat Users List Subject: Re: Tomcat Problem Reynir, I never changed the server.xml file. I dont know that stuff. Can you tell me how to change WARP? Thanks -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
IBM HTTP Server, Tomcat 4.1.12, mod_jk and the IBM GSK [Windows NT]
Hi all, I have a question regarding the usage of Tomcat together with IBM Http Server 1.3.19 (which is based on Apache httpd 1.3.20). I uses the http server for handling static pages and redirect servlet and jsp requests to tomcat through mod_jk.dll and it works fine for port 80 but when I use 443 (SSL) I only receive about 32-40KB of a page of 200KB. I think it's the IBM GSK* module which makes the trouble but I'm not 100% sure. So what I would like to here is any of you have experienced the same problem on a Windows NT 4.0 system running IBM Http Server 1.3.19.3, Tomcat 4.1.12, mod_jk (latest), Sun J2SDK 1.3.1_04?? Best regards, J. Andersen * The GSK module handles SSL certificates etc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
About WARP, HELP
Can any one tell me about WARP? Please help me. My problem is listed below. Thanks Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: About WARP, HELP
Edit the server.xml file. search the text file for: org.apache.catalina.connector. warp.WarpConnector change it to: org.apache.catalina.connector.warp.WarpConnector -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 05 October, 2002 7:47 AM To: Tomcat Users List Subject: About WARP, HELP Can any one tell me about WARP? Please help me. My problem is listed below. Thanks Uma C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;c:/j2sdk1.4.0/bin;\lib\tools.jar Using JAVA_HOME: c:/j2sdk1.4.0/bin; The system cannot find the path specified. C:\PROGRA~1\Apache Tomcat 4.0\binset JAVA_HOME=C:\j2sdk1.4.0 C:\PROGRA~1\Apache Tomcat 4.0\bincatalina run Using CATALINA_BASE: .. Using CATALINA_HOME: .. Using CLASSPATH: ..\bin\bootstrap.jar;C:\j2sdk1.4.0\lib\tools.jar Using JAVA_HOME: C:\j2sdk1.4.0 ERROR reading ..\conf\server.xml At Line 319 /Server/Service/Connector/ className=org.apache.catalina.connector.w arp.WarpConnector port=8008 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 Catalina.start: java.lang.ClassNotFoundException: org.apache.catalina.connector. warp.WarpConnector java.lang.ClassNotFoundException: org.apache.catalina.connector.warp.WarpConnect or at java.net.URLClassLoader$1.run(URLClassLoader.java:198) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:186) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at java.lang.ClassLoader.loadClass(ClassLoader.java:262) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:130) at org.apache.catalina.util.xml.ObjectCreate.start(XmlMapper.java:616) at org.apache.catalina.util.xml.XmlMapper.matchStart(XmlMapper.java:412) at org.apache.catalina.util.xml.XmlMapper.startElement(XmlMapper.java:91 ) at org.xml.sax.helpers.XMLReaderAdapter.startElement(XMLReaderAdapter.ja va:329) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1490) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.content(Parser2.java:1779) at org.apache.crimson.parser.Parser2.maybeElement(Parser2.java:1507) at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:500) at org.apache.crimson.parser.Parser2.parse(Parser2.java:305) at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442) at org.xml.sax.helpers.XMLReaderAdapter.parse(XMLReaderAdapter.java:223) at javax.xml.parsers.SAXParser.parse(SAXParser.java:314) at javax.xml.parsers.SAXParser.parse(SAXParser.java:253) at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:228) at org.apache.catalina.startup.Catalina.start(Catalina.java:725) at org.apache.catalina.startup.Catalina.execute(Catalina.java:681) at org.apache.catalina.startup.Catalina.process(Catalina.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243) C:\PROGRA~1\Apache Tomcat 4.0\bin -- To unsubscribe, e-mail: mailto:tomcat-user- [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: About WARP, HELP
Hi, Its already same in the server.xml file. I am attaching the file for your review. Please check it Uma !-- Example Server Configuration File -- !-- Note that component elements are nested corresponding to their parent-child relationships with each other -- !-- A Server is a singleton element that represents the entire JVM, which may contain one or more Service instances. The Server listens for a shutdown command on the indicated port. Note: A Server is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- Server port=8005 shutdown=SHUTDOWN debug=0 !-- A Service is a collection of one or more Connectors that share a single Container (and therefore the web applications visible within that Container). Normally, that Container is an Engine, but this is not required. Note: A Service is not itself a Container, so you may not define subcomponents such as Valves or Loggers at this level. -- !-- Define the Tomcat Stand-Alone Service -- Service name=Tomcat-Standalone !-- A Connector represents an endpoint by which requests are received and responses are returned. Each Connector passes requests on to the associated Container (normally an Engine) for processing. By default, a non-SSL HTTP/1.1 Connector is established on port 8080. You can also enable an SSL HTTP/1.1 Connector on port 8443 by following the instructions below and uncommenting the second Connector entry. SSL support requires the following steps (see the SSL Config HOWTO in the Tomcat 4.0 documentation bundle for more detailed instructions): * Download and install JSSE 1.0.2 or later, and put the JAR files into $JAVA_HOME/jre/lib/ext. * Execute: %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA (Windows) $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA (Unix) with a password value of changeit for both the certificate and the keystore itself. By default, DNS lookups are enabled when a web application calls request.getRemoteHost(). This can have an adverse impact on performance, so you can disable it by setting the enableLookups attribute to false. When DNS lookups are disabled, request.getRemoteHost() will return the String version of the IP address of the remote client. -- !-- Define a non-SSL HTTP/1.1 Connector on port 8080 -- Connector className=org.apache.catalina.connector.http.HttpConnector port=8080 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0 connectionTimeout=6/ !-- Note : To disable connection timeouts, set connectionTimeout value to -1 -- !-- Define an SSL HTTP/1.1 Connector on port 8443 -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8443 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 scheme=https secure=true Factory className=org.apache.catalina.net.SSLServerSocketFactory clientAuth=false protocol=TLS/ /Connector -- !-- Define an AJP 1.3 Connector on port 8009 -- !-- Connector className=org.apache.ajp.tomcat4.Ajp13Connector port=8009 minProcessors=5 maxProcessors=75 acceptCount=10 debug=0/ -- !-- Define a Proxied HTTP/1.1 Connector on port 8081 -- !-- See proxy documentation for more information about using this. -- !-- Connector className=org.apache.catalina.connector.http.HttpConnector port=8081 minProcessors=5 maxProcessors=75 enableLookups=true acceptCount=10 debug=0 connectionTimeout=6 proxyPort=80/ -- !-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 -- !-- Connector className=org.apache.catalina.connector.http10.HttpConnector port=8082 minProcessors=5 maxProcessors=75 enableLookups=true redirectPort=8443 acceptCount=10 debug=0/ -- !-- An Engine represents the entry point (within Catalina) that processes every request. The Engine implementation for Tomcat stand alone analyzes the HTTP headers included with the request, and passes them on to the appropriate Host (virtual host). -- !-- Define the top level container in our container hierarchy -- Engine name=Standalone defaultHost=localhost debug=0 !-- The request dumper valve dumps useful debugging information about the request headers and cookies that were received, and the response headers and cookies that were sent, for all requests received by this instance of Tomcat. If you care only
sendRedirect not working
Using Apache Tomcat/4.1.12 I have my application under the webapps directory. When I do a sendRedirect to /servlet/MyServlet I get an HTTP Status 404 - The requested resource (/servlet/MyServlet) is not available. The correct path should be /MyApp/servlet/MyServlet. It appears it is not prepending the Root URI (MyApp). Any suggestions? - Do you Yahoo!? New DSL Internet Access from SBC Yahoo!
RE: About WARP, HELP
This server.xml did not cause the exception you gave in your initial email. -Original Message- From: Uma Maheswar [mailto:[EMAIL PROTECTED]] Sent: 05 October, 2002 8:26 AM To: Tomcat Users List Subject: Re: About WARP, HELP Hi, Its already same in the server.xml file. I am attaching the file for your review. Please check it Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: About WARP, HELP
George, Then which server.xml file is this taking? I got this file from tomcat/conf/server.xml. Please advice. Uma -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Chicken and the egg
Hi there, Situation: I built a working configuration of Apache 2.0.35, Tomcat 4.0.4 and mod_jk, now I want to update my system. I downloaded Apache 2.0.43, downloaded mod_jk2 binary ... just for 2.0.42, so I downloaded the source ... libtool doesn't know -lapr ... tried to default to mod_jk ... Tomcat 4.1.12 seems to support jk2 ONLY ... so now I'm stuck. Does anybody know a HOWTO that covers the two basic steps: 1. Integrate mod_jk2 in Apache 2.0 2. Get Tomcat to use jk2 (apparently this is the easier job ;-)) Sorry, the procedure is VERY complicated for users who don't do this everyday. Actually, it is complicated because no documentation exists AND the binary builds of Apache/jk/jk2 are NEVER compatible. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Tomcat4.1.12 + Apache2.0.35 + jk2
Does everyone else have jk2 working? Malachi 10/5/2002 3:46:33 AM, Malachi de AElfweald [EMAIL PROTECTED] wrote: I have Tomcat running successfully Standalone, but I am trying to link it via jk2/jni to Apache to speed it up a bit (even locally it is slow). I set it up as best I could via the documents on the www.apache.org website, but alas, I am stuck. [it is FreeBSd 4.6] LoadModule jk_module libexec/apache2/mod_jk2 causes: Cannot load /usr/local/libexec/apache2/mod_jk2.so into server: /usr/local/libexec/apache2/mod_jk2.so: Undefined symbol pthread_mutex_unlock so, I installed linuxthreads from the Port Collection (pthreads support) that created /usr/lib/liblthread.* It doesn't seem to affect Apache's error. If I specifically try to LoadModule it, it says that it doesn't fit the API -- otherwise it says that pthread_mutex_unlock is undefined. Any thoughts? PS I also tried linking the linux-sun-jdk14 native_threads/libhpi.so into the lib/apache2 and libexec/apache2 directories, but no luck there either... Any help would be greatly appreciated. Thanks. Malachi -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: Problem invoking CGIs that are EXE files
I posted something on this earlier - can you get *any* cgi to work when it's included? Here's my previous post: I'm using Tomcat 4.0.3 to serve dynamic and static pages. I can get includes to work and I can get CGI's to work but I can't get included CGI's to work. you can pick your friends, you can pick your nose... Anyway, here's what works: includes on .html pages: !--#include virtual=Shared/footer-- includes on .jsp pages: %@ include file=Shared/footer % CGI that works: http://localhost/PCW/cgi-bin/test-cgi And here's what DOESN'T work (this is on a .html page) !--#include virtual=/cgi-bin/test-cgi-- !--#include virtual=/PCW/cgi-bin/test-cgi-- !--#include virtual=../../WEB-INF/cgi/test-cgi-- My Tomcat config file is completely standard - I uncommented the SSI and CGI bits and renamed the appropriate .jar files but there are no other config changes. Since both CGI's and includes work my assumption here is that the SSI servlet doesn't call the CGI servlet. In other words when I call the CGI from the URL it gets handled by the CGI servlet, and when I include it it gets handled by the SSI servlet but what I need is for the SSI servlet to call the CGI servlet which it doesn't do. It doesn't appear that any file extensions are checked by the CGI servlet, and I cannot find any code that explicitly 'allows' or 'denies' certain file extensions. As far as I can tell, the request for /cgi-bin/whatever.exe is not being handled by the CGIServlet at all. When CGIServlet is invoked, it tries to find the cgi file, and prints logs so you can tell this is happening. A request for an .exe file does not cause this log to get printed. So this tells me that the request is never getting sent to the CGIServlet, even though it matches the /cgi-bin/* pattern, which the CGIServlet is supposed to handle. --jason Turner, John wrote: .exe may not be explicitly excluded as an extension, but are other file extensions explicitly included? Like .sh, .pl, .cgi? John -Original Message- From: Jason Young [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 18, 2002 11:00 AM To: [EMAIL PROTECTED] Subject: Problem invoking CGIs that are EXE files ...snip... Are there just some file extensions that Tomcat will not try to execute? I looked at the source code, and couldn't find any reference to .exe files that would exclude them from execution... Thanks for any help or insight into this matter! Jason Young -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to use Tomcat with Apache 2.0 I suggest the following way for fast results: 1. Obtain the source for jakarta-tomcat-connectors. try building the whole thing using ant until it's done or you see libtool complaining about -lapr. 2. In jk/build/Apache2 you should find the mod_jk2.so file, copy that to your Apache installation module directory 3. Add AddModule jk2_module modules/mod_jk2.so to your httpd.conf 4. in your tomcat 4.1.12 (or similar) installation, edit the conf/jk2.properties to contain the following: handler.list=apr,channelSocket,request channelSocket.port=8019 5. create workers2.properties in the APACHE conf directory, containing: [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:localhost:8019] port=8019 host=127.0.0.1 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/examples/*] worker=ajp13:localhost:8019 Done! I didn't get the unix socket communication to work, but I guess that I've already achieved more than many desperate newbies trying to use Tomcat with Apache. Good luck to all of you! If anyone reading this knows a bettewr procedure, I'd be glad to give it a try. P.S.: To any developer: Don't you think it's a shame that users like me have to do these things, compiling, ignoring errors, adapting config files until it seems to work? I mean, you keep cleaning up code, easing configuration, and the most important things (for instance getting it to work with THE standard web server) remain a mystery for 85% of all potential tomcat users (I estimate)? IMO you should get the Apache developers to include mod_jk2 as a standard module, if you don't have the time to maintain it properly. It seems to depend more on the Apache source than on tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
trivial question...
Tomcat 4.1... I print all the header values. Then I set a new header value ( response. setHeader ) in the service method. When I refresh the page shouldnt the set header value be part of the printed header values ??? I am not seeing this value. Arent header values persisted for the session ? // print all headers... // if header not defined, then set new header name/value. Run this once. Then refresh the page again. Shouldnt the name/value be part of the output now. Thanks -- padhu -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
I did step 1, and even went into the jk directory and did ant native as well (per the jk/README.txt) just in case... I did step 2... Step 3 will not work on Apache2 according to the Apache2 documentation http://httpd.apache.org/docs-2.0/upgrading.html : The AddModule and ClearModuleList directives no longer exist. As such, I did LoadModule, but that fails... What OS are you running? I think that is part of my problem. I am running FreeBSD. It said it couldn't find pthread_mutex_unlock -- so I tried installing pthread support... no luck... Looking closer, I see that jk/native2/common/jk_mutex_thread.c is talking about pthreads... and it says that it is a wrapper for apr Which is probably where the problem comes from since the build.properties for the jk directory was a pain to figure out, due to the fact that apache2 on FreeBSD has files in /usr/local/lib/apache2, /usr/local/libexec/apache2, /usr/local/etc/apache2, /usr/local/www I tried to fix the build.properties to match the actual system, but maybe the build isn't good enough to handle it... the apr files are in the same directories listed there, and I modified the build.properties to reflect that. ** So perhaps someone can tell me how to correctly build the jk directory on FreeBSD? But, in regards to your comment -- I completely agree... Try setting up jk2 with jni and find out how many examples are out there... NONE that I could find on google. So, it is all guesswork since the documentation isn't really all there. Malachi 10/5/2002 12:07:32 PM, Michael Riess [EMAIL PROTECTED] wrote: Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to use Tomcat with Apache 2.0 I suggest the following way for fast results: 1. Obtain the source for jakarta-tomcat-connectors. try building the whole thing using ant until it's done or you see libtool complaining about -lapr. 2. In jk/build/Apache2 you should find the mod_jk2.so file, copy that to your Apache installation module directory 3. Add AddModule jk2_module modules/mod_jk2.so to your httpd.conf 4. in your tomcat 4.1.12 (or similar) installation, edit the conf/jk2.properties to contain the following: handler.list=apr,channelSocket,request channelSocket.port=8019 5. create workers2.properties in the APACHE conf directory, containing: [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:localhost:8019] port=8019 host=127.0.0.1 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/examples/*] worker=ajp13:localhost:8019 Done! I didn't get the unix socket communication to work, but I guess that I've already achieved more than many desperate newbies trying to use Tomcat with Apache. Good luck to all of you! If anyone reading this knows a bettewr procedure, I'd be glad to give it a try. P.S.: To any developer: Don't you think it's a shame that users like me have to do these things, compiling, ignoring errors, adapting config files until it seems to work? I mean, you keep cleaning up code, easing configuration, and the most important things (for instance getting it to work with THE standard web server) remain a mystery for 85% of all potential tomcat users (I estimate)? IMO you should get the Apache developers to include mod_jk2 as a standard module, if you don't have the time to maintain it properly. It seems to depend more on the Apache source than on tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
FW: tomcat pass-through to embedded web server withno JSP support or notion of session state
Is it possible to use Tomcat as a front-end to an embedded web-server which does not support JSP or the notion of a session? Can tomcat somehow be used as a HTTP pass-through to the embedded server while leveraging session state? Thanks is advance for any direction. -John V -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
AW: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
Sorry, of course it's LoadModule not AddModule ... I did it on RedHat Linux 7.2, which might explain your pthread problem. Unfortunately I don't have any experience with FreeBSD. maybe you should try going to the jk/native2 directory and use buildconf.sh - configure - make ... but that didn't seem to work for me, could be a libtool problem. It's really sad to see that the apache tomcat developers are devoting so little attention to mod_jk/mod_jk2, reminds me of the time before mod_ssl was built into apache (IMO all closely dependent modules should be integrated into apache, as they need to be modified with every apache version). It was exactly the same situation, even most developers didn't know which combination was stable. -Ursprüngliche Nachricht- Von: Malachi de AElfweald [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 5. Oktober 2002 21:33 An: Tomcat Users List Betreff: Re: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2 I did step 1, and even went into the jk directory and did ant native as well (per the jk/README.txt) just in case... I did step 2... Step 3 will not work on Apache2 according to the Apache2 documentation http://httpd.apache.org/docs-2.0/upgrading.html : The AddModule and ClearModuleList directives no longer exist. As such, I did LoadModule, but that fails... What OS are you running? I think that is part of my problem. I am running FreeBSD. It said it couldn't find pthread_mutex_unlock -- so I tried installing pthread support... no luck... Looking closer, I see that jk/native2/common/jk_mutex_thread.c is talking about pthreads... and it says that it is a wrapper for apr Which is probably where the problem comes from since the build.properties for the jk directory was a pain to figure out, due to the fact that apache2 on FreeBSD has files in /usr/local/lib/apache2, /usr/local/libexec/apache2, /usr/local/etc/apache2, /usr/local/www I tried to fix the build.properties to match the actual system, but maybe the build isn't good enough to handle it... the apr files are in the same directories listed there, and I modified the build.properties to reflect that. ** So perhaps someone can tell me how to correctly build the jk directory on FreeBSD? But, in regards to your comment -- I completely agree... Try setting up jk2 with jni and find out how many examples are out there... NONE that I could find on google. So, it is all guesswork since the documentation isn't really all there. Malachi 10/5/2002 12:07:32 PM, Michael Riess [EMAIL PROTECTED] wrote: Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to use Tomcat with Apache 2.0 I suggest the following way for fast results: 1. Obtain the source for jakarta-tomcat-connectors. try building the whole thing using ant until it's done or you see libtool complaining about -lapr. 2. In jk/build/Apache2 you should find the mod_jk2.so file, copy that to your Apache installation module directory 3. Add AddModule jk2_module modules/mod_jk2.so to your httpd.conf 4. in your tomcat 4.1.12 (or similar) installation, edit the conf/jk2.properties to contain the following: handler.list=apr,channelSocket,request channelSocket.port=8019 5. create workers2.properties in the APACHE conf directory, containing: [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:localhost:8019] port=8019 host=127.0.0.1 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/examples/*] worker=ajp13:localhost:8019 Done! I didn't get the unix socket communication to work, but I guess that I've already achieved more than many desperate newbies trying to use Tomcat with Apache. Good luck to all of you! If anyone reading this knows a bettewr procedure, I'd be glad to give it a try. P.S.: To any developer: Don't you think it's a shame that users like me have to do these things, compiling, ignoring errors, adapting config files until it seems to work? I mean, you keep cleaning up code, easing configuration, and the most important things (for instance getting it to work with THE standard web server) remain a mystery for 85% of all potential tomcat users (I estimate)? IMO you should get the Apache developers to include mod_jk2 as a standard module, if you don't have the time to maintain it properly. It seems to depend more on the Apache source than on tomcat. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Tomcat with multiple virtual hosts
I have a directory that contains all web related files, organized in subdirectories. The one that contains the files relevant to regular HTTP connections (port 80) are inside the www subdirectory. The files relevant to SSL connections (port 443) are under the ssl subdirectory. I want to have the www directory as the root of the regular connections, and the ssl directory as the root of the SSL connections. Right now, tomcat doesn't know how to process the incoming connections from 443, it points to the / context for incoming 80 connections. Here's what I'm using: == Apache-1.3.27 Mod-ssl-2.8.11 jakarta-tomcat.4.1.12 jakarta-ant-1.5.1 jakarta-tomcat-connectors-4.1.12 The only solution I've come up with is to move my ssl content into the /www dir and to use an Apache DENY directive to block directory browsing of my JSP Dir. Has anyone configured tomcat to recognize Apache virtual hosts? -David --- End of forwarded message --- -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
yeah, I just tried the jk/native2/configure script... it detected BSD ok, and the linux JVM died at first on ltconfig saying that you had to specify a hostname with --no-verify. I put $ac_hostname after the --no-verify in the configure script, and ltconfig said that kallisti.tremerechantry.com didn't exist. So, I tried taking --no-verify out... still fails on the hostname... ripped that back out... then it gets down to: no apxs given no apxs2 given checking...tomcat33... not provided checking...tomcat40... not provided checking...tomcat41... not provided checking JDK... checking Java platform... os_type... linux configure:error: Cannot find any WebServer Very confusing... So, I can build the mod_jk2.so normally with ant... but that file doesn't work with Apache2... and can't seem to make it by hand... Malachi 10/5/2002 1:47:21 PM, Michael Riess [EMAIL PROTECTED] wrote: Sorry, of course it's LoadModule not AddModule ... I did it on RedHat Linux 7.2, which might explain your pthread problem. Unfortunately I don't have any experience with FreeBSD. maybe you should try going to the jk/native2 directory and use buildconf.sh - configure - make ... but that didn't seem to work for me, could be a libtool problem. It's really sad to see that the apache tomcat developers are devoting so little attention to mod_jk/mod_jk2, reminds me of the time before mod_ssl was built into apache (IMO all closely dependent modules should be integrated into apache, as they need to be modified with every apache version). It was exactly the same situation, even most developers didn't know which combination was stable. -Ursprüngliche Nachricht- Von: Malachi de AElfweald [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 5. Oktober 2002 21:33 An: Tomcat Users List Betreff: Re: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2 I did step 1, and even went into the jk directory and did ant native as well (per the jk/README.txt) just in case... I did step 2... Step 3 will not work on Apache2 according to the Apache2 documentation http://httpd.apache.org/docs-2.0/upgrading.html : The AddModule and ClearModuleList directives no longer exist. As such, I did LoadModule, but that fails... What OS are you running? I think that is part of my problem. I am running FreeBSD. It said it couldn't find pthread_mutex_unlock -- so I tried installing pthread support... no luck... Looking closer, I see that jk/native2/common/jk_mutex_thread.c is talking about pthreads... and it says that it is a wrapper for apr Which is probably where the problem comes from since the build.properties for the jk directory was a pain to figure out, due to the fact that apache2 on FreeBSD has files in /usr/local/lib/apache2, /usr/local/libexec/apache2, /usr/local/etc/apache2, /usr/local/www I tried to fix the build.properties to match the actual system, but maybe the build isn't good enough to handle it... the apr files are in the same directories listed there, and I modified the build.properties to reflect that. ** So perhaps someone can tell me how to correctly build the jk directory on FreeBSD? But, in regards to your comment -- I completely agree... Try setting up jk2 with jni and find out how many examples are out there... NONE that I could find on google. So, it is all guesswork since the documentation isn't really all there. Malachi 10/5/2002 12:07:32 PM, Michael Riess [EMAIL PROTECTED] wrote: Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to use Tomcat with Apache 2.0 I suggest the following way for fast results: 1. Obtain the source for jakarta-tomcat-connectors. try building the whole thing using ant until it's done or you see libtool complaining about -lapr. 2. In jk/build/Apache2 you should find the mod_jk2.so file, copy that to your Apache installation module directory 3. Add AddModule jk2_module modules/mod_jk2.so to your httpd.conf 4. in your tomcat 4.1.12 (or similar) installation, edit the conf/jk2.properties to contain the following: handler.list=apr,channelSocket,request channelSocket.port=8019 5. create workers2.properties in the APACHE conf directory, containing: [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:localhost:8019] port=8019 host=127.0.0.1 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/examples/*] worker=ajp13:localhost:8019 Done! I didn't get the unix socket communication to work, but I guess that I've already achieved more than many desperate newbies trying to use Tomcat with Apache. Good luck to all of you! If anyone reading this knows a bettewr procedure, I'd be glad to give it a try. P.S.: To any developer: Don't you think it's a shame that users like me have to do these things, compiling, ignoring errors, adapting config files until it seems to work? I mean, you keep cleaning up code, easing configuration, and the most important things (for instance getting
Re: AW: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
Ok, I think I might have figured out WHAT the problem is, if someone can lead me in the right direction to try it... it appears that you have to do gcc -pthread on BSD to link to pthreads (as per 'man 3 pthread') Does this mean I have to reinstall Apache with this option, or that I need to somehow add that cmdline option to the connectors build somewhere? Any help would be GREATLY appreciated. Malachi 10/5/2002 3:02:01 PM, Malachi de AElfweald [EMAIL PROTECTED] wrote: yeah, I just tried the jk/native2/configure script... it detected BSD ok, and the linux JVM died at first on ltconfig saying that you had to specify a hostname with --no-verify. I put $ac_hostname after the --no-verify in the configure script, and ltconfig said that kallisti.tremerechantry.com didn't exist. So, I tried taking --no-verify out... still fails on the hostname... ripped that back out... then it gets down to: no apxs given no apxs2 given checking...tomcat33... not provided checking...tomcat40... not provided checking...tomcat41... not provided checking JDK... checking Java platform... os_type... linux configure:error: Cannot find any WebServer Very confusing... So, I can build the mod_jk2.so normally with ant... but that file doesn't work with Apache2... and can't seem to make it by hand... Malachi 10/5/2002 1:47:21 PM, Michael Riess [EMAIL PROTECTED] wrote: Sorry, of course it's LoadModule not AddModule ... I did it on RedHat Linux 7.2, which might explain your pthread problem. Unfortunately I don't have any experience with FreeBSD. maybe you should try going to the jk/native2 directory and use buildconf.sh - configure - make ... but that didn't seem to work for me, could be a libtool problem. It's really sad to see that the apache tomcat developers are devoting so little attention to mod_jk/mod_jk2, reminds me of the time before mod_ssl was built into apache (IMO all closely dependent modules should be integrated into apache, as they need to be modified with every apache version). It was exactly the same situation, even most developers didn't know which combination was stable. -Ursprüngliche Nachricht- Von: Malachi de AElfweald [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 5. Oktober 2002 21:33 An: Tomcat Users List Betreff: Re: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2 I did step 1, and even went into the jk directory and did ant native as well (per the jk/README.txt) just in case... I did step 2... Step 3 will not work on Apache2 according to the Apache2 documentation http://httpd.apache.org/docs-2.0/upgrading.html : The AddModule and ClearModuleList directives no longer exist. As such, I did LoadModule, but that fails... What OS are you running? I think that is part of my problem. I am running FreeBSD. It said it couldn't find pthread_mutex_unlock -- so I tried installing pthread support... no luck... Looking closer, I see that jk/native2/common/jk_mutex_thread.c is talking about pthreads... and it says that it is a wrapper for apr Which is probably where the problem comes from since the build.properties for the jk directory was a pain to figure out, due to the fact that apache2 on FreeBSD has files in /usr/local/lib/apache2, /usr/local/libexec/apache2, /usr/local/etc/apache2, /usr/local/www I tried to fix the build.properties to match the actual system, but maybe the build isn't good enough to handle it... the apr files are in the same directories listed there, and I modified the build.properties to reflect that. ** So perhaps someone can tell me how to correctly build the jk directory on FreeBSD? But, in regards to your comment -- I completely agree... Try setting up jk2 with jni and find out how many examples are out there... NONE that I could find on google. So, it is all guesswork since the documentation isn't really all there. Malachi 10/5/2002 12:07:32 PM, Michael Riess [EMAIL PROTECTED] wrote: Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to use Tomcat with Apache 2.0 I suggest the following way for fast results: 1. Obtain the source for jakarta-tomcat-connectors. try building the whole thing using ant until it's done or you see libtool complaining about -lapr. 2. In jk/build/Apache2 you should find the mod_jk2.so file, copy that to your Apache installation module directory 3. Add AddModule jk2_module modules/mod_jk2.so to your httpd.conf 4. in your tomcat 4.1.12 (or similar) installation, edit the conf/jk2.properties to contain the following: handler.list=apr,channelSocket,request channelSocket.port=8019 5. create workers2.properties in the APACHE conf directory, containing: [shm] file=${serverRoot}/logs/shm.file size=1048576 [channel.socket:localhost:8019] port=8019 host=127.0.0.1 [ajp13:localhost:8019] channel=channel.socket:localhost:8019 [uri:/examples/*] worker=ajp13:localhost:8019 Done! I didn't get the unix socket communication to work, but I guess
RE: Chicken and the egg
Tomcat 4.1.x does support mod_jk as well as mod_jk2. You just have to enable the correct connector in your server.xml file. In fact, I would claim that if you are currently using Tomcat 4.0.4 in production, I would not upgrade to 4.1.x (yet) -- I would use 4.0.5 instead. There have been enough people with issues regarding Tomcat 4.1.x that I would wait on that unless there is something in there that you absolutely need. -Mike Schulz -Original Message- From: Michael Riess [mailto:[EMAIL PROTECTED]] Sent: Saturday, October 05, 2002 11:52 AM To: [EMAIL PROTECTED] Subject: Chicken and the egg Hi there, Situation: I built a working configuration of Apache 2.0.35, Tomcat 4.0.4 and mod_jk, now I want to update my system. I downloaded Apache 2.0.43, downloaded mod_jk2 binary ... just for 2.0.42, so I downloaded the source ... libtool doesn't know -lapr ... tried to default to mod_jk ... Tomcat 4.1.12 seems to support jk2 ONLY ... so now I'm stuck. Does anybody know a HOWTO that covers the two basic steps: 1. Integrate mod_jk2 in Apache 2.0 2. Get Tomcat to use jk2 (apparently this is the easier job ;-)) Sorry, the procedure is VERY complicated for users who don't do this everyday. Actually, it is complicated because no documentation exists AND the binary builds of Apache/jk/jk2 are NEVER compatible. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: AW: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2
Ok, rebuilt Apache up to 2.0.42 (not sure where I got 43 from... it was an older version). This immediately made about 4 of the mods not work. jk2 still didn't work. so deleted and redid the connectors... modified all the build.properties files... did ant in the main directory evidentally, that wasn't enough so did ant in the jk directory still not building mod_jk2.so so did ant in the native2 directory it SAID that it built the mod_jk2 in jk/build/apache2/mod_jk2.so but, it isn't there. neither is the jni one. There is a mod_jk2.o in jk/build/apache2/server/apache2 -- but that still isn't .so (do I just rename it? seems like something isn't right with the linking since it SAID it was being output elsewhere)... Anyone have any clue? I am starting to think it is useless to do the inprocess stuff, which sucks since Tomcat is running REAL slow... Malachi 10/5/2002 3:42:00 PM, Malachi de AElfweald [EMAIL PROTECTED] wrote: Ok, I think I might have figured out WHAT the problem is, if someone can lead me in the right direction to try it... it appears that you have to do gcc -pthread on BSD to link to pthreads (as per 'man 3 pthread') Does this mean I have to reinstall Apache with this option, or that I need to somehow add that cmdline option to the connectors build somewhere? Any help would be GREATLY appreciated. Malachi 10/5/2002 3:02:01 PM, Malachi de AElfweald [EMAIL PROTECTED] wrote: yeah, I just tried the jk/native2/configure script... it detected BSD ok, and the linux JVM died at first on ltconfig saying that you had to specify a hostname with --no-verify. I put $ac_hostname after the --no-verify in the configure script, and ltconfig said that kallisti.tremerechantry.com didn't exist. So, I tried taking --no-verify out... still fails on the hostname... ripped that back out... then it gets down to: no apxs given no apxs2 given checking...tomcat33... not provided checking...tomcat40... not provided checking...tomcat41... not provided checking JDK... checking Java platform... os_type... linux configure:error: Cannot find any WebServer Very confusing... So, I can build the mod_jk2.so normally with ant... but that file doesn't work with Apache2... and can't seem to make it by hand... Malachi 10/5/2002 1:47:21 PM, Michael Riess [EMAIL PROTECTED] wrote: Sorry, of course it's LoadModule not AddModule ... I did it on RedHat Linux 7.2, which might explain your pthread problem. Unfortunately I don't have any experience with FreeBSD. maybe you should try going to the jk/native2 directory and use buildconf.sh - configure - make ... but that didn't seem to work for me, could be a libtool problem. It's really sad to see that the apache tomcat developers are devoting so little attention to mod_jk/mod_jk2, reminds me of the time before mod_ssl was built into apache (IMO all closely dependent modules should be integrated into apache, as they need to be modified with every apache version). It was exactly the same situation, even most developers didn't know which combination was stable. -Ursprüngliche Nachricht- Von: Malachi de AElfweald [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 5. Oktober 2002 21:33 An: Tomcat Users List Betreff: Re: HOWTO for Apache 2.0.43 and Tomcat 4.1.12 using mod_jk2 I did step 1, and even went into the jk directory and did ant native as well (per the jk/README.txt) just in case... I did step 2... Step 3 will not work on Apache2 according to the Apache2 documentation http://httpd.apache.org/docs-2.0/upgrading.html : The AddModule and ClearModuleList directives no longer exist. As such, I did LoadModule, but that fails... What OS are you running? I think that is part of my problem. I am running FreeBSD. It said it couldn't find pthread_mutex_unlock -- so I tried installing pthread support... no luck... Looking closer, I see that jk/native2/common/jk_mutex_thread.c is talking about pthreads... and it says that it is a wrapper for apr Which is probably where the problem comes from since the build.properties for the jk directory was a pain to figure out, due to the fact that apache2 on FreeBSD has files in /usr/local/lib/apache2, /usr/local/libexec/apache2, /usr/local/etc/apache2, /usr/local/www I tried to fix the build.properties to match the actual system, but maybe the build isn't good enough to handle it... the apr files are in the same directories listed there, and I modified the build.properties to reflect that. ** So perhaps someone can tell me how to correctly build the jk directory on FreeBSD? But, in regards to your comment -- I completely agree... Try setting up jk2 with jni and find out how many examples are out there... NONE that I could find on google. So, it is all guesswork since the documentation isn't really all there. Malachi 10/5/2002 12:07:32 PM, Michael Riess [EMAIL PROTECTED] wrote: Helped myself ... used mod_jk2 for 2.0.42 for Apache 2.0.43 and it didn't work, so I built mod_jk2.so myself. For anyone trying to
Default Context
In tomcat3.x, a URL like http:/mycomputer/servlet/someservlet would be redirected to http:/mycomputer/ROOT/servlet/someservlet or to whatever was defined as the default context. So far I have not been able to get this behavious in tomcat4.x. Redirect and Rewrite won't work because most of our servlets rely on the POST method, and I would like to avoid re-writing our entire web-site. There are a couple of other possible work-arounds but they seem to belong in the when all else has failed category. There have been several threads around this question, and I wonder if anything like a solution has been found or even suggested? Glen Jackson IST-Museum Informatics Proj. University of Calif., Berkeley -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
Re: IBM HTTP Server, Tomcat 4.1.12, mod_jk and the IBM GSK [Windows NT]
Jens, Sorry I can't help you on your question. I would like to know where do you run your tomcat 4.1.12 ? I couldn't get it to work under IBM's os/390. The bug was reported at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13014 If you do get it to work under os/390 I would like to know how. Thanks. Joseph Tan --- Jens Andersen [EMAIL PROTECTED] wrote: Hi all, I have a question regarding the usage of Tomcat together with IBM Http Server 1.3.19 (which is based on Apache httpd 1.3.20). I uses the http server for handling static pages and redirect servlet and jsp requests to tomcat through mod_jk.dll and it works fine for port 80 but when I use 443 (SSL) I only receive about 32-40KB of a page of 200KB. I think it's the IBM GSK* module which makes the trouble but I'm not 100% sure. So what I would like to here is any of you have experienced the same problem on a Windows NT 4.0 system running IBM Http Server 1.3.19.3, Tomcat 4.1.12, mod_jk (latest), Sun J2SDK 1.3.1_04?? Best regards, J. Andersen * The GSK module handles SSL certificates etc. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] http://mobile.yahoo.com.au - Yahoo! Messenger for SMS - Always be connected to your Messenger Friends -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]
RE: Tomcat stop when exit telnet session
Members Equity Email System The following bug may be of interest here... Bug : 4755829 JVM 1.3.1-04 and Pre-release of JVM 1.3.1-05 ignoring nohup(1) command -Original Message- From: fong [mailto:[EMAIL PROTECTED]] Sent: Saturday, 5 October 2002 12:11PM To: Tomcat Users List Subject: Re: Tomcat stop when exit telnet session I try both nohup /etc/init.d/tomcat4 start or nohup /etc/init.d/tomcat4 start were also work. Thank yours help. - Original Message - From: Hauck, Joe [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Saturday, October 05, 2002 2:03 AM Subject: RE: Tomcat stop when exit telnet session In Solaris you can use the nohup command to run a program without ending when the session ends. So for tomcat it would be: nohup $CATALINA_HOME/bin/startup.sh Joe. -Original Message- From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 1:22 PM To: Tomcat Users List Subject: Re: Tomcat stop when exit telnet session Jon, I even tried the , but it didn't work for me. I don't know why...but maybe it really works for Fong... jon wingfield wrote: I've never used solaris8 so the following may be in error, but here goes. On linux using seems not only to put the process in the background but also seems to be nohup (no hang up). On hp-ux 10/11 using seems only to put the process in the background and NOT nohup. So, i surmise that solaris8 is behaving like hp-ux and that you need to use the nohup command instead of just putting the process in the background. so i would try: nohup /etc/init.d/tomcat4 start Hope this helps, Jon -Original Message- From: fong [mailto:[EMAIL PROTECTED]] Sent: 04 October 2002 16:45 To: Tomcat Users List Subject: Tomcat stop when exit telnet session I install tomcat 4.X in solaris8. I run /etc/init.d/tomcat4 start to start tomcat in telnet session from win2K. That is ok. But when I close the telnet session. This service is also stop. So I can't use tomcat web services. How can I keep it running? Much thanks... -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] MEMBERS EQUITY PTY LTD ABN 56 070 887 679 This email and any attachments are confidential. If you are not the intended recipient, you must not disclose, distribute, copy or use the information contained in this e-mail or any attachments. If you have received this email in error, please tell us immediately by return email and delete this e-mail and any attachments. This message should not be removed. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]