Re: Tomcat memory-leak problem

2001-07-11 Thread Sam Newman
I too have been having some problems with Tomcat + memory. I put it down to me running win98 and win98 not properly being able to address memory over 128MB. I normally have dreamweaver, netbeans and tomcat running, and reguarly run out of memory (I have 384MB Ram). I haven't noticed any

Re: Remote logging?

2001-07-04 Thread Sam Newman
You might want to consider using log4j (another jakarta project). Its manual has brief converage of using it with tomcat, although I must admit up to now I've only used Log4j in standalone applications. sam - Original Message - From: Kimmo Hovi [EMAIL PROTECTED] To: [EMAIL PROTECTED]

List traffic et al

2001-07-03 Thread Sam Newman
Given the huge amount of traffic this list generates, I can rarely get involved with the discussions that take place. It occurs to me that there sems to be three major discussion themes on the list as a whole: 1.) General servlet/jsp development issues and how tomcat affects them 2.) General

Re: List traffic et al

2001-07-03 Thread Sam Newman
Emir wrote: List is tomcat-user and not java-server-development; thus, issues such as getting Tomcat up and running (i.e. Tomcat configuration) ARE the purpose of this list. Methinks you should get invovled into discussion more often, given as you say that getting Tomcat up and running is

Re: List traffic et al

2001-07-03 Thread Sam Newman
Paul Wrote: well there's already [EMAIL PROTECTED] and [EMAIL PROTECTED] there's also [EMAIL PROTECTED] perhaps ppl with more development specific questions should use these? Thanks for that Paul. I kind of stopped using the Sun Java forums because they weren't much use, but after

Re: I need help in tomcat configuration with Oracle 8.1.7

2001-07-03 Thread Sam Newman
I don't know anything too specific about use with Oracle, but I've certainly used servlets/JSP's to access DB's via JDBC in the past (read: maintained code which did it, not developed it!), so its certainly possible. Firstly, could you give the exact error you are getting from tomcat? Also,

Re: List traffic et al

2001-07-03 Thread Sam Newman
Sounds good. Aren't there online tools for creating FAQ's via a web-front end? Of course, there are always going to be the people who ask first, read the documents later :-) sam - Original Message - From: Emir Alikadic (ADNOC IST) [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

Re: List traffic et al

2001-07-03 Thread Sam Newman
I think tomcat is a really good product, but for me it did take time to figure out how the various config files, and their (initially) unwieldy syntax works. I no longer consider the tomcat configuration syntax unwieldy, but for a newbie it can be hard to understand. My single bigest

Re: List traffic et al

2001-07-03 Thread Sam Newman
Milt wrote: This idea has come up before, and I think it's one of the best for dealing with the high volume on this list (I guess it's one of the two or three highest volume apache lists). I even volunteered to take the lead in doing this. So I sent a note to the list owner explaining the

Re: out of environment space

2001-06-29 Thread Sam Newman
Right, this has nothing to do with tomcat. Windows console applications use their environment space to store environment variables. Whats happening is that when you run tomcat, you're filling this space up so some of variables won't get saved - this could really screw tomcat up. You need to

Re: FORM submission POST to a server

2001-06-28 Thread Sam Newman
hmm, I think you probably want to use the URL connection program. There is a javaworld tip about posting from an applet - its more about the security considerations, but should contain the sample code you want. I seem to remeber the O'Reilly java network programming book also contains an

Re: FORM submission POST to a server

2001-06-28 Thread Sam Newman
I meant URLConnection class, not program! - Original Message - From: Sam Newman To: [EMAIL PROTECTED] Sent: Thursday, June 28, 2001 4:19 PM Subject: Re: FORM submission POST to a server hmm, I think you probably want to use the URL connection

Re: XML parser: old version

2001-06-22 Thread Sam Newman
Someone said he managed to get Xerces work without too mich bother. He simply wedited the tomcat.bat/tomcat.sh startup script to put the xerces xml parser in the classpath instead of the standard one. My only guess as to why xerces is not used by default is Tomcat's history as being Suns

JSP class compilation error

2001-06-20 Thread Sam Newman
I have a JSP page which has suddenly stopped working. I've found a single tag which, when included gives the stack trace found at the bottom of the email. With the tag removed, everything works fine - even when I leave the other tags in. I have tried this file on Linux win98. The tag in question

Re: Tomcat 3.2.2 and Xerces

2001-06-19 Thread Sam Newman
If it was an inbuilt limitation of Tomcat, I wouldn't expect to see a ClassDefNotFoundExceptionare you sure you've put your xerces parser .jar file in the WEB-INF/lib directory of your webapp? Also Mail Archive does have a search facility for this list. Its pretty crap but its better than

Re: Define the /var/www to serve .jsp ?

2001-06-19 Thread Sam Newman
When using tomcat and apache, you simply set up a new document root and mapping within httpd.conf for each webapp you want accessable via Apache. When you run tomcat, it automatically generates the Apache directives required to use Apache and Tomcat together uising mod_jk - look at the file

Re: Logging

2001-06-18 Thread Sam Newman
Tomcat 4 supports filters, which may do exactly what you want. They are defined on the 2.3 spec IIRC. Basically, its a bit of code that gets accessed before the requested page. There was an article about the use of filters i think either on javaworld or servlets.com. Assuming you want a 3.2

Re: Tomcat.log

2001-06-18 Thread Sam Newman
Or it errored before the log got createdbut yes, its just letting you know where the log will be if you get errors. On a related note, does anyone know of a good tail program for M$ which doesn't get defeated by win32 file locking? I'd like to be able to keep an eye on my tomcat logs without

Re: Formatting Apache+Tomcat Java stack output errors: how?

2001-06-18 Thread Sam Newman
Well, IIRC the stack outputs simply get sent to Stderr (e.g. when you do excp.printStackTrace()). You could make stderr point to a different stream (can do it via the System object) and then have that output stream do the formatting. The exception reporting provided by Alphaworks JLog can

Re: What are EJB

2001-06-18 Thread Sam Newman
The only real similarity between EJB's and normal JavaBeans is that they are both based on component models. EJB's provide a java representation of some data in a database - e.g. 1 EJB will equal 1 row in the table, 1 EJB class is tied to one table. XML is used to tie an EJB and its data to a

Re: Tomcat-Apache configuration

2001-06-18 Thread Sam Newman
Read the mod_jk howto included with the documentation. Its fairly straightforward. If you have problems after following the docs, post to the list - loads of us have done this so there will be plenty of people around who can help. sam - Original Message - From: Shicheng TIAN(CMS) [EMAIL

Re: What are EJB

2001-06-18 Thread Sam Newman
. Because of it I stopped using Entity beans all together... - Original Message - From: Sam Newman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, June 18, 2001 9:26 AM Subject: Re: What are EJB The only real similarity between EJB's and normal JavaBeans

Re: What are EJB

2001-06-18 Thread Sam Newman
Hmm...I can certainly send you the config files Orcas uses to work with Tomcat. I'll try and dig them out (off site at the moment - back next week). One way to communicate with an EJB container without any config problems at all, is to use RMI.You bind an RMI object at your EJB container's

Re: JSP CUSTOM TAGS

2001-05-31 Thread Sam Newman
The taglib sutff provided by the apache taglib project can do this - I think there is one specifically for session information retrieval. Check the taglibs project on the apache.org webpage. sam - Original Message - From: Peter Giannopoulos [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Tomcat 3.2.2 vs 3.2.1

2001-05-04 Thread Sam Newman
I just wondered on the benifits of using tomcat 3.2.2 over 3.2.1? I know that 3.2.2 is in beta right now, but what advantages does it give over 3.2.1? Does it simply contain bug fixes (I'm assuming its still the 2.2 spec)? sam

Re: Still trying to configure mod_jk

2001-05-03 Thread Sam Newman
Lots of people have this problem. The downloadable mod_jk seems to work for some people, but not all. I'd suggest downloading the mod_jk source and build it yourself. Give your system, this shouldn't be too hard. sam - Original Message - From: Laurence Mayer [EMAIL PROTECTED] To: [EMAIL

Re: virtualHosting of apache

2001-05-03 Thread Sam Newman
err..I'm not an Apache expert or something, but I think for a name based virtual server you want: VirtualHost virtual.host.com instead? sam - Original Message - From: Guninder To: [EMAIL PROTECTED] Sent: Thursday, May 03, 2001 12:31 PM Subject: virtualHosting of

Re: Please urgent : Why french accentual characters (like à è) not display

2001-04-26 Thread Sam Newman
Hmm, in which case if that solved it I'd guess i could be down to java not loading the right locale information. ISn't there some java code that can do this on the fly? sam - Original Message - From: Stefan Busse [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 26, 2001

Re: Problem with Javamail

2001-04-26 Thread Sam Newman
I would guess the relevent jar (the ajva mail jar file) isn;t in the WEB-INF/lib directory of your webapp. sam - Original Message - From: Gustavo Comba [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, April 26, 2001 12:17 PM Subject: Problem with Javamail Hello, I'm

Re: Problem at mod_jk.conf-auto

2001-04-25 Thread Sam Newman
Unfortunatley you cannot change this file. It would be nice if the contents of this file were based partyl on some meta file so you could change stuff like this, or for example which prootocl to use for the apache/tomcat connection. If you want to change this file just paste its contents

Re: urgent

2001-04-25 Thread Sam Newman
I don't know of anyone getting tomcat to work with Personal Web Server myselfyou might have more luck (and get more support) if you just download Apache for win32. sam Jignasha Raval wrote: i want to know how to configure tomcat with pws 4.0... as the earliest pls send me the step

Re: Adding modules

2001-04-25 Thread Sam Newman
You simply get tomcat workig via apache, and it should work. Consult the Apache/Tomcat howto, located on the doc directory of your tomcat install sam - Original Message - From: Manuel Melle Ocariz [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 10:02 AM Subject:

Re: Adding modules

2001-04-25 Thread Sam Newman
The module your trying to load is a module created to enhance the capabilities of the Apache webserver. That is, the module is specific to Apache. Tomcat is really only designed to serve .jsp and servlets although it can also serve static content. For tomcat to be able to use Apache modules would

Re: Tomcat and IIS

2001-04-25 Thread Sam Newman
Do you get any error in servlet.log in the tomcat/log directory? It looks like your trying to connect to a port but failing - is anything else on port 2380? Also, have you confirmed that Tomcat runs ok in standalone mode? sam - Original Message - From: Nottebrok, Guido [EMAIL PROTECTED]

Re: iis tomcat virtual host

2001-04-25 Thread Sam Newman
There is an example virtual host config in the server.xml that comes with tomcat. Looking at that should give you a good start. sam - Original Message - From: George Sinclair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 3:53 PM Subject: iis tomcat virtual

Re: Please urgent : Why french accentual characters (like à è) not display

2001-04-25 Thread Sam Newman
you mean in the browser? Have you tried using another browser, or can you see the character in a normal static page? sam - Original Message - From: iscnet isc [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 4:26 PM Subject: Please urgent : Why french accentual

Re: apache and tomcat not working

2001-04-25 Thread Sam Newman
Do you get any output in the servlet.log file? - Original Message - From: Alejandro Arredondo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 25, 2001 4:38 PM Subject: apache and tomcat not working Hello, I installed tomcat in my system. It works fine when I run

Re: mod_jk default protocol in Tomcat-3.2.1

2001-04-25 Thread Sam Newman
Fraid not. What I really want is some kind of meta file in the conf directory which tomcat uses to create the mod_jk.conf-auto file. I might suggest it to the development team sam - Original Message - From: Maring, Steve [EMAIL PROTECTED] To: Tomcat List (E-mail) [EMAIL PROTECTED]

Re: Problem with session tracking

2001-04-24 Thread Sam Newman
There is a difference between the way HttpSessions arew created and handled, and the Cookie objetc. The cookie object creates a persistant cookie on the clients machine. The HttpSession is just a memory cookie, and as such is non-persistant and doesn't sit on disk. Looking at your code,

Re: Mission Impossible: Tomcat + Apache ???

2001-04-24 Thread Sam Newman
Have you read the Apache-Tomcat howto in the docs (comes with tomcat)? If so, can you give us more specific info on your problems? regards, sam - Original Message - From: Yoav To: [EMAIL PROTECTED] Sent: Tuesday, April 24, 2001 10:58 AM Subject: Mission

Re: Problem with session tracking

2001-04-24 Thread Sam Newman
Hmm. I guess its because your forwarding the context wholesale. I'd guess the sesion is new within that given context, and because your effectively recreating the context when you forward in that manner, it still counts as new. I use sendRedirect instead and this works fine - what do you

Re: Mission Impossible: Tomcat + Apache ???

2001-04-24 Thread Sam Newman
the mod_jk.conf-auto tomcat creates authomatically generates the apache directives so apache can see the contexts setup under tomcat. Whilst they use different document roots, you can easily make them look the same my tweaking the generated directives. The .jsp files servlets have to sit

Re: Catch me for writing a 'Never Before' BOOK on Tomcat!!!

2001-04-24 Thread Sam Newman
What would the scope of the book be? Will it be developing a webapp with jsp and servlets under tomcat, or will it just be about configuring and setting up tomcat? In either case, I'd guess given the posts I see day in day out on this list, these following things are essential: Tomcat Apache

Re: Multiple Unique Instances WITHOUT multiple JVM?

2001-04-24 Thread Sam Newman
I think there is a simpler solution. Firstly, have one web app. Secondly, have a database (could even be an encyrpted text file) containing user information. When a user logs in. You check him against the database to confirm password etc. You asertain from this which company he works for and you

Re: Maybe rights problem, exception thrown by Catalina core

2001-04-24 Thread Sam Newman
I'm guessing its a catalina specific error as I've not seen a tomcat error like that before except in my code. Have you looked at the sourcecode? sam - Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 24, 2001 5:59 PM Subject: Maybe rights problem,

Re: Tomcat SSL

2001-04-24 Thread Sam Newman
The ajpv12 protocol is still used to stop tomcat. As such even if you just use ajpv13 you should still start the ajpv12 connector to allow easy restarting of tomcat. I guess that eventually ajpv13 will be capable of handling a tomcat restart and ajpv12 can be removed completely. sam Wasn't

Re: Tomcat SSL

2001-04-24 Thread Sam Newman
You might have problems detecting if you are working over a secure connection. See if the isSecure() method works in a servlet when working over SSL. sam mod_jserv didn't support SSL neither ajp12. You must use mod_jk with ajp13 to get SSL info forwarded from Apache to Tomcat. [ ... ] Can

SSL detection

2001-04-23 Thread Sam Newman
I have Apache and Tomcat running together under SSL. I now want to create a page which only run under SSL. I want http and https to share the same documents however. My first idea is to simply have a tag handler, which detects the protocol, and if not SSL is simply redirects to a page explaning

Re: SSL detection

2001-04-23 Thread Sam Newman
Many thanks for that. I was looking under get methods in the index so I missed the isSecure one, d'oh! Now all I have to do is to try and get the encryption strength.I think I could do that with some client side java script though. sam - Original Message - From: Wolle [EMAIL

Re: SSL detection

2001-04-23 Thread Sam Newman
I should of thought of that myself. The page will now actually behave differently depending on whether the page is accessed securely now - aint goal post moving a wonderful thing? I just hope I can finish the work before they decide they want it done in ASP instead. sam - Original

Re: SSL detection

2001-04-23 Thread Sam Newman
(winnt) with love subbu. - Original Message - From: Sam Newman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, April 23, 2001 3:59 AM Subject: SSL detection I have Apache and Tomcat running together under SSL. I now want to create a page which only run under SSL. I want

Re: seems as though a servlet engine would have a little clearer documentation on getting servlets running

2001-04-23 Thread Sam Newman
Go back to first prinicples. Try accessing the servlet directly via tomcat rather than worying about apache - try looking at http://youmachine:8080/yourcontext/servlet/YourServlet The port 8080 reefres to the port tomcat is running on. With no port specified, it means you are trying to access via

Re: mod_jk - DEAD END! [POSTSCRIPT]

2001-04-19 Thread Sam Newman
Whilst the mod_jk worked for me, I aggree that it could be more clearly marked as to what platforms its currently supported on. As the the number one issue raised on the list, over the last week or so it seems to be people either not reading or getting confused by the howto docs sam -

Re: getInputStream

2001-04-19 Thread Sam Newman
I'm pretty sure that if you use this package in a commerical product, you have to make sure that each developer using the package has a copy of the latest O'Reilly book. Check the license carefully. sam - Original Message - From: "Jeff Kilbride" [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: WML and JSP

2001-04-19 Thread Sam Newman
Its possible, but not trivial. It will inevitably result in the use of some kind of MVC setup. I would guess the quickest way to go would be to abstract the business login into taglibs (e.g. most of the Java code in the jsp pages). Then code 2 different jsp files - one for WML, and one for

Re: Code Q.

2001-04-19 Thread Sam Newman
You kight want to get some decent example code,then edit that to get you started. If you have either of the O'Reilly books (servlet programming or JSP) then download thier example code. The JSP code certainly works just by unpacking under tomcat. You can then just edit/view thier simple examples

Re: newbie

2001-04-19 Thread Sam Newman
Let me guess, these servlets are using sessions? When a session is first used, there is alarge lag whilst tomcat generates a list of large primes (I assume) to maintain unique sesion identifiers. This will happen once and once only, when the first session is accessed after tomcat starts.

Re: Cleaning up servlets

2001-04-19 Thread Sam Newman
Well, the servlet will get destroyed when the servelet is garbage collected I think. The JVM has a garbage collection thread which starts up automatically, and its its job to cleanup unused objects. I'm not sure if this behaviour changes in tomcat. You can explicitly call the garbage collector

Re: Tomcat vs JServ

2001-04-19 Thread Sam Newman
I'm not sure which "issues" you mean I think that fact that JServ has been in bug fixing for a while now is more down to the fact that no more development is being done with it. Tomcat supports the latest standards and works fine with Apache via mod_jk. And its being actively developed.

Re: Tomcat vs JServ

2001-04-19 Thread Sam Newman
I guess it comes down to if it aint broke, don't fix it. If your happy with the old 2.0 spec, and the fact your unlikely to get much support if things do go wrong, I guess there isn't much reason to change. At the end of the day, tomcat is more uptodate than JServ, and using mod_jk is easier to

Re: mod_jk - DEAD END!

2001-04-18 Thread Sam Newman
Apache seems to identify servlets, b assuming that anything in a servlet directory is handled by tomcat, so servlets will always appear in a servlet directory. As for the docs, I'd aggree that given JServ is no longer the prefered route all references to it should perhaps be moved elsewhere. To

Re: ServletOutputStream

2001-04-18 Thread Sam Newman
Couldn't you try creating the jpg on the server side, then supply an IMG link to it when you provide the page? sam - Original Message - From: "Georges Boutros" [EMAIL PROTECTED] To: "Tomcat (E-mail)" [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 7:42 PM Subject: ServletOutputStream

Re: Hiding JSPs from Public Access

2001-04-18 Thread Sam Newman
I would guess you'd want to stick an action in that checks the current session ID for user authentication info. If its not found, the rest of the page isn't displayed (e.g. get a TagHandler to skip the rendering of the rest of the page). Ideally you could do this via a Taglib and stick it at the

Re: Apache-SSL or Mod-ssl

2001-04-18 Thread Sam Newman
Yep - never had a problem with RedHat rpms on SuSE. The only difference is that SuSE tends to stick stuff under /opt, whereas allot of RedHat RPM's i've used in the past seem to put software under /sw. SuSE 7.0 currently comes with 6CDs, 1DVD and 1500 apps. Not to mention over 600 pages of

Re: Servlet jar files

2001-04-18 Thread Sam Newman
You should bundle servlets in a .WAR file. This is the same as a jar file. It contains the WEB-INF directory for your webapp. See the docs for details on deplolyment. This .WAR file will sit directly in the webapps directory. sam - Original Message - From: "David DELGRANCHE" [EMAIL

Re: Tomcat and RMI

2001-04-18 Thread Sam Newman
I've done it with servlets. First ly uou need to make sure your using a SecurityManager before accesing the RMI object (i'll dig the code out of you need it) - try searching for RMISecurityManager or something in the jdk API docs. You may also want to change the tomcat.policy file in conf to

Re: Tomcat with Apache/URLRewritting and mod_rewrite

2001-04-18 Thread Sam Newman
It can (see the Apache-tomcat readme in the tomcat distro), but it is strongly suggested that you use mod_jk tomcat instead of using JServ as it has less bugs, is faster, and I believe is also better maintained. sam - Original Message - From: "Tassilo Pilati" [EMAIL PROTECTED] To:

Re: TOMCAT 3.2.1 and mod_jserv for FreeBSD

2001-04-18 Thread Sam Newman
I'm skipping the jserv build issues - not sure this is the place for problems with it. JServ was the old method for serving servlets via Apache. It has been superceded by mod_jk which is much easier to setup and use. the mod_jk.so is for mod_jk, the mod_jserv.so file is for mod_jserv. For a

Re: WEB-INF/lib vs. TOMCAT_HOME/lib

2001-04-18 Thread Sam Newman
I'm afraid to say its not a problem I've seen here. Which platform are you running on? sam -Original Message- From: Chris Bailey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 7:32 PM To: [EMAIL PROTECTED] Subject: WEB-INF/lib vs. TOMCAT_HOME/lib The Tomcat automatic

Re: Very Basic question about Apache-Tomcat configuration

2001-04-18 Thread Sam Newman
If you access file://localhost:8080/examples you are completely circumventing Apache and going straight to tomcat. Assuming this is not what your doing to get the jsp's to work, I'd hazard a guess that your web context defined in server.xml under tomcat isn't correctly set. I would suggest you

Re: IE problem or tomcat bug?

2001-04-18 Thread Sam Newman
I've not seen this before. You might want to try contacting the developers of mod_jk (I take it your using this if your using ajpv13?) directly. Its always a pain when you can't reproduce these kind of problems. Are all of the problems based around the same version of IE? Which browser do you

Re: IE problem or tomcat bug?

2001-04-18 Thread Sam Newman
We've seen the same version of MS products working very differently on different OS's. Because allot of the abilities of win32 programs are fullfilled by the inderlying win32 API's, ther're often subject to change between different operating systems due to slightly different underlying API's The

Re: Tomcat with Apache/URLRewritting and mod_rewrite

2001-04-18 Thread Sam Newman
- Original Message - From: "Tassilo Pilati" [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 1:27 PM Subject: AW: Tomcat with Apache/URLRewritting and mod_rewrite But SSL has nothing to do with my problem. The problem I have is that when

Re: worker.properties

2001-04-18 Thread Sam Newman
The workers.properties file configures the worker threads that take requests for servlets/jsp's from apache and processes them appropirately. As such, when running Tomcat without Apache it will have no effect. You only need to edit this file when you run Apache and Tomcat together. Infact you'll

Re: Servlet jar files

2001-04-18 Thread Sam Newman
Title: RE: Servlet jar files You mean that you deploy servlets on customers machines? I'm not sure how easy it is to access files outside of the WAR file. I suspect you'd have to edit the tomcat.policy file to relax the security sandbox that servlets run it. Byd efault I don't think you can

Re: How to read property files?

2001-04-18 Thread Sam Newman
I suspect getResourceAsStream can only locate property files in your classpath. You will probably have to search the classpath yourself to do it. Check the sorucecode for getResourceAsStream (assuming its not in native code) and see how its done sam - Original Message - From: "Jim

Re: How to read property files?

2001-04-18 Thread Sam Newman
You'll want to use getResource when your in a jar file. I've found the safest way is just to know where the property file will be in relation to the class loading it, and get the URL resource for the class itself. This URL will differ for a class in a jar, but its still doable. sam -

Re: Problem with connection pool

2001-04-18 Thread Sam Newman
I suspect that the servlet is trying to open aoscket or something to talk to the other server to access the database? If so, the servlet security manager may be stopping it. Make sure the security settings in tomcat.policy allow you to open sockets for the servlet codebase. sam - Original

Re: Accesslog in the style of Apache

2001-04-18 Thread Sam Newman
I think if you change the debug setting for the app in question and redirect output of tomcat you should get this displayed. Try setting the debug level to 9 and redirect the stdout and stderr of the tomcat process and have a look. It might also go to a file in the tomcat/logs directory sam

Sorry for double posting

2001-04-18 Thread Sam Newman
Our mailserver is currently playing up, and as a result is sometimes double posting. I applogies for this and am currently trying to work out whats wrong. How I wsh we could afford a system admin! sam

Getting the query string in a tag handler

2001-04-18 Thread Sam Newman
Does anyone know how I can access the Query String in a tag handler? I can access the context of the page, and frm this get a ServletRequest. However the queryString is normally accessed from a HttpServletRequest, a ServletRequest subclass. Do I jsut try casting the request I get to a

Re: setting up tomcat and apache to run together

2001-04-18 Thread Sam Newman
The document you want to consult is the Tomcat-Apache howto which should be under the tomcat/doc directory of the tomcat install. Basically you end up including a file generated by tomcat in your apache's httpd.conf, and sticking mod)jk.so where apache can load it from (e.g. libexec). The

Re: Getting the query string in a tag handler

2001-04-18 Thread Sam Newman
Its ok, I solved it. I just cast the ServletRequest from pageContext to a HttpServletRequest sam - Original Message - From: "Sam Newman" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 4:52 PM Subject: Getting the query string in a tag handler Does a

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
Please take a time to provide me with the following opinion. I spend some time configuring Tomcat and Apache. Because of deadline constaints and the fact that some allready developed code has been devloped using only Tomcat as standalone, the prototype team is focusing on just using Tomcat.

Re: I need a working mod_jk.so for Linux

2001-04-17 Thread Sam Newman
Yowser! I have downloaded a version a few days back which works fine (from apache.org). Do you want me to mail it to you? sam - Original Message - From: "Farrell, Sarah" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 2:06 AM Subject: I need a working mod_jk.so for

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
Well, I have run my servlets over SSL. They use session tracking using the HttpSession object and it works fine. I haven't had to change ANY configuraation files at all. sam - Original Message - From: "Christopher Kirk" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April 17,

Re: Apache-SSL or Mod-ssl

2001-04-17 Thread Sam Newman
Well, at the time I had been trying to use Apache-SSL, whci is the method for SSL mentioned in the tomcat docs so I assumed was the best one to use. Needless to say i cou;dnt get the sod to work. I tried using mod_ssl after finding that stronghold uses it. I got mod_ss l working so I guess

Apache/Tomcat issue

2001-04-17 Thread Sam Newman
I mentioned this problem in an earlier post. I have some more information on it now, so thought I'd see if anyone has some fresh ideas on the subject. I have configured Apache to server Servlets using the ajpv13 protocol. This works fine for the servlet examples. For my servlet however, netscape

Re: Apache-SSL or Mod-ssl

2001-04-17 Thread Sam Newman
for a lot of people. You didn't have to rebuild apache when using pre-packaged RPMs. http://www.falsehope.com/ftp-site/home/gomez/apache-mod_ssl/ for Redhat 6.x distrib http://www.falsehope.com/ftp-site/home/gomez/apache/ for Redhat 7.0 distro You'll see i386 RPMs :) Not to mention I

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
HmmI thought the use of HttpSession worked independantly of cookies settings? I assumed it is something very different to the Cookie object. That said, I'll give it a go and let you know. sam - Original Message - From: "Christopher Kirk" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

Re: Newbie question with classpath and WEB-INF/lib and WEB-INF/classes

2001-04-17 Thread Sam Newman
You should just put the jar file in the lib directory try doing it unpacked, so you have: WEB-INF/classes - your servlets/jsp's WEB-INF/lib - your jar I'm not too hot on jsp's,but this works with servlets sam - Original Message - From: "Chris Williams" [EMAIL PROTECTED] To: [EMAIL

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
There are some issues depending on the protocol you are using. Apparently ajpv12 couldn't correctly determine which mechanism was being used. Are you using ajpv13? Also, check the config settings for SSL in the server.xml. sam - Original Message - From: "Christopher Kirk" [EMAIL

Re: include a file in a servlet

2001-04-17 Thread Sam Newman
Do you mean include the contents of a file as a string? - Original Message - From: "Georges Boutros" [EMAIL PROTECTED] To: "Tomcat (E-mail)" [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 2:46 PM Subject: include a file in a servlet hi, i wanna know how can i include a jsp or

Re: WAR deployment

2001-04-17 Thread Sam Newman
Thrid party libs and the like should be in WEB-INF\lib. Tomcats classloader will automatically pick up and load these jars. Your webapps classes should indeed be in WEB-INF\classes. sam - Original Message - From: "Jim Willeke" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, April

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
have you edited the Apache directive for the default filex? Search for index.html or index.htm in httpd.conf and try adding index.jsp. Apache doesn't automatically look for any file called index - you need to explicitly tell it what files to load as defaults. If this doesn't work but typing in

Re: Followup: WAR deployment with JSP's

2001-04-17 Thread Sam Newman
3rd party libs (e.g. xml parsers etc) should be placed in the WEB-INF/lib directory. But this is valid jar files, not simple classes. If you have your own classes, or even other peoples, unpacked and not in a jar form, put them in WEB-INF/classes (remembering to mirror thier package in the

Re: Asking for an Opionio on Apache Tomcat or Just Apache

2001-04-17 Thread Sam Newman
- Original Message - From: [EMAIL PROTECTED] To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 4:56 PM Subject: RE: Asking for an Opionio on Apache Tomcat or Just Apache Thanks. It's still not working. I get a 404 error now when I go to my application

Re: question about CLASSPATH

2001-04-17 Thread Sam Newman
Tomcats special classloader should only access classes for each webapp under your webapp directory. You don't have to worry about classes in webapps/bob/WEB-INF/classes picking up webapps/fred/WEB-INF/classes for example. sam - Original Message - From: Kresimir (Binsco)

Apache-SSL or Mod-ssl

2001-04-16 Thread Sam Newman
I was wondering which is the prefered choice for work with servlets? I am having untold trouble getting Apache-SSL to work (built it, can't view a page without a seg fault). Whilst not a tomcat specific issue Apache-SSL is the mentioned way to get SSL working with tomcat. I've just tried

Apache/Tomcat integration issues

2001-04-16 Thread Sam Newman
display the html sourcecode. Any ideas? Thanks in advance, sam newman p.s. I'm tempted to buy redhat's strongohld out of my own pocket rather than spend another week of hell getting SSL working myself!

  1   2   >