Re: documentation for jk_nt_service.exe

2000-12-08 Thread Kazuhiro Sakai
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/NT-Service-howto.html

It's a bit difficult to find the documentation for Tomcat on apache.org...

At 22:52 00/12/08 -0800, you wrote:
>Hi -- where in the apache.org site is the documentation for how to use 
>jk_nt_service.exe?
>
>Thanks
>


$BM-8B2q

documentation for jk_nt_service.exe

2000-12-08 Thread Betty Chang



Hi -- where in the apache.org site is the documentation for 
how to use jk_nt_service.exe?
 
Thanks
 


RE: Tomcat/mod_jk 3.2 fails on socket connection

2000-12-08 Thread Harring Figueiredo


  My bad again... Problem solved.

  I was so into changing  from jServ to the new mod_jk that I did not realize I
was not running tomcat !!!
  Hey, what can you expect from a newbie ?!

Thanks to all that read and answered

  HArring
--- Harring Figueiredo <[EMAIL PROTECTED]> wrote:
> 
>Actually, that does not have the ".com"
> 
>My bad.
> 
>Thanks
>Harring
> 
> --- Graeme Wallace <[EMAIL PROTECTED]> wrote:
> > I think the key is the part of the error that says
> > 
> > Apache/1.3.12 Server at localhost.com Port 80
> > 
> > localhost.com 
> > 
> > -Original Message-
> > From: Harring Figueiredo [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, December 08, 2000 11:22 PM
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat/mod_jk 3.2 fails on socket connection
> > 
> > 
> > 
> >Thanks in advance for the help.
> > 
> > 
> > Plataform: Win NT
> > Jakarta/tomcat ver: 3.2
> > Apache ver: 1.3.12
> > 
> >When trying to  run the examples (http://localhost/examples/jsp/)
> > I get the following errors:
> > 
> > On the Browser:
> > 
> > Internal Server Error
> > The server encountered an internal error or misconfiguration and was unable
> > to
> > complete your request.
> > Apache/1.3.12 Server at localhost.com Port 80
> > 
> >   On the mod_jk.log:
> > 
> >  [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> > [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found
> a
> > match ajp12
> > [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> > [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> > [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> > [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> > [jk_connect.c (108)]: Into jk_open_socket
> > [jk_connect.c (115)]: jk_open_socket, try to connect socket = 660
> > [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> > [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> > [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
> > [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> > [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
> > 
> >   I have not other erros onthe other logs.
> > 
> > 
> >Again, thanks in advance,
> > 
> > Harring
> > 
> > =
> > "We should do smart things with stupid technology before we do stupid
> > things with smart technology."
> >   --Bill Buxton, Alias Research
> > 
> > 
> > Harring Figueiredo
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Shopping - Thousands of Stores. Millions of Products.
> > http://shopping.yahoo.com/
> > 
> 
> 
> =
> "We should do smart things with stupid technology before we do stupid 
> things with smart technology."
>   --Bill Buxton, Alias Research
> 
> 
> Harring Figueiredo
> 
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/


=
"We should do smart things with stupid technology before we do stupid 
things with smart technology."
  --Bill Buxton, Alias Research


Harring Figueiredo

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



Re: mod_jserv versus mod_jk

2000-12-08 Thread Andy

Oh boy.  I remember that problem.  HP by default packages a useless
C compiler.  You'd be best off getting to www.gnu.org and downloading
a gnu c compiler for your version of HPUX.  Why go to the trouble?
Well you're going to need it pretty often.  Its definately the easier than
getting the right prebuilt binary that works with your particular patch
level.

Mod_jk is supposed to be faster, however if your using ApJservAction or
any directive that you don't see autogenerated in the mod_jk.conf-auto
(only probably ApJksomething instead) then don't do it!  (Until you're ready
to spelunk your application to get it to work.

-andy

"Dan R. Labonte" wrote:

> hi all,
>
> I'm wondering if any one has good reason to load mod_jk instead of
> mod_jserv. And if so would anyone out there have install specific
> instructions for HP-UX. I'm in dire need here and being a newbie doesn't
> seem to help out any. I've searched the archives to no avail, and I'm still
> waiting for a reply from my last post. Can someone help out a fellow geek.
>
> My first post... Running Apache 1.3.14 with Tomcat 3.2 and trying to compile
> with gcc like docs said and receive the following error message...I can read
> the error about needing ANSI C but I'm using what the docs suggest...
>
> in the process of making it on apache and during the build of Jserv I
> receive the following error
>
> # /opt/apache/bin/apxs -c *.c -o mod_jserv.so
> cc -Ae +z -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O
> -DSHARED_MODULE -I/opt/apache/include  -c *.c
> (Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
> product; ignored.
> (Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
> product; ignored.
> (Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
> product; ignored.
> (Bundled) cc: warning 485: Can't open "*.c".
> apxs:Break: Command failed with rc=1
>
> Any ideas or way I could find a pre-built version of mod_jserv.so...
>
> Always willing to go the extra step for my fellow geek
> Dan


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com




Tomcat-IIS Howto doc feedback

2000-12-08 Thread Corey Cole

I've got some feedback on the Tomcat-IIS howto docs.

I just installed the Tomcat 3.2 release build on an Alpha-NT machine, and I
had
some initial difficulties.  Perhaps my eyes glazed over, but I missed the
instruction
"...you should now start Tomcat..." in the "Configuring the ISAPI
redirector" section.
It might be helpful to add confirmation of that step to the troubleshooting
section
under WinNT Section 5.A.2.  I would propose an addition item d:
"Make sure the Tomcat service has been started via
\bin\startup.bat"

Keep up the great work.  I look forward to putting Tomcat through it's paces
on
my AlphaNT box.

Sincerely,

Corey Cole



RE: Tomcat/mod_jk 3.2 fails on socket connection

2000-12-08 Thread Harring Figueiredo


   Actually, that does not have the ".com"

   My bad.

   Thanks
   Harring

--- Graeme Wallace <[EMAIL PROTECTED]> wrote:
> I think the key is the part of the error that says
> 
> Apache/1.3.12 Server at localhost.com Port 80
> 
> localhost.com 
> 
> -Original Message-
> From: Harring Figueiredo [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 08, 2000 11:22 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat/mod_jk 3.2 fails on socket connection
> 
> 
> 
>Thanks in advance for the help.
> 
> 
> Plataform: Win NT
> Jakarta/tomcat ver: 3.2
> Apache ver: 1.3.12
> 
>When trying to  run the examples (http://localhost/examples/jsp/)
> I get the following errors:
> 
> On the Browser:
> 
> Internal Server Error
> The server encountered an internal error or misconfiguration and was unable
> to
> complete your request.
> Apache/1.3.12 Server at localhost.com Port 80
> 
>   On the mod_jk.log:
> 
>  [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
> match ajp12
> [jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
> [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
> [jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
> [jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
> [jk_connect.c (108)]: Into jk_open_socket
> [jk_connect.c (115)]: jk_open_socket, try to connect socket = 660
> [jk_connect.c (124)]: jk_open_socket, after connect ret = -1
> [jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
> [jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
> [jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
> [jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done
> 
>   I have not other erros onthe other logs.
> 
> 
>Again, thanks in advance,
> 
> Harring
> 
> =
> "We should do smart things with stupid technology before we do stupid
> things with smart technology."
>   --Bill Buxton, Alias Research
> 
> 
> Harring Figueiredo
> 
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/
> 


=
"We should do smart things with stupid technology before we do stupid 
things with smart technology."
  --Bill Buxton, Alias Research


Harring Figueiredo

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



Tomcat/mod_jk 3.2 fails on socket connection

2000-12-08 Thread Harring Figueiredo


   Thanks in advance for the help.

   
Plataform: Win NT
Jakarta/tomcat ver: 3.2
Apache ver: 1.3.12

   When trying to  run the examples (http://localhost/examples/jsp/)
I get the following errors:

On the Browser:
   
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to
complete your request.
Apache/1.3.12 Server at localhost.com Port 80

  On the mod_jk.log:

 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 660
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

  I have not other erros onthe other logs.


   Again, thanks in advance,

Harring

=
"We should do smart things with stupid technology before we do stupid 
things with smart technology."
  --Bill Buxton, Alias Research


Harring Figueiredo

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



RE: Tomcat/mod_jk 3.2 fails on socket connection

2000-12-08 Thread Graeme Wallace

I think the key is the part of the error that says

Apache/1.3.12 Server at localhost.com Port 80

localhost.com 

-Original Message-
From: Harring Figueiredo [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:22 PM
To: [EMAIL PROTECTED]
Subject: Tomcat/mod_jk 3.2 fails on socket connection



   Thanks in advance for the help.


Plataform: Win NT
Jakarta/tomcat ver: 3.2
Apache ver: 1.3.12

   When trying to  run the examples (http://localhost/examples/jsp/)
I get the following errors:

On the Browser:

Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to
complete your request.
Apache/1.3.12 Server at localhost.com Port 80

  On the mod_jk.log:

 [jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
[jk_ajp12_worker.c (223)]: Into jk_worker_t::get_endpoint
[jk_ajp12_worker.c (121)]: Into jk_endpoint_t::service
[jk_connect.c (108)]: Into jk_open_socket
[jk_connect.c (115)]: jk_open_socket, try to connect socket = 660
[jk_connect.c (124)]: jk_open_socket, after connect ret = -1
[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 61
[jk_ajp12_worker.c (134)]: In jk_endpoint_t::service, sd = -1
[jk_ajp12_worker.c (152)]: In jk_endpoint_t::service, Error sd = -1
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

  I have not other erros onthe other logs.


   Again, thanks in advance,

Harring

=
"We should do smart things with stupid technology before we do stupid
things with smart technology."
  --Bill Buxton, Alias Research


Harring Figueiredo

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




Stronghold and Tomcat 3.2

2000-12-08 Thread Sanford Langbart

I'm trying to configure Stronghold (commercial SSL version of Apache) to work
with Tomcat 3.2 and give it SSL  protection. I"ve got it working the Mod_Jserv.,
but would like to use the new "mod_jk". -- which the notes and HOW-TOs describe
as more capable than Mod_Jserv.
My system looks like this :
I have regular Apache running on port 80 at /usr/local/apache
Stronghold running on port 443 at /usr/local/sh3
and Tomcat 3.2 running on port 8080 at /usr/local/tomcat.

I 've managed to compile mod_jk sucessfully and the individual pieces seem ok,
but using HTTPS links on the tomcat stuff does not execute the java pages (as it
does with Mod_JSERV).

Can anyone give me the correct configuration to get this to work?


Thanks for your time,

Sanford Langbart
Broward  Community College





Re: ApJServAction replacement in Tomcat?

2000-12-08 Thread Andy

Sorry,  ApJservAction appears to be some sort of framework for
handlers for different extensioned files.  Sorta what the JSP runner
is for jsp's.  They created their own tag library..  I want to move away
from it and go to standard stuff.  Especially since they still have just
about as many servlets as they have their-answer-to-jsp-files.

I believe mod_jserv is suppose to continue to be supported with 3.2.
I'm thinking I might have to stick with it for the moment...though
lamentfully.  I wish there were a better set of documentation clearly
explaining the transition from mod_jserv and tomcat 3.1 (the nuances
that change each time).  I searched like mad for this ApJservAction stuff.

-andy

James Devenish wrote:

> On Fri, Dec 08, 2000 at 02:08:02PM -0800, Andrew Oliver wrote:
> > I'm working with some 3rd party code that uses
> > ApJServAction (the servlets run in Jserv), I'm
> > attempting to convert over to Tomcat and Ajp13.
> > However, I'm not sure how to set this up or even
> > IF it can be setup.  Is there a way to do something
> > similar with the new connector/tomcat?
> >
> > Secondly, if not, is there a way to use both tomcat
> > and jserv concurrently (point new code to one and old
> > code to the other and replace them as we rewrite it)?
>
> This can be the stuff nightmares are made of! You may find that Tomcat
> 3.2 is very strict about how these things are done, due to the
> simplistic and strict nature of the Java Servlet Specification (which
> has become a bit narrow minded).
>
> Firstly, I have not used ApJServActions so I don't *know* the answer.
> I will assume that ApJServActions map Apache URLs to servlets?
> In that case, you need to modify (or create) a web.xml in your web
> application's context directory and add:
>
> 
> 
> invoker
> 
> 
> /path/*
> 
> 
>
> where /path/* is the URL (not corresponding to an existing filesystem
> directory) which will achieve this:
>
> http://tomcat.host:8080/web_app/path/ServletName
>
> will execute ../tomcat/webapps/web_app/WEB-INF/classes/ServletName.class
>
> The /path/* can be a wildcard match like that, or a *.extension wildcard
> match or a literal match. I don't think it is possible to use other
> wildcard styles like /path/*.extension.
>
> I don't think you can have mod_jserv and mod_jk running concurrently in
> Apache.  However, mod_jserv will work with Tomcat 3.1 (though I'm not
> sure about Tomcat 3.2).
>
> Another thing you could try is using mod_proxy
> (http://httpd.apache.org/docs/mod/mod_proxy.html) to proxy requests from
>
> http://web.host/blah/ServletName
>
> through to
>
> http://web.host:8090/web_app/path/ServletName
>
> where :80 is your Apache with mod_jk and :8090 is a separate server
> config using mod_jserv. Or alternatively Proxy
>
> http://web.host/blah/ServletName
>
> through to
>
> http://web.host:8080/web_app/path/ServletName
>
> (ie. direct to Tomcat)
>
> Hope that helps (but as I say, i don't know what ApJServAction does, so
> I might be off track :)


__
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com



Re: Java Pet Store Demo in Tomcat/WebLogic

2000-12-08 Thread Madhu Narasa

Robert,

That should be possible, actually apart from the
"Connection reset messages" (the message posted
earlier) using Tomcat was relatively straightforward.
You can look at the following document that gives the
steps to port the example to jboss + Tomcat.

http://www.jboss.org/manual/examples.html#petstore

Regards,
Madhu


--- Robert Danek <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm trying to take the Java Pet Store demo that is
> available on the
> java.sun.com site and have the JSPs/beans run in
> Tomcat and the EJBs run
> as a back end on WebLogic. I have run into a number
> of technical
> problems already (problems with the  tags
> that are used in
> web.xml, the JNDI names of the EJBs which get mapped
> to other names by
> the weblogic specific deployment descriptors, etc),
> and I've just hit
> another stumbling block, which has led me to prompt
> the question: Is it
> futile to try getting the the Pet Store demo in this
> setup? The Pet
> Store site
>
(http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/)
> doesn't discuss deploying the app in such a manner.
> Has anyone here
> tried doing this before? Are there any
> hints/tips/helpful URLs that you
> can provide?
> 
> Regards,
> Robert Danek
> 


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



dtd

2000-12-08 Thread Roberto Leong

is there an available dtd for server.dtd?

i´m planning to use embedded catalina, but i want it to read server.xml any
approaches? before digging the xmlmapper stuff can someone give me a crash
course on it?

regards
Roberto




tomcat as NT service with Java in Program Files directory

2000-12-08 Thread Willy Lin

Hi:

I installed tomcat 3.2 and tried to run it as NT service.  For the
longest time, I could not get the service to start.  After much play around,
I found the problem is related to where I put my Java installation.  My Java
installation is located at "C:\Program Files\java\jdk1.3".  I don't know if
the space is tripping up the system or not.  When I copied my Java
installation to "C:\Java", everything worked fine.

This may be something that should go into a FAQ or into the
NT-Service-howto.html page.



Willy Lin
Senior "Spider"
APEX Learning.COM





Page refresh makes session ID reset

2000-12-08 Thread Pierre Métras

Hi,

I have a servlet that prints a page that refreshes itself. When I set my
browser not to accept cookies, in order to manage session with URL
rewriting, I have two different behaviors depending on the refresh method
used.

If I use javascript to refresh the page, the page refresh itself without
problem.

If I use a header, with the following code:
  buf.append("");
then when the page refreshes itself, the tomcat proposes a new session ID.

Can someone explain this "feature"?
I'm still using tomcat 3.2B8.

Pierre Métras




RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Tomcat + Jboss - porting Pet Store





this happens even if u just refresh... after completion of the request


-Original Message-
From:   Madhu Narasa [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, December 08, 2000 3:32 PM
To: [EMAIL PROTECTED]
Subject:    RE: Tomcat + Jboss - porting Pet Store


From what I gather, the comment -
// TCP stacks can throw SocketExceptions when the 
// client disconnectsso can be ignored.


Addresses the case wherein the browser is closing the
socket (eg. clicking on stop before completion of the
request). 


I am ok with the server throwing an exception in the
above case but throwing an exception for every request
seems like a problem to me.


Regards,
Madhu



--- "Parayali, Jayesh 1065"
<[EMAIL PROTECTED]> wrote:
> I checked the code... it says ignore this message.
> Check out PoolTcpEndPoint.java
 




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





RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Madhu Narasa

>From what I gather, the comment -
// TCP stacks can throw SocketExceptions when the 
// client disconnectsso can be ignored.

Addresses the case wherein the browser is closing the
socket (eg. clicking on stop before completion of the
request). 

I am ok with the server throwing an exception in the
above case but throwing an exception for every request
seems like a problem to me.

Regards,
Madhu


--- "Parayali, Jayesh 1065"
<[EMAIL PROTECTED]> wrote:
> I checked the code... it says ignore this message.
> Check out PoolTcpEndPoint.java
 



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



RE: Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Tomcat + Jboss - porting Pet Store





I checked the code... it says ignore this message.
Check out PoolTcpEndPoint.java


-Original Message-
From:   Madhu Narasa [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, December 08, 2000 2:20 PM
To: [EMAIL PROTECTED]
Subject:    Tomcat + Jboss - porting Pet Store


I am running Tomcat 3.2 with Jboss and trying to port
the PetStore example (J2EE Sun RI, example).


I am almost done except that I see a lot of
"Connection reset errors" after every page request.
After searching through the archives, I see others
have had the same problems in different contexts but
there seems to be no solution to the problem.


The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html


Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();


in the method endHeaders() of HttpResponseAdapter.java


The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error


but the stack trace reported below continued.


Any help is appreciated.


Thanks,
Madhu



 Complete Stack --
[Tomcat] java.net.SocketException: Connection reset by
peer: socket write error
[Tomcat]    at
java.net.SocketOutputStream.socketWrite(Native Method)
[Tomcat]    at
java.net.SocketOutputStream.write(SocketOutputStream.java:83)
[Tomcat]    at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:164)
[Tomcat]    at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
[Tomcat]    at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:246)
[Tomcat]    at
org.apache.tomcat.core.ResponseImpl.flushBuffer(ResponseImpl.java:417)
[Tomcat]    at
org.apache.tomcat.facade.HttpServletResponseFacade.flushBuffer(HttpServletResponseFacade.java:295)
[Tomcat]    at
org.apache.jasper.runtime.JspWriterImpl.flus(JspWriterImpl.java:209)
[Tomcat]    at
_0002fbanner_0002ejspbanner_jsp_3._jspService(_0002fbanner_0002ejspbanner_jsp_3.java:306)
[Tomcat]    at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[Tomcat]    at
javax.servlet.http.HttpServlet.servic(HttpServlet.java:853)
[Tomcat]    at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
[Tomcat]    at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[Tomcat]    at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
391)
[Tomcat]    at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Tomcat]    at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[Tomcat]    at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[Tomcat]    at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[Tomcat]    at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
[Tomcat]    at com.sun.estore.taglib.InsertTag.doEndTag(InsertTag.java:67)


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





Re: ENC: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread faustas . zilinskas


On Fri, 8 Dec 2000, Jose Euclides da Silva Junior - DIGR.O wrote:
>
> Hi, everybody! Unfortunately, it seems that there is an important
limitation
> when  using Jason's components. The developer cant mix text fields and
file
> setting fields in the form!

In the version I have you can mix them to your heart's content. I got the
latest version from the link on the www.ora.com site. Go here:

http://www.servlets.com/resources/com.oreilly.servlet/index.html

And you can mix them. What it does not do in this form is to hanlde
non-multipart/form-data requests. This can be done easily with a test at
the beginning. I am working on some additions to this code that throw a
special exception when it is not multipart, etc. This let's me use it more
generically. Anyone interested in this let me know and I can send you what
I have. It is a work in progress, and is not a clean as I want it to be
finally. But it works and will meet my deadline. (IDeally, I would
encapsulate the check to see if it is multipart or not and call the
ordinary getParamter routines if it is not multipart and the multi-part
ones if it is multipart.

Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-
With no walls or fences on the Internet, who needs Windows or Gates?
-






Problem with user authentication w/ Tomcat v4.0 m4

2000-12-08 Thread Bryan Basham

Hello,

[I attempted to look this topic up on the alias archive, but
 after reading a few unrelated posts (search on "authentication"
 AND "document contains no data") and then various server not
 available attempts I gave up and decided to write to the group.]

I am trying to test user authentication with Tomcat v4.0 m4.
I have a *very* simple configuration:

 * an index page that links to a view-common page and a view-restricted page
 
 * the web.xml security constraint on the view-restricted page are set up as:




RestrictedResources
/view-restricted.html
GET


admin




BASIC



A simple restricted-access user role.
admin


 * the server.xml configuration file is using the MemoryRealm
 
 * the tomcat-users.xml config. file has three users:

  
  
  


So, I would expect that when I attempt to access the view-restricted.html
page that I get BASIC HTTP user auth. dialog box in my browser (Netscape
v4.75) and I do.  That's not the weird thing.  Everything works as expected
when I enter a user that has 'admin' role (e.g. 'user1'), *but* I am getting
the following Netscape error when I enter any other user (e.g. 'tomcat'):

   The document contains no data.
   Try again later, or contact the server's administrator.

This is not what I was expecting.  Is this the correct behavior?  This is
a problem because it (the browser) will not allow me to attempt to link
to that page again and re-authenticate.  Note: if I miss type a given
user's password, then the browser correctly asks me to retry; it is only
when I give the correct password for a registered user but not in the
corrrect role for the restricted page that I get the above problem.

BTW, I have attached a WAR file distribution of this WebApp.

Thanks,
Bryan


+---+--+
| Bryan Basham  | "You are not an isolated entity, but
| Java Courseware Developer |  a unique, irreplaceable part of the
| Sun Educational Services  |  cosmos.  Don't forget this.  You are
|   Phone: 1-303-272-8766  (x78766) |  an essential piece of the puzzle of
|  E-mail: [EMAIL PROTECTED] |  humanity."
| Address: 500 Eldorado Blvd|
|  MailStop: UBRM05-135 |  -- The Art of Living, Epictetus
|  Broomfield, CO 80021 | (trans. Sharon Lebell)
+---+--+

 TestAuth1.war


Re: Java Pet Store Demo in Tomcat/WebLogic

2000-12-08 Thread Madhu Narasa

Robert,

That should be possible, actually apart from the
"Connection reset messages" (the message posted
earlier) using Tomcat was relatively straightforward.
You can look at the following document that gives the
steps to port the example to jboss + Tomcat.

http://www.jboss.org/manual/examples.html#petstore

Regards,
Madhu


--- Robert Danek <[EMAIL PROTECTED]> wrote:
> Hello,
> 
> I'm trying to take the Java Pet Store demo that is
> available on the
> java.sun.com site and have the JSPs/beans run in
> Tomcat and the EJBs run
> as a back end on WebLogic. I have run into a number
> of technical
> problems already (problems with the  tags
> that are used in
> web.xml, the JNDI names of the EJBs which get mapped
> to other names by
> the weblogic specific deployment descriptors, etc),
> and I've just hit
> another stumbling block, which has led me to prompt
> the question: Is it
> futile to try getting the the Pet Store demo in this
> setup? The Pet
> Store site
>
(http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/)
> doesn't discuss deploying the app in such a manner.
> Has anyone here
> tried doing this before? Are there any
> hints/tips/helpful URLs that you
> can provide?
> 
> Regards,
> Robert Danek
> 


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



apache - tomcat configuration- urgent

2000-12-08 Thread Kotturi, Rajendra

Hi,
  I have an application which consists of pure Java Servlets (not the
jsp) . I would like the request for these .class servlets to be sent tomcat
server by the apache. How should I configure my Tomcat & apache for doin
this. And where should I locate these class files. And what will be my URL
to access these servlets.

Thanks 
Rajendra




bind error

2000-12-08 Thread John de la Garza

Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?




RE: Diffs between 3.1 and 3.2

2000-12-08 Thread Marc Saegesser

Ahhh, that explains it.  I've been meaning to look into why my first request
takes so damned long.

I just added the following line of code to the init() method of one of load
on startup servlets and now my first requests goes through just fine.

new java.security.SecureRandom().nextLong();

Now, I realize this is something of a hack.  Would it make sense to add
something to the session id generation code to initialize the rander number
generator when a Web Apps loads.  If other developers think this is a
reasonable idea I'll post a patch.

-Original Message-

One change that affects the first request to an app (more precisely, the
first
request that creates a session) is the way session ids are calculated.
Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it
is
called.

Craig McClanahan




Java Pet Store Demo in Tomcat/WebLogic

2000-12-08 Thread Robert Danek

Hello,

I'm trying to take the Java Pet Store demo that is available on the
java.sun.com site and have the JSPs/beans run in Tomcat and the EJBs run
as a back end on WebLogic. I have run into a number of technical
problems already (problems with the  tags that are used in
web.xml, the JNDI names of the EJBs which get mapped to other names by
the weblogic specific deployment descriptors, etc), and I've just hit
another stumbling block, which has led me to prompt the question: Is it
futile to try getting the the Pet Store demo in this setup? The Pet
Store site
(http://developer.java.sun.com/developer/technicalArticles/J2EE/deployathon2/)
doesn't discuss deploying the app in such a manner. Has anyone here
tried doing this before? Are there any hints/tips/helpful URLs that you
can provide?

Regards,
Robert Danek




Tomcat + Jboss - porting Pet Store

2000-12-08 Thread Madhu Narasa

I am running Tomcat 3.2 with Jboss and trying to port
the PetStore example (J2EE Sun RI, example).

I am almost done except that I see a lot of
"Connection reset errors" after every page request.
After searching through the archives, I see others
have had the same problems in different contexts but
there seems to be no solution to the problem.

The dev lists suggest the following (that is being
considered for 3.3 dev)
http://w4.metronet.com/~wjm/tomcat/2000/Jul/msg00910.html

Commenting out the following lines -
sout.write( buffer, 0, bufferCount );
sout.flush();

in the method endHeaders() of HttpResponseAdapter.java

The above fix did eliminate errors of the type -
2000-12-08 11:39:27 - Ctx( /estore ): IOException in:
R( /estore + /template.js + null) Connection reset by
peer: socket write error

but the stack trace reported below continued.

Any help is appreciated.

Thanks,
Madhu


 Complete Stack --
[Tomcat] java.net.SocketException: Connection reset by
peer: socket write error
[Tomcat]at
java.net.SocketOutputStream.socketWrite(Native Method)
[Tomcat]at
java.net.SocketOutputStream.write(SocketOutputStream.java:83)
[Tomcat]at
org.apache.tomcat.service.http.HttpResponseAdapter.doWrite(HttpResponseAdapter.java:164)
[Tomcat]at
org.apache.tomcat.core.BufferedServletOutputStream.doWrite(BufferedServletOutputStream.java:121)
[Tomcat]at
org.apache.tomcat.core.BufferedServletOutputStream.reallyFlush(BufferedServletOutputStream.java:246)
[Tomcat]at
org.apache.tomcat.core.ResponseImpl.flushBuffer(ResponseImpl.java:417)
[Tomcat]at
org.apache.tomcat.facade.HttpServletResponseFacade.flushBuffer(HttpServletResponseFacade.java:295)
[Tomcat]at
org.apache.jasper.runtime.JspWriterImpl.flus(JspWriterImpl.java:209)
[Tomcat]at
_0002fbanner_0002ejspbanner_jsp_3._jspService(_0002fbanner_0002ejspbanner_jsp_3.java:306)
[Tomcat]at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
[Tomcat]at
javax.servlet.http.HttpServlet.servic(HttpServlet.java:853)
[Tomcat]at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:177)
[Tomcat]at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
[Tomcat]at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:
391)
[Tomcat]at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
[Tomcat]at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
[Tomcat]at
org.apache.tomcat.core.Handler.service(Handler.java:286)
[Tomcat]at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
[Tomcat]at
org.apache.tomcat.facade.RequestDispatcherImpl.include(RequestDispatcherImpl.java:345)
[Tomcat]at com.sun.estore.taglib.InsertTag.doEndTag(InsertTag.java:67)

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



Re: mod_jk.so problem

2000-12-08 Thread bill french

hi, thanks for your reply.

i actually got it to work about a half an hour after i posted with this
command:

/usr/local/apache/bin/apxs -o mod_jk.so -I../jk
-I/usr/java/jdk1.3/include -I/usr/java/jdk1.3/include/linux -c *.c
../jk/*.c

hardcode once, hardcode again, i suppose. oh well.

-bill

John de la Garza wrote:
> 
> let me know if this works or not, please...
> 
> I had a similar problem with apache...I needed to recompile it so it would
> accept dynamic loading of modules...Sounds like your apache bin doesn't
> support dynamic loading.
> 
> to enable as a dynamic loading try:
> 
> ./configure --enable-module=most --enable-shared=max
> make install



JSP

2000-12-08 Thread Andy Fok

Please let me know and subsribe to this forum if this is where I can get
help from Tomcat installation that allows me to write JSP files and have
them displayed from my personal Apache server running on my own Pc (Windows
2000). Up to now, I still was not able to display the jsp files properly
thich are stored under examples.  When I read the documentation, I noticed
that I may need jsp.tar... which I cannot find them from the c-driver.
Basically all the request method calls (JSP request) return nothing to my
browser.  Hope someone can help me.

Andy Fok
Knowledge and Information Solutions 
TELUS Integrated Communications
[EMAIL PROTECTED]
(604) 432-2303




ApJServAction replacement in Tomcat?

2000-12-08 Thread Andrew Oliver

Hello,

I'm working with some 3rd party code that uses
ApJServAction (the servlets run in Jserv), I'm
attempting to convert over to Tomcat and Ajp13. 
However, I'm not sure how to set this up or even
IF it can be setup.  Is there a way to do something
similar with the new connector/tomcat?

Secondly, if not, is there a way to use both tomcat 
and jserv concurrently (point new code to one and old
code to the other and replace them as we rewrite it)?

Thanks.

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



Security and virtual hosts on Tomcat 3.2

2000-12-08 Thread Nirav S. Desai

Hi,
I am trying to set up a secure tomcat/apache server. I have Apache set up with
mod_ssl and tomcat 3.2 setup with viruatl hosts. All of this works great. However, I am
haveing trouble getting the secure and insecure  hosts to map to different pages in
tomcat. That is, I want "http://www.host1.com" to map to directory A and
"https://www.host1.com"  map to directory B. Does anyone know how to do this? Thanks in
advance.

Nirav Desai




Ant comile error

2000-12-08 Thread Matt Becker



Hi. I was trying to set up a simple web application 
and copied the sample application for a starting point. The Tomcat doc on web 
applications said to set everything up like so and run a build script which runs 
ant. I  get this error:
 
Exception Thread: java.lang.NoClassDefFoundError: 
org/apache/tools/ant/main
 
I checked it out in tomcat and it doesn't have a 
tools/ant/main in it's org/apache directory.
 
Anyone know what gives? And...to start out doing 
jsp web applications on Tom Cat...is this ant stuff necessary?
 
 
Thanks
 
 
Matt


RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Chris Halverson
Title: RE: multipart requests and file uploads problems on the Apache c  onnection





NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect.


-Original Message-
From:   Josh Knowles [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, December 08, 2000 2:15 PM
To: '[EMAIL PROTECTED]'
Subject:    RE: multipart requests and file uploads problems on the Apache c  onnection


Java is Java no matter what OS you are running on.  I have used the
multipart on both RedHat 6.2 and Win2k with no problems.


-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



-BEGIN PGP SIGNED MESSAGE-


Even in NT environment? Thank you.


José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
    [EMAIL PROTECTED] 
    [EMAIL PROTECTED]
http://euclides.8m.com



- -Mensagem original-
De:     Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em:     Sexta-feira, 8 de Dezembro de 2000 18:45
Para:       '[EMAIL PROTECTED]'
Assunto:        RE: multipart requests and file uploads problems on
the Apache c  onnection


I have had no problems mixing the two


- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection




*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***


Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,


José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
    [EMAIL PROTECTED] 
    [EMAIL PROTECTED]
http://euclides.8m.com



- -Mensagem original-
De:     Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em:     Quinta-feira, 7 de Dezembro de 2000 13:50
Para:       [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:        Re: multipart requests and file uploads problems on
the Apache connection


Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com


I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).



Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -


*** END PGP VERIFIED MESSAGE ***


-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1


iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-





Re: Error Messages

2000-12-08 Thread Rebecca
Title: Error Messages



i have sent 4 requests to unsubscribe to:  [EMAIL PROTECTED]>
but i keep getting messages.
 
any clue as to why this is?

  - Original Message - 
  From: 
  Duane Morse 
  
  To: '[EMAIL PROTECTED]' 
  
  Sent: Friday, December 08, 2000 2:56 
  PM
  Subject: RE: Error Messages
  
  I think you 
  can get errors of this type if the user clicks the STOP button on the browser 
  before the
  response is 
  completely transmitted (or, equivalently, when the user closes the browser 
  prematurely).
   
  Duane Morse, Eldorado Computing Inc., Phoenix 
  AZ 
  
-Original Message-From: Parayali, Jayesh 1065 
[mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 
2000 12:40 PMTo: 
'[EMAIL PROTECTED]'Subject: Error 
Messages
I am running tomcat 3.2 on windows 
NT workstation 
I am getting the below 
messages 
2000-12-08 11:08:38 - Ctx( ): 
IOException in: R(  + /00.jpg + null) Connection aborted by peer: 
socket write error 
Anybody encountered this 
problem? 
Thanks, Jayesh 


Re: RES: multipart requests and file uploads problems on the Apachec onnection

2000-12-08 Thread Joe Laffey

On Fri, 8 Dec 2000, Jose Euclides da Silva Junior - DIGR.O wrote:

> -BEGIN PGP SIGNED MESSAGE-
>
> Even in NT environment? Thank you.
>
>
> I have had no problems mixing the two

[regarding mixing file uploads with regular form data in multipart
requests]

I have had it work under NT (Apache with Tomcat). Though I mainly use
Unix, it should work anywhere like most server-side Javastuff.


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
-
With no walls or fences on the Internet, who needs Windows or Gates?
-




RE: bind error

2000-12-08 Thread John de la Garza

also,


SunOS 5.6

login:

only shows up when I am running tomcat on port 80...


If tomcat is not running telnet can't connect to port 80, but I still get
the bind error!

This all started since I switched to JDBC realm security stuff...

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:26 PM
To: [EMAIL PROTECTED]
Subject: RE: bind error


The jvm is not running...for sure it is not.  The funny thing is that aft4er
I get this error message it still works!

I am using jdbc real formbased security...I don't know if this could be part
of the issue.

as for 3.1 it is stopped...

also, I am running tomcat as a standalone server on port 80 for dev purposes


when I telnet to 127.0.0.1:80 I get this:



SunOS 5.6

login:




what's up with that?  Im running windows 2000!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: bind error


Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?





RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Josh Knowles

Java is Java no matter what OS you are running on.  I have used the
multipart on both RedHat 6.2 and Win2k with no problems.

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection


-BEGIN PGP SIGNED MESSAGE-

Even in NT environment? Thank you.

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-



RE: bind error

2000-12-08 Thread Randy Layman

Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?



Re: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Steve Ruby


I agree, works fine for me, make sure you are trying to read the
non-file parameters with the multipart reader and not just with the
method from Tomcat.. Once the user sends the mime post the whole
thing is mime not just the file...


> Chris Halverson wrote:
> 
> NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect.
> 
>  -Original Message-
>  From:   Josh Knowles [SMTP:[EMAIL PROTECTED]]
>  Sent:   Friday, December 08, 2000 2:15 PM
>  To: '[EMAIL PROTECTED]'
>  Subject:RE: multipart requests and file uploads problems
>  on the Apache c  onnection
> 
>  Java is Java no matter what OS you are running on.  I have used
>  the
>  multipart on both RedHat 6.2 and Win2k with no problems.
> 
>  -Original Message-
>  From: Jose Euclides da Silva Junior - DIGR.O
>  [mailto:[EMAIL PROTECTED]]
>  Sent: Friday, December 08, 2000 1:57 PM
>  To: [EMAIL PROTECTED]
>  Subject: RES: multipart requests and file uploads problems on the
>  Apache
>  c onnection
> 
>  -BEGIN PGP SIGNED MESSAGE-
> 
>  Even in NT environment? Thank you.
> 
>  José Euclides Júnior
>  __
>  E-mail: [EMAIL PROTECTED]
>  [EMAIL PROTECTED]
>  [EMAIL PROTECTED]
>  http://euclides.8m.com
> 
>  - -Mensagem original-
>  De: Josh Knowles
>  [SMTP:[EMAIL PROTECTED]]
>  Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
>  Para:   '[EMAIL PROTECTED]'
>  Assunto:RE: multipart requests and file uploads
>  problems on
>  the Apache c  onnection
> 
>  I have had no problems mixing the two
> 
>  - -Original Message-
>  From: Jose Euclides da Silva Junior - DIGR.O
>  [mailto:[EMAIL PROTECTED]]
>  Sent: Friday, December 08, 2000 12:20 PM
>  To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
>  Subject: RES: multipart requests and file uploads problems on the
>  Apache
>  c onnection
> 
>  *** PGP Signature Status: bad
>  *** Signer: Jose Euclides Jr
>  <[EMAIL PROTECTED]>
>  *** Signed: 08/12/00 16:10:50
>  *** Verified: 08/12/00 17:46:20
>  *** BEGIN PGP VERIFIED MESSAGE ***
> 
>  Hi, everybody! Unfortunately, it seems that there is an important
>  limitation
>  when  using Jason's components. The developer cant mix text
>  fields and file
>  setting fields in the form!
>  Good luck,
> 
>  José Euclides Júnior
>  __
>  E-mail: [EMAIL PROTECTED]
>  [EMAIL PROTECTED]
>  [EMAIL PROTECTED]
>  http://euclides.8m.com
> 
>  - -Mensagem original-
>  De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
>  Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
> 
>  Para:   [EMAIL PROTECTED];
>  [EMAIL PROTECTED]
>  Assunto:Re: multipart requests and file uploads
>  problems on
>  the Apache connection
> 
>  Take a look at the multipart classes by Jason Hunter that are
>  free for use
>  if you own the book "Java Servlet Programming" from O'Reilly. The
>  code can
>  be downloaded from O'Reilly's site www.ora.com
> 
>  I have only had one problem with it, and I think I have coded
>  around it.
>  The problem was that sometimes uploads from MSIE 5.01 Win do not
>  send the
>  boundary correctly (it varies by two characters everytime).
> 
>  Joe Laffey
>  LAFFEY Computer Imaging
>  St. Louis, MO
>  - -
>  With no walls or fences on the Internet, who needs Windows or
>  Gates?
>  -
>  -
> 
>  *** END PGP VERIFIED MESSAGE ***
> 
>  -BEGIN PGP SIGNATURE-
>  Version: PGP 6.5.1
> 
>  iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
>  d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
>  NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
>  McRn2ZG88hI=
>  =/TtX
>  -END PGP SIGNATURE-



RES: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

tank you.

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Chris Halverson [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 19:28
Para:   [EMAIL PROTECTED]
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

NT4.0, Solaris 2.6 and Solaris 2.8 work fine too as you would expect. 

-Original Message- 
From:   Josh Knowles [SMTP:[EMAIL PROTECTED]] 
Sent:   Friday, December 08, 2000 2:15 PM 
To: '[EMAIL PROTECTED]' 
Subject:    RE: multipart requests and file uploads problems on the
Apache c  onnection 

Java is Java no matter what OS you are running on.  I have used the 
multipart on both RedHat 6.2 and Win2k with no problems. 

-Original Message- 
From: Jose Euclides da Silva Junior - DIGR.O 
[ ] 
Sent: Friday, December 08, 2000 1:57 PM 
To: [EMAIL PROTECTED] 
Subject: RES: multipart requests and file uploads problems on the Apache 
c onnection 


-BEGIN PGP SIGNED MESSAGE- 

Even in NT environment? Thank you. 

José Euclides Júnior 
__ 
E-mail: [EMAIL PROTECTED] 
    [EMAIL PROTECTED] 
    [EMAIL PROTECTED] 
 


- -Mensagem original- 
De:     Josh Knowles [SMTP:[EMAIL PROTECTED]] 
Enviada em:     Sexta-feira, 8 de Dezembro de 2000 18:45 
Para:       '[EMAIL PROTECTED]' 
Assunto:        RE: multipart requests and file uploads problems on 
the Apache c  onnection 

I have had no problems mixing the two 

- -Original Message- 
From: Jose Euclides da Silva Junior - DIGR.O 
[ ] 
Sent: Friday, December 08, 2000 12:20 PM 
To: [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Subject: RES: multipart requests and file uploads problems on the Apache 
c onnection 



*** PGP Signature Status: bad 
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 16:10:50 
*** Verified: 08/12/00 17:46:20 
*** BEGIN PGP VERIFIED MESSAGE *** 

Hi, everybody! Unfortunately, it seems that there is an important
limitation 
when  using Jason's components. The developer cant mix text fields and file 
setting fields in the form! 
Good luck, 

José Euclides Júnior 
__ 
E-mail: [EMAIL PROTECTED] 
    [EMAIL PROTECTED] 
    [EMAIL PROTECTED] 
 


- -Mensagem original- 
De:     Joe Laffey [SMTP:[EMAIL PROTECTED]] 
Enviada em:     Quinta-feira, 7 de Dezembro de 2000 13:50 
Para:       [EMAIL PROTECTED]; [EMAIL PROTECTED] 
Assunto:        Re: multipart requests and file uploads problems on 
the Apache connection 

Take a look at the multipart classes by Jason Hunter that are free
for use 
if you own the book "Java Servlet Programming" from O'Reilly. The code can 
be downloaded from O'Reilly's site www.ora.com 

I have only had one problem with it, and I think I have coded around
it. 
The problem was that sometimes uploads from MSIE 5.01 Win do not send the 
boundary correctly (it varies by two characters everytime). 


Joe Laffey 
LAFFEY Computer Imaging 
St. Louis, MO 
- - - 
With no walls or fences on the Internet, who needs Windows or Gates? 
- - - 

*** END PGP VERIFIED MESSAGE *** 

-BEGIN PGP SIGNATURE- 
Version: PGP 6.5.1 

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN 
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE 
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp 
McRn2ZG88hI= 
=/TtX 
- -END PGP SIGNATURE- 

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjF6M90YhuJ3BUxtAQEY3QP/QbVysTn6FGYo4Zl2mJqqWECcm/+0A0LK
VXQ5N393WTyhgZAil1g4TgvPPUP4HiYNtQMbZeZedbmp8xFm6lAdKB3XVHSoN3tL
c8iHhnKlQZd1qk/1iUUdJ/ch6KegdyGnzOz1PgenBN4H2BhkV6oembeCRhbmzvTs
/6yp9B27vtA=
=wg6u
-END PGP SIGNATURE-



RES: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

i KNOW IT. BUT IIS DOESNT...

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 19:15
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

Java is Java no matter what OS you are running on.  I have used the
multipart on both RedHat 6.2 and Win2k with no problems.

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:57 PM
To: [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 17:47:27
*** Verified: 08/12/00 18:16:42
*** BEGIN PGP VERIFIED MESSAGE ***

Even in NT environment? Thank you.

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***


*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjF6GN0YhuJ3BUxtAQGGXgQAgjricxofr5wqwVfQimz1n2wwlro3y7b4
Spw+yr5O9tY5tsDaAsUaxyrhALtbXdYTE8BJ6gfSzmAJ1d2mgnc9XfcsVXg9s2sx
qnopUqAVHUSTCxovLEjbavAJjWYlKSSyzGuGMy2WAAvm20kjqNTlbCf5rlFck7tj
ntu9ic1jV/g=
=GtrT
-END PGP SIGNATURE-



RE: bind error

2000-12-08 Thread John de la Garza

The jvm is not running...for sure it is not.  The funny thing is that aft4er
I get this error message it still works!

I am using jdbc real formbased security...I don't know if this could be part
of the issue.

as for 3.1 it is stopped...

also, I am running tomcat as a standalone server on port 80 for dev purposes


when I telnet to 127.0.0.1:80 I get this:



SunOS 5.6

login:




what's up with that?  Im running windows 2000!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:44 PM
To: '[EMAIL PROTECTED]'
Subject: RE: bind error


Something else is using the port?

Check that:
1. You are not still running Tomcat 3.1 (is so, change the ports for
Tomcat 3.2 in the server.xml file)
2. Try stoping and then starting.  Make sure that the JVM actually
dies before restarting.
3. Without Tomcat running, telnet to the ports that Tomcat uses
(usually 8080 and 8007, check server.xml for actual).  See if you can figure
out what is actually running on the port.  (To check for HTTP, try GET
/, if this returns an HTML looking document then a webserver of some
kind is running on the port).

Randy

-Original Message-
From: John de la Garza [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 3:53 PM
To: Tomcat-Users (E-mail)
Subject: bind error


Since I have switched to tom cat 3.2 when I restart the server I get this:


Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address in use: JVM_Bind
java.net.BindException: Address in use: JVM_Bind
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:397)
at java.net.ServerSocket.(ServerSocket.java:170)
at java.net.ServerSocket.(ServerSocket.java:121)
at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(Default
ServerSocketFactory.java:97)
at
org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoi
nt.java:239)
at
org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.jav
a:188)
at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:527)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:204)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:237)



any clues to why?




problem with max_threads > 100

2000-12-08 Thread William Au

I am getting the following exceptions when I set the max_threads
parameter to
256.  I am using Tomcat 3.2 standalone with the PoolTcpConnector.
I looked at
the source code of jasper.runtime.JspFactoryImpl and discovered that it
is
hard-coding 100 to be the size of a SimplePool it uses internally.

public class JspFactoryImpl extends JspFactory {
private SimplePool pool=new SimplePool( 100 );
private static final boolean usePool=true;
...
}

Is there any way to get around this problem?  Or is 100 the upper-bound
for
max_threads?

Bill

java.lang.ArrayIndexOutOfBoundsException: 100
at org.apache.tomcat.util.SimplePool.get(Compiled Code)
at
org.apache.jasper.runtime.JspFactoryImpl.getPageContext(Compiled Code
)
at _0002f_00031_00030k_0002ejsp10k_jsp_2._jspService(Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compil
ed Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)






RES: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Even in NT environment? Thank you.

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Josh Knowles [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 18:45
Para:   '[EMAIL PROTECTED]'
Assunto:RE: multipart requests and file uploads problems on
the Apache c  onnection

I have had no problems mixing the two

- -Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection



*** PGP Signature Status: bad
*** Signer: Jose Euclides Jr <[EMAIL PROTECTED]> 
*** Signed: 08/12/00 16:10:50
*** Verified: 08/12/00 17:46:20
*** BEGIN PGP VERIFIED MESSAGE ***

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -

*** END PGP VERIFIED MESSAGE ***

-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFzD90YhuJ3BUxtAQHrWwP+Maxhw3z2IBXwKg6J2DQdMlZGkwPVuJDN
d9CcksGgRHSaHR53p79VkXzceTC9acNITocFfiowpONKYhQOStGnQ/31fDFXMfbE
NBksfaubs8rUKf1TipRHvU9AVkTmI6mf7BuzI4ycmqKsanbLDMEM9TSG4CjG6PAp
McRn2ZG88hI=
=/TtX
-END PGP SIGNATURE-



RE: multipart requests and file uploads problems on the Apache c onnection

2000-12-08 Thread Josh Knowles

I have had no problems mixing the two

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 12:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
c onnection


-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-



3.2 NullPointer tossed from HttpSessionFacade

2000-12-08 Thread Sean Kroah



We are migrating our tomcat 3.1 compatible serverlet to the 3.2Final release. Occassionally we see a NullPointerException get tossed

from HttpSessionFacade whenever we try to access something from the Session, say get or set an attribute. This only happens on very long transactions,

where we refresh the servlet to post a "still waiting message". If I remove the servlet refresh the problem seems to go away. It's possible there is a race condition and one of objects we are storing in the session is locked, but does anyone have a clue why it might behave

differently in 3.1 and 3.2. The only thing I see different is the addition of the Facade classes and frankly I can't see how this would cause any problems.



Thanks,

SKroah





-- 
Sean Kroah    T:503.222.9660
  F:503.241.5682
WireX Communications, Inc. 
Software Engineer,    [EMAIL PROTECTED]
 


Re: Error Messages

2000-12-08 Thread Craig R. McClanahan

It could mean that there were messages that had already been sent out into the
Internet, that were transmitted before your unsubscribe took effect.

Most likely, though, that means you subscribed under a different email address
than the one you are trying to unsubscribe through.  In that case, please read
the message you get back from the mailing list server for how to unsubscribe
from an alternate address.

Craig McClanahan



Rebecca wrote:

> i have sent 4 requests to unsubscribe to:
> [EMAIL PROTECTED]>but i keep getting messages. any
> clue as to why this is?




RE: Error Messages

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: Error Messages





Right now its not causing any problem. But it might be slowing down tomcat Its happening when I hit refresh on IE. It is not happening when I refresh using Netscape Communicator.

The HTTP protocol must be different. I will check that later and keep you posted if I find anything.


Thanks,
Jayesh


-Original Message-
From:   CPC Livelink Admin [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, December 08, 2000 12:01 PM
To: [EMAIL PROTECTED]
Subject:    RE: Error Messages


At the risk of a 'me too' barrage, I have encountered the same message on many static items like images.  I was ignoring it since that pages worked, but it would be nice to know what it is. I did not see it in 3.1, only 3.2 on NT 2000

-Original Message-
From: Parayali, Jayesh 1065 [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 02:40 PM
To: '[EMAIL PROTECTED]'
Subject: Error Messages




I am running tomcat 3.2 on windows NT workstation 


I am getting the below messages 


2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket write error 


Anybody encountered this problem? 


Thanks,
Jayesh 





Using Apache user authentication for pages served by Tomcat

2000-12-08 Thread guyr

Someone else said they could not get authentication directives defined to
Apache to work for pages redirected to Tomcat.  I encountered the same
problem, but have found a workaround.  If you update your server.xml file so
that the document root used by Tomcat for a particular context is in the
Apache document directory, it seems to work.  An example may clarify.
On Windows, I have Tomcat in c:\jakarta-tomcat-3.2 and Apache in c:\Apache.
Apache's document root is c:\apache\htdocs.  I originally had Tomcat context
"domino" with a docbase of "webapps/domino", and the following Directory
directive in httpd.conf:



Going to a file in the domino context did not prompt for a userid/password.

I then updated Tomcat's server.xml to use a docbase of
c:\apache\htdocs\domino (and of course moved the files there) and changed
Apaches httpd.conf with the following Directory directive:



Now, when I try to get a file from http://myserver/domino, I get the popup
dialog to enter a userid and password.



RE: Error Messages

2000-12-08 Thread CPC Livelink Admin
Title: Error Messages



At the 
risk of a 'me too' barrage, I have encountered the same message on many static 
items like images.  I was ignoring it since that pages worked, but it would 
be nice to know what it is. I did not see it in 3.1, only 3.2 on NT 
2000

  -Original Message-From: Parayali, Jayesh 1065 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 
  02:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  Error Messages
  I am running tomcat 3.2 on windows NT 
  workstation 
  I am getting the below 
  messages 
  2000-12-08 11:08:38 - Ctx( ): 
  IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket 
  write error 
  Anybody encountered this 
  problem? 
  Thanks, Jayesh 


RE: Regarding ISAPI_REDIRECT.DLL

2000-12-08 Thread Marc Saegesser

Review the archives for this list.  Myself and others have posted
information about this several times before.

In short there are two things to check for.

1)  Make sure you don't add the "Filter DLLs" key unless you really are
using PWS.  You say your using IIS 4.0 so you don't need this key.

2)  isapi_redirect.dll is *VERY* picky about the contents of the worker_file
and worker_mount_file values.  If the files they point to don't exist or are
invalid the redirector won't load.  Set log_level to "debug" and see if any
error messages appear in the log file.


-Original Message-
From: Marimuthu Muthusamy [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 7:19 PM
To: [EMAIL PROTECTED]
Subject: Regarding ISAPI_REDIRECT.DLL


Hello,

I have tried to install and configure ISAPI Redirector with tomcat3.2 and
IIS 4.0. I have done everything mentioned in the HOW-TO document. but still
the IIS 4.0 id not loading the isapi_redirect.dll. it shows the red arrow
pointing downwards. I have also troubleshooted with the troubleshooting
document. I find everything is correct. So what may be the other problems
with IIS for not loading the redirector dll.

Thank you,

Marimuthu M.



_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Diffs between 3.1 and 3.2

2000-12-08 Thread Craig R. McClanahan

Patrik Beno wrote:

> Hi people!
>
> I have application which behaves differently in tomcat 3.1 and 3.2.
>
> 3.1: loads ok, first page is displayd correctly
> 3.2: Browser complains document contained no data; tomcat or my code
>  (don't know which of 'em) runs much longer - seems like looping
>  somewhere
>

One change that affects the first request to an app (more precisely, the first
request that creates a session) is the way session ids are calculated.  Tomcat
3.2 now uses the java.security.SecureRandom class for this, which (on some
platforms) can take many seconds to initialize itself the very first time it is
called.

Craig McClanahan





valueUnbound() event in HttpSessionBindingListener

2000-12-08 Thread G.Nagarajan

Hi everyone,

This is regarding tracking of login and logout actions of users.

I am recording the session creation time and end time using the
HttpSessionBindingListener class. The two methods valueBound() and
valueUnbound() are
invoked. But the getAtrribute() method in the session object returned by
event.getSession()
always give null.

I am storing the userid and a string in the session to indicate if the user
has logged out.
By checking this string's value I can find out if the user has logged out or
the session has timed out.

What I did to solve this problem was to store the sessionid and the userid
in
an external database. When the user logs out, before invalidating the
session, I
put "LoggedOut" in the loginStatus column. In the valueUnbound() event, I
check
the value of the loginStatus column to check if the event has been called
because
of the user logging out or if the session has timed out.

How is it actually done internally? i.e., is there a thread similar to the
garbage
collector which checks the current sessions or is the session invalidated
only
when a request comes from the client. The second option will mean that the
objects
in the session will be occupying memory till the server is shutdown.

Has anyone implemented anything similar to this.

Thanks,
Nagaraj.




Error Messages

2000-12-08 Thread Parayali, Jayesh 1065
Title: Error Messages





I am running tomcat 3.2 on windows NT workstation


I am getting the below messages


2000-12-08 11:08:38 - Ctx( ): IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket write error


Anybody encountered this problem?


Thanks,
Jayesh





RE: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread CPC Livelink Admin

That's interesting, since I've been doing that for some time now with no
issues.

-Original Message-
From: Jose Euclides da Silva Junior - DIGR.O
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 03:20 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RES: multipart requests and file uploads problems on the Apache
connection


-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-




RE: Error Messages

2000-12-08 Thread Duane Morse
Title: Error Messages



I think you 
can get errors of this type if the user clicks the STOP button on the browser 
before the
response is 
completely transmitted (or, equivalently, when the user closes the browser 
prematurely).
 
Duane Morse, Eldorado Computing Inc., Phoenix 
AZ 

  -Original Message-From: Parayali, Jayesh 1065 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 08, 2000 
  12:40 PMTo: '[EMAIL PROTECTED]'Subject: 
  Error Messages
  I am running tomcat 3.2 on windows NT 
  workstation 
  I am getting the below 
  messages 
  2000-12-08 11:08:38 - Ctx( ): 
  IOException in: R(  + /00.jpg + null) Connection aborted by peer: socket 
  write error 
  Anybody encountered this 
  problem? 
  Thanks, Jayesh 


Re: valueUnbound() event in HttpSessionBindingListener

2000-12-08 Thread Craig R. McClanahan

"G.Nagarajan" wrote:

>
> How is it actually done internally? i.e., is there a thread similar to the
> garbage
> collector which checks the current sessions or is the session invalidated
> only
> when a request comes from the client. The second option will mean that the
> objects
> in the session will be occupying memory till the server is shutdown.
>

Tomcat uses a background thread that times sessions out.  By default, it checks
once per minute.

> Nagaraj.

Craig McClanahan





User Authentication config (Tomcat vs. Apache)

2000-12-08 Thread Russell Allen



Greetings all,
    I am having trouble getting 
authorization to work for a web-app in Tomcat.  I would appreciate any 
advise I can get.  Here is my case:
 
I am using Apache 1.3.12 & Tomcat 3.2 (I also 
want 3.1 to work)
I have a webapp deployed entirely under 
Tomcat/webapps/ecims
 
I want user authentication to happen on ANY file, 
servlet, jsp, etc... in that webapp.
 
This is what I have done, and the 
effect:
 
I added this to my 
Tomcat/webapps/ecims/web-inf/web.xml file:
 Protected 
Area   /*
   DELETE   GET   POST   PUT   ecims  BASIC  Example 
Basic Authentication 
Area 
 
When I hit my index page, I got the Auth dialog 
from IE.  (great! It works...)
Then as I browsed through all is well... until I 
hit an Applet.  The Applet loading caused another auth dialog BUT it was a 
java based dialog.  And it continued popping up java dialogs for my auth 
info.  It asks about 6 or 8 times, and it hit about 30-40 urls.  ALL 
of these connections are back to servlets in my webapp (ecims).
My only thoughts are... I am using the Java plugin 
and maybe it is connecting directly to the server instead of using IE.  
This would explain it not having the previously entered user and password.  
However it does not explain why I get asked several times for what is the same 
URL (excluding parameters).
 
I thought I would try using Apache 
security:
I did set it up but it is ignored if I use port 
8080 (Tomcat for me).  If I use 80 (Apache) then it asks and works for 
static content of my web-app but any dynamic content fails to load.
 
Thoughts, comments, and pointers are all welcome. 
Thanks in advance.
 
RA.
 
 
Russell AllenSr. Software 
EngineerEmageon(205) 980-9222x605


Re: limit threads per servlet in Tomcat

2000-12-08 Thread Craig R. McClanahan

J Y wrote:

> Hi
>
> I wish to setup Tomcat to limit threads per servlet, say 20 threads to
> execute in one servlet concurrently. the 21th request would cause the
> Tomecat engine to generate a new servlet instance.
>

There is no way to do this in Tomcat.

On the other hand, doing this would not help performance at all ... it would actually
make performance slightly worse (because of the additional memory occupancy of the 
second
instance).  It's also against the servlet spec to do this.

>
> Is there a way to do it. any comment appriciated.
>
> Also, what's the performance concerns. is that possible to create a pool of
> servelts?
>

The standard mechanism for this is to say that your servlet implements the
SingleThreadModel interface.  This tells the servlet container to ensure that only one
request at a time in any one servlet instance -- essentially the call to the service()
method becomes synchronized.

To keep performance from totally suffering when you do this, the servlet container has
the *option* to create a pool of instances for you -- which means that the maximum 
number
of requests you can process simultaneously is limited to the configured maximum number 
if
instances in this pool.  Tomcat does *not* support this capability -- effectively the
pool size is one.

Further, IMHO, using SingleThreadModel is a very bad idea.  People like it because it
lets them use instance variables to store per-request state information, instead of 
using
local variables and passing arguments around (like they should :-).  However,
SingleThreadModel only gives you the illusion of thread safety -- you're still going to
have to deal with simultaneous requests if you are using static variables, or if you 
are
using sessions.  Why artificially cripple your servlet's performance, and get yourself 
in
trouble?

You are far better off *not* implementing SingleThreadModel.  Then, the only limit on 
how
many simultaneous requests you can support is the maximum number of threads in your
container, with no artificial limits imposed at the individual servlet level.

>
> Thanks
>
> Jay

Craig McClanahan





Re: Session snooper

2000-12-08 Thread Craig R. McClanahan

Matthew Preston wrote:

> I'm need to create a simple tool for Tomcat so that I can see how many users
> have active sessions for the available Contexts.  e.g. how many sessions are
> active for /admin with details for each.
>
> Rather than reinventing the wheel I was wondering if someone has already
> created such a beast - it seems like useful tool to have.
>

Under a servlet 2.2 environment (Tomcat 3.x), it is not feasible to write such a
generic tool without some help by your application (the login process adds an
object to the session that implements HttpSessionBindingListener that keeps a
local collection of active sessions), or writing custom extensions to Tomcat.

Under a servlet 2.3 environment (Tomcat 4.x), you can use an application event
listener to do stuff like this in a generic way.

>
> Any ideas?
>
> Cheers,
> Matt

Craig McClanahan





RES: Tomcat 3.2 stability

2000-12-08 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Dear Thomas,
is there any problem if i use TomCat 3.1 under NT 4.0/SP 6.a?
Jackarta's site doesnt write anything about it
Now, i am developing a small system with this environment
Best Regards,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Amrhein, Thomas [SMTP:[EMAIL PROTECTED]]
Enviada em: Sexta-feira, 8 de Dezembro de 2000 08:36
Para:   [EMAIL PROTECTED]
Assunto:AW: Tomcat 3.2 stability

Hi,

we are running tomcat 3.2 with jdk 1.2.2 on linux
and we have no problems.
Except our test tool, which sometimes brakes down when making too heavy
stress tests for hours. :-( and :-)

We had stability problems with tomcat 3.1 on NT Workstation and noticed
the same problems that you have now.
Which NT do you use? NT Workstation or NT Server? And the newest Service
Pack?
There is a known feature, that NT Workstation does not handle more than
six (perhaps a bit more) parallel HTTP-Connections correctly.
The feature is, that you have to use NT Server instead, which is a bit
more expensive or (my opinion) better use a linux system.

regards, 

Thomas


- -Ursprüngliche Nachricht-
Von: Matthew Preston [mailto:[EMAIL PROTECTED]]
Gesendet am: Donnerstag, 7. Dezember 2000 14:36
An: tomcat user
Betreff: Tomcat 3.2 stability

Has anyone noticed any stability problems with the recently relesaed Tomcat
3.2?

The situation:

After running a couple of web apps for ~4 days with light/moderate usage
Tomcat becomes very slow and starts using 100% cpu.  This never happened
with Tomcat 3.1.

This was seen running on a resonably fast P3 computer with 128 megs ram and
NT4 with jdk 1.3.

Is this a known problem?

Cheers,
Matt
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFgV90YhuJ3BUxtAQFlwAQAps/WWplDljjhytnZPG6ElFYvzNpc1ruS
vtYOlQrJCNcu4aqyg+/HYSkfQzOEM8uh7R/Wis+fmEgwlr3Hrcz/AxsSR6yVpVOB
1hFP5xW0AkDmVCJZMUGYeKjzMHpY0jcSu7Pni3RW8lxz5FcfHjblW+1zQd/XXGlH
zZt7FaypqTU=
=58DM
-END PGP SIGNATURE-



RES: multipart requests and file uploads problems on the Apache connection

2000-12-08 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Hi, everybody! Unfortunately, it seems that there is an important limitation
when  using Jason's components. The developer cant mix text fields and file
setting fields in the form!
Good luck,

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
[EMAIL PROTECTED]
http://euclides.8m.com


- -Mensagem original-
De: Joe Laffey [SMTP:[EMAIL PROTECTED]]
Enviada em: Quinta-feira, 7 de Dezembro de 2000 13:50
Para:   [EMAIL PROTECTED]; [EMAIL PROTECTED]
Assunto:Re: multipart requests and file uploads problems on
the Apache connection

Take a look at the multipart classes by Jason Hunter that are free for use
if you own the book "Java Servlet Programming" from O'Reilly. The code can
be downloaded from O'Reilly's site www.ora.com

I have only had one problem with it, and I think I have coded around it.
The problem was that sometimes uploads from MSIE 5.01 Win do not send the
boundary correctly (it varies by two characters everytime).


Joe Laffey
LAFFEY Computer Imaging
St. Louis, MO
- -
With no walls or fences on the Internet, who needs Windows or Gates?
- -
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOjFcat0YhuJ3BUxtAQEO+QP+LW4a8HpIGlHQr1Mpj0IGbkuwwVBXGpR4
0g4iWIGJXn5hmAFkyC35jZTokqqw8AM1+u77jLlKPt9lHeohrSyXLPwWCmWrSiKR
bDGHJ9Z/i3eZw4QF+se7dvjfGR1IdJLRgqDmVAwIF40GPICtcpMxefGzN3KfjLzx
U9DdkA2DJMU=
=ddTy
-END PGP SIGNATURE-



Regarding ISAPI_REDIRECT.DLL

2000-12-08 Thread Marimuthu Muthusamy

Hello,

I have tried to install and configure ISAPI Redirector with tomcat3.2 and 
IIS 4.0. I have done everything mentioned in the HOW-TO document. but still 
the IIS 4.0 id not loading the isapi_redirect.dll. it shows the red arrow 
pointing downwards. I have also troubleshooted with the troubleshooting 
document. I find everything is correct. So what may be the other problems 
with IIS for not loading the redirector dll.

Thank you,

Marimuthu M.


_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: This List is over-whelming

2000-12-08 Thread David M. Karr

> "John" == John Marquart <[EMAIL PROTECTED]> writes:
  John> TOMCATers,
  John> Is there any way to make a digest form of this list available?  Is
  John> there an archive?  I cannot find one mentioned at the jakarta homepage.

  John> This list generates a huge amount of traffic - much of it redundant or
  John> already contained in the faq.  This is the kind of traffic that will most
  John> likely beat your best and brightest into the darkness and turns off
  John> novices such as myself.  I have not been on a technical mailing list in
  John> quite some-time which responds as consistently to questions already in the
  John> FAQ.  The very few non-FAQ threads that I have found on the list have been
  John> great and have taught me alot, but the noise-to-signal ratio in general is
  John> troubling.

I feel sorry for all the people who could benefit from numerous
different mailing lists, but who don't use the GNUS newsreader inside
of Emacs to read their mail and mailing lists, so they avoid mailing
lists.

I subscribe to ~20 mailing lists, several of them somewhat
high-volume, and using GNUS to read/write them (or even ignore them
sometimes) is a breeze.  It's just a teensy bit harder to set up than
your average mail reader.  It can also be useful to have a workable
mail filtering agent, like "Procmail", but you can get by without it.

-- 
===
David M. Karr ; [EMAIL PROTECTED]  ; w:(425)487-8312 ; TCSI & Best Consulting
Software Engineer ; Unix/Java/C++/X ; BrainBench CJ12P (#12004)




mod_jserv versus mod_jk

2000-12-08 Thread Dan R. Labonte

hi all,

I'm wondering if any one has good reason to load mod_jk instead of
mod_jserv. And if so would anyone out there have install specific
instructions for HP-UX. I'm in dire need here and being a newbie doesn't
seem to help out any. I've searched the archives to no avail, and I'm still
waiting for a reply from my last post. Can someone help out a fellow geek.

My first post... Running Apache 1.3.14 with Tomcat 3.2 and trying to compile
with gcc like docs said and receive the following error message...I can read
the error about needing ANSI C but I'm using what the docs suggest...

in the process of making it on apache and during the build of Jserv I
receive the following error

# /opt/apache/bin/apxs -c *.c -o mod_jserv.so
cc -Ae +z -DHPUX11 -DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -O
-DSHARED_MODULE -I/opt/apache/include  -c *.c
(Bundled) cc: warning 480: The -A option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 480: The +z option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 480: The -O option is available only with the C/ANSI C
product; ignored.
(Bundled) cc: warning 485: Can't open "*.c".
apxs:Break: Command failed with rc=1

Any ideas or way I could find a pre-built version of mod_jserv.so...


Always willing to go the extra step for my fellow geek
Dan



RE: running init() twice?

2000-12-08 Thread Marc Saegesser

A technique you might useful here is to put the following code into your
init() method.

Thread.currentThread().dumpStack()

This will let you see who is invoking your init() method.


-Original Message-
From: Irina Rubenchik [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 10:42 AM
To: Parayali, Jayesh 1065
Cc: tomcat-user
Subject: Re: running init() twice?


I'm running on winNT, and I do have print statements in my init(). This is
how I see that it is being called for both frames.
"Parayali, Jayesh 1065" wrote:

are you running on winNT?
try displaying something inside init()
like System.out.println("now starting init");
-Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 9:36 AM
To: Parayali, Jayesh 1065
Subject:Re: running init() twice?
Then how come it is called twice?
"Parayali, Jayesh 1065" wrote:

init will be called only once.. you don't need to set anything.
-Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 6:37 AM
To: tomcat-user
Subject:running init() twice?
Hello,
I have a web page with 2 frames. Both frames invoke one servlet with
different parameters. When I run this servlet, it seems like it is
executing the init method twice, once for each frame. Is there an option
that I can set in tomcat, which would make sure that the init method
of
my servlet only invoked once?
Thanks
irina << File: Card for Irina Rubenchik >>
 << File: Card for Irina Rubenchik >>




List of archives for tomcat-user

2000-12-08 Thread David Rees

> TOMCATers,
>   Is there any way to make a digest form of this list available?  Is
> there an archive?  I cannot find one mentioned at the jakarta homepage.

There is an archive (actually, two!)  In fact, I posted this information
last week:
http://marc.theaimsgroup.com/?l=tomcat-user&m=97606009209403&w=2

The one I like to use (which goes back to 3/2000):
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

And the official one (which may not work if you're behind a firewall, you
need outgoing access to port  to perform searches):

http://mikal.org/interests/java/tomcat/index.html

There's even one more!
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/

Can the webmaster of jakarta.apache.org put links to these additional
archives up on the site?

-Dave




RE: 404 error w/ isapi_redirect.dll

2000-12-08 Thread Kintzer, Michael

Yes you are right.  Obviously that won't work and I'm not sure where that
came from, maybe when I was trying different things.   It's hard for me to
tell what is actually going on in the isapi.log file, it doesn't seem clear
to me when a request starts and stops in the log.  Do you know what I should
look for?  

In any case, I do not want to route directly to tomcat (the reason I am
using the isapi_redirect.dll) so I want to avoid using 8080 all together.
The command I am trying is http://localhost/examples/jsp/index.html and this
still results in the 404 error (and the 200 error in the IIS log).

Thanks,

Michael

-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 6:37 AM
To: [EMAIL PROTECTED]
Subject: RE: 404 error w/ isapi_redirect.dll


I noticed that the URI your requesting is /examples:8080/jsp/index.html.
That'll never work.  Try something like
http://localhost:8080/examples/jsp/index.html


-Original Message-
From: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Ignacio,

Attached are the IIS log and the isapi.log (excerpt).
Let me know if these are not the logs you intended.

Gracias,

Michael Kintzer

-Original Message-
From: Nacho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Append logs excerpts please, i have the same  conf working like a
charm..

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 7 de diciembre de 2000 2:47
> Para: '[EMAIL PROTECTED]'
> Asunto: RE: 404 error w/ isapi_redirect.dll
>
>
> I realize this topic has been covered nearly two months ago,
> but all the
> solutions given here have not worked for my environment.
>
> Here are the details:
> IIS 5.0, W2KPro, Tomcat 3.2
> I've configured everything according to the Tomcat-IIS HowTo
> and confirmed
> the following are working:
>
> -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/)
> -isapi_redirect.dll has the green arrow
> -log files are being generated
> -isapi_redirect.dll is recognizing that it should handle jsp
> requests as
> evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my
> SYSTEM32/LogFiles/W3SVC1/ log.
> -I can browse to the jakarta virtual directory
> -Anonymous access is enabled and file permissions on the
> redirect dll are
> also enabled for Full Control for Everyone.
> -the uriworkermap.properties file and the -auto file show
> that the examples
> context is being served by ajp12
>
> According to the HowTo, "200" implies the jakarta virtual
> directory is not
> configured for Execute permissions, but I've checked that and it is.
>
> I've rebooted and restarted both WWWService and AdminService,
> but nothing
> seems to fix the 404 error.
>
> Anybody have an idea for me?
>
> Thanks,
>
> Michael
>
>
>
> -Original Message-
> From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 7:26 AM
> To: [EMAIL PROTECTED]
> Subject: RE: 404 error w/ isapi_redirect.dll
>
>
>
> Stop/Start in the IIS Administrative Tool does not restart the admin
> service.  You have to do this from the control panel or a Dos
> Prompt like
> thus :
>
> net stop "IIS Admin Service"
> net start "IIS Admin Service"
>
> There are dependant services you may need to restart as well
> - this is the
> batch file I use to stop :
>
> @ECHO OFF
> NET STOP "FTP Publishing Service"
> NET STOP "World Wide Web Publishing Service"
> NET STOP "IIS Admin Service"
>
> In reverse order and replace STOP with START to start them all.
>
>
> -Original Message-
> From: David Young [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 10:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: 404 error w/ isapi_redirect.dll
>
>
> Stop/start did not do it, but rebooting did!
>
> > From: Kieran Fitzpatrick <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Mon, 16 Oct 2000 09:52:55 +1000
> > To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> > Subject: RE: 404 error w/ isapi_redirect.dll
> >
> > You might find that stopping and restarting the IIS Admin
> service via the
> > Services applet in Control Panel is sufficient to get this
> working.  At
> > least this seemed to work for me.
> >
> > Good luck,
> >
> > Kieran
> >
> > -Original Message-
> > From: Christian Thomsen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 16 October 2000 6:07 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: 404 error w/ isapi_redirect.dll
> >
> >
> > Hi !
> >
> > I had the same problem myself. I solved it by rebooting the
> computer (no
> > kidding !). As I have verified several times, you have to
> do this when you
> > change the IIS/Tomcat property files.
> >
> > I hope it helps,
> >
> > Chris
> >
> >
> > - Original Message -
> > From: "David Young" <[EMAI

RE: Install Apache3.14 with mod_jk.so and Tomcat3.2

2000-12-08 Thread Hernandez, Rey

To add my dilemma, I have the same problem with Apache 1.3.14 on NT.  I have
installed Tomcat 3.2final and when I include the LoadModule jk_module
modules/mod_jk.dll apache doesn't start, no error message except for "The
service failed to start" and no logs or anything.  Apache worked fine with
mod_jserv, but I'd like to be on the cutting edge. :)

Rey

-Original Message-
From: Jan Stevens [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 1:29 AM
To: [EMAIL PROTECTED]
Subject: RE: Install Apache3.14 with mod_jk.so and Tomcat3.2


Hi, 
What seems to happen is:
Tomcat starts (& works fine)
But when I start apache and include the mod_jk config file
Apache doesn't start anymore. Unfortunately
we don't get any error messages in any logfile.
Where are working on an Alpha 1000 with Tru64 Unix 4.0D

Jan

-Original Message-
From: Sandy McPherson [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 8 december 2000 10:04
To: [EMAIL PROTECTED]
Subject: Re: Install Apache3.14 with mod_jk.so and Tomcat3.2


Mario Beekwilder wrote:

> Hi,
>
> We are trying to get Apache3.14 working with mod_jk.so and Tomcat3.2
> on a Digital Alpha Tru64 4.0D Unix, with J2SDK 1.2.2.
> Everything compiled fine (thanks to the other mail-threads :)
>
> Apache with mod_jserv runs fine.
> Now the configuration of Tomcat and Apache with mod_jk. That's hard!
> Anyone already up-and-running?
>
> Mario Beekwilder
> Software Engineer  - CMG-TP

I have had no problems with Linux and Solaris. Getting mod_jk to compile
is explained the the mod_jkHowto file in in the doc directory. It was
really quite straightforward. Then you need to take the mod_jk.conf-auto
file include it in the httpd.conf and tune it to your needs. You
probably also need some Location and LocationMatch directives in the
httpd.conf file to get Apache to see the static files in your Tomcat
contexts.

If you explain what the problems are, then we could help, but as we
don't know what precisely is going wrong we can't help much!

Sandy



RE: running init() twice?

2000-12-08 Thread Parayali, Jayesh 1065
Title: RE: running init() twice?





Send me the piece of html or jsp where u r invoking your servlet.


-Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Friday, December 08, 2000 8:42 AM
To: Parayali, Jayesh 1065
Cc: tomcat-user
Subject:    Re: running init() twice?


I'm running on winNT, and I do have print statements in my init(). This is how I see that it is being called for both frames. 

"Parayali, Jayesh 1065" wrote: 


  


are you running on winNT?
try displaying something inside init()
like System.out.println("now starting init"); 


    -Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 9:36 AM
To: Parayali, Jayesh 1065
Subject:    Re: running init() twice? 


    Then how come it is called twice? 


    "Parayali, Jayesh 1065" wrote: 


      


    init will be called only once.. you don't need to set anything. 


        -Original Message-
From:   Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday, December 07, 2000 6:37 AM
To: tomcat-user
Subject:    running init() twice? 


        Hello, 


        I have a web page with 2 frames. Both frames invoke one servlet with
different parameters. When I run this servlet, it seems like it is
executing the init method twice, once for each frame. Is there an option 


        that I can set in tomcat, which would make sure that the init method of
my servlet only invoked once? 


        Thanks
irina << File: Card for Irina Rubenchik >>


     << File: Card for Irina Rubenchik >>

 << File: Card for Irina Rubenchik >> 





why can't I get the ApJservMount right

2000-12-08 Thread Filip Hanik

I must be missing something crucial.

I am playing around with Tomcat and Apache and I am reading the Tomcat User
Guide.
I copied and pasted the examples on how to write a tomcat-apache
configuration file
I still can not get the ApJServMount command to work properly.
In the document it says
ApJServMount URI protocol://host:port/context

which would mean anything that gets sent to your URI will be proxied
forward.
So for example
ApJServMount /cgi-bin ajpv12://localhost:8007/examples
should redirect any request that comes in to /cgi-bin to Tomcat examples.

This works fine using the ProxyPass command but I can't get the context to
redirect properly

below is my configuration file, and everything works except for the last
APJServMount command for cgi-bin,
any ideas or clarification on the ApJServMount directive would be a great
deal of help

thanks
Filip


###
# Apache JServ Configuration File
#

###

 LoadModule jserv_module modules/ApacheModuleJServ.dll



# Do not edit!
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


ApJServDefaultHost localhost
ApJServDefaultPort 8007

AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

Alias /examples D:\Apache\jakarta-tomcat\webapps\examples

Options Indexes FollowSymLinks
Options -Indexes
DirectoryIndex index.html



AllowOverride None
deny from all


ApJServMount /examples/servlet /examples

#Why doesn't this one work?
ApJServMount /cgi-bin ajpv12://localhost:8007/examples




Filip Hanik
Technical Architect
Pakana Corporation
[EMAIL PROTECTED]
415-371 9200 ext 3529





Re: scope of a bean

2000-12-08 Thread Craig R. McClanahan

Randy Layman wrote:

> Section 1.4.3 of the JSP 1.1 Final Spec (page 24).  Its available at
> http://www.javasoft.com/products/jsp/download.html
> 
>
> My own understanding:  Session starts at the first time a user in a
> particular web browser instance requests a "resource" from Tomcat.  The
> session ends after the user hasn't make any more requests - default
> configuration this is about 30 minutes (I believe, I've always reset this to
> something else).  There are some caveats about the instances of web browsers
> - some browsers have bugs that allow a session to be used by two separate
> instances if you're using cookie based sessions.
>

With slightly more precision:

* A session starts when a request is made to a servlet or JSP page
  that initiates it.  For servlets, you have to do this deliberately by
  calling request.getSession().  JSP pages create a session for you
  (if it doesn't exist already) unless you tell it not to in your <%@ page %>
  directive.

* A session ends when it either times out (see more below) or you
  call session.invalidate() on it.  The latter would typically be done
  by your "logout" processing.

Session timeouts are based on the time between requests, not the total time that
the session has been in existence.  The default session timeout is configured in
your web.xml file; you can also adjust it on the fly by calling
session.setMaxInactiveInterval().

You will want the servlet 2.2 spec (referenced in an earlier email message) as
well as the JSP spec to get the complete picture here.

>
> Randy
>

Craig McClanahan



Re: Form Authentication through Apache

2000-12-08 Thread Craig R. McClanahan

Yasunari Sato wrote:

> It seems to work well that user authenticate
> by form based authentication in stand alone tomcat service.
> But when I integrate apache and tomcat, authentication doesn't work.
> I ckecked that Servlets which does not require
> authentication works well.
>
> Is there a special configuration to enable
> form based authentication on apache-tomcat
> integrated environment?
>

The Apache connector does not know anything about what is in your web.xml file,
so it doesn't know about your security constraints that ask for authentication.
You will have to use standard Apache facilities to configure valid users.

In Tomcat 4.0, this will not be the case -- the web connector will be configured
from the contents of the web.xml file.

>
> My test environment:
> WinNT, apache1.3, tomcat3.2b6
>
> Thanks,
>
> Yasunari Sato

Craig McClanahan



Re: Accessing the ServletOutputStream via RequestInterceptors

2000-12-08 Thread Craig R. McClanahan

Alex Garrett wrote:

> Hello, all,
>
> I'm trying to find a way to modify the content of a servlet after the servlet
> has completed all of its processing but before it actually gets sent to the
> browser (obviously).
>
> Here's the context. Our web site stores all its content in XML. All servlets,
> jsps, and static files return this XML and what I'd like to do is turn it all
> into HTML on the fly without each servlet, etc., having to worry about doing the
> transformation itself. My naive first idea was to set the content-type to
> text/cml (CML is the name of the markup language) and have a
> CmlToHtmlInterceptor (extends BaseInterceptor) with a afterBody method that
> would check the content-type and if it's text/cml, retrieve the contents (maybe
> from a ByteBuffer), run it through an XSL engine, turning it into HTML and
> sending that back after changing the appropriate headers (content-type,
> content-length, etc.).
>

I've got two suggestions for you to consider that would make life a lot easier:

* Look at Tomcat 4.0, which implements the new Servlet 2.3 Spec.
  In particular, the 2.3 API supports the concept of a Filter that can
  be used to pre-process and post-process requests.  One of the
  primary use cases that motivated this design was performing things
  like XSLT transformations after the fact.  And (as an added bonus),
  filters are portable -- not Tomcat specific like interceptors or Valves
  (the Tomcat 4.0 equivalent).

* Consider using the Cocoon publishing framework (which you can get
  at ).  It is designed to deal with sites
  that are based on XML content and corresponding transformations.

Under any circumstance, you should upgrade to at least Tomcat 3.2 -- there have
been
a very large number of bug fixes, as well as performance improvements.

Craig McClanahan



Re: NT authentication

2000-12-08 Thread Craig R. McClanahan

Josh Knowles wrote:

>  Is there any way that you can set up a page to tap into NT authentication?  I
> dont know if this would be something that gets set in tomcat or if it is
> something that is non-tomcat related so I thought I would just try this
> list.Thanks,JoshJosh Knowles
> Web Developer
> World Wide Packets
> [EMAIL PROTECTED]
> 509.242.9247

It would be technically feasible to accomplish this, by creating a custom Realm
implementation for Tomcat that interfaced to NT's authentication mechanisms via
native code and JNI.

However, unless you run across an SSL connection (or on an Intranet that is not
exposed to the outside world), doing so would be a pretty incredible security
risk, because the username and password are communicated across the network in
an unencrypted form when you use BASIC or FORM-BASED authentication in your web
application.

Craig McClanahan



RE: Using Jikes with Tomcat 3.2 final

2000-12-08 Thread Arun Katkere

We ended up writing our own ContextInterceptor which looked up servlet named
"jsp" and configured it to use jikes:

   public void contextInit(Context ctx)
  throws TomcatException
   {
  if(ctx.getDebug() > 0) {
 ctx.log("JikesContextInterceptor - init  " + ctx.getPath() + " " +
ctx.getDocBase());
  }
  ServletWrapper wrapper = ctx.getServletByName("jsp");
  if(wrapper != null) {
 wrapper.addInitParam("jspCompilerPlugin",
"org.apache.jasper.compiler.JikesJavaCompiler");
  }
  else {
 ctx.log("JikesContextInterceptor - no servlet named \"jsp\": " +
ctx.getPath() + " " + ctx.getDocBase());
  }
   }

and added this class *after* WebXmlReader loading in server.xml.

Not the cleanest way, but we didn't want to put TomCat specific code in all
our web.xmls.

-arun

> -Original Message-
> From: Barbara Nelson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 07, 2000 5:58 PM
> To: '[EMAIL PROTECTED]'
> Subject: Using Jikes with Tomcat 3.2 final
> 
> 
> Has anyone got Tomcat 3.2 final to use Jikes rather than the 
> Sun compiler?
> If so, what did you put in the web.xml file.  We had it 
> working for Tomcat
> 3.1, but I can't seem to get it to work in Tomcat 3.2. I'll 
> start debugging
> it tomorrow, but if someone has already figured it out, that 
> would save me
> some time :-)
> 
> Barbara Nelson.
> 
> 
> 
> 
> 



servlet or page target _top in IE

2000-12-08 Thread Michael Remijan

Hi,

Ok, in Navigator I can use

and have a servlet call a page and have that page not be in a frame.

As usual, Navigator and IE don't agree.  IE ignores this  tag so
the page still appears in the frame.  I also tried
response.setHeader("Window-target", "_top"); but that doesn't work for
Navigator or IE.  So anyone know how to target _top?


Michael J. Remijan
Software Engineer

dChain Commerce
2401 South Neil Street
Champaign, IL 61820
217.398.1860 x249




Re: running init() twice?

2000-12-08 Thread Irina Rubenchik


I'm running on winNT, and I do have print statements in my init(). This
is how I see that it is being called for both frames.
"Parayali, Jayesh 1065" wrote:
 
are you running
on winNT?
try displaying
something inside init()
like System.out.println("now
starting init");
-Original Message-
From:  
Irina Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:  
Thursday, December 07, 2000 9:36 AM
To:
Parayali, Jayesh 1065
Subject:   
Re: running init() twice?
Then how come it is called twice?
"Parayali, Jayesh 1065" wrote:
 
init will be
called only once.. you don't need to set anything.
    -Original
Message-
From:   Irina
Rubenchik [SMTP:[EMAIL PROTECTED]]
Sent:   Thursday,
December 07, 2000 6:37 AM
To:
tomcat-user
Subject:   
running init() twice?
    Hello,
    I
have a web page with 2 frames. Both frames invoke one servlet with
different parameters. When I run this
servlet, it seems like it is
executing the init method twice, once
for each frame. Is there an option
    that
I can set in tomcat, which would make sure that the init method of
my servlet only invoked once?
    Thanks
irina << File: Card for Irina
Rubenchik >>
 << File: Card for Irina Rubenchik >>



begin:vcard 
n:Rubenchik;Irina
tel;pager:888-919-6628
tel;work:212-762-1594
x-mozilla-html:FALSE
org:MSDW;IT
adr:;;750 7th Ave, 14th Floor;New York;NY;10019;USA
version:2.1
email;internet:[EMAIL PROTECTED]
fn:Irina Rubenchik
end:vcard



RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

These lists are great becuase sometimes you need others to provide a new
outlook to the problem

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 11:38 AM
To: [EMAIL PROTECTED]
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


This is off topic but this reminds me that most of the time we
try to solve problems thinking that we have understood the problem
completely and have
an intuition where the solution is.
And we spend lots of effort and time trying to fix the imaginary problem.
Like in
this case, we thought it was due to caching and tried to fix it and it has
turned
out to be with the database part !

I wonder what Adress would have done without this mailing list!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


I guess it appeared to be caching




RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread G.Nagarajan

This is off topic but this reminds me that most of the time we
try to solve problems thinking that we have understood the problem
completely and have
an intuition where the solution is.
And we spend lots of effort and time trying to fix the imaginary problem.
Like in
this case, we thought it was due to caching and tried to fix it and it has
turned
out to be with the database part !

I wonder what Adress would have done without this mailing list!

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


I guess it appeared to be caching





RE: limit threads per servlet in Tomcat

2000-12-08 Thread Kitching Simon

Hi,

I think this answer is to a slightly different 
question than the one that was asked...

The config example below limits the number of
threads handling client requests to 3. However,
any further clients that connect *wait* for an
earlier request to finish (freeing the thread).

The original question asked if a *new object*
could be spawned if the number of concurrent
requests exceeded a certain limit.

Now that I think of it, perhaps Jay's question
is a result of a minor misunderstanding about
tomcat's threads. Just in case, here's a brief
summary of thread-pools in tomcat.

A common misunderstanding is to think that
each servlet implements "runnable", and it is
the servlet's thread(s) that waits for a URL 
specifying itself. This won't work because
(a) a web application can have hundreds of
servlets in it. Allowing (for example) 20 threads
*per servlet* just won't work.
(b) a request can pass through multiple servlets
(via forward or include commands).

Instead, Tomcat creates threads to handle 
incoming requests. When a client connects, the 
thread gets assigned to that client, and runs 
*whatever* servlets need to be run to satisfy the 
request.

In summary, the solution is to use the example
as given below. This way, tomcat is configured 
to handle a certain number of requests in parallel,
no matter what servlets are to be executed. The 
upper bound on the number of threads ensures
that there is an upper bound on the resources
required by tomcat (at least thread-related resources).

There is only ever one instance of each servlet,
and this is all there needs to be, no matter how
many threads are configured in the thread pool.

Cheers,

Simon

> -Original Message-
> From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 08, 2000 5:18 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: limit threads per servlet in Tomcat
> 
> 
> 
> Oh yes there is a way to set it. In the server.xml file. Like this
> 
> 
>  value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
> 
>  name="max_threads"
> value="3"/>
>  name="max_spare_threads"
> value="2"/>
>  name="min_spare_threads"
> value="1" />
> 
> 
> Just find the Connector entry corresponding to the one above and go for
> it. The
> nodes that youll need are the 'thread' named nodes.
> 
> Yes, it'll hit your performance (esp OutOfmemory) if you don't allocate
> enough
> for the possible threads so take care.
> 
> Clifford
> 
> 
> 
> 
> 
> 
> 
> "J Y" <[EMAIL PROTECTED]> on 12/08/2000 03:35:09 PM
> 
> 
> Please respond to [EMAIL PROTECTED]
>  
> 
>  
> 
>  
> 
> 
> 
>   
>   
>   
>  To:  [EMAIL PROTECTED]  
>   
>  cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
>   
>   
>   
>  Subject: limit threads per servlet in Tomcat 
>   
> 
> 
> 
> 
> 
> 
> 
> Hi
> 
> I wish to setup Tomcat to limit threads per servlet, say 20 threads to
> execute in one servlet concurrently. the 21th request would cause the
> Tomecat engine to generate a new servlet instance.
> 
> Is there a way to do it. any comment appriciated.
> 
> Also, what's the performance concerns. is that possible to create a pool
> of
> servelts?
> 
> Thanks
> 
> Jay
> __
> ___
> 
> Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.com
> 
> 
> 
> 
> __
> 
> 
>This communication and any files transmitted with it are confidential
> and
>intended solely for the use of the individual or entity to whom they
> are
>addressed. If you have received it in error please notify the sender or
>[EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The
> unauthorised
>use, disclosure, copying or alteration of this message is forbidden.
>Ladbrokes Limited will not be liable for direct, special, indirect or
>consequential damage as a result of any virus being passed on, or
> arising
>from alteration of the contents of this message by a third party.
> Please note
>that in replying to this mail, you are granting the right for that
> reply to
>be forwarded to any other individual and to be read by a surrogate in
> the
>event that the intended recipient is out of the office or is no lon

RE: limit threads per servlet in Tomcat

2000-12-08 Thread Kitching Simon

Hi Jay,

Why would you want to do this?

As far as I can see, having one object with 21 threads 
is *more* efficient than 21 threads distributed across
two objects.

If you have some kind of lock contention, then using two
objects is not going to improve this; by definition, a lock is
only required when threads need to share data. So if you have
a lock (with inter-thread contention), then you *cannot* create
two objects, as the data-sharing will then not work.

If you don't have lock contention, then why create new
instances? This just seems to me to use up memory

Is there something I'm missing ??

Cheers,

Simon

> -Original Message-
> From: J Y [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, December 08, 2000 4:35 PM
> To:   [EMAIL PROTECTED]
> Subject:  limit threads per servlet in Tomcat
> 
> Hi
> 
> I wish to setup Tomcat to limit threads per servlet, say 20 threads to 
> execute in one servlet concurrently. the 21th request would cause the
> Tomecat engine to generate a new servlet instance.
> 
> Is there a way to do it. any comment appriciated.
> 
> Also, what's the performance concerns. is that possible to create a pool
> of 
> servelts?
> 
> Thanks
> 
> Jay
> __
> ___
> Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.com



Re: limit threads per servlet in Tomcat

2000-12-08 Thread Clifford . Okoro



Oh yes there is a way to set it. In the server.xml file. Like this









Just find the Connector entry corresponding to the one above and go for it. The
nodes that youll need are the 'thread' named nodes.

Yes, it'll hit your performance (esp OutOfmemory) if you don't allocate enough
for the possible threads so take care.

Clifford







"J Y" <[EMAIL PROTECTED]> on 12/08/2000 03:35:09 PM


Please respond to [EMAIL PROTECTED]





  
  
  
 To:  [EMAIL PROTECTED]  
  
 cc:  (bcc: Clifford Okoro/Harrow/Ladbrokes)  
  
  
  
 Subject: limit threads per servlet in Tomcat 
  







Hi

I wish to setup Tomcat to limit threads per servlet, say 20 threads to
execute in one servlet concurrently. the 21th request would cause the
Tomecat engine to generate a new servlet instance.

Is there a way to do it. any comment appriciated.

Also, what's the performance concerns. is that possible to create a pool of
servelts?

Thanks

Jay
_

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




__


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.






RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

I guess it appeared to be caching

-Original Message-
From: NESTORS Andris (AC-Creation) [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 10:57 AM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!! - WE HAVE A WINNER!!!


So it was nothing to do with caching ?

# -Original Message-
# From: Adress, David S. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 3:09 PM
# To: '[EMAIL PROTECTED]'
# Subject: FW: $20 bucks to the 1st person who actually solves my
# problem!!! - WE HAVE A WINNER!!!
# 
# 
# FYI
# 
# -Original Message-
# From: Adress, David S. 
# Sent: Friday, December 08, 2000 10:08 AM
# To: '[EMAIL PROTECTED]'
# Subject: RE: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# BINGO!
# 
# that's itI wasn't doing a commit and I was connecting to 
# access...so
# access doesn't do a commit until it moves to next row...
# 
# What's your address so I can send you the prize!!!
# 
# -Original Message-
# From: Neil H. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 9:00 AM
# To: JRun-Talk
# Subject: Re: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# Make sure you display applet doesn't query the database 
# BEFORE the action
# takes place.  We do this in CF all the time.  Query the info 
# we want then
# make the change, at that point it was correct in the database but we
# requested the info too soon.
# 
# Neil
# 
# - Original Message -
# From: "Adress, David S." <[EMAIL PROTECTED]>
# To: "JRun-Talk" <[EMAIL PROTECTED]>
# Sent: Friday, December 08, 2000 8:29 AM
# Subject: $20 bucks to the 1st person who actually solves my problem!!!
# 
# 
# > I am on this for days and I can't figure out what I'm doing 
# wrong. I will
# > send $20 bucks to 1st person who actually solves my problem.
# >
# > I am using jsp page's to control the layout of my page and 
# servlets to
# spit
# > back
# > table data or to do database transactions.
# >
# > I have a jsp page that displays a list of employees. The jsp page
# > has an include statement to include the servlet to spit out 
# the table.
# > The jsp just handles the general look of the page and the 
# servlet just
# > spits out the table and table html tags. Next to each 
# record I have an add
# > and
# > delete hyperlink. If someone clicks the add link it 
# displays another page
# to
# > add
# > an employee and then the action servlet adds the record and 
# then goes back
# > to the jsp
# > list page. If some one deletes a record it calls a servlet 
# to delete and
# > then the servlet redirects back to the jsp list page. But 
# the list doesn't
# > display the updated data without having me hit the refresh 
# button in the
# > browser.
# >
# > I tried using Tomcat and now am using Jrun and am still 
# having the same
# > problem.
# >
# > I've included all the proper meta tags in the jsp list page 
# not to cache
# but
# > it's not working. I've also tries doing it with 
# reponse.setHeader but it
# > doesn't work either.
# >
# > I've tried sending a random number param to the page
# > ShowList?rnd=Randomnumber it still doesn't work.
# >
# >
# > 
# > Your ad could be here. Monies from ads go to support these lists and
# provide more resources for the community.
# http://www.fusionauthority.com/ads.cfm
# >
# > Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# >
# 
# 
# Your ad could be here. Monies from ads go to support these 
# lists and provide
# more resources for the community. 
# http://www.fusionauthority.com/ads.cfm
# 
# Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 



RE: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread NESTORS Andris (AC-Creation)

So it was nothing to do with caching ?

# -Original Message-
# From: Adress, David S. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 3:09 PM
# To: '[EMAIL PROTECTED]'
# Subject: FW: $20 bucks to the 1st person who actually solves my
# problem!!! - WE HAVE A WINNER!!!
# 
# 
# FYI
# 
# -Original Message-
# From: Adress, David S. 
# Sent: Friday, December 08, 2000 10:08 AM
# To: '[EMAIL PROTECTED]'
# Subject: RE: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# BINGO!
# 
# that's itI wasn't doing a commit and I was connecting to 
# access...so
# access doesn't do a commit until it moves to next row...
# 
# What's your address so I can send you the prize!!!
# 
# -Original Message-
# From: Neil H. [mailto:[EMAIL PROTECTED]]
# Sent: Friday, December 08, 2000 9:00 AM
# To: JRun-Talk
# Subject: Re: $20 bucks to the 1st person who actually solves my
# problem!!!
# 
# 
# Make sure you display applet doesn't query the database 
# BEFORE the action
# takes place.  We do this in CF all the time.  Query the info 
# we want then
# make the change, at that point it was correct in the database but we
# requested the info too soon.
# 
# Neil
# 
# - Original Message -
# From: "Adress, David S." <[EMAIL PROTECTED]>
# To: "JRun-Talk" <[EMAIL PROTECTED]>
# Sent: Friday, December 08, 2000 8:29 AM
# Subject: $20 bucks to the 1st person who actually solves my problem!!!
# 
# 
# > I am on this for days and I can't figure out what I'm doing 
# wrong. I will
# > send $20 bucks to 1st person who actually solves my problem.
# >
# > I am using jsp page's to control the layout of my page and 
# servlets to
# spit
# > back
# > table data or to do database transactions.
# >
# > I have a jsp page that displays a list of employees. The jsp page
# > has an include statement to include the servlet to spit out 
# the table.
# > The jsp just handles the general look of the page and the 
# servlet just
# > spits out the table and table html tags. Next to each 
# record I have an add
# > and
# > delete hyperlink. If someone clicks the add link it 
# displays another page
# to
# > add
# > an employee and then the action servlet adds the record and 
# then goes back
# > to the jsp
# > list page. If some one deletes a record it calls a servlet 
# to delete and
# > then the servlet redirects back to the jsp list page. But 
# the list doesn't
# > display the updated data without having me hit the refresh 
# button in the
# > browser.
# >
# > I tried using Tomcat and now am using Jrun and am still 
# having the same
# > problem.
# >
# > I've included all the proper meta tags in the jsp list page 
# not to cache
# but
# > it's not working. I've also tries doing it with 
# reponse.setHeader but it
# > doesn't work either.
# >
# > I've tried sending a random number param to the page
# > ShowList?rnd=Randomnumber it still doesn't work.
# >
# >
# > 
# > Your ad could be here. Monies from ads go to support these lists and
# provide more resources for the community.
# http://www.fusionauthority.com/ads.cfm
# >
# > Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# > Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# >
# 
# 
# Your ad could be here. Monies from ads go to support these 
# lists and provide
# more resources for the community. 
# http://www.fusionauthority.com/ads.cfm
# 
# Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
# Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
# 



limit threads per servlet in Tomcat

2000-12-08 Thread J Y

Hi

I wish to setup Tomcat to limit threads per servlet, say 20 threads to 
execute in one servlet concurrently. the 21th request would cause the
Tomecat engine to generate a new servlet instance.

Is there a way to do it. any comment appriciated.

Also, what's the performance concerns. is that possible to create a pool of 
servelts?

Thanks

Jay
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Starting Tomcat

2000-12-08 Thread Reto Badertscher

Hello,

I need some help to start Tomcat from KAWA to debug servlets and JSP's. My
Tomcat installation works (with the examples and servlets written by my
own).
I followed the instructions from the KAWA team, but every time when running
a servlet from within KAWA i got the following message:
"org.apache.tomcat.core.ContextManager: method
setInstallDir(Ljava/lang/String;)V not found"
see output.
Until now, the KAWA team couldn't help me and since KAWA belongs to Allaire
it's even worse. I like Tomcat and wouldn't like to change to an other
application server, i also like KAWA.

I hope now that someone from the Tomcat team could possible help me or give
me some hints what's wrong.
(Using JDK1.3, Tomcat 3.2, Windows2000 with sp 1, KAWA 5.0)

Thanks for any help.

Reto Badertscher

Output-Log from KAWA

Wait, Starting the JVMDI Debugger...
Working Directory - C:\jakarta-tomcat
ClassPath -
C:\j2sdkee1.2.1\lib\j2ee.jar;C:\jakarta-tomcat\lib\jasper.jar;C:\jakarta-tom
cat\lib\servlet.jar;C:\jakarta-tomcat\lib\webserver.jar;C:\jakarta-tomcat\li
b\ant.jar;C:\jdk1.3\lib\tools.jar;C:\jakarta-tomcat\webapps\examples\WEB-INF
\classes;.;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;c:\KawaEnt5.0
\kawaclasses.zip
Properties - -classic  -Dtomcat.home=C:\jakarta-tomcat -Xbootclasspath:c:\jd
k1.3\lib\tools.jar;c:\jdk1.3\jre\lib\rt.jar;c:\jdk1.3\jre\lib\i18n.jar;
Debug Start...
java.lang.NoSuchMethodError: org.apache.tomcat.core.ContextManager: method
setInstallDir(Ljava/lang/String;)V not found
at org.apache.tomcat.startup.Tomcat.getConfigFile(Tomcat.java:162)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:185)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
Quit Event...
Debugger Quit...
Exception in thread "main"




Working with the Jakarta NT Service

2000-12-08 Thread Reto Badertscher

Hi Gal,

Setting up Tomcat 3.2 on my Windows System as a service and read youre note:
"Special note: The Tomcat service is using AJPV12 to perform clean shutdown
and you should make sure that an AJPV12 connector is defined in your
server.xml. In the absence of a configured AJPV12 port the Tomcat service
will kill Tomcat abruptly (that is murder it) without giving it a chance to
clean up."

How is this done or where can i get the needed information to do this?

Thanks for your help

Reto Badertscher




Re: This List is over-whelming

2000-12-08 Thread John Marquart

Well - I am glad that there does exist a list-archive, however that
appears to be the tomcat-dev list and not the tomcat-user list.  The view
by date links all appear to be broken as well.

The search function works :)  So I thanks you for the link.

-jamie


On Fri, 8 Dec 2000, Trevor Little wrote:

> Here's a searchable archive
>
> http://w6.metronet.com/~wjm/tomcat/FromFeb11/mail11.html
>
>
> John Marquart wrote:
> >
> > TOMCATers,
> > Is there any way to make a digest form of this list available?  Is
> > there an archive?  I cannot find one mentioned at the jakarta homepage.
> >
> > This list generates a huge amount of traffic - much of it redundant or
> > already contained in the faq.  This is the kind of traffic that will most
> > likely beat your best and brightest into the darkness and turns off
> > novices such as myself.  I have not been on a technical mailing list in
> > quite some-time which responds as consistently to questions already in the
> > FAQ.  The very few non-FAQ threads that I have found on the list have been
> > great and have taught me alot, but the noise-to-signal ratio in general is
> > troubling.
> >
> > Once before there was a discussion about moving/adding a newsgroup /
> > digest format.  The newsgroups idea was shot-down because it would be
> > possible that some individuals would not be able to access it from behind
> > firewalls.  Can we have a digest then?  Most mailing-list software can
> > handle digests - it cannot be that difficult to configure.
> >
> > If such a digest already exists - I apologize, and beg you to add its
> > subscription information to the jakarta.apache.org mailing list pages.
> >
> > thank you,
> > -jamie
> >
> > John "Jamie" Marquart   | This message posted 100% MS free.
> > Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
> > Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265
>


John "Jamie" Marquart   | This message posted 100% MS free.
Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265




Servlet Mapping

2000-12-08 Thread Edson Carlos Ericksson Richter

Hi!

I have several apps from same organization.
To permit one app exchange objects with others, I'm using a unique context,
and then each app have their sub-directory.

Like this:


webapps\app1
webapps\app2
webapps\app3\subdir1

and so on.

Using Resin Web Server, I`ve mapped servlet execution to work calling ROOT
servlets througt following configuration:



Note the '*' before /servlet.

Since this, all the following are the same:

/servlet/LoginServlet
/app1/servlet/LoginServlet
/app2/servlet/LoginServlet

How can I configure Tomcat to work like this (yes, I`ve tried to use
*/servlet/*, but does not work).

All apps are on same context (thus sharing WEB-INF/classes).

TIA,

Edson Carlos Ericksson Richter




AW: AW: Java VJM won't quit?

2000-12-08 Thread Ralph Einfeldt

You can also create endless loops/recursions by misconfiguration.

And there can be a comletly other reason.

Did you try to increase the log level of tomcat?
Did you try to use a debugger?

> -Ursprüngliche Nachricht-
> Von: Matt White [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 8. Dezember 2000 14:19
> An: [EMAIL PROTECTED]
> Betreff: Re: AW: Java VJM won't quit?
> 
> 
> Ralph;
> 
> At first I thought this was the case, but the same them 
> happens with the sample JSP scripts that Tomcat includes. (I 
> checked them all, it happens on all of them.)
> 
> Servlets work just fine, however.
> 
> - Matt
> 
> 
> >>> [EMAIL PROTECTED] 12/07/00 02:09PM >>>
> Two suggestions for a cause:
>   Recursive includes. 
>   Endless loop.



FW: $20 bucks to the 1st person who actually solves my problem!!! - WE HAVE A WINNER!!!

2000-12-08 Thread Adress, David S.

FYI

-Original Message-
From: Adress, David S. 
Sent: Friday, December 08, 2000 10:08 AM
To: '[EMAIL PROTECTED]'
Subject: RE: $20 bucks to the 1st person who actually solves my
problem!!!


BINGO!

that's itI wasn't doing a commit and I was connecting to access...so
access doesn't do a commit until it moves to next row...

What's your address so I can send you the prize!!!

-Original Message-
From: Neil H. [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 9:00 AM
To: JRun-Talk
Subject: Re: $20 bucks to the 1st person who actually solves my
problem!!!


Make sure you display applet doesn't query the database BEFORE the action
takes place.  We do this in CF all the time.  Query the info we want then
make the change, at that point it was correct in the database but we
requested the info too soon.

Neil

- Original Message -
From: "Adress, David S." <[EMAIL PROTECTED]>
To: "JRun-Talk" <[EMAIL PROTECTED]>
Sent: Friday, December 08, 2000 8:29 AM
Subject: $20 bucks to the 1st person who actually solves my problem!!!


> I am on this for days and I can't figure out what I'm doing wrong. I will
> send $20 bucks to 1st person who actually solves my problem.
>
> I am using jsp page's to control the layout of my page and servlets to
spit
> back
> table data or to do database transactions.
>
> I have a jsp page that displays a list of employees. The jsp page
> has an include statement to include the servlet to spit out the table.
> The jsp just handles the general look of the page and the servlet just
> spits out the table and table html tags. Next to each record I have an add
> and
> delete hyperlink. If someone clicks the add link it displays another page
to
> add
> an employee and then the action servlet adds the record and then goes back
> to the jsp
> list page. If some one deletes a record it calls a servlet to delete and
> then the servlet redirects back to the jsp list page. But the list doesn't
> display the updated data without having me hit the refresh button in the
> browser.
>
> I tried using Tomcat and now am using Jrun and am still having the same
> problem.
>
> I've included all the proper meta tags in the jsp list page not to cache
but
> it's not working. I've also tries doing it with reponse.setHeader but it
> doesn't work either.
>
> I've tried sending a random number param to the page
> ShowList?rnd=Randomnumber it still doesn't work.
>
>
> 
> Your ad could be here. Monies from ads go to support these lists and
provide more resources for the community.
http://www.fusionauthority.com/ads.cfm
>
> Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
> Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists
>


Your ad could be here. Monies from ads go to support these lists and provide
more resources for the community. http://www.fusionauthority.com/ads.cfm

Archives: http://www.mail-archive.com/jrun-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists



RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Michael Remijan

David,

This might be worth a shot.  in the page you want reloaded, try adding in
this




this meta tag forces no cache of the page so it is suppose to be refreshed
from the server everytime.  Let me know if this help.

Mike


> -Original Message-
> From: Adress, David S. [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 08, 2000 7:29 AM
> To: '[EMAIL PROTECTED]'; 'JRun-Talk'
> Subject: $20 bucks to the 1st person who actually solves my problem!!!
>
>
> I am on this for days and I can't figure out what I'm doing wrong. I will
> send $20 bucks to 1st person who actually solves my problem.
>
> I am using jsp page's to control the layout of my page and
> servlets to spit
> back
> table data or to do database transactions.
>
> I have a jsp page that displays a list of employees. The jsp page
> has an include statement to include the servlet to spit out the table.
> The jsp just handles the general look of the page and the servlet just
> spits out the table and table html tags. Next to each record I have an add
> and
> delete hyperlink. If someone clicks the add link it displays
> another page to
> add
> an employee and then the action servlet adds the record and then goes back
> to the jsp
> list page. If some one deletes a record it calls a servlet to delete and
> then the servlet redirects back to the jsp list page. But the list doesn't
> display the updated data without having me hit the refresh button in the
> browser.
>
> I tried using Tomcat and now am using Jrun and am still having the same
> problem.
>
> I've included all the proper meta tags in the jsp list page not
> to cache but
> it's not working. I've also tries doing it with reponse.setHeader but it
> doesn't work either.
>
> I've tried sending a random number param to the page
> ShowList?rnd=Randomnumber it still doesn't work.
>
>
>




Form-based authentication apache tomcat

2000-12-08 Thread Andrew Robson

This is my first post to this list so I hope my problem isn't
too stupid. I'm using tomcat 3.2 , mod_jserv, apache on redhat 6.2.
I'm trying to implement form-based authentication. 
I've got the jsp example in Tomcat 3.2 to work when running
through tomcat only. However when I try the same thing through 
apache after submitting username and password I get a 404 for request
/examples/jsp/security/login/null I don't know why the null is getting
appended but it squares with the message tomcat is sending out 
" Ctx( /examples ): 404 R( /examples + /jsp/security/login/null + null) null"

There a couple of peculiar aspects to this. When I try and access a document
in the protected dir through apache there are two attempts to send the
JSessionID cookie to my browser.Suspect the request is getting garbled
becasue of this? Also even though I get the 404 error the j_username and
j_password appear to be getting set correctly because they show up when I run
the Session example. Even more irritating - if I simply try to access the
protected dir rather than a doc within it then everything works fine (perhaps
because the index is a jsp file??).I've had a good go at the configuring the
tomact apache conf file trying the various options in the minimalist guide.
I settled on  
ApJServMount /examples ajpv12://localhost:8007/root
as my best chance because I thought this would delegate 
the handling of all files under this directory to tomcat. 
Does anyone know what I'm doing wrong?
Many thanks
Andrew





Re: This List is over-whelming

2000-12-08 Thread Travis Low

How about a separate list for tomcat-jsp?

T

John Marquart wrote:
> 
> TOMCATers,
> Is there any way to make a digest form of this list available?  Is
> there an archive?  I cannot find one mentioned at the jakarta homepage.
> 
> This list generates a huge amount of traffic - much of it redundant or
> already contained in the faq.  This is the kind of traffic that will most
> likely beat your best and brightest into the darkness and turns off
> novices such as myself.  I have not been on a technical mailing list in
> quite some-time which responds as consistently to questions already in the
> FAQ.  The very few non-FAQ threads that I have found on the list have been
> great and have taught me alot, but the noise-to-signal ratio in general is
> troubling.
> 
> Once before there was a discussion about moving/adding a newsgroup /
> digest format.  The newsgroups idea was shot-down because it would be
> possible that some individuals would not be able to access it from behind
> firewalls.  Can we have a digest then?  Most mailing-list software can
> handle digests - it cannot be that difficult to configure.
> 
> If such a digest already exists - I apologize, and beg you to add its
> subscription information to the jakarta.apache.org mailing list pages.
> 
> thank you,
> -jamie
> 
> John "Jamie" Marquart   | This message posted 100% MS free.
> Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
> Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265

-- Travis Low  
   
   



Re: This List is over-whelming

2000-12-08 Thread Trevor Little

Here's a searchable archive

http://w6.metronet.com/~wjm/tomcat/FromFeb11/mail11.html


John Marquart wrote:
> 
> TOMCATers,
> Is there any way to make a digest form of this list available?  Is
> there an archive?  I cannot find one mentioned at the jakarta homepage.
> 
> This list generates a huge amount of traffic - much of it redundant or
> already contained in the faq.  This is the kind of traffic that will most
> likely beat your best and brightest into the darkness and turns off
> novices such as myself.  I have not been on a technical mailing list in
> quite some-time which responds as consistently to questions already in the
> FAQ.  The very few non-FAQ threads that I have found on the list have been
> great and have taught me alot, but the noise-to-signal ratio in general is
> troubling.
> 
> Once before there was a discussion about moving/adding a newsgroup /
> digest format.  The newsgroups idea was shot-down because it would be
> possible that some individuals would not be able to access it from behind
> firewalls.  Can we have a digest then?  Most mailing-list software can
> handle digests - it cannot be that difficult to configure.
> 
> If such a digest already exists - I apologize, and beg you to add its
> subscription information to the jakarta.apache.org mailing list pages.
> 
> thank you,
> -jamie
> 
> John "Jamie" Marquart   | This message posted 100% MS free.
> Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
> Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265



This List is over-whelming

2000-12-08 Thread John Marquart

TOMCATers,
Is there any way to make a digest form of this list available?  Is
there an archive?  I cannot find one mentioned at the jakarta homepage.


This list generates a huge amount of traffic - much of it redundant or
already contained in the faq.  This is the kind of traffic that will most
likely beat your best and brightest into the darkness and turns off
novices such as myself.  I have not been on a technical mailing list in
quite some-time which responds as consistently to questions already in the
FAQ.  The very few non-FAQ threads that I have found on the list have been
great and have taught me alot, but the noise-to-signal ratio in general is
troubling.

Once before there was a discussion about moving/adding a newsgroup /
digest format.  The newsgroups idea was shot-down because it would be
possible that some individuals would not be able to access it from behind
firewalls.  Can we have a digest then?  Most mailing-list software can
handle digests - it cannot be that difficult to configure.

If such a digest already exists - I apologize, and beg you to add its
subscription information to the jakarta.apache.org mailing list pages.

thank you,
-jamie


John "Jamie" Marquart   | This message posted 100% MS free.
Digital Library SysAdmin|  Work: 812-856-5174   Pager: 812-334-6018
Indiana University Libraries|  ICQ: 1131494 D'net Team:  6265




Configuring Tomcat

2000-12-08 Thread Bryan Burman

Hello,

I'm new to Java development and I recently installed Tomcat 3.1 in order
to have a server to run some servlet tutorials under. However, when I
follow the instructions to configure my system, it calls for a file
called servlets.properties to be present with some server configuration
info that is needed in order to locate the .class files that I have
assembled. It doesn't seem to be recognizing the settings that are in
this file, though, since when I type http://localhost:8080/servlet/...
the file is not found. If I type the name of the main class file it does
display the main page, but then the other pages are not found since it
makes references that are only included in the servlets.properties file.
I have tried several locations for this file, including
doc_root/WEB-INF/servlets. This is the servlets tutorial and
instructions from java.sun.com by the way. Any help would be
appreciated. I'm probably missing something very simple in my setup.

Thanks,

Bryan Burman



RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread horn_ken



This last one sounds odd but does work sometimes, alternatively, when you
send the add/delete command back, make it a POST on the form, IE will
expect this to be dynamic data and not cache. Make the link submit the form
with appropriate parameters.

Ken.






[EMAIL PROTECTED] on 08/12/2000 10:19:25

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Ken X Horn)
Subject:  RE: $20 bucks to the 1st person who actually solves my problem!!!



Save your money - if this works, fine. I've had the same problems a time or
two myself.

First, try putting the meta tags at the end of the page as well as at the
start - something about the way the browsers process the information... I
don't know. I do it, it helps. Secondly, keeping in mind that a redirect is
a browser function and if the above is ineffective, rewrite the page logic
to perform the delete and then spit out the HTML from the display page, as
opposed to redirecting to it.

Hoping this helps,

Chris.

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 December 2000 11:29 PM
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to spit
back
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just
spits out the table and table html tags. Next to each record I have an add
and
delete hyperlink. If someone clicks the add link it displays another page
to
add
an employee and then the action servlet adds the record and then goes back
to the jsp
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache
but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.












RE: 404 error w/ isapi_redirect.dll

2000-12-08 Thread Marc Saegesser

I noticed that the URI your requesting is /examples:8080/jsp/index.html.
That'll never work.  Try something like
http://localhost:8080/examples/jsp/index.html


-Original Message-
From: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 07, 2000 12:05 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Ignacio,

Attached are the IIS log and the isapi.log (excerpt).
Let me know if these are not the logs you intended.

Gracias,

Michael Kintzer

-Original Message-
From: Nacho [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 06, 2000 5:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: 404 error w/ isapi_redirect.dll


Append logs excerpts please, i have the same  conf working like a
charm..

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Kintzer, Michael [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 7 de diciembre de 2000 2:47
> Para: '[EMAIL PROTECTED]'
> Asunto: RE: 404 error w/ isapi_redirect.dll
>
>
> I realize this topic has been covered nearly two months ago,
> but all the
> solutions given here have not worked for my environment.
>
> Here are the details:
> IIS 5.0, W2KPro, Tomcat 3.2
> I've configured everything according to the Tomcat-IIS HowTo
> and confirmed
> the following are working:
>
> -Tomcat hosted jsp/examples work fine (i.e. localhost:8080/)
> -isapi_redirect.dll has the green arrow
> -log files are being generated
> -isapi_redirect.dll is recognizing that it should handle jsp
> requests as
> evidenced by the line GET "/jakarta/isapi_redirect.dll" 200 in my
> SYSTEM32/LogFiles/W3SVC1/ log.
> -I can browse to the jakarta virtual directory
> -Anonymous access is enabled and file permissions on the
> redirect dll are
> also enabled for Full Control for Everyone.
> -the uriworkermap.properties file and the -auto file show
> that the examples
> context is being served by ajp12
>
> According to the HowTo, "200" implies the jakarta virtual
> directory is not
> configured for Execute permissions, but I've checked that and it is.
>
> I've rebooted and restarted both WWWService and AdminService,
> but nothing
> seems to fix the 404 error.
>
> Anybody have an idea for me?
>
> Thanks,
>
> Michael
>
>
>
> -Original Message-
> From: Paul FitzPatrick [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 7:26 AM
> To: [EMAIL PROTECTED]
> Subject: RE: 404 error w/ isapi_redirect.dll
>
>
>
> Stop/Start in the IIS Administrative Tool does not restart the admin
> service.  You have to do this from the control panel or a Dos
> Prompt like
> thus :
>
> net stop "IIS Admin Service"
> net start "IIS Admin Service"
>
> There are dependant services you may need to restart as well
> - this is the
> batch file I use to stop :
>
> @ECHO OFF
> NET STOP "FTP Publishing Service"
> NET STOP "World Wide Web Publishing Service"
> NET STOP "IIS Admin Service"
>
> In reverse order and replace STOP with START to start them all.
>
>
> -Original Message-
> From: David Young [mailto:[EMAIL PROTECTED]]
> Sent: Monday, October 16, 2000 10:11 AM
> To: [EMAIL PROTECTED]
> Subject: Re: 404 error w/ isapi_redirect.dll
>
>
> Stop/start did not do it, but rebooting did!
>
> > From: Kieran Fitzpatrick <[EMAIL PROTECTED]>
> > Reply-To: [EMAIL PROTECTED]
> > Date: Mon, 16 Oct 2000 09:52:55 +1000
> > To: "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> > Subject: RE: 404 error w/ isapi_redirect.dll
> >
> > You might find that stopping and restarting the IIS Admin
> service via the
> > Services applet in Control Panel is sufficient to get this
> working.  At
> > least this seemed to work for me.
> >
> > Good luck,
> >
> > Kieran
> >
> > -Original Message-
> > From: Christian Thomsen [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, 16 October 2000 6:07 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: 404 error w/ isapi_redirect.dll
> >
> >
> > Hi !
> >
> > I had the same problem myself. I solved it by rebooting the
> computer (no
> > kidding !). As I have verified several times, you have to
> do this when you
> > change the IIS/Tomcat property files.
> >
> > I hope it helps,
> >
> > Chris
> >
> >
> > - Original Message -
> > From: "David Young" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Friday, October 13, 2000 4:39 AM
> > Subject: 404 error w/ isapi_redirect.dll
> >
> >
> >> Hello,
> >>
> >> I am trying to get Tomcat working with IIS using the
> isapi_redirect.dll.
> I
> >> followed the How To instructions by Gal Shachor, however
> when I attempt
> to
> >> access http://localhost/examples/, I get a 404 saying it can't find
> >> /jakarta/isapi_redirect.dll.
> >>
> >> - Windows 2000 Professional
> >> - IIS is running on port 80
> >> - Anonymous access is enabled
> >> - I can browse to http://localhost/jakarta/, so the vdir seems OK
> >> - /jakarta vdir is set to allow execution
> >> - Permissions on isapi_redirect.dll allow everyone to exec
> >> - Tomcat is running fine on port 8080, including /examples
> >>
> >>
> >>
> >
>






RE: who added this?

2000-12-08 Thread CPC Livelink Admin


I saw that the other day. It happened to me when I was trying to use the
/servlet/ and I mistyped it as /servlets/.  I was in a development cycle
though, so there may have been other problems, but changing from /servlets/
to /servlet/ mad it stop. Maybe it is something similar?

-Original Message-
From: jun xu sun [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 08, 2000 06:01 PM
To: [EMAIL PROTECTED]
Subject: who added this?


hi, there,
after I compile class and reload jsp again, I always get this error:

java.lang.IllegalStateException: Can't happen - classname is null, who added
this ?
 at java.lang.Throwable.fillInStackTrace(Native Method)
 at java.lang.Throwable.fillInStackTrace(Compiled Code)
 at java.lang.Throwable.(Compiled Code)
 at java.lang.Exception.(Compiled Code)
 at java.lang.RuntimeException.(Compiled Code)
 at java.lang.IllegalStateException.(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.loadServlet(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.init(Compiled Code)
 at org.apache.tomcat.core.Handler.service(Compiled Code)
 at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
 at org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
 at org.apache.tomcat.core.ContextManager.service(Compiled Code)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(Compi
led Code)
 at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled Code)
 at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
 at java.lang.Thread.run(Thread.java:479)

how come to this?
I run tomcat 3.2 final on Solaris 2.7.

rgds
brent






RE: $20 bucks to the 1st person who actually solves my problem!!!

2000-12-08 Thread Chris Stratton

Save your money - if this works, fine. I've had the same problems a time or
two myself.

First, try putting the meta tags at the end of the page as well as at the
start - something about the way the browsers process the information... I
don't know. I do it, it helps. Secondly, keeping in mind that a redirect is
a browser function and if the above is ineffective, rewrite the page logic
to perform the delete and then spit out the HTML from the display page, as
opposed to redirecting to it.

Hoping this helps,

Chris.

-Original Message-
From: Adress, David S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, 8 December 2000 11:29 PM
To: '[EMAIL PROTECTED]'; 'JRun-Talk'
Subject: $20 bucks to the 1st person who actually solves my problem!!!


I am on this for days and I can't figure out what I'm doing wrong. I will
send $20 bucks to 1st person who actually solves my problem.

I am using jsp page's to control the layout of my page and servlets to spit
back
table data or to do database transactions.

I have a jsp page that displays a list of employees. The jsp page
has an include statement to include the servlet to spit out the table.
The jsp just handles the general look of the page and the servlet just
spits out the table and table html tags. Next to each record I have an add
and
delete hyperlink. If someone clicks the add link it displays another page to
add
an employee and then the action servlet adds the record and then goes back
to the jsp
list page. If some one deletes a record it calls a servlet to delete and
then the servlet redirects back to the jsp list page. But the list doesn't
display the updated data without having me hit the refresh button in the
browser.

I tried using Tomcat and now am using Jrun and am still having the same
problem.

I've included all the proper meta tags in the jsp list page not to cache but
it's not working. I've also tries doing it with reponse.setHeader but it
doesn't work either.

I've tried sending a random number param to the page
ShowList?rnd=Randomnumber it still doesn't work.






  1   2   >