Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Erik Melkersson
Are you starting it as non-root? Only root has the ability to bind to ports <1024. Regards /Erik Melkersson Faheem Mitha wrote: Hi, I can now get tomcat to run an ssl connector at port 8443 (Debian default), but doesn't work if I try to run it at 443. The log says: Apr 17, 2007 12:31:19 A

Tomcat Administration

2007-04-16 Thread Venkata Naveen
hi Hi iam unable to get the tomcat administration page. It is giving the message like "Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it. " where to get the tomcat admin package, and how to install that admin into the tomc

Re: sending smtp mail failure

2007-04-16 Thread Johnny Kewl
Ha ha now you need to read up on threads and background processing Very good description in the java tutorial from sun. The browser will wait so u need to start the email as a background process. The browser will come back instantly, and depending on what u doing, you will have to log t

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Faheem Mitha
Hi, I can now get tomcat to run an ssl connector at port 8443 (Debian default), but doesn't work if I try to run it at 443. The log says: Apr 17, 2007 12:31:19 AM org.apache.catalina.startup.Catalina start SEVERE: Catalina.start: LifecycleException: service.getName(): "Catalina"; Protocol

Re: Applet Help

2007-04-16 Thread dimitryous r.
If you are going to make several test with your applet you better off to turn off caching of all xxx.class and/or xxx.jar files in your JVM preferences ( Java 1.x.x Plugin Settings preferences). Once all is OK, turn it back to on. No need to switch your server on/off/on etc... Your server is j

Re: Applet Help

2007-04-16 Thread Martin Gainty
the applet wont be freshly downloaded as long as you have a ref in cache place some clear browser cache meta tags in e.g. Martin This email message and any files transmitted with it contain confidential information intended only for the person(s) to whom this email message is addressed. If

Re: Applet Help

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, jub jub jedi <[EMAIL PROTECTED]> wrote: I have made a simple website on Tomcat. I have an applet on it, and when I Which version of Tomcat? loaded it for the very first time, it turned out like I expected it to. I have made a modification that should be VERY obvious, but when I

Re: sending smtp mail failure

2007-04-16 Thread Mighty Tornado
Thanks for the input, I was able to actually send email from Outlook Express after changing port numbers and changing the host name to smtp.gmail.com instead of smtp.google.com. Now I encountered a different problem - when I attempt to send an email from a servlet running on my local XP machine

Applet Help

2007-04-16 Thread jub jub jedi
I have made a simple website on Tomcat. I have an applet on it, and when I loaded it for the very first time, it turned out like I expected it to. I have made a modification that should be VERY obvious, but when I reload the page, it shows the applet just like when it was first compiled. How do

Re: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r .
Hi Richard, As said earlier the only way to parse php files out of Apache Tomcat is something like: http://localhost:8080/myfile.jsp (Apache Tomcat 5.5.x) calling http://localhost/anyfile.php (Apache 1.3.xx with php/MySQL built-in) This means 2 servers running on the same machine. This way

Re: sending smtp mail failure

2007-04-16 Thread Len Popp
That's a timeout error. I was able to send an email thru smtp.google.com using Outlook Express, with no timeout error, so it looks like there's something wrong with either your email settings or your connection to gmail.com (firewall or something). Google has a troubleshooter program to diagnose

Re: sending smtp mail failure

2007-04-16 Thread Rashmi Rubdi
It looks like someone has solved this already: http://forum.java.sun.com/thread.jspa?forumID=43&threadID=667323 http://forum.java.sun.com/thread.jspa?forumID=43&threadID=5121116 -Rashmi - To start a new topic, e-mail: users@to

Re: sending smtp mail failure

2007-04-16 Thread Mighty Tornado
I heeded your advice and tried setting up Outlook Express for gmail server. This is the message that I got: The connection to the server has failed. Account: 'smtp.google.com', Server: 'smtp.google.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E On 4

Re: Ajax xmlhttprequest

2007-04-16 Thread Richard Dunne
Learn something new everyday. OK developers, something to maybe look forward to in the future perhaps? - Original Message From: Hassan Schroeder <[EMAIL PROTECTED]> To: Tomcat Users List Sent: Tuesday, April 17, 2007 12:00:57 AM Subject: Re: Ajax xmlhttprequest On 4/16/07, Richard D

Re: Ajax xmlhttprequest

