RE: set-cookie

2010-05-25 Thread banto
great guys for a great forum!!! n828cl wrote: From: banto [mailto:banto...@gmail.com] Subject: Re: set-cookie i´m using something like System.out.println(Thread.currentThread().getStackTrace()); What you got was a display of the array object - not very interesting. Either iterate

Re: stuck confused an need help please

2010-05-25 Thread Yucca Nel
Could someone please help me understand what thia stack trace is saying? catalina.log File Type: ASCII English text, with very long lines INFO main org.apache.catalina.startup.Catalina - Initialization processed in 875 ms INFO main org.apache.catalina.core.StandardService - Starting service

Re: stuck confused an need help please

2010-05-25 Thread Bob Hall
--- On Mon, 5/24/10 at 11:52 PM, Yucca Nel yucca...@live.co.za wrote: Could someone please help me understand what thia stack trace is saying? catalina.log File Type: ASCII English text, with very long lines INFO main org.apache.catalina.startup.Catalina - Initialization processed in

Re: stuck confused an need help please

2010-05-25 Thread Yucca Nel
Hello and thank you, one user (yucca123_tom) for container managed security for tomcat and another for my application using hibernate (yucca123_hiber) I keep making sure that I provide ALL privileges and correct credentials in metedata but see same results? I know what the exception is saying

Re: stuck confused an need help please

2010-05-25 Thread Bob Hall
--- On Tue, 5/25/10 at 12:20 AM, Yucca Nel yucca...@live.co.za wrote: I know what the exception is saying but I can only swear that I am providing correct credentials. Did you notice: There is leading white space in the user name: ' yucca123_tom'. - Bob

Too many open files

2010-05-25 Thread privat
Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97) sun.nio.ch.SocketChannelImpl.init(SocketChannelImpl.java:84)

Re: mod_jk stability issues

2010-05-25 Thread Rainer Jung
On 24.05.2010 23:36, LES wrote: I am having some trouble keeping a mod_jk setup stable. At this point, I feel like I am too far into trial and error mode and would like some help figuring out how to identify the problem. My current setup involves, two linux (RHEL 5) server each running two

Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
I have two IP-based virtual hosts configured in a standalone Tomcat server. Each host has its own SSL certificate and keystore. Tomcat appears to behave as if only the default host is defined. When I hit seconddomain.com, Tomcat serves the ROOT app for firstdomain.com and writes to

Re: Too many open files

2010-05-25 Thread André Warnier
pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97) sun.nio.ch.SocketChannelImpl.init(SocketChannelImpl.java:84)

Re: Too many open files

2010-05-25 Thread Pid
On 25/05/2010 10:26, pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97)

Re: Question on workers.properties file

2010-05-25 Thread André Warnier
Melinda, from one of your previous posts : In IIS I have the following: Default Web Site - Anonymous access checked and Integrated Windows authentication unchecked Jakarta - virtual web site and Anonymous access checked and Integrated Windows authentication unchecked SCMIS - virtual web site

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Pid
On 25/05/2010 10:44, Jeff wrote: I have two IP-based virtual hosts configured in a standalone Tomcat server. Each host has its own SSL certificate and keystore. Tomcat appears to behave as if only the default host is defined. When I hit seconddomain.com, Tomcat serves the ROOT app for

Re: Question on workers.properties file

2010-05-25 Thread Rainer Jung
On 25.05.2010 12:02, André Warnier wrote: Melinda, from one of your previous posts : In IIS I have the following: Default Web Site - Anonymous access checked and Integrated Windows authentication unchecked Jakarta - virtual web site and Anonymous access checked and Integrated Windows

Re: Question on workers.properties file

2010-05-25 Thread Rainer Jung
On 25.05.2010 12:14, Rainer Jung wrote: On 25.05.2010 12:02, André Warnier wrote: Melinda, from one of your previous posts : In IIS I have the following: Default Web Site - Anonymous access checked and Integrated Windows authentication unchecked Jakarta - virtual web site and Anonymous

RE: Question on workers.properties file

2010-05-25 Thread Savoy, Melinda
Andre, Just to get some clarification. When you say that SCMIS should be a sub-case of the Jakarta virtual website, are you saying that SCMIS should be a virtual website within the Jakarta virtual website? Just want to confirm my understanding. Thanks again for all your help.

