WebdavServlet and different users

2004-11-03 Thread Tore Halset
Hello.
I have set up a simple service using the WebdavServlet (mapped to /*) 
for a single user. I have overrided getResources() to define a 
FileDirContext to store the files. The security are defined in web-xml 
as a security-constraint. Everything is working very well.

So, someone want this service to work with more than one user :) The 
different users should not see each other files. I could ask user a to 
use url http://server.com/service/a and user b to use url 
http://server.com/service/b, but how can I protect /b from user a and 
/a from user b? Is it possible to define a url-pattern like 
/${username}/* in a security-constraint in web.xml?

Perhaps I should jump to slide? So far WebdavServlet has been perfect.
 - Tore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


servlet problem

2004-11-03 Thread JAY BHAGATWALA
hello...all.. 
i am new to tomcat and having trouble running servlet
in tomcat. 
problem is as follows : 

i have developed one servlet program, if i put the
program into the
webapps\servlets-example\web-inf\classes then it works
fine,

but if i put the program in another directory like
webapps\demo\web-inf\classes then it gives error that
requested resource is not available.

 i am using tomcat 5.0, i have also tried to configure
web.xml and server.xml files but i do not get success.


plz, help me out as soon as possible... any type of
suggestions, helps are welcomed... 

thanks, 
jay





__ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



relative uri in tomcat 5.0.28

2004-11-03 Thread mi1291
why this simple code in a jsp page:

form action=c:url value=deleteuser.jsp/ method=post

doesn't  return the relative URI??

(ROOT/dir/dir/deleteuser.jsp)

this code returns

ROOT/deleteuser.jsp

I've tried both with Tomcat Stand Alone and together An IIS application
server.
But both cases returns the wrong URI.

Excuse for my bad english

Thanks



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Same session ID for HTTPS HTTP

2004-11-03 Thread Ben
Hi

Is it safe to use the same session ID for HTTP and HTTPS? If not then
how can I deal with a situation where the users disabled cookie and
access to the protected resources? If I don't use the same session ID,
they need to login every time when they access to the protected
resources as the login page uses HTTPS and other pages use HTTP.

Thanks

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



PureTLSImplementation

2004-11-03 Thread Giuseppe Briotti
I have JBoss 3.2.3 + Tomcat 4.1.29 embedded + SSL

Everthing seems working properly, but when I check the JBoss
server log I found this exception, that occours at JBoss start up.

Error loading SSL Implementation 
org.apache.tomcat.util.net.puretls.PureTLSImplementation
java.lang.ClassNotFoundException: No ClassLoaders found for: 
org.apache.tomcat.util.net.puretls.PureTLSImplementation

Any ideas? Can this exception ignored?

TIA

G



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: PureTLSImplementation

2004-11-03 Thread Eric Rotick
This only comes out when asking for detailed debug information and can
be ignored.

It arises when you use SSL and Tomcat tries to load one of two
implementations. The first generally fails as the relevant jars are
not available which is what you are seeing. The second implementation
loads OK as this is JSSE and is part of the JDK.


On Wed, 3 Nov 2004 12:13:02 +0100 (CET), Giuseppe Briotti
[EMAIL PROTECTED] wrote:
 I have JBoss 3.2.3 + Tomcat 4.1.29 embedded + SSL
 
 Everthing seems working properly, but when I check the JBoss
 server log I found this exception, that occours at JBoss start up.
 
 Error loading SSL Implementation 
 org.apache.tomcat.util.net.puretls.PureTLSImplementation
 java.lang.ClassNotFoundException: No ClassLoaders found for: 
 org.apache.tomcat.util.net.puretls.PureTLSImplementation
 
 Any ideas? Can this exception ignored?
 
 TIA
 
 G
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: WebdavServlet and different users

2004-11-03 Thread Tore Halset
On Nov 3, 2004, at 9:36, Tore Halset wrote:
I have set up a simple service using the WebdavServlet (mapped to /*) 
for a single user. I have overrided getResources() to define a 
FileDirContext to store the files. The security are defined in web-xml 
as a security-constraint. Everything is working very well.

So, someone want this service to work with more than one user :) The 
different users should not see each other files. I could ask user a to 
use url http://server.com/service/a and user b to use url 
http://server.com/service/b, but how can I protect /b from user a and 
/a from user b? Is it possible to define a url-pattern like 
/${username}/* in a security-constraint in web.xml?
I just put the following code in the service-method:
String username = req.getRemoteUser();
String servletpath = req.getServletPath();
 removed some checking on username and servletpath
if (!(servletpath.equals(/ + username) || 
servletpath.startsWith(/ + username + /))) {
log.info(user  + username +  does not have access to  + 
servletpath);
res.sendError(HttpServletResponse.SC_UNAUTHORIZED);
return;
}

 - Tore.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problems upgrading from version 4.0.5 to 4.1.24

2004-11-03 Thread Mike Armishaw
Hi,
this is the first time I have posted to this or any other discussion 
group. Apologies if I am not following correct protocol, hopefully 
someone will correct me if that is the case.

I have checked the archive but have been unable to find anything that 
answers my questions. Again, apologies if I've missed stuff.

First some background. We have a web app that runs on a government 
secure intranet. The app is essentially a forms application that allows 
users to submit a variety of expenses and excess hours claims to a 
legacy mainframe payroll system. The app uses only JSPs, servlets, beans 
and straight JDBC calls to a Mysql database backend. The hardware is 
made up of two quad 1.8Mhz windows 2000 servers each with 3Gb of memory. 
The app runs in parallel on each server (i.e. sticky sessions, not 
distributed) using a fairly crude but effective load balancing that 
splits users 50/50 between the servers. Each server also hosts a Mysql 
database, the live database on one and an archive database on the other. 
We realise that this is not an ideal configuration, however 
circumstances leave us no choice. This is a very heavily used 
application, it has over 120,000 registered users and regularly handles 
over 2,000 concurrent users.

The app currently runs very successfully on Tomcat 4.0.5 with the 
following configuration.

   minProcessors = 250
   maxProcessors = 750
   enableLookups = false
   acceptCount = 200
   connectionTimeout = -1
   application context reloadable = false
The Java heap size is set to a minimum of 512M and a max of 1024M.
We have been considering upgrading Tomcat to a later version, and for 
the latest release installed version 4.1.24 on our development and test 
machines. Unit and functional testing went well but we were unable to 
carry out any load testing due to the lack of suitable hardware to set 
up a test environment that mirrored live. We therefore decided to deploy 
to live using 4.0.5 again. However, on carrying out final acceptance 
testing in the live environment we experienced several unexplained 
crashes. Things that had worked fine in test were suddenly failing in 
live. My initial assumption (at 11pm at night with heavy pressure to get 
the app deployed ready for 4am next morning) was that the problem must 
be in Tomcat 4.0.5, as everything had worked fine in test. I therefore 
decided to upgrade live to 4.1.24 using the same configuration as we had 
for 4.0.5 shown above. Following the upgrade acceptance testing went 
fine with everything working well just as it had in test.

However, the major problems showed up next morning as soon as the load 
began to build up. As soon as concurrent usage went over 100 we received 
the error threadpool full, no more threads available - please increase 
maxProcessors. The app ws very unstable with some users able to log on 
but most receiving a page unavailable message. All sorts of new / 
unexplained errors showed up in the logs, most of them due to attributes 
not being found in the httpsession where they should have been. Memory 
usage on the servers was much higher than it had been and performance 
degraded badly. The situation got so bad that we had to bring the 
application down.

We then decided to re-examine the problems we'd had the previous night. 
We discovered that the issues with 4.0.5 had actually been code errors 
that were found by the 4.0.5 jsp compiler/engine but were ignored by 
4.1.24. For example,
   1. A semi colon placed after a page import in a JSP, compilation 
failure in 4.0, no error in 4.1
   2. Forwarding to a URL for a JSP page that did not exist, 
servletException in 4.0, no error in 4.1, which appeared to treat the 
non-existent page as null, which as it happens was the correct behaviour 
for our app but might not have been.
   3. Doing an Integer.parseInt on a String value taken from the http 
session. When the String is null get a NumberFormatException in 4.0 but 
no error in 4.1, which appeared to treat null as zero, which again was 
the corect behavior for our app but again might not have been.

After we fixed these problems we rolled back the live servers to 4.0.5 
and within ten minutes the application was happily handling over 1200 
concurent users with response times back to well below half a second.

Sorry if this has turned into something of an essay, but I have tried to 
include all information that might be relevant.

I would be very grateful for answers to the following questions.
   1. Why was 4.0.5 able to detect these errors while 4.1.24 ignored 
them, are they changes to the JSP / Servlet specs or are they bugs?
   2. Why was performance and stability so much worse with 4.1.24, have 
we missed some additional configuration changes that are required or is 
4.1 just worse than 4.0.
   3. Are these problems general to all versions of 4.1 or is 4.1.24 
just a bad release?

The Apache Tomcat pages advise users to upgrade to version 5, following 
our experiences trying to go to 

jk2 connector issue

2004-11-03 Thread Warren Sweetman
Hi,

I keep getting the following messages popping up in the win2k applications log with 
event id 2

- Error: [jk_worker_ajp13.c (546)]: ajp13.service() ajpGetReply recoverable error 
12
- Error: [jk_workerEnv.c (492)]: workerEnv.processCallbacks() Error reading reply
- Error: [jk_channel_apr_socket.c (488)]: channelApr.receive(): Error receiving 
message body -1 0


does anybody know the reason and how I can avoid these events occurring?

thank you

Warren



***
Disclaimer

This email (and any attachment(s)) is private and intended solely for the use of the 
individual or entity to whom they are addressed.  Its unauthorised use, disclosure, 
storage or copying is not permitted.  If you are not the intended recipient please 
destroy all copies and inform the sender by return e-mail.

Internet e-mail is not a secure medium, as messages can be intercepted and read by 
someone else.  Please bear this in mind when deciding whether to send information by 
e-mail.  Postal addresses for the Legal Services Commission are available from 
http://www.legalservices.gov.uk/about_us/offices.htm
 
The Legal Services Commission reserves the right to monitor, record and retain any 
incoming and outgoing emails for security reasons and for monitoring internal 
compliance with the Legal Services Commission policy on staff use.  Email monitoring 
and/or blocking software may be used and email content may be read.  You have a 
responsibility to ensure laws are not broken when writing or forwarding emails and 
their contents. No contracts can be entered into on our behalf by email.

Any views or opinions expressed are solely those of the author and do not necessarily 
represent those of the Legal Services Commission.

The Legal Services Commission checks all mails and attachments for known viruses; 
however, you are advised that you open any attachments at your own risk.
***


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



TOMCAT 5.0.2 CRASH Installation on NT4

2004-11-03 Thread Hauberoche, Patrick
Hi,

problem
When I configure TOMCAT as service on Window NT4 pack6, there is a crash on
Winnt file ! ! !. And when I configure Tomcat in the start menu, it works !

Do you know this problem ? is there a link if the NT is virtual ?

patrick


[OT] Using Tomcat certificate for signing applet

2004-11-03 Thread Antony Paul
Hi all,
   Can I use the same SSL certificate used by tomcat to sign an Applet ?

rgds
Antony Paul

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where can I get mod_jk2.dll

2004-11-03 Thread Srinivas Rao Ch
I tried downloading the binary distribution, I found only .so file. I want
mod_jk2 for windows for apache web server. How can I get it.

 

I tried compiling it from source, but I could not succeed. While building it
is looking for some apr_lib.h, which is not in the source distribution of
mod_jk2.

 

I downloaded mod_jk2 from some site. It is not working. Seems that it is not
treated as valid DLL.

 

I am using Tomcat5.0+Apache1.3.31_Windows2K.

 

I appreciate any help in this regard.

 

Regards,

Srinivas



Not a usual JK2 / IIS config question! Relates to localhost resolution/multiple IPs

2004-11-03 Thread Allistair Crossley
Hi All,

We are having trouble with the JK2 Connector with regards to a particular IIS web 
server. We have IIS 5 - JK2 - Tomcat 5.0.28 setup just fine on our developer local 
machines and internal intranet servers. In these situations the reference to 
localhost resolves perfectly ok to the default IIS website on port 80.

In the case of the external servers where we are trying to setup this IIS JK2 we are 
receiving Handle is invalid. However, on this server there are several observations

1. localhost does not resolve to port 80 but rather insists that only HTTPS should be 
used.

2. there are multiple IPs in play on this server.

3. JK2 debug logging reveals the following:

Debug: [jk_isapi_plugin.c (252)]: HttpFilterProc started
Debug: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host redirection of 
192.168.100.15 : 80
Debug: [jk_isapi_plugin.c (420)]: HttpFilterProc [/] is not a servlet url
Debug: [jk_isapi_plugin.c (429)]: HttpFilterProc check if [/] is pointing to the 
web-inf directory
Debug: [jk_isapi_plugin.c (252)]: HttpFilterProc started
Debug: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host redirection of 
192.168.100.15 : 443
Debug: [jk_isapi_plugin.c (420)]: HttpFilterProc [/] is not a servlet url
Debug: [jk_isapi_plugin.c (429)]: HttpFilterProc check if [/] is pointing to the 
web-inf directory

I should mention that the same workers2.properties is being used on this troubled 
configuration as on the working internal servers. There is not much going on 
either...just

# Setup the Windows application logging for the ISAPI filter
[logger.win32]
level=DEBUG

# Communication channel settings
[channel.socket:localhost:8009]
host=localhost
port=8009

# Shared Memory file settings
[shm]
file=c:/jakarta-tomcat-5.0.28/conf/jk2.shm
size=10

# Declare a Tomcat worker and assign it the above declared communication channel
[ajp13:localhost:8009]
channel=channel.socket:localhost:8009

# URI mappings for jsp-example web application context
# Requests for any web component (indicated by the wild card *) are dispatched to 
Tomcat
[uri:/jsp-examples/*]
info=Mapping for jsp-examples context of Tomcat

Your help/direction appreciated! ADC


FONT SIZE=1 FACE=VERDANA,ARIAL COLOR=BLUE 
---
QAS Ltd.
Developers of QuickAddress Software
a href=http://www.qas.com;www.qas.com/a
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---
/FONT


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Does Tomcat 5 users java.nio?

2004-11-03 Thread Shapira, Yoav

Hi,
Will's response is great.  I'll just add that the issue of using NIO in
Tomcat has been discussed numerous times on the tomcat-dev list with
quite a good amount of detail and debate.  There was consensus not to do
it every time.  However, the issue is still open for future
consideration, and may be done in the future.  With Tomcat 5.5 now
requiring JDK 1.4, it won't be a problem to rely on NIO in that and
future branches.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 8:33 PM
To: Tomcat Users List
Subject: Re: Does Tomcat 5 users java.nio?

 From: Vy Ho [EMAIL PROTECTED]
 Sent: Tuesday, November 02, 2004 3:03 PM

 I checked this document:

 http://www-106.ibm.com/developerworks/library/j-nioserver/

 and it talks about how wonderful new io could help server to serves
 higher number of connections and less error/drop connections.

 Is it true in practice?  Does Tomcat 5 uses new io of just io?  If
not,
 do they plan to move to this?

The dillema is that the Servlet Model as defined in the specification
doesn't work well in the kind of environment provided by NIO, so it's
difficult to say whether something that handled the semantics of a
Servlet
written using NIO would actually be any faster at all.

Now, technically, if one were so inclined, you could implement that
bits
that handle static content with Tomcat to, perhaps, use the nio model
and
maybe get a bonus for a pure Tomcat, yet static heavy, site. But since
most
folks simply Don't Do That (i.e. if they're distinguishing static
content
at
all, odds pretty good that they're fronting Tomcat with Apache
anyway...),
there's little motivation to engineer Tomcat to support NIO for simply
static content.

Servlets are pretty much thread based, being as they can perform
arbitrary
calculations. Also, Servlets can, technically, access the input and
output
streams of the request directly. Many servlets don't need that kind of
direct access. For example, most simply use the request headers and
parameters rather than the input stream itself.

NIO based servers are essentially event driven, with the sockets and IO
channels being a dominant source of the events. The NIO server
repeatedly
checks the two ends of a request (the source and the sink, for example,
the
input stream and server logic). When the source has data ready to read
and
the sink is ready to take data, the NIO server grabs a chunk from the
source
and feeds it to the sink, and then moves on to the other sources/sinks
within its queue.

The main thread of an NIO server can NOT block waiting for something to
come
ready, as it will stall the entire server (because none of the other
requests will get serviced). If you're simply moving data from disk to
a
socket, this works fine because OS's offer asynchronous IO calls and
make
available routines which an NIO server can use to see who's waiting
and
needs servicing.

But exposing that is it ready interface to arbitrary logic like that
within a servlet is difficult. If the code is very short, it's no
problem
at
all. The code is always ready and essentially returns immediately.
But if
it's doing anything more than that (say, contacting a database), then
things
get more ugly very quickly. The IO drivers of the system are
asynchronous
without directly using a user level mechanism like threads, so they're
asynchronous for free. But if you want user written logic to have an
asynchronous behavior, we typically turn to threads to provide that for
us.
But, the strength of the NIO model is that the requests it manages
within
its internal queue have simple state than a thread, and therefore
switch
from request to request is much cheaper (and therefor faster) than
using
the
JVMs thread scheduler to switch between threads.

But if the NIO server needs to spawn a thread to get asynchronous
behaviour
from an arbitrary Servlet, then most of the benefit of the NIO
architecture
is lost.

Servers can certainly be written this way. Servers can perform all of
the
things that a Servlet can provide. But the fine grained event model is
much
different than what the Servlet specification provides, and it would
also
require that all calls be basically event based, particularly calls to
things like DBs.\

Regards,

Will Hartung
([EMAIL PROTECTED])



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.



RE: relative uri in tomcat 5.0.28

2004-11-03 Thread Shapira, Yoav

Hi,
Don't worry about your English -- my Italian is worse [although I'm
trying] ;)

why this simple code in a jsp page:

form action=c:url value=deleteuser.jsp/ method=post

doesn't  return the relative URI??

(ROOT/dir/dir/deleteuser.jsp)

this code returns

ROOT/deleteuser.jsp

The latter IS a relative URL: it does not start with a slash.  I think
this behavior is correct (it matches
http://www-106.ibm.com/developerworks/java/library/j-jstl0318/) which
explains this tag quite well.

However, I'm not a JSTL expert, and this is a JSTL (not a Tomcat)
question. While there are some on this list, I'm sure, your time would
be well spent in also asking this question on a more JSTL-specific list.
Two that I can think of are
http://jakarta.apache.org/site/mail2.html#Taglibs and
https://jstl-spec-public.dev.java.net/.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet problem

2004-11-03 Thread Edouard Dalla-Costa
It is pretty easy, you just have to do 2 things:

First in the server.xml file, if you want to use another directory,
like myDirectory (at root of C or under linux /myDirectory), you have
to add this line at the end of the document logger .../ and /host:

Context path=/unitellie docBase=C:\myDirectory debug=3
privileged=true reloadable=true /

And Secondly, don't forget to create all the classical hierarchy of
subfolder in this directory, like C:\myDirectory\WEB-INF\classes and
C:\myDirectoryWEB-INF\lib. Then put your servlet.class in the class
directory and create your web.xml file that you have to put in the
WEB-INF folder. And it should be working.

I hope it would help you
Good luck
Doud

On Wed, 3 Nov 2004 00:50:30 -0800 (PST), JAY BHAGATWALA
[EMAIL PROTECTED] wrote:
 hello...all..
 i am new to tomcat and having trouble running servlet
 in tomcat.
 problem is as follows :
 
 i have developed one servlet program, if i put the
 program into the
 webapps\servlets-example\web-inf\classes then it works
 fine,
 
 but if i put the program in another directory like
 webapps\demo\web-inf\classes then it gives error that
 requested resource is not available.
 
  i am using tomcat 5.0, i have also tried to configure
 web.xml and server.xml files but i do not get success.
 
 plz, help me out as soon as possible... any type of
 suggestions, helps are welcomed...
 
 thanks,
 jay
 
 __
 Do you Yahoo!?
 Check out the new Yahoo! Front Page.
 www.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: jboss with tomcat

2004-11-03 Thread Shapira, Yoav

Hi,
Hmm, not trivial.  Start by validating your web.xml using a tool like
XMLSpy.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: B Wiley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 5:34 PM
To: [EMAIL PROTECTED]
Subject: jboss with tomcat

Hello, I've got tomcat embedded into jboss 2.2.5 .

I get some kind of mapping error when I go to
http://localhost:8080/web-console/ and the browser displays a 500
error.
What is causing this and where can I look to fix it?

[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
configuration
error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
  at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:280)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:180)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

  at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
  at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
  at java.lang.Thread.run(Unknown Source)

thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problems upgrading from version 4.0.5 to 4.1.24

2004-11-03 Thread Shapira, Yoav

Hi,

this is the first time I have posted to this or any other discussion
group. Apologies if I am not following correct protocol, hopefully
someone will correct me if that is the case.

Don't worry about it ;)  The posts that piss people off are ones like
URGENT MY SERVLET IS NOT WORKING!! PLEASE HELP BECAUSE MY BOSS SAYS
IT HAS TO WORK BY 30 MINUTES FROM NOW! ;)  Yours is just about the
opposite.

circumstances leave us no choice. This is a very heavily used
application, it has over 120,000 registered users and regularly handles
over 2,000 concurrent users.

That's impressive -- cool.

The Java heap size is set to a minimum of 512M and a max of 1024M.

That's pretty amazing, 1024 / 2000 = 0.51MB per user, very low per user
memory usage.

I would be very grateful for answers to the following questions.
1. Why was 4.0.5 able to detect these errors while 4.1.24 ignored
them, are they changes to the JSP / Servlet specs or are they bugs?

They are not changes to the Spec: Tomcat 4.0 and 4.1 implement the same
version of the Servlet (2.3) and JSP (1.1) specifications.  However,
generally speaking, the later the Tomcat version, the more rigorous the
spec implementation is.

2. Why was performance and stability so much worse with 4.1.24,
have
we missed some additional configuration changes that are required or is
4.1 just worse than 4.0.

My guess is that two things happened: one, your configuration was
incorrect or sub-optimal.  Numerous attribute names changed between 4.0
and 4.1, and so simply copying (or copy/pasting relevant sections)
server.xml is not that best approach.  The second thing is that you went
from using the old HTTP/1.1 connector to using the Coyote HTTP/1.1
connector.  The latter is the default for Tomcat 4.1 and later.  If you
want to stick with 4.1.24, you can still use the old HTTP/1.1 connector
by changing the className attribute of the Connector element(s) in
server.xml appropriately.

3. Are these problems general to all versions of 4.1 or is 4.1.24
just a bad release?

4.1.24 is not a terrible release, but by now it's fairly old.  There has
been work done and bugs fixed on the Tomcat 4.1 branch that are relevant
to Connector performance under load.  Therefore, if you're going to use
Tomcat 4.1, I suggest using the latest stable release, which is 4.1.31
-- a full seven releases' worth of fixes and improvements over 4.1.24.

The Apache Tomcat pages advise users to upgrade to version 5, following
our experiences trying to go to 4.1 we don't feel confident at all
about
trying to move to version 5.

That's like saying that when trading your 1993 car for a 1997 model you
ran into some problems, so you won't trade it in for a 2003 either.
It's your call obviously, and either way you should continue your unit,
functional, and when possible load testing, but you should definitely
upgrade to 5.x.  The stability and performance under load are improved.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where can I get mod_jk2.dll

2004-11-03 Thread Srinivas Rao Ch
I succeeded in building the mod_jk2 after copying the required files from
apache source distribution.

Now I am getting the following error message at console when I start my
apache.

.dll is garbled - perhaps this is not an apache module DSO?

Can somebody tell me what does this mean.

Regards,
Srinivas

-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 6:28 PM
To: [EMAIL PROTECTED]
Subject: Where can I get mod_jk2.dll

I tried downloading the binary distribution, I found only .so file. I want
mod_jk2 for windows for apache web server. How can I get it.

 

I tried compiling it from source, but I could not succeed. While building it
is looking for some apr_lib.h, which is not in the source distribution of
mod_jk2.

 

I downloaded mod_jk2 from some site. It is not working. Seems that it is not
treated as valid DLL.

 

I am using Tomcat5.0+Apache1.3.31_Windows2K.

 

I appreciate any help in this regard.

 

Regards,

Srinivas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



yoav, can u suggest something?

2004-11-03 Thread vaneet
Hello everyone,

yoav, i have been reading many posts on this user list and i see that u have been 
solving many problems for people. thats why i put subject is on you :) to ask 
suggestion / hint on this.

I have a domain name and i am using no-ip software to bind my IP address (my ISP 
provides dynamic IP ) so, i have redirected my domain name: http://www.export4u.co.uk 
to micsexport.servepics.com
now problem is:
when u visit http://www.export4u.co.uk
u click on contact us section.
If a user refreshes a page, it takes back the user to the home page which is index 
page.
I think it has to do with redirection as i am redirected

i researched and found something below:  

Can this be a problem ( can framesets be a problem in getting the home page again and 
again )

When I tried the URL the content
was served. This is what I got.

HTTP/1.1 200 OK
Date: Mon, 27 Sep 2004 13:33:15 GMT
Server: Apache/1.3.29 (Unix)
Transfer-Encoding: chunked
Content-Type: text/html

HTMLHEAD
META NAME=description content=
META NAME=keywords content=
TITLEwww. Export4U.co.uk/TITLE

/HEAD
FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0
FRAME SRC=http://micsexport.servepics.com/;; SCROLLING=AUTO NAME=bannerframe
 NORESIZE
/FRAMESET
NOFRAMES
www. Export4U.co.uk
P
DIV ALIGN=CENTERA HREF=http://micsexport.servepics.com/;http://export4u.c
o.uk//A/DIV
/NOFRAMES
/HTML

any help or suggestion will be appreciated.
Thankx again.

Vaneet


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



dirty words

2004-11-03 Thread vaneet
Hi,

I got the mail saying that i used 2 dirty words. 
Can someone from administrators of this list tell me which dirty words have i used ?

please do let me know 

read below for the message.


Trend SMEX Content Filter has detected sensitive content.

Place = [EMAIL PROTECTED]; ; ; Tomcat Users List
Sender = [EMAIL PROTECTED]
Subject = yoav, can u suggest something?
Delivery Time = November 03, 2004 (Wednesday) 10:08:44
Policy = Dirty Word 2
Action on this mail = Quarantine message

Warning message from administrator:
Sender, Content filter has detected an e-mail containing offensive words.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat 5 users java.nio?

2004-11-03 Thread Vy Ho
Thank you both for the information.  I see it very clear now.  I would 
like to add my opinion on this though.  For the case of serving static 
content, if performance gain is significant, it would be the right way 
to move to new io (just for static content portion).  The reason is 
this: as Tomcat gets more complete and widespread, the missing part is 
ease of use.  Having to install Apache and Tomcat obviously is not a 
convienient thing to do for many people, especially new users.  Learning 
both obviously a steeper learning curve than one of them. Also, 
maintaining them both just for static content does sound good.  So, 
besides providing a good graphical tool for configuration of Tomcat, 
adding this seems to be the right thing to do.  However, this is based 
on the assumption that moving to new io is an easy thing to switch over 
in Tomcat, and no other better alternative to improve this performance 
(except the alternative and this method both improve the performance 
greatly, then why not do both).

Shapira, Yoav wrote:
Hi,
Will's response is great.  I'll just add that the issue of using NIO in
Tomcat has been discussed numerous times on the tomcat-dev list with
quite a good amount of detail and debate.  There was consensus not to do
it every time.  However, the issue is still open for future
consideration, and may be done in the future.  With Tomcat 5.5 now
requiring JDK 1.4, it won't be a problem to rely on NIO in that and
future branches.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: Will Hartung [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 8:33 PM
To: Tomcat Users List
Subject: Re: Does Tomcat 5 users java.nio?
   

From: Vy Ho [EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 3:03 PM
 

I checked this document:
http://www-106.ibm.com/developerworks/library/j-nioserver/
and it talks about how wonderful new io could help server to serves
higher number of connections and less error/drop connections.
Is it true in practice?  Does Tomcat 5 uses new io of just io?  If
 

not,
 

do they plan to move to this?
 

The dillema is that the Servlet Model as defined in the specification
doesn't work well in the kind of environment provided by NIO, so it's
difficult to say whether something that handled the semantics of a
   

Servlet
 

written using NIO would actually be any faster at all.
Now, technically, if one were so inclined, you could implement that
   

bits
 

that handle static content with Tomcat to, perhaps, use the nio model
   

and
 

maybe get a bonus for a pure Tomcat, yet static heavy, site. But since
   

most
 

folks simply Don't Do That (i.e. if they're distinguishing static
   

content
 

at
all, odds pretty good that they're fronting Tomcat with Apache
   

anyway...),
 

there's little motivation to engineer Tomcat to support NIO for simply
static content.
Servlets are pretty much thread based, being as they can perform
   

arbitrary
 

calculations. Also, Servlets can, technically, access the input and
   

output
 

streams of the request directly. Many servlets don't need that kind of
direct access. For example, most simply use the request headers and
parameters rather than the input stream itself.
NIO based servers are essentially event driven, with the sockets and IO
channels being a dominant source of the events. The NIO server
   

repeatedly
 

checks the two ends of a request (the source and the sink, for example,
   

the
 

input stream and server logic). When the source has data ready to read
   

and
 

the sink is ready to take data, the NIO server grabs a chunk from the
source
and feeds it to the sink, and then moves on to the other sources/sinks
within its queue.
The main thread of an NIO server can NOT block waiting for something to
come
ready, as it will stall the entire server (because none of the other
requests will get serviced). If you're simply moving data from disk to
   

a
 

socket, this works fine because OS's offer asynchronous IO calls and
   

make
 

available routines which an NIO server can use to see who's waiting
   

and
 

needs servicing.
But exposing that is it ready interface to arbitrary logic like that
within a servlet is difficult. If the code is very short, it's no
   

problem
 

at
all. The code is always ready and essentially returns immediately.
   

But if
 

it's doing anything more than that (say, contacting a database), then
things
get more ugly very quickly. The IO drivers of the system are
   

asynchronous
 

without directly using a user level mechanism like threads, so they're
asynchronous for free. But if you want user written logic to have an
asynchronous behavior, we typically turn to threads to provide that for
   

us.
 

But, the strength of the NIO model is that the requests it manages
   

within
 

its internal queue have simple state than a thread, and therefore
   

switch
from request to request is much cheaper (and therefor faster) than
using
 

the

RE: dirty words

2004-11-03 Thread Srinivas Rao Ch
Two occurrences of http://mic-s-e-x-port/, I guess.

Regards,
Srinivas


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 8:42 PM
To: [EMAIL PROTECTED]
Subject: dirty words

Hi,

I got the mail saying that i used 2 dirty words. 
Can someone from administrators of this list tell me which dirty words have
i used ?

please do let me know 

read below for the message.


Trend SMEX Content Filter has detected sensitive content.

Place = [EMAIL PROTECTED]; ; ; Tomcat Users List
Sender = [EMAIL PROTECTED]
Subject = yoav, can u suggest something?
Delivery Time = November 03, 2004 (Wednesday) 10:08:44
Policy = Dirty Word 2
Action on this mail = Quarantine message

Warning message from administrator:
Sender, Content filter has detected an e-mail containing offensive words.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Where can I get mod_jk2.dll

2004-11-03 Thread Phillip Qin
You don't need .dll. Always use .so on Windows.

-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] 
Sent: November 3, 2004 9:56 AM
To: Tomcat Users List
Subject: RE: Where can I get mod_jk2.dll


I succeeded in building the mod_jk2 after copying the required files from
apache source distribution.

Now I am getting the following error message at console when I start my
apache.

.dll is garbled - perhaps this is not an apache module DSO?

Can somebody tell me what does this mean.

Regards,
Srinivas

-Original Message-
From: Srinivas Rao Ch [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 6:28 PM
To: [EMAIL PROTECTED]
Subject: Where can I get mod_jk2.dll

I tried downloading the binary distribution, I found only .so file. I want
mod_jk2 for windows for apache web server. How can I get it.

 

I tried compiling it from source, but I could not succeed. While building it
is looking for some apr_lib.h, which is not in the source distribution of
mod_jk2.

 

I downloaded mod_jk2 from some site. It is not working. Seems that it is not
treated as valid DLL.

 

I am using Tomcat5.0+Apache1.3.31_Windows2K.

 

I appreciate any help in this regard.

 

Regards,

Srinivas


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


!DSPAM:4188f38e216532098466354!


RE: dirty words

2004-11-03 Thread Shapira, Yoav

Hi,
This email you got is not generated by any person or program at Apache,
but rather somewhere along the way.  Ignore it.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 10:12 AM
To: [EMAIL PROTECTED]
Subject: dirty words

Hi,

I got the mail saying that i used 2 dirty words.
Can someone from administrators of this list tell me which dirty words
have
i used ?

please do let me know

read below for the message.


Trend SMEX Content Filter has detected sensitive content.

Place = [EMAIL PROTECTED]; ; ; Tomcat Users List
Sender = [EMAIL PROTECTED]
Subject = yoav, can u suggest something?
Delivery Time = November 03, 2004 (Wednesday) 10:08:44
Policy = Dirty Word 2
Action on this mail = Quarantine message

Warning message from administrator:
Sender, Content filter has detected an e-mail containing offensive
words.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: yoav, can u suggest something?

2004-11-03 Thread Shapira, Yoav

Hi,

yoav, i have been reading many posts on this user list and i see that u
have been solving many problems for people. thats why i put subject is
on
you :) to ask suggestion / hint on this.

So you can safely assume I've seen the three previous postings of your
problem, and I don't care to spend time on it.  Addressing the subject
to me won't make a difference, and I discourage you (and everyone else)
from addressing questions to specific people.  The greatest strength of
this mailing list is its big subscriber base with tons of good people.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Does Tomcat 5 users java.nio?

2004-11-03 Thread Shapira, Yoav

Hi,

content, if performance gain is significant, it would be the right way

That's a big if that I am far from convinced is true.

ease of use.  Having to install Apache and Tomcat obviously is not a

You don't have to, and in most cases the benefit is negligible.   Tomcat
standalone is sufficient for many servlet/JSP apps, including those with
high load and significant static content.

adding this seems to be the right thing to do.  However, this is based
on the assumption that moving to new io is an easy thing to switch over
in Tomcat, and no other better alternative to improve this performance
(except the alternative and this method both improve the performance
greatly, then why not do both).

Both those assumptions are wrong.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Does Tomcat 5 users java.nio?

2004-11-03 Thread Remy Maucherat
On Wed, 03 Nov 2004 10:25:48 -0500, Vy Ho [EMAIL PROTECTED] wrote:
 
 Thank you both for the information.  I see it very clear now.  I would
 like to add my opinion on this though.  For the case of serving static
 content, if performance gain is significant, it would be the right way
 to move to new io (just for static content portion).  The reason is
 this: as Tomcat gets more complete and widespread, the missing part is
 ease of use.  Having to install Apache and Tomcat obviously is not a
 convienient thing to do for many people, especially new users.  Learning
 both obviously a steeper learning curve than one of them. Also,
 maintaining them both just for static content does sound good.  So,
 besides providing a good graphical tool for configuration of Tomcat,
 adding this seems to be the right thing to do.  However, this is based
 on the assumption that moving to new io is an easy thing to switch over
 in Tomcat, and no other better alternative to improve this performance
 (except the alternative and this method both improve the performance
 greatly, then why not do both).

Static content has to be done in servlet-land as well, since filters
can be used.

If the site has a really huge amount of static content that may be
separated from servlet API contracts (security, custom filters, etc),
run a native webserver along with Tomcat. Note that static content is
quite fast in Tomcat, so this is only needed in case of a really large
load.

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: RE: dirty words

2004-11-03 Thread vaneet
hahha,
good one 
Good day
vaneet

---
Two occurrences of http://mic-s-e-x-port/, I guess.

Regards,
Srinivas


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 8:42 PM
To: [EMAIL PROTECTED]
Subject: dirty words

Hi,

I got the mail saying that i used 2 dirty words.
Can someone from administrators of this list tell me which dirty words have
i used ?

please do let me know

read below for the message.


Trend SMEX Content Filter has detected sensitive content.

Place = [EMAIL PROTECTED]; ; ; Tomcat Users List
Sender = [EMAIL PROTECTED]
Subject = yoav, can u suggest something?
Delivery Time = November 03, 2004 (Wednesday) 10:08:44
Policy = Dirty Word 2
Action on this mail = Quarantine message

Warning message from administrator:
Sender, Content filter has detected an e-mail containing offensive words.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: servlet problem

2004-11-03 Thread Wendy Smoak
From: JAY BHAGATWALA [EMAIL PROTECTED]
 i have developed one servlet program, if i put the
 program into the
 webapps\servlets-example\web-inf\classes then it works
 fine,
 but if i put the program in another directory like
 webapps\demo\web-inf\classes then it gives error that
 requested resource is not available.

There isn't enough information here to know for sure, but I wonder if it
works in the examples webapp because the Invoker Servlet is (still) enabled
there, while it is disabled by default everywhere else.  Note that I do not
use TC5, so I'm not sure this is the case.

If you still need help, post the working and non-working URLs, the exact
error message, and whatever you've done in web.xml (and server.xml, though
that usually does not have to be touched.)

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat bug?

2004-11-03 Thread Behrang Saeedzadeh
Hi Tim
Thanks for the reply. I just downloaded Tomcat 5.0.28 and tested my
sample page with that too and I'm still getting the same exception.
Be sure that you don't insert a newline after the /html line as
Tomcat can compile it with no problem. A simpler page that still throws
the same exception would be the following two-line JSP page:
html
/html
Best Regards,
Behrang S.
--
Using Opera's revolutionary e-mail client: http://www.opera.com/m2/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Does Tomcat 5 users java.nio?

2004-11-03 Thread Robert Koberg
Thanks for your excellent explanation!
This may stray off topic for tomcat, but I have been wondering how this 
(nio) would play out in XSL transformations in a servlet container.

Are you familiar with using custom URIResolvers [see below for an 
example scenario] in XSL transformations?

-- Briefly, you can assign a resolver to TransformerFactory which will 
resolve xsl:import/includes. Then you derive and cache a Templates 
object off of that, so nio might not give much advantage since building 
the Templates object grabs files once and it gets cached.

-- You can also set a resolver on the Transformer object (which is 
derived from the cached Templates object). The Transformer object is 
unique for each transformation and it resolves calls from the XSL 
document function.

We (an ASP content management system) use the Transformer resolver to 
gather (/aggregate/) content pieces and metadata files to be used in the 
transformation. In some case there can be large number of document() 
calls to gather XML files. I haven't had a chance to get into nio yet 
and was wondering if you (all) had opinions on this?

thanks,
-Rob
[example]
A source XML might look like:
regions
  region nameref=wideMiddle
content idref=piece1.xml/
content idref=piece2.xml/
  /region
/regions
An example XSL would look like:
!-- page wrapper stuff --
xsl:apply-templates select=/regions/region/content/
!-- page wrapper stuff --
xsl:template match=content mode=aggregator
  xsl:apply-templates select=document(@idref)/*/
/xsl:template
An example resolver might look like:
private static final String FNF = fnf/;
private Project project;
public TemplatesResolver(Project proj) {
  this.project = proj;
}
public Source resolve(String href, String base)
throws TransformerException {
  File file = this.project.getContentFile(href);
  if (file != null) {
return new StreamSource(file);
  } else {
return new StreamSource(new StringReader(FNF));
  }
}

Will Hartung wrote:
From: Vy Ho [EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 3:03 PM

I checked this document:
http://www-106.ibm.com/developerworks/library/j-nioserver/
and it talks about how wonderful new io could help server to serves
higher number of connections and less error/drop connections.
Is it true in practice?  Does Tomcat 5 uses new io of just io?  If not,
do they plan to move to this?

The dillema is that the Servlet Model as defined in the specification
doesn't work well in the kind of environment provided by NIO, so it's
difficult to say whether something that handled the semantics of a Servlet
written using NIO would actually be any faster at all.
Now, technically, if one were so inclined, you could implement that bits
that handle static content with Tomcat to, perhaps, use the nio model and
maybe get a bonus for a pure Tomcat, yet static heavy, site. But since most
folks simply Don't Do That (i.e. if they're distinguishing static content at
all, odds pretty good that they're fronting Tomcat with Apache anyway...),
there's little motivation to engineer Tomcat to support NIO for simply
static content.
Servlets are pretty much thread based, being as they can perform arbitrary
calculations. Also, Servlets can, technically, access the input and output
streams of the request directly. Many servlets don't need that kind of
direct access. For example, most simply use the request headers and
parameters rather than the input stream itself.
NIO based servers are essentially event driven, with the sockets and IO
channels being a dominant source of the events. The NIO server repeatedly
checks the two ends of a request (the source and the sink, for example, the
input stream and server logic). When the source has data ready to read and
the sink is ready to take data, the NIO server grabs a chunk from the source
and feeds it to the sink, and then moves on to the other sources/sinks
within its queue.
The main thread of an NIO server can NOT block waiting for something to come
ready, as it will stall the entire server (because none of the other
requests will get serviced). If you're simply moving data from disk to a
socket, this works fine because OS's offer asynchronous IO calls and make
available routines which an NIO server can use to see who's waiting and
needs servicing.
But exposing that is it ready interface to arbitrary logic like that
within a servlet is difficult. If the code is very short, it's no problem at
all. The code is always ready and essentially returns immediately. But if
it's doing anything more than that (say, contacting a database), then things
get more ugly very quickly. The IO drivers of the system are asynchronous
without directly using a user level mechanism like threads, so they're
asynchronous for free. But if you want user written logic to have an
asynchronous behavior, we typically turn to threads to provide that for us.
But, the strength of the NIO model is that the requests it manages within
its internal queue have simple state than a 

Re: Problems upgrading from version 4.0.5 to 4.1.24

2004-11-03 Thread Mike
Hi Yoav,
thanks very much for your reply.
My guess is that two things happened: one, your configuration was
incorrect or sub-optimal.  Numerous attribute names changed between 4.0
and 4.1, and so simply copying (or copy/pasting relevant sections)
server.xml is not that best approach.
I agree that our configuration is probably wrong. Can you, or anyone else, 
point me to advice on setting the 4.1 configuration for apps that have a 
high load?


I suggest using the latest stable release, which is 4.1.31
-- a full seven releases' worth of fixes and improvements over 4.1.24.
Thanks, we will try with 4.1.31

That's like saying that when trading your 1993 car for a 1997 model you
ran into some problems, so you won't trade it in for a 2003 either.
It's your call obviously, and either way you should continue your unit,
functional, and when possible load testing, but you should definitely
upgrade to 5.x.  The stability and performance under load are improved.
You're right, but you are saying is that newer is always better, which also 
may not always be the case. :)

Thanks again for your helpful reply.
Mike. 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: PureTLSImplementation

2004-11-03 Thread Eric Rotick
From looking at the source I say not.

The message is benign so what's the problem with it appearing in a
_debug_ log file?


On Wed, 3 Nov 2004 16:57:04 +0100 (CET), Giuseppe Briotti
[EMAIL PROTECTED] wrote:
 
  This only comes out when asking for detailed debug information
  and can be ignored.
 
  It arises when you use SSL and Tomcat tries to load one of two
  implementations. The first generally fails as the relevant jars
  are not available which is what you are seeing. The second
  implementation loads OK as this is JSSE and is part of the JDK.
 
 OK. But can I force Tomcat to search for JSSE before
 PureTSL?
 
 TIA
 
 G
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Odd JSP- Java Source filenames

2004-11-03 Thread Mike Curwen
Every so often (because hey, no one's perfect), I'll get a stacktrace during
development, and I've noticed something about the filenames being generated
for the JSP - java source.

If my jsp filename has an underscore in it, I get an extra 005f in the java
source filename.
 
exitSession.jsp - exitSession_jsp.java
exit_session.jsp - exit_005fsession_jsp.java

This didn't happen with TC4.1.31, but does happen with TC5.0.28
 
What's up with that? (Not that it matters, it all works... but is there a
reason?)



mike curwen
intermediate programmer
globally boundless

204 885-7733  ext 227
www.globallyboundless.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



mod_jk2 - problem with servlets

2004-11-03 Thread tomcat
Hello Im running tomcat5 with mod_jk2, apache 2 and RH FC01

Im having trouble getting servlets to work under mod_jk2 and shared
instance for virtual hosting.
It works fine with preview link context for the site:
http://ip:8080/domain.com/serlvet/helloworld  but with
domain.com/servlet/helloworld does not
work.

I uploaded the root contents for servlets-examples to the root of the site
(html folder which is also doc base). The WEB-INF in the dir is from the
servlets-examples. So when you go to domain.com the index.html from the
examples loads. But links to serlvet/servletname doesnt work.

Settings:

Tomcats entry for virtual host in server.xml:
Host name=domain1.com debug=0
appBase=/home/username/domain1.com/html
unpackWARs=true autoDeploy=true

Aliaswww.domain1.com/Alias

Valve className=org.apache.catalina.valves.AccessLogValve
 directory=/home/username/domain1.com/logs
prefix=tomcat5_log. suffix=.txt
 pattern=common resolveHosts=false/
/Host

Workers2.properties entry (JSPs work and html is routed to apache)

# DOMAIN1.COM
[uri:domain1.com:80/*.jsp]
group=TC5

[uri:www.domain1.com:80/*.jsp]
group=TC5

[uri:domain1.com:80/servlet/*]
group=TC5

[uri:www.domain1.com:80/servlet/*]
group=TC5


The http.conf file has document root as /home/username/domain1.com/html
and the locations for WEB-INF are included for security.

Any Ideas what I might be missing??  (remember it works when accessing via
port.)

Thanks!

John

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat bug?

2004-11-03 Thread Tim Funk
Ahh .. I see now. I filed a bug
-Tim
Behrang Saeedzadeh wrote:
Hi Tim
Thanks for the reply. I just downloaded Tomcat 5.0.28 and tested my
sample page with that too and I'm still getting the same exception.
Be sure that you don't insert a newline after the /html line as
Tomcat can compile it with no problem. A simpler page that still throws
the same exception would be the following two-line JSP page:
html
/html
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: jboss with tomcat

2004-11-03 Thread B Wiley
I should of re-worded my question. I'm just looking for the default setup 
to show me things in 2.4.4 that only exist in 3.x.x .
I figured out the version I am using 2.4.4 uses 
http://localhost:8082http://localhost:8082 to access the jmx agent . I 
don't even think it has a web-console. Thanks for the response.

At 05:57 AM 11/3/2004, you wrote:
Hi,
Hmm, not trivial.  Start by validating your web.xml using a tool like
XMLSpy.
Yoav Shapira http://www.yoavshapira.com
-Original Message-
From: B Wiley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 5:34 PM
To: [EMAIL PROTECTED]
Subject: jboss with tomcat

Hello, I've got tomcat embedded into jboss 2.2.5 .

I get some kind of mapping error when I go to
http://localhost:8080/web-console/ and the browser displays a 500
error.
What is causing this and where can I look to fix it?

[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
configuration
error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
  at
org.apache.catalina.valves.ErrorDispatcherValve.status(ErrorDispatche
rValve.java:280)
  at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatche
rValve.java:180)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
  at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:170)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:564)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

  at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:163)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline
.java:566)
  at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:472)
  at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

  at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcesso
r.java:1011)
  at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.ja
va:1106)
  at java.lang.Thread.run(Unknown Source)

thanks


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This e-mail, including any attachments, is a confidential business 
communication, and may contain information that is confidential, 
proprietary and/or privileged.  This e-mail is intended only for the 
individual(s) to whom it is addressed, and may not be saved, copied, 
printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your 
computer system and notify the sender.  Thank you.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Questions on loading servlet vs. loading JSP

2004-11-03 Thread John MccLain
Thank you for your reply, but after reading your message, I may be
proceeding down a rabbit hole.
I don't believe it is Tomcat that is the problem - I believe it is the
PowerBuilder interface code (PBNI .dll) that my JNI code is calling

Nevertheless, It is a simple form post action.

Thanks again!

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 11:19 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Questions on loading servlet vs. loading JSP



Hi,
As you know, a JSP is just a servlet after it's compiled.  A JSP call is
handled by the JSPServlet by default, which calls Jasper to evaluate
(and if necessary compile) the JSP into a .class file.  The request
processing and resource handling pipeline is otherwise identical.  As
the Tomcat source code is freely available to you (and anyone else),
feel free to confirm the above or just browse the code out of curiosity.

When you say servlets get called from JSP's -- what do you mean
exactly?  Is it an include, forward, or other RequestDispatcher-based
call?  Or is it a simple reference from an HTML page (in which case the
fact that the HTML page is generated by a JSP is irrelevant)?

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: John MccLain [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 1:50 PM
To: tomcat jasper list; Tomcat Dev List; Tomcat user list
Subject: Questions on loading servlet vs. loading JSP

I have a webapp.

In 2 servlets, I call JNI code.

When I call the servlets from a browser DIRECTLY, all is well and the
code
executes.

When the servlets get called from JSP's, the JNI code hangs.

I know I am cleaning up after myself in the JNI code

What is the difference in how Tomcat loads and processes a servlet call
versus a JSP call???

How can I debug/profile this to determine the problem???

John McClain
Senior Software Engineer
TCS Healthcare
[EMAIL PROTECTED]
(530)886-1700x235
Before you criticize someone, walk a mile in their shoes.
That way, you'll be a mile from them, and you'll have their shoes.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problem with starting Tomcat in service

2004-11-03 Thread Hauberoche, Patrick
Hi,

On NT4 pack6, I can not launch TOMCAT in service. Do you know why ?

patrick


Precompiling jsps in different directories does not produce right servlet mappings (jasper issue)

2004-11-03 Thread Shweta Agarwal
Hi all,
I have tried to google to find solution to my problem, but had no luck,
and thus I am writing to this list.
Also, I tried to search through archives and did not hit on any solution
yet.

I am using these two tasks (shown at the end of this email) in the ant
file with Tomcat version 4.1.31 for precompiling jsps.
I am using this because I want my jsps to be precompiled and also
because I want the web.xml file to 
be populated automatically with all the servlet mappings for the jsps.
 
It works fine for all the jsp files which are under the directory
${basedir}/web (one specified as uriroot for the jasper2 task).
But I have a jsp in directory as file
${basedir}/web/level1/level2/bookreg_error.jsp.  
For this jsp file, the class is built in the right hierarchy, 
the class file is in location
${basedir}/war/WEB-INF/classes/${app.name}/level1/level2/bookreg_error.c
lass. (which is what i expected)
But the servlet mapping is still as follows (which I did not expect) in
the generated_web.xml file.

 servlet
  servlet-namesic.bookreg_error_jsp/servlet-name
  servlet-classsic.bookreg_error_jsp/servlet-class
 /servlet
 
servlet-mapping
  servlet-namesic.bookreg_error_jsp/servlet-name
  url-pattern/bookreg_error.jsp/url-pattern
 /servlet-mapping

There is actually no class called sic.bookreg_error_jsp but only class
is sic.level1.level2.bookreg_error_jsp. 
Instead I was expecting the generated_web.xml file to have following
entry.
 
 servlet
  servlet-namesic.level1.level2.bookreg_error_jsp/servlet-name
  servlet-classsic.level1.level2.bookreg_error_jsp/servlet-class
 /servlet
 
servlet-mapping
  servlet-namesic.level1.level2.bookreg_error_jsp/servlet-name
  url-pattern/level1/level2/bookreg_error.jsp/url-pattern
 /servlet-mapping
 
Can somebody please help me here.  Normally, I think jsps should all be
in one directory.
Does this org.apache.jasper.JspC assume that all jsps should be only in
the uriroot level to create the servlet mappings.
Thanks in advance...
Shweta
 

XML snippet from my ant build file..
---
 
 
 target name=jspc 
 
taskdef classname=org.apache.jasper.JspC name=jasper2  
  classpath id=jspc.classpath 
pathelement location=${java.home}/../lib/tools.jar/ 
fileset dir=${tomcat.home}/server/lib 
  include name=*.jar/ 
/fileset 
fileset dir=${tomcat.home}/common/lib 
  include name=*.jar/ 
/fileset 
  pathelement location=${basedir}/WEB-INF/classes/  
  /classpath 
/taskdef 
 
jasper2 
 validateXml=false 
package=${app.name}
 uriroot=${basedir}/web 
 webXmlFragment=${basedir}/WEB-INF/generated_web.xml 
 outputDir=${basedir}/jsp_generated / 
 
 loadfile property=generated_web.xml 
  srcFile=${basedir}/WEB-INF/generated_web.xml / 
 
 replace file=${basedir}/WEB-INF/web.xml value=${generated_web.xml}

 token=lt;!-- GEN_JSP_TOKEN --gt;/ 
   
 delete file=${basedir}/WEB-INF/generated_web.xml /
 
javac srcdir=${basedir}/jsp_generated
destdir=${basedir}/war/WEB-INF/classes
include name=**/*.java/
classpath refid=classpath/
 /javac
 
  /target 
 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh Problem

2004-11-03 Thread Hassan Schroeder
[EMAIL PROTECTED] wrote:
Can this be a problem ( can framesets be a problem in getting the home page again and again )
Sheesh. I never even thought of that, but yes, that's your problem.
The markup below makes no sense, anyway -- two rows, one frame??
FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0
FRAME SRC=http://micsexport.servepics.com/; SCROLLING=AUTO NAME=bannerframe
 NORESIZE
/FRAMESET
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem with Tomcat 4.1 Charset

2004-11-03 Thread Mathias Payer
Hi List!

I've got a big problem to solve.

On a windows server I installed an acutal jsdk and tomcat 4.1.
Now I developed a jsp-Servlet that sets it's content-type to
application/pdf and only writes pdf-data out.

If I run this on my testserver with tomcat 4.0 (debian/linux) everything
runs fine and Internet Explorer is able to open the pdf.

But if I merge to the production server (tomcat 4.1/win 2k3) (- not my
choice :) ) and try to acces the exact same page I get a funny error!

Internet Explorer tells me to save the file to disc!

It took me a long time to figure out that the only difference is in the
headers!

= The Linux Machine wirtes: Content-Type: application/pdf
= The Windows Machine wirtes: C ontent-Type:
application/pdf;charset=ISO-8859-1

Because of this additional charset Internet Explorer is no longer able
to start the pdf-Viewer and display the file inline.

Attached are some snips from the code:

--SNIP--
//  response.setHeader(Content-disposition,inline;
filename=generated.pdf);   //  response.setHeader(Pragma,
no-cache);//  response.setHeader(Cache-Control, no-cache);
//  response.setHeader(Cache-Control,no-store );
//  response.setDateHeader(Expires, -1);
//  response.setHeader(Content-Type,application/pdf );
response.setContentType( application/pdf );
 --SNAP--
