Re: improved

2004-10-28 Thread duncan
Your document. Attachment: No Virus found Norton AntiVirus - www.symantec.de - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Lib directory

2004-10-28 Thread Edouard Dalla-Costa
Hello, I am developping a web application using several servlets. And I was wondering how could I add sub-directory in the lib directory of my webapp. I need something like 20 jar files and without organization, it is a big mess. I just don't know how to make tomcat know that I am using

OutOfMemoryError: unable to create new native thread

2004-10-28 Thread Carl Olivier
Greetings. I am periodically having to restart a normally very stable tomcat 5 instance due to: OutOfMemoryError: unable to create new native thread Now, as far as I understand the following are the reasons for this: - Actually ran out of memory - Hit max # of threads allowed to run (OS

RE: Problem with logging in Eclipse

2004-10-28 Thread Donie Kelly
Hi guys I have the same problem and it's driving me nuts. I have a run configuration in Eclipse 3.0 for tomcat 4.1.18 and I call bootstrap.jar directly within eclipse to start tomcat. The only jars I put in the run configuration class path are the tomcat ones. This starts tomcat as it would be

No Images Displayed

2004-10-28 Thread Ciaran Hanley
Hi, We have just moved to a new server with tomcat 5 and apache 2 which are linked using modjk. I have uploaded a working version of an application to the webapps directory on the server. My problem is when I try and access the login page of the application none of the images or style sheets

Re: JNDI Resources in web.xml

2004-10-28 Thread David Smith
Hi. As I understand it from lurking on this list a very long time, servlet spec 2.3 and earlier validated the web.xml file on a DTD. DTDs require the elements be in the right order and tomcat will throw an exception when the webapp is deployed with elements out of order. Servlet Spec 2.4

RE: JNDI Resources in web.xml

2004-10-28 Thread Benson Margulies
The question is not 'DTD or schema'. The question is, 'does the 2.4 schema relax the order, and does Tomcat comply?' -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 7:49 AM To: Tomcat Users List Subject: Re: JNDI Resources in web.xml Hi.

RE: No Images Displayed

2004-10-28 Thread Allistair Crossley
if you right click on one of the missing images and view properties, what does the URL look like? does it point to where you would expect? this sounds like the URL to the images is not visible via the web server AC -Original Message- From: Ciaran Hanley [mailto:[EMAIL PROTECTED]

Re: c:forEach within custom tag definition

2004-10-28 Thread David Stevenson
... I wanted to raise it here for suggestions before submitting a bug report... Just as well I didn't do a bug report! It's now resolved. The book I was using didn't have the necessary info, but I've now found it and fixed the problem. The attribute in the tag file defaults to type

problems with apache-tomcat connection ...

2004-10-28 Thread Clara Ines Pena de Carrillo
Hi everybody, sorry if this is a silly question because I am not an expert, but I was looking for the solution to my problem consulting to google and nobody has answered about the following problems with apache-tomcat connection: a) I have Solaris 8, apache 2.0.47, jdk 1.4.2, tomcat 4.1.24

RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Steve Kirk
I'm not personally aware of anything already built in to TC that specifically handles request, although having said that I haven't really ever had the need for it. However I think that the standard features of TC will probably make this quite straightforward to do. Have you written Java and/or

Re: Problem Authenticating Users in LDAP

2004-10-28 Thread Mark Doppelfeld
Hi, have a look in your log files. It should tell you something about your authentication process... Mark Sandeep N wrote: Hi, I have a problem trying to authenticate users, whose details are stored in the LDAP directory through Apache Tomcat. The details of the software I am using are as

RE: Apache, Tomcat and mod_jk2 - question about layout

