Re: apache, mod_jk, virtual hosts and 2 tomcats

2003-08-19 Thread Dan Lipofsky
I got it to work on my own, but I still have 1 major question. This is what I did: I made 1 unified workers.properties file which contains: workers.tomcat_home=/export/home/prod/tomcat3.2.4 workers.java_home=/export/home/prod/jdk-1.3.1 ps=/ worker.list=ajp12prod, ajp12beta

apache, mod_jk, virtual hosts and 2 tomcats

2003-08-18 Thread Dan Lipofsky
I am using Apache 1.3.28, mod_jk, Tomcat 3.2.4. I have Apache running with 2 virtual hosts (www1, www2). I want them to connect to different instances of tomcat. I have 2 completely different tomcat installs, one for www1 and one for www2. This does not work because both virtual hosts connect to

HTTPS session strangeness with Tomcat 4.0.6

2003-07-28 Thread Dan Lipofsky
I have a login JSP that does a session.setAttribute and all subsequent pages do a session.getAttribute to ensure the user is logged in. The login page uses HTTPS and then redirects to HTTP for subsequent pages. This worked in Tomcat 3.2.4 but fails in Tomcat 4.0.6, 4.1.24, and 5 alpha. BUT THE

Re: HTTPS session strangeness with Tomcat 4.0.6