RE: Question on workers.properties file

2010-05-25 Thread Savoy, Melinda
Ranier, I do not want the user to get prompted at all. I need this to work as a single sign-on (seamless to the user). Is that not possible? I had tested where when I got the prompt then I got the Domain\User name but I am needing to avoid the login dialog box altogether. Thank you for

Re: stuck confused an need help please

2010-05-25 Thread Mark Eggers
OK - I have a huge message that I'm going to cut and paste into this one, rather than finding the original and editing it online. I'm going to edit in place and try to point out some issues. I'll ask some questions along the way. I am trying to tweak my web application at thejarbar.org to be

RE: too many open files

2010-05-25 Thread privat
Hello, I had a look at my servlet, but it closes the connection after doing a request. Further it crashes by opening the nameserver. Thanks for your help. br, Markus pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error:

Re: stuck confused an need help please

2010-05-25 Thread Yucca Nel
hello and than you. I will spend next few hours fixing this. I need to fix hibernate catalog too as it is still trying to create tables in my test datatabase probably because catalogs are defined for test database in entity hbm.xml mappings? Do these mappings ususally go in the WEB-INF

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Konstantin Kolinko
2010/5/25 Jeff jwi...@cox.net: Any clues as to what is wrong?   6.          useIPVHosts=true / Thus you should use IP addresses as host names (or as aliases).   8. Connector address=1.2.3.4 port=443   9.          protocol=org.apache.coyote.http11.Http11Protocol  10.          

Re: Question on workers.properties file

2010-05-25 Thread André Warnier
Savoy, Melinda wrote: Ranier, I do not want the user to get prompted at all. I need this to work as a single sign-on (seamless to the user). Is that not possible? I had tested where when I got the prompt then I got the Domain\User name but I am needing to avoid the login dialog box

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
I did not have Alias elements inside the Host elements. I did try both w/ and w/o www. so I didn't consider that an issue. After adding Alias elements, the problem persisted. There are ROOT.xml Contexts in both $CATALINA_HOME/conf/Catalina/firstdomain.com and

RE: Question on workers.properties file

2010-05-25 Thread dB .
IMHO the IIS redirection is a total hack. It's a lot of additional load, a whole other web server to deal with, configure and administer. Because you're merely hiding Tomcat behind IIS you're not really getting rid of your tomcat server, you're just masking the problem. I'll allow myself to

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
Neither suggestion worked. On 5/25/2010 5:52 AM, Konstantin Kolinko wrote: 2010/5/25 Jeffjwi...@cox.net: Any clues as to what is wrong? 6. useIPVHosts=true / Thus you should use IP addresses as host names (or as aliases). 8.Connector address=1.2.3.4

Re: mod_jk stability issues

2010-05-25 Thread LES
Thank you for the help. You spend a great deal of time help folks on here (as evidenced by the absurd number of times you have answered questions like this :))...and it is appreciated. I can't believe I missed the millisecond thing. :) I'll check the log and the dump for the individual

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Pid
On 25/05/2010 13:00, Jeff wrote: I did not have Alias elements inside the Host elements. I did try both w/ and w/o www. so I didn't consider that an issue. After adding Alias elements, the problem persisted. There are ROOT.xml Contexts in both $CATALINA_HOME/conf/Catalina/firstdomain.com

Help to import SSL certificate to Tomcat

2010-05-25 Thread Gustavo Mauro
Hello all, I am currently deploying a solution (B.O. Server) that uses both IIS 6 and Tomcat 5; this last one just as a servlet handler. This web site though must be secure and reached only via HTTPS (tcp 443/8443). The SSL certificate was generated to IIS and, using

Re: too many open files

2010-05-25 Thread Pid
On 25/05/2010 11:38, pri...@samea.de wrote: Hello, I had a look at my servlet, but it closes the connection after doing a request. Does it close the connection if the request throws an error? p Further it crashes by opening the nameserver. Thanks for your help. br, Markus

Re: Question on workers.properties file

