Re: How does one configure Plain host domain url to run web app?

2007-03-12 Thread org
Hi John, Ok, I'm going to try show you how I think about this stuff... and I'm often wrong ;) Dont use a redirect... it goes back to the browser and its not cool. Firstly make a servlet and have a look at the CONTEXT.XML file under META-INF Change it to.. Now have a look at WEB.XML

RE: Can one map a servlet to a specific connctor?

2007-03-12 Thread Caldarale, Charles R
> From: Peter Kennard [mailto:[EMAIL PROTECTED] > Subject: Re: Can one map a servlet to a specific connctor? > > Can I determine the connector port connected to for a request from > service() I don't see it in the servlet API but am willing to access > somthing tomcat specific. ServletRequest.

RE: [OT] Tomcat 5.5.23 Will Not Unpackage Application

2007-03-12 Thread Caldarale, Charles R
> From: neilac333 [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] Tomcat 5.5.23 Will Not Unpackage Application > > That is a good thought, but I have included all the Commons > files in my WAR file as you can see. Which will be a problem if they're already in the common/lib or shared/lib. A give

Re: Unable to install tomcat 5.5 native libraries on Red Hat Enterprise Linux 4

2007-03-12 Thread Mladen Turk
Todd Nine wrote: Hi all, I'm trying to make and install the native runtime libraries for Tomcat 5.5 on RHEL4, with Apache 2.0.52, OpenSSL 0.9.7a Feb 19 2003, APR version 0.9.4, and JDK 1.5. I'm able to configure and make with the following commands. Note that configure won't find apr without t

Re: Can one map a servlet to a specific connctor?

2007-03-12 Thread Peter Kennard
I guess a corrollary question to this would be. Can I determine the connector port connected to for a request from service() I don't see it in the servlet API but am willing to access somthing tomcat specific. PK At 21:57 3/12/2007, you wrote: On a stand alone tomcat with more than one conne

RE: Can one map a servlet to a specific connctor?

2007-03-12 Thread Caldarale, Charles R
> From: Peter Kennard [mailto:[EMAIL PROTECTED] > Subject: Can one map a servlet to a specific connctor? > > On a stand alone tomcat with more than one connector (port) > Is it possible to map a servlet to only one or a subset of connectors? No, but you can use a filter or valve to restrict acce

Re: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
Sorry I should have mentioned, yes I did restart. There are no reported errors with parsing or anything like that. The users file is now currently: Parsons Technical Services wrote: Jacob, Did you restart Tomcat? Can you post your tomcat-users.xml? Doug - Original Message

Re: tomcat-users.xml config in tomcat 6

2007-03-12 Thread Parsons Technical Services
Jacob, Did you restart Tomcat? Can you post your tomcat-users.xml? Doug - Original Message - From: "Jacob Rhoden" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, March 12, 2007 11:12 PM Subject: tomcat-users.xml config in tomcat 6 This is probably something very dumb on

tomcat-users.xml config in tomcat 6

2007-03-12 Thread Jacob Rhoden
This is probably something very dumb on my part (: but, when I try to use the manager app in a fresh tomcat 6 install, i get the following message. "You are not authorized to view this page. If you have not changed any configuration files, please examine the file conf/tomcat-users.xml in your

Can one map a servlet to a specific connctor?

2007-03-12 Thread Peter Kennard
On a stand alone tomcat with more than one connector (port) Is it possible to map a servlet to only one or a subset of connectors? Thanks PK - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAI

Re: How does one configure Plain host domain url to run web app?

2007-03-12 Thread Rashmi Rubdi
I think an application runs on the root context / by default, if it's configured this way in server.xml : server.xml is located at : ..\apache-tomcat-5.x\conf\ On Windows XP , you can try something similar in Unix. -Rashmi - Original Message From: John Mo

How does one configure Plain host domain url to run web app?

2007-03-12 Thread John Moore
(Tomcat 4.x) I have the following url that runs an application (pseudo url for discussion only) http://www.mydomain.com/mysite/thecontext works fine.. I would like to configure it so that.. http://www.mydomain.com gets me to the same place.. I can place a "redirect" html page at http://

Re: Problem getting comet to work

2007-03-12 Thread Filip Hanik - Dev Lists
Mike Broadbear wrote: You could try Pushlets (and let me know how it goes!) pushlets, if made correctly, would be built on top of comet to get around the "thread-per-connection" limit Filip Date: Mon, 12 Mar 2007 05:32:25 -0700> From: [EMAIL PROTECTED]> To: users@tomcat.apache.org> Subje

Re: The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad
I guess all I'm looking for is something like "could not find a web.xml for resource" or somesuch. On 3/12/07, Martin Gainty <[EMAIL PROTECTED]> wrote: Prasad- If you can get Tomcat to resolve any of the hundreds of OS specific binary or construct (such as symlink).. you can always exit the VM

Re: The requested resource (/) is not available.

2007-03-12 Thread Martin Gainty
Prasad- If you can get Tomcat to resolve any of the hundreds of OS specific binary or construct (such as symlink).. you can always exit the VM to the OS thru Runtime.exec() ..but then again that would spawn a process Anyone else? M- -

Re: Problem getting comet to work

2007-03-12 Thread Rémy Maucherat
On 3/12/07, mattd1812 <[EMAIL PROTECTED]> wrote: "servlet instanceof CometProcessor" Will return true (regardless of your custom CL hierarchy) if your servlet implements the interface. That interface is in the lib/catalina.jar JAR, and should be loaded from there. Rémy ---

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Martin Gainty
in the meanwhile you can use jhat to analyze your heap results ..this comes with a nice browser interface to allow you to see heap usage by each class http://java.sun.com/developer/technicalArticles/J2SE/monitoring/ you can also use JConsole to monitor the number of objects pending finalisation

Re: The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad
Thanks for the suggestion. It turns out that the problem was that my web.xml was a symlink. I had to figure this out through trial and error. Is there no better way to debug this sort of thing? Cheers, Aditya On 3/12/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: I had a similar problem too, I

RE: Problem getting comet to work

2007-03-12 Thread Mike Broadbear
You could try Pushlets (and let me know how it goes!) > Date: Mon, 12 Mar 2007 05:32:25 -0700> From: [EMAIL PROTECTED]> To: > users@tomcat.apache.org> Subject: Problem getting comet to work> > > I am > trying to write a comet servlet using the new CometProcessor api. I am> > running version 6.0

How to develop filter for tomcat ?

2007-03-12 Thread Erica Zhang
Hi, I am new for Tomcat. I have read througth the documents on web site. I could not find the answer. So I ask this questions here. On client, I aggregated some requests into a xml file and then post them to the server. I want to make a filter to enable those requests to be separate as they

Re: [OT] Tomcat 5.5.23 Will Not Unpackage Application

2007-03-12 Thread neilac333
That is a good thought, but I have included all the Commons files in my WAR file as you can see. According to the documentation, Digester has a dependency on Collections, and that JAR is in WEB-INF/lib (commons-collections-3.1.jar). Any other suggestions? Neil Pierre Goupil wrote: > > Hello

[OT] RE: Cannot start tomcat5 service with jrockit

2007-03-12 Thread gb1071nx
Warning: rant about 'religion' follows (not quite on par with where the opening '{' goes, but close!): I feel like such a fool! I had no idea the "way too old" mark had been moved to "older than 6 months" and/or "3 point releases behind HEAD". Of course, _everyone_ should _always_ use t

Re: [ANN] Apache Tomcat 6.0.10 released

2007-03-12 Thread Filip Hanik - Dev Lists
Tomcat 6.0.10 stable libraries, mavenized, can be found at: http://tomcat.apache.org/dev/dist/m2-repository/ Filip Remy Maucherat wrote: The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.10 stable. This release is the first stable release of the 6.0.x branch. Apa

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Rémy Maucherat
On 3/12/07, Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip up the file that gets generated, make it available to us and I'll take a look at it Most likely it's because of session creation. (you should not be too naive a

Re: The requested resource (/) is not available.

2007-03-12 Thread Rashmi Rubdi
I had a similar problem too, I did a few things that got it resolved. One thing I remember is, setting the directory listings to "true" in server.xml , at that time if there's no index page in the directory it listed the directory listings instead of giving a 404 error. Other possible causes:

Re: Cannot start tomcat5 service with jrockit

2007-03-12 Thread Mr. Steve Burrus
look you say that your >>"Tomcat version is 5.5.20"<<. Why don't u simply try/attempt to get version 6.x of Tomcat by now??? I mean any kind of version 5 is way too old by now! Capiche? [Understand?] Igor Shevchenko wrote: Hello, I'm experiencing problems with starting tomcat as a service un

Unable to install tomcat 5.5 native libraries on Red Hat Enterprise Linux 4

2007-03-12 Thread Todd Nine
Hi all, I'm trying to make and install the native runtime libraries for Tomcat 5.5 on RHEL4, with Apache 2.0.52, OpenSSL 0.9.7a Feb 19 2003, APR version 0.9.4, and JDK 1.5. I'm able to configure and make with the following commands. Note that configure won't find apr without the explicit locati

The requested resource (/) is not available.

2007-03-12 Thread Aditya Prasad
I've set my JULI logging to FINE to figure out why I always get "The requested resource (/) is not available." Unfortunately, the log seems to indicate that the ROOT context was started up all right: Mar 12, 2007 2:32:56 PM org.apache.catalina.startup.HostConfig deployDirectory FINE: Deploying w

Re: Tomcat 6 Scales

2007-03-12 Thread Michael Clovis
Filip, Great article. We were already having some memory issues using the NIO connector in 6.0.10 yet REALLY need this functionality. Our quick question is the following , can we in your estimation use the nightly build of your code and apply to 6.0.10 until version 11 releases? Filip Hani

Re: Keep Alive handling

2007-03-12 Thread Peter Kennard
At 15:33 3/12/2007, you wrote: > Anyway - I answered my own question. > I wrote a test, Keep Alive works fine with chunked content. So... what was the problem? For days you've been railing against Tomcat for not supporting this properly. Is there something that you overlooked? - -chris Part

Re: EJB 3.0 and Hibernate

2007-03-12 Thread org
Here you go http://www.hibernate.org/114.html shows you how to use it in Tomcat - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Keep Alive handling

2007-03-12 Thread Peter Kennard
I answered my own question here: The client must send the *complete* sequence "\r\n0\r\n\r\n" or tomcat *will* hang attempting to read the last "\r\n" after the last "zero length chunk" No one including myself caught this. PK

Re: apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread Filip Hanik - Dev Lists
add -XX:+HeapDumpOnOutOfMemoryError to your JAVA_OPTS, then you can zip up the file that gets generated, make it available to us and I'll take a look at it Filip acec acec wrote: Hi, I tested tomcat 6.0.10 using jmeter. I found the following problem. I defined three thread groups: ==

Re: EJB 3.0 and Hibernate

2007-03-12 Thread org
Hi Scott, Not sure what you mean by container managed service, tomcat on its own is a servlet container, not an application container, like JBoss, maybe you saw hibernate referenced in Spring which is a whole collection of frameworks built on top of servlet technology, it uses hibernate, and

Re: Keep Alive handling

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Kennard wrote: > Anyway - I answered my own question. > I wrote a test, Keep Alive works fine with chunked content. So... what was the problem? For days you've been railing against Tomcat for not supporting this properly. Is there someth

apache-tomcat-6.0.10 OutOfMemoryError

2007-03-12 Thread acec acec
Hi, I tested tomcat 6.0.10 using jmeter. I found the following problem. I defined three thread groups: First thread-group thread Properties: Number of Threads(users): 50 Ramp-Up Period(in seconds): 10 Loop Count: 1000 HTTP Request pa

Re: EJB 3.0 and Hibernate

2007-03-12 Thread Rajesh Chandra
Not sure whether this is a new module you are trying to implement or refactoring the existing implementation... As Ron Wheeler suggested, spring framework is one option you can try. Regards, Rajesh On 3/12/07, Markus Schönhaber <[EMAIL PROTECTED]> wrote: Scott Purcell wrote: > Looking at inc

RE: Multiple instances problem...

2007-03-12 Thread Kirchhoff, Florian
Hi Peter, are you making sure to use different ports for each instance for Shutdown, HTTP/HTTPS and AJP? Florian -Original Message- From: Peter Björkman [mailto:[EMAIL PROTECTED] Sent: Sunday, March 11, 2007 6:22 PM To: users@tomcat.apache.org Subject: Multiple instances problem... Hi

Re: EJB 3.0 and Hibernate

2007-03-12 Thread Markus Schönhaber
Scott Purcell wrote: > Looking at incorporating the Java Persistence API (EJB 3.0) and was > wondering if Tomcat 5.5 supports this. It looks like we need container > managed services and was wondering if we can use Tomcat instead of JBoss? Tomcat doesn't support the JPA out of the box. But since

Problem with deploy servlet

2007-03-12 Thread Cristian Nieto
I am developer in netbeans 5.5 and tomcat 5.5.17. I have nine servlet and i am uncomment the function INVOKER in the tomcat's web.xml, but tomcat not find the servlet and send me this error: 03/12/2007 03:46:50 PM org.apache.catalina.core.ApplicationContext log INFO: Marcando el servlet org.apac

Problem with Roles, too new to know where to look

2007-03-12 Thread Aurynn Shaw
I still need help with this. The roles I have assigned to my users aren't getting picked up by the authentication system, either with Tomcat's LDAP auth module via JNDI, as well as trying it in JBoss via the JbossSecurityMgrRealm. My roles ARE assuredly correct, as well as properly defined

Re: Keep Alive handling

2007-03-12 Thread Peter Kennard
Anyway - I answered my own question. I wrote a test, Keep Alive works fine with chunked content. If anyone wants the test code let me know. (should I post it?) It is small - about 150 lines worth, all java. PK Does Tomcat support Keep Alive, as a stand alone server, for multiple Client POS

Re: GUI implementation with tomcat

2007-03-12 Thread Alicia Sánchez-Mora
Hi kristian, thank you for your explanation but still the topic is not clear for me. As far I understand from your answer, I have to run the Frame fom my Client. ok, I did it. Then, each time I call a service I try to add a new message on my window, both from the service class and form the clien

Re: EJB 3.0 and Hibernate

2007-03-12 Thread Ron Wheeler
You might look at Spring to help make this hang together www.springframework.org Ron Scott Purcell wrote: Hello, Looking at incorporating the Java Persistence API (EJB 3.0) and was wondering if Tomcat 5.5 supports this. It looks like we need container managed services and was wondering if

Re: File Content Not Saved To Server

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Teh, Teh Noranis Mohd Aris wrote: > Now, a file name that was input by the user > was created BUT the problem is that, when I open the file, the word > "null" was written to the file NOT the file content. You probably have a null content variable. St

Re: Keep Alive handling

2007-03-12 Thread Peter Kennard
Does Tomcat support Keep Alive, as a stand alone server, for multiple Client POST requests to different servlet paths where both request and response are "Transfer-Encoding: chunked"? Is there a definition somewhere of when tomcat will drop a connection when keep-alive is specified? Thanks.

Re: Multiple instances problem...

2007-03-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Peter, Peter Björkman wrote: > Hi! I'm setting up an environment where I need a lot of differens web > containers running, and part of that is setting up tomcat5.0 to run > multiple instances. > > I tried to find a startup/stop script and this is wha

EJB 3.0 and Hibernate

2007-03-12 Thread Scott Purcell
Hello, Looking at incorporating the Java Persistence API (EJB 3.0) and was wondering if Tomcat 5.5 supports this. It looks like we need container managed services and was wondering if we can use Tomcat instead of JBoss? Thanks, Scott

Re: Possible JSTL/EL bug in 6.0.10

2007-03-12 Thread Gerald Holl
Rémy Maucherat wrote: On 3/8/07, Gerald Holl <[EMAIL PROTECTED]> wrote: Well, I think I can't give you access to all the details of our (secret) project. Anyway, thanks for the offer. Ok, I am obviously not going to look at your application. What I meant is I would look at a minimal war (conta

Problem getting comet to work

2007-03-12 Thread mattd1812
I am trying to write a comet servlet using the new CometProcessor api. I am running version 6.0.10 on windows as a service. I cannot get it to call the event method. I am using the Nio connector. After running tomcat in debug mode, I think I tracked the problem down to this line in StandardWra

No run servlet

2007-03-12 Thread Cristian Nieto
I have uncomment the invoker parameter in tomcat's web.xml. How i solver this error? 03/12/2007 12:12:34 PM org.apache.catalina.core.ApplicationContext log INFO: Marcando el servlet org.apache.catalina.INVOKER.org.empresa.general.mvc.listado.MyServlet como no disponible 03/12/2007 12:12:34 P

Re: Occasional XML parsing error when Tomcat is busy

2007-03-12 Thread David Delbecq
Threading issue might be due to unsafe sharing of a global variable. It might be that in some case you don't clean it properly, explaining why it seems to fails also with serialized request. Also, best way to be sure request are serialized is to limit tomcat to exactly one HTPP processor. En l'in

Cannot start tomcat5 service with jrockit

2007-03-12 Thread Igor Shevchenko
Hello, I'm experiencing problems with starting tomcat as a service under Win2003 server with jrockit jvm. Tomcat version is 5.5.20 and it starts successfully using startup.bat script, but when trying to start it as a service I have the following output in jakarta-service log: [2007-03-12 04:45:4

HTTP 400 error when deployment descriptor (web.xml) is used.

2007-03-12 Thread Rajendra Sakpal
Hi, I have created a web application that is running fine with the Invoker servlet settings enabled in the "Tomcat 5.5\conf\web.xml". Next, I tried the following: 1.> Added a web.xml in the WEB-INF directory of my application. 2.> Re-started my server. 3.> Attempted to access the homepage of

Re: Specifying relative path for TOMCAT 5.5 ?

2007-03-12 Thread Rajendra Sakpal
Thanks ORG. The ServletContext method solved my problem. Rajendra On 3/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi Rajendra, This also confused the hell out of me. Here are some tips If a url is relative, its relative to the page eg moreInfo/Details/SomePage.htm So its going t

Re: File Content Not Saved To Server

2007-03-12 Thread org
Its been a really long time since I played with Applets, but if I remember correctly I think you screwed. I dont think an applet container will let you access a local file system and send it to a server, it would create huge security holes. So even if you get the code right, browser will star

RE: Occasional XML parsing error when Tomcat is busy

2007-03-12 Thread Roberts, Gerallt
Thank you for the suggestion, I will check it again. However since I managed to recreate the problem by issuing the requests serially, waiting for the previous request to finish before issuing the next, I thought I had eliminated any potential threading issues. Is my assumption correct? If so, t

Re: how to intimate the user when his session invalidation occurs in form based authentication

2007-03-12 Thread org
Hi SANGAMESHWAR, I also had no luck with using error page tags in tomcat, they dont work. I really think you should have a separate login page, and then let the users navigate to frames etc. The only way I could get an tailor made error page to display properly was by using programmitic securit

Re: Should mod_jk-1.2.21-apache-2.2.x-linux-i686 support Apache2.0 as well?

2007-03-12 Thread Peter . Henningsen
Hello, thanks for the clarification. I suspected something like this although the maschine is still running reasonably well. I will upgrade the Webserver to 2.2 as the present release came with Oracle and seems to have no apxs-Files. Thanks a lot, Peter Henningsen Senior Consultant Rainer