Re: Disabled use of AcceptEx() WinSock2 API” error on Windows 7

2010-01-25 Thread André Warnier
Richard Cooke wrote: When starting Tomcat 6 on a newly installed Windows 7 Enterprise machine with JRE 6 using C:\Program Files\Apache Software Foundation\Tomcat 6.0\bin\tomcat6.exe the application does not open and my event viewer has the message: Disabled use of AcceptEx() WinSock2 API. The

Re: mod_jk codepage in header values

2010-01-25 Thread Mirko Solic
On Thu, 2010-01-21 at 15:21 +0100, André Warnier wrote: Mirko Solic wrote: On Thu, 2010-01-21 at 11:30 +0100, André Warnier wrote: Mirko, just for info : there is a related other thread taking place at the same time, entitled Basic Authentication Failed with multibyte username. I have

Re: Disabled use of AcceptEx() WinSock2 API” error on Windows 7

2010-01-25 Thread Richard Cooke
Thanks for your response. Unfortunately this did not help. I did not install Tomcat with the 'native' checkbox ticked and do not have tcnative.dll in my Tomcat directory. I also have the latest version of the JVM installed. On Mon, Jan 25, 2010 at 10:55 AM, André Warnier a...@ice-sa.com wrote:

CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Ran Harpaz
Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on the file and select save file as. The dialogue that pops up defaults to file type HTML file, and replaces the .csv extension of the file

Performance issue with tags in Tomcat 6

2010-01-25 Thread Adrien Futschik
When upgrading from Tomcat 5.5.x to Tomcat 6.0.x I am facing performance issues. I am using the same exact application in both versions. The application uses JSP custom tags. Here is a quick list of the average loading time recorded (in ms) using Jmeter : Tomcat 5.5.23 : 32 Tomcat 6.0.18 /

Re: mod_jk codepage in header values

2010-01-25 Thread Mirko Solic
On Thu, 2010-01-21 at 10:34 -0500, Christopher Schultz wrote: On 1/21/2010 6:43 AM, Mirko Solic wrote: That what i'm afraid of. This code: new String(request.getHeader(headerName).getBytes(ISO-8859-1)) works for now but it really shouldn't work. That way i'm searching for more legitimate

Re: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Pid
On 25/01/2010 09:17, Ran Harpaz wrote: Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on the file and select save file as. The dialogue that pops up defaults to file type HTML file,

Re: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Alessandro Bahgat
On Mon, Jan 25, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 25/01/2010 09:17, Ran Harpaz wrote: Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on the file and select save file

Re: log the time between each request being read and the first byte of the response served.