2004-10-28 Thread Phillip Qin
Think of an empty jk2.properties. -Original Message- From: Allen Williams [mailto:[EMAIL PROTECTED] Sent: October 27, 2004 7:20 PM To: Tomcat Users List Subject: RE: Apache, Tomcat and mod_jk2 - question about layout Thanks so much. I'll try it today or tomorrow. Even though you

RE: problems with apache-tomcat connection ...

2004-10-28 Thread Phillip Qin
It took a while to figure out that broken pipe. It's not that fancy. It usually happens when use visits a page and stop/cancel during page loading. -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: October 28, 2004 9:12 AM To: [EMAIL PROTECTED] Subject:

RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Shawn Church
Steve, I've developed servlet-based webapps for several years, I've written servlet filters and implemented many various types of authentication mechanisms, and I've also done request forwarding within an application. I was hoping to implement something similar to request forwarding, but

RE: Virtual Hosts and useCanonical

2004-10-28 Thread Mike Curwen
Thanks Bill. I suppose I must have been dreaming about getServerName working. Our current production box is TC4.1.30, and for our next version of the app, I wanted to target TC5.0.29. Looks like it is a must have. Yoav will be happy. ;) -Original Message- From: news [mailto:[EMAIL

Re: JNDI Resources in web.xml

2004-10-28 Thread David Smith
Yes to both. --David Benson Margulies wrote: The question is not 'DTD or schema'. The question is, 'does the 2.4 schema relax the order, and does Tomcat comply?' -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 7:49 AM To: Tomcat Users

RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Mike Curwen
Maybe it's too obvious to say ... but does the cgi servlet (that comes with Tomcat) fit your needs ? http://jakarta.apache.org/tomcat/tomcat-5.0-doc/cgi-howto.html -Original Message- From: Shawn Church [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 27, 2004 9:58 PM To: [EMAIL

RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Phillip Qin
The only issue I can see that he will have is the path in web.xml with CGIServlet. I have to move all cgi scripts to a directory under my ${catalina_home}/webapps/${host} -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: October 28, 2004 10:33 AM To: 'Tomcat Users

Tomcat Manager roles

2004-10-28 Thread Robert Humble
I have setup multiple Manager's and can isolate the apps. The problem is the tomcat-users.xml file. Both version of the manager use the same tomcat-users.xml. The one that was last defined for permission. So when I give the developer's access to one manager they can just change the port and access

RE: Re[2]: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
Benson wrote: Yoav, in one posting, explained that the servlet spec is written from a point of view that only requires support for applications in unexploded WAR files. Does the spec explicitly state that point of view? I can't find that anywhere in the spec doc. Therefore this makes me

RE: Servlet gateway to legacy cgi application

2004-10-28 Thread Shawn Church
I initially looked at CGIServlet, but I run the Apache http server, rather than using Tomcat's implementation. I also need to implement my own functionality (primarily for user authentication). But yes, this is close to what I'm after. I'm sure I can roll my own, but it would be nice to

Tomcat logging

2004-10-28 Thread Derek Greer
I am currently having a problem getting my JSPs to log with the JDK 1.4 logging. When I configure my logging.properties file to set the global .level to FINEST I can see everything including all the org.apache.jsp.[my packages] logs I'm looking for, but if I set .level to INFO and explicitly

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
I have been in learning mode about Resource/Context config for the last few weeks, mainly from the point of view of DBCP config. I did find all the alternatives confusing at first, but having read more and more docs, and getting some help from the good people on this list, I'm starting to get it

RE: Tomcat Manager roles

2004-10-28 Thread Shapira, Yoav
Hi, You can define different Realms for the Manager, as you need. You can do so per Host or even per Manager webapp inside its Context. It's actually pretty easy. They can be Memory Realms driven from any file you want, or any other kind of Realm. Yoav Shapira http://www.yoavshapira.com

RE: Re[2]: JNDI DataSource GlobalResources problem

2004-10-28 Thread Benson Margulies
The standard make a series of provisions for the case in which there is no 'pathname' corresponding to some resource in a web application. These provisions were intended to support a model where a WAR file is never exploded into a native file system. Conceptually, you can model this as supporting

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Shapira, Yoav
Hi, Besides completely agreeing with Steve (so Benson, your time could probably be better spent elsewhere, such as by putting on the tech writer hat you mentioned earlier), I wanted to mention one other alternative. You *always* have the option of *not* using container-managed resources, and

RE: Lib directory

2004-10-28 Thread Shapira, Yoav
Hi, You can't without significant effort. 20 jars is no big deal, and the Spec does not provide for subdirectories under a classloader repository. If you really want to do this, you need to write a custom classloader (implementing Tomcat's Loader interface and likely extending

RE: Re[2]: JNDI DataSource GlobalResources problem

2004-10-28 Thread Shapira, Yoav
Hi, Yeah, well put, saving me time to type up this response yet again ;) To the OP (I think) who said it'd be nice if context.xml was handled uniformly: sure, that would be nice. Please submit patches for any area you find inconsistent. Yoav Shapira http://www.yoavshapira.com -Original

RE: Context mapping question

2004-10-28 Thread Shapira, Yoav
Hi, Context path=/ docBase=app1 debug=9 Changing this one path to path= instead of /. Set autoDeploy/liveDeploy/deployOnStartup to false for both of your Hosts. Because they share an appBase, the apps are being deployed once *per* Host. The rest of your

RE: OutOfMemoryError: unable to create new native thread

2004-10-28 Thread Shapira, Yoav
Hi, - Actually ran out of memory - Hit max # of threads allowed to run (OS dependant?) This is the most likely cause in your case, and it's OS-dependent as you surmised. On *nix this is adjusted via the ulimit (-n) command. But on Windows 2000 Server, I'm not sure off the top of my head.

File upload

2004-10-28 Thread Derrick Koes
Configuration: Tomcat 5.0.24 IIS 5.0 JK2 connector Isapi_redirector2.dll Struts 1.1 Commons file upload 1.0 I seem to have an issue that when the file is a certain size it is written to a temp file on the file system before it is parsed by the multipart parser (at least that's what the

RE: File upload

2004-10-28 Thread Shapira, Yoav
Hi, First question, as always: does it work on Tomcat standalone, i.e. removing IIS, JK2, and the redirector out of the mix (just for now, for testing)? Yoav Shapira http://www.yoavshapira.com -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28,

RE: File upload

2004-10-28 Thread Allistair Crossley
you have the _exact_ same setup as we do here (except we are on 5.0.25). we upload files using a multipart form and file control. then in the struts action List items = null; try { DiskFileUpload upload = new DiskFileUpload(); items = upload.parseRequest(request); } catch

Re: File upload

2004-10-28 Thread Caroline Jen
Are you following the struts-upload.war example that comes with the Struts 1.1? In that example, the uploaded file size is checked. If a file is stored somewhere under the AppName/WEB-INF directory, you have to use the stream to read the file. --- Derrick Koes [EMAIL PROTECTED] wrote:

Can Tomcat Contexts have class naming collisions?

2004-10-28 Thread agidden
We have Tomcat 4.1.30 in Win2000 using JDK 1.4.2_05. We are having a problem where ONE of our classes will not load. The class name is Marketplace.class (package com.marketplace.core) Our Tomcat webapp (Context) is named 'marketplace'. Code works fine except when you try to reference the

RE: problems with apache-tomcat connection ...

2004-10-28 Thread Clara Ines Pena de Carrillo
On Thu, 28 Oct 2004, Phillip Qin wrote: Hi Phillip, Thank you for your comment about my doubt, however I want to know what the apache errors mean and if those affect the performance of my system anyway. Greetings, Clara Ines Pe¤a de Carrillo Divisi¢n de Servicios de Informaci¢n Universidad

RE: Can Tomcat Contexts have class naming collisions?

2004-10-28 Thread Shapira, Yoav
Hi, If your context is named 'marketplace', will Tomcat have trouble with a class named 'Marketplace'? (this is the effect we are seeing) No, Tomcat won't have this kind of trouble. Have you considered the difference between a ClassNotFoundException and a NoClassDefFoundError? Your message

RE: File upload

2004-10-28 Thread Derrick Koes
The error occurs before execution makes it to my upload action. -Original Message- From: Allistair Crossley [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 12:02 PM To: Tomcat Users List Subject: RE: File upload you have the _exact_ same setup as we do here (except we are

Tiles and other sruts tags in Tomcat5

2004-10-28 Thread Geeth Narayanan
I am trying to use Struts 1.2.4 on Tomcat 5.0. I seem to get errors for any of the struts tags including the tiles tag due to incompatibility with JSP2.0 or something, I guess. Here is the error: :\wqt\vcs\tis\nb\tel-web-ube\build\generated\src\org\apache\jsp\jsp\shop \Input_jsp.java:112:

newbie question

2004-10-28 Thread Luke FERNANDEZ
Is there an easy way to specify that one of the apps in the webapps folder be served off one port (e.g. 80) whereas another app should be served off another port (8080)? Thanks for your help, Luke Fernandez Weber State University

RE: File upload

2004-10-28 Thread Allistair Crossley
oh i see. i guess we don't use it in this way. org.apache.commons.fileupload.FileUploadException is being thrown before you hit the action you say? how do you involve common fileupload direct from the form post if you don't mind my asking? -Original Message- From: Derrick Koes

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
Funny, I was thinking of mentioning that in my post below, but didn't because I hadn't checked that it would definitely work. But that's what I'm going to do from now on. Thanks Yoav, this looks like the right answer to me. Don't know why I didn't think of it earlier really. I suppose it's

RE: problems with apache-tomcat connection ...

2004-10-28 Thread Phillip Qin
I can't represent other people. My observation is it has no impact on performance. -Original Message- From: Clara Ines Pena de Carrillo [mailto:[EMAIL PROTECTED] Sent: October 28, 2004 12:06 PM To: Phillip Qin Cc: 'Tomcat Users List' Subject: RE: problems with apache-tomcat connection

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Shapira, Yoav
Hi, Don't know why I didn't think of it earlier really. I suppose it's because when you first try this, you google for something like servlet connection pooling, and get to various DBCP how-to pages, and away you go down that path, and get tied up with context.xml vs server.xml, META-INF/ vs

RE: newbie question

2004-10-28 Thread Shapira, Yoav
Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004

RE: File upload

2004-10-28 Thread Derrick Koes
The stack trace shows that struts'org.apache.struts.upload.CommonsMultipartRequestHandler.handleReq uest(CommonsMultipartRequestHandler.java:233) invokes commons file upload. I honestly don't know how struts decides to do this. I'm assuming like any other application by examining the request

RE: File upload

2004-10-28 Thread Derrick Koes
As I mentioned in another reply, I never get to my action. And, yes my action mirrors the struts-upload.war example pretty closely. Multiple files may have been uploaded in my case, so I have to handle that. In the case posted, only one file was uploaded. Derrick ContactInfo NameDerrick

RE: OutOfMemoryError: unable to create new native thread

2004-10-28 Thread Carl Olivier
Hi Yoav. Thanks for the response. I believe I have found the issue. Apparently Windows NT/2000 defaults to a 1mb virtual thread stack size per thread unless otherwise stated. In addition a maximum of 2gb of thread stack space per process is allowed by Windows (not sure if this can be changed

RE: OutOfMemoryError: unable to create new native thread

2004-10-28 Thread Shapira, Yoav
Hi, Apparently Windows NT/2000 defaults to a 1mb virtual thread stack size per thread unless otherwise stated. In addition a maximum of 2gb of thread stack space per process is allowed by Windows (not sure if this can be changed or not!). Thus the tomcat JVM could only have 2000 odd concurrent

channelUnix.file is missing

2004-10-28 Thread FM
I read that tomcat is supposed to create the channelUnix.file=${jkHome}/work/jk2.socket file. But it did not. I use the binary of tomcat, do i have to use src to be able to use unixsocket ? Thanks FM - To unsubscribe, e-mail:

RE: newbie question

2004-10-28 Thread Ben Souther
Or you could run multiple instances of Tomcat On Thu, 2004-10-28 at 12:23, Shapira, Yoav wrote: Hi, Yes: define separate Engines or Services for the two apps in your server.xml, and put each connector only in the Service where you want it. Yoav Shapira http://www.yoavshapira.com

Upload MS DOC or Image file errors.

2004-10-28 Thread Daxin Zuo
Hi, I am use the File Upload. I need to read the whole file contents in a String buffer. If the file is text, it works. But if the file is in other format, such as MS Doc, I can load the file, and the file size is the same comparing the original file, but the format is changed, and I cannot open

proxy support and X-Forwarded-For

2004-10-28 Thread Ronald Klop
Hallo, Does Tomcat support the headers: X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server when running behind a proxy? And if not, would this be a nice feature? I'm running Tomcat 5.0.25 behind Apache 1.3/mod_proxy and doesn't look like Tomcat uses these headers. Any thoughts? I'm willing

AW: Upload MS DOC or Image file errors.

2004-10-28 Thread Steffen Heil
Hi Hi, I am use the File Upload. I need to read the whole file contents in a String buffer. Why into a String buffer? This is propably a charset encoding problem. Do NOT read it into a stringbuffer. See FileWriter documentation: FileWriter is meant for writing streams of characters. For

AW: proxy support and X-Forwarded-For

2004-10-28 Thread Steffen Heil
Hi Does Tomcat support the headers: X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server when running behind a proxy? I'm running Tomcat 5.0.25 behind Apache 1.3/mod_proxy and doesn't look like Tomcat uses these headers. What would you expect tomcat to do when these headers are present?

Re: AW: proxy support and X-Forwarded-For

2004-10-28 Thread Ronald Klop
On Thu Oct 28 19:50:35 CEST 2004 Steffen Heil [EMAIL PROTECTED] wrote: Hi Does Tomcat support the headers: X-Forwarded-For, X-Forwarded-Host and X-Forwarded-Server when running behind a proxy? I'm running Tomcat 5.0.25 behind Apache 1.3/mod_proxy and doesn't look like Tomcat uses these headers.

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Can you run multiple instances of Tomcat? I tried this but I ran into problems. I'm running Sakai (the open source Learning Management System) which installs its own Tomcat engine. When I try to start up my own non-Sakai Tomcat instance from the command line (which resides in a completely

RE: No Images Displayed

2004-10-28 Thread Ciaran Hanley
The problem was that modJK was only set up to serve .jsp files through tomcat, but not the images bundled in my application. I reconfigured it to handle all the applications in the webapps directory and any files in their sub directories. Thanks -Original Message- From: Allistair

RE: File upload

2004-10-28 Thread Derrick Koes
Upon reviewing some struts code and documentation, the memory threshold for a file to be parsed for upload is 256K (configurable). If the file is over that size, I believe the uploader puts it in a temp file. However, since the url to retrieve it for parsing is a relative path, the parser

RE: newbie question

2004-10-28 Thread Filip Hanik \(lists\)
you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat, call catalina.bat run to have the windows stay the same and not shutdown on you FIlip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday,

Re: No Images Displayed

2004-10-28 Thread Mark Lowe
Thats fine that what JK is supposed to do and thats what it is doing.. I assume your mappings are *.jsp or /servlet/* and such like. It sounds like you you apache virtual host just needs configuring .. DocumentRoot /path to webapp/appname This way when requests for stuff that isn't handled

RE: File upload

2004-10-28 Thread Derrick Koes
Yep, taking IIS and the connector out of the picture produces the same problem. ContactInfo NameDerrick Koes/Name TitleSenior Software Engineer/Title Company name=SkillSoft url=http://www.skillsoft.com/ AIMcodeauthor2001/AIM Email[EMAIL PROTECTED]/Email Phone(603)

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Ok I'll research that. Any chance you could give me an example of how to write this in the server.xml? I've got the following webapp folder structure. balancer jsp-examples ROOT_OLD sakai-chef-tool sakai-dav sakai-embedded sakai-framework-component sakai-james sakai-legacy-component

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
There would be port conflict even though the Sakai Tomcat app serves from port 8080 while my Tomcat instance serves from port 80? Luke [EMAIL PROTECTED] 10/28/2004 12:28:46 PM you have conflict in ports, both tomcats can not run on the same port at the same time. instead of calling start.bat,

RE: newbie question

2004-10-28 Thread Filip Hanik \(lists\)
did you look at the other connectors? catalina.bat run - will tell you the message, try that Filip -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 1:52 PM To: [EMAIL PROTECTED] Subject: RE: newbie question There would be port conflict

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Ok. When I use catalina.bat run instead of startup the window stays open but the second instance (on port 80) still isnt serving pages. I've included the screen output that happens after running catalina.bat run. Looks like its saying something about address already in use:

RE: newbie question

2004-10-28 Thread Steve Kirk
you can have them run at the same time but you need to configure them to run on separate ports. for your standard TC 5.0.28 the file to edit is CATALINA_HOME/conf/server.xml - see the docs at http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/index.html for an explanation of how server.xml

RE: newbie question

2004-10-28 Thread Filip Hanik \(lists\)
yes, and if you actually read the message StandardServer.await: create[8005]: java.net.BindException: Address already in u se: JVM_Bind java.net.BindException: Address already in use: JVM_Bind look for 8005 in your server.xml and you will find out that this is the shutdown port. Filip

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
So its more complicated than configuring server.xml for first instance (e.g. Sakai) as: !-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -- Connector port=8080 maxThreads=150 minSpareThreads=25 maxSpareThreads=75 enableLookups=false

RE: newbie question

2004-10-28 Thread Shapira, Yoav
Hi, The shutdown port is also in server.xml, at the top of the file. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Luke FERNANDEZ [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 3:19 PM To: [EMAIL PROTECTED] Subject: RE: newbie question So its more

RE: newbie question

2004-10-28 Thread Steve Kirk
I would advise that you read the doc, because it only takes a few mins, and then you'll understand what's really happening ;) But to get you going, assuming that you have not changed the standard server.xml significantly: 1. Change any active connector ports. The one you mention below is the

RE: newbie question

2004-10-28 Thread Luke FERNANDEZ
Am I spamming if I say thanks to all of you for your help? I changed the following line in server.xml and now both instances run: !-- Server port=8005 shutdown=SHUTDOWN debug=0 -- Server port=8007 shutdown=SHUTDOWN debug=0 I hope I wasn't imposing by asking all these naive questions.for me

RE: newbie question

2004-10-28 Thread Steve Kirk
Some more thooughts that came to mind after hitting send: You might find it easier to use server-minimal.xml if you are using TC 5.0.28 standalone. It's much smaller and easier to follow if you are just getting started. Restart the server after you have replaced the file. Re your changed TC

RE: Upload MS DOC or Image file errors.

2004-10-28 Thread Daxin Zuo
Thanks. It works. -Original Message- From: Steffen Heil [mailto:[EMAIL PROTECTED] Sent: Thursday, October 28, 2004 10:49 AM To: 'Tomcat Users List' Subject: AW: Upload MS DOC or Image file errors. Hi Hi, I am use the File Upload. I need to read the whole file contents in a String

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Benson Margulies
I think that JNI is the only counter-example. Forgive me if the following is well know but seen as unimportant to all concerned. There is a JVM restriction: any given class with native members can only be loaded into one classloader of a JVM. So, if two webapps both try to include a native class,

RE: newbie question

2004-10-28 Thread Ben Souther
On Thu, 2004-10-28 at 15:34, Luke FERNANDEZ wrote: Am I spamming if I say thanks to all of you for your help? No, there is nothing wrong with a thank you. I changed the following line in server.xml and now both instances run: !-- Server port=8005 shutdown=SHUTDOWN debug=0 -- Server

Tomcat 4.1.18: jsessionid in URL on first access, but not subsequent access

2004-10-28 Thread Matt Mejaski
Hi all, Using Tomcat 4.1.18, I am getting (what I believe) is inconsistent behaviour with respect to session handling. Hopefully someone here can clear this up for me. Running Tomcat Standalone on my local machine, if I go into my browser, and go to http://mattm:8080/myapp/index.jsp, it uses

RE: Upload MS DOC or Image file errors.

2004-10-28 Thread Benson Margulies
This is much more than a character encoding problem. Extracting text from a Microsoft Word file is a very complex process. Microsoft provides 'IFilter' support for this purpose. Various vendors sell more portable solutions. I don't know of a full open-source solution. You can tell the user to

RE: File upload

2004-10-28 Thread Derrick Koes
Just in case someone else runs into this, the tomcat workDir and the struts-config tempDir property values MUST match. Otherwise, files greater than the threshold size (default 256K) won't be found for parsing. -Original Message- From: Derrick Koes [mailto:[EMAIL PROTECTED] Sent:

auto reload?

2004-10-28 Thread Didier McGillis
Sorry I am drawing a blank at the end of the day. IS this what I enable to have a development environment reload classes automatically? And where do I enable this? _ Powerful Parental Controls Let your child discover the best the

RE: auto reload?

2004-10-28 Thread Shapira, Yoav
Hi, Add reloadable=true to your Context declaration in server.xml (or wherever you declare your context). When drawing a blank, I usually find the docs useful. Yoav Shapira http://www.yoavshapira.com -Original Message- From: Didier McGillis [mailto:[EMAIL PROTECTED] Sent: Thursday,

RE: auto reload?

2004-10-28 Thread Steve Kirk
I think you might mean this? Context docBase=... myapp location ... path=/myapp reloadable=true You can put this line in server.xml (within the standard Host tag) or in context.xml For more details on Context and the reloadable attribute, see (for version 5.0.x):

RE: auto reload?

2004-10-28 Thread Didier McGillis
Thanks From: Steve Kirk [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Subject: RE: auto reload? Date: Thu, 28 Oct 2004 21:30:33 +0100 I think you might mean this? Context docBase=... myapp location ... path=/myapp reloadable=true You can

RE: auto reload?

2004-10-28 Thread Didier McGillis
I looked for a bit and couldnt find what I thought it was, didnt notice reloadable :(, searched the archives, which btw we referencing the wrong archived files. Anyway this was my last resort after Google had jack ... how about those Red Sox From: Shapira, Yoav [EMAIL PROTECTED] Reply-To:

RE: auto reload?

2004-10-28 Thread Shapira, Yoav
Hi, searched the archives, which btw we referencing the wrong archived files. Can you elaborate on this one please? ;) Anyway this was my last resort after Google had jack ... how about those Red Sox Go Sox ;) I probably shouldn't be committing stuff to CVS today given the amount of drinking

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
Benson, I read your post on classloading JNI classloading with interest. Certainly wasn't well-known to me. Only one question: counter-example to what? i.e. is there a configuration approach on this thread that makes JNI classloading not work for multiple webapps? at a guess are you talking

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
Cancel that - I RTFM'd : each webapp has own classloader. but I'm not sure now what point you're making re the thread? You've piqued my interest on this, I'd be interested if you could clarify please. -Original Message- From: Steve Kirk [mailto:[EMAIL PROTECTED] Sent: Thursday

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Benson Margulies
I'm reading this thread as the following meta-discussion. I may be confused. Steve and others: Help us, we've having trouble making global resources work due to poor documentation and problems deciding what to put in the 'common' classpath and what to put in the webapp class path. Yoav and

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Benson Margulies
Whoops, I missed a point: 'counter-example' to the general idea that anything you can do as a global resource you can do just as well as a per-web-app resource. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Ben Souther
There is a section in the release notes on JNI classes that are shared by multiple apps. I assume this is what he's talking about. What it boils down to is that you can't put multiple copies of the same library in each of the webapps, you have to put them in either common/lib or shared/lib. This

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
OK and I've just read the classloading how-to. so if I'm understanding correctly, although each webapp has its own classloader, when a webapp loads a class that's stored in common/ , the class is always loaded by the common classloader, rather than the webapp's own classloader? and even when

Embedded Tomcat NullPointer Exception

2004-10-28 Thread Kang, Kamaljeet K.
Hi, I am trying to run Tomcat(5.0.28) as embedded application and I am getting following exception. Oct 28, 2004 5:16:33 PM org.apache.catalina.startup.Embedded start INFO: Starting tomcat server Oct 28, 2004 5:16:33 PM org.apache.catalina.core.StandardEngine start INFO: Starting

AW: Upload MS DOC or Image file errors.

2004-10-28 Thread Steffen Heil
Hi This is much more than a character encoding problem. No. Daxin simply wanted to upload binary data (he even mentioned images...). So he didn't want to extract text from word documents. What he did was, he loaded binary data, converted that to a string and finally wrote the string to a file.

AW: Upload MS DOC or Image file errors.

2004-10-28 Thread Steffen Heil
Thanks. It works. Fine. But what? Switching to FileOutputStream or just using item.write? (They should both work, though the second seems to make more sence. Just asking for interest.) Regards, Steffen smime.p7s Description: S/MIME cryptographic signature

RE: JNDI DataSource GlobalResources problem

2004-10-28 Thread Steve Kirk
Benson wrote: I'm reading this thread as the following meta-discussion. I may be confused. It's been a fairly long thread. You've got the jist though, except: I don't use global resources and I'm not for or against either them or per-webapp resources. I joined the thread to help someone

Re: Context mapping question

2004-10-28 Thread Bob Tellefson
On Thursday 28 October 2004 15:35, Shapira, Yoav wrote: Hi, Context path=/ docBase=app1 debug=9 Changing this one path to path= instead of /. Set autoDeploy/liveDeploy/deployOnStartup to false for both of your Hosts. Because they share an appBase, the apps

Log4j with Tomcat .. (3 questions)

2004-10-28 Thread Mufaddal Khumri
Hi, Am new to log4j. Am using Tomcat 5 and my webapp-myNiceWebApp is in Tomcat/webapps/myNiceWebApp I have a class that I have the following code in: Logger logger = Logger.getLogger(Helper.class); SimpleLayout layout = new SimpleLayout();

Tomcat5.5.3 serious problems!

2004-10-28 Thread David Lee
HI! I tried to use GUI manager to upload war file (war file to deploy, the message says OK, but nothing happened. no context files deployed. nothing. then I tried to upload the same war file using deploy directory or war file located on server, the upload problem entered into an infinitive

Re: Log4j with Tomcat .. (3 questions)

2004-10-28 Thread Ben Souther
Log4j looks on your class path for a properties file log4j.properties. If you put the file in WEB-INF/classes it will find it. Here's a real simple example: log4j.rootCategory=DEBUG, dest1 log4j.appender.dest1=org.apache.log4j.RollingFileAppender

  1   2   >