RE: Sooo Close, Apache, Tomcat missing one thing

2000-11-24 Thread Saurabh Shukla

You have to mention document base in server.xml

SHuklix

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 25, 2000 9:41 AM
To: [EMAIL PROTECTED]
Subject: Sooo Close, Apache, Tomcat missing one thing

So I am pretty sure it has to do something with the way I have my tomcat
configured. The piece that I can't seem to follow thru on is:
1) I understand that the JkMount statements redirect all /.jps's and
/servlet to
the tomcat server. But how does tomcat know where to look for the file/class
.


Thanks for any help/ direction

Randy Paries






trouble starting tomcat stand alone

2000-11-24 Thread Gordon Hooker

Hi All,

I have just installed tomcat on an NT server
NT4.0 Service Pack 5

I have jdk1.1.2 installed and have JAVA_HOME set

I go to TOMCAT_HOME\bin and run startup and get the following error:

FATAL:java.lang.Exception: Invalid ConnectionHandler
java.lang.Exception: Invalid ConnectionHandler
at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector
.java:133)
at org.apache.tomcat.core.ContextManager.start(Compiled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)

This was working on similar configured NT Server as a matter of fact it
is still working on that server.

Any help would be greatly appreciated

Thanks in advance

Gordon


begin:vcard 
n:;Gordon
x-mozilla-html:FALSE
adr:;;
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Gordon Hooker
end:vcard



Sooo Close, Apache, Tomcat missing one thing

2000-11-24 Thread Randy Paries

Hello ,
I am having a disconnect, And I am hoping someone can help,

I have an Apache server and the latest Tomcat.
The stand alone works fine and the example servlets and JSP's work.

I am having trouble understanding the mapping from apache to Tomcat.

In my httpd.conf I have the following:

LoadModulejk_module modules/mod_jk.so
AddModule mod_jk.c
JkWorkersFile /usr/local/jakarta-tomcat/conf/workers.properties
JkLogFile /usr2/wwwlogs/mod_jk.log
JkLogLevelwarn

Alias /java "/home/unit/javaapps"

Options Indexes FollowSymLinks