2010-01-25 Thread LE
Chris, thanks for the valve wrapper! I played around now for some time, wrapped the response, attached some Action hook. But still not sure where i can grab the time for the first byte leaving tomcat to the client. I call now the response.getContentCount() method in every ActionHook action

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Pid
On 25/01/2010 11:08, Jesse Klaasse wrote: I am running a production environment for a website (over half a million hits per day), using Tomcat 5.5.20 (I'm stuck to that version due to support restrictions) behind IIS 6 using JK connector 1.2.28, tcnative-1.dll (1.1.19) on Windows Server 2003 R2

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
take a look on threads ajp-8009-2 ajp-8009-18 ajp-8009-30 ajp-8009-38 they are all seem to be either in an infinite loop: at java.util.AbstractList$Itr.hasNext(AbstractList.java:339) at nl.indicia.vip.framework.util.Workflow.performWorkflowAction(Workflow.java:166) at

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
P.S. Your tomcat is writing gc logs, please attach them next time. On Mon, Jan 25, 2010 at 12:31 PM, Leon Rosenberg rosenberg.l...@googlemail.com wrote: take a look on threads ajp-8009-2 ajp-8009-18 ajp-8009-30 ajp-8009-38 they are all seem to be either in an infinite loop:        at

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Jesse Klaasse
Pid Ster wrote: Have you tested those memory and garbage collection settings with this version of Java? Well, actually I haven't touched the settings which I used using Java 5. But, I have tested the settings to some extent. My development environment worked perfectly fine using the same

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Jesse Klaasse
Leon Rosenberg-3 wrote: they are all seem to be either in an infinite loop: at java.util.AbstractList$Itr.hasNext(AbstractList.java:339) at nl.indicia.vip.framework.util.Workflow.performWorkflowAction(Workflow.java:166) at

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Jesse Klaasse
Jesse Klaasse wrote: Those Workflow and DQWorkflow classes are from our company, written by the programmer who worked on this project before me. I have attached the two files for further examination. I have noticed the performWorkflowAction method in DQWorkflow is not synchronized and

Re: Disabled use of AcceptEx() WinSock2 API” error on Windows 7

2010-01-25 Thread André Warnier
Richard Cooke wrote: Thanks for your response. Unfortunately this did not help. I did not install Tomcat with the 'native' checkbox ticked and do not have tcnative.dll in my Tomcat directory. I also have the latest version of the JVM installed. Unfortunately then I am out of my depth, and

Re: Disabled use of AcceptEx() WinSock2 API” error on Windows 7

2010-01-25 Thread Richard Cooke
My Tomcat installer file says version 6.0.20. I do not have a version.bat file. My java version is 1.6.0.18. On Mon, Jan 25, 2010 at 2:47 PM, André Warnier a...@ice-sa.com wrote: Richard Cooke wrote: Thanks for your response. Unfortunately this did not help. I did not install Tomcat with

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Leon Rosenberg
Hello Jesse, is the Workflow re-intrant? If yes: this is odd: you are iterating in a re-intrant action (i assume the action is re-intrant) over a shared variable? Vector vecOids = new Vector(); in the method: Iterator oidIterator = vecOids.iterator();

Files in Subdirectories not being served.

2010-01-25 Thread Matt Eustace
Hi, I am running Tomcat 5.5. I have a deployed application and in addition I have a directory and subdirectory structure that stores and serves supporting files such as .js and images. For the latter, I have just created an application by typing in the virtual path and physical path of the files.

Re: TLS+SSLv3 but no SSLv2

2010-01-25 Thread Jens Neu
Chris, thanks for all your help, everyting is up and running. I settled for 'ALL:!EXP:!LOW:!SSLv2' which is exaclty what I need. You should take a look at this guy's tool, here: http://www.unspecific.com/2009/02/16/ssl-cipher-check this looks helpful, unfortunately the script (not the page)

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Jesse Klaasse
Hi Leon, I don't know what you mean exactly by re-intrant, but your comment points out I have created an endless while-loop! Apart from moving to Java 6, I had commented out some lines to reduce logging, not noticing I had created an endless loop by doing so. I only did this in a jar compiled

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread André Warnier
Jesse Klaasse wrote: ... ctory -Dcom.sun.management.jmxremote -XX:MaxPermSize=512m -Xloggc:D:\logs\gc\tomcat-gc.log -XX:+PrintGCDetails -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:+UseTLAB -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled -Xms4096m -Xmx10240m Apart from your

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread David kerber
Jesse Klaasse wrote: Hi Leon, I don't know what you mean exactly by re-intrant, but your comment points out I have created an endless while-loop! Apart from moving to Java 6, I had commented out some lines to reduce logging, not noticing I had created an endless loop by doing so. I only did

RE: Data Binding in JSP

2010-01-25 Thread Joseph Morgan
Keep in mind the overall architecture. The user is actually using an HTML page containing HTML fields. The browser (nor the HTML) has no actual knowledge of the DB or any binding or ORM you have on your server. So, on the server side, you have 2 primary components; servlets for validating and

New project to Apache Software Foundation

2010-01-25 Thread Kranti™ K K Parisa
Hi, Can anyone guide me about the steps to start a new project at Apache Software Foundation. I want to upload the project into its repository and start creating the group, user lists..etc so that the project team would grow and there by it would be enhanced if anyone intersted about my project.

RE: Files in Subdirectories not being served.

2010-01-25 Thread Caldarale, Charles R
From: Matt Eustace [mailto:meust...@attevo.com] Subject: Files in Subdirectories not being served. I have just created an application by typing in the virtual path and physical path of the files. Typing in where? My inf file is: Where is your so-called inf file located? ?xml

RE: New project to Apache Software Foundation

2010-01-25 Thread Caldarale, Charles R
From: Kranti(tm) K K Parisa [mailto:kranti.par...@gmail.com] Subject: New project to Apache Software Foundation Can anyone guide me about the steps to start a new project at Apache Software Foundation. Start here: http://www.apache.org/foundation/how-it-works.html - Chuck THIS

Re: New project to Apache Software Foundation

2010-01-25 Thread Tim Williams
2010/1/25 Kranti™ K K Parisa kranti.par...@gmail.com: Hi, Can anyone guide me about the steps to start a new project at Apache Software Foundation. You may want to read up on the Incubator[1]... --tim [1] - http://incubator.apache.org/incubation/Incubation_Policy.html

Re: Data Binding in JSP

2010-01-25 Thread Hassan Schroeder
On Sun, Jan 24, 2010 at 4:28 PM, jithu mada jithu.m...@gmail.com wrote: I have a requirement, which is to display the table data and the user can add,update or delete the data to it. I am using and JSP's and Servlets. I was searching online to find if there are any data binding frameworks

RE: Disabled use of AcceptEx() WinSock2 API error on Windows 7

2010-01-25 Thread Caldarale, Charles R
From: Richard Cooke [mailto:richa...@saratoga.co.za] Subject: Re: Disabled use of AcceptEx() WinSock2 API error on Windows 7 My Tomcat installer file says version 6.0.20. I do not have a version.bat file. My java version is 1.6.0.18. Post your Connector configuration so we can take a

Re: New project to Apache Software Foundation

2010-01-25 Thread Kranti™ K K Parisa
thanks Chuck, i shall check that in detail. Best Regards, Kranti K K Parisa On Mon, Jan 25, 2010 at 8:00 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Kranti(tm) K K Parisa [mailto:kranti.par...@gmail.com] Subject: New project to Apache Software Foundation Can

RE: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Caldarale, Charles R
From: Steve Ryder [mailto:sry...@jsrsys.com] Subject: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource Resource name=jdbc/MySql auth=Container type=javax.sql.Datasource factory=org.apache.commons.dbcp.BasicDataSourceFactory The specified factory is for the

Re: Data Binding in JSP

2010-01-25 Thread Ken Bowen
I've had good success with DWR and GWT. For GWT, there are a number of available useful extensions, and in particular, SmartGWT (http://code.google.com/p/smartgwt/ ) has some sophisticated Grids available with automated management of bound data. On Jan 25, 2010, at 9:32 AM, Hassan

Re: New project to Apache Software Foundation

2010-01-25 Thread Leon Rosenberg
Just a note, it will probably be easier for you to start a project on java.net or sourceforge. regards Leon 2010/1/25 Kranti™ K K Parisa kranti.par...@gmail.com: thanks Chuck, i shall check that in detail. Best Regards, Kranti K K Parisa On Mon, Jan 25, 2010 at 8:00 PM, Caldarale, Charles

Re: Files in Subdirectories not being served.

2010-01-25 Thread Konstantin Kolinko
2010/1/25 Matt Eustace meust...@attevo.com: 127.0.0.1 - - [22/Jan/2010:15:50:50 +] GET /img/brava/LogoBall_DK.gif HTTP/1.1 404 1030 Note, that HTTP is case-sensitive. If you request does not match casing of the actual folders and file, Tomcat won't serve them. Best regards, Konstantin

Re: mod_jk errors with tomcat 6.0.20 and Apache 2.0.52

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, On 1/22/2010 5:09 PM, Matt Turner wrote: In between times I tried the ProxyPass which seems to work fine, but I'd much rather use plain AJP so I'll try that next. AJP is the protocol used by both mod_jk and mod_proxy_ajp (which is what you

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
When I remove the factory line I now get: Cannot create resource instance 2010-01-25 15:56:06:*WARNING*Connection to jdbc/MySql:: connect Other exception: Cannot create resource instance 2010-01-25 15:56:06:Driver=com.mysql.jdbc.Driver The libraries are all in common\lib. The ones I have

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
Some more testing... I added displays before each of the connect statements. I get (still with no factory): 2010-01-25 16:27:07:*WARNING*Connection to jdbc/MySql:: connect Other exception: Cannot create resource instance 2010-01-25 16:27:07:JsrSQL: Context cast successfull 2010-01-25

JMX Client UnmarshalException with JmxRemoteLifecycleListener and useLocalPorts=true

2010-01-25 Thread Cyrille Le Clerc
Dear all, I faced a problem enabling JmxRemoteLifecycleListener with useLocalPorts=true : my hyperic agent fails to connect with an UnmarshalException caused by a ClassNotFoundException on JmxRemoteLifecycleListener$RmiClientLocalhostSocketFactory (details below). The workaround I found

Re: Data Binding in JSP

2010-01-25 Thread Hassan Schroeder
/* obviously starting the week seriously under-caffeinated */ And I totally forgot to mention Adobe Flex, which is built for exactly this kind of bi-directional data connection, if with a bit of a learning curve. -- Hassan Schroeder hassan.schroe...@gmail.com twitter:

RE: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Jeffrey Janner
Pid - Would adding the following mime-mapping to the web.xml file help? mime-mapping extension.csv/extension mime-typetext/csv/mime-type /mime-mapping There is no mapping for .csv in the Tomcat default web.xml file in the conf directory. I seem to remember addressing a

Re: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Ran Harpaz
Alessandro Bahgat wrote: On Mon, Jan 25, 2010 at 11:02 AM, Pid p...@pidster.com wrote: On 25/01/2010 09:17, Ran Harpaz wrote: Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on

SSL error reported from windows socket

2010-01-25 Thread Tony Anecito
Hi All, I am getting intermittant windows ssl error regarding connections. Something like socket error code 12157 ERROR_INTERNET_SECURITY_CHANNEL_ERROR. It is intermittant and I am load testing against Apache web server using loadrunner 9.0. We are using SSLV3 for Apache 2.2. There is some

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 1/25/2010 11:16 AM, Steve Ryder wrote: When I remove the factory line I now get: Cannot create resource instance 2010-01-25 15:56:06:*WARNING*Connection to jdbc/MySql:: connect Other exception: Cannot create resource instance Ok. The

RE: [OT] Securing Tomcat Applications from Reverse Engineering

2010-01-25 Thread Jeffrey Janner
Good points all around. We had the same issues with our CEO worrying about copies of the app being passed around when we started targeting markets where piracy is fairly common. Eventually, we convinced him the best way to address them was via legal and marketing techniques. That is, a very

RE: Adding/removing hosts dynamically?

2010-01-25 Thread Jeffrey Janner
Chuck said: Try the HTML version of host-manager to get familiar with it: http://localhost:8080/host-manager/html Note that the updates made by the HTML and plain text servlets are not persistent, so will be lost upon Tomcat restart. You'll need some additional means to preserve the added

RE: question for deploystartup forROOT.war on tomcat cluster

2010-01-25 Thread Okubo, Yasushi (TSD)
Thanks for your reply, but I do not see any errors and also cannot find any configuration error. -Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Saturday, January 23, 2010 1:44 PM To: Tomcat Users List Subject: Re: question for deploystartup

Re: question for deploystartup forROOT.war on tomcat cluster

2010-01-25 Thread Konstantin Kolinko
2010/1/25 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: OK - Listed applications for virtual host localhost This: /manager:running:1:manager /:running:0:/ /host-manager:running:0:host-manager and this: HTTP Status 404 - / type Status report message

Re: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ran, Thank you, but this solution doesn't seem to work on Jetspeed, due to the fact that I'm running JSR-168 Portlets on it. I don't believe they support changing the response's ContentType. I wanted to know if there was anything about the

Re: Adding/removing hosts dynamically?

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jeffrey, On 1/25/2010 1:28 PM, Jeffrey Janner wrote: Chuck said: Try the HTML version of host-manager to get familiar with it: http://localhost:8080/host-manager/html Note that the updates made by the HTML and plain text servlets are not

Re: TLS+SSLv3 but no SSLv2

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, On 1/25/2010 8:16 AM, Jens Neu wrote: Chris, thanks for all your help, everyting is up and running. I settled for 'ALL:!EXP:!LOW:!SSLv2' which is exaclty what I need. You should take a look at this guy's tool, here:

Re: [us...@httpd] SSL error reported from windows socket

2010-01-25 Thread Tony Anecito
Hopefully you are right. It is from the loadrunner virtual user logs and it is a windows API but that may only try to point someone in the right direction not be a root cause. I am having someone look at the Windows settings to see if that is where the problem is. I am hoping to understand

Re: mod_jk codepage in header values

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mirko, On 1/25/2010 4:06 AM, Mirko Solic wrote: How i understand i don't have control when environment variables on apache side are putted in http header and sent to tomcat side. This is done by mode_jk automatically. I would hate to put encoded

Re: mod_jk codepage in header values

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mirko, On 1/25/2010 4:24 AM, Mirko Solic wrote: On Thu, 2010-01-21 at 10:34 -0500, Christopher Schultz wrote: What would be better is to do something like this: java.net.URLEncoder.encode(request.getHeader(headerName), UTF-8) Of course, this

Re: Tomcat 100% CPU usage after moving from Java 5 to 6

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jesse, On 1/25/2010 8:25 AM, Jesse Klaasse wrote: I don't know what you mean exactly by re-intrant Re-entrant (never seen it as re-intrant) means that more than one thread of execution might be running the same code concurrently. I've never heard

Re: log the time between each request being read and the first byte of the response served.

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 LE, On 1/25/2010 5:46 AM, LE wrote: thanks for the valve wrapper! No problem. I wrote a program a long time ago that scans a class and dumps a wrapper for it. :) But still not sure where i can grab the time for the first byte leaving tomcat to

Re: RMI reaper thread prevents JVM from exiting

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas, On 1/25/2010 2:48 AM, Thomas Chabaud wrote: Le 22/01/2010 18:13, Christopher Schultz wrote : This thread over on the Sun forums (http://forums.sun.com/thread.jspa?threadID=169975) says that you can either unexport all your objects or call

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
Starting from the bottom up of your suggestions: 1) I tried removing the try/catch. No can do, Java compiler forces me to catch the exceptions. 2) However, Java does provide a getStackTrace. There were 33 elements, but since pages that don't try to connect ARE working I think only the below

