jsp.error.attribute.unterminated -- WTF?

2003-12-17 Thread Josh G
Hi All, pulling out copious amounts of hair for this one... here's the code: <% for (int i = 0; i < sectionNames.length; i++ ) { %> <%= sectionNames[i] %>_off = new Image(); <%= sectionNames[i] %>_off.src = ""; <%= sectionNames[i] %>_on =

Re: getPathInfo behaviour changed in tomcat 5.x?

2003-12-17 Thread Bill Barker
I haven't profiled it, but according to Remy (who did most of the work, with a bit of help from me and Tim), yes ;-). "Shapira, Yoav" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Howdy, Did we gain much performance? ;) Yoav Shapira Millennium ChemInformatics >-Original Messa

RE: Tomcat and Log4J

2003-12-17 Thread Kent Boogaart
> Howdy, Your problem is not log4j, it's commons-logging, which is nearly always the culprit. The issue arises if log4j is in a classloader below commons-logging, so > commons-logging doesn't know log4j is there. You're configuring log4j OK, and if you used a log4j Logger rather than a commons-logg

Apache-tomcat via mod_jk configuration

2003-12-17 Thread dhayalan
Hi all, I've read a configuration of tomcat and apache (http://daydream.stanford.edu/tomcat/install_web_services.html ) over the last 4 days, and I've found much of what I need to be lacking After reading full documentation on the jakarta website about how the server.xml is organized

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Antony Paul
It is what I said IllegalStateException.. It is caused by writing to a PrintWriter or writing the headers. You can avoid this by not writing to the PrintWriter and not setting any response headers. You dont need to write to out if you are forwarding a request. Write to StringBuffer() then write to

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello, No it is not throwing any exceptions.And it is asked to forward before the response is committed. Regards, Tejashri. Antony Paul <[EMAIL PROTECTED]> wrote: You can call forward() before the response is committed. I seems that it is throwing IllegalStateException. Antony Paul - Or

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Antony Paul
You can call forward() before the response is committed. I seems that it is throwing IllegalStateException. Antony Paul - Original Message - From: "Teja Jo" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, December 18, 2003 9:27 AM Subject: RequestDispatcher in servlet is not w

Further details - RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello everyone, wrt the need for actual code - I am sending this code which is executed by doGet method of my servlet : String temp = request.getParameter("abc"); if( temp.equals("xyz")) { //do some processing ... } //uptil this point it gets executed properly strAd

Apache 2.0.48 Virtualhost with Tomcat

2003-12-17 Thread Lenny Sorey
I have two Apache 2.0.48 / Tomcat 4.1.29 where I have both servers running with JK/2 connector. The server is a W2K server (No IIS) I can bring up both local Tomcat sites respectively with the following: http://localhost/thegoodsite and http://localhost/therealgoodsite Both websites will

Re: RequestDispatcher in servlet is not working

2003-12-17 Thread Ben Souther
Request dispatcher is working fine for me. Can you send some code and a description of your environment? On Wednesday 17 December 2003 10:57 pm, you wrote: > Hello everyone, > > My servlet after processing something from the HttpServletRequest received > by it - is supposed to forward the requ

RequestDispatcher in servlet is not working

2003-12-17 Thread Teja Jo
Hello everyone, My servlet after processing something from the HttpServletRequest received by it - is supposed to forward the request using RequestDispatcher - but it is not doing so.(Only when directly forwarded without doing any initial processing with the request - it gets forwarded).Pleas

Re: UserDatabaseRealm 5.0.16 - immediately available for use by the Realm??

2003-12-17 Thread Kwok Peng Tuck
I think that is refering to a RDBMS realm. Last time I checked, tomcat-users.xml was only read on startup. Ron Andersen wrote: 1) I configured the default authentication realm - UserDatabaseRealm, which is setup to use conf/tomcat-users.xml. However, I am confused about the following statement:

UserDatabaseRealm 5.0.16 - immediately available for use by the Realm??

2003-12-17 Thread Ron Andersen
1) I configured the default authentication realm - UserDatabaseRealm, which is setup to use conf/tomcat-users.xml. However, I am confused about the following statement: This Realm uses the UserDatabase configured in the global JNDI resources under the key "UserDatabase". Any edits that are perf

Re: xml escaping characters for database password