This shows some different options I tried - Somewhere on the web it was
mentioned that IE had problems with caches and so on... The second last
line resulted in two Content-Type headers, but I set the Content-Type
nowhere else in the JSP!

--SNIP--
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
...
// we output the writer as bytes to the response output
response.setContentLength(buffer.size());
ServletOutputStream output = response.getOutputStream();
buffer.writeTo(output);
output.flush();
--SNAP--
buffer is my byte-buffer where the raw pdf resides.

Can somebody help me how I can disable or suppress this charset-stuff?

Or if you have some ideas, just mention them!

Thanks in advance!
Greats
Mathias

-- 
Homepage: http://cgi.ethz.ch/~payerm/ GPG-Keys unter Privat/Kontakt


pgpQSLNH7t1uZ.pgp
Description: PGP signature


Re: Refresh Problem

2004-11-03 Thread Wendy Smoak
From: [EMAIL PROTECTED]
 Can this be a problem ( can framesets be a problem in getting the home
page again and again )
 FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0
 FRAME SRC=http://micsexport.servepics.com/; SCROLLING=AUTO
NAME=bannerframe
  NORESIZE
 /FRAMESET

Well.  So that's why the URL in the browser address line isn't changing!

I suspected frames, but I thought it would be the menus on the left in one
frame, and the content on the right in another one.

