tomcat and IP_TOS

2006-02-27 Thread Yvan MOTHES
HI, I wish, from a servlet; to be able to set IP_TOS value in IP datagram for tomcat response to any client well formed http client request. The setTrafficeClass from jdk Socket class works well to do it on IP datagram. I have already done it using commons httpclient in an other context. Be

RE: configuration of Apache.

2006-02-27 Thread Kasim
Hello dear The solution for your problem is ... Put all your jsp pages at \webapps\ROOT Modify the existing web.xml present at \webapps\ROOT\web-inf for your application.If you are using only jsp then there is no need to add web.xml but if you are using servlets then put the following lines in it.S

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Hi Boris, I have now switched my server to "one-properties-per-webabb" (inside webapp dir). It's not nice, but it works. Thanks a lot for your help. Regards, Andreas - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: Session Timeout

2006-02-27 Thread John C. Dale
Hi Vineesh, I use a Filter to accomplish this (below). NOTE: I'm using Tomcat 5.0.28, and this is not verified for Tomcat 5.5.9. NOTE: User Principal object is not serialized with all other serializable session data (anyone know why not? I would love to have a fix for this). So, if you use a

[UPDATE - FOUND WORKAROUND FOR LINUX TOMCAT WEBDAV DEPLOYMENTS] WEBDAV for Tomcat 5.0.28

2006-02-27 Thread John C. Dale
I found a workaround. I wasn't able to use the DAV servlet that ships with Tomcat 5.5.15 and reverted to the standard 5.0.28 servlet. I was getting the following error that I believe was causing an issue with connections from windows web folders (more below on the error I was receiving on the win

Session Timeout

2006-02-27 Thread vineesh kumar
Dear all, I am having an application, which is using tomcat 5.5.9 on RedHat enterprise linux 4.0 and java 1.4 .My problem is thet in my application,at certain stage I am opening a window(using javascript) and loading an applet,which simply connects to the server and get some information,at t

RE: Tomcat 5.0 server encountering error while using jsp

