Re: one application on different port

2006-08-21 Thread Mikolaj Rydzewski
Ben Stringer wrote: On Mon, 2006-08-21 at 07:20 -0700, tamri wrote: I have one application and use tomcat 5.0. I want to run this application on different port , on 8080 and 8082 independently each other. I configure in tomcat this two connector with ports 8080 and 8082. how can I configure

Different results for the same application in different directories

2006-08-21 Thread [EMAIL PROTECTED]
Hi, I have a JSF/IceFaces powered application running on Tomcat 5.5.17 in Windows 2003 server SP1. When deploying my webapp to a .war file and copying it to the webapps directory of Tomcat the method FacesContext.getCurrentInstance ().getViewRoot().getViewId() returns different results with every

Tomcat 4.1 Admin Context Error.

2006-08-21 Thread Foo Shyn
Hi guys, I'm using Tomcat 4.1 currently. I'm facing problem to create a datasource for a context that is created by uploading a .war file. It prints out the following error: javax.servlet.ServletException: Exception retrieving attribute 'driverClassName'I think this should be fixed in Tomcat 5

Re: downloading JSTL..

2006-08-21 Thread maya
Wendy Smoak wrote: Wendy, thank you very much for your help.. I'm using Tomcat 5, so I figured had to use JSTL 1.1.. No. The version of JSTL to use depends on what version of the Servlet spec your webapp is configured to use, not what version of Tomcat they're running in. my Servlet API is

Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak
Wendy, thank you very much for your help.. I'm using Tomcat 5, so I figured had to use JSTL 1.1.. No. The version of JSTL to use depends on what version of the Servlet spec your webapp is configured to use, not what version of Tomcat they're running in. my Servlet API is 2.4.. so looking on

Re: downloading JSTL..

2006-08-21 Thread maya
Wendy Smoak wrote: On 8/21/06, maya <[EMAIL PROTECTED]> wrote: yes, that helped, thank you very much... I managed to figure out which one to download here, http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi ... so you're using JSTL 1.1 followed all instructions in my b

Re: Apache 2.2 proxy and Tomcat 5.5 container - couldn't map to root

2006-08-21 Thread Bill Barker
"Olexandr Prokhorenko" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi everybody, > > I believe this is a common problem, but I wasn't able to find any answer > to it, > yet. I have a project WAR deployed in Tomcat 5.5 container, so I can see > it as > http://tomcat.server:808

Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak
On 8/21/06, maya <[EMAIL PROTECTED]> wrote: yes, that helped, thank you very much... I managed to figure out which one to download here, http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi ... so you're using JSTL 1.1 followed all instructions in my book (created webapp

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Mark Thomas
Yan Bai wrote: > I don't know. I tried at home, with firewall on, worked fine. > I will ask around about the firewall setup at my working place. > Also, do i need to do sth with the proxy, and config svn with proxy? Sounds like you need to talk to your network people at work to figure out how to s

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Yan Bai
I don't know. I tried at home, with firewall on, worked fine. I will ask around about the firewall setup at my working place. Also, do i need to do sth with the proxy, and config svn with proxy? Thanks, Yan On 8/21/06, Mark Thomas <[EMAIL PROTECTED]> wrote: Yan Bai wrote: > Could this be a svn

Re: downloading JSTL..

2006-08-21 Thread maya
Wendy Smoak wrote: On 8/21/06, maya <[EMAIL PROTECTED]> wrote: I click on "taglibs" get taken to a page with yet another long list.. http://jakarta.apache.org/site/downloads/downloads_taglibs.html.. what do I download here? I thought "JSTL" meant all taglibs in one package.. From that page

Re: downloading JSTL..

2006-08-21 Thread Wendy Smoak
On 8/21/06, maya <[EMAIL PROTECTED]> wrote: I click on "taglibs" get taken to a page with yet another long list.. http://jakarta.apache.org/site/downloads/downloads_taglibs.html.. what do I download here? I thought "JSTL" meant all taglibs in one package.. From that page you either want Stan

Re: Creating /WEB-INF folders for virtualhosts