Why are you using a frameset with only one frame?!  Are you doing this
intentionally, or does it have to do with the dynamic ip address thing you
mentioned in your first message?

-- 
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



is it possible to go to https and return to http?

2004-11-03 Thread Acácio Furtado Costa
We need to use https  for authentication and in 1 or to 2 url´s in our application.

 

In other case we prefer to stay in http mode . To do this we need to redirect the 
connection to https and return to http . 

 

How can we do this?

 

 

Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
*(0xx31) 3368-1349
*  [EMAIL PROTECTED]

 



RE: Problem with Tomcat 4.1 Charset

2004-11-03 Thread Shapira, Yoav

Hi,
You're barking up the wrong (but only slightly wrong) tree.  Instead of
messing with the charset stuff, make sure to set a content-disposition
header on your response.  Google for it if you're not sure what it is:
it's simple and there are tons of examples online.  This is the only way
to ensure somewhat consistent behavior across browsers for this
use-case.

Yoav Shapira http://www.yoavshapira.com


-Original Message-
From: Mathias Payer [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 12:20 PM
To: [EMAIL PROTECTED]
Subject: Problem with Tomcat 4.1  Charset

Hi List!

I've got a big problem to solve.

On a windows server I installed an acutal jsdk and tomcat 4.1.
Now I developed a jsp-Servlet that sets it's content-type to
application/pdf and only writes pdf-data out.

If I run this on my testserver with tomcat 4.0 (debian/linux)
everything
runs fine and Internet Explorer is able to open the pdf.

But if I merge to the production server (tomcat 4.1/win 2k3) (- not my
choice :) ) and try to acces the exact same page I get a funny error!

