Changing the Tomcat 5.0 Directory installed in FreeBSD

2006-05-30 Thread ks.foong
Hi I have installed the Jakarta-tomcat5.0 into my FreeBSD machine. As my project required, I have to move the entire installed directory from /usr/local/Jakarta-tomcat5.0 to /Project/Tomcat folder I manage to perform the above operation. But when I go to: /Project/Tomcat/

JNDI datasource failing

2006-05-30 Thread Dan Simmonds
I hope someone can help me with this problem. I have a webapp that used an JNDI datasource that runs fine on my local test environment. When I put it on my server it fails with the following error: javax.servlet.jsp.JspException: Unable to get connection, DataSource invalid: "org.apache.tomcat

Re: a real solution about maxThreads??

2006-05-30 Thread Leon Rosenberg
a) increasing max threads count in connector tag in server.xml or b) check why you are out of threads by performing a threaddump and examining it. leon On 5/31/06, antarix <[EMAIL PROTECTED]> wrote: Hi there!!! Does anybody know about a solution about this message in log: SEVERE : All threa

RE: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Ahmed . AlGhafri
I know that Tomcat's purpose is to listen for requests and pass them on to the appropriately mapped servlet. But i want to use Tomcat's because i will not need to code all the mutli-threading part of it. and if in the future some of the client connect over HTTP, I will have no problem handling

Re: How can I create/configure a jsp servlet without a .jsp extension

2006-05-30 Thread Tamilselvan R
Hi Sumeet Keswani, We can configure the JSP files in web.xml as like we do for servlets. Syntax is explained in the following link http://edocs.bea.com/wls/docs70/webapp/components.html#145275 Hope this solves your problem. :) On 5/31/06, Giorgio Clavelli <[EMAI

Re: How can I create/configure a jsp servlet without a .jsp extension

2006-05-30 Thread Giorgio Clavelli
I'm not an expert, but considering that JSPs are basically servlets, I'm pretty sure you should find a solution, to satisfy your requirement, by configuring the JSP equivalent of a in the web.xml of your application. On 5/31/06, Sumeet Keswani <[EMAIL PROTECTED]> wrote: This is a very simpl

RE: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Richard Mixon
Tomcat's purpose is to listen for requests and pass them on to the appropriately mapped servlet. Maybe you do not want to use Tomcat, but instead roll your own server that simply listens on a particular port for socket opens. But again, to do this well is not a trivial exercise. The port you choos

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Ahmed . AlGhafri
Hi David... I didn't send a request to the servlet I am expecting the servlet to execute on socket open, for that i made my servlet in the Root (The default one)... I want once i connect using the host and port it execute my servlet... David Smith <[EMAIL PROTECTED]> 30/05/2006 15:04 Pl

How can I create/configure a jsp servlet without a .jsp extension

2006-05-30 Thread Sumeet Keswani
This is a very simple question and i hope someone can give me a answer. I have a file called search.jsp that does some trivial search through a database. I want it to be accessible as follows http://www.domain.com/search?LookForThis Currently I have it working like http://www.domain.com/sear

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Ahmed . AlGhafri
Hi mks Yeah it dose work when i am accessing the Tomcat via the browser but i don't want to access it via the browser because somebody from different machine will send me a message via a socket connection and i want that servlet do the work once the socket connect to the Tomcat Markus S

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Bill Barker
"Mark F" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I have very specific requirements that have been imposed on me (and >therefore the servers) that require me to use the following configuration: > > Tomcat 5.0.xx > Sun Java 1.4.2 > > Applications will be running on a Opteron 2

Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing

2006-05-30 Thread Mark Thomas
Martin Gainty wrote: > setting URIEncoding="UTF-8" in server.xml works in Gets but for posts > Tomcat doesn't use the URIEncoding flag for POSTed form data even when > set So, what does Tomcat use for Post? ISO-8859-1. (i18) ISO-8859-1 may be used for POST but it depends on the circumstances. I c

RE: Tomcat and Apache Connector Problem

2006-05-30 Thread Donald Beck
I put JkMount /jsp-examples ajp13 in my httpd.conf file. I started the services and I still do not see the same as if I typed http://localhost:8080/jsp-examples. Thanks for your help. DB --- Serlet Jean-Claude <[EMAIL PROTECTED]> wrote: > Add the directive JkMount to tell Apache using > To

Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing

2006-05-30 Thread Ramez Ghazzaoui
Thank you Mark and Martin. I will try both tricks tomorrow then let you know how it went. Martin, please note that I am not dealing with POST or GET in this situation. I'm not submitting any forms or other data, and there is no query string in any of my URLs. All I am doing is using Tomcat to

Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing

2006-05-30 Thread Martin Gainty
setting URIEncoding="UTF-8" in server.xml works in Gets but for posts Tomcat doesn't use the URIEncoding flag for POSTed form data even when set So, what does Tomcat use for Post? ISO-8859-1. (i18) Your best and safest bet is to effect UTF-8 interpretation is to setCharacterEncoding("UTF-8") f

Re: Realm Tag in webappnamecontext.xml

2006-05-30 Thread Mark Thomas
Marc Farrow wrote: > I have a context with the following Realm tag. However, when I navigate to > the page, the page pulls up without any type of authentication. What am I > missing? I have read the "Realm Configuration HOW-TO" at apache.org. How you read chapter SRV.12 of the servlet spec? Spe

Re: Troubleshooting unexpected Tomcat shutdown

2006-05-30 Thread Mark Thomas
Dean Maki wrote: > Java HotSpot(TM) Client VM warning: cannot install alternate > signal stack > Java HotSpot(TM) Client VM warning: cannot uninstall alt signal > stack This is a JVM issue rather than a Tomcat issue. Try the support pages for your JVM. Mark -

Re: Help needed:Context Creation Failed.

2006-05-30 Thread Mark Thomas
Kuldeep Tewari wrote: > NamingContextListener [/Standalone/localhost/]: Creation > of the naming context failed: javax.naming.NamingException: Context is > read only > > Creation of the naming context failed: javax.naming.NamingException: > Context is read only. Can you provide 1) your server.xml

Re: Run class in the start up of Tomcat

2006-05-30 Thread Mark Thomas
Asaf Lahav wrote: > Is it possible to stop the tomcat shutdown sequence from with in the context > listener contextDestroyed function? No. The shutdown process has already started for the application and a number of other components have already been stopped. Mark ---

Re: Configuring Tomcat HTTP server to generate proper links for non-English file names in a Directory Listing

2006-05-30 Thread Mark Thomas
Martin Gainty wrote: > You will need download and configure the i18 International jars (which > are optional) to enable multi-language functionality This is not correct. These jars are resource bundles only - they have no impact on this issue. Setting URIEncoding="UTF-8" in the connector is proba

Help using mod_proxy_ajp

2006-05-30 Thread bleak
I'm using apache 2.2.2, with mod_proxy_ajp, and tomcat 5.5.17. I'm trying to configure a set up that will allow me to proxy certain URLs like http://ironwire.net/tomcat/ to tomcat for processing. Here are the relevant sections of my current server.xml file, including the contexts I set up to

Re: How to hide the keystorePass at the server.xml

2006-05-30 Thread David Wall
Shankar Unni wrote: Robert Harper wrote: One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. Yeah, yeah. I used to use this argument a lot, too. But that's like saying: if your harness isn't secure, then why bother with an add

Re: How to hide the keystorePass at the server.xml

2006-05-30 Thread Shankar Unni
Robert Harper wrote: One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. Yeah, yeah. I used to use this argument a lot, too. But that's like saying: if your harness isn't secure, then why bother with an additional safety net bel

a real solution about maxThreads??

2006-05-30 Thread antarix
Hi there!!! Does anybody know about a solution about this message in log: SEVERE : All threads(*) are currently busy * Increase maxThreads or check servlet status I have been searching on google, but I can´t find a solution. I use Apache-Tomcat 5.5.14, RHEL3,JDK1.5.0 Tnxs in advance!!!

Re: ClassNotFoundException after successful Servlet run

2006-05-30 Thread Marc Farrow
the CODEBASE tag is for use of the base to where the code is located. This should be URL or even relative to your html page. Also, the CODE tag needs to be the fully package qualified name of the class such as com.mycompany.mypackage.MyClass.class (I think the .class extension could be left off)

ClassNotFoundException after successful Servlet run

2006-05-30 Thread Eric Harbeston
Greetings, For the past few-several days I have been scouring the internet and this list extensively to no avail. First I'll describe the error and then give as much detail as possible about the structure of our web-app project as possible. Before I came to work on this project, it was running

RE: Tomcat 5.5 Context Files

2006-05-30 Thread Chris Walker
Hi Tom, I'm afraid the message you replied to contains the entirety of my knowledge on this subject. I think the most important thing for this setup is to make sure there are no auto-deployed webapps, so the appBase for all servers should be an empty directory. I've had problems in the past when

RE: How to hide the keystorePass at the server.xml

2006-05-30 Thread Robert Harper
One thing to think of is that if you have to do that to protect it, then everything else on that system is suspect. You should have your settings so that the user cannot browse your computer and they can not get to that area. That will also secure the rest of your file system. If they can read the

How to hide the keystorePass at the server.xml

2006-05-30 Thread Dickson Lam \(dilam\)
Hi, I am using Tomcat 5.5.16 window version. When I configure Tomcat to use SSL, I need to put the "keystorePass" password on the Tomcat server.xml file which is in plain text format. Is it anyway I can hide the keystore password from the server.xml? or configure Tomcat to read in an encry

Realm Tag in webappnamecontext.xml

2006-05-30 Thread Marc Farrow
I have a context with the following Realm tag. However, when I navigate to the page, the page pulls up without any type of authentication. What am I missing? I have read the "Realm Configuration HOW-TO" at apache.org. -- Marc Farrow

Re: I cannot not compile

2006-05-30 Thread Guido Schoepp
[EMAIL PROTECTED] wrote: I don't see any errors in the console but I can not locate any *.class files. I am creating an application with a login form, action and jsp. I ask Eclipse to build the project but I cannot locate these files. Is there somewhere I need to be looking for error messages?

Tomcat 5.0.28 can't init TLS after restart

2006-05-30 Thread Glenn Holliday
Tomcat 5.0.28 on Solaris 9 has been correctly serving Web apps using both http and https. Then, after the Sun computer was shut down and restarted, Tomcat failed to serve https requests. It appears it could not initialize the https connector. It continues to serve http requests normally. Before t

Realm and Session

2006-05-30 Thread Guido Schoepp
Hi, is it possible to a access the Session object out of a RealmBase class? I'd like to write a Realm class that authenticates against another web site. This web site works with a session cookie which is set after authentication. So I'd like to authenticate with a HttpClient object which shou

Re: TC 5.5.17 problem with multiple webapps using JCE provider and security manager

2006-05-30 Thread David Wall
Thought I'd post this one more time since doing so over the U.S. holiday weekend likely left a lot of folks out of the loop... I'm either left with running my webapps without a security manager, or staying on an older Tomcat that has other bugs that I need resolved by 5.5.17 (clearing of liste

Troubleshooting unexpected Tomcat shutdown

2006-05-30 Thread Dean Maki
Greetings, I'm hoping someone here can give me a pointer or two in troubleshooting an unexpected Tomcat shutdown. I have been searching the mailing list archives and googling (web and groups) for hints on this, but so far with no success. Sometime between March 6 and April 11, I see the follow

Re: Is there any documentation of JULI anywhere?

2006-05-30 Thread David Goodenough
On Tuesday 30 May 2006 13:32, David Goodenough wrote: > I am trying to work out how to tailor the log entries going into the > Catalina log files, and am having no luck at all. > > I am using Tomcat 5.5.17. > > I have looked around for documentation of JULI, but I can find nothing > which makes sen

Re: Tomcat 5.5 Context Files

2006-05-30 Thread Tom Miller
Chris, I have been looking for the same solution. Can you share what you had learn? Would you able to put together a howto on this topic? I think it will be a great benefit to the rest of us. Thanks much, Tom Original message >Date: Tue, 30 May 2006 13:57:18 +0100 (BST) >From: Ch

Unable to retrieve list of portlets. Make sure tomcat-users.xml has been edited according to the UserGuide.

2006-05-30 Thread keyur sheth
Hi everybody, I have successfully implemented the SSL and I am also able to redirect the URL from http to https. But doing that on my portal I am getting the error which is below mentioned:- Unable to retrieve list of portlets. Make sure tomcat-users.xml has been e

Re: Help with Tomcat & MySQL using JNDI

2006-05-30 Thread Martin Gainty
Well ..sort of The recommended way of creating a web application is to create a webapp .war and deploy it to %TOMCAT_HOME%\webapps once you accomplish this objective Tomcat will note the new war and create folder %TOMCAT_HOME\webapps\NameOfWebApplicationWar wait a minute ..how does Tomcat handl

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Markus Schönhaber
Mark F wrote: > 30/05/2006 08:23:18 3057 jsvc.exec debug: user changed to 'tomcat' > 30/05/2006 08:23:18 3057 jsvc.exec debug: Using specific JVM in > /usr/lib/java/jre/lib/i386/server/libjvm.so 30/05/2006 08:23:18 3057 > jsvc.exec debug: Attemtping to load library > /usr/lib/java/jre/lib/i386/serv

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Mladen Adamovic
[EMAIL PROTECTED] wrote: I want Tomcat run this default servlet open once that socket connect to Tomcat Do redirect from index.jsp to your servlet. Do something like : <% String redirectURL = "http://hostname.com/";; response.sendRedirect(redirectURL); %> p.s. you should lear

Re: Help with Tomcat & MySQL using JNDI

2006-05-30 Thread Stephen More
I think I have identified the problem. I deployed a 'broken' HelloWorld war file to tomcat by coping it to apache-tomcat-5.5.17/webapps. Tomcat then expanded it, so there is now both a war file and a expanded directory structure. In all of my attempts to fix the code, I was modifying the code wi

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Mladen Adamovic
Mark F wrote: Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user other than root (part of the reason for jsvc) and the server needs to run on port 80. I'm sure you can see the problem. You could try to run it on the port 8080 a

Re: jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Mark F
Mark F wrote: I have very specific requirements that have been imposed on me (and therefore the servers) that require me to use the following configuration: Tomcat 5.0.xx Sun Java 1.4.2 Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat

Re: I cannot not compile

2006-05-30 Thread Marc Farrow
This seems like a question for an Eclipse mailing list. Tomcat is not a compiler. On 5/30/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I don't see any errors in the console but I can not locate any *.class files. I am creating an application with a login form, action and jsp. I ask Ec

RE: mod_jk.so problems going from Apache 2.0.55 to Apache 2.2.2

2006-05-30 Thread Fenlason, Josh
Any reason you can't use mod_proxy_ajp? I believe that is the recommended method with 2.2.x. , Josh. > -Original Message- > From: raorba [mailto:[EMAIL PROTECTED] > Sent: Monday, May 29, 2006 7:18 PM > To: users@tomcat.apache.org > Subject: Re: mod_jk.so problems going from Apache 2.0.5

Re: problem in GC tuning

2006-05-30 Thread charly
But the impact of GC logging on the performance should be low outside of the GC cycles ? Isn't it? Karl-heinz - Original Message - From: "Michael Echerer" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, May 26, 2006 4:44 PM Subject: Re: problem in GC tuning 2) Do writi

Re: Tomcat 5.5 Context Files

2006-05-30 Thread Chris Walker
After following up the advice from David and others, I think I've got the configuration I need. I'm posting a minimal version of the setup as it seems to me that this might be a fairly common requirement: - I'm running two applications on a single server; each has its own domain name. - Within

I cannot not compile

2006-05-30 Thread carrie . latimer
I don't see any errors in the console but I can not locate any *.class files. I am creating an application with a login form, action and jsp. I ask Eclipse to build the project but I cannot locate these files. Is there somewhere I need to be looking for error messages? I also am unsure how to r

jsvc, Tomcat 5.0.30, Java 1.4.2, X86_64

2006-05-30 Thread Mark F
I have very specific requirements that have been imposed on me (and therefore the servers) that require me to use the following configuration: Tomcat 5.0.xx Sun Java 1.4.2 Applications will be running on a Opteron 275 x86_64 server. I also have the requirement of running tomcat as a user othe

Is there any documentation of JULI anywhere?

2006-05-30 Thread David Goodenough
I am trying to work out how to tailor the log entries going into the Catalina log files, and am having no luck at all. I am using Tomcat 5.5.17. I have looked around for documentation of JULI, but I can find nothing which makes sense. There is a comment at the end of the logging,properties fi

Re: Customizing error pages

2006-05-30 Thread Alberto Montoya
Thank you for the help and for the quick answer :) 2006/5/30, Edoardo Panfili <[EMAIL PROTECTED]>: Alberto Montoya wrote: > Hello! > > It's possible to Customize error pages on Tomcat? I think that you can do > that in Apache but I couldn't find in in Tomcat. It's possible. You can put some in

