Re: Starting tomcat

2001-01-17 Thread Ted Husted

 C:\jsdk\servlet.jar;

This should probably be jdsk (transposition).


*** 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]




Re: Starting tomcat

2001-01-17 Thread Ted Husted


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]




Re: Tomcat on a dialup connection

2001-01-17 Thread Ted Husted

On 1/17/2001 at 1:05 PM adele wrote:
 Will I have the same problem if I download Tomcat?? (Also, is it easy
to uninstall later?)

By default, Tomcat just runs on demand, via a batch file. It runs over
the Java Virtual Machine, and doesn't install anything in your system
directories. To uninstall Tomcat, you can just delete the folder (like
the good old days!). 

-T.


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




Re: Two questions from a new user

2001-01-12 Thread Ted Husted

On 1/12/2001 at 10:06 AM Collins, Jim wrote:
 1. Is there an archive of this list I can search to avoid asking
questions that have already been asked.

The official archive listed on the Web site isn't really searchable,
but the one at mail-archive.com is. (Look for Tomcat-User). 




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




RE: ?? How to set a context-global variable from a servlet ??

2001-01-10 Thread Ted Husted

From: Cato, Christopher [mailto:[EMAIL PROTECTED]]
? In Linux, how can I from a servlet set a variable (like a flag,
indicating that a certain userid is locked for writing) so that it is
persistent andcan be read from the other servlets in it's context??

If the servlets are all part of the same Web application, you could set
the flag as an attribute in the application context. All the other
servlets in the same application could see it them. Any servlet in the
application could also remove the attribute. The attribute will remain
in the application context for the life of the application, even if the
servlet that set it has terminated -- if that's what you mean by
persistent.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: Error 500

2001-01-07 Thread Ted Husted

On 1/7/2001 at 2:36 PM Lin Gan wrote:
 I have copied the Jar files from Jdeveloper into the LIB directory in
tomcat, but it hasn't fixed the problem.

You probably need to actually add the jar files to your classpath as
well. Jdeveloper was probably doing that for you behind the scenese (as
Ant can). 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: Re[2]: UserID and Passwd for the context Admin ???

2001-01-06 Thread Ted Husted

I'm told the FAQ-O-MATIC is on the road to being fixed, so that we will
be able to login and add these ourselves.

For now, I'll park it in my FAQ folder and add with the others I have
waiting.

*** REPLY SEPARATOR  ***

On 1/6/2001 at 5:05 PM Mike Spreitzer wrote:

I just tried what Patrik Beno said, and it worked for me.

This question comes up again and again.  I think it is truly a
Frequently 
Asked Question (hint hint).

Thanks,
Mike

-
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: please help me

2001-01-04 Thread Ted Husted

You really probably want to start with 

 http://java.sun.com/docs/books/tutorial/ 

And then visit

Javasoft / JavaServer Pages-
http://java.sun.com/products/jsp/technical.html 

Javasoft / TagLibs - http://java.sun.com/products/jsp/taglibraries.html


JSR-052 - Standard Taglib Expert Group  -
http://java.sun.com/aboutJava/communityprocess/jsr/jsr_052_jsptaglib.htm
l 

Javasoft / Servlet API -
http://java.sun.com/products/servlet/download.html 

Javasoft / JavaBeans - http://java.sun.com/products/javabeans/docs/ 

Javasoft / JDBC API Documentation -
http://java.sun.com/j2se/1.3/docs/guide/jdbc/index.html 

Javasoft / Java2 Enterprise Edition (J2EE) -
http://java.sun.com/j2ee/blueprints/

*** REPLY SEPARATOR  ***

On 1/4/2001 at 5:50 PM yaya wrote:

Hello..
Maybe this is out of topic, but i'm really thanksfull 
if anyone could give me many resources of jsp file
specially in connectivity with database, how to get 
a form parameter in jsp, and get the result from database?

please help me.

Thanks



-
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: why must I add the port number

2001-01-04 Thread Ted Husted

Many people may already have a webserver running on 80, so out of the
box, Tomcat is setup to play well with others. 

As mentioned, on NT you can just change the 8080 in the configuration
file to 80, as the Web browsers expect (if you are not running IIS or
another webserver already). 

