Re: tomcat session problem

2001-10-26 Thread Dmitri Colebatch
On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value of the session when I go to different pages even

RE: File Download - CSV question ****

2001-10-26 Thread Dmitri Colebatch
be wiser (o: cheers dim -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, October 24, 2001 10:11 PM To: Tomcat-User Subject: Re: File Download - CSV question Are you using the same client between the two servers? IE seems to consider

Re: tomcat session problem

2001-10-26 Thread Dmitri Colebatch
On Fri, 26 Oct 2001, Dmitri Colebatch wrote: On Thu, 25 Oct 2001, Rinku Randhawa wrote: Thanks Ralph for the information, my question is when there are 2 sessions running on the web in the same PC (by opening 2 browsers) then it doesn't track the sessions properly and changes the value

Re: tomcat 4.0: Plug in custom Realm

2001-10-25 Thread Dmitri Colebatch
yep, see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html for details on how to create one. Depending one what you need to do, it may be easier to subclass the JDBC realm and override the getStatement (? I think thats it) methods... hth dim On Tue, 23 Oct 2001, Maneesha Jain

Re: tomcat 4.0: Plug in custom Realm

2001-10-25 Thread Dmitri Colebatch
sorry - I just realised that url doesn't actually contain info on writing your own. hopefully the second part of my email is still useful (o: cheers im On Thu, 25 Oct 2001, Dmitri Colebatch wrote: yep, see http://jakarta.apache.org/tomcat/tomcat-4.0-doc/realm-howto.html for details on how

Re: question

2001-10-25 Thread Dmitri Colebatch
they should go in the WEB-INF/classes, or as a jar in WEB-INF/lib. You have got them in the correct directory structure dont you? hth dim On Wed, 24 Oct 2001, Pal, Anshu wrote: Hi! I recently installed Tomcat ( ver 3.3) . Where should I put the non -servlet class files required by the

Re: File Download - CSV question ****

2001-10-25 Thread Dmitri Colebatch
Are you using the same client between the two servers? IE seems to consider itself more important than mimetypes, and if it sees a file extension it recognises it treats it as it deems fit, regardless of the mimetype. So one possibility is that you have just installed excel or something on the

Re: deploying the generated class files instead of jsps

2001-10-24 Thread Dmitri Colebatch
yep - you want to compile your jsps. have a look at jspc - sorry, not exactly sure what the best starting point would be. The jspc.sh script is probably a good bet, followed by the archives (o: cheers dim On Tue, 23 Oct 2001, Mike Muir wrote: I was wondering if there is a way to deploy

RE: Urgent : Problems with JDBC Date formats...

2001-10-23 Thread Dmitri Colebatch
in my Java Beans depending on the input coming from the users. So, I would prefer a solution, which doesn't force me to make drastic changes in my code... thanks and regards, Chintan -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001

RE: Urgent : Problems with JDBC Date formats...

2001-10-23 Thread Dmitri Colebatch
: Urgent : Problems with JDBC Date formats... The proper jdbc way to do that, is to use the escape syntax: for dates: where datefield = {d '-mm-dd'} for timestamps: where datefield = {ts '-mm-dd hh:mm:ss[.f]'} -Ursprüngliche Nachricht- Von: Dmitri Colebatch [mailto

Re: Java datatypes question: the Set

2001-10-23 Thread Dmitri Colebatch
Have a look at Sun's Javadoc... http://java.sun.com/j2se/1.3/docs/api/index.html more specifically http://java.sun.com/j2se/1.3/docs/api/java/util/HashSet.html also - this is a very offtopic question. you might find the java forums are more helpful place: http://forum.java.sun.com/ hth dim

Re: Multiple web.xml files?

2001-10-23 Thread Dmitri Colebatch
On Tue, 23 Oct 2001 [EMAIL PROTECTED] wrote: Hi. Does anyone know if it is possible to have modularized web.xml files for an app? ie tomcat will read all of them and merge them together? If not, is it possible to add servlet mappings dynamically? afaik Tomcat doesn't support anything like

Re: Urgent : Problems with JDBC Date formats...

2001-10-22 Thread Dmitri Colebatch
I cant guarentee that this will work with Access and SQL server, but the proper way to do what you're trying to do is use a PreparedStatement with setDate(2, new Date(2001, 1, 1)). hth dim On Tue, 23 Oct 2001, Shah, Chintan V (Chintan) wrote: Hi all, This is a very off-topic post (as

Re: Root WebApp

2001-10-21 Thread Dmitri Colebatch
open up server.xml and change the docBase of the context with path= hth dim On Sun, 21 Oct 2001, Harden ZHU wrote: Hi, How to setup myWebApp as root app? Instead of ROOT. Thanks Harden

Re: servlet in startup

2001-10-21 Thread Dmitri Colebatch
Look at the load on startup flag in web.xml hth dim On Mon, 22 Oct 2001, Jovie Castaneda wrote: Hi guys, Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.?

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
(o: ). hth dim Thanks in advance. -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 10:07 AM To: [EMAIL PROTECTED] Subject: Re: servlet in startup Look at the load on startup flag in web.xml hth dim On Mon, 22 Oct 2001

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
On Mon, 22 Oct 2001, Jovie Castaneda wrote: Can someone please help me how to make my servlet run when the Tomcat starts up. What do I have to do in my codes to impelement this or some setup needed for my Tomcat config.? Thanks in advance Hi thanks for the reply but Im really

RE: servlet in startup

2001-10-21 Thread Dmitri Colebatch
= new java.text.SimpleDateFormat(dd/MM/yy hh:mm:ss a); System.out.println(Starting WebCollect Server...); } hoping for your replies... -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Monday, October 22, 2001 11:05 AM To: [EMAIL PROTECTED] Subject: RE

Re: driver configuration with DB2 and tomcat

2001-10-21 Thread Dmitri Colebatch
rename the .zip to .jar - tomcat will only include .jar files afaik hth dim On Sun, 21 Oct 2001, Lawrence Louie wrote: Hi, I am having DB2 for my end, and I have servlet running inside tomcat-apache 4.0. I have gotten DB2 exception error about loading the DB2 driver. I have place the

RE: out.println ?

2001-10-21 Thread Dmitri Colebatch
Have you got it all on one line? This: out.write(this is one line of code, and this is another); wont work, but: out.write(this is all on one line); will. hth dim On Sun, 21 Oct 2001, Miao, Franco CAWS:EX wrote: I have cut and paste your code, stiil no luck! thanks. Franco

Re: Win200 crashing with Tomcat 4

2001-10-20 Thread Dmitri Colebatch
On Fri, 19 Oct 2001, Thomas Diamond wrote: then it is entirely possible for bugs in that code to cause coredumps in the JVM process -- but an OS that reboots is a faulty OS. I would start with applying all of the recent patches to W2K Pro. For God's shake the only weird thing I do is

Re: Conflict between tomcat 3.2 libraries and application libs

2001-10-18 Thread Dmitri Colebatch
Upgrading to tomcat 4 (or maybe 3.3 as well, I'm not sure what it does with classpath tho) would do the trick, but I'm not sure if that is an option. What you are experiencing is a common issue with 3.2, and the approach you are taking is basically the common fix. cheers dim On Thu, 18 Oct

Re: Getting apache environment variables into Tomcat

2001-10-18 Thread Dmitri Colebatch
oh, sorry... mis-interpreted the question. Although I'm not lost as to what you're trying to do... hope you figure it out though (o: cheers dim On Thu, 18 Oct 2001, Nicholas Blachford wrote: Dmitri Colebatch wrote: what's wrong with request.getServerPort() from

RE: URGENT - Tomcat Crashing Frequently Dr. Watson Error

2001-10-18 Thread Dmitri Colebatch
Hi, There's a ms driver at http://www.microsoft.com/sql/downloads/2000/jdbc.asp the newsgroup microsoft.public.sqlserver.jdbcdriver on msnews.microsoft.com is a good source of information on this. cheesr dim --- On Thu, 18 Oct 2001, Shah, Chintan V (Chintan) wrote: Hi, Thanks for

Re: Getting apache environment variables into Tomcat

2001-10-17 Thread Dmitri Colebatch
what's wrong with request.getServerPort() from the ServletRequest interface? hth dim On Wed, 17 Oct 2001, Han Ming Ong wrote: Dear Nicholas, Did you ever get an answer to this? We would love to hear it please? Thanks, ohmson Hi all, I've set up Tomcat 4.01 and Apache 1.3.19

RE: How to change session key name

2001-10-17 Thread Dmitri Colebatch
And you could make a web server that handled an HTTP GIVEME command instead of HTTP GET.., and a client to go with it, but if its not standard, the you will get locked into that server and client... a much more extreme example, but the same principle. I constantly hear of how hard it is to

Re: Must servlets be inside WEB-INF/classes pr /lib?

2001-10-05 Thread Dmitri Colebatch
On Fri, 5 Oct 2001, Firestar wrote: I'm using TC 4.0, and my servlets (due to some constraints) must be placed in a separate folder, e.g. E:\myclasses\servlets instead of the recommended Servlet Deployment structure, i.e. WEB-INF/classes or WEB-INF/lib. This is not recommended it is

Re: Must servlets be inside WEB-INF/classes pr /lib?

2001-10-05 Thread Dmitri Colebatch
Hi, yeah, that doesn't surprise me... the reason that tomcat 4 ignores your classpath is that it causes all sorts of problems. seriously, the spec outlines how things are suppose to happen, and my best advice would be to put your servlets in web-inf/classes (or lib). alternatively, you'd

Re: Must servlets be inside WEB-INF/classes pr /lib?

2001-10-05 Thread Dmitri Colebatch
. I guess we have no choice but to stick with JRun for the moment (until we sort out our own classes deployment internally), as it allows us the 'flexibility' to break the rule:) Regards, Firestar --- Dmitri Colebatch [EMAIL PROTECTED] wrote: Hi, yeah, that doesn't surprise me

Re: getparameter

2001-10-04 Thread Dmitri Colebatch
how are you calling it? I literally cut and pasted it into a file (attached) in and saved it in the examples context of a normal install - worked fine. cheers dim On Thu, 4 Oct 2001, Michele Cerioni wrote: Dmitri Colebatch wrote: works fine for me on java 1.3 from sun. On Wed, 3

RE: Forward to different website.

2001-10-04 Thread Dmitri Colebatch
On Fri, 5 Oct 2001, menonv wrote: Doesn't the request dispatcher work within the context of the application/container? Shouldn't you be using sendRedirect instead? correct. -Original Message- From: Bob Byron [SMTP:[EMAIL PROTECTED]] Sent: Friday, October 05, 2001

Re: Forward Request alogn with Parameters

2001-10-04 Thread Dmitri Colebatch
It looks like the request dispatcher isn't being found. try using /vieworder.jsp or whatever the location relevant to your base is. cheers dim On Thu, 4 Oct 2001, Brian Richards wrote: I get a null pointer exception at dispatcher.forward() am i doing something wrong? thanks brian

Re: Initialcontext problem

2001-10-03 Thread Dmitri Colebatch
What environment variables are you setting for JNDI? Do you have a jndi.properties file in your classpath? cheers dim On Wed, 3 Oct 2001, asheesh wrote: Dear all i am posting it for 3rd time, let me know if anyone can help me in this. I am running tomcat3.2.3 on Linux with Borland

Re: Initialcontext problem

2001-10-03 Thread Dmitri Colebatch
InitialContext(); then i can initialize my context with HashTable or Some property file. thanks !! regards asheesh - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, October 03, 2001 4:59 PM Subject: Re: Initialcontext problem

Re: Initialcontext problem

2001-10-03 Thread Dmitri Colebatch
in looking up beans, i feel they are not deployed properly and is a minor issue now, if u still have some suggestions u can send me ur thoughts. -- I am getting NamingException - best regards asheesh - Original Message - From: Dmitri Colebatch [EMAIL PROTECTED] To: [EMAIL

Re: Newbie: Tomcat EJBs

2001-10-03 Thread Dmitri Colebatch
From jboss-user there is a slight bug in the 2.4.2 release relating to JBossMQ on win32, there is a 2.4.3 release to fix this. On Wed, 3 Oct 2001, Yoav Shapira wrote: Hi, It's still there. For the adventurous, try the new JBoss2.4.1-Tomcat4.0 integrated download:

Re: Performance -- Tomcat Standalone v. Apache/Tomcat

2001-10-02 Thread Dmitri Colebatch
If you are only running servlets and jsp, try tomcat standalone, that is, without j2ee. The performance is perfectly adequate IMHO cheers dim On 3 Oct 2001, Andrew Reid wrote: On Wed, 2001-10-03 at 11:30, Andrew Reid wrote: It appears that the main problem is the Tomcat included with

Re: Performance -- Tomcat Standalone v. Apache/Tomcat

2001-10-02 Thread Dmitri Colebatch
I think you'd be well served to viewing a recent post from Craig (o: http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg34621.html cheers dim On 3 Oct 2001, Andrew Reid wrote: On Wed, 2001-10-03 at 12:15, Dmitri Colebatch wrote: If you are only running servlets and jsp

Re: java.io.NotSerializable exception when calling EJB from servlet?

2001-09-27 Thread Dmitri Colebatch
The arguments to the remote metho dmust be serializable at runtime. The HttpRequest of Catalina's isn't so you wont be able to do that. What you want to do is extract the values you need out of the request, and pass them to the process method so that the process method is pure business logic

Re: Cocoon 1 and Tomcat 4 - Cocoon is not a Servlet???

2001-09-26 Thread Dmitri Colebatch
I would think the error would be because you are using a 2.2 servlet in a 2.3 container. I'm not sure if cocoon have recompiled against the 2.3 api, and I could be wrong here, but that's what it seems to suggest. cheers dim On Wed, 26 Sep 2001, Red wrote: Hi there I need to run Cocoon 1

Re: Cocoon 1 and Tomcat 4 - Cocoon is not a Servlet???

2001-09-26 Thread Dmitri Colebatch
is to be completely backwards compatible with 2.2. Maybe cocoon isn't 2.2 compatible. - Original Message - From: Red [EMAIL PROTECTED] To: Dmitri Colebatch [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Wednesday, September 26, 2001 5:43 PM Subject: Re: Cocoon 1 and Tomcat 4 - Cocoon

RE: tomcat is crashing

2001-09-25 Thread Dmitri Colebatch
Is this a vanilla install of tomcat, or have you had it running before? What applications do you have deployed in it - do any of them use their own xml libraries? cheers dim On Tue, 25 Sep 2001, Haresh Gujarathi wrote: Just FYI When it crashes; I get following dump in the tomcat.log

Re: newbie Servlet

2001-09-25 Thread Dmitri Colebatch
yes you do have to compile your servlets. jsps are the only thing that tomcat will compile for you. cheers dim On Sun, 23 Sep 2001, Isak Rickyanto wrote: Sorry it is newbie.. I have myservlet.java and i place in tomcat/webapps/myapp/web-inf/classes and i had modified web.xml in

RE: tomcat is crashing

2001-09-25 Thread Dmitri Colebatch
stated that I am using JVM 1.3.0 But the thread dump says that it is VM (1.2.2-RC2-K). And I am actualy using the JVM 1.2.2 -- haresh -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 25, 2001 5:17 PM To: [EMAIL PROTECTED]; [EMAIL

Re: [JSP] get serial value in PostgreSQL

2001-09-25 Thread Dmitri Colebatch
from the postgres doco: SELECT last_value FROM seqname and you shouldn't have to worry about timing... sequence allocations will be on a per connection basis, so as long as you're not sharing connections between threads (you're not are you (o: ..) then you'll be ok. it is kinda off

RE: tomcat is crashing

2001-09-25 Thread Dmitri Colebatch
: no, I have not tried ibm jvm. Why do u say and (I feel) that it is some problem with xml libraries? -- haresh -Original Message- From: Dmitri Colebatch [mailto:[EMAIL PROTECTED]] Sent: Wednesday, September 26, 2001 10:36 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE

Re: MyClass.getPackage() == null... Why?

2001-09-24 Thread Dmitri Colebatch
Hi, I'm not sure if this is going to help, but... from the jdk javadoc: the package of the class, or null if no package information is available from the archive or codebase. It doesn't really clarify when no package information would be available... but in the Package docs: Package objects

Re: [TC4] Confusion over JspWriter and IOException in compiled JSPs(Tomcat bug...?)

2001-09-24 Thread Dmitri Colebatch
you need to import java.io.IOException probably in previous versions of tomcat the generated code imported this method, thus masking the fact that you didn't import it they now (I guess) dont do this, and so the compiler is looking for IOException in the package of the code, which is

Re: [TC4] Confusion over JspWriter and IOException in compiled JSPs(Tomcat bug...?)

2001-09-24 Thread Dmitri Colebatch
Using fully-qualified class names everywhere in application code slows down development (more typing) and may reduce readability (ok, you know which class is which, but lines of code won't fit easily on screen at the same time!). -Chris - Original Message - From: Dmitri Colebatch

Re: Limit access to manager app?

2001-09-24 Thread Dmitri Colebatch
you really need to stop access before it gets to tomcat... you could put it inside a virtual host for localhost, but I'm not sure how much that's going to do unless you actually have tomcat bind to localhost only, or have different bindings... cheers dim On Mon, 24 Sep 2001, Micael Padraig Og

Re: Directories - best practice

2001-09-22 Thread Dmitri Colebatch
I wouldn't rely on tomcat/bin - thats only because the startup script is there. If you dont use the standard startup mechanism, say run tomcat inside another container, then it will be different (most likely). Class.getResource() might be what you're looking for... hth dim On Sat, 22 Sep

Re: New To Java - Cant't get Database Insert to work

2001-09-22 Thread Dmitri Colebatch
Hi, A better way to do this would be to use prepared statements: PreparedStatement pstmt = con.prepareStatement( insert into LINKS (VALUE, NAVIGATION_TEXT) values(?,?)); pstmt.setString(1, url); pstmt.setString(2, favName); pstmt.executeUpdate(); I'm not sure what is wrong with your sql...

Re: New To Java - Cant't get Database Insert to work

2001-09-22 Thread Dmitri Colebatch
are you able to try the statement directly... using some equivalent of sqlplus? On Sat, 22 Sep 2001 [EMAIL PROTECTED] wrote: Hi dim, Still having no success. I think it might be that access has a problem with prepared statements. I'll keep trying to insert successfully and will test

Re: Getting resource in WEB-INF

2001-09-19 Thread Dmitri Colebatch
Put the oracle library in WEB-INF/lib instead of tomcat/lib - I assume thats where it is? sounds like a similar thing to the way struts works, Craig explained it when I asked a few weeks ago - you might find the mail by seraching for struts and classloader and dim (o: cheers dim On Wed, 19

Re: Logout with basic autorization

2001-09-19 Thread Dmitri Colebatch
call session.invalidate() - should do the trick. cheers dim On Wed, 19 Sep 2001, Oleksandr Fedorenko wrote: Hi. How to do really logout using basic authorization ? I mean to get authorization prompt again by using tomcat engine ? , i.e. tomcat should care about it . To send smth. in

Re: Insert special chars in stringbuffer

2001-09-19 Thread Dmitri Colebatch
StringBuffer buf = new StringBuffer(); buf.append('\'); hth, dim On Wed, 19 Sep 2001, Magnus Jansson wrote: Hi! I have a StringBuffer object and want to append a character how do I do?

Re: problem in init parameter .. SAXParseException

2001-09-19 Thread Dmitri Colebatch
try encoding it as CDATA init-param param-nameUrl/param-name param-value![CDATA[http://120.20.203.1/q?s=asad=t]]/param-value /init-param cheesr dim On Wed, 19 Sep 2001, Sibi Joseph wrote: Hi all i have to set the following in my web.xml for my servlet init-param

Re: Changing the Servlets Directory

2001-09-19 Thread Dmitri Colebatch
Tomcat is a servlet container - it adheres to the servlet specification (see http://java.sun.com/products/servlet). If you also adhere to that specification, then you will be able to deploy your application across any number of different products, not just tomcat. as for jserv... if you want to

Re: How to gaurentee order of server classpath

2001-09-17 Thread Dmitri Colebatch
Are you sure you're taking care of all of the classpath references in tomcat.bat? An alternative way to do this is to upgrade to 4.0rc2 which doesn't provide any xml support, freeing the web app developer to use whichever parser whey want. hth dim On Mon, 17 Sep 2001, Peoter Veliki wrote: I

Re: Problem with Tomcat

2001-09-17 Thread Dmitri Colebatch
You need to have the jdk - not the jre. btw - someone with access to the site - I'm constantly amazed that this answer is not in the faq (unless I missed it)... perhaps its somewhere else, but I would have thought it should be there. cheesr dim On Mon, 17 Sep 2001, Charles Webber wrote: I'm

Re: Can I configure Tomcat to accept HTTP requests from remotemachines?

2001-09-13 Thread Dmitri Colebatch
http://localhost:8080 will just be an alias for http://127.0.0.1:8080 - so doing it on another computer means that you're just trying to request the computer that you are doing the request on. Instead - find out what the ip address is, using ipconfig, or winipcfg (I can never rememeber which is

Re: Tomcat 3.3 JBoss mod_jk

2001-09-13 Thread Dmitri Colebatch
The servlet api is defined by sun... see http://java.sun.com/products/servlet the tomcat 3.x series are servlet spec 2.2 compliant, tomcat 4.0 is spec 2.3 draft compliant. all the rules, not only the api, are outlined by sun... have a look through that above address and it should answer a

Re: System.err.println

2001-09-13 Thread Dmitri Colebatch
On Thu, 13 Sep 2001, Abhijat Thakur wrote: I have gone through the archives and have looked at the original responses and tried it but my System.err.println does not go to /logs/tomcat.log. I am using log4j for logging but at some place have to put System.err.println statements which i want

Re: System.err.println

2001-09-13 Thread Dmitri Colebatch
alright. Assuming that Hello is a servlet (extends HttpServlet) then you dont need the servlet. eg: public void doGet( ... ) { log(hello); ... } cheers dim On Fri, 14 Sep 2001, Kenny Ma wrote: because: Hello.java:27: cannot resolve symbol symbol : variable servlet

Re: file download servlet

2001-09-12 Thread Dmitri Colebatch
you could go a step further than that, and remove the query string altogether, extracting it from the request url. That way the end user wouldn't even know it was being served by a servlet (well, the /servlet might give it away, but you could change that if it mattered)... cheers dim On Thu,

RE: Problem with loading classes dynamically, new objects can't see things in webapp.

2001-09-11 Thread Dmitri Colebatch
On Tue, 11 Sep 2001, Craig R. McClanahan wrote: If ProsumerTestTag is being loaded from the class path, it's being loaded by the system class loader. If CustomTag is being loaded from the web app, it is being loaded from the webapp class loader. Classes loaded from the system class

RE: Problem with loading classes dynamically, new objects can't see things in webapp.

2001-09-11 Thread Dmitri Colebatch
On Tue, 11 Sep 2001, Craig R. McClanahan wrote: Exactly the same issue. That's why the Struts documentation tells you (over and over again :-) to put struts.jar *inside* your web app (in /WEB-INF/lib) and nowhere else. oops (o: should have read the doco... I skipped straight to the archives

Re: Mapping question

2001-09-08 Thread Dmitri Colebatch
On Sat, 8 Sep 2001, Andrew wrote: How I can map /Path/*.ext to servlet? to one particular servlet? just use the normal servlet-mapping tag in web.xml - it allows for wildcards. hth dim

Re: Fw: PROPPATCH

2001-09-07 Thread Dmitri Colebatch
I have absolutely no idea about the DAV resource stuff, but I saw the href, and assume that expects a URI, in which case perhaps you should prefix the email address with mailto: cheers dim On Fri, 7 Sep 2001, Vijaya Kumar wrote: Is it possible to change any of one/more properties of the

Re: non tomcat related question: Servlets

2001-09-06 Thread Dmitri Colebatch
sure - send it over, I'll have a little look. On Thu, 6 Sep 2001, A.L. wrote: I have a problem which I have asked in several forums and have received no response. Basically i have some code which needs to be debugged, but after spending hours and hours I am unable to figure out what is

Re: Book

2001-09-05 Thread Dmitri Colebatch
On 4 Sep 2001, Chris Beggy wrote: Does the working group have a website? not sure which project is being referred to, but tomcatbook is at sourceforge.net/projects/tomcatbook - the book is at a crossroads at the moment, as very little has been happening, so if anyone has time to write some

Re: Limits on the size of the web.xml file?

2001-09-05 Thread Dmitri Colebatch
Craig, I would have thought RTFS would have been more to your liking... given your regular points to the spec (o: On Tue, 4 Sep 2001, Craig R. McClanahan wrote: On Tue, 4 Sep 2001, Jim Cheesman wrote: RTFAPI ;) This acronym will *definitely* come in handy! :-) Craig

RE: Tomcat 321 won't parse other than .jsp file

2001-09-03 Thread Dmitri Colebatch
Try adding the following: servlet servlet-namemenuscript/servlet-name servlet-classmenu.jsp/servlet-class /servlet servlet-mapping servlet-namemenuscript/servlet-name url-pattern/menu.js/url-pattern /servlet-mapping to your server.xml I think those are the right elements. failing that

Re: How to handle the JNI Exception

2001-09-03 Thread Dmitri Colebatch
ou still need to adhere to the servlet api - that says you can throw a ServletException - so you will need to wrap your exception in a servlet exception, although I have no idea how to that in JNI. cheers dim On Mon, 3 Sep 2001,

RE: Having problem with Tomcat 4.0b7 - HTTP Status 503 - Thisapplication is not currently available

2001-09-02 Thread Dmitri Colebatch
Why are you moving servlet.jar - I'm a 3.2 user, but I just tried the tar of 4.0b7 and it worked fine without moving anything. hth dim On Sun, 2 Sep 2001, Roger Wei wrote: Futher more, I also copy the serlet.jar into c:\tomcat4\common\lib , still fail. I know how to setup Tomcat 3.2.3 and

Re: accessing servlets without a port number

2001-08-31 Thread Dmitri Colebatch
Alex, port 80 is the default port for http, so what you are wanting to do is have tomcat listen on port 80 instead of 8080. to do this on a *nix box you'd need to run tomcat as root (for 3.x anyway - I believe 4.0 has a wrapper that does this properly), which isn't a good idea. alternatively,

Re: Book

2001-08-31 Thread Dmitri Colebatch
On Fri, 31 Aug 2001, mazzen al-najjar wrote: Victor Martinez wrote: Does anybody knows a book about Tomcat? I´m looking for one and i haven´t seen anything... an opinion i don't find expressed in the archives, so i'll say it once: just about every book on jsp or servlets ever published

Re: Installed Tomcat. Now what?

2001-08-30 Thread Dmitri Colebatch
On Thu, 30 Aug 2001 [EMAIL PROTECTED] wrote: Can someone write a step by step guide to writing an app for Tomcat? How about a Hello World app? I don't know XML so I can't write build.xml files or anything. I'm really stuck. http://java.sun.com/products/servlet is a good place to start.

Re: Newbie JSP Question:

2001-08-30 Thread Dmitri Colebatch
try request.setAttribute( ... ) in the first jsp and request.getAttribute( ... ) in the second. hth dim On Thu, 30 Aug 2001, Peter L. Markowsky wrote: I know this doesn't relate to Tomcat directly, but since Tomcat hosts JSPs or at least is able I was wondering if anyone out there knew /

Re: Custom Tag Can't Compile problem.

2001-08-29 Thread Dmitri Colebatch
This is not based on any knowledge of jasper, but do you get the exception if you declare TagManager in a package? My guess is that jasper uses the fully qualified form of the tag name in declaring the tag in the jsp and the fact that you dont use a package is upsetting it. having said that -

Re: Tomcat, Apache: JSP source code showed instead of generated HTML

2001-08-29 Thread Dmitri Colebatch
Hi, I remember this - didn't get it working hey? bugger... ok, two things I can suggest: 1. crank up the log level in mod_jk.conf to debug, see if it tells you anything interesting 2. have a look in jasper.log (also crank the log level up - in server.xml) and see if that contains anything

Re: can't start tomcat

2001-08-29 Thread Dmitri Colebatch
If thats you're bashrc I'm assuming you're on linux... but you have a c:/ in the path... or are you running cygwin? check that $JAVA_HOME/bin/java works and then retry. cheesr dim On Wed, 29 Aug 2001, Hugo Hendriks wrote: The path to java works but when I start the startup script i get the

Re: How, to, install???????

2001-08-29 Thread Dmitri Colebatch
have you set JAVA_HOME to the base directory of your JDK install? It sounds like it cant find the java command. hth dim On Wed, 29 Aug 2001, Fareed Raees wrote: Respected Sir, I have Windows ME operating system.I have got the tomcat ver.3 and ver.4, but i am able to configure the

Re: Tomcat, Apache: JSP source code showed instead of generated HTML

2001-08-29 Thread Dmitri Colebatch
is: AdaptiveClassLoader( ) Any ideas? Regards, Gero Dmitri Colebatch wrote: Hi, I remember this - didn't get it working hey? bugger... ok, two things I can suggest: 1. crank up the log level in mod_jk.conf to debug, see if it tells you anything interesting 2. have a look

Re: Tomcat IIS HowTo update

2001-08-29 Thread Dmitri Colebatch
On Wed, 29 Aug 2001, Gary Allen Vollink wrote: Since it's not in the HowTo, I thought I'd forward the following info: Verified working for Tomcat 3.2.1, IIS 5.0 / Windows 2000 using Java (JRE) 1.3.1 are you saying you got JSPs to work with a JRE? Sure its not the JDK, or that tools.jar

Re: confusion

2001-08-28 Thread Dmitri Colebatch
The work directory is where .jsp files are compiled first to .java then to .class files. You shouldn't need to worry about it at all. If you delete files in there I think you could have problems while tomcat is running, but if you stop tomcat you can certainly delete all the files and they will

Re: confusion

2001-08-28 Thread Dmitri Colebatch
OTHER FILE ... I HAD REPLACED THE SERVER.XML FILE AS IT WAS CORRUPTED ..BUT NOW I M GETTING ERROR.. If you change configuration files, you will (afaik) need to restart tomcat for the changes to take effect. What is the error you are getting with your server.xml? cheers dim --- Dmitri

RE: Can't start tomcat

2001-08-28 Thread Dmitri Colebatch
On Tue, 28 Aug 2001, BENARD Christophe, DDE 34/SG wrote: Try this : cd $TOMCAT_HOME/bin chmod 744 startup.sh and run startup.sh as root. dont run startup.sh as root unless you absolutely know what you are doing. if you're running tomcat in its normal setup you can just run it as the

Re: Yet another newbie question

2001-08-28 Thread Dmitri Colebatch
On Tue, 28 Aug 2001, Mihai Gheorghiu wrote: Tomcat generates an error message in the terminal window it was started from: 2001-08-28 12:12:00 - Ctx( /development ): 404 R( /development + /javax/swing/JApplet.class + null) null What should I do? firstly, if you want those messages to go

Re: how????

2001-08-28 Thread Dmitri Colebatch
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/mod_jk-howto.html the web site is incredibly helpful if you only look (o: On Tue, 28 Aug 2001, Triveni Gorur wrote: Please walk me through: how to install Apache-tomcat?

Re: Servlet Exception - Please Help

2001-08-27 Thread Dmitri Colebatch
the key thing is to find the tools.jar file. that error is typically caused by trying to run tomcat on the JRE instead of the JDK. Downlaod the JDK from sun or ibm and have another go - ensuring that JAVA_HOME is set to the install dir of the JDK cheers dim On Tue, 28 Aug 2001, Lawrence,

RE: how to make a servlet as the home page

2001-08-26 Thread Dmitri Colebatch
Ok, if you're using apache, then the first thing apache does when it gets a request for a directory is look for the DirectoryIndex instruction. typically this will be set to index.html index.htm index.jsp etc. The way this works is that apache will first check index.html, then index.htm, then

Re: Tomcat 4.0.7b and lib help (FIXED)

2001-08-24 Thread Dmitri Colebatch
This has come up before... tomcat follows the spec - loading all jars in WEB-INF/lib... no mention of zips (o: On Fri, 24 Aug 2001, Shawn Evans wrote: I don't know about everyone else, but I got my Oracle classes12.zip in my lib and it wouldn't work so after looking at my code, wondering

RE: Any idea?

2001-08-23 Thread Dmitri Colebatch
On Thu, 23 Aug 2001, Filip Hanik wrote: THIS IS ILLEGAL, PLEASE REFRAIN FROM MAKING THESE REQUEST ON THIS LIST. not to mention it has _absoltely nothing_ to do with tomcat (o: Filip ~ Namaste - I bow to the divine in you ~ Filip Hanik Software Architect [EMAIL PROTECTED]

Re: a simple ( irritating) classpath problem

2001-08-23 Thread Dmitri Colebatch
On Thu, 23 Aug 2001, yilmaz wrote: D:\tomcat4\jakarta-tomcat-4.0-b7\webapps\ROOT\WEB-INF\classesjavac gs.java gs.java:37: 不能??ParameterParser 坏的?文件:.\ParameterParser.class ?文件含有??的?:com.oreilly.servlet.ParameterParser ?去掉或确信它出?在正确的classpath的子目?中. ParameterParser parser= new

Re: Imaginative webapp setup. Is this possible to do?

2001-08-22 Thread Dmitri Colebatch
yep - but it'd be something you'd do in one webapp... put some logic in your servlet (assuming you're using model-2 arch) that looks at the request, and uses the appropriate jsp... have some protocol like hostname + _homepage.jsp... for static html, probably be easier to use apache virtuals for

Re: multiple context paths pointing to the same doc base?

2001-08-22 Thread Dmitri Colebatch
On Wed, 22 Aug 2001, Vladimir Grishchenko wrote: One option you have is to put the classes that actually cache things into a common directory ($TOMCAT_HOME/lib or $CATALINA_HOME/lib). Such classes are shared across web apps, so this should accomplish your goal of having a single

Re: web.xml problems

2001-08-22 Thread Dmitri Colebatch
Sounds like a case issue... Remember windows is case-preserving but not case-sensitive... most half decent o/s's (like linux) are both case-preserving _and_ case sensitive (o: cheers dim On Wed, 22 Aug 2001, Noble Long wrote: I am trying to configure a java web server using

Re: multiple context paths pointing to the same doc base?

2001-08-22 Thread Dmitri Colebatch
On Wed, 22 Aug 2001, Craig R. McClanahan wrote: Since the original objective was to share the cache, it seems to me that one versus two contexts is not a big deal, right? ahhh, sorry - missed the start of the thread... thought it was a more general one webapp thing... you would be well

Re: a simple ( irritating) classpath problem

2001-08-22 Thread Dmitri Colebatch
hi, There are three basic areas that classes can be put in tomcat: WEB-INF/classes - contains all the classes that form the web application WEB-INF/lib - contains jars that the web application uses TOMCAT_HOME/lib - contains jars that are available to _all_ applications using tomcat

  1   2   3   >