Internet Explorer tells me to save the file to disc!

It took me a long time to figure out that the only difference is in the
headers!

= The Linux Machine wirtes: Content-Type: application/pdf
= The Windows Machine wirtes: C ontent-Type:
application/pdf;charset=ISO-8859-1

Because of this additional charset Internet Explorer is no longer able
to start the pdf-Viewer and display the file inline.

Attached are some snips from the code:

--SNIP--
   //  response.setHeader(Content-disposition,inline;
filename=generated.pdf);  //
response.setHeader(Pragma,
no-cache);   //  response.setHeader(Cache-Control, no-cache);
   //  response.setHeader(Cache-Control,no-store );
   //  response.setDateHeader(Expires, -1);
   //  response.setHeader(Content-Type,application/pdf );
   response.setContentType( application/pdf );
 --SNAP--
This shows some different options I tried - Somewhere on the web it
was
mentioned that IE had problems with caches and so on... The second last
line resulted in two Content-Type headers, but I set the Content-Type
nowhere else in the JSP!

--SNIP--
   ByteArrayOutputStream buffer = new ByteArrayOutputStream();
   ...
   // we output the writer as bytes to the response output
   response.setContentLength(buffer.size());
   ServletOutputStream output = response.getOutputStream();
   buffer.writeTo(output);
   output.flush();
