Re: response.sendRedirect()

2004-10-06 Thread Ben Souther
Without seeing the rest of your code, I'll guess that the problem is that you've started the relative link with a "/". Try without it. If you have to back up a directory use "../jknopkn/prueba.jsp". On Wed, 2004-10-06 at 11:11, Pablo Carretero SÃnchez wrote: > Hi, > > I don't test in other Tomc

RE: Capturing HTML using Tomcat 4

2004-10-06 Thread Ben Souther
> Could a filter do the job? Yes, it most certainly could. If your interested, I wrote one and packaged into a war file. http://ben.souther.us/capture.war It should be enough to get you started. On Wed, 2004-10-06 at 19:23, Mike Curwen wrote: > Could a filter do the job? > > response wrapping

RE: Capturing HTML using Tomcat 4

2004-10-06 Thread Ben Souther
> Could a filter do the job? Yes, it most certainly could. If your interested, I wrote one and packaged into a war file. It prints all the servlet output of the index.jsp page from the ROOT application that ships with tomcat to standard out. http://ben.souther.us/capture.war It should be enough t

Re: response.sendRedirect()

2004-10-07 Thread Ben Souther
ttp:///../jspa.jsp it doesn't work, but If I invoke > directly to "http://..//jspb.jsp It works ok. > > > best regard > > > Ben Souther ([EMAIL PROTECTED]) escribi? > > > > Without seeing the rest of your code, I'll guess that the

Re: how to get relative URL to work with 5.5.2?

2004-10-17 Thread Ben Souther
try just: On Sun, 2004-10-17 at 20:49, andy davidson wrote: > Hi > > I have a simple sevlet that generates . I can not > get the images to load? I read the "servlet essential" > tutorial at sun.com, but that did not help. To try to > figure what was going on I turned on the dumper. Here > is

Re: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Ben Souther
Where is this code? On the client? the server? On Mon, 2004-10-18 at 15:11, Daxin Zuo wrote: > Hi, I have code like: > BufferedReader breader = request.getReader(); > String rdata = breader.readLine(); > while (rdata != null) > { .. } > > It run's well with

Re: Load-on-Startup child-threads not dying at context-reload

2004-10-18 Thread Ben Souther
If upgrading Tomcat is possible, a context listener would be a better design. On Mon, 2004-10-18 at 15:51, Jonathan Wilson wrote: > I have a 1 Servlet on TC3.3.1(under > RH7.3) which checks an XML file which contains a list of Runnable > classes to kick off at servlet startup. These child thr

RE: IO error: request.getReader(); readLine(); on Netscape

2004-10-18 Thread Ben Souther
on Netscape > > > > Hi, > This code is on the server, I'd image. My advice: don't re-invent the > wheel, use Jakarta Commons Fileupload. > > Yoav Shapira http://www.yoavshapira.com > > > >-Original Message- > >From: Ben Souther [mai

RE: Exception: current thread not owner

2004-10-18 Thread Ben Souther
>I still don't see how I have the servlet check back every so many ms >for an >event or a status flag to be set without performing some sleep() or >wait() >without burning CPU. His code wasn't without a sleep() call. On Mon, 2004-10-18 at 16:02, Robert Harper wrote: > > It's been a whil

Re: Unable to find a javac compiler error

2004-10-19 Thread Ben Souther
Do you have a full j2sdk or just a jre? You will need a full j2sdk (unless you are using tc5.5+). If so, is your JAVA_HOME evironment variable pointing to it? On Tue, 2004-10-19 at 03:00, Andrea Mennini wrote: > Antony Paul wrote: > > >Tomcat needs the tools.jar(For Sun JDK) in Tomcat classpat

[OT] Re: Push-Server with Tomcat

2004-10-19 Thread Ben Souther
On Tue, 2004-10-19 at 10:48, Harald Henkel wrote: > Hello. > > Steve Kirk wrote: > > > > Not sure if this is stating the obvious, > > No, it doesn't. > > > or this is the approach you've > > already taken, but it's not necesary to refresh the whole page that is > > displaying your data every f

RE: adding HTTP headers for all responses in web application

2004-10-20 Thread Ben Souther
Search the archives, I believe Tim Funk has actually written and published one Not sure though. On Wed, 2004-10-20 at 10:57, Mark wrote: > Sound like a good idea! Can you please point to a good filters-HOWTO? > --- Phillip Qin <[EMAIL PROTECTED]> wrote: > > > Have you thought of filter? >