2003-12-17 Thread Adam Hardy
On 12/18/2003 02:54 AM Justin Ruthenbeck wrote: At 05:34 PM 12/17/2003, you wrote: Hi, I'm using mysql via JDBC and I need to encode a password with non-alphabet characters in it like % in my server.xml. Do I use a URL encoding for this or an XML encoding? I don't know for sure as I haven't us

Re: xml escaping characters for database password

2003-12-17 Thread Justin Ruthenbeck
At 05:34 PM 12/17/2003, you wrote: Hi, I'm using mysql via JDBC and I need to encode a password with non-alphabet characters in it like % in my server.xml. Do I use a URL encoding for this or an XML encoding? I don't know for sure as I haven't used mysql specifically, but if the password will be

RE: Tomcat4.1.29 Requested resource not available

2003-12-17 Thread Nadia Kunkov
Thank you. You have just encouraged me to try it again. I will check everything I've done and follow all your steps and see what'll happen. I will let you know if it works. Thanks for your continuous help. N.K. -Original Message- From: BAO RuiXian [mailto:[EMAIL PROTECTED] Sent: Wednesd

xml escaping characters for database password

2003-12-17 Thread Adam Hardy
Hi, I'm using mysql via JDBC and I need to encode a password with non-alphabet characters in it like % in my server.xml. Do I use a URL encoding for this or an XML encoding? Also while I'm on the subject, do I have to encode or escape a double-quote in an xml attribute: or is there some othe

RE: help in tomcat 5 and MS SQL 2000

2003-12-17 Thread D'Alessandro, Arthur
Goto microsoft's site, they have a SQL 2000 JDBC driver available.. -Art -Original Message- From: Suchun Wu [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 8:26 PM To: Tomcat Users List Subject: Re: help in tomcat 5 and MS SQL 2000 In the how-to file you mentioned, there

Re: help in tomcat 5 and MS SQL 2000

2003-12-17 Thread Suchun Wu
In the how-to file you mentioned, there is no example for MS SQL and Sybase. There is an example for mysql. I wonder it works with MS SQL 2000. Someone has similar experience, please share. Thanks, Suchun - Original Message - From: "Alan Czajkowski" <[EMAIL PROTECTED]> To: "Tomcat Users

Re: Tomcat4.1.29 Requested resource not available

2003-12-17 Thread BAO RuiXian
Nadia Kunkov wrote: Yes, I did try it. Didn't work. Something isn't right in my configuration. What you have done? Did you first make a ... for 'test' app based on the block for 'examples', and then run localhost:8080/manager/install?war=test What did you mean by 'Didn't work'? What is the

RE: mod_jk Tomcat and Apache httpd two different machines?

2003-12-17 Thread James R. Marcus
Thanks this helped a lot. I can now get to main.jsp. I also used this as reference: http://www.mail-archive.com/[EMAIL PROTECTED]/msg32735.html Here are my settings cvs machine (apache)- httpd.conf: # Added for the mod_jk connector # # Load mod_jk # LoadModule jk_module modules

mod_jk only usable from localhost

2003-12-17 Thread Jeremy Whitlock
Tomcat List, I have installed Apache+Tomcat via mod_jk. I have it configured so that I can use Tomcat from Apache but it only works from the localhost. If I: http://localhost/tomcat-docs it works but if I do: http://computername/tomcat-docs http://computerip/tomcat-docs it

RE: 5.0.16 sample can't deploy, gets zip exception

2003-12-17 Thread Ray Tayek
At 08:48 AM 12/17/03 -0500, Shapira, Yoav wrote: Howdy, Add a valid web.xml to your war file and try again ;) Yoav Shapira Millennium ChemInformatics i tried adding the one below, but no joy :( same unzip problem as before: install: [deploy] FAIL - Encountered exception java.util.zip.ZipExcep

RE: defining multiple tomcat server on one workers2.properties file

2003-12-17 Thread Asif Chowdhary
In the workers2.properties file specify the second instance of your tomcat and the port number. For example [channel.socket:localhost:8009] info=Ajp13 forwarding over socket debug=0 tomcatId=localhost:8009 [channel.socket:localhost:8010] info=Ajp13 forwarding over socket debug=0 tomcatId=localho

RE: mod_jk Tomcat and Apache httpd two different machines?

2003-12-17 Thread Asif Chowdhary
Yes its possible. I installed the mod_jk2-2.0.43.dll in apache/modules. Here is what I put into the diffrent config files: httpd.conf: just one single row like this: LoadModule jk2_module modules/mod_jk2-2.0.43.dll Then I added a worker2.properties in Apache/conf/ like this: [logger] level=DE

Re: Default context for web app

2003-12-17 Thread Adam Hardy
On 12/17/2003 12:39 AM Kent Boogaart wrote: Didn't work. So I can't do what you're doing. Strange. Are you dead certain you don't have an /eSM/ context? Adam Hi Adam, It's a bit hard to tell for certain since I have disabled the manager app. However, I can tell you that there is only one direct

RE: CGI not working on Tomcat 5.0.16?

2003-12-17 Thread Januski, Ken
Thanks John, and good luck with Tomcat 5. Ken -Original Message- From: Jonathan Eric Miller [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 16, 2003 2:52 PM To: Tomcat Users List Subject: Re: CGI not working on Tomcat 5.0.16? The only CGI that I tested with is a log analysis package c

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Oscar Carrillo
Thanks for the clarification. This seems reasonable, as I thought it would be unlikely in most circumstances. Not properly closing/de-referencing external resources, including threads would cause the JVM's memory to grow. JDBC resources would probably be the most common. Oscar http://daydream.st

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Shapira, Yoav
Howdy, Sure, here's one example: void someMethod() { // MyJob implements Runnable Thread myJobThread = new Thread(new MyJob()); boolean goAhead = evaluateSomeCondition(); if(goAhead) { myJobThread.start(); } else { System.out.println("Not running job."); } } Because creating

cannot get datasource to work with tomcat that is bundled with Sun's Solaris 9

2003-12-17 Thread Alan Czajkowski
Sun bundles Tomcat 4 with Solaris 9 and i'm having problems getting the datasource to work i am trying to connection to a Sybase ASE database and so i went to Sybase's website for help and they have jConnect 5.5 (a .jar file that i guess contains their driver) i copied the jConnect5.5 jconn2.j

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Oscar Carrillo
Thanks. I'm still not sure what kind of code would produce a memory leak. Any chance you could give a brief description or example of this? Thanks, Oscar http://daydream.stanford.edu/tomcat/install_web_services.html On Wed, 17 Dec 2003, Shapira, Yoav wrote: > > Howdy, > > >If I understand th

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Shapira, Yoav
Howdy, >If I understand this correctly, there are references lying around that >point to objects that no longer are needed. Is this something the >developer does or something tomcat does in compiling the servlets? This is something the developer does. >In other words, is there something the dev

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Oscar Carrillo
Hi, If I understand this correctly, there are references lying around that point to objects that no longer are needed. Is this something the developer does or something tomcat does in compiling the servlets? In other words, is there something the developer or administrator can do to avoid this?

defining multiple tomcat server on one workers2.properties file

2003-12-17 Thread Peter Choe
i have an apache webserver that will handle request made to tomcat and hand off the request using jk2. i have the workers2.properties to handle this with one tomcat server. however, i have another tomcat server that i need the request to be sent to. i have done this with jk by defining a sep

mod_jk Tomcat and Apache httpd two different machines?

2003-12-17 Thread James R. Marcus
I want to run tomcat on our build machine and apache with the Jk connector on another is this possible? Are there any good tutorial docs available to do this? Thanks, James - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

RE: JAVA_OPTS to tomcat

2003-12-17 Thread Vijay Kandy
Thank you but there was no need to pick on me. -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 3:02 PM To: Tomcat Users List Subject: RE: JAVA_OPTS to tomcat Howdy, Yeah, what's going on is limited familiarity with unix syntax. Use si

Re: JAVA_OPTS to tomcat

2003-12-17 Thread Krzysztof Gil
> Hello All, > > When I add the following line to catalina.sh: > JAVA_OPTS=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFact > ory -Djava.naming.provider.url=jnp://localhost:1099 > -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces > > I get this error: > ./catalina

RE: JAVA_OPTS to tomcat

2003-12-17 Thread Shapira, Yoav
Howdy, Yeah, what's going on is limited familiarity with unix syntax. Use single or double quotes of your JAVA_OPTS (or any other environment variable) includes spaces, e.g. JAVA_OPTS='-Da=b -Dc=d'. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Vijay Kandy [mailto:

JAVA_OPTS to tomcat

2003-12-17 Thread Vijay Kandy
Hello All, When I add the following line to catalina.sh: JAVA_OPTS=-Djava.naming.factory.initial=org.jnp.interfaces.NamingContextFact ory -Djava.naming.provider.url=jnp://localhost:1099 -Djava.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces I get this error: ./catalina.sh: -Djava.nami

Re: Benefits of Apache Server

2003-12-17 Thread Christopher Schultz
Yoav, I would be very careful with a claim like Ms. Smoak's, "Apache is... much faster serving static resources" as that's highly qualitative. Please provide benchmarks or tests that prove your point, because I don't think it's much faster at serving static resources. Retraction! I should have sa

using mod_rewrite with mod_jk2

2003-12-17 Thread jon yeargers
In what order do the various mod_* bits interact? Can I use mod_rewrite to setup the URL for passage to mod_jk2?

RE: Tomcat4.1.29 Requested resource not available

2003-12-17 Thread Nadia Kunkov
Yes, I did try it. Didn't work. Something isn't right in my configuration. I plan to install the next version, Tomcat 5.X now. Could you tell me how different is the configuration from the prvious version? What are the main steps? Can I find an RPM for that? I can't seem to find one... Is there

Tomcat 5 DefaultContext allowLinking and context restarts

2003-12-17 Thread John Noble
Howdy, I'm playing a bit with tomcat 5 and have questions about how the allowLinking attribute for the DefautlContext is supposed to work in regards to context restarts / stops/starts. Under several of my contexts, I have a symbolic link to a directory outside of the context. in server.xml I setup

RE: help in tomcat 5 and MS SQL 2000

2003-12-17 Thread Sleeper, Jesse
If you have a driver already I'll post a sample configuration. Whould that help? Jester -Original Message- From: Alan Czajkowski [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 11:37 AM To: Tomcat Users List Subject: Re: help in tomcat 5 and MS SQL 2000 u can either: a) se

Re: Security Policy

2003-12-17 Thread Jeanfrancois Arcand
Kwok Peng Tuck wrote: Hi list , With regards to the security manager in tomcat, is it possible to ship a policy file with each webapp ? No it is not. You have to put those permission in catalina.policy. -- Jeanfrancois --

Connector Error

2003-12-17 Thread Steven Garrett
Hi there, I know there is a link/page that will tell me what this error is: [error] mod_jk child init 1 -2 [error] jk2_init() Can't find child 2529 in scoreboard I just can't find it. Could someone please point me to it. Thanks in advance, Steve --

RE: Benefits of Apache Server

2003-12-17 Thread Wendy Smoak
Yoav wrote: > I would be very careful with a claim like Ms. Smoak's, "Apache is... > much faster serving static resources" as that's highly qualitative. > Please provide benchmarks or tests that prove your point, because I > don't think it's much faster at serving static resources. Retraction! I

Re: help in tomcat 5 and MS SQL 2000

2003-12-17 Thread Alan Czajkowski
u can either: a) search google for this info b) look at Tomcat Documentation in the JNDI Datasource HOW-TO, http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-datasource-examples-howto.html c) if setting up MS SQL 2000 is anything similar to Sybase ASE (which it should since they used to be

Loadbalancing with mod_jk2

2003-12-17 Thread Johann Uhrmann
Hello, what is the correct way to use JK2 for load balancing? According to the docs, jk2 should support load balancing and "graceful" shutdown of a worker. (Meaning that a particular worker will not get any new sessions.) This is a snippet my current configuration: [channel.socket:localhost:8009

RE: Tomcat5 not logging

2003-12-17 Thread Shapira, Yoav
Howdy, Tomcat5 uses commons-logging a lot more than tomcat4. So you have to be more careful not to mix configurations of commons-logging or log4j and not to mix jar locations of commons-logging. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Grassi Fabio [mailto:[EM

how to keep mod_jk from logging to stdout.log??

2003-12-17 Thread Russell A. Hatfield
We're running Apache 1.3.29, Tomcat 4.1.27 with mod_jk 1.3 on Windows 2k Server and we're seeing some 'disturbing' activity that we cant get around. It appears that every html form post to a servlet that comes thru gets logged in the stdout.log file. I've set every logging/debugging setting I ca

help in tomcat 5 and MS SQL 2000

2003-12-17 Thread suchun18
Hi, I'd like to learn JSP with Tomcat 5. Any help in how to configure Tomcat in order to connect with MS SQL 2000 server. Thanks in advance, Suchun Wu 1 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

Tomcat5 not logging

2003-12-17 Thread Grassi Fabio
Hi, is there any known issue with Tomcat 5.0.16 and logger activity on win2k? I recently upgraded from Tmcat 4.1.29 and have the "feeling" that something is not working as properly as before. When installad as a service, I don't get the file produced by Tomcat loggers, while I get the log from log4

Tomcat (embedded in JBoss) hangs during startup of SSL connector

2003-12-17 Thread Nicolai Bieber
Hi there, I've encountered a strange problem while starting jboss 3.2.1 (including tomcat 4.1.24) with the SSL-Connector enabled on port 443: Symptom: The server hangs while initializing the SSL-connector and never comes back (at least not for several hours). So the whole start-up processes is fr

Re: URGENT PLEASE HELP ME........................................

2003-12-17 Thread Ben Souther
If his app is directly under the webapps directory, he shouldn't need to alter server.xml. AutoDeploy will pick it up. You will, however need to create a mapping for your servlet in your web.xml file under WEB-INF in your app's directory. On Wednesday 17 December 2003 11:05 am, qi zhang wr

Re: URGENT PLEASE HELP ME........................................

2003-12-17 Thread qi zhang
You should change your server.xml, adding another context like Try to see if it will help. > I could able to run servlets in tomcat 4.1. I created > a folder called webdev in webapps in that i created WEB-INF and > classes. I stored web.xml in WEB-INF. as follows. > webapps/webdev/WEB-INF/cla

Re: localhost works, www does not; why?

2003-12-17 Thread Jerry Ford
Thanks. Problem has been solved. In httpd.conf, the Tomcat configs were enclosed in a virtual host block. When I removed the ... tags, the problem went away and it now works correctly. BTW, I also observed the changing URL; that, too, has gone away. Jerry Adam Hardy wrote: On 12/16/2003

RE: Why not get my custom Principal using request.getUserprincipal()?

2003-12-17 Thread Shapira, Yoav
Howdy, >do you mean the JBoss realm? No, I mean Tomcat's realm., aka the org.apache.catalina.Realm class. There's a realm how-to page in the tomcat documentation and you will also want to look at one of the provided realms as you'll need to extend them. Yoav Shapira >"Tomcat Users List" <[E

RE: Okay to create threads in ServletContextListener?

2003-12-17 Thread Shapira, Yoav
Howdy, It won't be a technical problem if you implement your threads well, but it's a semantic issue. The conclusion of the contextInitialized event means the context is ready to receive requests. If your background threads are still running, if your webapp ready to handle requests? Your servlet

Problem starting 2 Tomcat Services using Tomcat5 Service Manager

2003-12-17 Thread Sumpter, Chuck
In attempting to configure multiple Tomcat5 instances on a Win2k server, I'm having trouble getting the services to function correctly. I've lurked on the list for a while and searched in vain for the connection between the Tomcat Service Manager's "Parameters" registry entries and the actual HK

RE: Why not get my custom Principal using request.getUserprincipal()?

2003-12-17 Thread Anis Ben Hamidene
Hi, do you mean the JBoss realm? "Tomcat Users List" <[EMAIL PROTECTED]> schrieb am 17.12.03 15:05:24: > > > Howdy, > Read the Realm documentation to see how to customize your Realm such that it returns > your custom Principal. > > Yoav Shapira > Millennium ChemInformatics > > > >-Origina

Okay to create threads in ServletContextListener?

2003-12-17 Thread Wendy Smoak
I'm getting complaints that Tomcat takes for-ev-er to start up, and the thing that's taking so long is all my ServletContextListeners (one for each webapp) going out to the database and loading a bunch of Maps into application scope. Later, those get used to populate select lists. Not that we re

FW: Installation quesiton

2003-12-17 Thread Rob McGrath \(Rite Aid Corp\)
Sorry - hoping this worked. somehow the original message is being converted to an attachment when tsent to this list??? I checked the copy of my message I received. We'll see. Hope you do get this. May explain why the other message I sent hasn't been responded to. My apologies.

RE: Installation quesiton

2003-12-17 Thread Hart, Justin
Well... as long as we've established that the question can't be held against rite-aid... am I in trouble for copying the portion necessary to reply to this email? Justin __ Disclaimer: This e-mail message is intended only fo

Installation quesiton

2003-12-17 Thread Rob McGrath \(Rite Aid Corp\)
--- Begin Message --- Following these 2 commands: 1. keytool -import -alias root -keystore -trustcacerts -file 2. keytool -import -alias Tomcat -keystore -trustcacerts -file Are these the same file? The first: = should be the cert.cer file received from the CA, no? In examples I've found

RE: Tomcat-Apache Security

2003-12-17 Thread Pitre, Russell
I have this book and I like it.The java security manager is a little over my head at this point in my Tomcat experiencesI'm sure I'll pick it up soon.the chapters on the Realms are really good as well as the second or third chapter on file security...I found it pretty straight forward a

Re: Connection Reset By Peer

2003-12-17 Thread Philipp Taprogge
Hi! Ferreira, André wrote: Can someone please explain to me what does "Connection reset by peer" means? Does it mean the server does not recognize the connection attempt from Tomcat or are there some other explanations. Or is there some port not available...:-(. Since TCP is a connection-less

Re: precompile jsp

2003-12-17 Thread Reinhard Moosauer
Hi Hans, your problem is a version conflict. ant simply uses the wrong version of org.apache.jasper.JspC. I had a version of "j2ee-1.3.jar" in my classpath, which contains JspC also. I removed it and the problem was gone. regards, Reinhard Am Sonntag, 14. Dezember 2003 18:03 schrieb Hans Stei

Tomcat + Windows 2K Services

2003-12-17 Thread Eriksen, Kjell
Hello all, I have multiple applications running (same app - different instances) under Tomcat 4.x through IIS. They are configured as Windows Services. However, when the tomcat site fails - it doesn't crash the windows service. Know of a way to force the windows service to fail upon site failur

Ajp13Connector is not in Apache 2.0.48.

2003-12-17 Thread charles doweary
I have Apache 2.0.48 and Tomcat 5 installed on my PC, and attempted to configure Tomcat and Apache With JK 1.2. following the instruction listed at this URL http://www.onjava.com/pub/a/onjava/2002/11/20/tomcat.html Assuming that the ajp13 connector that is required to complete the configuration

RE: Reading from an xml file from servlet supporting class

2003-12-17 Thread Shapira, Yoav
Howdy, You should read up on ServletContext#getResource and Classloader#getResource. I mentioned this in another thread where you asked a similar question. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Teja Jo [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 16,

RE: Problems with sending a serialized object from servlet to applet using Tomcat

2003-12-17 Thread Shapira, Yoav
Howdy, And what was the solution? Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Dicheva, Darina [mailto:[EMAIL PROTECTED] >Sent: Tuesday, December 16, 2003 6:51 PM >To: 'Tomcat Users List' >Subject: RE: Problems with sending a serialized object from servlet to >appl

RE: Tomcat and Log4J

2003-12-17 Thread Shapira, Yoav
Howdy, Your problem is not log4j, it's commons-logging, which is nearly always the culprit. The issue arises if log4j is in a classloader below commons-logging, so commons-logging doesn't know log4j is there. You're configuring log4j OK, and if you used a log4j Logger rather than a commons-loggi

RE: Please help - FileNotFoundException

2003-12-17 Thread Shapira, Yoav
Howdy, Yes: don't use a FileInputStream. Get the resource from the servlet context (ServletContext#getResourceAsStream). Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Teja Jo [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 17, 2003 8:37 AM >To: [EMAIL PROTECTE

RE: Tomcat-Apache Security

2003-12-17 Thread Shapira, Yoav
Howdy, Maybe google or a book like this: http://www.programming123.com/detail/apache/apache_1861008309.html In the future, you might want to think about security before setting up a production environment ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Joaquin Cor

RE: Why not get my custom Principal using request.getUserprincipal()?

2003-12-17 Thread Shapira, Yoav
Howdy, Read the Realm documentation to see how to customize your Realm such that it returns your custom Principal. Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Anis Ben Hamidene [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 17, 2003 7:37 AM >To: [EMAIL PROT

RE: Need some Tomcat Configuration help badly

2003-12-17 Thread Shapira, Yoav
Howdy, Actually, the popularity and usage of Jikes has been decreasing (at least as measured by downloads). Javac's memory-handling behavior has been improved significantly. The memory leaks described earlier in this thread are not compiler-related and simply swapping compilers would not help.

RE: Benefits of Apache Server

2003-12-17 Thread Shapira, Yoav
Howdy, Servlet and JSP pages are dynamic resources: java code is executed every time the user requests them. HTML pages, CSS pages, images, .js files are static resources: no code is run to produce them. They are created once and placed on the server, to be served the same to all requests. I wo

RE: getPathInfo behaviour changed in tomcat 5.x?

2003-12-17 Thread Shapira, Yoav
Howdy, Did we gain much performance? ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker >Sent: Tuesday, December 16, 2003 11:31 PM >To: [EMAIL PROTECTED] >Subject: Re: getPathInfo behaviour changed in tomcat 5.x?

RE: admin tool - tomcat 5.0.16

2003-12-17 Thread Shapira, Yoav
Howdy, You're not using the back button of your browser while in the admin webapp, by any chance? I was investigating a similar bug report. Otherwise, the 2nd one definitely looks internal to struts, which is strange. Yoav Shapira Millennium ChemInformatics >-Original Message- >From:

Re: ssl startup problem

2003-12-17 Thread Jason Jesso
Do mean upgrade Tomcat? If so, to what? Bill Barker wrote: 4.1.24 only supports Sun's JSSE. You'll need to upgrade to be able to use IBM's Providers. "Jason Jesso" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] I am using AIX5.2, Tomcat 4.1.24, Java 1.4. When I start Tomcat u

RE: 5.0.16 sample can't deploy, gets zip exception

2003-12-17 Thread Shapira, Yoav
Howdy, Add a valid web.xml to your war file and try again ;) Yoav Shapira Millennium ChemInformatics >-Original Message- >From: Ray Tayek [mailto:[EMAIL PROTECTED] >Sent: Wednesday, December 17, 2003 1:20 AM >To: [EMAIL PROTECTED] >Subject: 5.0.16 sample can't deploy, gets zip exception

Please help - FileNotFoundException

2003-12-17 Thread Teja Jo
Hello everyone, I am parsing a xml file using FileInputStream a file from a servlet.The file is in the same directory as the servlet.Yet it is giving me a "FileNotFoundException".Can anyone tell me some solution for this. Regards, Tejashri. - Do you Yahoo!? F

Re: Maximum page size before JasperException

2003-12-17 Thread Rodrigo Ruiz
Hi Peter, I am not sure of which are the current limitations of the JVM in method code and constants pool sizes, but with such a huge JSP you could be reaching them. Remember that your JSP will be converted into a servlet, and that most of the JSP code will be generated inside a single method (

Re: <%@include and UTF-8

2003-12-17 Thread Michiel Meeuwissen
Michiel Meeuwissen <[EMAIL PROTECTED]> wrote: >I saw this in tomcat 4.1.27 and 5.0.16. Correction: In tomcat 4.1.27 is works as expected after all. It is only tomcat 5 which behaves weirdly. Michiel -- Michiel Meeuwissen Mediapark C101 Hilversum +31 (0)35 6772979 nl_NL eo_XX en_US mih

Why not get my custom Principal using request.getUserprincipal()?

2003-12-17 Thread Anis Ben Hamidene
Hi, I am using JBoss 3.2.1 with embedded Tomcat 4. I am developping a secure web-application based on JAAS. The problem is that I want to use my own custom Principal. I made the necessary changes in JBoss and EJBContext.getUserprincopal delivers the right Implementation. But when I call request

<%@include and UTF-8

2003-12-17 Thread Michiel Meeuwissen
I have a page encoded in UTF-8. So I set <[EMAIL PROTECTED] pageEncoding="UTF-8" %> Now I can actually use UTF-8 in my page, and it works as it should. If however I include a piece of JSP, with <[EMAIL PROTECTED] %> then this included page can not be in UTF-8. It is interpreted as if it is ISO-8

RE: Maximum page size before JasperException

2003-12-17 Thread Peter Guyatt
Hi There, The JSP page had it as a JavaScript variable (long story!!). I am more curious to find out what the maximum size is due to an academic curiosity Thanks Pete -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 11:21 To: Tomcat Users List S

Connection Reset By Peer

2003-12-17 Thread "Ferreira, André"
Can someone please explain to me what does "Connection reset by peer" means? Does it mean the server does not recognize the connection attempt from Tomcat or are there some other explanations. Or is there some port not available...:-(. 2003-12-17 01:14:06 - ContextManager: SocketException rea

Re: Maximum page size before JasperException

2003-12-17 Thread Kwok Peng Tuck
Hmm maybe you can just write out the file to the response body in a servlet ? Or do you need to do something in the jsp ? Peter Guyatt wrote: Hi there, Its an XML file Pete -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 11:12 To: Tomcat User

RE: Maximum page size before JasperException

2003-12-17 Thread Peter Guyatt
Hi there, Its an XML file Pete -Original Message- From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED] Sent: 17 December 2003 11:12 To: Tomcat Users List Subject: Re: Maximum page size before JasperException What are you displaying in a JSP page that takes up 4 megs ? Peter Guyatt

Re: Maximum page size before JasperException

2003-12-17 Thread Kwok Peng Tuck
What are you displaying in a JSP page that takes up 4 megs ? Peter Guyatt wrote: Hi There, Can anyone possibly tell me what the maximum page size allowed when compiling/presenting JSP page. The question arises when I try and display a 4meg file. If there is a limit is there any way to i

session redirection automatic

2003-12-17 Thread Philippe Valle
hi, I use tomcat 4.1.29 and my server.xml have Session expire to 60. When Session expired i want redirect automaticly the user on sessionerror.jsp . how i do that ? this test is do on jsp pages or servlet ? Did you have an example ? thanks. ---

Maximum page size before JasperException

2003-12-17 Thread Peter Guyatt
Hi There, Can anyone possibly tell me what the maximum page size allowed when compiling/presenting JSP page. The question arises when I try and display a 4meg file. If there is a limit is there any way to increase the maximum allowed size? Thanks Pete

JNDI Error / Servlet Error / Tomcat Admin Error !!!

2003-12-17 Thread Allistair Crossley
Hi Guys, I am tring to use JNDI for an SQL Server database in my Struts/Tomcat 5.0.16 application. The fact is that this has been working until today where I added a few new actions that do not even use the database and yet for some reason mayhem has ensued. I am using a Servlet that has a loa

RE: URGENT PLEASE HELP ME........................................

2003-12-17 Thread Schalk
Pinguti Can you post the xml code here or somewhere on the web where we can have a look at it. I have not had any problems with Tomcat and web.xml. Kind Regards Schalk Neethling Web Developer.Designer.Programmer.CEO Volume4.Development.Multimedia.Branding emotionalize.conceptualize.visualize.real

Re: localize web.xml

2003-12-17 Thread Adam Hardy
On 12/17/2003 11:15 AM Jason Novotny wrote: Hi, In my project I use getServletContextName to get me the description of the webapp specified in web.xml. However, is there a way to maintain localized descriptions? It seems it only allows me to set on entry so if I present that to my Italian

Re: localhost works, www does not; why?

2003-12-17 Thread Adam Hardy
On 12/16/2003 05:55 PM jford wrote: This may have been asked many times before, but I can't find it, in part because I don't quite know what to search for and in part because it may not even be a Tomcat-specific issue. But it occurs because I'm trying to make Tomcat work, so here goes... (if I'm

localize web.xml

2003-12-17 Thread Jason Novotny
Hi, In my project I use getServletContextName to get me the description of the webapp specified in web.xml. However, is there a way to maintain localized descriptions? It seems it only allows me to set on entry so if I present that to my Italian users, it won't make a lot of sense. Th

RE: URGENT PLEASE HELP ME........................................

2003-12-17 Thread George Sexton
Try reading the documentation. The default invoker is disabled in 4.1.x. Either re-enable it, or create servlet/servlet mapping pairs in the web.xml file. -Original Message- From: Pinguti Sridevi [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 17, 2003 1:22 AM To: anand; javagroup; pa

  1   2   >