--SNAP--
buffer is my byte-buffer where the raw pdf resides.

Can somebody help me how I can disable or suppress this charset-stuff?

Or if you have some ideas, just mention them!

Thanks in advance!
Greats
Mathias

--
Homepage: http://cgi.ethz.ch/~payerm/ GPG-Keys unter Privat/Kontakt



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with Tomcat 4.1 Charset

2004-11-03 Thread Mathias Payer
Hi Yoav,
thanks for your suggestion, but I already tried that!
(
esponse.setHeader(Content-disposition,inline;filename=generated.pdf
); )

But this does not work on all browsers!
On some IE Versions the adobe-plugin is loaded (you see the
splash-screen) and then the page remains white. No PDF and no adobe is
displayed!

So this does not work either!

But if I use content-disposition on the linux-server it works (as it
worked without content disposition)

I use the exact same files on the exact same data.

When I save the files look for the difference the only thing I find is
the additional charset= ... on the non working version.

Greats
Mathias

On Wed, 3 Nov 2004 12:34:28 -0500
Shapira, Yoav [EMAIL PROTECTED] wrote:

 
 Hi,
 You're barking up the wrong (but only slightly wrong) tree.  Instead
 of messing with the charset stuff, make sure to set a
 content-disposition header on your response.  Google for it if you're
 not sure what it is: it's simple and there are tons of examples
 online.  This is the only way to ensure somewhat consistent behavior
 across browsers for this use-case.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Mathias Payer [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, November 03, 2004 12:20 PM
 To: [EMAIL PROTECTED]
 Subject: Problem with Tomcat 4.1  Charset
 
 Hi List!
 
 I've got a big problem to solve.
 
 On a windows server I installed an acutal jsdk and tomcat 4.1.
 Now I developed a jsp-Servlet that sets it's content-type to
 application/pdf and only writes pdf-data out.
 
 If I run this on my testserver with tomcat 4.0 (debian/linux)
 everything
 runs fine and Internet Explorer is able to open the pdf.
 
 But if I merge to the production server (tomcat 4.1/win 2k3) (- not
 my choice :) ) and try to acces the exact same page I get a funny
 error!
 
 Internet Explorer tells me to save the file to disc!
 
 It took me a long time to figure out that the only difference is in
 the headers!
 
 = The Linux Machine wirtes: Content-Type: application/pdf
 = The Windows Machine wirtes: C ontent-Type:
 application/pdf;charset=ISO-8859-1
 
 Because of this additional charset Internet Explorer is no longer
 able to start the pdf-Viewer and display the file inline.
 
 Attached are some snips from the code:
 
 --SNIP--
  //  response.setHeader(Content-disposition,inline;
 filename=generated.pdf);//
 response.setHeader(Pragma,
 no-cache); //  response.setHeader(Cache-Control, no-cache);
  //  response.setHeader(Cache-Control,no-store );
  //  response.setDateHeader(Expires, -1);
  //  response.setHeader(Content-Type,application/pdf );
  response.setContentType( application/pdf );
  --SNAP--
 This shows some different options I tried - Somewhere on the web it
 was
 mentioned that IE had problems with caches and so on... The second
 last line resulted in two Content-Type headers, but I set the
 Content-Type nowhere else in the JSP!
 
 --SNIP--
  ByteArrayOutputStream buffer = new ByteArrayOutputStream();
  ...
  // we output the writer as bytes to the response output
  response.setContentLength(buffer.size());
  ServletOutputStream output = response.getOutputStream();
  buffer.writeTo(output);
  output.flush();
 --SNAP--
 buffer is my byte-buffer where the raw pdf resides.
 
 Can somebody help me how I can disable or suppress this
 charset-stuff?
 
 Or if you have some ideas, just mention them!
 
 Thanks in advance!
 Greats
 Mathias
 
 --
 Homepage: http://cgi.ethz.ch/~payerm/ GPG-Keys unter Privat/Kontakt
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is confidential,
 proprietary and/or privileged.  This e-mail is intended only for the
 individual(s) to whom it is addressed, and may not be saved, copied,
 printed, disclosed or used by anyone else.  If you are not the(an)
 intended recipient, please immediately delete this e-mail from your
 computer system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-- 
Homepage: http://cgi.ethz.ch/~payerm/ GPG-Keys unter Privat/Kontakt


pgpIhMJHHn4bx.pgp
Description: PGP signature


RE: Questions on loading servlet vs. loading JSP