How to map username.domain.com to www.domain.com/username

2010-01-25 Thread Bytecode
Hi, I have a small Web app where users can create and use their accounts and at the moment each user can access the homepage for his/her account at www.domain.com/username where username is his/her username. I want each user to be able to access his/her homepage at username.domain.com instead.

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
Removing the Class.forName code did not change anything, I still get the same error. 2010-01-25 20:00:03:*WARNING*Connection to jdbc/MySql:: connect Other exception: org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource 2010-01-25

RE: How to map username.domain.com to www.domain.com/username

2010-01-25 Thread Caldarale, Charles R
From: Bytecode [mailto:bytec...@me.com] Subject: How to map username.domain.com to www.domain.com/username I want each user to be able to access his/her homepage at username.domain.com instead. Assuming you have DNS set up properly, use this:

RE: CSV File Save as dialogue defaults to HTM file

2010-01-25 Thread Jeffrey Janner
Ran - I'm unfamiliar with Jetspeed, so take what I say next with a grain of salt. When you say print a link to it, do you mean to say you add an A tag to the resulting page with the appropriate path? So the user is just clicking on a regular html A link? If so, then I would think adding a

Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for authentication. When I call HttpServletRequest.getRemoteUser() and HttpServletRequest.isUserInRole(), I get inconsistent results. Sometimes I get null for user and other times I get the user name. Sometimes I get false for isUserInRole()

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, On 1/25/2010 2:56 PM, Steve Ryder wrote: Starting from the bottom up of your suggestions: 1) I tried removing the try/catch. No can do, Java compiler forces me to catch the exceptions. Hmm... what method is declared as throwing Exception