2006-08-21 Thread Mark Thomas
Edoardo Causarano wrote: > I understand your frustration, I haven't gone without my own. You must > realize though that jsp under tomcat is not like php under ~/public_html > user dirs. Are you aware of the User Web Applications feature, as per http://tomcat.apache.org/tomcat-5.5-doc/config/host.h

downloading JSTL..

2006-08-21 Thread maya
hi, am a bit confused about JSTL.. when on this pg, http://jakarta.apache.org/taglibs/doc/standard-doc/intro.html it says, about half-way down, "Download the Standard Tag Library Release from an Apache Jakarta Project Mirror" when I click on "Apache Jakarta Project Mirror" I get taken to ht

Re: Creating /WEB-INF folders for virtualhosts

2006-08-21 Thread Edoardo Causarano
I understand your frustration, I haven't gone without my own. You must realize though that jsp under tomcat is not like php under ~/ public_html user dirs. Perhaps it's a limit of tomcat but you can't (as far as I know) do useraccount mass vhosting. Every explicitly declared host declaration

Apache 2.2 proxy and Tomcat 5.5 container - couldn't map to root

2006-08-21 Thread Olexandr Prokhorenko
Hi everybody, I believe this is a common problem, but I wasn't able to find any answer to it, yet. I have a project WAR deployed in Tomcat 5.5 container, so I can see it as http://tomcat.server:8080/project. I've installed Apache 2.2 HTTP server as a front-end, and now I want to see my J2EE proj

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Mark Thomas
Yan Bai wrote: > Could this be a svn problem? when i tried "svn checkout > http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x " > > I got the following msg: > svn: PROPFIND request failed on '/repos/asf/tomcat/current/tc5.5.x' > svn: PROPFIND of '/repos/asf/tomcat/current/tc5.5.x': could not c

Re: Context and web.xml

2006-08-21 Thread MC Moisei
I'm looking to be able to tell context where is the web.xml. I have two web.xmls one for tomcat and one for weblogic. web_tc.xml web_wls.xml I want to tell tomcat to look into web_tc.xml From: "Martin Gainty" <[EMAIL PROTECTED]> Reply-To: "Martin Gainty" <[EMAIL PROTECTED]> To: "Tomcat Use

Re: Context and web.xml

2006-08-21 Thread Martin Gainty
so if you to start off in context.xml with a path specification http://MachineName:Port/WebApp/servlet/UrlPath HTH, M- * This email message and any files transmitted with it contain confidential information intended only for the p

Re: two application on different port with restriction

2006-08-21 Thread Hassan Schroeder
On 8/21/06, tamri <[EMAIL PROTECTED]> wrote: so, I have anothr question: If i have 2 application and I want to run this eachone different post independently each other,so that , application1 runs on 8080 port, application2 runs on port 8081, with restriction that application1 can't run on port

Re: Context and web.xml

2006-08-21 Thread MC Moisei
Any tips on the matter ? From: Mark Thomas <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: Context and web.xml Date: Mon, 21 Aug 2006 07:27:32 -0400 MC Moisei wrote: > Hi, > > I'm using tomcat for dev. My question is for a dev environment. I have > context

Re: one application on different port

2006-08-21 Thread tamri
yes , if you can send me example of conf. thanks a lot! Ben Stringer wrote: > > On Mon, 2006-08-21 at 07:20 -0700, tamri wrote: >> I have one application and use tomcat 5.0. >> I want to run this application on different port , on 8080 and 8082 >> independently each other. >> I configure in

Re: two application on different port with restriction

2006-08-21 Thread tamri
I have no Apache, is there another way to run one applicatio 2 virtual port? so, I have anothr question: If i have 2 application and I want to run this eachone different post independently each other,so that , application1 runs on 8080 port, application2 runs on port 8081, with restriction that

Q: about status gathering per Request/Connector