2006-02-27 Thread Caldarale, Charles R
> From: k satish [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.0 server encountering error while using jsp > > getting the follg error after installing > tomcat5.0, jre, j2se and ms-access Tomcat 5.0.x requires a JDK, not just a JRE. 5.5.x will run with the JRE, since it includes its own c

RE: Odd 404 error

2006-02-27 Thread David Liles
Ok, I just discovered that if I convert the web app to a Struts site it works fine... Does anyone know why it would work as a Struts site but as a traditional web app I get the 404 error? -Original Message- From: David Liles Sent: Monday, February 27, 2006 7:30 PM To: users@tomcat.apac

Re: Tomcat 5.0 server encountering error while using jsp

2006-02-27 Thread P Y
The log seems pretty clear : >> root cause Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK << On 2/28/06, k satish <[EMAIL PROTECTED]> wrote: > > > getting the follg error after installing > tomcat5.0, j

Tomcat 5.0 server encountering error while using jsp

2006-02-27 Thread k satish
getting the follg error after installing tomcat5.0, jre, j2se and ms-access HTTP Status 500 - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Unable to compil

Property files and init-param question

2006-02-27 Thread Corey Kaiser
I'm in the process of moving a slew of servlets from Apache Jserv to Tomcat + mod_jk + Apache. I've managed to get most everything working, accept one little annoying thing. Using JServ, initArgs could be specified per zone and per servlet in a JServ zone config file like so: servlet.MyServlet.ini

RE: WEBDAV for Tomcat 5.0.28

2006-02-27 Thread John C. Dale
Thank you for the lead, but I think this is actually the source of my issue even in later versions of the beautifully lightweight webdav release... This is from the webapps/webdav/WEB-INF/web.xml file: webdav /* But if I use "/*" as the servlet mapping, and if all requests are process

Odd 404 error

2006-02-27 Thread David Liles
I have Tomcat 5.5 running with IIS and everything is working. I have two sites running that are also using Struts but I just created a test site for a work in progress and am starting to get 404 errors. This new site is not going to be using Struts and when I attempt to access a servlet listed i

Re: New isapi_redirect.dll appears to be solid

2006-02-27 Thread Zorro3692
I agree. Jimmy In a message dated 2/27/2006 6:09:53 P.M. Eastern Standard Time, [EMAIL PROTECTED] writes: I think tomcat is one of the best s/w products out there. - dave

Same jkmount, different server

2006-02-27 Thread Cedric Fontaine
Hello, I'm trying to setup a development environment and wondering why my configuration doesn't work. Everything seems to be fine, but I figured out that in fact for both virtualhost traffic to my mount point go to tomcatdev. It seems that even if the instruction is in my VirtualHost, it only keep

Re: Oracle 10G and JNDI & DataSource - Configuration files

2006-02-27 Thread Shankar Unni
[EMAIL PROTECTED] wrote: username="userMe" password="myPassword" driverClassName="jdbc:oracle:thin:@msbdev2:1521:OracleServicensbdb"/> Whoa! Your driverClassName must be the class name of the oracle driver class: oracle.jdbc.driver.OracleDriver. It's your url= that's "jdbc:oracle:

Re: WEBDAV for Tomcat 5.0.28

2006-02-27 Thread Mark Thomas
John C. Dale wrote: > What is the recommended deployment of the static site and webdav servlet > such that direct access to the files does not go through the servlet, and > webdav requests do? You'll need the webdav servlet from 5.5.x You can get this here: http://www.apache.org/dist/java-reposito

Re: tomcat 5.5.12 character encoding in server side is allways iso8895-1

2006-02-27 Thread Mark Thomas
What setting do you have for URIEncoding (see http://tomcat.apache.org/tomcat-5.5-doc/config/http.html) in your connector? Mark - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Oracle 10G and JNDI & DataSource - Configuration files

2006-02-27 Thread Jay Burgess
I may be totally off the mark on this one, but is your driverClassName value really correct? In all my code, this value is an actual Java class name (something like "com.microsoft.jdbc.sqlserver.SQLServerDriver"). Everything else, like port, is encoded in the "url" parameter. Jay | Jay Burgess

Configuration files for Tomcat (Oracle, JNDI, & DataSource)

2006-02-27 Thread nguessan
Hi all, Sorry I had a typo error in my previous email; therefore, I am sending this one instead. I am trying to connect to an Oracle 10G database, which is located on a server on the same network. My application and Tomcat 5.5 reside on the same Windows 2003 machine. Oracle 10G is installed on a se

Oracle 10G and JNDI & DataSource - Configuration files

2006-02-27 Thread nguessan
Hi all, I am trying to connect to an Oracle 10G database, which is located on a server on the same network. My application and Tomcat 5.5 reside on the same Windows 2003 machine. Oracle 10G is installed on a separate Windows 2003 machine. The name for the Oracle service is "OracleServicensmsb"; th

Re: Forward to another URL

2006-02-27 Thread P Y
hi, You can define multiple in server.xml See http://tomcat.apache.org/tomcat-5.0-doc/config/host.html Best, On 2/27/06, Pauline CANTALOUP <[EMAIL PROTECTED]> wrote: > Hi, > > I have 2 wap sites in one application, and I have to make a homepage which > will forward users to one of them, dependin

Stopping Data Source when stopping context

2006-02-27 Thread Paul Austin
I'm using tomcat 5.5 on linux, JDK 1.4.2 and have noticed that in my configuration that when I stop a context using the tomcat manager that the data source defined locally in that context is not stopped. To resolve this issue I would normally stop the entire tomcat instance and restart it. This is

RE: New isapi_redirect.dll appears to be solid

2006-02-27 Thread David Thielen
I think tomcat is one of the best s/w products out there. - dave David Thielen www.windwardreports.com 303-499-2544 -Original Message- From: Mladen Turk [mailto:[EMAIL PROTECTED] Sent: Monday, February 27, 2006 10:29 AM To: Tomcat Users List Subject: Re: New isapi_redirect.dll appears

Re: Deserialize tomcat sessions

2006-02-27 Thread Filip Hanik - Dev Lists
byte[] mysessiondata = ...; ObjectInputStream stream = new ObjectInputStream(new ByteArrayInputStream(mysessiondata)); StandardSession mysession = new StandardSession(); mysession.readObjectData(mysessiondata); Object attribute = mysession.getAttribute("myattribute"); Filip Abraham Fdez wrot

RE: JNDI Datasource Problem

2006-02-27 Thread Wang, Hansen
Two problems: 1. In ResourceLink, the value for attribute "golbal" should be "jdbc/galleryDB" instead of "galleryDB". 2. The factory classname is wrong if you are using tomcat5's naming-factory-dbcp.jar. You can just remove that line and the default is used. -Original Message- From: lee

Problem with Tomcat 5.5.15, [173 javajni.c] [error] %1 is not a valid Win32 application

2006-02-27 Thread Juan Jose Garcia Lau
Hi, I have installed successfully tomcat 5.5.15 for development, but now I need it to install in a production server, but the Apache Tomcat service doesn't start. I think the problem it's the machine because it an AMD Opteron 64Bit with Windows 2003. Anybody knows how can I resolve the issue?

jsp:useBean and using the same bean in a page

2006-02-27 Thread Jess Balint
Hi, I am working with an app that has a lot of jsp:useBean. I have come across an error trying to use the same id multiple times in the same page. I understand from the JSP syntax reference that this is valid and it should just reference the original bean on any subsequent calls. Here is the refere

Re: New isapi_redirect.dll appears to be solid

2006-02-27 Thread Mladen Turk
David Thielen wrote: I don't know if it was just coincidence that all those weird requests came in when I first had the new dll or I had something configured wrong. But we built a new web server 2 weeks ago. It is not a coincidence! It is was a hard labor from you favorite Tomcat developers t

Re: tomcat and xslt 2.0

2006-02-27 Thread Richard Toren
I think there are not that many xslt 2.0 engines out there to choose from. In any case saxon is xslt 2.0 and very fast. You have to include the jar (obvious, but) and before you instantiate a TransformerFactory set the System property: System.setProperty( "javax.xml.transform.TransformerFa

Forward to another URL

2006-02-27 Thread Pauline CANTALOUP
Hi, I have 2 wap sites in one application, and I have to make a homepage which will forward users to one of them, depending on their Locale. I have to make a forward and not a redirection because this has to be as transparency as possible, and sometimes mobile phones display a message in case of

Re: JSP with use beans calls do not work

2006-02-27 Thread Eric Haszlakiewicz
On Sat, Feb 25, 2006 at 05:04:18PM -0300, Claudio Veas wrote: >> Hello list, I m really new to tomcat ,I have the following problem >> recently >> I tried to resume my practices on JSP on my tomcat server but I seem >to >> have >> a problem and I do not know what it is. Ever

RE: How to separate tomcat instances?

2006-02-27 Thread Peter Crowther
> From: lk [mailto:[EMAIL PROTECTED] > I'm not sure my solutions is correct: I have 3 different > directory, and > each directory contains a complete binary distribution of tomcat. > And I have to startup each tomcat instance. > Is it the good way? It's not a *bad* way, as you can upgrade each

Re: How to separate tomcat instances?

2006-02-27 Thread lk
Peter Crowther wrote: From: lk [mailto:[EMAIL PROTECTED] I would like to know if it is possible to run multiple instances of tomcat. I've read the documentation and I found out that I can configure multiple workers to serve multiple instances of Tomcat. But I haven't understood if in this way t

New isapi_redirect.dll appears to be solid

2006-02-27 Thread David Thielen
Hi; I don't know if it was just coincidence that all those weird requests came in when I first had the new dll or I had something configured wrong. But we built a new web server 2 weeks ago. First week using the production iaspi_redirect.dll this is the log: [Wed Feb 22 08:08:02 2006] [war

RE: How to separate tomcat instances?

2006-02-27 Thread Peter Crowther
> From: lk [mailto:[EMAIL PROTECTED] > I would like to know if it is possible to run multiple > instances of tomcat. > I've read the documentation and I found out that I can configure > multiple workers to serve multiple instances of Tomcat. > But I haven't understood if in this way the contexts

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Remy Maucherat wrote: Very funny. Funny what? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat serving wrong content

2006-02-27 Thread M. Schot
Dear All, I think I have found the problem. Sorry for bothering you all. It seems to be a problem with a 3rd party product. I had not thought about the servlet that catches all of the requests and processes these. For those using Mediasurface CMS icm Tomcat, there seems to be a problem on fast ma

Re: Tomcat serving wrong content

2006-02-27 Thread M. Schot
Dear All, I think I have found the problem. Sorry for bothering you all. It seems to be a problem with a 3rd party product. I had not thought about the servlet that catches all of the requests and processes these. For those using Mediasurface CMS icm Tomcat, there seems to be a problem on fast ma

WEBDAV for Tomcat 5.0.28

2006-02-27 Thread John C. Dale
I have a static website deployed in 5.0.28 and wish to access/maintain it using the lightweight DAV servlet that ships with this version of Tomcat (Slide is overkill for my purposes). dav org.apache.catalina.servlets.WebdavServlet debug 0

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hi, > Boris Unckel wrote: > > > I have a workaround: > > You provide a logging.properties in your webapp. All relevant parameters > are > > controlled per system -D properties. > > A workaround for what? Providing a logging.properties in my webapp is > exactly what I'm trying to avoid. What's t

Re: Tomcat serving wrong content

2006-02-27 Thread M. Schot
Hi David, I also have a Fiddler session that contains the problem. An example is the following JSP with just "static" content: (it is in Dutch and simply the output of a dynamic JSP pasted in a test JSP, but it gives the error) ENECO Plaza

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Remy Maucherat
On 2/27/06, Andreas Schildbach <[EMAIL PROTECTED]> wrote: > Boris Unckel wrote: > > > I have a workaround: > > You provide a logging.properties in your webapp. All relevant parameters are > > controlled per system -D properties. > > A workaround for what? Providing a logging.properties in my webapp

Re: Tomcat serving wrong content

2006-02-27 Thread David Delbecq
Should not happen. Could you provide example jsp? M. Schot a écrit : >Hi All, > >I have sent this question a few weeks ago, but got no replies. So lets try >again. > >The problem is that when I request a JSP from Tomcat 5.0.28 which includes >stylesheets and images, also served from the same inst

Tomcat serving wrong content

2006-02-27 Thread M. Schot
Hi All, I have sent this question a few weeks ago, but got no replies. So lets try again. The problem is that when I request a JSP from Tomcat 5.0.28 which includes stylesheets and images, also served from the same instance, Tomcat sends the wrong content with the right URL. Let's say two images

RE: Deserialize tomcat sessions

2006-02-27 Thread Abraham Fdez
Thanks Filip, But... could you help me how to do it?. Now I only have this: Object stuff = (Object) new ObjectInputStream(new ByteArrayInputStream(kk2.getSession_Data())).readObject(); Where kk2.getSession_Data returns a byte array (byte[]) where attributes are. Thanks, Abraham Fernández Álva

RE: Tomcat Administration Package installation

2006-02-27 Thread Dhaval Patel
Hi, First download tomcat-admin package from website for appropriate OS. Then unzip it. When you unzip the tomcat-admin (both on linux as well as on windows), say you unzip into TEMP directory. Now open TEMP directory and take some time to view the directory structure there. Now go to your t

RE: Tomcat Administration Package installation

2006-02-27 Thread Biernesser, Beth
I have the same question ... And would appreciate any information on the installation instructions. I am working on a Linux server. Thanks so much. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Friday, February 24, 2006 6:02 PM To: users@tomcat.apache.org S

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: I have a workaround: You provide a logging.properties in your webapp. All relevant parameters are controlled per system -D properties. A workaround for what? Providing a logging.properties in my webapp is exactly what I'm trying to avoid. What's the relevant parameters, an

Re: Tomcat on different ports on same machine, JSESSIONID gets over-written

2006-02-27 Thread Filip Hanik - Dev Lists
put a apache webserver (httpd) in front of your tomcats, listening on one port. use mod_proxy or mod_jk to connect from apache to both your tomcats. if you use mod_proxy and use different webapp path names, then set the config emptySessionPath so that Tomcat doesn't set the webapp path in he co

Re: Deserialize tomcat sessions

2006-02-27 Thread Filip Hanik - Dev Lists
File: StandardSession.java Method: readObjectData Filip Abraham Fdez wrote: Hi all, I have Persistent sessions in tomcat that are saved into Postgresql database. I make a Select from tomcat_sessions in order to get sessions to get an attribute that is on each one. What is the func

Re: org.apache.tomcat.util.threads.ThreadPool

2006-02-27 Thread Stas Ostapenko
On 2/27/06, Chakarova Teodora <[EMAIL PROTECTED]> wrote: > SEVERE: All threads (150) are currently busy, waiting. Increase > maxThreads (150) or check the servlet status Feb 26, 2006 11:58:23 AM You can increase maxThreads value in your server.xml config file to satisfy your application needs. But

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hi, I have a workaround: You provide a logging.properties in your webapp. All relevant parameters are controlled per system -D properties. With x4juli this will work for all webcontainers. Regards Boris - To unsubscribe, e-mail

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hello, > Thanks for your explanation about why real per-webapp logging is > currently not possible with Tomcat 5.5 and Juli/java.util.logging. Is it > the same with Log4J? > Yes, naturally. You would have to place log4j.jar into your WEB-INF/lib and the configuration into the webapp to get logg

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: You want to have a _one_ central place for your log configuration _and_ the correct logging just for that application - currently impossible. I would not necessarely say that logging has to be configured in one central place/file, but I think putting logging config _into_

Re: How to separate tomcat instances?

2006-02-27 Thread Leon Rosenberg
I think it is possible to run as many instances of tomcat (including different versions) as your machine can 'carry'. This includes memory/cpu and port issues. Just install each instance into another directory and change the ports (http listener and whatever you need further). Drop your webapps in.

Re: Debug question ?

2006-02-27 Thread Leon Rosenberg
I think you have something in session which is not serializable. Therefore tomcat aborts writing session contents to file. Next start tomcat tries to load stored sessions, but can't due to previously aborted writing. If you don't care about restart session persistence, you can try to find the prope

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Boris Unckel
Hello Andreas, I have read your response to Remy's mail. > >> Could it be that all libraries I use go to the wrong log? > > > > This depends on the common and shared classloader. Please put any JAR > > which is not delivered by Tomcat and already there in a default > > installation in your > >

Tomcat on different ports on same machine, JSESSIONID gets over-written

2006-02-27 Thread chennai coder
Hi, I need to run two instances of tomcat as part of two web-applications, on the same machine binding them to different ports. Like say http://myhostname:8080 and http://myhostname:9090 But this has some problems when accessed from the same browser instance (say using different tabs). Session t

How to separate tomcat instances?

2006-02-27 Thread lk
Hi, I would like to know if it is possible to run multiple instances of tomcat. I've read the documentation and I found out that I can configure multiple workers to serve multiple instances of Tomcat. But I haven't understood if in this way the contexts served by a worker are protected against a

org.apache.tomcat.util.threads.ThreadPool

2006-02-27 Thread Chakarova Teodora
Hello everybody, We have a problem with a web application under apache tomcat.It simply connects to a oracle database and inserts a row. There are very often problems with the database server, and it needs often restarts , so =20 The exception thrown usually is "Connection reset, Network adapter

tomcat 5.5.12 character encoding in server side is allways iso8895-1

2006-02-27 Thread idan amshalom
hi.I have a problem of encoding in server side (in the bean) .I want to pass values to the bean in utf-8 and not in iso-8895-1 , I read about this problem and tried everything that was suggested.I work with tomcat 5.5.12 on windows Server 2003 .  with java 1.5.0.2 at my top of the jsp I have :<%@ p

Debug question ?

2006-02-27 Thread Philippe Couas
Hi How could i debug Tomcat for resolving this Problem ? Regards Philippe 2006-02-27 10:58:17 StandardManager[/test] Exception au chargement des sessio ns depuis le stockage persistant (persistent storage) java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException : java.u

Remove Messages that appear on Google through mail-archive.com

2006-02-27 Thread Michael Andreas Omerou
Dear all, This is an extremely urgent request. Basically, when trying to resolve a previous issue I mentioned in one of my messages the domain name of the site having the problem. Having several people replying to my email the domain now resides in multiple messages that have been indexed by Goo

Deserialize tomcat sessions

2006-02-27 Thread Abraham Fdez
Hi all, I have Persistent sessions in tomcat that are saved into Postgresql database. I make a Select from tomcat_sessions in order to get sessions to get an attribute that is on each one. What is the function to deserialize each session from database? Thanks,

[JAAS] HTTP 400 : Référence directe à la f orm de connexion (form login page) invalide

2006-02-27 Thread Vincent Delhommois
Hello, I implements successfully a JAAS authentification but an error sometimes appends : The process is : First I logon the application ssuccessfully (JAAS OK => LoginModule return true) => My application JSP page is weel displayed Then I disconnect (session.invalidate()) Then I try to reconnect

Time out on sessions with AJP13

2006-02-27 Thread Serlet Jean-Claude
> Hello Secund send of this message : i didn't see the first one in the digest i received > My environment : OS= Windows 2000 > Web Server = Apache 2.0 > Tomcat-Apache = 1.4.31 with AJP 13 connector > Application uses JSP, Servlet and Driver JDBC Thin of

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Boris Unckel wrote: Could it be that all libraries I use go to the wrong log? This depends on the common and shared classloader. Please put any JAR which is not delivered by Tomcat and already there in a default installation in your WEB-INF/lib folder. Test again. I don't understand. The

Re: per-webapp logging problem with Tomcat 5.5

2006-02-27 Thread Andreas Schildbach
Remy Maucherat wrote: Could it be that all libraries I use go to the wrong log? All your libraries, like Spring, will use their own logger names. All these loggers are not defined in your configuration, so will all use the handlers for the root logger (".handlers"). org.apache.catalina.core.Co