RE: How to force Tomcat to compile?
just do it with the following two command lines: cd .../WEB-INF/classes javac *.java Guido. -Original Message- From: Anja Falkner [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 2:24 PM To: Tomcat Users List Subject: How to force Tomcat to compile? Hi, is there a method, which forces Tomcat (4.0) to compile all my class-files in WEB-INF/classes? It is a little bit troublesome to rename the classes every time I have changed it... Anja
RE: Tomcat Crash on Win2K
Try the lastest release of Sun JDK, remember to unistall first the other one and install this on the same dir, so you won't have to change too many configuration issues... Guido. -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Friday, February 01, 2002 8:53 AM To: '[EMAIL PROTECTED]' Subject: Tomcat Crash on Win2K One of our clients has recently upgraded the computer system that runs our application (which is based on Tomcat) from Windows NT 4 to Windows 2000. Under NT 4 our application never crashed. In the past week it has crashed twice. Both times an error about a non-fatal JIT error was written to the jvm.stderr log file at the approximate time of the crash. The error is: A nonfatal internal JIT (3.10.107(x)) error 'Structured Exception(c005)' has occurred in : 'org/apache/tomcat/session/StandardSession.expire ()V': Interpreting method. Followed by a complete stack trace for each thread in the system at the time of the crash. We are running : * Windows 2000 (unknown service pack level). * Java -fullversion gives JDK-1.2.2-W * Accessing SQL Server 2000 using INetSoftware's database drivers * No ODBC usage Any thoughts? Does this version of the JDK have problems on Windows 2K? Randy -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris x86 2.8 box (with Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit))
Try upgrading to jdk 1.3.lastest_lastest -Original Message- From: Roman Medina [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 16, 2002 1:22 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Threads problem with Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris x86 2.8 box (with Solaris VM (build Solaris_JDK_1.2.2_05a, native threads, sunwjit)) Hi ppl: I'm running Apache 1.3.22 + Tomcat 3.3 + Cocoon 1.8.2 on a Solaris x86 2.8 box (with Sun JDK 1.2), and I'm in trouble. When I thought all was working ok I realized that with some applications my Tomcat crashes!! This happens after receiving several errors (see attached log). Any help would be greatly appreciated. I'm in a hurry... :-( --- Thread-34 (TID:0x8bed968, sys_thread_t:0x8bed8b0, state:CW, thread_t: t@82, threadID:0xd9560d74, stack_bottom:0xd9561000, stack_size:0x2) prio=5 [1] java.lang.Thread.sleep(Native Method) [2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24) --- Thread-33 (TID:0x8cbf030, sys_thread_t:0x8cbef78, state:CW, thread_t: t@81, threadID:0xd95b0d74, stack_bottom:0xd95b1000, stack_size:0x2) prio=5 [1] java.lang.Thread.sleep(Native Method) [2] batmap.map.MapCheckConnection.run(MapCheckConnection.java:24) --- SeedGenerator Thread (TID:0x877c258, sys_thread_t:0x877c1a0, state:CW, thread_t: t@26, threadID:0xd9610d74, stack_bottom:0xd9611000, stack_size:0x2) prio=1 [1] java.lang.Object.wait(Object.java:424) [2] sun.security.provider.SeedGenerator.run(SeedGenerator.java:107) [3] java.lang.Thread.run(Thread.java:478) --- Thread-18 (TID:0x8181940, sys_thread_t:0x8181888, state:MW, thread_t: t@1, threadID:0x804c058, stack_bottom:0x8048000, stack_size:0x848000) prio=5 --- MonitorRunnable (TID:0x868c0f0, sys_thread_t:0x868c038, state:CW, thread_t: t@25, threadID:0xd9aa0d74, stack_bottom:0xd9aa1000, stack_size:0x2) prio=5 [1] org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(Unknown Source) [2] java.lang.Thread.run(Thread.java:478) --- Thread-16 (TID:0x867e328, sys_thread_t:0x867e270, state:R, thread_t: t@24, threadID:0xd9ae0d74, stack_bottom:0xd9ae1000, stack_size:0x2) prio=5 [1] java.net.SocketInputStream.socketRead(Native Method) [2] java.net.SocketInputStream.read(SocketInputStream.java:85) [3] org.apache.tomcat.modules.server.Ajp13.readN(Unknown Source) [4] org.apache.tomcat.modules.server.Ajp13.receive(Unknown Source) [5] org.apache.tomcat.modules.server.Ajp13.receiveNextRequest(Unknown Source) [6] org.apache.tomcat.modules.server.Ajp13Request.receiveNextRequest(Unknown Source) [7] org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) [8] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) [9] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) [10] java.lang.Thread.run(Thread.java:478) --- Thread-15 (TID:0x86592a0, sys_thread_t:0x86591e8, state:R, thread_t: t@23, threadID:0xd9b20d74, stack_bottom:0xd9b21000, stack_size:0x2) prio=5 *current thread* [1] com.coolservlets.util.StringUtils.hash(StringUtils.java:224) [2] com.coolservlets.forum.database.DbAuthorizationFactory.getAuthorization(DbAu thorizationFactory.java:84) [3] UserLogin.doGet(UserLogin.java) [4] javax.servlet.http.HttpServlet.service(HttpServlet.java) [5] javax.servlet.http.HttpServlet.service(HttpServlet.java) [6] org.apache.tomcat.facade.ServletHandler.doService(Unknown Source) [7] org.apache.tomcat.core.Handler.invoke(Unknown Source) [8] org.apache.tomcat.core.Handler.service(Unknown Source) [9] org.apache.tomcat.facade.ServletHandler.service(Unknown Source) [10] org.apache.tomcat.core.ContextManager.internalService(Unknown Source) [11] org.apache.tomcat.core.ContextManager.service(Unknown Source) [12] org.apache.tomcat.modules.server.Ajp13Interceptor.processConnection(Unknown Source) [13] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) [14] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) [15] java.lang.Thread.run(Thread.java:479) --- Thread-14 (TID:0x868eee8, sys_thread_t:0x868ee30, state:R, thread_t: t@22, threadID:0xd9b60d74, stack_bottom:0xd9b61000, stack_size:0x2) prio=5 [1] java.net.PlainSocketImpl.socketAccept(Native Method) [2] java.net.PlainSocketImpl.accept(PlainSocketImpl.java:406) [3] java.net.ServerSocket.implAccept(ServerSocket.java:238) [4] java.net.ServerSocket.accept(ServerSocket.java:223) [5] org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(Unknown Source) [6] org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) [7] org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) [8] java.lang.Thread.run(Thread.java:479) --- Thread-13 (TID:0x8685840, sys_thread_t:0x8685788, state:CW, thread_t: t@21, threadID:0xd9ba0d74, stack_bottom:0xd9ba1000,
RE: SIMPLE PROBLEM..I think
Read the manual first...It is simple 2 understand -Original Message- From: Catalin [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 7:23 PM To: [EMAIL PROTECTED] Subject: SIMPLE PROBLEM..I think hi 2 all! I'm new to jakarta and I have this pb: I want to build a new web app with servlets and I don't know how! I have an jakarta-tomcat 3.3m4 10x 2 all! -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TC4.01: custom Authenticator
the only you have to do is to inherite the authenticator scheme from Tomcat and re-write the methods...that's all, in the manual is explained how and which class you have to extend... Guido. -Original Message- From: Dan Kha [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 09, 2002 4:55 PM To: [EMAIL PROTECTED] Subject: TC4.01: custom Authenticator Hi, I'm interested in writing my own Authenticator implementation. My question is, after writing my own implementation, how do I tell Tomcat 4.01 to use my own custom Authenticator (and if possible without changing Tomcat's source)? I know that to use the standard authenticators, I add the appropriate lines in the web.xml file but I haven't found a way to change that to support my own. Does anyone have any ideas? Thanks in advance, Dan NOTE to anyone thinking of extending FormAuthenticator or BasicAuthenticator, you need to get the cvs source since the Tomcat 4.01 distribution declared those classes as final. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Tomcat 4 integration with apache
The problem with this is that you have to be very carefull with the following issues: 1) The virtual host on the apache web server has to be registered on the DNS 2) The same as one in Tomcat 3) The name on the virtual host in apache has to be the same as in Tomcat, if not, it will confuse and lost the connection. It is very important to have that in mind, mainly for windows that normally is running on LANs without the proper DNS, if it is the case edit the file C:\WINDOWS\HOST (Win9x) C:\WINNT\System32\Drivers\etc\HOST That's it...is a very important detail but it can makes you figth for five days and nothing happens... :-) Guido. -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 8:00 PM To: Tomcat Users List Subject: Re: Tomcat 4 integration with apache The guide is excellent! But I configure the WARP connector mod_webapp following all the steps correctly and still there are problems with the static contents. I work on W2K pro, JDK 1.3.1, Apache 1.3.22 and Tomcat 4.0.1 I succeed the integration Apache-Tomcat with the mod_jk connector (utilizing AJP13). For me, definitively the mod_webapp connector have a weird behavior, at least in a Windows platform . Special thaks for Brian in the configuration of mod_jk... Marcelo - Original Message - From: Justin Rowles [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 07, 2002 8:05 AM Subject: FW: Tomcat 4 integration with apache Kindly sent by Mr Peter Burgess, for those needing a guide to the above. -Original Message- Hi, I noticed your posting on the tomcat-user list via the mail archives (I'm not directly subscribed myself) - this should answer your problem: http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml Please post to the list so this information can be shared Thanks, Peter *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Extending Standard Context
I read in Servlet 2.3 Spec that LifecycleListener is also portable, the same as ServletContextListener, Am I wrong ?, I guess not... Guido. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:47 PM To: Tomcat Users List Subject: RE: Extending Standard Context On Thu, 3 Jan 2002, Mark Shaw wrote: Date: Thu, 3 Jan 2002 17:56:26 -0800 From: Mark Shaw [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Extending Standard Context Craig, thanks for the quick reply. A quick follow-up: is there any reason to use ServletContextListener vs. LifecycleListener (declaring the listener in web.xml vs. server.xml)? Technologyically, they do very similar things ... but there is one extremely important difference: ServletContextListener is portable to *any* servlet container that implements Servlet 2.3, while LifecycleListener is something specific to Tomcat 4. Thanks again, -Mark -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:02 PM To: Tomcat Users List Subject: Re: Extending Standard Context On Thu, 3 Jan 2002, Mark Shaw wrote: Date: Thu, 3 Jan 2002 12:37:56 -0800 From: Mark Shaw [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Extending Standard Context I have 2 questions, one regarding the general order of Context initialization and the other regarding the use of Contexts, any insight is appreciated. 1) If I define multiple contexts under the same Host will their constructors be called in the same order in which they're defined in server.xml (this looks to be the case, but I wasn't sure if it's guaranteed)? Is there a way to guarantee that their start() methods will be called in that same order (this isn't the case so I'm looking for a way to order them)? Here's my example server.xml: Context path=/1 docBase=. className=mypackage.MyContext/ Context path=/2 docBase=. className=mypackage.MyContext/ Context path=/3 docBase=. className=mypackage.MyContext/ There are no guarantees about the startup order of contexts within the same host. In the HEAD branch of Tomcat 4 (i.e. what you get when you download a recent nightly build), there is a guarantee about the order that Service elements are initialized in. Assume a configuration like this: Server ... Service ... Connector ... Engine ... Host ... Context path=/a1 .../ Context path=/a2 .../ /Host /Engine /Service Service ... Connector ... Engine ... Host ... Context path=/b1 .../ Context path=/b2 .../ /Host /Engine /Service /Server then, Tomcat will guarantee to start all of the /a1 and /a2 contexts (in some undefined order), before going on and starting the /b1 and /b2 contexts (in some undefined order). But this might be more pain than you really want to go through. 2) I'm using dummy contexts and mapping these to components within my application, such as a rule engine, daemon threads, etc. in order to use Tomcat's manager application to start, stop, and install these components which have their own thread associated with them. I've done this by extending StandardContext and spawning a new thread when MyContext is created and mapping the Context lifecycle commands to this thread. Apart from violating the Servlet spec by creating my own thread, is this a horrible idea? Does anyone have a better way of managing server components within Tomcat? One approach might be to use an application event listener for the contextCreated() and contextDestroyed() method (you would implement ServletContextListener). This way, you can fire up whatever services you need when the webapp is started, and gracefully clean them up when it is stopped -- without having to modify Tomcat at all. Note that the restriction on starting your own threads is a J2EE requirement, not a servlet spec one. It's legal to do that in a non-J2EE environment. (If you run Tomcat under a security manager, you'll also need to ensure that the code is granted the required permissions in the conf/catalina.policy file). Thanks for your help, -Mark Shaw [EMAIL PROTECTED] Craig -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Extending Standard Context
Oops, sorry, I was confused with HttpSessionListener that is new in Servlet 2.3, you know something, one month ago I couldn't answer many questions here but I already read: 1) Tomcat 4.01 Documentation 2) Servlet 2.3 Spec 3) JSP 1.2 Spec This is a very good experience, that's the surest way to learn, Regards, Guido. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 2:32 PM To: Tomcat Users List Subject: RE: Extending Standard Context On Fri, 4 Jan 2002, Guido Medina wrote: Date: Fri, 4 Jan 2002 08:51:44 -0400 From: Guido Medina [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: Extending Standard Context I read in Servlet 2.3 Spec that LifecycleListener is also portable, the same as ServletContextListener, Am I wrong ?, I guess not... A simple rule to figure out what might be portable: * Portable APIs start with javax.servlet, non-portable APIs do not. * Portable functionality is configured in web.xml, non-portable functionality is not (in Tomcat, the non-portable stuff is in server.xml). Since the full classname of LifecycleListener is: org.apache.catalina.LifecycleListener it becomes obvious that this is not portable to other servers :-). However, the servlet API *does* include some stuff that is similar in spirit to what LifecycleListener does inside Catalina -- in particular the ServletContextListener and HttpSessionListener APIs let you be involved in the lifecycle of web applications and HTTP sessions, respectively. These APIs are portable across all containers that implement Servlet 2.3. Guido. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: context-paramparam-value question
In Linux (or any UNIX Based system)/usr/jdk is not the same as /usr/JDK the case makes a big different... -Original Message- From: Roman Mikhailov [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 3:58 PM To: Tomcat Users List Subject: Re: context-paramparam-value question nothing is wrong with the path case sensitiveness as far as I can see could you explain please Roman On Friday, January 4, 2002, at 11:40 AM, Sylvain Hamel wrote: You have a path case sensitiveness problem. ;-) Linux is case sensitive but Windows is not. Sylvain Hamel - Original Message - From: Roman Mikhailov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 1:58 PM Subject: context-paramparam-value question Hi guys, the following piece of code from the web.xml file always gives me Apache Tomcat/4.0.1-HTTP Status 404 - /chat/servlet/ChatAdminServlet error when I run it on Linux and (?!) works fine on Windows How can I fix it ? Can anyone give me advice how can I make it work on Linux? Thanks in advance Roman Mikhailov *** context-param param-nameADMIN_PATH/param-name param-value/chat/servlet/ChatAdminServlet/param-value /context-param context-param param-nameLISTROOMS_PATH/param-name param-value/chat/servlet/ListRoomsServlet/param-value /context-param context-param param-nameCHATROOM_PATH/param-name param-value/chat/servlet/ChatRoomServlet/param-value /context-param ** ChatAdminServlet.class import javax.servlet.*; import javax.servlet.http.*; import java.io.*; import java.util.*; public class ChatAdminServlet extends HttpServlet { String chatRoomPath; String listRoomsPath; String chatAdminPath; public void init() { ServletContext context = getServletContext(); --- I guess it breaks somewhere here chatRoomPath = context.getInitParameter(CHATROOM_PATH); listRoomsPath = context.getInitParameter(LISTROOMS_PATH); chatAdminPath = context.getInitParameter(ADMIN_PATH); } -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Reference question...
Is there any good site regarding comparasion ?; for example the following issues: 1) Operation systems: Linux vs Window. 2) Java Web Servers: WebSphere, BEA Logic, Macromedia JRun, Tomcat 3) Java Virtual Machines: Sun JDK, IBM JDK 4) Databases: Oracle, MsSQL Server, MySQL, postgreSQL 5) Servers: IBM, DELL, COMPAQ It is not a technical question regarding this group but I would like to have some updated reference regarding performance in several things. Thanks in advance, Guido.
Online and/or Onsite...
Title: Online and/or Onsite... Hi, I looking for some interesting project, sorry if I disturb you with this Email but I don't have too many choices, I attached my CV on this mail. Thanks in advance, Guido. Guido.doc Description: MS-Word document -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: RE: RE: RE: can anyone help
Listen me, rigth click on the shortcut, check the enviroment memory or something like that, and put the maximum that appears there and also add this to autoexec.bat and restart your machine, anytime that you add anything to autoexec.bat you MUST restart the machine :-) win9x set JAVA_HOME=... set JAVA_PATH=%JAVA_HOME% That's it, it is normal on windows 98. Guido. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:15 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: RE: can anyone help it says the following: Using CATALINA_BASE: c:\jakarta tomcat 4.0 Using CATALINA_HOME: c:\jakarta tomcat 4.0 Using CLASSPATH: c:\jakarta tomcat 4.0\bin\bootstrap.jar;c:\jdk1.3.1_01\lib\ tools.jar Using JAVA_HOME: c:\jdk1.3.1_01 What does it say after you type startup? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: Re: RE: RE: can anyone help I have started tomcat using the shortcut created on installation as well as from the ms-dos shell C:\JAKARTA TOMCAT 4.0\BIN\STARTUP.BAT without any joy Also, what is the output when you start Tomcat? -Mark -Original Message- From: Josh Knowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:39 PM To: Tomcat Users List Subject: RE: RE: can anyone help Did you restart tomcat after changing the server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Re: RE: can anyone help yes, tomcat is running. tomcat is configured in server.xml to listen to localhost:8080 however it still not working even if I change the connectionport to say 8180 in server.xml Liakim This may be a stupid question but, are you sure Tomcat is running when you try to hit it? If it is then look in the server.xml file. Look at the HTTP connector to see what port Tomcat is configured to listen to. -Mark -Original Message- From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Tomcat Users List Subject: Re: can anyone help I am not sure if this is valid for windows but on linux/tomcat rpm's I found that 4.01 ist listening on port 8180. Give it a try Regards, Gerrit [EMAIL PROTECTED] wrote: Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com/redirect.html?http://www.talk21.com' ''http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redirec t.html?http://www.talk21.com''/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi rect.html?http://www.talk21.com''http://www.talk21.com/redirect.html?http:/ /www.talk21.com'/a/aa Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www''http://talk21.btopenworld.com/redirect.html?h ttp://www'/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www'http://www/a /a talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com''http://talk21.btopenworld.com/redi rect.html?http://www.talk21.com'/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'htt p://www.talk21.com/a/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands:
RE: RE: RE: RE: can anyone help
Also set: set CATALINA_HOME=path\to\tomcat set TOMCAT_HOME=%CATALINA_HOME% just in case... Guido. -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:29 PM To: 'Tomcat Users List' Subject: RE: RE: RE: RE: can anyone help Listen me, rigth click on the shortcut, check the enviroment memory or something like that, and put the maximum that appears there and also add this to autoexec.bat and restart your machine, anytime that you add anything to autoexec.bat you MUST restart the machine :-) win9x set JAVA_HOME=... set JAVA_PATH=%JAVA_HOME% That's it, it is normal on windows 98. Guido. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:15 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: RE: can anyone help it says the following: Using CATALINA_BASE: c:\jakarta tomcat 4.0 Using CATALINA_HOME: c:\jakarta tomcat 4.0 Using CLASSPATH: c:\jakarta tomcat 4.0\bin\bootstrap.jar;c:\jdk1.3.1_01\lib\ tools.jar Using JAVA_HOME: c:\jdk1.3.1_01 What does it say after you type startup? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:53 AM To: [EMAIL PROTECTED] Subject: Re: RE: RE: can anyone help I have started tomcat using the shortcut created on installation as well as from the ms-dos shell C:\JAKARTA TOMCAT 4.0\BIN\STARTUP.BAT without any joy Also, what is the output when you start Tomcat? -Mark -Original Message- From: Josh Knowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 2:39 PM To: Tomcat Users List Subject: RE: RE: can anyone help Did you restart tomcat after changing the server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Re: RE: can anyone help yes, tomcat is running. tomcat is configured in server.xml to listen to localhost:8080 however it still not working even if I change the connectionport to say 8180 in server.xml Liakim This may be a stupid question but, are you sure Tomcat is running when you try to hit it? If it is then look in the server.xml file. Look at the HTTP connector to see what port Tomcat is configured to listen to. -Mark -Original Message- From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Tomcat Users List Subject: Re: can anyone help I am not sure if this is valid for windows but on linux/tomcat rpm's I found that 4.01 ist listening on port 8180. Give it a try Regards, Gerrit [EMAIL PROTECTED] wrote: Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com/redirect.html?http://www.talk21.com' ''http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redirec t.html?http://www.talk21.com''/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi rect.html?http://www.talk21.com''http://www.talk21.com/redirect.html?http:/ /www.talk21.com'/a/aa Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www''http://talk21.btopenworld.com/redirect.html?h ttp://www'/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www'http://www/a /a talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com''http://talk21.btopenworld.com/redi rect.html?http://www.talk21.com'/aa Target='_new' Href='http://talk21.btopenworld.com
RE: RE: RE: can anyone help
go to the ms dos prompt and type this: ping localhost and tell me what happens also type http://127.0.0.1:8080 instead of localhost and tell me what happen Guido -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: can anyone help yeap, it still fails to find localhost Did you restart tomcat after changing the server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Re: RE: can anyone help yes, tomcat is running. tomcat is configured in server.xml to listen to localhost:8080 however it still not working even if I change the connectionport to say 8180 in server.xml Liakim This may be a stupid question but, are you sure Tomcat is running when you try to hit it? If it is then look in the server.xml file. Look at the HTTP connector to see what port Tomcat is configured to listen to. -Mark -Original Message- From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Tomcat Users List Subject: Re: can anyone help I am not sure if this is valid for windows but on linux/tomcat rpm's I found that 4.01 ist listening on port 8180. Give it a try Regards, Gerrit [EMAIL PROTECTED] wrote: Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi rect.html?http://www.talk21.com''http://www.talk21.com/redirect.html?http:/ /www.talk21.com'/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'htt p://www.talk21.com/a/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'htt p://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at http://www.talk21.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Extending Standard Context
I can suggest something for the second question: 1) Define a java bean (a class) that implements runnable inside WEB-INF\classes 2) Add this bean to every JSP Servlet that you want it to include so, the first will start() the process and also put the scope=application By that way I guess you aren't violating the Servlet Spec and I guess also is better than redefine your own context class. Don't you think ? Regards, Guido. -Original Message- From: Mark Shaw [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:38 PM To: '[EMAIL PROTECTED]' Subject: Extending Standard Context I have 2 questions, one regarding the general order of Context initialization and the other regarding the use of Contexts, any insight is appreciated. 1) If I define multiple contexts under the same Host will their constructors be called in the same order in which they're defined in server.xml (this looks to be the case, but I wasn't sure if it's guaranteed)? Is there a way to guarantee that their start() methods will be called in that same order (this isn't the case so I'm looking for a way to order them)? Here's my example server.xml: Context path=/1 docBase=. className=mypackage.MyContext/ Context path=/2 docBase=. className=mypackage.MyContext/ Context path=/3 docBase=. className=mypackage.MyContext/ 2) I'm using dummy contexts and mapping these to components within my application, such as a rule engine, daemon threads, etc. in order to use Tomcat's manager application to start, stop, and install these components which have their own thread associated with them. I've done this by extending StandardContext and spawning a new thread when MyContext is created and mapping the Context lifecycle commands to this thread. Apart from violating the Servlet spec by creating my own thread, is this a horrible idea? Does anyone have a better way of managing server components within Tomcat? Thanks for your help, -Mark Shaw [EMAIL PROTECTED]
RE: RE: RE: RE: can anyone help
look don't ping 127.0.0.1, open the browser and type: http://127.0.0.1:8080 or the port you specified, type exactly as it is: h t t p : / / 127.0.0.1 : port If you don't put the http it wont understand, that's normal in the browser when you the IP address instead if the qualified name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:41 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: RE: can anyone help I can ping localhost OK, I get a reply back if I I ping 127.0.0.1:8080 I get Unknown host 127.0.0.1:8080. I have aslo increased the mememory capacity is the startup.bat as you suggested. go to the ms dos prompt and type this: ping localhost and tell me what happens also type a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://127.0.0.1:8080'htt p://127.0.0.1:8080/a instead of localhost and tell me what happen Guido -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: can anyone help yeap, it still fails to find localhost Did you restart tomcat after changing the server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Re: RE: can anyone help yes, tomcat is running. tomcat is configured in server.xml to listen to localhost:8080 however it still not working even if I change the connectionport to say 8180 in server.xml Liakim This may be a stupid question but, are you sure Tomcat is running when you try to hit it? If it is then look in the server.xml file. Look at the HTTP connector to see what port Tomcat is configured to listen to. -Mark -Original Message- From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Tomcat Users List Subject: Re: can anyone help I am not sure if this is valid for windows but on linux/tomcat rpm's I found that 4.01 ist listening on port 8180. Give it a try Regards, Gerrit [EMAIL PROTECTED] wrote: Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com/redi'http://talk21.btopenworld.com/ redirect.html?http://www.talk21.com/redi/a rect.html?a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'''h ttp://www.talk21.com''/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi rect.html?http:/'http://www.talk21.com/redirect.html?http://a /www.talk21.com'/aa Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com''http://talk21.btopenworld.com/redi rect.html?http://www.talk21.com'/ahtt p://www.talk21.com/a/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com''http://talk21.btopenworld.com/redi rect.html?http://www.talk21.com'/ahtt p://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] talk21 your FREE portable and private address on the net at a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com'htt p://www.talk21.com/a -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL
RE: RE: RE: RE: RE: can anyone help
I'm almost leaving, send me all the logs files to see what could be, they are in CATALINA_HOME\logs I will try answer you by tomorrow Guido. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:51 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: RE: RE: can anyone help thats what I have been doing all along - it still says 'page cannot be displayed' look don't ping 127.0.0.1, open the browser and type: a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://127.0.0.1:8080'htt p://127.0.0.1:8080/a or the port you specified, type exactly as it is: h t t p : / / 127.0.0.1 : port If you don't put the http it wont understand, that's normal in the browser when you the IP address instead if the qualified name. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:41 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: RE: can anyone help I can ping localhost OK, I get a reply back if I I ping 127.0.0.1:8080 I get Unknown host 127.0.0.1:8080. I have aslo increased the mememory capacity is the startup.bat as you suggested. go to the ms dos prompt and type this: ping localhost and tell me what happens also type a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://127.0.0.1:8080''http://talk21.btopenworld.com/redi rect.html?http://127.0.0.1:8080'/ahtt p://127.0.0.1:8080/a instead of localhost and tell me what happen Guido -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 4:18 PM To: [EMAIL PROTECTED] Subject: Re: RE: RE: can anyone help yeap, it still fails to find localhost Did you restart tomcat after changing the server.xml? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: Re: RE: can anyone help yes, tomcat is running. tomcat is configured in server.xml to listen to localhost:8080 however it still not working even if I change the connectionport to say 8180 in server.xml Liakim This may be a stupid question but, are you sure Tomcat is running when you try to hit it? If it is then look in the server.xml file. Look at the HTTP connector to see what port Tomcat is configured to listen to. -Mark -Original Message- From: Gerrit Kuilder [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 9:57 AM To: Tomcat Users List Subject: Re: can anyone help I am not sure if this is valid for windows but on linux/tomcat rpm's I found that 4.01 ist listening on port 8180. Give it a try Regards, Gerrit [EMAIL PROTECTED] wrote: Hi everyone, Can anyone help with a problem I am a having wtih starting tomcat. I have only started to learn java but I have ran into a few problems getting started. I am running java on windows 98 on a laptop that also has PWS installed. I have edited the autoexec.bat to include these two lines: set JAVA_HOME=C:\jdk1.3.1_01 set CATALINA_HOME=C:\Program Files\Apache Tomcat 4.0 however when I browse to localhost:8080 the page cannot be displayed and an error file is not been generated in the log directory. does anyone know how to fix this? many thanks Liakim talk21 your FREE portable and private address on the net at a Target='_new' Href='a Target='_new' Href='a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://talk21.btopenworld'http://talk21.btopenworld.com/r edirect.html?http://talk21.btopenworld/a com/redirect.html?a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi ''http://www.talk21.com/redi'/aa Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/'http://talk21.btopenworld.com//a redirect.html?a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi 'http://www.talk21.com/redi/a/a rect.html?a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.comhttp://talk21.btopenworld.com/re direct.html?http://www.talk21.com'''/ah ttp://www.talk21.com''/aa Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld. com/redirect.html?http://www.talk21.com/redi'http://talk21.btopenworld.com/ redirect.html?http://www.talk21.com/redi/a rect.html?http:/'a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://www.talk21.com/redi rect.html?http:/'http://www.talk21.com/redirect.html?http://a/a /www.talk21.com'/aa Target='_new' Href='a Target='_new' Href='a Target='_new' Href='http://talk21.btopenworld.com/redirect.html?http://talk21.btopenworld.
RE: tomcat servlet output
if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC for mySQL
yes, check the postgreSQL installation inside /var/lib/pgsql or /user/lib/pgsql you will see two jar files, get the one that finishs with *2.jar, is the JDBC Version 2.0 for postgreSQL and read the postgreSQL specification for that. Guido. -Original Message- From: Simon [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 2:44 PM To: Tomcat Users List Subject: JDBC for mySQL Sorry, this goes a little out of topic. Are there JDBC driver for MySQL and postgres? Any these drivers work with tomcat? Simon. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: SSL
You don't have to be that crude, remember everybody here were stupid at the very beginning, including myself, the rigth answer is to read the SSL how-to inside the tomcat documentation, it is only few pages and is very easy to understand, I recommend you to read the hold manual, cause you need to learn first about connectors, tags/tags inside xml files and so on. Regards, Guido. -Original Message- From: Lai Kok Cheong [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 5:15 AM To: Tomcat Users List Subject: RE: SSL There are many users in the list keep bombarding the mailing list w/o properly doing homework first please do RTFM first ! -Original Message- From: Law Kim Soon [SMTP:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 8:21 AM To: [EMAIL PROTECTED] Subject: SSL I'm trying to implement SSL on win98 for my project and hope to get some useful links on how to create a certificate from this mailing list.Any recommendation? Thanks -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: tomcat servlet output
check inside server.xml, it is one logger, duplicate it, put one to a file and a second to a terminal. -Original Message- From: Marcelo Demestri [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 2:25 PM To: Tomcat Users List Subject: Re: tomcat servlet output But if I want to write in a log file, how I do it? I need to modify server.xml or web.xml? Which lines I must append to this configuration files? Thanks in advance and HAPPY NEW YEAR TOO !!! Marcelo - Original Message - From: Guido Medina [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Wednesday, January 02, 2002 5:07 AM Subject: RE: tomcat servlet output if you are working in linux try to send the log file to any terminal, for example /dev/tty9 and after you'll see all the System.out.println pressing Alt+F9, any linux person knows that, use the terminals for logs my friend. Regards and happy new year, Guido. -Original Message- From: Pae Choi [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 01, 2002 12:07 PM To: Tomcat Users List Subject: Re: tomcat servlet output That will look ugly even though it's for the test purpose. Try use the log file. You will more than likely need them in the production environment unless that is not your preference and no necessary. Pae At 05:13 PM 12/31/2001 -0800, you wrote: My servlets in Tomcat works just fine, but I was wondering where does the 'System.out.println(bla bla...)' goes when the servelet is executed. I would like to use this to debug my servlet. thanks, Sanjeev In my case (Win 2K), System.out.println goes to the Catalina console window that's spawned when Tomcat is started. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Advanced Java Developer Linux Administrator Available...
Title: Advanced Java Developer Linux Administrator Available... Hi, I have been for a while answering/asking questions in this list, the subject of this mail is not technical, is personal-professional, I'm living in Dominican Republic, I am a litle up set about his place, Java here is like the water in the Sahara, the same as Linux, I attached my Curriculum Vitae in this Email, any interesting offer ?, Don't tell me to try inside www.deja.com, I already did it. Thanks a lot for your time answers, Guido. Guido.doc Description: MS-Word document -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Realm not working with NT service
copy the jsse 1.0.2 jar files inside C:\Program Files\JavaSoft\JRE\lib\Ext that's it... -Original Message- From: gman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, January 02, 2002 1:16 PM To: [EMAIL PROTECTED] Subject: JDBC Realm not working with NT service hello, my tomcat 3.3 application works fine as a stand-alone application using JDBC Realm authentication. When i run it as an NT service using the supplied jk_nt_service tool.. the authentication fails with the message below. For some reason it is not sending the user to the database, although it does correctly get the user name in the error message (not last line below). Anyone else have this problem? thanks Gareth = 2002-01-02 11:28:56 - JDBCRealm: There was an SQLException while in checkConnection: {0} - java.sql.SQLException: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user '\'. at sun.jdbc.odbc.JdbcOdbc.createSQLException(JdbcOdbc.java:6031) at sun.jdbc.odbc.JdbcOdbc.standardError(JdbcOdbc.java:6188) at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(JdbcOdbc.java:2458) at sun.jdbc.odbc.JdbcOdbcConnection.initialize(JdbcOdbcConnection.java:320) at sun.jdbc.odbc.JdbcOdbcDriver.connect(JdbcOdbcDriver.java:163) at java.sql.DriverManager.getConnection(DriverManager.java:517) at java.sql.DriverManager.getConnection(DriverManager.java:199) at org.apache.tomcat.modules.aaa.JDBCRealm.checkConnection(Unknown Source) at org.apache.tomcat.modules.aaa.JDBCRealm.getCredentials(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.checkPassword(Unknown Source) at org.apache.tomcat.modules.aaa.RealmBase.authenticate(Unknown Source) at org.apache.tomcat.core.Request.getRemoteUser(Unknown Source) at org.apache.tomcat.modules.aaa.AccessInterceptor.authorize(Unknown Source) at org.apache.tomcat.core.ContextManager.internalService(Unknown Source) at org.apache.tomcat.core.ContextManager.service(Unknown Source) at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source) at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source) at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source) at java.lang.Thread.run(Thread.java:484) 2002-01-02 11:28:56 - JDBCRealm: Authentication unsuccessful for user lloydg __ Do You Yahoo!? Send your FREE holiday greetings online! http://greetings.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Win 2000 Pro Service...
I had JDK 1.3.1_01 and the service works fine, now I upgraded it to JDK 1.3.1_02 and it didn't, the same with JDK 1.4 Beta 3, any help ?
Win 2K Professional, Tomcat 4.0.1 Service...
Hi, I had JDK 1.3.1_01 and the Tomcat 4.0.1 service worked fine on Win2k Pro, now I upgraded it to JDK 1.3.1_02 and it didn't, the same with JDK 1.4b3, any help ? I heard something about the registers but I erased that answer, someone can help me please ? Thanks in advance, Guido.
RE: Does security realms encrypt the passwords?
The JDBCRealm only compares password but you can specify in the web.xml the algorithm you used in your table's column's passwords, it must be any algorithm that extends java.security.something, I don't remember very well, so, the answer is that it really encrypts. Guido. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 26, 2001 5:22 PM To: 'Tomcat Users List' Subject: RE: Does security realms encrypt the passwords? I'm using JDBC realms with Tomcat4.0 with a HTML form. My question is, does the password get sent over the internet in plain text format or is it hashed/encrypted/digested in some way? A good idea would be to digest it together with a random variable and the session Id using Md5 for example. Otherwise the password will be sent over the internet in plain text format for any hacker to grab it... The plain ole JDBCRealm does no encryption. You'll have to extend JDBCRealm to do any encryption. JDBCRealm itself is only the server side code it does not have anything to do with the way the text is sent in the request. --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Does security realms encrypt the passwords?
You are rigth. only using SSL it can be encrypted and Tomcat is quite simple for that use. I am sorry, I answer the wrong subject. Guido. -Original Message- From: Michael Wentzel [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 27, 2001 8:22 AM To: 'Tomcat Users List' Subject: RE: Does security realms encrypt the passwords? The JDBCRealm only compares password but you can specify in the web.xml the algorithm you used in your table's column's passwords, it must be any algorithm that extends java.security.something, I don't remember very well, so, the answer is that it really encrypts. I think what he's really asking is if the password gets encrypted during transmission not during the storage and comparator. This does not happen in the Realm api since there is no mechanism(to the best of my knowledge) except secure sockets, to protect text passed over the socket connect from the browser to the server. Once the request is received by the server encryption/decryption is easy but since browsers have no way of encrypting the data(you could write something in javascript but it wouldn't be all that secure since javascript is not a precompiled language) I'm willing to bet that the actual text sent in the request(over wire) cannot be encrypt. If anyone does figure out a way to do this it would be interesting to know (that's a hint to post it here...;). --- Michael Wentzel Software Developer Software As We Think - http://www.aswethink.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Number of rows in a resultset?
No way, at least in jdbc 2.0, try the jdbc ext to if you can...normally is counting... -Original Message- From: Salvatore Balzano [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 26, 2001 1:46 PM To: [EMAIL PROTECTED] Subject: Number of rows in a resultset? Hi, how can I know how many rows are in a jdbc resultset? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Load Balance problem
You have to use two connectors firstable, the first to shutdown the tomcat (ajpv12) and the second ajpv13 and both in different ports, the fact you use two ports doesnt mean that every port is for a host, it is to make some balancing, you have to use JkMount in httpd.conf for every host but for only one connector: for example: vitrualhost1 JkMount /*.jsp ajp13://virtualhost1 /virtualhost1 virtualhost2 JkMount /*.jsp ajp13://virtualhost2 /virtualhost2 and in server.xml implement also the two connectors (ajp12 y 13) and the virtualhost directive, that's it, I have done it many times with every new version on Tomcat 3.a.b Guido. -Original Message- From: Jerry Chen [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 3:37 PM To: [EMAIL PROTECTED] Subject: Load Balance problem Hi , Folks I've some question about the mod_jk load balance . I'hv 3 linux box right now , the 1st is running apache 1.3.12 , others are running tomcat 3.2.1, I try to config the tomcat load balance with those 2 tomcat box . But I found all the request from the apache box is redirect to the first tomcat box that I define in the works.properties(tomcat1) , if I just shutdown that tomcat box , I got error 500 Internal Server error from Apache . That seems the load balance doesn't work , please help me Thanks alot This is part of my httpd.conf = LoadModule jk_module libexec/mod_jk.so JkWorkersFile /etc/httpd/conf/workers.properties JkLogFile /var/log/httpd/mod_jk.log JkLogLevel error JkMount /*.jsp loadbalancer == This is my works.properties # The workers that your plugins should create and work with # worker.list=loadbalancer # #-- DEFAULT ajp12 WORKER DEFINITION -- #- #-- DEFAULT ajp13 WORKER DEFINITION -- #- # # # Defining a worker named ajp13 and of type ajp13 # Note that the name and the type do not have to match. # worker.tomcat1.port=8009 worker.tomcat1.host=tomsrv1 worker.tomcat1.type=ajp13 worker.tomcat1.lbfactor=1 worker.tomcat1.cachesize=10 worker.tomcat2.prot=8009 worker.tomcat2.host=tomsrv2 worker.tomcat2.type=ajp13 worker.tomcat2.lbfactor=1 worker.tomcat2.cachesize=10 # #-- DEFAULT LOAD BALANCER WORKER DEFINITION -- #- # # # The loadbalancer (type lb) workers perform wighted round-robin # load balancing with sticky sessions. # Note: # If a worker dies, the load balancer will check its state # once in a while. Until then all work is redirected to peer # workers. worker.loadbalancer.type=lb worker.loadbalancer.balanced_workers=tomcat1, tomcat2 # -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE:
put all the variables here: /etc/profile, and if you are using the startup script in linux (/etc/rc.d/init.d/tomcat) add . /etc/profile also there. That's it. I have done it three times on three linux servers. -Original Message- From: Ladjicke Diouf [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 22, 2001 8:32 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Hi Unix gurus, I'm trying to install tomcat but I'm having a very simple problem. I can seem to be able to set the environment variable JAVA_HOME. I used set end setenv but it doesn't do it for me. Am I going crazy? From: rakesh [EMAIL PROTECTED] Reply-To: Rakesh Narang [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Tomcat with apache for virtual hosting Date: Sun, 23 Dec 2001 06:00:34 +0530 Hi I have recently installed the tomcat 4.0.1 with apache but i am facing the problem while using the virtual hosting with tomcat can any one help me that how can i host multiple sites on tomcat Thanks Rakesh _ Chat with friends online, try MSN Messenger: http://messenger.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: What does it mean - Name on certificate does not match name of the site
put the qualified name of your machine: yourmachine.yourdomain.com, if you are only trying with localhost put localhost -Original Message- From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]] Sent: Friday, December 21, 2001 1:55 PM To: [EMAIL PROTECTED] Subject: What does it mean - Name on certificate does not match name of the site Greetings! Last post for a while - I promise! G What does it mean - Name on certificate does not match name of the site? I did the self-signed certificate thing for SSL. There are three messages that appear on the pop-up dialog when you access the secure site. The first says The certificate ... non-trusted company (in essence). It is a warning. The second message says ... date is valid. It is OK. The third warning is the one above. I know and expect the first warning - unless someone like Verisign signs the certificate, it is considered untrusted. Self-signed certificates will always give this warning. No problem. However, when you create a self-signed cert, I cannot find a place to put the site - so I cannot see how this third warning can be prevented. The questions are: Your name (I assume that's my personal name) Your company org unit (what the heck is this? I put my domain name here) Your company (obvious) Your city (obvious) Your province/state (obvious) Your country code (two letters) Besides the passwords, I cannot see what would signify site to the certificate. Assistance? Feel free to point me to something on Sun or Verisign's site. I didn't find anything on a cursory look-over, but I'd be glad to know of an M to RTF. Cheers, and thanks in advance. -Richard -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
The last thing you can do is to stop tomcat, erase everything inside TOMCAT_HOME/work and start it again. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:00 PM To: 'Tomcat Users List' Subject: Re: Clear Cache In IE5 Go to server.xml and add this property to your context reloadable=true .../ Actually, I've already got that in place. Here's what I have in the server.xml file Context path= docBase=ERPS debug=0 reloadable=true/ but TomCat still gives me the old page. Maybe someone on the list can tell me why. Anyway, thanks all the same. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 12:19 AM To: Tomcat Users List Subject: Re: Clear Cache In IE5 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Problems executing Conn Pool example that comes with JSQLConnect
put this file also inside TOMCAT_HOME/common/lib or /lib -Original Message- From: Rudi Doku [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 8:28 PM To: [EMAIL PROTECTED] Subject: Problems executing Conn Pool example that comes with JSQLConnect Greetings, I'm currently evaluating the JSQLConnect Driver. I downloaded jndi1_2_1.zip from the sun site, followed the instructions and installed it in the following directory - C:\jdk1.3\jre\lib\ext\jndi.jar; I also added this path to my classpath. My problem is that I get the following exception when I run ExampleConnectionPool.java from the command line. Error:init JNDI javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java. lang.ClassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Error:Register Datasources java.lang.NullPointerException JNDI Error:javax.naming.NoInitialContextException: Cannot instantiate class: com.sun.jndi.fscontext.RefFSContextFactory [Root exception is java.lang.C lassNotFoundException: com.sun.jndi.fscontext.RefFSContextFactory] Any feedback will be very much appreciated. Cheers, Rudi _ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AW: Classloader question
a piece of advise is to unzip it and create a jar file with the unzipped files...it is easy with the jar tool. -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:31 PM To: Tomcat Users List Cc: Lauer, Oliver Subject: Re: AW: Classloader question On Wed, 19 Dec 2001, David Morsberger wrote: Date: Wed, 19 Dec 2001 21:19:16 -0500 From: David Morsberger [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED], Lauer, Oliver [EMAIL PROTECTED] Subject: Re: AW: Classloader question I ran into a similar problem today that I can not explain while upgrading to tomcat 3.3. The JSP we created accesses a bean that uses the oracle 1.2 JDBC driver, classes12.zip. I placed the Oracle classes12.zip file in the myapp/WEB-INF/lib directory and then I got the NoClassDef exception. This is the expected behavior. I unjar'd the .zip file in the myapp/WEB-INF/lib directory and still got the NoClassDef exception. So is this. I unjar'd the .zip file in the myapp/WEB-INF/classes directory and it worked. And this. As an alternative, if you had put the JDBC driver in a JAR file in the /WEB-INF/lib directory, it also would have worked. See the Servlet Specification for more details about where web applications load classes from (unpacked classes under /WEB-INF/classes or ***JAR FILES*** under /WEB-INF/lib). Where should the .zip file be placed for inclusion in a bean? I recycled Tomcat after every attempt. Nowhere. Servlet containers look for JAR files, not ZIP files. Why Oracle persists in shipping their JDBC drivers in ZIP format is a mystery to me -- but the complaints should go to them. Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: AW: Classloader question
the manifest.dtd can be generated with the jar tool, don't invent, just follow the standards...unzip, jar -c somedir somefile.jar That's it -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 6:09 AM To: 'Tomcat Users List' Subject: RE: AW: Classloader question Servlet containers look for JAR files, not ZIP files. Why Oracle persists in shipping their JDBC drivers in ZIP format is a mystery to me -- but the complaints should go to them. As I understand it, .zip files can be renamed to .jar files without a problem. The manifesto is missing, but it works anyway. Anyone ever tried? J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
Your welcome, but remember the three things I told you to do. It couldn't be posible without one of them Guido. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 4:39 PM To: Tomcat Users List Subject: Re: Clear Cache In IE5 The last thing you can do is to stop tomcat, erase everything inside TOMCAT_HOME/work and start it again. Thank you so much!!! It works now. This problem has bugging me for a very long time. Thanks a lot again ;-). -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:00 PM To: 'Tomcat Users List' Subject: Re: Clear Cache In IE5 Go to server.xml and add this property to your context reloadable=true .../ Actually, I've already got that in place. Here's what I have in the server.xml file Context path= docBase=ERPS debug=0 reloadable=true/ but TomCat still gives me the old page. Maybe someone on the list can tell me why. Anyway, thanks all the same. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 12:19 AM To: Tomcat Users List Subject: Re: Clear Cache In IE5 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Can anyone give me an answer?
Yes, java.io.File, java.io.FileReader, read a litle bit about and that's it, after set up in your servlet (or jsp) the context type eg: context-type/image-gif, and that's it, noone of course will write for you that servlet but that's the way it could be done. Guido. -Original Message- From: Ed Turner [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 10:09 AM To: [EMAIL PROTECTED] Subject: Can anyone give me an answer? I am running a web application under Tomcat 3.2.3 and would like to access existing jpeg files from the server's local disk. Is there a way to get to these files from my JSP without putting them under the web app directory?? Any hints? Ed -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Clear Cache In IE5
Go to server.xml and add this property to your context reloadable=true .../ -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 20, 2001 12:19 AM To: Tomcat Users List Subject: Re: Clear Cache In IE5 1)Tools/Internet Options/Temporary Internet Files/Settings/Every Visit to the Page. 2)Tools/Internet Options/Temporary Internet Files/Delete Files/All offline content. And after Refresh for every page. Do it, I had that problem before and more if you use any caching server like squid, etc. Guido Thanks for that. But my problem turns out that TomCat gives the older version of my webapp. Actually, I replaced a new jsp file in my webapp with exactly the same name as the old jsp file. However, TomCat4.0 still gives me the older version. This is really annoying, why TomCat does something like that? I thought IE was the culprit but it's not. I'd really appreciate it, if someone can help me with this. Thanks a lot. -Original Message- From: Yiu Wing [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 19, 2001 5:07 PM To: [EMAIL PROTECTED] Subject: Clear Cache In IE5 Hello all, This is a little bit off topic. Can you tell me how can I clear the cache in IE so that I can see the change I've in made in my webapp after invoking TomCat4.0 again? Thanks in advance. _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Contexts with relative and absolute DocBase?
Remember that TC is made in Java, the character \ is illegal, to do it you have to put C:\\Temp, the same as String x = \n; Guido. -Original Message- From: Dieter Kaltenbach [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:33 AM To: [EMAIL PROTECTED] Subject: Contexts with relative and absolute DocBase? Hi, how can I use relative and absolute docBase-Context-settings for Contexts of the same Host? Something like this doesn't work. Host name=localhost appBase=webapps debug=0 Context docBase=ROOT path=/ Context docBase=examples path=/examples/ Context docBase=tomcat-docs path=/tomcat-docs/ Context docBase=webdav path=/webdav/ Context docBase=C:\tmp path=/mywebapp reloadable=true/ /Host I don't want to create another host nor put my webapps to the tomcat webapps directory but to my own directory tree. Thanks, Dieter. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Contexts with relative and absolute DocBase?
Yes, is true, it is supported in java.io.File class, bur remember, the other will be faster for the platform, at the end, the runtime will convert C:/Temp to C:\Temp, it is the platform specification :-), I am a Linux's FAN, but it is not because of Linux, my last instalation: Red Hat Linux 7.1 Professional Server :-) -Original Message- From: Justin Rowles [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 9:04 AM To: 'Tomcat Users List' Subject: RE: Contexts with relative and absolute DocBase? Remember that TC is made in Java, the character \ is illegal, to do it you have to put C:\\Temp, the same as String x = \n; Better still, use Unix notation: C:/Temp J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Configuring Multiple Tomcat JVMs with Apache - Load Balancing
Sure, normally the load balancing is done with two connectors, but you charge more the ajp13, the workers.properties that comes with the installation is a good one, the rest is in the Apache Web Server also to specify in workers.properties the paths, separators, child per connector and so on, it is easy to do it. Guido -Original Message- From: Tom Drake [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:14 AM To: Tomcat Users List Subject: Re: Configuring Multiple Tomcat JVMs with Apache - Load Balancing This might be more helpful. http://jakarta.apache.org/tomcat/tomcat-3.3-doc/mod_jk-howto.html Tom - Original Message - From: Hemant Singh [EMAIL PROTECTED] To: Tomcat Users List [EMAIL PROTECTED]; Tom Drake [EMAIL PROTECTED] Sent: Monday, December 17, 2001 7:55 PM Subject: Re: Configuring Multiple Tomcat JVMs with Apache - Load Balancing | Hi Tom | | in my application i want two servers(tomcat 3.2.3) residing on two different | machines to cater to requests coming another different machinewhich keeps | forwarding the requests to either of the servers.Pls guide how can i achieve | the same.I have added two workers in in my workers.properties on the | dispatcher machine , but it keeps sending the request to only the first | machine. | | --Hemant | | - Original Message - | From: Tom Drake [EMAIL PROTECTED] | To: Tomcat Users List [EMAIL PROTECTED] | Sent: Monday, December 17, 2001 9:17 PM | Subject: Re: Configuring Multiple Tomcat JVMs with Apache - Load Balancing | | | When my work is done, Session Affinity will not be required in order to | acheive load balancing. However, we should still want to use session | affinity in our load balancing solution(s) for the simple reason that | it will perform better. | | However, the session affinity between Apache and Tomcat 3 locks | a user (based on her JSESSIONID) to a single Tomcat instance. Once | the distributed session management solution is in place, Apache should | 'prefer' NOT 'force' tomcat instance routing. This gives us a real | fail-over | story. Administrators will be able to bring down Tomcat instances without | blowing away 'logged in' users. | | Tom | | - Original Message - | From: GOMEZ Henri [EMAIL PROTECTED] | To: Tomcat Developers List [EMAIL PROTECTED] | Cc: Tomcat Users List (E-Mail) [EMAIL PROTECTED] | Sent: Monday, December 17, 2001 12:54 AM | Subject: RE: Configuring Multiple Tomcat JVMs with Apache - Load Balancing | | | | there hasn't been done anything on that topic yet ? What's | | the status of | | loadbalacing, either mod_jk or mod_webapp ? | | Is that political due to if loadbalacing is working properly | | there won't be | | any reason to take (buy) anything else than TC ? | | | | State of the art is that today only mod_jk could | | handle load-balancing and only when connected | | to Tomcat 3.2.x or 3.3. | | | | Tomcat 4.0.x support ajp13 protocol, used in mod_jk | | but still miss a subtil feature (jvmroute) to be | | able to keep the route to the good JVM in | | session mode (SessionAfinity). | | | | But the current refactory of ajp protocol, | | under ajp14 in jakarta-tomcat-connectors, will | | fix somedays thanks to Costin and Kevin works :))) | | | | -- | | To unsubscribe: mailto:[EMAIL PROTECTED] | | For additional commands: mailto:[EMAIL PROTECTED] | | Troubles with the list: mailto:[EMAIL PROTECTED] | | | | | | | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | | -- | To unsubscribe: mailto:[EMAIL PROTECTED] | For additional commands: mailto:[EMAIL PROTECTED] | Troubles with the list: mailto:[EMAIL PROTECTED] | | | -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
TOMCAT_HOME/lib -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:30 AM To: '[EMAIL PROTECTED]' Subject: JDBC Driver for MS SQL Server Hi, I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed it. But I got error: Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where to put the three jar files? Also, are there other drivers available and good? I am using jdbc-odbc to connect SQL Server now. My application freezes very oftenly. Any sugguestions? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
You can find out the best driver but the location is $TOMCAT_HOME/lib -Original Message- From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:35 AM To: Tomcat Users List Subject: RE: JDBC Driver for MS SQL Server My suggestion: DUMP the ms driver!!! Another good one is from www.j-netdirect.com They have a complete JDBC 2.0 complaint jdbc-odbc driver. This will allow you to work with SQL Server or access from linux, solaris or windows. Driver is called JDataConnect. We use that here. Very flexible, minor limitations (on field size). And no errors so far. Chris -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:30 AM To: '[EMAIL PROTECTED]' Subject: JDBC Driver for MS SQL Server Hi, I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed it. But I got error: Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where to put the three jar files? Also, are there other drivers available and good? I am using jdbc-odbc to connect SQL Server now. My application freezes very oftenly. Any sugguestions? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Form based Authentication / j_security_check not found
Wait, go back to the beginning and try very slow, I passed the same, the problem with servlet is only in the web.xml file in your app, it is transparent to Apache Web server, look at the standard examples that comes with the Tomcat installation, first try as exercise to install the tomcat from the beginning and run the standard applications, when you get it, try applying changes and changes, DO NOT JUMP TOO HIGH FROM THE BEGINNING, my prefered app server is the tomcat but in the begining is a headache, I can tell. You are right, if you want to learn you have to teach you yourself, start slow, with the standard and after apply few changes and so on. Regards, Guido. P.S: The final exercise for you is to configure it with Virtual Host Servlet mapping. -Original Message- From: EDV Systembetrieb [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:37 AM To: [EMAIL PROTECTED] Subject: Form based Authentication / j_security_check not found Hi everybody again. I'm getting mad on configuring tomcat for my application. My be I do not know enough about java, but I have to Learn it by doing, so please be friendly. I'm using form-based authentication and everything works until I submit my login-ID If I put LoginForm.html in the servlet-dir, it pops-up, but after entering my login-infos I get The requested URL /DSCservlet/j_security_check was not found on this server. I know, LoginForm.html should be outside the protected area. But in my special example, something seems wrong with alias in mod_jk.conf and/or some path in my config-files. I searched the mailing-list, but I do not understand the stuff. Please help before I'm getting mad Thanks Sabine my apps-DSC.xml: webapps Context path=/DSCservlet docBase=/webapps/SSL_apps/dsc/servlet debug=0 crossContext=false reloadable=true /Context /webapps my mod_jk.conf ... Alias /DSCservlet /webapps/SSL_apps/dsc/servlet Directory /webapps/SSL_apps/dsc/servlet Options Indexes FollowSymLinks /Directory JkMount /DSCservlet/servlet/* ajp13 JkMount /DSCservlet/*.jsp ajp13 Location /DSCservlet/WEB-INF/ AllowOverride None deny from all /Location Location /DSCservlet/META-INF/ AllowOverride None deny from all /Location /webapps/SSL_apps is HTTPS-protected by apache and document-root /webapps/SSL_apps/dsc/upload.htm is my page for selecting files for upload. After that, a login-screen should appear (it does). This page calls a servlet with form action=/DSCservlet/servlet/FileUpload.UploadServlet enctype=MULTIPART/FORM-DATA method=post name =EnterFiles Also in this directory dsc are the following files ResultPageFooter.htm ResultPageHeader.htm servlet servlet/LoginError.html servlet/LoginForm.html servlet/META-INF servlet/META-INF/MANIFEST.MF servlet/WEB-INF servlet/WEB-INF/web.xml servlet/WEB-INF/classes servlet/WEB-INF/classes/FileUpload servlet/WEB-INF/classes/FileUpload/FileUploader.class servlet/WEB-INF/classes/FileUpload/FileUploadException.class servlet/WEB-INF/classes/FileUpload/Message.class servlet/WEB-INF/classes/FileUpload/UploadServlet.class servlet/WEB-INF/classes/properties servlet/WEB-INF/classes/properties/FileUpload.properties servlet/WEB-INF/classes/properties/FileUploadMessages.properties servlet/WEB-INF/classes/properties/FileUploadMessages_en.properties my web.xml: ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE web-app PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.2//EN http://java.sun.com/j2ee/dtds/web-app_2_2.dtd; web-app servlet servlet-nameUploadServlet/servlet-name servlet-classFileUpload.UploadServlet/servlet-class /servlet security-constraint web-resource-collection web-resource-nameDSC/web-resource-name url-pattern/*/url-pattern http-methodPOST/http-method http-methodGET/http-method /web-resource-collection auth-constraint role-nameer_kunden/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint login-config auth-methodFORM/auth-method realm-nameEingangsregistratur DSC/realm-name form-login-config form-login-page/LoginForm.html/form-login-page form-error-page/LoginError.html/form-error-page /form-login-config /login-config /web-app -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
Try now checking the name of the driver, very detail checking, the case of the letters, the dots and son for example, maybe instead of com.microsoft.jdbc.sqlserver.SQLServerDriver is com.microsoft.jdbc.sqlserver.SQLServer.Driver, try navigating the jar files of the driver, and check the folders, you have to see com/microsoft/jdbc/sqlserver...etc etc, check every detail, if you don't find any error try e.printStackTrace() to see what is happenning instead of e.getMessage(), the first is more detail, check the user, normally could be admin and empty passwd, etc etc, that's all I can tell you now. Your welcome (you said thank you), Guido. -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:12 PM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server After I put the three jar files in TOMCAT_HOME/lib. The classes were found. But I got new error: No suitable driver . What is the TCP/IP port for SQL Server? Here is my program: String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver; String m_Connector = jdbc:microsoft.sqlserver://prodserver:1433; String m_Username = ; String m_Password = ; Connection con = null; try{ Class.forName(m_Class); con = DriverManager.getConnection(m_Connector, m_Username, m_Password); }catch(ClassNotFoundException e){ out.println(class not found: + e.getMessage()); }catch(SQLException e){ out.println(e.getMessage()); }catch(Exception e){ out.println(e.getMessage()); } thanks for your help Jack -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:31 AM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server TOMCAT_HOME/lib -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:30 AM To: '[EMAIL PROTECTED]' Subject: JDBC Driver for MS SQL Server Hi, I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed it. But I got error: Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where to put the three jar files? Also, are there other drivers available and good? I am using jdbc-odbc to connect SQL Server now. My application freezes very oftenly. Any sugguestions? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
Also try another driver, it could be true, microsoft's programmer and java are not good friends, maybe the driver is bad done. -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:12 PM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server After I put the three jar files in TOMCAT_HOME/lib. The classes were found. But I got new error: No suitable driver . What is the TCP/IP port for SQL Server? Here is my program: String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver; String m_Connector = jdbc:microsoft.sqlserver://prodserver:1433; String m_Username = ; String m_Password = ; Connection con = null; try{ Class.forName(m_Class); con = DriverManager.getConnection(m_Connector, m_Username, m_Password); }catch(ClassNotFoundException e){ out.println(class not found: + e.getMessage()); }catch(SQLException e){ out.println(e.getMessage()); }catch(Exception e){ out.println(e.getMessage()); } thanks for your help Jack -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:31 AM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server TOMCAT_HOME/lib -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:30 AM To: '[EMAIL PROTECTED]' Subject: JDBC Driver for MS SQL Server Hi, I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed it. But I got error: Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where to put the three jar files? Also, are there other drivers available and good? I am using jdbc-odbc to connect SQL Server now. My application freezes very oftenly. Any sugguestions? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: JDBC Driver for MS SQL Server
http://java.sun.com/docs/books/tutorial/jdbc/index.html You are too far from our problems, read the tutorial there, it is quite simple, short and useful. Greetings, Guido. -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 4:48 PM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server Hi, The default port is 1433. Now I got the connection to SQL Server. However, there are several databases in SQL Server. prodserver is one of the databases. When I query a table, it says it is invalid object name. How to access a table in a database? Thanks Jack -Original Message- From: Bongiorno.Christian [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 12:44 PM To: Tomcat Users List Subject: RE: JDBC Driver for MS SQL Server Hmmm, this might be getting off topic, but, yes, they have gone back and forth between named pipes and TCP/IP (with 2k) as default. Do you have a firewall in the way? Say your servlet is on the DMZ and the dbase is on the private (I hope!) -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:53 AM To: Tomcat Users List Subject: RE: JDBC Driver for MS SQL Server Certain versions of SQL Server (6.5 I know, others maybe) don't enable TCP/IP access by default. Contact your DBA for more assistance. Randy -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 11:24 AM To: 'Tomcat Users List' Subject: RE: JDBC Driver for MS SQL Server Hi, Now, After I put three jar files in tomcat/lib, program is able to locate the classes. But I have another error: [Microsoft][SQLServer JDBC Driver]Error establishing socket. What is it? Here is the progrm: String m_Class = com.microsoft.jdbc.sqlserver.SQLServerDriver; String m_Connector = jdbc:microsoft:sqlserver://prodserver:1433; String m_Username = ; String m_Password = ; Connection con = null; try{ Class.forName(m_Class); con = DriverManager.getConnection(m_Connector, m_Username, m_Password); }catch(ClassNotFoundException e){ out.println(class not found: + e.getMessage()); }catch(SQLException e){ out.println(e.getMessage()); }catch(Exception e){ out.println(e.getMessage()); } Thanks, Jack -Original Message- From: Jack Li [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 10:30 AM To: '[EMAIL PROTECTED]' Subject: JDBC Driver for MS SQL Server Hi, I am using Tomcat 3.2.1. I downloaded the JDBC Driver for MS and Installed it. But I got error: Unable to load class com.microsoft.jdbc.sqlserver.SQLServerDriver. Where to put the three jar files? Also, are there other drivers available and good? I am using jdbc-odbc to connect SQL Server now. My application freezes very oftenly. Any sugguestions? Thanks, Jack -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs
The normal server.xml contains a directive called host, just copy,paste and change the name parameter to the host name you want, eliminate all the context but the empty one (ROOT) and that's it, rename, let the standard for the standard examples and duplicate it for every host, after activate the warp connector, go to the Proxy how-to, be patient, is very difficult to migrate from 3.x to 4.x, but it is not imposible, is not even a big deal, the key is to read the hold manual, expending two days (6hrs X 2) and that's it. Regards, Guido. -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:02 PM To: Tomcat Users List Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs Larry, Perhaps if you provide your Tomcat 3.3 solution(s), we could see how they might apply to Tomcat 4? Whom would know Tomcat 4? --- Noel -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] Hi Noel, Unfortunately my knowledge of Tomcat 4.x internals is still fairly limited, so I can't be of much help at this point in time. My primary experience in this area was getting a suitable conf/auto/mod_jk generated by Tomcat 3.3 when using virtual hosts. Cheers, Larry -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 3:31 PM To: Tomcat Users List Subject: RE: PLEASE HELP: Apache+Tomcat - Virtual hosts + separate VMs Larry, The desired target is Tomcat 4.X. The revision of Apache is of less issue, so for the moment I can install whichever one is best able to provide a working solution. Right now, we're running Apache 1.3 and JServ with one JVM per virtual host. Each JVM runs under an appropriate UID for that virtual host. Our specific interest is to upgrade the web application environment while preserving the isolation between virtual hosts. --- Noel -Original Message- From: Larry Isaacs [mailto:[EMAIL PROTECTED]] It wouldn't hurt to mention which version of Apache and which version of Tomcat. Regrettably the time I have available to answer questsions (mostly 3.3 and 3.2.x related) is limited. I am usually forced to skip questions that don't bother to mention which verstions are in use. Cheers, Larry -Original Message- From: Noel J. Bergman [mailto:[EMAIL PROTECTED]] I am STILL trying to find out how to configure Apache+Tomcat so that EACH virtual host has ITS OWN JVM. This seems to be a fairly common question, but no one seems willing to actually answer it. Ideally we want some means that works well with the perchild module, so that not only is each virtual host assigned its own privileges under Apache, but each JVM is also restricted to the privileges available to that uid. Thanks! :-) --- Noel -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Stability of Tomcat 3.3 vs. 4.0
Load balancing can be simulate it with several warp connectors and virtual host, the load balancing is not more than a very good configured pooling connection, that's what is in 4.x -Original Message- From: Jeff Kilbride [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 18, 2001 5:13 PM To: Tomcat Users List Subject: Re: Stability of Tomcat 3.3 vs. 4.0 Unfortunately, Tomcat 4.x doesn't support load-balancing, yet -- even with mod_jk. So, if you need it, you should stick with 3.3. Thanks, --jeff - Original Message - From: Hunter Hillegas [EMAIL PROTECTED] To: Tomcat User List [EMAIL PROTECTED] Sent: Tuesday, December 18, 2001 10:31 AM Subject: Re: Stability of Tomcat 3.3 vs. 4.0 I would suggest Tomcat 4.0 because it is integrated into Jboss which gives you a MAJOR speed up between the servlet layer and the Jboss layer. Major speed up. From: Wilson, Wayne [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] Date: Tue, 18 Dec 2001 13:21:34 -0500 To: Tomcat Users List (E-mail) [EMAIL PROTECTED] Subject: Stability of Tomcat 3.3 vs. 4.0 Hi, Because of some deadlock bugs in Tomcat 3.2.3 that we are experiencing (891, 1006 1798), we are going to have to switch to either Tomcat 3.3 or 4.X. What do people think about the stability of each of these versions? We will be running this on W2K in conjunction with JBoss and because we need load balancing we will be using mod_jk. What do you think? --Wayne -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
Authentication questions...
Hi, I have been working with servlets jsp since one year maybe, and I have been used to kinds of authentication: 1) Through the web server; eg: Apache Web Server access files: .htaccess, .htpasswd. 2) A bean installed in any jsp or servlet with a session scope that forward to the authentication page if the session bean variable login is equal to null if not, go ahead: jsp:useBean scope=session name=client class=someClass/ %if client.login==null {% jsp:forwad page=authenticate.jsp/ %}% But as you already know and I consider, both method are not really good but it fixed my problems for a while, so, I heard about Realm and so on. May someone introduce me a litle bit more about authentication's methods ? Thanks in advanced for the answers, Guido.
RE: Ordering of parameters in HTTPRequest Object
Hi, In every servlet specification you know that you SHOULD NOT trust in the order that the elements were sentfrom form, but you can try with Request.getParameterValue(int param) with the integer instead the name of the parameter, get first the parameters count and after a cycle: for (int=0;icount;i++) and hope for the best, if it doesn't work, don't try another way, it is a warning for every web server it depends on the web client (IE or NetScape), the web client is the one that impose the order of the parameter, it is not a bug, try it and pray for the best. Guido -Original Message- From: Bob Byron [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 10:51 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: Ordering of parameters in HTTPRequest Object Sean, Did you find a solution to the parameter ordering issue of a form? I am interested in receiving the parameters in order. I want to make a generic servlet that emails forms to me and maintains the order of the fields on the form. Nothing is dependent, but aesthetically it works out better if I just use the order from the form. It seems a shame that the servlet API discards the data. (At least that is what I gathered from the previous thread.) Thank You, Bob Byron - Original Message - From: Sean Tiley [EMAIL PROTECTED] Problem is that the form fields are in a particular order on the form, but when I get the Parameters from the request object this field order is gone... - Follow-up Message - From: Sean Tiley [EMAIL PROTECTED] I will look into the getInputStream(). It seems reasonable, but then wont I have to pass this around with the request object? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Classloader question
Because WEB-INF/lib is for the specifique's application .jar files and WEB-INF/classes is for .class files, don't mix the concept, .jar files are treat as another kind of file system, that's why you put one in /lib and the second in /classes, and, for example if you want some driver for a database to be share through all the apps (JVMs) you put it inside TOMCAT_HOME/lib (if they are .jar) or in TOMCAT_HOME/classes (if they are .class), so, both directories have different purposes. I learned it with the experience and practice, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 1:57 PM To: 'Tomcat Users List' Subject: AW: Classloader question But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't understand that !? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 18:50 An: Tomcat Users List Betreff: Re: Classloader question On Mon, 17 Dec 2001, Heikki Doeleman wrote: Date: Mon, 17 Dec 2001 13:06:21 +0100 From: Heikki Doeleman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Classloader question Hi everyone, trying to make a web application work using Tomcat 4.0.1 I found the following behaviour, which I don't quite understand: my application uses a library called xhive.jar - putting xhive.jar in [catalina]/common/lib This works fine, as expected - putting it in [myapp]/WEB-INF/lib Causes a ClassDefNotFoundError. I don't know why this is so, it does not seem to conform to the description in class-loader-howto.html. However I did see someone saying that in that directory, only .class files are added to the classpath, not .jars (http://www.geocrawler.com/archives/3/193/2000/12/0/4841079/). - putting it in both those places Causes a ClassCastException ?? Something seems to go terribly wrong when the jar is placed in both those directories. Can anyone explain more about this? I'd like to know exactly how this works, especially I'd like to know why classes from a jar in my application's WEB-INF/lib apparently are not loaded. This has been discussed numerous times in the archives, but the short answer is this: it is fundamental to the way Java class loaders work. The key issues: * A class named a.b.c.Foo loaded from two different class loaders is ***not*** the same class, even if the bytecodes are identical. Trying to assign from one to the other will give you ClassCastException errors. * The new operator in Java tries to load the specified class from the same classloader that loaded the class containing this code. If the class of that name has already been loaded by the other classloader, you again get ClassNotFoundException errors. * Class loader hierarchies can delegate up but not down. Thus, it's also easy to have the new operator cause ClassNotFoundException errors, even though you know that the class is there. Moral of the story -- you are *always* best off having one and only one copy of a class visible to a web application. There's ways to deal with some of these issues, but they get pretty intricate. Thanks Heikki Doeleman Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately.
RE: Classloader question
Well, the most I can tell you about it is that check the following issues: 1) the import statement (import xxx.yyy.className) 2) check the rigth path inside the jar file. 3) check that /lib if you are using unix-based system is in lowercase and /WEB-INF in uppercase. 4) if you are using that class inside a jspBean tag remember to specify the class That's all I can tell about, try it and good luck, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:08 PM To: 'Tomcat Users List' Subject: AW: Classloader question Guido, I know that, that's what the classloader-how-to-do says, too, but in that case it was an application.jar that was put to web-inf and the classes weren't found either. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 19:03 An: 'Tomcat Users List' Betreff: RE: Classloader question Because WEB-INF/lib is for the specifique's application .jar files and WEB-INF/classes is for .class files, don't mix the concept, .jar files are treat as another kind of file system, that's why you put one in /lib and the second in /classes, and, for example if you want some driver for a database to be share through all the apps (JVMs) you put it inside TOMCAT_HOME/lib (if they are .jar) or in TOMCAT_HOME/classes (if they are .class), so, both directories have different purposes. I learned it with the experience and practice, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 1:57 PM To: 'Tomcat Users List' Subject: AW: Classloader question But why wasn't the class found in myapp/WEB-INF/lib ? Sorry, but I don't understand that !? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Gesendet: Montag, 17. Dezember 2001 18:50 An: Tomcat Users List Betreff: Re: Classloader question On Mon, 17 Dec 2001, Heikki Doeleman wrote: Date: Mon, 17 Dec 2001 13:06:21 +0100 From: Heikki Doeleman [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: '[EMAIL PROTECTED]' [EMAIL PROTECTED] Subject: Classloader question Hi everyone, trying to make a web application work using Tomcat 4.0.1 I found the following behaviour, which I don't quite understand: my application uses a library called xhive.jar - putting xhive.jar in [catalina]/common/lib This works fine, as expected - putting it in [myapp]/WEB-INF/lib Causes a ClassDefNotFoundError. I don't know why this is so, it does not seem to conform to the description in class-loader-howto.html. However I did see someone saying that in that directory, only .class files are added to the classpath, not .jars (http://www.geocrawler.com/archives/3/193/2000/12/0/4841079/). - putting it in both those places Causes a ClassCastException ?? Something seems to go terribly wrong when the jar is placed in both those directories. Can anyone explain more about this? I'd like to know exactly how this works, especially I'd like to know why classes from a jar in my application's WEB-INF/lib apparently are not loaded. This has been discussed numerous times in the archives, but the short answer is this: it is fundamental to the way Java class loaders work. The key issues: * A class named a.b.c.Foo loaded from two different class loaders is ***not*** the same class, even if the bytecodes are identical. Trying to assign from one to the other will give you ClassCastException errors. * The new operator in Java tries to load the specified class from the same classloader that loaded the class containing this code. If the class of that name has already been loaded by the other classloader, you again get ClassNotFoundException errors. * Class loader hierarchies can delegate up but not down. Thus, it's also easy to have the new operator cause ClassNotFoundException errors, even though you know that the class is there. Moral of the story -- you are *always* best off having one and only one copy of a class visible to a web application. There's ways to deal with some of these issues, but they get pretty intricate. Thanks Heikki Doeleman Craig McClanahan -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und
Authentication question...
Is there any method to get on a JSP the user authenticated through JDBCRealm ?
RE: Authentication question...
I know, that's what I was asking, the method (JSP Servlet) -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:42 PM To: Tomcat Users List Subject: RE: Authentication question... String username = request.getRemoteUser(); (Remember JSPs are just servlets). -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:20 PM To: '[EMAIL PROTECTED]' Subject: Authentication question... Is there any method to get on a JSP the user authenticated through JDBCRealm ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Authentication question...
and I forgot it, thank you...Guido -Original Message- From: Randy Layman [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:42 PM To: Tomcat Users List Subject: RE: Authentication question... String username = request.getRemoteUser(); (Remember JSPs are just servlets). -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Monday, December 17, 2001 2:20 PM To: '[EMAIL PROTECTED]' Subject: Authentication question... Is there any method to get on a JSP the user authenticated through JDBCRealm ? -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: TC with SSL, IE5.0 and 128 bit
OK, you are saying that it is a known bug so try to do it for example testing it with Apache web server or IIS and if it doesn't work it means that your problem is not a problem my friend, if not it makes sense but if it is a known bug for most web server don't even try to solve it :-) Best wishes... Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:02 AM To: Tomcat Users List (E-Mail); Tomcat-Dev (E-Mail) Subject: TC with SSL, IE5.0 and 128 bit Hi all, we've built an insurance calculator and and a online contracting machine based on Tomcat4.0 with SSL. Doing integration testing I've noticed that TC with ssl doesn't work with IE5.0 (128 bit). It works with with 5.5 and higher. I've heard that this is a known bug in IE5.0 and I should upgrade to 5.5 or higher. Now I'm running into difficulties due to I can't request the internet users to upgrade or to download IE5.5 or higher for using our calculator. Does somebody know how to solve my problem ? Can I change for example the encryption in TC to 40 bit ? Any help appreciated ! Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: Running as service...
I found the main reason for this problem: when you download jsse 1.0.2 you put the jar files into JAVA_HOME/lib/ext directory but you have to do it also into Program Files/JavaSoft/JRE/lib/ext as well, that's why it works out with the startup.bat file and not with the service by itself because on the first case you execute the java_home/bin/java runtime but with the service is the JRE... Enjoy and get the experience with my case... Guido. SSL is working properly... Regards, Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:16 AM To: 'Tomcat Users List' Subject: AW: Running as service... Hi, I had similar problems and had two jre on my maschine. The one I used with the bats and one the NT service was using. I only added the jsse-libs to the jre the bats were using. You should add nothing to the registry. You should search the registry for the jre the service is using or have a look for which jre the service uses by regarding at something like C:\WIN\Profiles\o66183\Startmenü\Programme\Apache Tomcat 4.0\Start Tomcat.lnk Looking at the properties of the link you see if the java.exe is the same you are using within the bats. Oliver P.S. If that is not the problem it might be the location of the .keystore as well. AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 14. Dezember 2001 13:57 An: 'Tomcat Users List' Betreff: RE: Running as service... I don't understand, What I should add to the registry ?, Will it be for the entire system or only for my user ?, I guest I missed something but I don't understand. Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 3:35 AM To: 'Tomcat Users List' Subject: AW: Running as service... I had the same problem and I had two different jre after installation of jdk1.3. The one I installed and I was aware of I fixed with the jsse-libs and this is the one I used within the bats but the service uses another runtime that was installed automatically anywhere within program files. Check for the jre the service uses regedit.exe and put the jsse-libs there, too. Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Dezember 2001 22:13 An: '[EMAIL PROTECTED]' Betreff: Running as service... Hi, I have installed Tomcat 4.0.1 (the executable file that also installs the service) on Windows 2000 Pro, and it works properly, I added the SSL connector with the key and son, I also tested it, the problem is that is only posible to start tomcat from the Command line with startup.bat, but not with the service itself, what it could be ?, Enviroment variables ?, or what ?, I also tried it with startup and after https://myhost and it worked out at all, but it doesnt start as a service with Start/Administrative tools/Services/Apache tomcat/Start after put the SSL support inside server.xml. Thanks in advanced, Guido. Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. --- -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] Aus Rechts- und Sicherheitsgruenden
RE: Running as service...
The standard exception it uses to throw is ClassNotFoundException, that's why I copied the jars in the rigth place, the installation in the start/menu uses the JRE inside program files instead the one in JAVA_HOME but it is not a big deal, you just copy the jars into jre also and it will be better for a future use, normally the best recommended when you use general classes for example: activation.jar and mail.jar is to copy into three places: 1) JAVA_HOME\lib, TOMCAT_HOME\lib (or CATALINA_HOME\lib) and JRE_HOME\lib, because those jars will be reachable for jsp, servlets, applications and so on, so, the best is to duplicate the jars instead of put a patch on tomcat installation, don't you thnik ? Regards, Guido. P.S: That's my piece of advise... -Original Message- From: Gapinski, Gary (GEL, MSX) [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:28 AM To: 'Tomcat Users List' Subject: RE: Running as service... Not sure if this is pertinent, but I have used a variant of the service declaration found in the Microsoft-specific Tomcat 4.0.1 distribution to declare alternate service definitions for Tomcat. The program used can be found at http://www.alexandriasc.com/software/JavaService/index.html. The executable has been renamed to tomcat.exe in the Microsoft-specific Tomcat distribution. The JVM parameters must be declared in the service definition. The JVM to be used is cited immediately after the -install argument, followed by any number of JVM-specific arguments, followed by the -start, -stop, -out, -err, and -current clauses. Here's an example, which assumes JAVA_HOME, CATALINA_HOME and CATALINA_BASE have been set in the environment: set CATALINA_BASE=a separate Tomcat instance directory tree %CATALINA_HOME%\bin\tomcat.exe -install Apache Tomcat Experimental %JAVA_HOME%\jre\bin\hotspot\jvm.dll -Xms128M -Xmx256M -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar -Dcatalina.home=%CATALINA_HOME% -Dcatalina.base=%CATALINA_BASE% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_BASE%\logs\stdout.log -err %CATALINA_BASE%\logs\stderr.log -current %CATALINA_BASE% To uninstall the service, use %CATALINA_HOME%\bin\tomcat.exe -uninstall Apache Tomcat Experimental The service name can be chosen at will. If a service was declared for Tomcat upon its installation, a registry entry resembling that which will be created by the above can be found in \HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\SERVICES\Apache Tomcat. This could possibly be edited, but I have found the JavaService installer to be easier. I haven't used SSL, but perhaps some tweaking of the service declaration as seen above might help. -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 7:57 AM To: 'Tomcat Users List' Subject: RE: Running as service... I don't understand, What I should add to the registry ?, Will it be for the entire system or only for my user ?, I guest I missed something but I don't understand. Guido. -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 3:35 AM To: 'Tomcat Users List' Subject: AW: Running as service... I had the same problem and I had two different jre after installation of jdk1.3. The one I installed and I was aware of I fixed with the jsse-libs and this is the one I used within the bats but the service uses another runtime that was installed automatically anywhere within program files. Check for the jre the service uses regedit.exe and put the jsse-libs there, too. Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Worthstra?e 34 D-50668 Koln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprungliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 13. Dezember 2001 22:13 An: '[EMAIL PROTECTED]' Betreff: Running as service... Hi, I have installed Tomcat 4.0.1 (the executable file that also installs the service) on Windows 2000 Pro, and it works properly, I added the SSL connector with the key and son, I also tested it, the problem is that is only posible to start tomcat from the Command line with startup.bat, but not with the service itself, what it could be ?, Enviroment variables ?, or what ?, I also tried it with startup and after https://myhost and it worked out at all, but it doesnt start as a service with Start/Administrative tools/Services/Apache tomcat/Start after put the SSL support inside server.xml. Thanks in advanced, Guido. Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass
RE: Tomcat 4 Service SSL
put the *.jar from jsse 1.0.2 into three locations as standard from now: 1) TOMCAT_HOME/lib 2) JAVA_HOME/lib/ext 3) JRE_HOME/lib/ext (Normally for JDK 1.3.1_01 is Program Files/JavaSoft/JRE/lib/ext) That's it... It is not a bug, it is an enviroment problem... Guido. -Original Message- From: Randy K. Secrist [mailto:[EMAIL PROTECTED]] Sent: Friday, December 14, 2001 9:48 AM To: Tomcat Users List Subject: Tomcat 4 Service SSL I spent an evening this week setting up Tomcat with SSL - generating the certificate and configuring Tomcat. I was able to get it to work - Hooray! However I noticed a problem that I haven't seen documented anywhere. After I uncomment the SSL connector in server.xml - Tomcat 4.0.1 will no longer start as a service (using windows NT 2000 server.) It does however start using startup.bat I am using a self generated ssl key - having followed the instructions in the documentation. Can anyone tell me if it is possible to run ssl with it running as a service - and if not, is this a documented issue that will be resolved in future versions of Tomcat? I don't think it is necessary that i post anything connector xml here, but if anyone thinks it might be necessary - i'll do it.. Thanks... Randy
Running as service...
Hi, I have installed Tomcat 4.0.1 (the executable file that also installs the service) on Windows 2000 Pro, and it works properly, I added the SSL connector with the key and son, I also tested it, the problem is that is only posible to start tomcat from the Command line with startup.bat, but not with the service itself, what it could be ?, Enviroment variables ?, or what ?, I also tried it with startup and after https://myhost and it worked out at all, but it doesnt start as a service with Start/Administrative tools/Services/Apache tomcat/Start after put the SSL support inside server.xml. Thanks in advanced, Guido.
Re: Problems with ResultSet
That's what I'm saying with the snip example... Guido. Java Leader/Network Specialist, CTO, WHS International - Original Message - From: Ralph Einfeldt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 2:19 AM Subject: AW: Problems with ResultSet It can happen with any driver. That's what JDBC API doc tells: For maximum portability, result set columns within each row should be read in left-to-right order, and each column should be read only once. -Ursprüngliche Nachricht- Von: Guido Medina [mailto:[EMAIL PROTECTED]] Gesendet: Mittwoch, 30. Mai 2001 07:38 An: [EMAIL PROTECTED]; [EMAIL PROTECTED] Betreff: Re: Problems with ResultSet snip/ It means that you cannot do the follow with MS Access: Statement st = con.createStatement(); ResultSet rs = st.executeQuery(..); while (rs.next()) { out.println(String a = rs.getString(1)); ... ... ... out.println(String a = rs.getString(1)); } snip/
Re: Who Can Provide Me org.hsql.jdbcDriver ?Thanks!
Go to http://java.sun.com and search in JDBC... Guido - Original Message - From: Rock Luiss To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 2:28 AM Subject: Who Can Provide Me org.hsql.jdbcDriver ?Thanks! Who Can Provide Me org.hsql.jdbcDriver ?Thanks In Advance.
Re: newbie problem: javax.servlet.ServletException at org.apache. jasp er.runtime.PageContextImpl.handlePageException
Another way to do it is saving the complete URI+parameters in a String variable and put it as a tag: @jsp:forward page=%=url_plus_paramters% parameters=?+parameters... to get http://yourdomain.com/some.jsp?... Guido. P.D: I already tested but I don't remember if is @jsp:forward or jsp:forward ... I guess that for that is the first... - Original Message - From: Terje Kristensen [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 2:53 AM Subject: RE: newbie problem: javax.servlet.ServletException at org.apache. jasp er.runtime.PageContextImpl.handlePageException Thanks, that did it :-) Terje K. -Original Message- From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]] Sent: 29. mai 2001 13:16 To: '[EMAIL PROTECTED]' Subject: AW: newbie problem: javax.servlet.ServletException at org.apache. jasp er.runtime.PageContextImpl.handlePageException As I understand the spec, this is not valid: jsp:forward page=some.jsp?arg1=value1 / (See 2.13.5 and 2.5.2) Instead you can use: jsp:forward page=some.jsp jsp:param name=arg1 value=value1 / /jsp:forward This notation is a bit 'noisy' but it should work. -Ursprüngliche Nachricht- Von: Terje Kristensen [mailto:[EMAIL PROTECTED]] Gesendet: Dienstag, 29. Mai 2001 12:29 An: '[EMAIL PROTECTED]' Betreff: RE: newbie problem: javax.servlet.ServletException at snip/
Re: Tomcat hanging
Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in 3.2.2... Guido. - Original Message - From: Heijns, P.J.B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 2:58 AM Subject: Tomcat hanging Hi, I have some problems with tomcat. Sometimes when I am using tomcat, and a some other users, tomcat hangs. Very strange. Some jsp pages are oke after the crash, but some not, I don't know when en why it crashes. But when it crashes, it are always the same pages that are oke and not oke. When I want to request a page (bad page) after the crash, it is searching for the page, but he doesn't let see the page to me. When I reboot tomcat, everythins is oke. The time between rebooting and crashing is different, sometimes after 1 hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as a upload servlet, big search results pages. I am using tomcat 3.2.1, interbase 6.0, interclient 2.0, windows2000. It seems that it is a internal tomcat error, does anybody know what's the problem and how I can solve it? Grtz Pieter
Re: Tomcat hanging
A lot of bugs are solved in 3.2.2 and the migration is very easy, of course, don't overwrite the files without read a litle bit but you almost can may do it... You can also put running apache web server in windows, is ten times faster than IIS and is very fast for static page, use the bridge mod_jk to comunicate one with other...try it, you will like it, I did on a Windows 98 machine for my Freelance jobs... Guido. - Original Message - From: Heijns, P.J.B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 3:09 AM Subject: RE: Tomcat hanging I think that I am not using mod_jk, I have never installed it. I only use tomcat as a standalone webserver. Do you know if my problem is solved in tomcat 3.2.2.? Thanks Pieter -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: woensdag 30 mei 2001 9:01 To: [EMAIL PROTECTED] Subject: Re: Tomcat hanging Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in 3.2.2... Guido. - Original Message - From: Heijns, P.J.B. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 2:58 AM Subject: Tomcat hanging Hi, I have some problems with tomcat. Sometimes when I am using tomcat, and a some other users, tomcat hangs. Very strange. Some jsp pages are oke after the crash, but some not, I don't know when en why it crashes. But when it crashes, it are always the same pages that are oke and not oke. When I want to request a page (bad page) after the crash, it is searching for the page, but he doesn't let see the page to me. When I reboot tomcat, everythins is oke. The time between rebooting and crashing is different, sometimes after 1 hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as a upload servlet, big search results pages. I am using tomcat 3.2.1, interbase 6.0, interclient 2.0, windows2000. It seems that it is a internal tomcat error, does anybody know what's the problem and how I can solve it? Grtz Pieter
Re: Tomcat and containers
All your questions can be answer in http://java.sun.com and in http://jakarta.apache.org/tomcat Guido. I can answer you but right now I'm hurry...sorry - Original Message - From: Betina Kock To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 1:47 PM Subject: Tomcat and containers Hi! I'm doing an assignment on Java Server Pages, and I have a couple of questions about the Tomcat webserver: 1. Which container (engine) will be running with Tomcat? The JSP container, the servlet container, or both? 2. I'm only using JSP-documents, but does the JSP container handle the same stuff that the servlet container handled before 'the era' of JSP? 3. Tomcat listens on port 8080 - can I get it to listen on port 80, and how? 4. Where can I get the API documentation for class HttpJspBase? I've searched Suns homepage with no luck. 5. How do I (in my JSP page) read data sent with HTTP POST? I can't use request.getParameter(java.lang.String); Thanks in advance, Martin Kock [EMAIL PROTECTED]
GOOD NEWS :-)
Hi to all, The new tomcat 3.2.2 release doesn't have any problems with the mod_jk CPU overloading, I just installed and is working perfectly... Regards... Guido. P.D: Of course, you should conpile the mod_jk with your apache in your platform (machine, CPU, hardware) and is also my advise...The instructions are in mod_jk how to...
Re: Problems with ResultSet
It also happens with MS Access if your try to getType(int n), Type = {String | Int | ...} more than once, it means that you cannot do the follow with MS Access: Statement st = con.createStatement(); ResultSet rs = st.executeQuery(..); while (rs.next()) { out.println(String a = rs.getString(1)); ... ... ... out.println(String a = rs.getString(1)); } This should work in every database manager but doesn't work, you must do: String a = rs.getString(1) and keep using a instead of try to get the value again... This happens with MS Access, I don't know if with some else database manager... Guido. - Original Message - From: Moin Anjum H. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 30, 2001 1:14 AM Subject: Re: Problems with ResultSet Hi, Is your Database MSAccess? If yes then try Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_O NLY); for a full blown Explain Explaination Please go through Java Docs. HTH Best Regards Moin. Enrique Prados Valiente wrote: Hi! I'm using Tomcat and JSP but there are problem, my JSP don' work. I have this code in my JSP (code.) Statement s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ _ONLY); (more code) if (!rs.isFirst()) rs.previous(); %tr td%=rs.getString(1)%/td% } (more code) In begin of my JSP there is this code line %@ page language=java import=java.sql.*,java.io.*,java.util.* % but when I run the server and JSP, it appears this error [Microsoft][ODBC Driver Manager] Invalid cursor state I think that Jsp fails in this code line, td%=rs.getString(1)%/td% Can anyone out there help me? Thanks in advance, Enrique.
Re: problems with installation
Rigth click on the tomcat.bat and go the enviroment space, set it up for the maximun you can... Guido. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, May 26, 2001 6:41 AM Subject: problems with installation Hi, I am having problems getting tomcat running under ME. I am getting the following error message: Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Unable to set CLASSPATH dynamically. Note: To set the CLASSPATH dynamically on Win9x systems only DOS 8.3 names may be used in TOMCAT_HOME! Setting your CLASSPATH statically. Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Out of environment space Using CLASSPATH: c:\j3t\tomcat\classes Starting Tomcat in new window Bad command or file name I have set tomcat_home in the autoexec but it seems to be ignoring it. -- Get your firstname@lastname email for FREE at http://Nameplanet.com/?su
Re: (EXPERTS ONLY) Bean Creation in Dispatch Servlet
Title: Re: problems installing tomcat on linux Excuse me, you have this: System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename")); before the catch statement, one question: Did you check very well what you wrote in that line ? Guido. - Original Message - From: Leon Palermo To: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 9:01 AM Subject: (EXPERTS ONLY) Bean Creation in Dispatch Servlet Hello All, Let me preface this email by saying that I only put 'EXPERTS ONLY' so you hot shot programmers would actually read this email. If you are reading this, it worked! I have an odd problem that I was hoping someone could help with. I have a servlet that all jsps in the system are dispatched from. I create a bean in this servlet and add it to the request object like so... com.blah.blah.MyBean abean = (com.blah.blah.MyBean) Beans.instantiate(this.getClass().getClassLoader(),"com.blah.blah.MyBean"); ... request.setAttribute("thename", abean); I have also tried this to create the bean com.blah.blah.MyBean abean = new com.blah.blah.MyBean(); and also tried to place the object in the request like so pageContext.setAttribute("thename", abean, PageContext.REQUEST_SCOPE); Anywho, I then have the following in my jsp page... jsp:useBean id="thename" scope="request" class="com.blah.blah.MyBean" / I get a java.lang.ClassCastException from the jsp. So, I decided to do a little error hunting ina jsp using the following code... %try{ System.out.println(request.getAttribute("thename") == null); System.out.println(request.getAttribute("thename") instanceof com.blah.blah.MyBean); System.out.println(request.getAttribute("thename").getClass().getName()); System.out.println(zedak.docworx.jspsupport.beans.BrandBean)request.getAttribute("thename")); }catch (ClassCastException e){ System.out.println("CLASS CAST EXCEPTION!");}% The results of the code is as follows: false false com.blah.blah.MyBean CLASS CAST EXCEPTION! So, the attribute is present in the request object, it is not an instance of 'com.blah.blah.MyBean'; but the object's class name is 'com.blah.blah.MyBean'. Does anyone have an idea what is going on? How canthe object's class name be 'com.blah.blah.MyBean' but not be able to cast to 'com.blah.blah.MyBean'? Thanks in advance! Leon Palermo
Re: Install problems in FreeBSD 4.2
This problem is solved in the new J2SE 1.3.1 from java.sun.com, they had that problem but they noticed very fast... Guido. P.D: Also the IBM 1.3.x could help you... - Original Message - From: Scott Jones [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday, May 25, 2001 4:24 PM Subject: Re: Install problems in FreeBSD 4.2 Hi Lance, I experienced the same problem on RedHat 7.1. I solved it with a few environment variables: export LD_ASSUME_KERNEL=2.2.5 export LD_LIBRARY_PATH=$JAVA_HOME/jre/lib/i386/hotspot:$JAVA_HOME/jre/lib/i386/nati ve_threads:$JAVA_HOME/jre/lib/i386 That did it for me, I don't know if it'd have an effect for you, but thought I'd send this along anyways. Cheers, Scott - Original Message - From: Lance Hill [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:19 PM Subject: Install problems in FreeBSD 4.2 Hi, I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I followed the instructions included with the jakarta-tomcat README which indicated that I needed to set an environment variable of JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The instructions indicate that I should set the CLASSPATH if needed, but I do not know if it is needed, or what it should be set to. When I try to run ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is next step in setup of tomcat) I get: /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found Error: can't find libjava.so. The same messages pops up if I try to run ./build.sh for tomcat without first installing ant. The jdk was installed from j2sdk-1_3_1-linux-i386.bin. How do I get past this error message to the next error message? I have been unable to find documentation for setting this up in FreeBSD, so if someone can point me in the direction of some, I would greatly appreciate it. Thanks. _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Tomcat Servlets bringing down Win2000 Server
I had the same with Red Hat Linux 7.1 + Apache 1.3.19 + IBM 1.3 + Tomcat 3.2.1 and seems to be a VERY BIG FUCKIN' BUG in the mod_jk so do u wanna know what I did ?, I changed "back" to mod_jserv... When you find the solution you tell me... Guido. System analyzer/Java leader... - Original Message - From: Jon Gibbs-Smith To: Tomcat-User Sent: Thursday, May 24, 2001 4:03 AM Subject: Tomcat Servlets bringing down Win2000 Server We have been running a system of Servlets for some years on both Unix and NT4 platforms. I recently installed Tomcat 3.2.1 on a Win2000 server running IIS5. All appeared fine both on port 8080 and using the isapi_redirect and reading/writing to the sql 2000 database. BUT servlets producing xml cause the server to go into freefall. CPU usage goes off the scale for about 5 minutes and on several occasions it has died completely. I have tried Sun JRE 1.2.2 and IBM JRE 1.3 both with similar results. Any ideas / similar experiences anyone Thanks Jon GS
Re: Which Version of Tomcat Supports Servlet 2.3 Specification?
v4.0 dev...but be careful 'cause the version is under development 'cause the specification 2.3 is not final yet...go to http://jakarta.apache.org/tomcat/ and you will get the exact answers... Guido... - Original Message - From: karthik g [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 4:11 AM Subject: Which Version of Tomcat Supports Servlet 2.3 Specification? Thankx Karthik _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: tomcat and ultra dev
Title: tomcat and ultra dev One question, why you open the connection twice in the same jsp ?, I don't understand why, I need more data to help you, I can help you 'cause I use to give guidelines in java in my enterprise and problems with jdbc is very known for me... Guido. System analyzer/Networks specialist/Java Leader - Original Message - From: Mehmet Ugur Kuzu (LinkPlus) To: '[EMAIL PROTECTED]!' Sent: Thursday, May 24, 2001 12:49 PM Subject: tomcat and ultra dev Hi everbody, I want to run macromedia ultra dev 4.0 generated jsp code under tomcat , but i got a lot of error messages( i paste an example above ) when i tried to run my pages , is there any body can say me what version of tomcat , jdk and apache i must use together for running macromedia generated jsp pages, and in addition i can't find a document how can i configure tomcat 4.0 on windows 2000 with apache. sincerely, Mehmet Ugur Kuzu This login.jsp page generates error after submit the form, %@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"% %@ include file="Connections/DENEME.jsp" % % Driver DriverRecordset1 = (Driver)Class.forName(MM_DENEME_DRIVER).newInstance(); Connection ConnRecordset1 = DriverManager.getConnection(MM_DENEME_STRING,MM_DENEME_USERNAME,MM_DENEME_PASSWORD); PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM USERS"); ResultSet Recordset1 = StatementRecordset1.executeQuery(); boolean Recordset1_isEmpty = !Recordset1.next(); boolean Recordset1_hasData = !Recordset1_isEmpty; Object Recordset1_data; int Recordset1_numRows = 0; % % // *** Validate request to log in to this site. String MM_LoginAction = request.getRequestURI(); if (request.getQueryString() != null request.getQueryString().length() 0) MM_LoginAction += "?" + request.getQueryString(); String MM_valUsername=request.getParameter("textfield2"); if (MM_valUsername != null) { String MM_fldUserAuthorization=""; String MM_redirectLoginSuccess="Next.gif"; String MM_redirectLoginFailed="Last.gif"; String MM_redirectLogin=MM_redirectLoginFailed; Driver MM_driverUser = (Driver)Class.forName(MM_DENEME_DRIVER).newInstance(); Connection MM_connUser = DriverManager.getConnection(MM_DENEME_STRING,MM_DENEME_USERNAME,MM_DENEME_PASSWORD); String MM_pSQL = "SELECT USERNAME, USERPASSWORD"; if (!MM_fldUserAuthorization.equals("")) MM_pSQL += "," + MM_fldUserAuthorization; MM_pSQL += " FROM USERS WHERE USERNAME='" + MM_valUsername + "' AND USERPASSWORD='" + request.getParameter("textfield") + "'"; PreparedStatement MM_statementUser = MM_connUser.prepareStatement(MM_pSQL); ResultSet MM_rsUser = MM_statementUser.executeQuery(); boolean MM_rsUser_isNotEmpty = MM_rsUser.next(); if (MM_rsUser_isNotEmpty) { // username and password match - this is a valid user session.putValue("MM_Username", MM_valUsername); if (!MM_fldUserAuthorization.equals("")) { session.putValue("MM_UserAuthorization", MM_rsUser.getString(MM_fldUserAuthorization).trim()); } else { session.putValue("MM_UserAuthorization", ""); } if ((request.getParameter("accessdenied") != null) false) { MM_redirectLoginSuccess = request.getParameter("accessdenied"); } MM_redirectLogin=MM_redirectLoginSuccess; } MM_rsUser.close(); MM_connUser.close(); response.sendRedirect(response.encodeRedirectURL(MM_redirectLogin)); } % html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" text="#00" form name="form1" method="post" action="%=MM_LoginAction%" input type="text" name="textfield2" input type="text" name="textfield" input type="submit" name="Submit" value="Submit" /form pnbsp;/p /body /html after submit, this error generated, Internal Servlet Error: javax.servlet.ServletException: General error at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at ULTRADEVWORKS._0002fULTRADEVWORKS_0002flogin_0002ejsplogin_jsp_9._jspService(_0002fULTRADEVWORKS_0002flogin_0002ejsplogin_jsp_9.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at
Re: tomcat and ultra dev
Title: tomcat and ultra dev This error is because you must close the following list in that order: ResultSet.close(); PreparedStatement.close(); and after connection.close(); if you close the connection before the others you get an SQLException... Guido. - Original Message - From: Mehmet Ugur Kuzu (LinkPlus) To: '[EMAIL PROTECTED]!' Sent: Thursday, May 24, 2001 12:49 PM Subject: tomcat and ultra dev Hi everbody, I want to run macromedia ultra dev 4.0 generated jsp code under tomcat , but i got a lot of error messages( i paste an example above ) when i tried to run my pages , is there any body can say me what version of tomcat , jdk and apache i must use together for running macromedia generated jsp pages, and in addition i can't find a document how can i configure tomcat 4.0 on windows 2000 with apache. sincerely, Mehmet Ugur Kuzu This login.jsp page generates error after submit the form, %@page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*"% %@ include file="Connections/DENEME.jsp" % % Driver DriverRecordset1 = (Driver)Class.forName(MM_DENEME_DRIVER).newInstance(); Connection ConnRecordset1 = DriverManager.getConnection(MM_DENEME_STRING,MM_DENEME_USERNAME,MM_DENEME_PASSWORD); PreparedStatement StatementRecordset1 = ConnRecordset1.prepareStatement("SELECT * FROM USERS"); ResultSet Recordset1 = StatementRecordset1.executeQuery(); boolean Recordset1_isEmpty = !Recordset1.next(); boolean Recordset1_hasData = !Recordset1_isEmpty; Object Recordset1_data; int Recordset1_numRows = 0; % % // *** Validate request to log in to this site. String MM_LoginAction = request.getRequestURI(); if (request.getQueryString() != null request.getQueryString().length() 0) MM_LoginAction += "?" + request.getQueryString(); String MM_valUsername=request.getParameter("textfield2"); if (MM_valUsername != null) { String MM_fldUserAuthorization=""; String MM_redirectLoginSuccess="Next.gif"; String MM_redirectLoginFailed="Last.gif"; String MM_redirectLogin=MM_redirectLoginFailed; Driver MM_driverUser = (Driver)Class.forName(MM_DENEME_DRIVER).newInstance(); Connection MM_connUser = DriverManager.getConnection(MM_DENEME_STRING,MM_DENEME_USERNAME,MM_DENEME_PASSWORD); String MM_pSQL = "SELECT USERNAME, USERPASSWORD"; if (!MM_fldUserAuthorization.equals("")) MM_pSQL += "," + MM_fldUserAuthorization; MM_pSQL += " FROM USERS WHERE USERNAME='" + MM_valUsername + "' AND USERPASSWORD='" + request.getParameter("textfield") + "'"; PreparedStatement MM_statementUser = MM_connUser.prepareStatement(MM_pSQL); ResultSet MM_rsUser = MM_statementUser.executeQuery(); boolean MM_rsUser_isNotEmpty = MM_rsUser.next(); if (MM_rsUser_isNotEmpty) { // username and password match - this is a valid user session.putValue("MM_Username", MM_valUsername); if (!MM_fldUserAuthorization.equals("")) { session.putValue("MM_UserAuthorization", MM_rsUser.getString(MM_fldUserAuthorization).trim()); } else { session.putValue("MM_UserAuthorization", ""); } if ((request.getParameter("accessdenied") != null) false) { MM_redirectLoginSuccess = request.getParameter("accessdenied"); } MM_redirectLogin=MM_redirectLoginSuccess; } MM_rsUser.close(); MM_connUser.close(); response.sendRedirect(response.encodeRedirectURL(MM_redirectLogin)); } % html head titleUntitled Document/title meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /head body bgcolor="#FF" text="#00" form name="form1" method="post" action="%=MM_LoginAction%" input type="text" name="textfield2" input type="text" name="textfield" input type="submit" name="Submit" value="Submit" /form pnbsp;/p /body /html after submit, this error generated, Internal Servlet Error: javax.servlet.ServletException: General error at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:459) at ULTRADEVWORKS._0002fULTRADEVWORKS_0002flogin_0002ejsplogin_jsp_9._jspService(_0002fULTRADEVWORKS_0002flogin_0002ejsplogin_jsp_9.java:143) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at org.apache.tomcat.core.Handler.service(Handler.java:286) at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
Re: JDBC/ODBC: Technological choice
OK, I'm a linux fan running in Red Hat 7.1, Tomcat, postgresql and I use Microsoft Access to get my postgresql database, MicroAccess is not one definition or engine, is a tool, don't be so extricted with yourself, of course, for the web jdbc is the best: one piece of advise: ddo u have sql server running ?, well, use it with jdbc, with a linux server, tomcat and so on you can access your sql server or in case that your people is only using .mdb, well, install a database manager but keep yourself using Microsoft Access to access your database, for the web, only for the web, use jsp, do not try to reinvent the wheel my friend !!!, that's all... Regards... Guido. P.D: I also hate ASP :-) - Original Message - From: aswath satrasala [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 1:33 PM Subject: Re: JDBC/ODBC: Technological choice Hi, First, I would like to point the restrictions Access will place in using standard SQL, when you are using JDBC or JDBC-ODBC. You may not have the same flexibility in your SQL as with SQL server or oracle. Assuming you know the limitations, you are better off using ASP, if you are using Access. I am not discouraging you from using JSP. You can as well persuade to use SQL server and starting working on JSP. Working with JDBC/tomcat/JSP is simple, I don't have any problems in my application. However, considering the deployment question, we are still thing of deployment, as you may have to write scripts to set the datasource (if you are using jdbc-odbc). -Aswath From: Alexandre Bouchard [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Subject: JDBC/ODBC: Technological choice Date: Wed, 23 May 2001 20:34:29 -0400 Hello guys I am building an intranet on a window NT environment. I hate ASP, so I decided to use JSP as the server-side language. I chose Tomcat to run my JSP and I installed it as a IIS plugin. Now, I have to connect my JSPs with the databases (they use Access -- ouch! ) I never did that before and I don't know if I should use JDBC I or IV. So my questions are: -first, is it possible to use a JDBC IV sheme with Tomcat -if so, how is it possible? How is it made? In other words, where can i find documentation about that? -why it is recommended to use JDBC IV when dealing with intranet? -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? -Finally, is it difficult to deal with JDBC, to deploy it? A lot of question, isn't it? I would also apreciate if some of you could share their experience of building a JDBC/JSP/Tomcat infrastructure. Thx ! _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Multipart Form Posting with Tomcat 3.2.1
No, for me is no true, the bug is the entire mod_jk with the CPU overloading... - Original Message - From: Brandon Cruz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 1:58 PM Subject: RE: Multipart Form Posting with Tomcat 3.2.1 The bug was with Ajp13 connector. I think it has been fixed. If you are using Ajp12, there should not be a problem. Brandon -Original Message- From: Ben Galbraith [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 12:55 PM To: [EMAIL PROTECTED] Subject: Multipart Form Posting with Tomcat 3.2.1 Did I read correctly some time ago that there's a bug with HTTP connector that shipped with Tomcat 3.2.1 that prevents multipart form posting (i.e. browser file uploading) from working properly? If so, does anyone know when the next release version (i.e. not beta) of Tomcat 3.2.x or Tomcat 3.3.x that fixes this bug coming out? Thanks, Ben Galbraith
Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3
What platform are you using ?, anyway, check in your autoexec.bat (/etc/profile) set JAVA_HOME=JAVA_PATH=path_to_jdk_root_folder - Original Message - From: Steve Mu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:27 PM Subject: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 I am having problem to config JSP compiler to use jdk1.3. I have gone through all the document availible to me. I have modified the class path etc. Which property file should I look into to solve this problem? Thanks very much, Steve
Re: Re:Re: JDBC/ODBC: Technological choice
Yeah, that is true, for example, with one odbc pointing to and mdb for example you cannot do this: rs.getString(1) and after try to do it again, you must do TYPE x = rs.getTYPE(n); and read x the times you want but no read a column more than once from Query... Guido. - Original Message - From: Alexandre Bouchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:46 PM Subject: Re:Re: JDBC/ODBC: Technological choice Mm... i am not sure that I understand. What did you mean by restrictions Access will place? I think that all I gonna need in my scripts are SELECT and INSERT queries. As long as I can use these two SQL instructions, I will be happy. And for the deployment, i read in a tutorial that to setup a JDBC-ODBC with Access bridge all you have to do is: 1-create an Access db 2-creat the ODBC source (select the pilot MS Access Driver -in ODBC manager-, define the db's name and path, define data source's name and path) 3-in the JSP page, connect to the db: Class.forname(sun.jdbc.JdbcOdbcDriver).newInstance(); Connection con = DriverManager.getConnection(jdbc:odbc:base_de_donnees); Is that correct? Is there missing steps? If not, it seems simple enough. Hi, First, I would like to point the restrictions Access will place in using standard SQL, when you are using JDBC or JDBC-ODBC. You may not have the same flexibility in your SQL as with SQL server or oracle. Assuming you know the limitations, you are better off using ASP, if you are using Access. I am not discouraging you from using JSP. You can as well persuade to use SQL server and starting working on JSP. Working with JDBC/tomcat/JSP is simple, I don't have any problems in my application. However, considering the deployment question, we are still thing of deployment, as you may have to write scripts to set the datasource (if you are using jdbc-odbc). -Aswath From: Alexandre Bouchard [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] To: tomcat-user [EMAIL PROTECTED] Subject: JDBC/ODBC: Technological choice Date: Wed, 23 May 2001 20:34:29 -0400 Hello guys I am building an intranet on a window NT environment. I hate ASP, so I decided to use JSP as the server-side language. I chose Tomcat to run my JSP and I installed it as a IIS plugin. Now, I have to connect my JSPs with the databases (they use Access -- ouch! ) I never did that before and I don't know if I should use JDBC I or IV. So my questions are: -first, is it possible to use a JDBC IV sheme with Tomcat -if so, how is it possible? How is it made? In other words, where can i find documentation about that? -why it is recommended to use JDBC IV when dealing with intranet? -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to setup? -Finally, is it difficult to deal with JDBC, to deploy it? A lot of question, isn't it? I would also apreciate if some of you could share their experience of building a JDBC/JSP/Tomcat infrastructure. Thx ! _ Get your FREE download of MSN Explorer at http://explorer.msn.com
Re: Virtual Hosting Help! JSP file not found
Did you check in your httpd.conf ?, you must put in the servername www.yourdomain.com and serveralias yourdomain.com and ApJServMount /pathtoyourohome localhost:8007/... I guess...I need more expecifications about your installation, platform, webserver, etc etc... - Original Message - From: Scott Merritt [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:59 PM Subject: Virtual Hosting Help! JSP file not found I have www.mydomain.com and mydomain.com that I'd like people to be able to hit from their browser, unfortunately only http://mydomain.com is working. So I figured I'd try just adding another host entry to the server.xml file with the context path=www.mydomain.com. WRONG. That didn't work. Any ideas on this? I get: 2001-05-24 11:54:02 - Ctx( mydomain.com: ): 404 R( + /examples/jsp/num/numguess.jsp + null) JSP file not found It looks like maybe it should be prefixing it with the $TOMCAT_HOME and that's why it's not finding the file? But why would it work one time and not the other? Thanks
Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3
Sorry, I forgot something; you must put also path=%java_home%\bin;.in your autoexec.bat or add this to your enviroment variables... - Original Message - From: Steve Mu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:21 PM Subject: RE: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 I am using win2k. I have set the environment variable JAVA_HOME to the jdk1.3 path. However, it does not seem pick it up. Steve -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 11:50 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 What platform are you using ?, anyway, check in your autoexec.bat (/etc/profile) set JAVA_HOME=JAVA_PATH=path_to_jdk_root_folder - Original Message - From: Steve Mu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:27 PM Subject: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 I am having problem to config JSP compiler to use jdk1.3. I have gone through all the document availible to me. I have modified the class path etc. Which property file should I look into to solve this problem? Thanks very much, Steve
Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3
I don't advise to modify your classpath, avoid to do this, copy your your jars to /tomcat/lib...and only put to your path %java_home%\bin and with this tomcat will find the javaw...and so on... - Original Message - From: Guido Medina [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:47 PM Subject: Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 Sorry, I forgot something; you must put also path=%java_home%\bin;.in your autoexec.bat or add this to your enviroment variables... - Original Message - From: Steve Mu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:21 PM Subject: RE: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 I am using win2k. I have set the environment variable JAVA_HOME to the jdk1.3 path. However, it does not seem pick it up. Steve -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 11:50 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 What platform are you using ?, anyway, check in your autoexec.bat (/etc/profile) set JAVA_HOME=JAVA_PATH=path_to_jdk_root_folder - Original Message - From: Steve Mu [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:27 PM Subject: How to config JSP compiler in tomcat3.2.1 to use jdk1.3 I am having problem to config JSP compiler to use jdk1.3. I have gone through all the document availible to me. I have modified the class path etc. Which property file should I look into to solve this problem? Thanks very much, Steve
Re: Setting up Virtual Hosts
No, this is not the proper way to do it, is like this: NameVirtualHost 111.222.333.444 VirtualHost 111.222.333.444 serverna,me www.yourdomain.com serveralias yourdomain.com ApJServMount /*.jsp //localhost:8007 DocumentRoot / etc etc... Host 111.222.333.444 Server.xml: hostname www.yourdomain.com contextpath.../ / - Original Message - From: Jeff Kilbride [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 6:06 PM Subject: Re: Setting up Virtual Hosts Yes: NameVirtualHost 111.222.333.444 VirtualHost www.mydomain.com server.xml: Host www.mydomain.com This is how I have it set up and it works for about 10 domains. --jeff From: Glen Eustace [EMAIL PROTECTED] Reply-To: [EMAIL PROTECTED] Date: Wed, 23 May 2001 05:28:13 GMT To: [EMAIL PROTECTED] Subject: Re: Setting up Virtual Hosts Apache: VirtualHost www.mydomain.com server.xml: Host www.mydomain.com In your config, you're using an IP in the Apache VirtualHost directive and a hostname in your server.xml config. I have a feeling that may be causing your problems. Try changing your Apache config to use the host name in the VirtualHost directive, rather than the IPAddress and see if that makes a difference. Jeff, can you please confirm that you have the following directive ( with a different IP number of course ) NameVirtualHost 210.55.214.169 in your apache config, and that you have multiple hosts using that same IP number, and that these hosts are the same ones in you tomcat server.xml config. My experimentation would still suggest that tomcat is not doing named virtual hosts. Glen.
Re: *2* tomcats on same machine with *same* context on Apache Web Server.
You don't need to put 2 JVM, what you should do is to specify two virtual host in your server.xml...that's all...is better performance with ConnectionPool... Guido - Original Message - From: Chauhan, Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:20 PM Subject: *2* tomcats on same machine with *same* context on Apache Web Server. Hi All: Here is the link which does describe using two Tomcats on the same machine with different connector ports. It uses different contexts as seen in the example in the link below, namely, ApJServMount /joe ajpv12://localhost:8007/joe ApJServMount /joe ajpv12://localhost:8009/bill. refer to Configuring for Multiple Tomcat JVMs http://www.crosswinds.net/~workshopx/projects/jakarta-uguide/tomcat.ug- p2.tomcat-and-apache.html However, what we need is that, we want two Tomcats on the same machine BUT with a single context i.e. the url must point to the same context at the end ,say 'joe'. ApJServMount /joe ajpv12://localhost:8007/joe ApJServMount /joe ajpv12://localhost:8009/joe That's the problem, we tried working on it for a long time, but it fails with the *same* context. Is it possible to deploy *2* tomcats on Apache Web Server and calling the same context each time ?! Let me know if following this idea is indeed possible. Thanks a lot. Regards, Anand Chauhan
Re: JDBC/ODBC: Technological choice
Well, I guess this is a bug in mdb, is better to work with variables and forget about bugs...that's all...Guido - Original Message - From: Alexandre Bouchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:49 PM Subject: Re: JDBC/ODBC: Technological choice Yeah, that is true, for example, with one odbc pointing to and mdb for example you cannot do this: rs.getString(1) and after try to do it again, you must do TYPE x = rs.getTYPE(n); and read x the times you want but no read a column more than once from Query... That's really bizar... And that sucks. Where does this limitation come from? The driver? Access? Would this alternative syntax: String x = getString(String columnName) do the same thing? Where could i find a list of these bugs/limitations. And what about a driver of type IV, would there be the same limitations? I must confess you that I am a bit discouraged. They wont buy SQL server. And they dont want to change neither their damn it NT OS nor their IIS server. I am familiar with macosX/BSD+Apache+PHP, but I hoped I could use JSP instead of ASP to do the server-side job and to interact with their Access db... but I dont like this story of restrictions. If you want to make someone happy and you already made a successful web app using JSP interacting with an Access Database in a NT environment, please conact me !!! [EMAIL PROTECTED] Otherwise, is there freeefficient alternatives to Acces on NT? mySQL is free for all plateform i think, but will the integration with JSP be easier? thank you very much guys Guido. - Original Message - From: Alexandre Bouchard [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 2:46 PM Subject: Re:Re: JDBC/ODBC: Technological choice
Re: *2* tomcats on same machine with *same* context on Apache Web Server.
Those are my files in my real server running at: www.cubaonline.cu check in the modules, at the beginning of the virtual host directive and in the lastone virtual host that is the only one that use jsp, also check in the server.xml, just adapt your configuration to this, is a lot of job but 100% sure that it will work... That's all... Regards.. Guido. - Original Message - From: Chauhan, Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 4:16 PM Subject: RE: *2* tomcats on same machine with *same* context on Apache Web Server. Thanks Guido: That sounds good but I am stuck to using a single hostname for my app. Also, as a matter of fact, my earlier reference didn't work with regards to using the same context with two tomcats on Apache Web Server. I don't understand where I am wrong. Please help. Thanks again. Regards, Anand.. -Original Message- From: Guido Medina [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 24, 2001 4:10 PM To: [EMAIL PROTECTED] Subject: Re: *2* tomcats on same machine with *same* context on Apache Web Server. You don't need to put 2 JVM, what you should do is to specify two virtual host in your server.xml...that's all...is better performance with ConnectionPool... Guido - Original Message - From: Chauhan, Anand [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 3:20 PM Subject: *2* tomcats on same machine with *same* context on Apache Web Server. Hi All: Here is the link which does describe using two Tomcats on the same machine with different connector ports. It uses different contexts as seen in the example in the link below, namely, ApJServMount /joe ajpv12://localhost:8007/joe ApJServMount /joe ajpv12://localhost:8009/bill. refer to Configuring for Multiple Tomcat JVMs http://www.crosswinds.net/~workshopx/projects/jakarta-uguide/tomcat.ug- p2.tomcat-and-apache.html However, what we need is that, we want two Tomcats on the same machine BUT with a single context i.e. the url must point to the same context at the end ,say 'joe'. ApJServMount /joe ajpv12://localhost:8007/joe ApJServMount /joe ajpv12://localhost:8009/joe That's the problem, we tried working on it for a long time, but it fails with the *same* context. Is it possible to deploy *2* tomcats on Apache Web Server and calling the same context each time ?! Let me know if following this idea is indeed possible. Thanks a lot. Regards, Anand Chauhan ?xml version=1.0 encoding=ISO-8859-1? Server !-- Debug low-level events in XmlMapper startup -- xmlmapper:debug level=0 / !-- Logging: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, tc_log, servlet_log, and JASPER_LOG. Path: The file to which to output this log, relative to TOMCAT_HOME. If you omit a path value, then stderr or stdout will be used. Verbosity: Threshold for which types of messages are displayed in the log. Levels are inclusive; that is, WARNING level displays any log message marked as warning, error, or fatal. Default level is WARNING. verbosityLevel values can be: FATAL ERROR WARNING INFORMATION DEBUG Timestamps: By default, logs print a timestamp in the form -MM-dd hh:mm:ss in front of each message. To disable timestamps completely, set 'timestamp=no'. To use the raw msec-since-epoch, which is more efficient, set 'timestampFormat=msec'. If you want a custom format, you can use 'timestampFormat=hh:mm:ss' following the syntax of java.text.SimpleDateFormat (see Javadoc API). For a production environment, we recommend turning timestamps off, or setting the format to msec. Custom Output: Custom means normal looking. Non-custom means surrounded with funny xml tags. In preparation for possibly disposing of custom altogether, now the default is 'custom=yes' (i.e. no tags) Per-component Debugging: Some components accept a debug attribute. This further enhances log output. If you set the debug level for a component, it may output extra debugging information. -- !-- if you don't want messages on screen, add the attribute path=logs/tomcat.log to the Logger element below -- Logger name=tc_log verbosityLevel = INFORMATION / Logger name=servlet_log path=logs/servlet.log / Logger name=JASPER_LOG path=logs/jasper.log verbosityLevel = INFORMATION / !-- You can add a home attribute to represent the base for all relative paths. If none is set, the TOMCAT_HOME property will be used
Re: FATAL: configuration error
If you are using Red Hat 7.1 jdk1.4 from sun is not working, try IBM1.3 Guido - Original Message - From: Brett Knights [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 5:08 PM Subject: RE: FATAL: configuration error sealing violation is new in jdk 1.3 and addresses a potential security problem. The java web site has notes on this. What I found is that certain xml related jar files each includes the class files for dom, sax, jaxp etc. You can mess with the order of the jar files on your class path to work around the problem. I put together a small util to check package definition conflicts and found that xerces.jar (and likely xalan.jar), crimson.jar and saxon.jar all, for convenience, include some each of the dom, sax and jaxp packages. HTH Date: Thu, 24 May 2001 13:50:06 -0500 To: [EMAIL PROTECTED] From: Aristide Aragon [EMAIL PROTECTED] Subject: FATAL: configuration error Message-ID: [EMAIL PROTECTED] Hello When I start tomcat, by typing $TOMCAT_HOME/bin/startup.sh I get the classpath printed, and then: FATAL: configuration error java.lang.SecurityException: sealing violation at java.net.URLClassLoader.defineClass(URLClassLoader.java:234) at java.net.URLClassLoader.access$100(URLClassLoader.java:56) at java.net.URLClassLoader$1.run(URLClassLoader.java:195) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:297) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286) at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:120) at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactor y.java:117) at org.apache.tomcat.util.xml.XmlMapper.readXml(XmlMapper.java:210) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:187) at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) What could that be? This is a fresh install Aristide
Re: I'm really getting tired of these messages...
Maybe two Email that are subscribe that don't exists already... - Original Message - From: Martin van den Bemt [EMAIL PROTECTED] To: jakarta-tomcat-user [EMAIL PROTECTED] Sent: Thursday, May 24, 2001 8:26 PM Subject: I'm really getting tired of these messages... Is something wrong on the maillinglist??
Re: Urgent question on extra line with Tomcat Jsp
You really need a lot of help but don't worry, JSP means Java Server Page - Original Message - From: wtonetwork.com [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 9:36 AM Subject: Re: Urgent question on extra line with Tomcat Jsp Hi Jan, Sorry, I still don't understand what's the problem. What do you mean by JPS? In the code, I don't have any white characters/new lines at the beginning. How should I solve this? thanks Bryan - Original Message - From: Pernica, Jan [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 8:42 PM Subject: RE: Urgent question on extra line with Tomcat Jsp JSP send all characters you have written into JPS. So that it passes back all new lines you have used in your code (including all white characters). Jan On Wednesday, May 23, 2001 2:52 PM, wtonetwork.com [SMTP:[EMAIL PROTECTED]] wrote: Dear all, I have encounter a strange behaviour with Tomcat 3.2 When I use jsp to output a line to html or other format. The resulting page will append a line before the content. this make some of my applications work inproperly as they parse the content uncorrectly. Does any one encounter similar situation?? How can I determine if it is the problem of Tomcat or other parts?? Thanks Bryan __ Tato komunikace je urcena vyhradne pro adresata a je duverna. This communication is intended solely for the addressee and is confidential.
Re: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down
Yesd, I had, I changed to mod_jserv, I'm still waiting for the same answer as you do, for the high CPU request of mod_jk... Guido. - Original Message - From: Timo Carl [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, May 23, 2001 10:37 AM Subject: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down Hello tomcat-users, We are having a problem with mod_jk and load balancing. Does anyone else have had similar problems with that kind of architecture setup? Our System: === Alteon switch (round robin) | | three Apache 1.3.19 on three SPARC-Servers (called s1,s2,s3)(3 CPU, 3 GB) | |each: mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3) | | | two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M -Xoss4M -Xss4M -Xmx600M) We chose this architecture because the alteon is not able to perform session tracking properly. The Problem: On startup, the system works fine. Each java-Process has about 1-8% CPU load. After one day or so, one tomcat takes 40% CPU load or more. I think the reason is inside our applications. But thats not the error I want to post: After the error of a tomcat, the httpd-processes on EACH Server begin to take a lot of CPU time (8-30% each). In server-status I can see that the processes are waiting for a response of that tomcat. Of course I want to have a fault tolerance, but when I have a problem with one server, the other servers go down too. Did/Does anyone have the same problem and/or a similar system architecture? Maybe anyone solved that problem? Greetings and thanks in advance, Timo Carl
Very fast migration from mod_jserv to mod_jk...
Hi to all, Some was asking for a very fast moving from mod_jserv to mod_jk, the files I had attach for example: workers.properties you don't have to changed 'cause is standard for the installation, those files are being in use by a Red Hat Linux 7.1, apache, etc etc, the server.xml you must changed the virtual hostname, and in the httpd.conf you have documented the old configuration and undocumented the newone, the site for your reference is www.cubaonline.cu Best wishes and enjoy it... Guido. System analyzer Java leader Network specialist WHS International (514) 846 8911 workers.properties ?xml version=1.0 encoding=ISO-8859-1? Server !-- Debug low-level events in XmlMapper startup -- xmlmapper:debug level=0 / !-- Logging: Logging in Tomcat is quite flexible; we can either have a log file per module (example: ContextManager) or we can have one for Servlets and one for Jasper, or we can just have one tomcat.log for both Servlet and Jasper. Right now there are three standard log streams, tc_log, servlet_log, and JASPER_LOG. Path: The file to which to output this log, relative to TOMCAT_HOME. If you omit a path value, then stderr or stdout will be used. Verbosity: Threshold for which types of messages are displayed in the log. Levels are inclusive; that is, WARNING level displays any log message marked as warning, error, or fatal. Default level is WARNING. verbosityLevel values can be: FATAL ERROR WARNING INFORMATION DEBUG Timestamps: By default, logs print a timestamp in the form -MM-dd hh:mm:ss in front of each message. To disable timestamps completely, set 'timestamp=no'. To use the raw msec-since-epoch, which is more efficient, set 'timestampFormat=msec'. If you want a custom format, you can use 'timestampFormat=hh:mm:ss' following the syntax of java.text.SimpleDateFormat (see Javadoc API). For a production environment, we recommend turning timestamps off, or setting the format to msec. Custom Output: Custom means normal looking. Non-custom means surrounded with funny xml tags. In preparation for possibly disposing of custom altogether, now the default is 'custom=yes' (i.e. no tags) Per-component Debugging: Some components accept a debug attribute. This further enhances log output. If you set the debug level for a component, it may output extra debugging information. -- !-- if you don't want messages on screen, add the attribute path=logs/tomcat.log to the Logger element below -- Logger name=tc_log verbosityLevel = INFORMATION / Logger name=servlet_log path=logs/servlet.log / Logger name=JASPER_LOG path=logs/jasper.log verbosityLevel = INFORMATION / !-- You can add a home attribute to represent the base for all relative paths. If none is set, the TOMCAT_HOME property will be used, and if not set . will be used. webapps/, work/ and logs/ will be relative to this ( unless set explicitely to absolute paths ). You can also specify a randomClass attribute, which determines a subclass of java.util.Random will be used for generating session IDs. By default this is java.security.SecureRandom. Specifying java.util.Random will speed up Tomcat startup, but it will cause sessions to be less secure. You can specify the showDebugInfo attribute to control whether debugging information is displayed in Tomcat's default responses. This debugging information includes: 1. Stack traces for exceptions 2. Request URI's that cause status codes = 400 The default is true, so you must specify false to prevent the debug information from appearing. Since the debugging information reveals internal details about what Tomcat is serving, set showDebugInfo=false if you wish increased security. -- ContextManager debug=0 workDir=work showDebugInfo=true !-- Interceptors -- ContextInterceptor className=org.apache.tomcat.context.LogEvents / !-- ContextInterceptor className=org.apache.tomcat.context.AutoSetup / -- ContextInterceptor className=org.apache.tomcat.context.WebXmlReader / !-- Uncomment out if you have JDK1.2 and want to use policy ContextInterceptor className=org.apache.tomcat.context.PolicyInterceptor / -- ContextInterceptor className=org.apache.tomcat.context.LoaderInterceptor / ContextInterceptor className=org.apache.tomcat.context.DefaultCMSetter / ContextInterceptor className=org.apache.tomcat.context.WorkDirInterceptor /
Re: resultset Question
Hi, I think that if you want only the first record you should put if (rs.next()) statement instead of while.., it is only one condition, not a cycle... statement = statement or {statement,} Second, you don't need rs.beforeFirst(); 'cause when you make the query automatically is before the first record and when you call rs.next() will put the pointer in the first record and at the same time is returning true or false in case that exists a first record or not... Regards... Guido. - Original Message - From: Warren Crossing [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 3:41 AM Subject: RE: resultset Question did you use rs.next(); ?? you have to do this first to move the cursor to the first record.. makes sense. regards, warren. -Original Message- From: Manish [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 22 May 2001 9:00 AM To: [EMAIL PROTECTED] Subject: Re: resultset Question Kevin Fonner wrote: I want to grab just the first record in a Query of my database. I thought that this would be pretty simple??? Acording to my books they said that after executing... /resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \');/ That resultset would contain the first record. But I can't seem to grab the data. Below is a sample of my code that I think pertains to my problem. If anybody has any ideas I would appreciate them resultSet = statement.executeQuery(SELECT * FROM userfolders WHERE username=\' + userName + \'); dFolder = resultSet.getString(folder); dModule = resultSet.getString(dmod); dModulePath = resultSet.getString(dmod_path); Thanks, Kevin Kevin, resultset would contain the first record would contain the first record is not true... you have to do while (rs.next()) { //do Something } This might help Thanks -- Manish Poddar Software Engineer Paycom.net
Re: Help Needed
/etc/httpd.conf/ I think you will see there max_connections, min, etc etc... Regards... Guido. P.D: Remember that if you are using connections from apache to tomcat you should set maxconnection in apache maxconnection AjpJ12ConnectionHandler cause apache serve all (*.html,*.jsp,)but tomcat only jsp... - Original Message - From: Venkatesh Sangam [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 2:01 PM Subject: Help Needed Hi, can anyone please tell me how to change maxconnections for Apache.. please help thanks Venkatesh _ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Re: Install problems in FreeBSD 4.2
Download the IBM Java Virtual Machine 'caused Sun's JVM is not working even for Red Hat 7.1, I passed the same... Guido. - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, May 22, 2001 7:33 PM Subject: Install problems in FreeBSD 4.2 Hi, I recently downloaded and installed jdk1.3.0_02 on a FreeBSD system. I followed the instructions included with the jakarta-tomcat README which indicated that I needed to set an environment variable of JAVA_HOME=/usr/local/jdk1.3.0_02 and add $JAVA_HOME/bin to the PATH. The instructions indicate that I should set the CLASSPATH if needed, but I do not know if it is needed, or what it should be set to. When I try to run ./bootstrap.sh for jakarta-ant (install instructions for tomcat say it is next step in setup of tomcat) I get: /usr/local/jdk1.3.0_02/bin/java: /usr/bin/expr: not found Error: can't find libjava.so. The same messages pops up if I try to run ./build.sh for tomcat without first installing ant. The jdk was installed from j2sdk-1_3_1-linux-i386.bin. How do I get past this error message to the next error message? I have been unable to find documentation for setting this up in FreeBSD, so if someone can point me in the direction of some, I would greatly appreciate it. Thanks.
Scratch...
Hi, I have running Tomcat 3.2.1 on a real server but it get more and more memory and at the end the system slow so much that you must killall java processes 'cause you cannot even restart tomcat 'cause doesn't restart, this happens using mod_jk under apache seems that the garbage collector is not working and is leaving sections opened, my system is Red Hat Linux 7.1 Professional Server, and the site is: www.cubaonline.cu, I changed to my old configuration using mod_jserv and seems to be working but I would like to hear some comments about it... This is the screen I got since I changed from mod_jk to mod_serv but I want to know if this is normal: 6:58pm up 4 days, 10:02, 1 user, load average: 0.00, 0.00, 0.00 77 processes: 76 sleeping, 1 running, 0 zombie, 0 stopped CPU states: 0.1% user, 0.7% system, 0.0% nice, 99.0% idle Mem: 255568K av, 244224K used, 11344K free, 0K shrd, 55316K buff Swap: 265032K av, 32K used, 265000K free 102396K cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 28182 root 9 0 30724 30M 2840 S 0.0 12.0 0:01 java 28192 root 8 0 30724 30M 2840 S 0.0 12.0 0:00 java 28193 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28194 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28195 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28196 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28197 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28206 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28207 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28208 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28209 root 9 0 30724 30M 2840 S 0.0 12.0 0:05 java 28210 root 9 0 30724 30M 2840 S 0.0 12.0 0:13 java 28211 root 9 0 30724 30M 2840 S 0.0 12.0 0:00 java 28280 root 9 0 30724 30M 2840 S 0.0 12.0 0:09 java 29553 apache 9 0 6664 6664 6408 S 0.0 2.6 0:00 httpd 29430 apache 9 0 6652 6652 6308 S 0.0 2.6 0:00 httpd 29515 apache 9 0 6648 6648 6392 S 0.0 2.6 0:00 httpd 29535 apache 9 0 6648 6648 6312 S 0.0 2.6 0:00 httpd 29551 apache 9 0 6648 6648 6388 S 0.0 2.6 0:00 httpd 29552 apache 9 0 6648 6648 6352 S 0.0 2.6 0:00 httpd 29599 apache 9 0 6648 6648 6392 S 0.0 2.6 0:00 httpd 29349 apache 9 0 6644 6644 6304 S 0.0 2.5 0:00 httpd 29640 apache 9 0 6632 6632 6396 S 0.0 2.5 0:00 httpd 29641 apache 9 0 6632 6632 6396 S 0.0 2.5 0:00 httpd 29485 apache 9 0 6620 6620 6392 S 0.0 2.5 0:00 httpd 29598 apache 9 0 6620 6620 6392 S 0.0 2.5 0:00 httpd 29614 apache 9 0 6620 6620 6392 S 0.0 2.5 0:00 httpd 28223 root 9 0 6460 6460 6284 S 0.0 2.5 0:00 httpd 915 xfs9 0 4732 4732 896 S 0.0 1.8 0:00 xfs 24583 named 9 0 4200 4200 2196 S 0.0 1.6 0:00 named 24584 named 9 0 4200 4200 2196 S 0.0 1.6 0:00 named 24585 named 9 0 4200 4200 2196 S 0.0 1.6 0:03 named 24586 named 9 0 4200 4200 2196 S 0.0 1.6 0:00 named Java is getting and getting more memory, I didn't see yet the maximun memory that it takes, it is supposed to get some climax and after it to be aroung that memory... My questions is: Is that processes running taking all this memory normal ? Thanks a lot for the answers... Guido. P.D: I'm using virtual hosts and one JVM for my site...
Re: Redhat 7.1 ApacheTomcat How-to (long)
You must especified in the second example also the port: http://localhost:/examples Guido. - Original Message - From: Neil Jolly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 7:36 PM Subject: Re: Redhat 7.1 ApacheTomcat How-to (long) On May 21, 2001 12:22 pm, you wrote: Hello Neil, I've tried what you recommend and everything works fine but I still have a little problem. Apache and Tomcat work well but separately (not together). I have two httpd.conf files, /etc/httpd/conf/httpd.conf This one is probably not being used if you're not using the default redhat setup. and /APACHE_HOME/conf/httpd.conf. In the procedure you've sent, you said that we have to include mod_jk.conf in /etc/httpd/conf/httpd.conf but it doesn't work out to me (http://localhost/examples doesn't find the page, but http://localhost:8080/examples does). Then I tried to do the same with /APACHE_HOME/conf/httpd.conf and I got the following message when Apache tried to start: Syntax error on line 8 of /usr/local/tomcat/conf/mod_jk.conf: API module structure 'jk_module' in file /usr/lib/apache/mod_jk.so is garbled - perhaps this is not an Apache module DSO? Looks like you'll have to compile your own module to fit your apache configuration. Neil
Re: Apache w/ HTTPS - connection problems
I guest but I'm not sure that you must do it the same way you do for a normal connection: I meant: virtual_host: 443 ApJServMount /*.jsp localhost:8007/ ... ... /virtual_host And in the server.xml don't use SSL...use it through apache... Guido. - Original Message - From: Shiv Kumar [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, May 21, 2001 6:58 PM Subject: Apache w/ HTTPS - connection problems Hi all This is a problem Im facing with Apache + Mod_SSL (for HTTPS). Consider this scenario : |-| |-| +-+ |-| +-+ | A | T | |-| | A || | p | o | |-| | p | C | HTTPS | a | m | |-| HTTP | a | G | ---| c | c |--|-|--| c | I | | h | a | |-| | h || | e | t | |-| | e || +-+ |-| +-+ |-| S1 |-| S2 |-| Firewall When the servlet on S1 tries the following : URL url = new URL(http://S2/cgi-bin/mycgi.exe;); URLConnection conn = url.openConnection(); InputStream in = conn.getInputStream(); FAILS HERE The exception is : java.net.ConnectException: Connection refused: no further information at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at sun.net.www.http.HttpClient.New(HttpClient.java:289) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection .java:379) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon nection.java:472) This used to work before introducing SSL module on Apache running on S1 (i.e. when it was HTTP everywhere). Any idea of whats going wrong? Thanks. -- shiv [EMAIL PROTECTED] _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com