isapi_redirector2.dll question
I have installed the IIS to Tomcat redirector on my windows XP pro machine and it works great. I took the same steps to install in on a win2k machine running IIS5.0, and it fails. Both machines have the same tomcat version (5.5.11) and both are configured identically. Here is the workers2.properties file - #Look at #http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk2/configwebcom.html #for parameter description [shm:] info=Scoreboard. Required for reconfiguration and status with multiprocess servers file=c:/tomcat/temp/jk2.shm size=1048576 #[channel.socket:localhost:8009] #info=Ajp13 forwarding over socket #tomcatId=localhost:8009 # define the worker [ajp13:localhost:8009] channel=channel.socket:localhost:8009 tomcatId=localhost:8009 # Map webapps to the Web server uri space [uri:/Acuity/*] - I ahve also put the required registry entries in and added the dll as a filter into IIS - both done on both machines. All is fine on my machine, but on the win2k machine (with 256 mb memory), the log file gives the error: Error [jk_isapi_plugin.c(496)]HttpExtensionPOroc: worker is NULL I have rebooted both machines, and the filter DOES have an up arrow listed for its status in both machines. My question is - What are the ways a worker is NULL can occur, and how do I fix this error??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cluster exception - please explain
Exception in thread Cluster-MembershipReceiver java.lang.OutOfMemoryError: Jav a heap space I am getting the above error. Can someone tell me why?? I am running tomcat5.5 with a jsdk1.5.0_04 on windows xp How can I fix this? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat5.5 and startup.bat
I would prefer to run Tomcat5.5 from a script. Can this be done? The scripts are not in the download anymore John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cluster listener question
When our application starts up, it removes admin information about old user sessions from our database; We store information such as locks and session state in our DB. BUT, if we are running in a cluster and Tomcat stars up, we do NOT want this to occur EXCEPT for on the first server in the cluster that starts up. For example, we have a cluster with 2 nodes. We start A up and it removes session log info from the DB, it then potentially gets more sessions created and logged before node B is up and running (for example in a failover scenario, where we dynamically bring back up a failed server). When node B comes up, we do NOT want it to remove sessions that have been logged. What we want is something like the following when a tomcat node kicks off If (I am in a cluster) if (!other cluster members running) Remove Session from DB else Remove Sessions from DB How can I do this?? Would I use MBeans?? Is there a cluster lifecycle listener as aopposed to an application lifecycle listener? Is there a way to add a listener to the host instead of an application context, and have it perform the above logic? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question on cluster recognition
When our application starts up, it removes admin information about old user sessions from our database; We store information such as locks and session state in our DB. BUT, if we are running in a cluster and Tomcat stars up, we do NOT want this to occur EXCEPT for on the first server in the cluster that starts up. For example, we have a cluster with 2 nodes. We start A up and it removes session log info from the DB, it then potentially gets more sessions created and logged before node B is up and running (for example in a failover scenario, where we dynamically bring back up a failed server). When node B comes up, we do NOT want it to remove sessions that have been logged. Is there a way of recognizing that: 1) a node is a member in a cluster 2) whether it is the first node that comes up in the cluster, or whether other members in the cluster are up and running? So that we can execute something only in the first node that comes up? Are tehre any other ideas on how to handle this?? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
nonhtml download
I am able to download a PDF document by response.setContentType( mimeType ); response.setHeader( Content-Disposition, attachment;filename= + fileName ); HOWEVER, This only SEEMS (may be masking another failure) to work when I have a blank target (_blank) window to stream the response into. Why is that? Why can't it simply overwrite the window I am in? How can I determine if this is a problem with my data stream (pdf) or the target window I am streaming into? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
simple question on deltamanger - understanding
My understanding is that the clustering replication DeltaManager it is called via a setAttribute if UseDirtyFlag is set to true. So does this mean that it only checks for a delta on the attribute that was set, or does it check the deltas in the entire session? Also, does anyone know where I can get commercial Tomcat support - we are having trouble with clustering John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
picture of session state for nodes in cluster??
How can I get a picture of session state for each node in a cluster every time a session is replicated? is there some valve or filter out there I can use? I am having clustering problems with our app, and I want to see what the difference is in session state between the nodes in the cluster John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to determine clustering problem?
We have a webapp that runs fine in 1 tomcat instance. We have insured that all classes being stored in session are serializable When I put the app into a cluster of 3 Tomcats on my machine, it kind of works, but I am getting inconsistent failures. It is like constantly running down rabbit holes as the errors change continually. Is there a way to debug clustered apps? If this is a possible memory, issue, How do I change the memory configuration for each Tomcat instance? Is there a timeout for each screen request? can I configure it? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Why no paramters in TLD function???
This is strange, I have a jsp that accessess a function declared in a TLD file. The function has NO paramters passed to it. When I try to compile the jsp into a servlet via tomcat jasper, I get: C:\Tomcat\webapps\Acuity\build.xml:98: org.apache.jasper.JasperException: The class specified in the method signature in TLD for the function rules:getAutoRefresh1 cannot be found. OK - but I have done this before a million times and I know it works, so I looked at working examples of my code where I did this and the only difference is that this function takes no parameters. So for an experiment, I changed the TLD, the jsp and the class to have a dummy int parmater passed to the function - not used just passed - AND IT COMPILED!?! WHY DOES IT MATTER IF THERE ARE PARAMTERS OR NOT - AM I DOING SOMETHING WRONG??? IS IT BECAUSE IT IS A GET METHOD??? here is the test jsp and .tld file THIS DOESNT WORK... JSP %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=rules uri=/WEB-INF/tlds/rules.tld % %@ page isELIgnored=false % c:set var=autoRefresh value=${rules:getAutoRefresh1()} / html head /head body /body /html RULES.TLD ?xml version=1.0 encoding=UTF-8 ? taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2eeweb-jsptaglibrary_2_0.x sd version=2.0 descriptionTCS Rule Engine Library/description display-nameTCS Rule Engine Functions/display-name tlib-version1.0/tlib-version short-namerules/short-name uri/WEB-INF/tags/Rules.tld/uri function namegetAutoRefresh1/name description Retrieves the auto refresh token setting /description function-classtcsServices.RulesMgr/function-class function-signaturejava.lang.String GetAutoRefresh1()/function-signature /function /taglib CODE public static String GetAutoRefresh1() { String refresh = N; if( autoRefresh ) { refresh = Y; } return refresh; } THIS WORKS?!? %@ taglib prefix=c uri=http://java.sun.com/jsp/jstl/core; % %@ taglib prefix=rules uri=/WEB-INF/tlds/rules.tld % %@ page isELIgnored=false % c:set var=autoRefresh value=${rules:getAutoRefresh1(1)} / html head /head body /body /html RULES.TLD ?xml version=1.0 encoding=UTF-8 ? taglib xmlns=http://java.sun.com/xml/ns/j2ee; xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://java.sun.com/xml/ns/j2eeweb-jsptaglibrary_2_0.x sd version=2.0 descriptionTCS Rule Engine Library/description display-nameTCS Rule Engine Functions/display-name tlib-version1.0/tlib-version short-namerules/short-name uri/WEB-INF/tags/Rules.tld/uri function namegetAutoRefresh1/name description Retrieves the auto refresh token setting /description function-classtcsServices.RulesMgr/function-class function-signaturejava.lang.String GetAutoRefresh1(int)/function-signature /function /taglib CODE public static String GetAutoRefresh1(int i) { String refresh = N; if( autoRefresh ) { refresh = Y; } return refresh; } John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DNS Request distribution and TCP NAT distribution For Tomcat Cluster
I was looking at the book, 'Tomcat: the definitive guide' last night, and the clustering chapter talked about load balancing via DNS Request distribution or TCP NAT distribution. Could someone explain these to me a little better in relation to Tomcat in a microsoft architecture? most of that book is based on Unix. My questions are as follows - mostly they are just clarification of the mechanism: 1) for DNS Request Distribution - I dont understand. The browser sends a URL to the DNS, the DNS responds back with an IP address. But what if at that IP address, you have a web server listening on port 80? If Tomcat is at that address also, Tomcat would have to listen on another port. Can the DNS distribute back to the browser the IP Address AND the Tomcat port so the browser connects to Tomcat on a non port 80 port? Also, is there a way to setup the DNS to Round Robin or check server load on the servers in the Tomcat cluster so it knows which Tomcat server ip:port to send back. OR does this whole thing imply that you have an IP for each web server (IIS), and each web server is tied to each server in the Tomcat cluster via a jk2 redirector? 2)TCP NAT distribution - Does this mean that when the browser connects to the IP address, that that connection is intercepted and the request is distributed to a server in the Tomcat cluster? If this is the case, then what does the interception? and how do you configure that thing to use a specific algorithm (server load, Round Robin, etc..) to choose which server to forward the request to? can it forward to an IP:PORT or does it have to forward to an IP John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Skepticism is the first step toward truth - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Question on JNDI configuration
Is it possible to add a datasource to JNDI AFTER the server has started? We have a webapp that creates a DbConnection pool AFTER first user authentication. I would like to access this pool via JNDI conventions (because of 3rd party requirements), as well as through a context variable. John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to edit and automatically upload to a servlet ???
Howdy, I am using tomcat and the jakarta commons fileupload utilities. I can upload a file and store it in the db, then download it and have it come up in the appropriate editor for its mime type. What I want to do is, when I download it, and it opens in its editor- I want to reupload it toa servlet that updates the database with the changes. I have the servlet, but how do I get the file to automatically upload after the editing is done John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to do silent install and pass options
How do I perform a silent install with Tomcat on windows where I pass on the command line the port, the JVM, and all the other data from the install dialogs? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
isapi jsp rdirector problem - help!
I am using the apache isapi_redirector2.sll to cause IIS to redirect .jsp requests to a running Tomcat instance. When I setit up, I get it to work on my machine, but on another machine - setting it up with the same steps - it does not work. All configurations look identical. What would cause an isapi filter to not work?? Tomcat is running, (I get a page at http://localhost:8081), iis is running (i get the iis main page at http://localhost and http://qa-2000), I have installed isapi_redirector2.dll into a virtual dir (jakarta) under my default webapp, have entered the appropriate registry entries to register the redirector, have created the workers.properties file and put it into tomcat/conf, along with a default jk2.properties file, have added the filter to the 'ISAPI filters' IIS porperty menu. It does NOT redirect. Is there a tutorial or instructional page out there somewhere??? Tomat 5.0.28 IIS 5.0 John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
setting java options and verbosegc output
Howdy, I am running tomcat as a service. How do I set options for the JVM to run. In particular, I wish to monitor garbage collection as I have run into a problem in my JNI/PowerBuilder Native Interface code that may be related to garbage collection.The problem is this.. When I run a standalone JNI app that accesses powerbuilder code, the app runs fine. When I run it in a webapp, It runs ok, as long as I am calling the servlet that accesses my JNI code quickly. When I wait 20 seconds and hit submit, the code hangs inside the PowerBuilder native code - BUT ONLY IF I WAIT A LITTLE WHILE. I know that the JVM gc should only cleanup java objects, but I would still like to see what is going on. how do I set -verbose:gc, and where can I see the output? Is there any other way to monitor the garbage collector that would give more detail? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
gc output for tomcat?? where is it
I have set the -verbose:gc flag for tomcat. Where does the output go? Do I need to set the log level to Info instead of Error?? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Questions on loading servlet vs. loading JSP
Thank you for your reply, but after reading your message, I may be proceeding down a rabbit hole. I don't believe it is Tomcat that is the problem - I believe it is the PowerBuilder interface code (PBNI .dll) that my JNI code is calling Nevertheless, It is a simple form post action. Thanks again! -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 11:19 AM To: Tomcat Users List; [EMAIL PROTECTED] Subject: RE: Questions on loading servlet vs. loading JSP Hi, As you know, a JSP is just a servlet after it's compiled. A JSP call is handled by the JSPServlet by default, which calls Jasper to evaluate (and if necessary compile) the JSP into a .class file. The request processing and resource handling pipeline is otherwise identical. As the Tomcat source code is freely available to you (and anyone else), feel free to confirm the above or just browse the code out of curiosity. When you say servlets get called from JSP's -- what do you mean exactly? Is it an include, forward, or other RequestDispatcher-based call? Or is it a simple reference from an HTML page (in which case the fact that the HTML page is generated by a JSP is irrelevant)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: John MccLain [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 02, 2004 1:50 PM To: tomcat jasper list; Tomcat Dev List; Tomcat user list Subject: Questions on loading servlet vs. loading JSP I have a webapp. In 2 servlets, I call JNI code. When I call the servlets from a browser DIRECTLY, all is well and the code executes. When the servlets get called from JSP's, the JNI code hangs. I know I am cleaning up after myself in the JNI code What is the difference in how Tomcat loads and processes a servlet call versus a JSP call??? How can I debug/profile this to determine the problem??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Questions on loading servlet vs. loading JSP
I have a webapp. In 2 servlets, I call JNI code. When I call the servlets from a browser DIRECTLY, all is well and the code executes. When the servlets get called from JSP's, the JNI code hangs. I know I am cleaning up after myself in the JNI code What is the difference in how Tomcat loads and processes a servlet call versus a JSP call??? How can I debug/profile this to determine the problem??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to shutdown Tomcat gracefully when hung???
I have run into a problem where Tomcat is hanging inside ofg JNI code. This causes the allocated thread to stay allocated. When I go to shutdown Tomcat, it responds with 'Waiting for 1 instance(s) to be deallocated'. Is there a way to shutdown Tomcat gracefully under this condition so that the contextDestroyed listener responds and I can get debug info??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Waiting for 1 instance(s) to be deallocated ????
These errors are coming out of the standard output of Tomcat after shutting down due to code hanging. INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:11 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated concerning these errors: What do they mean??? How do they occur??? Is there a way to control then??? I am getting the above errors when I call some JNI code from within a servlet that is invoked via a jsp form submit. The JNI code hangs. HOWEVER, when I invoke the servlet from within the browser directly, the JNI code does NOT hang. This implies to me that somehow what ever is causing the above error messages is somehow tweeking with the JNI code space(or visa versa). So, once again, concerning the above errors: What do they mean??? How do they occur??? Is there a way to control then??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Strange threading error in Tomcat
Howdy, Here is the issue - I would like some help on HOW to debug and fix this problem: 2 test use cases - 1) a)User goes to Login.jsp, enters user and password b) User submits to LoginServlet c) login calls JNI code that connects to a powerbuilder(Yes I know this is ugly) PBNI code module (this is a .dll) that authenticates the user with the database d) the servlet then redirects to another .jsp page e) user then submits to LogoutServlet - also a JNI call to a powerbuilder PBNI code module f) REPEAT STEPS a-e over a few times (inconsistent) and then the call to the JNI code hangs 2) a) users does NOT goto Login.jsp, but rather calls LoginServlet and passes the userid and password as GET parms b) user does NOT get redirected to a page (redirect code commented out) c) user calls LogoutServlet d) repeat steps a-c at will and no failure, no hanging The only difference is that in case 1 (with JSP), there is a redirect and it afffected the JNI call by haniging inside JNI code. In case 2 (without JSP) there is still a JNI call, but it does not hang. In addition, when it hangs and I stop Tomcat, the logs show cleanup entries that say: Oct 19, 2004 9:17:09 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:10 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Oct 19, 2004 9:17:11 AM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 1 instance(s) to be deallocated Is this a threading issue in Tomcat??? On would assume that the JNI code is not cleaning up after itself, but I don't believe this is the case, and even if it was, why would I get the tomcat log cleanup entries above??? What do those cleanup entries imply about the state of Tomcat John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How todestroy a session manually???
I have a session listener that clears out some static data on sessionDestroy. Is there a way for a logout button in a .jsp view to call some kind of destroy session function so that a sessionDestroyed(..) handler in a session listener gets called? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
classpath with a service help
Howdy, I wish to deploy Tomct5.0.28 along with a webapp. I want to be able to insure that Tomcat is deployed as a service, uses the standard classpath AND 1 more classpath entry. How can I set up the Tomcat windows installer to setup Tomcat as a service and include a specific directory on the classpath? Do I simply change ...tomcat/bin/service.bat (is that all that the installer runs)? if so, then how? I would prefer to not haveto have clients manually configuring classpath's for windows services. John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
loading dll's from webapp
Howdy, When I Kick off Tomct as a service (from windows service mgr.), it fails loading my context because I am trying to loadLibrary a few DLL's in a context startup listener. It can't seem to find the DLL's, HOWEVER, my system path points to their directory - and, when I start tomcat from Eclipse, using the sysdeo plugin, it works fine. How can I get the service to use the system path to find my DLL files ??? John McClain Senior Software Engineer TCS Healthcare [EMAIL PROTECTED] (530)886-1700x235 Before you criticize someone, walk a mile in their shoes. That way, you'll be a mile from them, and you'll have their shoes. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
service does not start on win2K???
I am getting could not start the apache tomcat service on local computer error 1053: a service did not respond to the start or control in a timely fashion when I try to start tomcat 5.0.19 from the win2k service manager. The startup.bat file works fine. What's up??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
windows service vs. startup.bat
I am using Log4J in my webapp. I have modified setclasspath.bat so that I include the path to log4j.properties in my classpath. When I run startup.bat, all is well and I get logging. HOWEVER, when I run tomcat from my service manager (the way I wish to run it), I get no logging, and I get an error message indicating tomcat could not find my log4j.properties file. I then said 'OK, just put it in my systems classpath variable. It still did not work. How do I setup Tomcat so that when I run it as a service, it includes my classpath - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat windows service
How do I set the classpath for Tomcat when it runs as a service? I can do it in setclasspath.bat when I run it stand-alone, but this is not what I want to do - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java system toolkit (opensource) servlet access question
I would like to use the cool opensource project JST, which accesses windows registries. I wish simply to read a value from it. When I run the sample app in eclipse, it works fine - I get my registry entry. But when I run it from a servlet I get the following error: --- java.lang.UnsatisfiedLinkError: no jst in java.library.path java.lang.ClassLoader.loadLibrary(ClassLoader.java:1491) java.lang.Runtime.loadLibrary0(Runtime.java:788) . . . -- The JST code is JNI code that links to a .dll file (jst.dll) does this have something to do with it?? Why should it run different in a servlet container than as a standalone app? - From the error above, How do I set my java.library.path to include jst.dll?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.library.path question???
When I run a servlet in Tomcat that executes some JNI code that calls a DLL, it fails with an 'unsatisfiedlinkerror'. The problem is that my DLL that JNI uses was not in my SYSTEM path. When I put it in there, all is well. What I would like to do is NOT put it in my SYSTEM path, but rather into a configuration file. Which config file/startup file do I modify so that the java.library.path System property will hold this path??? i.e. System.getProperty(java.library.path) needs to also have my DLL's directory in it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
invoker servlet question
I don't understand the invoker servlet. I understand that you have to uncomment it from the default web.xml file (did that). BUT, If I create a servlet and put it web_app_context/WEB-INF/classes, then call http://localhost:8080/web_app_context/servlet/servlet_name WHY does that not work?? I simply want to test a servlet - I do not wish to change the web apps WEB.XML file just for testing. Is there a simple way to test a servlet, where I can create a servlet, put it someplace and call it via a standard URL?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Securing SSL from IIS to Tomcat
Since IIS decrypts the request and passes it unencrypted to Tomcat, How do I encrypt the request so that all communication from IIS with Tomcat is secure??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and IIS question
-Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 3:43 PM To: Tomcat Users List Subject: Re: Tomcat and IIS question I imagine that you've got Tomcat and IIS communicating behind a firewall, if not on the same machine. If only IIS is exposed to the internet, why would you need communication between the two to be encrypted? We are producing a medical app. As part of the new HIPAA requirements, we are to take all precautions necessary to ensure that personal health information is securely transmitted electronically. If someone should break through all other security measures, the data will still be encrypted, and we have reduced our liability. Also, If you aren't relying on IIS for encryption, why use it at all? Why not just use Tomcat as a stand alone and install the certificate there? IIS needs to run so that our clients can continue to administer their other apps (which could be ASP) in the same manner as they are used too, without having our app interfere. What we need is roundtrip encryption - yes it will be slow through IIS- but if you have any other ideas for this kind of scenario, please tell me as I am not an sys admin. I am a humble software engineer Are you running ASP apps too? On Thursday 26 February 2004 06:51 pm, you wrote: I believe there is a misunderstanding (I think???)... I already have tomcat talking to IIS, and IIS talking securely with the client. The problem is that IIS decrypts ssl requests to process them. In the case of a servlet request, it forwards the decrypted request to Tomcat and Tomcat sends the response decrypted back to IIS (I think???). I want all requests and responses to be encrypted. How can I have all communication secure??? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:58 PM To: Tomcat Users List Subject: Re: Tomcat and IIS question http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html On Thursday 26 February 2004 05:19 pm, you wrote: Can I be running IIS and Tomcat concurrently and have specific webapps directed to each for processing. I am assuming that Tomcat will be running as a web server as well as servlet container and that IIS is of course running as a web server. The goal is to elminate the port number from the address window for all requests, to use tomcat/ssl for dynamic webapps, and for other static webapss, have them run through IIS. The general question is--how can I accomplish this goal??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
round trip SSL question
What we want to do is have round trip, SSL encryption when our clients use our webapps AND not have the port number as part of the URL. There are 3 scenarios: 1) Our client is using IIS to serve their current webapps some of these apps could be employing SSL. How do we insure that JSPs and Servlets that are redirected to Tomcat are talking with IIS securely encrypted? I understand that typical redirection from IIS to tomcat is always decrypted, cleartext. 2) Our client is using IIS to serve their current webapps none of their apps employ ssl. Can (and should) we setup IIS and Tomcat so that SSL requests go directly to Tomcat (Tomcat talks to client directly when SSL request issued) and standard HTTP requests goto IIS? 3) Our client does NOT want to use IIS how do you setup tomcat to be a secure webapp server? (this is not as big a problem as numbers 1 and 2) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl from IIS to Tomcat question
WE have configured IIS to use SSL over https and to redirect JSP{/servlet requests to Tomcat. Howevert, I understand that from IIS to Tomcat, the request is made decrypted clear text. How can I setup Tomcat and IIS to use SSL roundtrip from client-IIS-Tomcat and back a gain??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat and IIS question
Can I be running IIS and Tomcat concurrently and have specific webapps directed to each for processing. I am assuming that Tomcat will be running as a web server as well as servlet container and that IIS is of course running as a web server. The goal is to elminate the port number from the address window for all requests, to use tomcat/ssl for dynamic webapps, and for other static webapss, have them run through IIS. The general question is--how can I accomplish this goal??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Tomcat and IIS question
I believe there is a misunderstanding (I think???)... I already have tomcat talking to IIS, and IIS talking securely with the client. The problem is that IIS decrypts ssl requests to process them. In the case of a servlet request, it forwards the decrypted request to Tomcat and Tomcat sends the response decrypted back to IIS (I think???). I want all requests and responses to be encrypted. How can I have all communication secure??? -Original Message- From: Ben Souther [mailto:[EMAIL PROTECTED] Sent: Thursday, February 26, 2004 2:58 PM To: Tomcat Users List Subject: Re: Tomcat and IIS question http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/iishowto.html On Thursday 26 February 2004 05:19 pm, you wrote: Can I be running IIS and Tomcat concurrently and have specific webapps directed to each for processing. I am assuming that Tomcat will be running as a web server as well as servlet container and that IIS is of course running as a web server. The goal is to elminate the port number from the address window for all requests, to use tomcat/ssl for dynamic webapps, and for other static webapss, have them run through IIS. The general question is--how can I accomplish this goal??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
ssl question
How do I setup tomcat to communicate with IIS using ssl/https??? Is there any documentation??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
transport-guarantee question
I don't understand transport-guarantee; What is it and how is it implemented??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
list of authenticated users question
Does Tomcat store a collection of authenticated users somewhere, or do I have to do that inside my webapp. If I do, then can someone recommend the best place for this - i.e., a valve, a filter, in the service() method, a listener, etc.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Security and includes question
IN reading a Tomcat manual, I noticed that security constraints are only applied via client interactions with the secured object. I.E., If you redirect from within a secured object to another secured object, the redirection is not authenticated. Is there a way in Tomcat to secure ALL the objects you need and only use declarative security to authorize access to your objects instead of programmatic security where you check for authorization in code?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cookies and sessions
could someone give me a process flow description of how cookies work, i.e., 1)user authenticates - what is actually sent in header???, Is it necessary to authenticate??? 2) cookie issued - Is it sent in the response? 3) user makes request with cookie 4) cookie is recognized - How does this happen???, how is session management with cookies implemented?? . . . I would greatly appreciate some 'tutelage' here.. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
securing a jsp page
Can a jsp page be secured with role / user based access? If so, then what if it is redirected to from inside a servlet or other jsp page? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
security-constraint node question
How would I get Tomcat to use a database table instead of the web or server .xml files' security-constraint.auth-constraint.role-name to enforce authorization? I would prefer to have objects in my webapp to have configurable authorization applied to them outside of tomcat configuration files; Done more like JDBCRealm authentication. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat, iis, https how-to
We are currently using the jk2 redirector with iis on windows 2000 to redirect jsps, and servlets to tomcat. It works great! We would like to start using ssl/https. Where can I find out how to do this with our current configuration??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
tomcat, iis, https how-to
We are currently using the jk2 redirector with iis on windows 2000 to redirect jsps, and servlets to tomcat. It works great! We would like to start using ssl/https. Where can I find out how to do this with our current configuration??? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]