*** REPLY SEPARATOR  ***

On 1/4/2001 at 3:49 PM Birte Glimm wrote:

Hi, I have installed tomcat as a standalone webserver on Win 2000. 
To get a page or a servlet I have to type e.g.
http://localhost:8080/examples/servlet/helloWorldExample
but why must I include the port? Isn`t it the standard http port as in
all other webservers? If the port number is missing I get "Cannot find
server" and "The page cannot be displayed"

Thanks

Birte Glimm




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




RE: Basic web-app question

2001-01-03 Thread Ted Husted

I'm not sure if it's something that should be fixed. What you're asking
is for Tomcat to log the timestamps of any WAR files, and then
unilaterally re-expand them if it notes a change. Of course, then there
would be the issue of whether it should remove files that aren't in the
new WAR -- an idea which exceeds the functional scope of a WAR and an
application container. 

*** REPLY SEPARATOR  ***

On 1/3/2001 at 12:24 PM Anthony Ikeda wrote:

One problem I found with WAR's, however, is that you need to ensure you
remove the old expanded folder from the webapps when you make any
changes to
the WAR file.

Caused alot of problems until I discovered this!

Has this been fixed in 3.2.1?

Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


 -Original Message-
 From: Dave Newton [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, 21 December 2000 6:29 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Basic web-app question
 
 
 Thanks, Simon and Ted, for helping to clear up that whole
 directory structure thing. I guess I wasn't thinking too
 hard about it :/
 
 Dave
 
 --
 Dave Newton, [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: mailinglist vs newsgroup

2001-01-03 Thread Ted Husted

On 1/3/2001 at 9:37 AM Wheeler, Alfred wrote:
There's no need to read every word of every message. If the title
doesn't interest me and the message is from this group, then I just
delete it. 

Another good trick is to sort by author, and read the messages of your
favorite submitters first (i.e., the committers). 


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




Re: Setting properties outside of the WAR

2001-01-03 Thread Ted Husted

Perhaps where this is going is a WebApp configurator that knew how to
parse XML's , and could display the properties as a
administrator-friendly menu, rather than a grisly collection of XML
tags. The application might also be able to save a backup copy of
configuration, and perhaps patch an older configuration to a new
configuration -- and/or let you roll back if you screw something up. It
could be used with any WebApp out-of-the-box, but there might also be
extensions if developers "wrote to it". 

The Struts Digester utility might make a good backbone for something
like this.

Just an idea. (My plate's already full.-)

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: Where to place JavaBeans in tomcat??

2001-01-02 Thread Ted Husted

JavaBeans are classes like everything else; they just follow a
programming convention by providing standard accessors. 

For more about JSP and JavaBeans, see 

 http://java.sun.com/products/jsp/technical.html 

and 

 http://java.sun.com/products/javabeans/docs/ 

*** REPLY SEPARATOR  ***

On 1/2/2001 at 4:22 PM Mick Sullivan wrote:

Does anyone know where to place JavaBeans in Tomcat??
And how do I reference these Beans from JSP pages??
And are these beans are to be saved as .class files??
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]




Re: Servlets in Subdirectories

2001-01-02 Thread Ted Husted

You need to turn it around. 

webapps/app1/WEB-INF/classes
webapps/app2/WEB-INF/classes

Each app can then have their own web.xml resource. 

See also 


http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.htm
l 

Chapter 3.

Upgrade to 3.2.x, if you can.

*** REPLY SEPARATOR  ***

On 1/2/2001 at 12:19 PM Jim Richey wrote:

I'm running Tomcat 3.1 with IIS 5.0 and JNI. I have servlets working in
WEB-INF/classes and called with /dvs/servlet/MyServlet. However, now I
need to have multiple applications on this one web servers so with
directories like WEB-INF/classes/app1, WEB-INF/classes/app2 and
hopefully called with /dvs/servlet/app1/App1Servlet,
/dvs/servlet/app2/App2Servlet. Is this possible? So far the the
solution
eludes me. 
-- 

Jim Richey
[EMAIL PROTECTED]
Highmark, Inc.
http://www.highmark.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: mailinglist vs newsgroup

2001-01-02 Thread Ted Husted

On 1/2/2001 at 12:49 PM Damien Serra wrote:
 What can we do?

A working FAQ wouldn't hurt.

Jyve just isn't cutting it.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: Definition of refactor needed...

2001-01-02 Thread Ted Husted

See 

 http://www.sdmagazine.com/articles/2000/0012/0012b/0012b.htm 

and then for fun 

 http://www.laputan.org/mud/ 

*** REPLY SEPARATOR  ***

On 1/2/2001 at 2:00 PM Peter Brandt-Erichsen wrote:

I have seen this term "refactor" used on
and off (see below) and am unsure as to its
precise meaning, could someone define it for me?

Thanks
Peter


-Original Message-
From: Dave Smith [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Tuesday, January 02, 2001 9:34 AM
Subject: Re: Repost of problem: tomcat hangs with sockets on CLOSE_WAIT
when
user cancels request


Ramakrishna,


org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:26
8)

Your JSP is crapping out. Are you catching this by using an error
page?
Notice, the trace is kind enough to even tell you the line number of
the
offending source code. Look in the work folder and examine the
generated
jsp source code at line 268.

Or, use your favorite debugging strategy and refactor.

Regards,

Dave

- Original Message -
From: "RAMAKRISHNA SANKA" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, January 02, 2001 10:16 AM
Subject: Repost of problem: tomcat hangs with sockets on CLOSE_WAIT
when
user cancels request


Hi All,
I am running Tomcat 3.1 in stand-alone mode on AIX 4.3.3 using
IBM JDK1.2. My servlets connect to an Oracle database and
forward to a jsp to display the results. Of late I have had
flaky behaviour from this operation.

Problem 1.
Every now and this request causes a SIGSEGV and core dump.
= BEGIN excerpt from javacore... ==
SIGSEGV received at 2 in . Processing terminated.
"Thread-56" (TID:0x800323b0, sys_thread_t:0x308ec430, state:R,
native
ID:0xc41) prio=5
at java.io.BufferedWriter.init(BufferedWriter.java:96)
at java.io.BufferedWriter.init(BufferedWriter.java:79)
at java.io.PrintWriter.init(PrintWriter.java:112)
at
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:2
68)
at
org.apache.jasper.runtime.JspServlet.service(JspServlet.java:377)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java
(Com
p
iled
Cod
e))
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(
Http
C
onnectio
nHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.jav
a:33
8
)
at java.lang.Thread.run(Thread.java:481)

 - Native Stack -
unavailable - iar 2 not in text area
---
--
J2RE 1.2.2 IBM build ca122-19991217

= End excerpt from javacore ... ===

Problem 2.
This request takes too long. I click the stop button on the
Netscape browser and it just sits there waiting. I check on
the server and 'netstat -a | grep port' reveals a connection
in LISTEN status and another in CLOSE_WAIT status. However,
from this point on no other connection from any client works.
(It takes inordinately long. I waited ten minutes with no
result other than CPU going to 100% on the client side.)
I have to re-start the server before I can do anything else.

This is really bugging me. Please help.

RK



Get free email and a permanent address at
http://www.netaddress.com/?N=1

-
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: Tomcat alternative authentication

2001-01-01 Thread Ted Husted

 I _don't_ understand what all is meant by all the authentication
methods given (FORM vs BASIC).  

FORM means you have your own method, that you are collecting logins via
HTML forms, and storing it in the servlet session context.

BASIC means you are using the built-in HTTP method, and checking the
headers for login information.

For some background on authentication with Tomcat, see also


http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto



http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html

 

and ProtectedPage - chapter 3 of Marty Hall's Core Servlets and JSP
(www.coreservlets.com).


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: PROBLEM in Win98 startup-NoClassDefFoundError

2000-12-30 Thread Ted Husted

On 12/30/2000 at 11:14 AM S Joseph wrote: 
 My classpath is correctly set up to include d:\tomcat\classes and all
the jar files in tomcat\lib directory ie; ant.jar,
jasper.jar,jaxp.jar,parser.jar,servlet.jar and webserver.jar

Tomcat uses its own classloaders, and doesn't need much there to
actually run. It may be something is being loaded twice
(webserver.jar?), and this is causing the exception. Try trimming your
classpath down to ".;d:\tomcat\classes;" and see if that gets you past
the exception.

(Later, if you need to do development on the same machine, look at
using Ant to compile your projects, since it can manage the classpath
dependancies for you.)

Can anyone tell me what all that %2 %3 etc means. Are they the command
line parameters??

Yes, in order of appearance. 

I guess this class file should be  in one of the jar files in lib
directory

Yes. The tomcat classes are in the webserver.jar. If you want to peek,
you can drag a JAR file into WinZIP, or any other ZIP program, to see
what's inside.

Also, be sure that you are starting out with the latest 3.2.x release
of Tomcat.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/



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




Re: mm JDBC driver

2000-12-28 Thread Ted Husted

I can't vouch for the Apache virtual hosts part, but to make it
available for all your Tomcat applications, you can put the jar in the
lib folder, along with servlet.jar. You may also need to add it to your
classpath. 

You may get other offerings, but if not, there's a simple plug-and-play
JDBC sample web application at 

 http://husted.com/about/struts/ 

As configured, it will test a factory-default MySQL installation "out
of the box" on your local workstation. If yours is not a default
installation, you can revise the datasource element in the
struts-config.xml in the usual way.

This example uses the Jakarta Struts framework, but will test your JDBC
connection nonetheless.

*** REPLY SEPARATOR  ***

On 12/28/2000 at 3:27 AM Shailaja Someshwar wrote:

Hello

Where do I need to place the mm.jdbc driver for MySQL
in tomcat directory so that its available system wide
and all of the Apache virtual hosts.

Also can someone direct me to a sample application to
test my JDBC connection is working or not, as I do not
know much about Java.

Thanks in advance.

Regards,
Shailaja

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/






Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Ted Husted

For some background on authentication with Tomcat, see 


http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto



http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html
 

1 - Apache authenticates the user whith basic (or other) method, and
servlet are enabled to know the actual userid

Servlets can access the HTTP login from the header; it's encoded in
Base64. 

See ProtectedPage - chapter 3 of Marty Hall's Core Servlets and JSP
(www.coreservlets.com).

2 - Apache delegates the servlet to make the authentication. This would
be the very best solution, but I suppose it is impossible (could an
Apache module implement this feature?)

The servlets can  check for an attribute stored in the session context,
and send people to a login page if it is missing.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





RE: want to preporcess javascript files

2000-12-28 Thread Ted Husted

On 12/28/2000 at 9:27 AM Tim Cronin wrote:
 This works fine in IE. but causes Netscape to hang. 

What's the simplest example that causes Netscape to hang?

Is this the sort of thing you're doing?

HTML
HEAD
SCRIPT src="helloworld.js"/SCRIPT
BODY
H1Hello World from HTML/H1
SCRIPTHelloWorld();/SCRIPT
% out.println("H1Hello World from JSP/H1"); %
/BODY
/HTML


function HelloWorld() {
  document.write('H1Hello World from Javascript/H1')
}


*** REPLY SEPARATOR  ***

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 23:17
To: '[EMAIL PROTECTED]'
Cc: Paul Lange; Frank Livaudais; Rex Staples
Subject: want to preporcess javascript files

I was initially using jsp files to contain javascript. This way I could
have them documented and keep revision history in them for development
then have the commenst stripped out when they were deployed to clients.

This works fine in IE. but causes Netscape to hang. I tryed to change
them back to js and add a handler to preprocess these files as well
but could not get it to work.

Any solutions?






Re: Some Queries...

2000-12-26 Thread Ted Husted

On 12/26/2000 at 3:21 PM Ramesh Kumar . T wrote:
 Can I  deploy dynamic web applications in Tomcat?
Yes. For example, the Jakarta Struts projects includes sample
applications as WAR files.

 Can I have my servlets in any other directory other than
WEB-INF/classes? The purpose is that  I need to restrict users based
upon authentication. So I need to  distinguish between authenticated
and unauthenticated servlets. I use apache's authentication
(apache+tomcat).

For more about authentification, try 


http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html
 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: tomcat processes

2000-12-26 Thread Ted Husted

The Linux ps command mis-reports threads as processes. 


http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg00639.html
 

http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg00583.html
 

*** REPLY SEPARATOR  ***

On 12/26/2000 at 8:41 PM Eli Sherman wrote:

Hi,
I'm using Tomcat 3.2-b7 on Linux and I noticed that when I start tomcat
it
opens a lot of processes, all of theme running
org.apache.tomcat.startup.Tomcat. Why there are so many processes (in
my
case about 50)? how this processes can be controlled?
Thanks.






Re: Running a thread from a JSP

2000-12-26 Thread Ted Husted

What is it that you are actually trying to do? 

(The end to which keeping this thread alive is a means?)

*** REPLY SEPARATOR  ***

On 12/26/2000 at 10:54 AM David M. Holmes wrote:

But when the page finishes and there is no reference to the threaded
object, won't the thread die?

--- William Brogden [EMAIL PROTECTED] wrote:
 
 
 "David M. Holmes" wrote:
  
  Is there a way to spawn a thread from a JSP that will live after
the page goes out of scope?
 
 There is nothing magic about a JSP servlet - you can certainly 
 create objects and start Threads that will continue after 
 the response has been sent. 
 
 -- 
 WBB - [EMAIL PROTECTED]
 Java Cert mock exams http://www.lanw.com/java/javacert/
 Author of Java Developer's Guide to Servlets and JSP 
 ISBN 0-7821-2809-2
 .
  JSP 
 ISBN 0-7821-2809-2
 .
 


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






Re: Reloading JSP is a bug? [humor]

2000-12-23 Thread Ted Husted

On 12/23/2000 at 2:29 AM Andreas Sheriff wrote:
 To complete the pedantic discussion, the difference between a bug and
a feature is that a bug is unintended.

Oh, come-on, completing a pendantic discussion is clearly an oxymoron. 

Given the usual lack of architectural documentation, what was intended
is anyone's guess. And, even then, some of the world's best features
have been unintended (at least by us mere mortals) ;-). 

So the pendantic slice and dice quickly degrades to feature, unintended
feature, intended but undocumented feature, and if all else fails, and
the behaviour is clearly objectionable to any reasonable observer, and
even cannot be spun by a marketing rep with a straight face, then it
may actually be (ahemm) a bug. 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: very basic web server hosting question

2000-12-22 Thread Ted Husted

On 12/22/2000 at 2:49 PM Horia Bochis wrote:
and what can I take from there, for tomcat to work on my windows?

Sorry, should have mentioned that to start Tomcat standalone, 

1. Be sure there is a NT environment variable JAVA_HOME that points to
your JVM (e.g. c:\javasoft\jdk\1.2\bin).
2. Open a DOS window, and change to the bin folder under your Tomcat
directory (e.g. c:\jakarta\tomcat\bin).
3. Run tomcat.bat

By default, Tomcat will answer requests on port 8080 
http://localhost:8080/ 

The usual default for Web servers is 80, so out of the box it will not
conflict with IIS or Apache. 

Depending on what you need to do, you might also be able to let Tomcat
run on 8080 for your servlets, and leave the other CGI on the usual
HTTP port (80). You would only need to hardcode 8080 into the top level
URL, and after that it's automatic. 

For integrating Tomcat with Webserver, see 
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html .

For installing Tomcat under NT, see 
http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayQuestionAnswer/
action/SetAll/project_id/2/faq_id/12/topic_id/102/question_id/693 .


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





RE: very basic web server hosting question

2000-12-22 Thread Ted Husted

On 12/22/2000 at 3:21 PM Horia Bochis wrote:
 What I need is to make a mixture using CGI and Servlets and what I
would like is to see those working on a windows.

It's been mentioned that a servlet could be used to handle requests for
conventional CGI, but I don't think anyone has contributed one yet.

Given a CGI servlet (and a low-volume of static pages), you could then
just run Tomcat standalone.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: Tomcat threads..

2000-12-22 Thread Ted Husted

On 12/22/2000 at 4:32 PM Endre Stølsvik wrote:
 I'm trying desperately to get tomcat to use only ONE thread.

Why? Java and Tomcat are designed to be multithreaded. Reducing threads
would hurt performance. All the same resources would be used, but only
in serial. What is your goal?

As an aside, threads are not the same as an OS processes, although they
can look the same.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: How to modify the files in tomcat

2000-12-22 Thread Ted Husted



Or, stay true to your school ...  http://jedit.sourceforge.net/
*** REPLY SEPARATOR 
***On 12/22/2000 at 11:56 AM Thom Park wrote:  
worst-case scenario: use wordpad, always save as plain text. 
-t. 
Peter Brandt-Erichsen wrote: 

  
  Use a decent text 
  editor...like Ultra Edit or Slick Edit,Notepad isn't up to the job.Peter 
  -Original Message- 
From: chew [EMAIL PROTECTED] 
To: [EMAIL PROTECTED] 
[EMAIL PROTECTED] 
Date: Thursday, December 21, 2000 
4:40 PM Subject: How 
to modify the files in tomcat Hi,I am just started learning apache and 
tomcat..I have difficultyin modifying tomcat file like 
*.xml and *.properties.When i use notespad(fr window)it 
show a mix of test and some special character?What word document should i 
use to modifytomcat files.Thanks.I am using NT workstation to install apache server and tomcat.Is it 
ok or it must be installed in NT server?



Re: Tomcat and Apache?

2000-12-22 Thread Ted Husted



 http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/tomcat-apache-howto.html
*** REPLY SEPARATOR ***On 
12/22/2000 at 12:21 PM Qian Chen wrote: 
Hi, 


 How can I 
tie Tomcat to Apache?

Thanks,
Wendy



Re: How to modify the files in tomcat

2000-12-22 Thread Ted Husted



Takes a minute to load, but it's fineafter that.Go ahead 
andtry it.
*** REPLY SEPARATOR 
***On 12/22/2000 at 4:23 PM Peter Brandt-Erichsen wrote: 

Just checked out that website for 
JEdit, the 
interfacelooks really nice, how is it for 
speed seeing that it is Swing based?

P.



FAQ-O-Matic out of service

2000-12-21 Thread Ted Husted

Exception: java.lang.Error: Error in BasePeer.initTableSchema(Visitor):
Cannot connect to MySQL server on localhost:3306. Is there a MySQL
server running on the machine/port you are trying to connect to?
(java.net.ConnectException)

Response was very slow for a time. Finally got a index page. After that
the Exceptions were raised. 


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: JSP vs Servlets...

2000-12-21 Thread Ted Husted

On 12/20/2000 at 5:39 PM Rui Oliveira wrote:
 can someone tell me which one is best: JSP or [regular] Servlets?

All JSPs are actually servlets, and the JSP file is really just another
way to Java source. The container  (or one of its helpers) compiles
them into servlets as needed, and then executes that servlet. JSP is a
Rapid Application Development tool for writing servlets that display
page views. If you have used any JSPs in your Tomcat installation, you
can check the (default) "work" directory for the java source and class
files is being auto-generated for the JSPs.

There are some performance drawbacks to JSPs, which may or may not make
an actual difference in your applicaton. The first drawback is that
containers always check the edit date of a JSP to see if it needs to be
recompiled before it runs the associated servlet. Of course, this must
be slower than running the servlet outright, but your users may never
notice the difference. Once the design is stable, it is also possible
to compile your JSPs into conventional servlets, if you need that extra
boost. As mentioned elsewhere, there may also be ways you can
performance-tune a servlet by hand that are not available in JSP. 

The major benefit is rapid development. JSPs can be a lot easier to
write and maintain than an ordinary servlet. Frameworks that leverage
JSPs in a Model View Controller architecture (like Jakara Struts) are
also becoming available. This can make your applicaiton much easier to
use by other developers, or in a team environment where different
people handle different parts of the application. 

Of course, your application would probably still use ordinary servlets
for various other tasks, even if it uses JSP to create most of the page
views.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: FAQ-O-Matic out of service

2000-12-21 Thread Ted Husted

So the FAQ-O-Matic is back, but the email confirmation seems to be
broken. 

The message given when trying to create a new account is 

"Error sending email: javax.mail.SendFailedException: No recipient
addresses"

Of course, I did in fact give it a proper email address in the
registration form.

If I try to get the confirmation for an account I created some time
ago, the confirmation email never seems to arrive. 





Re: very basic web server hosting question

2000-12-21 Thread Ted Husted

  I want  to expose my computer to the internet.  

Not for nothing, but if you need to ask that question here, it might be
a very dangerous thing for you to do on your own. 

You really might want to park your application with a hosting ISP, like
iMagineIS.com (TomCat and proud of it!).

I have a site there myself as a client, but have no other business
relationship with them.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: very basic web server hosting question

2000-12-21 Thread Ted Husted

On 12/22/2000 at 12:16 AM Horia Bochis wrote:
I am also a beginner in this tomcat stuff, and I had a strage wish to
get the tomcat for windows, but I have got lost betweens so many files,
there. Any hint?

Tomcat is a 100% native Java application, which means there is only one
version for all platforms. 

There are specific Java Virtual Machines for each platform, but only
one Tomcat.


-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: how to eliminate port number?

2000-12-20 Thread Ted Husted




On 12/20/2000 at 6:34 PM Katsuyuki Michishita wrote:  
tomcat need to put port number 8080 in the URL, is there any way that I do not 
have to put 8080? 

If Tomcat is the only Web server on the machine, change the 
default Tomcat port to 80 in its server.xml configuration.

From TC3.2

 !--  Connectors 
 --

 !-- Normal HTTP 
-- Connector 
className="org.apache.tomcat.service.PoolTcpConnector" 
Parameter name="handler" 
 
value="org.apache.tomcat.service.http.HttpConnectionHandler"/ 
Parameter name="port" 
 
value="8080"/ 
/Connector




-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/




Re: InterScan eManager Content Management Notification! (Dirty Words)

2000-12-20 Thread Ted Husted

The messages look like they come from your local postmaster, but
there's nothing running in our domain that would cause this.



-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: InterScan eManager Content Management Notification!(Dirty Words)

2000-12-20 Thread Ted Husted

I first saw these on the Struts list, so it's not just a Tomcat thing.

*** REPLY SEPARATOR  ***

On 12/20/2000 at 3:36 PM Immo Heino wrote:

Sorry all,

I removed my self  from the jakarata-tomcat-mailing list
for a while. Hope this helps. Please inform me directly  if you will
get 
still
those annoying

Re: InterScan eManager Content Management Notification!(Dirty Words)

messages.
I will rejoin when things will be OK.

Regards,

Immo






Re: Basic web-app question

2000-12-20 Thread Ted Husted

On 12/20/2000 at 12:03 PM Dave Newton wrote:
 In the WAR file (or a webapp in general if I deploy non-WAR) contain
a directory hierarchy, i.e., I have a site with a 
home page (main directory) and a few things off of it, then, say, a
message base (or whatever) "section" in a subdirectory,
etc.? Does that work?

Yes. For a working example, see the Jakarta Struts distribution which
includes four (count'em four) WARs.

Tomcat can autoexpand WAR files, which makes them basically
plug-and-play. 

Mileage can vary with other containers though ;-).




-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





RE: Disapointment (way, way off topic) - even further! (last one) (promise)

2000-10-27 Thread Ted Husted

I can think of no greater tyranny than for one man to tell another how
to spelle a word. 

-- Thomas Jefferson regarding the first dictionary. 

If English had a formal specification then it might be possible to
resolve its grammar.

But, of course, we all know (much too well) that even with a formal
specification, matters of style persist.

-Ted.




Re: Why there are two apache servlets projects?

2000-10-21 Thread Ted Husted

Is this a loaded political questions? {:-0}

It's really an obvious newbie question that isn't being directly
answered in the regular documentation. Though, I suppose that Tomcat is
the "official" reference implies a relationship with Sun. Perhaps
enough time has passed that the Tomcat User Guide could be updated to
say something like: 

 Isn't Tomcat just JServ?

 This is a common misunderstanding. JServ is a Servlet API
2.0-compliant container that was created to be used with
 Apache. Tomcat is a complete re-write and is a Servlet API 2.2 and
JSP 1.1-compliant container. Tomcat uses
 some of the code written for JServ, especially JServ's Apache
server adapter, but this is where the similarities end. 

** Tomcat is being developed within the Apache Jakarta initiative,
which has partnered with Sun to make Tomcat the official reference
implementation of Java Servlet 2.2 and JavaServer Pages 1.1
technologies. JServ is maintained within the Apache Java initiative, a
seperate and independant project. **

-Ted.