RE: req.getServletPath()

2001-08-29 Thread Jann VanOver

In the API docs, it says
   getServletPath() Returns the part of this request's URL that calls the
servlet.
Check out
  request.getContextPath()  request.getRequestURI()

You may need:
  request.getContextPath()+request.getServletPath()

-Original Message-
From: Sampath K Settipalli [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:54 PM
To: [EMAIL PROTECTED]
Subject: req.getServletPath()


Hi,

   I'm using tomcat3.2.3 on solaris . I'm trying to configure a existing
application on to tomcat. I couldn't figure out the problem I'm facing.
Application  has a piece  of code which gets the servletpath from
request object reg.getServletPath() . Suppose current page URL is
http://xxx.xxx.xxx:/sqdev25/servlet/CsmServlet?moduleid=Csmdsp
sqdev25 is my application root under /webapps .
In my server.xml I had a context path
Context path=/sqdev25
   docBase = webapps/sqdev25
--
loks like req.getServletPath() is returning /servlet/CsmServlet  and
doesn't contain application root sqdev25 . Now to load next page code
uses this servlet path and says /servlet/CsmServlet and so it fails.
Not Found (404)
Original request: /servlet/CsmServlet
Not found request: /servlet/CsmServlet

req.getServletPath isn't it supposed to return
/sqdev25/servlet/CsmServlet

Did someone comeacross such situation? I want to know is this the way it
works OR did I miss something so the servletPath is not returned
correctly ? same peice of code works fine on JRUN existing environment.
I wanted to make sure if I need to do something in configuration for
Tomcat to get the servletpath completely.

Can someone please suggest.

Thanks in advance,
Sampath



RE: jspc

2001-08-29 Thread Jann VanOver

In other words, go to 
  http://mikal.org/interests/java/tomcat/
and enter precompile as a search term.

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 29, 2001 1:40 PM
To: '[EMAIL PROTECTED]'
Subject: RE: jspc


  I'm trying to figure out a way to pre-compile .jsp pages 
 so that tomcat
 need not compile them on the fly and store the files in the
 /usr/local/tomcat/work directories. I'm trying to use jspc.sh 
 and it will
 create the necessary .java files, but then what do I do with them?
 What directory do they belong in, do I have to make class files?, what
 options to jspc.sh are needed ?

See the archives.  This has been answered a couple times before.

---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Tomcat doesnt recognize new context

2001-08-28 Thread Jann VanOver

You can run your server through the validator at
http://tomcat.mslinn.com/tomcat/server_xml.jsp and see if there's something
in the wrong place.

Do your contexts each have the correct directory structure?  with a WEB-INF
and a valid web.xml in each one?

-Original Message-
From: Andrej Rosenheinrich [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 9:10 AM
To: [EMAIL PROTECTED]
Subject: Tomcat doesnt recognize new context


Hi,

as I posted last night, I added several new contexts, but Tomcat doesnt 
recognize it. I am quite sure that this is the problem, checking 
logfiles Tomcat newer initiated any servlet in one of the contexts I 
added. Here is my server.xml - file:

?xml version=1.0 encoding=ISO-8859-1?

Server
!-- Debug low-level events in XmlMapper startup --
xmlmapper:debug level=0 /

!--

Logging:

 Logging in Tomcat is quite flexible; we can either have a log
 file per module (example: ContextManager) or we can have one
 for Servlets and one for Jasper, or we can just have one
 tomcat.log for both Servlet and Jasper.  Right now there are
 three standard log streams, tc_log, servlet_log, and
 JASPER_LOG. 

 Path:

 The file to which to output this log, relative to
 TOMCAT_HOME.  If you omit a path value, then stderr or
 stdout will be used.

 Verbosity:

 Threshold for which types of messages are displayed in the
 log.  Levels are inclusive; that is, WARNING level displays
 any log message marked as warning, error, or fatal.  Default
 level is WARNING.

 verbosityLevel values can be:
FATAL
ERROR
WARNING
INFORMATION
DEBUG

 Timestamps:

 By default, logs print a timestamp in the form -MM-dd
 hh:mm:ss in front of each message.  To disable timestamps
 completely, set 'timestamp=no'. To use the raw
 msec-since-epoch, which is more efficient, set
 'timestampFormat=msec'.  If you want a custom format, you
 can use 'timestampFormat=hh:mm:ss' following the syntax of
 java.text.SimpleDateFormat (see Javadoc API).  For a
 production environment, we recommend turning timestamps off,
 or setting the format to msec.

 Custom Output:

 Custom means normal looking.  Non-custom means
 surrounded with funny xml tags.  In preparation for
 possibly disposing of custom altogether, now the default is
 'custom=yes' (i.e. no tags)

 Per-component Debugging:

 Some components accept a debug attribute.  This further
 enhances log output.  If you set the debug level for a
 component, it may output extra debugging information.
--

!-- if you don't want messages on screen, add the attribute
path=logs/tomcat.log
 to the Logger element below
--
Logger name=tc_log
verbosityLevel = INFORMATION
/

Logger name=servlet_log
path=logs/servlet.log
/

Logger name=JASPER_LOG
path=logs/jasper.log
verbosityLevel = INFORMATION /

!-- You can add a home attribute to represent the base for
 all relative paths. If none is set, the TOMCAT_HOME property
 will be used, and if not set . will be used.
 webapps/, work/ and logs/ will be relative to this ( unless
 set explicitely to absolute paths ).

 You can also specify a randomClass attribute, which determines
 a subclass of java.util.Random will be used for generating 
session IDs.
 By default this is java.security.SecureRandom.
 Specifying java.util.Random will speed up Tomcat startup,
 but it will cause sessions to be less secure.

 You can specify the showDebugInfo attribute to control whether
 debugging information is displayed in Tomcat's default responses.
 This debugging information includes:
 1. Stack traces for exceptions
 2. Request URI's that cause status codes = 400
 The default is true, so you must specify false to prevent
 the debug information from appearing.  Since the debugging
 information reveals internal details about what Tomcat is serving,
 set showDebugInfo=false if you wish increased security.
  --
ContextManager debug=0 workDir=work showDebugInfo=true 

  !--  Interceptors  --

!--
 ContextInterceptor className=org.apache.tomcat.context.LogEvents
 --
   
ContextInterceptor 
className=org.apache.tomcat.context.AutoSetup /

ContextInterceptor
className=org.apache.tomcat.context.WebXmlReader /

!-- Uncomment out if you have JDK1.2 and want to use policy
ContextInterceptor
className=org.apache.tomcat.context.PolicyInterceptor /
--

ContextInterceptor
className=org.apache.tomcat.context.LoaderInterceptor /

RE: web.xml

2001-08-28 Thread Jann VanOver

According to your web.xml, your servlet class
(org.stevengould.javaworld.RequestDetails) is in a package so that package
hierarchy must be reflected in the directories:
./WEB-INF
  | -- classes/org/stevengould/javaworld/RequestDetails.class


-Original Message-
From: Ruben Domene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 11:07 AM
To: tomcat
Subject: web.xml


Hi, i try to execute a servlet but i can´t.
I have the nexts directorys:
./WEB-INF
   |--classes

In the WEB-INF directory it is the web.xml file with:

?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-nameRequestDetails/servlet-name

servlet-classorg.stevengould.javaworld.RequestDetails/servlet-class
/servlet

servlet-mapping
servlet-nameRequestDetails/servlet-name
url-patternSampleServlet/url-pattern
/servlet-mapping
/web-app

In the classes directory i have the class RequestDetails.java and
RequestDetails.class

When i try http://server:8080/SampleServlet; my console shows: 2001-08-28
09:54:17 - Ctx(  ): 404 R(  + SampleServlet + null) null.

What am i doing bad
Thank you.



RE: web.xml

2001-08-28 Thread Jann VanOver

You made the changes and restarted Tomcat?  It all LOOKS good ... 

-Original Message-
From: Ruben Domene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 12:25 PM
To: [EMAIL PROTECTED]
Subject: RE: web.xml


I have done the changes, but i can´t execute the servlet. have i to modify
some file moreover?.
My directories structure is the next:
./webapps/ROOT/WEB-INF
   |--classes/org/stevengould/javaworld/RequestDetails.class

Thank you for your help.




-Mensaje original-
De: Jann VanOver [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 28 de agosto de 2001 20:26
Para: '[EMAIL PROTECTED]'
Asunto: RE: web.xml


According to your web.xml, your servlet class
(org.stevengould.javaworld.RequestDetails) is in a package so that package
hierarchy must be reflected in the directories:
./WEB-INF
  | -- classes/org/stevengould/javaworld/RequestDetails.class


-Original Message-
From: Ruben Domene [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 11:07 AM
To: tomcat
Subject: web.xml


Hi, i try to execute a servlet but i can´t.
I have the nexts directorys:
./WEB-INF
   |--classes

In the WEB-INF directory it is the web.xml file with:

?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-nameRequestDetails/servlet-name

servlet-classorg.stevengould.javaworld.RequestDetails/servlet-class
/servlet

servlet-mapping
servlet-nameRequestDetails/servlet-name
url-patternSampleServlet/url-pattern
/servlet-mapping
/web-app

In the classes directory i have the class RequestDetails.java and
RequestDetails.class

When i try http://server:8080/SampleServlet; my console shows: 2001-08-28
09:54:17 - Ctx(  ): 404 R(  + SampleServlet + null) null.

What am i doing bad
Thank you.



RE: checkbox with Tomcat

2001-08-28 Thread Jann VanOver

In the code you show, NONE of the boxes should be checked.  

Are you saying that when you first show the page, they are checked?  This
shouldn't be happening at all.


-Original Message-
From: Roy K. Mayr R. [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 28, 2001 1:45 PM
To: TomcatUser
Subject: checkbox with Tomcat


 Sorry, I used wrong subject in last mail

 I have a JSP page with one form and many checkboxs... all with same name
but
 diferent value.

 For example:

 form method=get name=formulario 
 input type=checkbox name=prueba value=1
 input type=checkbox name=prueba value=2
 input type=checkbox name=prueba value=3
 input type=checkbox name=prueba value=4
 input type=checkbox name=prueba value=5
 input type=submit name=enviar id=enviar value=Enviar
 /form
  out.println(request.getParameter(prueba);

 When I use Java WebServer, output show every checkbox selected...  2,4,5,
 for example.
 But when I use Tomcat output only show first checkbox selected... Why ?
What
 is wrong ?
 Problem is Tomcat or my code?

 Thanks

 Roy




RE: Is there a way to make a default web.xml?

2001-08-27 Thread Jann VanOver

No, not with Tomcat.  

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 7:17 AM
To: [EMAIL PROTECTED]
Subject: Is there a way to make a default web.xml?


Is there a way to make a default web.xml file that will work across all
contexts/virtual hosts?

Brandon



RE: JSP page not found - any ideas why ?

2001-08-27 Thread Jann VanOver

Do you have a web.xml file in your WEB-INF directory?

-Original Message-
From: James Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 23, 2001 3:42 PM
To: [EMAIL PROTECTED]
Subject: Re: JSP page not found - any ideas why ?


I made a mistake in the previous posting - the JSP is actually located
in the directory $TOMCAT_HOME/webapps/james1, not $TOMCAT_HOME/james1 as
I originally posted.  Unfortunately it appears that my problem isn't as
simple as the erroneous posting leads you to believe.  :(

Still stuck...


-James



James Adams wrote:
 
 Hello,
 
 I am attempting to set up my first web application using Tomcat.  I have
 taken the following first steps but still no enchilada - the initial JSP
 isn't found when I try to access it (Not Found 404):
 
 - I have put a JSP in a directory named $TOMCAT_HOME/james1.  The JSP is
 named Test1.jsp and I'm trying to access it via the URL
 http://localhost:8080/james1/Test1.jsp.
 
 - I have modified $TOMCAT_HOME/conf/server.xml with a context for the
 web application with the following entry:
 
 Context path=/james1
  docBase=webapps/james1
  crossContext=false
  debug=0
  reloadable=true 
 /Context
 
 - I have restarted Tomcat (not sure if that was necessary).
 
 The JSP uses a servlet whose class is available in
 $TOMCAT_HOME/james1/WEB-INF/classes, but I doubt that this is a problem
 since the page can't even be located.
 
 I am using Tomcat version 3.2.1 on a RedHat 7.0 machine.
 
 Any help or suggestions will be greatly appreciated !  Thanks in
 advance...
 
 -James



RE: Structure of the server.xml file?

2001-08-27 Thread Jann VanOver

AKA http://tomcat.mslinn.com/  a great site that includes validation tools
for Server.xml and Web.xml

-Original Message-
From: Knudsen, Joe [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 27, 2001 2:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Structure of the server.xml file?


I found this URL searching in google. It has
server.xml with documentation.

http://206.168.141.137/

Thanks,
Joe Knudsen

Optical Solutions
Network Management Developer
Email: [EMAIL PROTECTED]
Phone: (763)268-3622

 -Original Message-
 From: Roland [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, August 27, 2001 4:05 PM
 To:   [EMAIL PROTECTED]
 Subject:  Structure of the server.xml file?
 
 Hello, where can I find documentation, describing the exact structure of
 the
 server.xml file?
 I need this because I can`t make jdbc realms to work here, and maybe
 something is wrong in my server.xml file
 
 
 Thanks Roland



RE: RequestDispatcher.forward()?

2001-08-26 Thread Jann VanOver

Or, more specifically:
  http://java.sun.com/j2ee/tutorial/api/index.html

You'll find RequestDispatcher in the All Classes frame.

-Original Message-
From: Rob S. [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 7:55 AM
To: [EMAIL PROTECTED]
Subject: Re: RequestDispatcher.forward()?


 Can you please explain to me how to use RequestDispatcher.forward()?

Yikes...  you're better off searching Google or picking up a book on
servlets.  Or heck, you could read the servlet api javadoc comments =)

- r



RE: Overriding jar files in /tomcat/lib

2001-08-22 Thread Jann VanOver

Does tomcat care WHICH parser is in TOMCAT_HOME/lib?  Which parser does it
come with and can it be changed?

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 9:39 AM
To: [EMAIL PROTECTED]
Subject: Re: Overriding jar files in /tomcat/lib


Tomcat 3.2.x requires an XML parser to do its own processing (such as
reading web.xml files), placed in $TOMCAT_HOME/lib.  Because of the way it
is architected, this parser is also available to all web apps -- but it
*cannot* be overridden by a parser in /WEB-INF/lib of a web app.

Tomcat 4.0 lets you deal with this, because it separates the logic Tomcat
uses to parse XML documents into a separate class loader.  Apps can use
whatever class loader they want.

Craig




RE: web.xml problems

2001-08-22 Thread Jann VanOver

You can try running your web.xml through a validator.  There's one at
http://tomcat.mslinn.com/  look at the menu at the left and pick Tomcat
version 3.2.x and you'll see web.xml validator as one of the choices.  This
may show you something is going on that you didn't know about.

-Original Message-
From: Noble Long [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 22, 2001 2:49 PM
To: Dmitri Colebatch; [EMAIL PROTECTED]
Subject: Re: web.xml problems


That is what I thought too. But apparently Tomcat cannot see the file at
/webapps/my application/WEB-INF/web.xml. I know because I tried to put bad
syntax in the file to see if it would report it on loading. It has no
problem seeing /webapps/ROOT/WEB-INF/web.xml . I tried the same experiment
there (putting bad syntax in the .xml file) and startup.sh reported the
errors.

Any other suggestions?

Noble
- Original Message -
From: Dmitri Colebatch [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; Noble Long [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 3:43 PM
Subject: Re: web.xml problems


 Sounds like a case issue... Remember windows is case-preserving but not
 case-sensitive... most half decent o/s's (like linux) are both
 case-preserving _and_ case sensitive (o:

 cheers
 dim

 On Wed, 22 Aug 2001, Noble Long wrote:

  I am trying to configure a java web server using jakarta-tomcat-3.2.3 on
Red
  Hat 6.2. I am recieving a ConfigFileNotFoundException when I try to
access
  my page. I have the WEB-INF/web.xml properly configured. I know it's
right
  because it works fine from my windows environment. I even tried copying
my
  web.xml file to /conf/web.xml to replace the default. Is there any
reason
  why Java can't find the System.getProperty(ENVFile) from Tomcat?
 
  Thanks,
  Noble
 
 
 





RE: unable to get apache to communicate with tomcat.

2001-08-21 Thread Jann VanOver

In your apache httpd.conf file, what have you specified for ServerName ??

Make sure this is ca-apache1.dtv.com  , restart Apache  see if that doesn't
fix things.

-Original Message-
From: John Comitas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 21, 2001 4:00 PM
To: [EMAIL PROTECTED]
Subject: unable to get apache to communicate with tomcat.


I can access apache ca-apache in ie or netscape;
I can access tomcat ca-apache:8080 in ie or netscape as well
I can view examples, etc.
but I want to be able to say ca-apache1.dtv.com/xxxadmin.jsp and it
take me there?
I am using mod_jk as well.  I need this step to work first in order for
me
to have it go to a completely different server running tomcat only.


John


__
FREE voicemail, email, and fax...all in one place.
Sign Up Now! http://www.onebox.com



RE: tomcat.policy and WEB-INF/lib?

2001-08-20 Thread Jann VanOver

Make sure you don't have copies of these jars in tomcat\lib -- I've found
that can cause class path problems.

-Original Message-
From: Noel L Yap [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 9:33 AM
To: [EMAIL PROTECTED]
Subject: RE: tomcat.policy and WEB-INF/lib?


Actually, I'm having problems getting stuff in WEB-INF/lib jar files to be
imported by my JSP's (I'm getting ClassNotFoundException's).  I was
wondering if
tomcat.policy had anything to do with the problems.

Thanks,
Noel

well you can use the classloader, let's say that you have a jar file
(test.jar) containing a property file (test.properties) and the jar file is
in lib, then from your servlet you can say

this.getClass().getClassLoader().getResourceAsStream(test.properties);

is that what you are trying to achieve?

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net

-Original Message-
From: Noel L Yap [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 20, 2001 8:46 AM
To: [EMAIL PROTECTED]
Subject: tomcat.policy and WEB-INF/lib?


Do I need to do anything in tomcat.policy in order to be able to use
CONTEXT/WEB-INF/lib?

Thanks,
Noel



This communication is for informational purposes only.  It is not
intended as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements
made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.







This communication is for informational purposes only.  It is not intended
as
an offer or solicitation for the purchase or sale of any financial
instrument
or as an official confirmation of any transaction. All market prices, data
and other information are not warranted as to completeness or accuracy and
are subject to change without notice. Any comments or statements made herein
do not necessarily reflect those of J.P. Morgan Chase  Co., its
subsidiaries and affiliates.



RE: Newbie help needed: error running JSP

2001-08-15 Thread Jann VanOver

Look at the line:
 
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_
0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)

THIS is where your error occurred.  Tomcat compiled your JSP page into the
named java file.  Look in your tomcat\work directory for this file.  It will
be in a folder named for your context.  Look at line 122 in that file and
see where it found a problem.  You can usually tell from that what you did
wrong.

I only worked with JRUN for a short while, but I seem to remember that it
was much nicer than Tomcat in this one respect, giving you the line number
back into your .jsp file instead of making you dig through the java file.

-Original Message-
From: Kenneth Litwak [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 3:35 PM
To: [EMAIL PROTECTED]
Subject: Newbie help needed: error running JSP


   I just ran my first JSP that uses a form and got an
error. Unfortunately, the stack trace doesn't tell me
where in the JSP the error occured (that I can tell)
or where in my helper bean the problem ight be.  I'd
heard that JSPs are hard to debug, and now I see why. 
The JSP engine is not very helpful with what's wrong. 
Here's the stack trace, followed by the JSP code.

Location: /examples/jsp/form/Form.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Attempted a bean
operation on a null object.
at
org.apache.jasper.runtime.JspRuntimeLibrary.handleGetProperty(JspRuntimeLibr
ary.java:424)
at
jsp.f_00025rm._0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0._jspService(_
0002fjsp_0002fform_0002fForm_0002ejspForm_jsp_0.java:122)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at
org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
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)

JSP code:
html
body bgcolor=#c8d8f8
form action=/examples/jsp/form/Form.jsp
method=post
center
table cellpadding=4 cellspacing=2 border=0

th bgcolor=#FF colspan=2
font size=5User Registration/font
/th

tr
td valign=top 
bFirst Name/b 
br
input type=text name=firstName size=15/td
td  valign=top
bLast Name/b
br
input type=text name=lastName size=15/td
/tr

tr
td valign=top colspan=2
bE-Mail/b 
br
input type=text name=email size=20
br/td
/tr

tr
td  valign=top colspan=2
bWhat languages do you program in?/b
br
input type=checkbox name=languages
value=JavaJavanbsp;nbsp; 
input type=checkbox name=languages
value=C++C++nbsp;nbsp;nbsp;nbsp;nbsp;
input type=checkbox name=languages
value=CCbr
input type=checkbox name=languages
value=PerlPerlnbsp;nbsp;
input type=checkbox name=languages
value=COBOLCOBOL
input type=checkbox name=languages
value=VBVBbr
/td
/tr

tr
td  valign=top colspan=2
bHow often can we notify you regarding your
interests?/b
br
input type=radio name=notify value=Weekly
checkedWeeklynbsp;nbsp;
input type=radio name=notify
value=MonthlyMonthlynbsp;nbsp; 
input type=radio name=notify
value=QuarterlyQuarterly 
br/td
/tr

tr
td  align=center colspan=2
input type=submit value=Submit input
type=reset  value=Reset
/td
/tr

/table
/center
/form
%-- Create the bean only when the form is posted --%
%
if (request.getMethod().equals(POST))
 {
%
jsp:useBean id=formHandler
class=com.shopping.FormBean
%-- provide a setProperty tag and ensure that the
setter methods are invoked via introspection 
--%
jsp:setProperty name=formHandler property=*/
/jsp:useBean
p
hr
font color=red
bYou submitted:P
First Name:/bbr
%-- invoke the getter method to display the firstName
using the getProperty tag --%
jsp:getProperty name=formHandler
property=firstName/br
brbLast Name:/bbr
%-- invoke the getter method to display the lastName
using the getProperty tag --%
jsp:getProperty name=formhandler
property=lastName/br
brbEmail:/bbr
%-- invoke the getter method to display the email
address using the getProperty tag 
jsp:getProperty name=formHandler
property=email/br
--%
bLanguages:/bbr
%
   String[] lang = 

RE: PLEASE - HELP PLEASE

2001-08-14 Thread Jann VanOver

Using a more descriptive title than PLEASE HELP PLEASE will help your
question get answered sooner.

You don't say if you're getting any error messages.  One comment -- docbase
must point to a DIRECTORY that holds your application context.  Yours points
at an HTML file.  That should cause problems.

-Original Message-
From: Nance, Michael [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 07, 2001 8:25 AM
To: '[EMAIL PROTECTED]'
Subject: PLEASE - HELP PLEASE


This is a repostMy connectors won't start this is from my server.xml

Connector className=org.apache.tomcat.service.PoolTcpConnector
Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp12ConnectionHandler/
Parameter name=port value=8007/
Parameter name=max_threads value=500/
Parameter name=max_spare_threads value=200/
Parameter name=min_spare_threads value=100 /
/Connector

Connector className=org.apache.tomcat.service.PoolTcpConnector
   Parameter name=handler
value=org.apache.tomcat.service.connector.Ajp13ConnectionHandler/
   Parameter name=port value=8009/
   Parameter name=max_threads value=500/
   Parameter name=max_spare_threads value=200/
   Parameter name=min_spare_threads value=100 /
/Connector

Context path= docBase=../../../../src/public_html debug=0
reloadable=true 
/Context





Second

are dir structure is something like this

../src/common/...  path to all classes etc
../src/public_html/..   path to all jsp's

in my server.xml I have a line
Context path= docBase=.. /src/public_html ...


I believe that will take care of my jsps but not a path to my Servlets
How can I fix this?

Thanks



RE: Not related to JSP's feel free to ignore

2001-08-13 Thread Jann VanOver

You mean to post a form without the user getting a dialog box if they've
asked to be notified of posts?  Absolutely not. 

-Original Message-
From: Kyle Wayne Kelly [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 10, 2001 10:19 PM
To: [EMAIL PROTECTED]
Subject: Re: Not related to JSP's feel free to ignore


I am not sure what double secret probation is.  I mean to ask, is it
possible to post a hidden form automatically?

Kyle Wayne Kelly
(504)391-3985
http://www.cs.uno.edu/~kkelly
- Original Message -
From: Tim O'Neil [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, August 10, 2001 3:42 PM
Subject: Re: Not related to JSP's feel free to ignore


 At 03:54 PM 8/10/2001, you wrote:
 Can anyone show me an example of code that posts a secret form?

 Sound like double secret probation. What's a secret form?






RE: How to prevent Tomcat/Jasper to forward JSP comments ?

2001-08-13 Thread Jann VanOver

Your JSP comments (%-- this is a JSP comment --%) will NEVER be sent out
to the client, at least not by Tomcat.

-Original Message-
From: Frederic [mailto:[EMAIL PROTECTED]]
Sent: Thursday, August 09, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: How to prevent Tomcat/Jasper to forward JSP comments ?



Hi,

I would like to prevent the servlet engine to forward the JSP
comments in 
the generated HTML page. I used to put many comments in my JSP pages but i 
would like to hide them to the clients. I've seen that we can give the 
JspServlet some init parameters but there is no parameter matching my 
request. Does anyone know how to tell it to hide comments ? 

Fred.



RE: HELP! I have already unsubscribed from this list but still get tons of them

2001-07-24 Thread Jann VanOver

When you unsubscribed, did you return the unsubscribe confirmation?

-Original Message-
From: Jing Fan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 24, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: HELP! I have already unsubscribed from this list but still get
tons of them




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



RE: Changing error pages

2001-07-24 Thread Jann VanOver

Loïc, how will this help if Tomcat is not even running?

-Original Message-
From: Loïc Lefèvre [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 3:36 AM
To: [EMAIL PROTECTED]
Subject: RE: Changing error pages


Try this url, ;)

http://www.jguru.com/faq/view.jsp?EID=318806

Loïc Lefèvre

-Message d'origine-
De : Ivan E. Markovic [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 23 juillet 2001 13:30
À : [EMAIL PROTECTED]
Objet : Changing error pages


A quickie.

Can I change the error page that appears when Tomcat is down? Or is
this hard-coded into Apache?

Somehow, someway I want to be able to provide people with notice of
what's going on when I am taking the system down.

Thank you.

I v a n ...

Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.

--
Ivan Markovic
SculptLight
http://www.sculptlight.com
(+353) 87 2939256
(+353) 1 2982205

114 Lower Churchtown Rd,
Dublin 14,
Ireland.



RE: Tomcat/Apache advantage without static pages?'tomcat-user@jakarta .apache.org'

2001-07-24 Thread Jann VanOver

I recently read that if you have three or more images on a web page -- you
will have faster response by serving them through Apache.

In my applications, I make sure to set up Apache to handle images,
stylesheets, and javascript includes (script src=blah.js) as well as
HTML pages

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 23, 2001 6:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/Apache advantage without static
pages?'tomcat-user@jakarta .apache.org'


Hi everyone,

i have a question concerning the use of Tomcat in Combination with Apache.
I am currently developing a WebApplication that consists almost entirely of
dynamic (JSP-)pages. The amount of static HTML-pages is negligible.
Are there any advantages concerning the Server performance and/or stability
if I use Tomcat in combination with Apache or will it be fine if I use
Tomcat as a standalone Server?

Thanks,

Helge

_
  Helge Carstensen
  ppi Pape + Partner Media GmbH
  Hindenburgstraße 49
  D-22297 Hamburg
  phone +49 (0) 40-22 74 33-6 15
  fax   +49 (0) 40-22 74 33-6 66
  email mailto:[EMAIL PROTECTED]
  web   www.ppi.de



RE: How can i get all table's name from JDBC driver?

2001-07-24 Thread Jann VanOver



What 
does this have to do with Tomcat?


  -Original Message-From: João Folha 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 23, 2001 7:48 
  PMTo: [EMAIL PROTECTED]Subject: How can i 
  get all table's name from JDBC driver?
  Hi there,
  
  I need to get all table's name from JDBC driver 
  and all column's name from any table.
  
  Can you help me?
  
  cheers
  João Folha


RE: How can i get all table's name from JDBC driver?

2001-07-24 Thread Jann VanOver



Umm 
... can you guys take this off to a JDBC list somewhere?

  -Original Message-From: João Folha 
  [mailto:[EMAIL PROTECTED]]Sent: Monday, July 23, 2001 7:56 
  PMTo: [EMAIL PROTECTED]Subject: Re: How can 
  i get all table's name from JDBC driver?
  ODBC, with ms access.
  
- Original Message - 
From: 
Sean 
Alphonse 
To: [EMAIL PROTECTED] 

Sent: Monday, July 23, 2001 3:55 
PM
Subject: RE: How can i get all table's 
name from JDBC driver?

Which RDBMS are you using?

  -Original Message-From: João Folha [mailto:[EMAIL PROTECTED]]Sent: 
  July 23, 2001 9:48 PMTo: [EMAIL PROTECTED]Subject: 
  How can i get all table's name from JDBC driver?
  Hi there,
  
  I need to get all table's name from JDBC 
  driver and all column's name from any table.
  
  Can you help me?
  
  cheers
  João 
Folha


RE: ACME gif encoder - no red ?

2001-07-20 Thread Jann VanOver

And this has WHAT to do with Tomcat?

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 2:08 AM
To: [EMAIL PROTECTED]
Subject: ACME gif encoder - no red ?


 Has anyone experienced a problem creating gifs with the ACME gif 
 encoder whereby the colors aren't right. The red component gets 
 zeroed, the green component is what the red should have been and the 
 blue is what the green should have been.
 
 Any help appeciated.
 
 SteveQ.



RE: Win2K security

2001-07-20 Thread Jann VanOver

All of us?

-Original Message-
From: Gabriel Weinberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 19, 2001 7:09 PM
To: Tomcat-User (E-mail); Ronnie Millar (E-mail)
Subject: Win2K security


I think that we should implement a higher standard of security in our Win2K
production environment, much along the lines of Matt's proposal.  Any
objections?  If no, I will think about and propose a system for patch and
password management as well as make other changes like encrypt PC Anywhere
and change the name of the Administrator accounts.

Gabriel



RE: request.getAttribute() problems

2001-07-20 Thread Jann VanOver

Then the bean must be in the SESSION scope

Putting it in the REQUEST scope means -- keep it around with this request

When you go to a new JSP page you usually get a new request to go with it.

-Original Message-
From: Paul Kofon [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 20, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: request.getAttribute() problems


Hi David,

On the first page, I've got a form with an action pointing to a certain jsp 
page. It's on this page (the one pointed to in the action statement) that I 
try to retrieve the object. Does that make any sense?

Regards,

Paul


From: David Haraburda [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: request.getAttribute() problems
Date: Fri, 20 Jul 2001 12:56:33 -0500

When you say next page, what do you mean?  How are you going from the 
first
page to the second page?  This is important because if you are doing it a
certain way (such as a response.sendRedirect) your request object won't get
passed along...

David

Paul Kofon wrote:

  Hi all,
 
  I have a Bean whose scope I would like to set to request. I would like

to
  retrieve this Bean's instance when the next page is requested.
  On the first page, I have:
 
   jsp:useBean id=beanclass class=BeanClass scope=request /
 
  On the next page, I have:
 
  BeanClass b = (BeanClass) request.getAttribute(beanclass);
 
  However, when I try to use instance b of my Bean,  I get a
  NullPointerException. The strange thing is that the code seemed to 
working
  in Orion. Is there something I'm doing wrong?
  Note that I can use the instance without errors when I set the scope to
  session and use session.getAttribute() instead but I don't want to 
do
  this as my instance should only last for a request.
  I'm using Tomcat 3.2.2/Sun's JDK 1.3.1 on Win2K Pro.
 
  Regards,
 
  Paul
 
  _
  Get your FREE download of MSN Explorer at 
http://explorer.msn.com/intl.asp



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



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Jann VanOver

Okay -- I can't quote the source, but I read recently that this is a Tomcat
bug.

If you put .class files into tomcat's WEB-INF\classes directory they go into
an unnamed package and then can't be found when they're needed.

Put your classes into a package -- put the package hierarchy in
WEB-INF\classes and then it will work.

EG. if you put a class DoIt into a package named mine
  WEB-INF\classes\mine\DoIt.class

-Original Message-
From: Sampige, Srinivas [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:15 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JSP's not finding classes in WEB-INF 


If you have just .class files then your JSP should work after placing those
classes under WEB-INF/classes .But if you classes are in a .jar file then
place them under WEB-INF/lib . Hope this helps

-srinivas

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 10:54 AM
To: [EMAIL PROTECTED]
Subject: JSP's not finding classes in WEB-INF 


Greetings!

Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.  

I have a working application with servlets and JSP pages running under
Tomcat 3.1.  I'm trying to port it to 3.2.

However, every time I hit a JSP page, it gives a 500 error about how it
cannot find classes to compile.  Those classes are located in the WEB-INF
directory, under the /classes folder.  

The classpath does *not* contain the WEB-INF/classes directory.

If I hard-code the WEB-INF/classes directory into the classpath, they
work.  However, I do not want to do this.  

What is the problem, and how can I resolve it?

I have tried settiing the environment variables TOMCAT_HOME and JAVA_HOME,
and moving tools.jar into TOMCAT_HOME/lib.

Thanks for any tips or pointers!

Will


-- 
  /~'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/



RE: JSP's not finding classes in WEB-INF

2001-07-18 Thread Jann VanOver

No, this is not right.  Bean classes ARE SUPPOSED TO go into
WEB-INF\classes.  As I mention in another post, there is a bug in Tomcat
that keeps them from being found unless they are in a package.  Put classes
into packages and put the packages in WEB-INF\classes and everything works
fine!

-Original Message-
From: Aditya Anand [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 11:09 AM
To: [EMAIL PROTECTED]
Subject: Re: JSP's not finding classes in WEB-INF 


 Greetings!
 
 Ok - running Tomcat 3.2 on SunOS 2.7, with Java 1.2.
  
 
 I have a working application with servlets and JSP
 pages running under
 Tomcat 3.1.  I'm trying to port it to 3.2.
 
 However, every time I hit a JSP page, it gives a 500
 error about how it
 cannot find classes to compile.  Those classes are
 located in the WEB-INF
 directory, under the /classes folder.  

I assume these are your bean classes. These should be
put under the WEB-INF/lib directory rather than the
classes directory. The classes directory is ment only
for un-jarred servlet classes that have been declared
in the web.xml file.

 The classpath does *not* contain the WEB-INF/classes
 directory.
you donot have to specify WEB-INF/classes in the
system classpath
 
 If I hard-code the WEB-INF/classes directory into
 the classpath, they
 work.  However, I do not want to do this.  
 
 What is the problem, and how can I resolve it?
 
 I have tried settiing the environment variables
 TOMCAT_HOME and JAVA_HOME,
 and moving tools.jar into TOMCAT_HOME/lib.
Put any servlet jars, beans, and required
non-statndard libraries under the lib folder (like
log4J, or xalan)

cheers
Adi


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: JSP compile error - class not found

2001-07-18 Thread Jann VanOver

put your classes into a package.  Put the package in WEB-INF\classes\pkgname
(where pkgname is the name of your package)  Then it will work.

-Original Message-
From: Will England [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 8:07 AM
To: [EMAIL PROTECTED]
Subject: RE: JSP compile error - class not found 


Greetings!

Tried copying tools.jar to the TOMCAT_HOME/lib directory.  Didn't help.

Set TOMCAT_HOME and JAVA_HOME vars.  Didn't help.

Any other ideas?


-- 
  /~'find `funny quote`': Command not found; humor not installed.  
  1986 Concours 72,xxx  1982 Maxim 12,xxx (For Sale!) CDA #00046
  Overland Park, KS [EMAIL PROTECTED] PCS: 316-371-FOAD
http://will.mylanders.com/

On Tue, 17 Jul 2001, Robert Finneran wrote:

 First thing, try copying tools.jar to your TOMCAT_HOME/lib directory.
 (Also make sure your TOMCAT_HOME and JAVA_HOME enviroment vars are set)
 
 Second, the may be issues involving the use of multiple class loaders (??)
 
 Hope this helps! 
 
 -Original Message-
 From: Will England [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 4:11 PM
 To: [EMAIL PROTECTED]
 Subject: JSP compile error - class not found 
 
 
 Greetings!
 
 Running tomcat 3.2 on Sun 2.7
 
 Porting a working application from 3.1.  All jsp's and servlets work under
 3.1.
 
 Running multiple virtual machines under one Tomcat with the host
 parameter in server.xml.
 
 The JSPs are failing to compile --
 org.apache.jasper.JasperException: Unable to compile class for JSP
 Class xxx not found.
 
 The classes that are giving me problems are in the WEB-INF/classes
 directory.  They have correct permissions.  The classpath that tomcat is
 using is:
 
 bin/../lib/ant.jar:
 bin/../lib/db-2.7.7:
 bin/../lib/db-2.7.7.jar:
 bin/../lib/jasper.jar:
 bin/../lib/jaxp.jar:
 bin/../lib/log4j.jar:
 bin/../lib/mail.jar:
 bin/../lib/mm.mysql-2.0.1-bin.jar:
 bin/../lib/parser.jar:
 bin/../lib/servlet.jar:
 bin/../lib/test:
 bin/../lib/webserver.jar:
 /usr/java1.2/bin/../lib/tools.jar
 
 The servlets work correctly.  The only odd bit in server.xml is the use of
 this:
 
  RequestInterceptor
 className=org.apache.tomcat.request.Jdk12Interceptor/
 
 so that I can read text files from each WEB-INF directory for each web
 application.
 
 I've checked the FAQ's, google, groups.google, Sun and Apache's web
 pages.  I haven't been able to find any reason for this to happen.
 
 I've cleared the work/ directory out, cleared out all compliled classes
 and recompiled the entire thing from source.  
 
 I'm rather stumped.  Anyone have any suggestions or ideas why my JSP's
 won't compile?
 
 Thanks in advance for any tips, tricks or advice!
 
 Will
 
 
 



RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

Move to b6.  b5 has a problem recompiling JSPs surprise!

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

 -Original Message-
 From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:41 AM
 To: [EMAIL PROTECTED]
 Subject: Re: jsp and tomcat 4


 You need to make changes to a jsp file, not java file.  Tomcat will detect
 changes automatically and will translate jsps into java files and
 then compile
 them.
 ---
 Oskar

 Marco Magistrali wrote:

  Hi,
 
  I have a question:
  if I modify a JSP under tomcat4 i don't see any change in
 browser because
  tomcat4 get the .class of JSP in cache (directory work)
 
  How can I say to recompile the jsp if there are changes in java??
 
  tanks
  Marco




RE: jsp and tomcat 4

2001-07-18 Thread Jann VanOver

My bad -- b6 isn't out yet.  I guess you're supposed to get a more recent
nightly build of b5.

-Original Message-
From: Jann VanOver 
Sent: Wednesday, July 18, 2001 1:55 PM
To: '[EMAIL PROTECTED]'
Subject: RE: jsp and tomcat 4


Move to b6.  b5 has a problem recompiling JSPs surprise!

-Original Message-
From: David White [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 17, 2001 11:23 AM
To: [EMAIL PROTECTED]
Subject: RE: jsp and tomcat 4


I've been having the same problem.  When I modify a JSP, it isn't recompiled
automatically.  However, if I delete the .class file associated with the
JSP, both the .java and the .class files associated with the JSP are
rebuilt.  So I've been deleting the .class files whenever I make JSP
changes.

I recall someone on this list mentioning that Tomcat 4b5 had a known bug
regarding detection of changes in source files, so I've assumed that was the
problem I've been seeing.

I'm using standalone Tomcat 4b5 in a Win2000 environment.

If anyone knows of a configuration change or a work-around that could get my
JSPs to compile properly when changed, please let me know!

Thanks
David

 -Original Message-
 From: Oskar Zinger [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, July 17, 2001 10:41 AM
 To: [EMAIL PROTECTED]
 Subject: Re: jsp and tomcat 4


 You need to make changes to a jsp file, not java file.  Tomcat will detect
 changes automatically and will translate jsps into java files and
 then compile
 them.
 ---
 Oskar

 Marco Magistrali wrote:

  Hi,
 
  I have a question:
  if I modify a JSP under tomcat4 i don't see any change in
 browser because
  tomcat4 get the .class of JSP in cache (directory work)
 
  How can I say to recompile the jsp if there are changes in java??
 
  tanks
  Marco




RE: IIS5 + isapi_redirect.dll GREEN ARROW

2001-07-18 Thread Jann VanOver

Do you have any spaces in the path name to isapi_redirect.dll ?? if so, get
rid of them.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 18, 2001 2:26 AM
To: [EMAIL PROTECTED]
Subject: IIS5 + isapi_redirect.dll GREEN ARROW


hi all,

We have just setup win2k server + iis5 + jdk1.3.1 + tomcat3.2.2  and have
done the installations as per the manual (help file ).

We are not able to get the green arrow up for isapi_redirect.dll filter. We
have tried all possibilities. Even we tried the old isapi_redirect.dll file
which we are currently using on our nt4.0. We have double checked the
registry settings, but no luck.

Can anyone throw light on this.

thanks in advance
niraj.




RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



Please 
look at Web.XML. You need TWO elements in Web.xml for each server mapping 
you want to set up.

  -Original Message-From: Renato Weiner 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
  PMTo: [EMAIL PROTECTED]Cc: 
  [EMAIL PROTECTED]Subject: Problem with JSP mapping to 
  subdirectory
  Hi all,
  I'm having a problem using JSP/Servlets in a subdirectory other than 
  root.
  To whomever want to test these are the steps:
  - httpd.conf:
  VirtualDomain  JkMount /test/*.jsp ajp12JkMount 
  /servlet_test/* ajp12
  /VirtualDomain
  - server.xml
  RequestInterceptor 
  className="org.apache.tomcat.request.InvokerInterceptor" 
  debug="9" prefix="/servlet_test/" /
  
  Host name="www.name.com"Context path="" 
  docBase="/home/name/public_html/test" debug="9" crossContext="false" 
  reloadable="true" //Host
  I can run a servlet since it loads the right web.xml in test.log: 
  2001-07-18 19:27:17 - Ctx( ... ): Reading 
  /home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
  But when I try to run a JSP I got a 404 error message. Looking at the 
  logs:
  2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
  /home/name//public_html/test/test/Hello.jsp 
  /home/name/public_html/test2001-07-18 
  19:29:18 - Ctx( ... ): 404 R( + /test/Hello.jsp + null) JSP file not 
  found
  URL: http://www.name.com/test/Hello.jsp
  Am I doing something wrong ? Or is it a problem??
  Renato.
  
  
  Do You Yahoo!?Get personalized email addresses from Yahoo! Mail - 
  only $35 a year!http://personal.mail.yahoo.com/


RE: Problem with JSP mapping to subdirectory

2001-07-18 Thread Jann VanOver



That 
should have said "servlet mapping"

  -Original Message-From: Jann VanOver 
  Sent: Wednesday, July 18, 2001 3:37 PMTo: 
  '[EMAIL PROTECTED]'Subject: RE: Problem with JSP 
  mapping to subdirectory
  Please look at Web.XML. You need TWO elements in Web.xml for each 
  server mapping you want to set up.
  
-Original Message-From: Renato Weiner 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, July 18, 2001 3:35 
PMTo: [EMAIL PROTECTED]Cc: 
[EMAIL PROTECTED]Subject: Problem with JSP mapping to 
subdirectory
Hi all,
I'm having a problem using JSP/Servlets in a subdirectory other than 
root.
To whomever want to test these are the steps:
- httpd.conf:
VirtualDomain  JkMount /test/*.jsp ajp12JkMount 
/servlet_test/* ajp12
/VirtualDomain
- server.xml
RequestInterceptor 
className="org.apache.tomcat.request.InvokerInterceptor" 
debug="9" prefix="/servlet_test/" /

Host name="www.name.com"Context 
path="" docBase="/home/name/public_html/test" debug="9" crossContext="false" 
reloadable="true" //Host
I can run a servlet since it loads the right web.xml in test.log: 
2001-07-18 19:27:17 - Ctx( ... ): Reading 
/home/name/public_html/test/WEB-INF/web.xmlURL:http://www.name.com/servlet_test/MyServlet
But when I try to run a JSP I got a 404 error message. Looking at the 
logs:
2001-07-18 19:29:18 - Ctx( ... ): Get real path /test/Hello.jsp 
/home/name//public_html/test/test/Hello.jsp 
/home/name/public_html/test2001-07-18 
19:29:18 - Ctx( ... ): 404 R( + /test/Hello.jsp + null) JSP file not 
found
URL: http://www.name.com/test/Hello.jsp
Am I doing something wrong ? Or is it a problem??
Renato.


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


RE: JasperException / classpath(?) problem

2001-07-16 Thread Jann VanOver

Where did you put NumberGuessBean.class ??

It must go into WEB-INF/classes/num/ (because it is in package named num)

-Original Message-
From: howard fraser [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 16, 2001 7:29 AM
To: [EMAIL PROTECTED]
Subject: JasperException / classpath(?) problem


I wonder if anyone can shed any light on the following - I have looked
through the archived messages, but to no avail.

I have tomcat 3.2.2 installed on Windows 2000 SP2 with jdk1.3.1.  I do not
have a CLASSPATH environment variable set.  When I start tomcat it first
says

Using CLASSPATH:
C:\tomcat\classes;C:\tomcat\lib\ant.jar;C:\tomcat\lib\jasper.jar;C:\tomcat\l
ib\jaxp.jar;
C:\tomcat\lib\parser.jar;C:\tomcat\lib\servlet.jar;C:\tomcat\lib\webserver.j
ar;C:\jdk1.3.1\lib\tools.jar

...which seems fine to me (all the above mentioned jars exist).

When I try to run the jsp examples that come with tomcat (e.g. number guess)
I get the following exception...

org.apache.jasper.JasperException: Unable to compile class for
JSPC:\tomcat\work\localhost_8080%2Fexamples\jsp\num\_0002fjsp_0002fnum_0002f
numguess_jsp.java:3: Class num.NumberGuessBean not found in import.
import num.NumberGuessBean;

Is there sthg else I need to add to my classpath in order that tomcat can
locate num.NumberGuessBean?

Many thanks in advance for any help


howard



RE: Tomcat/Apache advantage without static pages?

2001-07-13 Thread Jann VanOver

I recently saw a message that if you have as few as THREE images on a web
page, the page will be faster if the images are served through Apache and
not Tomcat.  Remember, images, linked css files and included (src=href)
javascript files are static elements also -- not just HTML.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 3:49 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/Apache advantage without static pages?


Hi everyone,

i have a question concerning the use of Tomcat in Combination with Apache.
I am currently developing a WebApplication that consists almost entirely of
dynamic (JSP-)pages. The amount of static HTML-pages is negligible.
Are there any advantages concerning the Server performance and/or stability
if I use Tomcat in combination with Apache or will it be fine if I use
Tomcat as a standalone Server?

Thanks,

Helge

--
Helge Carstensen
ppi Media GmbH
eMail: [EMAIL PROTECTED]
-- 



RE: How can I get Tomcat Code?

2001-07-13 Thread Jann VanOver

Go to http://jakarta.apache.org/tomcat/ , click on the link that says
Source Code

Gee, that was tough.

-Original Message-
From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 13, 2001 7:41 AM
To: [EMAIL PROTECTED]
Subject: How can I get Tomcat Code?


Hello all..

How can I get source code for Tomcat?
I want to try to build this code for VxWorks?
If anybody can help me to build it for VxWorks please
let me know.
Please provide me link to get code if possible?


/sunil


--- Sunil Chandurkar [EMAIL PROTECTED]
 wrote:
hi all

Do anybody knows about how to run Tomcat on Vxworks (Real Time Opearting
System)?

First of tell me, do anybody know any webserver runs on VxWorks? 
I know two web servers Wind Web Server and Go Ahead Web Server, but these
webserver not supporting servlets and I want a Web Server which supports
Servlets? 

can you please send me links to those webservers those can be running on
VxWorks OS and also supports Servlet.

Most of the RTOS Web server supports CGI but I want to use Servlet.

Thanx in Advance

/Sunil

Sunil Chandurkar
Software Engineer
Kuokoa Networks Inc.
[EMAIL PROTECTED]


_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net

_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



RE: find the NT account name with tomcat for IIS

2001-07-12 Thread Jann VanOver

Once you are properly serving through IIS, you can go to the IIS
administration panel and set security for a directory or a page.  How you
set it is different with each version of Windows  IIS so I can't tell you
exactly how to do that.  

On Win2K, here's what I do: Start=Settings=Control Panel=Administrative
Tools=Internet Services Manager.  Right-click on the virtual server you
want to protect (its name will match your Tomcat context name) and select
Properties.  Look for the Security properties.  Un-check Allow Anonymous
That's it.  Security is now enabled for that context.

What this does, is it causes IIS to issue the NT Challenge/response (did I
say that right?) and if the user isn't logged in to a valid domain, it pops
up the username/password box.   Your Tomcat programs read this as 
request.getRemoteUser()

-Original Message-
From: Georges Boutros [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 8:35 AM
To: Tomcat-User (E-mail)
Subject: find the NT account name with tomcat for IIS


hi,

i would like to get the NT account name of the person browsing the web page.
i'm using jsp pages with tomcat for IIS.

does anyone know how can i do it?

thanks
Georges



RE: jsp mapping

2001-07-12 Thread Jann VanOver

Maybe I'm dense, but why don't you just put:
  action=/cust/listorders.jsp in your tag 

-Original Message-
From: Kevin HaleBoyes [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 12, 2001 8:57 AM
To: [EMAIL PROTECTED]
Subject: jsp mapping


First off, I'm running Tomcat 4b5 (standalone) on Linux RedHat 7.1.

I've been looking at (and learning from) the Java Pet Store from Sun and
have been writing some custom Taglibs for my application.  I'm currently
doing
lists of things that use the NextFormTag and PrevFormTag extensions from
a jsp file/program.  These tags generate form elements to move to the next
and previous pages where you specify the action of the form.  Here is an
example (snippet):

   opf:prevForm action=/cust/listorders
 input type=submit value=Prev name=Prev/
   /opf:prevForm
   opf:nextForm action=/cust/listorders
 input type=submit value=Next name=Next/
   /opf:nextForm

This generates the following HTML output:

form method=GET action=/cust/listorders
input type=hidden name=orderlist_startIndex value=5
input type=hidden name=orderlist_next value=true
input type=submit value=Next name=Next/
/form

I'm having trouble specifying the action element of the form.  From above,
listorders is actually a JSP file.  I need to provide a mapping from the
actual JSP file /cust/listorders.jsp to /cust/listorders but I'm not
sure
how to go about it.

I tried to put the following in my web.xml file but it didn't work:

servlet
servlet-namelistorders/servlet-name
servlet-class/cust/listorders.jsp/servlet-class
/servlet

servlet-mapping
servlet-namelistorders/servlet-name
url-pattern/cust/listorders/url-pattern
/servlet-mapping

When I click the Next button I get the following in my browser:

HTTP Status 404 - /cust/listorders
The requested resource (/cust/listorders) is not available. 


Can anyone help?  I searched the archives at mikal but didn't come up with
anything that was applicable.

Many thanks,
Kevin.




Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



RE: . Help needed.

2001-07-11 Thread Jann VanOver

There was a bug in one of the Tomcat 4 betas that caused this problem.  It
MAY have been the same beta 5 you're using.  Check if there's a more recent
version.

-Original Message-
From: Drinkwater Glen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, July 11, 2001 5:25 AM
To: '[EMAIL PROTECTED]'
Subject: . Help needed.


I am using tomcat 4.0 beta 5 on win NT and the problem is that when i
make a change to a jsp page tomcat doesnt pick it up, i have tried to
refresh the browser, shut down the start up again and nothing happens.
The only thing i can do is resave the JSP as another name, which is
really annoying. Any ideas on the situation??

Glen




-- 
The Information contained in this E-Mail and any subsequent correspondence
is private and is intended solely for the intended recipient(s).
For those other than the recipient any disclosure, copying, distribution, 
or any action taken or omitted to be taken in reliance on such information
is
prohibited and may be unlawful.



RE: instantDB in development

2001-07-10 Thread Jann VanOver

Um, what does this have to do with Tomcat?  

-Original Message-
From: Kemp Randy-W18971 [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 10, 2001 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: instantDB in development


I am playing with accessing databases on instantDB in development.  Can
someone give me the equivalent code in instandDB, for the code I use with
Oracle (as far as classname and url goes, given I have the drivers correctly
loaded)?

  String username = duck;
String password = daffy;  
String url=jdbc:oracle:thin:@this.is.a.fake.name:1521:helpme; 
Connection con;
//  String query = SELECT * FROM alex_course;
String query = SELECT * FROM me_job_entry;
Statement stmt;


try {
Class.forName(oracle.jdbc.driver.OracleDriver);
}
catch (java.lang.ClassNotFoundException e) {
System.err.print(ClassNotFoundException: );
System.err.println(e.getMessage());
}



RE: Problem changing default web.xml : conf/web.xml is not processed

2001-07-06 Thread Jann VanOver

You didn't mention which version of Tomcat you were running.

The thing is, in some version, conf/web.xml became a SAMPLE, not a DEFAULT.
You should not count on conf/web.xml to be used because that doesn't follow
the J2EE standard.  You MUST make a copy of the web.xml and put it into each
webapp context's WEB-INF directory.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:34 AM
To: [EMAIL PROTECTED]
Subject: Problem changing default web.xml : conf/web.xml is not
processed


Hi there,

I have a problem changing the web.xml in the conf dir (conf/web.xml).
I wanted to configure some central stuff there and wondered why it isn't
working.
Then I placed a wrong tag with no closing tag into the web.xml.
The sax-parser must throw an exception with this file.
But nothing happened.
I tested the same wrong tag in an webapps web.xml file. There I got the
exception.
My conclusion is now, that the default web.xml is not proccessed!

I wonder why, because the server.xml file is in the same directory.
If server.xml is found by tomcat, why not the default web.xml.

I can post a log-trace if you are intereseted, but I don't see any
informative help in it.
Be method opening the default web.xml does not log anything.

Any comments, how I can make tomcat reading and processing the default
web.xml are welcome.

Kind regards
Guido















---
This message is intended for the adressee or its representative only. Any
form of unauthorized use, publication, reproduction, copying or disclosure
of the content of this e-mail is not permitted. If you are not the intended
recipient of this e-mail message and its contents, please notify the sender
immediately and delete this message and all its attachments subsequently.




RE: JDBC Realm Questions Tomcat 3.2.2

2001-07-06 Thread Jann VanOver

Tomcat's JDBC Realm won't work with an empty database password.  I posted
about this a week ago and asked if it was a bug and noone responded.

If you proved the JDBCRealm a valid username with a blank (empty string)
password, Tomcat will ignore BOTH Username and password.

Here's my previous post:

-Original Message-
From: Jann VanOver 
Sent: Tuesday, June 26, 2001 12:27 PM
To: [EMAIL PROTECTED]
Subject: JDBCRealm doesn't allow a blank password -- is this a bug?


I'm using Tomcat 3.2.2

I was just beginning to try out JDBCRealm and was continuing to get an
error.  The Tomcat.log said:

2001-06-26 11:27:05 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection. Severity 14, State 1,
Procedure 'null null', Line 0 Unable to connect, please check your server's
version and availability.

I WAS including the proper credentials in my web.xml, so I delved into the
Tomcat source code to find what was going wrong.  (this was my FIRST Tomcat
delving experience!)  In JDBCRealm, method checkConnection() I found this:

   if ((connectionName == null || connectionName.equals()) ||
  (connectionPassword == null || connectionPassword.equals())) {
   dbConnection = DriverManager.getConnection(connectionURL);
} else {
dbConnection = DriverManager.getConnection(connectionURL,
connectionName,
connectionPassword);
}

I'm practicing on an internal dev server that is poorly protected and has no
password for the username I was using, so my server.xml had:
connectionName=aDevUser   connectionPassword=

Obviously, this is what is causing the problem, given the code snippet
above.

I created a new username with a real password, entered those in my
server.xml, and the problem went away.

Now I know it's not a good practice to have a password that is an empty
string, but is it an error?  Should this be logged as a Tomcat bug?  I'm
still fairly new to Tomcat and tried searching for this in Bugzilla and
didn't find anything and wasn't sure where to go from there.  Would someone
with more experience with the process like to enter this?

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 4:28 AM
To: '[EMAIL PROTECTED]'
Subject: RE: JDBC Realm Questions Tomcat 3.2.2


 Now, when somebody wants to access myServlet resource, he/she 
 must have the role
 of an Administrator or Operator. I think this should be 
 checked into the
 database.  The problem is that, when I've tried to access 
 myServlet for the
 first time, the following message was generated in the tomcat console:
 
 2001-07-05 04:11:49 - ContextManager: JDBCRealm: 
 JDBCRealm.authenticate: SELECT
 PASSWORD FROM MYUSERTABLE WHERE NAME = ?
 2001-07-05 04:11:50 - ContextManager: JDBCRealm: 
 Authentication unsuccessful for
 user null
 
 In the same time, the login window has appeard on Netscape 
 browser, but after
 I'd entered a valid user name and password (from myUserTable) 
 the message was
 the same:
 
 2001-07-05 04:14:19 - ContextManager: JDBCRealm: 
 Authentication unsuccessful for
 user null
 
 It seems for me that the user name is null every time, no 
 matter if I enter a
 valid (user, passwd) or not. Is that a Tomcat bug, or I've 
 missed something?

Check your database schema and make sure it is correct.  If it is
all I can suggest is add some debugging code to JDBCRealm, recompile
and throw it in TOMCAT_HOME/classes/, then restart and see what
the actual value of username is when authenticate(String, String) 
is called.


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: Invoke New Window From Applet

2001-07-06 Thread Jann VanOver

You're right dude, this is COMPLETELY the wrong place for this.

-Original Message-
From: Sunil Chandurkar [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 12:31 AM
To: [EMAIL PROTECTED]
Subject: Invoke New Window From Applet


Hi There

I know the question i'm going to ask, the best place is Java Forum, and I
have tried there. but i didn't find quick response compartively here...I m
asking you all this question...

Actually from Browser Applet I want to open new Window which should look
like New Application: What exactly I want you can see it by visiting
followin site...

I want the same way, they are invoking their application from applet..
please visit following site and let me know How can I invoke such window or
application from applet

http://www.truesan.com/products/resources/sandesigner/sandesigner.htm

/sunil

_
Get LifeTime Free email Visit  --- http://www.nagpurcity.net



RE: Servlet Error

2001-07-06 Thread Jann VanOver

I think you'll have to look at your servlet code and see where it could be
creating a null pointer exception.

-Original Message-
From: Stuart Shay [mailto:[EMAIL PROTECTED]]
Sent: Friday, July 06, 2001 3:35 PM
To: [EMAIL PROTECTED]
Subject: Servlet Error


Hello All:

Below is the error code I am recieciving when I run a simple Servlet on
my laptop, everything works fine on my test machine so i know the code
works.

The example servlets run fine, are there any configuration settings that I
may have over looked.

The version of Tomcat/Apache that I am using  is customized version part of
a software package.

From the error code below maybe someone can lead me in the right direction.

Thanks
Stuart


Error: 500
Location: /iw/samples/hello.html
Internal Servlet Error:

java.lang.NullPointerException
 at java.lang.ClassLoader.resolveClass0(Native Method)
 at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
 at
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.j
ava:430)
 at
org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoad
er.java:174)
 at
org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
 at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
 at org.apache.tomcat.core.Handler.service(Handler.java:254)
 at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
 at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
 at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
 at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
 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)





RE: Registry question

2001-07-05 Thread Jann VanOver

Yes.  That is correct.  And make sure your path to isapi_redirect.dll does
NOT have any spaces in it.  This can cause problems.

-Original Message-
From: Bayi, Omari J. [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 12:29 PM
To: '[EMAIL PROTECTED]'
Subject: Registry question


Hello-

I'm having a little trouble following the tomcat install directions.  On
step 8 of Configuring the ISAPI Redirector in the Tomcat IIS How to
document, it states to add a Filter DLLs key under
HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
However, it doesn't say what type of value to add, what to name it, nor what
data to give it.  It simply states that this key contains a , separated
list of dlls - you need to insert the full path to isapi_redirect.dll.
I'm assuming you mean to create a string value under the Parameters key
named Filter DLLs and insert the path to isapi_redirect.dll in the value
data field.  If this is correct, please confirm. if not, please respond
with the correct instructions.

BTW: Does Tomcat work with Windows ME?  Caldera 2.3 eServer?  RedHat 6.2 or
7.0?  Your documents only state support for UNIX and Win32 which is a rather
vague statement.

Thanx in advance for your help!

Regards-

Omari J. Bayi
 Product Consultant
 Testing  Integration Center
 Compuware Corporation

 Office: (248) 737-7300 x10736
 Fax: (248) 737-7606
 E-Mail: mailto:[EMAIL PROTECTED]



RE: Does Apache Come With Tomcat Built In or Pre Integrated?

2001-07-05 Thread Jann VanOver

It doesn't.

Not everyone who needs Apache needs Tomcat and vice-versa.

-Original Message-
From: Russell, Steve [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 05, 2001 6:33 AM
To: '[EMAIL PROTECTED]'
Subject: Does Apache Come With Tomcat Built In or Pre Integrated?


Just curious if it does or doesn't.

If it doesn't, why not.  I'm sure there is a good reason.  I'm just curious

Steve

Steve Russell

Web Developer III
ValueOptions - Lifescape
703-205-6589
[EMAIL PROTECTED]


**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender by email, delete and destroy this message and its 
attachments.


**



RE: CONTEXTS

2001-06-29 Thread Jann VanOver

Do you have a WEB-INF/web.xml file in webapps/onsale ??

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 9:46 PM
To: [EMAIL PROTECTED]
Subject: CONTEXTS


Hello all

I am currently trying to create a new context to run
under Tomcat

I have created a new folder underneath webapps called
'onsale' and have defined it in server.xml

However, when I restart Tomcat, it does not appear to
be picked up. 

Is there anything else that needs to be done to define
a context?

Do I explicitly need a .war file to create the
'onsale' context?

any help is appreciated

Jason



_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: CONTEXTS

2001-06-29 Thread Jann VanOver

OR --
Just make a directory in tomcat's WebApps directory and include a
WEB-INF/web.xml file.

like this:
d:/tomcat/WebApps/myNewContext/WEB-INF/web.xml

Restart Tomcat.  No need to touch Server.xml at all!

Tomcat is real smart that way.

-Original Message-
From: Vikram Naik [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 28, 2000 10:00 PM
To: [EMAIL PROTECTED]
Subject: Re: CONTEXTS


Hello Jason ,
For configuring a context in Tomcat u need to do
following things .

1 .  Make a folder with the name of  context  anywhere inside tomcat Dir.
2 .  Define it by describing your context in Server.xml with the use of the
  tag
  Context path= the url ext u want after http://yourhost:yourport/ 
 docBase= path of your context under tomcat dir 
 crossContext=true
 debug=0
 reloadable=true
 trusted=false 
/Context

After going all this Start your server

And Congratulations Your Context is Up!!! :-)


If  any  comments pls feel free to express yourself .

Vikram Naik




- Original Message -
From: teh j [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 29, 2001 10:15 AM
Subject: CONTEXTS


 Hello all

 I am currently trying to create a new context to run
 under Tomcat

 I have created a new folder underneath webapps called
 'onsale' and have defined it in server.xml

 However, when I restart Tomcat, it does not appear to
 be picked up.

 Is there anything else that needs to be done to define
 a context?

 Do I explicitly need a .war file to create the
 'onsale' context?

 any help is appreciated

 Jason




_
 http://messenger.yahoo.com.au - Yahoo! Messenger
 - Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: jasper

2001-06-28 Thread Jann VanOver

Tomcat's JSP engine

-Original Message-
From: alex chang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 28, 2001 1:29 PM
To: [EMAIL PROTECTED]
Subject: jasper


forgive me if this is a silly question,
but what's jasper?
-alex

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: javabeans with jsp

2001-06-28 Thread Jann VanOver

A good reference is http://java.sun.com/j2ee/tutorial/doc/JSPBeans.html

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 20, 2001 4:07 PM
To: [EMAIL PROTECTED]
Subject: javabeans with jsp


I don't know where exactly the javabean class goes in order for a jsp script

to find it. Lets say that I have a jsp script in:
~/examples/jsp/tester/tester.jsp

and tester.jsp uses a bean class called UserBean.class.

tester.jsp has this line in the beginning:
jsp:useBean id=bean class=UserBean scope=session /

My question is from this point where do I put the bean UserBean and do I 
have to touch the web.xml or server.xml at all to resolve this 
problem



RE: isapi_redirect on Win2K

2001-06-28 Thread Jann VanOver

No, you don't need a separate build for Win2K

What about it isn't working?  

  -Original Message-
 From: Jay Kaplan [mailto:[EMAIL PROTECTED]] 
 Sent: Wednesday, June 20, 2001 12:21 PM
 To:   [EMAIL PROTECTED]
 Subject:  isapi_redirect on Win2K
 
 I cannot get isapi_redirect.dll to load into IIS under Win2K server.  Is a
 win2K build required, or will the win32 binary work under win2K?  
 
 If the win32 build is sufficient, what other troubleshooting areas should
 I look at?
 
 Current Reg Entries:
 HKEY_LOCAL_MACHINE/SOFTWARE/Apache Software Foundation/Jakarta Isapi
 Redirector/1.0/
 extension_uri=/jakarta/isapi_redirect.dll
 log_file=c:\RioTrade\tomcat\logs\isapi.log
 log_level=debug
 worker_file=c:\RioTrade\tomcat\conf\workers.properties
 worker_file_mount=c:\RioTrade\tomcat\conf\uriworkermap.properties
 
 The Tomcathome is c:\RioTrade\tomcat.
 
 Jay Kaplan
 [EMAIL PROTECTED]
 Rio Labs
 



RE: error

2001-06-28 Thread Jann VanOver

Um ... we aren't all sir here.  I happen to be a Ms. or Maam or just Hey
You but I am NOT a sir

Did you restart IIS?  Don't just restart the webserver, but go to the
Services control panel and restart IIS Admin Service to make sure it is
fully restarted.

Also, did you add a mapping into the uriworkermap.properties file?

-Original Message-
From: Girish MV [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 9:57 AM
To: [EMAIL PROTECTED]
Subject: error


Sir,
After installing(isapi) the filter in IIS we get green sign.That means that
the filter is properly installed. But still the jsp are serviced. I am
getting 404 error. But the url is correct. please help in this matter.
Regards,

Manik




RE: FIRST POST - Servlet installation problem

2001-06-27 Thread Jann VanOver

Have you added a mapping in Tomcat's urlworkermap.properties file ?

-Original Message-
From: Clifford P. Helsel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 7:40 PM
To: [EMAIL PROTECTED]
Subject: RE: FIRST POST - Servlet installation problem
Importance: High


This does not solve one problem, that of redirection, or rather
accessing the Servlet through IIS.  By going to port 8080 I am still
using the Tomcat engine to serve the page:

For example, in my configuration, this URL works

http://localhost:8080/myservlet/servlet/myservlet

However, this does not (and I would expect it to)

http://localhost/myservlet/servlet/myservlet

Thanks,
Cliff.

-Original Message-
From: Peter Davison [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 27, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Re: FIRST POST - Servlet installation problem

Hi Clifford.

Note the lack of :8080 in the URL you mention.

Try this: 

http://localhost:8080/servlet/myservlet

and see if that works any better.

P.

CH I'm using the url: http://localhost/servlet/myservlet
CH 



RE: FIRST POST - Servlet installation problem

2001-06-27 Thread Jann VanOver

Oops -- that should have been uriworkermap.properties

-Original Message-
From: Jann VanOver 
Sent: Wednesday, June 27, 2001 7:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: FIRST POST - Servlet installation problem


Have you added a mapping in Tomcat's urlworkermap.properties file ?

-Original Message-
From: Clifford P. Helsel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 7:40 PM
To: [EMAIL PROTECTED]
Subject: RE: FIRST POST - Servlet installation problem
Importance: High


This does not solve one problem, that of redirection, or rather
accessing the Servlet through IIS.  By going to port 8080 I am still
using the Tomcat engine to serve the page:

For example, in my configuration, this URL works

http://localhost:8080/myservlet/servlet/myservlet

However, this does not (and I would expect it to)

http://localhost/myservlet/servlet/myservlet

Thanks,
Cliff.

-Original Message-
From: Peter Davison [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 27, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Re: FIRST POST - Servlet installation problem

Hi Clifford.

Note the lack of :8080 in the URL you mention.

Try this: 

http://localhost:8080/servlet/myservlet

and see if that works any better.

P.

CH I'm using the url: http://localhost/servlet/myservlet
CH 



RE: FIRST POST - Servlet installation problem

2001-06-27 Thread Jann VanOver

Just look at the urlworkermap.properties and you'll figure out what you need
to make it work.

-Original Message-
From: Clifford P. Helsel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 7:47 PM
To: [EMAIL PROTECTED]
Subject: RE: FIRST POST - Servlet installation problem


Hi Jann,

I haven't modified anything in the jakarta-tomcat-3.2.2\conf directory.
I have a feeling that I should but I couldn't find anything in the docs
that explained what to put there... Am I supposed to modify anything?
Any pointer to better docs?

Thanks,
Cliff.


-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 27, 2001 10:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: FIRST POST - Servlet installation problem

Have you added a mapping in Tomcat's urlworkermap.properties file ?

-Original Message-
From: Clifford P. Helsel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 27, 2001 7:40 PM
To: [EMAIL PROTECTED]
Subject: RE: FIRST POST - Servlet installation problem
Importance: High


This does not solve one problem, that of redirection, or rather
accessing the Servlet through IIS.  By going to port 8080 I am still
using the Tomcat engine to serve the page:

For example, in my configuration, this URL works

http://localhost:8080/myservlet/servlet/myservlet

However, this does not (and I would expect it to)

http://localhost/myservlet/servlet/myservlet

Thanks,
Cliff.

-Original Message-
From: Peter Davison [mailto:[EMAIL PROTECTED]] 
Sent: Wednesday, June 27, 2001 10:32 PM
To: [EMAIL PROTECTED]
Subject: Re: FIRST POST - Servlet installation problem

Hi Clifford.

Note the lack of :8080 in the URL you mention.

Try this: 

http://localhost:8080/servlet/myservlet

and see if that works any better.

P.

CH I'm using the url: http://localhost/servlet/myservlet
CH 



RE: Error: 500

2001-06-26 Thread Jann VanOver

It looks like you were doing step 4 with the JSP from step 5.  This code
won't work until after you've created and compiled the tag library, which
you haven't done yet if you're working in order.  Try it with the JSP code
from Listing 3 and you shouldn't get this error.

-Original Message-
From: alex chang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 6:25 AM
To: [EMAIL PROTECTED]
Subject: Error: 500


I've been following this little tutorial:
http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1

I'm up to the part of Adding Tag Libraries,
on page 4. So far, everything except this part
has worked. I get an HTTP 500 internal server
error. Here are the first four lines of that:

Error: 500
Location: /onjava/welcome.jsp
Internal Servlet Error:

org.apache.jasper.compiler.CompileException:
C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to load
class com.onjava.HelloTag

I was wondering if anyone who has tried this
example also can help me out. Thanks..

-alex

__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



JDBCRealm doesn't allow a blank password -- is this a bug?

2001-06-26 Thread Jann VanOver

I'm using Tomcat 3.2.2

I was just beginning to try out JDBCRealm and was continuing to get an
error.  The Tomcat.log said:

2001-06-26 11:27:05 - ContextManager: JDBCRealm: SQLException:
java.sql.SQLException: Login failed for user '(null)'. Reason: Not
associated with a trusted SQL Server connection. Severity 14, State 1,
Procedure 'null null', Line 0 Unable to connect, please check your server's
version and availability.

I WAS including the proper credentials in my web.xml, so I delved into the
Tomcat source code to find what was going wrong.  (this was my FIRST Tomcat
delving experience!)  In JDBCRealm, method checkConnection() I found this:

   if ((connectionName == null || connectionName.equals()) ||
  (connectionPassword == null || connectionPassword.equals())) {
   dbConnection = DriverManager.getConnection(connectionURL);
} else {
dbConnection = DriverManager.getConnection(connectionURL,
connectionName,
connectionPassword);
}

I'm practicing on an internal dev server that is poorly protected and has no
password for the username I was using, so my server.xml had:
connectionName=aDevUser   connectionPassword=

Obviously, this is what is causing the problem, given the code snippet
above.

I created a new username with a real password, entered those in my
server.xml, and the problem went away.

Now I know it's not a good practice to have a password that is an empty
string, but is it an error?  Should this be logged as a Tomcat bug?  I'm
still fairly new to Tomcat and tried searching for this in Bugzilla and
didn't find anything and wasn't sure where to go from there.  Would someone
with more experience with the process like to enter this?



RE: open MS document in IE 4.01

2001-06-26 Thread Jann VanOver

What does this have to do with Tomcat?

-Original Message-
From: Jack Li [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 8:38 AM
To: '[EMAIL PROTECTED]'
Subject: open MS document in IE 4.01


Does anyone know if IE 4.01 can open Microsoft word document or Excel spread
sheet?

Thanks
Jack Li



RE: altering include files

2001-06-26 Thread Jann VanOver

No, not really.  You CAN delete all the tomcat\work files for that context,
or touch the file that does the include.  Either of these things will
force the page to be recompiled.

I've been trying to replace my includes with:
  %
request.getRequestDispatcher(nextPieceOfWork.jsp).forward(request,response
); %
and with tag libraries in order to avoid the problem you are having.  In the
long run, these techniques make for better (more reusable) code as well --
imho.

-Original Message-
From: teh j [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 10:07 PM
To: [EMAIL PROTECTED]
Subject: altering include files


Hi there

I am currently using Tomcat v3.2.1 and am using
include files in my .jsp files a fair bit

Im finding though that if I make a change to my
include file, it does not appear in the JSP that is
using the include file UNLESS I delete the include
file, reload the hosting JSP, put back the include
file and then reload the page again!

Is there a way around this? It is very frustrating and
takes away quite a bit of the idea of the include
file!

thanks
Jason


_
http://messenger.yahoo.com.au - Yahoo! Messenger
- Voice chat, mail alerts, stock quotes and favourite news and lots more!



RE: Tomcat 4 and apache. How to make them work together?

2001-06-26 Thread Jann VanOver

Did you check the tomcat user guide?

-Original Message-
From: Alejandro Arredondo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 7:31 AM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 and apache. How to make them work together?


I have installed Tomcat 4 configured it and it works
fine. Now I want it to work with apache together. 
Where can I find info on how to configure them?

Thanks in advance,
Alejandro Arredondo

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com



RE: Error: 500

2001-06-26 Thread Jann VanOver

You said:

  My HelloTag.java is in the main onjava/ directory; 
  I compiled it with: javac -d WEB-INF\lib HelloTag.java

next time, try javac -d WEB-INF\classes HelloTag.java !!!

  It created the com/onjava/ directories. I thought
  nothing of it since HelloTag is in the package
  com.onjava. Should I move HelloTag.class out of 
  the /WEB-INF/lib/com/onjava directory and right
  into the /WEB-INF/lib directory?

Almost right!  If you have .class files, they must go  in
WEB-INF/classes/com/onjava
If your class files are combined into a .jar file, they may be put into
WEB-INF/lib

You are very close, alex!

-Original Message-
From: alex chang [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 1:09 PM
To: [EMAIL PROTECTED]
Subject: RE: Error: 500


Hi,

I made sure to double check everything before
I wrote here (I also just signed up and wrote 
to the taglibs-user group). 

My directory structure is like this:

onjava/
 +- images/
 +- WEB-INF/
+- classes/
+- com/
+- onjava/
+- lib/
+- com/
+- onjava/

My HelloTag.java is in the main onjava/ directory; 
I compiled it with: javac -d WEB-INF\lib HelloTag.java

It created the com/onjava/ directories. I thought
nothing of it since HelloTag is in the package
com.onjava. Should I move HelloTag.class out of 
the /WEB-INF/lib/com/onjava directory and right
into the /WEB-INF/lib directory?

This was the only part I wasn't positive on since
the instructions said to put it in the lib directory.

Thanks for your help and patience,
-alex

--- Jann VanOver [EMAIL PROTECTED] wrote:
 Yes, that makes perfect sense.  The error message you got was Unable to
 load class com.onjava.HelloTag so of course you would only see the
 error
 when you try to use that tag.
 
 Did you follow all the instructions at the end of step 4?  You have to
 create and compile HelloTag.java and then put the class file in the
 right
 place, then describe the tag in the .tld file.  If any of these things
 aren't done right, it won't be able to find the class when you need it.
 Re-check your steps.
 
 -Original Message-
 From: alex chang [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 26, 2001 12:38 PM
 To: [EMAIL PROTECTED]
 Subject: RE: Error: 500
 
 
 Hi Jann, thanks for replying.
 It does work with the jsp from step 4 as you've 
 said, where it simply prints the word Welcome.
 
 But it still doesn't work with the modified jsp
 page, where I have the taglib directive up top
 and replace the word Welcome with the 
 onjava:hello /.
 
 I've done some more checks and it seems I only 
 get the error when I have the onjava:hello /
 tag. That is, if I simply have the taglib directive
 and no onjava:hello / tag, it works. But if I 
 put that onjava:hello / tag back in, I get the
 error.
 
 Any more ideas?
 Thanks,
 -alex
 
 --- Jann VanOver [EMAIL PROTECTED] wrote:
  It looks like you were doing step 4 with the JSP from step 5.  This
 code
  won't work until after you've created and compiled the tag library,
  which
  you haven't done yet if you're working in order.  Try it with the JSP
  code
  from Listing 3 and you shouldn't get this error.
  
  -Original Message-
  From: alex chang [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 26, 2001 6:25 AM
  To: [EMAIL PROTECTED]
  Subject: Error: 500
  
  
  I've been following this little tutorial:
  http://www.onjava.com/pub/a/onjava/2001/04/19/tomcat.html?page=1
  
  I'm up to the part of Adding Tag Libraries,
  on page 4. So far, everything except this part
  has worked. I get an HTTP 500 internal server
  error. Here are the first four lines of that:
  
  Error: 500
  Location: /onjava/welcome.jsp
  Internal Servlet Error:
  
  org.apache.jasper.compiler.CompileException:
  C:\jakarta-tomcat-3.3-m3\webapps\onjava\welcome.jsp(11,10) Unable to
  load
  class com.onjava.HelloTag
  
  I was wondering if anyone who has tried this
  example also can help me out. Thanks..
  
  -alex


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: Tomcat 3.2.2 and win2000 - problem

2001-06-26 Thread Jann VanOver



Please 
go back and review the Tomcat installation instructions (http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html) 


PS. if 
you are on Win2K, you should use 
ControlPanel=System=Advanced=EnvironmentVariables to set your 
path. You should not be editing Autoexec.bat

  -Original Message-From: Design 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, June 26, 2001 2:33 
  AMTo: [EMAIL PROTECTED]Subject: Tomcat 
  3.2.2 and win2000 - problem
  Dear Sirs!I try to move Apache and 
  Tomcat3.2.2 from Linux to win2000 platform.On Linux platform it 
  works.An error appear when I run tomcat.bat on Win2000:"can't find 
  class org/apache/tomcat/startup/Tomcat"File Tomcat.java is 
  ind:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\startupthe bath 
  file tomcat.bat is ind:\jakarta-tomcat-3.2.2\binThe 
  autoexec.bat:-SETPATH=c:\;d:\;d:\jakarta-tomcat-3.2.2;d:\jakarta-tomcat-3.2.2\src\org\apache\tomcat\startupSET 
  PATH=$PATH;d:\JDK;D:\JDK\BIN;d:\apacheset 
  TOMCAT_HOME=d:\jakarta-tomcat-3.2.2set 
  JAVA_HOME=D:\JDK--I can't understad where and what I 
  missed?Thank 
you,Maxim.


RE: Logging System.out/err in Tomcat

2001-06-26 Thread Jann VanOver

Look in server.xml   Read the comments there.

In Tomcat 3.2.2 (and probably in 3.2.1 also) the following comment appears
in server.xml:
!-- if you don't want messages on screen, add the attribute
path=logs/tomcat.log 
 to the Logger element below
--

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 24, 2001 11:15 PM
To: [EMAIL PROTECTED]
Subject: Logging System.out/err in Tomcat


Hi out there!

I've got a serious problem of logging in Tomcat 3.2.1.
When using the build-in Webserver for testing, the outputs to System.out/err
are only logged to the screen.

Is there any way to log this output to a file without some hacks like
writing a special servlet that resets the System.out/err to some own stream?


By the way: Is there anywhere a full description of the server.xml file. The
only i found is the 'Tomcat's Configuration Files' in the 'Tomcat - A
Minimalistic User's Guide' page developed with the tomcat documentation. But
neither this page or the descriptions in the file itself are really
complete.



Thanks

Thorsten



RE: una pregunta

2001-06-26 Thread Jann VanOver

NO NO!  DON'T use spaces in Java Home -- it could cause problems down the
road

if you must, use 

set JAVA_HOME=d:\progra~1\jdk1.3.0_02

-Original Message-
From: Krishna Muthyala [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: una pregunta


perdon mi si mi espanol esta mal hace 4 anos wue no
hablaba espanol(no soy un espanol o latino)usted tiene
que poner classpath para java en su autoexec.bat de
systema, y tam bien en tomcat.bat
pon un linea asi

set JAVA_HOME=d:\program files\jdk1.3.0_02 or
cualquier

buena suerte

Kris
--- alvaro pinto [EMAIL PROTECTED] wrote:
 Buenas tardes,   quisiera saber como puedo usar el
 jakarta-tomcat para windows98 , porque cuando lo
 ejecuto me sale un mensaje en em ms-dos :
 
 You must set java-home to point at your java
 development kit installations
 
 ese es el mensaje que sale , es por eso que
 quiesiera
 que me ayuden con ese problema.
 
 gracias
 

_
 Do You Yahoo!?
 Obtenga su dirección de correo-e gratis @yahoo.com
 en http://correo.espanol.yahoo.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



Spaces in JAVA_HOME (was RE: una pregunta)

2001-06-26 Thread Jann VanOver

My problems with spaces in JAVA_HOME have nothing to do with IE or RFC
conventions.

I just know that I have had nasty install/config problems when environment
variables related to tomcat have spaces in them, so it is best practice to
just avoid the potential problems.

I install tomcat as D:\tomcat just so I don't have to worry about that space
in program files

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:18 PM
To: [EMAIL PROTECTED]
Subject: RE: una pregunta


Jann;

That reminds me, would you just happen to know of an RFC that
describes the proper convention for file names and paths? Or
some definitive proof that IE breaks the standard with regard
to file names?

At 03:14 PM 6/26/2001, you wrote:
NO NO!  DON'T use spaces in Java Home -- it could cause problems down the
road

if you must, use

set JAVA_HOME=d:\progra~1\jdk1.3.0_02

-Original Message-
From: Krishna Muthyala [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 26, 2001 3:02 PM
To: [EMAIL PROTECTED]
Subject: Re: una pregunta


perdon mi si mi espanol esta mal hace 4 anos wue no
hablaba espanol(no soy un espanol o latino)usted tiene
que poner classpath para java en su autoexec.bat de
systema, y tam bien en tomcat.bat
pon un linea asi

set JAVA_HOME=d:\program files\jdk1.3.0_02 or
cualquier

buena suerte

Kris
--- alvaro pinto [EMAIL PROTECTED] wrote:
  Buenas tardes,   quisiera saber como puedo usar el
  jakarta-tomcat para windows98 , porque cuando lo
  ejecuto me sale un mensaje en em ms-dos :
 
  You must set java-home to point at your java
  development kit installations
 
  ese es el mensaje que sale , es por eso que
  quiesiera
  que me ayuden con ese problema.
 
  gracias
 
 
_
  Do You Yahoo!?
  Obtenga su dirección de correo-e gratis @yahoo.com
  en http://correo.espanol.yahoo.com


__
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/



RE: tomcat 4.0b1

2001-06-26 Thread Jann VanOver

Did you try http://jakarta.apache.org/tomcat ??

You should ALWAYS check the jakarta site before asking a question like this.
And don't post in HTML.

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html


-Original Message-
From: Sumit Ranjan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, June 24, 2001 9:53 PM
To: [EMAIL PROTECTED]
Subject: tomcat 4.0b1


hi there !
   does anybody know of any documentation on tomcat 4.0b1especially
installation on NT with apache. ?
 please help

Sumit Ranjan
Daimler chrysler Research Center India
2861722 Ext:219



How to Unsubscribe (was RE: Unsubscribe does not work)

2001-06-25 Thread Jann VanOver

This was originally posted by Thomas Vollmer -- thank you Thomas
-
it is a little tricky to unsubscribe from tomcat-user
when you have changed your e-mail address and need to
use this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients like MS-Outlook have
trouble with the equal-sign = in the recipients address.
Here's the e-mail header you sent. If you look closely at
the To: line, you will see what has happened:

 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]

Your e-mail client has split the recipients address at the =
into the display name (tomcat-user-unsubscribe-lmayer=) and
the e-mail address ([EMAIL PROTECTED]).

Somehow you need to make sure that your e-mail client
really sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has worked for me:
1. type the correct unsubscribe address into the To: field.
2. click outside of the To: field and watch Outlook convert
the address you typed into display name and e-mail address.
3. double click on the display name in the To: field, note
the wrong e-mail address in there and adjust the e-mail address
to the correct one.
4. done.

Thomas
-

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 8:44 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Unsubscribe does not work



Could someone please lket me know how can 
I unsubscribe from list [EMAIL PROTECTED]?  

The unsubscribe function as posted in the website 
does not work.



From: Vollmer, Thomas - CannonSA [[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 10:12 AM
To: '[EMAIL PROTECTED]'
Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER LIST *


Laurence and others,

it is a little tricky to unsubscribe from tomcat-user
when you have changed your e-mail address and need to
use this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients like MS-Outlook have
trouble with the equal-sign = in the recipients address.
Here's the e-mail header you sent. If you look closely at
the To: line, you will see what has happened:

 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]

Your e-mail client has split the recipients address at the =
into the display name (tomcat-user-unsubscribe-lmayer=) and
the e-mail address ([EMAIL PROTECTED]).

Somehow you need to make sure that your e-mail client
really sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has worked for me:
1. type the correct unsubscribe address into the To: field.
2. click outside of the To: field and watch Outlook convert
the address you typed into display name and e-mail address.
3. double click on the display name in the To: field, note
the wrong e-mail address in there and adjust the e-mail address
to the correct one.
4. done.

Hope that helps.

Thomas






 -Original Message-
 From: Laurence Mayer [mailto:[EMAIL PROTECTED]]
 Sent: Monday, May 21, 2001 9:24 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: * URGENT: UNSUBSCRIBING FROM THE TOMCAT-USER 
 LIST *
 
 
 
 I have tried what you suggested, here is the error :
 
 Hi. This is the qmail-send program at apache.org.
 I'm afraid I wasn't able to deliver your message to the 
 following addresses.
 This is a permanent error; I've given up. Sorry it didn't work out.
 
 [EMAIL PROTECTED]:
 Sorry, no mailbox here by that name. (#5.1.1)
 
 --- Below this line is a copy of the message.
 
 Return-Path: [EMAIL PROTECTED]
 Received: (qmail 93559 invoked from network); 21 May 2001 
 14:43:22 -
 Received: from unknown (HELO jlm-exchange.yazam.com) (212.25.111.209)
   by h31.sny.collab.net with SMTP; 21 May 2001 14:43:22 -
 Received: by JLM-EXCHANGE with Internet Mail Service (5.5.2650.21)
   id K0LXY4KC; Mon, 21 May 2001 17:41:25 +0200
 Message-ID: A581F7261949D5118D7600062938CD4AC1D9@JLM-EXCHANGE
 From: Laurence Mayer [EMAIL PROTECTED]
 To: 'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]
 Subject: 
 Date: Mon, 21 May 2001 17:41:21 +0200
 MIME-Version: 1.0
 X-Mailer: Internet Mail Service (5.5.2650.21)
 Content-Type: text/plain;
   charset=iso-8859-1
 X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N

 
If this email is not intended for you, or you are not responsible for the
delivery of this message to the addressee, please note that this message may
contain ITT Privileged/Proprietary Information.  In such a case, you may not
copy or deliver this message to anyone.  You should destroy this message and
kindly notify the sender by reply email.  Information contained in this
message that does not relate to the business of ITT is neither endorsed by
nor attributable to ITT. 
 



RE: Help! Novice to Tomcat

2001-06-22 Thread Jann VanOver

Take the %path% off of your JAVA_HOME

Then, if you're still getting this meesage, you must be on win95/98.  Check
out this newsgroup archives for running tomcat on win98 for the answer.

-Original Message-
From: Ganga [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 22, 2001 2:23 PM
To: [EMAIL PROTECTED]
Subject: Help! Novice to Tomcat


Hello all

I am unable to startup Tomcat3.2.2. Any help to resolve my problem is much
appreciated.

I have downloaded jakarta-tomcat-3.2.2zip and I have extracted the file
under c:\tomcat directory.

I have also added the following in tomcat.bat

set TOMCAT_HOME=c:\tomct
set JAVA_HOME=c:\jdk1.3.0_02;%path%

My PC is Windows ME and following is error message:

C:\tomcat\binstartup
Out of environment space
Including all jars in c:\tomcat\lib in your CLASSPATH.
Out of environment space

Using CLASSPATH: c:\tomcat\classes

Out of environment space
Starting Tomcat in new window
Cannot find file
'c:\jdk1.3.0_02;C:\WINDOWS;C:\WINDOWS\COMMAND;C:\WINDOWS\SMITH
\PPLUSO~1\\bin\java'
(or one of its components). Check to ensure the path and filename
are correct and that all required libraries are available.

Many thanks for your time and assistance.

Regards







RE: Automaticaly update the servlets

2001-06-15 Thread Jann VanOver

Tomcat contexts use a different class loader.  Put the driver jar file into
tomcat 
webapps\contextname\web-inf\lib directory and the classes will be found.

-Original Message-
From: Pablo Morillas [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: Re: Automaticaly update the servlets


Well. When I compile the servlet I haven't got problems with the java.sql
package. I have problems when I try to run this into Tomcat. I am using
Tomcat as a service in a Win2K box. I suspect that my problem is that the
JVM that starts when the service start is using a wrong CLASSPATH.

Could it be true?

Thanks.

==
Pablo Morillas
http://www.sortes.com
[EMAIL PROTECTED]
==
- Original Message -
From: Luba Powell [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 11:29 PM
Subject: Re: Automaticaly update the servlets


 did you:
 import java.sql.*;

 - Original Message -
 From: Pablo Morillas [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 12, 2001 5:23 PM
 Subject: Re: Automaticaly update the servlets


  Ok, but my problem is that when I put in a servlet
  'Class.forName(sun.jdbc.odbc.JdbcOdbcDriver)' I get the message
  NoClassDefFoundError.
 
  ==
  Pablo Morillas
  http://www.sortes.com
  [EMAIL PROTECTED]
  ==
  - Original Message -
  From: Luba Powell [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Tuesday, June 12, 2001 11:21 PM
  Subject: Re: Automaticaly update the servlets
 
 
   This jar is in my classpath yet becouse if I type in the DOS Console
 java
   sun.jdbc.odbc.JdbcOdbcDriver I get the message: NoSuchMethodError:
 main
   instead of NoClassDefFoundError?
  
   This is correct.  This class does not have main method.
  
   - Original Message -
   From: Pablo Morillas [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Sent: Tuesday, June 12, 2001 5:12 PM
   Subject: Re: Automaticaly update the servlets
  
  
Yes. Finally I have get the proper result. Mines servlets are
   automatically
updated. Thanks to all.
   
But, in other side, when I've tried to use the jdbc.odbc driver I
have
  get
the message NoClassDefFoundError. I've resolved it setting another
 line
  in
the wrapper.properties file:
wrapper.class_path=$(wrapper.java_home)\jre\lib\rt.jar
   
This jar is in my classpath yet becouse if I type in the DOS Console
  java
sun.jdbc.odbc.JdbcOdbcDriver I get the message: NoSuchMethodError:
  main
instead of NoClassDefFoundError.
   
My question is: what classpath use jk_nt_service if no definition is
 set
   for
it in the wrapper.properties file?
   
Thanks to all that are bearing me. ;-)
   
==
Pablo Morillas
http://www.sortes.com
[EMAIL PROTECTED]
==
- Original Message -
From: Milt Epstein [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, June 08, 2001 6:41 PM
Subject: Re: Automaticaly update the servlets
   
   
 On Fri, 8 Jun 2001, Pablo Morillas wrote:

  Thanks. I beleive that I'm seen the light. My problem is that my
  system class loader (in my server) is loading my classes instead
  Tomcat, ins't it?

 Well, I won't guarantee it 100%, but it very well could be the
  problem.

 Could anyone give me an address where I can
 find
  information about the way that Tomcat class loader runs?

 I don't have a specific source, but I believe there are
 tutorials/articles about on the web -- do a search at
 www.google.com.
 I'm pretty sure there was a JDC Tech Tips about classloaders
 (they're
 all up on the JDC site), and other sites (e.g. javaworld) may have
 stuff on it as well.  You can also check the tomcat
 documentation/source.


  How can I force to Tomcat Class loader to take my servlets?

 Simply change your classpath so that the relevant directories
 (.../WEB-INF/classes, and probably .../WEB-INF/lib as well) are
not
 included.  Do that, try again, and let us know whether it worked.


  - Original Message -
  From: Randy Layman [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Friday, June 08, 2001 4:25 PM
  Subject: RE: Automaticaly update the servlets
 
 
  
   The problem is that the System class loader (the one that
loads
  your
   CLASSPATH environment variable) is keeping a cache around of
the
class.
   This is why Milt (correctly) told you to remove the
  WEB-INF/classes
from
   your classpath if you want the auto-reloading to work as it is
supposed
  to*.
   If the System class loader loads your class then its
impossible
  for
Tomcat
   to load it, and if Tomcat doesn't load it in the 

RE: Config: zip-files

2001-06-14 Thread Jann VanOver

It should work if you rename the file from blah.zip to blah.jar

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 14, 2001 5:16 AM
To: [EMAIL PROTECTED]
Subject: Re: Config: zip-files


That didn't help. Tomcat still can't find the driver. I have tried to put
the zip-files in the TOMCAT_HOME/lib to but that didn't work either. Aren't
there anywhere in the config-files where I can add the zip-library to the
classpath?

Thanks in advance
Roland

- Original Message - 
From: ADAM FOWLER [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, June 14, 2001 2:06 PM
Subject: Re: Config: zip-files


 JAVA_HOME/jre/lib
 
 Adam.
 
 At 13:51 14/06/2001 +0200, you wrote:
 Hi!
 I got a zip-library containing jdbc drivers. Where do I put this so it is
 accesseble to the whole server?
 
 Thanks in advance
 Roland Carlsson
 
 
 
 
 Adam Fowler
 Second year Computer Science undergraduate
 University of Wales, Aberystwyth
 e-mail: [EMAIL PROTECTED]
 web: http://gucciboy.dyndns.org/aff9
 Every new beginning comes from some 
  other beginning's end
 
 



RE: Java Question

2001-06-12 Thread Jann VanOver

Why are we continuing this thread when it has NOT specific to Tomcat?
Please, folks, find a Java list.  There are a number of them available from
sun and from Topica.com

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 12:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Java Question


 public static String getYear(String str){
 synchronized(str){
   newStr = str.substring(0,4);
   return newStr;
 }
   }

While your use of synchronize is correct, _this_ synchronization is not
necessary at all.  java.lang.String is unmodifiable: there's nothing you can
do with it that might conflict with what another thread will do with it.
So, you never have to worry about conflicts, and you never need to
synchronize.

The answer is,

1) You need to synchronize when two threads running code might modify the
same data at the same time.

2) You need to synchronize on the exact same object around all code which
modifies a given bit of data.

3) Never synchronize on java.lang.Class objects.

The only issue about static/non-static in there is that synchronizing a
static method effectively synchronizes on the object's Class, which is a
no-no.

(You might want to read up on concurrency--see Doug Lea's Concurrent
Programming, or his web site, http://g.oswego.edu/ .)
-- Bill K. 


-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: RE: Java Question


So would changing something simple from...

public static String getYear(String str){
  newStr = str.substring(0,4);
  return newStr;
}

to...

public static String getYear(String str){
synchronized(str){
  newStr = str.substring(0,4);
  return newStr;
}
  }

be correct if I want to avoid having incorrect results returned when
accessed by multiple threads?  It compiles like that, but is that all that
is needed to synchronize something?

Brandon

-Original Message-
From: Luba Powell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 12, 2001 1:52 PM
To: [EMAIL PROTECTED]
Subject: Re: Java Question


Actually the outcome is predictable:
monitorenter will obtain objectref on this (aload_0)
* if no other thread has locked the object
* if the object is currently locked by another thread (monitorenter
instruction)
* if the current thread already owns a lock - the lock is released when the
counter
returns to 0


.method static doSort([I)V
aload_0
monitorenter
; sensitive code
monitorexit
...
return
end method

- Original Message -
From: Brandon Cruz [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 2:18 PM
Subject: Java Question

- Original Message -
From: Pae Choi [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 12, 2001 2:41 PM
Subject: Re: Java Question


 When you access the 'synchronized' static method, it locks its class.
 so this will ensure the thread-safe access. Otherwise, the result is
 unknown.


 Pae


  I have looked all over and can't find the answer to this simple
question.
  If you use a static method, do you have to synchronize it in case other
  people may access it at the same time.  For example, I have a static
Utility
  class to do date calculations.  The method Utility.getMonth(String date)
  takes in a full date string, parses it, and returns just the month
value.
  If 5 different people all using the website attempt to use
  Utility.getMonth(String date) at the same time for different dates, will
it
  return the right results?  If not, do I have to synchronize it or
something
  in case multiple users attempt to access it?
 
  I know this is not really related to tomcat, but since I am using
tomcat,
  and everyone else using tomcat is also a java developer, I figured this
is
  the best place I can ask.
 
  Thanks for any help!!!
 
  Brandon
 




RE: Problem starting TOMCAT on Win 2000

2001-06-11 Thread Jann VanOver

Your TOMCAT_HOME path must be a FULL path like D:\foo\jakarta-tomcat-3.2.2

-Original Message-
From: Priya Gupta [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 11, 2001 12:01 PM
To: [EMAIL PROTECTED]
Subject: Problem starting TOMCAT on Win 2000


Hello
   I dowloaded the Tomcat 3.2.2 and unzipped all the
files in a folder: foo\jakarta-tomcat-3.2.2
   I set the TOMCAT_HOME variable set
TOMCAT_HOME=foo\jakarta-tomcat-3.2.2
   and JAVA_HOME=C:\jdk1.2.2
   But still when I try startiing Tomcat from command
it says The system cannot find the Path specified
   Also I have copied the tools.jar file in the Path.
   It would be really nice if someone can help me out
of this!
   Thank you
   Priya   

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



RE: server side includes, tomcat and jsp files

2001-06-07 Thread Jann VanOver

Ross, the include format he showed was the common server side include format
that can be used in HTML with many web servers (including both apache and
IIS)

-Original Message-
From: Ross Dyson [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 5:58 PM
To: [EMAIL PROTECTED]
Subject: RE: server side includes, tomcat and jsp files


Where did you get this syntax from?
!-- #include virtual= --

jsp has 2 sorts of includes, compile time and run time.
from the jsp 1.1 spec document:
TABLE 2-1 Summary of Include Mechanisms in JSP 1.1
Syntax What Phase Spec Object Description Section
%@ include file=... % directive translation-time virtual static Content is
parsed by
JSP container.
2.7.6
jsp:include page= / action request-time virtual static
and
dynamic
Content is not parsed; it
is included in place.
2.13.4

Looks bad with no formatting, but you can figure it out :-)
Ross.

-Original Message-
From: Mick Lysejko [mailto:[EMAIL PROTECTED]]
Sent: Thursday, 7 June 2001 8:48 AM
To: [EMAIL PROTECTED]
Subject: server side includes, tomcat and jsp files


Hi folks,

I have installed apache 1.3.17 and tomcat 1.3.3 and it all works fine.
However, I wish to do server side includes in my jsp files and this does not
work.  eg. !-- #include virtual= --

I have tried the apache directive:
adhandler server-parse .jsp

in httpd.conf. Here it stops my jsp pages getting parsed and I got server
errors (400 I think).

I then tried adding it to apache-tomcat.conf
-- here it just gets over writen

Then I tried to put it in tomcat.conf
-- here it seems to be totaly ignored.

Does anyone have any Ideas. any help welcome  :)

Thank you

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




RE: INSTALLATION PROBLEM FOR MORE THAN A MONTH

2001-06-07 Thread Jann VanOver

If you have SERVLET.JAR in your classpath, but the file is really
servlet.jar this COULD BE your problem.  Try putting them in the same
case.  Tomcat/Java are VERY VERY VERY case sensitive.

-Original Message-
From: subhi adam [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 07, 2001 2:59 PM
To: [EMAIL PROTECTED]
Subject: INSTALLATION PROBLEM FOR MORE THAN A MONTH


THIS MY AUTOEXEC.BAT FILE

PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BIN
SET 
CLASSPATH=.;C:\JDK1.3\JRE\LIB\RT.JAR;C:\JDK1.3\LIB\TOOLS.JAR;C:\TOMCAT\LIB\S
ERVLET.JAR
SET TOMCAT_HOME=C:\TOMCAT;
SET JAVA_HOME=C:\JDK1.3;
SET ANT_HOME=C:\JAKARTA-ANT;

AND GET THE FOLLOWING WHEN I START TOMCAT

C:\tomcat\binTOMCAT START
Unable to locate servlet.jar, check the value of TOMCAT_HOME.


WHEN I CHECK  THE SETTING I GET FOLLOWING
C:\tomcat\binSET
TMP=c:\windows\TEMP
TEMP=C:\windows\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
BLASTER=A220 I5 D1
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND;C:\TOMCAT\BIN;C:\JDK1.3\BI
JAVA_HOME=C:\JDK1.3;
ANT_HOME=C:\JAKARTA-ANT;
CMDLINE=EDIT TOMCAT.BAT
TOMCAT_HOME=C:\TOMCAT;

DO I NEED TO SET SOMETHING ELSE . WIN98 /TOMCAT3.2.2

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



RE: Should we do moderation on this mailinglist??

2001-06-06 Thread Jann VanOver

Umm, wouldn't dividing the groups just give us MORE off topic problems?

If someone WANTS the job of moderating the hundreds of post in this list
they can, but I am not going to volunteer.

I think some kind of canned footer that is added to mail through the list
can be very helpful.  It should have links to FAQ, info on unsubscribing,
and list archives.  This sounds much less labor intensive than moderating.

-Original Message-
From: Hemant Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??


HI Jeff:
I agree with your idea
When after downloading most of the files are asking
how to unsubscribe, duplicate mails, lab, lab
it really pains
How abt dividing this group into several parts,
Like one for tomcat configuration
- Servlet prblems, etc


--- Jeff Waugh [EMAIL PROTECTED] wrote:
 Unfortunately, we are dealing with 'people' here.
 It is a shame that there is not a 'filter' to
 eliminate
 'stupid' people, but as hard as I've tried, I just
 can't
 program it. If someone else can, please make it an
 Opensource project
 
 But, then again, we would probably get 'stupid'
 people
 contributing, so those filters would be invalidated.
 
 Man, it looks like we're screwed.
 
 As an example, *I* use a bicycle as my primary
 means of transportation, and have had similar
 ideas about 'people' who drive cars.
 I decided *I* was screwed quite some time ago.
 
 Delete is a wonderful thing!!!
 
 (If only it was as effective on motorists)
 
 (Hmmm, probably 98% of the people reading this
 are motorists...)
 
 (Sorry, but if the shoe (wheel) fits...)
 
 -Jeff
 
 
 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: jakarta-tomcat-user
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 4:18 PM
 Subject: Should we do moderation on this
 mailinglist??
 
 
  Hi to everybody who is actually trying to get some
 information on this
  mailing list, or to help others,
 
 
  The 2 weeks I've been a member here, just trying
 to get new ideas and help
  others out with tomcat issues, I would say, were
 pretty horrible. about
 50%
  of the mail is actually rubbish (which means
 double mails, requests for
  unsuscribing and other SPAM. This can have a
 couple of couses :
  irritated mode on
  - Most people cannot read
  - Most people cannot think logically
  - Most people should not be able to subscribe to
 this list
  - Most people shouldn't wast other people's time,
 so they still want to
 help
  people.
  irritated mode off
  solution mode on
  - members with no active e-mail address should
 be deleted right away
 (who
  has the rights to do that?), so people don't
 resend messages again. (I
  mailed the owner of the mailinglist, but haven't
 had a reply yet..)
  - Don't allow misuse of the mailinglist anymore :
 block those senders
  immidiately from the mailinglist (that's what they
 want it seems) == are
  there any facilities for that.
  - Don't reply to misuse of the mailinglist
  - Off topic messages can be nicely redirected to
 the appropiate area.
  - Let everyone state clearly what they are using
 (rh 7.1, windows 2000,
  which version of tomcat, etc). A lot of replies
 are pretty useless if they
  have another version of the product. Also the
 probability that the correct
  people (the people actually using tomcat on a
 rh7.1 box, will reply..)
  - Send a rules e-mail to subscribers.
  - Send stuff that's not interesting (like someone
 suggested in the list
  today), directly to the sender of the mail. (If I
 have made a commercial
  solution for a problem or question, I mail to
 peoples private e-mail
  address, as an example..)
 
  The common goal should be :
 
  Users helping users!!
 
  Just trying to get some improvement here.. I think
 a lot of people are
  currently giving up on this list and that's not
 good for tomcat (at least
  that's what I think)
 
  Mvgr,
  Martin van den Bemt
 
 
 
 


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



RE: file not gopund error..

2001-06-06 Thread Jann VanOver

Vinod, tell us more about your setup.

you have a tomcat directory, right? (maybe named jakarta-tomcat or
something like that).
And in this directory is a subdirectory called WebApps right?
and THAT is where you put your purejsp directory, right?

Now, HOW are you trying to access the page?  Unless you've done special
setup, you use the default tomcat port number of 8080 so if your server is
named vinod, the url would look something like this:
  http://vinod:8080/purejsp/your.html (or your.jsp)

If you use beans, the CLASS files from the beans goes into the
web-inf/classes directory that you describe.  If the beans are in a package,
the package path must be sub-directories in the web-inf/classes directory.
For example, if your package is named com.vinod, your beans go into
web-inf/classes/com/vinod/blah.class

One more thing.  Tomcat actually doesn't NEED the context to be added into
web.xml, but if you DO add it there, you MUST make sure that the case
matches.  If your directory is named Webapps and you put webapps into
web.xml, it will break.  

Good luck!

-Original Message-
From: vinod watni [mailto:[EMAIL PROTECTED]]
Sent: 06 June 2001 07:54
To: [EMAIL PROTECTED]
Subject: file not gopund error..





  hi friends ,

i tried to create the drectory structure as bellow

purejsp 

   purejsp/web-inf

  : purejsp/web-inf/classes  in the webpages
directory.

  i did put some html and jsp pages in purejsp
directory and added purejsp in context path in
server.xml file.
  this i did as given in purejsp book , but when i try
to access the file from brouser i get error 404.  I
restarted the and tried but dosent work ?/

  where should  i  put my html , jsp and classes ,
beans intomact ???

  how can i create a web application without making
war file ???


 regards
 vinod

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



RE: Should we do moderation on this mailinglist??

2001-06-06 Thread Jann VanOver

FYI: I just sent a message to [EMAIL PROTECTED] to
suggest that such a footer be added.  We'll see what happens.

-Original Message-
From: Swart, James (Jim) ** CTR ** [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 11:50 AM
To: '[EMAIL PROTECTED]'
Subject: RE: Should we do moderation on this mailinglist??


wowsers.  That's a good idea.

-Original Message-
From: Jann VanOver [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:18 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Should we do moderation on this mailinglist??


Umm, wouldn't dividing the groups just give us MORE off topic problems?

If someone WANTS the job of moderating the hundreds of post in this list
they can, but I am not going to volunteer.

I think some kind of canned footer that is added to mail through the list
can be very helpful.  It should have links to FAQ, info on unsubscribing,
and list archives.  This sounds much less labor intensive than moderating.

-Original Message-
From: Hemant Singh [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 05, 2001 9:09 PM
To: [EMAIL PROTECTED]
Subject: Re: Should we do moderation on this mailinglist??


HI Jeff:
I agree with your idea
When after downloading most of the files are asking
how to unsubscribe, duplicate mails, lab, lab
it really pains
How abt dividing this group into several parts,
Like one for tomcat configuration
- Servlet prblems, etc


--- Jeff Waugh [EMAIL PROTECTED] wrote:
 Unfortunately, we are dealing with 'people' here.
 It is a shame that there is not a 'filter' to
 eliminate
 'stupid' people, but as hard as I've tried, I just
 can't
 program it. If someone else can, please make it an
 Opensource project
 
 But, then again, we would probably get 'stupid'
 people
 contributing, so those filters would be invalidated.
 
 Man, it looks like we're screwed.
 
 As an example, *I* use a bicycle as my primary
 means of transportation, and have had similar
 ideas about 'people' who drive cars.
 I decided *I* was screwed quite some time ago.
 
 Delete is a wonderful thing!!!
 
 (If only it was as effective on motorists)
 
 (Hmmm, probably 98% of the people reading this
 are motorists...)
 
 (Sorry, but if the shoe (wheel) fits...)
 
 -Jeff
 
 
 - Original Message -
 From: Martin van den Bemt [EMAIL PROTECTED]
 To: jakarta-tomcat-user
 [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Sent: Tuesday, June 05, 2001 4:18 PM
 Subject: Should we do moderation on this
 mailinglist??
 
 
  Hi to everybody who is actually trying to get some
 information on this
  mailing list, or to help others,
 
 
  The 2 weeks I've been a member here, just trying
 to get new ideas and help
  others out with tomcat issues, I would say, were
 pretty horrible. about
 50%
  of the mail is actually rubbish (which means
 double mails, requests for
  unsuscribing and other SPAM. This can have a
 couple of couses :
  irritated mode on
  - Most people cannot read
  - Most people cannot think logically
  - Most people should not be able to subscribe to
 this list
  - Most people shouldn't wast other people's time,
 so they still want to
 help
  people.
  irritated mode off
  solution mode on
  - members with no active e-mail address should
 be deleted right away
 (who
  has the rights to do that?), so people don't
 resend messages again. (I
  mailed the owner of the mailinglist, but haven't
 had a reply yet..)
  - Don't allow misuse of the mailinglist anymore :
 block those senders
  immidiately from the mailinglist (that's what they
 want it seems) == are
  there any facilities for that.
  - Don't reply to misuse of the mailinglist
  - Off topic messages can be nicely redirected to
 the appropiate area.
  - Let everyone state clearly what they are using
 (rh 7.1, windows 2000,
  which version of tomcat, etc). A lot of replies
 are pretty useless if they
  have another version of the product. Also the
 probability that the correct
  people (the people actually using tomcat on a
 rh7.1 box, will reply..)
  - Send a rules e-mail to subscribers.
  - Send stuff that's not interesting (like someone
 suggested in the list
  today), directly to the sender of the mail. (If I
 have made a commercial
  solution for a problem or question, I mail to
 peoples private e-mail
  address, as an example..)
 
  The common goal should be :
 
  Users helping users!!
 
  Just trying to get some improvement here.. I think
 a lot of people are
  currently giving up on this list and that's not
 good for tomcat (at least
  that's what I think)
 
  Mvgr,
  Martin van den Bemt
 
 
 
 


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



RE: Should we do moderation on this mailinglist??

2001-06-06 Thread Jann VanOver

Yeah, but at least with a footer, we can all say RTFF and leave it at that.

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 06, 2001 12:51 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Should we do moderation on this mailinglist??


 FYI: I just sent a message to [EMAIL PROTECTED] to
 suggest that such a footer be added.  We'll see what happens.

JMHO, but back in the good 'ole dayz there was a footer and I haven't
seen any perceivable volume increase on the list since it was removed.

It all boils down to there are a lot of people out there, you know who
you are;), who are just plain lazy and want to be given their answer
and don't want to search for themselves.  Whether it be a 3 line msg
footer or an 8*{ {0 -1}, 
 {1  0} } message archive;).


---
Michael Wentzel
Software Developer
Software As We Think - http://www.aswethink.com



RE: support classes in jar

2001-06-06 Thread Jann VanOver

Umm ... that IS in the context.  .../webapps/CONTEXTNAME/WEB-INF/lib

-Original Message-
From: Zach Hollandsworth [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 9:27 AM
To: [EMAIL PROTECTED]
Subject: RE: support classes in jar


what if you have a JAR that is specific to a context?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 8:10 AM
To: [EMAIL PROTECTED]
Subject: RE: support classes in jar



They go in WEB-INF/lib

 -Original Message-
 From: Montgomery, Kendal L [mailto:[EMAIL PROTECTED]]
 Sent: Friday, May 18, 2001 9:27 AM
 To: Tomcat-User (E-mail)
 Subject: support classes in jar
 
 
 If I have support classes in a .jar file.  I have put it in 
 WEB-INF/classes.
 For some reason, it doesn't find them.  Is this the right 
 location, or does
 it set the .jar files in the classpath here?
 
 Kendal L. Montgomery
 Qwest - eFlow Development Team
 614-215-4937
 



RE: Complete credentials

2001-06-06 Thread Jann VanOver



Nowhere, I hope! You should never be able to "get" a 
password. You should only "send" passwords to determine 
authentication. If the user is authenticated, the getRemoteUser() will 
return a non-null.

  -Original Message-From: Andrew 
  [mailto:[EMAIL PROTECTED]]Sent: Saturday, May 19, 2001 11:18 
  AMTo: [EMAIL PROTECTED]Subject: Complete 
  credentials
   Hi,where I can find out 
  user password for user from request.getRemoteUser()?
  Thanks.


RE: Re: JDBC/ODBC: Technological choice

2001-06-06 Thread Jann VanOver

Even some JOINS can be done in Access by using the WHERE clause.

Instead of:  SELECT * from A INNER JOIN B ON A.stuff = B.moreStuff

You say:  SELECT * from A, B WHERE A.stuff = B.moreStuff

-Original Message-
From: aswath satrasala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 24, 2001 5:07 PM
To: [EMAIL PROTECTED]
Subject: Re:Re: JDBC/ODBC: Technological choice





From: Alexandre Bouchard [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re:Re: JDBC/ODBC: Technological choice
Date: Thu, 24 May 2001 14:46:06 -0400

Mm... i am not sure that I understand. What did you mean by
restrictions Access will place? I think that all I gonna need in my
scripts are SELECT and INSERT queries. As long as I can use these two SQL
instructions, I will be happy.


If you are using one table for your SELECT statements,
then it is fine.
I faced the problem of joining two tables in SELECT statements.  This will

normally be the case.


And for the deployment, i read in a tutorial that to setup a JDBC-ODBC with
Access bridge all you have to do is:

1-create an Access db
2-creat the ODBC source (select the pilot MS Access Driver -in ODBC
manager-, define the db's name and path, define data source's name and 
path)
3-in the JSP page, connect to the db:
Class.forname(sun.jdbc.JdbcOdbcDriver).newInstance();
Connection con = DriverManager.getConnection(jdbc:odbc:base_de_donnees);

Is that correct? Is there missing steps? If not, it seems simple enough.


  Hi,
  First, I would like to point the restrictions Access
  will place in using standard SQL, when you are
  using JDBC or JDBC-ODBC.
  You may not have the same flexibility in your SQL as with
  SQL server or oracle.
 
  Assuming you know the limitations, you are better off
  using ASP, if you are using Access. I am not discouraging
  you from using JSP.  You can as well persuade to use
  SQL server and starting working on JSP.
  Working with JDBC/tomcat/JSP is simple, I don't have
  any problems in my application.
 
  However, considering the deployment question, we
  are still thing of deployment, as you may have to
  write scripts to set the datasource (if you are using jdbc-odbc).
 
  -Aswath
 
 
 
 
  From: Alexandre Bouchard [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: tomcat-user [EMAIL PROTECTED]
  Subject: JDBC/ODBC: Technological choice
  Date: Wed, 23 May 2001 20:34:29 -0400
 
  Hello guys
 
  I am building an intranet on a window NT environment. I hate ASP, so I
  decided to use JSP as the server-side language. I chose Tomcat to run 
my
  JSP
  and I installed it as a IIS plugin.
 
  Now, I have to connect my JSPs with the databases (they use Access --
  ouch! ) I never did that before and I don't know if I should use JDBC I

or
  IV. So my questions are:
 
  -first, is it possible to use a JDBC IV sheme with Tomcat
 
  -if so, how is it possible? How is it made? In other words, where can i
  find
  documentation about that?
 
  -why it is recommended to use JDBC IV when dealing with intranet?
 
  -JDBC-ODBC bridge vs JDBC IV: how slower? Which one is simplier to 
setup?
 
  -Finally, is it difficult to deal with JDBC, to deploy it?
 
  A lot of question, isn't it?
  I would also apreciate if some of you could share their experience of
  building a JDBC/JSP/Tomcat infrastructure.
 
  Thx !
 
 
  _
  Get your FREE download of MSN Explorer at http://explorer.msn.com
 


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



RE: Re: frame for form login

2001-06-06 Thread Jann VanOver

Yes, I would expect it to do that.

Instead of this, go to wherever your login.jsp writes out any HTML and use
the HTML to force the browser to pop out of frames.

See http://developer.irt.org/script/206.htm for a good way to do this.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 26, 2001 8:49 AM
To: [EMAIL PROTECTED]
Subject: Re: Re: frame for form login


Thanks,

but target=_top in web.xml as
 form-login-config
form-login-page/login.jsp target=_top/form-login-page
form-error-page/error.jsp/form-error-page
/form-login-config

produces a not found error.

Friendly
   Thomas



RE: Tomcat and weblogic

2001-06-06 Thread Jann VanOver

Yes, and Weblogic is also $.

Many companies use Tomcat so all their developers can run a copy of it, then
run Weblogic as their production JSP/servlet container.  If the code written
right, it is nearly effortless to move the code between containers.

-Original Message-
From: Nirvana [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 26, 2001 11:24 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat and weblogic


Tomcat is a servlet/JSP engine with a small in efficient web engine. It can
not host any other stuff like EJBs or anything. But Weblogic is an
AppServer. So it has both an EJB container/engine and a Servlet/JSP engine.
but some ppl use tomcat for their servlet/JSP hosting for it's known
performance and use any other appserver like weblogic for EJB hosting.

-Nirvana

-Original Message-
From: Salwa Ananou [EMAIL PROTECTED]
To: Tomcat-User (E-mail) [EMAIL PROTECTED]
Date: Friday, May 25, 2001 3:26 AM
Subject: Tomcat and weblogic


Hi,

I m a new tomcat user and i don't know a lot about it;

My stuff is designed to work with an application server and i need also
tomcat;

Can i use Tomcat as a application server, ? or must I install weblogic and
tomcat at the same machine;

or does weblogic include all tomcat fonctionalities; so i don't need
tomcat.

thanks





RE: newbie problem: javax.servlet.ServletException at org.apache.jasp er.runtime.PageContextImpl.handlePageException

2001-06-06 Thread Jann VanOver

If any of your parameters are null (and it looks like issue is null) you
will get an error when you try to use the equals() method.

It's better style to turn your statements around like this:
   (Printout complete issue).equals(request.getParameter(report));

because this way the initial string is NEVER null and the equals will
return false if the parameter is null.

-Original Message-
From: Terje Kristensen [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 2:18 AM
To: '[EMAIL PROTECTED]'
Subject: newbie problem: javax.servlet.ServletException at
org.apache.jasp er.runtime.PageContextImpl.handlePageException 


Hi, 

I'm new to both this mailinglist and tomcat, and I was hoping you could help
me start out.
I use Tomcat 3.2 on a Win2K Server

My problem:

When going from this file (with the url:
http://localhost:8080/xsql/lsp200/index_redirect.jsp?issue=opn=%25report=A
dvanced+Reporting):

!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN

html
head
titleLSP-200 - Changes in Issue/title
link rel=STYLESHEET type=text/css
href=includes/stylesheet.css/
/head
% 
String report   = request.getParameter(report);
String opn  = request.getParameter(opn);
String issue= request.getParameter(issue);

boolean no_1= request.getParameter(report).equals(Printout complete
issue);
boolean no_2= request.getParameter(report).equals(Printout changes
since last issue);
boolean no_3= request.getParameter(report).equals(Printout
sections);
boolean no_4= request.getParameter(report).equals(Historic Data);
boolean no_5= request.getParameter(report).equals(Advanced
Reporting);

if (no_1) { 
String section1 = section1.xsql?opn=+ opn + issue= +
issue;
String section2 = section2.xsql?opn=+ opn + issue= +
issue;
String section3 = section3.xsql?opn=+ opn + issue= +
issue;
String section4 = section4.xsql?opn=+ opn + issue= +
issue;
String section5 = section5.xsql?opn=+ opn + issue= +
issue;
String section6 = section6.xsql?opn=+ opn + issue= +
issue;
String section7 = section7.xsql?opn=+ opn + issue= +
issue;
String section8 = section8.xsql?opn=+ opn + issue= +
issue;
String section9 = section9.xsql?opn=+ opn + issue= +
issue;
%
body
jsp:include page=%=section1% flush=true/
jsp:include page=%=section2% flush=true/
jsp:include page=%=section3% flush=true/
jsp:include page=%=section4% flush=true/
jsp:include page=%=section5% flush=true/
jsp:include page=%=section6% flush=true/
jsp:include page=%=section7% flush=true/
jsp:include page=%=section8% flush=true/
jsp:include page=%=section9% flush=true/
/body
%  } 
if (no_2) { 
String section1 = changes_section1.xsql?opn=+ opn +
issue= + issue;
String section2 = changes_section2.xsql?opn=+ opn +
issue= + issue;
String section3 = changes_section3.xsql?opn=+ opn +
issue= + issue;
String section4 = changes_section4.xsql?opn=+ opn +
issue= + issue;
String section5 = changes_section5.xsql?opn=+ opn +
issue= + issue;
String section6 = changes_section6.xsql?opn=+ opn +
issue= + issue;
String section7 = changes_section7.xsql?opn=+ opn +
issue= + issue;
String section8 = changes_section8.xsql?opn=+ opn +
issue= + issue;
String section9 = changes_section9.xsql?opn=+ opn +
issue= + issue;
%
body
jsp:include page=%=section1% flush=true/
jsp:include page=%=section2% flush=true/
jsp:include page=%=section3% flush=true/
jsp:include page=%=section4% flush=true/
jsp:include page=%=section5% flush=true/
jsp:include page=%=section6% flush=true/
jsp:include page=%=section7% flush=true/
jsp:include page=%=section8% flush=true/
jsp:include page=%=section9% flush=true/
/body
%  } 
if (no_3) { %
body   bgcolor=#FFBD9D
br/
br/
br/
br/
div align=center
table class=menu
tr
td
dl
dt/b
style=font-size:10ptPrintout section/bdd/
a
href=section1.xsql?opn=%= opn %issue=%= issue %1. General/abr/
a
href=section2.xsql?opn=%= opn %issue=%= issue %2. PCS/abr/
a
href=section3.xsql?opn=%= opn %issue=%= issue %3. SST/abr/
  

RE: [ClassPath] JSP, JDBC, and mm.MySql

2001-05-31 Thread Jann VanOver

I use Tomcat to do JSP and I put the JAR file with my db drivers into 
webapps/context/WEB-INF/lib directory and they are always found.  No need
to alter any class paths.

-Original Message-
From: Jon Shoberg [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 17, 2001 9:49 PM
To: [EMAIL PROTECTED]
Subject: [ClassPath] JSP, JDBC, and mm.MySql


Its getting late but I'm not having too much luck at getting a
sucessful
JSP / mysql connection.  Given the error message below can someone explain
where I should be setting my class path and the actual mm.mysql files or the
entire jar file? I am using jdk1.3 with the latest apache on win2K pro.

My JSP page looks like and the error is below:

html
  head
titleLogin/title
  /head
%@ page import=java.sql.*, java.io.* %
%
  // Step 1: registering the MySQL JDBC driver

  try {
// The newInstance() call is a work around for some
// broken Java implementations
Class.forName(org.gjt.mm.mysql.Driver).newInstance();
  }
  catch (Exception E) {
out.println(brbrsome crapbrbrUnable to load
driver.brbrbrbr);
E.printStackTrace(new PrintWriter(out));
  }


%

/html

error:


java.lang.ClassNotFoundException: Unable to load class
org.gjt.mm.mysql.Driver at
org.apache.jasper.servlet.JasperLoader.findClass(JasperLoader.java:223) at
org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:147) at
java.lang.ClassLoader.loadClass(ClassLoader.java:253) at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at
java.lang.Class.forName0(Native Method) at
java.lang.Class.forName(Class.java:120) at
_0002fsql_0002ejspsql_jsp_7._jspService(_0002fsql_0002ejspsql_jsp_7.java:70)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:177) at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318) at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404) at
org.apache.tomcat.core.Handler.service(Handler.java:286) at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372) at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7) at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Ajp12ConnectionHandler.java:166) 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)

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

===
To unsubscribe: mailto [EMAIL PROTECTED] with body: signoff
JSP-INTEREST.
For digest: mailto [EMAIL PROTECTED] with body: set JSP-INTEREST
DIGEST.
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets



RE: web.xml

2001-05-31 Thread Jann VanOver

Follow that link.  Then look along the left side of the page for the word
Specifications  (your quote sayis it's in the Servlet API Spec) and you'll
see a link to Download Implementations  Specifications  Click that.  Are
you still with me?  Scroll down that page for a header that says
SPECIFICATIONS and see that right under it is a table titled Java
Servlet and then a number of download buttons.  Go to Final Release and
download some version (PDF, HTML, whatever) and READ IT.  It goes through
the web.xml DTD element by element with explanations.

Was that so hard?

-Original Message-
From: Loflin, Charles [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 31, 2001 12:24 PM
To: '[EMAIL PROTECTED]'
Subject: web.xml



Does anybody know of a web page that explains about the web.xml file?  The
user guide for tomcat says A detailed description of web.xml and the web
application structure (including directory structure and configuration) is
available in chapters 9, 10 and 14 of the Servlet API Spec and we are not
going to write about it.  It gives the link
http://java.sun.com/products/servlet/;.

However, when I go to the link, trying to find an explantion to web.xml is
difficult at best.



RE: What is the value of auto-assigning beans?

2001-05-30 Thread Jann VanOver

If you don't want the values to persist, don't put the bean in the session
scope.  Try page or request and then it will get new values each time.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 9:59 AM
To: [EMAIL PROTECTED]
Subject: What is the value of auto-assigning beans?


This question may be asked out of ignorance, but it seems to me that using
the tag:

jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /

to assign values from form fields to the bean is of limited use.

Let's assume that there are 2 text fields, A and B on Jsp1.jsp, with B
being required.  I have some code that checks to make sure B is populated,
if it's not, the browser returns to Jsp1.jsp.

The problem I run into is that I can populate A with a value, submit the
form, get returned to Jsp1.jsp, delete A and populate B, submit the form,
and continue.  I how have values for both A and B, even though A was blank.

I suspect that I'm not the first person to ask this question, is there an
obvious solution that I missed, if not, what do other people do to get
around this problem; do all of the assignements by hand?

Thanks.


--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.




RE: server.xml DTD

2001-05-30 Thread Jann VanOver

Here's the DTD that I found in my tomcat\conf directory.  I'm not sure how
it got there.

?xml version=1.0 encoding=ISO-8859-1?

!ELEMENT Server (ContextManager+)
!ATTLIST Server
adminPort NMTOKEN -1
workDir CDATA work

!ELEMENT ContextManager (Context+, Interceptor*, Connector+)
!ATTLIST ContextManager
port NMTOKEN 8080
hostName NMTOKEN 
inet NMTOKEN 

!ELEMENT Context EMPTY
!ATTLIST Context
path CDATA #REQUIRED
docBase CDATA #REQUIRED
defaultSessionTimeOut NMTOKEN 30
isWARExpanded (true | false) true
isWARValidated (false | true) false
isInvokerEnabled (true | false) true
isWorkDirPersistent (false | true) false

!ELEMENT Interceptor EMPTY
!ATTLIST Interceptor
className NMTOKEN #REQUIRED
docBase   CDATA #REQUIRED

!ELEMENT Connector (Parameter*)
!ATTLIST Connector
className NMTOKEN #REQUIRED

!ELEMENT Parameter EMPTY
!ATTLIST Parameter
name CDATA #REQUIRED
value CDATA 

-Original Message-
From: Paulo J S Pereira [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 7:41 AM
To: [EMAIL PROTECTED]
Subject: server.xml DTD


Hi;

I am looking for the server.xml DTD ... (if one exists) ... can anyone help?

TIA!

Paulo J S Pereira, Java/Web Developer
Sentricity Inc.,
A Division of Sentex Communications Corp.,
240-E Holiday Inn Dr., Cambridge, Ontario
N3C3X4 Canada
1-519-651-3400 x208




RE: IIS with Tomcat 3.2.1 on Windows 2000

2001-05-30 Thread Jann VanOver

You didn't mention that you'd defined the virtual directory /jakarta to
IIS.  Did you do that?

-Original Message-
From: LUN [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 27, 2001 4:07 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: IIS with Tomcat 3.2.1 on Windows 2000


Hi,
I have checked the setting many times, My app is based on
C:\tomcat\bin\. I have try both \ and \\, but no luck for this.
the filter still cannot get work.
Do you have any hints 
Thanks 

On Sat, 26 May 2001, Will Thien wrote:

 Check for Typo's in registry. Also check check your virtual directory
 spelling. Restart all IIS services after changing registry. Below is a
 layout of what I used with tomcat being in H:\apps. You do not include the
 // only a /.
 
 Will Thien
 
 [HKEY_LOCAL_MACHINE\SOFTWARE\Apache Software Foundation\Jakarta Isapi
 Redirector\1.0]
 extension_uri=/jakarta/isapi_redirect.dll
 log_file=H:\\apps\\tomcat\\logs\\iis_redirect.log
 log_level=debug
 worker_file=H:\\apps\\tomcat\\conf\\workers.properties
 worker_mount_file=H:\\apps\\tomcat\\conf\\uriworkermap.properties
 
 -Original Message-
 From: LUN [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, May 26, 2001 12:25 PM
 To: tomcat-user
 Subject: IIS with Tomcat 3.2.1 on Windows 2000
 
 
 Hi all,
   I have installed IIS with Tomcat 3.2.1 on
 Windows 2000 Server English. but I found that the filter
 cannot show the green up arrow. I have checked the setting
 and restart the server many times.
   Since I have do that succssfully with the same OS.
 Anyone have recommendation 
 Thanks in Advanced
 
 
 



RE: What is the value of auto-assigning beans?

2001-05-30 Thread Jann VanOver

You could perhaps solve this with some Javascript tricks.  On the page with
the forms, check the fields before submitting and set some value in a hidden
field to pass it on to your bean.

I do this with check boxes because if they're not checked, they don't send
form data, yet I wanted to capture that unchecked event and pass it to my
bean.  I use Javascript on the checkbox to update a hidden field
(itemChecked) to yes or no and then use THIS field in my bean rather
than the actual check box.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 11:49 AM
To: [EMAIL PROTECTED]
Subject: RE: What is the value of auto-assigning beans?



Yes, I considered that, but I need the values to persist.   The only data
in the bean that needs to change in the bean is the data that corresponds
to the form fields.  Perhaps the answer is to have several beans that
expire every request, but if you need to persist the data, you still end up
copying all of the elements from one spot to another.  So I'm still left
with the question of Is auto-assigning worth the trouble.



 

Jann VanOver

Jann.VanOver@loTo:
'[EMAIL PROTECTED]'  
udeye.com  [EMAIL PROTECTED]

cc:

30-05-01 12:07  Subject: RE: What is the
value of auto-assigning beans? 
PM

Please respond

to tomcat-user

 

 





If you don't want the values to persist, don't put the bean in the
session
scope.  Try page or request and then it will get new values each time.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 9:59 AM
To: [EMAIL PROTECTED]
Subject: What is the value of auto-assigning beans?


This question may be asked out of ignorance, but it seems to me that using
the tag:

jsp:useBean id=MyBean scope=session class=Test.MyBean /
jsp:setProperty name=MyBean property=* /

to assign values from form fields to the bean is of limited use.

Let's assume that there are 2 text fields, A and B on Jsp1.jsp, with B
being required.  I have some code that checks to make sure B is populated,
if it's not, the browser returns to Jsp1.jsp.

The problem I run into is that I can populate A with a value, submit the
form, get returned to Jsp1.jsp, delete A and populate B, submit the form,
and continue.  I how have values for both A and B, even though A was blank.

I suspect that I'm not the first person to ask this question, is there an
obvious solution that I missed, if not, what do other people do to get
around this problem; do all of the assignements by hand?

Thanks.


--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.




--

NOTICE:  The information contained in this electronic mail transmission is
intended by Convergys Corporation for the use of the named individual or
entity to which it is directed and may contain information that is
privileged or otherwise confidential.  If you have received this electronic
mail transmission in error, please delete it from your system without
copying or forwarding it, and notify the sender of the error by reply email
or by telephone (collect), so that the sender's address records can be
corrected.




RE: JDBC/ODBC: Technological choice

2001-05-30 Thread Jann VanOver

Yes, not only would the alternative syntax NOT fix the problem, but it could
seriously impact your performance.  I recently analyzed a JDBC application
for performance problems (using JProbe) and found that 2/3 of my time was
being spent by the driver looking up my column number with the name. 

Always refer to columns by number, and read them all in one time -- first to
last -- into a data structure from which you can randomly access what you
need how you need it.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Sunday, May 27, 2001 11:31 PM
To: '[EMAIL PROTECTED]'
Subject: AW: JDBC/ODBC: Technological choice


It's not bizarre, just what JDBC API doc tells:

For maximum portability, result set columns within each row 
 should be read in left-to-right order, and each column should 
 be read only once.

 -Ursprüngliche Nachricht-
 Von: Alexandre Bouchard [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 24. Mai 2001 21:49
 An: [EMAIL PROTECTED]
 Betreff: Re: JDBC/ODBC: Technological choice
snip/ 
 That's really bizar... And that sucks. Where does this 
 limitation come from?
 The driver? Access? Would this alternative syntax:
 String x = getString(String columnName)
 do the same thing? Where could i find a list of these 
 bugs/limitations.
 And what about a driver of type IV, would there be the same 
 limitations?
snip/



RE: Include question...

2001-05-24 Thread Jann VanOver

Kyle, make sure you read up on your JSP includes -- the one that Joel is
giving your works DIFFERENTLY than the include you were using before.
Specifically, in your original example, it didn't work because the @
include happens during COMPILATION -- not during RUNTIME.  Your problem was
that you were trying to branch at runtime and that was just too late for a
@ include.

The include shown in Joel's code happens at runtime, that is why it works.
However, it won't have any local variables available to it unless the are
put into the request or into the session and retrieved on the next page
(index.jsp, anotherPage.jsp, or yetAnother.jsp in Joel's example)

There's quite a bit written about different JSP includes ... do some
studying!

-Original Message-
From: Joel Kozlow [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 12:12 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Include question...


Sure it is...just do this...

%
String sPage = index.jsp;

if (myCondition()) {
sPage = anotherPage.jsp;
}
else if (anotherCondition()) {
sPage = yetAnother.jsp;
}
%
jsp:include page=%= sPage % flush=true /


Hope that helps.

- Joel Kozlow


-Original Message-
From: Kyle Burke [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 23, 2001 10:40 AM
To: Tomcat-Users
Subject: Include question...


Is this possible (see CODE)?  I have a file that depends on the query
string for display.  Can I have include files based on that query string
too?

If action=edit show the data in form fields otherwise show it in formatted
text.

When the files are included vs. when the page is compiled and executed (see
EXCEPTION).  Thanks peops!


EXCEPTION
Unable to compile class
'try' without 'catch' or 'finally'
but I dont have any exception handling in the page.
/EXCEPTION

CODE
%
if(action.equals(edit)){
%
%@ include file=includes/edit_staff.jsp%
%
   }else{
%
 %@ include file=includes/view_staff.jsp%
%
}
%
/CODE


Kyle Burke



RE: Please help. Accessing protected url from java when using form based authentication

2001-05-24 Thread Jann VanOver
Title: Please help. Accessing protected url from java when using form based authentication



You 
must unsubscribe yourself. 

Here's 
some info posted by another user about unsubscribing:


it is a little tricky to unsubscribe 
from tomcat-userwhen you have changed your e-mail address and need touse 
this

[EMAIL PROTECTED]

to unsubscribe. Some mail clients 
like MS-Outlook havetrouble with the equal-sign "=" in the recipients 
address.Here's the e-mail header you sent. If you look closely atthe 
"To:" line, you will see what has happened:

 To: 
'tomcat-user-unsubscribe-lmayer=' [EMAIL PROTECTED]

Your e-mail client has split the 
recipients address at the "="into the display name 
("tomcat-user-unsubscribe-lmayer=") andthe e-mail address ("[EMAIL PROTECTED]").

Somehow you need to make sure that 
your e-mail clientreally sends a message to

[EMAIL PROTECTED]

For MS-Outlook, the following has 
worked for me:1. type the correct unsubscribe address into the "To:" 
field.2. click outside of the "To:" field and watch Outlook "convert"the 
address you typed into display name and e-mail address.3. double click on 
the display name in the "To:" field, notethe wrong e-mail address in there 
and adjust the e-mail addressto the correct one.4. 
done.

  -Original Message-From: Brian George 
  [mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 5:54 
  PMTo: [EMAIL PROTECTED]Subject: RE: Please 
  help. Accessing protected url from java when using form based authentication 
  
  Please UNSUBSCRIBE me.
  
  I 
  did not subscribe to this listserve.
  
-Original Message-From: Roytman, Alex 
[mailto:[EMAIL PROTECTED]]Sent: Wednesday, May 23, 2001 1:26 
PMTo: '[EMAIL PROTECTED]'Subject: Please 
help. Accessing protected url from java when using form based authentication 

I need to access a protected resource on my web site from 
java. I use form based authentication and I was hoping that following 
sequence will make it but it dos not
1. Open url to protected resource. get JSESSIONID from 
headers 2. Post to /mycontext/login/j_security_check 
with cookie set to JSESSIONID=session id from prev step and name and 
password as POST parameters
3. Access protected resource again using the same session 
id 
Any help is greatly appreciated 
Alex 


RE: Determining NT login name

2001-05-15 Thread Jann VanOver

You only get the remote user if the web server sends it.  

If you are using IIS, make sure you have it set to NOT allow anonymous
access.  This will cause it to send the NT Challenge needed to get the
username.

-Original Message-
From: Daniel A. Theobald [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 10:01 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: Determining NT login name


We are developing an intranet application to be deployed on a windows
network.  One of the requirements is that the user should not be
required to login to the website, that their windows login should be
sufficient.

Does anyone know how to determine the windows username of the remote
user in a servlet?  I know there is some way to do it using ASP, but I
would rather do this all in java if possible.

javax.servlet.http.HttpServletRequest.getRemoteUser always seems to
return null.  I guess we will need to make some auto authentication or
something.  Ideas?

thanks in advance,
theo



RE: SQL questions

2001-05-15 Thread Jann VanOver

http://www.w3schools.com

-Original Message-
From: Slemp, Douglas, J (Doug) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 9:44 AM
To: [EMAIL PROTECTED]
Subject: SQL questions


I'm starting to get into SQL and I have a few questions if anyone out there
can answer them for me:

1)Is there any WWW site that gives tutorials and/or examples of using SQL
and Java?
  (I'm really looking for good examples on using java.sql to makes JDBC
calles to a SQL server on both NT and Solaris)

2)Does anyone have knowledge or have a WWW site that gives usage examples
for running mySQL and Java?

I think this about sumes it up for now...thanks

Doug



RE: Determining NT login name

2001-05-15 Thread Jann VanOver

Daniel is NOT having problems.  I've seen his post twice already and
responded to it once.

The answer, if you are using IIS as the web server, you have to turn OFF
anonymous access.  Then it will send the user's remote name.

-Original Message-
From: Tim O'Neil [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 15, 2001 12:30 PM
To: [EMAIL PROTECTED]
Subject: Determining NT login name


I'm posting for Daniel A. Theobald [EMAIL PROTECTED]
who seems to be having trouble posting to the list;

We are developing an intranet application to be deployed on a windows
network.  One of the requirements is that the user should not be
required to login to the website, that their windows login should be
sufficient.

Does anyone know how to determine the windows username of the remote
user in a servlet?  I know there is some way to do it using ASP, but I
would rather do this all in java if possible.

javax.servlet.http.HttpServletRequest.getRemoteUser always seems to
return null.  I guess we will need to make some auto authentication or
something.  Ideas?

thanks in advance,
theo

Me again

Wouldn't you need to use JNI to write some kind of
NT Domain Auth client? Or snarf some 3rd party product
that does this? I think I've seen some one come up with
a java-ntdomain bridge, but I forget who it was.



RE: Accesing MySQL database through Applets

2001-05-15 Thread Jann VanOver

Connecting to a database through Applet?  Can you do that?  Gosh, that sends
chills down my spine.

Applets are Client-side things.  Database access is usually done
Server-side.

Someone, please tell me that Applets CAN'T make server database connections!

-Original Message-
From: Dana Marcusanu [mailto:[EMAIL PROTECTED]]
Sent: Sunday, April 22, 2001 4:58 PM
To: [EMAIL PROTECTED]
Subject: Accesing MySQL database through Applets


I am using Tomcat version 3.2.1. I am trying to connect to a data base
from an applet and I am getting the following error: 
2001-04-22 05:41:00 - Ctx( /examples ): 404 R( /examples +
/jsp/student/org/gjt/
mm/mysql/Driver.class + null) null
My driver is in: C:\tomcat\jakarta-tomcat-3.2.1\lib
My applet is in:
C:\tomcat\jakarta-tomcat-3.2.1\webapps\examples\jsp\student

What can I do to connect the database from the applet? Should I give some
permissions? 

Thanks, Dana



__
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/



RE: Tomcat Windows NT IIS

2001-05-15 Thread Jann VanOver

Make sure you've added the alias to IIS also.  (depending on your OS and IIS
version) this is usually accomplished with a right-click on your web root
like .../examples/, select sharing, then web-sharing, and give the alias the
same name that is in your uri-workers.properties mapping.  That should do
it.

-Original Message-
From: test test [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 23, 2001 5:16 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Tomcat  Windows NT  IIS


Anne

The error I get when trying to run JSP examples is :
File not found

The log file shows error 500.

The example servlets are working fine.

Any thoughts ?

Many thanks

Hamant


-Original Message-
From: Anne Dirkse [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 24 April 2001 10:14
To: [EMAIL PROTECTED]
Subject: Re: Tomcat  Windows NT  IIS


Hamant --
What errors are you encountering when trying to get a jsp example to
run?
Anne

test test wrote:
 
 Hello all
 
 Some progress has been made - I now get the example servlets working but
not
 the JSP examples.
 
 Have been through the instructions several times and the troubleshooting
 section.
 
 Still stuck, does anyone have any suggestions ?
 
 Many thanks
 
 Hamant
 
 -Original Message-
 From: Craig O'Brien [mailto:[EMAIL PROTECTED]]
 Sent: Monday, 23 April 2001 14:28
 To: [EMAIL PROTECTED]
 Subject: RE: Tomcat  Windows NT  IIS
 
 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 

RE: CSS in Tomcat

2001-05-14 Thread Jann VanOver

In the same directory as what?  A JSP file?  A Servlet?  It makes a
difference.

-Original Message-
From: Jason Vinson [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 14, 2001 10:50 AM
To: [EMAIL PROTECTED]
Subject: CSS in Tomcat


Hi,

I am trying to use external cascading style sheets in Tomcat, by using
the
link rel=stylesheet type=text/css name=style1 href=style1.css tag
in
the head of the document.  I keep getting a 404 (not found) error when i
try
to load.  The css file is located in the same directory, but Tomcat can't
see
it for some reason.  Any suggestions?

cheers,
Jason



  1   2   >