2007-04-16 Thread Hassan Schroeder
On 4/16/07, Richard Dunne <[EMAIL PROTECTED]> wrote: I can query the database with a php script on its own. ...one of my webpages is trying to execute the same php script via an Ajax xmlhttprequest, Is there any particular/obvious reason why the request is breaking down in tomcat? Uh, be

Re: Ajax xmlhttprequest

2007-04-16 Thread Richard Dunne
I have Mozila Firefox, Jakarta Tomcat v5.0.28, PHP5 and PostgreSQL 8.2.3-1 installed seperately on my laptop, also have MySQL installed but using Postgres for project purpose. All of my php files are listed under http://localhost:8080/ProjectFolder. Some of my php files are webpages and most

Re: AW: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r.
But believe you will not get much out of it. The day Tomcat parse php pages is far away - in my opinion -. If you do succeed, tell us. Think Java. On 13 avr. 07, at 16:35, Richard Dunne wrote: If you take any .html file and rename it .php for instance, the file will change to the php icon. PHP

Re: Ajax xmlhttprequest

2007-04-16 Thread dimitryous r.
I have a php webpage which is hosted on my laptop (XP and tomcat localhost:8080). Hello, Please tell me more about your configuration: if your Apache Tomcat server is running on port 8080 how come do you get something out of a xxx.php script? You mean: at http://localhost:8080/myfile.jsp (Apa

Mixing Apache's mod_rewrite with mod_proxy

2007-04-16 Thread mraible
I want to configure Apache to front a Tomcat installation. I've done this in the past with mod_jk. I've got that setup and working. I also configured mod_proxy and got that working thanks to Graham King's excellent instructions[1]. I don't know which one is a better solution, but I have them both

Re: Tomcat 6.0.9 connection stopped working and will not resume

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, Daniel Gresh <[EMAIL PROTECTED]> wrote: Hi, I was editing a JSP page. I saved the file, and refreshed the web page at http://localhost:port/myapp/page.jsp. Apparently, this caused Tomcat to shut down for some reason. I had this problem before, but I don't remember how I solved it.

Re: Using a DataSource to access DB2.

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, Fargusson.Alan <[EMAIL PROTECTED]> wrote: I used the MySQL and Oracle examples to create a server.xml file. I don't actually have Oracle. I could probably try to get MySQL configured, but I don't know if it worth the effort. Oh ok... thanks for clarifying, I thought you already

Tomcat 6.0.9 connection stopped working and will not resume

2007-04-16 Thread Daniel Gresh
Hi, I was editing a JSP page. I saved the file, and refreshed the web page at http://localhost:port/myapp/page.jsp. Apparently, this caused Tomcat to shut down for some reason. I had this problem before, but I don't remember how I solved it. Anyway when I had the problem previously I was able

RE: Using a DataSource to access DB2.