ServerAdmin [EMAIL PROTECTED]
ServerName www.somename.com
ServerAlias xx.xx.xx.xxx
DocumentRoot /home/unit
JkMount   /java/*.jsp ajp13
JkMount   /java/servlet/* ajp13



So When I put in http://www.somename.com/java/servlet/HelloHttpServlet
I get paged not Found.
I know it is getting to the Tomcat server, because I get an error on the
console:
2000-11-24 10:05:17 - Ctx(  ): 404 R(  + /java/servlet/HelloHttpServlet +
null) null

So I am pretty sure it has to do something with the way I have my tomcat
configured. The piece that I can't seem to follow thru on is:
1) I understand that the JkMount statements redirect all /.jps's and
/servlet to
the tomcat server. But how does tomcat know where to look for the file/class
.


Thanks for any help/ direction

Randy Paries






Re: ClassCastException

2000-11-24 Thread Robert A. Lentz

Greetings,

I have just struggled with the dreaded ClassCastException and servlet 
re-loading... after pulling my hair out for a little while I made my way to 
the mailing list archives and found that this is currently expected behavior.

Disclaimer: I know absolutely nothing about class loaders...

given that, I will mention that one thing I tried was to create a dummy 
class member of the type that was the cast that was causing the exception, 
with the idea of ensuring that the class was already loaded.  Not even this 
worked.  Is this just functionality that has not yet been engineered or the 
way that class loaders are supposed to work?

Perhaps this exception can be caught at some point and a custom exception 
created which includes a mention in the message to the appropriate FAQ 
entry? :-)

(By the way, it seems to me that several Jakarta projects (Tomcat and ant 
are two of which I am aware) are implementing class loaders, perhaps 
resources can be pooled?)

I'm not yet on the mailing list due to traffic, please ensure I receive a 
copy of any response.

Thank you,
-Robert

-- 
[EMAIL PROTECTED]
  "It has been said that man is a rational animal. All my life
   I have been searching for evidence which could support this."
-- Bertrand Russell




RE: Strange Session Behavior....

2000-11-24 Thread James Morgenstein

A little further information on my session behavior problem.

I have disabled class reloading via the server.xml.

I have not seen the encodeURL command fail during testing, in fact, I was
having the same session problem when I was using cookies!  I switched to URL
rewriting because I thought the problem might be people who had cookies
disabled.

Part of my problem may be using encodeURL() for all my links instead of
encodeRedirectURL().  Does anyone know the difference between these methods?

The biggest mystery here remains that this behavior is inconsistent.
Everything works great for most users, but in a few cases, I am getting this
bean instantiation error

Thanks for the help.

James

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 23, 2000 2:48 AM
To: '[EMAIL PROTECTED]'
Subject: AW: Strange Session Behavior



> -Ursprüngliche Nachricht-
> Von: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 22. November 2000 22:34
> An: [EMAIL PROTECTED]
> Betreff: Re: Strange Session Behavior

> Sessions get destroyed only when they time out or when you
> invalidate them.

- What happens if classes are reloaded ?
  Good old jserv used to invalidate the session a soon
  as one class was reloaded due to a change.

> However, I'd bet the cause of your problem is a forgotten call to
> response.encodeURL().  This will cause the next request in to start a
new
> session -- and if that request goes directly to a JSP page (so your
bean
> construction hasn't yet had a chance to execute) you will get the
results you
> see.

Although your guess is the most likely, there might be two further valid
guesses
- encodeURL() is not working correct under all conditions
- tomcat sometime creates sessions

Message to the original poster James Morgenstein:
All three guesses can be validated through following test:
  run a site grabber (like wget) and look at the url's
  this way you can find if the session id changes somewhere
  or is missing.
  Analyse what you saw ...




RE: URL Rewriting status

2000-11-24 Thread James Morgenstein

I have had success in using URL rewriting in 3.2b8.


-Original Message-
From: Milan Adamovic [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, November 22, 2000 3:15 PM
To: [EMAIL PROTECTED]
Subject: FW: URL Rewriting status


What is the latest status of URL Rewriting on port 80?

Has this bug been fixed?
If it has, in which release?

My platform:
- Windows NT
- Apache 1.3.14
- Tomcat 3.1 (latest stable release)

Problem:
encodeURL or encodeRedirectURL simply don't work if I am using port 80.

I read through the mailing list archives, but I could not find if the
problem has been fixed.

Not that I tried few suggestions (mod_rewrite and 


Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

2000-11-24 Thread Bourque, Guillaume

I forgot to included the ouput of  /var/log/httpd/mod_jk.log

[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done 
without a match

What's missing to my tomcat conf ?


Vous auriez écrit ... :

>Hello all !
>
>Sorry to ask this one but I tried a lot of thing before asking ?
>
>I have a standards Mandrake/Linux machine 7.1 with the following packages
>installed
>
>[root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
>apache-suexec-1.3.12-24mdk
>apache-1.3.12-24mdk
>apache-common-1.3.12-24mdk
>apache-manual-1.3.12-24mdk
>apache-devel-1.3.12-12mdk
>IBMJava2-SDK-1.3-2.0
>tomcat-3.2-beta5.1
>tomcat-mod-3.2-beta5.1
>tomcat-doc-3.2-beta5.1
>
>
>After installing these package I can talk to tomcat via
>http://localhost:8080
>
>But like every body I want to use 80 and the JKMount for my jsp files 
>
>And here is my /etc/http/conf/mod_jk.conf file
>
>
>  DocumentRoot /web/host1
>  ServerName darwin.hydro.qc.ca
>  JkMount /*.jsp ajp12
>  JkMount /servlet/* ajp12
>
>
>
>Also I included the ouput of the strace command run on my apache process 
>
>strace -f -p 18460
>
>
>brk(0x8151000)  = 0x8151000
>brk(0x8154000)  = 0x8154000
>brk(0x8157000)  = 0x8157000
>read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
>write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
>fdatasync(0xa)  = 0
>write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
>fdatasync(0xa)  = 0
>stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, st_size=522, ...}) = 0
>open("/.htaccess", O_RDONLY)= -1 ENOENT (No such file or
>directory)
>open("/web/.htaccess", O_RDONLY)= -1 ENOENT (No such file or
>directory)
>open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No such file or
>directory)
>open("/web/host1/carts.jsp", O_RDONLY)  = 12
>select(12, [11], NULL, NULL, {0, 0})= 0 (Timeout)
>write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
>close(12)   = 0
>read(11, 0x8152b20, 4096)   = ? ERESTARTSYS (To be restarted)
>--- SIGALRM (Minuterie d'alerte) ---
>close(11)   = 0
>rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
>rt_sigaction(SIGURG, {0x805be14, [], SA_INTERRUPT|0x400}, {0x805be14,
>[], SA_INTERRUPT|0x400}, 8) = 0
>
>
>What am I missing ? 
>
>Why apache do not pass the request to tomcat or why tomcat doesnot reply
>to apache ?
>
>Right now I see only the ascii source file of my jsp file !
>
>TIA,
>
>Guillaume
>
>
>

-- 
- La qualité avant tout ! --
Guillaume BourqueArchitecte informatique
 LogiSoft Technologies inc.
Tél. (514) 580-0050  Fax: (450) 649-6134
 http://www.logisoftech.com 




RE: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Ritwick Dhar

Update on this problem:

I simplified the client to simply POST a line of text and the server to
simply echo it back. The results seem to be:

The client can open an outputstream to a servlet and write to it, but a
close() or even a flush()
causes the stream to be shut down and the server prints the stacktrace for
an IOException. If the 
stream is not flushed, however, the server proceeds without any input
whatsoever (contentlength = 0).

I tried this servlet on Jrun and WebSphere. Both work without a hitch.

I think this is starting to smell like a bug.

Thanks
Ritwick

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: HANDLER THREAD PROBLEM: Stream closed prematurely


 Does your client close the stream that writes the request or
just flush it? I seem to recall having a problem similar to this
where the solution was to not close the client's output stream
until after the complete transaction.

Ritwick Dhar wrote:
> 
> Hi,
> 
> This problem is driving me nuts. I've tried debugging this, but nothing
yet.
> I was hoping someone on this list will have come accross this before.
> 
> Case: I have a servlet (server) that accepts POST requests (content-type=
> application/x-ofx), and sends back a OFX response. I have another servlet
> (client), that opens a URL to the server, writes the request, and reads
the
> reponse. Simple.
> 
> The problem is, the moment the client tries to call
> 'urlConn.getInputStream()' to get an inputstream from the server, I get
this
> (on the server console):
> 
> HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
> java.io.IOException: Stream closed prematurely
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at java.io.IOException.(Compiled Code)
> at
>
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
> iled Code)
> at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Compiled Code)
> at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
> at java.lang.Thread.run(Compiled Code)
> 
> What's really driving me up the wall is that this works perfectly fine
with
> Both WebSphere and JRun. Is this something particular to Tomcat??
> 
> Thanks for all help
> 
> Rit

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



Re: Clustering/distributed container..

2000-11-24 Thread Craig R. McClanahan

Christian Bjørnbak wrote:

> Hi
>
> Does Tomcat 3.1 support clustering of JVM's/distributed containers, where
> the sessions is replicated to the partipating servers???
>

No.

>
> According to the Servlet API 2.2, it's a feature all servlet containers need
> to have...
>

You might want to reread that text (admittedly, it is a little confusing).
Basically, the spec is saying *if* you support distributed sessions, your
container needs to obey a specific set of rules (such as "all concurrent
requests to a particular session must be directed to the same JVM").

>
> If it isn't in this version when will it???
>

As soon as someone contributes the code to make it do this :-).

>
> /Christian Bjørnbak

Craig





Re[2]: tomcat and apache in spanish

2000-11-24 Thread Serg Velikanov

Hello Carlos,

Friday, November 24, 2000, 6:36:48 PM, you wrote:

C> Hola, antes de nada muchas gracias por responderme.
C> Mira te explico. Hasta ahora siempre andaba con apache, perl y php al final,
C> pero en esta empresa hemos , han, decidido el paso a jsp con el uso de
C> toimcat y apache.
C> Bien lo que querria aclararme en un pricipio son cosas generales de
C>

For Tomcat teaM

Could you do so in Russian or Ukrainian?

-- 
Best regards,
 Sergmailto:[EMAIL PROTECTED]





Re[2]: tomcat-servlets problem

2000-11-24 Thread Serg Velikanov

Hello Ritwick,

Friday, November 24, 2000, 9:03:24 PM, you wrote:

RD> 'Getting started' documentation is included with the download in the
RD> $TOMCAT_HOME/doc directory. Its also available online at jakarta.apache.org.
 
RD>  -Original Message-
RD> From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
RD> Sent: Friday, November 24, 2000 1:07 PM
RD> To: '[EMAIL PROTECTED]'
RD> Subject: tomcat-servlets problem



RD>   Hello everybody. I am new to using Tomcat and I have some problems. I am
RD> using Tomcat with Apache. The problem is that I do not know how to run a
RD> servelt (or a jsp file) using tomcat. Lets say I have a servlet
RD> (HelloWorld.java) that I have compiled properly. How can I run it using
RD> Tomcat? How can I configure the relevant files? I have read the FAQ and the
RD> configuration instructions but they do not seem to work. I have tried:
RD> http://localhost/servelts/HelloWorld 
RD> (and many more combinations) but it does not seem to work. Could anybody
RD> help me please and give me explicit examples of how to configure the proper
RD> files and where to put the servlet files? Is it the same if I want to run
RD> JSP files? Thank you for your time.

  
RD>   Regards 

RD>Panos 

Getting started, getting started. May be, way be. So you have your
servlet? Does tomcat know about it? It seems to me no.

So .java and .class files of your project classesyour should be in
tomcat\webapp\YOURPROJECTDIRECTORY\WEB-INF\class\YOURPROJECTCLASSNAME\*.*
due to servlet spec.

Your .html .htm .jsp and so on files should be in
tomcat\webapp\YOURPROJECTDIRECTORY\

And, please, restart your tomcat.

For Tomcat TEAM eyes only not for mass:
I'm  very respect your work, but if you know something, please tell
about it to other in your docs. As for me, I'm living in Ukraine and
for me it's not a lot of ways to obtain knowleadge --- Internet, some
translated books and hackers ftp's with books.
It's seems to me Tomcat documentation very-very spartan. No details
and so on.  Your users should work hardly to know something. Please,
sometime remember, sweet times when you first started.
-- 

Kharkov, Ukraine

Best regards,
 Sergmailto:[EMAIL PROTECTED]





HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

2000-11-24 Thread Bourque, Guillaume

Hello all !

Sorry to ask this one but I tried a lot of thing before asking ?

I have a standards Mandrake/Linux machine 7.1 with the following packages
installed

[root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
apache-suexec-1.3.12-24mdk
apache-1.3.12-24mdk
apache-common-1.3.12-24mdk
apache-manual-1.3.12-24mdk
apache-devel-1.3.12-12mdk
IBMJava2-SDK-1.3-2.0
tomcat-3.2-beta5.1
tomcat-mod-3.2-beta5.1
tomcat-doc-3.2-beta5.1


After installing these package I can talk to tomcat via
http://localhost:8080

But like every body I want to use 80 and the JKMount for my jsp files 

And here is my /etc/http/conf/mod_jk.conf file


  DocumentRoot /web/host1
  ServerName darwin.hydro.qc.ca
  JkMount /*.jsp ajp12
  JkMount /servlet/* ajp12



Also I included the ouput of the strace command run on my apache process 

strace -f -p 18460


brk(0x8151000)  = 0x8151000
brk(0x8154000)  = 0x8154000
brk(0x8157000)  = 0x8157000
read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
fdatasync(0xa)  = 0
write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
fdatasync(0xa)  = 0
stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, st_size=522, ...}) = 0
open("/.htaccess", O_RDONLY)= -1 ENOENT (No such file or
directory)
open("/web/.htaccess", O_RDONLY)= -1 ENOENT (No such file or
directory)
open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No such file or
directory)
open("/web/host1/carts.jsp", O_RDONLY)  = 12
select(12, [11], NULL, NULL, {0, 0})= 0 (Timeout)
write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
close(12)   = 0
read(11, 0x8152b20, 4096)   = ? ERESTARTSYS (To be restarted)
--- SIGALRM (Minuterie d'alerte) ---
close(11)   = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
rt_sigaction(SIGURG, {0x805be14, [], SA_INTERRUPT|0x400}, {0x805be14,
[], SA_INTERRUPT|0x400}, 8) = 0


What am I missing ? 

Why apache do not pass the request to tomcat or why tomcat doesnot reply
to apache ?

Right now I see only the ascii source file of my jsp file !

TIA,

Guillaume


-- 
- La qualité avant tout ! --
Guillaume BourqueArchitecte informatique
 LogiSoft Technologies inc.
Tél. (514) 580-0050  Fax: (450) 649-6134
 http://www.logisoftech.com 




Linux JSP missing files

2000-11-24 Thread paras dagli

i just downloaded tomcat 3.1 for linux. i run tomcat
as a standalone server, and i got errors stating that
bunch of files were not found. the directories missing
are:


WEB-INF
servlets
jsp
images
META-INF
contextAdmin
welcome
dispatch
binaries
javadoc


thanks for your help,

paras


=
paras - Compassion Giver @ CharityFocus.org
===
"Get busy living, or get busy dying" - Shawshank Redemption
===

__
Do You Yahoo!?
Yahoo! Shopping - Thousands of Stores. Millions of Products.
http://shopping.yahoo.com/



RE: tomcat-servlets problem

2000-11-24 Thread Ritwick Dhar
Title: tomcat-servlets problem



'Getting started' documentation is included with the 
download in the $TOMCAT_HOME/doc directory. Its also available online at 
jakarta.apache.org.
 
 -Original 
Message-From: Panagiotis Konstantinidis 
[mailto:[EMAIL PROTECTED]]Sent: Friday, November 24, 2000 1:07 
PMTo: '[EMAIL PROTECTED]'Subject: 
tomcat-servlets problem

    Hello everybody. I am new 
  to using Tomcat and I have some problems. I am using Tomcat with Apache. The 
  problem is that I do not know how to run a servelt (or a jsp file) using 
  tomcat. Lets say I have a servlet (HelloWorld.java) that I have compiled 
  properly. How can I run it using Tomcat? How can I configure the relevant 
  files? I have read the FAQ and the configuration instructions but they do not 
  seem to work. I have tried: http://localhost/servelts/HelloWorld (and many more 
  combinations) but it does not seem to work. Could anybody help me please and 
  give me explicit examples of how to configure the proper files and where to 
  put the servlet files? Is it the same if I want to run JSP files? Thank you 
  for your time.
      Regards 
     Panos 



tomcat-servlets problem

2000-11-24 Thread Panagiotis Konstantinidis
Title: tomcat-servlets problem





  Hello everybody. I am new to using Tomcat and I have some problems. I am using Tomcat with Apache. The problem is that I do not know how to run a servelt (or a jsp file) using tomcat. Lets say I have a servlet (HelloWorld.java) that I have compiled properly. How can I run it using Tomcat? How can I configure the relevant files? I have read the FAQ and the configuration instructions but they do not seem to work. I have tried: http://localhost/servelts/HelloWorld (and many more combinations) but it does not seem to work. Could anybody help me please and give me explicit examples of how to configure the proper files and where to put the servlet files? Is it the same if I want to run JSP files? Thank you for your time.

  
  Regards


   Panos





RE: Protecting directory listing for tomcat

2000-11-24 Thread svignal, Aptilon.com

Where I could find all the markups, the tags available for the v3.2.

sebastien
 





RE: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Ritwick Dhar

Kurt,
No. Post 8008 is for the stand-alone server - I'm using apache. 8007 is the
internal port which Tomcat uses to talk to Apache (I think). I'm simply
sending my requests to 80.

William,
You may be on to something. I've tried not closing the output stream from
the client at all, but that didn't do much good. Maybe I'll try some other
things on those lines now. 

Thanks
Rit

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: HANDLER THREAD PROBLEM: Stream closed prematurely


 Does your client close the stream that writes the request or
just flush it? I seem to recall having a problem similar to this
where the solution was to not close the client's output stream
until after the complete transaction.

Ritwick Dhar wrote:
> 
> Hi,
> 
> This problem is driving me nuts. I've tried debugging this, but nothing
yet.
> I was hoping someone on this list will have come accross this before.
> 
> Case: I have a servlet (server) that accepts POST requests (content-type=
> application/x-ofx), and sends back a OFX response. I have another servlet
> (client), that opens a URL to the server, writes the request, and reads
the
> reponse. Simple.
> 
> The problem is, the moment the client tries to call
> 'urlConn.getInputStream()' to get an inputstream from the server, I get
this
> (on the server console):
> 
> HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
> java.io.IOException: Stream closed prematurely
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at java.io.IOException.(Compiled Code)
> at
>
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
> iled Code)
> at
>
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Compiled Code)
> at org.apache.tomcat.service.TcpConnectionThread.run(Compiled
Code)
> at java.lang.Thread.run(Compiled Code)
> 
> What's really driving me up the wall is that this works perfectly fine
with
> Both WebSphere and JRun. Is this something particular to Tomcat??
> 
> Thanks for all help
> 
> Rit

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



RE: Increasing memory problem

2000-11-24 Thread Saurabh Shukla

Give tomcat more memory..
check up your startup file for that..

Shuklix


-Original Message-
From: Kai Müller [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:05 PM
To: [EMAIL PROTECTED]
Subject: Increasing memory problem


Hi everybody!

My problem is the following:

after I start my application (JSPs read from MySQL) with Tomcat 3.1 the
used memory of the java processes increases and the number of java
processes themselves increases if I reload the same site (2 per second),
reload, reload, reload  ;-)

The performance goes down, and sometimes Tomcat crashes. The HTML sent
to the browser is large (about 350 kB). I get several errors
(OutOfMemory, Response has already been committed,...) and I am
absolutely confused about it now.

Can anybody help me ? Do you need further information ?

With kind regards

Kai Müller


The input.jsp is the following and a global entry for all requests,
which are handled and forward on a JSP page with the HTML-Codes.


<%@ page errorPage="/error/errorpage.jsp" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>

<%
   response.setDateHeader("Expires",0);
   response.setHeader("Pragma","no-cache");
   response.setHeader("Cache-Control","no-cache,must-revalidate");
%>

 
<%
 requestProc.initialize(config.getServletContext(), session);
 %>


 



 <%
   requestProc.processRequest(request);

   String next = pageController.getNextPage(request);
   getServletConfig().getServletContext().getRequestDispatcher("/" +
next).forward(request, response);
 %>
-
--

Mediadom audiovisuelle Medien GmbH
Merheimer Str. 151
D-50733 Koeln

Tel.: 0221 / 917 11 80
Fax: 0221 / 917 11 81

Internet: http://www.mediadom.de





html-jsp

2000-11-24 Thread Carlos

i have install tomcat 3.2 beta 8
if i want to see a html page there is not problem but if i want to see a jsp
page the system says me that the page isn't.
what may be the problem?
thanks
carlos

AH! if i shutdown the 3.2 version and i run the 3.1 version there is not
problem.
Thanks.

Other:
in the apache conf file what i miust pu to run the jk_mod?
if i put the jk_mod, i must put the jserv_mod?
thnaks
Carlos




Increasing memory problem

2000-11-24 Thread Kai Müller

Hi everybody!

My problem is the following:

after I start my application (JSPs read from MySQL) with Tomcat 3.1 the
used memory of the java processes increases and the number of java
processes themselves increases if I reload the same site (2 per second),
reload, reload, reload  ;-)

The performance goes down, and sometimes Tomcat crashes. The HTML sent
to the browser is large (about 350 kB). I get several errors
(OutOfMemory, Response has already been committed,...) and I am
absolutely confused about it now.

Can anybody help me ? Do you need further information ?

With kind regards

Kai Müller


The input.jsp is the following and a global entry for all requests,
which are handled and forward on a JSP page with the HTML-Codes.


<%@ page errorPage="/error/errorpage.jsp" %>
<%@ page import="javax.servlet.*" %>
<%@ page import="javax.servlet.http.*" %>

<%
   response.setDateHeader("Expires",0);
   response.setHeader("Pragma","no-cache");
   response.setHeader("Cache-Control","no-cache,must-revalidate");
%>

 
<%
 requestProc.initialize(config.getServletContext(), session);
 %>


 



 <%
   requestProc.processRequest(request);

   String next = pageController.getNextPage(request);
   getServletConfig().getServletContext().getRequestDispatcher("/" +
next).forward(request, response);
 %>
-
--

Mediadom audiovisuelle Medien GmbH
Merheimer Str. 151
D-50733 Koeln

Tel.: 0221 / 917 11 80
Fax: 0221 / 917 11 81

Internet: http://www.mediadom.de





Re: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread William Brogden

 Does your client close the stream that writes the request or
just flush it? I seem to recall having a problem similar to this
where the solution was to not close the client's output stream
until after the complete transaction.

Ritwick Dhar wrote:
> 
> Hi,
> 
> This problem is driving me nuts. I've tried debugging this, but nothing yet.
> I was hoping someone on this list will have come accross this before.
> 
> Case: I have a servlet (server) that accepts POST requests (content-type=
> application/x-ofx), and sends back a OFX response. I have another servlet
> (client), that opens a URL to the server, writes the request, and reads the
> reponse. Simple.
> 
> The problem is, the moment the client tries to call
> 'urlConn.getInputStream()' to get an inputstream from the server, I get this
> (on the server console):
> 
> HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
> java.io.IOException: Stream closed prematurely
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at java.io.IOException.(Compiled Code)
> at
> org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
> iled Code)
> at
> org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
> (Compiled Code)
> at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
> at java.lang.Thread.run(Compiled Code)
> 
> What's really driving me up the wall is that this works perfectly fine with
> Both WebSphere and JRun. Is this something particular to Tomcat??
> 
> Thanks for all help
> 
> Rit

-- 
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2



Re: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Kurt Bernhard Pruenner

Ritwick Dhar wrote:
> HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
> java.io.IOException: Stream closed prematurely
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at java.io.IOException.(Compiled Code)
> at
> org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
> iled Code)

Could it be that you want to connect via port 8007 (which is for connections
using the AJP12 protocol) when you really want to be using port 8080 (which is
the port to use for normal HTTP requests)?

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Senor Coconut - Showroom Dummies (El Baile Aleman)



RE: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Ritwick Dhar

Alex,

Unfortunately, I'm already running it with Apache. (IBM HTTP Server based on
Apache with SSL). Thanks for the reply.

Rit

-Original Message-
From: Roytman, Alex [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 10:53 AM
To: '[EMAIL PROTECTED]'
Subject: RE: HANDLER THREAD PROBLEM: Stream closed prematurely


If you are running Tomcat standalone I would suggest to try it with Apache
web server.
We had some problems with tomcat built in web server - 
POST input stream would only give you first 1300 bytes of POST data 
and some other problems I do not remember. 
I believe apache inherited it from Sun Web server which had these problems.
However all these problems were not present when we access tomcat via Apache
web server

Alex  

-Original Message-
From: Ritwick Dhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:35 AM
To: '[EMAIL PROTECTED]'
Subject: HANDLER THREAD PROBLEM: Stream closed prematurely


Hi,

This problem is driving me nuts. I've tried debugging this, but nothing yet.
I was hoping someone on this list will have come accross this before.

Case: I have a servlet (server) that accepts POST requests (content-type=
application/x-ofx), and sends back a OFX response. I have another servlet
(client), that opens a URL to the server, writes the request, and reads the
reponse. Simple.

The problem is, the moment the client tries to call
'urlConn.getInputStream()' to get an inputstream from the server, I get this
(on the server console):

HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.io.IOException.(Compiled Code)
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
iled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

What's really driving me up the wall is that this works perfectly fine with
Both WebSphere and JRun. Is this something particular to Tomcat??

Thanks for all help

Rit



RE: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Roytman, Alex

If you are running Tomcat standalone I would suggest to try it with Apache
web server.
We had some problems with tomcat built in web server - 
POST input stream would only give you first 1300 bytes of POST data 
and some other problems I do not remember. 
I believe apache inherited it from Sun Web server which had these problems.
However all these problems were not present when we access tomcat via Apache
web server

Alex  

-Original Message-
From: Ritwick Dhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:35 AM
To: '[EMAIL PROTECTED]'
Subject: HANDLER THREAD PROBLEM: Stream closed prematurely


Hi,

This problem is driving me nuts. I've tried debugging this, but nothing yet.
I was hoping someone on this list will have come accross this before.

Case: I have a servlet (server) that accepts POST requests (content-type=
application/x-ofx), and sends back a OFX response. I have another servlet
(client), that opens a URL to the server, writes the request, and reads the
reponse. Simple.

The problem is, the moment the client tries to call
'urlConn.getInputStream()' to get an inputstream from the server, I get this
(on the server console):

HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.io.IOException.(Compiled Code)
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
iled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

What's really driving me up the wall is that this works perfectly fine with
Both WebSphere and JRun. Is this something particular to Tomcat??

Thanks for all help

Rit



HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-24 Thread Ritwick Dhar

Hi,

This problem is driving me nuts. I've tried debugging this, but nothing yet.
I was hoping someone on this list will have come accross this before.

Case: I have a servlet (server) that accepts POST requests (content-type=
application/x-ofx), and sends back a OFX response. I have another servlet
(client), that opens a URL to the server, writes the request, and reads the
reponse. Simple.

The problem is, the moment the client tries to call
'urlConn.getInputStream()' to get an inputstream from the server, I get this
(on the server console):

HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
java.io.IOException: Stream closed prematurely
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.io.IOException.(Compiled Code)
at
org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
iled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

What's really driving me up the wall is that this works perfectly fine with
Both WebSphere and JRun. Is this something particular to Tomcat??

Thanks for all help

Rit



Re: tomcat and apache in spanish

2000-11-24 Thread Carlos

Hola, antes de nada muchas gracias por responderme.
Mira te explico. Hasta ahora siempre andaba con apache, perl y php al final,
pero en esta empresa hemos , han, decidido el paso a jsp con el uso de
toimcat y apache.
Bien lo que querria aclararme en un pricipio son cosas generales de
configuracion del tomcat.
TE explico nuestra situación. Vamos a tener en este linux una media de 10
dominios virtuales, para lo cual querria aclararme de :
1.- La configuracin de los dominios virtuales los hago en el apache y/o
tamcat? en ambos?
Me podrías pasar algun ejemplo que funcione para poder guiarme? me refiero
sobre todo a la configura ion en tomcat ya que me imagino que la instlacion
de los dominios virutales en el apache ser´ña la eestandra, que la controlo
medianamente.
2.- Voy a tener , como te he dicho unos 10 dominios virtuales, con classes
java (arvhivos .class) comunes, estos los metere en el directorio
WEB-INF/classes general, pero luego cabe la posibilidad que para cada
usuario tenga que añadir unas clases particulares. Hay manera de hacer que
para un usuario que meneje estas clases comunes y particulares las recoja
las comunes de un direcotio comun y las particulares de un directorio
particular? como se configuraria esto? y donde?
3.- la configuraion de los dominios viretuales como y en que archivo se hace
en el tomcat?
4.- Si no he entendido mal cada vez que se añade un dominio virtual hay que
rearrancar el tomcat y apache, bien, ¿como podría hacer para, cuando se
arranca el apache, se compile, precompile todas las paginas jsp que se
puedan precompilar, o precompilar todo lo precompilable? lko digo esto para
así evitar la primera espera en la visita de una pagina jsp.

como y donde defino el numero maximo de thread que lanza el tomcat? lo
rpegunto por si hay muchas visitas no me anule el sistema por falta de
recursos, de todas formas este es un tema que de momento me me urge.

en la estructura del tomcat (/opt/jakarta/webapps/ROOT) donde es lo mas
interesante y menejable a la hora de poner los directorios de los dominios
virtuales.

5.- a la hora de crear un dominio virtual he visto que en este hay que meter
un web.xml, que estructura tiene que tener? me puedes pasar algun ejemplo
para ver que diferencia lleva con el web.xml general?

Muchas gracias por haber contestado a mi peticion de ayuda, que la justifico
por mi poco conocimineto y dominio del ingles. Me estoy volviendo casi lo co
en leer documentacin en ingles, con un diccionario al lado, pero me falta un
pequeño empujón en la comprensión del tema, por eso de mi peticion de ayuda,
que TE AGRADEZCO de antemano.
Muchas gracias por tu ayuda y un abrazo

Carlos


- Original Message -
From: "cH3rN0b|L" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 4:48 PM
Subject: Re: tomcat and apache in spanish


> Hola Carlos ...
> Nosotros tambien estamos desarrollando en JSP
> y XML. Me encantaria poder ayudarte, si esta en
> mi mano.
>
> Un saludo
>
> Iván Fontán
> Technical Department
>
> LATINIA CORPORATION
> www.latinia.com
>
> Spain Office
> Barcelona
> Trav. Gràcia, 342-344
> 08025 Barcelona (Spain)
> Tel.: +34 934 465 026
>
> US Offices
> New York
> 885 3rd Avenue
> Suite 2800
> New York, NY 10022
>
> Miami
> 1210 Brickell Avenue
> Suite 430
> Miami, FL 33131
> - Original Message -
> From: "Carlos" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Friday, November 24, 2000 4:05 PM
> Subject: tomcat and apache in spanish
>
>
> > hay alguien en esta lista que este usando el tomcat y el apache juntos
> para
> > desarrollos jsp?
> > tengo que hacer unas preguntas muy básicas en castellano ya qu emi
ingles
> > para las listas de tomcat es pésimo.
> > por favor rogaria poenrse en contacto conmigo para no mandar a la lista
> > cosas que no interesen.
> > Gracias y mil perdones de antemano.
> > Carlos
> >
>
>




Re: AW: Need database recommendation

2000-11-24 Thread raimee



I reccomend IMS, but if your budget is under 4 Million, I'd go with DB2
UDB. You can get
the Personal Edition for free from
http://service.software.ibm.com/cgi-bin/d2w/sdl/segment/input?segment=DM&x=28&y=8

I have been using DB2 with Tomcat and JServ for about a year and a half and
have been very satisfied.

Another option not mentioned is PostgreSQL. Available here:
http://looking-glass.usask.ca:82/
I have used PostgreSQL with PHP in the past. I'm sure that there is a JDBC
driver available too.



Regards,

Raimee Stevens
DB2 UDB NLV Team - IBM Toronto Lab

Email: [EMAIL PROTECTED]   VM: RAIMEE@TOROLAB2
Phone: (416)448-3706   T/L 778-3706  Fax: (416)448-4414


Ralph Einfeldt <[EMAIL PROTECTED]> on 11/24/2000 02:58:10 PM

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:
Subject:  AW: Need database recommendation




The answer depends on your requirements:
- do you need
 views
 sub selects
 outer joins (which versions)
 transctions
- whats are the requirements in terms of
 reliability (redundancy)
 scalability (performance, datavolume)
- whats is your budget

Some of our expiriences
  mySQL
The last time we checked, transactions (or
to be more precise the interface to berkley
db) was alpha. I think this will take some
time to become a stable release. It is not
clear what this mean to the performance,
because I don't know any result with this
engine.
No views. I like to use views to hide some
complexities of the underlying db model.
No subselects. This is a very bad thing
for delete. You have do implement loops
where you normaly use sub selects.
  Sybase ASA
Cheapest full featered commercial RDBMS
for web applications.
Blobs are just 32K in the current release
(Although the documentation says something
different)
  Oracle
Quite expensive.
Never the less the db I made the best
experiences with.
  Interbase
Some nasty bugs with outer joins

  Cloudscape, InstantDB, Hypersonis SQL
All thre do not support views

> -Ursprüngliche Nachricht-
> Von: c cw288 [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 22. November 2000 21:00
> An: [EMAIL PROTECTED]
> Betreff: Need database recommendation
>
>
> Hi all,
> We are going to develop an application on apache + tomcat + mod_jk on
> Solaris 8, and we need a database for our application. There
> are lots of
> databases exit, we need some recommendation of which  is easier to
> implement.
>
> Thanks,
>
> Cathy
> __
> ___
> Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com







Re: AW: News Group needed desperately

2000-11-24 Thread Michael J. Suzio

Kurt Bernhard Pruenner wrote:
> Well, I'm not surprised that people don't know where to look 
> for an archive of any of the mailing lists that 
>http://jakarta.apache.org/getinvolved/mail.html
> lists - there's is no single mention of them to be found!

That's funny.  I very clearly see a link there today, and it's been
there at least since earlier in the week when I went back to confirm
that people are being lazy and not trying hard enough to solve their own
problems.  (You have to scroll down, the top few lists don't have
archives, but I suspect they are very low-traffic).

I'm on this list to get help and help others as we work on getting
Tomcat working to solve our problems.  I expect everyone else to at
least work as hard as I do when I have a problem -- and for me, the list
is the last resort when I feel I have a unique problem.  I search the
Jakarta site, I check the FAQs there.  I check the FAQs on jGuru.  I
read the archives of the list.  I search Google.  I re-read the Tomcat
docs.

Then... if nothing is clear.  I email the list.  Can everyone else
please do that?  And not spam the list, would that be possible?

Sheesh.  Don't mess with me when I come in on a holiday day :-).

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Re: Meet us on Wine Alley

2000-11-24 Thread Michael J. Suzio

Umm... isn't the list subscription only?  Are spammers getting that
desparate that they actually *subscribe* to lists before they spam them?

*sigh*.  Death is too good for them.  I'm going to harass their provider
now.

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Re: tomcat and apache in spanish

2000-11-24 Thread cH3rN0b|L

Hola Carlos ...
Nosotros tambien estamos desarrollando en JSP
y XML. Me encantaria poder ayudarte, si esta en
mi mano.

Un saludo

Iván Fontán
Technical Department

LATINIA CORPORATION
www.latinia.com

Spain Office
Barcelona
Trav. Gràcia, 342-344
08025 Barcelona (Spain)
Tel.: +34 934 465 026

US Offices
New York
885 3rd Avenue
Suite 2800
New York, NY 10022

Miami
1210 Brickell Avenue
Suite 430
Miami, FL 33131
- Original Message -
From: "Carlos" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 4:05 PM
Subject: tomcat and apache in spanish


> hay alguien en esta lista que este usando el tomcat y el apache juntos
para
> desarrollos jsp?
> tengo que hacer unas preguntas muy básicas en castellano ya qu emi ingles
> para las listas de tomcat es pésimo.
> por favor rogaria poenrse en contacto conmigo para no mandar a la lista
> cosas que no interesen.
> Gracias y mil perdones de antemano.
> Carlos
>




Re: Need database recommendation

2000-11-24 Thread William Colls



If a commercial solution is acceptable, you might consider Progress
(www.progress.com). Very powerful, high reliability, well suited to web based
applications. Contact me off-line if you want more details.
--
/* == */