2006-08-21 Thread Alexander Lazic
Hi, a colleague have add a new thread in the Ajp13Connector && Ajp13Processor to gather some stats: ---Ajp13Connector (Runtime.getRuntime().freeMemory() >> 10) + " VMfree " + (Runtime.getRuntime().totalMemory() >> 10) + " VMalloc " + threadGroup.activeCount() + " curthreads " + processors.siz

RE: Security constraint/login form

2006-08-21 Thread Propes, Barry L
ok, thanks, David! -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 11:48 AM To: Tomcat Users List Subject: Re: Security constraint/login form Looking at the source for org.apache.catalina.JDBCRealm, the queries on the database are confined to

Re: Valve && Connectors && Request-Objects

2006-08-21 Thread Alexander Lazic
Hi, On Mon 21.08.2006 11:36, Martin Gainty wrote: If you know the name of the attribute you could use the getAttribute method [snipp] Ok, thanks. I think i will go another way ;-) For this i will start a new thread on this list, i hope that this is the right List ;-) Regards Alex --

Re: Security constraint/login form

2006-08-21 Thread David Smith
Looking at the source for org.apache.catalina.JDBCRealm, the queries on the database are confined to the rows/columns required for authentication. Other columns could be present in both users and roles without any impact. Prepared statement for fetching credentials: select userCredCol from us

Re: Problem with Emailappender of Log4j

2006-08-21 Thread Martin Gainty
Mario- can we see the exception handler and how you are capturing stackTrace? M- * This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message i

Re: Security constraint/login form

2006-08-21 Thread Martin Gainty
If username has admin,manager roles asssigned you shouldnt have access problems Sounds as if you may have a security Valve installed? http://tomcat.apache.org/tomcat-4.1-doc/catalina/docs/api/org/apache/catalina/authenticator/SingleSignOn.html either that or someone disabled .htaccess for that fo

Problem with Emailappender of Log4j

2006-08-21 Thread Mario Bittermann
Hi, we have a problem with our emailappender of Log4j. We are using Log4js emailappender to be informed when an unhandled exception is thrown in an application. If an exception is thrown we get an email with a exceptionstacktrace as mailbody. This works fine with Tomcat 4. Since we are using To

RE: Security constraint/login form

2006-08-21 Thread Propes, Barry L
Thanks, David. Yeah, I replied back to it a minute ago...I had the role-name elements in the (web)XML file askew from what was in the DB. Got it working now. And, one more thing. I should be able to add a third column to the role_name db table, shouldn't I? If so, do I need to add a matching thi

Re: Security constraint/login form

2006-08-21 Thread David Smith
Could you post some relevant sections of your webapp? I'm thinking the security constraint section of your web.xml, a representative segment of your user database table, and the logs where a request is made to login. Something just seems off here. As a test a few days ago, I changed the role

RE: Security constraint/login form

2006-08-21 Thread Propes, Barry L
never mind...sorry, I did see it in the web.xml file under the role-name element. Sorry about that! -Original Message- From: Propes, Barry L Sent: Monday, August 21, 2006 10:43 AM To: Tomcat Users List Subject: RE: Security constraint/login form Ok, I'm finding that the names are somew

RE: Security constraint/login form

2006-08-21 Thread Propes, Barry L
Ok, I'm finding that the names are somewhat relevant. For instance, if I assign a user the role service, or admin, it works with no problems. If I assign another name -- say senior, or legal or business -- it does not work. Any ideas why? And, if it's limited to this by Tomcat's default securi

Re: Valve && Connectors && Request-Objects

