Re: Apache Tomcat 6.0 loads blank page

2009-02-03 Thread Sameer Acharya
Did you try the synaptic package manager in Ubuntu ? I dont know which version of Ubuntu you have but mine did not have Tomcat or Apache HTTP on it when I installed, but might be I had dome somethings different. -Sameer --- On Mon, 2/2/09, zia mohades wrote: From: zia mohades Subject: Re: A

Re: Able to access URL without port

2009-02-03 Thread Sameer Acharya
By default browsers route all http requests to port 80, so if you have Apache http in front of TC then this will be true. -Sameer http://in.groups.yahoo.com/group/indiaenergy/join --- On Tue, 2/3/09, randhir.si...@elitecore.com wrote: From: randhir.si...@elitecore.com Subject: Able to access

Re: Possible virus uploaded to Tomcat 5.5.3 - SOLVED

2008-08-10 Thread Sameer Acharya
Just a couple of questions on this. 1. I read your mail exchange and it seems that the OP has mentioned no Manager app was installed, but your analysis indicates that the rogue app was uploaded through manager app ?. 2. Normally firewalls keep a log of port activity so was this activity not det

Re: Unable to view tomcat6.0.16 admin in Mac

2008-08-05 Thread Sameer Acharya
If there is a group planning to take up this task(ie. maintaining/re-writing admin. app.) Iam willing to help out. I had not used it much but I think an admin and configuration utility for Tomcat would be useful especially for novice users. -Sameer --- On Tue, 8/5/08, David Smith <[EMAIL PROT

Re: Problem with Displaying Result of a MySQL Join in Tomcat

2008-08-03 Thread Sameer Acharya
Error seems to originate from the MySQL JDBC driver, weird if you say it was working earlier. Can you write a simple Java class to use the same driver to execute the same query and run it with same JDK version under which your Tomcat is running, see if its working or still throwing the error.

Re: Would like to monitor memory use offline

2008-08-03 Thread Sameer Acharya
You can write a simple JSP which will run a freeMemory/totalMemory call in your JVM and possibly send a mail/log when the limits are reached. You could set a refresh interval and have this page refresh say every 5 minutes in your browser. Alternatively you can tweak with the manager app code.

Re: example about deploy application from windows eclipse to linux Tomcat

2008-08-03 Thread Sameer Acharya
I have not used Eclipse so cant say about the same, Netbeans can build a war file (so Iam assuming Eclipse can do the same too) for a web project. You can just copy the war file into webapps folder of Tomcat if directory sharing is done else ftp it to that folder, depends on how your machines a

Re: Trying to mix db connection pooling on web and desktop applications

2008-07-22 Thread Sameer Acharya
As I see it you are mixing two different things, your web application will always run inside Tomcat server but your desktop application can be anywhere(not just on TC server). The simplest way to do this might be to write your own database connection helper class which would go to the context (

Re: DataSourceRealm documentation

2008-07-21 Thread Sameer Acharya
It means that on whichever database you are using to store your authentication information you need to create a user id and password for Tomcat to connect to it and then read the information. Your database doc. will give instructions on creating user/pass on it. For eg. you can create user/pas

Re: is it possible more than 1 tomcat in single system?

2008-07-14 Thread Sameer Acharya
How do you start them now ? I would think that if you are running the startup batch/cmd files then the easiest way would be to write one single batch/cmd file to kick off both the startup scripts from whatever locations they are installed. -Sameer --- On Mon, 7/14/08, Edi <[EMAIL PROTECTED]>

Re: Error HTTP 500 in war deployment

2008-07-09 Thread Sameer Acharya
Looks like your ISP's Tomcat installation is missing some jars . -Sameer --- On Thu, 7/10/08, Marcos <[EMAIL PROTECTED]> wrote: > From: Marcos <[EMAIL PROTECTED]> > Subject: Error HTTP 500 in war deployment > To: "Tomcat Users List" > Date: Thursday, July 10, 2008, 9:04 AM > Hi people. > > I

Re: Configuring DataSources using jsp: reload context.xml?

2008-07-08 Thread Sameer Acharya
That may work for new datasources but could create a problem for existing data sources specifically if they are already being used and have pooled connections. The existing pooled connections may be in use by the applications too. Restarting the tomcat after modifying datasource may be a better

RE: tomcat with jcaptcha

2008-07-07 Thread Sameer Acharya
Hi, Directories and Web Applications are different things. In case of Tomcat , a directory is created for each web application deployed on the server, all these go under the webapps directory. so for example you have 2 applications say app1 and app2 running inside Tomcat then you will see two d

Re: Any application which is use to detect tomcat memory leak problem

2008-06-22 Thread Sameer Acharya
One of the things I had done in my past projects was to run a thread which periodically executes the freeMemory /totalMemory methods on Runtime class in JVM, this will at least tell you how the memory is utilised, but pinpointing the leak may need a commercial tool. -Sameer --- On Mon, 6/23/08

Re: How can applications be isolated in Tomcat?

2008-04-04 Thread Sameer Acharya
I would suggest putting the non-production environments on a different Tomcat instance preferably on a different machine. -Sameer --- Pablo Lopez <[EMAIL PROTECTED]> wrote: > Hi, > > I'm currently putting together a solution for an > off-the-shelf document > management application that requires

Re: Application context configuration & datasources

2008-03-26 Thread Sameer Acharya
Where is your Resource definition ? seems like the Driver class name and url is not defined. -Sameer --- Charl Gerber <[EMAIL PROTECTED]> wrote: > I have 4 Tomcat environments for the same > application: > two development machines, 1 test and 1 production. > Development machines are Windows 2000

Re: Tomcat hangs on SATA Linux server

2008-03-20 Thread Sameer Acharya
Is this just with Tomcat or does it happen with other apps too ? Chances are that your device driver may be having issues and hence slowing down the system in between. -Sameer --- Rick Fincher <[EMAIL PROTECTED]> wrote: > Hi All, > > We have a web app running on Tomcat that accesses > Oracle v

Re: Java Mail Inside Tomcat

2008-03-14 Thread Sameer Acharya
Can you give the line number as to where the error is happening. I found this link on google search you can read thru the same it describes similar problems. We have not had problems using java mail under tomcat but we dont use imap. http://forum.java.sun.com/thread.jspa?threadID=761635&messageID=4

Re: Can pl anybody help me with org.apache.jasper.JasperException: /jsp/ballmember/Test.jsp(5,34) equal symbol expected

2008-03-03 Thread Sameer Acharya
Open the jsp code in a programmers editor and check the syntax , specifically on the line number mentioned by the compiler. This looks like a syntax issue. -Sameer --- Sneha Manohar <[EMAIL PROTECTED]> wrote: > > org.apache.jasper.JasperException: > /jsp/ballmember/Test.jsp(5,34) equal symbol

Re: How to run a .exe file from a web application in tomcat

2007-03-22 Thread Sameer Acharya
You can specify the correct mime type and hopefully your browser will launch the proper application. A better approach would be to write a Java applet which will allow the user to do modifications to your file/s. -Sameer --- Jitendra Ch <[EMAIL PROTECTED]> wrote: > Hi to allI am new member

Re: Need Help w. Servlets And The JDBC.

2006-09-21 Thread Sameer Acharya
You can configure a tomcat datasource to get a connection or you can load your database driver and get a connection object. The advantage with using tomcat datasource is that it will handle connection pooling for you. The tomcat docs explain how to define a datasource (you have to do it in contex

RE: Database connection pooling in Tomcat 5.5

2006-09-20 Thread Sameer Acharya
I have a datasource defined similar to yours I get this error when I try to use ds.getConnection("username", "password"); but if I just use ds.getConnection(); it works fine. -Sameer Darren Hall <[EMAIL PROTECTED]> wrote: Is there any other information I can supply to help people help me unde

Re: Database connection pooling in Tomcat 5.5

2006-09-18 Thread Sameer Acharya
Instead of defining the username and password as attributes have you tried defining them as resource parameters ? just a hunch .. username myoracleuser -Sameer Parsons Technical Services <[EMAIL PROTECTED]> wrote: Try this: http://www.oracle.com/technology/tech/java/sqlj_jdbc/

Re: tomcat Connection pooling

2006-09-17 Thread Sameer Acharya
Tomcat Datasources should be able to take care of connection pooling for you unless you have a specific requirement for which you need your own pool. The Datasource configuration/usage etc. is explained in tomcat docs. -Sameer prakash shanmugam <[EMAIL PROTECTED]> wrote: hi, i am using tomcat4

Re: Executing binary from Servlet

2006-09-13 Thread Sameer Acharya
ht cause this runtime.exec() to throw a "cannot execute" error sometimes, but not others. It seems possible that it is not an error with Tomcat, as otherwise why would it not be consistently failing? Cheers Mark Sameer Acharya wrote: > Doesent look like a SecurityManager issue cos th

Re: Executing binary from Servlet

2006-09-12 Thread Sameer Acharya
app server instead and seeing if that avoids this problem. Its all very odd! Thanks Mark Santosh Puranshettiwar wrote: > I agree with David. This does not seem to be a SecurityManager > problem. Does your code run properly as a normal executable program > (with main())? > > Sameer

Re: Executing binary from Servlet

2006-09-12 Thread Sameer Acharya
Have you tried adding following to your web app permissions in policy file permission java.lang.RuntimePermission "java.lang.Runtime"; -Sameer Mark HB <[EMAIL PROTECTED]> wrote: Hi, My apologies for the confusion, but my previous claim to have sorted this problem out is now incorrect. It see

Re: need help with .startup.sh

2006-09-04 Thread Sameer Acharya
You will have to look at catalina.sh and check how these two are being set $JAVA_OPTS $CATALINA_OPTS -Sameer Lee Chalupa <[EMAIL PROTECTED]> wrote: Hello: I need help figuring out how to modify my tomcat deployment so when the JVM starts it starts with a -server option. There seems to be a bug

Re: Why cannot I put JSVC into a shell script to run

2006-09-01 Thread Sameer Acharya
Are you saying that when you run a command from console it works but when you put it into a shell script and try and run the script it doesnt work ? Are you using the same command from console , did you try and do a ps to see if tomcat has started/not started ? Putting the entire command on one

javax.servlet.ServletException: Cannot create resource instance

2006-08-31 Thread Sameer Acharya
Hi, Iam using Tomcat 5.5.9 and trying to define a bean resource and get an instance of the same inside a jsp thru JNDI lookup,Iam getting the following exception in the browser : - javax.servlet.ServletException: Cannot create resource instance org.apache.jasper.runtime.PageContextImp

Re: How to do the precompilation on jsp

2006-08-03 Thread Sameer Acharya
My understanding is that you need to pre-compile jsp's from your build before you start using the application right ? You can write a simple script to hit all your jsp's ( need to start tomcat first), this will precompile your jsp's. -Sameer Raju Balugu <[EMAIL PROTECTED]> wrote: Hi All, We are

Re: Install on XP Home edition

2006-08-03 Thread Sameer Acharya
Open a command prompt and then try manually running the Tomcat startup batch file, you should be able to see the error message. Post the same here. -Sameer Lou Caudell <[EMAIL PROTECTED]> wrote: McRaven, Brian wrote: > I installed Tomcat 5.5.17 on my home computer so that I can test my > project

Re: automatically detecting if HTTPS is supported

2006-06-25 Thread Sameer Acharya
You should be able to do a isSecure() on the request object to check if the request is thru' secure channel. -Sameer Jason Novotny <[EMAIL PROTECTED]> wrote: Hi, I have a JSP that does a form submission, and I'm wondering if there's any way I can detect if HTTPS is supported so that I can

Re: query

2006-06-25 Thread Sameer Acharya
veena v <[EMAIL PROTECTED]> wrote: There is no error message. Tomcat does start and automatically shuts down. On 6/22/06, Sameer Acharya wrote: > > What are the error messages you are seeing during tomcat startup ? Or try > giving the log. > -Sameer > > veena v wrote: I h

Re: query

2006-06-22 Thread Sameer Acharya
What are the error messages you are seeing during tomcat startup ? Or try giving the log. -Sameer veena v <[EMAIL PROTECTED]> wrote: I have windows xp installed on my system. I installed tomcat 4.1 and it was working properly. But after installing oracle 9i tomcat is not working though i have in

Re: When does the "MarkSweepCompact" Garbage Collector perform GC?

2006-05-29 Thread Sameer Acharya
Check out this link might answer few of your queries. http://java.sun.com/docs/hotspot/gc1.4.2/faq.html -Sameer Benjamin Chu <[EMAIL PROTECTED]> wrote: Hello! Now I am using the jconsole to monitor the heap memory usage of the tomcat 5.5. I've constructed a testbed to test the performance of t

Re: Tomcat Memory Leak

2006-05-24 Thread Sameer Acharya
Did you try explicitly setting all those Hashmaps/Hashtables references to null. Since you already mentioned that your are taking care of all your Resultsets etc that doesent sound like an issue. I tried a small jsp example where I created a hashtable but never explicitly dereference it and the f

Re: Tomcat 5.0.28, Socket hanging on sending 20KB data for 16 minutes

2006-05-19 Thread Sameer Acharya
Try synchronizing the code that uses Jfreechart classes. -Sameer Kumar Pandey <[EMAIL PROTECTED]> wrote: Hi I'm using Tomcat 5.0.26 that comes with JBoss 3.2.5 with default configurations A servlet creates pie/bar charts using JFreeChart. This is refreshed every 5 seconds via javascript refres