RE: How to avoid of displaying the XXXXXXXX file path

2001-06-21 Thread Craig O'Brien

I have been in contact with him as well.I suggested re-routing to a
trash folder.  But in English though.

Craig

His initial reply:  (I told him this didn't work)



sorry ... i take ´Messages with Subject ´HomXpage´ are not accepted here
(HomXpage.HTML.vbs)´

is that ok ?


Mit freundlichen Grüßen / With kind regards
Helmut Serüga
System Administrator
EngineeringNetWorld Internet Services AG
Seidlgasse 21, A-1030 Vienna, Austria
Tel.: +43 (1) 713 48 48-111, Fax: +43 (1) 713 48 48-480
Email: [EMAIL PROTECTED]




-Original Message-
From: mazzen al-najjar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 12:35 PM
To: [EMAIL PROTECTED]
Subject: Re: How to avoid of displaying the  file path


mazzen al-najjar wrote:
 i have already notified all the available contacts for the
 engnetworld.com domain.

if any of you are fluent in german, would you please apprise Helmut
Serüga [EMAIL PROTECTED], the systems administrator at
engnetworld.com, of the situation. i don't think he understood me and i
did not understand his reply.

beachtungen,

mazzy




RE: 100% CPU Usage by upload from Netscape under Windows NT

2001-06-20 Thread Craig O'Brien

Just one more comment on this.  I have experienced a similar situation on
Linux running Tomcat 3.2.1 and Netscape 6.0. (It doesn't matter whether
Netscape 6.0 is local or remote) In coding a page with 1 pixel gifs which
are resized to form lines and boxes (memory saving trick) Everything is fine
on the first load of the page, however, if you refresh the page Netscape 6.0
will continue to request the graphics indefinitely causing very high cpu
drain.  It does not occur when the graphics are sized normally.  I believe
this to be one of many bugs in Netscape 6.0 but this one, unfortunately,
effects the server. This does not occur with earlier versions of Netscape.

Regards,
Craig

-Original Message-
From: Stefan Seifert [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 8:10 AM
To: [EMAIL PROTECTED]
Subject: AW: 100% CPU Usage by upload from Netscape under Windows NT


Assign the netscape.exe-process in nt task manager the lowest priority.
The netscape engine seems to affect tomcat when running on the same
machine. Very ugly.

Stefan

 -Ursprüngliche Nachricht-
 Von: William Kaufman [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 20. Juni 2001 16:00
 An: '[EMAIL PROTECTED]'
 Betreff: RE: 100% CPU Usage by upload from Netscape under Windows NT


 Well, from your description, it sounds like it's a Netscape
 issue, not a
 Tomcat issue.  Which process is taking the CPU?  (Look at the
 process list
 in the Windows Task Manager.)

 If it's actually Tomcat sucking CPU, activate the window
 Tomcat is running
 in, and hit Ctrl+Break: that will give you a list of what's currently
 running.  (Ignore any threads stuck in Object.wait(), obviously,...)

 If it's Netscape, try rummaging around their web site--maybe
 http://help.netscape.com/ ,...

 -- Bill K.

 -Original Message-
 From: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, June 20, 2001 12:10 AM
 To: [EMAIL PROTECTED]
 Subject: 100% CPU Usage by upload from Netscape under Windows NT


 Hi,

 when the user uploads files from Windows-NT-4.0 with Netscape-4.75 the
 CPU usage is 100%. Even when netscape is waiting for the response from
 the server it still has 100% CPU usage. What is the reason
 and can it be
 fixed? With IE we don't have this problem.

 Zsolt

 --
 Zsolt Koppany
 Intland GmbH www.intland.com
 Tel: +49-711-7221873 Fax: +49-711-7221835







RE: Tomcat hangs when my ORACLE database instance is running

2001-06-01 Thread Craig O'Brien

Oracle 8i includes its own apache server and Jserv.  Jserv has a port
conflict with Tomcat's ajp12 (8007 I believe??).  Stop the
Oracle/Apache/Jserv web server and you will not have the problem. It starts
by default when you start Oracle. You must reassign the port for one or the
other if you want both servers running.

Regards,
Craig

-Original Message-
From: Barry Hodges [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 12:55 PM
To: Tomcat (E-mail)
Subject: Tomcat hangs when my ORACLE database instance is running


OS: SunSolaris 2.6
Database: ORACLE 8.1.6 patchset 2
WebServer: Tomcat 3.2.1

I have Tomcat running as a standalone jsp container. If I startup the
database instance before starting Tomcat, Tomcat hangs before the
HttpConnectionHandler and Ajp12ConnectionHandler are started. After this I
am
unable to browse to my jsp applications. Here is the output to the tomcat
console:
Using classpath:
/usr/j2se/src.jar:/usr/j2se/jre/lib/rt.jar:/usr/j2se/tools.jar:/usr/local/ja
karta-tomcat-3.2.1/classes:/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/
local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/li
b/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta
-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/
local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/j2se/lib/tools.jar
Starting tomcat. Check logs/tomcat.log for error messages
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /examples )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /admin )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx(  )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /test )

If I start tomcat before starting my database instance, I can navigate to
all of my pages. However I do get the following error message in my tomcat
console when I navigate to my first jsp page:
2001-06-01 12:46:10 - ContextManager: SocketException reading request,
ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:462)
at java.net.SocketInputStream.available(SocketInputStream.java:137)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:214)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Has anyone encountered this problem before? What can I do to resolve this
conflict?

Barry Hodges
Sr. Engineer, Software
PRIMUS*
mailto:[EMAIL PROTECTED]





RE: Tomcat hangs when my ORACLE database instance is running

2001-06-01 Thread Craig O'Brien

Do a netstat -a from your shell to see where your conflict is. Do it with
nothing running, do it again with only oracle running, stop oracle and do it
again with tomcat running (confirm it is running) and find the conflict. I
am not familiar with Oracle on Solaris.  The Oracle command console for NT
has an easy stop http server button. Oracle 8i is really meant to be run
on its own machine so it conflicts with other server instillations. (IIS,
Apache, etc port 80 etc.)

Look in the bin directory. Look in your etc/services directory to see what
ports are registered. Do a search for JServ. Search the directory tree. You
could always kill the process if you can identify it. If all else fails,
...read the manual.

Oracle works fine without its http server running in my development
environment.

Good luck,
Craig

-Original Message-
From: Barry Hodges [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 1:27 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat hangs when my ORACLE database instance is running


I have changed the ajp12 port for my tomcat to 9009, but I get the same
problem.
How can I stop the Oracle/Apache/Jserv web server but keep my database
instance running?

-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 4:13 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat hangs when my ORACLE database instance is running


Oracle 8i includes its own apache server and Jserv.  Jserv has a port
conflict with Tomcat's ajp12 (8007 I believe??).  Stop the
Oracle/Apache/Jserv web server and you will not have the problem. It starts
by default when you start Oracle. You must reassign the port for one or the
other if you want both servers running.

Regards,
Craig

-Original Message-
From: Barry Hodges [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 01, 2001 12:55 PM
To: Tomcat (E-mail)
Subject: Tomcat hangs when my ORACLE database instance is running


OS: SunSolaris 2.6
Database: ORACLE 8.1.6 patchset 2
WebServer: Tomcat 3.2.1

I have Tomcat running as a standalone jsp container. If I startup the
database instance before starting Tomcat, Tomcat hangs before the
HttpConnectionHandler and Ajp12ConnectionHandler are started. After this I
am
unable to browse to my jsp applications. Here is the output to the tomcat
console:
Using classpath:
/usr/j2se/src.jar:/usr/j2se/jre/lib/rt.jar:/usr/j2se/tools.jar:/usr/local/ja
karta-tomcat-3.2.1/classes:/usr/local/jakarta-tomcat-3.2.1/lib/ant.jar:/usr/
local/jakarta-tomcat-3.2.1/lib/jasper.jar:/usr/local/jakarta-tomcat-3.2.1/li
b/jaxp.jar:/usr/local/jakarta-tomcat-3.2.1/lib/parser.jar:/usr/local/jakarta
-tomcat-3.2.1/lib/servlet.jar:/usr/local/jakarta-tomcat-3.2.1/lib/test:/usr/
local/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/j2se/lib/tools.jar
Starting tomcat. Check logs/tomcat.log for error messages
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /examples )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /admin )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx(  )
2001-06-01 12:49:37 - ContextManager: Adding context Ctx( /test )

If I start tomcat before starting my database instance, I can navigate to
all of my pages. However I do get the following error message in my tomcat
console when I navigate to my first jsp page:
2001-06-01 12:46:10 - ContextManager: SocketException reading request,
ignored - java.net.SocketException: Connection reset by peer
at java.net.PlainSocketImpl.socketAvailable(Native Method)
at java.net.PlainSocketImpl.available(PlainSocketImpl.java:462)
at java.net.SocketInputStream.available(SocketInputStream.java:137)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:214)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

Has anyone encountered this problem before? What can I do to resolve this
conflict?

Barry Hodges
Sr. Engineer, Software
PRIMUS*
mailto:[EMAIL PROTECTED]





Attn: GOMEZ - RE: Apache and Tomcat integration

2001-05-04 Thread Craig O'Brien

Hello GOMEZ Henri,

Everything is working great for me so this is not a call for help.  Mandrake
7.2, as you mention, uses a modified version of Apache they call
Apache-AdvancedExtranetServer version 3.12 (SGI).  I found that in using the
binary mod_jk from the Jakarta site that everything would configure
correctly and produce the message that Ajp13 worker found etc.  All
indications in the logs were that it was working correctly, however, no
forwarding would take place. Adam Fowler mentioned that he had compiled a
version which works for Mandrake 7.2 and indeed it does.  I am under the
impression, perhaps mistakenly so, that differences in the version of Apache
and even the Kernel can effect the mod_jk's performance and as such, it
should be rebuilt for every unique system. I believe this to be our (the
users) responsibility as there are so many variations with Linux.

I only see one version of mod_jk.so available for Linux on the Jakarta
site..? In hindsight, I believe that I have installed a Mandrake 7.2 with
Apache and Tomcat using the original binary and it worked fine. I'm fuzzy as
to whether that Apache had mod_ssl.  Perhaps it was the ssl version that was
needed for my most recent install. (mod_jk.so-eapi)

I really appreciate your hard work with Tomcat.  You and Craig McClanahan
are heroes here.

Best Regards,
Craig O'Brien



-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 12:26 AM
To: [EMAIL PROTECTED]
Subject: RE: Apache and Tomcat integration


You really need to build your own mod_jk for it to work.  It will be
different with nearly every system configuration.  I use
Mandrake 7.2 as
well and the binary from Jakarta-Apache does not work with this system.

What's the problem with binary from Jakarta-Apache which didn't works
under Mandrake ?

I could tell you that the mod_jk.so you found at Jakarta-Apache are
built on Redhat 6.2 systems with latest apache 1.3.19. There is now
each time a mod_jk.so-eapi for those of us using EAPI (ie mod_ssl)
and mod_jk.so-stdapi (standard apache).

Mandrake use in their apache distrib the unsupported (by HTTPD team)
SGI patches which brake many others modules (ie mod_gzip).
But you could still rebuilt the mod_jk from source to make them
works on your specific system.

Our friend Adam Fowler has built one for Mandrake 7.2 which
works and you
can get it at http://willow.cc.edu/docs/adminguide

Regards,
Craig

-Original Message-
From: Tarwinder Dhak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 3:40 AM
To: 'Tomcat'
Subject: Apache and Tomcat integration


Hi all,

I'm trying to get apache and Tomcat 3.2.1 to talk to each other using
mod_jk.so (downloaded from the internet, not compiled) with the ajp13
protocol (on Mandrake 7.2).  I've got Tomcat running as a
stand alone web
server executing servlets and jsp files.  I've also got Apache
loading the
mod_jk.so module while using mod_jk.conf-auto file generated by tomcat.

