Anyone successfully authenticating Tomcat users w/ windows login info using a JNDIRealm?

2003-03-26 Thread Dan Payne
I'm looking for some assistance in setting up single-sign on with our
windows 2000 intranet and Tomcat using Windows Active Directory and a Tomcat
JINDIRealm and LDAP. What I'm essentially looking for is
HttpServletRequest.getRemoteUser() to return the username used to
authenticate to the Windows network (Active Directory).

My last post was rather vague and elicited no responses. I've done some more
research and this seems to be the way to go but it would be nice if anyone
who's already done it could relate their experiences or perhaps point me in
the right direction to some resources covering this issue.

Thanks again,

Dan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Guidelines on application development

2003-03-26 Thread Dan Payne
The path refining my dev process sounds exactly like yours. The next step
for me was to move to Eclipse. Designate your source folders and it compiles
.java as needed, moving the .class files to their appropriate locations.
Even exports .jars for uploading to the test/live servers and integrates
with Tomcat.

http://www.eclipse.org

-Dan

-Original Message-
From: Greg Speechley [mailto:[EMAIL PROTECTED]
Sent: Wednesday, March 26, 2003 7:01 PM
To: Tomcat User
Subject: Re: Guidelines on application development


I have just migrated from Tomcat 4.0.3 to 4.1.24 on win2k. At present we
have a test server which we do all development and testing on then once the
app is stable we transfer the app directory onto the live server to
$CATALINA_HOME\webapps, restart tomcat and it's good to go.

During development we use a java editor eg jGrasp to edit .java files which
are stored in $CATALINA_HOME\webapps\app\WEB-INF\classes and compile these
individually. It gets a bit tiresome restarting tomcat after each recompile
but I can live with that (I have reloadable=true but this doesn't seem to be
reliable). Obviously this is a fairly poor way to do things so I am keen to
use the manager in 4.1.24 to reload apps and ant to build it. I have looked
at the docs and created the directory structure as suggested in the
Application Developer's guide (java files in src\WEB-INF\classes, etc) and
can build from src directory so that class files are stored in the
build\WEB-INF\classes. BTW this dir structure should be stored in folder
called projectname somewhere other than $CATALINA_HOME\webapps?

Now from what I can tell I would then have to move these class files to
$CATALINA_HOME\webapps\app\WEB-INF\classes to be able to test it, surely I
am missing something because this seems to be quite laborious. Do you use
ant each time you recompile during development or just compile from your
editor? If anyone can provide some suggestions on the recommended way to do
things I would greatly appreciate it coz I am trying to implement much
better development practices :)

Cheers
Greg


-
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]



Windows/Tomcat Single Sign On

2003-03-25 Thread Dan Payne
I'm experiencing a bit of info overload in researching single sign-on with
windows. I was hoping that perhaps through someone's experience on this list
I could narrow my focus.

I've got TC 4.1.18 running on port 8080 (not integrated with IIS) and IIS on
a Windows 2000 server for a client's intranet.

When an employee hits the server, they are prompted for username/password by
Windows. I need to make that username available to my Tomcat application.
Can anyone point me in the right direction?

Thanks again,

Dan


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: REBOOT MACHINE

2003-01-21 Thread Dan Payne
Environment variables set using Window's GUI are immediately available in
any NEW command line window. So set the variables, close your command line
window and then open a new one. That'll save you a reboot.

To see if an environment variable is set, from the windows command line,
follow the syntax echo %variable_name% as in:

 echo %JAVA_HOME%

hope that helps