2010-05-25 Thread Rainer Jung
On 25.05.2010 12:22, Savoy, Melinda wrote: Ranier, in^^ :) I do not want the user to get prompted at all. I need this to work as a single sign-on (seamless to the user). Is that not possible? I had tested where when I got the prompt then I got the Domain\User name but I am needing

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
The application does not automatically redirect to 443. Standard HTTP exhibits the same behavior: if the default host is firstdomain.com, http://seconddomain.com still accesses the ROOT app for firstdomain.com On 5/25/2010 7:48 AM, Pid wrote: On 25/05/2010 13:00, Jeff wrote: I did not

Re: mod_jk stability issues

2010-05-25 Thread Rainer Jung
On 25.05.2010 14:48, LES wrote: I can't believe I missed the millisecond thing. :) No problem, it's our fault not using consistent time units. The latest 1.2.30 has a useful default configuration in the src tarball. But yours looks good too. Regards, Rainer

Re: Question on workers.properties file

2010-05-25 Thread Rainer Jung
On 25.05.2010 13:44, André Warnier wrote: Savoy, Melinda wrote: Ranier, I do not want the user to get prompted at all. I need this to work as a single sign-on (seamless to the user). Is that not possible? I had tested where when I got the prompt then I got the Domain\User name but I am needing

RE: too many open files

2010-05-25 Thread Caldarale, Charles R
From: Pid [mailto:p...@pidster.com] Subject: Re: too many open files I had a look at my servlet, but it closes the connection after doing a request. Does it close the connection if the request throws an error? And as previously suggested, use netstat to find out if the excess files

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Caldarale, Charles R
From: Jeff [mailto:jwi...@cox.net] Subject: Re: Tomcat 6.0 always uses default host in multi-host config Standard HTTP exhibits the same behavior: if the default host is firstdomain.com, http://seconddomain.com still accesses the ROOT app for firstdomain.com So turn on the AccessLogValve

Re: Too many open files

2010-05-25 Thread Rainer Jung
On 25.05.2010 11:54, André Warnier wrote: pri...@samea.de wrote: Hello, I have a problem with my little CORBA-Servlet. Allways I get this error: java.net.SocketException: Too many open files sun.nio.ch.Net.socket0(Native Method) sun.nio.ch.Net.socket(Net.java:97)

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Pid
On 25/05/2010 14:13, Jeff wrote: The application does not automatically redirect to 443. Standard HTTP exhibits the same behavior: if the default host is firstdomain.com, http://seconddomain.com still accesses the ROOT app for firstdomain.com There's no chance you uploaded the apps to the

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
No. And again, if I change the default host in the config, the app that is displayed is different, so I don't think that's the issue. On 5/25/2010 8:56 AM, Pid wrote: On 25/05/2010 14:13, Jeff wrote: The application does not automatically redirect to 443. Standard HTTP exhibits the same

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeffrey Janner
Is there a turtorial on the useIPVhosts attribute and how it is supposed to work somewhere? The statement in the Connector on-line documentation is woefully insufficient. If you want true default host processing based on incoming IP, you can always set up multiple services: Service

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Hassan Schroeder
On Tue, May 25, 2010 at 7:29 AM, Jeffrey Janner jeffrey.jan...@polydyne.com wrote: ... but noticed the OP's server.xml is missing the Service element and the Connectors are under the Engine. +1 -- I was just going to comment that if this server.xml snippet is really the entire file, it doesn't

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Tomcat 6.0 always uses default host in multi-host config noticed the OP's server.xml is missing the Service element and the Connectors are under the Engine. Besides no one else noticing (embarrassing), it's indicative

on Windows 7, i can't use service.bat to install windows service, tried both 6.0.24 and 6.0.26

2010-05-25 Thread Feng Fan
Hi, I found that I can't use service.bat to install tomcat as a service on Windows 7. However tomcat's Windows EXE installer still works successfully. I tried both 6.0.24 and 6.0.26. Do you know if there is a fix to service.bat? I want to install our web applications as a Service, so I can't

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
TC writes to the access logs for the default host, which would be expected. On 5/25/2010 8:18 AM, Caldarale, Charles R wrote: From: Jeff [mailto:jwi...@cox.net] Subject: Re: Tomcat 6.0 always uses default host in multi-host config Standard HTTP exhibits the same behavior: if the default host

RE: on Windows 7, i can't use service.bat to install windows service, tried both 6.0.24 and 6.0.26