William E. Colls   Tel 613 591 0079
PROComputer SystemsFax 613 591 3924
67 Willow Glen Dr www.procomsys.com
Kanata  Ontario  Canada   PEG Member 1998051404

  Specialists in Progress Software development since 1985





PHP-JAVA multitask?

2000-11-24 Thread Olivier Baillard

Hello,

I have a question about the servlet extention of PHP from Sam Ruby. If 2 
people try to connect at the same time on the PHP servlet, than Tomcat 
crashes. I hat the problem too that the PHP servlet doesn't work really 
good with frame. Then I implement the interface "SingleThreadModel" in the 
servlet.java than I works good.

But in every case, IT IS NOT STABLE!

I check and check and check my tomcat configuration, compile with all 
possible JDK and this piece of code it not stable.

Now, I would like to go inside and understand why it is not stable. It's 
not a easy work because you can't really debug and the "Java extension for 
PHP" is wrote in Java, C and JNI. I wonder the writter of this code and 
would be happy about all suggestion about how can I debug with such 
different languages.


Olivier




AW: Need database recommendation

2000-11-24 Thread Ralph Einfeldt

The answer depends on your requirements:
- do you need
views
sub selects
outer joins (which versions)
transctions
- whats are the requirements in terms of
reliability (redundancy)
scalability (performance, datavolume)
- whats is your budget