-Original Message-
From: Tref Gare [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 5:36 PM
To: Tomcat Users List
Subject: RE: REBOOT MACHINE


If you're on a windows box, they can have trouble getting new class
paths that are set in the environment variables screens until you
reboot.  I believe if you set them from the command line this isn't the
case but I can't say I'm too sure.


--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba.
--

-Original Message-
From: Paul Brinkley [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 22 January 2003 10:31 AM
To: Tomcat Users List
Subject: Re: REBOOT MACHINE

At 09:11 PM 1/21/2003 -0200, Mauricio Matias wrote:
Hey people, is normal i have to reboot my comp when I change anything
in
classhpath or server.xml or web.xml. It isnt enough restart Tomcat.

It's not normal.  A change in either XML file should (IIRC)
take effect the next time you start Tomcat, no matter what.
Can you give more detail, like what OS you're using, etc.?


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[OT] Opera vs. IE

2003-01-21 Thread Dan Payne
This is way OT but...

Speed test are showing (I've got a cable modem connection):

 Opera 6.04 downloads at a consistent ~1700 kilobits/second.
 IE 6.0.2800.1106 downloads at an inconsistent ~450 kilobits/second.

I was compelled to do the comparisons after noticing that file downloads on
Opera are consistently at much better speeds than IE. So here are the
questions:

1. Anyone else get the same results (test I used:
http://www.austin.rr.com/speedtest/speed.asp)
2. How do they do it? It's the same file, same connection. What's the
mechanism?

Any comments appreciated. Just really curious. And feel free to email me
off-list.

-Dan

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 21, 2003 9:21 PM
To: Tomcat Users List
Subject: Re: JDBC authentication




On 21 Jan 2003, Ed Robbins wrote:

 Date: 21 Jan 2003 21:49:00 -0500
 From: Ed Robbins [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: JDBC authentication

 This was exactly my problem, I moved the security constraint out of the
 server.xml file and put it into the web.xml for the web app and it
 magically started working:-)  The only problem I have now is that I
 can't do a blanket url-mapping like

 url-mapping/*/url-mapping

 or

 url-mapping/IpnDownload/*/url-mapping


What's a url-mapping?  The valid element in a web.xml file is
url-pattern, and either of the above would be valid.  But /*.jsp would
not be valid -- you have to use *.jsp instead.

Craig


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




cookie creation behavior different TC 4.1.12 to 4.1.18

2003-01-20 Thread Dan Payne
Cookie cookie = new Cookie(MyCookieNumbers, 1,2,3,4);

Under TC 4.1.12 this works fine.

Under TC 4.1.18 I get this error:
java.lang.IllegalArgumentException: 1,2,3,4
at
org.apache.tomcat.util.http.ServerCookie.maybeQuote(ServerCookie.java:315)
at
org.apache.tomcat.util.http.ServerCookie.appendCookieValue(ServerCookie.java
:248)
snip/

According to the javadoc, an IllegalArgumentException is thrown if the
cookie NAME contains a comma. Nothing is said about the cookie value.

According to RFC 2109, the cookie NAME cannot contain any commas, however it
appears the cookie value is free to do so.

It seems that somewhere between 4.1.12 and 4.1.18 the validation on the
cookie value was changed to be the same as the cookie name but that isn't,
correct me if I'm wrong, the correct behavior accoding to the RFC. I also
checked the release notes and didn't see any entry related to this (as far
as modifications/bug fixes) which actually leads me to believe nothing
changed with the code. I've been trying to track down the source but i'm
having trouble locating it.

Can anyone confirm that this is indeed what's throwing the exception and if
it is/isn't the correct behavior?

Thanks.

-Dan


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to avoid load af a context at startup of Tomcat

2003-01-15 Thread Dan Payne
The example I gave you is for uncompressed webapps. Don't let the war
parameter deceive you. The command for installing from a .war is actually
different. Check the Tomcat docs, Manager application section. Also, just so
you know, the war paramater here takes as it's value the path to the
directory containing your webapp. So if your webapp is in:
C:\webapps\myWebapp then that is exactly what you would use as the war
value.

http://localhost/manager/install?path=/barwar=file:/C:\webapps\myWebapp

-Dan


-Original Message-
From: Marco Bucciarelli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 15, 2003 2:44 AM
To: Tomcat Users List
Subject: Re: How to avoid load af a context at startup of Tomcat


Thanks Dan, this is a good idea! I think this will work also for me.
Do you know if the install action accepts also uncompressed webapps or
does it work only with a war file?

Bye,
Marco.

- Original Message -
From: Dan Payne [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 14, 2003 10:17 PM
Subject: RE: How to avoid load af a context at startup of Tomcat


 Marco, here's how I do it (I'm on a windows dev machine):

 1. Place all documentation and example .war files in
 C:\jakarta-tomcat-4.1\webapps\ Mine contains the following  applications:

 examples
 standard-doc (JSTL documentation)
 standard-exmplas (JSTL examples)
 struts-documentation
 strutsel-exercise-taglib (Struts Exression Language examples)
 tomcat-docs

 I put only those apps that I do not modify and that will *always* be
 deployed here in the traditional spot. I use these example and
documentation
 apps a lot thus they reside here.

 1. move all in development webapps (my webapps) from
 C:\jakarta-tomcat-4.1\webapps\ to  C:\webapps\ In this directory I have
 about seven webbaps. Not each one is currently in development and some are
 done and thus rarely used and therefore do not need to be deployed every
 time tomcat starts up.

 2. define context entries in server.xml for each webapp that will
*always*
 be deployed, such as:

 Context path=/foo docBase=C:\webapps\foo\ debug=0 /

 These are the apps that are currently in development by myself.

 3. load all as-needed webapps using the manager app with a command like:

 http://localhost/manager/install?path=/barwar=file:/C:\webapps\bar

 These are the apps that I develop only once in a blue moon and/or need to
 reference once in a while.



 If any of that's not clear let me know. This system works great for me.
One
 other thing: I actually have the following structure for each app at
 C:\webapps\appName\

 backup\
 docs\
 logs\
 metrics\
 preproduction\
 src\
 unused\
 web\
 web\WEB-INF

 So my server.xml entry actually looks like this: Context path=/foo
 docBase=C:\webapps\foo\web debug=0 /
 You can also place the work directory here as well but I don't.

 Hope that helps.

 Dan

 -Original Message-
 From: Marco Bucciarelli [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 14, 2003 2:29 AM
 To: [EMAIL PROTECTED]
 Subject: How to avoid load af a context at startup of Tomcat


 Is there a way to tell Tomcat (Tomcat 4.1.18, RedHat Linux 7.0) not to
load
 a context when it starts up?

 I would like to start only some of the applications that I have under my
 webapps directory, and to start the others manually with the manager
 application only if I really need them. Unfortunately I can not configure
 two different servers to manage separately those applications.
 All the webapps have an entry as a context in my server.xml file.

 I could not find anything in the documentation.

 Thanks,
 Marco.




 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat stability problem

2002-12-31 Thread Dan Payne
nevermind. i didn't RTFM close enough.

-Original Message-
From: Torsten Fohrer [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 27, 2002 1:23 PM
To: Tomcat Users List
Subject: Re: Tomcat stability problem



a simply performance switche for tomcat/jsp pages is the
development init-param of jasper.

cu Torsten Fohrer

On Friday 27 December 2002 18:59, you wrote:
 We're running Tomcat 4.1.12 on a dual-proc PIII with 512MB RAM. The
 application consists of 100,000+ HTML pages and approx. 100 jsp pages. We
 get approx. 60,000 page views per day. Performance is fine, but
 occasionally the system runs into the following problem:

 - when you request a jsp page in the browser, there is a delay of 5-10
 seconds, then the page is loaded into the browser
 - even though the HTML code is complete and all images are visible, the
 browser still appears to be loading something (load bar is creeping)
 - then after approx. 30 seconds the loading stops (because of a page
 timeout?)
 - static HTML pages are not affected, they load as quickly as usual

 Although the problem seems to happen more frequently on busy days, it does
 not seem to be related to peak traffic: it has also happened at quiet
 times, and sometimes within an hour after a Tomcat restart (up to 4 days
 after a restart). Does anybody have any ideas on what is happening and how
 we can solve it? Some configuration details:

 - catalina.sh:
 CATALINA_OPTS=-Xmx128M
 (we've ordered more RAM, as soon as it has arrived we're planning to
change
 this to -Xmx512M

 - server.xml:
 Connector className=org.apache.coyote.tomcat4.CoyoteConnector
port=80 minProcessors=10 maxProcessors=110
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=1
useURIValidationHack=false /

 - web.xml (on public site):
 session-config
  session-timeout10/session-timeout
 /session-config

 Thanks a lot for your help.


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED] For additional
 commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: reducing tomcat jasper memory footprint

2002-12-30 Thread Dan Payne
Could you explain this further? What exactly is the many poor 'texts'?

Thanks Torsten.

-Dan

-Original Message-
From: Torsten Fohrer [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 30, 2002 4:39 PM
To: Tomcat Users List
Subject: Re: reducing tomcat  jasper memory footprint



the a bad thing is that the jasper generated code creates for each request
all
string object new. So hundred unneeded String objects consuming a lot off
memory. And so big pages with many poor texts without codeneeds a big
amount of memory.

Torsten Fohrer

On Monday 30 December 2002 20:37, you wrote:
 Hi,

 I'm using Apache 1.3.26 and 3 tomcat 4.0.4 instances with AJP13 
 loadbalancing . Our application is a CMS where all the published articles
 are generated offline as JSP-Files, one jsp per article.

 We had hige problems with the memory footprint. Due to the fact that every
 jsp is generated as a class and there are about 200 new artices per day
the
 permanent segment of the JVM heap gets filled with all the classes, and I
 get an OutOfMemoryError. My workaround for now is setting -XX:PermSize and
 --XX:MapPermSize to higher values, but this just delays application
 hang-up.

 With 64 megs of permSize our Server had an approx. uptime of 1 day now
it's
 about 3-4 days.

 Is there any way to unload jsp-Files (unload the class) ?

 llap,
 julian


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




[OT] RE: javac Memory Leak: STATUS request

2002-12-19 Thread Dan Payne
  have entered all the configuration required, but sometimes when I get
  errors compiling, the output refers to javac still.
 
  It also seems like tomcat slowly takes more and more memory.
 
  Brandon
 
  -Original Message-
  From: Jeremy Joslin [mailto:[EMAIL PROTECTED]]
  Sent: Monday, December 16, 2002 4:56 PM
  To: 'Tomcat Users List'
  Subject: RE: javac Memory Leak: STATUS request
 
 
  I don't know where you can get more information about this but have you
  considered using jikes instead of javac?  I don't know of any issues
with
  jikes and its s much faster than javac :-)
 
  Jeremy
 
   -Original Message-
   From: Dan Payne [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 2:32 PM
   To: [EMAIL PROTECTED]
   Subject: javac Memory Leak: STATUS request
  
   According to the Tomcat 4.1.12 release notes there is a javac memory
   leak. I've searched the bug watch database at sun and have searched
the
   web as well but am having trouble finding the latest info on this. Has

 it

   been fixed? If so, what version of the JDK? I'm using 1.4.0_01 and my
   productin server is crashing every 4 days with out of memory
   exceptions.
  
   Does anyone know where I can track this at/get more info at?
  
   Thanks a million. Ya'll have been great.
  
   -Dan
  
  
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED] For additional
 commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: [OT] RE: javac Memory Leak: STATUS request

2002-12-19 Thread Dan Payne
.--
!--   If you get an error reporting that jikes can't use UTF8
  encoding, --
!--   try setting the init parameter javaEncoding to
  O-8859-1.--
 
  servlet
  servlet-namejsp/servlet-name

 servlet-classorg.apache.jasper.servlet.JspServlet/servlet-class

  init-param
  param-namecompiler/param-name
  param-valuejikes/param-value
  /init-param
  init-param
  param-namelogVerbosityLevel/param-name
  param-valueWARNING/param-value
  /init-param
  load-on-startup3/load-on-startup
  /servlet
  3. Define  build.compiler as above noted
  4. Setting a env variable named BOOTCLASSPATH to jre/lib/rt.jar
 
  cu Torsten fohrer
 
  On Tuesday 17 December 2002 01:06, you wrote:
   Does anyone know how I can confirm that I am actually using jikes?  I
   have entered all the configuration required, but sometimes when I get
   errors compiling, the output refers to javac still.
  
   It also seems like tomcat slowly takes more and more memory.
  
   Brandon
  
   -Original Message-
   From: Jeremy Joslin [mailto:[EMAIL PROTECTED]]
   Sent: Monday, December 16, 2002 4:56 PM
   To: 'Tomcat Users List'
   Subject: RE: javac Memory Leak: STATUS request
  
  
   I don't know where you can get more information about this but have
you
   considered using jikes instead of javac?  I don't know of any issues

 with

   jikes and its s much faster than javac :-)
  
   Jeremy
  
-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Monday, December 16, 2002 2:32 PM
To: [EMAIL PROTECTED]
Subject: javac Memory Leak: STATUS request
   
According to the Tomcat 4.1.12 release notes there is a javac memory
leak. I've searched the bug watch database at sun and have searched

 the

web as well but am having trouble finding the latest info on this.
Has
 
  it
 
been fixed? If so, what version of the JDK? I'm using 1.4.0_01 and
my
productin server is crashing every 4 days with out of memory
exceptions.
   
Does anyone know where I can track this at/get more info at?
   
Thanks a million. Ya'll have been great.
   
-Dan
   
   
--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
  
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED] For additional
   commands, e-mail: mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED] For additional
  commands, e-mail: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED] For additional
 commands, e-mail: mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




javac Memory Leak: STATUS request

2002-12-16 Thread Dan Payne
According to the Tomcat 4.1.12 release notes there is a javac memory leak.
I've searched the bug watch database at sun and have searched the web as
well but am having trouble finding the latest info on this. Has it been
fixed? If so, what version of the JDK? I'm using 1.4.0_01 and my productin
server is crashing every 4 days with out of memory exceptions.

Does anyone know where I can track this at/get more info at?

Thanks a million. Ya'll have been great.

-Dan


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: long delay in ie

2002-12-13 Thread Dan Payne
I'm using IE 6.0.2800.1106 and it SUCKS! It has incredible, unbelievable
problems downloading both images and javascript source files and the
problems are independent from the server it is requesting from (tomcat, IIS,
etc.)

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 12:53 PM
To: 'Tomcat Users List'
Subject: RE: long delay in ie



My company uses IE exclusively, and while we don't use 4.1.x in production
yet, we have been doing a significant amount of testing and have not seen
this problem.

If it works in one browser but not another, it's a browser issue.  Do you
have the latest/greatest (I say that with tongue in cheek) updates to IE?
IE is notorious for breaking critical functionality in between minor
releases.  6.0.01 might work fine, but 6.0.02 might be totally
unusable, etc.

John


 -Original Message-
 From: Ron Day [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 1:41 PM
 To: Tomcat Users List
 Subject: RE: long delay in ie


 I experienced exactly the same problem going from 4.0.3 to 4.1.12.

 I posted it on this list, but have not resolved it as yet...

 I have no images or applets on my pages !

 just html

 ron

 -Original Message-
 From: Iqbal, Shamsudeen M [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, December 12, 2002 12:32 PM
 To: [EMAIL PROTECTED]
 Subject: long delay in ie


 Hello Tomcat users,

 I have just upgraded from Tomcat 4.0.4 to 4.1.12.  My
 application is a .jsp
 page(s) with about 10 light weight applets sitting in a page.
  When using IE
 to access this, there is a very long delay to load the page
 or the browser
 just hangs.  When using Mozilla browser, everything works fine.

 Also noted when IE shows the file names it is loading currently on the
 status bar, it loads many files quickly but is getting stuck
 on small .gif
 files.  I found two questions on the web related to this
 situation, one
 asking the jar file takes a long time to download when Tomcat
 is upgraded.
 The other asks about why the .gif files would take a long
 time to download.
 But neither questions has been answered.

 Has anybody seen or heard similar problems.  Any help is appreciated.
 Thanks
 -Iqbal


 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Pager Tag Library - Broken in 4.1.12 - I've got the fixed code and with an added feature

2002-11-11 Thread Dan Payne
I've had to use the pager taglib with a declared url as in:

pg:pager url=/calendar/location.do maxItems=10
pg:param name=locationId/

snip
/pg:pager

I'm deploying over several contexts and no context resolution was being made
by the library to the explicit url declaration That and leaving it up to the
library's default behavior didn't always produce the desired results.
Anyways, I've modified the PagerTag class to perform a context path lookup
and add that to the url path. If anyone's interested I'll pass the code
along. Also, I've already incorporated the changes needed to make it TC
4.1.12 compliant.

-Dan

I'm startin' to like this open source idea...

-Original Message-
From: Andrew Geery [mailto:Geery.Andrew;doc.state.sc.us]
Sent: Friday, November 08, 2002 8:14 AM
To: 'Tomcat Users List'
Subject: RE: Pager Tag Library - Broken in 4.1.12


See the following thread which explains why the problem arises and how to
fix it.

http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg67093.html

To the above solution, I made two additional changes because
1) the list of duplicated parameters on the url grew as it was paged -- e.g.
url?a=ba=ba=ba=b... (I was using the pg:param tag)
2) after paging in list1 and going to list2 where I expected to begin paging
on the first page, I would begin paging on the page number of list1.

The modified method for the com.jsptags.navigation.pager.PagerTag class is
below.

HTH
Andrew




public int doStartTag() throws JspException {
if (url == null) {
url = ((HttpServletRequest)pageContext.getRequest())
.getRequestURI();
int i = url.indexOf('?');
if (i != -1)
url = url.substring(0, i);
}
System.out.println(url =  + url);

itemCount = 0; // modified
params = null; // modified
offset = 0; //modified
String tmp =
pageContext.getRequest().getParameter(id+OFFSET_PARAM);
if (tmp != null) {
try {
offset = Integer.parseInt(tmp);
if (offset  0)
offset = 0;
if (isOffset)
itemCount = offset;

} catch (NumberFormatException e) {
}
}

pageNumber = pageNumber(offset);
pageNumberInteger = new Integer(1+pageNumber);

pageContext.setAttribute(id+PAGE_NUMBER, pageNumberInteger);
pageContext.setAttribute(id+OFFSET, new Integer(offset));
pageContext.setAttribute(id+MAX_ITEMS, new
Integer(maxItems));

return EVAL_BODY_INCLUDE;
}

-Original Message-
From: Robert Biernat [mailto:RobertB;oopl.com.au]
Sent: Friday, November 08, 2002 2:54 AM
To: '[EMAIL PROTECTED]'
Subject: Pager Tag Library - Broken in 4.1.12


Hi,

I'm trying to use the Pager Tag Library found at

http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html
http://jsptags.com/tags/navigation/pager/pager-taglib-1.1.html

in my webapp thats running on 4.1.12 and it appears that 4.1.12 has
something in it which prevents the tag from working correctly. Basically
when the page is first rendered it looks fine, until you try and page
through the records in which case it doesnt work.

Whats even worse is even after closing the browser and going back to the
page, instyead of the tag rendering correctly it stays in the samne state it
was at before the broswer was closed. Its as if the tag lib is being cached
somewhere.

Does anyone know wether 4.1.12 introduced anything that new that could be
causing it.

Also in this new version I sometimes get jasper exceptions after I redeploy
an application, but this goes away usually if i jhust hit refresh in the
browser.

I tested it in Tomcat 4.0.X and it works fine.

Has anyone else experienced this problem?

Thanks

Rob

--
To unsubscribe, e-mail:
mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail:
mailto:tomcat-user-help;jakarta.apache.org



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




RE: Unable to get JSP to run - Tomcat 4.0.6

2002-10-15 Thread Dan Payne

I've actually gone through that book. It was my introduction to JSP and at
the end of the book, STRUTS.  It's been a life saver.

Regarding your problem:
Did you install the begjsp-ch01 context using the manager app or by shutting
down and then restarting tomcat?

Welcome to JSP,

Dan

-Original Message-
From: rdevine [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 15, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: Unable to get JSP to run - Tomcat 4.0.6


Hello all.  I'm not sure this is the right place to ask but being new to
JSP I'll give it a shot and thanks in advance for any help you can
supply.

I am running winXP - Home.  jdk1.3.1_02
Installed tomcat4.0.6 without any problems.  Changed config as follows :
JAVA_HOME = c:\jdk1.3.1_02
CATALINA_HOME = c:\jakarta-tomcat-4.0.6
CLASSPATH = c:\jakarta-tomcat-4.0.6\common\lib\servlet.jar;.
PATH = added to existing path c:jdk1.3.1_02


http://localhost:8080/index.html gives me the Tomcat page.  I am able to
execute the JSP examples without problem.

When I create my own .jsp file (simple one) in
c:\jakarta-tomcat-4.0.6\webapps\begjsp-ch01\index.jsp, set the address
to http://localhost:8080/begjsp-ch01/index.jsp  I receive the error
message :

404 - webapps/index.jsp
  type Status report

 message /webapps/indx.jsp

 description The requested resource (/webapps/indx.jsp) is not
available.

JSP/HTML code -

html

head

titleMy First JSP/title

/head

body

Hello World!br

the current date and time is %= new java.util.Date() %

/body

/html

I have checked and double, triple checked all spellings, syntax in the
.jsp file and the config settings and cannot find anything different
from what is in the text I am using (on my own, Beginning JSP Web
Development - WROX.)  Java has been working fine since the beginning of
the year.

Any suggestions will be GREATLY appreciated as I am at a standstill.

Bob Devine



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Exception starting filter Security Filter

2002-10-15 Thread Dan Payne

Thanks, Volker, for all the help.  I finaly got the goahead to upgrade to TC
4.1.12 from 4.0 and now everything is running smoothly.

-Dan

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not
work. I found a solution for my problem but I am not sure if it also
applies to yours, Dan. Sorry for not sharing my knowledge until now, but
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I
somehow forgot to put back the original, so I tricked myself and
believed it would work. But what I found out is, that in my version of
Tomcat (4.0.3) common/lib is defined as endorsed in
bin/setclasspath.bat (for the endorsed standards override mechanism see
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the
effect, that all jars in this directory are loaded by the bootstrap
class loader (at least in J2SE 1.4). You can verify this by printing out
the value of the java.endorsed.dirs system property. There you will
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate
endorsed directory in $CATALINA_HOME/common. All jars from common/lib
are then normally loaded by the common class loader. I have no idea why
the 4.0 version marks the common/lib directory as endorsed but in my
opinon, it is a bug, since it undermines the expected class loader
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you
look at the source code you can see that it does not take into account
that Class.getClassLoader can return null. This is exactly what happens
in your case, Dan. The class loader that loads LogFactory is the
bootstrap class loader. Check where your commons-logging.jar is located.
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database,
but interestingly it is marked RESOLVED. I should reopen that again.

Regards,
Volker

Dan Payne wrote:

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but
to
no avail.  It appears, by looking at the local_host log, that the package
is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the
CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie



-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: Exception starting filter Security Filter


I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed
JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my
commons-logging to
1.0.2 to see if that helps, but to no avail (although it did
change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an
exception is thrown
when I try to boot up the tomcat instance. It apears in the
localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and
i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added
certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]:
Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class
repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002

RE: Exception starting filter Security Filter

2002-10-14 Thread Dan Payne

Volker, thanks for the informative email.  I only wish I could upgrade to
4.1 and solve this problem.  Hopefully we'll be ready to do that soon.  In
the meantime, you suggest that my commons-logging.jar might be in the wrong
place.  What would be the right place?  I've tried quite a few combinations
but to no avail.  What do you think?

-Dan

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not
work. I found a solution for my problem but I am not sure if it also
applies to yours, Dan. Sorry for not sharing my knowledge until now, but
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I
somehow forgot to put back the original, so I tricked myself and
believed it would work. But what I found out is, that in my version of
Tomcat (4.0.3) common/lib is defined as endorsed in
bin/setclasspath.bat (for the endorsed standards override mechanism see
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the
effect, that all jars in this directory are loaded by the bootstrap
class loader (at least in J2SE 1.4). You can verify this by printing out
the value of the java.endorsed.dirs system property. There you will
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate
endorsed directory in $CATALINA_HOME/common. All jars from common/lib
are then normally loaded by the common class loader. I have no idea why
the 4.0 version marks the common/lib directory as endorsed but in my
opinon, it is a bug, since it undermines the expected class loader
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you
look at the source code you can see that it does not take into account
that Class.getClassLoader can return null. This is exactly what happens
in your case, Dan. The class loader that loads LogFactory is the
bootstrap class loader. Check where your commons-logging.jar is located.
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database,
but interestingly it is marked RESOLVED. I should reopen that again.

Regards,
Volker

Dan Payne wrote:

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but
to
no avail.  It appears, by looking at the local_host log, that the package
is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the
CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie



-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: Exception starting filter Security Filter


I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed
JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my
commons-logging to
1.0.2 to see if that helps, but to no avail (although it did
change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an
exception is thrown
when I try to boot up the tomcat instance. It apears in the
localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and
i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added
certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]:
Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
Loading container
servlet

RE: Exception starting filter Security Filter

2002-10-10 Thread Dan Payne

Thanks, Volker.  Very informative.  I'll do a little investigating on my end
and let you know what I find out.

Thanks again.

-Dan

-Original Message-
From: Volker Leidl [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 10, 2002 3:14 AM
To: Tomcat Users List
Subject: Re: Exception starting filter Security Filter


Hi!

In fact I was wrong in my last post. As I found out later, it did not
work. I found a solution for my problem but I am not sure if it also
applies to yours, Dan. Sorry for not sharing my knowledge until now, but
it did not seem to interest anyone ;)

During debugging I used a hacked version of the logging package and I
somehow forgot to put back the original, so I tricked myself and
believed it would work. But what I found out is, that in my version of
Tomcat (4.0.3) common/lib is defined as endorsed in
bin/setclasspath.bat (for the endorsed standards override mechanism see
http://java.sun.com/j2se/1.4/docs/guide/standards/). This has the
effect, that all jars in this directory are loaded by the bootstrap
class loader (at least in J2SE 1.4). You can verify this by printing out
the value of the java.endorsed.dirs system property. There you will
find all your jars from common/lib.

I solved the problem by switching to 4.1, where there is a separate
endorsed directory in $CATALINA_HOME/common. All jars from common/lib
are then normally loaded by the common class loader. I have no idea why
the 4.0 version marks the common/lib directory as endorsed but in my
opinon, it is a bug, since it undermines the expected class loader
hierarchy.

Furthermore the implementation of LogFactory is also buggy. When you
look at the source code you can see that it does not take into account
that Class.getClassLoader can return null. This is exactly what happens
in your case, Dan. The class loader that loads LogFactory is the
bootstrap class loader. Check where your commons-logging.jar is located.
It is perhaps at some position where it should not be.

There is a bug report for this exact issue in the Apache bug database,
but interestingly it is marked RESOLVED. I should reopen that again.

Regards,
Volker

Dan Payne wrote:

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but
to
no avail.  It appears, by looking at the local_host log, that the package
is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the
CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie



-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 1:56 PM
To: [EMAIL PROTECTED]
Subject: Exception starting filter Security Filter


I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed
JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my
commons-logging to
1.0.2 to see if that helps, but to no avail (although it did
change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an
exception is thrown
when I try to boot up the tomcat instance. It apears in the
localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and
i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added
certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]:
Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class
repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002-10-09

Exception starting filter Security Filter

2002-10-09 Thread Dan Payne

I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
sourceforge.net, which is a pseudo container managed JDBC/MySQL security
realm. it's all running on win2000. i've also upgraded my commons-logging to
1.0.2 to see if that helps, but to no avail (although it did change the
stack trace).


Here's the problem: it works fine when i deploy it in
%CATALINA_HOME\webapps\ROOT, but if i try to deploy any app in a tomcat
instance, for example %CATALINA_BASE\webapps\ROOT, an exception is thrown
when I try to boot up the tomcat instance. It apears in the localhost log,
whose excerpt follows: (additionaly, it may be a problem with the
commons-logging. if anyone can tell, please let me know and i'll readress
the issue with the appropriate party)

Thanks, all.

-Dan


2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class repositories to
work directory C:\contexts\sotx\work\Standalone\localhost\manager
2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
generator class java.security.SecureRandom
2002-10-09 12:16:34 StandardManager[/manager]: Seeding of random number
generator has been completed
2002-10-09 12:16:34 ContextConfig[/manager]: Added certificates - request
attribute Valve
2002-10-09 12:16:34 ContextConfig[/manager]: Configured an authenticator for
method BASIC
2002-10-09 12:16:35 StandardWrapper[/manager:default]: Loading container
servlet default
2002-10-09 12:16:35 default: init
2002-10-09 12:16:35 StandardWrapper[/manager:invoker]: Loading container
servlet invoker
2002-10-09 12:16:35 invoker: init
2002-10-09 12:16:35 jsp: init
2002-10-09 12:16:35 WebappLoader[]: Deploying class repositories to work
directory C:\contexts\sotx\work\Standalone\localhost\_
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR /WEB-INF/lib/adrotate.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\adrotate.jar
2002-10-09 12:16:35 WebappLoader[]: Deploy JAR /WEB-INF/lib/catalina.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\catalina.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-beanutils.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-collections.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-collections.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-digester.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-digester.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
/WEB-INF/lib/commons-logging.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-logging.jar
2002-10-09 12:16:36 WebappLoader[]: Deploy JAR /WEB-INF/lib/dbtags.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\dbtags.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/jakarta-oro.jar
to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
/WEB-INF/lib/jakarta-regexp.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-regexp.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/mailer.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\mailer.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/pager-taglib.jar
to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\pager-taglib.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
/WEB-INF/lib/securityfilter.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\securityfilter.jar
2002-10-09 12:16:37 WebappLoader[]: Deploy JAR /WEB-INF/lib/struts.jar to
C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\struts.jar
2002-10-09 12:16:38 WebappLoader[]: Reloading checks are enabled for this
Context
2002-10-09 12:16:38 StandardManager[]: Seeding random number generator class
java.security.SecureRandom
2002-10-09 12:16:38 StandardManager[]: Seeding of random number generator
has been completed
2002-10-09 12:16:39 ContextConfig[]: Added certificates - request attribute
Valve
2002-10-09 12:16:39 StandardContext[]: Exception starting filter Security
Filter
org.apache.commons.logging.LogConfigurationException:
java.lang.NullPointerException
at org.apache.commons.logging.LogFactory.newFactory(LogFactory.java:558)
at org.apache.commons.logging.LogFactory.getFactory(LogFactory.java:355)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.commons.digester.Digester.init(Digester.java:310)
at
org.securityfilter.config.SecurityConfig.loadConfig(SecurityConfig.java:206)
at org.securityfilter.filter.SecurityFilter.init(SecurityFilter.java:206)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilter
Config.java:254)
at
org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFil
terConfig.java:314)
at
org.apache.catalina.core.ApplicationFilterConfig.init(ApplicationFilterCon
fig.java:120)
at
org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:30
77)
at

RE: Exception starting filter Security Filter

2002-10-09 Thread Dan Payne

Thanks for the response, Charlie, but it appears our problems are actuall
different.  I went ahead and tried the solutions prescribed to Volker but to
no avail.  It appears, by looking at the local_host log, that the package is
being found, and the classes loaded no problem.

The only thing that is different between my webapps where an exception is
not throw and is thrown is that the ones that don't throw the exception are
a part of the original tomcat install and the ones that do throw the
exception reside within additional tomcat instances, using the CATALINA_BASE
env. variable.

-Dan

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 09, 2002 3:38 PM
To: 'Tomcat Users List'
Subject: RE: Exception starting filter Security Filter


someone else had this problem a last week.

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg68531.html

Charlie

 -Original Message-
 From: Dan Payne [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 09, 2002 1:56 PM
 To: [EMAIL PROTECTED]
 Subject: Exception starting filter Security Filter


 I'm using TC 4.0.4, j2sdk1.4.0_01 and the securityfilter from
 sourceforge.net, which is a pseudo container managed
 JDBC/MySQL security
 realm. it's all running on win2000. i've also upgraded my
 commons-logging to
 1.0.2 to see if that helps, but to no avail (although it did
 change the
 stack trace).


 Here's the problem: it works fine when i deploy it in
 %CATALINA_HOME\webapps\ROOT, but if i try to deploy any app
 in a tomcat
 instance, for example %CATALINA_BASE\webapps\ROOT, an
 exception is thrown
 when I try to boot up the tomcat instance. It apears in the
 localhost log,
 whose excerpt follows: (additionaly, it may be a problem with the
 commons-logging. if anyone can tell, please let me know and
 i'll readress
 the issue with the appropriate party)

 Thanks, all.

 -Dan


 2002-10-09 12:16:34 WebappLoader[/manager]: Deploying class
 repositories to
 work directory C:\contexts\sotx\work\Standalone\localhost\manager
 2002-10-09 12:16:34 StandardManager[/manager]: Seeding random number
 generator class java.security.SecureRandom
 2002-10-09 12:16:34 StandardManager[/manager]: Seeding of
 random number
 generator has been completed
 2002-10-09 12:16:34 ContextConfig[/manager]: Added
 certificates - request
 attribute Valve
 2002-10-09 12:16:34 ContextConfig[/manager]: Configured an
 authenticator for
 method BASIC
 2002-10-09 12:16:35 StandardWrapper[/manager:default]:
 Loading container
 servlet default
 2002-10-09 12:16:35 default: init
 2002-10-09 12:16:35 StandardWrapper[/manager:invoker]:
 Loading container
 servlet invoker
 2002-10-09 12:16:35 invoker: init
 2002-10-09 12:16:35 jsp: init
 2002-10-09 12:16:35 WebappLoader[]: Deploying class
 repositories to work
 directory C:\contexts\sotx\work\Standalone\localhost\_
 2002-10-09 12:16:35 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/adrotate.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\adrotate.jar
 2002-10-09 12:16:35 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/catalina.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\catalina.jar
 2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/commons-beanutils.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-beanutils.jar
 2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/commons-collections.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-collections.jar
 2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/commons-digester.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-digester.jar
 2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/commons-logging.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\commons-logging.jar
 2002-10-09 12:16:36 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/dbtags.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\dbtags.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/jakarta-oro.jar
 to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-oro.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/jakarta-regexp.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\jakarta-regexp.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/mailer.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\mailer.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/pager-taglib.jar
 to C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\pager-taglib.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/securityfilter.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\securityfilter.jar
 2002-10-09 12:16:37 WebappLoader[]: Deploy JAR
 /WEB-INF/lib/struts.jar to
 C:\contexts\sotx\webapps\ROOT\WEB-INF\lib\struts.jar
 2002-10-09 12:16:38 WebappLoader[]: Reloading checks are
 enabled for this
 Context
 2002-10-09 12:16:38 StandardManager[]: Seeding random number
 generator class
 java.security.SecureRandom
 2002-10-09 12:16:38 StandardManager[]: Seeding of random
 number generator
 has been completed

RE:[OT] tomcat stopped serving out pictures

2002-09-30 Thread Dan Payne

Yep.  I've run into the same problem and it's been frustrating as hell.  The
problem seems to be specific to IE (I'm using 6.0.2800.1106, SP1). I've
tested with Opera and Netscape and they get the images just fine.  IE has
also been unable to parse some of the--apparently--footer information
appended to javascript include files, causing nasty javascript errors.
Hopefully this will be resolved in a Micro$oft update, but who knows?  Did
you discover anything new about this?

-Dan

-Original Message-
From: Jason Johnston [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 11:50 AM
To: [EMAIL PROTECTED]
Subject: tomcat stopped serving out pictures


Ok, this is a very strange problem.  My tomcat engine appears to be running
fine and the problem seems to be isolated to IE.  If you use the address of
the picture itself like http://localhost:8080/jakarta-banner.gif

The picture comes out fine.  However, http://localhost:8080/index.html
results in none of the pictures in the page being found.  This is most
likely an IE problem but I've never encountered it before and now it seems
to be persistent.  I've cleared my cache and deleted all offline content but
I'm still running into the problem.

Has anyone else ever witnessed this behavior.


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: override the class location of WEB-INF?

2002-09-25 Thread Dan Payne

I believe as long as your class begins with package
com.companyname.util.Helper it does not matter where the file physically
resides.

-Dan

-Original Message-
From: Paul Tomsic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 25, 2002 5:20 PM
To: [EMAIL PROTECTED]
Subject: override the class location of WEB-INF?


Is it possible to override the location of where the
class files reside for Tomcat4.1.10 ?

for instance, I'd like to (from a JSP page)

call a useBean on com.companyname.util.Helper

but I'd like Helper.class
to reside in
/usr/local/tomcat/webapps/myapp/MYCLASSES/com/companyname/util/Helper.class

is this possible?

thanks,
Paul




__
Do you Yahoo!?
New DSL Internet Access from SBC  Yahoo!
http://sbc.yahoo.com

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Tomcat appending garbage to files ending in .js

2002-09-12 Thread Dan Payne

Here's the entry a request for the file produces in my log:

207.200.54.58 - - [12/Sep/2002:13:02:44 -0600] GET /include/functions.js
HTTP/1.1 304 -

I'm really not understanding this.  If you'd like to test run it, access:

http://216.65.197.44/include/functions.js

The odd thing is is that it doesn't do this on all my computers.  Works fine
on my Win2000 desktop with IE 6.0.2600. (no  updates) and not my Win2000
laptop with IE 6.0.2600., updates (Q321232, Q323759).  Anybody know
what's going on here?

The log entry for my computer it does work for is either one of these two:

207.200.54.58 - - [12/Sep/2002:13:14:17 -0600] GET /include/functions.js
HTTP/1.1 304 -
207.200.54.58 - - [12/Sep/2002:13:14:17 -0600] GET /include/functions.js
HTTP/1.1 200 423

Weird.

-Dan

-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 11, 2002 9:26 PM
To: [EMAIL PROTECTED]
Subject: Tomcat appending garbage to files ending in .js


All,

I've got a JSP with an embedded Javascript Source File request.  When Tomcat
(4.0.4) serves up the file, it appends this to the end of the file:

/*HTTP/1.1 200 OK Content-Length: 0 Date: Thu, 12 Sep 2002 02:13:50 GMT
Server: Apache Tomcat/4.0 (HTTP/1.1 Connector)

It's causing my browser to throw some nasty javascript errors. And if I
rename the file with an extension other than .js, it seems to work fine.

Anybody?


Example below:

html
head
titleProblem/title
script language=JavaScript src=/include/functions.js/script
/head
body
foo
/body
/html


--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Tomcat appending garbage to files ending in .js

2002-09-11 Thread Dan Payne

All,

I've got a JSP with an embedded Javascript Source File request.  When Tomcat
(4.0.4) serves up the file, it appends this to the end of the file:

/*HTTP/1.1 200 OK Content-Length: 0 Date: Thu, 12 Sep 2002 02:13:50 GMT
Server: Apache Tomcat/4.0 (HTTP/1.1 Connector)

It's causing my browser to throw some nasty javascript errors. And if I
rename the file with an extension other than .js, it seems to work fine.

Anybody?


Example below:

html
head
titleProblem/title
script language=JavaScript src=/include/functions.js/script
/head
body
foo
/body
/html


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Error with Tomcat 4.1.0

2002-09-06 Thread Dan Payne

I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.  I'm
also using Struts. Evrything worked fine under the older tomcat and previous
versions, but since the upgrade, all my action mappings are returning a No
action instance for path /home could be created error.  Anybody?


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error with Tomcat 4.1.10

2002-09-06 Thread Dan Payne

There was indeed a type.  Using 4.1.10.

-Original Message-
From: Han Ming Ong [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:54 PM
To: Tomcat Users List
Subject: Re: Error with Tomcat 4.1.0


They just released 4.1.10-stable. Unless there is a typo in your mail,
you might want to try this first:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/


On Friday, September 6, 2002, at 04:36  PM, Dan Payne wrote:

 I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.
  I'm
 also using Struts. Evrything worked fine under the older tomcat and
 previous
 versions, but since the upgrade, all my action mappings are returning
 a No
 action instance for path /home could be created error.  Anybody?


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Error with Tomcat 4.1.10

2002-09-06 Thread Dan Payne

Got it. User error.

-Original Message-
From: Dan Payne [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 7:08 PM
To: Tomcat Users List
Subject: RE: Error with Tomcat 4.1.10


There was indeed a type.  Using 4.1.10.

-Original Message-
From: Han Ming Ong [mailto:[EMAIL PROTECTED]]
Sent: Friday, September 06, 2002 6:54 PM
To: Tomcat Users List
Subject: Re: Error with Tomcat 4.1.0


They just released 4.1.10-stable. Unless there is a typo in your mail,
you might want to try this first:

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.1.10/


On Friday, September 6, 2002, at 04:36  PM, Dan Payne wrote:

 I've just upgraded to the latest release of Tomcat (4.1.0) from 4.0.4.
  I'm
 also using Struts. Evrything worked fine under the older tomcat and
 previous
 versions, but since the upgrade, all my action mappings are returning
 a No
 action instance for path /home could be created error.  Anybody?


 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




j_security_check

2002-08-28 Thread Dan Payne

All,

Using TC4.0.4 with JDBC Realm.  Everything works fine but I'm trying to
write a servlet to act as the form-login-page.

If the servlet gets the username and password and then redirects to
/j_security_check, obviously I get a Invalid direct reference to form login
page.  As I know what the page is that I need TC to send the client to upon
successful authentication, how do I pass this on to the realm? I guess what
I'm trying to ask is how do I artificially set the protected url-pattern
such that if a user tries to log in without trying to access a protected
page, I can insert that access to the request.

Any help appreciated.

-Dan



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]