General Basic Deployment Question

2005-03-17 Thread Bernard
Hi, I want to deploy a servlet jar file without using the manager application. From reading context.xml, I understand that is possible to re-start an application by modifying the files that are listed in it e.g. WEB-INF/web.xml But it doesn't work for me. How can I get it to work? Has anybody

RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: Stanczak Group [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat 5 on VPS service stops > > Error occurred during initialization of VM > Could not reserve enough space for object heap > Could not create the Java virtual machine. > > I thought when Tomcat ran out of ram it left a log entry?

Re: changing my web app and then deploying takes a lot of time!!!

2005-03-17 Thread Bernard
This drives me crazy, too. I can't comment on .war file deployment directly because I am not using it. But I want to help you anyway, suggesting the approach I would take. I would forget manager for a moment. A basic servlet engine (these things have been around for 10 years or more, remember Sun

Re: Reload webapp and context

2005-03-17 Thread Torrey Rice
Thank you for your suggestions. I will give them a shot. It's even stranger when you set the server to not unpack wars. You might find it interesting so I'll give you a brief description of what I found in my tests to get tomcat to redeploy without a restart. Let's say I have a war called com_m

Re: Logging in Tomcat 5.5

2005-03-17 Thread Simon Kitching
On Fri, 2005-03-18 at 11:25 +0530, Joy Kenneth Harry wrote: > Hi, > I have a webapp in tomcat. I am using a separate Log4j.xml for it, in > its WEB-INF classes folder. > > I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to > false so that I do not get the general Tomcat logs. >

Re: tomcat throwing exceptions

2005-03-17 Thread Antony Paul
Just out of curiousity what this line means ? StandardWrapperValve[UserPurchase]: Also this line looks strange .servlet.HandleRequest.showMessage(HandleRequest.java:203) On Fri, 18 Mar 2005 00:34:18 -0600, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Barclay, Lachlan [mailto:[EM

TOMCAT SSL PROBLEM

2005-03-17 Thread admin
HI! I am having problem in production deployment. I am using Tomcat 4.1.24 . It's working fine in Win 2k UAT machine , same is working fine in Linux 2.1 UAT machine. While same is fine in production machine as well. But I change server.xml in all the three machine, it works fine in both UAT machine

Re: Tomcat 5 on VPS service stops

2005-03-17 Thread Stanczak Group
That give me another question. Why on this RH Linux system when issuing the java command I get: Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine. That's why I put the -Xmx64m. Now I just changed it to this: /usr/ja

RE: tomcat throwing exceptions

2005-03-17 Thread Caldarale, Charles R
> From: Barclay, Lachlan [mailto:[EMAIL PROTECTED] > Subject: tomcat throwing exceptions > > But then if I quicken the delays to about 20ms, I start to > get these exceptions. It looks like Tomcat is thinking that > a request is part of a previous request, and then something > goes wrong. Odds ar

tomcat throwing exceptions

2005-03-17 Thread Barclay, Lachlan
Hi everyone, I'm currently getting a tomcat exception showing up in my logs - I'm not sure if this is a Tomcat problem or not, so any suggestions would be great. (I am using Tomcat 4.1.10, can't use 5 because of what is running in production) The exception is: 2005-03-18 17:15:19 StandardWrap

Logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry
Hi, I have a webapp in tomcat. I am using a separate Log4j.xml for it, in its WEB-INF classes folder. I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to false so that I do not get the general Tomcat logs. But even then my project logs are getting mixed with the TOMCAT logs. I

RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: samsher khan [mailto:[EMAIL PROTECTED] > Subject: RE: Tomcat 5 on VPS service stops > > But I don't think memory is any problem I have more > than 500 mb ram on my system But by setting -Xmx64m, you're limiting the Java heap to only 64 MB, and that has to be partitioned into eden space,

RE: Tomcat 5 on VPS service stops

2005-03-17 Thread samsher khan
Thanks Chuck for the reply But I don't think memory is any problem I have more than 500 mb ram on my system --- "Caldarale, Charles R" <[EMAIL PROTECTED]> wrote: > > From: Stanczak Group > [mailto:[EMAIL PROTECTED] > > Subject: Tomcat 5 on VPS service stops > > > > I start the service with -Xmx64m

RE: Tomcat 5 on VPS service stops

2005-03-17 Thread Caldarale, Charles R
> From: Stanczak Group [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5 on VPS service stops > > I start the service with -Xmx64m -server and I'm using > jdk 1.5.0_01. That's not much memory for Tomcat to play with. You might want to set -verbose:gc to see if you've fallen into a continuous GC mo

Problem running Servlets in tomcat 5.0

2005-03-17 Thread samsher khan
Hi I am able to run the jsp in the tomcat 5.0 but when I try to run a war file containing servlets instead of executing it the IE try's to download it as zip file. I have web.xml file web-inf folder also.If I just give only the servlet path in the IE then the server say requested resource not avai

RE: tomcat 5.5 connector

2005-03-17 Thread Rahman, Hamdur
Basically we have to make tomcat 5.5 connectors listen to non-http request, Especially telnet to any of the port. Yes one thing more there is no apache, so tomcat is acting as web server as well as servlets container. Can any custom built non-http connector is provided Plz advice me in this matter

Tomcat 5 on VPS service stops

2005-03-17 Thread Stanczak Group
I'm having a strange issue with my Tomcat 5 server. I have two instances of Tomcat 5 running on my VPS system I pay for. For some reason just the Tomcat services just stop. I can't find any errors that tell me why it just stops. This is the fifth time I've re-started them today. The systems are

Re: Reload webapp and context

2005-03-17 Thread Bernard
Hi Torrey, I can't comment on .war file deployment directly because I am not using it. But I want to help you anyway, suggesting the approach I would take. I would forget manager for a moment. A basic servlet engine (these things have been around for 10 years or more, remember Sun's Java Server)

Re: Serious Tomcat Question

2005-03-17 Thread Bernard
Thanks Dan for your reply. Your suggestion is very much appreciated. Running multiple instances as a workaround for this may be fine for a handful of virtual hosts, but if you have 50 or 100? How much memory and CPU or even how many physical machines do I need for that? I would also find it error

how to detect the servlet at the start-up

2005-03-17 Thread Xiaoyu Tang
Dear all, I am using Tomcat 4.1. I am confused by one problem, basically I cannot view the servlet in the http://localhost:8080/tomcat-docs/appdev/sample/web/index.html. The file refers to the servlet using servlet, where the web.xml has defined this servlet as HelloServlet

Production Deployment Problem

2005-03-17 Thread Admin
HI! I am having problem in production deployment. I am using Tomcat 4.1.24 . It's working fine in Win 2k UAT machine , same is working fine in Linux 2.1 UAT machine. While same is fine in production machine as well. But I change server.xml in all the three machine, it works fine in both UAT machi

Re: Serious Tomcat Question

2005-03-17 Thread Dan Barron
Not sure what your need or frequency is for routine adding/deleting of a virtual host is, but have you considered running multiple instances of Tomcat and connecting them each over different jk port? Perhaps, one instance runs your stable virtual hosts - another runs your dynamic set of virtua

Re: Reload webapp and context

2005-03-17 Thread Torrey Rice
I have a similar problem in 5.5 when deploying my .war files. If I go to the manager and undeploy a webapp that was deployed from a war it only deletes the .war file and not the exploded directory. If I want to deploy an update I have to stop tomcat and start it again for it to pickup the chang

changing my web app and then deploying takes a lot of time!!!

2005-03-17 Thread Kostas Karadamoglou
Hi again! I am currently developoing a web application and whenever I change my project (jsp file or java classes) I have to deploy and undeploy the application again. Which take a lot of time and it drives me crazy!!! Do you know how can I foce tomcat to deploy my build directory and whenever I

Serious Tomcat Question

2005-03-17 Thread Bernard
Hi, I would like to hear opinions from users or developers who have a little more experience with mod-jk/Tomcat then me. With multiple virtual hosts, I would like to add and delete virtual hosts on a routine basis. This is achieved by re-starting both httpd and tomcat after re-configuration (I d

How can I see the full stack trace in the browser?

2005-03-17 Thread Kostas Karadamoglou
Is it possible to see the full stack trace of an exception in the browser? If yes, how can I enable it? thank you in advance kostas. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: book for servlet programming

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 04:24:57PM -0800, brian wrote: : Please let me know your experiences about a good book to for : servlet programming. (shall be using Tomcat primarily) 1/ "Inside Servlets," by Dustin Callaway. I tried a few other servlet books, but this is the one that really worked for me

RE: book for servlet programming

2005-03-17 Thread Mike Jackson
I like the WROX book JSP 2nd Edition. It's not purely a servlet book but it covers just about everything you might want to do. Namely filters, servlets, JSPs, MVC frameworks, XML/XSLT, custom tags and tag libraries, JDBC, and EJB. It's a little old so it doesn't cover some other important things

RE: book for servlet programming

2005-03-17 Thread David Short
I highly recommend "Java Server Pages" 3rd edition, by Hans Bergsten (O'Reilly). It covers servlets, JSP and struts. Many examples and easy to read and understand. I own all three editions. -Original Message- From: brian [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 4:25 PM T

book for servlet programming

2005-03-17 Thread brian
I need a book for servlet programming- there are some good reviews for the Jason (O'Reilly) book. and also for Goodwill's Servlet programming. Please let me know your experiences about a good book to for servlet programming. (shall be using Tomcat primarily) references to some tutorials with to

Tomcat startup with jsvc on Linux

2005-03-17 Thread Bernard
Hi, How can I start Tomcat with jsvc so that the jsvc command returns control to the command prompt or script exactly after the "Daemon started successfully" ? I would like it to behave in the same way as other services such as Apache httpd so I can cod success and failure messages in the script.

RE: Mapping JSP

2005-03-17 Thread Jimmy Ray
Thank-you, that worked famously. Regards, Jimmy Ray --- "Ramu, Vinod" <[EMAIL PROTECTED]> wrote: > Use XML element (under node) in > your web.xml. Then > dispatch the request to this resource using > ServletContext.getNamedDispatcher("nameoftheresource"). > If you use this > method there is no n

RE: Mapping JSP

2005-03-17 Thread Ramu, Vinod
Use XML element (under node) in your web.xml. Then dispatch the request to this resource using ServletContext.getNamedDispatcher("nameoftheresource"). If you use this method there is no need to use any path. It identifies the resources based on the name that you pass. Vinod -Original Messag

Mapping JSP

2005-03-17 Thread Jimmy Ray
I have several JSP that I want to be able to forward to from servlets. Right now I stick my JSP in WEB-INF/jsp for security reasons. I guess I need a way to include a JSP mapping in the web.xml so that my request dispatcher call does not include the WEB-INF directory in its path. Anyone know the

RE: System ClassLoader problem on Linux running Hipergate on Tomcat?

2005-03-17 Thread Caldarale, Charles R
> From: Lee Hammond [mailto:[EMAIL PROTECTED] > Subject: System ClassLoader problem on Linux running Hipergate on Tomcat? > > Well, I've got J2EE in it's default place /opt/ and Tomcat 5.0.30 > in /opt too and everything is now working fine. Tomcat doesn't need the J2EE download, and, in some sit

RE: How to redirect to a different host

2005-03-17 Thread Gilbert, Luke T
There is no way for Tomcat to do this 'out of the box'. But don't despair! Check out: http://www.zlatkovic.com/httpredirectfilter.en.html The author has released it under a very free license. I have been using the filter and can personally recommend it. The site seems to be down right now, so

Web apps vs. Logging vs. Tomcat

2005-03-17 Thread Jess Holle
I have been trying to get really serious about log4j in web apps. I note that Tomcat (thanks to commons-logging) uses java.util.logging *except* for loggers created while my web app's classloader is the current contextual classloader -- at which point it suddenly uses log4j (since my web app does)

Re: Reload webapp and context

2005-03-17 Thread Bernard
Roland, You might want to add yourself to the cc list of this bug: Normal startup causes server error 500 http://issues.apache.org/bugzilla/show_bug.cgi?id=34050 It might be in the area of your interest. Regards, Bernard On Thu, 17 Mar 2005 11:02:57 +0100, you wrote: >Hi, > >To reload,

System ClassLoader problem on Linux running Hipergate on Tomcat?

2005-03-17 Thread Lee Hammond
Apologies, I've put a lot in this email so that hopefully my rescuer won't have to in theirs... This is probably such a dumb problem I deserve to be shot, but I'm stuck and I have no support and I'm desperately trying to migrate one machine in this office so that we don't have to shell out for mor

Re: localhost ok - how I set up in a real host?

2005-03-17 Thread John Najarian
Set a hostname up in etc/hosts and access it. -Original Message- From: QM <[EMAIL PROTECTED]> Sent: Mar 17, 2005 12:31 PM To: Tomcat Users List Subject: Re: localhost ok - how I set up in a real host? On Thu, Mar 17, 2005 at 05:24:12PM -0300, [EMAIL PROTECTED] wrote: : I succesfully exec

Re: localhost ok - how I set up in a real host?

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 05:24:12PM -0300, [EMAIL PROTECTED] wrote: : I succesfully executed a tutorial form servlet in the computer. Now I want to try it on a web host. : But, I am using a free host (beplaced.com) that I don't know if accepts java servlets. Questions: : : 1) How do I know if the

localhost ok - how I set up in a real host?

2005-03-17 Thread abramian
Hi I succesfully executed a tutorial form servlet in the computer. Now I want to try it on a web host. But, I am using a free host (beplaced.com) that I don't know if accepts java servlets. Questions: 1) How do I know if the server accepts java servlets? 2) I imagine if they do they have to run

Re: RE: How to redirect to a different host & Balancer Rules

2005-03-17 Thread Dan
Thanks for the Idea Vinod, unfortunately I don't have control of the jsp content, so that rather elegant solution won't work. However I'm definitely tucking that away in my mental rolodex. Thanks for the tip!!! Does anyone else know if there's a way to redirect to a different host I was looki

RE: How to redirect to a different host

2005-03-17 Thread Ramu, Vinod
You may have to use JSTL in your page. JSTL provides a tag called "import" that has the capability to import contents from other site to your page. So you may built a page that looks like <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"; %> http://shoppingcarthost:8080/shopping"/> Whe

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Ben Kim
1. Which platform and crond are you on? Is the crontab format correct for your environment? 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh vs. 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh 2. You may want to see if shutdown.sh works as root. 3. You can also try 00 22 * * * /PATH/TO/

How to redirect to a different host

2005-03-17 Thread Dan
Is there anyway to configure Tomcat (without using apache) to redirect requests for a particular context to a new url (and host) Here's the scenario on the main page there is a link to a shopping cart context. This webapp does not run on this machine, it's running on a totally separate system,

Default Web Root Issue?

2005-03-17 Thread Carter, Shane (DISA Oklahoma City)
I am having the following problem I can't get to website by typing https://serveripaddress, however, if I type https://serveripaddrress/root it takes me there. I am assuming that some setting isn't pointing in the right direction. Thanks in advance for any help. Shane -Original Message---

Default Web Root

2005-03-17 Thread Carter, Shane (DISA Oklahoma City)
Is there a way I can change the default web root in Tomcat 5.5? If so, how?

Re: Reload webapp and context

2005-03-17 Thread Bernard
Hi, Maybe this can help: In Tomcat 5.5, the file context.xml in the server's conf directory allows for watched resources, which when touched, cause an application reload: It looks like this: WEB-INF/web.xml META-INF/context.xml I am trying to not include th

Re: mod_jk + ssl on a virtual host.

2005-03-17 Thread Robert r. Sanders
Caldarale, Charles R wrote: From: Robert r. Sanders [mailto:[EMAIL PROTECTED] Subject: mod_jk + ssl on a virtual host. When connecting, I can access the web application via HTTPS; however Tomcat seems unaware that the connection is secure Have you set secure="true" in the connector entry in s

RE: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-17 Thread Richard Mixon (qwest)
We are using form-based authentication. We changed to the DataSourceRealm last weekend and it appears (so far) to have solved the problem (again with TC 5.5.7 plus session replication patch). - Richard Darren Govoni wrote: > I had similar problems, and was forced to revert back to Tomcat 5.0.x.

Re: POST no longer working

2005-03-17 Thread Jimmy Ray
What wasn't working was the POST was not sending any parameters to the servlet. In this servlet, I combine the doGet and doPost and only a GET was providing the servlet parameters from the web form. The issue seemed to be tied to the NTLM authentication that the jcifs lib performed. Once my sess

RE: mod_jk + ssl on a virtual host.

2005-03-17 Thread Caldarale, Charles R
> From: Robert r. Sanders [mailto:[EMAIL PROTECTED] > Subject: mod_jk + ssl on a virtual host. > > When connecting, I can access the web application via HTTPS; > however Tomcat seems unaware that the connection is secure Have you set secure="true" in the connector entry in server.xml that you're

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
1/ Sorry having replied to an unrelated message. 2/ Yes Tomcat always run as root. 3/ I am newbie, so I will get info about 'wapper script'. 4/ uhmmm a newbie question : Where can I find these logs . sorry :s QM wrote: On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like

RE: Servlet pops up as download

2005-03-17 Thread Nick Wolters
Thanks. I think the client lied when he told me it did show a while ago :) With a WML enabled browser everything is ok. Nick -Original Message- From: Lionel Farbos [mailto:[EMAIL PROTECTED] Sent: donderdag 17 maart 2005 17:23 To: Tomcat Users List Cc: [EMAIL PROTECTED] Subject: Re: Serv

Re: Start and stop Tomcat + Cron

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 05:24:59PM +0100, C?dric Buschini wrote: : I'd like to stop and start my tomcat using cron so I added this in the : root's crontab and /etc/crontab : : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh : 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh 1/ please post a *ne

Re: JDBCRealm changes from Tomcat 5.0.x to 5.5.x

2005-03-17 Thread Darren Govoni
I had similar problems, and was forced to revert back to Tomcat 5.0.x. Are you using HTTP or Form-based authentication to get the user credentials? On Tue, 2005-03-08 at 11:57 -0700, Richard Mixon (qwest) wrote: > Has anything changed with the way that JDBCReal handles connection > timeouts in T

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Lionel Farbos
Yes and it depends on your crontab version. In my version, the system-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh and the user-wide crontab seems like this : 00 22 * * * /PATH/TO/JAKARTA/bin/shutdown.sh ... but are not executed by the same user. On Thu, 17 Mar 2005

mod_jk + ssl on a virtual host.

2005-03-17 Thread Robert r. Sanders
I have an issue with detecting HTTPS when running on a virtual server behing mod_jk; here's my setup: For reasons that I can't currently change I have an internal server running as app.server.com (example url); it is aliased so that multiple virtual hosts (name based) are running as: x.app.se

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
yes everything is fine. all vars have been export. I've done a JAVA_HOME=path/to/java then export JAVA_HOME. Same thing for CATALINA_HOME Robert r. Sanders wrote: Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi

Re: Start and stop Tomcat + Cron

2005-03-17 Thread Robert r. Sanders
Are your JAVA_HOME and other vars defined in a global context? Other than that I don't really know. Cédric Buschini wrote: Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * r

Start and stop Tomcat + Cron

2005-03-17 Thread Cédric Buschini
Hi I'd like to stop and start my tomcat using cron so I added this in the root's crontab and /etc/crontab : 00 22 * * * root /PATH/TO/JAKARTA/bin/shutdown.sh 02 22 * * * root /PATH/TO/JAKARTA/bin/startup.sh but it does work :s Any got ideas ??? Thk Cedric -

Re: Servlet pops up as download

2005-03-17 Thread Lionel Farbos
On Thu, 17 Mar 2005 16:57:04 +0100 Omar Adobati <[EMAIL PROTECTED]> wrote: > To browse a wml file you need to use a wml browser, You can't do it > just using Ie or Mozilla. Maybe you can find a wml browser on the > Internet. I think Opera do it. > > > On Thu, 17 Mar 2005 16:52:30 +0100, Lionel

Logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry
Hi, I have a webapp in tomcat. I am using a separate Log4j.xml for it, in its WEB-INF classes folder. I've also put a Log4j.xml in TOMCAT_HOME/ common/classes and set it to false so that I do not get the general Tomcat logs. But even then my project logs are getting mixed with the TOMCAT logs. Is

org.apache.tomcat.util.threads.ThreadPool logFull

2005-03-17 Thread Henrik Rathje
Hi, I am running a Servlet on a Tomcat 5.0.30 Instance. This Servlets gets < 500 Hits a day. After approx. 10 days Tomcat doesn't reply anymore - the logs say: Mar 15, 2005 6:53:11 PM org.apache.tomcat.util.threads.ThreadPool logFull SEVERE: All threads (50) are currently busy, waiting. Increase m

Re: POST no longer working

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 06:45:56AM -0800, Jimmy Ray wrote: : Tomcat 5.0.28 on HP UNIX: I was using a filter : (jcfifs) in one of my web.xml files. I have since : removed the filter and all code refering to it. Now : web forms can not post to servlets in this app. GET : methods work fine, but PO

Re: Servlet pops up as download

2005-03-17 Thread Omar Adobati
To browse a wml file you need to use a wml browser, You can't do it just using Ie or Mozilla. Maybe you can find a wml browser on the Internet. On Thu, 17 Mar 2005 16:52:30 +0100, Lionel Farbos <[EMAIL PROTECTED]> wrote: > and, in your browser, what is the default action for this mapping ? > > O

Re: Servlet pops up as download

2005-03-17 Thread Jon Wingfield
Mozilla doesn't understand how to deal with wml. But you can get a plug-in: http://wmlbrowser.mozdev.org/ Nick Wolters wrote: In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: http://www.wapforum.org/DTD/wml_1.1.xml";> . In web.xml I fou

Re: Servlet pops up as download

2005-03-17 Thread Lionel Farbos
and, in your browser, what is the default action for this mapping ? On Thu, 17 Mar 2005 16:19:06 +0100 "Nick Wolters" <[EMAIL PROTECTED]> wrote: > In mozilla the download window says: text/vnd.wap.wml > > The file itself begins with the following: > > > "http://www.wapforum.org/DTD/wml_1.1.xm

RE: POST no longer working

2005-03-17 Thread George Sexton
You might want to refer to this FAQ: http://www.catb.org/~esr/faqs/smart-questions.html The stated goal of the FAQ is: How to ask questions of hackers in a way that makes it most likely that you'll get a useful answer. George Sexton MH Software, Inc. http://www.mhsoftware.com/ Voice: 303 438 95

Re: Tomcat 5 Service Windows

2005-03-17 Thread David Gladstone
yes of course i am telling it to use a different server.xml my config looks like this -config c:\config\server.xml -dave Caldarale, Charles R wrote: From: David Gladstone [mailto:[EMAIL PROTECTED] Subject: Tomcat 5 Service Windows I am currently using tomcat 5.0.27 on Windows Xp and am trying to p

Re: Servlet pops up as download

2005-03-17 Thread Omar Adobati
maybe you need to enable tomcat to manage the wml files. If I'm not wrong you have to chack the web.xml into yuor TOMCAT_HOME\conf to verify that the mime mapping to use wml is not commented or, at least, is presente. I'm running Tomcat 5.5.7 and I already have the mime mapping enabled and looks li

RE: Servlet pops up as download

2005-03-17 Thread Nick Wolters
In mozilla the download window says: text/vnd.wap.wml The file itself begins with the following: http://www.wapforum.org/DTD/wml_1.1.xml";> . In web.xml I found the following: wml text/vnd.wap.wml Didn't write the servlet myself though. Nick -Original M

RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
I not sure whether you write a servlet code using STRUTS, at least I have not see one because STRUTS frame work provides one. Once the request is processed by STRUTS, it uses struts-config.xml file to forward the response to next JSP page. XML element in struts-config.xml file is used to forward t

Re: Servlet pops up as download

2005-03-17 Thread Parsons Technical Services
What is your content type set to? Doug - Original Message - From: "Nick Wolters" <[EMAIL PROTECTED]> To: Sent: Thursday, March 17, 2005 9:51 AM Subject: Servlet pops up as download Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/M

Servlet pops up as download

2005-03-17 Thread Nick Wolters
Hello, Having some issues with an ensim tomcat 4 installation. Whenever I surf to www.mysite.com/servlet/MyServlet my browser pops up a download dialog instead of showing the page. It downloads MyServlet which does contain all the code it should normally display in the browser. I don't have much

POST no longer working

2005-03-17 Thread Jimmy Ray
Tomcat 5.0.28 on HP UNIX: I was using a filter (jcfifs) in one of my web.xml files. I have since removed the filter and all code refering to it. Now web forms can not post to servlets in this app. GET methods work fine, but POST does not. I am only using Tomcat, no Apache front end. Is there

How to Switch of logging in Tomcat 5.5

2005-03-17 Thread Joy Kenneth Harry

Re: SV: Reload webapp and context

2005-03-17 Thread Lionel Farbos
On Thu, 17 Mar 2005 14:12:06 +0100 Roland Carlsson <[EMAIL PROTECTED]> wrote: > Hi and thanks for your answer! > > Do I read you correctly that there are no solution but to restart Tomcat to > reload the context completly? > False. > Lionel, the manager doesn't seem to re-read the context file

RE: does anyone know this error??

2005-03-17 Thread Bedrijven.nl
The only thing where I can find a direct writing/accesing the response is public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { try { if(request.getParameter("photoid")!=null){ String photoid = req

RE: web.xml

2005-03-17 Thread Ramu, Vinod
I would achieve this be configuring my web.xml. Try this piece of code MyServlet /webReg.jsp MyServlet /webReg So when to submit a URL "http://localhost:8081/webReg"; to your container it maps to the jsp file under the element. Vinod -Original Message--

Re: Problem with BASIC authentication

2005-03-17 Thread Lionel Farbos
On Thu, 17 Mar 2005 16:35:43 +0530 "Karanjkar, Sanjay V \(IT\)" <[EMAIL PROTECTED]> wrote: > Hi Lionel, > > Thanks for your response. I tried both suggestions but no luck.. > Maybe it's something to do with the fact that I've not *installed* > tomcat but only copied the binaries from an installe

RE: does anyone know this error??

2005-03-17 Thread Ramu, Vinod
This error is because you have a code that's trying to write response after it's committed. If you can share the code that's causing this error then may be we can be of some help. Vinod -Original Message- From: Bedrijven.nl [mailto:[EMAIL PROTECTED] Sent: Thursday, March 17, 2005 8:45 AM

does anyone know this error??

2005-03-17 Thread Bedrijven.nl
I saw an error in my log ive never seen before: java.lang.IllegalStateException: Current state = FLUSHED, new state = CODING_END at java.nio.charset.CharsetEncoder.throwIllegalStateException(CharsetEncoder.ja va:933) at java.nio.charset.CharsetEncoder.encode(CharsetEncoder.java:529

Re: SV: Reload webapp and context

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 02:12:06PM +0100, Roland Carlsson wrote: : Do I read you correctly that there are no solution but to restart Tomcat to : reload the context completly? That's not at all what I said. I can't provide an authoritative answer to that question as I didn't write Tomcat. ;) With

SV: Reload webapp and context

2005-03-17 Thread Roland Carlsson
Hi and thanks for your answer! Do I read you correctly that there are no solution but to restart Tomcat to reload the context completly? Lionel, the manager doesn't seem to re-read the context file under /conf/Catalina/mydomain/myapp.xml and that is the one I have have to change. Thanks in advan

Re: Reload webapp and context

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 08:32:54AM +0100, Roland Carlsson wrote: : do I force tomcat to re-load the context? Right now the only way I know : about is to reboot tomcat witch leads to a full stop of all my web-apps : instead of only one witch in turn leads to more complaints from my users. Perhaps a

Re: tomcat 5.5 connector

2005-03-17 Thread QM
On Thu, Mar 17, 2005 at 11:18:00AM +0100, Rahman, Hamdur wrote: : As tomcat provide coyote connector that is http based, : Is there any connector available that are non-http based : And how we can use in our project when we are using tomcat 5.5 : As both web server and servlets engine, : Or can we

RE: web.xml

2005-03-17 Thread Allistair Crossley
Sure, Here is the doPost for ConvertToJspServlet public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException { try { RequestDispatcher rd = request.getRequestDispatcher( "/jsps" + request.getPathInfo() + ".jsp");

Re: web.xml

2005-03-17 Thread Omar Adobati
I'm interested in your solution Allistair, can you better explane what "my.com.ConvertToJspServlet" need to make real your idea? Can you post a little of code as a sample? On Thu, 17 Mar 2005 12:26:29 -, Allistair Crossley <[EMAIL PROTECTED]> wrote: > yes, another (more generic) solution wou

RE: web.xml

2005-03-17 Thread Allistair Crossley
yes, another (more generic) solution would be a similar servlet mapping but route all requests to a servlet capable of then forwarding to the request URI + .jsp convertToJspServlet my.com.ConvertToJspServlet convertToJspServlet /* In the ConvertToJspServlet servlet

Re: web.xml

2005-03-17 Thread Markus Schönhaber
Am Donnerstag, 17. März 2005 13:17 schrieb Omar Adobati: > I think that he need something working not just only with welcome > pages, or, maybe I have miss understood. > On re-reading the OP it seems to me that I misunderstood (and Allistair propably too), not you. Regards mks --

Re: web.xml

2005-03-17 Thread Omar Adobati
I think that he need something working not just only with welcome pages, or, maybe I have miss understood. On Thu, 17 Mar 2005 12:15:15 -, Allistair Crossley <[EMAIL PROTECTED]> wrote: > try the element out. > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECT

RE: web.xml

2005-03-17 Thread Allistair Crossley
try the element out. > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: 17 March 2005 12:05 > To: tomcat-user@jakarta.apache.org > Subject: web.xml > > > Hi there, > i think this is a fairly easy thing to do, but i'm a newbie > to tomcat & jsp. > > I am

Re: Problem with BASIC authentication

2005-03-17 Thread Parsons Technical Services
I don't run 4 so these are only suggestions. 1. Remove the 2. Change your tomcat-user.xml to look like this - Original Message - From: "Karanjkar, Sanjay V (IT)" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Thursday, March 17, 2005 12:19 AM Subject: RE: Problem with BASIC authen

Re: web.xml

2005-03-17 Thread Omar Adobati
you have to use the servlet mapping, something like this (each for every mapping you need) == myOwnJSPPage myOwnJSPPage my own servlet called: myOwnJSPPage /myJSP.jsp myOwnJSPPage /myJSP == On Thu, 17 Mar 2005 07:05:12 EST, [EMAIL PROTECTED] <[EMAIL PROTECTED]

Re: web.xml

2005-03-17 Thread Markus Schönhaber
Am Donnerstag, 17. März 2005 13:05 schrieb [EMAIL PROTECTED]: > I am requesting the following url > _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) > which exists and dsiplays fine. However, i want to be able to request > _http://localhost:8081/webReg_ (http://localhost:808

LDAP Realm Issues

2005-03-17 Thread William Stranathan
I apologize for posting this again - I just didn't hear anything (a lot of sprited discussions going on at the time) and wanted to give this one more shot here before sending to the developer list. I opened a bug on this a couple of weeks ago, but it hasn't been touched. Maybe other folks have se

web.xml

2005-03-17 Thread PGibbonsX
Hi there, i think this is a fairly easy thing to do, but i'm a newbie to tomcat & jsp. I am requesting the following url _http://localhost:8081/webReg.jsp_ (http://localhost:8081/webReg.jsp) which exists and dsiplays fine. However, i want to be able to request _http://localhost:8081/webReg_

RE: Tomcat hangs up from time to time

2005-03-17 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > But about two-five times per day, Tomcat hangs up, > java (version is 1.5.0_01-b08) eats much cpu (up to 90%), > and no any response from Tomcat, no warnings/errors in logs. > I even can't stop it with shutdown.sh! > > Have anyone the same pro

  1   2   >