Some of our expiriences
  mySQL
The last time we checked, transactions (or 
to be more precise the interface to berkley 
db) was alpha. I think this will take some
time to become a stable release. It is not 
clear what this mean to the performance, 
because I don't know any result with this
engine.
No views. I like to use views to hide some
complexities of the underlying db model.
No subselects. This is a very bad thing
for delete. You have do implement loops
where you normaly use sub selects.
  Sybase ASA
Cheapest full featered commercial RDBMS 
for web applications.
Blobs are just 32K in the current release
(Although the documentation says something
different)
  Oracle
Quite expensive.
Never the less the db I made the best
experiences with.
  Interbase
Some nasty bugs with outer joins

  Cloudscape, InstantDB, Hypersonis SQL
All thre do not support views

> -Ursprüngliche Nachricht-
> Von: c cw288 [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 22. November 2000 21:00
> An: [EMAIL PROTECTED]
> Betreff: Need database recommendation
> 
> 
> Hi all,
> We are going to develop an application on apache + tomcat + mod_jk on 
> Solaris 8, and we need a database for our application. There 
> are lots of 
> databases exit, we need some recommendation of which  is easier to 
> implement.
> 
> Thanks,
> 
> Cathy
> __
> ___
> Get more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com




Tomcat 3.2 + mod_jk + Apache 1.3.14 + Cocoon 1.8 on Win NT: One question and a lot of answers!

2000-11-24 Thread Martin Bouman

Hello everyone!

After three days I succeeded in running Tomcat 3.2 beta 8, Apache 1.3.14 and
Cocoon 1.8 on Win NT!
Now I hope I have not overlooked something and that it IS working right. For
now it does.

My configuration has the following features:

- Tomcat 3.2 beta 8 
- Apache 1.3.14
- Cocoon 1.8
- mod_jk
- no port 8080 (Thanks to Dima and Robin: jkMount /*.xml, I hope this is
right? I can get http://localhost/cocoon/Cocoon.xml)
- ajp13 (next to ajp12)
- Tomcat running as NT Service or in DOS-prompt with Cocoon (I solved the
jar-sequence-problem by recreating the jars from  
  Tomcat under NT)
- Both Tomcat and Apache are running as an 'Automatic' service at the
startup of NT. To avoid Apache from starting before Tomcat
  (I know this is nescessary in the DOS-prompt, but also in the NT Service?
I think so.) I made Apache dependent on Tomcat, which
  does the trick.

Now the question: Is it possible to have the cocoonfiles in different
directory's under 'htdocs' in Apache and make Tomcat handle the
whole 'htdocs' tree? I have tried Mr. Schneider's approach, but I could not
get it to work.

Now all there is to do for me is to make everything work with Nuance
Voyager...

If anyone has any questions, answers, remarks or suggestions, pleas let me
know!

Martin Bouman
TeleCats BV
The Netherlands



tomcat and apache in spanish

2000-11-24 Thread Carlos

hay alguien en esta lista que este usando el tomcat y el apache juntos para
desarrollos jsp?
tengo que hacer unas preguntas muy básicas en castellano ya qu emi ingles
para las listas de tomcat es pésimo.
por favor rogaria poenrse en contacto conmigo para no mandar a la lista
cosas que no interesen.
Gracias y mil perdones de antemano.
Carlos




Re: More on JSP in XML format

2000-11-24 Thread Pierre Delisle

If you want to have a JSP page in XML syntax, you must comply 
with what is described in section 5 of the JSP Public Final Draft
[http://java.sun.com/aboutJava/communityprocess/first/jsr053/index.html]

More specifically:

"A JSP document has jsp:root as its root element type. The root is the place where 
taglibs
will insert their namespace attributes. The top element has an xmlns attribute that 
enables
the use of the standard elements defined in the JSP 1.2 specification.
All tag libraries used within the JSP document are represented in the root element 
through
additional xmlns attributes. There should be no other attributes in this element.
http://java.sun.com/jsp_1_2”
xmlns:prefix1=”URI-for-taglib1”
xmlns:prefix2=”URI-for-taglib2”... >
JSP page


-- Pierre

Partha Bhattacharjee wrote:
> 
> Hello,
> 
> I am sorry, I do not have an answer to the problem but I have another
> problem of the same genre.
> 
> I am writing a simple xml and parsing that client side with a simple xsl. It
> is working fine.
> 
> However the problem start when I write the same xml in a jsp file. Sometimes
> the jsp will realise that the stuff it contains is a xml sometimes it won't.
> 
> I have been working on it for quite some time ( read wasted one day ) and it
> appears to have to do something with the tomcat. Can you all tomcat users
> write the following jsp and check out.
> 
> partha1.jsp
> ==
> 
> 
>   partha 
> 
> 
> partha2.xml
> ==
> 
> 
>   partha 
> 
> 
> Check out if the two files are always giving the same display on the
> browser.
> 
> Please let me know.
> 
> thanks in anticipation
> 
> brgds
> partha
> 
> -Original Message-
> From: Anne and Bill Moore [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, November 23, 2000 10:05 AM
> To: tomcat user
> Subject: More on JSP in XML format
> 
> I anm still trying to get my head around JSP in XML format.
> Can anyone suggest further reading beyond the JSP Version 1.2 - Proposed
> Final Draft (PFD) spec or provide examples.
> When I try the examples like those from the spec using Tomcat Version
> 4.0 Milestone 4, I routinely get a java.lang.ClassCastException:
> org.apache.jasper.compiler.ParserXJspSaxHandler$Node.
> After some experimentation I was able to get very simple XML formatted
> JSP to work, but it seems that whenever the jsp contained a jsp:cdata
> element the class cast exception occurs.
> It may be that I have misunderstood the jsp:cdata element or is this a
> bug in Tomcat?
> --
> Thanks and Regards
> Anne and Bill Moore
> [EMAIL PROTECTED]
> Remember: Life is too short to drink bad wine!!!



Re: More on JSP in XML format

2000-11-24 Thread Pierre Delisle

 is currently not supported in tomcat-4.0.
You can either put the template data directly in the
jsp page, or you can simply use the standard XML tag
for CDATA: .

Give it a try and let me know.

Please report any JSP page in XML syntax that does not
work (except for the ). I'll make sure
the proper fixes are committed.

-- Pierre

Anne and Bill Moore wrote:
> 
> I anm still trying to get my head around JSP in XML format.
> Can anyone suggest further reading beyond the JSP Version 1.2 - Proposed
> Final Draft (PFD) spec or provide examples.
> When I try the examples like those from the spec using Tomcat Version
> 4.0 Milestone 4, I routinely get a java.lang.ClassCastException:
> org.apache.jasper.compiler.ParserXJspSaxHandler$Node.
> After some experimentation I was able to get very simple XML formatted
> JSP to work, but it seems that whenever the jsp contained a jsp:cdata
> element the class cast exception occurs.
> It may be that I have misunderstood the jsp:cdata element or is this a
> bug in Tomcat?
> --
> Thanks and Regards
> Anne and Bill Moore
> [EMAIL PROTECTED]
> Remember: Life is too short to drink bad wine!!!



Re: Out of environment space

2000-11-24 Thread michael e. brubaker


This one  I can answer.
Click on the MS-DOS icon in the upper left corner.
Click on "Properties"
Click on the "Memory" tab
Change the "Initial Environment" to 2816.
For some reason, you may need to do this for the shutdown screen and
other misc screns as well.
Tomas Marek wrote:
Guys, I think my Tomcat would be finally running
correctly, but in startup window it says:
Out of environment space
What that means? Not enough memory? Whot might be the cause?
Thanks,
Tom.



HEUREKA!

2000-11-24 Thread Tomas Marek

It works
I want to thank to all of you guys, who helped me to get the beast up
and running!
Thanks for your patience.

New Tomcat user Tom.




Re: Out of environment space

2000-11-24 Thread Boszormenyi Laszlo

Hi!

On Fri, 24 Nov 2000, Tomas Marek wrote:

> Out of environment space
 Ok. I checked the Java page again:
   1.Close the DOS window (the error can corrupt its CLASSPATH variable).
   2.Open a new DOS window.
   3.Click on the MS-DOS icon at the top left of the window.
   4.Select the Properties option.
   5.Click on the Memory tab.
   6.Adjust the Initial Environment drop-down box from Auto to 2816.
   7.Click OK.
   8.Start the server.

Sincerely,
Laszlo




Tomcat & Apache Config problem

2000-11-24 Thread David Connolly

Hi All,

I have several virtual hosts set up with my Apache server. They have both
cgi and jsp content. I am using Tomcat to serve my jsp's. Each virtual host
has a unique ApJServMount. One of them is "/" however and for this virtual
host my cgi programs do not work. Is it possible to use "/" as one of the
mount points? It will save having to edit a lot of code if this is possible.

Any ideas ?

Thanks,
David






Out of environment space

2000-11-24 Thread Tomas Marek


Guys, I think my Tomcat would be finally running correctly, but in startup
window it says:
Out of environment space
What that means? Not enough memory? Whot might be the cause?
Thanks,
Tom.



Re: Error 500: Response already committed

2000-11-24 Thread Tomas Marek


Partha Bhattacharjee wrote:
Hi gurus ,
I am using tomcat 3.1 and working in jsp . I am getting this nagging
error
"Response already committed". Could any one of you gurus out there
give me
some material on this.
thanks in anticipation
brgds
partha

Yeah, I searched this month's archive and found a clue. I got the
same problem. Try following (modified in accordance with your system, of
course) in your autoexec.bat (assuming u r running win):
@ECHO OFF
%winbootdir%\twh >%winbootdir%\twh.cfg
 rem c:\cdrom\mscdex.exe /d:cdrom-1 /l:e
PATH C:\WINDOWS;C:\WINDOWS\COMMAND;C:\tc;C:\tc\bin;C:\jdk1.3\bin;C:\Progra~1\JavaSoft\JRE\1.3\bin;
 rem C:\Progra~1 stands for C:\Program Files directory
set CLASSPATH=.;C:\jdk1.3\lib\tools.jar;
set TOMCAT_HOME=C:\Tomcat
set JAVA_HOME=jdk1.3
That's it!
 
 
 



RE: Protecting directory listing for tomcat

2000-11-24 Thread Luis Canals

Hi,

try this simple solution:
put an index.html file (or some of the files in 
in the conf/web.xml directory) in your webapps/MyContext directory. This
index.html will be loaded by default, instead of listing the directory
content.

Regards.

Luis Canals

-Original Message-
From: Zeltser, Mark [mailto:[EMAIL PROTECTED]]
Sent: viernes, 10 de noviembre de 2000 23:31
To: '[EMAIL PROTECTED]'
Subject: Protecting directory listing for tomcat


Hello,

Is this possible to protect directory listing under tomcat? I have
directories with jsp files under webapps/myContext which I would like to
protect from viewing.

Thanks, Mark.

This message and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed.
No confidentiality or privilege is waived or lost by any wrong transmission.
If you have received this message in error, please immediately destroy it
and kindly notify the sender by reply email.
You must not, directly or indirectly, use, disclose, distribute, print, or
copy any part of this message if you are not the intended recipient.
Opinions, conclusions and other information in this message that do not
relate to the official business of Newknow shall be understood as neither
given nor endorsed by it. 




Re: precompilations

2000-11-24 Thread Ramesh Kumar . T


Miles Daffin wrote:
Hi,
I have tried invoking jspc as suggested below (Windows). Have a look
at what
happens - basicly the arg file cannot be found even though it is DEFINITELY
valid.
--
E:\TOMCAT\3.2-b7>bin\jspc
E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\snoop.jsp
Including all jars in .\lib in your CLASSPATH.
Using CLASSPATH:
.\classes;.\lib\ant.jar;.\lib\jasper.jar;.\lib\jaxp.jar;.\lib\parser.jar;.\l
ib\servlet.jar;.\lib\webserver.jar;D:\Tools\Junit32\junit
.jar;C:\IBMDebug\lib\dertrjrt.jar;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\jav
a\runtime.zip;;D:\JDKs\Sun1.3\lib\tools.jar
2000-11-24 10:28:08 - The file argument
'E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\jsp\snp\snoop.jsp'
does not exist
E:\TOMCAT\3.2-b7>
--
Why?
There seems to be a problem in the  batch file check it out ,
see the path  in bold above
And what kind of output will I get when the file
is found?
 
you will get a servlet (java ) file
 
 
Miles
- Original Message -
From: "Ramesh Kumar . T" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 6:12 AM
Subject: Re: precompilations
> Carlos wrote:
>
> > if i execute the jspc.sh (./jspc.sh) the system says me:
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/jasper/JspC
> > how can i well?
>
> Go to the tomcat's home directory
> and execute
> ./bin/JspC.sh  
>
> Ex: ./bin.JspC.sh ./webapps/examples/jsp/snp/snoop.jsp
>
>
> >
> > thanks
> > - Original Message -
> > From: "Ramesh Kumar . T" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 23, 2000 2:34 PM
> > Subject: Re: precompilations
> >
> > > "Michael H. La Budde" wrote:
> > >
> > > > At 11/23/2000 09:29 AM +0100, you wrote:
> > > > >Is Possible the tomcat precompile the pages?
> > >
> > > Use the jspc.sh/bat file to precompile the jsp pages
> > > it comes by default with tomcat
> > > That will make things easier
> > >
> > > >
> > > > >there is any precompilation mode?
> > > > >there is anything to precompile?
> > > >
> > > > Here are two possibilities for precompiling all your jsp pages
so
that
> > > > users won't have to incur that overhead:
> > > >
> > > > 1) Take a look at conf/test-tomcat.xml in your tomcat distribution.
This
> > is
> > > > an ant build file which is used to exercize the test context.
You
should
> > be
> > > > able to easily clone this to execute your own...
> > > >
> > > > 2) Download Apache JMeter and put together the necessary test
scenarios
> > to
> > > > run your app (thus, once again, precompiling your pages).
> > > >
> > > > >what means  ?
> > > >
> > > > Just what it says. Your servlet will be loaded (and it's init()
method
> > > > called) upon tomcat startup. The higher the number the sooner
it
will be
> > > > loaded. I'm not sure what the valid range of numbers is, I
think
I've
> > seen
> > > > anything between -21467 and 36535
> > > >
> > > > >thanks
> > > > >Carlos
> > > >
> > > > Hope this helps,
> > > >
> > > > Mike
> > >
> > >
>



NoClassDefFoundError

2000-11-24 Thread Sameer

Hi,

Just installed Tomcat according to the instructions given in the
Development/Deployment guide give at http://jakarta.apache.org for Tomcat.

When I say ./build, I get an error
"NoClassDefFoundError org/apache/tools/ant"

I have not installed Ant (if that is something to be installed - I believe
it is pre-installed) and neither have I used CVS as www.sourcegear.com/cvs
is down. I hope it is not essential to use that.

What could be the problem? Thanks in advance.

Regards,
Sameer Kachroo


- Original Message -
From: "Miles Daffin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 3:48 PM
Subject: Re: News Group needed desperately


> Dear Craig,
>
> See below.
>
> > Miles Daffin wrote: (I did)
> >
> > > I have been on this list for a week or so now and I am flooded with
> mails
> > > everyday. When this happened on the Orion Interest list I had no
choice
> bu to
> > > unsubscribe. The sheer volume of mails (50% of which ask ill
considered
> > > questions) suggests the need for a news group, maybe two. The virtues
of
> doing
> > > it like this are numerous, e.g. threads can be viewed, followed etc.
It
> simply
> > > organises the mails better, allowing me to filterwithout cluttering up
> my
> > > system first. Who can set this up? Craig (I know you are a busy
fella)?
> Miles
> >
> > Yes, I am busy :-), but that is not why I'm not likely to act upon this
> request.
> >
> > None of the virtues you mention are compelling reasons to establish a
> > newsgroup.  After all, many mail readers (including Netscape
Communicator,
> which
> > I use) can do exactly what you ask for.  For example, I have a message
> filter
> > set up that copies all messages with a "To" or "Cc" of
> > [EMAIL PROTECTED] into a folder containing only those
> messages
> > (actually, I have one of these folders for each of the 30 or so mailing
> lists I
> > subscribe to, totalling over 600 messages a day).  Netscape, like most
> mail
> > readers, allows you to specify a threaded organization for such a
folder,
> which
> > is my default approach to dealing with mailing lists.  Now, I can
> concentrate on
> > a particular list when I want to -- *exactly* as if it were a newsgroup.
> >
> > What is more important, though, is a different principle -- having a
> newsgroup
> > instead of a mailing list would disenfranchise all of the TOMCAT-USER
> > subscribers who are behind firewalls that do not allow access to
> newsgroups.
> > Therefore, I do not consider this to be a viable solution to mail
> "floods" -- if
> > your mail reader doesn't support what you need to deal with mailing list
> > volumes, I would suggest that you get a new one.
>
> Your words are wise and true - I see the light and shall complain no more.
>
> > Craig McClanahan
>
> Miles Daffin
>




Re: Meet us on Wine Alley

2000-11-24 Thread Miles Daffin

Subject: Meet us on Wine Alley

This is the best one yet - and they don't seem to have ANY problems using
Tomcat at all! Perhaps they are Master Gurus and all really difficult
questions should be Cc'ed to this address??

Miles

--

Hello!

I found your address while surfing the Net for sites that have wine, good
food and gracious living and I thought that you will be interested by the
services that our site offers.

www.wine-alley.com is a virtual Club for all those interested in wine in
both a professional and personal capacity.

On the site you can talk to others about wine, buy and sell and have access
to the best professional sources.  Already we have more than 3700 members!
By the end of the year we confidently expect this to swell to 10,000.

Club members use the Newsgroup of www.wine-alley.com to exchange information
and experiences.  Only the other day someone asked how much a certain rare
wine was worth, I asked for more information about the grape variety, which
doesn't grow in France. Currently there have been more than 688 questions
and replies.

There is also the small ads. column.

Among the 15 adverts placed this week there have been some really good deals
including a magnum of 1945 Pichon Lalande and a 1947 Cheval blanc!

Let me make it clear - www.wine-alley.com itself does not sell or buy wine:
we simply offer our members the facilites for making their own arrangements.

www.wine-alley.com is also a site supplying information in real time,
particularly the latest news from winegrowers and makers via the French
Press Agency (AFP).  We also have a database of more than 21,000 wines with
information supplied directly to the site by winegrowers co-operatives and
specialist magazines.

I should be delighted if you would come and join us.  At www.wine-alley.com
you will find similarly-minded people who just want to share their love of
wine.

Kind regards

François Xavier Bodin, Manager of the Online Club
[EMAIL PROTECTED]



PS.  Registering with the www.wine-alley.com club is absolutely free and
commits you to nothing.

If you are not interested in my offer, please excuse this letter; I am sorry
to have bothered you.  To prevent further unwanted intrusions please click
on the following link, your email will be automatically removed from our
list.

http://www.wine-alley.com/wines/desmail.asp?id=232433&l=uk




Login Page

2000-11-24 Thread Sameer

Hi everybody,

Following is the code for a login.jsp page developed in JRun. What changes
would be required to have the same page running in Tomcat Server.
Please help.



<%@
import="javax.servlet.*,javax.servlet.http.*,java.util.Date,java.text.DateFo
rmat,java.io.*,java.net.*,java.sql.*,com.livesoftware.jrun.plugins.jsp.JSPSe
ssion" %>

<%
HttpSession session = request.getSession(true);
%>

<%
int content_length=0;
String url = "jdbc:odbc:Booking";
Statement stmt = null;
String EmpIdAll = "";

try
{
 Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
 Connection con = DriverManager.getConnection(url, "", "");
 stmt = con.createStatement();
}
catch(java.lang.Exception e)
{
 out.println ("e:" +e);
}
%>

<%
int validated = 0;
String temp[] = new String[5];

  if (!Request.ServerVariables("Content_Length").equals(""))
  {
   content_length =
Integer.parseInt(Request.ServerVariables("Content_Length"));
  }

if (content_length > 0)
{
 try
 {
  String EmpPasswdAll = null;
  String EmpRolesAll = null;
  int flag = 0;
  ResultSet rsEmp = stmt.executeQuery("select UserId, Password, Roles from
Employee");
  while(rsEmp.next())
  {
   EmpIdAll = rsEmp.getString("UserId");
   EmpPasswdAll = rsEmp.getString("Password");
   EmpRolesAll = rsEmp.getString("Roles");

if(EmpIdAll.equals(Request.Form("UserId")) &&
EmpPasswdAll.equals(Request.Form("Password")))
 {
   session.putValue("EmpId", ""+EmpIdAll);
   session.putValue("EmpRole", ""+EmpRolesAll);
   response.sendRedirect("contents.jsp");
 }
else
 {
  flag = 1;
 }
  }
  if(flag == 1)
  {
   EmpIdAll = Request.Form("UserId");
   out.println(" Incorrect login or password.
Please Login again. ");
  }

 }

 catch (SQLException ex)
 {
  out.println ("\n\n\n*** SQLException caught ***\n\n\n");
  out.println ("ex: " +ex);
 }
}
%>








 Login Screen




 Employee Id







 Password




















Thanks in anticipation,
Sameer





Re: News Group needed desperately

2000-11-24 Thread Miles Daffin

Dear Craig,

See below.

> Miles Daffin wrote: (I did)
>
> > I have been on this list for a week or so now and I am flooded with
mails
> > everyday. When this happened on the Orion Interest list I had no choice
bu to
> > unsubscribe. The sheer volume of mails (50% of which ask ill considered
> > questions) suggests the need for a news group, maybe two. The virtues of
doing
> > it like this are numerous, e.g. threads can be viewed, followed etc. It
simply
> > organises the mails better, allowing me to filterwithout cluttering up
my
> > system first. Who can set this up? Craig (I know you are a busy fella)?
Miles
>
> Yes, I am busy :-), but that is not why I'm not likely to act upon this
request.
>
> None of the virtues you mention are compelling reasons to establish a
> newsgroup.  After all, many mail readers (including Netscape Communicator,
which
> I use) can do exactly what you ask for.  For example, I have a message
filter
> set up that copies all messages with a "To" or "Cc" of
> [EMAIL PROTECTED] into a folder containing only those
messages
> (actually, I have one of these folders for each of the 30 or so mailing
lists I
> subscribe to, totalling over 600 messages a day).  Netscape, like most
mail
> readers, allows you to specify a threaded organization for such a folder,
which
> is my default approach to dealing with mailing lists.  Now, I can
concentrate on
> a particular list when I want to -- *exactly* as if it were a newsgroup.
>
> What is more important, though, is a different principle -- having a
newsgroup
> instead of a mailing list would disenfranchise all of the TOMCAT-USER
> subscribers who are behind firewalls that do not allow access to
newsgroups.
> Therefore, I do not consider this to be a viable solution to mail
"floods" -- if
> your mail reader doesn't support what you need to deal with mailing list
> volumes, I would suggest that you get a new one.

Your words are wise and true - I see the light and shall complain no more.

> Craig McClanahan

Miles Daffin




Re: how configure the classes place?

2000-11-24 Thread Carlos

now i begin with tomcat.
i would like to have the general classes, for all user in a place, and if my
team make new classesw only for a user, these classes have in a user's
directory
is this posible? is this advisable ?
what do you thins about this? is a good form to make the this?
how do you mek it?, i am interesing i to have in a p`lace the global classes
and in other the user classes.
I hope your answer.
Thanks
Carlos
- Original Message -
From: "Miles Daffin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 11:05 AM
Subject: Re: how configure the classes place?


> Hi,
>
> > the classes i put in the ROOT/WEB-INF/classes
> > is possible , for a user, put the classes in ROOT/WEB-INF/classes/user?
>
> Yes but why? Read the docs - \doc\appdev\index.html
>
> > Carlos
>
> Miles
>
>




Re: how configure the classes place?

2000-11-24 Thread Miles Daffin

Hi,

> the classes i put in the ROOT/WEB-INF/classes
> is possible , for a user, put the classes in ROOT/WEB-INF/classes/user?

Yes but why? Read the docs - \doc\appdev\index.html

> Carlos

Miles




Re: Setting up Basic HTTP Security in tomcat jakarta

2000-11-24 Thread Miles Daffin

>
> I would like to set up HTTP security using Tomcat.
>
Read the readme.txt file in the /docs directory - 6.2 Container Managed
Security

Miles




virtual domains

2000-11-24 Thread Carlos

If i define a virtual domain with tomcat and apache, in the tomcat
server.xml file , i must define anything for this virtual domain? o in this
virtual domain i must put a web.xml file and its server.xml file?
thanks
Carlos




directory declaration

2000-11-24 Thread Carlos

i have a directory under ROOT (/opt/jakarta/webapps/ROOT/directory) , in
this directori i have a WEB-INF direcory with a web.xml file.
If i have this web.xml file, in the TOMCAT's server.xml file i must define
this directory (/opt/jakarta/webapps/ROOT/directory)  ()?
Thanks
Carlos




Re: precompilations

2000-11-24 Thread Miles Daffin

Hi,

I have tried invoking jspc as suggested below (Windows). Have a look at what
happens - basicly the arg file cannot be found even though it is DEFINITELY
valid.
--
E:\TOMCAT\3.2-b7>bin\jspc
E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\snoop.jsp
Including all jars in .\lib in your CLASSPATH.

Using CLASSPATH:
.\classes;.\lib\ant.jar;.\lib\jasper.jar;.\lib\jaxp.jar;.\lib\parser.jar;.\l
ib\servlet.jar;.\lib\webserver.jar;D:\Tools\Junit32\junit
.jar;C:\IBMDebug\lib\dertrjrt.jar;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\jav
a\runtime.zip;;D:\JDKs\Sun1.3\lib\tools.jar

2000-11-24 10:28:08 - The file argument
'E:\TOMCAT\3.2-b7\webapps\examples\jsp\snp\jsp\snp\snoop.jsp' does not exist
E:\TOMCAT\3.2-b7>
--

Why? And what kind of output will I get when the file is found?

Miles



- Original Message -
From: "Ramesh Kumar . T" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, November 24, 2000 6:12 AM
Subject: Re: precompilations


> Carlos wrote:
>
> > if i execute the jspc.sh (./jspc.sh) the system says me:
> > Exception in thread "main" java.lang.NoClassDefFoundError:
> > org/apache/jasper/JspC
> > how can i well?
>
> Go to the tomcat's home directory
> and execute
> ./bin/JspC.sh  
>
> Ex: ./bin.JspC.sh ./webapps/examples/jsp/snp/snoop.jsp
>
>
> >
> > thanks
> > - Original Message -
> > From: "Ramesh Kumar . T" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Thursday, November 23, 2000 2:34 PM
> > Subject: Re: precompilations
> >
> > > "Michael H. La Budde" wrote:
> > >
> > > > At 11/23/2000 09:29 AM +0100, you wrote:
> > > > >Is Possible the tomcat precompile the pages?
> > >
> > > Use the jspc.sh/bat file to precompile the jsp pages
> > > it comes by default with tomcat
> > > That will make things easier
> > >
> > > >
> > > > >there is any precompilation mode?
> > > > >there is anything to precompile?
> > > >
> > > > Here are two possibilities for precompiling all your jsp pages so
that
> > > > users won't have to incur that overhead:
> > > >
> > > > 1) Take a look at conf/test-tomcat.xml in your tomcat distribution.
This
> > is
> > > > an ant build file which is used to exercize the test context. You
should
> > be
> > > > able to easily clone this to execute your own...
> > > >
> > > > 2) Download Apache JMeter and put together the necessary test
scenarios
> > to
> > > > run your app (thus, once again, precompiling your pages).
> > > >
> > > > >what means  ?
> > > >
> > > > Just what it says. Your servlet will be loaded (and it's init()
method
> > > > called) upon tomcat startup. The higher the number the sooner it
will be
> > > > loaded. I'm not sure what the valid range of numbers is, I think
I've
> > seen
> > > > anything between -21467 and 36535
> > > >
> > > > >thanks
> > > > >Carlos
> > > >
> > > > Hope this helps,
> > > >
> > > > Mike
> > >
> > >
>




Re: Need database recommendation

2000-11-24 Thread Simon Lam

In fact, I also plan to change my database to PostgreSQL at the end of the project. 
I'm using Oracle because I'm not quite familiar with PostgreSQL and the database 
design of our project is in a hurry. So my question is if PostgreSQL is compatable 
with Oracle. How many changes do I need to do to use Oracle SQL statements such as 
creating table, stored procedure and trigger in PostgreSQL?

Sorry. It seems to be something off topic. :-) But I really wanna know the answer.

"Alistair Hopkins" <[EMAIL PROTECTED]> wrote:

> I'ld just like to advocate postgresql.  It's more fully featured than MySQL,
> just as cheap, does better in tests.  And you won't need to employ Oracle
> database administrators for an arm and a leg an hour, like you do with
> Oracle.
> 
> -Original Message-
> From: Simon Lam [mailto:[EMAIL PROTECTED]]
> Sent: Friday, November 24, 2000 9:00 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Need database recommendation
> 
> 
> Oracle for Linux is free to download. Is it also free for commercial usage?
> Thanks.
> 
> [EMAIL PROTECTED] (Saurabh Shukla) wrote:
> 
> >
> > Orcale.
> > -Original Message-
> > From: c cw288 [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, November 23, 2000 1:30 AM
> > To: [EMAIL PROTECTED]
> > Subject: Need database recommendation
> >
> >
> > Hi all,
> > We are going to develop an application on apache + tomcat + mod_jk on
> > Solaris 8, and we need a database for our application. There are lots of
> > databases exit, we need some recommendation of which  is easier to
> > implement.
> >
> > Thanks,
> >
> > Cathy
> >
> 
> > _
> > Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.com




threads

2000-11-24 Thread Carlos


how can i limit the threads of tomcat to a max number?
thanks
Carlos