2007-04-16 Thread Fargusson.Alan
I used the MySQL and Oracle examples to create a server.xml file. I don't actually have Oracle. I could probably try to get MySQL configured, but I don't know if it worth the effort. -Original Message- From: Rashmi Rubdi [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 1:34 PM To

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Faheem, Faheem Mitha wrote: > I have earlier heard references made to the tomcat connector. Just to > be clear, is this a separate piece of software or part of tomcat? All connectors all come bundled with Tomcat. It looks like the HTTP connector is

RE: running tomcat on a particular network interface and a particularport

2007-04-16 Thread Caldarale, Charles R
> From: Faheem Mitha [mailto:[EMAIL PROTECTED] > Subject: Re: running tomcat on a particular network interface > and a particularport > > I have earlier heard references made to the tomcat connector. > Just to be clear, is this a separate piece of sofware or part > of tomcat? It's part of Tom

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Faheem Mitha
On Mon, 16 Apr 2007, David Smith wrote: If you add the address attribute to your tomcat connectors in server.xml, tomcat will bind specifically to those interfaces. See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html for documentation on this. --David Hi, Thanks to David and o

Re: Using a DataSource to access DB2.

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, Fargusson.Alan <[EMAIL PROTECTED]> wrote: I do not see any way to add the auth resource from the admin page, so I edited the server.xml to add it. The only change was the message "Caused by: java.sql.SQLException: No suitable driver" instead of the Null pointer exception. I tried

RE: Using a DataSource to access DB2.

2007-04-16 Thread Fargusson.Alan
I do not see any way to add the auth resource from the admin page, so I edited the server.xml to add it. The only change was the message "Caused by: java.sql.SQLException: No suitable driver" instead of the Null pointer exception. I tried changing the server.xml back and I still get the No su

Re: Quick Question for TomCat Gurus

2007-04-16 Thread Lionel Crine
There is many chance that the java binary is in fact a link to the real binary. If you want to change the java binary for all the distribution you can change this link. If not, as explained before, you only have to export the JAVA_HOME to the right binary. I suggest you to create setenv.sh f

RE: recognise tomcat finished starting up

2007-04-16 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Subject: Re: recognise tomcat finished starting up > > So I'm looking for a way to detect if tomcat's startup has finished... If you have remote access to Tomcat's logs directory, you could monitor the catalina.log file for the "INFO: Server

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Markus Schönhaber
Faheem Mitha wrote: > I have a machine on which I want to run both apache (2.2) and tomcat (5.5) > simultaneously and independently, both at port 443. > > To be more precise, say I have a machine with the two IP names > > foo.org and bar.org Your machine propably has two IP addresses. How many na

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread David Smith
If you add the address attribute to your tomcat connectors in server.xml, tomcat will bind specifically to those interfaces. See http://tomcat.apache.org/tomcat-5.5-doc/config/http.html for documentation on this. --David Faheem Mitha wrote: Hello everyone, I have a machine on which I wan

Re: running tomcat on a particular network interface and a particular port

2007-04-16 Thread Martin Gainty
Set this up declaring a different virtual host based on supplied namevirtualhost to repoint to different locations http://httpd.apache.org/docs/1.3/mod/core.html#namevirtualhost M-- This email message and any files transmitted with it contain confidential information intended only for the perso

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-16 Thread Thomas Polliard
Christopher Schultz wrote: > Tim, > > Tim Lucia wrote: > > If you have an instance, then of course you have a this and of > course you > > can call getClass(). If you haven't got an instance, you can't call > > getClass(). I.e., > > > public Foo { > > } > > > Foo.getClass() -- illegal. > > This i

running tomcat on a particular network interface and a particular port

2007-04-16 Thread Faheem Mitha
Hello everyone, I have a machine on which I want to run both apache (2.2) and tomcat (5.5) simultaneously and independently, both at port 443. To be more precise, say I have a machine with the two IP names foo.org and bar.org Then I want to run apache at foo.org:443, and tomcat at bar.org:4

Re: Using a DataSource to access DB2.

2007-04-16 Thread Rashmi Rubdi
Thanks for providing adequate relevant details. I compare parts of your configuration to http://tomcat.apache.org/tomcat-5.0-doc/config/globalresources.html In the above link it says: element in the web application deployment descriptor, but is optional if the application uses a instead." Sin

Re: help - ssl on tomcat

2007-04-16 Thread Susan Teague Rector
Hi Hassan Whoops - I was using 5.5 - just didn't give you the right URL! :) Thanks for the tip - I will look at the SSL connector in the logs thank you! susan Hassan Schroeder wrote: On 4/16/07, Susan Teague Rector <[EMAIL PROTECTED]> wrote: I have Tomcat 5.5 loaded on Linux Redhat. I foll

Re: help - ssl on tomcat

2007-04-16 Thread Hassan Schroeder
On 4/16/07, Susan Teague Rector <[EMAIL PROTECTED]> wrote: I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions explicitly: http://tomcat.apache.org/tomcat-5.0-doc/ssl-howto.html Uh, you should use the documentation for the version that you're actually running, eh? :-)

rotatable access logs?

2007-04-16 Thread Jay Dickon Glanville
Hello all, I'm currently using the Access Log Valve as part of my Tomcat 5.5 installation to track what pages people are going to most frequently. However, these logs are ever growing, taking up more and more HD space. What I'd like to do is configure the valve so that only the last 30 days of i

Using a DataSource to access DB2.

2007-04-16 Thread Fargusson.Alan
I want to thank those who have been trying to help me get this working. I am still stuck on this. I am going to try and ask the same question again in a little different way and maybe someone can spot what I am doing wrong. Or perhaps tell me if DB2 will not work with a DataSource. I have tr

Re: Database object error?

2007-04-16 Thread David Smith
No it is most likely from a bad dbcp jar file. I would recommend re-downloading it from Apache's site (http://jakarta.apache.org/commons/dbcp) and drop it into your project, replacing the existing one. --David Dwight Farris wrote: Does the error below refer to a database object?

help - ssl on tomcat

2007-04-16 Thread Susan Teague Rector
Hi all, I just joined the list so please excuse if there are numerous postings about this topic. I did search the archives and have googled quite a bit but cannot figure out why SSL is not working on Tomcat. I have Tomcat 5.5 loaded on Linux Redhat. I followed these directions explicitly: ht

Database object error?

2007-04-16 Thread Dwight Farris
Does the error below refer to a database object? java.lang.ClassFormatError: Signature index 0 in LocalVariableTable has bad constant type in class file org/apache/commons/dbcp/BasicDataSource Dwight Farris - To start a

Re: recognise tomcat finished starting up

2007-04-16 Thread David Kerber
[EMAIL PROTECTED] wrote: Thanks for the responses...I'll try the listener creating some kind of file I can check for the existence of - this is complicated by trying to do it remotely... A loop-on-fail in the first test would work...as long as my first test never breaks ;-) It wouldn't have

Re: recognise tomcat finished starting up

2007-04-16 Thread Martin Gainty
Good Morning David- If your spring webapplication is taking a long time to startup I would suggest looking at setting up Spring's config attribute as lazy-init=true When spring's lazy-init=true your BeanFactory will initialise the bean when requested (instead of initialising at startup of your

Re: recognise tomcat finished starting up

2007-04-16 Thread dhay
Hi Martin, Thanks for the link... I'm actually running the tests against a remote installed tomcat, by poking it over http akin to HTTPUnit. However, I'm working on automating the remote install and uninstall too. I have it working, but am trying to figure out how to tell whether the install ha

Re: recognise tomcat finished starting up

2007-04-16 Thread dhay
Thanks for the responses...I'll try the listener creating some kind of file I can check for the existence of - this is complicated by trying to do it remotely... A loop-on-fail in the first test would work...as long as my first test never breaks ;-) cheers, David

Re: recognise tomcat finished starting up

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: So I'm looking for a way to detect if tomcat's startup has finished... You didn't mention the version of Tomcat you're using. According to the Servlet 2.4 spec : The servlet context has javax.servlet.ServletContextListener just been cr

Re: recognise tomcat finished starting up

2007-04-16 Thread Hassan Schroeder
On 4/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: So I'm looking for a way to detect if tomcat's startup has finished... Seems like a chicken-and-egg problem -- Tomcat's ready when it'll respond to your test :-) Why don't you just incorporate a loop[sleep]-on-fail in the first test? F

Re: getResourceAsStream returning blank (NOT NULL)

2007-04-16 Thread Thomas Polliard
Tim Lucia wrote: > >> -Original Message- >> From: Christopher Schultz [mailto:[EMAIL PROTECTED] >> Sent: Saturday, April 14, 2007 2:51 PM >> To: Tomcat Users List >> Subject: Re: getResourceAsStream returning blank (NOT NULL) >> > Tim, > > Tim Lucia wrote: > From: Johnny Kewl [mailto:[

RE: recognise tomcat finished starting up

2007-04-16 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > We're using Spring and therefore have quite a long startup > time - checking > if the service is started doesn't help therefore. > > So I'm looking for a way to detect if tomcat's startup has finished... Being the lazy guy I am, I'd set up a

Re: recognise tomcat finished starting up

2007-04-16 Thread Martin Gainty
David- If you're trying to emulate java class functionality in a tomcat environment I would suggest looking at David Weiss TomcatAwareTestCase com.dawidweiss.junittomcat.TomcatAwareTestCase http://www.cs.put.poznan.pl/dweiss/xml/projects/junit-tomcat/index.xml?lang=en Anyone else? Martin-- This

recognise tomcat finished starting up

2007-04-16 Thread dhay
Hi, We're trying to automate our acceptance tests and performing a remote install first. However, we have no way to know when Tomcat has finished starting so the tests can run. Has anyone any suggestions on the best way to do this? We're using maven and JUnit. cheers, David

Re: Connectivity issues

2007-04-16 Thread Martin Gainty
Good Morning Barry Apparently this happens during the destroy() method for Http11Connector and is essentially informational ..previous posting available at http://mail-archives.apache.org/mod_mbox/tomcat-dev/200205.mbox/[EMAIL PROTECTED] Assuming your tc client can ping/tracert thru to Tomcat

Re: will 5.5 war run on 6.x tomcat

2007-04-16 Thread Hassan Schroeder
On 4/16/07, Rashmi Rubdi <[EMAIL PROTECTED]> wrote: Tomcat 6.x implements Servlet 2.5/JSP 2.1 but Tomcat 5.5.x implements Servlet 2.4/JSP 2.0 spec according to the chart shown here: http://tomcat.apache.org/whichversion.html Tomcat 6 *adds* support for 2.5, which doesn't mean that it doesn't s

Re: will 5.5 war run on 6.x tomcat

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, Bischofs, Ingo <[EMAIL PROTECTED]> wrote: As i've read, the folder structure of tomcat 6.x has changed slighlty. I've upgraded from 5.5.12 to 6.0.10, yes the folder structure has changed and it looks a lot simpler and cleaner - all Tomcat apps (Manager, Host Manager etc) that I use

RE: Connectivity issues

2007-04-16 Thread Propes, Barry L
that looks more like a connection with the Coyote connection handler. -Original Message- From: Leon van der Merwe [mailto:[EMAIL PROTECTED] Sent: Monday, April 16, 2007 4:45 AM To: users@tomcat.apache.org Subject: Connectivity issues Hi All, What can the following exception mean? Apr 1

Re: Unable to get a Listener running

2007-04-16 Thread Rashmi Rubdi
On 4/16/07, Mike Peremsky <[EMAIL PROTECTED]> wrote: From the control panel. If I go to the system properties and look at the environment variables I have the following: (I do not have a JRE_HOME defined) CATALINA_HOME=c:\apache-tomcat JAVA_HOME=c:\jdk1.5.0 Path=C:\jdk1.5.0\bin;%ANT_HOME%\bi

Andre Doeking ist außer Haus.

2007-04-16 Thread Andre Doeking
Ich werde ab 09.04.2007 nicht im Büro sein. Ich kehre zurück am 29.05.2007. Ich werde Ihre Nachricht alsbald möglich beantworten. - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED

RE: manager and host manager not available problem

2007-04-16 Thread Caldarale, Charles R
> From: Johnny Kewl [mailto:[EMAIL PROTECTED] > Subject: Re: manager and host manager not available problem > > So does this mean under /server/ its just going to > be classes and lib, no more webapps? There is no server directory in 6.0 - take a look at: http://tomcat.apache.org/tomcat-6.0-do

Re: Problems with clientAuth

2007-04-16 Thread Martin Cavanagh
do you want to excannge conf.xml files? I'll happily try yours on my computer I've had success running both OpenSSL & JavaKeystore. I'm running OpenSSL now, because it is supposedly considerably faster. I'm not quite sure how to check though. One question though. I have th

Re: HTTP Response Splitting in Tomcat - reg.

2007-04-16 Thread Mark Thomas
Aviator Java wrote: > Can anybody tell me whether Tomcat 6.0.2 is immune to Http Response Splitting > attack? Assuming this is CVE-2002-1567, yes, it is immune. If so, can anybody help me to know how the security vulnerablity was fixed. http://tomcat.apache.org/security-4.html Mark ---

Re: how to start an appli automatically while server startup

2007-04-16 Thread Adli
Use load-on-startup parameter under servlet context? On 4/16/07, sureshrgsl <[EMAIL PROTECTED]> wrote: hai, everbody, i am struggled in this. please help me out. i am having one context in my webapps, i need this context starts run automatically,,while tomcat server starts

Connectivity issues

2007-04-16 Thread Leon van der Merwe
Hi All, What can the following exception mean? Apr 16, 2007 10:59:51 AM org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler processConnection INFO: IOException reading request, ignored When the users try to login it just kinda hangs... Can this have something to do with the databas

will 5.5 war run on 6.x tomcat

2007-04-16 Thread Bischofs, Ingo
Hi List! As i've read, the folder structure of tomcat 6.x has changed slighlty. Does that have any impact on formerly deployed web-applications (deployed for 5.5), respectively: is an application deployed for the 5.5 release fully compatible to tomcat 6.x? Thx, Ingo This e-mail and any a

how to start an appli automatically while server startup

2007-04-16 Thread sureshrgsl
hai, everbody, i am struggled in this. please help me out. i am having one context in my webapps, i need this context starts run automatically,,while tomcat server starts. how to customize this. -- View this message in context: http://www.nabble.com/how-to-start-an-appli-

Re: manager and host manager not available problem

2007-04-16 Thread Johnny Kewl
Thx Chuck, So does this mean under /server/ its just going to be classes and lib, no more webapps? I like the idea... always felt kind of weird installing some stuff under server/webapps. I got a few more questions 1) Is there some documentation that talks about the 'design' decisions t