RE: classpaths again

2002-10-18 Thread Cox, Charlie
what error are your getting? -Original Message- From: Sam Seaver [mailto:samseaver;hotmail.com] Sent: Wednesday, October 16, 2002 8:12 PM To: [EMAIL PROTECTED] Subject: Re: classpaths again No I'm importing it in the JSP tag %@page import sam.xml.* % S JC Rules

RE: IllegalStateException Error

2002-10-18 Thread Cox, Charlie
ok, several problems here: 1. place a 'return;' after your sendRedirect() 2. remove unintended whitespace from your jsp: change % jsp:forward page=daily.jsp/jsp:forward % to %jsp:forward page=daily.jsp/jsp:forward% 3. post your error messages with stack trace. I happen

RE: loading class

2002-10-18 Thread Cox, Charlie
put it in the WEB-INF/classes directory and your serlvet should be able to find it. Charlie -Original Message- From: Marek Majtan [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 17, 2002 12:13 PM To: [EMAIL PROTECTED] Subject: loading class I cant't load class in Tomcat.

RE: tomcat match *.jsp first everything else to my servlet?

2002-10-18 Thread Cox, Charlie
I thought the most descriptive definition would get the mapping. Maybe its the last match. Have you tried reversing the order of your servlet mappings? Charlie -Original Message- From: Thomas Heller [mailto:th.heller;mx4k.com] Sent: Friday, October 18, 2002 6:22 AM To: Tomcat Users

RE: No jars allowed in the WEB-INF/lib directory

2002-10-18 Thread Cox, Charlie
This was posted on another thread(socket permission catalina.policy question) by Erik Erskine - see if its is related: http://nagoya.apache.org/bugzilla/show_bug.cgi?id=7319 Charlie -Original Message- From: Gustavo Antonio Muñoz Lechuga [mailto:gmunoz;interware.com.mx] Sent:

RE: Class Loader ignoring WEB-INF classes

2002-10-18 Thread Cox, Charlie
which version of tomcat? what's the error message? are you using catalina.policy, if so did you allow the WEB-INF/classes directory? Charlie -Original Message- From: Greg Bullough [mailto:gwb;outofchaos.com] Sent: Friday, October 18, 2002 11:57 AM To: Tomcat Users List Subject:

RE: Class Loader ignoring WEB-INF classes

2002-10-18 Thread Cox, Charlie
: RE: Class Loader ignoring WEB-INF classes At 12:43 PM 10/18/02 -0400, Cox, Charlie wrote: are you using catalina.policy, if so did you allow the WEB-INF/classes directory? Thanks Charlie! That's it! What's the protocol for getting a hyperlink to security policies added

RE: Admin/Manager problems

2002-10-21 Thread Cox, Charlie
did you restart tomcat after changing tomcat-users file? -Original Message- From: James D. Whittington [mailto:jim;whittington.com] Sent: Sunday, October 20, 2002 10:34 AM To: [EMAIL PROTECTED] Subject: Admin/Manager problems Ok here it goes... I am a real newbie to java and

RE: TOMCAT MANAGER-APP and WARP CONNECTOR PROBLEM

2002-10-21 Thread Cox, Charlie
you want to access them as http://localhost/manager. You need to make sure you define the manager app under your warp connector. Charlie -Original Message- From: Fabio Marsilio [mailto:fmarsilio;veniceplaza.net] Sent: Monday, October 21, 2002 6:56 AM To: Tomcat Users List Subject:

RE: Help with Filters

2002-10-25 Thread Cox, Charlie
the filter is only applied on teh original request, not for forward() or include() /* will match all files /mydir/* will only match the files in /mydir *.do will match all 'do' files - reguardless of path /*.do - invalid, you cannot mix path and wildcard. Charlie -Original Message-

RE: Tomcat 4.1.12 ClassNotFoundException

2002-10-25 Thread Cox, Charlie
sounds like you need to allow the WEB-INF/classes permission in your catalina.policy file Charlie -Original Message- From: Jeremy Cavagnolo [mailto:jcavagnolo;hotmail.com] Sent: Wednesday, October 23, 2002 12:31 PM To: [EMAIL PROTECTED] Subject: Tomcat 4.1.12 ClassNotFoundException

RE: tomcat classloader bug

2002-10-28 Thread Cox, Charlie
is the Session object loaded by 'Mailer.envCtx.lookup()' loaded in the same classloader? do you have a different version of javamail in your WEB-INF/lib that is passed to a class in /common/lib where the version shipped with tomcat is loaded? Charlie -Original Message- From: Garrett

RE: Shared Class Loader (4.0.5) and (4.1.12) Win 2K

2002-10-28 Thread Cox, Charlie
did you restart tomcat after movig it to /tomcat/lib? are you using it for a JdbcRealm in 4.1.12? If so, you need to put it in /common/lib so that the tomcat internal classes can access it along with your web app. Charlie -Original Message- From: Curley, Thomas

RE: filter-mapping,process /* except /x?

2002-10-28 Thread Cox, Charlie
there is no way. you will have to do that in your filter. you could apply your filter to subdirectories individually instead of /* and leave your login page in the root or in an unmapped directory. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:rhodespc;telerama.com]

RE: shared jars amongst web apps.

2002-10-29 Thread Cox, Charlie
sounds like you want each webapp to have its own instance of statics,singletons,etc within your jar. In order to do this, you will need to copy the jar into each WEB-INF/lib where it is needed (and allow each with catalina.policy if applicable) Charlie -Original Message- From: Frank

RE: Is CLASSPATH ignored ?

2002-10-29 Thread Cox, Charlie
yes, classpath is ignored. you must put them in /WEB-INF/lib for each application or in /common/lib if you want to share them between apps. database jars need to be in /common/lib to be visible to tomcat's classes and also your webapps. Charlie -Original Message- From: Sinclair, Alan

RE: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-31 Thread Cox, Charlie
the problem would be knowing where to insert those lines. You sometimes need to do things before writing to the output stream(response encoding,etc), so it can't just go at the top of the file in all cases. This is why the include is available. You could use a filter to use

RE: Search engines and MVC--to clarify

2002-10-31 Thread Cox, Charlie
you can use lucene to index whatever you want. You have to create your own 'crawler'(I think some have been contributed). It is very flexible in that your indexed data does NOT have to be(but can be) web pages. http://jakarta.apache.org/lucene Charlie -Original Message- From: Felipe

RE: Do you tell me how..........................?

2002-10-31 Thread Cox, Charlie
the default servelt invoker is disabled by default in /conf/web.xml for security reasons. you can enable this or create your own mapping for your servlet in /WEB-INF/web.xml Charlie -Original Message- From: Correo [mailto:hefperez;ar.inter.net] Sent: Wednesday, October 30, 2002 8:15 AM

RE: Tomcat Xerces Issue.

2002-10-31 Thread Cox, Charlie
, Which bit of which spec are you referring to? It sounds strange to me that a webapp is not allowed to use any version of any parser it wants to. Steve Slatcher Cox, Charlie wrote: this was done to enforce the spec. It was added in later and the doc was probably overlooked. you can

RE: Tomcat on Thru64 Unix (OSF1)

2002-10-31 Thread Cox, Charlie
the default servlet invoker is disabled by default in conf/web.xml. Either enable it or create your own servlet mapping in WEB-INF/web.xml -Original Message- From: Denys Sene dos Santos [mailto:sene;cptec.inpe.br] Sent: Thursday, October 31, 2002 6:52 AM To: Tomcat Users List

RE: packages

2002-10-31 Thread Cox, Charlie
-Original Message- From: Andy Wickson [mailto:andy;awtech.co.uk] Sent: Thursday, October 31, 2002 7:57 AM To: Tomcat Users List Subject: packages Hi all, If I put a servlet called Hello.class into a package called com.myco.test and have a suitable dir structure under

RE: Alias vs VirtualHost - which is better for me ?

2002-10-31 Thread Cox, Charlie
depends on your goal. If both hostnames are doing the same things in all cases you should use Alias to prevent multiple copies of everything from running. If you have different contexts, logfiles, etc for each then you should use multiple host elements. Charlie -Original Message- From:

RE: VirtualHosts and tomcat

2002-10-31 Thread Cox, Charlie
sessions are unique to the virtual hosts. You will have to maintain the session information yourself through a common database, or use different contexts instead of virtual hosts. If you don't want to use tomcat's built-in authentication, you can use a filter to enforce login before accessing

RE: keeping user logged in using j_security_check

2002-10-31 Thread Cox, Charlie
I don't think so. The whole point of the j_security is to protect resources and the filter is a resource(it can abort the request mapping chain and return a response itself). A valve may let you do it. I haven't worked with valves. Charlie -Original Message- From: Guru Mandavia

RE: [Win32] Tomcat 5.0 -- JavaSDK problem

2002-11-01 Thread Cox, Charlie
I'm not sure which jasper TC5 is using, but maybe this thread can help. http://www.mail-archive.com/tomcat-user;jakarta.apache.org/msg57664.html Charlie -Original Message- From: Ralph Einfeldt [mailto:ralph.einfeldt;uptime-isc.de] Sent: Friday, November 01, 2002 8:20 AM To: Tomcat

RE: The requested resource (/BookSource/DispatchServlet) is not available.

2002-11-01 Thread Cox, Charlie
you need a servlet-mapping(after servlet) in your web.xml. Your class is in the correct place.try servlet-mapping servlet-nameDispatchServlet/servlet-name url-pattern/BookStore/DispatchServlet/url-pattern /servlet-mapping this may just be your email, but 'web-inf' should be

RE: The disappearing classpath

2002-11-01 Thread Cox, Charlie
you will also want to review the classloader doc http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html Charlie -Original Message- From: Jacob Kjome [mailto:hoju;visi.com] Sent: Friday, November 01, 2002 3:33 PM To: Tomcat Users List; [EMAIL PROTECTED] Subject: Re:

RE: Tomcat and CLASSPATH

2002-11-04 Thread Cox, Charlie
can't you just have ant copy the modified classes(or jar) to WEB-INF? -Original Message- From: Chris gokey [mailto:cgokey;gcmd.nasa.gov] Sent: Monday, November 04, 2002 10:34 AM To: 'Tomcat Users List' Subject: RE: Tomcat and CLASSPATH We never run Tomcat as root so this is

RE: Tomcat and CLASSPATH

2002-11-05 Thread Cox, Charlie
-Original Message- From: Chris gokey [mailto:cgokey;gcmd.nasa.gov] Sent: Tuesday, November 05, 2002 9:25 AM To: 'Tomcat Users List' Subject: RE: Tomcat and CLASSPATH Thanks Justin. Yes, I think you understand me correctly. I think the easiest way to handle a problem like

RE: Tomcat and CLASSPATH

2002-11-05 Thread Cox, Charlie
I wouldn't mind a 'common-file-separate-instance' directory where each application (as allowed in some manner(web.xml?)) could load *separate instances* of a jar/class file that resides in the same loaction. This would avoid the duplication of such libraries that should not share instances. I

RE: WEB.XML and TOMCAT v.4.0.6 reading error

2002-11-07 Thread Cox, Charlie
try adding a leading / to your filter-mapping: url-pattern/ca/servlet/*/url-pattern Charlie -Original Message- From: jjnfg [mailto:jjnfg;yahoo.com] Sent: Wednesday, November 06, 2002 8:42 PM To: [EMAIL PROTECTED] Subject: WEB.XML and TOMCAT v.4.0.6 reading error

RE: Class Path and New Context

2002-11-07 Thread Cox, Charlie
-Original Message- From: Turner, John [mailto:JTurner;AAS.com] Sent: Thursday, November 07, 2002 2:28 PM To: 'Tomcat Users List' Subject: RE: Class Path and New Context -Original Message- From: [EMAIL PROTECTED] [mailto:developer;wexwarez.com] Sent: Thursday,

RE: WAR classloading

2002-11-08 Thread Cox, Charlie
a WAR is a complete web application. If you upload a WAR and place it in \tomcat\webapps, you could then install it via manager and have it available(until tomcat is shutdown). just don't let your upload process get out or you will have a major security hole. it sounds like you just want a jar.

RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Cox, Charlie
actually this should work. I have used install with a context(not a war). you have to play around with the path to get it exactly right. I would expect it to work with a war as well. I don't recall the exact syntax, but I did get it working by referencing the manager howto. I think Tom read it as

RE: System user accounts required to use manager in 4.1.12?

2002-11-08 Thread Cox, Charlie
my apologies, saw your reply before your original post... I haven't tried a remote war file Charlie -Original Message- From: Cox, Charlie [mailto:ccox;cincom.com] Sent: Friday, November 08, 2002 11:13 AM To: 'Tomcat Users List' Subject: RE: System user accounts required to use

RE: filter doesn't work at Tomcat4.1.12!?

2002-11-12 Thread Cox, Charlie
if your filter is not being called, then the mapping is probably not correct. Please provide the relevant portions of your web.xml. Also provide the url that your are using for testing. You can change names to protect the innocent. did you look in the logs to see if there are any messages?

RE: Contribution to the running.txt file for thje admin and manager web apps.

2002-11-15 Thread Cox, Charlie
file this as an enhancement in bugzilla. This is the best way to make sure it is not overlooked. Charlie -Original Message- From: Sriram N [mailto:sriramx_2000;yahoo.com] Sent: Saturday, November 09, 2002 11:20 AM To: [EMAIL PROTECTED] Subject: Contribution to the running.txt file

RE: Re: why Tomcat 4.0.4 creates new instance of servlet, when applet make first request to servlet?

2002-11-18 Thread Cox, Charlie
set load-on-startup in web.xml for your servlet. This will call init() when tomcat is started as opposed to the first call. Are your applet and browser calling the same url? If you defined multiple servlet definitions for your servlet in web.xml you will get separate instances. Also if you have

RE: Can all vhosts share one Webapp?

2002-11-18 Thread Cox, Charlie
-Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Sunday, November 17, 2002 8:42 PM To: Tomcat Users List Subject: Re: Can all vhosts share one Webapp? On Sun, 17 Nov 2002, Brandon Cruz wrote: Date: Sun, 17 Nov 2002 16:46:44 -0600 From:

RE: Tomcat Xerces Issue.

2002-11-18 Thread Cox, Charlie
: Wednesday, October 30, 2002 9:26 AM To: Tomcat Users List Subject: Re: Tomcat Xerces Issue. Hi Charlie, Which bit of which spec are you referring to? It sounds strange to me that a webapp is not allowed to use any version of any parser it wants to. Steve Slatcher Cox

RE: Possible to subclass a web application?

2002-11-18 Thread Cox, Charlie
Put all yout common code in one context, make a context available for it in each virtual host. Then create a context-specific directory(named the same in all hosts) that contains header.jsp,etc that are specific to each host. Charlie -Original Message- From: Turoff, Steve

RE: proper use of servlet contexts

2002-11-18 Thread Cox, Charlie
you have to identify your context somehow so that it knows which context you want, so you need a real path to specify it. Within each context I create a virtual directory(servlet mapping) so that I can specify any filename in the directory and it will always go to my servlet. This works great for

RE: What is the name of Class Loader in Tomcat 4.1.x

2002-11-18 Thread Cox, Charlie
WebAppClassloader is the classloader used for webapps and StandardClassLoader is used for common,shared, and server classloaders. You probably want the whole source since they reference other classes. It's not that big. Charlie -Original Message- From: aps olute [mailto:[EMAIL

RE: Manager application - quick question

2002-11-18 Thread Cox, Charlie
both are safe. reload will be faster(one command vs two), but start/stop will allow web.xml to be read again. Charlie -Original Message- From: Renato [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 1:30 PM To: [EMAIL PROTECTED] Subject: Manager application - quick

RE: Tomcat 4.12 no longer likes my admin directory.

2002-11-19 Thread Cox, Charlie
you may be in conflict with the new admin feature of 4.1.x. I'm not on 4.1.x yet, so I'm not sure how its implemented. Charlie -Original Message- From: Colic, Alex [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 3:29 PM To: 'Jano'; Tomcat Users List Subject: RE: Tomcat

RE: Tomcat 4.12 no longer likes my admin directory.

2002-11-19 Thread Cox, Charlie
web app? Alex -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 10:47 AM To: 'Tomcat Users List' Subject: RE: Tomcat 4.12 no longer likes my admin directory. you may be in conflict with the new admin feature of 4.1.x. I'm

RE: Loading properties file for an external class

2002-11-20 Thread Cox, Charlie
you may want to try ServletContext.getResourceAsStream() getServletContext().getResourceAsStream(/WEB-INF/classes/myprop.properties ); Charlie -Original Message- From: Klein, Scott @ TW [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 19, 2002 7:37 PM To: 'Tomcat Users List'

RE: XML parser

2002-11-20 Thread Cox, Charlie
do not put xerces.jar in WEB-INF/lib. It will not work there since it is already in /common/lib. Tomcat comes with Xerces already, so unless you need functionality not contained in the provided xerces.jar, you don't have to do anything. if you need a newer version, replace the one in /common/lib.

RE: hi

2002-11-20 Thread Cox, Charlie
check out the application developer's guide http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 3:26 AM To: [EMAIL PROTECTED] Subject: hi hi i wnt

RE: Manager--hangs during clean up

2002-11-20 Thread Cox, Charlie
which version? there was a deadlock problem in 4.0.1 to 4.0.3, but it was fixed in 4.0.4. Charlie -Original Message- From: Michele Emmi [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 20, 2002 3:18 PM To: [EMAIL PROTECTED] Subject: Manager--hangs during clean up Hi, I was

RE: Not using the usual/ normal process, is their another way of executing a servlet?

2002-11-20 Thread Cox, Charlie
why not set up a URL that your scheduler can call? http://myserver/scheduler/doTask http://myserver/scheduler/doTask This could run a servlet that would do the task. You can set up filters or valves to restrict access to localhost. Charlie -Original Message- From: Nathan Smith

RE: Not using the usual/ normal process, is their another way of executing a servlet?

2002-11-21 Thread Cox, Charlie
://myserver/sc heduler/doTask );, which returns a URL object? The point I am at when it comes to executing the servlet I don't have access to any HttpServletRequest or HttpServletResponse so it makes it a bit trickier. Nathan. - Original Message - From: Cox, Charlie [EMAIL

RE: Session Tracking based on the Client's IP

2002-11-21 Thread Cox, Charlie
What difference does it make what the sessionid is? the session will still expire, so if you need to keep track of data by ip address instead of sessions, store it in a database. You can always store the ipaddress in the session and retrieve it just as you sould retrieve the session id. The use

RE: Is anyone using manager for virtual hosts?

2002-11-21 Thread Cox, Charlie
you have to define the Manager context for each virtual host. You do not need to copy any files for the manager app. Charlie -Original Message- From: Brandon Cruz [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 1:22 PM To: Tomcat Users List Subject: Is anyone using

RE: change localhost_access_log to use . instead of -

2002-11-21 Thread Cox, Charlie
from AccessLogValve.java: dateFormatter = new SimpleDateFormat(-MM-dd); I'm seeing custom code in your future...but on the positive side, it's only a valve, not all of tomcat that you have to build. Charlie -Original Message- From: peter lin [mailto:[EMAIL PROTECTED]] Sent:

RE: Logging the IP address

2002-11-21 Thread Cox, Charlie
You want to upgrade to at least 3.3, if not 4.x for the bug fixes and additional features. AccessLogValve does this in 4.x, I'm not sure what 3.3 uses. Charlie -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 11:57 AM To: Tomcat Users

RE: Is anyone using manager for virtual hosts?

2002-11-21 Thread Cox, Charlie
the context within my virtual host it is thinking that it is an application level servlet and can't reference what it needs. I have set it to priveleged in my context but it seems to ignore that setting. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED

RE: is there a free ide that gets along well with tomcat?

2002-11-21 Thread Cox, Charlie
-Original Message- From: jennifer lindner [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 2:48 PM To: [EMAIL PROTECTED] Subject: is there a free ide that gets along well with tomcat? hello, i'm a newbie so i apologize if this topic came up last week or something.

RE: Access by IP Address

2002-11-21 Thread Cox, Charlie
you will probably have to write your own filter to do this. I don't think you can bypass the auth on a context. you could use a valve to allow your block of ip's if only that block would be used. It is not clear from your email if users with name/pass are also in this ip block. if any ip is

RE: Possible to subclass a web application?

2002-11-21 Thread Cox, Charlie
? Is there anyway to have Tomcat automaticaly look for a file in the Common Context if it doesn't find it in the Local Context? Thanks, Steve -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Monday, November 18, 2002 8:31 AM To: 'Tomcat Users List' Subject

RE: help with multilingual JSP sites pls. using a Filter to rewrite the URL ?

2002-11-25 Thread Cox, Charlie
use request.gePathInfo() to get the path. Then parse the string and use RequestDispatcher.forward(/products/Toys/index.jsp?myparam=+langString). The forward() will not be subject to further filter processing. Charlie -Original Message- From: Stephen Riek [mailto:[EMAIL PROTECTED]]

RE: help with multilingual JSP sites pls. using a Filter to rewri te the URL ?

2002-11-25 Thread Cox, Charlie
presume you also mean that I should map all incoming requests to a servlet that then examines the PathInfo and issues the requestDispatcher. Magnificent solution. Thank you indeed. Stephen. Cox, Charlie [EMAIL PROTECTED] wrote:use request.gePathInfo() to get the path. Then parse the string

RE: Response.ContentType - not always setting contentType in Header

2002-11-26 Thread Cox, Charlie
are you getting any errors in the error log? is it possible that you are throwing/catching an exception that is not allowing anything to be written to the output stream? Charlie -Original Message- From: neal [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 26, 2002 2:36 PM To:

RE: verifyError with tomcat and xerces 2.2.1

2002-11-26 Thread Cox, Charlie
you are correct. Java 1.4 does not allow you to override classes already loaded by a parent classloader. Tomcat enforces this. You can replace the version that comes with tomcat if you need a newer version. Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]

RE: Tomcat Filter with RequestDispatcher - IncompatibleClassChangeError

2002-11-27 Thread Cox, Charlie
what you compile against and what tomcat is using *could* be two different things if your classpath is not identical to /common/lib(and WEB-INF/lib), which it looks like yours is very different. Therefore if your class was compiled against some library that contains a different version of any

RE: Pb with HEAD request

2002-11-27 Thread Cox, Charlie
this is a similar thread - see if helps at all: http://marc.theaimsgroup.com/?l=tomcat-userw=2r=1s=filters+running+twice; q=b Charlie -Original Message- From: Cédric Viaud [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 27, 2002 8:31 AM To: Tomcat Users List Subject: Re: Pb

RE: filter jsp:include servletPath?

2002-12-02 Thread Cox, Charlie
no, filters are only applied on the original request. Charlie -Original Message- From: AAron nAAs [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 28, 2002 12:45 PM To: [EMAIL PROTECTED] Subject: Re: filter jsp:include servletPath? Due to the complexity of the question and

RE: Problem downloading binary files, please help.

2002-12-03 Thread Cox, Charlie
why do you need a servlet wrapper for binary files? if you need to do pre/post-processing, use a filter and let tomcat server the file. This way you don't have to try to implement the http spec in your servlet. You will run into problems when a download manager requests 10 pieces(via http

RE: Not getting CSS with XML

2002-12-03 Thread Cox, Charlie
are you setting the content type in the jsp? Charlie -Original Message- From: Caton, Paul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 9:06 AM To: Tomcat Users List Subject: RE: Not getting CSS with XML Dave, Thanks for the reply, but no, I'm sure that's not

RE: Not getting CSS with XML

2002-12-03 Thread Cox, Charlie
. Is there another way you know of I could try? Paul. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 03, 2002 10:06 AM To: 'Tomcat Users List' Subject: RE: Not getting CSS with XML are you setting the content type in the jsp? Charlie

RE: Problem downloading binary files, please help.

2002-12-05 Thread Cox, Charlie
was speculating on something like this, but didn't know if it's true. If you have time, please point me to some where easy to find info on how to do this (since you did the same thing before). Again, thank you very much for the help. On Tue, 3 Dec 2002, Cox, Charlie wrote: why do you

RE: Re[2]: WebApp Classpath

2002-12-05 Thread Cox, Charlie
open an enhancement in bugzilla for this update to ensure that is doesn't get lost. I'm sure its just a carryover from the 4.0 release. Charlie -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 11:52 AM To: Tomcat Users List Subject:

RE: SEO and servlets

2002-12-06 Thread Cox, Charlie
I do a silimar thing where all my content is in a database as XML, so that the users can update their content when *they* need to(not when I get around to it). Then the html is created using xsl when requested. The way that I set this up is that I map a directory to each servlet (or sometimes

RE: Native library cannot be loaded twice

2002-06-27 Thread Cox, Charlie
You should have a java class that is implemented in a native dll provided by whoever created the native dll. You should have a .java file for it describing the methods available. This .java is where you can add the singleton code to load the library. Then you can call it just as any other class.

RE: Security Realm Limitations (More on protecting PDF documents.)

2002-07-01 Thread Cox, Charlie
you can use a filter to do this programatically. You can use request.isUserInRole(myrole) to see if they are in a given role. you can reload web.xml by using manager to stop/start(not reload) the application. This will only affect the requested context as opposed to restarting tomcat. Charlie

RE: Security Realm Limitations (More on protecting PDF documents.

2002-07-02 Thread Cox, Charlie
you didn't mention your version, but filters are a 4.x feature. There are filter examples in the 'examples' context under /WEB-INF/classes/filters Charlie -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Monday, July 01, 2002 12:47 PM To: [EMAIL PROTECTED]

RE: Ahh Native Library Hell

2002-07-03 Thread Cox, Charlie
I just answered this last week. see the thread Native library cannot be loaded twice in the archives Charlie -Original Message- From: Collins, Jim [mailto:[EMAIL PROTECTED]] Sent: Tuesday, July 02, 2002 1:30 PM To: 'Tomcat Users List' Subject: Ahh Native Library Hell Hi all,

RE: Ahh Native Library Hell

2002-07-08 Thread Cox, Charlie
that will only be loaded once. I have explained this in my original post, do you have any idea what I need to set so that I don't get the java.lang.UnsatisfiedLinkError in this new servlet. Many thanks Jim. -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent

RE: Custom security realm/class loader issues

2002-07-08 Thread Cox, Charlie
-Original Message- From: Ravindar Reddy [mailto:[EMAIL PROTECTED]] Sent: Monday, July 08, 2002 10:20 AM To: 'Tomcat Users List' Subject: Custom security realm/class loader issues I wrote a custom security realm for authentication. This realm class is referring to the

RE: Using MANAGER for servlets in ROOT

2002-07-09 Thread Cox, Charlie
you have to create a session by using request.getSession(). Once you are creating sessions, then they will show up in manager. see session-timeout in web.xml to decrease the session timeout. Charlie -Original Message- From: Steve Wong [mailto:[EMAIL PROTECTED]] Sent: Monday, July

RE: How to hide a download file

2002-07-11 Thread Cox, Charlie
you can use a filter to see if the referring page is your form and then allow the download or redirect to your form appropriately. Alternatively, you could set a value in the session that is only set by your form submission that your filter can look for. I do a similar thing in a filter where I

RE: How to hide a download file

2002-07-11 Thread Cox, Charlie
I originally tried this, but it became a pain because I didn't support 'Range' requests which sent the whole file(in my case 50MB) for each request when someone used a download manager. A filter on the actual file is much more efficient since Tomcat can serve the file when it needs to and it

RE: How to hide a download file

2002-07-11 Thread Cox, Charlie
someone just typing the folder URL and grabbing the file? Thanks everyone for your input. Kevin -Original Message- From: Cox, Charlie [mailto:[EMAIL PROTECTED]] Sent: 11 July 2002 17:46 To: 'Tomcat Users List' Subject: RE: How to hide a download file you can use a filter

RE: JNI and Tomcat Classloaders

2002-07-12 Thread Cox, Charlie
yes, it is true that jni_tester will only be loaded once. Your code that uses Bridge only has to be in the \lib directory if Bridge uses any of those classes. If your other code is just calling Bridge, it can go into the web-inf/lib for your context. Charlie -Original Message-

RE: Hide download file

2002-07-17 Thread Cox, Charlie
is there a reason why you can't have the directory under webapps? In order to do this you would need to write your own servlet that reads the file and writes to the output stream. You should let Tomcat serve the file when possible so that you don't have to implement all the http 1.1 features...

RE: Hide download file

2002-07-17 Thread Cox, Charlie
I just answered this last week. Use a filter that checks the session and leave your download files in a directory under webapps. Filters make this simple. Don't do any more work than you need to :) Charlie I have found an article at www.javaworld.com about witing servlets for

RE: explicit ordering of jars searched by classloader in web application

2002-07-17 Thread Cox, Charlie
alternatively you can unpack the jar files, delete the older conflicting classes, and repackage to avoid these conflicts. I've had to do this on occasion. Charlie -Original Message- From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 2:49 PM To:

RE: Hide download file

2002-07-18 Thread Cox, Charlie
); return; } chain.doFilter(req,resp); } -Original Message- From: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17, 2002 5:34 PM To: Tomcat Users List Subject: Re: Hide download file Cox, Charlie wrote

RE: problems with the jakarta service created by jk_nt_service.exe

2002-07-18 Thread Cox, Charlie
The errors look like it can't find the XML parser. Did you replace parser.jar with xerces or crimson? If so, you need to update your wrapper.properties path to point to the new jar files. Charlie -Original Message- From: gisprogram [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 17,

RE: filtering -- 2 servlets

2002-07-22 Thread Cox, Charlie
I'm not sure you need filters for this. define your servlet mapping in web.xml to be *.html Then you can set up a welcome-file-list to go to index.html, which would route to your servlet based on it ending with .html it's that simple. Charlie -Original Message- From: Mark Beecroft

RE: Urgent!!Please Help!

2002-07-22 Thread Cox, Charlie
further down in the stack trace should be a 'root cause'. please post it as this is the real error... -Original Message- From: Renato Romano [mailto:[EMAIL PROTECTED]] Sent: Monday, July 22, 2002 6:38 AM To: 'Tomcat Users List' Subject: Urgent!!Please Help! I find several

RE: Using the Manager with load balanced virtual-host ?

2002-07-22 Thread Cox, Charlie
you would have to use the machine's ip and access tomcat that way in order to know which tomcat you are managing. But if you have multiple virtual hosts on each server this becomes more difficult. can you set up new aliases in your loadbalancer that knows to direct requests to the specific host?

RE: Urgent!!Please Help!

2002-07-22 Thread Cox, Charlie
it seems to me that there was a problem where tomcat was returning a 50x error due to a NPE, but I don't see it in the release notes for 4.0.4, so I don't know it was resolved or not. You may want to check bugzilla. Charlie -Original Message- From: Renato Romano [mailto:[EMAIL

RE: Resend (again): 4.0.3: Servlets Loaded Twice?

2002-07-24 Thread Cox, Charlie
change the appbase for your host in server.xml to be something other than webapps. This will stop the autoloading of contexts. therefore it will only load the contexts that you have explicitly defined. Charlie -Original Message- From: Marinko, Jeff [mailto:[EMAIL PROTECTED]] Sent:

RE: Best practice for virtual host configuration

2002-07-24 Thread Cox, Charlie
-Original Message- From: Ryszard Lach [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 8:07 AM To: [EMAIL PROTECTED] Subject: Best practice for virtual host configuration Hi! How is (in your opinion) best practice for virtual host configuration ? I see there is

RE: Best practice for virtual host configuration

2002-07-24 Thread Cox, Charlie
Message- From: Ryszard Lach [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 24, 2002 8:55 AM To: Tomcat Users List Subject: Re: Best practice for virtual host configuration On Wed, Jul 24, 2002 at 08:37:50AM -0400, Cox, Charlie wrote: if you change the appBase, then you need

RE: Bug in tomcat 3.2.3

2002-07-25 Thread Cox, Charlie
try deleting the 'work' directory. -Original Message- From: smashingwebs [mailto:[EMAIL PROTECTED]] Sent: Thursday, July 18, 2002 1:52 PM To: Tomcat Users List Subject: Fw: Bug in tomcat 3.2.3 Anybody.Any ideas?? - Original Message - From: smashingwebs [EMAIL

RE: Manager App Issues: 4.03

2002-07-25 Thread Cox, Charlie
its 'password', not 'passwords' for user 'steve'. Also you want 'Context', not 'ContextManager'. Server.xml has changed significantly. See the sample server.xml that comes with tomcat 4.x or the docs in \tomcat-docs. I would also recommend 4.0.4 as it has bug fixes for 4.0.3 Charlie

RE: Re[2]: REPOST: Document.importNode not working-works fine in modified JSDK2.1

2002-07-31 Thread Cox, Charlie
actually, there are three versions. you should get rid of the older 2 because they may be conflicting. you should also get rid of other duplicates(xalan,xml-apis,regexp,xmldb?). you have no way of knowing which version of xerces is loaded first - only the first version loaded(may be the old or

  1   2   3   4   5   >