Re: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doug, On 1/25/2010 3:35 PM, Fulford, William wrote: I'm using Tomcat 6.0 with Firefox 3.0.12 and JNDIRealm for authentication. When I call HttpServletRequest.getRemoteUser() and HttpServletRequest.isUserInRole(), I get inconsistent results.

RE: How to map username.domain.com to www.domain.com/username

2010-01-25 Thread Bytecode
Hi, Assuming you have DNS set up properly, use this: I have not done DNS tweaking before. How should I setup the DNS? Do I have to set the value of host name for the A record to *? http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Looks like this is not a dynamic approach. I

Re: [OT] Basic Authentication Failed with multibyte username

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 1/24/2010 9:22 AM, André Warnier wrote: Christopher Schultz wrote: Maybe all character sets have bytes 0-127 the same as US-ASCII, but I don't know about some of those I never see myself: Shift-JS and all those Asian encodings, etc. It

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Konstantin Kolinko
2010/1/25 Steve Ryder sry...@jsrsys.com: Resource name=jdbc/MySql auth=Container type=javax.sql.Datasource The above should be javax.sql.DataSource Do you have any references to this resource in your web.xml file? Best regards, Konstantin Kolinko

Re: AW: Comet Connection Writeable?

2010-01-25 Thread Filip Hanik - Dev Lists
http://people.apache.org/~fhanik/tomcat/v6.0.0-gdev6/ Let me know what you think of the programming experience, I wasn't too stoked about it. Lots of concurrency issues that can pop up 1. svn co http://svn.apache.org/repos/asf/tomcat/sandbox/gdev6x/ 2. cd gdev6x 3. echo

