Re: How to write this elegantly in JSP/EL

2007-06-24 Thread ben short

And your not happ with just using...

%=com.libris4you.books.maintenancepanel.AuthorTabController.DATA_PHOTO_WIDTH%



On 6/24/07, Hassan Schroeder [EMAIL PROTECTED] wrote:

On 6/23/07, Nikola Milutinovic [EMAIL PROTECTED] wrote:

 The answer is simple, imageUrl is calculated in the controller/servlet for each request. 
com.libris4youDATA_PHOTO_HEIGHT is a constant embedded in the Java code, where it belongs. And, 
here is another one: in your example DATA_PHOTO_HEIGHT is the name of the variable. In my example, I 
have already made THAT name a constant in the Java class.

Uh, what?  Use of the `c:out` format vs. simple EL has nothing to do
with where the value is coming from.

--
Hassan Schroeder  [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: Configuring Tomcat 5.5 and IIS 6

2007-06-24 Thread rcgeorge23

Glenn, 

Thanks for this - it looks like a very comprehensive guide. I'll have
another go at setting it up later on today and report back.

Cheers,
Richard.



gbarnas wrote:
 
 404's indicate that the file can't be found. IIS needs to be able to see
 the tomcat files/folders in order to know to invoke tomcat.. IIS can't
 magically see Tomcat's folders, so you may need to define a virtual folder
 in IIS to the Tomcat JSP files. 
 
 Have a look at 
 http://www.innotechcg.com/downloads/IntegrateTomcatIIS.zip, which is a
 step-by-step discussion of integrating IIS 6 and Tomcat. It may not suit
 your specific need, but if you follow the steps, it should illustrate the
 concepts required for IIS and Tomcat to work together. My how-to will work
 with both the default and specific IIS instances.
 
 Regards,
 
 Glenn
 
 
 
 rcgeorge23 wrote:
 
 Hi All,
 
 I'm having trouble getting Tomcat to serve pages through IIS. I have
 tried to follow several step-by-step guides online but haven't really had
 much luck! I've searched through this forum but again, I haven't been
 able to find anything that's fixed my problem.
 
 I downloaded jakarta-tomcat-connectors-jk2.0.4-win32-IIS.zip, and
 followed the setup instructions on the jakarta site. I made a slight
 modification to the setup script (so that it created the jakarta virtual
 folder in mydomain.com rather than IIS's Default Website), but other
 than that I believe I've done precisely as instructed!
 
 Tomcat is running on port 8080 and when I hit
 http://www.mydomain.com:8080/context/main.jsp, Tomcat faithfully serves
 up the page. However when I attempt to hit
 http://www.mydomain.com/main.jsp, IIS serves up a 404.
 
 If I look in the IIS log, I can see that IIS is attempting to push the
 request towards the isapi_redirector dll:
 
 #Fields: date time s-sitename s-ip cs-method cs-uri-stem cs-uri-query
 s-port cs-username c-ip cs-version cs(User-Agent) cs(Cookie) cs(Referer)
 sc-status sc-win32-status sc-bytes cs-bytes time-taken 
 2007-05-27 11:48:19 W3SVC10769 XXX.XXX.220.132 GET
 /jakarta/isapi_redirector2.dll - 80 - XXX.XXX.56.247 HTTP/1.1
 Mozilla/5.0+(Windows;+U;+Windows+NT+5.1;+en-GB;+rv:1.8.1.3)+Gecko/20070309+Firefox/2.0.0.3
 s_pers=%20s_vsn_paypalglobal%3D4757241787590%7C1473537542953%3B - 404
 1260 1814 525 31
 
 ...so I'm guessing it's a problem with the way the dll has been
 configured.
 
 Here is my workers2.properties:
 
 ==
 [shm]
 info=Scoreboard. Requried for reconfiguration and status with
 multiprocess servers.
 file=D:\Tomcat 5.5\work\jk2.shm
 
 # Example socket channel, override port and host.
 [channel.socket:XXX.XXX.220.132:8009]
 info=Ajp13 port forwarding over socket
 tomcatId=XXX.XXX.220.132:8009
 
 [logger]
 level=DEBUG
 
 [logger.file:0]
 level=DEBUG
 file=D:\Tomcat 5.5\logs\jk2.log
 
 [workerEnv:]
 info=Global server options
 timing=1
 debug=0
 logger=logger.file:0 
 
 # define the worker
 [ajp13:XXX.XXX.220.132:8009]
 channel=channel.socket:XXX.XXX.220.132:8009
 
 # Map the Tomcat examples webapp to the Web server uri space
 [uri:88.208.220.132/*]
 context=/ols-web
 worker=ajp13:XXX.XXX.220.132:8009
 =
 
 I attempted to enable logging to see whether this would give me any
 clues, but the file I specified (D:\Tomcat 5.5\logs\jk2.log) doesn't get
 created.
 
 Here's Tomcat's context.xml
 
 ==
 Context path=/ols-web reloadable=true docBase=D:\Tomcat
 5.5\webapps\ols-web workDir=D:\Tomcat 5.5\webapps\ols-web\work 
  Logger className=org.apache.catalina.logger.SystemOutLogger
 verbosity=4 timestamp=true/
 /Context
 ==
 
 ...and here's the bit in server.xml where the AJP connector port is
 configured:
 
 ==
 Connector port=8009 
enableLookups=false redirectPort=8443
 protocol=AJP/1.3 /
 ==
 
 If anyone can offer any advice, I'd be really grateful.
 
 Cheers,
 Richard.
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Configuring-Tomcat-5.5-and-IIS-6-tf3823529.html#a11273939
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Null

2007-06-24 Thread Mohammed Zabin

Thank you very much for your detailed illustration. But the compiler
complies that there is no such methods isNull() and wasNull()
???


On 6/21/07, Reinhardt Christiansen [EMAIL PROTECTED] wrote:



- Original Message -
From: Mohammed Zabin [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, June 21, 2007 6:45 AM
Subject: Null


 Hi All

 Anyone knows how to deal with null values in JDBC ResultSet??

 I am trying to render a table in jsp page that read its value from the
 database, sometimes, the database returns null values, and so, the whole
 table couldn't be rendered. Is there any way to deal with null values.


The correct way to detect nulls in a JDBC ResultSet is rather different
from
the replies you've had so far. You should detect the presence of nulls in
a
given result set row by using the ResultSet.isNull() method.

So, let's say that we have a result set called 'rs' (you will probably
have
used a Statement or PreparedStatement or some other technique to get your
result set from the database):

   Statement stmt = ; //an arbitrary Statement object
   ResultSet rs = stmt.executeQuery(select employee_number, last_name,
first_name, middle_initial from employee_table);

Now, on to the matter of nulls. Let's say that you are working your way
through your ResultSet. As you know, you get the rows of the ResultSet one
row at a time, using the next() method, as follows:

   while (rs.next()) { //as long as there are rows in the result set
   //handle one row of the result set
   }

Within the while loop, each iteration of the loop will handle one complete
row of the result set.

Let's assume you don't know which columns of the result set are null and
you
want to display the values in each column of the result set exactly as
they
appear in the result set, except that when the value is null, you want to
display the word unknown. Here's what you would need to do:


   String empno = null;
   String lastname = null;
   String firstname = null;
   String midinit = null;

   while (rs.next()) {

   empno = rs.getString(employee_number); //get the employee number
from this row of the result set
   if (rs.wasNull()) { //if the employee number is null
   System.out.println(Employee Number is unknown);
   }
   else {
   System.out.println(Employee Number is  + empno);
   }

   lastname = rs.getString(last_name); //get the last name from this
row of the result set
   if (rs.wasNull()) { //if the last name is null
   System.out.println(Last Name is unknown);
   }
   else {
   System.out.println(Last Name  is  + lastname);
   }

   firstname = rs.getString(first_name); //get the first name from
this row of the result set
   if (rs.wasNull()) { //if the first name is null
   System.out.println(First Name is unknown);
   }
   else {
   System.out.println(First Name is  + firstname);
   }


   midinit = rs.getString(middle_initial); //get the middle initial
from this row of the result set
   if (rs.wasNull()) { //if the middle initial is null
   System.out.println(Middle Initial is unknown);
   }
   else {
   System.out.println(Middle Initial is  + midinit);
   }

   }

Although this example uses only result set columns that are being stored
in
Strings, the technique differs very little for non-text data. Let's say
that
we had a column called annual_salary in our result set, where the
annual_salary was an integer containing the number of dollars that the
person earned per year. Let's assume that some people are still
negotiating
their salaries so that the salary is stored as null for those people until
the salary has been fully agreed.. The technique to handle the salary
would
look like this:

   int salary = null;

   while (rs.next()) {
   salary = getInt(annual_salary); //get the salary from this row of
the result set
   if (rs.isNull()) { //if the salary is null
   System.out.println(Annual Salary is unknown);
   }
   else {
   System.out.println(Annual Salary is  + salary);
   }


I hope this helps you with your null handling!

--
Rhino


-
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: Fw: [nbusers] GlassFish VERSES Tomcat

2007-06-24 Thread Leon Rosenberg

glassfishes uses a fork of tomcat 5.0.25, which they are developing on
their own.
Its actually the same as JBoss, the tomcat which comes with JBoss
isn't the tomcat you get from tomcat.apache.org.

The same applies probably to any application server out there, they
all come with their servlet containers, own products or a customized
version of another product.

But as long as they are all compatible to the JSR (or at least mainly
compatible) it shouldn't be a problem or a big problem to migrate from
one to another. As long as you don't use tomcat specific things, like
valves, in which case you're damned, but its your own fault then.

regards
Leon


On 6/24/07, Johnny Kewl [EMAIL PROTECTED] wrote:


- Original Message -
From: Johnny Kewl
To: [EMAIL PROTECTED]
Sent: Sunday, June 24, 2007 1:41 PM
Subject: [nbusers] GlassFish VERSES Tomcat


Guys, this is bothering me...
I read about JBoss  Tomcat, Geronimo  Tomcat, Spring  Tomcat GlassFish 
VERSES Tomcat.

What is the servlet container being used in Glassfish?
If it is a new thing, are their any assurances or policy statements out there, 
that it will remain compatible with Tomcat.
Saying the specs are the same is not enough... I want to know that I can move 
development in one easily to the other, always.

If Sun looks at this link 
http://www.googlefight.com/index.php?lang=en_GBword1=glassfishword2=tomcat
I think they should be making those assurances and putting a stop to VERSES 
articles, its stupid, one is a servlet container, the other an application 
container, like comparing a women to a man... they just different ;)
Its simple, if it becomes incompatible or a nightmare to work between ANYTHING 
and Tomcat, we cant use it, wont even take the risk.



Johnny Kewl
  eMail: JohnNo Spamkewlstuff.co.za  -- replace No Spam with @ --
  Cell: +027-72- 473-9331



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Fw: [nbusers] GlassFish VERSES Tomcat

2007-06-24 Thread Johnny Kewl

- Original Message - 
From: Johnny Kewl 
To: [EMAIL PROTECTED] 
Sent: Sunday, June 24, 2007 1:41 PM
Subject: [nbusers] GlassFish VERSES Tomcat


Guys, this is bothering me...
I read about JBoss  Tomcat, Geronimo  Tomcat, Spring  Tomcat GlassFish 
VERSES Tomcat.

What is the servlet container being used in Glassfish?
If it is a new thing, are their any assurances or policy statements out there, 
that it will remain compatible with Tomcat.
Saying the specs are the same is not enough... I want to know that I can move 
development in one easily to the other, always.

If Sun looks at this link 
http://www.googlefight.com/index.php?lang=en_GBword1=glassfishword2=tomcat
I think they should be making those assurances and putting a stop to VERSES 
articles, its stupid, one is a servlet container, the other an application 
container, like comparing a women to a man... they just different ;)
Its simple, if it becomes incompatible or a nightmare to work between ANYTHING 
and Tomcat, we cant use it, wont even take the risk.



Johnny Kewl 
  eMail: JohnNo Spamkewlstuff.co.za  -- replace No Spam with @ --
  Cell: +027-72- 473-9331


URI handling bug in Tomcat 6.0.13?

2007-06-24 Thread Sebastian Kruk

Hello,

just a quick question. Why URI like the following:

http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A%2F 
%2Fdmoz.org%2FTop


result in error 400 - incorrect URI - noSlash error in Tomcat 6.0.13,
but were correctly handled in Tomcat 5.5 ?

After investigating a little I have noticed that the problem is in % 
2F sequence (URI encoding of /).


Is there any HTTP specification detail that I have missed or is it,  
as I think it is, a bug in Tomcat 6?


Thanks for any hints,

Cheers,

Sebastian





--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute 
--   National University of Ireland, Galway 
--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/ 
--   mobile (IRL): +353 85 7126591

--   VoIP   (PL):  +48  52 5110114



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



context and tomcat6

2007-06-24 Thread daniel steel
All,
  we have couple of context defined, where the docbase is pointing to an 
another machine in the same network. but for some reason, in tomcat6 after some 
time after the start of tomcat the contexts gets undeployed and the context 
files are deleted.

we have defined context under
CATALINA_HOME/conf/Catalina/localhost/foo.xml
CATALINA_HOME/conf/Catalina/localhost/foo1.xml

could any one please shed some light on this?

thanks
dan
 
-
Don't be flakey. Get Yahoo! Mail for Mobile and 
always stay connected to friends.

Re: Null

2007-06-24 Thread Reinhardt Christiansen
If you check the Java API, wasNull() _is_ a method of the interface 
ResultSet. (Sorry, I mistakenly referred to it as isNull() before I started 
giving you the example.) If your program contains:


   import java.sql.ResultSet;

you should be able to see the wasNull() method without any difficulties.

The example I gave was adapted from a program that I created a while back as 
a JDBC example for use in database courses. I've run the program 
successfully many times. If your rs.next() compiles, I see no reason why 
rs.wasNull() would fail to compile.



--
Rhino


- Original Message - 
From: Mohammed Zabin [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, June 24, 2007 7:24 AM
Subject: Re: Null



Thank you very much for your detailed illustration. But the compiler
complies that there is no such methods isNull() and wasNull()
???


On 6/21/07, Reinhardt Christiansen [EMAIL PROTECTED] wrote:



- Original Message -
From: Mohammed Zabin [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Thursday, June 21, 2007 6:45 AM
Subject: Null


 Hi All

 Anyone knows how to deal with null values in JDBC ResultSet??

 I am trying to render a table in jsp page that read its value from the
 database, sometimes, the database returns null values, and so, the 
 whole

 table couldn't be rendered. Is there any way to deal with null values.


The correct way to detect nulls in a JDBC ResultSet is rather different
from
the replies you've had so far. You should detect the presence of nulls in
a
given result set row by using the ResultSet.isNull() method.

So, let's say that we have a result set called 'rs' (you will probably
have
used a Statement or PreparedStatement or some other technique to get your
result set from the database):

   Statement stmt = ; //an arbitrary Statement object
   ResultSet rs = stmt.executeQuery(select employee_number, last_name,
first_name, middle_initial from employee_table);

Now, on to the matter of nulls. Let's say that you are working your way
through your ResultSet. As you know, you get the rows of the ResultSet 
one

row at a time, using the next() method, as follows:

   while (rs.next()) { //as long as there are rows in the result set
   //handle one row of the result set
   }

Within the while loop, each iteration of the loop will handle one 
complete

row of the result set.

Let's assume you don't know which columns of the result set are null and
you
want to display the values in each column of the result set exactly as
they
appear in the result set, except that when the value is null, you want to
display the word unknown. Here's what you would need to do:


   String empno = null;
   String lastname = null;
   String firstname = null;
   String midinit = null;

   while (rs.next()) {

   empno = rs.getString(employee_number); //get the employee number
from this row of the result set
   if (rs.wasNull()) { //if the employee number is null
   System.out.println(Employee Number is unknown);
   }
   else {
   System.out.println(Employee Number is  + empno);
   }

   lastname = rs.getString(last_name); //get the last name from 
this

row of the result set
   if (rs.wasNull()) { //if the last name is null
   System.out.println(Last Name is unknown);
   }
   else {
   System.out.println(Last Name  is  + lastname);
   }

   firstname = rs.getString(first_name); //get the first name from
this row of the result set
   if (rs.wasNull()) { //if the first name is null
   System.out.println(First Name is unknown);
   }
   else {
   System.out.println(First Name is  + firstname);
   }


   midinit = rs.getString(middle_initial); //get the middle initial
from this row of the result set
   if (rs.wasNull()) { //if the middle initial is null
   System.out.println(Middle Initial is unknown);
   }
   else {
   System.out.println(Middle Initial is  + midinit);
   }

   }

Although this example uses only result set columns that are being stored
in
Strings, the technique differs very little for non-text data. Let's say
that
we had a column called annual_salary in our result set, where the
annual_salary was an integer containing the number of dollars that the
person earned per year. Let's assume that some people are still
negotiating
their salaries so that the salary is stored as null for those people 
until

the salary has been fully agreed.. The technique to handle the salary
would
look like this:

   int salary = null;

   while (rs.next()) {
   salary = getInt(annual_salary); //get the salary from this row 
of

the result set
   if (rs.isNull()) { //if the salary is null
   System.out.println(Annual Salary is unknown);
   }
   else {
   System.out.println(Annual Salary is  + salary);
   }


I hope this helps you with 

test from gmail user

2007-06-24 Thread PTS
Having issues getting my email to show on the list. 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



another test

2007-06-24 Thread PTS

Trying again.



user only

-
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: URI handling bug in Tomcat 6.0.13?

2007-06-24 Thread Rainer Jung

Look for CVE-2007-0450 in

http://tomcat.apache.org/security-6.html

Regards,

Rainer

Sebastian Kruk wrote:

Hello,

just a quick question. Why URI like the following:

http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A%2F%2Fdmoz.org%2FTop 



result in error 400 - incorrect URI - noSlash error in Tomcat 6.0.13,
but were correctly handled in Tomcat 5.5 ?

After investigating a little I have noticed that the problem is in %2F 
sequence (URI encoding of /).


Is there any HTTP specification detail that I have missed or is it, as I 
think it is, a bug in Tomcat 6?


Thanks for any hints,

Cheers,

Sebastian





--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National University of 
Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353 85 7126591
--   VoIP   (PL):  +48  52 5110114



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Martin Gainty
Just so I understand..you're advocating ThreadLocal over immutable variables 
or Local variables?


M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: Caldarale, Charles R [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Saturday, June 23, 2007 4:34 PM
Subject: RE: Is ThreadLocal safe to use in servlets



From: lightbulb432 [mailto:[EMAIL PROTECTED]
Subject: Re: Is ThreadLocal safe to use in servlets

A different way of asking this question is where/when
does Tomcat start the Thread that handles a given
request, and what is executed in the context of that
thread? (e.g. filters, listeners, other things, servlets
of course)


Tomcat utilizes a thread pool for processing requests; the same thread
is used for the duration of the request through the entire
filter/servlet chain (required by the servlet spec), including data base
and other external resource access.  However, since the threads are
pooled, you can't count on ever seeing the same thread twice in a given
servlet, so ThreadLocal objects are best created and destroyed during
individual request handling; trying to keep them around longer runs the
risk of their continuing to exist even after a webapp has been stopped
or undeployed, resulting in garbage collection problems.

Since Listeners are not associated with a specific request, there's no
guarantee that the thread running through any Listener code will ever be
used for a request for the associated webapp, and there's no guarantee
it won't.

- Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
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: another test

2007-06-24 Thread Martin Gainty

Looks like you're getting through
Whats your question?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: PTS [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, June 24, 2007 10:48 AM
Subject: another test



Trying again.



user only

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Caldarale, Charles R
 From: Martin Gainty [mailto:[EMAIL PROTECTED] 
 Subject: Re: Is ThreadLocal safe to use in servlets
 
 Just so I understand..you're advocating ThreadLocal over 
 immutable variables or Local variables?

Not at all - just pointing out the ramifications of using ThreadLocal in
a thread-pooling environment such as Tomcat.  ThreadLocal has its uses,
but can lead to complications if not used carefully.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



(Off Topic) mod_ruby woes

2007-06-24 Thread Martin Gainty
Good Morning All

Been hearing alot on how 'easy' ruby on rails works so I downloaded the 
RubyForApache binaries and tried to install in Apache 2.2
Trying to configure mod_ruby (ruby on rails) for quite a while and getting 
nothing but errors when attempting to 
reference any ruby files (*.rbx) from Apache...
apparently there is one maintainer for the project (source/doc/configuration) 
who is in Japan but is unreachable?
Any advice on where to find working binaries and configurations for Apache 2.2 
would be very much appreciated!

My Sincerest Apologies for way O/T topic
M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.


Re: another test

2007-06-24 Thread PTS

Thanks.



- Original Message - 
From: Wendy Smoak [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, June 24, 2007 12:04 PM
Subject: Re: another test



On 6/24/07, PTS [EMAIL PROTECTED] wrote:


This is a strange one indeed. It would appear that Google mail filers out
the mail that I send to the list. So when I check mail for the list this
email will not appear in my incoming email although you do receive it.
Strange. Thanks for the confirmation.


That's just GMail, you'll get used to it. :)  Look in your sent mail,
or check one of the list archives if you want to make sure your post
arrived.  For example...
http://www.nabble.com/another-test-t3972336.html

--
Wendy

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: URI handling bug in Tomcat 6.0.13?

2007-06-24 Thread Sebastian Kruk

Thanks,

so if I got it right - due to some security reasons:

Directory traversal vulnerability in Apache HTTP Server and Tomcat  
5.x before 5.5.22 and 6.x before 6.0.10, when using certain proxy  
modules (mod_proxy, mod_rewrite, mod_jk), allows remote attackers to  
read arbitrary files via a .. (dot dot) sequence with combinations of  
(1) / (slash), (2) \ (backslash), and (3) URL-encoded backslash (% 
5C) characters in the URL, which are valid separators in Tomcat but  
not in Apache.


... I cannot use sequence of .. (dot dot), /, \ and %5C

Yes, but, it is strange since  I do have neither (dot dot) nor %5C  
nor \  [we cannot ban / completely, right?],
Tomcat seems to be reacting strange on %2F, which have to be  
URLEncoded, since this is a URI I am passing to an internal procedure,
 if this URI is not URL encoded - than my regexp defined REST  
services endpoints will freak out and consider only all they will see  
till / as a parameter.


As I said before - it seems that Tomcat is sensitive to a %2F in my  
URI, which is not on the list above.


http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A%2F 
%2Fdmoz.org%2FTop


Can you, please, explain what is wrong with this URI? I got a feeling  
that although the CVE-2007-0450 might be important, it has been  
implemented in wrong way?


Thanks,

Sebastian



On 24 Jun 2007, at 16:09, Rainer Jung wrote:


Look for CVE-2007-0450 in

http://tomcat.apache.org/security-6.html

Regards,

Rainer

Sebastian Kruk wrote:

Hello,
just a quick question. Why URI like the following:
http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A 
%2F%2Fdmoz.org%2FTop result in error 400 - incorrect URI - noSlash  
error in Tomcat 6.0.13,

but were correctly handled in Tomcat 5.5 ?
After investigating a little I have noticed that the problem is in  
%2F sequence (URI encoding of /).
Is there any HTTP specification detail that I have missed or is  
it, as I think it is, a bug in Tomcat 6?

Thanks for any hints,
Cheers,
Sebastian

--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National University  
of Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353 85  
7126591

--   VoIP   (PL):  +48  52 5110114

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute 
--   National University of Ireland, Galway 
--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/ 
--   mobile (IRL): +353 85 7126591

--   VoIP   (PL):  +48  52 5110114



-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Caldarale, Charles R
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Is ThreadLocal safe to use in servlets
 
 When might an advanced Tomcat user need to play with this 
 Executor element?

To conserve resources when multiple Connector elements are configured.
No point in having a multitude of idle threads when some Connectors
are only lightly used or the usage pattern varies with time.

 If the same class definition were in fact placed in the
 classpath of both applications, wouldn't this still not
 work though - because they'd be loaded by the web context-
 specific classloaders and therefore not be the same class?

Correct; class definition in the previous message meant the loaded
class file, which is qualified by the classloader used.  I should have
made that more clear.

 If that's the case, would it work if the class were 
 placed in the CATALINA_HOME/lib instead?

Yes, that's one place where the multiple webapps would be referencing an
indentical class definition.  Anything from the system or bootstrap
class loaders would also suffice.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: another test

2007-06-24 Thread PTS
This is a strange one indeed. It would appear that Google mail filers out 
the mail that I send to the list. So when I check mail for the list this 
email will not appear in my incoming email although you do receive it. 
Strange. Thanks for the confirmation.


Doug

- Original Message - 
From: Martin Gainty [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, June 24, 2007 11:00 AM
Subject: Re: another test



Looks like you're getting through
Whats your question?

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please 
notify

the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

- Original Message - 
From: PTS [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Sunday, June 24, 2007 10:48 AM
Subject: another test



Trying again.



user only

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
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: another test

2007-06-24 Thread Wendy Smoak

On 6/24/07, PTS [EMAIL PROTECTED] wrote:


This is a strange one indeed. It would appear that Google mail filers out
the mail that I send to the list. So when I check mail for the list this
email will not appear in my incoming email although you do receive it.
Strange. Thanks for the confirmation.


That's just GMail, you'll get used to it. :)  Look in your sent mail,
or check one of the list archives if you want to make sure your post
arrived.  For example...
http://www.nabble.com/another-test-t3972336.html

--
Wendy

-
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: URI handling bug in Tomcat 6.0.13?

2007-06-24 Thread Rainer Jung
You didn't really read the part of the page I referred to and instead 
decided to read the CVE. The page I sent you will tell you about System 
properties that make the behaviour configurable.


Sebastian Kruk wrote:

Thanks,

so if I got it right - due to some security reasons:

Directory traversal vulnerability in Apache HTTP Server and Tomcat 5.x 
before 5.5.22 and 6.x before 6.0.10, when using certain proxy modules 
(mod_proxy, mod_rewrite, mod_jk), allows remote attackers to read 
arbitrary files via a .. (dot dot) sequence with combinations of (1) / 
(slash), (2) \ (backslash), and (3) URL-encoded backslash (%5C) 
characters in the URL, which are valid separators in Tomcat but not in 
Apache.


... I cannot use sequence of .. (dot dot), /, \ and %5C

Yes, but, it is strange since  I do have neither (dot dot) nor %5C nor 
\  [we cannot ban / completely, right?],
Tomcat seems to be reacting strange on %2F, which have to be URLEncoded, 
since this is a URI I am passing to an internal procedure,
 if this URI is not URL encoded - than my regexp defined REST services 
endpoints will freak out and consider only all they will see till / as a 
parameter.


As I said before - it seems that Tomcat is sensitive to a %2F in my URI, 
which is not on the list above.


http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A%2F%2Fdmoz.org%2FTop 



Can you, please, explain what is wrong with this URI? I got a feeling 
that although the CVE-2007-0450 might be important, it has been 
implemented in wrong way?


Thanks,

Sebastian



On 24 Jun 2007, at 16:09, Rainer Jung wrote:


Look for CVE-2007-0450 in

http://tomcat.apache.org/security-6.html

Regards,

Rainer

Sebastian Kruk wrote:

Hello,
just a quick question. Why URI like the following:
http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A%2F%2Fdmoz.org%2FTop 
result in error 400 - incorrect URI - noSlash error in Tomcat 6.0.13,

but were correctly handled in Tomcat 5.5 ?
After investigating a little I have noticed that the problem is in 
%2F sequence (URI encoding of /).
Is there any HTTP specification detail that I have missed or is it, 
as I think it is, a bug in Tomcat 6?

Thanks for any hints,
Cheers,
Sebastian

--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National University of 
Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353 85 
7126591

--   VoIP   (PL):  +48  52 5110114

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National University of 
Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353 85 7126591
--   VoIP   (PL):  +48  52 5110114



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / 

Re: context and tomcat6

2007-06-24 Thread Mark Thomas
daniel steel wrote:
 All,
   we have couple of context defined, where the docbase is pointing to an 
 another machine in the same network. but for some reason, in tomcat6 after 
 some time after the start of tomcat the contexts gets undeployed and the 
 context files are deleted.
 
 we have defined context under
 CATALINA_HOME/conf/Catalina/localhost/foo.xml
 CATALINA_HOME/conf/Catalina/localhost/foo1.xml
 
 could any one please shed some light on this?

Network issues. If the files are not present when Tomcat does a periodic
check then an undeploy will occur.

Mark


-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread lightbulb432


To conserve resources when multiple Connector elements are configured.
 No point in having a multitude of idle threads when some Connectors
 are only lightly used or the usage pattern varies with time.

Is it safe to assume that this is the way to go, or are there ever, ever any
times when it would be less desirable to go this route than the default
thread-pool-per-connector element? (I ask in terms of performance or other
production characteristics, rather than the initial extra few minutes to
configure that element and figure out how to correctly use it...?)

Also, using this method can threads only be shared between Connectors
associated with a single Engine (because Executor is a child of Service, not
Server), rather than being shared between every request to all web
applications on this instance of Tomcat?


I have another question about using ThreadLocal as an instance variable in a
threadsafe Singleton. If the Singleton has 5 instance methods, each of which
requires use of the value stored in the ThreadLocal, I see one option:

- Start each method with a call to a private method that returns the value
in the ThreadLocal

void method1of5() {
  String myString = getStringFromThreadLocal();
  myString.doStuff();
}

Is there another alternative, which would reduce the duplication of that
first line for each of the five methods? One thing I thought of (though it's
not possible, but maybe you can suggest other alternatives) is to somehow
have an instance variable that stores the value of that call, that each
method could use directly?

String myString = getStringFromThreadLocal();

void method1of5() {
  myString.doStuff();
}

Of course this isn't possible the way I've shown, because the myString
instance variable is only initialized once, and shared between all users of
the Singleton. (Though it does simplify each of the 5 methods, making them
oblivious to the fact that they're dealing with ThreadLocals, and that's
what I'm hoping you might be able to suggest a way of doing...)
-- 
View this message in context: 
http://www.nabble.com/Is-ThreadLocal-safe-to-use-in-servlets-tf3858168.html#a11276599
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Port-based virtual hosting

2007-06-24 Thread Caldarale, Charles R
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: Port-based virtual hosting
 
 Is there any functional difference between the two
 options - if they're both even possible? Which would
 you go with?
 
 - 1 Service element with 5 HTTP connectors (each on a 
 different port) and one Engine with 5 Hosts
 (Host name=application.com:8080, Host
 name=application.com:8081, etc...)
 
 - 5 Service elements, each with 1 HTTP connector and one 
 Engine with only 1 Host

Not sure I understand your requirements.  Are you trying to implement
multiple virtual hosts that are segregated by port number rather than
DNS name?

Your first option is not likely to work, since the port number is
stripped off before comparison with the Host name is done.  (Also,
since the Host name is used as a directory name in the underlying file
system, the colon won't be allowed on many platforms.)

The first option would use less resources than the second one, but I
think it would require that you write a Valve to forward each request
to the proper Host.  I think the second one will work without any
additional coding (but I haven't tried it).

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: URI handling bug in Tomcat 6.0.13?

2007-06-24 Thread Sebastian Kruk

Damn,

should not read/write emails on Sunday - thanks a million,

Cheers,

S.

On 24 Jun 2007, at 17:52, Rainer Jung wrote:

You didn't really read the part of the page I referred to and  
instead decided to read the CVE. The page I sent you will tell you  
about System properties that make the behaviour configurable.


Sebastian Kruk wrote:

Thanks,
so if I got it right - due to some security reasons:
Directory traversal vulnerability in Apache HTTP Server and  
Tomcat 5.x before 5.5.22 and 6.x before 6.0.10, when using certain  
proxy modules (mod_proxy, mod_rewrite, mod_jk), allows remote  
attackers to read arbitrary files via a .. (dot dot) sequence with  
combinations of (1) / (slash), (2) \ (backslash), and (3) URL- 
encoded backslash (%5C) characters in the URL, which are valid  
separators in Tomcat but not in Apache.

... I cannot use sequence of .. (dot dot), /, \ and %5C
Yes, but, it is strange since  I do have neither (dot dot) nor %5C  
nor \  [we cannot ban / completely, right?],
Tomcat seems to be reacting strange on %2F, which have to be  
URLEncoded, since this is a URI I am passing to an internal  
procedure,
 if this URI is not URL encoded - than my regexp defined REST  
services endpoints will freak out and consider only all they will  
see till / as a parameter.
As I said before - it seems that Tomcat is sensitive to a %2F in  
my URI, which is not on the list above.
http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http%3A 
%2F%2Fdmoz.org%2FTop Can you, please, explain what is wrong with  
this URI? I got a feeling that although the CVE-2007-0450 might be  
important, it has been implemented in wrong way?

Thanks,
Sebastian
On 24 Jun 2007, at 16:09, Rainer Jung wrote:

Look for CVE-2007-0450 in

http://tomcat.apache.org/security-6.html

Regards,

Rainer

Sebastian Kruk wrote:

Hello,
just a quick question. Why URI like the following:
http://localhost:8080/jeromedl/mbb/filter/marcont:hasDomain/http% 
3A%2F%2Fdmoz.org%2FTop result in error 400 - incorrect URI -  
noSlash error in Tomcat 6.0.13,

but were correctly handled in Tomcat 5.5 ?
After investigating a little I have noticed that the problem is  
in %2F sequence (URI encoding of /).
Is there any HTTP specification detail that I have missed or is  
it, as I think it is, a bug in Tomcat 6?

Thanks for any hints,
Cheers,
Sebastian

--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National  
University of Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353  
85 7126591

--   VoIP   (PL):  +48  52 5110114

--- 
--

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 98549 -0
Bornheimer Str. 33aFax: +49 228 98549 -50
D-53111 Bonn   www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann

 
-

To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--   Sebastian Ryszard Kruk
--   Lead Researcher, Project Manager
--   Semantic Infrastructure Lab, eLearning Cluster
--   Digital Enterprise Research Institute--   National University  
of Ireland, Galway--   mailto: [EMAIL PROTECTED]

--   GG: 335067, Jabber: [EMAIL PROTECTED]
--   Skype: sebastiankruk
--   WWW: http://www.sebastiankruk.com/--   mobile (IRL): +353 85  
7126591

--   VoIP   (PL):  +48  52 5110114

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


--
--
kippdata
informationstechnologie GmbH   Tel: 0228 98549 -0
Bornheimer Str. 33aFax: 0228 98549 -50
53111 Bonn www.kippdata.de

HRB 8018 Amtsgericht Bonn / USt.-IdNr. DE 196 457 417
Geschäftsführer: Dr. Thomas Höfer, Rainer Jung, Sven Maurmann
===
kippdata
informationstechnologie GmbH   Tel: +49 228 

In-Process Tomcat

2007-06-24 Thread lightbulb432

I read a few things that explained the difference (in configurations where
you must front Tomcat with Apache HTTPD) between in-process Tomcat and
out-of-process Tomcat, and have a couple of questions.

It said that in-process Tomcat will reduce latency (which I understand) but
decrease both stability and scalability - why will it decrease both of these
things?

How can you set up an in-process Tomcat? I couldn't find anything related at
http://tomcat.apache.org/connectors-doc/ or by doing a web search. Do both
options make use of the mod_jk connector to HTTPD, and it's just a matter of
configuring it appropriately, or does Tomcat somehow have to be compiled
into Apache, or something else?


In general, what conflicts arise from an integrated Tomcat and HTTPD setup,
whether in-process or not? Both Tomcat and HTTPD have configuration related
to URL rewriting, authorization/authentication, logging, etc. In general
terms, what's the most reasonable way to configure your integrated setup so
that the resulting installation doesn't leave security holes, or break due
to URL rewriting, or any other results? An strategies or best practices
here?
-- 
View this message in context: 
http://www.nabble.com/In-Process-Tomcat-tf3972772.html#a11276703
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: test from gmail user

2007-06-24 Thread Joe Pemberton

Seems to be working.

On 6/24/07, PTS [EMAIL PROTECTED] wrote:


Having issues getting my email to show on the list.

-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Martin,

Martin Gainty wrote:
 Just so I understand..you're advocating ThreadLocal over immutable
 variables or Local variables?

ThreadLocals... ya know: the power of thread variables with the
convenience of local variables.

Get with the program. ThreadLocals solve problems that are not possible
using locals. I'm not even sure what you think immutable variables
might lend to this discussion, except for comic relief.

- -chris

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfs7m9CaO5/Lv0PARAlJrAJ0TCXdfHhtTbNZI0dTuNvq2esRpzQCgnfNn
M4rNPAMukh91CjqLEUTlj7o=
=byD2
-END PGP SIGNATURE-

-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

lb,

lightbulb432 wrote:
 I have another question about using ThreadLocal as an instance variable in a
 threadsafe Singleton. If the Singleton has 5 instance methods, each of which
 requires use of the value stored in the ThreadLocal, I see one option:
 
 - Start each method with a call to a private method that returns the value
 in the ThreadLocal

[or]

 One thing I thought of (though it's
 not possible, but maybe you can suggest other alternatives) is to somehow
 have an instance variable that stores the value of that call, that each
 method could use directly?

You generally don't want a singleton that has instance members,
otherwise you might end up with threading issues. Use the ThreadLocal as
your repository of information, since you're already doing that.

I recommend a method that fetches the variable from the ThreadLocal.
That way, you can add logic that checks for null and throws an exception
if it's missing... since I assume that the presence of the ThreadLocal
data is essential. This way, your error checking won't clutter each of
the methods that will actually be /using/ that data.

- -chris
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGfs/09CaO5/Lv0PARAhhxAJ93d6rQMrZozGJy6tg4Wclda5/+zgCfZBAi
5W7N37Izfp4L3jGYlrlCtZ0=
=zLdP
-END PGP SIGNATURE-

-
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: Is ThreadLocal safe to use in servlets

2007-06-24 Thread Caldarale, Charles R
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: RE: Is ThreadLocal safe to use in servlets
 
 Is it safe to assume that this is the way to go, or are 
 there ever, ever any times when it would be less desirable
 to go this route than the default thread-pool-per-connector
 element?

I would expect there to be some additional CPU overhead with a shared
thread pool, but I have no idea what the magnitude of the difference
would be.  There should be reduced memory impact with a shared pool, but
you'd probably have to measure in your environment to see what the
effects really are.

Note that Remy M currently recommends against using an Executor:
http://marc.info/?l=tomcat-userm=118002259402411w=2

 Also, using this method can threads only be shared between
 Connectors associated with a single Engine (because Executor
 is a child of Service, not Server), rather than being shared
 between every request to all web applications on this instance
 of Tomcat?

Correct; there's virutally nothing sharable across Service elements.

 I have another question about using ThreadLocal as an 
 instance variable in a threadsafe Singleton. If the
 Singleton has 5 instance methods, each of which
 requires use of the value stored in the ThreadLocal

It's not clear to me why ThreadLocal would be advantageous here.  Sounds
like you really want a method-local variable, regardless of what thread
is using the particular method.  I don't really understand what problem
you're trying to solve here.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: naming trouble

2007-06-24 Thread Rashmi Rubdi

On 6/22/07, Lorenzo Cerini [EMAIL PROTECTED] wrote:

but my tomcat mismatch the classes, i mean if i recompile the
Connessione_dyn
belonging to app2 and restart tomcat, even my app1 try to use the app2's
Connessione_dyn
instead of its own one, thus leading to an error since the pooled
connection used by app2
is not 'registered' in the app1 context. I have used the same
configuration for a long period on
tomcat 5.0.28 with no problems.


I think this most likely caused by cross-context conflict.

Have you tried explicitly setting crossContext=false in your
application's context?

Try naming the classes and their packages in the two separate apps
such that their names are different.

Do you have an option to use multiple virtual hosts instead of
multiple contexts?

I was able to deal with cross context class conflicts by deploying
each app on it's own virtual host rather than multiple contexts within
the same virtual host.



Maybe can help my java version is:

 # /tomcat/java/bin/java -version
java version 1.6.0_01
Java(TM) SE Runtime Environment (build 1.6.0_01-b06)
Java HotSpot(TM) 64-Bit Server VM (build 1.6.0_01-b06, mixed mode)

Thanks in advance
L.Cerini



-Rashmi

-
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: Run multiple instances of tomcat on windows

2007-06-24 Thread Cartman

On 6/23/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:


Hi
I want to run 2 instance of tomcat on windows server, both of them are
5.5.20,
1. Is it possible to have them as 2 services so i can stop and start them
independently?




yes, each instance run its own service.

2. Do i have to install it twice?


yes, you have

3. Can i use java 1.4.2 for one and java 1.5.0 for other


ok

4. I can setup one tomcat as startup job in windows, but then how do i make

sure that all the log files go to stdout.log and stderr.log instead of on
the dos window.



you can configure when tomcat write the log, but by default it is the same.

Is there any step by step document of doing this


I don't think, there are some information but is not explicit.

Ashish






--
Gracias.
Atentamente,
Carlos Arturo Trujillo Silva
Ingeniero de Sistemas


RE: In-Process Tomcat

2007-06-24 Thread Duan, Nick
In-process Tomcat is to have Tomcat running in the same process space as
Apache HTTPD, IIS, or other web server.  Since most of the web servers
are implemented in C/C++, you will have to use JNI to integrate with
Java-based Tomcat, and create a mod_tomcat like module for Httpd. 

Definitely the in-process setup improves performance, since
communication between Tomcat and web server occurs via memory-based data
exchange.  It will be less stable since if something went wrong with the
Tomcat, it would affect the web server directly.  It will also be less
scalable, since this setup won't support high-availability and
clustering of Tomcat servers.

Out-process Tomcat, on the other hand, is running as an independent
server in a different process space or on a different machine as the
HTTPD server.  It may lack the performance as the in-process set up,
since the communication between Tomcat and HTTPD occurs via network.
But it is definitely more stable and more scalable than in-process
Tomcat. 

I don't think that in-process Tomcat is much used nowadays, since it is
hard to configure and very error-prone.  The common way of using Tomcat
with a front end HTTPD is the out-process one, since it is more flexibly
and easy to configure.  The common architecture is to have the front-end
HTTPD running in a DMZ, serving static pages, while one or more Tomcat
servers hosting the dynamic application running behind the firewall.  In
this case, the out-process Tomcat is the only option.

Hope this helps. 

ND

-Original Message-
From: lightbulb432 [mailto:[EMAIL PROTECTED] 
Sent: Sunday, June 24, 2007 1:33 PM
To: users@tomcat.apache.org
Subject: In-Process Tomcat


I read a few things that explained the difference (in configurations
where
you must front Tomcat with Apache HTTPD) between in-process Tomcat and
out-of-process Tomcat, and have a couple of questions.

It said that in-process Tomcat will reduce latency (which I understand)
but
decrease both stability and scalability - why will it decrease both of
these
things?

How can you set up an in-process Tomcat? I couldn't find anything
related at
http://tomcat.apache.org/connectors-doc/ or by doing a web search. Do
both
options make use of the mod_jk connector to HTTPD, and it's just a
matter of
configuring it appropriately, or does Tomcat somehow have to be compiled
into Apache, or something else?


In general, what conflicts arise from an integrated Tomcat and HTTPD
setup,
whether in-process or not? Both Tomcat and HTTPD have configuration
related
to URL rewriting, authorization/authentication, logging, etc. In general
terms, what's the most reasonable way to configure your integrated setup
so
that the resulting installation doesn't leave security holes, or break
due
to URL rewriting, or any other results? An strategies or best practices
here?
-- 
View this message in context:
http://www.nabble.com/In-Process-Tomcat-tf3972772.html#a11276703
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Java Axis and R

2007-06-24 Thread Yifan (Eric) Jiang
Hi all,

 

I've been asked to develop a Java Axis web service to call R program
(http://www.r-project.org/). There is a Java/R interface
(http://www.rforge.net/rJava/) has been developed and allows to call
methods and access R object from Java. So my application is running fine
as a normal Java application. However, it fails to run the R program
when it is running as web service. 

 

Well from my experience, I guess the only reason to cause it was because
Tomcat doesn't allow its own web applications to consume other programs
that are not inside Tomcat. Similar situation happen before when I was
trying to use System.getenv(CATALINA_HOME). It was running fine as a
normal Java application, but doesn't work when it is running inside
Tomcat.

 

So does anyone know how to configure Tomcat to use other programs that
are not inside Tomcat?

 

By the way, the version of my tomcat is 5.5.23.

 

Thanks in advance

 

Kind Regards

 

Eric Jiang

 

 



Re: Java Axis and R

2007-06-24 Thread kaustubh shinde

Hi there,
Check out CGIwithR package.
http://www.omegahat.org/CGIwithR/
I have been using it for a while. You can execute R scripts and post the
output to using RHTML package
or using simple print.
hope it helps,
Kaustubh

On 6/24/07, Yifan (Eric) Jiang [EMAIL PROTECTED] wrote:


Hi all,



I've been asked to develop a Java Axis web service to call R program
(http://www.r-project.org/). There is a Java/R interface
(http://www.rforge.net/rJava/) has been developed and allows to call
methods and access R object from Java. So my application is running fine
as a normal Java application. However, it fails to run the R program
when it is running as web service.



Well from my experience, I guess the only reason to cause it was because
Tomcat doesn't allow its own web applications to consume other programs
that are not inside Tomcat. Similar situation happen before when I was
trying to use System.getenv(CATALINA_HOME). It was running fine as a
normal Java application, but doesn't work when it is running inside
Tomcat.



So does anyone know how to configure Tomcat to use other programs that
are not inside Tomcat?



By the way, the version of my tomcat is 5.5.23.



Thanks in advance



Kind Regards



Eric Jiang








Deploying single .war file for use by multiple contexts - how do i override web.xml

2007-06-24 Thread Steven Probetts
Hi all,The problem is we have 4 different sub companies which we want to deploy a particular web app for.What we want to do is stick a single .war file onto the server which all companies point to,and set up different context.xml files for each (since they have different context data).The problem is we also want different data (particularly the security role data) in the different web.xml files but these are stuck in the .war file.So the question is:Can we use the context file to alter the security role data (or more accurately override it) in the web.xml file depending on which company is using the web app.Thanx in advance RegardsSteven Probetts  Ph 9309 0555  Fax 9409 6828 Mb  040 968 487724 Mosey Street LANDSDALE WA 6065This  email message is for the intended recipient(s) only and may contain  confidential or privileged information. Unless expressly permitted within this  email message, you are not to disclose this email message to anyone else. If  this email message has been sent to you in error, please forward this email  message to [EMAIL PROTECTED] and delete  this email message. Residential Truss Systems Pty Ltd does not guarantee that  this email message is free of errors, virus or any other  interference. 

RE: Java Axis and R

2007-06-24 Thread Yifan (Eric) Jiang
Hi Kaustubh,

Thanks for your information. But I am looking for something that can be
use in Java program.

Thanks

Eric

-Original Message-
From: kaustubh shinde [mailto:[EMAIL PROTECTED] 
Sent: Monday, 25 June 2007 2:02 p.m.
To: Tomcat Users List
Subject: Re: Java Axis and R

Hi there,
Check out CGIwithR package.
http://www.omegahat.org/CGIwithR/
I have been using it for a while. You can execute R scripts and post the
output to using RHTML package
or using simple print.
hope it helps,
Kaustubh

On 6/24/07, Yifan (Eric) Jiang [EMAIL PROTECTED] wrote:

 Hi all,



 I've been asked to develop a Java Axis web service to call R program
 (http://www.r-project.org/). There is a Java/R interface
 (http://www.rforge.net/rJava/) has been developed and allows to call
 methods and access R object from Java. So my application is running
fine
 as a normal Java application. However, it fails to run the R program
 when it is running as web service.



 Well from my experience, I guess the only reason to cause it was
because
 Tomcat doesn't allow its own web applications to consume other
programs
 that are not inside Tomcat. Similar situation happen before when I was
 trying to use System.getenv(CATALINA_HOME). It was running fine as a
 normal Java application, but doesn't work when it is running inside
 Tomcat.



 So does anyone know how to configure Tomcat to use other programs that
 are not inside Tomcat?



 By the way, the version of my tomcat is 5.5.23.



 Thanks in advance



 Kind Regards



 Eric Jiang







-
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: Deploying single .war file for use by multiple contexts - how do i override web.xml

2007-06-24 Thread Caldarale, Charles R
 From: Steven Probetts [mailto:[EMAIL PROTECTED] 
 Subject: Deploying single .war file for use by multiple 
 contexts - how do i override web.xml
 
 Can we use the context file to alter the security role data 
 (or more accurately override it) in the web.xml 
 http://web.xml/  file depending on which company is using 
 the web app.

Perhaps.  You can't override the web.xml settings, since that
information is defined by the servlet spec, and things in Context are
outside of the spec.  However, you could specify a different Realm
inside each Context, and that might suffice.  

You could also use a Filter to implement the necessary security,
possibly in conjunction with the web.xml settings.  I seem to recall
that there are some open-source security Filters already available that
have been mentioned in other threads.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
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: Run multiple instances of tomcat on windows

2007-06-24 Thread Ashish Kulkarni

Hi
The problem i am having is, when i installed second instance of tomcat it
replaced the windows service for the first tomcat, so i have only one tomcat
service in windows,
can i install one more service in tomcat now for the first installed tomcat,
if so how

Ashish

On 6/24/07, Cartman [EMAIL PROTECTED] wrote:


On 6/23/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:

 Hi
 I want to run 2 instance of tomcat on windows server, both of them are
 5.5.20,
 1. Is it possible to have them as 2 services so i can stop and start
them
 independently?



yes, each instance run its own service.

2. Do i have to install it twice?


yes, you have

3. Can i use java 1.4.2 for one and java 1.5.0 for other


ok

4. I can setup one tomcat as startup job in windows, but then how do i
make
 sure that all the log files go to stdout.log and stderr.log instead of
on
 the dos window.


you can configure when tomcat write the log, but by default it is the
same.

Is there any step by step document of doing this


I don't think, there are some information but is not explicit.

Ashish




--
Gracias.
Atentamente,
Carlos Arturo Trujillo Silva
Ingeniero de Sistemas



Re: Run multiple instances of tomcat on windows

2007-06-24 Thread Cartman

I think that you are installing tomcat with the windows installer thats
is not a good idea.  I ever install tomcat with the file ziped; there, in
the bin directory you find a service.bat, with this bat you can install
tomcat as a windows service... and... you must install the services that you
want. May be you wana modify the service.bat and add the TOMCAT_BASE
environment variable.

On 6/24/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:


Hi
The problem i am having is, when i installed second instance of tomcat it
replaced the windows service for the first tomcat, so i have only one
tomcat
service in windows,
can i install one more service in tomcat now for the first installed
tomcat,
if so how

Ashish

On 6/24/07, Cartman [EMAIL PROTECTED] wrote:

 On 6/23/07, Ashish Kulkarni [EMAIL PROTECTED] wrote:
 
  Hi
  I want to run 2 instance of tomcat on windows server, both of them are
  5.5.20,
  1. Is it possible to have them as 2 services so i can stop and start
 them
  independently?



 yes, each instance run its own service.

 2. Do i have to install it twice?


 yes, you have

 3. Can i use java 1.4.2 for one and java 1.5.0 for other


 ok

 4. I can setup one tomcat as startup job in windows, but then how do i
 make
  sure that all the log files go to stdout.log and stderr.log instead of
 on
  the dos window.


 you can configure when tomcat write the log, but by default it is the
 same.

 Is there any step by step document of doing this


 I don't think, there are some information but is not explicit.

 Ashish
 



 --
 Gracias.
 Atentamente,
 Carlos Arturo Trujillo Silva
 Ingeniero de Sistemas






--
Gracias.
Atentamente,
Carlos Arturo Trujillo Silva
Ingeniero de Sistemas


RE: In-Process Tomcat

2007-06-24 Thread lightbulb432

Thanks for your detailed response. See questions below.


In-process Tomcat is to have Tomcat running in the same process space as
 Apache HTTPD, IIS, or other web server.  Since most of the web servers
 are implemented in C/C++, you will have to use JNI to integrate with
 Java-based Tomcat, and create a mod_tomcat like module for Httpd.

So there's no standard prepackaged installation of the two combined, or no
standard connector plugin or something that's distributed with either
Tomcat or HTTPD, which is why I'd have to create it myself? Is the
in-process approach that uncommon?


Definitely the in-process setup improves performance, since
 communication between Tomcat and web server occurs via memory-based data
 exchange.  It will be less stable since if something went wrong with the
 Tomcat, it would affect the web server directly.  It will also be less
 scalable, since this setup won't support high-availability and
 clustering of Tomcat servers.

Why does the in-process approach render high-availability and clustering
impossible? From a technical/implementation perspective, what is it about
the in-process approach that causes this specific functionality to not be
possible?

In any case, if clustering features don't work then it's definitely no
surprise that any web application that needs to scale wouldn't use this
approach...unless it is being used in some way by such web applications in
production - anybody know?
-- 
View this message in context: 
http://www.nabble.com/In-Process-Tomcat-tf3972772.html#a11281236
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
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: Port-based virtual hosting

2007-06-24 Thread lightbulb432

The question's more of a general one to help me understand some elements in
server.xml. Maybe I'll start with this question first, though:

If you somehow have multiple contexts (within the same Host or Service, or
within different ones in your Tomcat instance) that point to the same WAR
file or docBase, are there multiple instances of that web application
running, or are the multiple entry points to that application (based on it
being specified in multiple hosts) really pointing to the same instance of
that webapp?

If this doesn't make sense, I can clarify. Thanks.



Caldarale, Charles R wrote:
 
 From: lightbulb432 [mailto:[EMAIL PROTECTED] 
 Subject: Port-based virtual hosting
 
 Is there any functional difference between the two
 options - if they're both even possible? Which would
 you go with?
 
 - 1 Service element with 5 HTTP connectors (each on a 
 different port) and one Engine with 5 Hosts
 (Host name=application.com:8080, Host
 name=application.com:8081, etc...)
 
 - 5 Service elements, each with 1 HTTP connector and one 
 Engine with only 1 Host
 
 Not sure I understand your requirements.  Are you trying to implement
 multiple virtual hosts that are segregated by port number rather than
 DNS name?
 
 Your first option is not likely to work, since the port number is
 stripped off before comparison with the Host name is done.  (Also,
 since the Host name is used as a directory name in the underlying file
 system, the colon won't be allowed on many platforms.)
 
 The first option would use less resources than the second one, but I
 think it would require that you write a Valve to forward each request
 to the proper Host.  I think the second one will work without any
 additional coding (but I haven't tried it).
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Port-based-virtual-hosting-tf3970665.html#a11281403
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]