2006-08-21 Thread Martin Gainty
Hello Alex If you know the name of the attribute you could use the getAttribute method public Object getAttribute(String name) { //notice this goes to the ProcessorAttributes.. return this.processorAttributes.get(name); } HTH, M- *

Re: Tomcat security Manager

2006-08-21 Thread Markus Schönhaber
Mark Babcock wrote: > Does anyone know how to get tomcat 5.5 running as a windows service with > security manager enabled? Open the Tomcat Properties dialog, select the "Java" tab and under "Java Options" add the following two lines: -Djava.security.manager -Djava.security.policy=C:\Programme\Ap

Re: JkMount and Context path

2006-08-21 Thread Martin Gainty
Apache is and always will be a CGI processor..for that reason I like Tomcat to run standalone (If someone changes the httpd.conf or worker.properties files your config is hosed..) *In either case I'm glad that helped you* Martin -- *

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Yan Bai
Martin, thanks. run 'svn help', works fine. ant seems recognize 'svn', this is the result from ant: svn: [exec] Type 'svn help' for usage. [exec] Result: 1 I use winxp, what's the compatible command for 'which' on windows? Yan On 8/21/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Yan--

Re: JK 1.2.18

2006-08-21 Thread Mladen Turk
Sharma, Siddharth wrote: I am using mod_jk 1.2.15 on RedHat Linux with Tomcat 5.5 and Apache 2.0.x. I noticed the current stable release of jk is 1.2.18. Where can I find information on the differences between the two releases to see if I should be thinking of upgrading at all? As usual if you

Re: JK 1.2.18

2006-08-21 Thread Haroon Rafique
On Today at 10:43am, SS=>Sharma, Siddharth <[EMAIL PROTECTED]> wrote: SS> I am using mod_jk 1.2.15 on RedHat Linux with Tomcat 5.5 and Apache SS> 2.0.x. I noticed the current stable release of jk is 1.2.18. Where can SS> I find information on the differences between the two releases to see SS>

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Martin Gainty
Yan-- This is an ant question please post to ant-users or ant-developers I would take this a step at a time what does the command 'which svn' return? go to shell run svn does it run ok? run svn via the exec task within ant build.xml does ant locate the the svn? properties files I would use

Tomcat security Manager

2006-08-21 Thread Mark Babcock
Does anyone know how to get tomcat 5.5 running as a windows service with security manager enabled?

Re: Creating /WEB-INF folders for virtualhosts

2006-08-21 Thread Hassan Schroeder
What I would like, is to be able to put test.jsp in /var/www/username/public_html or any user created directory in that directory. I just can't seem to find the key to this. In fact, I can't even find where tomcat is setting the default directory to /usr/local/tomcat/webapps. Your server.xml fil

JK 1.2.18

2006-08-21 Thread Sharma, Siddharth
I am using mod_jk 1.2.15 on RedHat Linux with Tomcat 5.5 and Apache 2.0.x. I noticed the current stable release of jk is 1.2.18. Where can I find information on the differences between the two releases to see if I should be thinking of upgrading at all? Thanks Sidd --

Re: how to use the mod_jk2?

2006-08-21 Thread Rafael . Almeida
Hi; Get apache 2.2.3, compile with all you want plus --enable-proxy-ajp. Configuration: httpd.conf: ProxyPass ajp://"TOMCAT IP":"TOMCAT PORT"/"APP NAME" I think this will work. Everything between " should be replaced by the correct value. Have I forgotten so

Re: Missing Request Parameters

2006-08-21 Thread Nicolas Schwartz
Yes I sent them 2 posts ago. However, here they are again : In our server.xml: ## In our workers.properties: workers.apache_log=/usr/local/apache/logs workers.tomcat_home=/usr/local/tomcat workers.java_home=/usr/local/java ps=/ worker.list=ajp13 worker.ajp13.type

Re: one application on different port

2006-08-21 Thread Ben Stringer
On Mon, 2006-08-21 at 07:20 -0700, tamri wrote: > I have one application and use tomcat 5.0. > I want to run this application on different port , on 8080 and 8082 > independently each other. > I configure in tomcat this two connector with ports 8080 and 8082. > how can I configure tomcat to run

Re: one application on different port

2006-08-21 Thread Mikolaj Rydzewski
tamri wrote: I have one application and use tomcat 5.0. I want to run this application on different port , on 8080 and 8082 independently each other. I configure in tomcat this two connector with ports 8080 and 8082. how can I configure tomcat to run one application on different ports indepede

one application on different port

2006-08-21 Thread tamri
I have one application and use tomcat 5.0. I want to run this application on different port , on 8080 and 8082 independently each other. I configure in tomcat this two connector with ports 8080 and 8082. how can I configure tomcat to run one application on different ports indepedently. -- View

Re: Tomcat BUILD FAILED, error=2

2006-08-21 Thread Yan Bai
Could this be a svn problem? when i tried "svn checkout http://svn.apache.org/repos/asf/tomcat/current/tc5.5.x " I got the following msg: svn: PROPFIND request failed on '/repos/asf/tomcat/current/tc5.5.x' svn: PROPFIND of '/repos/asf/tomcat/current/tc5.5.x': could not connect to serve r (http://

Re: Parsing keyvalue pairs in POST data

2006-08-21 Thread Martin Gainty
I know the initial versions of J2ME did not have UNICODE (either UTF-8 or UTF-16) support. I would search the lists located here https://subscriptions.sun.com/subscription_center/ecomm.jsp 2 years ago I met a fellow who coded a UTF-8 MIDP device for collecting Patient info (with the conclusion t

Re: Context and web.xml

2006-08-21 Thread MC Moisei
My bad. Indeed, I did what you said but changed the topic. I thought that's the right email address. Thanks for info Mark! MC From: Mark Thomas <[EMAIL PROTECTED]> Reply-To: "Tomcat Users List" To: Tomcat Users List Subject: Re: Context and web.xml Date: Mon, 21 Aug 2006 07:27:32 -0400 M

Re: JkMount and Context path

2006-08-21 Thread Evan J
Martin, Indeed, I had the same setting with the standalone Tomcat webserver and the configuration your mention would work properly as it expected. As I had mentioned in earlier posts to this thread, I do not have a reason to utilize a third party webserver. At this point I am just trying various

Re: JkMount and Context path

2006-08-21 Thread Martin Gainty
Evan If apache is installed on a standalone webserver it will work cleaner and faster If tomcat is installed on a standalone webserver it will work cleaner and faster.. but if you absolutely positively need apache and tomcat on the same host..although you still havent explained why this is t

Re: JkMount and Context path

2006-08-21 Thread Evan J
Uhh! Ok, that's what I wanted to hear and it is evident that Context's path is being ignored but why HTTP 400? Anyway, I do not believe the "name" of context file has any bearing on the URI that must be specified. http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html says, "If a Context De

Re: Parsing keyvalue pairs in POST data

2006-08-21 Thread Santosh Puranshettiwar
HttpServletRequest.getInputStream(): Retrieves the body of the request as binary data using a |ServletInputStream| . I used the aforementioned method to read the message body of the HTTP request.The data extra

Re: Parsing keyvalue pairs in POST data

2006-08-21 Thread Mark Thomas
Santosh Puranshettiwar wrote: > Nope. No such attribute in the . > Would any default value take effect then? If so what is it? Anything > nearby 2016? Default for TC5.5.x is 2*1024*1024 (2MB) Time to use the request dumper valve? Be careful since it will mess with character encoding. Mark

Re: Context and web.xml

2006-08-21 Thread Mark Thomas
MC Moisei wrote: > Hi, > > I'm using tomcat for dev. My question is for a dev environment. I have > context defined in conf %TOMCAT_HOME%\conf\Catalina\localhost. Is there > a way to specify what's the web.xml tomcat should use ? I use tomcat for > dev but I target Weblogic for production and such

Different results for the same application in different directories

2006-08-21 Thread [EMAIL PROTECTED]
Hi, I have a JSF/IceFaces powered application running on Tomcat 5.5.17 in Windows 2003 server SP1. When deploying my webapp to a .war file and copying it to the webapps directory of Tomcat the method FacesContext.getCurrentInstance().getViewRoot().getViewId() returns different results with every

Re: Valve && Connectors && Request-Objects

2006-08-21 Thread Alexander Lazic
On Son 20.08.2006 18:50, Martin Gainty wrote: I believe you will have to acquire the ServletInfo from the (Action)servlet itself as in the example.. ServletInfo info = cyR.getRequestProcessor().servlet.getServletInfo(); Thanks for info but i'am not sure if i understand you right?! The getServ