RE: question for deploystartup forROOT.war on tomcat cluster

2010-01-25 Thread Okubo, Yasushi (TSD)
-Original Message- From: Konstantin Kolinko [mailto:knst.koli...@gmail.com] Sent: Monday, January 25, 2010 11:16 AM To: Tomcat Users List Subject: Re: question for deploystartup forROOT.war on tomcat cluster 2010/1/25 Okubo, Yasushi (TSD) yasushi.ok...@takedasd.com: OK - Listed

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
Chris, Attached are the relevant sections from the server.xml and web.xml, respectively. I'm using DWR to call Java methods in HttpServletInfo (a class I wrote) from a JavaScript using ExtJs: ... HttpServletInfo.getRemoteUser(function(user) { ... }; ...

Re: How to map username.domain.com to www.domain.com/username

2010-01-25 Thread André Warnier
Bytecode wrote: Hi, Assuming you have DNS set up properly, use this: I have not done DNS tweaking before. How should I setup the DNS? Do I have to set the value of host name for the A record to *? http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Looks like this is not

Re: Recommendations for Automating Deployments and then dev, qa, uat, prod testing

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fletcher, On 1/23/2010 11:17 AM, Fletcher Cocquyt wrote: This process is not perfectly defined and slow - the developer's check all the code into SVN and tag the release - ops checks it all out and builds it on the tomcat nodes with the dev

