Re: query

2006-06-26 Thread veena v
Yes, I had installed some web app server. On 6/24/06, Martin Gainty <[EMAIL PROTECTED]> wrote: Venna- It appears that you *may have* installed another webapp server- When you installed Oracle do you remember installing oc4j or any of the Oracle App Servers along with the DB? Martin -- This

Re: query

2006-06-26 Thread veena v
even when i run tomcat from command prompt, tomcat does start and shuts down automatically. And there are no errors on command prompt, it just shows the environment variables that are set. On 6/25/06, Sameer Acharya <[EMAIL PROTECTED]> wrote: Oracle also installs its own jdk and may have chan

Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
Hi there! I'm making a forum application with JSP and Servlets, and I wanted to give to the final user the opportunity to upload an avatar to be displayed into his posts. I found the Commons fileUpload library and it works quite well, except for a thing: I can't save the image on the server's file

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread David Delbecq
Do not write data in the webapplication folder, this folder is supposed to be overwritten when webapplication is redeployed and datas will be lost. Instead choose a folder in system you dedicate to your webapplication datas and store your avatars there. Or best use a database :) Andrea S

RE: query

2006-06-26 Thread Sanjeev Kumar Bhat, Noida
What all environment variables does it show? Check JAVA_HOME variable and make sure it exists and points to the right version of JDK. Do you see anything in the localhost_logs file created by tomcat in the logs folder? Sanjeev From: veena v [mailto:[EMAIL P

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Hi all, please can someone confirm whether I need to clarify anything in my question or take a different approach since I have had no replies and am anxious to make sure I am doing all I can to seek help in the correct way. Please correct me if my approach is wrong! many thanks Iain I D

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
Hi David and thanks for the quick reply. I'll try to use the database to store the avatars but... I don't know how I can show those images in my JSP pages :S Can you please tell me how to do that? Sorry for the noobie question... :) Andrea 2006/6/26, David Delbecq <[EMAIL PROTECTED]>: Do not

Re: Own Connector for Tomcat

2006-06-26 Thread Daniela Piacenti
Thanks a lot, Richard, my embedded Tomcat works now with Java 1.4. Richard Mixon schrieb: Tomcat 5.5 works fine with Java 1.4 - just be sure and download the 'JDK 1.4 Compatability Package:' at this link: http://tomcat.apache.org/download-55.cgi It is all of 1.6MB in size. Just follow

painful slow start up with replication

2006-06-26 Thread Mark Hagger
Hi, I'm running a tomcat cluster with in-memory replication, two nodes in fact, with around 15 webapps all of which are being replicated, and I'm slightly surprised by the behaviour of the system when I start both nodes simultaneously up from cold. Basically as each node starts up it deploys the

RE: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread Tejas Bavishi
Hi Not sure if this is helpful to you. I had found this URL useful. The URL shows how to setup a JNDI DataSource in Tomcat. http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html Also, check the Java Servlet specification for more information. Regards Tejas -Original M

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Sean O'Reilly
On Fri, 23 Jun 2006 16:43:16 +0100 Pid <[EMAIL PROTECTED]> wrote: > > > Sean O'Reilly wrote: > > On Fri, 23 Jun 2006 09:05:18 -0500 > > Filip Hanik - Dev Lists <[EMAIL PROTECTED]> wrote: > > I am sure it would be easier to use mod_proxy_balancer and > > mod_proxy_ajp but can't find any documenta

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
(I've manually configured the tcpListenAddress to be the node's main IP. Obviously it's not 000.000.000.00.) I've specified JvmRouteBinderValve, JvmRouteSessionIDBinderListener and ClusterSessionListener. Sean O'Reilly wrote: > On Fri, 23 Jun 200

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
Sean O'Reilly wrote: > Still having some problems with load balancing and state replication > neither of which appear to be working. If i shutdown tomcat on the > main server i can still get to the application directory from one of > the other servers but get a 503 error if i try to run any of

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
One way is to send back a reference to a servlet that knows how to retrieve the image. I.e., in your .jsp, say: Where 1234 is the primary key (ID) field of the avatar in the DB. Have the servlet set the response type to image/jpeg or image/png or whatever is appropriate, and then stream the by

Re: what happens with the content.xml file

2006-06-26 Thread tom ot
Hi Pid, thanks again for your answer. I'm not sure, but is the way I'd like to deploy my .war files so abnormal? :-) or how do you all know what version of an application actually is deployed? Btw, I'm not sure but was that in Tomcat 5.0 different, because I asked a kollegue of mine if he has

Re: When we restarted tomcat, we are getting the below error while connecting to MySql database

2006-06-26 Thread David Smith
Take a look at the user accounts in MySQL. Some things to consider: 1. MySQL authenticates clients based on the host as well as username and password. Login to mysql manually and run this: use mysql ; select user, host from user where user='root' ; If the host column has '%' or 'localhost.l

Re: log4j warning: Please initialize the log4j system properly

2006-06-26 Thread David Smith
[CATALINA_HOME]/common/classes/log4j.properties: log4j.rootLogger=ERROR, R log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=C:\Program Files\Apache Software Foundation\Tomcat 5.5\logs\tomcat.log log4j.appender.R.MaxFileSize=10MB log4j.appender.R.MaxBackupIndex=10 l

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Sean O'Reilly
On Mon, 26 Jun 2006 11:46:43 +0100 Pid <[EMAIL PROTECTED]> wrote: > > > Sean O'Reilly wrote: > > > Still having some problems with load balancing and state replication > > neither of which appear to be working. If i shutdown tomcat on the > > main server i can still get to the application direc

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread Martin Gainty
So if I understand ..Your 2 separate jdbc connections are acquiring Data .. but then once both resultsets are acquired I would suggest you must programatically merging the contents before sending the (presumably HTML) formatted info back via the Response stream Do you have any requirements on

Re: Tomcat session replication/cluster (mod_proxy_ajp)

2006-06-26 Thread Pid
could well be. depends on your setup... > > WARNING: Unable to asynchronously send session with > id=[88798A041EC3F104045E5C22B47ADE77.jvm1-1151322148155] - message will > be ignored. java.net.Connect

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Hi Tejas, thanks for the suggestions. Had already read over http://tomcat.apache.org/tomcat-4.1-doc/jndi-datasource-examples-howto.html without finding the answers but have re-read in case. No luck. Will go over the Java Servlet spec again soon. Iain Tejas Bavishi wrote: Hi Not sure if

Re: query

2006-06-26 Thread Martin Gainty
In that scenario I would un-install the First webapp server (OracleAppServer?) as it seems there is a port conflict (sounds like port 8080 was acquired by OracleAppServer) First WebAppServer (assume this is OracleAppServer) has acquired the ports that your second webapp server requires.. and the

Re: what happens with the content.xml file

2006-06-26 Thread David Smith
I'm not going to claim agreement with the developers on the behavior of the deploy path. I will say you could put version info into a element of the WEB-INF/web.xml file if that's you're goal and it'll show up in the manager webapp without butchering your url. --David tom ot wrote: Hi Pid

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Hi Martin, /"So if I understand ..Your 2 separate jdbc connections are acquiring Data .. " / That's what I'm aiming at. The idea (just to begin with) is to print out the contents of two very small test tables from different databases. I'm able to use each separately but once I try to use bot

Need Help

2006-06-26 Thread Ravichandran Gopinath , Tidel Park - Chennai
hi Tomcat experts, I am a fresher. Just now joined in HCL. I am basically very poor in Server side. Even from my first day itself, they spoke something technically about tomcat. I dont know anything about tomcat. But i am doing projects with the help of tomcat only. Will you anyone please send me

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
Hi Tim, and thanks for your answer. I did as you said and I made a servlet that handles the users' avatars, but all I can get from the servlet is a blank image. Here's the servlet code: -BEGIN OF FILE- package servlet; import java.io.IOException; import javax.servlet.ServletExc

Re: Need Help

2006-06-26 Thread vineesh kumar
Go to apache site jakarta.apache.org u will get all the information about the tomcat server and other technologies related.Also try a googlwe search u can get a hell lot of books bout tomcat in the market.but better u read the documents at the apache site On 6/26/06, Ravichandran Gopi

Re: Need Help

2006-06-26 Thread Kaushal Shriyan
On 6/26/06, vineesh kumar <[EMAIL PROTECTED]> wrote: Go to apache site jakarta.apache.org u will get all the information about the tomcat server and other technologies related.Also try a googlwe search u can get a hell lot of books bout tomcat in the market.but better u read the docum

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Can anyone help further? I've now skimmed the Java Servlet spec in all the areas I could think to be relevant but without success. Can anyone give me an example of where two different resources of the same type might be referenced for access? Maybe if I could see how two other resources (not M

PRoblems with tomcat isapi redirect at Win 64 bits x86

2006-06-26 Thread Ricardo Augusto
Hi, I need to setup an enviroment using: - Windows 2003 Enterprise x64 - IIS - Apache Tomcat 5.0 ISAPI redirect can´t be configured with IIS at this enviroment. We tried many times and a lot of versions ( 32 and 64 bits). Can anyone help me about this issue ? Is it possible run ASP pages a

Re: Tomcat creating two threads for one request

2006-06-26 Thread ametsi
The problem seems to occur by a double submission of the Post. That is, I found that except of the “submit” button of the form that I use which invokes the jsp, I am also using a small java script, which accidentally submits the Post for one more time. I changed the java script and now it seems th

many No Referrers in logs

2006-06-26 Thread Robert Kudyba
We have our server.xml file set w/ the following entry: Valve className="org.apache.catalina.valves.AccessLogValve" directory="../logs" prefix="ws_access_log." suffix=".txt" pattern="combined" However, there are still many log entries showing no referrers. Some are from user spiders such as the fo

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread Brian Buchanan
-Original Message- From: I D B Major <[EMAIL PROTECTED]> Date: Mon, 26 Jun 2006 09:44:37 +0100 > Hi all, > > please can someone confirm whether I need to clarify anything in my > question or take a different approach since I have had no replies and > am > anxious to make sure I am doi

Re: many No Referrers in logs

2006-06-26 Thread David Smith
That usually indicates a direct access either by typing in the URL or using a bookmark. --David Robert Kudyba wrote: We have our server.xml file set w/ the following entry: Valve className="org.apache.catalina.valves.AccessLogValve" directory="../logs" prefix="ws_access_log." suffix=".txt" pa

Re: many No Referrers in logs

2006-06-26 Thread Markus Schönhaber
Robert Kudyba wrote: > We have our server.xml file set w/ the following entry: > Valve className="org.apache.catalina.valves.AccessLogValve" > directory="../logs" prefix="ws_access_log." suffix=".txt" > pattern="combined" > > However, there are still many log entries showing no referrers. Some are

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Hi Brian, many thanks for the suggestions, I'm sure I'm now close, but I'm not quite out of the trees yet. I have looked up the spec and followed your suggestion to specify the datasource and I have changed one of the context-params to simply dataSource. This means I now no longer get the sam

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

2006-06-26 Thread jiawei24
could you send me a copy too ? thank you very much... My email is [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mod_jk.so-problems-going-from-Apache-2.0.55-to-Apache-2.2.2-t1660137.html#a5047839 Sent from the Tomcat - User forum at Nabble.com.

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Hi again, Having renamed both the context-params I get the following error org.apache.jasper.JasperException: Unable to get connection, DataSource invalid: "java.lang.NullPointerException" Which sort of implies that the default name of 'javax.servlet.jsp.jstl.sql.dataSource' must be used on

Re: Problem accessing two McKoi databases from Tomcat

2006-06-26 Thread I D B Major
Brian many thanks problem solved - I had changed server.xml to show that the Resource jdbc/mydb was of type type="DataSource" not type="javax.sql.DataSource" ! This solved it now works and shows output from both databases. Many, many thanks! Cheers, Iain I D B Major wrote: Hi again, H

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

2006-06-26 Thread harold62
please could you send me a copy of this file my email is [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/mod_jk.so-problems-going-from-Apache-2.0.55-to-Apache-2.2.2-t1660137.html#a5048166 Sent from the Tomcat - User forum at Nabble.com.

RE: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Tim Lucia
The servlet looks OK -- I didn't compile or run it or anything. When you say a blank image -- are you requesting the servlet URL directly from the browser? I'd snoop on the headers and see what comes back. It sounds like it got a 404 or some other error. 1. Check http://your-host/path/.../servl

Re: many No Referrers in logs

2006-06-26 Thread Jon Wingfield
Additionally, many client-side Security/Anti-Virus software packages automatically remove the referer header from requests. Markus Schönhaber wrote: Robert Kudyba wrote: We have our server.xml file set w/ the following entry: Valve className="org.apache.catalina.valves.AccessLogValve" director

Out of Memory Error

2006-06-26 Thread Marco Aurélio Seraphim da Silva
Hi folks, I'm using Tomcat 5.0.28 with JVM 1.4.2 (running only Tomcat) under a Win 2000 Server, and it starts to give me the following message: java.lang.OutOfMemoryError. To prevent this I start Tomcat using this 2 parameters: -Xms 521m -Xmx 1024m But this isn't enought, some times when the ser

Re: many No Referrers in logs

2006-06-26 Thread Pid
Jon Wingfield wrote: > Additionally, many client-side Security/Anti-Virus software packages > automatically remove the referer header from requests. Because it improves security. Apparently. > Markus Schönhaber wrote: >> Robert Kudyba wrote: >>> We have our server.xml file set w/ the following

RE: Out of Memory Error

2006-06-26 Thread Gordon Smith
I'd suggest that you try the following JVM options in your Tomcat JAVA_OPTS environment variable (before deploying these changes in production, test these options in an isolated environment with stress testing tools if at all possible): JAVA_OPTS= -Xms1024m -Xmx1024m -verbose:gc -server - By ma

Re: Tomcat creating two threads for one request

2006-06-26 Thread Darryl Miles
ametsi wrote: The problem seems to occur by a double submission of the Post. That is, I found that except of the “submit” button of the form that I use which invokes the jsp, I am also using a small java script, which accidentally submits the Post for one more time. I changed the java script and

sort an array

2006-06-26 Thread password password
Hi, I have a servlet and in this servlet I have a problem when sort an array. If in Tomcat 5.5.4 (on windows) the order is very fast (about 2 seconds) , but in tomcat 5.5.9 is slower (about 25 seconds). I don't Know why the same code has diferent time. The code is the next. The array h

Re: sort an array

2006-06-26 Thread Sérgio Costa
Put them in a list and Collections.sort() them. All you'll need to do is create a Class with all those fields implementing Comparable, and implement the compareTo Method. hope it helps SC On 6/26/06, password password <[EMAIL PROTECTED]> wrote: Hi, I have a servlet and in this servlet I h

Need help deciphering eclipse console

2006-06-26 Thread carrie . latimer
What does this mean in my console? SeverityDescription ResourceIn Folder LocationCreation Time Id 1 The local variable name is never read LoginAction.java NewPatron/JavaSource/com/patron/Actionline 18 June 23, 2006 2:28:03 PM623 This is my first web project. Th

Re: Need help deciphering eclipse console

2006-06-26 Thread Pid
probably not the right mailing list for that. try: http://www.eclipse.org/community/ [EMAIL PROTECTED] wrote: > What does this mean in my console? > > SeverityDescription ResourceIn Folder LocationCreation Time > Id > 1 The local variable name is never read LoginAction.ja

Regarding JMX usage

2006-06-26 Thread Shimol Shah
Hi all, I want to integrate JMX support in the existing product. What I am lookign for is, if there is anyway in Tomcat where we can programmatically control other web applications from one webapp? I came across a ManagerServlet example that lets you start or stop a web application from within a

Flash and Javascript

2006-06-26 Thread Luke DeWitt
Howdy, Not sure if I should be doing this here, or with the Jetspeed2 User Mailing list, but I think here I could get a better understanding. I currently have a Flash file which uses the ExternalInterface.call function to call some JavaScript functions I have on a JSP page running in Jetspeed 2

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Andrea Salvi
Hi again Tim :) Thanks for the reply, but I'll be able to get my hands again on my project only tomorrow. I'll try what you say, then I'll mail you again. Cheers! Andrea 2006/6/26, Tim Lucia <[EMAIL PROTECTED]>: The servlet looks OK -- I didn't compile or run it or anything. When you say a bl

Session Replication without webapp replication

2006-06-26 Thread Solidguy
I have to loosely integrate another web application with mine so that both web-apps are require a single authentication. When the client clicks on a particular link in my application, the client gets transferred to the other application (and viceversa). The other application is bundled with its ow

Custom 404 page displays broken images w/ 'listings' set to false

2006-06-26 Thread Robert Kudyba
Running Tomcat 5.0 on Win 2003... I set the following in web.xml: debug 0 listings false 1 404 /404.html But when someone tried to list a directory, e.g., www.ourdomain.com/images, al

Re: Need help deciphering eclipse console

2006-06-26 Thread Len Popp
That looks like a Java compile error (or warning). It says there's a variable that is set but never used. -- Len On 6/26/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: What does this mean in my console? SeverityDescription ResourceIn Folder LocationCreation Time Id 1 The loc

Re: Out of Memory Error

2006-06-26 Thread Mladen Adamovic
Marco Aurélio Seraphim da Silva wrote: There's something I can do to reduce the amount of memory used by the JVM, or it's normal??? Actually, if you don't have many hits/day and if you don't have very memory consuming application you could avoid OutOfMemory exception by reducing -Xmx -Xms to

Re: Commons fileUpload: write to disk permission problem

2006-06-26 Thread Mladen Adamovic
Tim Lucia wrote: Have the servlet set the response type to image/jpeg or image/png or whatever is appropriate, and then stream the bytes out of the blob from the DB. Hm, that is something interesting what I need also. As I quickly wrote down that code it should be: byte[] mybytes=// get

Re: Need help deciphering eclipse console

2006-06-26 Thread Mladen Adamovic
[EMAIL PROTECTED] wrote: What does this mean in my console? 1 The local variable name is never read LoginAction.java This is my first web project. Thank you for your help. I think that is just warning that you have declared (and set) variable which you are never used in the program

Use of Catalina class loader

2006-06-26 Thread Shimol Shah
Hi all, As I have also mentioned in one of my previous emails, I want to start/stop a web application from another webapplication. In my efforts to achieve this, I came across ManagerServlet. All my efforts to bring the similar functions in my web-app failed. So I went through the Tomcat API doc

Re: Use of Catalina class loader

2006-06-26 Thread Troy Davidson
OK, Really simple/stupid question...why not use the Tomcat Manager to do this? You can have the controlling webapp open a url to the manager and have the controlling webapp pass a start/stop on the other webapp. Not sure if you looked at it or not, but had to ask. Here is a link for the ma

intercept and redirect to war file of my choosing(based on URL)

2006-06-26 Thread Dean Hiller
I have a url of this format http: Where no matter what is equal to, I would like to be able to direct the to tomcat/webapps/.war servlet. I have been trying to do this with a valve on the engine hoping I could modify the request URL before the tomcat engine decided which war file would ser

Re: Use of Catalina class loader

2006-06-26 Thread Shimol Shah
Hi Troy, Thanks a lot for your reply. I considered this option first before I delved deep into internals of ManagerServlet. The thing is, I can Redirect the request to the managerServlet to start or stop the service and it works as intended in a sense that it starts or stops the web-app. But the

JDBC jar in WEB-INF/lib?

2006-06-26 Thread wolverine my
Hi! The Tomcat's MySQL DBCP example mentioned that we have to copy the JDBC Driver's jar $CATALINA_HOME/common/lib. Do we allowed to copy the jar to WEB-INF/lib? And how can we do that? - To start a new topic, e-mail: users@tomc