2003-07-28 Thread Dan Lipofsky
on session status when I use IE but have the same pages operate perfectly under NetScape. Murray -Original Message- From: Dan Lipofsky [mailto:[EMAIL PROTECTED] Sent: Tuesday, 29 July 2003 06:54 To: [EMAIL PROTECTED] Subject: HTTPS session strangeness with Tomcat 4.0.6 I have

Re: directory list

2003-06-06 Thread Dan Lipofsky
If I don't use apache at all, how do I disable directory listing in Tomcat? Depends on the version of tomcat. Someone already gave the TC4 answer. For TC3 set the suppress flag in server.xml !-- default handler - static files and dirs. Set the suppress property to true

Re: System.out logs

2003-01-17 Thread Dan Lipofsky
Hello All, Tomcat 4 logs all System.out or System.err messages to Catalina.out by default. How would I do this in a Tomcat 3.2.3 environment. As of now, it prints on to the window Tomcat was started. I would like to save the messages on a file. Please help. Sincerely, Vijay You don't

Re: How do I...

2003-01-10 Thread Dan Lipofsky
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html tells about using the Context element in server.xml to configure a webapp. Scroll down and note the Logger entry under Nested Components. I hope this helps. I have the same question as Luc. I set up a Context with a Logger

Logging (was Re: How do I...)

2003-01-10 Thread Dan Lipofsky
To properly handle logging, you might want to check out log4j.org or commons-logging. It's one of the first things I setup for a project, it makes debugging extremely smooth. I agree, and I have converted all the backend stuff to use log4j. But the 400 JSP files that already exist would take

Re: reading forms

2003-01-09 Thread Dan Lipofsky
for lack of a better description the names are radmonized. This is because they are in a hash. if you need them in a given order, you may want to number them. If it is a GET request you can do request.getQueryString() and parse the query string by hand. A bit painful and it doesn't work for

HTTPS gives MalformedURLException in 4.0.x

2003-01-08 Thread Dan Lipofsky
The following code works fine in Tomcat 3.2.4 but fails in Tomcat 4.0.6 and throws a MalformedURLException. %@page import=java.net.URL% % java.security.Security. addProvider(new com.sun.net.ssl.internal.ssl.Provider()); System.getProperties().put(java.protocol.handler.pkgs,

Re: Force One page to not use SSL

2002-10-29 Thread Dan Lipofsky
We do the switch, using Apache1.3.20/Tomcat3.2.4 on Solaris. We just use an absolute URL when doing the switch. No problems with lost sessions. - Dan - Original Message - I've read the list archives and I'm aware of the security issue, but I still want to switch from HTTPS to HTTP. Yes,

Re: Tomcat stop when exit telnet session

2002-10-04 Thread Dan Lipofsky
You onlu have to run tomcat like this: (I did this in Tomcat 3.3) nohup tomcat.sh start nohup.out So in the nohup.out file Tomcat will store all the console messages. In fact, it's a unix patch... :-) The syntax I use is nohup tomcat.sh start nohup already redirects everything to

Re: allowLinking in 4.1.12

2002-10-02 Thread Dan Lipofsky
From my server.xml: Context path=/myapp docBase=myapp debug=0 reloadable=true crossContext=true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_myapp_log. suffix=.txt timestamp=true/ Resources

Re: log4j tomcat

2002-10-02 Thread Dan Lipofsky
Is there a way to control this? Suppose I do want to put log4j.jar in common/lib (because I don't want to wrap it in the war and reinstall it every time). But I want it only to be used by my application. Can I do this? - Dan There's a library called common-lib that uses any of log systems you

Re: log4j tomcat

2002-10-02 Thread Dan Lipofsky
This solution involves writing more code and puts the burden on log4j. I would prefer the solution of simply telling tomcat not to use log4j for its internal logging. Is this possible? Since tomcat is capable of using different loggers and has some mechanism to choose which one it uses, how

Re: log4j

2002-10-01 Thread Dan Lipofsky
You have to call PropertyConfigurator.configure(). I have a JSP which gets run when tomcat starts. It has a jspInit() method which calls an init class I wrote which initializes log4j like this: URL url = Init.class.getResource(filename); PropertyConfigurator.configure(url); To

Re: log4j

2002-10-01 Thread Dan Lipofsky
Mine is in tomcat/bin. Did you scan your drive to try and find it? Try setting TOMCAT_OPTS=-Dlog4j.debug for tomcat3 (or use CATALINA_OPTS for tomcat 4). It outputs lots of info which should at least show you if the property file is getting parsed as you expect. Also try adding a

Re: Symlinks

2002-09-26 Thread Dan Lipofsky
i must have broke something in my 4.1.10 build, because I was able to use symlinks without a problem I downloaded the 4.1.10 binaries and symlinks didn't work. They were off by default in 4.1.12 but worked after I made the appropriate modifications. I never tired building it myself. - Dan

Re: tomcat generates the long file names...

2002-09-26 Thread Dan Lipofsky
The file name, which the tomcat (JSP Servlet) is trying to create is too long to be saved on Win-2000, so, I think, it is unable to create the file. Is there any way that we can configure the Tomcat to not to generate the very long file names such as putting _0002e, _00025f etc., If we

tomcat 4.1.12 and log4j

2002-09-25 Thread Dan Lipofsky
When doing development I usually have log4j appenders on the root category at the DEBUG level. This hasn't been a problem with earlier versions of tomcat but under 4.1.12 I get megabytes of debug messages generated by tomcat. A small sample is below. Does anyone know what is up or how to

Re: Making a webapp the document root, help?

2002-09-25 Thread Dan Lipofsky
The webapp called ROOT has the behavior you desire. Is it possible for you to just use that one? I am afraid I don't know how to make something else behave like ROOT or even if it is possible. - Dan Is it possible, from Apache 1.3 and Tomcat 4.1.10 (tied together w/ mod_jk) to make a webapp

Re: Directory Listing

2002-09-20 Thread Dan Lipofsky
In server.xml set suppress=true for StaticInterceptor like below RequestInterceptor className=org.apache.tomcat.request.StaticInterceptor debug=0 suppress=true / - Dan How do I avoid listing the directory files when users type the url in tomcat 3.2.4? Thanks -- To unsubscribe,

Re: two instances of tomcat (in diferent ports) on the samemachine

2002-09-19 Thread Dan Lipofsky
We have several developers using the same Solaris machine. Each has their own install of tomcat in their home directory, and of course their own setting for CATALINA_HOME in their .profile file. We have no problems with it. - Dan I tried that... but I get some kind of conflict with

Re: Page grab inside a textbox

2002-09-19 Thread Dan Lipofsky
If I understand your question you can just use java.net.URL.getContent() - Original Message - I'm trying to capture the page source of a remote web page trought a JSP file and display it into a textbox. -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands,

sym link problems with tomcat 4.1

2002-09-18 Thread Dan Lipofsky
I have a symbolic link from webapps/nuserve/images to a directory outside of the tomcat directory tree. This worked fine under tomcat 3.2.4 but I can't see my images under tomcat 4.1.10. Does anyone know why this is, and if I can get tomcat 4.1 to follow my symbolic links? (symbolic links

Re: Log out Screen

2002-08-29 Thread Dan Lipofsky
Set the timeout in web.xml inside the web-app tags like this session-config session-timeout 720 !-- 720 minutes = 12 hrs -- /session-timeout /session-config To check for the timeout, store something in the session when they log in, like this

tomcat log: interpreting and controlling

2002-08-29 Thread Dan Lipofsky
In my tomcat log, I see a LOT of repetitions of this message: 2002-08-29 10:37:13 - Ctx( ): 400 R( /) null 2002-08-29 10:37:54 - Ctx( ): 400 R( /) null What does this mean? How can I suppress these messages? I also get a lot of the following message, which I would like suppress, or at least

Re: Log out Screen

2002-08-29 Thread Dan Lipofsky
In most cases, this is true ... but I think everyone can agree that there is nothing more frustrating than filling out some web-based form with lots of information (takes a long time to complete), attempting to submit, running into a session timeout, and not being able to get back to the

Re: env variable keeps resetting on restart of server

2002-08-26 Thread Dan Lipofsky
If you are setting it after you login, it only holds for that login session. If you logout or restart the server, it is gone. If you need it to stick around, you can put it in /etc/profile if you want it to apply to every person who logs in, or put it in your .profile ($HOME/.profile) file

Re: tomcat stops randomly. why??

2002-08-14 Thread Dan Lipofsky
I have a similar but different problem. Running 4.0.3 on solaris 8 standalone with jdk 1.4 Occasionally, tomcat dies with no error message in any log file. It is as if someone has kill -9'ed the jvm. Has anyone seen anything like this? People here are getting very wary of tomcat. I need

how to find the original URL

2002-08-02 Thread Dan Lipofsky
I am using tomcat 3.2.4. I would like my error handler JSP to be able to print out the page that the user originally requested. Is there a way to do this? For example, test1.jsp forwards to test2.jsp, which then throws an exception which takes it to ErrorHandler.jsp. I am printing out

Re: Multiple Tomcat-servers on a single machine

2002-02-20 Thread Dan Lipofsky
We do this where I work. The only thing you need to do is modify the server.xml file so that each server is listening on different ports. Look for the Connector ../Connector entries. There is the basic HTTP socket, the HTTPS socket (which you can just leave commented out if you don't need

log4j spittng out multiple copies of each message

2002-02-19 Thread Dan Lipofsky
I am using log4j 1.1.3 with tomcat 3.2.4. I am getting repeats of every message that log4j prints out. Some are in the format I specified in my config file, and some are in the default format. It would appear that tomcat is adding some appenders on its own to the root category. Is this true? If

RemoteRuntimeException

2001-12-24 Thread Dan Lipofsky
I have this problem in tomcat-3.3 but not in tomcat-3.2.4. I am using tomcat for JSP and weblogic server 6.1 for EJB. The EJB throws an exception like com.mycompany.FoobarException but it shows up in my JSP page nested inside a weblogic.rmi.extensions.RemoteRuntimeException. I am using the same