2004-11-03 Thread Steve Kirk
I may be way off the mark here, but could this by any chance be related to
the JNI classloading issue raised by Benson last week could it?  You'll find
more details if you search the archive, but the basic jist of that was:

1. if you try to load the same JNI class using two different classloaders in
the same JVM, you will have problems
2. each webapap has its own classloader

so, any chance that your servlet and JSP are in different webapps?

does JSPServlet use a different classloader to load the compiled classes
than is used to load servlets in the same webapp?

 -Original Message-
 From: John MccLain [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday 03 November 2004 16:54
 To: Shapira, Yoav; Tomcat Users List
 Subject: RE: Questions on loading servlet vs. loading JSP
 
 
 Thank you for your reply, but after reading your message, I may be
 proceeding down a rabbit hole.
 I don't believe it is Tomcat that is the problem - I believe it is the
 PowerBuilder interface code (PBNI .dll) that my JNI code is calling
 
 Nevertheless, It is a simple form post action.
 
 Thanks again!
 
 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 02, 2004 11:19 AM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Questions on loading servlet vs. loading JSP
 
 
 
 Hi,
 As you know, a JSP is just a servlet after it's compiled.  A 
 JSP call is
 handled by the JSPServlet by default, which calls Jasper to evaluate
 (and if necessary compile) the JSP into a .class file.  The request
 processing and resource handling pipeline is otherwise identical.  As
 the Tomcat source code is freely available to you (and anyone else),
 feel free to confirm the above or just browse the code out of 
 curiosity.
 
 When you say servlets get called from JSP's -- what do you mean
 exactly?  Is it an include, forward, or other RequestDispatcher-based
 call?  Or is it a simple reference from an HTML page (in 
 which case the
 fact that the HTML page is generated by a JSP is irrelevant)?
 
 Yoav Shapira http://www.yoavshapira.com
 
 
 -Original Message-
 From: John MccLain [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, November 02, 2004 1:50 PM
 To: tomcat jasper list; Tomcat Dev List; Tomcat user list
 Subject: Questions on loading servlet vs. loading JSP
 
 I have a webapp.
 
 In 2 servlets, I call JNI code.
 
 When I call the servlets from a browser DIRECTLY, all is well and the
 code
 executes.
 
 When the servlets get called from JSP's, the JNI code hangs.
 
 I know I am cleaning up after myself in the JNI code
 
 What is the difference in how Tomcat loads and processes a 
 servlet call
 versus a JSP call???
 
 How can I debug/profile this to determine the problem???
 
 John McClain
 Senior Software Engineer
 TCS Healthcare
 [EMAIL PROTECTED]
 (530)886-1700x235
 Before you criticize someone, walk a mile in their shoes.
 That way, you'll be a mile from them, and you'll have their shoes.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential business
 communication, and may contain information that is 
 confidential, proprietary
 and/or privileged.  This e-mail is intended only for the 
 individual(s) to
 whom it is addressed, and may not be saved, copied, printed, 
 disclosed or
 used by anyone else.  If you are not the(an) intended 
 recipient, please
 immediately delete this e-mail from your computer system and 
 notify the
 sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: jboss with tomcat

2004-11-03 Thread Robert F. Hall
Howdy,
Or a tool like oXygen/ (stand-alone or Eclipse plug-in), 
http://www.oxygenxml.com
BTW, I think the OP meant JBoss 3.2.5.

-Robert
Shapira, Yoav wrote:
Hi,
Hmm, not trivial.  Start by validating your web.xml using a tool like
XMLSpy.
Yoav Shapira http://www.yoavshapira.com
 

-Original Message-
From: B Wiley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 02, 2004 5:34 PM
To: [EMAIL PROTECTED]
Subject: jboss with tomcat
Hello, I've got tomcat embedded into jboss 2.2.5 .
I get some kind of mapping error when I go to
http://localhost:8080/web-console/ and the browser displays a 500
   

error.
 

What is causing this and where can I look to fix it?
[INFO,EmbeddedCatalinaServiceSX] StandardHost[localhost]: MAPPING
configuration
error for request URI
[ERROR,EmbeddedCatalinaServiceSX] HttpProcessor[8080][4] process.invoke
java.lang.NullPointerException
   



Refresh Problem

2004-11-03 Thread vaneet
I am not using frames.
they are coming from either no-ip.com or from My domain name provider
http://www.oneandone.co.uk

I wrote them an email, no-ip customer support replied me to buy their no-ip plus 
software... 

i dont want to buy software just for refresh problem .. instead i better buy a 
dedicated ONE -IP :)

there must be a way to solve it.

Thankx hassan for ur help
Vaneet


---
From: [EMAIL PROTECTED]
 Can this be a problem ( can framesets be a problem in getting the home
page again and again )
 FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0
 FRAME SRC=http://micsexport.servepics.com/; SCROLLING=AUTO
NAME=bannerframe
  NORESIZE
 /FRAMESET

Well.  So that's why the URL in the browser address line isn't changing!

I suspected frames, but I thought it would be the menus on the left in one
frame, and the content on the right in another one.

Why are you using a frameset with only one frame?!  Are you doing this
intentionally, or does it have to do with the dynamic ip address thing you
mentioned in your first message?

--
Wendy Smoak


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Refresh Problem

2004-11-03 Thread vaneet
But Sir...

These framesets have been put on by no-ip.com OR
http://www.oneandone.co.uk (my DNS domain provider )

any suggestions

regards
vaneet

---
[EMAIL PROTECTED] wrote:

 Can this be a problem ( can framesets be a problem in getting the home page again 
 and again )

Sheesh. I never even thought of that, but yes, that's your problem.
The markup below makes no sense, anyway -- two rows, one frame??

 FRAMESET ROWS=100%,* BORDER=0 FRAMEBORDER=0
 FRAME SRC=http://micsexport.servepics.com/; SCROLLING=AUTO NAME=bannerframe
  NORESIZE
 /FRAMESET

--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com

   dream.  code.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Finding the log directory

2004-11-03 Thread Mark Claassen
Is there a container independent way to find the base directory.  I have
never tried to access CATALINA_HOME from the code before, but I am guessing
I can.  However, I was wondering if there was a better way to get the base
directory.  One I get here, I can designate a log directory for my app.

I am sorry if this is a repeat.  I found a similar question in the archive,
but the mail-archive indices were wrong at it was inaccessible.

Mark

Confidentiality Notice:  OCIESERVICE
-
The contents of this e-mail message and any attachments are intended 
solely for the addressee(s) named in this message. This communication 
is intended to be and to remain confidential.  If you are not the 
intended recipient of this message, or if this message has been 
addressed to you in error, please immediately alert the sender by 
reply e-mail and then delete this message and its attachments. Do not 
deliver, distribute, copy, disclose the contents or take any action 
in reliance upon the information contained in the communication or 
any attachments. 
-
Mark Claassen
Donnell Systems, Inc.
300 S. St. Louis Blvd. Ste. 203 
South Bend, IN 46617
E-mail: mailto:[EMAIL PROTECTED]
Voice: (574)232-3784
Fax: (574)232-4014
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Finding the log directory

2004-11-03 Thread Shapira, Yoav

Hi,

Is there a container independent way to find the base directory.  I
have
never tried to access CATALINA_HOME from the code before, but I am
guessing
I can.  However, I was wondering if there was a better way to get the
base
directory.  One I get here, I can designate a log directory for my app.

I am sorry if this is a repeat.  I found a similar question in the
archive,
but the mail-archive indices were wrong at it was inaccessible.

No, there isn't.  The whole concept of a container base directory is
container-specific, not regulated by the Servlet (or other J2EE)
specifications.  For many container installations, the container base
directory is not only completely separate from the webapps location, but
also not writeable by webapps (as a security precaution).

For Tomcat, you can use System.getProperty(catalina.base) and/or
System.getProperty(catalina.home).

Many times, server administrators would not want you logging anywhere
under the server base directory.  Rather, they'd prefer you log to an
external or central logging repository.  This is a good reason to expose
a configuration logging directory property (in your config files, via a
JNDI env-entry, or via a system property, up to you) so that your server
admin can set up the application logging the way he/she wants.

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Building isapi_redirector2.dll Win32 Release

2004-11-03 Thread Derrick Koes

I pulled the latest from CVS yesterday (11/02/04) and I think I have all
the dependencies that I know of set up correctly, but the isapi Win32
Release still has errors.
I'm not really certain what to do next.  I want the file upload fix (~
04/09/04) which is not available in the latest released dll (2.0.4 --
03/26/04).

I *may* be able to fix some of the errors with jk_isapi_plugin.c myself,
but does anyone know where pcre.h exists?  Yes, I know about M. Turk's
dll http://jakarta.apache.org/~mturk/, but I'd like to be able to build
the fix myself.

Any assistance is appreciated.  Below is the build out from building
with MS Dev Studio Visual C++ 6.0 SP6.



Configuration: isapi - Win32
Release
Creating resources from ..\..\common\jk_logger_win32_message.mc
MC: Compiling ..\..\common\jk_logger_win32_message.mc
Compiling resources...
Compiling...
jk_channel.c
jk_channel_apr_socket.c
jk_channel_jni.c
jk_channel_un.c
jk_config.c
jk_config_file.c
jk_endpoint.c
jk_env.c
jk_handler_logon.c
jk_handler_response.c
jk_iis_thread_pool.c
jk_isapi_plugin.c
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(160) : error C2065:
'SF_NOTIFY_AUTH_COMPLETE' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(160) : warning C4018: '==' :
signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(229) : warning C4018: '==' :
signed/unsigned mismatch
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(231) : error C2065:
'PHTTP_FILTER_AUTH_COMPLETE_INFO' : undeclared identifier
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(231) : error C2146: syntax error : missing
')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(231) : warning C4047: '=' : 'int (__stdcall
*)(struct _HTTP_FILTER_CONTEXT *,char *,void *,unsigned long *)' differs
in levels of indirection from '
int '
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(231) : error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(234) : error C2146: syntax error : missing
')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(234) : warning C4047: '=' : 'int (__stdcall
*)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of
indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(234) : error C2059: syntax error : ')'
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(237) : error C2146: syntax error : missing
')' before identifier 'pvNotification'
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(237) : warning C4047: '=' : 'int (__stdcall
*)(struct _HTTP_FILTER_CONTEXT *,char *,char *)' differs in levels of
indirection from 'int '
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\se
rver\isapi\jk_isapi_plugin.c(237) : error C2059: syntax error : ')'
jk_jni_aprImpl.c
jk_logger_file.c
jk_logger_win32.c
jk_map.c
jk_md5.c
jk_msg_ajp.c
jk_mutex.c
jk_mutex_proc.c
jk_mutex_thread.c
jk_nwmain.c
jk_objCache.c
jk_pool_apr.c
jk_registry.c
jk_requtil.c
jk_service_iis.c
jk_shm.c
jk_signal.c
jk_uriEnv.c
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\co
mmon\jk_uriEnv.c(35) : fatal error C1083: Cannot open include file:
'pcre.h': No such file or directory
jk_uriMap.c
C:\cvs\jakarta-tomcat-connectors\jakarta-tomcat-connectors\jk\native2\co
mmon\jk_uriMap.c(42) : fatal error C1083: Cannot open include file:
'pcre.h': No such file or directory
jk_user.c
jk_vm_default.c
jk_worker_ajp13.c
jk_worker_jni.c
jk_worker_lb.c
jk_worker_run.c
jk_worker_status.c
jk_workerEnv.c
Error executing cl.exe.

isapi_redirector2.dll - 10 error(s), 9 warning(s)



ContactInfo
  NameDerrick Koes/Name
  TitleSenior Software Engineer/Title
  Company name=SkillSoft
url=http://www.skillsoft.com/
  AIMcodeauthor2001/AIM
  Email[EMAIL PROTECTED]/Email
  Phone(603) 305-1753/Phone
  Fax/
  Quote attributedTo=YodaNo, try not, do
or do not, there is no try./Quote
/ContactInfo


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



a very wried thing about tomcat 5?

2004-11-03 Thread Xin Du
Hi guys, found a very wired thing about tomcat...
Basically, in my tomcat 4 servlet enginee,  I have a  program uses 
javascript encodeURI(myparam) before submmit the form to my servlet. And, if 
i printout request parameter in my servlet, it is encoded correctly. 
However, after I upgrade to tomcat 5.0.27, the parameter is becoming 
gabarge I found i have to manullay construct a utf-8 string based on 
getParameter() value).

Any body knows why it is just working fine in tomcat4 , and i have to do 
some workaround to get it working in tomcat5? Is there any configuration I m 
missing, or is it a bug introduced at tomcat5??

TIA
_
Express yourself instantly with MSN Messenger! Download today - it's FREE! 
hthttp://messenger.msn.click-url.com/go/onm00200471ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


disablng cookie session tracking in 5.0

2004-11-03 Thread shelsing
Hi,