2010-05-25 Thread Caldarale, Charles R
From: Feng Fan [mailto:f...@tibco.com] Subject: on Windows 7, i can't use service.bat to install windows service, tried both 6.0.24 and 6.0.26 I found that I can't use service.bat to install tomcat as a service on Windows 7. Welcome to UAC. You have to run service.bat from a command

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Caldarale, Charles R
From: Jeff [mailto:jwi...@cox.net] Subject: Re: Tomcat 6.0 always uses default host in multi-host config TC writes to the access logs for the default host, which would be expected. Show us real information - in particular the HTTP headers. Use Wireshark or equivalent if that's not in the

RE: on Windows 7, i can't use service.bat to install windows service, tried both 6.0.24 and 6.0.26

2010-05-25 Thread Feng Fan
Run as Administrator -- That solved my problem on Windows 7, thanks! -Original Message- From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] Sent: Tuesday, May 25, 2010 10:46 AM To: Tomcat Users List Subject: RE: on Windows 7, i can't use service.bat to install windows service,

Where to place log4j.properties

2010-05-25 Thread Søren Blidorf
Hi. Where in my war file should log4j.properties be? I have it in WEB-INF/classes but it seems like it can’t be found. I get: No appender could be found for logger (org.apache.jasper.JspC) when I compile. Soren, DK

Portlet Won't Deploy Unless Tomcat Started Via Eclipse

2010-05-25 Thread Shelli Orton
Hi, I am using Liferay with Tomcat 6.0 distribution and am having some issues with deploying a portlet. I believe the issue is related to how Tomcat starts up so am hoping someone on this list can help. I created a Maven archetype based on one of our Liferay projects that uses IceFaces. I

Re: Where to place log4j.properties

2010-05-25 Thread Erik Bertelsen
2010/5/25 Søren Blidorf so...@nolas.dk: Hi. Where in my war file should log4j.properties be? I have it in WEB-INF/classes but it seems like it can’t be found. Der skal den være på runtime. I get: No appender could be found for logger (org.apache.jasper.JspC) when I compile. Hvad

RE: Portlet Won't Deploy Unless Tomcat Started Via Eclipse

2010-05-25 Thread Caldarale, Charles R
From: Shelli Orton [mailto:shelli.or...@sjrb.ca] Subject: Portlet Won't Deploy Unless Tomcat Started Via Eclipse May 21, 2010 9:29:02 PM com.sun.faces.util.Util createInstance SEVERE: Cant instantiate class: com.icesoft.faces.facelets.D2DFaceletViewHandler.java.lang.ClassNotFound

Re: stuck confused an need help please

2010-05-25 Thread Mark Eggers
They have to be on the classpath. The base configuration file ends up in WEB-INF/classes. I've always put my hbm.xml files alongside the classes they map. Make sure that there is only one copy of your JDBC driver in your classpath as well, and that it's in the right location. /mde/ --- On

Re: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeff
Putting an Alias element in the Host solved the problem. I initially had no Alias elements, then added one using the public IP. Logs indicated that Tomcat could not connect to that IP; changing the IP to the local IP (identical to the IP defined in the name attribute in the Connector) seems

RE: Portlet Won't Deploy Unless Tomcat Started Via Eclipse

2010-05-25 Thread Shelli Orton
Are you referring to the first period in D2DFaceletViewHandler.java.lang.ClassNotFoundException? That does look a little odd. I've tried re-creating the issue/log entry to double check, but can't seem to reproduce that exact error. Yes, the jar file with that class is included in the war.

Re: Help to import SSL certificate to Tomcat

2010-05-25 Thread Pid
On 25/05/2010 14:00, Gustavo Mauro wrote: Hello all, I am currently deploying a solution (B.O. Server) that uses both IIS 6 and Tomcat 5; this last one just as a servlet handler. This web site though must be secure and reached only via HTTPS (tcp 443/8443). The SSL

EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread John Wu
I tried to use JSF 2.0 + Facelets (no JSP at all) in Tomcat 6 with EL 2.2 (extracted from Tomcat 7 RC2), and failed. see http://old.nabble.com/MyFaces-2.0.0-doest-not-fully-support-EL-2.2-method-invocation-tt28669825.html and

RE: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread Caldarale, Charles R
From: John Wu [mailto:johnwu@gmail.com] Subject: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)} I tried to use JSF 2.0 + Facelets (no JSP at all) in Tomcat 6 with EL 2.2 (extracted from Tomcat 7 RC2),