Re: Mysterious session behavior across browsers

2004-10-21 Thread Ben Souther
It's been a while since I've fought with this issue so it may have changed. With MSIE, try opening a new browser instance by ctl+n or by clicking file->new. The two instances will be sharing the same session cookie. Open a new instance by clicking Start->programs->MSIE. This instance will have i

[OT] RE: Mysterious session behavior across browsers

2004-10-21 Thread Ben Souther
as well as tabs. > > -Original Message----- > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: 21 October 2004 12:10 > To: Tomcat Users List > Subject: Re: Mysterious session behavior across browsers > > > It's been a while since I've fought with this issue so it

RE: Testing/Development environment setups..

2004-10-21 Thread Ben Souther
My 2 cents: If your not already using a revision control system, you might want to look into one, like CVS. There are a few books on CVS here: http://jakarta.apache.org/site/library.html BTW: Ant integrates nicely with CVS On Thu, 2004-10-21 at 15:39, Shapira, Yoav wrote: > Hi, > > >I now unde

Re: Testing/Development environment setups..

2004-10-21 Thread Ben Souther
On Thu, 2004-10-21 at 17:42, Matt Bathje wrote: > Jonathan Wilson wrote: > > Yoav, Ben: > > > > Thanks for the tips - I think I finally have a grasp on how a real > > project would be run properly. I already use MySQL, cvs(in a manual > > fashion), ant(still new) so I'm not that far away. Develo

RE: jakarta-tomcat-4.1.31 fails to render the example JSPs

2004-10-21 Thread Ben Souther
2 things: 1.) Tomcat doesn't use your system's classpath variable. It's got it's own class loaders. 2.) Starting with Tomcat 5.5 you won't need to install a full jdk as this version ships with it's own compiler. So, things should get easier. On Thu, 2004-10-21 at 20:08, Luke FERNANDEZ wro

Re: Upgrading for the sake of it?

2004-10-22 Thread Ben Souther
If you're convinced that the conditions such as your code, your requirements, the status of the underlying system, and/or the security of all the pieces involved (and there are no guarantees that someone won't find a security hole in one of them this afternoon) are never going to change then going

RE: Problem with the JRE install

2004-10-22 Thread Ben Souther
Tomcat 5.0 requires a full j2sdk, not just a JRE (unless you're not using JSP, or unless your JSPs are precompiled) On Fri, 2004-10-22 at 08:28, Hauberoche, Patrick wrote: > Hi remy, > > In fact the tomcat version is 5.0.18., and the JRE 1.4.2_04 doesnt install > on this PC, I dont understa

RE: New User needing urgent help

2004-10-23 Thread Ben Souther
You'll probably have other problems later if you don't get your classes into packages (mapping servlets etc..). On Sat, 2004-10-23 at 14:01, Steven R. Christensen wrote: > >From this I gathered that the import code isn't required and it looks > like that fixed the problem. One thing I should h

RE: New User needing urgent help

2004-10-23 Thread Ben Souther
rk? > > Thanks for the help. > > > > From: Ben Souther [mailto:[EMAIL PROTECTED] > Sent: Sat 10/23/2004 1:06 PM > To: Tomcat Users List > Subject: RE: New User needing urgent help > > > > You'll probably have other pro

RE: Jakarta-Tomcat and Image Tag Library

2004-10-24 Thread Ben Souther
Not familiar with the tag-lib but try: src="images/employees/<%= employee_image %>" NOTE: no "/" at the beginning of the relative url On Sun, 2004-10-24 at 10:13, Lars Nielsen Lind wrote: > Hi. > > I use: > > Jakarta-Tomcat-5.0.25 > J2SDK1.4.2_04 > Image Taglib 1.0 (from binaries) > > There

Re: webapp hangs, how to debug?

2004-10-24 Thread Ben Souther
I would start by adding print statements to the various parts of your code and tailing the logs to see where exactly it's hanging. I don't know anything about your app but the first thing I would look at is how you're getting database connections. If you are using connection pooling and not retur

Re: AW: AW: Session Definition Bug?

2004-10-25 Thread Ben Souther
There is a plugin to Mozilla/Firefox that allows you to watch your headers: http://livehttpheaders.mozdev.org/ With that installed, you will be able to see if the browser is sending back session IDs properly. BTW: I use Mozilla and Firefox and have never had this problem. On Mon, 2004-10-25 a

Re: Does Oracle 9i thin jdbc driver work in Tomcat 5?

2004-10-25 Thread Ben Souther
I believe (and I'm sure I'll be corrected if I'm wrong), the drivers need to go into commmon/lib so that the container can access them. On Mon, 2004-10-25 at 08:13, Dov Rosenberg wrote: > I have successfully used Oracle 9 with JBoss, Jrun, and Tomcat. I don't > remember any specific differences b

Re: Does Oracle 9i thin jdbc driver work in Tomcat 5?

2004-10-25 Thread Ben Souther
On Mon, 2004-10-25 at 08:21, Ben Souther wrote: > I believe (and I'm sure I'll be corrected if I'm wrong), the drivers > need to go into commmon/lib so that the container can access them. If you're having Tomcat manage your connection pool, that is.. > > &g

RE: can we install tomcat in the directory which contains spacen in the name ???

2004-10-26 Thread Ben Souther
Tomcat, by default, installs into c:\program files\ when you use the .exe installer. On Tue, 2004-10-26 at 05:56, Steve Kirk wrote: > try a quick googling: > http://www.google.com/search?hl=en&lr=&q=tomcat+space+%22folder+name%22&btnG > =Search > > I always omit spaces from folder names, on t

Re: Application Deployment on Tomcat 5.1

2004-10-26 Thread Ben Souther
Hello, Yes, you can do that and there are several ways you can go about it. This link goes over all of them. http://jakarta.apache.org/tomcat/tomcat-5.0-doc/deployer-howto.html On Tue, 2004-10-26 at 18:53, Suryaanil Lingamallu wrote: > Hi, > > I need some help on deploying applications on To

RE: Random 500 errors

2004-10-27 Thread Ben Souther
Which version/release of RedHat? On Wed, 2004-10-27 at 07:42, Steve Kirk wrote: > web.xml doesn't flag anything specific to me. > > see if you can increase the verbosity of apache or tomcat logging, this > might give you more clues. > > Not familiar with Liferay. Is it possible to run it all

Re: Tomcat 5.0.27 hangs in windows 2000

2004-10-27 Thread Ben Souther
How are you accessing the Win2k machine? Terminal Services? On Wed, 2004-10-27 at 08:12, Karthik wrote: > Hi, > > We are running our application in tomcat 5.0.27 in windows 2000 and the server does > not respond after one or two days unless we restart the server.We have checked the > error

Re: Tomcat 5.0.27 hangs in windows 2000

2004-10-27 Thread Ben Souther
he command line while at the console, it ran just fine. The problem doesn't exist when starting TC as a service from the Services Window. Hope that helps. -Ben On Wed, 2004-10-27 at 08:24, Ben Souther wrote: > How are you accessing the Win2k machine? > > Terminal Services? >

Re: Tomcat 5.0.27 hangs in windows 2000

2004-10-27 Thread Ben Souther
> - Original Message - > From: "Ben Souther" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]> > Sent: Wednesday, October 27, 2004 6:39 PM > Subject: Re: Tomcat 5.0.27 hangs in windows 2000 > > > > The reason I ask is

Re: swallowOutput and catalina.out

2004-10-27 Thread Ben Souther
This is how I did it before implementing log4j. Remember, the TC logger is going away in 5.5x On Wed, 2004-10-27 at 09:16, Ryan Daly wrote: > All: > > Sorry if I've missed a thread regarding this. > > I have multiple web applications on a single instance of Tomcat.

Re: JNDI Resources in web.xml

2004-10-27 Thread Ben Souther
>Also, the docs caution that I should respect element ordering in the > web.xml file, but they don't tell me what the ordering should be. > Where is this ordering documented? SRV.13.4 of the Servlet Spec lists the order. The Tocmat documentation, generally, doesn't repeat what can be found in the

RE: newbie question

2004-10-28 Thread Ben Souther
Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: > Hi, > Yes: define separate Engines or Services for the two apps in your > server.xml, and put each connector only in the Service where you want > it. > > Yoav Shapira http://www.yoavshapira.com >

RE: newbie question

2004-10-28 Thread Ben Souther
On Thu, 2004-10-28 at 15:34, Luke FERNANDEZ wrote: > Am I spamming if I say thanks to all of you for your help? No, there is nothing wrong with a thank you. > I changed > the following line in server.xml and now both instances run: > > > > > I hope I wasn't imposing by asking all these naive

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Ben Souther
There is a section in the release notes on JNI classes that are shared by multiple apps. I assume this is what he's talking about. What it boils down to is that you can't put multiple copies of the same library in each of the webapps, you have to put them in either common/lib or shared/lib. This

Re: Log4j with Tomcat .. (3 questions)

2004-10-28 Thread Ben Souther
Log4j looks on your class path for a properties file "log4j.properties". If you put the file in WEB-INF/classes it will find it. Here's a real simple example: log4j.rootCategory=DEBUG, dest1 log4j.appender.dest1=org.apache.log4j.RollingFileAppender log4j.appender.dest1.file=/usr/local/tomcat/l

Re: Tomcat5.5.3 serious problems!

2004-10-28 Thread Ben Souther
Check out the directions for the manager app. There is a specific syntax for war files. The syntax is explained in detail here: http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html Here's a simple example for a war files named myapp.war on a local unix box (Note the exclamation

Re: Log4j with Tomcat .. (3 questions)

2004-10-28 Thread Ben Souther
e or > directory) > at java.io.FileInputStream.open(Native Method) > at java.io.FileInputStream.(FileInputStream.java:106) > at java.io.FileInputStream.(FileInputStream.java:66) > at > org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.j &g

Re: Log4j with Tomcat .. (3 questions)

2004-10-28 Thread Ben Souther
10-28 at 20:25, Ben Souther wrote: > Try pulling out the: > PropertyConfigurator.configure("log4j.properties") > line. > > You shouldn't need it. > Just let log4j find it in your classes directory. > > > On Thu, 2004-10-28 at 20:14, Mufaddal Khumri wrote

Re: How to Display a byte array (contents of a MS DOC fie, Excel, ..) in web browser

2004-10-28 Thread Ben Souther
Set the content type. Set the content disposition. Get a servletOutputStream from the response object. Write the bytes to the outputStream. Flush the stream. Sort of like this... You'll need to add exception handling and probably buffering if you're streaming the byte array in and out at the same

Re: how to deny .jsp execution within an upload directory

2004-10-29 Thread Ben Souther
I do this by not allowing the upload tool to write files with ".jsp" or ".jspx" extensions in the first place. I also disallow ".." in any part of the filename. You could also write a filter that scans any requests going to that directory and checks for those extensions. On Fri, 2004-10-29 at

RE: deploy war file

2004-11-01 Thread Ben Souther
Go to: http://localhost:8080/manager/html But before you do that, open TOMCAT_HOME/conf/tomcat-users.xml and add a username/password with manager role. On Mon, 2004-11-01 at 15:20, Scott Purcell wrote: > Thanks Wendy for the response. > > I have removed the full directory structure under my me

RE: Response and file downloads

2004-11-01 Thread Ben Souther
As the other poster correctly stated HTTP is a single request/response protocol -- emphasis on "protocol". Once you send the headers and response to a browser from a server, you can't send another one. This is not a Tomcat issue. On Mon, 2004-11-01 at 15:17, Luc Foisy wrote: > I know there is o

RE: sessionS info persistence when restart Tomcat

2004-11-04 Thread Ben Souther
SessionDestroyed shouldn't be called when tomcat shuts down. Otherwise, the session wouldn't be valid when it starts up. I just tested with a clean install of 5.0.29 with a similar listener to the one you describe. SessionDestroyed was not called when I stopped TC but the sessions were still valid

Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
First, is your servlet in a package? Non-packaged servlets will not work. Did you map your servlet in web.xml? What is the URL you are using to call the servlet? You don't need to set a classpath environment variable Tomcat sets it's own. Did you install a full j2sdk or just a jre? Tomcat 5.0 an

Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
-04 at 21:29, Ben Souther wrote: > First, is your servlet in a package? > Non-packaged servlets will not work. > > Did you map your servlet in web.xml? > What is the URL you are using to call the servlet? > > You don't need to set a classpath environment variable > To

Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
a "command not found error, then your JAVA_HOME environment varible is not set properly. > > I will write you back once I have put my servlet in > the package and I will recompile and test it again, > please help me with this, this is driving me mad, many > thanks Ben, > &

Re: (Ben Souther) Thank u so much Re: dear friend i'm in a big trouble

2004-11-04 Thread Ben Souther
mand line, it should be able to find the compiler and thus, run your JSPs. > please guide me what shall I do now, many thanks for > your help, regards, raasi You said you spent 3 days reading manuals. Did you read this? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/appdev/i

RE: sessionS info persistence when restart Tomcat

2004-11-05 Thread Ben Souther
tDestroyed not being called and was tested under 5.0.8 and 5.5.x and working. > > > >-Original Message- > >From: Ben Souther [mailto:[EMAIL PROTECTED] > >Sent: Thursday, November 04, 2004 9:22 PM > >To: Tomcat Users List > >Subject: RE: sessionS info

RE: sessionS info persistence when restart Tomcat

2004-11-05 Thread Ben Souther
On Fri, 2004-11-05 at 09:06, Steve Kirk wrote: > > SessionDestroyed shouldn't be called when tomcat shuts down. > > good point. doh! but if I've understood correctly, shouldn't other methods > of my SessionLogger be called? namely sessionWillPassivate, > contextDestroyed (and possibly finalize

RE: sessionS info persistence when restart Tomcat

2004-11-05 Thread Ben Souther
Also, still can't work out why SESSIONS.ser is only accessed when a new > warfile causes a reload and not otherwise. > > > -Original Message- > > From: Ben Souther [mailto:[EMAIL PROTECTED] > > Sent: Friday 05 November 2004 15:08 > > To: Tomcat Users List > >

RE: sessionS info persistence when restart Tomcat

2004-11-05 Thread Ben Souther
> aha. so it looks like it's something I screwed up ;) > I don't know. I just know that, in my case, the object that I put into session survives restarts. The easiest way to test things like this, for me, is to write a small test app and run it on a fresh install of Tomcat. If it works there then

Re: How to set up Tomca t5.0.28 to work with Apache2 on Slackware Linux?

2004-11-05 Thread Ben Souther
Before you spend too much time and energy with the connectors... do you definitely need to connect with Apache Httpd? Depending on your needs, running Tomcat behind another webserver might not only be unnecessary but less efficient than running as a standalone. The recent performance gains in bot

Re: Why need Apache since we got Tomcat?

2004-11-05 Thread Ben Souther
perl and PHP guys > hook up to Tomcat? > > I do not worry about Tomcat kill Apache! > > Thanks! > > > > > --- Ben Souther <[EMAIL PROTECTED]> wrote: > > > Before you spend too much time and energy with the > > connectors... do you > > de

RE: sessionS info persistence when restart Tomcat

2004-11-05 Thread Ben Souther
d any nested objects must implement Serializable. > > --- Ben Souther <[EMAIL PROTECTED]> wrote: > > > > aha. so it looks like it's something I screwed up ;) > > > > > I don't know. I just know that, in my case, the object that I put > > into

Re: reinstalled SDK - NT Service doesn't start

2004-11-05 Thread Ben Souther
>From the tomcat config screen, click the Java tab and update the path to your jvm. On Fri, 2004-11-05 at 16:01, David Aleksanyan wrote: > Hello guys, > After reinstalling the SDK. > Tomcat 4.1.28 works from console but the NT doesn't start > Do you guys know how to fix this? > > I'm suspecting

Re: reinstalled SDK - NT Service doesn't start

2004-11-05 Thread Ben Souther
e this opportunity to upgrade Tomcat ;) > >>> [EMAIL PROTECTED] 11/05/04 2:24 PM >>> > The Tomcat config app has been long gone. > Is there any way to do it without the interface? > > ----- Original Message - > From: "Ben Souther" <[EMAIL

Re: AW: {an alternative}Re: connection pooling

2004-11-06 Thread Ben Souther
> What escapes me is, why is this not more obviously documented? > Perhaps it's in the Tomcat docs but I mostly abandoned those some time > ago as they are so amazingly detailed and lengthy that unless you want > to become a TC guru, which I am inspired to try and be more like, > there is simply t

Re: [OT] Tomcat/5.5.3 with jdk1.5.0 DONOT run on port 5555.

2004-11-06 Thread Ben Souther
On Sat, 2004-11-06 at 07:36, Amit Gupta wrote: > I am server administrator and port is open Have you scanned the ports to see if anything else is bound to it on that server? > > - Original Message - > From: "Ben Souther" <[EMAIL PROTECTED]> > To:

RE: Where to put bean classes

2004-11-08 Thread Ben Souther
If you're interested, I've posted a couple of really simple example webapps. SimpleMVC, has beans that are accessed from JSPs. http://www.souther.us/simple. The examples are not tutorials. They are just a quick way to get a working example on your machine. Yoav Shapira's advice about finding

Re: Renaming WAR problem

2004-11-08 Thread Ben Souther
What did you rename it to? On Mon, 2004-11-08 at 09:46, Andrew Watters wrote: > I have a WAR which tomcat recognises and unpacks correctly. When I > rename the WAR tomcat no longer unpacks it. Is this expected behaviour? > I've had a look in the 2.4 servlet spec and haven't been able to find

Re: Renaming WAR problem

2004-11-08 Thread Ben Souther
is a > result of moving to maven and it appending the version number. > > Ben Souther wrote: > > >What did you rename it to? > > > > > > > >On Mon, 2004-11-08 at 09:46, Andrew Watters wrote: > > > > > >>I have a WAR which tomcat recog

Re: tomcat 5.0 service boot

2004-11-08 Thread Ben Souther
Hi John, Not sure if you meant to send this directly to me or not. I'll assume not and CC the tomcat list. 5.0.29 has a control panel that allows you to edit your java params Start->Programs->Apache Tomcat->Configure Tomcat If you didn't install that part, you will need to edit the registry keys

RE: Index.jsp

2004-11-08 Thread Ben Souther
Steve's answer is correct. You can either delete the servlet and servlet-mapping entries in /webapps/ROOT/WEB-INF/web.xml or start your own context. If you're interested, I've got some simple example apps at http://www.souther.us/simple that you can download and run. They're all war files that j

Re: Preventing users getting accessing to directory contents in Tomcat

2004-11-10 Thread Ben Souther
test.html === test.jsp test.jsp === <%=request.getHeader("REFERER")%> On Wed, 2004-11-10 at 08:17, Paul Taylor wrote: > please how do I do that ? > Ben Souther wrote: > > >You could check the referrer heade

Re: Use of Referer header

2004-11-10 Thread Ben Souther
The browser generates the HTTP headers and there are some rules governing when they are to be sent. http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html This isn't really Tomcat specific so I'm marking [OT] You may find more enthusiastic help on a JSP/Servlet list. -Ben On Wed,

[OT] Re: Use of Referer header

2004-11-10 Thread Ben Souther
On Wed, 2004-11-10 at 12:52, Ben Souther wrote: > The browser generates the HTTP headers and there are some rules > governing when they are to be sent. > http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html > > This isn't really Tomcat specific so I'm marking

Re: How to run a servlet when an application or Tomcat is stopped

2004-11-10 Thread Ben Souther
Yes, read up on ContextListeners. On Wed, 2004-11-10 at 15:15, Bill McHugh wrote: > I know that you can use to run a servlet when an application > is started. Is there a way to specify that a particular servlet (or java > class) is to be run when (a) the application is stopped, and (b) when Tom

Re: OT: hosting recommendations?

2004-11-12 Thread Ben Souther
I use assortedinternet.com. Tomcat/postgres for 30.00 to 35.00 they might have other plans too On Fri, 2004-11-12 at 14:34, Woodchuck wrote: > hihi all, > > can anyone recommend hosters that are Tomcat/Java friendly and offer > private JVMs for cheap monthly cost? (cheap to me is $0 - $20/m

Re: Can someone explain this?

2004-06-14 Thread Ben Souther
On Monday 14 June 2004 02:11 pm, Worley Brent - bworle wrote: > I'd love to, but I do not have documentation on what packages are in this > .jar file. jar -tf jarfilename.jar -- Ben Souther F.W. Davison & Company, Inc. This e-mail message, and any accompanying documents, is f

Re: Multiple requests sharing the same Servlet instance

2004-06-16 Thread Ben Souther
or privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not be saved, copied, > printed, disclosed or used by anyone else. If you are not the(an) intended > recipient, please immediately delete this e-mail from your computer system > an

Re: question

2004-06-17 Thread Ben Souther
nfidential, > proprietary and/or privileged. This e-mail is intended only for the > individual(s) to whom it is addressed, and may not be saved, copied, > printed, disclosed or used by anyone else. If you are not the(an) intended > recipient, please immediately delete this e-mail from yo

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
> I've set JAVA_HOME as C:\j2sdk1.4.2_05 but tomcat still doesn't compile JSP > > any ideas? > > Simone -- Ben Souther F.W. Davison & Company, Inc. This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may con

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
Did it? On Monday 12 July 2004 09:00 am, Simone-dev wrote: > And what if it works ? > > Simone > > Ben Souther wrote: > >Test your JAVA_HOME environment variable. > > > >Open a command prompt and type: > >%JAVA_HOME%\bin\javac > > > >If you see:

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
here is a Java Tab in there that you can use to set the Java Home property. See if that matches your JAVA_HOME env var. On Monday 12 July 2004 09:03 am, Simone-dev wrote: > Yes, I did it > the JAVA_HOME is set correctly > > Simone > > Ben Souther wrote: > >Did it? >

Re: No Java compiler was found to compile the generated source for the JSP

2004-07-12 Thread Ben Souther
t was set to "C:\Program > Files\Java\j2re1.4.2_05\bin\client\jvm.dll" (and didn't worked) > then I changed it to "C:\j2sdk1.4.2_05\jre\bin\client\jvm.dll" but still > doesn't work > > and there is not place to set a java home via configuration panel > &g

Re: SOLVED: How to get the context path for a web application?

2004-08-13 Thread Ben Souther
wouldn't all be happy? And why isn't it simple? -- Ben Souther F.W. Davison & Company, Inc. This e-mail message, and any accompanying documents, is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, di

Re: Embedded Tomcat deploying WAR with URL of type jar:

2004-11-16 Thread Ben Souther
Hi Joe, >URL warFile = new URL("jar:C:/source/ROOT.war"); Take a look at the syntax for the JarURLConnection class. http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html -Ben Souther F.W. Davison & Co, Inc. ;-) On Tue, 2004-11-16 at 17:59, Joe Reger, Jr. wr

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
Why don't you just use a relative link?: On Mon, 2004-11-22 at 10:13, Stefan wrote: > Hi, > > Just out of curiousity I changed the forms' action attribute to include the > full path: > > http://127.0.0.1/the_context/loginResponse.do"; method="post"> > > >From a page with this URL: http://127.0

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
conf\Catalina\localhost > > In the xml file (contexName.xml) I have this entry: > > reloadable="true"> > > Of course, my web app is sitting in the 'webapps' directory in Tomcat. > > Any ideas? > > Stefan > > www.killersites.com

Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
I can get the client to use Resin (for some > reason, everything works fine is Resin ... out of the box), frankly at this > point I'm not too impressed the Tomcat. > > Thanks Ben. > > Stefan > > > > > - Original Message - > From: "Ben

[OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
sion of Tomcat if it's installed in > the 'Program Files' directory - that is to say, could it be some physical > path issue? > > Thanks, > > > Stefan > > > > - Original Message - > From: "Ben Souther" <[EMAIL PROTECTE

Re: [OT] Re: Servlet mapping problem.

2004-11-22 Thread Ben Souther
er configuration to get this > >running. But since you chose to have a context.xml file, it's up to > you > >to learn how to use it. > > > >Yoav Shapira http://www.yoavshapira.com > > > > > >>-Original Message- > >>From: Stefan [mailto:[EMA

RE: Server redirected too many times (20)

2004-11-22 Thread Ben Souther
And you've verified that there are no circular references caused by response.sendRedirect calls? On Mon, 2004-11-22 at 13:34, Allistair Crossley wrote: > Hi Yoav, > > We run on Windows 2000, the concept of sym links aren't there. It's right > across our HTML content (which is loaded from file s

Re: Enabling servlet reloading?

2004-11-22 Thread Ben Souther
#x27;s your mistake, not Tomcat's fault. > > > > > >You don't even need a context.xml file: you could have simply created a > > >directory for your app under webapps, and put your files there, and > > >voila: i.e. you didn't need to do ANY serve

Re: tomcat working space permisions and javamail - linux

2004-11-23 Thread Ben Souther
You'd have to give us a little more information. Are you squashing exception output with try/catch blocks? You would see an exception if your app was trying to read a file and couldn't. Are you able to mail from your app without attachments? Are you sure the file is there? If so, have you tri

Re: Servlets and debugging

2004-11-23 Thread Ben Souther
> invoker > /servlet/* > > (No one had ever said before about the > servlet-mapping directive.) There are good reasons why the invoker servlet has been removed (commented out) of the default web.xml in Tomcat. http://jakarta.apache.org/tomcat/faq/misc.html#evil You would be much bet

RE: Printing to log files..

2004-11-24 Thread Ben Souther
> i have certain process that are started by tomcat..And the only > way for me to know that the process is going on is to put > system.out.print(),but then this also prints on my log files, > is there any way other than this to print only on screen and not to > the log files ..? > There are seve

Re: Installing a war from inside a jar

2004-11-24 Thread Ben Souther
Make sure you're getting the syntax of the war file correct: http://java.sun.com/j2se/1.4.2/docs/api/java/net/JarURLConnection.html URL url = new URL("jar:file:/home/duke/myApp.war!/"); Note: the "jar:" at the beginning. Still not sure how this will work from within a jar though. -Ben On Tue,

[OT] Re: JavaScript/JSP Question

2004-11-24 Thread Ben Souther
This question is not tomcat specific so I'm marking [OT]. I believe Javascript has the same startsWith/endsWith string functionality that Java has. You should be able to simulate that pretty easily. On Tue, 2004-11-23 at 23:33, Jack Lauman wrote: > I'm using the following JavaScript to crea

Re: servlet instance problem

2004-11-24 Thread Ben Souther
On Wed, 2004-11-24 at 01:25, Satish Plakote wrote: > Hi > I am have a web application that does a lot of processing. I have a load on > startup servlet that will get init information for me. > when 2 users submit the form.. i noticed that one instance of the servlet is > running and the other req

RE: Tomcat Documentation Thoughts

2004-11-24 Thread Ben Souther
>Let's get a page detailing a step by step how to write and contribute > >documentation and then let's get Tomcat's docs up to scratch by really > >considering the areas that come up time and again in the lists and > making > >the Tomcat documentation deserving of its functional reputation. There'

[OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Ben Souther
Hi, This is not a Tomcat specific question so I am marking the subject [OT]. You may find more enthusiastic help in a JSP/Servlet list (a Google search will yield plenty of them). Have you considered using response.sendRedirect() to send the user to another page after a successful login? -Ben

Re: [OT] Re: Tomcat and Servlets - DESPERATE for help

2004-11-24 Thread Ben Souther
On Wed, 2004-11-24 at 11:26, Michael McQuade wrote: > Ben, I think it is a Tomcat specific subject, Im just not sure what to do > about it, Im thinking theres a variable in Tomcat maybe needs to be set, > or session refreshed, or something.. If you want to paste the relevant part of your s

Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error

2004-11-24 Thread Ben Souther
Just a wild stab here but did you accidentally copy over any of the old jars from TC4x.. like servlet.jar, jasper-runtime.jar, or jasper-compiler.jar? On Wed, 2004-11-24 at 18:15, Pat Osterday wrote: > We recently tried to upgrade from Tomcat 5.0.25 and JDK 1.4.1 to Tomcat > 5.5.4 and JDK 1.5.0 (

Re: Tomcat - problem starting service

2004-11-24 Thread Ben Souther
Yep, the installer picked up the wrong JRE. If you installed the Start Menu items you can change that by clicking Start -> Programs -> Apache Tomcat -> Config. then click the "Java" tab. If not, you'll either have to uninstall/reinstall or change the value in the registry using regedit. On

Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error

2004-11-24 Thread Ben Souther
On Wed, 2004-11-24 at 20:17, wasted wrote: > Nope. It's a clean install - and I just looked at the common/lib on both > directories (5.0 and 5.5) and they are different. And you don't have any of those libraries in your app? WEB-INF/lib --

Re: Tomcat 5.5.4, JDK1.5.0 and JSP compile error

2004-11-24 Thread Ben Souther
d xerces, but nothing from the 5.5 common/lib and > definitely nothing related to jasper/jsp compilation that I'm aware of. > > - Original Message - > From: "Ben Souther" <[EMAIL PROTECTED]> > To: "Tomcat Users List" <[EMAIL PROTECTED]>

<    1   2   3   4   5   6   >