RE: dodgy session class

2005-02-14 Thread Vlad.Ilyschenko
thanks for your reply Peter. unfortunately none of the applications has explicitly configured sessions manager. I have managed to consistently reproduce the problem. The problem involves two webapps, app1 and app2. App1 is distributable. App2 contains a filter that forwards requests to app1.

Re: commons-logging logger instances - how to initialize in replicated session objects

2005-02-14 Thread Roberto Cosenza
Richard, You should also be carefull with the static keyword if you are using a clustered session. Its meaning is completely different that when running in just one jvm so I would remove it to avoid confusion. Since you don't need to replicate the loggers, you could also define them as transient,

RE: dodgy session class

2005-02-14 Thread Vlad.Ilyschenko
hm, another attempt to send an attachement. -Original Message- From: Ilyschenko, Vlad Sent: Sun 2/13/2005 1:32 AM To: tomcat-user@jakarta.apache.org Cc: Subject:RE: dodgy session class thanks for your reply Peter. unfortunately none of the applications has

RE: dodgy session class

2005-02-14 Thread Vlad.Ilyschenko
sorry for the duplicate emails. it doesnt seem like the attachement is getting through for one reason or another, so here is the test case: http://www.jstripe.com/testcase.tar.gz -Original Message- From: Ilyschenko, Vlad Sent: Sun 2/13/2005 1:32 AM To:

RE: URL protocol handler issues

2005-02-14 Thread Martin Goldhahn
I had a similar problem, which I posted last week. You should find it searching the Subject field for pluggable protocols in web apps if you kee pold messages. What I found out so far is this: - Defining the protocol handler doesn't do any harm. The URL class searches through the system property

JspC exception

2005-02-14 Thread Jagadeesha T
Hi, JspC error while doing PreCompilation, I 'am using ant 1.6.2 and tomcat 5. When I call jspc from ant it is thworing invaid cast exception. In JspRunTimeContext class. It is getting the current thread classloader and casting to URL classloader.. parentClassLoader =

Re: manager application

2005-02-14 Thread Jens Joachim
Hi, after installing tomcat there is no user configured to access these apps. To do this, add the following to your tomcat-users.xml: role rolename=manager/ role rolename=admin/ user username=user password=pw roles=admin,manager/ btw: when using tomcat 5.5.x you have to download the admin

RE: URL protocol handler issues