I am using Tomcat 5.0 and I am rewriting the URL's with encodeURL, but my 
session listener tells me that a new session is being created with every page 
request, although the user's session is persistent across page requests. The 
application is running in a cross-domain frameset, so I think disabling the 
cookies might solve this problem. 

I heard I could disable cookies in the conext.xml

I have named the file context.xml and placed it in this folder:
D:\Program Files\Apache Software Foundation\Tomcat 5.0\webapps\ROOT\WEB-INF

with this code in the file:
?xml version=1.0 encoding=UTF-8?
Context path=/ docBase=ROOT debug=0 cookies= false
/Context

Is this correct and how will I know if cookie tracking is disabled? New 
sessions are still being created with every page request.

Thanks,
Steve

-- 

-- 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



[OT] Re: Refresh Problem

2004-11-03 Thread Edward Barrow
On Wednesday 3 November 2004 18:29, [EMAIL PROTECTED] wrote:
 I am not using frames.
 they are coming from either no-ip.com or from My domain name provider
 http://www.oneandone.co.uk

 I wrote them an email, no-ip customer support replied me to buy their no-ip
 plus software...

 i dont want to buy software just for refresh problem .. instead i better
 buy a dedicated ONE -IP :)

 there must be a way to solve it.


if you are in the UK and on DSL there are a number of ISPs who provide static 
IP services without port blocking at no significant premium. But even if you 
are on a dynamic IP, with a DSL router it will only change when you reboot 
your router (and it often stays the same then). 

But the frames could also come from the web-forwarding method used by your ISP 
- you may be able to change it from their control page.


-- 
Edward Barrow

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Finding the log directory

2004-11-03 Thread Mark Claassen
Thanks for your help.

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, November 03, 2004 1:57 PM
 To: Tomcat Users List
 Subject: RE: Finding the log directory
 
 
 
 Hi,
 
 Is there a container independent way to find the base directory.  I
 have
 never tried to access CATALINA_HOME from the code before, but I am
 guessing
 I can.  However, I was wondering if there was a better way to get the
 base
 directory.  One I get here, I can designate a log directory 
 for my app.
 
 I am sorry if this is a repeat.  I found a similar question in the
 archive,
 but the mail-archive indices were wrong at it was inaccessible.
 
 No, there isn't.  The whole concept of a container base 
 directory is container-specific, not regulated by the Servlet 
 (or other J2EE) specifications.  For many container 
 installations, the container base directory is not only 
 completely separate from the webapps location, but also not 
 writeable by webapps (as a security precaution).
 
 For Tomcat, you can use System.getProperty(catalina.base) 
 and/or System.getProperty(catalina.home).
 
 Many times, server administrators would not want you logging 
 anywhere under the server base directory.  Rather, they'd 
 prefer you log to an external or central logging repository.  
 This is a good reason to expose a configuration logging 
 directory property (in your config files, via a JNDI 
 env-entry, or via a system property, up to you) so that your 
 server admin can set up the application logging the way he/she wants.
 
 Yoav
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Refresh Problem

2004-11-03 Thread Hassan Schroeder
[EMAIL PROTECTED] wrote:
These framesets have been put on by no-ip.com OR
http://www.oneandone.co.uk (my DNS domain provider )
any suggestions
Yes,
1/ don't post any more about this to the list, since it has nothing
   to do with Tomcat, and
2/ find a real hosting solution :-)
Good luck!
--
Hassan Schroeder - [EMAIL PROTECTED]
Webtuitive Design ===  (+1) 408-938-0567   === http://webtuitive.com
  dream.  code.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: context.xml deployed as folder in Tomcat 5

2004-11-03 Thread Steve Kirk

yes I experienced this exact problem in 5.0.27, and simply upgrading to
5.0.28 fixed it.

 -Original Message-
 From: Peter Rossbach [mailto:[EMAIL PROTECTED] 
 Sent: Monday 01 November 2004 07:50
 To: Tomcat Users List
 Subject: Re: context.xml deployed as folder in Tomcat 5
 
 
 It is fixed with version 5.0.28.
 
 Peter
 
 Woodchuck schrieb:
 
 it's version 5.0.27 
 
 is there a way i can tell whether it's patched with this fix or not?
 
 
 --- QM [EMAIL PROTECTED] wrote:
 
   
 
 On Sat, Oct 30, 2004 at 01:48:00PM -0700, Woodchuck wrote:
 : i put a context.xml file into my META-INF folder and created a war
 : file.  then i dropped the war file in to the webapps folder.  but
 : whenever TC5 auto deploys my war file, it creates a myapp.xml
 folder
 : in the $CATALINA_HOME/conf/Catalina/localhost folder.
 
 Which version of Tomcat 5?  This is a bug that was fixed in
 v5.0.20-something, I believe.  I don't have the exact Bugzilla ID
 handy
 but there's a class patch there if you don't want to do a full
 upgrade.
 
 -QM
 
 
 -- 
 
 software  -- http://www.brandxdev.net
 tech news -- http://www.RoarNetworX.com
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
 
  
 ___
 Do you Yahoo!?
 Express yourself with Y! Messenger! Free. Download now. 
 http://messenger.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
   
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Re: Refresh Problem

2004-11-03 Thread vaneet
Dear Edward,

Thank you very very much for suggestions

I think i will find something out of these.

My ISP is www.onvol.net

and i am in malta. Will try to ask them. Normally , they dont co-operate. lets see.

regards and thankx

Vaneet



---
On Wednesday 3 November 2004 18:29, [EMAIL PROTECTED] wrote:
 I am not using frames.
 they are coming from either no-ip.com or from My domain name provider
 http://www.oneandone.co.uk

 I wrote them an email, no-ip customer support replied me to buy their no-ip
 plus software...

 i dont want to buy software just for refresh problem .. instead i better
 buy a dedicated ONE -IP :)

 there must be a way to solve it.


if you are in the UK and on DSL there are a number of ISPs who provide static
IP services without port blocking at no significant premium. But even if you
are on a dynamic IP, with a DSL router it will only change when you reboot
your router (and it often stays the same then).

But the frames could also come from the web-forwarding method used by your ISP
- you may be able to change it from their control page.


--
Edward Barrow

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: deploy war file