virtualbox processors

2010-05-25 Thread Yucca Nel
anyone care to enlighten me if the amount of processors assigned to guest in virtualbox go according to virtual or not? IOW does assigning 2 processors mean that I am assigning 2 cores or 2 virtual cores? In a quad core what ia optimal for a guest? Many many thanks and didn't mean to post

RE: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread John Wu
Issue stays on Tomcat 7 RC1 and RC2. I can't download RC3 at the moment, will try it tomorrow. John Wu n828cl wrote: From: John Wu [mailto:johnwu@gmail.com] Subject: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread Konstantin Kolinko
2010/5/25 John Wu johnwu@gmail.com: I tried to use JSF 2.0 + Facelets (no JSP at all) in Tomcat 6 with EL 2.2 (extracted from Tomcat 7 RC2), and failed. You cannot cut some random part of Tomcat 7, drop it into Tomcat 6 and expect it to work. Regardless of what Tomcat 7 version you are

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread John Wu
Same failure observed on Tomcat 7 RC1 and RC2. Konstantin Kolinko wrote: 2010/5/25 John Wu johnwu@gmail.com: I tried to use JSF 2.0 + Facelets (no JSP at all) in Tomcat 6 with EL 2.2 (extracted from Tomcat 7 RC2), and failed. You cannot cut some random part of Tomcat 7, drop it

Re: Question on workers.properties file

2010-05-25 Thread André Warnier
dB. wrote: IMHO the IIS redirection is a total hack. It's a lot of additional load, a whole other web server to deal with, configure and administer. Because you're merely hiding Tomcat behind IIS you're not really getting rid of your tomcat server, you're just masking the problem. I'll allow

RE: Question on workers.properties file

2010-05-25 Thread dB .
Thank you, I really meant that using IIS for authentication only is a hack. Now Tomcat can do Integrated Auth as well as IIS, if not better (with a lot more granularity). IIS and/or Apache do things that Tomcat does not, or not well. For my personal education, do you have any

Re: virtualbox processors

2010-05-25 Thread Pid *
Please insert credits to begin. p On 25 May 2010, at 19:49, Yucca Nel yucca...@live.co.za wrote: anyone care to enlighten me if the amount of processors assigned to guest in virtualbox go according to virtual or not? IOW does assigning 2 processors mean that I am assigning 2 cores or 2

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Jeffrey Janner
OK, to answer my own question on this, useIPVHosts is essentially a way to save some configuration writing at the expense of doing a reverse-DNS lookup on every access, correct? You can do it my way below, and have everything clearly spelled out, or you can use this config trick and let TC

JK Status URI Mappings empty

2010-05-25 Thread Bob Jewell
mod_jk 1.2.28, apache 2.2.3 (-43.el5) When viewing status in the JK Status Manager, our list of URI Mappings displays all the mappings accurately, but the statistical/informational values are all empty. Server URI Match Type Source Reply Timeout Fail on Status Active Disabled

RE: Question on workers.properties file

2010-05-25 Thread Caldarale, Charles R
From: dB. [mailto:dbl...@dblock.org] Subject: RE: Question on workers.properties file IIS and/or Apache do things that Tomcat does not, or not well. For my personal education, do you have any production-type examples? PHP and other external CGI mechanisms, for starters (at least for httpd;

RE: Tomcat 6.0 always uses default host in multi-host config

2010-05-25 Thread Caldarale, Charles R
From: Jeffrey Janner [mailto:jeffrey.jan...@polydyne.com] Subject: RE: Tomcat 6.0 always uses default host in multi-host config OK, to answer my own question on this, useIPVHosts is essentially a way to save some configuration writing at the expense of doing a reverse-DNS lookup on every

Re: EL 2.2 in Tomcat 7 RC1/RC2 does not fully support method invocation, such as #{helloWorldController.doSomething(helloWorldModel)}

2010-05-25 Thread Mark Thomas
On 25/05/2010 20:35, John Wu wrote: Same failure observed on Tomcat 7 RC1 and RC2. I can now reproduce this. The fix is next on my todo list. Note I echo Konstantin's comments about trying to get EL 2.2 working in Tomcat 6. If it works, great - but it will be by luck rather than design. If it