RE: How can directory listing be turned off for a certain webapp?

2006-01-06 Thread Edward He
Hi Sunitha, In your web.xml of the application, add following inside of directive, index.html And in each directory, put an index.html in it. The reason why you have a 404 is because you don't have that file in the directory. And you can show anything or just redirect to any other pag

RE: Single Thread is deprecated?

2006-01-06 Thread GB Developer
> -Original Message- > From: Duan, Nick [mailto:[EMAIL PROTECTED] > Sent: Friday, January 06, 2006 5:14 PM > To: Tomcat Users List > Subject: RE: Single Thread is deprecated? > > Typo due to my laziness. I knew someone was going to catch > this. Actually the sentence should read: ... b

RE: How can directory listing be turned off for a certain webapp?

2006-01-06 Thread Caldarale, Charles R
> From: Kumar, Sunitha [mailto:[EMAIL PROTECTED] > Subject: RE: How can directory listing be turned off for a > certain webapp? > > So, the question was: > If I have a directory, under a webapp, how can I restrict > file listings in that directory, You probably should disable directory listi

RE: Single Thread is deprecated?

2006-01-06 Thread Caldarale, Charles R
> From: Duan, Nick [mailto:[EMAIL PROTECTED] > Subject: RE: Single Thread is deprecated? > > Typo due to my laziness. I knew someone was going to catch this. > Actually the sentence should read: ... because there is only one > servlet that is active during a single user session. Are you real

RE: Single Thread is deprecated?

2006-01-06 Thread Duan, Nick
Typo due to my laziness. I knew someone was going to catch this. Actually the sentence should read: ... because there is only one servlet that is active during a single user session. In other words, there is no way a single user session (represented by a worker thread) can access more than one

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
Duan, Nick wrote: > HttpServlet is inherently thread-safe as long as you don't use any > instance and class variables in your code. There is also no need to > sync around the session object, because there is only one servlet that > is active at a time. The only sync you have to do is with app con

RE: Please help, i have to be missing something very simple

2006-01-06 Thread Mike Sabroff
Looks more like libawt.so has an unsatisfied link to libXp.so.6 this is a security exeption first so maybe libXp.so.6 is in a protected area somehow...either through java's sandbox or some stupid windows permissions thing Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379

RE: How does Tomcat log by default?

2006-01-06 Thread Duan, Nick
Check catalina.out file under the log dir. ND -Original Message- From: Scott Purcell [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9:59 AM To: users@tomcat.apache.org Subject: How does Tomcat log by default? I am playing around with a Hibernate project, and created a war file

tomcat ssl cert question

2006-01-06 Thread Mike Korcynski
I have Tomcat and Apache HTTP server running on the same machine. I have a key and certificate for the HTTP server set up and working properly. I have an application running in tomcat, I want to make the application available directly via Tomcat using SSL and use the same cert I'm already using f

RE: Single Thread is deprecated?

2006-01-06 Thread Duan, Nick
HttpServlet is inherently thread-safe as long as you don't use any instance and class variables in your code. There is also no need to sync around the session object, because there is only one servlet that is active at a time. The only sync you have to do is with app context objects. If you want

Re: Please help, i have to be missing something very simple

2006-01-06 Thread Michael Echerer
Randy Paries wrote: > I created a little test program(see below), and i get the following error > > java com.unitnet.utils.testcolor > Just Before > Exception in thread "main" java.lang.UnsatisfiedLinkError: > /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot > open shared object

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
By type casting I mean: Document mydoc = (Document) req.getAttribute("yourobjname"); Viel Glueck! ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 11:16 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects Duan, Nick schrieb

RE: Tomcat 5.5.9 on Win2003 crashes as service but runs from startup.bat

2006-01-06 Thread Roger Alix-Gaudreau
Just a note for those who are keeping score at home. I found a workaround to this problem -- we renamed the JAVA_HOME\jre\bin\server\ folder so that the service.bat file would not find it and would therefore use the jvm.dll found in JAVA_HOME\jre\bin\client, and the service became stable. I'm sti

Re: Please help, i have to be missing something very simple

2006-01-06 Thread Randy Paries
I created a little test program(see below), and i get the following error java com.unitnet.utils.testcolor Just Before Exception in thread "main" java.lang.UnsatisfiedLinkError: /usr/java/j2sdk1.4.2_04/jre/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory

RE: Please help, i have to be missing something very simple

2006-01-06 Thread Mike Sabroff
Do you have a package statement in your servlet? You should Mike Sabroff Web Services Developer [EMAIL PROTECTED] 920-568-8379 -Original Message- From: Randy Paries [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:24 PM To: users@tomcat.apache.org Subject: Please help, i hav

forcing encodeURL to work on URLs outside of webapp context

2006-01-06 Thread Jeff Hoffmann
I have a webapp that that's being accessed from Apache through mod_jk. When the requests come to Apache, they get sent through mod_rewrite to add the appropriate webapp context path in front of the rest of the request so it can get sent through mod_jk to be processed. When I create links in th

Please help, i have to be missing something very simple

2006-01-06 Thread Randy Paries
Hello, I am moving an App from a devel server to a production server When i run the app everything works fine except the new stuff (of course) in my servlet i am calling Color bgcolor = new Color( Integer.parseInt(album.getBGcolor().substring(1), 16) ) ; and as soon as i do i get Class not found

RE: war file deployment question

2006-01-06 Thread Roger Alix-Gaudreau
I had similar problems in the initial development of my webapp. Ultimately, the solution we got to work was to make sure all the relative paths were relative to the jsp file's location, as opposed to being relative to the context root. For example, I have webapps\application\pages and webapps\appl

RE: How can directory listing be turned off for a certain webapp?

2006-01-06 Thread Kumar, Sunitha
Hi Charles, Sorry for the incomplete information. So, the question was: If I have a directory, under a webapp, how can I restrict file listings in that directory, i.e http:///.. How does the welcome page help? Thanks, -sunitha -Original Message- From: Caldarale, Charles R [mailto:[EMAI

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Alla Winter [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a new application > > I noticed that the attachments some how do not get through, > so that is why you are not getting the detailed info. [Many mailing lists restrict attachments in order to prevent virus

RE: How can directory listing be turned off for a certain webapp?

2006-01-06 Thread Caldarale, Charles R
> From: Kumar, Sunitha [mailto:[EMAIL PROTECTED] > Subject: How can directory listing be turned off for a certain webapp? > > I tried setting listings as false. That would then, give a 404 , > whenever, that webapp is accessed; which is not what is desired. Any > other options? Should we try to

How can directory listing be turned off for a certain webapp?

2006-01-06 Thread Kumar, Sunitha
I tried setting listings as false. That would then, give a 404 , whenever, that webapp is accessed; which is not what is desired. Any other options? thanks, -sunitha

Tomcat5 and LDAP authentication

2006-01-06 Thread Derrick Woo
I'm having a bit of a tough time getting Tomcat5 to authenticate correctly to our LDAP server. It connects using the service account, and then attempts to bind using the username and password entered at the login page to confirm if it is valid. As it is set up right now, if an invalid username/pa

RE: Please help with introducing a new application

2006-01-06 Thread Alla Winter
I noticed that the attachments some how do not get through, so that is why you are not getting the detailed info. I sent you before word document, now I am sending images. Hopefully they are going to go through. I have CATALINA_HOME\conf\Catalina\localhost\cobra_source.xml \webapps\cobra_source

RE: Please help with introducing a new application

2006-01-06 Thread Hasan, Nadeem
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:16 PM To: Tomcat Users List Subject: RE: Please help with introducing a new application > From: Hasan, Nadeem [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a n

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Hasan, Nadeem [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a new application > > That is incorrect. I have a similar setup (i.e. using > Catalina/localhost) and I do have path attribute in the > tag. The more recent versions of Tomcat are getting more picky abo

RE: Please help with introducing a new application

2006-01-06 Thread Hasan, Nadeem
-Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 2:51 PM To: Tomcat Users List Subject: RE: Please help with introducing a new application I hope you're referring to conf\Catalina\localhost (again, be specific); if so, the filename

Re: accessing port 8443 with http

2006-01-06 Thread Patrick S Ward
The only reason that I ask is because the Apache HTTP server does not behave in this fashion; when I access http://:443 I get a 400 Bad Request error code as expected. Is there anyway to configure Tomcat to yield a 400 Bad Request error code if a user attempts to access the SSL port via http ?

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Alla Winter [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a new application > > The CONTEXT XML is located under Catalina\localhost ( I use windows > 2000/XP/2003). Please see the attached directory structure No attachment made it through. I hope you're refer

RE: Please help with introducing a new application

2006-01-06 Thread Alla Winter
The CONTEXT XML is located under Catalina\localhost ( I use windows 2000/XP/2003). Please see the attached directory structure -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 1:37 PM To: Tomcat Users List Subject: RE: Please help

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Alla Winter [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a new application > > I am using 5.5.12 version of TOMCAT. I read documentation, but I am not sure what > restriction for the path you are referring to. It's these notes in the doc: "Please note that for

RE: Please help with introducing a new application

2006-01-06 Thread Alla Winter
I am sorry, I overlooked your question. I am using 5.5.12 version of TOMCAT. I read documentation, but I am not sure what restriction for the path you are referring to. Is it "In addition, you MUST define a Context with a context path equal to a zero-length string." or what? Thanks -Origina

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Alla Winter [mailto:[EMAIL PROTECTED] > Subject: RE: Please help with introducing a new application > > Can you please be more specific what exactly I am doing wrong? 1) Not telling us exactly what Tomcat version you're using. 2) Not reading the documentation. - Chuck THIS COMMUNICA

RE: Please help with introducing a new application

2006-01-06 Thread Alla Winter
Can you please be more specific what exactly I am doing wrong? Thanks -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 12:54 PM To: Tomcat Users List Subject: RE: Please help with introducing a new application > From: Alla Winter [ma

Re: war file deployment question

2006-01-06 Thread David Smith
Be careful. There's a difference between a relative link the browser gets and using relative paths in JSP code. In relative URL link for HTML, the browser computes the full url from the relative path and the page's base url. JSP is server side and will compute relative path's to Tomcat's workin

RE: Please help with introducing a new application

2006-01-06 Thread Caldarale, Charles R
> From: Alla Winter [mailto:[EMAIL PROTECTED] > Subject: Please help with introducing a new application > > I am trying to migrate to Tomcat 5 an existing application, > and it seems that I am having a problem. Which Tomcat 5? The rules for are different in 5.0.x and 5.5.x versions. Please b

Please help with introducing a new application

2006-01-06 Thread Alla Winter
I am trying to migrate to Tomcat 5 an existing application, and it seems that I am having a problem. I am getting 404 error no matter what I do.  I copied the HelloWorldExample  under my application “cobra_source” WEB-INF directory and still no luck to execute it.  I am submitting you the

RE: Deploying unpacked war file

2006-01-06 Thread Caldarale, Charles R
> From: Charl Gerber [mailto:[EMAIL PROTECTED] > Subject: Deploying unpacked war file > > How do you deploy an unpacked .war file in Tomcat > 5.5.12 and not let Tomcat have it unpacked? Sorry, but the wording of the above question makes no sense to me. Can you rephrase? > Where can I get a ref

Re: forwarding JDOM-Objects

2006-01-06 Thread Giuseppe Briotti
> == > Date: Fri, 06 Jan 2006 17:15:45 +0100 > From: Christian Stalp <[EMAIL PROTECTED]> > To: Tomcat Users List > Subject: Re: forwarding JDOM-Objects > == > > Duan, Nick schrieb: > > >Don't forget type casting the object. > > > > > > > String mys

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Len Popp schrieb: What type of object is the "Object" attribute supposed to be? If you have a Document, you can do req.setAttribute("Object", mydoc); in one servlet and Document mydoc = req.getAttribute("Object"); in the other. If the "Object" attribute is a string representation of a Doc

Re: Single Thread is deprecated?

2006-01-06 Thread Christian Stalp
Remy Maucherat schrieb: Nice, but completely wrong. STM in Tomcat uses an instance pool which allows having a minimal impact (something like 5%), and it will perform much better than syncing, unless the said sync is trivial. The reason this is deprecated is because some people thought it would

Re: forwarding JDOM-Objects

2006-01-06 Thread Len Popp
On 1/6/06, Christian Stalp <[EMAIL PROTECTED]> wrote: > Duan, Nick schrieb: > > >Don't forget type casting the object. > > > > > > > String mystring = req.getAttribute("Object").toString(); > Document mydoc = mystring.? > > Casting from String to JDOM doesn't work!!! > So which way you pref

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
Remy Maucherat wrote: > On 1/6/06, Michael Echerer <[EMAIL PROTECTED]> wrote: > >>In worst case you won't even achieve what you want using single thread >>mode because according to the servlet specification servlet containers >>are free to pool servlets, if it implements SingleThreadModel. Hence y

Re: Single Thread is deprecated?

2006-01-06 Thread Remy Maucherat
On 1/6/06, Michael Echerer <[EMAIL PROTECTED]> wrote: > In worst case you won't even achieve what you want using single thread > mode because according to the servlet specification servlet containers > are free to pool servlets, if it implements SingleThreadModel. Hence you > could have multiple po

Re: Single Thread is deprecated?

2006-01-06 Thread Michael Echerer
Christian Stalp wrote: > Hello out there, > I want to build a servelt which access a database. To avoid > race-conditions and to realize synchronous access, I decited to make a > "Singe Thread" Servlet. But Eclipse told me that this is no longer a > usable code. Usually the best solution is to sync

Re: Single Thread is deprecated?

2006-01-06 Thread Wade Chandler
--- Christian Stalp <[EMAIL PROTECTED]> wrote: > Remy Maucherat wrote: > > >It's deprecated because it is confusing, but it is > actually very > >useful performance wise in some cases, since it > does pooling. I will > >make sure this feature remains available in the > future. > > > > > > > Tha

RE: accessing port 8443 with http

2006-01-06 Thread Roger Alix-Gaudreau
If you look at Tomcat\conf\server.xml, you'll most likely discover that port 8443 is the default SSL port for Tomcat, which is why you see the page correctly when accessing https://:8443. If you want 8443 to be a non-secure port, you should change the settings in server.xml. Roger Alix-Gaudreau

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Duan, Nick schrieb: Don't forget type casting the object. String mystring = req.getAttribute("Object").toString(); Document mydoc = mystring.? Casting from String to JDOM doesn't work!!! So which way you prefer? Thank you... Gruss Christian --

RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
Francois I don't know if you have apache in front of tomcat but you can also use mod_rewrite to do even more handling. Note that the browser needs a minimum of HTTP headers [response code, content type, etc..] to process your response properly as an html page [if this is still what you want]. Mo

RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
http://java.sun.com/products/servlet/Filters.html Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+> | | "COURTAULT Francois" | | | <[EMAIL PROTECTED]| | | emplus.com

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
Your filter would create a HttpServletResponseWrapper. The wrapper would override the setHeader and addHeader methods to be no-ops. But certain headers will still be sent (unless you ovveride the Connector) -Tim COURTAULT Francois wrote: I don't see in the servlet api a way to clear or reset

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
Don't forget type casting the object. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 10:06 AM To: Tomcat Users List Subject: Re: forwarding JDOM-Objects Duan, Nick wrote: >You shouldn't use req.getParameter(..). Instead, use the se

RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread COURTAULT Francois
I don't see in the servlet api a way to clear or reset the headers ? You can only add a header so I don't know how you can remove header with a servlet filter ? Regards. -Message d'origine- De : Bruno Georges [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 janvier 2006 15:06 À : Tom

RE: how to execute javascript file in jsp

2006-01-06 Thread Mauricio Fernandez A.
Hello Marju Here you can see a .jsp fragment where I use what you need: There are some instruction before tag that are not shown here, that is why I put "..." ... strAction = request.getRequestURI(); strImagen = strAction.substring(0,9)+"/jsp/images/"; // strJsp mantain

Re: forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Duan, Nick wrote: You shouldn't use req.getParameter(..). Instead, use the setAttribute and getAttribute methods in HttpServletRequest. No need to pack/unpack JDOM. You can pass an object via request. So... String mystring = req.getAttribute("Object") Document mydoc = mystring.?

How does Tomcat log by default?

2006-01-06 Thread Scott Purcell
I am playing around with a Hibernate project, and created a war file. I have a clean 5.5 Tomcat running on XP. The project I created is not using log4j. It has a bunch of System.out.println statements, and the tutorial says to look at the Tomcat log to see how this hibernate project connects, et

RE: forwarding JDOM-Objects

2006-01-06 Thread Duan, Nick
You shouldn't use req.getParameter(..). Instead, use the setAttribute and getAttribute methods in HttpServletRequest. No need to pack/unpack JDOM. You can pass an object via request. ND -Original Message- From: Christian Stalp [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 9

Re: how to execute javascript file in jsp

2006-01-06 Thread marju jalloh
I did what you said it compile with no error but the script did not execute.Still no solution Thanks Charl Gerber <[EMAIL PROTECTED]> wrote: type="text/javascript"> --- marju jalloh wrote: > Hi everyone, > I`m using tomcat 4.1.* on Linux (serge) but find it > diffecult to include j

Re: Comparing Tomcat Performance on Windows vs. Linux

2006-01-06 Thread Michael Czeiszperger
On Jan 6, 2006, at 9:25 AM, Remy Maucherat wrote: On 1/6/06, Michael Czeiszperger <[EMAIL PROTECTED]> wrote: On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote: Sorry, for the potentially redundant question, but to clarify, is the APR version of Tomcat officially released? The last time I check

Re: war file deployment question

2006-01-06 Thread Jignesh Shah
Yes David, I do use relative path in my jsp's. What wonders me is I have lots of images in the images directory and I use them through relative path also and they work fine. Its only when it comes to css/xsl files that it cannot access. This stuff again works fine with other webserver, so I am miss

forwarding JDOM-Objects

2006-01-06 Thread Christian Stalp
Hello again, now I have another question. I want to forward a JDOM-object from one servlet to another in the same servlet-container. I thought I write this JDOM to a string, transfer it and unpack it at the other side. BUT I cannot find a way to extract a JDOM from a String delivered by a Htt

Re: Comparing Tomcat Performance on Windows vs. Linux

2006-01-06 Thread Remy Maucherat
On 1/6/06, Michael Czeiszperger <[EMAIL PROTECTED]> wrote: > > On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote: > Sorry, for the potentially redundant question, but to clarify, is the > APR version of Tomcat officially released? The last time I checked it > was not. I don't care either way, but w

Re: how to execute javascript file in jsp

2006-01-06 Thread Charl Gerber
--- marju jalloh <[EMAIL PROTECTED]> wrote: > Hi everyone, > I`m using tomcat 4.1.* on Linux (serge) but find it > diffecult to include javascript file in my jsp.I did > it with > <%@ page import="myjavascript.js*"%> > but it could not find the file.Also with > . > It compile but the scri

Re: war file deployment question

2006-01-06 Thread David Smith
How are you accessing the css/xsl files? Sounds like you are attempting to open then with standard Java IO calls and relative paths. If that's the case, you might want to consider looking at javax.servlet.ServletContext#getResource() or javax.servlet.ServletContext#getResourceAsStream(). These

how to execute javascript file in jsp

2006-01-06 Thread marju jalloh
Hi everyone, I`m using tomcat 4.1.* on Linux (serge) but find it diffecult to include javascript file in my jsp.I did it with <%@ page import="myjavascript.js*"%> but it could not find the file.Also with . It compile but the scriptcould not execute Can anyone help me Thanks in advance

Re: Comparing Tomcat Performance on Windows vs. Linux

2006-01-06 Thread Michael Czeiszperger
On Jan 5, 2006, at 3:41 PM, Duan, Nick wrote: Thanks Michael for the info. J2EE performance testing depends on many different factors. Some questions/suggestions for your consideration: 1. It wasn't clear from your report what the HW/SW spec of your test clients (load workstation). Base

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
You will need to create your own Connector. Certain headers such as Server are always added to the response. -Tim COURTAULT Francois wrote: All the headers ! Regards. PS: Is there also a way to not send the ack http response (ie HTTP/1.1 200 OK) ? -Message d'origine- De : Tim Fu

Re: Comparing Tomcat Performance on Windows vs. Linux

2006-01-06 Thread Michael Czeiszperger
On Jan 5, 2006, at 6:22 PM, Remy Maucherat wrote: On 1/5/06, Michael Czeiszperger <[EMAIL PROTECTED]> wrote: On Jan 5, 2006, at 3:39 PM, Jess Holle wrote: Also a Tomcat 5.5.12 (or better 5.5.15) with and without APR test against recent IBM, Sun, and BEA offerings would be really nice :-)

Re: war file deployment question

2006-01-06 Thread Charl Gerber
Question being? --- Jignesh Shah <[EMAIL PROTECTED]> wrote: > Hi, > > I have a war file that works fine under JRun and > Jetty. Now when I deploy it under > $CATALINA_HOME/webapps directory, the war file > creates > its usual tree under webapps. Now this is what it > looks like after deployment

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Bruno Georges
Francois I would use a Servlet Filter to do this. It is a standard, not tomcat specific and it allows you to decouple the header processing from your existing servlet and it is also very flexible. you will be handle to handle both HTTP response and request headers. Hope this helps. Bruno Georges

war file deployment question

2006-01-06 Thread Jignesh Shah
Hi, I have a war file that works fine under JRun and Jetty. Now when I deploy it under $CATALINA_HOME/webapps directory, the war file creates its usual tree under webapps. Now this is what it looks like after deployment: /webapps /myapplication lots of jsps css (where I have css and xsl

war file deployment question

2006-01-06 Thread Jignesh Shah
Hi, I have a war file that works fine under JRun and Jetty. Now when I deploy it under $CATALINA_HOME/webapps directory, the war file creates its usual tree under webapps. Now this is what it looks like after deployment: /webapps /myapplication lots of jsps css (where I have css and xsl

war file deployment question

2006-01-06 Thread Jignesh Shah
Hi, I have a war file that works fine under JRun and Jetty. Now when I deploy it under $CATALINA_HOME/webapps directory, the war file creates its usual tree under webapps. Now this is what it looks like after deployment: /webapps /myapplication lots of jsps css (where I have css and xsl

Re: Single Thread is deprecated?

2006-01-06 Thread David Kerber
Christian Stalp wrote: Remy Maucherat wrote: It's deprecated because it is confusing, but it is actually very useful performance wise in some cases, since it does pooling. I will make sure this feature remains available in the future. That means, I still can use it?! Deprecated is not proh

RE: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread COURTAULT Francois
All the headers ! Regards. PS: Is there also a way to not send the ack http response (ie HTTP/1.1 200 OK) ? -Message d'origine- De : Tim Funk [mailto:[EMAIL PROTECTED] Envoyé : vendredi 6 janvier 2006 14:17 À : Tomcat Users List Objet : Re: Way to force Tomcat not to send headers in

Re: Single Thread is deprecated?

2006-01-06 Thread Christian Stalp
Remy Maucherat wrote: It's deprecated because it is confusing, but it is actually very useful performance wise in some cases, since it does pooling. I will make sure this feature remains available in the future. That means, I still can use it?! Deprecated is not prohibited!?!! Is there any

Re: Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread Tim Funk
This is a little vague. Are there certain headers which must NOT be sent? -Tim COURTAULT Francois wrote: Hello, Do you know if there is a way to force Tomcat not to send http headers in its http response ? Regards. - To

Re: Single Thread is deprecated?

2006-01-06 Thread Remy Maucherat
On 1/6/06, Christian Stalp <[EMAIL PROTECTED]> wrote: > Hello out there, > I want to build a servelt which access a database. To avoid > race-conditions and to realize synchronous access, I decited to make a > "Singe Thread" Servlet. But Eclipse told me that this is no longer a > usable code. > > S

Way to force Tomcat not to send headers in its http response.

2006-01-06 Thread COURTAULT Francois
Hello, Do you know if there is a way to force Tomcat not to send http headers in its http response ? Regards.

Single Thread is deprecated?

2006-01-06 Thread Christian Stalp
Hello out there, I want to build a servelt which access a database. To avoid race-conditions and to realize synchronous access, I decited to make a "Singe Thread" Servlet. But Eclipse told me that this is no longer a usable code. So what can I do else? Thank you... Gruss Christian ---

Re: accessing port 8443 with http

2006-01-06 Thread David Smith
Because port 8443 in your setup is using SSL. The HTTPS protocol and HTTP protocol start out negotiation in very different ways. I'm sure to the average browser it looks like it's receiving a binary stream when in fact the negotiation starts out with the server sending it's public key certifi

tomcat 5.8.0 - weird response on HTTP OPTIONS method

2006-01-06 Thread Mauro Bertapelle
Is it correct that coyote reply with the home page contents on an HTTP OPTIONS method request ? Client request: OPTIONS / HTTP/1.1\r\n Request Method: OPTIONS Request URI: / Request Version: HTTP/1.1 Translate: f\r\n User-Agent: Microsoft Data Access Internet Publishing Provider Prot

Re: Migration

2006-01-06 Thread Tim Funk
The servlet spec requires that the following packages are imported in your jsp: javax.servlet.*; javax.servlet.http.*; javax.servlet.jsp.*; Other vendors in the past have also done things such as also include import java.util.* import java.io.* These actions are not mentioned by the spec and cre

Deploying unpacked war file

2006-01-06 Thread Charl Gerber
How do you deploy an unpacked .war file in Tomcat 5.5.12 and not let Tomcat have it unpacked? In 4.1.x it was easy: you just placed an "myapp.xml" context descriptor in the /webapps directory and that pointed to where the .war was (anywhere you want it to be). I tried this approach in 5.5.12, but

Re: Migration

2006-01-06 Thread David Delbecq
Hi Abh, Out of curiosity i took a look a at tomcat generated jsp class. (tomcat: 5.5.7) import directive found in .java file generated from .jsp: import javax.servlet.*; import javax.servlet.http.*; import javax.servlet.jsp.*; No import directive were present in original .jsp and, as you see, t

Re: Migration

2006-01-06 Thread Oto Bossert
Yoo, We need more info! At least the stack trace and the code it is pointing to... Greetings O. On 1/6/06, Abh N <[EMAIL PROTECTED]> wrote: > > Hi, > > We are migrating our applications from Tomcat to Websphere server. > We are getting some issues (in Websphere )with code which used to

Migration

2006-01-06 Thread Abh N
Hi, We are migrating our applications from Tomcat to Websphere server. We are getting some issues (in Websphere )with code which used to work fine in Tomcat. Server is not recognizing IOException in jsp code. I am now putting import java.io.* to resolve this. Am not able to und