2004-11-03 Thread Steve Kirk
do you have a context.xml in the war file or the webapps folder?  See
comments re context xml files in 4th para in page below - the para beginning
In addition to nesting Context elements inside a Host element  
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html 

 -Original Message-
 From: Scott Purcell [mailto:[EMAIL PROTECTED] 
 Sent: Monday 01 November 2004 19:42
 To: [EMAIL PROTECTED]
 Subject: deploy war file
 
 
 Hello,
  
 I am using Tomcat 4.1 on Win2000. I have a web application 
 that has been running for a while that has an entry in the 
 server.xml file for reloading etc.
 Anyway, I am beginning to create a .
 warfileforthecode,usingant.Ihave read the docs, and it seems 
 easy that one should put the .war file under the webapps 
 directory and restart the server. I do this, but get no luck. 
 The war file is good, I can extract the components from it, 
 and the path structure is good.
  
 Am I missing a step?
  
 Here is the server.xml for info:
  Context path=/merchant docBase=merchant debug=0 
 reloadable=true /
 and
 !-- Define the default virtual host --
   Host name=localhost debug=0 appBase=webapps 
unpackWARs=true autoDeploy=true
  
 So it looks like the server is configured to extract the 
 merchant.war file?
  
 Thanks,
 Scott
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Huge tomcat memory footprint

2004-11-03 Thread Anand Narasimhan
Thanks for the reply. 

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 02, 2004 5:49 AM
 To: Tomcat Users List
 Subject: RE: Huge tomcat memory footprint
 
 
 Hi,
 Yup, upgrade the JDK if you can, that's a bad version.  
 Struts 1.0.2 is also fairly ancient, you'll gain if you 
 update that as well.


I have upgraded the JDK version to 1.4.2_06 and ran some small test cases.
But I don't see a significant change. 


 
 The heap is not the only memory consumer in a given JVM.  
 There's the stack, symbol tables, various lookup tables, etc. 
  As you load classes at runtime some of these areas grow in 
 consumption.  That's normal and expected.  
 
 Then there's the OS-level memory, which is different and 
 always larger than the JVM itself.  That's why top is a 
 sub-optimal (unless you really know what you're doing) 
 indicator of JVM memory usage.  The OS-level memory includes 
 other data such as paging and thread management information, 
 in addition to anything and everything used by the JVM.  As 
 the JVM itself grows, so will the OS-level memory consumption.



I understand that the process size will be a lot larger than the JVM itself.
But in this case the size keeps growing. At one stage I saw that the size
reported by top, pmap and pmem commands was about 2.5G. Is this normal. I
have 1G RAM on my system. If the process virtual memory keeps growing,
doesn't the OS needs to do frequent paging and hence affect the performance
of the system?


 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 01, 2004 5:26 PM
 To: [EMAIL PROTECTED]
 Subject: Huge tomcat memory footprint
 
 Hi,
 
 I am not able to determine if the problem is related to 
 tomcat, solaris
 or
 the application itself. Any help/pointers to debug the 
 problem will be 
 greatly appreciated.
 
 The application runs on Solaris 2.8 using Sun's Java version 
 1.4.1_02.
 The
 tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts
 1.0.2.
 The database is Oracle version 8.x (I think). The 
 application also has
 API
 interface written using Java/XML/Soap etc. The application is
 memory/CPU
 intensive.  The problem I am having is,  after running under a large
 load,
 tomcat process's memory footprint (reported by top command) 
 increases 
 rapidly to more that 2G. The heap size (max configured to 1G),
 increases to
 about 500 - 600M. I have tried running tomcat with 
 optimizeit to see if 
 there are any memory leaks. optimizeit as wells as the 
 output from GC 
 (running with -verbose:gc, -XX+PrintGCDetails) shows 
 frequent garbage 
 collection activity and the heap size does not grow too much.
 
 I am not able to figure out why the process memory grows. If the heap
 is
 not
 growing too much, what is consuming the memory?
 
 Thanks
 Anand
 
 _
 
 Anand Narasimhan
 [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Huge tomcat memory footprint

2004-11-03 Thread Anand Narasimhan
If there is a memory leak in our application, tomcat or java, what are the
symptoms I should look for. 
Will the heap usage (shown by visual GC, optimizeit etc) keep growing and
eventually reach the max limit set using -Xmx option to java?

Thanks
Anand


 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 02, 2004 5:49 AM
 To: Tomcat Users List
 Subject: RE: Huge tomcat memory footprint
 
 
 Hi,
 Yup, upgrade the JDK if you can, that's a bad version.  
 Struts 1.0.2 is also fairly ancient, you'll gain if you 
 update that as well.
 
 The heap is not the only memory consumer in a given JVM.  
 There's the stack, symbol tables, various lookup tables, etc. 
  As you load classes at runtime some of these areas grow in 
 consumption.  That's normal and expected.  
 
 Then there's the OS-level memory, which is different and 
 always larger than the JVM itself.  That's why top is a 
 sub-optimal (unless you really know what you're doing) 
 indicator of JVM memory usage.  The OS-level memory includes 
 other data such as paging and thread management information, 
 in addition to anything and everything used by the JVM.  As 
 the JVM itself grows, so will the OS-level memory consumption.
 
 Yoav Shapira http://www.yoavshapira.com
  
 
 -Original Message-
 From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
 Sent: Monday, November 01, 2004 5:26 PM
 To: [EMAIL PROTECTED]
 Subject: Huge tomcat memory footprint
 
 Hi,
 
 I am not able to determine if the problem is related to 
 tomcat, solaris
 or
 the application itself. Any help/pointers to debug the 
 problem will be 
 greatly appreciated.
 
 The application runs on Solaris 2.8 using Sun's Java version 
 1.4.1_02.
 The
 tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts
 1.0.2.
 The database is Oracle version 8.x (I think). The 
 application also has
 API
 interface written using Java/XML/Soap etc. The application is
 memory/CPU
 intensive.  The problem I am having is,  after running under a large
 load,
 tomcat process's memory footprint (reported by top command) 
 increases 
 rapidly to more that 2G. The heap size (max configured to 1G),
 increases to
 about 500 - 600M. I have tried running tomcat with 
 optimizeit to see if 
 there are any memory leaks. optimizeit as wells as the 
 output from GC 
 (running with -verbose:gc, -XX+PrintGCDetails) shows 
 frequent garbage 
 collection activity and the heap size does not grow too much.
 
 I am not able to figure out why the process memory grows. If the heap
 is
 not
 growing too much, what is consuming the memory?
 
 Thanks
 Anand
 
 _
 
 Anand Narasimhan
 [EMAIL PROTECTED]
 
 
 
 
 This e-mail, including any attachments, is a confidential 
 business communication, and may contain information that is 
 confidential, proprietary and/or privileged.  This e-mail is 
 intended only for the individual(s) to whom it is addressed, 
 and may not be saved, copied, printed, disclosed or used by 
 anyone else.  If you are not the(an) intended recipient, 
 please immediately delete this e-mail from your computer 
 system and notify the sender.  Thank you.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: is it possible to go to https and return to http?

2004-11-03 Thread Derek Clarkson

Hi,
Our site drops in and out of secure mode to do credit card transactions. We
have a single instance of tomcat sitting behind an apache server. We have
two virtual apache servers listed which talk to this tomcat. One os
non-secure which takes the bulk of the action, and the other is setup as
secure. When we want to take a user to secure, the next document is simple
linked as a https connection rather than http. As the secure server is
listening on the 443 port it picks it up instead of the non-secure one.

The only issue we encountered when doing this is that when this happens it
starts a new session. So anything stored in the http session (shopping
basket) cannot been seen. The original designers of the system got arround
this by using an RMI server and transfering objects through it to the new
session. To say this was complicated and error prone would be an
understatement. Recently we ripped this out and added the ID of the http
session as a parameter to the urls going into the secure instance. By doing
this, the Tomcat automatically looked for and reconnected to the orginal
session. Thus allowing us to keep things simple and remove a lot of bug
ridden code.

Hope this helps.

Regards,
Derek Clarkson
Global Applications
Lonely Planet Publications
ph: (03) 8379-8000 x8041
It's not a bug - it's an undocumented feature!

-Original Message-
From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED]
Sent: Thursday, 4 November 2004 4:32 AM
To: [EMAIL PROTECTED]
Subject: is it possible to go to https and return to http?

We need to use https  for authentication and in 1 or to 2 url´s in our
application.



In other case we prefer to stay in http mode . To do this we need to
redirect the connection to https and return to http .



How can we do this?





Acacio Furtado Costa
Pesquisa e Tecnologia

GIA - Magnesita S/A
*(0xx31) 3368-1349
*  [EMAIL PROTECTED]





__
This email, including attachments, is intended only for the addressee
and may be confidential, privileged and subject to copyright.  If you
have received this email in error, please advise the sender and delete
it.  If you are not the intended recipient of this email, you must not
use, copy or disclose its content to anyone.  You must not copy or
communicate to others content that is confidential or subject to
copyright, unless you have the consent of the content owner.

Re: Huge tomcat memory footprint

2004-11-03 Thread Andrew Miehs
Hi Anand,

We currently have a similar problem. Under load the JVM consumes more and more 
memory. (We are using tomcat 5.0 and Sun JVM 1.4.2 and linux (debian sarge))

In our case it looks as if the Garbage Collector is not getting enough time to 
free memory - but this is still very much a guess. You may want to have a 
look in this direction however.

We are currently looking at see what setting we can tune for the GC or maybe 
using a different JVM.

Good luck,

Andrew

  -Original Message-
  From: Anand Narasimhan [mailto:[EMAIL PROTECTED]
  Sent: Monday, November 01, 2004 5:26 PM
  To: [EMAIL PROTECTED]
  Subject: Huge tomcat memory footprint
  
  Hi,
  
  I am not able to determine if the problem is related to
 
  tomcat, solaris
  or
 
  the application itself. Any help/pointers to debug the
 
  problem will be
 
  greatly appreciated.
  
  The application runs on Solaris 2.8 using Sun's Java version
 
  1.4.1_02.
  The
 
  tomcat version is 4.1.27. The GUI is written using HTML/JSP/Struts
 
  1.0.2.
 
  The database is Oracle version 8.x (I think). The
 
  application also has
  API
 
  interface written using Java/XML/Soap etc. The application is
 
  memory/CPU
 
  intensive.  The problem I am having is,  after running under a large
 
  load,
 
  tomcat process's memory footprint (reported by top command)
 
  increases
 
  rapidly to more that 2G. The heap size (max configured to 1G),
 
  increases to
 
  about 500 - 600M. I have tried running tomcat with
 
  optimizeit to see if
 
  there are any memory leaks. optimizeit as wells as the
 
  output from GC
 
  (running with -verbose:gc, -XX+PrintGCDetails) shows
 
  frequent garbage
 
  collection activity and the heap size does not grow too much.
  
  I am not able to figure out why the process memory grows. If the heap
 
  is
 
  not
  growing too much, what is consuming the memory?
  

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



buil error: endorsed not found

2004-11-03 Thread Rachel Knickmeyer
I've just started using tomcat.  I'm playing with some simple jsp pages
and a single simple java class in order to work out how things go.
But, I can't seem to get over the following error that happens everytime
I try to compile.   It only happens when I have a java class to compile,
the jsp pages by themselves work fine.  Somehow, a few slashes seem to
be missing, but I've no clue why.

 

Any help would be greatly appreciated!

 

BUILD FAILED

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\tutprual\build.xml:285: C:\Program FilesApaches Software
FoundationTomcat5.5\common\endorsed not found.

 

The line it points to in the xml is: javac srcdir=${src.home}

  destdir=${build.home}/WEB-INF/classes

 

Thanks in advance!

 

-Rachel Knickmeyer

 



Address already in use:JVM_BIND:8080

2004-11-03 Thread Harry Douglass, Jr.
Hello, 

 

 

 

I am trying to install Apache Tomcat to run JSP and servlets for the first
time.  When I type in this URL 'http://localhost:8080/' Windows XP prompts
me for a username and password.  I typed in both the username 'admin' and
blank password and a custom username and password when I installed it and I
get an Unauthorized web page returned.

 

 

 

When I try running Tomcat from the DOS prompt by typing 'tomcat start', I
see the SEVERE Error message: Address already in use:JVM_BIND:8080.  I know
I am running IIS, but I want to keep the same port it runs on, and manually
start Tomcat when I need it.

 

 

 

Why can't I get it to work?

 

 

 

Thank you very much in advance,

 

 

Harry

 

 



RE: buil error: endorsed not found

2004-11-03 Thread Harry Douglass, Jr.
A couple things come to mind.  When installing Tomcat, it is best not to
have spaces in the file path name.  The standard recommendation is to
install under a folder you name with the Tomcat version (i.e.
C:\jarkarta-tomcat-5.5.4).  This may your slash missing problems.

To use the java compiler, create an environment variable called JAVA_HOME
and the value being the one to your java folder (i.e. C:\j2sdk1.4.2_05).
Make sure you path is to the java root folder and NOT the bin directory.


-Original Message-
From: Rachel Knickmeyer [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 03, 2004 8:43 PM
To: [EMAIL PROTECTED]
Subject: buil error: endorsed not found

I've just started using tomcat.  I'm playing with some simple jsp pages
and a single simple java class in order to work out how things go.
But, I can't seem to get over the following error that happens everytime
I try to compile.   It only happens when I have a java class to compile,
the jsp pages by themselves work fine.  Somehow, a few slashes seem to
be missing, but I've no clue why.

 

Any help would be greatly appreciated!

 

BUILD FAILED

C:\Program Files\Apache Software Foundation\Tomcat
5.5\webapps\tutprual\build.xml:285: C:\Program FilesApaches Software
FoundationTomcat5.5\common\endorsed not found.

 

The line it points to in the xml is: javac srcdir=${src.home}

  destdir=${build.home}/WEB-INF/classes

 

Thanks in advance!

 

-Rachel Knickmeyer

 




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Address already in use:JVM_BIND:8080

2004-11-03 Thread Rhino
Go into your tomcat-users.xml file in the conf directory. Create an entry
that looks like this:

user username=myid password=mypass roles=tomcat,standard,manager/

That should get you into Tomcat okay via the sign-in screen.

Rhino




- Original Message - 
From: Harry Douglass, Jr. [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 9:03 PM
Subject: Address already in use:JVM_BIND:8080


 Hello,







 I am trying to install Apache Tomcat to run JSP and servlets for the first
 time.  When I type in this URL 'http://localhost:8080/' Windows XP prompts
 me for a username and password.  I typed in both the username 'admin' and
 blank password and a custom username and password when I installed it and
I
 get an Unauthorized web page returned.







 When I try running Tomcat from the DOS prompt by typing 'tomcat start', I
 see the SEVERE Error message: Address already in use:JVM_BIND:8080.  I
know
 I am running IIS, but I want to keep the same port it runs on, and
manually
 start Tomcat when I need it.







 Why can't I get it to work?







 Thank you very much in advance,





 Harry








-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is it possible to go to https and return to http?

2004-11-03 Thread Ben
Hi Derek

Do you append the session to the address when you go to http? Are you
using the same session for http and https? Do you have any concern
about security?

I am facing this problem ATM and would love to hear your advise.

Thanks,
Ben


On Thu, 4 Nov 2004 11:04:46 +1100, Derek Clarkson
[EMAIL PROTECTED] wrote:
 
 Hi,
 Our site drops in and out of secure mode to do credit card transactions. We
 have a single instance of tomcat sitting behind an apache server. We have
 two virtual apache servers listed which talk to this tomcat. One os
 non-secure which takes the bulk of the action, and the other is setup as
 secure. When we want to take a user to secure, the next document is simple
 linked as a https connection rather than http. As the secure server is
 listening on the 443 port it picks it up instead of the non-secure one.
 
 The only issue we encountered when doing this is that when this happens it
 starts a new session. So anything stored in the http session (shopping
 basket) cannot been seen. The original designers of the system got arround
 this by using an RMI server and transfering objects through it to the new
 session. To say this was complicated and error prone would be an
 understatement. Recently we ripped this out and added the ID of the http
 session as a parameter to the urls going into the secure instance. By doing
 this, the Tomcat automatically looked for and reconnected to the orginal
 session. Thus allowing us to keep things simple and remove a lot of bug
 ridden code.
 
 Hope this helps.
 
 Regards,
 Derek Clarkson
 Global Applications
 Lonely Planet Publications
 ph: (03) 8379-8000 x8041
 It's not a bug - it's an undocumented feature!
 
 
 
 -Original Message-
 From: Acácio Furtado Costa [mailto:[EMAIL PROTECTED]
 Sent: Thursday, 4 November 2004 4:32 AM
 To: [EMAIL PROTECTED]
 Subject: is it possible to go to https and return to http?
 
 We need to use https  for authentication and in 1 or to 2 url´s in our
 application.
 
 In other case we prefer to stay in http mode . To do this we need to
 redirect the connection to https and return to http .
 
 How can we do this?
 
 Acacio Furtado Costa
 Pesquisa e Tecnologia
 
 GIA - Magnesita S/A
 *(0xx31) 3368-1349
 *  [EMAIL PROTECTED]
 
 
 __
 This email, including attachments, is intended only for the addressee
 and may be confidential, privileged and subject to copyright.  If you
 have received this email in error, please advise the sender and delete
 it.  If you are not the intended recipient of this email, you must not
 use, copy or disclose its content to anyone.  You must not copy or
 communicate to others content that is confidential or subject to
 copyright, unless you have the consent of the content owner.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Config behing a broadband router...

2004-11-03 Thread Luc Vantroys
Hi,

I use Windows XP  jakarta-tomcat-5.0.28.

I'd like to know where and how I should I make the change to have my tomcat
accessible from the internet knowing that I am behind a broadband router?



Thanks,

Luc.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Config behing a broadband router...

2004-11-03 Thread muss
Hi Luc,

Depends on your router I suppose however I am in the same situation and I
simply have to just implement port forwarding on my router to redirect
traffic to the machine that the web server is on.

Have a look at your router configuration.

Kindest Regards,
Matt Anderson

 Hi,

 I use Windows XP  jakarta-tomcat-5.0.28.

 I'd like to know where and how I should I make the change to have my
 tomcat
 accessible from the internet knowing that I am behind a broadband router?



 Thanks,

 Luc.



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Environment entries question

2004-11-03 Thread Igor
Hello!

 There's a Bugzilla item open for this.

Bugzilla item states the following: when context is reloaded JNDI resorces
should be reloaded too.
I think it is not needed. If we will be able to see new JNDI values after
changing in admin application, it will be enough.

So Bugzilla item is related with my problem, but it is not the same.

 Attach your patch in diff -u format to the open Bugzilla item.
 You test it and tell us ;)  If you get it into Bugzilla within the next
 couple of days it'll probably make it to Tomcat 5.0.30.

I think, that my patch is wrong. Sorry for trouble.
I will continue researches on this problem.

Could somebody please tell me: I think, that in NamingContextListener class
in
public void lifecycleEvent(LifecycleEvent event) method
new property change listener should be added to namingResources if container
is instance of Context.
Am I going in right direction?

Any help will be appreciated.

Thank you,
Igor


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: is it possible to go to https and return to http?

2004-11-03 Thread Toby Vidler
Acácio Furtado Costa wrote:
We need to use https  for authentication and in 1 or to 2 url´s in our application.

In other case we prefer to stay in http mode . To do this we need to redirect the connection to https and return to http . 


How can we do this?
 

Check out sslext [ http://sslext.sourceforge.net ]. This is your best bet.
-Toby
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]