The problem I've got is that apache doesn't seem to be
relaying any servlet
or jsp requests to tomcat on port 8009.  Instead it just tries
to serve the
pages as normal (I've been using the examples supplied by tomcat).

I think tomcat is definitely listening on port 8009 because if
I telnet or
http request that port it does actually connect (using the netstat -l
command).

This is starting to drive me around the twist!!
Any help would be gratefully appreciated.

Regards

Tarwinder Dhak
[EMAIL PROTECTED]

Transact Group
Development

Legal Disclaimer: Internet email communications are not secure and
therefore the NetInvest Group does not accept legal responsibility for
the contents of this message. Any views or opinions presented
are solely
those of the author and do not necessarily represent those of the
NetInvest Group unless otherwise specifically stated.






RE: Tomcat is not starting - How to trap the startup error?

2001-05-04 Thread Craig O'Brien

Sounds like you are using Windows and double clicking on the startup.bat
file

Open your dos shell.

type java -version enterthis will confirm the presence of your java
environment with your java version

cd \location\of\tomcat\bin  enter
startup.bat enter  (I think its called startup.bat -- confirm this)

your window will stay open and you will get your error messages.

confirm that tomcat is not running by calling the tomcat homepage.
(http://localhost:8080/)  check that a different jdk was not inserted in
your classpath before the one you want. Check that permissions weren't
changed.

Regards,
Craig

-Original Message-
From: Web master [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 10:20 AM
To: [EMAIL PROTECTED]
Subject: Tomcat is not starting - How to trap the startup error?


Hello,

I am using Tomcat as my server and it was working fine till yesterday.
Somebody was in my system to install bunch of stuff and after that, when
I tried to start the server, it starts and the JAVA console comes and it
disappears in a second,. Since I couldn't see, what was in the console,
I couldn't figure out, what is causing the tomcat not to start.

IS there any way, I can find out why tomcat is not starting. I checked
my CLASSPATH , PATH and server.log nothing helps.

Thank you for your time.





RE: Tomcat Performance..

2001-05-02 Thread Craig O'Brien

Hello,

Those are similar numbers to what I have been getting on Intel platforms
with Tomcat3.2.1.  You can boost Tomcat to about 90 pages per second using
ajp13, mod_jk, and reducing the log level to warn rather then info. (of
course your Servlet code makes a difference) There is actually a bug in the
logging with Tomcat 3.2.1 -- info actually gives you debug log level.
According to GOMEZ the ajp13 connector is not fully optimized and mod_jk is
still unfinished.  Apache's performance can be boosted by limiting the
modules that you use and reducing log levels as well.  Interestingly, I was
testing a servlet which displayed date, session variables, and generated a
random password and clocked in at about 88 pages per second with mod_jk.
When I direct connected to Tomcat I was able to get 463 pages per second
with no errors so there is allot of potential there. I was able to top out
at 1107 pages per second on that servlet with Resin. Consider your
bandwidth, of course, 50-60 pages per second can easily overwhelm a T1 line.
Indeed with a standard 45k+ page you would be lucky to anywhere near 25.

Regards,
Craig

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 02, 2001 8:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat Performance..


Kief Morris wrote:


 It sounds like you tested Tomcat on an HP, and Tomcat on an x86 with
 Solaris 8, vs. iPlanet on an Ultra running Solaris 2.6. You are then
guessing
 that the difference in performance is entirely due to the servlet engine?

 Have you tried testing Tomcat vs. iPlanet on *identical* hardware/OS
 platforms?



  Well, alas I haven't been able to talk the iPlanet folks into building
iWS for me on Solaris x86 yet so I can't test it that way. In testing
just straight normal everyday static HTML serving between Apache and
iPlanet between the two platforms I get a more expected performance
difference. Where the iWS server can spit back something like 200
requests per second and the Apache server can spit back 170 requests per
second. That would be what I expect. I've got a couple of other projects
I've got to get done here today and then I was planning on building the
Apache/Tomcat setup over on the Ultra 60 to see if the performance
numbers are still skewed as much on the same platform.


--
Steve Brunton   [EMAIL PROTECTED]  Phone: 404-827-2756
Chief Engineer Enterprise SystemsOne CNN Center, Atlanta GA
CNN Internet Technologies  ICBM: 84W 23' 45 33N 45' 29
* There's too much blood in my alcohol system. *




RE: Apache and Tomcat integration

2001-05-01 Thread Craig O'Brien

You really need to build your own mod_jk for it to work.  It will be
different with nearly every system configuration.  I use Mandrake 7.2 as
well and the binary from Jakarta-Apache does not work with this system.

Our friend Adam Fowler has built one for Mandrake 7.2 which works and you
can get it at http://willow.cc.edu/docs/adminguide

Regards,
Craig

-Original Message-
From: Tarwinder Dhak [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 01, 2001 3:40 AM
To: 'Tomcat'
Subject: Apache and Tomcat integration


Hi all,

I'm trying to get apache and Tomcat 3.2.1 to talk to each other using
mod_jk.so (downloaded from the internet, not compiled) with the ajp13
protocol (on Mandrake 7.2).  I've got Tomcat running as a stand alone web
server executing servlets and jsp files.  I've also got Apache loading the
mod_jk.so module while using mod_jk.conf-auto file generated by tomcat.

The problem I've got is that apache doesn't seem to be relaying any servlet
or jsp requests to tomcat on port 8009.  Instead it just tries to serve the
pages as normal (I've been using the examples supplied by tomcat).

I think tomcat is definitely listening on port 8009 because if I telnet or
http request that port it does actually connect (using the netstat -l
command).

This is starting to drive me around the twist!!
Any help would be gratefully appreciated.

Regards

Tarwinder Dhak
[EMAIL PROTECTED]

Transact Group
Development

Legal Disclaimer: Internet email communications are not secure and
therefore the NetInvest Group does not accept legal responsibility for
the contents of this message. Any views or opinions presented are solely
those of the author and do not necessarily represent those of the
NetInvest Group unless otherwise specifically stated.





RE: Directory structure blocking

2001-04-27 Thread Craig O'Brien

Hello,

I answered this question yesterday.



This is the default behavior for apache web server configured with mod_dir.
(standard configuration) If there is no Directory Index page found it will
display a listing of the contents of the directory.

Either place a default index.html page in the directory or modify the apache
httpd.conf file to route to the page that you desire. You can have many
pages listed separated by a space.

eg:
DirectoryIndex index.html index.jsp index.php yourdesiredpage.whatever

Apache will choose the first one it encounters so add yours to the end. This
only takes effect after you restart apache.

Comment out mod_dir, and mod_autoindex(if you have it) to turn this behavior
off completely.

-

you can also use a .htaccess file to modify a directory(if active), or
modify individual directives in the httpd.conf file.

You have amazing control of your site, redirects, accesses, icons, etc.
simply with apache.

Regards,
Craig



-Original Message-
From: Brahmanand Gannur [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 6:15 AM
To: [EMAIL PROTECTED]
Subject: Directory structure blocking



Hi everone
Can u help me in blocking directory contents of webapplication
for tomcat3.2.1 with apache1.3.5 and solaris 2.7

we need it as no one should be able to see the directory structure

thanks in advance





RE: TOMCAT and APACHE

2001-04-27 Thread Craig O'Brien

Hello,

I don't use mod_jserve but use mod_jk.so which is faster.  However, Perhaps
your new directory was created by root and the apache group needs to be
given access explicitly.

Just a thought.

Regards,
Craig

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 27, 2001 7:18 AM
To: [EMAIL PROTECTED]
Subject: TOMCAT and APACHE


Hi experts,

I have some problems in integrating TOMCAT and APACHE like it is described
in your Minimalistic User's Guide.

My Apache Webserver Version 1.3.14-6 is running on a SUSE 7.1 - LINUX
machine and it works fine for itself.
The Tomcat Version is 3.1-70 and also this application works fine as a
stand-alone server, i.e. I get contact to the servlets via the 8080 port.

Now I tried to integrate both components:

  (1) I appended the /conf/tomcat-apache.conf to the httpd.conf

   A restart of the httpd failed, the error log said that the
mod_jserv.so couldn't be found in the directory: /usr/local/httpd/libexec

   There was indeed no such directory!?
  (2) So I created it and copied the existing mod_jserv.so - file from the
directory /usr/lib/apache to /usr/local/httpd/libexec

   A restart of the httpd was now successfull but the apache webserver
didn't answer on requests !?
   The error-log file said:

   [Fri Apr 20 19:14:02 2001] [emerg] JServ: Error setting defaults:
ApJServLogFile: file '/usr/local/httpd/./logs/mod_jserv.log' can't be opened
   [Fri Apr 20 19:14:02 2001] [crit] (2)No such file or directory:
Apache JServ encountered a fatal error; check your ApJServLogFile for
details if none are present in this file.  Exiting.

  (3) Following chapter Obtaining the Jserv Module in your Minimalistic
User's Guide  I downloaded the tomcat source jakarta-tomcat-3.1.1-src
   and executed the build command apxs -c -o mod_jserv.so *.c.

   The building of mod_jserv.so was no problem and successfully.

   Then I copied the new mod_jserv.so - file to /usr/local/httpd/libexec

   A restart of the httpd was again successfull but the apache webserver
didn't answer on requests again!?
   The error-log file said the same:

   [Fri Apr 20 19:14:02 2001] [emerg] JServ: Error setting defaults:
ApJServLogFile: file '/usr/local/httpd/./logs/mod_jserv.log' can't be opened
   [Fri Apr 20 19:14:02 2001] [crit] (2)No such file or directory:
Apache JServ encountered a fatal error; check your ApJServLogFile for
details if none are present in this file.  Exiting.



What shall I do?
I hope you can help me


Thanks a lot
J. Harjes


--
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net





RE: Tomcat and IIS

2001-04-25 Thread Craig O'Brien

Hello Nottebrok,

Are the examples working with port 8080?
http://localhost:8080/examples/jsp/index.html
If not, are you using an SDK as jsps need the compiler javac? Check your
classpaths.

Your redirect appears to be working but you have a page/server config error.

If everything is working with port 8080
Check your permissions.  It looks like you are getting a socket error port
2380.  Have you reassigned anything?  Do you also perhaps have a database
there? I am not near my NT machine but that port rings a bell.  DB2, Oracle,
MSSQL? Perhaps an old Apache with JServe instillation which came bundled
with Oracle.(if that's the case stop that server and try again)

Good luck,
Craig


-Original Message-
From: Nottebrok, Guido [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 7:48 AM
To: [EMAIL PROTECTED]
Subject: Tomcat and IIS


Hallo,

we have installed Tomcat Version 3.2.1 to run with IIS.
The setup is done according to the tomcat documentation.

In IIS we have the green arrow telling that everything should be o.k.

When trying to access the tomcat examples with
http://localhost/examples/jsp/index.html
we get the error that the requested page can not be shown.

isapi logfile:
-
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[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_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[/examples/jsp/index.html] is points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
\jakarta\isapi_redirect.dll
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (430)]: In jk_uri_worker_map_t::map_uri_to_worker,
wrong parameters
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [\jakarta\isapi_redirect.dll] is
not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if
[\jakarta\isapi_redirect.dll] is points to the web-inf directory
[jk_isapi_plugin.c (517)]: HttpExtensionProc started
[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_isapi_plugin.c (539)]: HttpExtensionProc got a worker for name ajp12
[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 = 2380
[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_isapi_plugin.c (554)]: HttpExtensionProc error, service() failed
[jk_ajp12_worker.c (163)]: Into jk_endpoint_t::done

winnt\system32\LogFiles\W3SVC1:
-
#Software: Microsoft Internet Information Server 4.0
#Version: 1.0
#Date: 2001-04-25 14:41:12
#Fields: time c-ip cs-method cs-uri-stem sc-status
14:41:11 164.28.39.80 GET /examples/jsp/index.html 500
14:42:10 164.28.39.80 GET / 404
14:42:21 164.28.39.80 GET /postinfo.html 302
14:42:21 164.28.39.80 GET /postinfo.html/ 403
14:42:28 164.28.39.80 GET / 404
14:43:05 164.28.39.80 GET / 404
14:45:48 164.28.39.80 GET /examples/jsp/index.html 500
14:48:23 164.28.39.80 GET /examples/jsp/index.html 500

Any ideas?

Guido Nottebrok






RE: Question on unsubscribe?

2001-04-24 Thread Craig O'Brien

Look at the header of the email that you receive.  You are subscribed by the
email address in the Delivered-To field.  Unsubscribe using that email
address.

You are using: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0)   View
options to see the header.

Regards,
Craig

  -Original Message-
 From: Burkeman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 24, 2001 6:37 AM
 To:   [EMAIL PROTECTED]
 Subject:  Question on unsubscribe?

 Can some one give the email address to unsubscribe?  I sent to
[EMAIL PROTECTED] and they said I am not a member
of that list, however, I continue to get postings!





RE: to many tomcat processes!! AAH!!

2001-04-23 Thread Craig O'Brien

I do not know why you would want to do this other then for testing but --
change your startup script for tomcat to include the option java -classic
  and you will be using green threads.  Be aware that it is now easier
to create a deadlock situation. I believe that it would be a big mistake to
deploy a system with green threads.  My system incorrectly reports that I am
using 217 meg of ram but that is incorrect, It is actually using 74 meg of
ram.(with tomcat running) Use gps for a more accurate reading. Pushing the
server hard during testing does not increase the ram used significantly.
(cpu usage reflects as you would expect)

All those processes that you are seeing are simply sleeping threads.  They
are NOT using any resources and are being incorrectly reported as consuming
processes.  This is the very compelling reason that you would want to use
java in the first place. Native multi-threading. You have a thread pool
ready to respond without the overhead of creating new processes on demand.

Good luck,
Craig

Let us know what you find out.

-Original Message-
From: Wolle [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 4:30 AM
To: [EMAIL PROTECTED]
Subject: Re: to many tomcat processes!! AAH!!


Hei,
i use JDK 1.3

Saurabh Shukla wrote:

 which JDK are you using ?

 Shuklix

 -Original Message-
 From: Georges Boutros [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 18, 2001 1:34 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: to many tomcat processes!! AAH!!

 does anyone know how can i force java to use green threads?

 thanks

 -Original Message-
 From: Ansgar W. Konermann [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, April 12, 2001 8:31 PM
 To: [EMAIL PROTECTED]
 Subject: Re: to many tomcat processes!! AAH!!

 Hi,

 maybe the many processes are because jdk1.2 and up use native threads
 (AFAIK, 1.1 used green threads, i. e. a threading package implemented
 in java itself).

 With 1.2+, every java thread is a native OS thread and therefor gets
 listed by ps. Have you tried forcing java to use green threads? I'm
 quite sure that it is possible (RTFM).

 --
 Best regards,

 Ansgar W. Konermann
 eMail: [EMAIL PROTECTED]

 --- Hello, I am a message footer. -

--
__
Gruss,
Wolle

---
  [EMAIL PROTECTED]






RE: seems as though a servlet engine would have a little clearer documentation on getting servlets running

2001-04-23 Thread Craig O'Brien

Just call your servlet as  http://hostname/servlet/yourservletname

Perhaps simpler then you thought. You will never call the WEB-INF directory
in a url. That is for internal routing.  You didn't tell apache to route to
a WEB-INF directory did you?

If that doesn't work simplify more and call
http://hostname:8080/servlet/yourservletname that will bypass mod_jk.  If
that isn't working your servlet is not placed correctly or you are missing
the servlet.jar.  Put your servlet in the same directory that you find
snoopServlet.

Regards,
Craig

-Original Message-
From: Dan  Sharon [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 10:56 AM
To: [EMAIL PROTECTED]
Subject: seems as though a servlet engine would have a little clearer
documentation on getting servlets running


ok,
install tomcat,
jsps are workin,
made new context,
jsps are workin in it,
write a servlet(5 min),
try to get servlet working(5 hr),
read documentation,
it says put servlets in WEB-INF/classes dir, did that
it says add servlet to WEB-INF/web.xml, did that
web-app
servlet
servlet-nameservtest.class/servlet-name
servlet-classservtest.class/servlet-class
/servlet
/web-app
restart tomcat(can't believe this has to be done everytime a servlet
gets added or changed), did that
it says call your servlet with
http://thehost/WEB-APP/servlet/theservletname;
did that
response: 404
there's no servlet directory, kinda makes sense, but i thought mod_jk
was taking care of that.  HMM.
so now that i've followed the instructions and that didn't work, i make
a servlet directory and add my servlet there.  web browser tries to
download and save it to my disk, no display.
i'm sure that this being a servlet engine, it would probably serve
servlets, otherwise that would be really embarrasing for the
programmers, so, anyone got any suggestions?






RE: ArrayList vs. Vector

2001-04-23 Thread Craig O'Brien

An ArrayList will provide better performance but it is not synchronized.
ArrayLists are part of the Java 2 framework.  As long as you do not need
your application to perform in a pre Java 2 environment it is my opinion
that the ArrayList is an attractive option.  The methods of dealing with
ArrayLists are similar to other data types throughout the collections
framework and as such you will have the ability to change your data type in
the future with less effort.  For instance if you decide that you need a Map
or Tree.  That is the goal at least.

Be aware that it is not synchronized and the programmer must provide their
own synchronized methods should they be needed.

Regards,
Craig
Sun Certified Java Programmer


-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 12:37 PM
To: Tomcat User List
Subject: ArrayList vs. Vector


I use Vectors in some parts of my Web app and I'm thinking about using
ArrayLists instead...

Any caveats to using them in a Web app environment?

Hunter





RE: ArrayList vs. Vector

2001-04-23 Thread Craig O'Brien

Hello,

I'm not really sure why you are doing what you are doing but if you need key
value pairs that can be called arbitrarily you may consider a HashMap rather
then a HashTable.  Perhaps you are creating a data or object pool..?  If
everything is truly read only by the servlets it doesn't seem to me that
you would need the synchronization overhead except for that brief moment
when you update the data structure.  In any case a HashMap is fail-fast so
if the data changes after an iterator object is created and before it
finishes it's task the iterator will safely fail -- you could easily write
into your code to throw and catch an error there and have the process loop
by using a flag during updates. I would imagine were talking about
milliseconds.  Give your unique update thread a high priority --
(Thread.NORM_PRIORITY + 2)

Are the individual elements of various object types?  If not perhaps a
simple array would be the quickest as you would eliminate the casting
overhead. If you order your array you can use a binary search or simply
create a position index to call elements directly from their position in the
array.  It sounds like the size of your data object is constant.  If you are
iterating through your data an array would certainly be faster. Usually
simpler is better.

I wonder how much overhead creating an iterator costs?  Perhaps create an
iterator pool.

Just a few thoughts.  Sounds like you aren't having any troubles.

Best Regards,
Craig

Oh yeahow's your tomcat?  Mine are doing great.

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 3:54 PM
To: [EMAIL PROTECTED]
Subject: Re: ArrayList vs. Vector


Ok, that makes sense, but I don't think it applies to my case. Most of the
caching I'm doing is read-only for the servlet. I pull the info out of my
database during the init and spawn a thread to refresh the Hashtable every
six hours. By refresh, I mean I'm creating a new Hashtable object and
replacing the current cache with the new object. I'm assuming that replacing
the entire object won't wreak havoc on any current accesses -- that the
replace will wait until any current synchronized accesses have finished.
That may be a bad assumption.

In the one instance in my code where I'm doing something similar to what you
have, I'm still pulling info from my database to create the object to be
cached. If two requests come in nearly simultaneously, they'll both pull the
same info from my database and the second will overwrite the first in my
cache. No big deal, because they both contain the same info/same key. I'm
not sure if synchronizing the whole block is worthwhile in this case. Any
strong argument why I should?

Thanks,
--jeff

- Original Message -
From: William Kaufman [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 2:39 PM
Subject: RE: ArrayList vs. Vector


  I still use Vectors/Hashtables when I need thread safety, though. Does
  anyone know if it's faster/better to wrap one of the new
  collection classes in a Collections.synchronized* class instead?

 I'd expect Vector/Hashtable to be a little faster: they subclass
 ArrayList/HashMap, where synchronized Collections are proxies.

 But, really, neither one works.

 Any places you'd use a collection, it's usually insufficient to
synchronize
 the specific access: what you need to do is synchronize a block of
accesses.
 For instance, here's a simple cache of Foo objects (each identified by
 name), implemented with a Hashtable:

 Hashtable fooCache = new Hashtable();

 public Foo getFoo(String name)
 {
   Foo foo = (Foo)fooCache.get(name);
   if (foo == null)
   {
 foo = new Foo(name);
 fooCache.put(name, foo);
   }
   return foo;
 }

 If you only want one Foo allocated per name--always--this caching
mechanism
 will break down.  You'd need to synchronize around _all_ accesses to the
 fooCache, whether it's a Hashtable or a HashMap.  In other words,
 synchronizing the table's access methods don't buy you anything--you need
to
 synchronize _across_ calls.  And once you synchronize it correctly,
 synchronizing specific methods just slows you down.

 So, you should implement the above code as,

 HashMap fooCache = new HashMap();

 public Foo getFoo(String name)
 {
   synchronized (fooCache)
   {
 Foo foo = (Foo)fooCache.get(name);
 if (foo == null)
 {
   foo = new Foo(name);
   fooCache.put(name, foo);
 }
 return foo;
   }
 }

 This may be a peculiar case for you, but you're probably doing something
 which needs similar synchronization--whatever kind of collection you're
 using.

 -- Bill K.


  -Original Message-
  From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
  Sent: Monday, April 23, 2001 2:06 PM
  To: [EMAIL PROTECTED]
  Subject: Re: ArrayList vs. Vector
 
 
  I 

RE: Tomcat hangs under win 98

2001-04-23 Thread Craig O'Brien

What do you mean?  If you mean that the dos window stops printing info at
that point, then you are up and running right there.  With windows, that
is your system.out.  Check your tomcat at that point.  http://localhost:8080
I think that you will find that you are up and running.  With windows that
is standard operation.  You can get rid of the window by changing the start
up script to call Java via   javaw instead of java.  Make sense..?  This has
nothing to do with your DSL connection.  Just that the window stays open
which is helpful when you are starting a new instillation.  All of your
system messages appear there. errors etc.

Good luck,
Craig

-Original Message-
From: Michael Burke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 6:28 PM
To: '[EMAIL PROTECTED]'
Subject: Tomcat hangs under win 98


When I start tmcat under win 98 it hangs after the linePooltcpConnection:
StartingAjp12ConnectionHandler on 8007 , my internet connection is a dsl
line in case that has anything to do with it. Any suggestions would be
appreciated.





RE: ArrayList vs. Vector

2001-04-23 Thread Craig O'Brien

Hey Jeff,

Thanks for the shout out.  I kind of caught the beginning and end of the
conversation and realized after I posted that I was a little bit out of
the conversation I kind of obsess about performance at times but it is
always interesting to see what people think. (that's what happens when
you're head down too much) Honestly Vectors and HashTables are probably fine
and plenty fast for most applications, especially web apps with limited
size.  I would think that you are already  %600 faster then CGI so what the
hey... we're only talking about a hundred milliseconds anyway.

Good luck with your endeavors,

Fraternally,
Craig

-Original Message-
From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 9:35 PM
To: [EMAIL PROTECTED]
Subject: Re: ArrayList vs. Vector


Hi Craig,

Thanks. I may re-investigate the necessity of using a synchronized object.
Mostly, I'm using Hashtables just in case -- because they're class
variables. I've moved all my instance variables to ArrayLists and HashMaps.

As for arrays, if I were trying to squeak out a little more performance I'd
definitely consider them. However, I was able to achieve 54 inserts/sec
running the code the way it is on a crappy little Linux box (128MB RAM, IDE
drive, 430MHz Celeron, DB + Webserver + Tomcat all on the same machine). So,
I'm pretty happy with the speed -- at least, happy enough not to take on
arrays as opposed to Lists and Maps.  :)Besides, there is one cache I'm
using that could grow during runtime before doing a full refresh from the
database.

Thanks,
--jeff

- Original Message -
From: Craig O'Brien [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, April 23, 2001 4:39 PM
Subject: RE: ArrayList vs. Vector


 Hello,

 I'm not really sure why you are doing what you are doing but if you need
key
 value pairs that can be called arbitrarily you may consider a HashMap
rather
 then a HashTable.  Perhaps you are creating a data or object pool..?  If
 everything is truly read only by the servlets it doesn't seem to me that
 you would need the synchronization overhead except for that brief moment
 when you update the data structure.  In any case a HashMap is fail-fast so
 if the data changes after an iterator object is created and before it
 finishes it's task the iterator will safely fail -- you could easily write
 into your code to throw and catch an error there and have the process loop
 by using a flag during updates. I would imagine were talking about
 milliseconds.  Give your unique update thread a high priority --
 (Thread.NORM_PRIORITY + 2)

 Are the individual elements of various object types?  If not perhaps a
 simple array would be the quickest as you would eliminate the casting
 overhead. If you order your array you can use a binary search or simply
 create a position index to call elements directly from their position in
the
 array.  It sounds like the size of your data object is constant.  If you
are
 iterating through your data an array would certainly be faster. Usually
 simpler is better.

 I wonder how much overhead creating an iterator costs?  Perhaps create an
 iterator pool.

 Just a few thoughts.  Sounds like you aren't having any troubles.

 Best Regards,
 Craig

 Oh yeahow's your tomcat?  Mine are doing great.

 -Original Message-
 From: Jeff Kilbride [mailto:[EMAIL PROTECTED]]
 Sent: Monday, April 23, 2001 3:54 PM
 To: [EMAIL PROTECTED]
 Subject: Re: ArrayList vs. Vector


 Ok, that makes sense, but I don't think it applies to my case. Most of the
 caching I'm doing is read-only for the servlet. I pull the info out of my
 database during the init and spawn a thread to refresh the Hashtable every
 six hours. By refresh, I mean I'm creating a new Hashtable object and
 replacing the current cache with the new object. I'm assuming that
replacing
 the entire object won't wreak havoc on any current accesses -- that the
 replace will wait until any current synchronized accesses have finished.
 That may be a bad assumption.

 In the one instance in my code where I'm doing something similar to what
you
 have, I'm still pulling info from my database to create the object to be
 cached. If two requests come in nearly simultaneously, they'll both pull
the
 same info from my database and the second will overwrite the first in my
 cache. No big deal, because they both contain the same info/same key. I'm
 not sure if synchronizing the whole block is worthwhile in this case. Any
 strong argument why I should?

 Thanks,
 --jeff

 - Original Message -
 From: William Kaufman [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, April 23, 2001 2:39 PM
 Subject: RE: ArrayList vs. Vector


   I still use Vectors/Hashtables when I need thread safety, though. Does
   anyone know if it's faster/better to wrap one of the new
   collection classes in a Collections.synchronized* class instead?
 
  I'd expect Vector/Hashtable to be a little faster: they subclass
  ArrayList

RE: Tomcat Windows 2000

2001-04-22 Thread Craig O'Brien

More information is needed if anyone is to help you.

The documentation in the tomcat download is very good.  Tomcat works well
with Windows 2000 and IIS and many other operating systems.  Tomcat is 100%
java.

If you haven't found the documentation it is in the doc directory.  Print it
out and follow it explicitly. (print out the documentation, use a pencil to
mark your steps.) If you have problems relay the steps you have taken and
what error messages you are getting. The more detail the better.

Regards,
Craig


-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 5:00 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Tomcat  Windows 2000




  -Original Message-
 From: test test
 Sent: Thursday, 19 April 2001 15:45
 To:   '[EMAIL PROTECTED]'
 Subject:  Tomcat   Windows 2000

 hello

 Can anybody please tell me how I can get Tomcat to work with Windows 2000
 (using IIS web server).

 I have searched the user archives - similar questions have been raised but
 I can't see the answers.

 Please help

 Many thanks

 Hamant




RE: Accessing HTML files in the apache root from servlets

2001-04-22 Thread Craig O'Brien

If you are ever in doubt, use the complete path to your html file.
(http://www.yourdomain/yourpage.html)  That should always work.  Otherwise
you may have a mapping problem with your mod_jk or ..?  You can access your
graphics like this as well, ... Hell, even put your graphics on a different
server for better performance.

If your directory is a mess you are only looking for trouble.  It WILL get
worse over time.

Regards,
Craig

-Original Message-
From: Iain Lowe [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 5:52 PM
To: [EMAIL PROTECTED]
Subject: RE: Accessing HTML files in the apache root from servlets


You could try

FileReader in = new
FileReader(this.getServletContext().getRealPath("/inputfile.html"))

or something along those lines.

Hope this helps :)

-Original Message-
From: Matthias Hupp [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 8:45 PM
To: [EMAIL PROTECTED]
Subject: Accessing HTML files in the apache root from servlets


Greetings everyone,
I am going mad over this: I have a servlet directory structure in my apache
virtual host document root. Servlets can be reached by typing
"www.../servlet/ServletName. I am trying to access a html file from that
servlet as input data, it could be  just any type of text file. Its name is
passed to the servlet in the URL:
www.../servlet/ServletName?search=inputfile.html. I would like to place that
file somewhere in the apache document root, ideally in the same directory as
the classes.
But tomcat (or the JRE from the Sun JDK, not sure) looks for that file in
the server system root if I do not specify the correct (system) path  -
/usr/local/... - in the URL. First, this path is very very long, and second,
users shouldn't be bothered with the directory structure of my system (it is
really ugly).
BTW, the software versions of the tomcat engine and the JDK are, AFAIR, the
latest respective releases.
So, could anybody tell me how to tell tomcat (or the JRE) to consider the
web-documents directory as their root? Any help is greatly appreciated.

Thx in advance, Matthias





RE: Tomcat Windows NT IIS

2001-04-22 Thread Craig O'Brien

Good,

So you have tomcat running and can view the JSP and Servlet examples using
port 8080.  (localhost:8080/)  Do not add any contexts yet.  First you want
to get the isapi_redirect.dll installed so that you can call the examples
directly without referencing the port. If you haven't downloaded this yet
get the binary from the apache site.  There are several steps to follow in
the IIS how to instructions.  Again follow them explicitly.  You will need
to register the isapi _redirect.dll with IIs, modify your registry (be very
careful!!), create a directory to place the isapi redirect into, and modify
your workers properties file. (tomcat/conf/workersproperties)  I am doing
this by memory so follow your instructions carefully. Most people make their
errors in the registry settings. Again it is so much easier if you print out
the instructions.

If you want to test some jsps or servlets that you have already made before
you have the isapi working, place the jsps into the ROOT directory and call
them with (localhost:8080/yourjspname.jsp).  Servlets must be placed in the
WEB_INF/classes directory and are referenced by
(localhost:8080/servlet/yourservletname_noextention).  Spend a little time
getting familiar with the directories.  All of your web apps go under the
webapps/ROOT directory. You will know if isapi is working when you can drop
the port reference and still get them.

Sounds like you are getting there. Go one small step at a time, test your
results, then proceed.  By the time you install tomcat for the 3rd or 4th
time it will only take 30 minutes.  Print out all of the conf files.  All
your tomcat configuration is done through modifying them. They are well
documented with comments.

Tomcat adheres strictly to the Sun jsp/servlet APIs so those documents are
worth getting familiar with as well.

Good luck,
Craig

It's late here, I'm out for the night.




-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 8:35 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat  Windows NT  IIS


Craig

Thank you for your advice.

I have been through the instructions on IIS (tomcat-iis-howto.html).

However, I still cannot get the examples to work under IIS (they work fine
with Tomcat),

I have been through the trouble shooting section with no luck.

I have not added any contexts as I can't get the examples to work.

Not sure what to do now, please help !

Thanks

Hamant



-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Monday, 23 April 2001 11:37
To: [EMAIL PROTECTED]
Subject: RE: Tomcat  Windows 2000


More information is needed if anyone is to help you.

The documentation in the tomcat download is very good.  Tomcat works well
with Windows 2000 and IIS and many other operating systems.  Tomcat is 100%
java.

If you haven't found the documentation it is in the doc directory.  Print it
out and follow it explicitly. (print out the documentation, use a pencil to
mark your steps.) If you have problems relay the steps you have taken and
what error messages you are getting. The more detail the better.

Regards,
Craig


-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 5:00 PM
To: '[EMAIL PROTECTED]'
Subject: FW: Tomcat  Windows 2000




  -Original Message-
 From: test test
 Sent: Thursday, 19 April 2001 15:45
 To:   '[EMAIL PROTECTED]'
 Subject:  Tomcat   Windows 2000

 hello

 Can anybody please tell me how I can get Tomcat to work with Windows 2000
 (using IIS web server).

 I have searched the user archives - similar questions have been raised but
 I can't see the answers.

 Please help

 Many thanks

 Hamant




RE: Tomcat mod_jk very slow if used with apache

2001-04-20 Thread Craig O'Brien

VERY COOL guys!!  What a nice letter to wake up to.

I made the change mentioned and my server's performance went from 14.51
pages per second to 82 pages per second.  Still if I access tomcat directly
I get over 200 pages per second but that is much better.

Any other ideas?

Thanks,
Craig

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 4:51 AM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat mod_jk very slow if used with apache


I'm +1 to remove the fdatasync or any other
sync method.

Log must be run with low priority

If Dan agree, I'll remove the datasync. :)

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



-Original Message-
From: Rainer Jung [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 12:33 PM
To: [EMAIL PROTECTED]
Subject: RE: Tomcat mod_jk very slow if used with apache


Hello Henri, hello Thomas,

The problem comes from the call to fdatasync in the logging
code of mod_jk.
I already mentioned this to Dan Milstein. It should really be
checked, if
that way of flushing to the physical disk (and not only to the
file system
cache which should be enough) is really needed.

The problem becomed more important due to the fact, that the actual
production release incorrectly documents the existence of a log level
"warn". In 3.2.1 this does not exist. The header file for the logging
declares only:

#define JK_LOG_DEBUG_LEVEL 0
#define JK_LOG_INFO_LEVEL  1
#define JK_LOG_ERROR_LEVEL 2
#define JK_LOG_EMERG_LEVEL 3

#define JK_LOG_DEBUG_VERB   "debug"
#define JK_LOG_INFO_VERB"info"
#define JK_LOG_ERROR_VERB   "error"
#define JK_LOG_EMERG_VERB   "emerg"

and if you use any undeclared log level (as e.g. warn) the code falls
through to "debug". So using warn you actually produce tons of debug
output, each line calling fdatasync to flush to disk.

We had the same problem on the first day of a heavy load
production system
and had some hard hours to find out.

I think the second point (incorrect log level "warn") is
corrected in the
next release (by changing documentation and default - not
code), the first
thing, throwing out fdatasync - should still be done.

Greetings,

Rainer Jung


At 10:54 20.04.01 , you wrote:
Could you be more explicit.

OS, mod_jk version, tomcat version, apache version 

Thanks

-
Henri Gomez ___[_]
EMAIL : [EMAIL PROTECTED](. .)
PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 20, 2001 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat mod_jk very slow if used with apache
 
 
 I encountered the following problem:
 Tomcat was about 20 times slower if the access went via
 apache, compared
 to a direct access.
 
 The solution was the following: I had to put the loglevel of
 mod_jk to error
 instead of warn(as proposed).
 
 httpd.conf:
 JkLogLevel error
 
 
 Mod_jk does not seem to be a quick logger.
 
 This is the logoutput for out simple request if
 JkLogLevel warn:
 
 [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 loadbalancer
 [jk_worker.c (123)]: Into wc_get_worker_for_name loadbalancer
 [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
 [jk_lb_worker.c (471)]: Into jk_worker_t::get_endpoint
 [jk_lb_worker.c (300)]: Into jk_endpoint_t::service
 [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
 [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
 [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
 [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
 [jk_connect.c (108)]: Into jk_open_socket
 [jk_connect.c (115)]: jk_open_socket, try to connect socket = 8
 [jk_connect.c (124)]: jk_open_socket, after connect ret = 0
 [jk_connect.c (132)]: jk_open_socket, set TCP_NODELAY to on
 [jk_connect.c (140)]: jk_open_socket, return, sd = 8
 [jk_ajp13_worker.c (166)]: In
 jk_endpoint_t::connect_to_tomcat, connected
 sd = 8
 [jk_ajp13.c (527)]: ajp13_unmarshal_response: status = 200
 [jk_ajp13.c (534)]: ajp13_unmarshal_response: Number of
headers is = 1
 [jk_ajp13.c (576)]: ajp13_unmarshal_response: Header[0]
 [Content-Type] =
 [text/html]
 [jk_ajp13_worker.c (489)]: Into jk_endpoint_t::done
 [jk_lb_worker.c (378)]: Into jk_endpoint_t::done
 
 
 
 Greethings, Thomas
 
 
 
 
 
 Dreaming of a Swiss Account? Get it here:
http://freemail.swissinfo.org
 




RE: ISAPIredirect.dll under NT server

2001-04-20 Thread Craig O'Brien

Isapi_redirect.dll does work on both NT4 and NT5 under IIS.  Assuming that
you have followed the directions completely and accurately.  The
documentation is good, most errors are made in the registry settings.  I had
to reboot the computer, not just restart the server, to get the settings to
take.

Good luck,
Craig


-Original Message-
From: Paul Meaney [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 8:56 AM
To: '[EMAIL PROTECTED]'
Subject: ISAPIredirect.dll under NT server



Hello everyone.

I am currently trying a simple installation of tomcat under NT
Server running IIS. The registry settings are set up correctly and the
ISAPIredirect.dll is placed in the correct virtual directory under IIS.
However starting and stopping IIS results in the .dll not executing. I can
get access to the /examples/ directory of tomcat (so tomcat is working
fine), but if the redirection dll is not executing then I cannot handle
requests to .jsp's.

We've tried everything but cannot get the .dll to execute.

Anyone got any ideas?

Paul






QA
Address:  Prince Henry House, Kingsclere Business Park, Kingsclere, Newbury,
Berks, RG20 4SW, UK

Main Tel: +44 (0) 1635 297093
Fax:  +44 (0) 1635 297405

Email:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]

Web:  www.qa.com

***
QA is the new name for the business previously known as DMT.

QA is a specialist business that improves IT effectiveness within large
Organisations. Our focus is on enhancing the skills of people,
optimising human capital investment and providing IT expertise that
complements in-house skills.  In doing so, QA helps clients to be more
efficient, effective and innovative, adding value to their organisation
overall.

***







RE: Tomcat mod_jk very slow if used with apache

2001-04-20 Thread Craig O'Brien

If you have an operating system -- tomcat/apache with mod_jk.so.

In your apache httpd.conf file find where you placed your statement:

JkLogLevel warn

change this to:

JKLogLevel error

restart apache  (probably-  /usr/sbin/apachectl restart)
// I would go ahead and restart tomcat as well.

That's it.

Regards,
Craig

-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 20, 2001 8:29 AM
To: Tomcat User List
Subject: Re: Tomcat mod_jk very slow if used with apache


I somewhat "Tomcat Internals" ignorant. What change would I need to make to
see the kind of increases you are talking about?

Hunter
--
Hunter Hillegas
[EMAIL PROTECTED]
Who is Sharky Towers? What is BroTools?
 From: "Craig O'Brien" [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 Date: Fri, 20 Apr 2001 06:03:05 -0700
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat  mod_jk very slow if used with apache

 VERY COOL guys!!  What a nice letter to wake up to.

 I made the change mentioned and my server's performance went from 14.51
 pages per second to 82 pages per second.  Still if I access tomcat
directly
 I get over 200 pages per second but that is much better.

 Any other ideas?

 Thanks,
 Craig

 -Original Message-
 From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 20, 2001 4:51 AM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat mod_jk very slow if used with apache


 I'm +1 to remove the fdatasync or any other
 sync method.

 Log must be run with low priority

 If Dan agree, I'll remove the datasync. :)

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: Rainer Jung [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 20, 2001 12:33 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat mod_jk very slow if used with apache


 Hello Henri, hello Thomas,

 The problem comes from the call to fdatasync in the logging
 code of mod_jk.
 I already mentioned this to Dan Milstein. It should really be
 checked, if
 that way of flushing to the physical disk (and not only to the
 file system
 cache which should be enough) is really needed.

 The problem becomed more important due to the fact, that the actual
 production release incorrectly documents the existence of a log level
 "warn". In 3.2.1 this does not exist. The header file for the logging
 declares only:

 #define JK_LOG_DEBUG_LEVEL 0
 #define JK_LOG_INFO_LEVEL  1
 #define JK_LOG_ERROR_LEVEL 2
 #define JK_LOG_EMERG_LEVEL 3

 #define JK_LOG_DEBUG_VERB   "debug"
 #define JK_LOG_INFO_VERB"info"
 #define JK_LOG_ERROR_VERB   "error"
 #define JK_LOG_EMERG_VERB   "emerg"

 and if you use any undeclared log level (as e.g. warn) the code falls
 through to "debug". So using warn you actually produce tons of debug
 output, each line calling fdatasync to flush to disk.

 We had the same problem on the first day of a heavy load
 production system
 and had some hard hours to find out.

 I think the second point (incorrect log level "warn") is
 corrected in the
 next release (by changing documentation and default - not
 code), the first
 thing, throwing out fdatasync - should still be done.

 Greetings,

 Rainer Jung


 At 10:54 20.04.01 , you wrote:
 Could you be more explicit.

 OS, mod_jk version, tomcat version, apache version 

 Thanks

 -
 Henri Gomez ___[_]
 EMAIL : [EMAIL PROTECTED](. .)
 PGP KEY : 697ECEDD...oOOo..(_)..oOOo...
 PGP Fingerprint : 9DF8 1EA8 ED53 2F39 DC9B 904A 364F 80E6



 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, April 20, 2001 10:52 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat mod_jk very slow if used with apache


 I encountered the following problem:
 Tomcat was about 20 times slower if the access went via
 apache, compared
 to a direct access.

 The solution was the following: I had to put the loglevel of
 mod_jk to error
 instead of warn(as proposed).

 httpd.conf:
 JkLogLevel error


 Mod_jk does not seem to be a quick logger.

 This is the logoutput for out simple request if
 JkLogLevel warn:

 [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 loadbalancer
 [jk_worker.c (123)]: Into wc_get_worker_for_name loadbalancer
 [jk_worker.c (127)]: wc_get_worker_for_name, done  found a worker
 [jk_lb_worker.c (471)]: Into jk_worker_t::get_endpoint
 [jk_lb_worker.c (300)]: Into jk_endpoint_t::service
 [jk_ajp13_worker.c (651)]: Into jk_worker_t::get_endpoint
 [jk_ajp13_worker.c (536)]: Into jk_endpoint_t::service
 [jk_ajp13.c (346)]: Into ajp13_marshal_into_msgb
 [jk_ajp13.c (480)]: ajp13_marshal_into_msgb - Done
 [jk_connect.c (108)]: Into jk_open_socket
 [jk_connect.c (115

RE: Code Q.

2001-04-19 Thread Craig O'Brien

Hello,

There are many good books on java basics.  I personally like the Core Java 2
series. Start with volume 1 of course. Getting comfortable with object
oriented programming is essential to developing an understanding of how java
is used.  I also highly recommend visiting www.javaranch.com which is a very
friendly place. :0)  Make sure to read "how I taught my dog polymorphism"
and visit the saloon regularly.

Good luck,
Craig
Sun Certified Java Programmer

-Original Message-
From: Tim Coultas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 5:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Code Q.


Scott -

One thing that the Core Servlets book doesn't do well is explain Java
basics, like what does extends mean or how do method/class declarations
work.  It assumes that knowledge.  I found Sams "Teach Yourself Java in 21
Days" really helpful; it contains a lot of basic java information that would
address your questions pretty well.

You might want to look at the webapps\examples\web-inf\classes directory of
tomcat for some good basic examples of what servlets look like.

Tim

-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 5:22 PM
To: '[EMAIL PROTECTED]'
Subject: Code Q.


Hello,
I am learning JSP and have done quite a few examples from the Core Servlets
and JSP book.
I apologize for asking this q here, but I am trying to learn Tomcat and put
my whole picture together, and I figured that
the people on this line, would probably know what these lines mean.
Anyway, I keep typing these few lines but really don't have a grasp of what
they are doing.
I would really like to understand in a 'Laymans' fashion what I am doing and
what these lines do.
public class Hello extends HttpServlet

//I am assuming that the class Hello, that I am creating
// is extending HttpServlet class?
// but what does the extends really mean?
public void doGet(HttpServlet request,
HttpServlet response)
throws ServletException, IOExcedption;
// It looks like I am creating? or calling? a method here. And am I passing
it the HttpServlet class?
I am very confused on this, and would enjoy hearing from someone that
wouldn't mind going over that with me.
Thanks very much,
Sincerely
Scott






RE: Cleaning up servlets

2001-04-19 Thread Craig O'Brien

Remember that only a single instance of the servlet is created the first
time it is called.  It is up to tomcat to decide weather to call that
servlet's destroy() method. I personally prefer that the servlet is just
waiting for a request rather then being destroyed frequently as your
performance will be better and servlets are idle while not in use. The
effect on memory or cpu usage is extremely low (insignificant?). Your
individual sessions will clean up after themselves.

I have been closely monitoring this on a Linux server and have found
everything to work perfectly.  You can try starting tomcat with
the -verbose:gc Option and watch the garbage collector at work. (beware this
is allot of information) I have been very impressed with the garbage
collection with Sun JDK1.3x.  I also use NT2000 but haven't monitored the
situation as closely in that environment.

Regards,
Craig

-Original Message-
From: H.F.N. den Boer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 3:36 AM
To: Tomcat users group
Subject: Re: Cleaning up servlets


The main question here is when Tomcat or the JVM decides that a servlet can
be
garbage collected.
Objects that I store in a session (shopping carts) are cleaned up perfect.
However, servlets are not cleaned up until I shut down the NT service
manually.

In Apache webserver with JServ there is (if my memory serves well) a setting
for
the maximum lifetime of a servlet after the last hit (doGet or doPost).
In Tomcat with IIS I don't know how to set this or how it is arranged
"automatically". That's why I asked...

Nico

- Original Message -
From: "H.F.N. den Boer" [EMAIL PROTECTED]
To: "Tomcat users group" [EMAIL PROTECTED]
Sent: Thursday, April 19, 2001 10:42 AM
Subject: Cleaning up servlets






RE: Editing tomcat.reg

2001-04-19 Thread Craig O'Brien

Editing the registry only applies to using windows  with isapi_redirect.dll.

On Linux/Unix there is no registry to edit.

Enter "regedit" from the run tab on the start menu and off you go.  Beware,
you can lock your system with incorrect modifications!!! Triple check
changes that you make.  See "tomcat IIS how to."

Regards,
Craig

-Original Message-
From: Pinar Bicioglu [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 8:48 AM
To: '[EMAIL PROTECTED]'
Subject: Editing tomcat.reg



Hi,

I am a newbie to Tomcat. Could someoen please tell me how to edit the
regeistry to complete the installation.? I don't have tomcat.reg in my
computer ?/

Thanks




RE: freeBSD

2001-04-19 Thread Craig O'Brien

I am not using freeBSD but there is a stable jdk1.2.2 for Linux.  Isn't that
the same SDK?  I also have blackdown's j2sdk1.3 and Sun's jsk1.3.1_01 on the
same machine and they all work fine with tomcat.  1.3s are faster but there
is a keyboard mapping issue with Swing and Linux so I use the 1.2.2 for IDE
work compiling with the 1.3.

My understanding is that there are allot of people using tomcat with freeBSD
successfully.

Regards,
Craig


-Original Message-
From: Eric Mosley [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 9:12 AM
To: [EMAIL PROTECTED]
Subject: freeBSD



Is the main reason that Tomcat is not recommended on freeBSD that there
isn't a stable jdk1.2 port at the moment?

Has anybody had any experience with Tomcat on freeBSD? What jdk are you
using and is it working well?!

Eric




RE: mod_jk

2001-04-19 Thread Craig O'Brien

My understanding is that nearly any module can be statically linked within
apache rather then used as a DSO. (within the Apache tree vs. mod_jk.so)
This must be done during the build of Apache. The trade off is larger
instances of Apache and losing the ability to upgrade the individual modules
but %20* faster loading.  It is on my list of things to do but I have not
tried it yet as I currently have a happy family. I have read many
recommendations against doing this, however, as you must thereafter
completely rebuild Apache for every upgrade.

I too am interested in any information from anyone who has tried this.  Is
there a performance boost?  I personally find the mod_jk.so route to suffer
in performance.

Regards,
Craig

-Original Message-
From: Wesselmann, Marcus [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 4:48 AM
To: '[EMAIL PROTECTED]'
Subject: mod_jk


Hi,

is there a way to compile mod_jk directly into Apache, instead of using it
as an .so ?

Thanks,

Marcus




RE: CSS Help

2001-04-18 Thread Craig O'Brien

You appear to have a naming problem with your css document.  You mention
that you placed "test.css" in the ROOT directory yet the error is in finding
"jobs-site-styles.css".  Rename the "test" file. This has nothing to do with
java. 404 is simply file not found.

I am assuming that you do have a "" at the beginning of !DOCTYPE and
that you are accessing tomcat with port 8080 (or what ever you deliberately
chose).

Good luck, I liked that book as well.
Craig

-Original Message-
From: Purcell, Scott [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 18, 2001 7:18 AM
To: '[EMAIL PROTECTED]'
Subject: CSS Help


Hello,
I am starting to test out the Tomcat Server, and I am doing an example that
is in the Core Servlets and JSP book. Anyway, they have an example of using
some CSS in a resume posting example.

I am entering the HTML into the following folder under Tomcat:
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.html

So I decided to put my CCS page here also
D:\tomcat\jakarta-tomcat-3.2.2b2\webapps\ROOT\test.css

The beginning of my HTML has the following:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional/EN"
HTML
HEAD
   TITLEFree Resume Posting/TITLE
   LINK REL=STYLESHEET HREF="test.css" TYPE="text/css"
/HEAD
BODY


I have tried about everything, but I cannot pick up the CSS file? I have
restarted the tomcat, and cleared browser cache, quit the browser. Here is
the message from the Tomcat Console.

2001-04-18 09:16:29 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): FileHandler: Ends with
\/. D
:\tomcat\jakarta-tomcat-3.2.2b2\webapps\jobs-site-styles.css\
2001-04-18 09:16:30 - Ctx( /jobs-site-styles.css ): 404 R(
/jobs-site-styles.css
 +  + null) null

I see a slash before jobs but it is not in my HTML? This is my first CSS
mission, does anyone see any issues here?

Thanks
Scott Purcell





RE: Acrobat problem

2001-04-17 Thread Craig O'Brien

It is a java issue.

Make sure to setContentType()
Make sure to setContentLength()

Regards,
Craig

-Original Message-
From: Steve G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 6:11 AM
To: [EMAIL PROTECTED]
Subject: Acrobat problem


I don't know if this is a Tomcat or Netscape issue, but am having trouble 
loading a pdf file; in other words the acrobat reader does not load. Any 
ideas?

Thanks.

Steve
_
Get your FREE download of MSN Explorer at http://explorer.msn.com





RE: Acrobat question clarification

2001-04-17 Thread Craig O'Brien

Just to let you know.  I tried what you explained: placing a link on a jsp
page within tomcat to a .pdf file.  It worked perfectly in IE5.5, Netscape
4.7 but not initially in Netscape 6. I manually set the path to acrobat and
everything thereafter was fine.

I have not made changes to the default mime-type mappings in the web.xml
file.  I cannot duplicate your problem.

.pdf files are binary.  What type of plain text are you getting?  It should
look like a bunch of strange characters with a text header, otherwise you
may not have a valid .pdf file.

Linux, tomcat-3.2.1

Good luck,
Craig

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 8:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Acrobat question clarification



Add the mime-type mappings to the web.xml file in your webapp's
directory, not the one in conf.

Randy

-Original Message-
From: Steve G [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 12:10 PM
To: [EMAIL PROTECTED]
Subject: Acrobat question clarification


Let me clarrify the problem. I am using Tomcat on a Unix system. I am using
it stand-alone without Apache.  I have 2 problems.  I have an html file with
links to serveral PDFs in it.  When I click the link Tomcat loads the PDF
into the browser as ascii text rather than launching Acrobat.  If I navigate
to the PDF without going through Tomcat, my Netscape Browser opens Acrobat
and loads the PDF just fine.  I have confirmed that there is a mime-type
declaration in the web.xml file in the conf directory.  My other problem is
I have a unique image format that is having the same problem.  If I navigate
to it outside of Tomcat, Netscape will launch the application I have set up
in the preferences file, but if I go through the server it loads the image
file as ascii garbage in the browser. Is there something special that I need
to do in the Tomcat configuration that I am missing?

Thanks,
Steve and Nanette



Get your FREE download of MSN Explorer at http://explorer.msn.com




RE: JDBC question

2001-04-17 Thread Craig O'Brien

Hello,

Are you getting any HTML output at all?  Try to leave more messages to see
where it is breaking down.

Try

Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" ).newInstance();

This "newInstance()" is often necessary.

I don't use access so I don't know about the drivers or URL.

It looks like everything is there.

Good Luck,
Craig

-Original Message-
From: Bo Wang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 17, 2001 8:15 PM
To: [EMAIL PROTECTED]
Subject: Re: JDBC question


Thanks for your help, here attached my servlet.
I'm using win98 with Access 97, and set up a system DSN "Northwind" without
userID and password.
After I run this servlet, I got NullPointException.

import java.io.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;

public class JDBCServlet extends HttpServlet
{
Connection dbConn;

public void init ( ServletConfig config ) throws ServletException
{
super.init( config );

try
{
Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
dbConn = DriverManager.getConnection( "jdbc:odbc:Northwind" );
}
catch ( ClassNotFoundException e )
{
System.out.println( "*JDBC-ODBC bridge not found" );
return;
}
catch ( SQLException e )
{
System.out.println( "*SQL exception thrown in init" );
return;
}
}

public void deGet( HttpServletRequest req, HttpServletResponse resp )
throws ServletException, IOException
{
try
{
resp.setContentType( "text/html" );
PrintWriter out = resp.getWriter();

Statement stat = dbConn.createStatement();
ResultSet customers = stat.executeQuery( "select CustomerID,
CompanyName, City, Country from " + "Customers" );

out.println( "html" );
out.println( "headtitleCustomer List/title/head" );
out.println( "body" );
out.println( "h2Customer List/h2" );
out.println( "table border=1" );
out.println( "trthCustomer ID/th" );
out.println( "thCompany Name/th" );
out.println( "thCity/th" );
out.println( "thCountry/th/tr" );

while ( customers.next() )
{
out.println( "tr" );
out.println( "td" + customers.getString( "CustomerID" ) +
"/td" );
out.println( "td" + customers.getString( "CompanyName" ) +
"/td" );
out.println( "td" + customers.getString( "City" ) +
"/td" );
out.println( "td" + customers.getString( "Country" ) +
"/td" );
out.println( "/tr" );
}

out.println( "/table" );
out.println( "/body/html" );

customers.close();
stat.close();
dbConn.close();
}
catch ( Exception e )
{
e.printStackTrace();
}
}
}


- Original Message -
From: "RameshBabu R Muthuvel" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 17, 2001 12:25 PM
Subject: Re: JDBC question


 Hi
 There are numerous issues.

 Some are:
 1) either ur dsn is not there
 2) Your tables datatype doesn't match with the value passed or accessed
from
 servlet etc...

 send ur servlet, to find out what really happens

 ramesh

 _
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.







RE: Java Update on Linux

2001-04-12 Thread Craig O'Brien

Sun's 1.3.1 is an early release SDK.  I have been using it on Mandrake 7.2
with good results. It is the SDK that I use with Tomcat.  There are still
some keyboard mapping issues with Linux however.  I also use JBuilder3.5 and
I have better luck using blackdown's 1.3 SDK for Linux.  Both are harmonious
on the same system.  As a side note, IBM's SDK 1.3 is said to be quick but
use much more ram then the above mentioned SDKs and have poor debugging
capabilities. (I do not have first hand knowledge of this) Sun's SDK works
great on my Windows2000 systems.

Regards,
Craig

-Original Message-
From: Kaneda K [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 10:02 AM
To: [EMAIL PROTECTED]
Subject: RE: Java Update on Linux


At 11:36 12/04/2001 -0400, you wrote:
That's not a release, it's a release *candidate*. A big difference.

Which is ??


-Original Message-
From: Hunter Hillegas [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 12, 2001 11:27 AM
To: Tomcat User List
Subject: Java Update on Linux


Anyone tried the JDK1.3.1 that Sun released recently for Linux?

They claim reliability enhancements... Just wondering.

Hunter





RE: Running java on linux

2001-04-04 Thread Craig O'Brien

I believe that you have a permission problem with the libX11.so.6.
Additionally, sun's latest jdk has some keyboard issues with swing on linux.
Blackbox version 1.3 is better but not perfect. (www.blackbox.org)  If you
don't need swing the sun will probably do fine. Sun sdk1.3.1 is out for
early release.

Regards,
Craig

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 04, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: Running java on linux


I installed jdk1.3.0_02 onto my machine and changed the path to the bin
directory.  When I try to run that java command, I get the following
error...

[admin@ns1 bin]$ /usr/java/jdk1.3.0_02/bin/i386/native_threads/java: error
in lo
ading shared libraries: libX11.so.6: cannot open shared object file: No such
fil
e or directory


Is this a bug with java, or does it have to do with a file permission I am
not setting correctly with Linux?  Anyone know?


Brandon




RE: Static page directory location

2001-04-03 Thread Craig O'Brien

You can use the tool that comes with apache.

ab -n 1000 -c 20 yourdomainhere/pathto/page.html

This is 1000 connections with 20 concurrent connections hitting page.html.

My readings on a PIII 667 with 256meg ram 133bus gets me about 170
connections per second on a static page in apache and 28 connections per
second to a servlet in tomcat.  Mod_perl is about 117 connections per second
and php w/database 130 connections per second.  Interesting. Not what I had
hoped for. Got more tuning to do.

Let me know what you get.

Regards,
Craig

-Original Message-
From: Dave Brown [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 03, 2001 10:47 AM
To: [EMAIL PROTECTED]
Subject: RE: Static page directory location


Never mind on the location, I figured it out.

Any benchmarks would be great though.

Thanks!

Dave

 -Original Message-
 From: Dave Brown [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, April 03, 2001 11:30 AM
 To: [EMAIL PROTECTED]
 Subject: Static page directory location


 Hi-

 Can someone explain how to set Tomcat up to serve static pages. Also, has
 anyone benchmarked how much slower it is than Apache?

 Thanks,

 Dave





Linux - mod_jk ??

2001-03-30 Thread Craig O'Brien

Hello,

I have installed Tomcat 3.2.1 several times on NT systems using the
isapi_redirect with no problems and I have been using Tomcat for about 6-8
months.  I am now doing my first Linux install.

The system is Mandrake Linux 7.2 with apache 1.3.12 and JDK 1.3.1 on a PIII
667 256meg ram.

I have Tomcat working and have installed my package of various servlets,
taglibs, and jsp pages and everything is working when I use port 8080.
Apache is working great.

I have switched to ajp13, and closely followed the documentation to
configure apache and install mod_jk which I downloaded from the apache site.
(binary) Everything has been checked at least 5 times. I am getting a little
cross-eyed.

I have not been able to get mod_jk to tomcat.

I have my logs set to debug and after each change that I make I have
restarted both servers and checked the logs. The mod_jk.log is showing that
everything is being configured correctly and ajp13 is being found with each
attempt yet no redirection is occurring.

*mod_jk.log shows
[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 ajp13

apache's access.log shows the usual 404 not found message. On each restart
the note that apache is configured with mod_jk appears.

Simply adding the port :8080 to the domain with the same path shows me that
everything is working with regards to java and tomcat.

I do have the ssl module installed in apache but it is not configured with a
certificate at this time.

Are there any known issues??

Any Ideas?

I did spend over an hour browsing through the archives and could not find
this situation.

Much thanks,
Craig





RE: mod_jk

2001-03-30 Thread Craig O'Brien

Hi Miles,

Great to hear that you are working with OSX.  My understanding is that it is
really FreeBSD.  Although I have no experience with OSX I did allot of
browsing of the archives today and I believe that if you search around
looking for FreeBSD clues that you will find what you are looking for.  Just
approach it from a UNIX perspective.

my .02

Good luck
Craig


-Original Message-
From: miles [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 30, 2001 5:21 PM
To: [EMAIL PROTECTED]
Subject: mod_jk


Hello,
I've been working with Tomcat 4.01b1 for a while as a standalone on Mac
OS X. Now I want to get mod_jk and configure Apache to work with Tomcat.
But I've been following discussions on the list, searching the archive
and checking out the directions at:
source: http://jakarta.apache.org/tomcat/jakarta-
tomcat/src/doc/mod_jk-howto.html
and none of it seems to apply to Tomcat 4.0!
I must be missing something.
For instance, in the instruction page, I'm told to download the Tomcat
source, since there is not prebuilt binary of mod_jk for OS X. So I
downloaded the Tomcat 4.0 src.
Then is says go to directory:
jakarta-tomcat/src/native/apache1.3
but there is no directory like that in my src!!
So there is nowhere for me to run apxs.
Do I need to get Tomcat 3.x source or something?
Can someone direct me to a step by step install instructions for mod_jk
and Tomcat 4.0 on unix? Since OS X is similar to FreeBSD.
Thanks!

- miles
miles poindexter
software mechanic
openly informatics: linkbaton conductor program
http://my.linkbaton.com/conductors




RE: Sun Seeking Experts for New Java Certification!

2001-03-27 Thread Craig O'Brien
Title: Sun Seeking Experts for New Java Certification!



Mine 
works fine.

Craig
SCJP2

  -Original Message-From: Bill Blackmon 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, March 27, 2001 
  3:38 PMTo: [EMAIL PROTECTED]; [Evelyn Thompson 
  {SunEd}]Subject: Re: Sun Seeking Experts for New Java 
  Certification!
  There's a problem with the .jar file 
  you sent. I there is no .srvytmplt file and I get an error 
  message:
  'Cannot find or read template file. 
  Please make sure it is in the current directory. (It ends with 
  .srvytmplt)
  Details: Not found'
  
  I'm both a Cerfitifed Programmer and 
  Developer and would like to take part in the exam and help make
  it available ASAP so I can take it and 
  pass it!
  
  Thanks,
  Bill Blackmon
  
  
- Original Message - 
From: 
[Evelyn Thompson {SunEd}] 
To: [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; [EMAIL PROTECTED] ; 
[EMAIL PROTECTED] ; [EMAIL PROTECTED] 

Sent: Tuesday, March 27, 2001 5:18 
PM
Subject: Sun Seeking Experts for New 
Java Certification!

Sun Educational Services is beginning development on a new 
Java certification exam: Sun Certified Web Component 
Developer Java 2 Platform, Enterprise Edition Technology. This certification will cover JSP and Servlet technology. 

If you are an expert in JSP and Servlet technology this is 
your opportunity to get involved in the creation of 
a certification exam. The current phase of development is a survey, called a blueprint, that helps us weigh the 
testing objectives. The survey will determine which 
objectives are most important to develop questions 
for.  Qualifications 
for this project are as follows: 
- certified as a Programmer and Developer (or 1-2 years Java 
Programming experience)  and  - experience using JSP and Servlet 
technology  If you 
have these requirements you may proceed with the survey. 
I have attached our Java based Survey tool. It will take 
about 30-45 minutes to complete.  Your participation in this survey will 
help insure that we are testing on the appropriate 
areas and that the result of our efforts will be a quality certification that is an industry standard for Java 
Programming. 
Survey Instructions:  
- Copy the attached files into a directory - Make sure you have Java Plug-in (see http://java.sun.com) - At a command line or DOS Prompt, make sure to be in the correct 
directory and  run the program with the 
command: java -cp Surveyor.jar Surveyor - Complete 
the survey - When finished, the application will 
automatically save it with the  participant's 
name (your name) example: evelyn_thompson_J2EE.srvyreslt 
in  the directory you have created 
- Please e-mail the survey file 
"your_name_J2EE.srvyreslt" 
to  [EMAIL PROTECTED]  
We need to have all results in by Monday, April 9, 4 
pm MST.  Feel 
free to contact me with any questions.  
We appreciate how valuable your time is and thank you for 
your participation.  Please forward this message to other Java developers you think may be 
interested in helping out with this survey. 
 Regards, 
 Evelyn Thompson 
Certification Program Coordinator Sun Educational Services  
Phone: 303-272-7668 Fax: 303-272-7655 



RE: tomcat with iis

2001-03-27 Thread Craig O'Brien

If you made all of the settings in the "IIS how to" correctly it will work.
The registry is the usual trouble spot.  You must reboot the entire machine
not just IIS.

Good luck,  It does work well.

Regards,
Craig

-Original Message-
From: zze-messager FTM balr002
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 27, 2001 5:02 AM
To: '[EMAIL PROTECTED]'
Subject: RE: tomcat with iis


Redemmares ta machine.

-Message d'origine-
De : p p [mailto:[EMAIL PROTECTED]]
Envoye : mardi 27 mars 2001 13:28
A : [EMAIL PROTECTED]
Objet : tomcat with iis


hi,
I am trying to install tomcat3.2.1 on windows
2000/IIS.
I have followed all the instructions mentioned in the
document "Tomcat IIS how to".

Problem,
i ve created the filter with its executable isapi.dll,
but when i restart IIS the filter is not getting
loaded.
The troubleshooting document mentions that i should
make sure that the registry entries are correct, well
i ve double checked the registry entry for
worker.propoerties and uriworkermap.properties. They
are fine.
any help would be appreciated

thanks,
pp


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/?.refer=text




RE: Tomcat broke after Oracle installation

2001-03-10 Thread Craig O'Brien

I had the same experience with 8i Enterprise.  Realize that 8i includes
Apache and Jserv and you will have a conflict with ports.  I just stop
Apache and Jserv.
For some reason you have to do it 3 or three times then restart tomcat and
you are back to a happy family. It has to do with a conflict with the port
that ajp12 listens on and the port that Jserve listens on. (internally not
8080...1079..??)  You don't need Jserv.  Just rearrange your ports and take
close note of the error message that tomcat gives.

Sorry but I am away from my server so I can't give you specifics. Hopefully
someone is sitting near their machine and can give you the specifics.

Regards,
Craig

-Original Message-
From: Kemp Randy [mailto:[EMAIL PROTECTED]]
Sent: Saturday, March 10, 2001 9:17 AM
To: [EMAIL PROTECTED]
Subject: Tomcat broke after Oracle installation


Here is some additional information on my Tomcat
problem (see log below).  I have installed Apache 1.2
and Tomcat 3.2 on Solaris 5.6, and both Tomcat
examples and Apache worked fine.  After I installed
Oracle enterprise 8.1.7 on the same machine, the
Tomcat examples no longer worked (see below).  I
suspect, since Oracle has Apache and Jserv embedded,
there is probably some confusion caused by the Oracle
listeners.  Does anyone have a similar configuration
on a Unix machine (Linux, Solaris, etc.)?  Any ideas
on what could be happening?  And on a basic note.  If
I put the static pages in htdocs under Apache, where
do I place servlets and JSP pages in Tomcat?

From: Kemp Randy-W18971
Subject:  Need Help with problem
Date:  Fri, 9 Mar 2001 16:39:49 -0500
I have Tomcat 3.2.1 and Apache running, but I am
getting this error
on
http://ecad.mot.com:8080/examples/jsp/num/numguess.jsp
and need some
help

Error: 500
Location: /examples/jsp/num/numguess.jsp
Internal Servlet Error:
org.apache.jasper.JasperException: Unable to compile
class for JSP
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at javax.servlet.ServletException.(Compiled Code)
at org.apache.jasper.JasperException.(Compiled Code)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet.loadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
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.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(Compiled Code)
Root cause:
java.lang.IllegalArgumentException: Unknown argument
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(Compiled Code)
at java.lang.IllegalArgumentException.(Compiled Code)
at java.text.MessageFormat.format(Compiled Code)
at java.text.MessageFormat.format(Compiled Code)
at java.text.Format.format(Compiled Code)
at org.apache.jasper.Constants.getString(Compiled
Code)
at org.apache.jasper.Constants.message(Compiled Code)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(Compiled
Code)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(Compiled
Code)
at
org.apache.jasper.compiler.Parser$Directive.accept(Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
at org.apache.jasper.compiler.Parser.parse(Compiled
Code)
at
org.apache.jasper.compiler.Compiler.compile(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JasperLoader.loadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet.loadJSP(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(Compi
led Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at

RE: Encode like HTMLEncode

2001-03-06 Thread Craig O'Brien

Try

String variable = URLEncoder.encode(yourString);

Craig



-Original Message-
From: Garry De Toffoli [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 06, 2001 6:08 AM
To: [EMAIL PROTECTED]
Subject: Encode like HTMLEncode


Hi to all;

someone know a method like HTMLEncode in ASP?

This method would transform charachters like blank (0x20) or all the
character over the 127th ascii code in the corrisponding exadecimal value;

for example, I have a string containing these sequence: "fr";
this would be encoded like this: "f%fcr", where %fc is the exadecimal
rappresentation of the char "";
Thank you very much.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: QuickSorting Vectors

2001-03-05 Thread Craig O'Brien

Hey,

Good job.  Nice trick. I messed around with an ArrayList and
Collections.sort which was faster then my original (the 15 minute job) but
yours was still faster.  I tried your trick only to find out that in
ArrayList the elementData field is private.  :0(  Short of customizing an
implementation  List myself you win.  for now

What was the deal with making your array 1 element shorter then mine?
Competitive edge right?

Good luck and thanks for the idea.

By the way, how is your Tomcat doing?  hehe

Got to get back to work.

Regards,
Craig


--The comparison code -- (includes ArrayListSort)

import java.util.*;

class TestVectorSort{

Vector vec = new Vector();
SortableVector vVec = new SortableVector();
ArrayList arrList = new ArrayList();

public static void main(String[] args)  {
TestVectorSort v = new TestVectorSort();
v.arraySimpleSort();
}

void arraySimpleSort()  {
// the hack...hehe
for (int i = 1; i 0; i--)  {
vec.add(new String("" + i));
}
long timeIn = System.currentTimeMillis();
Object[] obArr = vec.toArray();
Arrays.sort(obArr);
vec.removeAllElements();
for (int i = 0; i  obArr.length; i++)  {
vec.add(obArr[i]);
}
long timeOut = System.currentTimeMillis();
obArr = null;
System.out.println("Time to sort CraigsVectorSort: " + (timeOut - 
timeIn)
+ " ms");

// VladsVectorSort
for (int i = 1; i 0; i--)  {
vVec.add(new String("" + i));
}
long timeIn2 = System.currentTimeMillis();
vVec.sort();
long timeOut2 = System.currentTimeMillis();
System.out.println("Time to sort VladsVectorSort: " + (timeOut2 - 
timeIn2)
+ " ms");

// ArrayListSort
for (int i = 1; i 0; i--)  {
arrList.add(new String("" + i));
}
long timeIn3 = System.currentTimeMillis();
Collections.sort(arrList);
long timeOut3 = System.currentTimeMillis();
System.out.println("Time to sort ArrayList: " + (timeOut3 - timeIn3) + 
"
ms");

arrList = null;
vVec = null;
vec = null;
System.gc();
}
}

class SortableVector extends java.util.Vector
{
  public synchronized void sort()
  {
java.util.Arrays.sort(elementData, 0, elementCount);
  }
}


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 05, 2001 9:59 AM
To: [EMAIL PROTECTED]
Subject: Re: QuickSorting Vectors


Ooops...
Replace

java.util.Arrays.sort(elementData, 0, elementCount - 1);

with

java.util.Arrays.sort(elementData, 0, elementCount);







I claim this is faster (inspired by the Vector's source code, he-he):

public class VladsVectorSort  {

SortableVector vec = new SortableVector();

public static void main(String[] args)  {
VladsVectorSort v = new VladsVectorSort();
v.arraySimpleSort();
}

void arraySimpleSort()  {
vec.add(new String("abbot"));
vec.add(new String("silium"));
vec.add(new String("randy"));
vec.add(new String("goofy"));
vec.add(new String("zenia"));
vec.add(new String("pokie"));
vec.add(new String("xylaphone"));
vec.add(new String("dogface"));
vec.add(new String("friggen-joe"));
vec.add(new String("penuckle"));
vec.add(new String("charlie"));
vec.add(new String("manna"));

System.out.println("before: " + vec);
vec.sort();
System.out.println("after :0) : " + vec);
}

class SortableVector extends java.util.Vector
{
  public synchronized void sort()
      {
java.util.Arrays.sort(elementData, 0, elementCount - 1);
  }
}
}


This is it (at least it seems to be!)
Of course you need to make sure all Vector elements are mutually
Comparable...

--V.



Craig O'Brien wrote:

 Vlad and I were thinking along the same lines.  This is easy but may not
be
 the best for commercial applications.

 Here is a simple program I just wrote:

 class CraigsVectorSort  {

RE: Generating a random alphanumeric string

2001-03-01 Thread Craig O'Brien

This intrigued me so I just wrote this little program.  Of course it could
be wrapped up in a bean and it needs to check against a list of established
passwords but it gives you upper-lower case random sequence of alpha-numeric
characters. Just feed it the length that you want. It even cleans up after
itself. :0)

public class CraigsRandomizer   {

// generates a random alpha-numeric sequence

public static void main(String[] args)  {
CraigsRandomizer t = new CraigsRandomizer();
t.randomPass(12); // set to length of 12
}

final void randomPass(int len)  {
int[] random = new int[len];
int i = 0;
String result = "";

while(i  random.length){
int n = (int)(Math.random() * 122);

if (!(n  49)  (!((n = 58)  (n = 64)))  (!((n = 91) 
 (n =
96  {
random[i] = n;
i++;
}
}
for(int j = 0; j  random.length; j++)  {
result += (char)random[j];
}
random = null;
System.out.println(result);
}
}

Let me know if I can help.

Regards,
Craig O'Brien

Java Programmer/Web Developer


 -Oryginalna wiadomooe-
 Od: Cato, Christopher [mailto:[EMAIL PROTECTED]]
 Wysano: 1 marca 2001 15:05
 Do: '[EMAIL PROTECTED]'
 Temat: Generating a random alphanumeric string


 Hello, can anyone show me an example or give me a clue about how
 to generate a random alphanumeric string of lets say 16-32 chars?
 TomCat is obviously doing it for the session ids, but how would I
 do the same in a servlet?

 Regards,

 Christopher Cato

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: More benchmarks on Tomcat 3.3-m1

2001-02-28 Thread Craig O'Brien

Thank you!!

Craig

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 28, 2001 3:24 PM
To: [EMAIL PROTECTED]
Subject: More benchmarks on Tomcat 3.3-m1


Hi,

Just run some benchmarks against Tomcat 3.3-m1 :

Server was a Linux Redhat 6.2 box with PIII/800 + 256Mo.
128Mo were allocated to tomcat :

All tests conducted with ab :

ab -c 10 -n 1000 host

Test with Apache 1.3.17 and Apache 2.0.alpha12
mod_jk log desactivated with JkLogLevel error instead of warn

Apache 1.3 serving index.html
Requests per second:192.64

Apache 2.0 serving index.html
Requests per second:180.08

Tomcat serving HelloWorld directly (no ajp)
Requests per second:954.20

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp13
Requests per second:427.17  (cachesize = 1)
Requests per second:481.46  (cachesize = 16)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp13
Requests per second:504.54  (cachesize = 1)
Requests per second:474.83  (cachesize = 16)

Tomcat serving HelloWorld via Apache 1.3 + mod_jk + ajp12
Requests per second:9.63(something bad there ?)

Tomcat serving HelloWorld via Apache 2.0 + mod_jk + ajp12
Requests per second:24.00   (something bad there ?)

Example Servlet info :
Document Path:  /examples/servlet/HelloWorldExample
Document Length:406 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  645645 bytes
HTML transferred:   406406 bytes

Static info:

Document Path:  /index.html
Document Length:1520 bytes
Concurrency Level:  10
Complete requests:  1000
Failed requests:0
Total transferred:  2004000 bytes
HTML transferred:   152 bytes



Some conclusion :

- The Tomcat HTTP connector is the clear winner and if its optimisations
  are ported back to ajp we may see something good here

- Apache 2.0 is not faster than Apache 1.3 but it's still in Alpha release.

- The c set to 16 didn't show any improvement but test must
  be reconducted with ab using -k flag (HTTP KeepAlive feature)

- ajp12 show a strange comportment and must be investigated further -(


Future benchs :

I plan to do the same tests but using LoadBalancing features of mod_jk
against 3 tomcat running on same server configurations
(Redhat 6.2, PIII/800, 256Mo, TC use 128mo)


Also use the HTTP KeepAlive feature to see if cachesize show improvment.

Regards



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Difficulty getting IIS to recognize additional Tomcat contexts

2001-02-26 Thread Craig O'Brien

Hello,

Why don't you guys just try simplifying things and dropping the variable.

My config files look like yours but I'm not using variables.  Mine works
fine with tomcat 3.2 on IIS.  Perhaps too much perl??


/test/*=ajp12


Worth a try, only takes 2 minutes.  Also try dropping the "trusted" field
for fun if that doesn't work.

Good luck,
Craig

PS that hair is precious.

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Nada.  I have pulled the last strand of hair off my bald colleague's head.

--Shrisha

- Original Message -
From: "Todd Carmichael" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:01 PM
Subject: RE: Difficulty getting IIS to recognize additional Tomcat contexts


Same problem here.  Any luck resolving the problem?

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Here's a snippet from isapi.log: (Note: "test" is the context I'm trying to
deploy)

[jk_isapi_plugin.c (452)]: HttpFilterProc [/test/] is not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/test/] is points to the
web-inf directory

server.xml
---
Context path="/test"
  docBase="webapps/test"
  crossContext="false"
  debug="0"
  reloadable="true"
  trusted="false" 
 /Context

uriworkermap.properties
--
default.worker=ajp12

/servlet/*=$(default.worker)
/*.jsp=$(default.worker)

#This context works...
/examples/*=$(default.worker)

#This doesn't!
/test/*=$(default.worker)

--Shrisha


- Original Message -
From: "Shrisha Radhakrishna" [EMAIL PROTECTED]
To: "tomcat" [EMAIL PROTECTED]
Sent: Saturday, February 24, 2001 9:43 PM
Subject: Re: Difficulty getting IIS to recognize additional Tomcat contexts


 Hmm.. I am facing the same problem!  I added my new contexts to server.xml
 and uriworker.properties...

 --Shrisha

 -Ursprngliche Nachricht-
 Von: MilitaryHire Technical Support [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 20. Februar 2001 22:58
 An: [EMAIL PROTECTED]
 Betreff: Difficulty getting IIS to recognize additional Tomcat
 contexts


 Hi,

 I have successfully instaled Tomcat and confirmed it worked
 using the
 examples.  I then used the isapi_rediredct.dll to have my IIS use
 Tomcat for
 servlets.  I confirmed that worked using the examples also.

 My problem is, I have not been able to get IIS to recognize any
 other
 contexts.  In an attempt to set up and test a new context, I copied
 the
 examples folder into a folder named "servlets" under the webapps
 directory.
 I then configured a "servlets" Tomcat context and tested it.  It
 worked
 fine.  When I then added the the context to uriworkers.properties
 and
 stopped and restarted IIS though, I was not able to access the new
 context.
 I kept getting 404 errors.  I could tell from the error format that
 it was
 being generated by IIS rather than Tomcat.  Any ideas what I might
 have done
 wrong?

 FYI, I'm using NT Workstation 4.0 SP6a, IIS 4, jdk 1.3.

 Thanks!

 Sean



 Shrisha Radhakrishna
 mailto:[EMAIL PROTECTED]
 Phone: 408.530.8530
 http://members.tripod.com/cricforum


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: cpu load 100% on windows 2000 using iis

2001-02-22 Thread Craig O'Brien

Sorry about all these postsI could have just been patient and combined
them.  :0)

Did you delete the default contexts?  This will cause this problem. Either
reinstall them temporarily or look into your config files in tomcat to clear
up the issue. Sorry, I don't have time to look them up right now.

Regards,
Craig

-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:20 PM
To: [EMAIL PROTECTED]
Subject: RE: cpu load 100% on windows 2000 using iis


Just so you know.  This is not a Windows only issue and can appear on most
OSs. (Solarus etc.)

Craig

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: cpu load 100% on windows 2000 using iis


Hello,

 Please, before reading this, bare in mind that unfourtunately I am forced
to use an IIS and windows 2000, because of a client's demands, so changing
to the desirable *nix+apache+tomcat is not an option.

 Apparently everything is okay.
 Until the moment when you either reach the isapi_redirect.dll directly
(because you know the url and there's no point in defending security by
obscurity) or call a servlet.
 By the time either of this events happen, the tomcat java process jumps to
100% cpu usage, until an indeterminate time, and provides no results.

 So, what could be happening? Here go some technical details on the machine:

  * windows 2000 (yuk)
- no namesolver, all name must be solved by usage of the hosts file
  * IIS (default with win2k - yuk yuk)
  * tomcat 3.2.1
  * jdk 1.3.0


If anyone has a sensible opinion on this matter, please, share your thoughts
with me on the list, since this could be a future trouble shooter.

Hugs, rms

--
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: cpu load 100% on windows 2000 using iis

2001-02-21 Thread Craig O'Brien

Just so you know.  This is not a Windows only issue and can appear on most
OSs. (Solarus etc.)

Craig

-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 2:35 PM
To: [EMAIL PROTECTED]
Subject: cpu load 100% on windows 2000 using iis


Hello,

 Please, before reading this, bare in mind that unfourtunately I am forced
to use an IIS and windows 2000, because of a client's demands, so changing
to the desirable *nix+apache+tomcat is not an option.

 Apparently everything is okay.
 Until the moment when you either reach the isapi_redirect.dll directly
(because you know the url and there's no point in defending security by
obscurity) or call a servlet.
 By the time either of this events happen, the tomcat java process jumps to
100% cpu usage, until an indeterminate time, and provides no results.

 So, what could be happening? Here go some technical details on the machine:

  * windows 2000 (yuk)
- no namesolver, all name must be solved by usage of the hosts file
  * IIS (default with win2k - yuk yuk)
  * tomcat 3.2.1
  * jdk 1.3.0


If anyone has a sensible opinion on this matter, please, share your thoughts
with me on the list, since this could be a future trouble shooter.

Hugs, rms

--
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: failure notice

2001-02-21 Thread Craig O'Brien

Take heart Larry.  It will work.  Check your registry settings. Make sure
that you have execute access to the directory that the isapi_redirect is
located.  Go over the "IIS how to" very thoroughly.  The instructions are
good. I use the pre-compiled isapi on Win 2000 with IIS, tomcat 3.2, JDK 1.3
with no problems.

Good luck,
Craig

-Original Message-
From: Larry Hand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 4:01 PM
To: '[EMAIL PROTECTED]'
Subject: FW: failure notice


I am using Windows 2000 with IIS.  The isapi_redirect.dll doesn't seem to
install correctly.  I created a virtual directory called jakarta and then at
the Default Web directory I entered it into the Filter tab and the arrow
stays red and pointing down (not the green up arrow).  What did I do wrong?

Larry Hand
Rogue Wave Software

Voice:  303.545.3196
Cell:   303.619.9236
FAX:303.473.9137
Main Number:303.545.3295
Main 800 Number:800.487.3217


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: cpu load 100% on windows 2000 using iis

2001-02-21 Thread Craig O'Brien

Check your regestry settings.

Also:

Have you created a virtual directory named "jakarta" in the same folder that
the isapi_redirect.dll is located?  Mine is physically located in
tomcat/bin/Win32/i386/.  Have you assigned this directory "execute" access?

I think that a small error has crept into your settings.  Go over the IIS
how to and you will have it fixed in no time.


Good luck,
Craig

I better get back to work!!!


-Original Message-
From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 21, 2001 3:39 PM
To: [EMAIL PROTECTED]
Subject: Re: cpu load 100% on windows 2000 using iis


On Wed, Feb 21, 2001 at 03:26:27PM -0800, Craig O'Brien wrote:
 Sorry about all these postsI could have just been patient and combined
 them.  :0)

np with me :)

 Did you delete the default contexts?  This will cause this problem. Either
 reinstall them temporarily or look into your config files in tomcat to
clear
 up the issue. Sorry, I don't have time to look them up right now.

Comparing the server.xml on the win2k machine and with a linux one I had I
noticed one small oops in the conf...

Right now all that remains is why, oh why is iis complaing of "The specified
module was not found".

what can it be refering to, isap_redirect.dll? But the status is green
(arrow on the upperside).

*sigh*

hugs, rms

--
+ No matter how much you do, you never do enough -- unknown
+ Whatever you do will be insignificant,
| but it is very important that you do it -- Ghandi
+ So let's do it...?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: cpu load 100% on windows 2000 using iis

2001-02-21 Thread Craig O'Brien

There is a known issue.  It appears that you must insure that Tomcat only
operates in a valid context. I have not faced this issue so I don't have any
suggestions, however, this may be helpful.

Here is a snippet from a past discussion on this issue:

/*
6.11 Misconfiguration Can Cause CPU-Bound Loop

If you misconfigure Tomcat 3.2 in a way that there is no valid context to
handle a request (such as removing the root context and then attempting a
request that should be handled by that context), Tomcat will enter a
CPU-bound loop instead of responding with a 404 error.
*/


Hope this helps,
Craig





 -Original Message-
 From: Rui M . Silva Seabra [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, February 21, 2001 4:35 PM
 To: [EMAIL PROTECTED]
 Subject: cpu load 100% on windows 2000 using iis


 Hello,

  Please, before reading this, bare in mind that unfourtunately I
 am forced to use an IIS and windows 2000, because of a client's
 demands, so changing to the desirable *nix+apache+tomcat is not an option.

  Apparently everything is okay.
  Until the moment when you either reach the isapi_redirect.dll
 directly (because you know the url and there's no point in
 defending security by obscurity) or call a servlet.
  By the time either of this events happen, the tomcat java
 process jumps to 100% cpu usage, until an indeterminate time, and
 provides no results.

  So, what could be happening? Here go some technical details on
 the machine:

   * windows 2000 (yuk)
 - no namesolver, all name must be solved by usage of the hosts file
   * IIS (default with win2k - yuk yuk)
   * tomcat 3.2.1
   * jdk 1.3.0


 If anyone has a sensible opinion on this matter, please, share
 your thoughts with me on the list, since this could be a future
 trouble shooter.

 Hugs, rms

 --
 + No matter how much you do, you never do enough -- unknown
 + Whatever you do will be insignificant,
 | but it is very important that you do it -- Ghandi
 + So let's do it...?

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: runaway threads eating cpu cycles on Solaris 7

2001-02-15 Thread Craig O'Brien

Garbage collection can be called by System.gc(); or
Runtime.getRuntime().gc(); but this doesn't really give you control, It only
suggests to the JVM to garbage collect.

Solaris uses "green threads" is that correct? Are you using an earlier
version of Java? (1.x) If so this can be an issue with a thread "hogging"
all cpu cycles.  If you are controlling threads in your applications I would
suggest adding a call to yield() in your run() method.  Could be a problem
with thread priorities as well.

I don't use Solaris so this is the best I can do. To the best of my
knowledge solarus doesn't time slice.

Good Luck,
Craig




-Original Message-
From: Ben Ricker [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 15, 2001 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: runaway threads eating cpu cycles on Solaris 7


This sounds like garbage collection by the JVM. I know there is a way to
control when the JVM garbage collects, but I amnot sure how. Anybody
else know how to do that?

Ben Ricker
Senior System Administrator
US-Rx, Inc.


On 15 Feb 2001 15:43:22 -0500, Kelly Kleinfelder wrote:
 We are running Tomcat 3.2.1 and Solaris 7 on a Sun e250 with 4 400Mhz
processors. The problem we're having is that one thread is chewing up the
majority of the cpu cycles and sometimes causes tomcat to hang.

 I have included sample mpstat data and the output from ps -L -p PID:

 ps -L -p 26361
PID   LWP TTY LTIME CMD
  26361 1 ?0:03 java
  2636122 ?1:02 java
  2636123 ?   40:57 java
  2636124 ?1:43 java
  2636126 ?0:09 java
  2636167 ?0:03 java
  (24 entries deleted for brevity. All were at 0:00 LTIME)

 mpstat 30
 CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt
idl
   0   12   0   12 64   170100750   3   1
96
   16   06 41   14300052   59   1   1
39
   20   0064   62   12200020   41   1   1
57
   34   0   14   2033   270100260   0   0
100
 CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt
idl
   00   01 32   160110511   3   1
95
   10   00 5164000 3   81   0   0
19
   20   0219   19   170100160   0   0
100
   34   0   13   2022   15110041   19   2   0
78
 CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys  wt
idl
   04   05 55   170110701   2   1
96
   14   00 51   11400036   84   0   0
15
   22   0426   26   280100812   0   0
98
   30   0   20   2044   19100024   14   0   0
86

 Before today, this was happening about every 3 days. Today it happened 5
hours apart. By going through our logs, we have determined that this is not
caused by any specific user action. It is also not caused by server load, as
it mostly happens with less than 5 users accessing the application. It is
also not a gradual thing. Our sar statistics show that our processor idle
time is 98% and then 5 minutes later it's down to 83% and in another 5
minutes, it's at 49%.

 Is there any way that I can tell exactly what is happening in the
offending thread?

 Any other ideas on what's causing this problem?

 Thanks,
 Kelly


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: loading oracle drivers from classes12.zip?

2001-02-09 Thread Craig O'Brien

Just for clarification:

I am using win2000 server with IIS5

Tomcat 3.2

Sun JDKs 1.3 and 1.2.2

I am not using JDBC Realms as I access Oracle, DB2, MSSQL7, and MySQL and my
understanding is that I have to wait for Tomcat 4 for multiple databases
realms.  No matter as I wrote some code for that myself.

Tomcat is configured as stand alone with Isapi redirect.

I am just calling the thin driver(oracle.jdbc.driver.OracleDriver)
URL(jdbc:oracle:thin:@localhost:1521:databasename) in Oracle's directory:
jdbc/lib/classes12.zip

Fortunately for me, (??!!) I have never had any troubles with anything
regarding Tomcat.  :0)

Good luck,
Craig

-Original Message-
From: Drasko Kokic [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 09, 2001 10:05 AM
To: [EMAIL PROTECTED]
Subject: RE: loading oracle drivers from classes12.zip?


The "things" changed slightly under T3.2  :-)
My advice is to rename classes12.zip into
classes12.jar

HTH
Drasko


--- Craig [EMAIL PROTECTED] wrote:
 I have had no troubles with the zip files on Win2000
 server and IIS5.
 Someone a while ago mentioned rejaring the contents.
  Oracle 8I enterprise
 has worked perfectly for me with tomcat using the
 thin driver with no
 modifications.

 Good luck,
 Craig

 -Original Message-
 From: John Coonrod [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 09, 2001 9:39 AM
 To: tomcat
 Subject: loading oracle drivers from classes12.zip?


 Has anyone been able to get the oracle thin drivers
 to load from the zip
 file rather than having to unpack them - when
 running tomcat on an nt
 server?

 
 Dr. John Coonrod, Vice President, [EMAIL PROTECTED]
 The Hunger Project, 15 East 26th Street, NY, NY
 10010 www.thp.org



-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
 [EMAIL PROTECTED]



-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, email:
[EMAIL PROTECTED]


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35
a year!  http://personal.mail.yahoo.com/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Which JVM for Tomcat?

2001-01-23 Thread Craig O'Brien

Hello forsythe,

I recommend downloading the Java 1.3 SDK.  I believe it is final now..?  It
outperforms earlier versions and would be the best choice for your server.
If you are downloading at 56k - ...oh well, just do it.  It also includes
all of the latest features (java 2d, java 3d, java media, etc.)  It is
stable and is a good performer. You need a good compiler for JSP pages.

For applets, you are stuck with 1.1 and earlier if you want the majority of
your visitors to make use of them.  The plug in is a 2-3 meg download and it
is unreasonable to expect a visitor to download that.  There is also a bug
in Sun's delivery system currently which doesn't allow Internet Explorer to
download the plug in anyway.  You will receive the latest plug in with your
version 1.3.  You can still compile your applets with depreciated methods.
You can install multiple JDKs of different versions on the same machine.

Good luck,
Craig



-Original Message-
From: forsythe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 23, 2001 6:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Which JVM for Tomcat?


 Also I will also have APPLETS running in addition to servlets  JSPson
this
 server... So if I create a JAVA2 APPLET that WILL require a user download,
 right? Right.

Fine.  What has that got to do with Tomcat or the JVM you are installing
on your server?  Nothing.  Right?  Right.

 If you read carefully I asked "Which jvm works BEST" The Best. BEST. Ok
one
 more time " THE BEST" I Tomcat supports ALL JVMs, I'm asking if people
have
 preferences based off experience.

Best for what.  FOR WHAT?  Ever hear of requirements?  Right?  Right.

 Hey 'Charles' I think you should try to learn how not to be a prick while
 answering people questions.  Ass.

OK.  Tomorrow I will be nicer.  I doubt that you will be any smarter.

-- Charles

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: How can i call my servlet ?

2001-01-22 Thread Craig O'Brien

Place your package as such:

ROOT/WEB-INF/classes/servlet/myServlet.class

then access your package http://localhost:8080/servlet/servlet.myServlet

similar to this:
ROOT/WEB-INF/classes/servlet/packageName/classFile

access:
http://hostname/servlet/packageName.servletName

You are almost there, place your package inside the classes directory.

Regards,
Craig




-Original Message-
From: M. Amin [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 22, 2001 11:40 AM
To: [EMAIL PROTECTED]
Subject: How can i call my servlet ?


Hi all,
 i have a small question
I created a servlet class in a pakage com.servlet and i stored it in the
ROOT directory inside WEB-INF directory as com/servlet/myservlet.class with
web.xml file and it works fine when i call it with URL
http:8080//servlet/com.servlet.myservlet.

but when i created another directory like "amin" and i copied all of the
contents of the WEB-INF directory and when
i tried to call my servlet from "amin" directory like
http:8080//amin/servlet/com.servlet.myservlet tomcat generates an error
message with file not found. I don't know why ?

Can any one help me ? any comments will be appreciated.

M. Amin


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Buffering of servlet responses

2001-01-21 Thread Craig O'Brien

Excuse my confusion but,  HttpServletResponse does not contain the methods
setBufferSize() or flushBuffer().  Did you leave these out of your example?

Also, If you set a buffer size to 0 would there be anything there to flush?

Regards,
Craig

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 9:41 AM
To: [EMAIL PROTECTED]
Subject: Buffering of servlet responses


Hi,

Apologies if this has been asked before but the search on the mailing list
archive directs to port  at the moment which I cannot access from behind
my firewall.

I'm trying to get the small servlet 'push' example below working but tomcat
appears to ignore the requests to flush it's buffers.

The content does not leave the server until the page is finished.

I'm guessing that people must be already doing this sort of thing, so what
have
I missed?

Tomcat: 3.2.1
JDK: 1.2.2
OS: Linux 2.2.18

thanks,

- Dale

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;

public class TestPushServlet extends HttpServlet {
public void doGet(HttpServletRequest req, HttpServletResponse resp) {
try {
resp.setBufferSize(0);
resp.setContentType("text/html");

PrintWriter out = resp.getWriter();


out.println("htmlheadtitleTestPushServlet/title/headbody");

for (int i = 0; i  10; i++) {
Thread.sleep(2000);
out.println(i + "br");
out.flush();
resp.flushBuffer();
}
out.println("/body/html");
} catch (Exception ex) {
ex.printStackTrace();
}
}
}

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Cache in tomcat....?????

2001-01-21 Thread Craig O'Brien

Make sure that you are not assigning variables via "%!" which sets static
variables which will carry from page to page, user to user.

Re-start tomcat as once you instantiate a jsp or servlet it will exist even
if the file is deleted.

Regards,
Craig

-Original Message-
From: Mick Sullivan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: Cache in tomcat?


Hi,
I got my first JSP pages and bean working a few minutes ago.
Basically what the application does is take input from the first page and
output it on a response page after submission.
My problem is that when I tried to modify the response page it keeps using
the old version. I actually deleted the response page, yet still the
response page loads after submission??
Anyone got any ideas?
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Buffering of servlet responses

2001-01-21 Thread Craig O'Brien

I stand corrected.  Since version 2.3 these are methods of the
ServletResponseWrapper.  Thank you for bringing this to my attention. Tomcat
3.2 uses a servlet.jar which was updated 11/29/2000 so the capabilities of
this wrapper should be included.  I tried your code and got the same result.

This seems like something that could be very interesting.  Perhaps it would
be useful combined with innerHTML.?

I see you have replied.  I was using the old spec.  We can wait for the bug
fix then.

Best Regards,
Craig


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 11:04 AM
To: [EMAIL PROTECTED]
Subject: Re: Buffering of servlet responses


I think they may be tomcat specific?

thanks,

- Dale

$ export CLASSPATH=~/proj/jakarta-tomcat-3.2.1/lib/servlet.jar
$ javap javax.servlet.ServletResponse
Compiled from ServletResponse.java
public interface javax.servlet.ServletResponse
/* ACC_SUPER bit NOT set */
{
public abstract void flushBuffer() throws java.io.IOException;
public abstract int getBufferSize();
public abstract java.lang.String getCharacterEncoding();
public abstract java.util.Locale getLocale();
public abstract javax.servlet.ServletOutputStream getOutputStream()
throws
java.io.IOException;
public abstract java.io.PrintWriter getWriter() throws
java.io.IOException;
public abstract boolean isCommitted();
public abstract void reset();
public abstract void setBufferSize(int);
public abstract void setContentLength(int);
public abstract void setContentType(java.lang.String);
public abstract void setLocale(java.util.Locale);
}

On Sun, Jan 21, 2001 at 10:19:58AM -0800, Craig O'Brien wrote:
 Excuse my confusion but,  HttpServletResponse does not contain the methods
 setBufferSize() or flushBuffer().  Did you leave these out of your
example?

 Also, If you set a buffer size to 0 would there be anything there to
flush?

 Regards,
 Craig

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, January 21, 2001 9:41 AM
 To: [EMAIL PROTECTED]
 Subject: Buffering of servlet responses


 Hi,

 Apologies if this has been asked before but the search on the mailing list
 archive directs to port  at the moment which I cannot access from
behind
 my firewall.

 I'm trying to get the small servlet 'push' example below working but
tomcat
 appears to ignore the requests to flush it's buffers.

 The content does not leave the server until the page is finished.

 I'm guessing that people must be already doing this sort of thing, so what
 have
 I missed?

 Tomcat: 3.2.1
 JDK: 1.2.2
 OS: Linux 2.2.18

 thanks,

 - Dale

 import javax.servlet.*;
 import javax.servlet.http.*;
 import java.io.*;

 public class TestPushServlet extends HttpServlet {
 public void doGet(HttpServletRequest req, HttpServletResponse resp) {
 try {
 resp.setBufferSize(0);
 resp.setContentType("text/html");

 PrintWriter out = resp.getWriter();


 out.println("htmlheadtitleTestPushServlet/title/headbody");

 for (int i = 0; i  10; i++) {
 Thread.sleep(2000);
 out.println(i + "br");
 out.flush();
 resp.flushBuffer();
 }
 out.println("/body/html");
 } catch (Exception ex) {
 ex.printStackTrace();
 }
 }
 }

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: IIS 5.0, Windows 2000 Server, Tomcat 32

2001-01-21 Thread Craig O'Brien

I have had Tomcat 3.2 running on Windows 2000 server with IIS-5 as a stand
alone configuration with the isapi_redirect.dll for about 1 month. It has
been stable and performed better then I expected.  My configuration is a
single cpu.  The documentation in the package that you download is good and
will get you running fairly quickly if you are familiar with running Java
apps.  I also use MS-SQL7, DB2, Oracle 8I, and mySql and everything works as
expected. I much prefer JDBC to ADO. The isapi_redirect.dll is pre-compiled
and must be downloaded separately.  Documentation is in the original
documentation package.  I see the advantage is that you can still use IIS
with all of its functionality and native components, and Tomcat for Java.
To the visitor it is seamless.  Spend some extra time getting really
familiar with the directory structure and all of the configuration files in
the config directory.  We should see a final version of Tomcat 4 soon. You
can install Tomcat and play with it without affecting IIS.

Hope this helps,
Craig

-Original Message-
From: Niemiec, Greg [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 12:59 PM
To: '[EMAIL PROTECTED]'
Subject: IIS 5.0, Windows 2000 Server, Tomcat 32


I am looking at installing Tomcat on a multiple CPU IIS 5.0 system and was
wondering has anyone did it yet?  I have read the tomcat-iis-howto but the
thread stops 30 November..

Thanks in advance..

Greg..

Greg Niemiec
Per-Se Technologies
Software Development Environment Engineer
[EMAIL PROTECTED]
909/888-3282



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: installing servlet

2001-01-21 Thread Craig O'Brien

The default location for servlets is tomcat/webapps/ROOT/WEB-INF/classes/.

If you place your servlet here you will access it by
http://localhost:8080/servlet/myServlet

You can configure other locations if you like.

Hope this helps,
Craig

-Original Message-
From: wtf [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 5:14 PM
To: [EMAIL PROTECTED]
Subject: "installing" servlet


I'm new to Tomcat; I've recently downloaded and installed (from binaries)
Tomcat 3.2 for Windows onto a WinNT 4.0 SP6a machine.  I'm using IIS 4.0,
JDK1.3 (Sun's), servlet API 2.1.1 (Sun's), isapi_redirect.dll, and I'm
running Tomcat as an NT service (jk_nt_service.exe).

I've read (and re-read and re-read) all the on-line docs that come with the
Jakarta-Tomcat ZIP.  I've also poured over bunches of docs and samples
found on the Web, as well as consulting the O'Reilly's "Java Examples in a
Nutshell" book.

No matter what I do, I CANNOT get a servlet to run within my own
context.  I have NO problem running the demos (examples), and I *CAN* get
my servlet to run, but ONLY if I drop it into the examples\WEB-INF\classes
directory.  (Therefore, I know my Tomcat installation is fine, and I know
that my servlet works.)

I've added the following to conf\server.xml between two other Context ...
items:

Context path="/util"
 docBase="webapps/util"
 crossContext="false"
 debug="0"
 reloadable="true" 
/Context

I've created webapps\util and ...\util\WEB-INF and ...\util\WEB-INF\classes.
I copied conf\web.xml to my WEB-INF directory and tweaked it down to this:

?xml version="1.0" encoding="ISO-8859-1"?
!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
web-app
servlet
servlet-nameSimpleServlet/servlet-name
servlet-classSimpleServlet/servlet-class
/servlet
session-config
session-timeout30/session-timeout
/session-config
/web-app

Needless to say, the servlet's name is SimpleServlet, and it belongs to no
package.
I might add at this point that when I dropped my servlet's class into the
examples directory - the only place I can get it to run - I did NOT need to
alter the web.xml file in that location.

The best and most clear instructions I have found for how to "install" a
servlet appear in the FAQ list of the docs included with the Tomcat
installation.  Yet, even after following those procedures step-by-step, I
still cannot get my servlet to run within a context I created.

HELP

- Liam


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Tomcat - IIS

2001-01-21 Thread Craig O'Brien

I am using IIS5 but here goes:

Open your IIS management console and highlight your active HTTP server.
Right click on it and get the server's properties.  There should be a tab
for ISAPI Filters.  Navigate to tomcat/bin/win32/i386 (where you placed
isapi_redirect.dll) and install it. reboot(I think)

If IIS4 is different I cannot help.

Good luck,
Craig

-Original Message-
From: Kenny Lee [mailto:[EMAIL PROTECTED]]
Sent: Sunday, January 21, 2001 5:12 PM
To: [EMAIL PROTECTED]
Subject: Tomcat - IIS


Hi,
   May i know how to do this step:

   8.Using the IIS management console, add
isapi_redirect.dll as a filter in your IIS/PWS web
site...

   I am using IIS4.0 on a NT Environment.

Rgds,
Kenny

__
Do You Yahoo!?
Yahoo! Mail – Free email you can access from anywhere!
http://mail.yahoo.com.sg/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: I don't want cached pages

2001-01-19 Thread Craig O'Brien

Add these two lines to your Servlet or JSP:

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");

Not guaranteed to work in every browser.

Regards,
Craig


-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:12 AM
To: [EMAIL PROTECTED]
Subject: I don't want cached pages


I'm developing a website using Tomcat but I have a little problem.

I use a page that calls itself passing some parameters and based on the
parameters passed shows certain result.
The first time I call the page the URL looks like this:

http://myHost:21968/Demos/Formating.jsp

and I get the "original page"
After calling itself with a parameter, the URL look like this:

http://myHost:21968/Demos/Formating.jsp?parameter=123

and I get the "result page"
If I try to get the original page typing
http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the
last page showing a result. It happens even if I call the page from a
different computer.

This is a serious problem because it means that someone accessing the site
for the first time, would see the result page generated by the parameters
passed by the last visitor instead of the original page.

The only way I've found to solve this is restarting Tomcat's service. Doing
so I won't get the result page but the original page.
But of course, I don't want to be restarting Tomcat's service everytime a
visitor wants to access the site.

Does anyone have a solution to this problem?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: I don't want cached pages

2001-01-19 Thread Craig O'Brien

Mr. Coit is correct.

Is a proxy server involved?  Chances are your pages are being cached there.

Good luck,
Craig



-Original Message-
From: Ciot, Thierry [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 11:41 AM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: I don't want cached pages


I found this somewhere (don't recall where) to prevent caching in the
browser.

%
response.setDateHeader("Expires", 0);
response.setHeader("Pragma", "no-cache");
if ( request.getProtocol().equals("HTTP/1.1") )
   response.setHeader("Cache-Control", "no-cache");
%

If you tried accessing the page from a browser on 2 different machines and
you are getting what you describe then it is not a browser caching problem
but rather a pb on the server.

Thierry
-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 2:12 PM
To: [EMAIL PROTECTED]
Subject: I don't want cached pages


I'm developing a website using Tomcat but I have a little problem.

I use a page that calls itself passing some parameters and based on the
parameters passed shows certain result.
The first time I call the page the URL looks like this:

http://myHost:21968/Demos/Formating.jsp

and I get the "original page"
After calling itself with a parameter, the URL look like this:

http://myHost:21968/Demos/Formating.jsp?parameter=123

and I get the "result page"
If I try to get the original page typing
http://myHost:21968/Demos/Formating.jsp in the browser, what I get is the
last page showing a result. It happens even if I call the page from a
different computer.

This is a serious problem because it means that someone accessing the site
for the first time, would see the result page generated by the parameters
passed by the last visitor instead of the original page.

The only way I've found to solve this is restarting Tomcat's service. Doing
so I won't get the result page but the original page.
But of course, I don't want to be restarting Tomcat's service everytime a
visitor wants to access the site.

Does anyone have a solution to this problem?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: I don't want cached pages

2001-01-19 Thread Craig O'Brien

I cannot duplicate your problem.  Are you having the same problem with the
JSP example carts  http://localhost:8080/jsp/sessions/carts.html ?  Are you
using Apache?  I am using IIS5 but am having no problems.  I have several
applications like you mention and I can open up multiple instances of the
same browser on the same machine and no information is passed between them.

You may try printing the session id to the screen to see if you are having a
problem there.  You could try specifying a non-persistent connection in the
JSP page, and next a non-persistent connection in the server.

Good luck,
Craig







-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:10 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: I don't want cached pages


I'm just one more guy with the same trouble: Tomcat is caching my pages.

I use a page that receives certain parameters and gives a result. And
everytime I made a request in the browser for that particular .jsp page, I
get the last version of that page served. It means that anyone entering my
site would see the last served paged with the results from the last visitor,
which is something terrible.

I've received some kind emails from the community suggesting me to include
the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in
the header to avoid caching. This is not working, and that's because (and
I'm convinced of this) it's not a browser/proxy problem.
It is Tomcat that keeps the last version cached, and I'm sure of it because
it's enough to restart Tomcat to solve the problem.
Anyway, it will be crazy to restart Tomcat every time a visitor wants to
enter my site.

I've been reading the mailing and I've noticed there's a lot of people with
the same problem and no real solution.

I know that Amos Shapira and David S. Adress have been through the same.

If anyone has the solution to this problem please tell me, I need it very
badly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: I don't want cached pages

2001-01-19 Thread Craig O'Brien

This seems silly but, you wouldn't by chance be accessing static variables
in your JSP by chance would you?

Craig

Just throwing stuff out



-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: I don't want cached pages


I cannot duplicate your problem.  Are you having the same problem with the
JSP example carts  http://localhost:8080/jsp/sessions/carts.html ?  Are you
using Apache?  I am using IIS5 but am having no problems.  I have several
applications like you mention and I can open up multiple instances of the
same browser on the same machine and no information is passed between them.

You may try printing the session id to the screen to see if you are having a
problem there.  You could try specifying a non-persistent connection in the
JSP page, and next a non-persistent connection in the server.

Good luck,
Craig







-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:10 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: I don't want cached pages


I'm just one more guy with the same trouble: Tomcat is caching my pages.

I use a page that receives certain parameters and gives a result. And
everytime I made a request in the browser for that particular .jsp page, I
get the last version of that page served. It means that anyone entering my
site would see the last served paged with the results from the last visitor,
which is something terrible.

I've received some kind emails from the community suggesting me to include
the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in
the header to avoid caching. This is not working, and that's because (and
I'm convinced of this) it's not a browser/proxy problem.
It is Tomcat that keeps the last version cached, and I'm sure of it because
it's enough to restart Tomcat to solve the problem.
Anyway, it will be crazy to restart Tomcat every time a visitor wants to
enter my site.

I've been reading the mailing and I've noticed there's a lot of people with
the same problem and no real solution.

I know that Amos Shapira and David S. Adress have been through the same.

If anyone has the solution to this problem please tell me, I need it very
badly.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Time out / Idle

2001-01-19 Thread Craig O'Brien

Gaston,
Tomcat will not time out and shut down as far as I am aware.  It never has
on me and it runs for days and weeks between reboots.  Soon to be months
hopefully.  Perhaps it is being started by someone with less then root
privileges and when they log out the process goes with them. ?..

What version are you using.  I use 3.2 and JDK 1.3 and have very stable
performance.  Do your system resources ever become critical?  Power
shortages, rolling blackouts... What OS are you using?

good luck,
Craig

-Original Message-
From: Gaston R. Cangiano [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 4:17 PM
To: [EMAIL PROTECTED]
Subject: Time out / Idle


Hi there folks,

anybody would know why tomcat dies after a while of no use? i don't see a
property specifying idle time, nor errors in the logs. Is this a bug?

Many thanks,

Gaston.



Gaston R. Cangiano
Kite Design Studio
Tel: 510-486-8271
Fax: 425-930-1047
[EMAIL PROTECTED]
http://www.kitedesign.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: I don't want cached pages

2001-01-19 Thread Craig O'Brien

Thierry is correct!!

When you use %!  you are inserting variables into the main body of the
servlet class, outside of the JSPService.  This is useful for "global"
counters and such but not for your use.

Take a look at your preferences in your browser.  I set my browsers to the
minimum cache and reload on every request.  That is more useful for testing.

Regards,
Craig

-Original Message-
From: Ciot, Thierry [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 5:03 PM
To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Subject: RE: I don't want cached pages


To understand why it is working that way the best thing is to look at the
generated java file (in the work directory).
Youy will see that when you use %!  the variables are defined at the java
class level
When you use % the variables are defined within the jspservice method (that
is they are local variables).

Thierry.

-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 7:53 PM
To: 'Craig O'Brien'
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: RE: I don't want cached pages


Craig,

I want to thank you for your help. I tried the carts.html example with the
following results:
- In my machine I added some articles to the cart. Then I closed my browser
and opened it again. When I ran the example and added 1 more item, I noticed
that all of the items I've added before where still in the cart, which
didn't look nice to me.
- Then I went to another computer and tried the same example. I added 1 item
to the cart and I was expecting to a list with the items I've added in my
computer, but I saw just 1 item. Which was perfectly fine.

I opened the carts.jsp file and noticed that the bean they where using had
"session" as the parameter in "scope". Anyway, I didn't used beans in my
.jsp file (the one I had troubles with), but it made think it wasn't the
page that remained cached but the variables I was using, so I reviewed my
.jsp file and I found the problem:

I was initializing my variables with something like this,

%!
  String strOne = "", strTwo = "", strThree = "";
  Double dblNumber = 0.0;
  Locale currentLocale;
%

Then I used some java code to assign these variables some values and I
expected that the variables where initialized each time I called the .jsp
file but it wasn't like that.

Removing the "!" solved the problem. My variables are now initialized like
this,

%
  String strOne = "", strTwo = "", strThree = "";
  Double dblNumber = 0.0;
  Locale currentLocale;
%

It's like if I use "%!" to initialize the variables, they are initialized
just the first time the page is called, and the subsequent values assigned
to them remain on the next requests to the page.
Using only "%" seems to initialize the variables on each request.

Do these ideas make any sense or I'm just to tired?

I'm not really sure why this is working like this, but it's working!



-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 5:39 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: I don't want cached pages


I cannot duplicate your problem.  Are you having the same problem with the
JSP example carts  http://localhost:8080/jsp/sessions/carts.html ?  Are you
using Apache?  I am using IIS5 but am having no problems.  I have several
applications like you mention and I can open up multiple instances of the
same browser on the same machine and no information is passed between them.

You may try printing the session id to the screen to see if you are having a
problem there.  You could try specifying a non-persistent connection in the
JSP page, and next a non-persistent connection in the server.

Good luck,
Craig







-Original Message-
From: Hugo Lara [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 3:10 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: I don't want cached pages


I'm just one more guy with the same trouble: Tomcat is caching my pages.

I use a page that receives certain parameters and gives a result. And
everytime I made a request in the browser for that particular .jsp page, I
get the last version of that page served. It means that anyone entering my
site would see the last served paged with the results from the last visitor,
which is something terrible.

I've received some kind emails from the community suggesting me to include
the "Expires", "Pragma" and "Cache-control" (with the appropiate values) in
the header to avoid caching. This is not working, and that's because (and
I'm convinced of this) it's not a browser/proxy problem.
It is Tomcat that keeps the last version cached, and I'm sure of it because
it's enough to restart Tomcat to solve the problem.
Anyway, it will be crazy to restart Tomcat every time a visitor wants to
enter 

RE: Set up path for running the servlets

2001-01-19 Thread Craig O'Brien

Hello Pamela,

There is a configuration file located in the webapps/ROOT/WEB-INF directory
called web.xml.  This is the first place where servlets look for
ServletConfig information.  This is probably what you are looking for if I
understood you correctly.  This is where you add your taglibs, paths to
password files, give servlets handles etc.  You can download the DTD at
http://java.sun.com/j2ee/tdts/web-app_2_2/dtd to see what you can do with
it.  You must restart tomcat for changes to take effect.

Hope this helps,
Craig

-Original Message-
From: Pamela Chung Yan Yau [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 19, 2001 8:14 PM
To: [EMAIL PROTECTED]
Subject: Set up path for running the servlets


Hi,

My name is Pamela.  I am a student currently trying to implement a
wireless front end of a home network model.  In my project, I need to run
a Java Servlet using Apache-tomcat server.

I have a technical problem which I would like to seek some help.  The java
servlet that I used requires another .jar file (to resolve external
symbols in the code).  In compiling and running a typical java source
code, I would basically set and run the classpath (with the .jar file) in
some .bat file and it would then be able to pick up the external symbols.
I don't know if other configuration is required or not when running a java
servlet in a browser environment.  My current problem encountered is that
it fails to resolve some external symbols in the servlet code in a
browser environment.

I hope I would be able to get some insight on this problem.  Thanks.
If I haven't explained the problem detailed enough, please don't hesistate
to email me.

Pamela Yau
(519)880-1478





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-18 Thread Craig O'Brien

Hey that's a good idea!  :0)

Could you please place these lines in your Servlet,

response.setHeader("Cache-Control", "no-cache");
response.setHeader("Pragma", "no-cache");

.and let us know what happens.

This would be helpful for others as I have seen this problem several times
on this mailing list.

Thanks,
Craig

-Original Message-
From: Damian Penney [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 10:57 AM
To: [EMAIL PROTECTED]
Subject: RE: So can no one help with my Socket Write Error Question ?


Thanks Hans, this seems to make the most sense. I was seeing this error on
multiple images, not just those in the root, and it would produce errors
like:

Ctx(  ): IOException in: R(  + images/ + /tomcat-power.gif = + null)
Connection aborted by peer: socket write error

Haven't checked but these images were probably cached (and I was using IE5)

Still annoying though, I'm wondering if I just use apache to serve all my
images this issue will go away (using tomcat as a standalone right now)

Again, thanks to all for their help.
Damian




-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Hans
Bergsten
Sent: Wednesday, January 17, 2001 10:16 PM
To: [EMAIL PROTECTED]
Subject: Re: So can no one help with my Socket Write Error Question ?


"Damian Penney" [EMAIL PROTECTED] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt window
?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian

I have seen this when using Internet Explorer (IE) and the resource
is cached by IE. It seems like IE closes the connection before reading
the complete response in this case, so Tomcat complains that it
couldn't write the full response. I don't see a way to fix this at
the Tomcat end. It's irritating but nothing bad happens, so just
ignore it.

Hans
--
Hans Bergsten   [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
Author of JavaServer Pages (O'Reilly), http://TheJSPBook.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Problem with getHeader(Referer)

2001-01-18 Thread Craig O'Brien

Are you linking to the page or typing it in.  There is no referer if you
type it in;

I use:  request.getHeader(referer)   (Note that referer is all lowercase)
and get the referer fine in tomcat 3.2.1

Good luck,
Craig

-Original Message-
From: Dan Eppinghoff [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 18, 2001 5:32 AM
To: [EMAIL PROTECTED]
Subject: Re: Problem with getHeader("Referer")


I've tried it with IE 5.5, Netscape 4.7, and Netscape 6.  All 3 give the
same
result (null).
Any other ideas?  Is there any kind of config option in tomcat that would
effect
this?

Dan


Kief Morris wrote:

 Dan Eppinghoff typed the following on 11:02 PM 1/17/2001 -0500
 Hello all,
I have a problem getting the "Referer" header from the request object
in
 a JSP.  The
 only value I get for it is null.  I printed a list of the available
headers
 (via
 getHeaderNames()) and this is the list I got:
 User-Agent
 Cookie
 Accept
 Host
 Accept-Encoding
 Accept-Language
 Connection
 
 Does anyone have an idea why I can't get "Referer"?

 Which browser? Some versions of IE (5?) don't set the referer.

 Kief

 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Admin context login

2001-01-18 Thread Craig O'Brien



You 
are having an issue with your server's security. Tomcat does not implement 
anything like that. Make sure that you are logged on with all 
permissions. You probably have to be in the admin group or 
better.

God 
luck,
Craig

PS 
print out all the documentation ("html files" etc.) and you will not have a hard 
time configuring tomcat. browse to http://localhost:8080 for that info or look in 
the doc directory.

  -Original Message-From: Gary Bonde 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, January 18, 2001 
  4:12 PMTo: [EMAIL PROTECTED]Subject: Admin 
  context login
  Hi, I am a newbie at running tomcat and I have it 
  running on windows 2000 server and I am using tomcat 3.21 running as a stand 
  alone environment for now. I try and run the admin context page to edit 
  contexts and I am asked for a username and password for the realm admin. 
  I am not sure if this is realm managed by tomcat or an equivalent group 
  managed by windows 2000. I created a windows 2000 group called admin and 
  enrolled a user. I then tried that user/password but I am still not able 
  to run the context edit pages. What am I doing wrong?
  
  Thanks for the help in advance.
  
  Gary Bonde
  [EMAIL PROTECTED]


RE: Starting tomcat

2001-01-17 Thread Craig O'Brien

Do not put a ";" at the end of your classpath.  This "closes it off".

Hope this helps.

Craig

-Original Message-
From: Ted Husted [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 10:01 AM
To: Tomcat User List
Subject: Re: Starting tomcat



CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j
akarata\lib;C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakart
a\lib\jasper.jar;C:\jakarta\lib\ant.jarta;C:\jakarta\lib\weberver.jar;C:
\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\servlet.jar;

I'd suggest getting all of the Tomcat jars into the c:\jakarta\lib
folder, to make it easier to be sure they are all there, and each of
the path references are correct. One problem you might have later is
having two copies of servlet.jar on the classpath.

Then try 

cd c:\jakarta

bin\startup

*** REPLY SEPARATOR  ***

On 1/17/2001 at 5:38 PM tmmet tvp wrote:

Hi,
Can anyone help me out?.I'm unable to start Tomcat.
I used "tomcat run" syntax and I get
"Unable to locate servlet.jar.Check the TOMCAT_HOME".
Autoexec.bat has the following settings...
set JAVA_HOME=C:\jdk1.3;
set TOMCAT_HOME=C:\jakarta;
set

CLASSPATH=C:\Xerces\xerces.jar;.;C:\jdk1.3\lib;C:\Soap\lib\soap.jar;C:\j
akar
ata\lib;

C:\jakarta\lib\servlet.jar;C:\jakarta\lib\jaxp.jar;C:\jakarta\lib\jasper
.jar
;C:\jakarta\lib\ant.jar;

C:\jakarta\lib\weberver.jar;C:\jakarta\lib\parser.jar;C:\Soap;C:\jsdk\se
rvle
t.jar;
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\jdk1.3\bin;C:\jakarta\bin;
  DO I miss something?.Any ideas/suggestions will be greatly helpful
for
me.
Thanks in advance.




_
Get Your Private, Free E-mail from MSN Hotmail at
http://www.hotmail.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Question : thank you G.Nagarajan

2001-01-17 Thread Craig O'Brien

Thank you G.Nagarajan,

I just downloaded this driver and had it operating in 30 minutes.
www.freetds.org ( I had to write a program and  create a database or it
would have been even faster )  :0)  I had tried this site about a week ago
and the ftp server was down. I forgot all about it.  By the way the latest
snapshot.jar works fine so far on Win 2000 server with MS-SqlServer 7.
Benchmarks appear good.

Recommended!

Another benefit of lurking in this mailing list.

Good Luck,
Craig

-Original Message-
From: G.Nagarajan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 9:07 AM
To: [EMAIL PROTECTED]
Subject: RE: Question


There are many free JDBC drivers. If you are looking for sql*server,
there is www.freetds.org.

-Original Message-
From: Daniel Merchante [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:44 PM
To: '[EMAIL PROTECTED]'
Subject: Question


Hi there:

At this moment we are trying to implement the project in IIS 5, we use a
jakarta-tomcat container and we still try to use the jdbc-odbc
bridge(instead of spending money in a database driver). The jsp and
servlets are being executed, but after they have been accessed, if there
is a database connection inside them, Dr. Watson for windows NT appears
and displays this message:
'An application error has occurred and an application
error log is being  generated.
java.exe
Exception: access violation(0x005),
Address: 0x77f6ce4c

Do you know what could be wrong?, if not, do you know anyone I could
contact for suggestions,
I would really appreciate it.

Thanks.
Dan.


The information contained in this email is confidential and is intended
for the recipient
only. If you have received it in error, please notify us immediately by
reply email and
then delete it from your system. Please do not copy it or use it for any
purposes, or
disclose its contents to any other person or store or copy this
information in any medium.
The views contained in this email are those of the author and not
necessarily those of
Brite Software Ltd.






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Need some help please

2001-01-17 Thread Craig O'Brien

Are the examples working?  I assume the servlets are.

Probably a %CLASSPATH% issue.  The JSPs need to compile the first time you
call them so you need a reference to your JDK in the classpath.

You will need these elements in your classpaths:
This is just mine, yours may be slightly different...

%CLASSPATH%
Your path to:  \JDK1.3\lib\tools.jar
Your path to:  \JDK1.3

ALSO
%JAVA_HOME% path to:  \JDK1.3
%TOMCAT_HOME% path to:   \tomcat

Hope this helps,
Craig

lazybrain eh...

-Original Message-
From: lazybrain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Need some help please


I setup tomcat and most everything is working. Any time I try to
access a .jsp file I get the following.


"
Internal Server Error

The server encountered an internal error or misconfiguration and was unable
to
complete your request.

Please contact the server administrator,  and inform them of the time the
error
occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.


Apache/1.3.14 Server
"

the example servlets work, however any .jsp file does not. I can't find
anything in the documentation about this.  I set the log levels to debug
but nothing is helpfull at all. How can I fix this?? Thanks in advance.

Mike



-
"The Road to the Internet Starts Here"
http://www.enter.net/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: So can no one help with my Socket Write Error Question ?

2001-01-17 Thread Craig O'Brien

I don't have much to offer, but...

Tomcat-power.gif is one of the images on the default
http://localhost:8080/index.html page. Are all of the pages and examples
working?

I think I saw something similar to this when I was experimenting with a
connection pool in a reloading directory after many changes to the
servlet.(50 threads in the pool)  Not sure though. (win2k server) I
basically overloaded tomcat and it got confused but with this application
only.  Everything else on the server continued with no problem.  I just
restarted tomcat and everything was fine.

I would fuss around with win2k's permissions and TCP/IP filtering first.
What are the permissions in the tomcat directory?

Good luck,
Craig




-Original Message-
From: Jose Ferrer [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:17 PM
To: '[EMAIL PROTECTED]'
Subject: RE: So can no one help with my Socket Write Error Question ?


Damian,

This error drove us nuts. We were runnign tomcat 3.2.1 on a win98 machine.
It was finally fixed when we installed the latest win98 service pack. Hope
this helps.

Jose

On Wednesday, January 17, 2001 7:32 PM, Damian Penney
[SMTP:[EMAIL PROTECTED]] wrote:
 Just in case you missed it the first time :)

 Can anyone tell me why I'm getting this error in the command prompt
window ?
 The page seems to load ok though. I'm running W2K Advanced Server, and
 tomcat 3.2.1

 2000-10-24 01:41:19 - Ctx(  ): IOException in: R(  + /tomcat-power.gif =
 + null) Connection aborted by peer: socket write error

 Thanks for your help,
 Damian


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Need some help please

2001-01-17 Thread Craig O'Brien

If your JSPs are working on port 8080 then classpath is probably not the
issue.

jserv install page will probably have your answers.  It sounds to me like
your problem is to get Apache to direct jsp calls to tomcat.  Are the
Servlets working fine if you them in without the port?   I am not the best
at this as I use IIS and am not too familiar with Apache.

Look over the section in "A minimalist User's Guide" on "Setting up Tomcat
to Cooperate with the Apache Web Server."

Good luck,
Craig




 -Original Message-
From: Amjad Ashraf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:23 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Need some help please


hi, thank you for replying.
actually when I go through apache (i.e.
https://domainname.com/examples/jsp/num/numguess.jsp) I get the plain text
version of the file, meaning it is not working.  Going to servlets gives me
the error:
The requested url * was not found on the server.
so neither servlets or jsp's work when I go through apache.
but when I go through tomcat
(http://domainname.com:8080/examples/jsp/num/numguess.jsp) everything works
great.  Note, I am going through port 8080.
Where is this class path setting by the way?  I don't think it is an issue
for me since things work when I go directly through tomcat.  Why won't it go
through apache?!  I have followed the doucmentation meticulously at this
point.  Any ideas?  I just know there is a problem with mod_jk.so.  When I
go through apache and ask for *.jsp files, it doesn't realize to pass them
onto mod_jk (which passes it onto tomcat).


-Original Message-
From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 5:16 PM
To: [EMAIL PROTECTED]
Subject: RE: Need some help please


Are the examples working?  I assume the servlets are.
Probably a %CLASSPATH% issue.  The JSPs need to compile the first time you
call them so you need a reference to your JDK in the classpath.
You will need these elements in your classpaths:
This is just mine, yours may be slightly different...
%CLASSPATH%
Your path to:  \JDK1.3\lib\tools.jar
Your path to:  \JDK1.3
ALSO
%JAVA_HOME% path to:  \JDK1.3
%TOMCAT_HOME% path to:   \tomcat
Hope this helps,
Craig
lazybrain eh...
-Original Message-
From: lazybrain [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 17, 2001 3:48 PM
To: [EMAIL PROTECTED]
Subject: Need some help please


I setup tomcat and most everything is working. Any time I try to
access a .jsp file I get the following.


"
Internal Server Error
The server encountered an internal error or misconfiguration and was unable
to
complete your request.
Please contact the server administrator,  and inform them of the time the
error
occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.


Apache/1.3.14 Server
"
the example servlets work, however any .jsp file does not. I can't find
anything in the documentation about this.  I set the log levels to debug
but nothing is helpfull at all. How can I fix this?? Thanks in advance.
Mike



-
"The Road to the Internet Starts Here"
http://www.enter.net/



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Error: Not Found (404)

2001-01-16 Thread Craig O'Brien

What happens when you use the url http://localhost:8080/jsp/index.html ?  Do
you get the index page?  If not make sure that you have tomcat started and
all of your classpaths correctly entered. (JAVA_HOME, TOMCAT_HOME etc.)

404 error means that you have a directory misrouting issue. (File not found)
A wild guess would say that IIS is not redirecting to tomcat and you have no
"jsp/index.html" in IIS's path.

Did you make the registry settings as listed in "IIS how to"?  Have you
created a virtual directory named "jakarta" in the same folder that the
isapi_redirect.dll is located?  Have you assigned this directory "execute"
access?  Have you added the iapid_redirect.dll as a filter in IIS?

Make sure that your uriworkermap.properties file has an entry
/examples/*=ajp12  .  This will be an important file once you get going.
This is where the isapi_redirect gets its information.  You have to restart
tomcat to make changes.

Print out the "IIS Howto" so you have a copy in hand.  Go through the steps
deliberately.

Good luck, isapi_redirect.dll is known to work on NT4+ (with service packs).

Regards,
Craig


-Original Message-
From: Yeo Kheng Hui [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 16, 2001 1:22 AM
To: [EMAIL PROTECTED]
Subject: Error: Not Found (404)


Hi
I have just recently try to set-up tomcat to be integrated with IIS.
I have installed the tomcat as an out-process and while trying to load
the url=Http:/localhost/examples/jsp/index.html after the installation,
i got the error as shown below :

Not Found (404)
Not Found request /jakarta/isapi_redirect.dll


Could you please help me?  I have checked through all the
troubleshooting guide and could not find a solution  Thanks in advance.


Regards
Kheng Hui


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Installing Tomcat on Windows 2000

2001-01-15 Thread Craig O'Brien

Hello,

Make sure that you have set a %TOMCAT_HOME% entry into your  environmental
variables (ex c:\tomcat\bin ).  Make sure you have set a  %JAVA_HOME%
environmental variable. (ex c:\jdk1.3 ) These two variables will have to be
created as they are not default to win 2000.  I believe that you said that
you checked your %CLASSPATH% , that is important. (the only entry I have for
tomcat in my %CLASSPATH% is c:\tomcat\bin\servlet.jar )  Make sure that your
JDK is in the %CLASSPATH%  (are you able to javac etc. without typing the
classpath?)  Very important to NOT "close off" your paths with a ";".

Print out your documentation from the tomcat/docs folder. (the HTML pages
(29 pages))  The "Minimalist User's Guide" and "Tomcat IIS Howto" are good.
While your at it also print out all of the other documents as you should get
familiar with them.

Go through the documents carefully and deliberately.

Good luck,

Craig

-Original Message-
From: Shicheng TIAN(CMS) [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 15, 2001 6:08 AM
To: [EMAIL PROTECTED]
Subject: Installing Tomcat on Windows 2000


Colleagues,
I have downloaded the file jakarta-tomcat-3.2.1.zip from
"http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/" and
tried
to
install it onto my PC; several colleagues from the list have tried to
advice me to get around the problems I have, but so far tomcat still doesn't
work with me!

The problem is: whenever issuing the commend: "tomcat run", I always got
following errors:
D:\jakarta-tomcat-3.2.1\bintomcat run
Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.Miss
ingResourceException: Can't find bundle for base name
org.apache.tomcat.resource
s.LocalStrings, locale en_GB
at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle
.java:707)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at
org.apache.tomcat.util.StringManager.init(StringManager.java:115)
at
org.apache.tomcat.util.StringManager.getManager(StringManager.java:26
0)
???
So what is this error message about and how to get around it???

Thanks for your advice in advance!

Shicheng


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Redirector Failure

2001-01-15 Thread Craig O'Brien



Have 
you created a virtual directory named "jakarta" in the same folder that the 
isapi_redirect.dll is located? Have you assigned this directory "execute" 
access? Have you added the iapid_redirect.dll as a filter in 
IIS?

Your 
"Access Violation" seems to be an issue with NT. Go over the document 
"Tomcat IIS Howto" very thoroughly.

I am using Win 2000 Serverwith Tomcat 3.2 and 
isapi_redirect.dll with no problems. 
Don't know about NT4 or Tomcat 3.1.
Good 
luck,
Craig

  -Original Message-From: michael.paul3 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, January 15, 2001 
  9:27 AMTo: [EMAIL PROTECTED]Subject: 
  Redirector Failure
  I have a problem with using the isapi_redirector.dll with 
  Windows NT4.0. I am trying to use Tomcat 3.1 with JDK1.3 and the NT 
  service pack4.0. Every time I try to access any Servlets or JSPs using 
  the redirector the web server crashes and I get a message: Dr Watson for 
  Windows NT.Exception access violation(0x005) Address 0x10002110. 
  I have searched the archive of FAQ's without success. I have checked the 
  installation several times and rechecked that all the registry entries are 
  correct. I have checked the isWorkDirPersistent="false", all without 
  success. Does anybody have any suggestions? Would upgrading to 
  Tomcat 3.2 or 4.0 improve the situation? Any help at all would be 
  appreciated.
  
  Mike Paul


RE: Install the Binary Version of Tomcat

2001-01-13 Thread Craig O'Brien

I had a similar problem and found it to be a semicolon at the end of my
classpath.  Look at your classpath very closely.  I am running tomcat 3.2.1
on Windows 2000 server with no problems.

I start tomcat by simply double-clicking on the startup.batch file in the
tomcat\bin directory.  This opens its own dos window. Shut it down by
double-clicking on the shutdown.batch file which closes the dos window.  You
can make a shortcut on your desktop.

Hope this helps.

Craig

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Saturday, January 13, 2001 7:02 AM
To: [EMAIL PROTECTED]
Subject: Re: Install the Binary Version of Tomcat


Shicheng TIAN(CMS) typed the following on 01:20 AM 1/13/2001 +
Hello there,
I followed the instruction below trying to install Tomcat (on Windows
2000),
but failed to do so?!
...
D:\jakarta-tomcat-3.2.1\bin\startup

a new window (Tomcat 3.2) would appear for one/two seconds, then
it killed itself immediately!?

Try opening a DOS window, change to the D:\jakarta-tomcat-3.2.1\bin
directory, and run: "tomcat run"

This should run tomcat in the same window, so you can see the error
messages. Also check the logs in jakarta-tomcat-3.2.1\logs.

Kief


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]




RE: Installation on Windows 2000

2001-01-12 Thread Craig O'Brien

I just installed Tomcat 3.2  on windows 2000 Server yesterday and it went
rather easily.  Everything works great! :0)

Print out and read the documentation that comes with the download before you
begin.  Also print out the server.xml, tomcat.xml etc all of the
configuration files.  The documentation is good.  There are about 25 steps
or more including modifying your registry so be careful.  Preparation and a
hard copy in hand are the keys.  I would estimate that I could do the entire
procedure now in about 2 hours although it took about a day the first time.
This morning I was able to set up MySQL with tomcat as well.  Sql-Server7
and DB2 to come over the weekend.

I chose to use the isapi_redirect.dll and a stand alone configuration as it
appears to be the most stable and still allows full functionality of the
existing IIS-5. This means several configuration files must be dealt with.
Speed with my personal servlet library seems better then ASP and Visual
Basic. JSP pages will be slow the first time they are run but performance is
very good afterwards. (they must compile)  Tweak the workers.properties file
to get maximum performance.

Don't drink too much caffeine and use a "Zen" approach and it will come
together. Take some time to really learn the directory structure. You can
set directories to automatically reload.

Important files and documents:
readme.txt
A Minimalistic User's guide
tomcat IIS How to
uriworkermap.properties
tomcat.policy
tomcat.properties
workers.properties
server.xml

Good luck,
Craig

-Original Message-
From: Shicheng Tian [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 12, 2001 3:06 PM
To: tomcat-user
Cc: s.tian
Subject: Installation on Windows 2000


Hello there,

I wonder if anyone could advice me on the procedures/install instructions
for installing

Tomcat on the following platforms:

1. Windows 2000;

2. Windows NT 4.0 Workstation.

Thanks,

Shicheng

PS: JRun from Allaire Corporation is an expensive software which supports

JSP; so what is the difference between JRun and Tomcat?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]