2005-02-14 Thread Peter Crowther
From: Martin Goldhahn [mailto:[EMAIL PROTECTED] I had a similar problem, which I posted last week. You should find it searching the Subject field for pluggable protocols in web apps if you keep old messages. I keep some, but managed to delete that - a few days before it became highly

Re: tomcat hackers ...

2005-02-14 Thread Tim Funk
If you use relative URLS (with ..) on tour site - it is probably a bad(not evil, just poorly written) bot impersonating IE. -Tim B Wiley wrote: Hello, I've been getting some things in my logs like ... 217.20.113.110 - - [13/Feb/2005:09:41:39 -0500] GET

RE: URL protocol handler issues

2005-02-14 Thread Martin Goldhahn
-Original Message- From: Peter Crowther [mailto:[EMAIL PROTECTED] Sent: Monday, February 14, 2005 12:20 PM To: Tomcat Users List Subject: RE: URL protocol handler issues How are you examining the source of this method, by the way? If you downloaded the JDK you already have the

Re: Session lost on netscape, mozilla and firefox, but not IE and Opera

2005-02-14 Thread Robert Hunt
If you've got a Valve className=org.apache.catalina.valves.RequestDumperValve/ defined for the Engine/ node in server.xml for your Tomcat installation, you should be able to see cookies being passed in HTTP requests: == 2005-02-02 10:30:39

Re: The requested resource (/myApp/servlet/TestingServlet) is not available.

2005-02-14 Thread David Smith
Admittedly, as another poster noted, a tour through the docs (specifically the Servlet spec) would help you tremendously in figuring this out yourself. To answer your question -- your url should be http://localhost:8080/myApp/TestingServlet. For your own sanity, read the spec though. It

RE: manager application

2005-02-14 Thread Dale, Matt
To use the manager app you have to add a user into the tomcat-users.xml with the manager role. Ta Matt -Original Message- From: P.M [mailto:[EMAIL PROTECTED] Sent: 13 February 2005 14:43 To: Jarkarta - TOMCAT Apache Subject: manager application Hi, I open the localhost:8080 without

tomcat + SSL, apache

2005-02-14 Thread Laurentiu Vasiescu
Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only to redirect traffic to it. thanks. Laurentiu VasiescuNetwork Administrator

Build a portal

2005-02-14 Thread Roland Carlsson
Hi! I have built an intranet for a while now and have build everything in small discrete parts that are quite independat of each other. Using the Single sign on valve made it easy to integrate the parts and since we are using a frameset the menus wasn't a problem. Now we are going to replace our

RE: What does each part of a className mean?

2005-02-14 Thread Chris Hosler
Thanks Peter I Just wanted you to know that I sure do appreciate the help . I know how important time is. The SSL was not working and there was no classname under the SSL section of the server.xml file so I was trying a few different names. I was trying some different classnames to see if I could

RE: What does each part of a className mean?

2005-02-14 Thread Peter Crowther
From: Chris Hosler [mailto:[EMAIL PROTECTED] Are there certain directories that should hold the keystore file and other related SSL files.? Does Tomcat expect to see the keystore file and certs in a certain default location under tomcat ? In the past I have been told no from Verisign but

RE: What does each part of a className mean?

2005-02-14 Thread Chris Hosler
I tried to buy as tomcat5 book this weekend but could not find one the only book they had was a tomcat 4. In the ssl section they did talk about moving the keystore file or adding a path statement during the creation of the keystore. They also talked a little about the importance of the default

Re: dodgy session class

2005-02-14 Thread Peter Rossbach
Sorry, I want to test your example with JDK 5 and tomcat 5.5. (cvs head) but your test.jsp used some sun internal classes that not supported with jdk 5. test.jsp ::: reflectionFactory.newFieldAccessor(f).get(session) The methode newFiledAccessor not exist anymore! Please change the example, then

Re: Setting ContentType and encoding for all jsp pages

2005-02-14 Thread Gioele Barabucci
Ethan Sutin wrote: http://java.sun.com/products/servlet/Filters.html I tried also with this filter /** * @web.filter name=ContentType * @web.filter-mapping url-pattern=*.jsp */ public class ContentTypeFilter implements Filter { public void doFilter(ServletRequest request,

Can't do log rotation on windows

2005-02-14 Thread Cervenka, Tom
Ive got tomcat 4 running on a win2003 server and it spits its log messages to a catalina.out file. Once a day I want to rotate the log copy it, zip up the copy and truncate the original. I do this on linux with a simple shell script. Tomcat is running during all of this and has its mitts

Re: Build a portal

2005-02-14 Thread Jason Bainbridge
On Mon, 14 Feb 2005 14:39:57 +0100, Roland Carlsson [EMAIL PROTECTED] wrote: Hi! I have built an intranet for a while now and have build everything in small discrete parts that are quite independat of each other. Using the Single sign on valve made it easy to integrate the parts and since we

Re: tomcat + SSL, apache

2005-02-14 Thread Wouter Boers
Don't think so. Apache takes on the connection and therefore is in charge of the SSL handshake. So you will have to confiure apache to support SSL. They only way to make tomcat handle the handshake is to make it directly available to the browser. But guess you allready kind of suspected it :)

Re: tomcat + SSL, apache

2005-02-14 Thread Jason Bainbridge
On Mon, 14 Feb 2005 15:25:59 +0200, Laurentiu Vasiescu [EMAIL PROTECTED] wrote: Is there any way to have the Tomcat with SSL and a front-end Apache, wich should only serve as a interface between client and tomcat? I mean tomcat should serve the certificates and do all the ssl, apache only

Re: What does each part of a className mean?

2005-02-14 Thread Hassan Schroeder
Chris, When I talked to a guy from verisign during the creation he said that was one of the differences of 5 over 4. That it did not matter where the keystore or the cert was placed as long as there were no errors during the install. Right now the keystore and certs are placed off the root

FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread Joe Reger, Jr.
Hi All. I'm still having trouble with this issue. I'm not able to upload a .WAR file through the html web application manager but the same war manually exploded and placed into the /webapps directory works fine. I've included the web.xml to see if anybody can determine why Tomcat's

RE: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread Phillip Qin
I have the similar problem - org.apache.catalina.startup.ContextConfig - Missing application web.xml, using defaults only. The app is not deployed. The war is uploaded and context.xml is copied. It only happens in tc 5.5. I haven't done a search thru tomcat-user list. Maybe it has already been

RE: [OT] Automated tool for creating mime-multipart e-mail from web page

2005-02-14 Thread Mike Curwen
my ISP does this... send an email with image attachments, that all show up in the right places, and without that download warning. I'd be more interested in a really good JavaMail tutorial that shows me how to create the javamail mime multi-parts. Every page I find on google seems to have a

Jakarta Tomcat Connector and IIS; no log being generated.

2005-02-14 Thread John Gordon
I'm having a bit of trouble getting isapi_redirect.dll to work and generate a log. If anyone can see what step I'm missing please let me know. I have done the following. I am running a Windows Server 2003. My Tomcat version is 5.0.28. My IIS version is 6.0. 1.. In the registry I created

AW: Can't do log rotation on windows

2005-02-14 Thread Steffen Heil
Hi I've got tomcat 4 running on a win2003 server and it spits it's log messages to a catalina.out file. Once a day I want to rotate the log - copy it, zip up the copy and truncate the original. I do this on linux with a simple shell script. Tomcat is running during all of this and has its mitts

RE: Tale of two servers

2005-02-14 Thread Dola Woolfe
Thanks for all responses. I have some new info. 1. Reverse lookup is disabled on both machines. That probably rules out DNS resolution. 2. The better-but-slower machine is running java 1.5. The worse-but-faster machine is running 1.4.2 with the compatibility package. 3. Finally, and the most

RE: Tale of two servers

2005-02-14 Thread Peter Crowther
From: Dola Woolfe [mailto:[EMAIL PROTECTED] 3. Finally, and the most hopeful point, the better-but-slower server is running Norton virus services. Restarting the machine in safe mode (w/ networkin) solved the problem. Does this settle it? If so, what particular setting in Norton is

RE: tomcat + SSL, apache

2005-02-14 Thread Didier McGillis
Actually I believe its the opposite. Apache serves the certificate the communication between Tomcat and Apache shouldnt be public anyway. From: Laurentiu Vasiescu [EMAIL PROTECTED] Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org To: tomcat-user@jakarta.apache.org Subject: tomcat +

RE: dodgy session class

2005-02-14 Thread Vlad.Ilyschenko
hi Peter, the problem was to do with tomcat 5.0.30 running on java 1.4.2, so it may not be relevant to tomcat 5.5 at all :( I have to say that that code is to conveniently display real session class on the page only, it employs java 1.4.2 trickery to bypass security constraints as session

RE: Tale of two servers

2005-02-14 Thread Dola Woolfe
Sorry for being dumb, but where is that option? Can't seem to find it. The Option categories I have are Auto-Protect Script Blocing Manual Scan Email Instant Messenger LiveUpdate Threat Categories Mescellaneous Thanks --- Peter Crowther [EMAIL PROTECTED] wrote: From: Dola Woolfe

RE: Tale of two servers

2005-02-14 Thread Peter Crowther
From: Dola Woolfe [mailto:[EMAIL PROTECTED] Sorry for being dumb, but where is that option? Can't seem to find it. The Option categories I have are Auto-Protect Sorry, Dola, I meant auto-protect - different AVs have different names for it. You may wish to turn it off temporarily by

Re: Jakarta Tomcat Connector and IIS; no log being generated.

2005-02-14 Thread Mladen Turk
John Gordon wrote: I'm having a bit of trouble getting isapi_redirect.dll to work and generate a log. If anyone can see what step I'm missing please let me know. I have done the following. I am running a Windows Server 2003. My Tomcat version is 5.0.28. My IIS version is 6.0. I get no logs

Re: Tale of two servers

2005-02-14 Thread Parsons Technical Services
Not sure if this will work but I think the option referred to is not available on the newer versions. Try to add the Tomcat folder to the list of exclusions under the Auto-Protect menu. Doug - Original Message - From: Dola Woolfe [EMAIL PROTECTED] To: Tomcat Users List

Re: tomcat + SSL, apache

2005-02-14 Thread Mladen Turk
Didier McGillis wrote: Actually I believe its the opposite. Apache serves the certificate the communication between Tomcat and Apache shouldnt be public anyway. Apache makes the SSL handshake and passes any client certificate to Tomcat. Any servlet sees that like it came directly from Tomcat.

Re: Tale of two servers

2005-02-14 Thread Mladen Turk
Dola Woolfe wrote: Thanks for all responses. I have some new info. 3. Finally, and the most hopeful point, the better-but-slower server is running Norton virus services. Restarting the machine in safe mode (w/ networkin) solved the problem. Does this settle it? If so, what particular setting in

RE: Tale of two servers

2005-02-14 Thread Peter Crowther
From: Mladen Turk [mailto:[EMAIL PROTECTED] Antivirus software on a production system? You must be joking ;)! rant Unfortunately not. All too often, corporate policy says that *all* boxes must have AV installed on them, and it is increasingly a sacking offence to disable it. The larger the

Re: FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread sven morales
Hi, Where are you getting this $CatalinaRoot ? I don't see this env var set in catalina.sh. aka_sergio --- Joe Reger, Jr. [EMAIL PROTECTED] wrote: Hi All. I'm still having trouble with this issue. I'm not able to upload a .WAR file through the html web application manager but

Re: Jakarta Tomcat Connector and IIS; no log being generated.

2005-02-14 Thread John Gordon
Yeah, it does have full access permission. Does the account under which the W3SVC is running has a 'Full Access' permission to the log path? Mladen. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

How to prevent multiple threads per session

2005-02-14 Thread Guernsey, Byron \(GE Consumer Industrial\)
I have a bit of a problem where deep in a servlet there is some synchronized code that is synchronized on an object in session. On a rare occasion, that code runs very slowly when a long report is running or a database slows. This causes the users of the application to keep clicking stop and

Re: Memory leak in tomcat 5.0.28

2005-02-14 Thread Mark Thomas
Marx, Mitchell E (Mitch), ALABS wrote: I see the bugzilla ID: http://issues.apache.org/bugzilla/show_bug.cgi?id=33368 Anyone know if this is present in Tomcat 4.1.30? This is now fixed in CVS for TC4. Mark - To unsubscribe,

RE: Tale of two servers

2005-02-14 Thread Dola Woolfe
Hi, Proud to say I'm not going to cover my ass (if I don't have to :). But I remember there were some worms that hit your computer even if you didn't do anything on it. One day my non-av'ed computer just went down with SoBig, I think, while Norton caught it on all other computers. So perhaps it

Re: Tale of two servers

2005-02-14 Thread Jason Bainbridge
On Mon, 14 Feb 2005 13:41:22 -0800 (PST), Dola Woolfe [EMAIL PROTECTED] wrote: Hi, Proud to say I'm not going to cover my ass (if I don't have to :). But I remember there were some worms that hit your computer even if you didn't do anything on it. One day my non-av'ed computer just went

Coldfusion MX 7 Tomcat

2005-02-14 Thread Michael Elston
I am trying to configure Coldfusion J2EE with Tomcat on Mac OS X 10.3.8 I have successfully configured Tomcat and deployed CFMX J2EE. by placing the cfusion.war file in webapps My problem is that when i configure the cfusion app to be the context root, It will not process the .cfm pages. I

Multiple broken Tomcat Linux daemon instances with jsvc?

2005-02-14 Thread Bernard
Hi all, Summary: Using jsvc may result in multiple running instances of the Tomcat servlet engine on the same machine with the same pid file. Is this an intended behavior? Background, Details: I intend to use Tomcat 5.5 in a commercial environment with multiple virtual hosts. It appears that

problem with context JDBCRealm

2005-02-14 Thread Curtis Nelson
Hi, I'm trying to configure tomcat 5.5 with a context realm using FORM authentication. My login page works when the realm is part of the engine or host element of server.xml, but when I move it to the context element, I receive an error (in the log file) stating that no login configuration

wrapper.properties to command line

2005-02-14 Thread Stephen Kestle
wrapper.properties is for the Jakarta NT service to construct a command line. Well and good. But I can't get a stack trace off it (either obviously [Ctrl-Esc], or with a tool (http://tmitevski.users.mcs2.netarray.com/stacktrace.jsp)). So I want to start it from the console. So, how do I

TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-14 Thread Robert Hunt
TC 5.0.28 running out of the box, the admin tool works fine; tree view expands and all nodes are accessible. Trying to run the admin tool with my own (pared down) server.xml generates the following when clicking the Service (Catalina) node: javax.servlet.ServletException: Define tag cannot set

[OT] Re: tomcat hackers ...

2005-02-14 Thread Joel
Hello, I've been getting some things in my logs like ... Always good to see people reading their logs. 217.20.113.110 - - [13/Feb/2005:09:41:39 -0500] "GET You could look that IP address up, try either dig or nslookup (or on Mac OS X there iseven a GUI network utility

Re: Tale of two servers

2005-02-14 Thread Joel
Proud to say I'm not going to cover my ass (if I don't have to :). Covering your backside is fine, just make sure you cover it with something appropriate and effective. But I remember there were some worms that hit your computer even if you didn't do anything on it.

RE: FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread Joe Reger, Jr.
Hi, I'm just using that to represent the root tomcat installation directory. For me it's C:\Superfly\Tomcat 5.5\. For you it may be different. Are you having any trouble with the web.xml file when deployinga WAR through the manager app? Joe -Original Message- From: sven morales

5.0.28 catalina.properties file

2005-02-14 Thread Benson Margulies
It appears that listing a specific jar file, as opposed to *.jar in a directory, doesn't work right in catalina.properties in 5.0.28. At least, I just converted a non-working to a working configuration by replacing a set of jar file pathnames with a pathname to x/*.jar where x is a dir containing

RE: 5.0.28 catalina.properties file

2005-02-14 Thread Caldarale, Charles R
From: Benson Margulies [mailto:[EMAIL PROTECTED] Subject: 5.0.28 catalina.properties file I just converted a non-working to a working configuration by replacing a set of jar file pathnames with a pathname to x/*.jar where x is a dir containing the same two jars. How about posting your

RE: FW: Re: Missing application web.xml Tomcat 5.5.7

2005-02-14 Thread sven morales
Hi, Using $CATALINA_HOME and or $CATALINA_BASE is the more proper way to describe those directory references. No I am not having trouble with web.xml file when deploying a WAR file. I'm trying to assist you troubleshoot. Are you trying to deploy an additional ROOT.war? There is an

Re: TC 5.0.28 AdminTool -- nodes under Tomcat Server throwing exceptions

2005-02-14 Thread sven morales
Hi, Can you post the pared down server.xml? The stock server.xml is mostly comments anyways, so which elements did you remove to cause these exceptions? aka_sergio --- Robert Hunt [EMAIL PROTECTED] wrote: TC 5.0.28 running out of the box, the admin tool works fine; tree view expands and

Re: How to prevent multiple threads per session

2005-02-14 Thread sven morales
Hi, Filters. There was a filter code developed by Ivelin Ivanov and Kevin Chipalkowsky that maybe be applicable to your needs. It is called RequestControlFilter. If a user makes two request, A and B then A will be processed first while B waits. When A finishes, B will be processed. If

RE: Jakarta Tomcat Connector and IIS; no log being generated.

2005-02-14 Thread Aris Javier
Hello! I have another workaround on connecting tomcat and iis... I used shiftomat. download the file and install it... it will automatically configure your system hasle free. http://www.shiftomat.com/opensource/ Aris -Original Message- From: John Gordon [mailto:[EMAIL PROTECTED]

VB: SV: Build a portal

2005-02-14 Thread Roland Carlsson
Hi! I'm sorry for not being clear in my question. I have dynamic content, much are info-screens that should be visible all the time. Since these info-screens are from different webapps i'm having trouble to combine them into one page. If I read you correctly you are only speeking about static

RE: SV: Build a portal

2005-02-14 Thread Aris Javier
p align=leftbfont face=Arial size=2GFI MailSecurity's HTML threat engine found HTML scripts in this email and has disabled them./font/b/pHi! You can make use of Windows Sharepoint Portal Server. But that's too expensive... If you know how to use XFRAME!-- and DIV then you can combine all your

RE: SV: Build a portal

2005-02-14 Thread Aris Javier
You can make use of Windows Sharepoint Portal Server. But that's too expensive... If you know how to use IFRAME and DIV then you can combine all your webapps into one webapp.. =) and make it somewhat like a dashboard... =) Aris -Original Message- From: Roland Carlsson [mailto:[EMAIL