Re: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Doug, On 1/25/2010 4:59 PM, Fulford, William wrote: Attached are the relevant sections from the server.xml and web.xml, respectively. This mailing list often strips attachments. Could you copy/paste relevant sections into your next post? It's

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:ch...@christopherschultz.net] Subject: Re: Return from getRemoteUser and isUserInRole Inconsistent If it's the functions above that return random stuff, I'd look at those. I'd be looking for incorrect variable scope: storing a request- or session-specific

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
Chris, Sorry about that. The text came off of a classified system. The easiest way for me to get it you, without going through a lot of hoops, was to print it, make sure it's clean, scan it, and attach it to a file. Unfortunately I don’t have any character recognition software handy, so

RE: Return from getRemoteUser and isUserInRole Inconsistent

2010-01-25 Thread Fulford, William
Chuck, You caught me. Rookie mistake. It's refreshing to know I can still make rookie mistakes after almost 30 years in software. What I did was do a WebContextFactory.get() on class initialization as a private static variable. I should have been doing the get on each call. Thanks, Doug

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
Sequence of events: 1) With factory got cast error. 2) Took out factory= and got Cannot create resource instance 3) Put factory statement back in. Is there a different one I should try? The cast exception is Thrown by this line javax.sql.DataSource ds =

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
OK, I took factory out of context.xml, now I get Resource Instance again, but this time I have the trace! 2010-01-26 05:11:30:*WARNING*Connection to jdbc/MySql:: connect Other exception: Cannot create resource instance 2010-01-26

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
You win the prize for fixing the cast/resource instance errors at line 504. I failed to notice the HumpInTheCamel. I changed the s to S and now I get an even more weird error at line 506 506: conn = ds.getConnection(); 507: sysout.display(JsrSQL: conn = ds successfull); I am going to put the

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
I put the factory statement back in context.xml and I get the same error again (only this time I have added code to the SQL exception logic to display the stack trace stopping at the line that invoced the jsp that calls JsrSQL. All the trace that is part of the message appears to me to be the

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Konstantin Kolinko
2010/1/26 Steve Ryder sry...@jsrsys.com: at gnu.gcj.convert.Input_iconv.read(libgcj.so.81) Stop right there. Do not use GNU Java for anything. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Steve Ryder
I understand what you mean by don't use, but I am not using it. What do I need to change so that it is not used? How might I track down the offending library? - Original Message - From: Konstantin Kolinko knst.koli...@gmail.com To: Tomcat Users List users@tomcat.apache.org Sent:

Re: Disabled use of AcceptEx() WinSock2 API error on Windows 7

2010-01-25 Thread Richard Cooke
Thanks, Chuck - this problem is fixed. The zip version starts without any problems using startup.bat. I'll just start Tomcat manually as I'm doing only development work at the moment. On Mon, Jan 25, 2010 at 4:40 PM, Caldarale, Charles R chuck.caldar...@unisys.com wrote: From: Richard Cooke

make jsvc error on centos5.3

2010-01-25 Thread sam wong
hi, everybody, I have some question on make jsvc on centos 5.3 linux. and need your help. thanks my step is : 1. install centos chosed: a)server, b)Server-GUI 2. install tomcat. 3. compile jsvc and failed. [r...@hcrm jsvc-src]# make make -C native all make[1]: Entering directory

Re: Tomcat 5.5 org.apache.naming.ResourceRef cannot be cast to javax.sql.DataSource

2010-01-25 Thread Bob Hall
Steve, --- On Mon, 1/25/10 at 10:50 PM, Steve Ryder sry...@jsrsys.com wrote: I understand what you mean by don't use, but I am not using it. What do I need to change so that it is not used? How might I track down the offending library? What do you get when you type the following commands: