file transfer error

2008-01-02 Thread Rohit
Dear All, I have a typical problem. When I am trying to copy files from through tomcat on one computer to other computer then I get exceptions as :- java.io.FileNotFoundException: \\10.1.103.110\FileUpload\Punjab\02-jan-08.enr (Access is denied) at java.io.FileOutputStream.open(Native

Error when serving large Word doc

2008-01-02 Thread syg6
I am running Tomcat 5.5 on Windows 2000 Server. I have a jsp page with a scriptlet that basically takes the 'out' object (JspWriter) and spits out a bunch of info from the database along with Word formatting and using the 'msword' mime type. It is a total kludge, I know, but I didn't write it, I

Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-02 Thread Mariano
Hi all, I have a custom JAAS implemented in Tomcat 5.5.25. This custom JAAS works fine and i am trying to implement the same custom JAAS in Tomcat 6.0.14 but i have a problem and after deep searching in mailing lists and web I haven't found anything. The configuration is the following:

RES: Servlet Filter Not Intercepting?

2008-01-02 Thread Milanez, Marcus
Hi, Yes, filters atre supposed to intercept a requets just before it is accessed. Could you please post your filter config written in your web.xml file? Yours, Marcus Milanez http://sumatrablog.wordpress.com -Mensagem original- De: Jay Liu [mailto:[EMAIL PROTECTED] Enviada em:

Tomcat 6's nio protocol is slower than the regular HTTP/1.1 protocol

2008-01-02 Thread Shlomi Tsur
Hi We are testing the new nio connector, and in our load tests we are getting 30% better results in terms of fetches/sec in favor of the old HTTP/1.1 protocol. All we are doing in the servlet is just returning status 200 in the response, nothing more. Does the new io really slower then the

Re: (successful) Configuring gmail sending mail from Tomcat

2008-01-02 Thread Johan Borchers
I managed to send emails from a webapp in Tomcat using gmail. The configuration is: Resource name=mail/MyMailServerName auth=Container type=javax.mail.Session mail.transport.protocol=smtp mail.smtp.host=smtp.gmail.com mail.smtp.port=465 mail.smtp.auth=true mail.smtp.user=[EMAIL

Re: file transfer error

2008-01-02 Thread Tim Funk
You don't have permission to write (or open?) files on the remote machine - check the permission tomcat is running as vs who can open files on the remote machine (Access is denied) -Tim Rohit wrote: Dear All, I have a typical problem. When I am trying to copy files from through tomcat

RE: file transfer error

2008-01-02 Thread Rohit
I have permissions to write files. I am able to do that manully and thorugh single program also. I am not able to do it through tomcat. Please let me know if there is some configuration required in tomcat. -Original Message- From: Tim Funk [mailto:[EMAIL PROTECTED] Sent: Wednesday,

Re: file transfer error

2008-01-02 Thread Tim Funk
You may have permissions to write - but if you are running tomcat as a SYSTEM user (since I see windows specific stuff) - it does not. This is not a tomcat (specific) issue. -Tim Rohit wrote: I have permissions to write files. I am able to do that manully and thorugh single program also. I

Re: file transfer error

2008-01-02 Thread David Smith
But is tomcat using your user account or it's own? Usually tomcat runs as a service and may not have the same access rights you do. The exception seems pretty clear tomcat was denied permission to the file at file://\\10.1.103.110\FileUpload\Punjab\02-jan-08.enr --David Rohit wrote: I

NamingException

2008-01-02 Thread AbelMacAdam
I have a piece of code that should get me a dataSource (from an example I'm playing with from a Struts book): [code] try { logger.info(DAOBase.getConnection: == InitialContext ==); context = new InitialContext(); logger.info(DAOBase.getConnection: ==

RE: NamingException

2008-01-02 Thread Mariano
First of all if you are working with tomcat 5.5 you have to put your jdbc library file in TOMCAT_HOME/common/lib but if you are using Tomcat 6.0 you have to put files in TOMCAT_HOME/lib. I think that ResourceParams is nested to Resource and you have it out of Resource. You must follow guidelines

RE: file transfer error

2008-01-02 Thread Rohit
I have tried logging tomcat with my network user id and password but still I am getting same error. Please help in this regard -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 02, 2008 6:26 PM To: Tomcat Users List Subject: Re: file transfer error

Re: mod_spnego SingleSignOn over mod_jk

2008-01-02 Thread Cenk Oguz
Hey Rainer! On Wed, Jan 02, 2008 at 07:39:49AM +0100, Rainer Jung wrote: Hi Cenk, For me the mod_spnego code looks like it only set the usual authenticated user var, so the name of the user will be available for the webapp only by using request.getRemoteUser() and not via an http header.

Re: War File Deployment - Permissions for ftp account

2008-01-02 Thread Carsten Schmitz
Thanks for your suggests Juha. Managed it by using ACLs. Default group rights are rw now for the webapps folder and Tomcat is unpacking with rw for the group now. I will check the umask from tomcat in the evening, but the ACL solution seems to be quicker and safer, because I can set the

Re: NamingException

2008-01-02 Thread David Smith
ResourceParams doesn't exist in tomcat 5.5, 6.0. All those parameters became attributes of the Resource .../ element. What version of tomcat are you using Abel? --David Mariano wrote: First of all if you are working with tomcat 5.5 you have to put your jdbc library file in

RE: Tomcat 6's nio protocol is slower than the regular HTTP/1.1 protocol

2008-01-02 Thread Martin Gainty
Hi We are testing the new nio connector, and in our load tests we are getting 30% better results in terms of fetches/sec in favor of the old HTTP/1.1 protocol. All we are doing in the servlet is just returning status 200 in the response, nothing more. Does the new io Rewhat new

Tomcat 6.x for 64 bit OS

2008-01-02 Thread Indudhar Devanath
Hi, We are looking for 64 bit Tomcat 6.x version to be run as service on Windows Server. We did find many solutions on the web, but is there any official version from Apache group? Indudhar - To start a new topic, e-mail:

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Gregor Schneider
The official Apache-solution is imho - get the sources at http://ftp.hosting-studio.de/pub/linux/apache/tomcat/tomcat-6/v6.0.14/src/apache-tomcat-6.0.14-src.zip - compile it on your 64bit-platform using a 64bit-JDK using the provided Ant-build-script Cheers Gregor -- what's puzzlin' you, is

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Andrew Miehs
On 02/01/2008, at 3:43 PM, Gregor Schneider wrote: The official Apache-solution is imho - get the sources at http://ftp.hosting-studio.de/pub/linux/apache/tomcat/tomcat-6/v6.0.14/src/apache-tomcat-6.0.14-src.zip - compile it on your 64bit-platform using a 64bit-JDK using the provided

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Gregor Schneider
arfgl... must still have some alcohol in my brains from the last party... indudhar: java byte-code is always the same on any platform. the only thing what you need is a 64-bit-java-runtime. having this, you can just run the precompiled java-bytecode which *should* use the 64bit-benefits (like

RE: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Caldarale, Charles R
From: Gregor Schneider [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.x for 64 bit OS - compile it on your 64bit-platform using a 64bit-JDK using the provided Ant-build-script That would be a waste of time, since pure Java programs are completely platform independent, and, other than the

RE: mod_spnego SingleSignOn over mod_jk

2008-01-02 Thread Martin Gainty
good pointcan you display for us the Directory configuration in httpd.conf e.g. something like #assume you do not have mod_auth_sspi http://sourceforge.net/projects/mod-auth-sspi/ Directory /home/bob/apache2/htdocs Options Indexes FollowSymLinks AllowOverride AuthConfig Order allow,deny

RE: Tomcat 6's nio protocol is slower than the regular HTTP/1.1protocol

2008-01-02 Thread Caldarale, Charles R
From: Shlomi Tsur [mailto:[EMAIL PROTECTED] Subject: Tomcat 6's nio protocol is slower than the regular HTTP/1.1protocol Does the new io really slower then the regular protocol? Yes; read this: http://marc.info/?l=tomcat-userm=119635696312254w=2 - Chuck THIS COMMUNICATION MAY CONTAIN

Re: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Indudhar Devanath
The OP was asking about running Tomcat as a service on a 64-bit Windows box, which requires a 64-bit version of the launcher (tomcat6.exe) and service wrapper (tomcat6w.exe); these are not Java programs Thats right Chuck. I did find something here.

RE: Tomcat 6.x for 64 bit OS

2008-01-02 Thread Caldarale, Charles R
From: Indudhar Devanath [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 6.x for 64 bit OS But I couldn't find anything for Tomcat 6.x Filip H put 64-bit 5.5 versions of procrun* here: http://svn.apache.org/viewvc/tomcat/connectors/tags/tc5.5.x/TOMCAT_5_5_2 5/procrun/bin/amd64/ (But watch out

Re: clarification of server.xml settings for AJP 1.3 Thread Limit

2008-01-02 Thread Rainer Jung
Mohan2005 schrieb: Question 02 Recently we have made our jboss servers j2ee compliant, earlier it was not. Earlier we used the Apache front end to render all static pages such as image files, php files etc... Now we cannot do that, AS FAR AS WE KNOW, as j2ee does not allow it. So we

Tomcat status 75 error

2008-01-02 Thread Paul Beattie
Hi, I have a series of relatively high transaction volume tomcat servers which are sporadically hitting thread issues. We run with with tomcat 4.1.27 at the current time. The behaviour we notice is after several days of around one hundred thousand transactions our tomcat instances hang with the

Re: clarification of server.xml settings for AJP 1.3 Thread Limit

2008-01-02 Thread Mohan2005
Thank you very much. We will try this, and inquire further if we run into complications. On Question Once; To increase maximum thread limit for AJP 1.3 on jboss's server.xml Is it MaxThreads or MaxProcessors please ? Thanks and Regards Mohan Rainer Jung-3 wrote: Mohan2005 schrieb:

RE: clarification of server.xml settings for AJP 1.3 Thread Limit

2008-01-02 Thread Caldarale, Charles R
From: Mohan2005 [mailto:[EMAIL PROTECTED] Subject: Re: clarification of server.xml settings for AJP 1.3 Thread Limit on jboss side server.xml file, we wish to increase the maximum THREAD count for the AJP 1.3 connector port 8009; Which parameter is used to do this ? What do the docs

Re: Tomcat status 75 error

2008-01-02 Thread Rainer Jung
Hi Paul, Paul Beattie schrieb: Hi, I have a series of relatively high transaction volume tomcat servers which are sporadically hitting thread issues. We run with with tomcat 4.1.27 at the current time. The behaviour we notice is after several days of around one hundred thousand

Re: JSF and SSI

2008-01-02 Thread Joe Riopel
I don't know much about your project, but based on your question Facelets might be easier than plain JSF for handling your SSI. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For

RE: Tomcat status 75 error

2008-01-02 Thread Martin Gainty
Good CallIf you can upgrade to TC 6 you can use this shared threadPool (being mindful that you need to configure before Connector) http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html In any event the statement of taking tomcat out of the loop requires clarification

RE: clarification of server.xml settings for AJP 1.3 Thread Limit

2008-01-02 Thread Mohan2005
thank you. we will look into this. Caldarale, Charles R wrote: From: Mohan2005 [mailto:[EMAIL PROTECTED] Subject: Re: clarification of server.xml settings for AJP 1.3 Thread Limit on jboss side server.xml file, we wish to increase the maximum THREAD count for the AJP 1.3 connector

RE: Tomcat status 75 error

2008-01-02 Thread Caldarale, Charles R
From: Martin Gainty [mailto:[EMAIL PROTECTED] Subject: RE: Tomcat status 75 error Good CallIf you can upgrade to TC 6 you can use this shared threadPool (being mindful that you need to configure before Connector) http://tomcat.apache.org/tomcat-6.0-doc/config/executor.html Don't do that.

Re: Error when serving large Word doc

2008-01-02 Thread Mark Thomas
syg6 wrote: Is there anywhere in the server.xml (or somewhere else?) where I can increase the maximum file size that Tomcat can serve? There is no such limit. There were some bugs around the 2GB mark but I believe these have all since been resolved. Mark

Re: Problem getting GlobalNamingResources DataSource DBCP from Custom JAAS

2008-01-02 Thread Mark Thomas
Mariano wrote: Please any idea ?. Try looking at how the DataSourceRealm does it. http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/java/org/apache/catalina/realm/DataSourceRealm.java Mark - To start a new topic, e-mail:

other ways to change the Connector element in server.xml?

2008-01-02 Thread Anna Nhan
Hi, Is there a way to change the Connector element in server.xml without manually editing the file? Could we, for example, change the CATALINA_OPTS line using a script or C code to choose whether to use HTTP or HTTPS, the file path to the keystore and keystore password, and whether or not the

need help with Tomcat-generated redirects

2008-01-02 Thread Julian Dunn
Hi, I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] --- [Apache server on port 5001] -- [Tomcat server on port 7001] One of the Tomcat applications sends a redirect to Apache because there is a welcome-file directive. However, the

Re: need help with Tomcat-generated redirects

2008-01-02 Thread David Smith
Connector attribute proxyPort should fix the inclusion of the port number in tomcat generated urls. --David Julian Dunn wrote: Hi, I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] --- [Apache server on port 5001] -- [Tomcat server

Re: other ways to change the Connector element in server.xml?

2008-01-02 Thread Rainer Jung
Hi Anna, Anna Nhan schrieb: Hi, Is there a way to change the Connector element in server.xml without manually editing the file? Could we, for example, change the CATALINA_OPTS line using a script or C code to choose whether to use HTTP or HTTPS, the file path to the keystore and keystore

Re: other ways to change the Connector element in server.xml?

2008-01-02 Thread Anna Nhan
Thanks Rainer! I will try out your advice right away. Anna At 04:37 PM 1/2/2008, you wrote: Hi Anna, Anna Nhan schrieb: Hi, Is there a way to change the Connector element in server.xml without manually editing the file? Could we, for example, change the CATALINA_OPTS line using a

Re: need help with Tomcat-generated redirects

2008-01-02 Thread Rainer Jung
Hi Julian, Julian Dunn schrieb: Hi, I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] --- [Apache server on port 5001] -- [Tomcat server on port 7001] One of the Tomcat applications sends a redirect to Apache because there is

Tomcat + HttpClient + SSL + tcnative-1.dll issues?

2008-01-02 Thread Jim Brikman (ybrikman)
Are there any known issues when using the Apache HttpClient to send https requests to Tomcat running with tcnative-1.dll? Perhaps different SSL stacks causing issues? The issue we are seeing is duplicate messages: our HttpClient sends just one copy of the message (an https request), but on the

Re: need help with Tomcat-generated redirects

2008-01-02 Thread Julian Dunn
On Wed, Jan 2, 2008 at 4:48 PM, Rainer Jung [EMAIL PROTECTED] wrote: I have some applications running under a Tomcat installation set up in this way: [load balancer on port 80] --- [Apache server on port 5001] -- [Tomcat server on port 7001] One of the Tomcat applications sends a

Re: need help with Tomcat-generated redirects

2008-01-02 Thread Rainer Jung
Hi Julian, Julian Dunn schrieb: How do you connect Apache to Tomcat? If you are using mod_jk, the module gets the port it sends to Tomcat via ap_get_server_port(), which in turn depends on UseCanonicalName. If this is set to On, the port is also determined from the port in ServerName. I'm

RE: [Announce] Enhanced ISAPI Redirector + Tomcat Connector Binaries (and IIS 6.0)

2008-01-02 Thread Tim Whittington
I haven't had to do anything special when using the ISAPI Redirectory on IIS 6 (apart from the usual Web Services extension magic), so it definitely works in the default worker process isolation mode. My patched version does utilise Windows 2003 Server specific APIs when used on IIS 6 (to do

RE: [ANN] Apache Tomcat JK 1.2.26 Web Server Connector released

2008-01-02 Thread Tim Whittington
Binary builds of 1.2.26 for various platforms are available now from http://sourceforge.net/projects/timsjk/ These include builds of a patched IIS 5/6 ISAPI Redirector that support HTTP 1.1 chunked encoding (and thus keep-alives on dynamic content). cheers tim -Original Message- From:

Re: need help with Tomcat-generated redirects

2008-01-02 Thread Bill Barker
Rainer Jung [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi Julian, Julian Dunn schrieb: How do you connect Apache to Tomcat? If you are using mod_jk, the module gets the port it sends to Tomcat via ap_get_server_port(), which in turn depends on UseCanonicalName. If this is

RE: Servlet Filter Not Intercepting?

2008-01-02 Thread Jay Liu
Thanks Marcus. Here's my filter setup. I just created it fresh in netbeans so I'd be surprised if there is a problem. I woke up this morning, realizing I forgot to turn off invoking the resource. Would that matter? filter filter-nameUserFilter/filter-name

Re: Comet processor blocks if chunk includes final CRLF

2008-01-02 Thread Filip Hanik - Dev Lists
the patch has been applied and will go into 6.0.16 Filip Chris Pettitt wrote: Filip, Do you know which release this patch will go into? Is there a bug number I can watch? Thanks, Chris On Dec 19, 2007 9:13 AM, Chris Pettitt [EMAIL PROTECTED] wrote: Filip, Your patch has fixed the chunk

[tomcat5.5] ClassCastException at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:396)

2008-01-02 Thread totalrecall
This problem occurs on tomcat 5.5 but not tomcat 5. I'm trying to figure out why there's a class casting on ConsoleHandler. Unfortunately I could not find the source code on ClassLoaderLogManager, so I don't exactly know what's wrong! Is there a major update of org.apache.juli in tomcat 5.5?

[tomcat 5.5] logger configuration in context.xml

2008-01-02 Thread totalrecall
I would like to have separate log for each context, like I have done in tomcat5. But similar configuration doesn't seem to work under tomcat 5.5? Is there a new syntax for the Logger tag? Context docBase=. swallowOutput=true Logger className=org.apache.catalina.logger.FileLogger