Re: Customizing error pages

2006-05-30 Thread Edoardo Panfili
Alberto Montoya wrote: Hello! It's possible to Customize error pages on Tomcat? I think that you can do that in Apache but I couldn't find in in Tomcat. It's possible. You can put some information like ---

Customizing error pages

2006-05-30 Thread Alberto Montoya
Hello! It's possible to Customize error pages on Tomcat? I think that you can do that in Apache but I couldn't find in in Tomcat. Thanks in advance Alberto **

Queue full page

2006-05-30 Thread Magne Skjeret
Hi I have been reading documentation and searching on the web for a solution for my problem, but I have come up with nothing. I want to give a request queue full message to the user. I have looked into the error-page tag in web.xml, but the page must be relative to the current context. I do not

Re: Tomcat 5.5 Context Files

2006-05-30 Thread David Smith
Some thoughts: 1. The naming of all the associated files with your webapp should be consistent with the path attribute of the context element (assuming ibo4 is it's name): Context xml file should be named ibo4.xml The webapp's directory should be named ibo4 If deploying from a .war fil

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread David Smith
Could you please clarify something for me? You say you expect the servlet to run when the socket is opened. Did you send a request or are you really expecting the servlet to execute on socket open? The servlet won't be aware of the client until a request is made and tomcat has a chance to route

Re: Enterprise level Management & Monitoring of Tomcat Servers

2006-05-30 Thread Bruno Georges
Hi Narendra, Look at: JBoss Operation Network. http://www.jboss.com/services/jbossnetwork With Best Regards Bruno Georges Glencore International AG Tel. +41 41 709 3204 Fax +41 41 709 3000 |-+---> | | "Narendra, | | | Anan

Enterprise level Management & Monitoring of Tomcat Servers

2006-05-30 Thread Narendra, Anand
Hi, I like to know of "Tomcat Management & Monitoring Softwares". This should be able to manage Tomcat instances at Enterprise level. Looking for immediate response! Thanks in advance! Aananda

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: > My problem is that my servlet running at Tomcat 5.05.17 and my servlet is > the default servlet, now i am trying to call this servlet by a Java > program that open socket connection... I want Tomcat run this default > servlet once that socket connect to Tomcat... Now the

best transaction manager and connection pool for tomcat

2006-05-30 Thread Vivek Mohan
Hi all, I'm using Tomcat 4 for my web application (don't ask me the reason why) and I was trying to evaluate different transaction managers and connection pool managers. The db is on MS Sql Server 2000. We've tried using JOTM + XAPool but we've run into a lot of connection closure issues. Is the

Re: Tomcat 5.5 Context Files

2006-05-30 Thread Chris Walker
Thanks Mark. I noticed that, but my objective is to store configuration parameters that are platform-specific outside the webapp. The stuff in the server's context definitions nicely overrides anything in web.xml. Chris --- Mark Petrovic <[EMAIL PROTECTED]> wrote: > Hi. > > Context fragments

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Ahmed . AlGhafri
My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet once that socket connect to Tomcat... Now the connection is done but Tomca

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Ahmed . AlGhafri
My problem is that my servlet running at Tomcat 5.05.17 and my servlet is the default servlet, now i am trying to call this servlet by a Java program that open socket connection... I want Tomcat run this default servlet open once that socket connect to Tomcat Markus Schönhaber <[EMAIL PROTE

Re: Socket Servlet using Tomcat 5.5.17

2006-05-30 Thread Markus Schönhaber
[EMAIL PROTECTED] wrote: > How i can let Tomcat 5.5.27 listen to any socket connection from the > client and handle it ?? By starting it. If this answer doesn't seem helpful, you should propably explain a little more precisely what you are trying to achieve. Regards mks ---

Re: Starting tomcat from different directory.

2006-05-30 Thread Markus Schönhaber
Ayusman dikshit wrote: > If I am creating a web-application need I put it only in the webapps > folder? Yes. > Can I put it somewhere else in my directory structure (out of the usual > tomcat installation directory) and point tomcat to consider this as > > a valid web application. Yes. Setting a