RE: Unable to rename class file

2000-10-24 Thread Kitching Simon

Hi,

I guess that this is generated because
tomcat has seen that your jsp file has
been updated (its timestamp is newer
than the generated .class file), and so
is trying to move the class file generated
from the old .jsp file out of the way so
it can generate a .class file for the newer
version of the .jsp.

Why the rename fails, I don't know.
Is your disk full? Are the directory
permissions on the $TOMCAT_HOME/
work directory stuffed up?

Regards,

Simon

 -Original Message-
 From: Alex Huang [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 10:24 AM
 To:   [EMAIL PROTECTED]
 Subject:  Unable to rename class file
 
 Once in a while I'm unable to get a page from Tomcat and seeing the error
 below in the tomcat.log file.  Does anyone know what this is?  If I
 request the page again, I get it.  
 
 -alex
 
 Running: Win2000, Apache 1.3.12, Tomcat 3.1 w/pooled connections
 
 Context log: path="" Error in jsp service() : Unable to rename class file
 C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms_jsp_0.class
 to
 C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms.class
  org.apache.jasper.JasperException: Unable to rename class file
 C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms_jsp_0.class
 to
 C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms.class
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:263)
 at
 org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
 at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
 Servlet.java:149)
 at
 org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
 java:161)
 at
 org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
 at
 org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:50
 3)
 at
 org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
 at
 org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
 on(Ajp12ConnectionHandler.java:156)
 at
 org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
 at
 org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
 at java.lang.Thread.run(Thread.java:484)
 Context log: path="" bInternal Servlet Error:/bbr



RE: Unable to rename class file

2000-10-24 Thread Alex Huang

I don't believe I changed the .jsp before getting the error.  Is the
timestamp the only reason the .class would be regenerated?

I have many gigs free and liberal directory permissions.  Maybe another
connection in my pool is using the old .class so it can't be overwritten?

Thanks,
-alex

On Tue, 24 Oct 2000, Kitching Simon wrote:

 Hi,
 
 I guess that this is generated because
 tomcat has seen that your jsp file has
 been updated (its timestamp is newer
 than the generated .class file), and so
 is trying to move the class file generated
 from the old .jsp file out of the way so
 it can generate a .class file for the newer
 version of the .jsp.
 
 Why the rename fails, I don't know.
 Is your disk full? Are the directory
 permissions on the $TOMCAT_HOME/
 work directory stuffed up?
 
 Regards,
 
 Simon
 
  -Original Message-
  From:   Alex Huang [SMTP:[EMAIL PROTECTED]]
  Sent:   Tuesday, October 24, 2000 10:24 AM
  To: [EMAIL PROTECTED]
  Subject:Unable to rename class file
  
  Once in a while I'm unable to get a page from Tomcat and seeing the error
  below in the tomcat.log file.  Does anyone know what this is?  If I
  request the page again, I get it.  
  
  -alex
  
  Running: Win2000, Apache 1.3.12, Tomcat 3.1 w/pooled connections
  
  Context log: path="" Error in jsp service() : Unable to rename class file
  C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms_jsp_0.class
  to
  C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms.class
   org.apache.jasper.JasperException: Unable to rename class file
  C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms_jsp_0.class
  to
  C:\Apache\Tomcat\work\localhost_8080\_0002fterms_0002ejspterms.class
  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:263)
  at
  org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
  at
  org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(Jsp
  Servlet.java:149)
  at
  org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.
  java:161)
  at
  org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
  at
  org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:50
  3)
  at
  org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
  at
  org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnecti
  on(Ajp12ConnectionHandler.java:156)
  at
  org.apache.tomcat.service.TcpWorkerThread.run(PoolTcpEndpoint.java:366)
  at
  org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:411)
  at java.lang.Thread.run(Thread.java:484)
  Context log: path="" bInternal Servlet Error:/bbr
 




Re: JavaBean at JSP

2000-10-24 Thread Gorazd Bozic

[EMAIL PROTECTED] wrote:
 Context path="/pok_JSP"
  docBase="/usr/adissys/pok_JSP"
  debug="9"
  reloadable="true" 
 /Context
...
 Location of my JavaBean Mesto.class:
 ***
 
 /usr/adissys/pok_JSP/SB/vzor/WEB-INF/classes/mesto/Mesto.class

Isn't the location of WEB-INF for this context supposed to be

/usr/adussys/pok_JSP/WEB-INF

and not under the SB/vzor subdirectory?

Gorazd

-- 
Gorazd Bozic [EMAIL PROTECTED]
ARNES SI-CERT, Jamova 39 p.p. 7, SI-1001 Ljubljana, Slovenia
tel: +386 1 479 88 22, fax: +386 1 479 88 99




Re: JavaBean at JSP

2000-10-24 Thread Kurt Bernhard Pruenner

[EMAIL PROTECTED] wrote:
 I want to have my JSP page mesto.jsp at some directory and my JavaBean
 Mesto.class at directory under it (at WEB-INF/classes/mesto). Is this my
 demand not standard? That is, must I to have JSP page and JavaBean at the
 same directory? Or must I define context (at server.xml) for any
 subdirectory, where I want to place my JSP pages?

 server.xml:
 **
 
 Context path="/pok_JSP"
  docBase="/usr/adissys/pok_JSP"
  debug="9"
  reloadable="true" 
 /Context

Well, the WEB-INF directory always has to be in the docBase directory you
specify for your context, as the classes and libraries in it are shared by the
whole context (which would be "/pok_JSP" in your case). It might be possible
to do what you want by using

Context path="/pok_JSP/SB/vzor"
 docBase="/usr/adissys/pok_JSP/SB/vzor"
 debug="9"
 reloadable="true" 
/Context

but I (anyone?) haven't ever tried this...

Hope this helps. :)

-- 
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
http://www.mp3.com/Leak http://www.ssw.uni-linz.ac.at | ssh [EMAIL PROTECTED]
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Senor Coconut - Chocolatina (Gran Baile Con...)



RE: Tomcat as a service

2000-10-24 Thread Robert M. Zigweid

Check to make sure that your wrappers.properties file is includeing the
right jar files.  I had this problem when I got a wrappers.properties file
that waas designed for 3.2 where a couple things have changed (no xml.jar
and a jasper.jar instead, and there might be one other, but I can't
remember)

Try this and see what happens.

-Original Message-
From: Geoff Moriak [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 23, 2000 10:43 PM
To: [EMAIL PROTECTED]
Subject: Tomcat as a service


When I install Tomcat as a service, it will not start and there is no
feedback as to why.  It starts and stops fine from the command line.  I have
attached my wrapper.properties and a batch file I created to run the install
command line.  I have everything installed on E: and I am using JDK 1.3.
Any feedback would be appreciated.

Thanks,
Geoff Moriak


E:\jakarta-tomcat\servicenet start Tomcat
The Tomcat service is starting.
The Tomcat service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

E:\jakarta-tomcat\servicenet helpmsg 3534

The service did not report an error.


EXPLANATION

The service did not report an error.

ACTION

Try the task later. If the problem persists, contact your network
administrator.






___
Say Bye to Slow Internet!
http://www.home.com/xinbox/signup.html




RE: Servlet Directory

2000-10-24 Thread Kitching Simon

Hi,

Just to spell things out a bit clearer:

The code for a servlet class, and any non-library
classes it uses, must be in the classpath. Your
best options are:
(a) put them under {yourwebapp}/WEB-INF/classes,
in a subdirectory that matches your package structure.
(b) put them in a jar file, in {yourwebapp}/WEB-INF/lib

In either case above, tomcat automatically adds the
directories/libs to its classpath when it starts.

You *can* put your servlet classes elsewhere on your 
disk, and make sure your CLASSPATH points to them 
before starting tomcat, but there are many disadvantages 
to this,  including making it difficult to install your code 
elsewhere, and not being able to use the servlet 
auto-reload feature.

Now that your class is *loadable* by tomcat, you need
to tell tomcat what URLs map to what servlets. 

There is an entry in $TOMCAT_HOME/conf/web.xml which
sets up a default mapping for servlets; for any url of form
/webapp/servlet/servletname, an attempt is made to
do a "loadClassForName(servletname)" and if
successful, the request is passed off to the found class.
Of course, the class to be loaded merely has to be in
the classpath somewhere (see (a) and (b) above).
[[NB: this only applies in tomcat3.1; I hear that tomcat3.2
does not have a $TOMCAT_HOME/conf/web.xml file,
in which case I'm not sure how or if the default servlet
mapping gets set up...]]

If you don't like this default mapping, you just define
your own (url-servletclass) mappings in the file
yourwepapp/WEB-INF/web.xml. See the file
$TOMCAT_HOME/conf/web.dtd to see what tags
are allowed in the web.xml file; then read the sun
servlet specs. NB: don't modify the web.xml file
in TOMCAT_HOME/conf, create your own inside
your webapp/WEB-INF.

Note that the servlet class *never* lives *at* the
url that the user enters; the url is always looked up
to find a corresponding class name, and then the
servlet class is loaded from the classpath.

I hope this clarifies things a bit...

Regards,

Simon
 -Original Message-
 From: Clark D. Richey, JR. [SMTP:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 3:22 AM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Servlet Directory
 
 The class file has to be in Tomcat's classpath. Where are you putting the
 servlet's class file?
 
  -Original Message-
  From: Corey A. Johnson [mailto:[EMAIL PROTECTED]]
  Sent: Monday, October 23, 2000 8:15 PM
  To: [EMAIL PROTECTED]
  Subject: Servlet Directory
 
 
  Hello all,
 
  First, let me apologize... this is so simple... but i have been beating
  my head against the wall for almost 20 hours straight now...
 
  I have successfully installed Tomcat on my Solaris... With Apache 1.3.14
 
  Everything seems to be working fine... JSPs work well... looking through
  the logs... no errors...  but i can not get any servlets to work in my
  defined servlet directory.  I must be missing something very simple.
  When i try to invoke a servlet, the tomcat.log file shows:
 
  Context log: path="" Class Not Found in init
   java.lang.ClassNotFoundException: testAllego
 
 
  In my tomcat.conf file.. i have the line:
 
  ApJServMount /servlet /root
 
  And i have this in my server.xml file:
 
  Context path="" docBase="/export/home/cni/servlet" debug="0"
  reloadable="true" 
  /Context
 
 
  I feel like i am so close... because ay least it is "trying" to load the
  servlet class... but tomcat can't find it..
 
  please help... i need some sleep...
 
  thanks in advance.
 
  Cj
  --
  Corey A. Johnson
  Creative Network Innovations, Inc.
  1-800-264-5547 ** 1-321-259-1984
 



Re: how to configure the Servlet Cookie

2000-10-24 Thread Matt Goss

Here you go Saritha,
how to create a cookie
Cookie c = new Cookie("name", "value");//creats the cookie with a name value
pair
 c.setMaxAge(30*24*60*60); // in seconds
 c.setPath("/");//sets the cookie to be sent with every request from
this domain
 resp.addCookie(c);//adds the cookie to the response objct
/how to create a cookie
Matt Goss

SarithaB wrote:

 Hai,
 i want to include the Servlet Cookie in our running  Tomcat webserver how to
 do configure it.

 Saritha


begin:vcard 
n:Goss;Matt
tel;fax:919-657-1501
tel;work:919-657-1432
x-mozilla-html:FALSE
url:www.rtci.com
org:RTCI;Custom Solutions
adr:;;201 Shannon Oaks Circle;Cary;NC;27511;US
version:2.1
email;internet:[EMAIL PROTECTED]
title:Web Developer
fn:Matt
end:vcard



Re: Can't find SAXParserFactory

2000-10-24 Thread Mike Campbell



  Exception in thread "main" java.lang.NoClassDefFoundError: 
javax/xml/parsers/SAXParserFactory



 The file should be within $TOMCAT_HOME/lib/xml.jar.

 Which version did you download tomcat ?

I downloaded the binary version 3.1 (from 
http://jakarta.apache.org/builds/tomcat/release/v3.1/bin/).  I'm hoping I got the 
correct
version.

My xml.jar file does NOT have this file (nor does it even have this directory 
hierarchy (javax/xml/parsers).

Hrm.



Do you have a tomcat\lib\jaxp.jar file?  Another person told me to check this.  And 
I don't have that jar file either.  Where does
THAT come from?




Re: Can't find SAXParserFactory

2000-10-24 Thread P . Gloor


The tomcat 3.2b6 distribution contains this files.




Tomcat 3.2 availability

2000-10-24 Thread William Au

Any idea when the release build of Tomcat 3.2 will be available?

Bill




RE: memory leak

2000-10-24 Thread Ed Gomolka

I'm sure that the following has nothing to do with the original problem
in this thread, but I have to disagree with the idea that Java doesn't
have memory leaks.

Java memory leaks are different from C++ memory leaks, but they are very
real,
and can be a serious pain in the butt.
The easiest way I've found to have a memory leak is by forgetting to dispose
of
an object when doing GUI work.
For example:
- creating a Graphics instance, and not disposing of it
- exiting a Window without disposing of it
Another way is by retaining some sort of indirect reference to an object
that is no longer
needed.
For example:
- If you use MediaTracker to load a bunch of images, and then try to dispose
of the
images, the memory won't be freed up until the MediaTracker instance is
disposed of.

 -Original Message-
 From: Stubenrauch,Andreas [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 4:31 AM
 To: '[EMAIL PROTECTED]'
 Subject: RE: memory leak


 You can't have a traditional "memory leak" in Java. But you can
 create more
 Objects than the is able to destroy. Under Linux your upper




Where is the wrapper.properties template file?

2000-10-24 Thread Walker, Chris

Hi,

The howto doc for jk_nt_service says "Locate the wrapper.properties template
file in your Tomcat conf directory".  There is no such file in the conf
directory, and I can't find a template for it anywhere on the Jakarta site.

Can anyone suggest where I might find it?

Chris Walker
Brainbench MVP for ASP
http://www.brainbench.com





Tomcat/IIS via JNI: working in beta6?

2000-10-24 Thread Dave_Smith

Hi,
Can anyone confirm for me that Tomcat 3.2 beta 6 works correctly,
in terms of setting up Tomcat to run in the IIS process, using JNI?

I've used Tomcat a lot, but this is my first attempt at setting it up
in process.  It isn't working for me, although I think I've followed
the instructions in the in-process-howto.html document.
I was successful with the tomcat-iis-howto.html instructions,
but not the in-process setup.  When I start IIS, my log says:

  jk_jni_worker.c (518)  Fail- could not initialize Tomcat

This was on NT Server with SP 5, on a 4-cpu box.

If anyone has any tips on setting up in the IIS process, please
feel free to email me.   Or, of course, if this is something that's
just plain broken in the beta, please warn me!  Thanks

Dave






RE: Where is the wrapper.properties template file?

2000-10-24 Thread Jacob Kjome

There is one there if you have the 3.2 betas.  At least the 3.2b6 has it.  I
think even 3.2b3 had it.

3.1 does not.  You will have to find it from the cvs source in that case, or
just download 3.2b6, grab the wrapper.properties file and discard the rest.

Jake

-Original Message-
From: Walker, Chris [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 9:00 AM
To: '[EMAIL PROTECTED]'
Subject: Where is the wrapper.properties template file?


Hi,

The howto doc for jk_nt_service says "Locate the wrapper.properties template
file in your Tomcat conf directory".  There is no such file in the conf
directory, and I can't find a template for it anywhere on the Jakarta site.

Can anyone suggest where I might find it?

Chris Walker
Brainbench MVP for ASP
http://www.brainbench.com




RE: TOMAT slowing down a lot after a while

2000-10-24 Thread Federico Tello Gentile

You were right!
I was closing the ResultSets but not the Statements.
Now I've fixed it and it works a lot better.
However it is still a bug, because when I wasn't loading the servets on
startup the conection with the DB was closed but the Statement objects that
were stil open weren't closed.

I guess for my college assignment it'll work like this, but I've read Access
doesn't lock records on access if they aren't done from the Access UI.

It won't hurt setting up a mySQL db, I guess I can export the data without
problems.

Thanks to all of you.

- Mensaje original -
De: Julio Serje (@Canada) [EMAIL PROTECTED]
 Hi,

 I'm running a small app. with Tomcat and JDBC connections to MS Access,
and
 have had no problems at all, so I think you may be doing something wrong
(or
 ommiting something). As a general recommendation (I'm sorry if it sounds
 stupid, but may help you...) you should make sure that you are closing ALL
 jdbc objects (including resultsets and statements, i.e:

 stmt.close();
 rset.close();





READ THIS First! Mailing-list archive and good tips

2000-10-24 Thread Wolfgang Stein

  To unsubscribe from this list
mailto:[EMAIL PROTECTED]

  To stop subscription for an alternate account
  (e.g. [EMAIL PROTECTED]) send an eMail to
[EMAIL PROTECTED]


 Before posting any questions ---

+ We welcome open discussion of Tomcat issues at both advanced
  and beginner levels of expertise. However, please be respectful
  of other people's time. Before posting questions, do your own
  reading and research. As the saying goes, "There are no stupid
  questions"... except the ones you could have answered by yourself!

  Before posting a question, perform the following steps.

+ Be familiar with servlets in general. See:
  http://java.sun.com/products/servlet/
  http://java.sun.com/products/jsp/

+ Read any of the several published books about servlets or JSP.

+ Read the Servlet API 2.2 Specification.

  Download a copy of the spec in PostScript or Acrobat PDF formats:
  http://java.sun.com/products/servlet/download.html#specs

  The spec is currently not available online; you must download a copy.
  You may obtain free Acrobat PDF reader software from:
  http://www.adobe.com/products/acrobat/readstep.html
  
  Tomcat implements this spec, so think of it as one of Tomcat's
  manuals.

+ Read Tomcat's other documentation:
  http://jakarta.apache.org/tomcat/index.html

+ Study the Tomcat examples.

  First use the servlets found in the /examples context.
  Read their source code.

  Then try your own first servlets in the /examples context, and
  add an entry into /example/WEB-INF/web.xml

+ Search either of these two archives for past discussions.
  
  Contributed by Bob Tanner:
  http://archives.real-time.com/rte-tomcat/
  
  Contributed by Philip J. Mikal:
  http://mikal.org/interests/java/tomcat/index.html

  Search for short phrases, such as your server error messages.
  Search the archive again with better or different phrases.

  Many beginner questions have already been asked, so please
  make several attempts at finding your question in the archive.

+ Read the FAQ:
  http://jakarta.apache.org/jyve-faq/Turbine/screen/DisplayTopics/
  Click the Jakarta link.

+ Search the bug report facility
  http://znutar.cortexity.com:
  provided by Nick Bauman.

+ Read this mailing list regularly, not just when you have a problem.
  
+ Examine your error messages problems not directly related to Tomcat,
  such as CLASSPATH problems. Write, compile, and run a "Hello World"
  application to be sure your problem is related to servlets or Tomcat.
  
+ Ask an expert in your company, school class, or local Java users
  group.
  http://industry.java.sun.com/jug/

+ Do not treat this list as a dumping ground for your problems. Think of
  the list as a volunteer community of people engaging in respectful
  discussion.
 
== THE MORAL OF THE STORY 
Help yourself first.
Be responsible for your own learning.
   Try to solve your own problem.
   If you are still suffering, then post to this list.
==

+ Be aware: This mailing list may contain viruses.

  Don't trust anybody. If your are not absolutely sure, do not open
  any attachments. Do not read the postings with a JavaScript-enabled
  email client.

  Microsoft Windows users:
  Disable all stuff like ActiveScripting etc.
  in your mail reader.  Be careful with attachments,
  especially of type .exe .vbs or some virus attachments like
  "livestages.txt.shs".
  The .shs extension disappears/is not visible under Windows but
  represents an executable script which will execute when opened
  separately.

+ Other resources:
  - An archive of the mailing list for the developers building Tomcat
discussing bugs, future releases, etc.
http://www.metronet.com/~wjm/tomcat/
  
  - Sun's mailing list for general servlet information:
Search its archive at:
http://archives.java.sun.com/archives/servlet-interest.html
Subscribe only, if you are willing to receive hundred messages
per day!
   
  - Search DejaNews at http://www.deja.com/home_ps.shtml

  - Look at jGuru, JCentral etc.

  - Search the whole Web with a popular search engine.
As a developer of server applications you should know
all about it.  :-)
You can find entire websites dedicated to Java servlets.
Find the online versions of Java magazines with past articles
on servlets and JSP.
   
-- end --



Re:Where is the wrapper.properties template file?

2000-10-24 Thread DIEGO RODRIGO


the documentation says it's in
http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/src/etc/wra
pper.properties?rev=1.1


--
Diego Rodrigo
Vates S.A.
[EMAIL PROTECTED]
+54(11)4346-6658


Reply Separator
Subject:Where is the wrapper.properties template file?
Author: [EMAIL PROTECTED]
Date:   24/10/2000 5:49 PM

Hi,

The howto doc for jk_nt_service says "Locate the wrapper.properties template
file in your Tomcat conf directory".  There is no such file in the conf
directory, and I can't find a template for it anywhere on the Jakarta site.

Can anyone suggest where I might find it?

Chris Walker
Brainbench MVP for ASP
http://www.brainbench.com



Configuration Files in /conf directory

2000-10-24 Thread Bill Stearns

Hi,

We're running Apache 1.3.12 with Tomcat 3.1 and have
several questions regarding the configuration files in the /conf
directory (Windows NT)

I read in the documentation that the tomcat-apache.conf
file is generated when you start Tomcat. Are any of the other
files used as input to Tomcat when generating this file ??
Originally I thought that if I made changes to the tomcat.conf file,
this would be used as input to create tomcat-apache.conf, but
it doesn't appear so. So, my question is, if I wanted to, say, add a
new servlet zone, do I just make a copy of the tomcat-apache.conf
file to another name, then make the changes and update the
include directive in the httpd.conf file with the new name ?? If
there are no input files to create the tomcat-apache.conf file,
is Tomcat spitting out the same file each time it starts ?? If so,
why ?? If not, please point me to the proper configuration file
to alter to have the changes appear in the newly created
tomcat-apache.conf file. On a similar thread, some documents
recommend including tomcat.conf in the httpd.conf file, others
include tomcat-apache.conf. Is there a preference ??

Also, does any one know where there may be documentation
on what all the configuration files in the /conf directory are used for
??
I found explanations on server.xml, web.xml, tomcat.conf and
tomcat-apache.conf but nothing on any of the others.

TIA, Bill Stearns

--

Bill StearnsNortel Networks
Software Engineering Manager600 Tech Park Drive
Billerica, Ma, 01821
(978) 288-8258 office
(888) 780-6072 pager

mailto:[EMAIL PROTECTED]





automatic compiling

2000-10-24 Thread GoldenDawn Fan

Hi, how can I let tomcat compile my source file
automatically?  

__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



To use Apache or not

2000-10-24 Thread Tim McNerney

I am trying to understand any disadvantages of using Tomcat directly,
without going through Apache. I've read the points listed in the HOWTO,
but by in large they don't apply. We will have very little static data,
mostly consisting of GIFs. We are starting from scratch, so we have no
investment in pre-existing code for Apache. We'll look at the issues as
far as configurability, but if Tomcat suits our needs, then that becomes
moot.

The other issue listed is robustness. The way I look at it, though, is
that in either case, Tomcat will be serving up all of our pages, so if
it fails on its own or fails as a plugin to Apache, the site is still
down. No real advantage here. That is unless Apache exercises a
different pathway in the code than using it directly as the server. Then
it might be that Tomcat's webserver code is buggier, lest tested and
more apt to crap out. Is this the case?

The other issues I'm wondering about are security bound. Mainly, will
SSL and the declarative security model of servlets work equally well in
both cases?

Thanks for the help.

--Tim



Re: Configuration Files in /conf directory

2000-10-24 Thread Steve Weiss

server.xml is the one that's used to generate tomcat-apache.conf, but at
least as of 3.1 final it did not correctly copy over the full path for
new contexts unless they are added under path-to-tomcat/webapps. So If
you want your context to live somewhere else you'll need to modify (i.e.
correct) tomcat-apache.conf after it's created, and then it's a good
idea to rename that to something else and include the new file name in
your httpd.conf.

-Steve

Bill Stearns wrote:
 
 Hi,
 
 We're running Apache 1.3.12 with Tomcat 3.1 and have
 several questions regarding the configuration files in the /conf
 directory (Windows NT)
 
 I read in the documentation that the tomcat-apache.conf
 file is generated when you start Tomcat. Are any of the other
 files used as input to Tomcat when generating this file ??
 Originally I thought that if I made changes to the tomcat.conf file,
 this would be used as input to create tomcat-apache.conf, but
 it doesn't appear so. So, my question is, if I wanted to, say, add a
 new servlet zone, do I just make a copy of the tomcat-apache.conf
 file to another name, then make the changes and update the
 include directive in the httpd.conf file with the new name ?? If
 there are no input files to create the tomcat-apache.conf file,
 is Tomcat spitting out the same file each time it starts ?? If so,
 why ?? If not, please point me to the proper configuration file
 to alter to have the changes appear in the newly created
 tomcat-apache.conf file. On a similar thread, some documents
 recommend including tomcat.conf in the httpd.conf file, others
 include tomcat-apache.conf. Is there a preference ??
 
 Also, does any one know where there may be documentation
 on what all the configuration files in the /conf directory are used for
 ??
 I found explanations on server.xml, web.xml, tomcat.conf and
 tomcat-apache.conf but nothing on any of the others.
 
 TIA, Bill Stearns
 
 --
 
 Bill StearnsNortel Networks
 Software Engineering Manager600 Tech Park Drive
 Billerica, Ma, 01821
 (978) 288-8258 office
 (888) 780-6072 pager
 
 mailto:[EMAIL PROTECTED]

-- 
Steve Weiss  Association of American Medical Colleges
(202)828-0428mailto:[EMAIL PROTECTED]http://www.aamc.org



Re: Error running ./startup.sh

2000-10-24 Thread Craig May

You have a service running on the port you're attempting to start tomcat on. 
Chances are it's another instance of tomcat.  Use the shutdown.sh script to end
it.


On Tue, 24 Oct 2000 18:03:44 John Bateman wrote:
 Hi
 
 I'm getting an error when I try and run tomcat in stand alone mode. The logs
 don'e show anything wrong.
 
 Error:
 
 [root@opus bin]# ./startup.sh
 Using classpath:
 .:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/
 tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs
 erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/
 lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc
 al/lib/jconn2.jar
 [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages
 FATAL:java.net.BindException: Address already in use
 java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
 at java.net.ServerSocket.init(ServerSocket.java:169)
 at java.net.ServerSocket.init(ServerSocket.java:120)
 at
 org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
 ocketFactory.java:97)
 at
 org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
 java:186)
 at
 org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
 42)
 at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
 I have all my environment variables set (and verified!) but I keep getting
 this error.
 
 I'll be happy to post any additional information needed, but I don't want to
 post everything if it's just going to take up the net's precious bandwidth.
 
 Thanks alot.
 
 
 
 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 John Bateman
 Cyber World Group Inc.
 




Re: Error running ./startup.sh

2000-10-24 Thread Ben Souther

I've run into the same problem running Tomcat 3.1 on RedHat7 with jdk1.2.2

Installing the updates from the Redhat Errata page cleared it up.






- Original Message -
From: Craig May [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, October 25, 2000 1:00 AM
Subject: Re: Error running ./startup.sh


 You have a service running on the port you're attempting to start tomcat
on.
 Chances are it's another instance of tomcat.  Use the shutdown.sh script
to end
 it.


 On Tue, 24 Oct 2000 18:03:44 John Bateman wrote:
  Hi
 
  I'm getting an error when I try and run tomcat in stand alone mode. The
logs
  don'e show anything wrong.
 
  Error:
 
  [root@opus bin]# ./startup.sh
  Using classpath:
 
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/
 
tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs
 
erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/
 
lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc
  al/lib/jconn2.jar
  [root@opus bin]# Starting tomcat. Check logs/tomcat.log for error
messages
  FATAL:java.net.BindException: Address already in use
  java.net.BindException: Address already in use
  at java.net.PlainSocketImpl.socketBind(Native Method)
  at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
  at java.net.ServerSocket.init(ServerSocket.java:169)
  at java.net.ServerSocket.init(ServerSocket.java:120)
  at
 
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
  ocketFactory.java:97)
  at
 
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
  java:186)
  at
 
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
  42)
  at
  org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
  at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
  at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)
 
  I have all my environment variables set (and verified!) but I keep
getting
  this error.
 
  I'll be happy to post any additional information needed, but I don't
want to
  post everything if it's just going to take up the net's precious
bandwidth.
 
  Thanks alot.
 
 
 
  -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  John Bateman
  Cyber World Group Inc.
 






RE: WML postfield tomcat 3.1

2000-10-24 Thread Keith McNeill

Nope, we are using post.  And note that it works if the container is JRun,
but not tomcat.

Keith

-Original Message-
From: Jon Skeet [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 9:38 AM
To: [EMAIL PROTECTED]
Subject: Re: WML postfield  tomcat 3.1


 just a random guess, but are you specifying method="get" in the go tag?
I
 don't think nokia phones support post-ing form data

Nokia *phones* do, but the emulator doesn't (at least the old one - I
believe
the latest one might).

Jon




RE: Error running ./startup.sh

2000-10-24 Thread lblackburn
Title: RE: Error running ./startup.sh





I got this error when I was just starting to configure tomcat.


Turns out we had an installation of oracle 9i that had started the jserv listener on port 8007. The other problem was that the port tomcat was using for the stand alone web server was also in use.

Try to shut down the tomcat server and check that the ports that are configured are not in use. I found tomcat did not always shut down after having this error. Check for processes matching something like below:

/usr/java/bin/../bin/sparc/green_threads/java -Dtomcat.home=./.. org.apache.tom


Once the ports are configured without any conflicts. startup.sh and shutdown.sh seem to work fine.


Lee Blackburn
Lead eWizard
LastMinuteTravel.com
404.495.2079 (V)
404.495.2111 (F)



-Original Message-
From: John Bateman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 2:04 PM
To: Tomcat-User (E-mail)
Subject: Error running ./startup.sh



Hi


I'm getting an error when I try and run tomcat in stand alone mode. The logs
don'e show anything wrong.


Error:


[root@opus bin]# ./startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/
tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webs
erver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/
lib/classes.zip:/classes:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/loc
al/lib/jconn2.jar
[root@opus bin]# Starting tomcat. Check logs/tomcat.log for error messages
FATAL:java.net.BindException: Address already in use
java.net.BindException: Address already in use
 at java.net.PlainSocketImpl.socketBind(Native Method)
 at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:386)
 at java.net.ServerSocket.init(ServerSocket.java:169)
 at java.net.ServerSocket.init(ServerSocket.java:120)
 at
org.apache.tomcat.net.DefaultServerSocketFactory.createSocket(DefaultServerS
ocketFactory.java:97)
 at
org.apache.tomcat.service.SimpleTcpEndpoint.startEndpoint(SimpleTcpEndpoint.
java:186)
 at
org.apache.tomcat.service.SimpleTcpConnector.start(SimpleTcpConnector.java:1
42)
 at
org.apache.tomcat.core.ContextManager.start(ContextManager.java:253)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:157)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:163)


I have all my environment variables set (and verified!) but I keep getting
this error.


I'll be happy to post any additional information needed, but I don't want to
post everything if it's just going to take up the net's precious bandwidth.


Thanks alot.




-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Bateman
Cyber World Group Inc.





RE: save a attachment

2000-10-24 Thread Josh Knowles

there are examples of working with attachments in the javamail documentation

-Original Message-
From: Pablo Trujillo [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 11:13 AM
To: [EMAIL PROTECTED]
Subject: save a attachment 


I am developing a service of e-mail in Web and I need help to be able to
save a received attachment



admin user/password

2000-10-24 Thread Mike Tinnes


Hello,
How do I determine/change/etc. the username and password for the /admin
security context? I've tried the username/passwords from the
tomcat-users.xml file, but these must relate to something else.

Thanks, Mike




compiling SSL files..

2000-10-24 Thread nell

Hi,
 I am using Tomcat3.2 and jsse1.0.2. Could any one help me, how to compile or build 
SSLSocketFactory and other files in net package.

thanks,
nell
   






___
CoolEmail -- Now you're talking.
Get Free Email-By-Phone Today.
http://www.CoolEmail.com






WEB-INF/lib

2000-10-24 Thread TDSlusser

Hi All,

I am trying to put my JDBC jar file in the application/WEB-INF/lib
directory but Tomcat doesn't add the jar file to its classpath
automatically.  Is there a config parameter in one of the xml files to do
this?  Also the default "build" script for NT machines says to put the jars
in application/lib instead of application/WEB-INF/lib.  I tried it both
ways and it doesn't work.  I am restarting the server after ant copies the
files to the appropriate directories.

If I add the jar file to the CLASSPATH in the script to start the tomcat
server it works, but I thought it was supposed to happen automatically.


Thanks,
Ted.




Re: help with generated servlet and IllegalStateException

2000-10-24 Thread William Brogden



Elisabeth Freeman wrote:
 
 Hi,
 I have noticed that the servlets being generated from my JSPs *always* grap
 the PrintWriter "out", even if I am not using it in my JSP.  This causes
 serious problems when I want to redirect - I get an IllegalStateException
 which seems to hang the thread in my application, so after a few hundred
 hits, the application is dying (on Windows NT, doens't seem to happen on
 Windows 2K).  Is there any way for me to direct Jasper *not* to get the
 print writer at all in the generated servlet?
 
 Thanks!!!
 
 Elisabeth Freeman

If you are not going to be writing any HTML, why bother with JSP?
Why not do whatever it is you are doing with a servlet?

-- 
WBB - [EMAIL PROTECTED]  Chief Scientist, LANWrights, Inc.
Java Programmer Certification information and mock exam
at  http://www.lanw.com/java/javacert/



Re: java.awt package

2000-10-24 Thread Drasko Kokic

actually you just helped me as I was trying to find a
way to generate some charts on fly ... thanks :-)
have you manage to make it work?

Drasko

--- Leon Palermo [EMAIL PROTECTED] wrote:
 Drasko,
 
 I hava a .jsp which accesses classes on the server
 that create charts and
 graphs.  They use the java.awt package to create the
 images in various
 formats.  These classes can display the charts in an
 applet or encode the
 graphics to a variety of formats (.jpg, .gif, .emf,
 .wmf, etc.).
 
 Leon
 
  Hey Leon,
 
  what would you like to do with the java.awt
 package on
  the server side?!?!?!
 
  Drasko
 
 
  --- Leon Palermo [EMAIL PROTECTED] wrote:
   Hey everyone,
  
   I have some server-side imaging classes that
 don't
   seem to find the java.awt
   package through tomcat.  I even manually added
 the
   class files from the
   java.awt package into my webapp's classes folder
 and
   I still get a
   NoClassDefFound error.  Is this a 'feature' of
   tomcat to ignore the java.awt
   package for speed purposes?  Thanks in advance.
  
   Leon Palermo
   Zedak Corporation
   Valhalla, NY
  
 
 
  __
  Do You Yahoo!?
  Yahoo! Messenger - Talk while you surf!  It's
 FREE.
  http://im.yahoo.com/
 


__
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/



Re: TOMAT slowing down a lot after a while

2000-10-24 Thread Paul Russell

On Tue, Oct 24, 2000 at 04:57:11AM -0400, Ted Husted wrote:
 I need to select a DBMS for an online auction application soon. Was
 going to use MySQL, but the PostgreSQL transaction support sounds
 attractive. Comments welcome.

Personally, I wouldn't go near any database system that doesn't
support transactions. MySQL is fast, and fine for simple database
applications (preferably with very few relations and not too many
JOINs), for anything more involved, I'd look at either postgresql,
or if your budget can take it, Oracle.

Paul

-- 
Paul Russell   [EMAIL PROTECTED]
Technical Director,   http://www.luminas.co.uk
Luminas Ltd.



RE: WEB-INF/lib

2000-10-24 Thread Kent

This is a known bug of Tomcat.

 |-Original Message-
 |From: [EMAIL PROTECTED]
 |[mailto:[EMAIL PROTECTED]]
 |Sent: October 24, 2000 12:17 PM
 |To: [EMAIL PROTECTED]
 |Subject: WEB-INF/lib
 |
 |
 |Hi All,
 |
 |I am trying to put my JDBC jar file in the application/WEB-INF/lib
 |directory but Tomcat doesn't add the jar file to its classpath
 |automatically.  Is there a config parameter in one of the
 |xml files to do
 |this?  Also the default "build" script for NT machines
 |says to put the jars
 |in application/lib instead of application/WEB-INF/lib.  I
 |tried it both
 |ways and it doesn't work.  I am restarting the server
 |after ant copies the
 |files to the appropriate directories.
 |
 |If I add the jar file to the CLASSPATH in the script to
 |start the tomcat
 |server it works, but I thought it was supposed to happen
 |automatically.
 |
 |
 |Thanks,
 |Ted.
 |




confusion on running Stand alone

2000-10-24 Thread John Bateman

Hi

I'm a bit confused over all the documentation I've been reading. It tells me
to run the tomcat server in stand alone mode and verify that I can get the
servlets working before I try running it in or out of process with another
webserver.

This I understand, but I can't seem to find an example on how to verify that
my stand alone configuration works.

The tomcat seems to start fine and when I telnet to the IP address of my
server on port 8080 (or even port 8007) there's a response from something
sitting there waiting for a connection, but, when I try accessing
http://serverip:8080/index.html OR http://serverip:8080/test/index.html I
always get DNS can't locate server errors.

The log files seem to be happy with the exception that I occasionally see
this error message in the tomcat.log file. the error is marked by *'s, I've
just included the whole log file as it's quite small and maybe the insight
will help.
(FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat)

Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat"
classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t
omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib
/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom
cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes
:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l
ib/jconn2.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Starting endpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
 Error reading request connection reset 

Thanks a million.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Bateman
Cyber World Group Inc.





RE: confusion on running Stand alone

2000-10-24 Thread Jagannathan, Giri (c)

jus try accessing http://serverip:8080 without the file index.html!!  It
worked for me..

-Original Message-
From: John Bateman [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 4:53 PM
To: Tomcat-User (E-mail)
Subject: confusion on running Stand alone


Hi

I'm a bit confused over all the documentation I've been reading. It tells me
to run the tomcat server in stand alone mode and verify that I can get the
servlets working before I try running it in or out of process with another
webserver.

This I understand, but I can't seem to find an example on how to verify that
my stand alone configuration works.

The tomcat seems to start fine and when I telnet to the IP address of my
server on port 8080 (or even port 8007) there's a response from something
sitting there waiting for a connection, but, when I try accessing
http://serverip:8080/index.html OR http://serverip:8080/test/index.html I
always get DNS can't locate server errors.

The log files seem to be happy with the exception that I occasionally see
this error message in the tomcat.log file. the error is marked by *'s, I've
just included the whole log file as it's quite small and maybe the insight
will help.
(FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat)

Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat"
classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t
omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib
/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom
cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes
:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l
ib/jconn2.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Starting endpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
 Error reading request connection reset 

Thanks a million.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Bateman
Cyber World Group Inc.




Re: confusion on running Stand alone

2000-10-24 Thread Ben Souther

You're getting DNS errors when you enter the "IP" number?



- Original Message -
From: Jagannathan, Giri (c) [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 4:51 PM
Subject: RE: confusion on running Stand alone


 jus try accessing http://serverip:8080 without the file index.html!!  It
 worked for me..

 -Original Message-
 From: John Bateman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 4:53 PM
 To: Tomcat-User (E-mail)
 Subject: confusion on running Stand alone


 Hi

 I'm a bit confused over all the documentation I've been reading. It tells
me
 to run the tomcat server in stand alone mode and verify that I can get the
 servlets working before I try running it in or out of process with another
 webserver.

 This I understand, but I can't seem to find an example on how to verify
that
 my stand alone configuration works.

 The tomcat seems to start fine and when I telnet to the IP address of my
 server on port 8080 (or even port 8007) there's a response from something
 sitting there waiting for a connection, but, when I try accessing
 http://serverip:8080/index.html OR http://serverip:8080/test/index.html I
 always get DNS can't locate server errors.

 The log files seem to be happy with the exception that I occasionally see
 this error message in the tomcat.log file. the error is marked by *'s,
I've
 just included the whole log file as it's quite small and maybe the insight
 will help.
 (FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat)

 Starting tomcat install="/usr/local/tomcat"
home="/usr/local/jakarta-tomcat"
 classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t

omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib
 /test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom

cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes
 :/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l
 ib/jconn2.jar"
 Context log: path="/admin" Automatic context load
 docBase="/usr/local/jakarta-tomcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
 docBase="/usr/local/jakarta-tomcat/webapps/admin"
 Starting endpoint port="8080"
 handler="org.apache.tomcat.service.http.HttpConnectionHandler"
 Starting endpoint port="8007"
 handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
  Error reading request connection reset 

 Thanks a million.

 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 John Bateman
 Cyber World Group Inc.






RE: confusion on running Stand alone

2000-10-24 Thread John Bateman

Hi

Thanks for the reply. I tried that also, and since there's a connector entry
, as seen below, for 'root' I put an index.html file (verified all
permissions on it) and called  http://serverIpd:8080/index.html also
nothing.

Context path="" docBase="webapps/ROOT" debug="0" reloadable="true" 
/Context

Very strange but then again it is the holloween season over here. :)


 -Original Message-
 From: Jagannathan, Giri (c) [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 4:52 PM
 To: '[EMAIL PROTECTED]'
 Subject: RE: confusion on running Stand alone


 jus try accessing http://serverip:8080 without the file
 index.html!!  It
 worked for me..

 -Original Message-
 From: John Bateman [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 4:53 PM
 To: Tomcat-User (E-mail)
 Subject: confusion on running Stand alone


 Hi

 I'm a bit confused over all the documentation I've been
 reading. It tells me
 to run the tomcat server in stand alone mode and verify that
 I can get the
 servlets working before I try running it in or out of process
 with another
 webserver.

 This I understand, but I can't seem to find an example on how
 to verify that
 my stand alone configuration works.

 The tomcat seems to start fine and when I telnet to the IP
 address of my
 server on port 8080 (or even port 8007) there's a response
 from something
 sitting there waiting for a connection, but, when I try accessing
 http://serverip:8080/index.html OR
http://serverip:8080/test/index.html I
always get DNS can't locate server errors.

The log files seem to be happy with the exception that I occasionally see
this error message in the tomcat.log file. the error is marked by *'s, I've
just included the whole log file as it's quite small and maybe the insight
will help.
(FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat)

Starting tomcat install="/usr/local/tomcat" home="/usr/local/jakarta-tomcat"
classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t
omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib
/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom
cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classes
:/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l
ib/jconn2.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/jakarta-tomcat/webapps/admin"
Starting endpoint port="8080"
handler="org.apache.tomcat.service.http.HttpConnectionHandler"
Starting endpoint port="8007"
handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
 Error reading request connection reset 

Thanks a million.

-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
John Bateman
Cyber World Group Inc.




mod_jk vs ApacheModuleJserv.dll on WinNT

2000-10-24 Thread Bill Stearns

I'm a little confused. In the documentation on
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

It recommends that, if you're including tomcat.conf or
tomcat-apache.conf in the Apache httpd.conf file, you
should remove these to use the mod_jk module instead
of the mod_jserv.

Should we be using the mod_jk instead of the
ApacheModuleJserv.dll ??

Thanks for your input, Bill Stearns

--





Converting from JRun

2000-10-24 Thread Bill Stearns

Can anyone point me to any documentation regarding
JRun - tomcat conversions ? Specifically in the area of
mapping a URL to a servlet ??

ie, in JRun, one would add a line to rules.properties
such as:

/url/   Yourservlet

What is the equivelent in Tomcat ??


thanks, Bill






RE: confusion on running Stand alone

2000-10-24 Thread Josh Knowles

try http://localhost:8080

-Original Message-
From: Stephen Adkins [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 2:13 PM
To: [EMAIL PROTECTED]
Subject: RE: confusion on running Stand alone


Hi,

Are you really entering something like

   http://192.9.2.200:8080/index.html

or are you literally entering

   http://serverip:8080/index.html

?  If you are doing the second, you are misunderstanding that "serverip"
should be replaced with the IP address of your server as in the first
example.


At 05:05 PM 10/24/00 -0400, you wrote:
Hi

Yeah, weird eh? The browser (IE) tells me "DNS Error or Cannot Find
Server".
As an aside I'm running apache on Port 80 and it serves up the web pages
fine (for other websites, NOT the ones Tomcat points to).

I appreciate your help.

 -Original Message-
 From: Ben Souther [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 24, 2000 5:03 PM
 To: [EMAIL PROTECTED]
 Subject: Re: confusion on running Stand alone


 You're getting DNS errors when you enter the "IP" number?



 - Original Message -
 From: Jagannathan, Giri (c) [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, October 24, 2000 4:51 PM
 Subject: RE: confusion on running Stand alone


  jus try accessing http://serverip:8080 without the file
 index.html!!  It
  worked for me..
 
  -Original Message-
  From: John Bateman [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, October 24, 2000 4:53 PM
  To: Tomcat-User (E-mail)
  Subject: confusion on running Stand alone
 
 
  Hi
 
  I'm a bit confused over all the documentation I've been
 reading. It tells
 me
  to run the tomcat server in stand alone mode and verify
 that I can get the
  servlets working before I try running it in or out of
 process with another
  webserver.
 
  This I understand, but I can't seem to find an example on
 how to verify
 that
  my stand alone configuration works.
 
  The tomcat seems to start fine and when I telnet to the IP
 address of my
  server on port 8080 (or even port 8007) there's a response
 from something
  sitting there waiting for a connection, but, when I try accessing
  http://serverip:8080/index.html OR
http://serverip:8080/test/index.html I
 always get DNS can't locate server errors.

 The log files seem to be happy with the exception that I occasionally see
 this error message in the tomcat.log file. the error is marked by *'s,
I've
 just included the whole log file as it's quite small and maybe the
insight
 will help.
 (FYI: /usr/local/tomcat is a symbolic link to /usr/local/jakarta-tomcat)

 Starting tomcat install="/usr/local/tomcat"
home="/usr/local/jakarta-tomcat"
 classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/t

omcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/li
b
 /test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tom

cat/lib/xml.jar:/usr/local/java/lib/tools.jar:.:./:/lib/classes.zip:/classe
s
 :/lib/dt.jar:/lib/tools.jar:/jre/lib/rt.jar:/usr/local/l
 ib/jconn2.jar"
 Context log: path="/admin" Automatic context load
 docBase="/usr/local/jakarta-tomcat/webapps/admin"
 Context log: path="/admin" Adding context path="/admin"
 docBase="/usr/local/jakarta-tomcat/webapps/admin"
 Starting endpoint port="8080"
 handler="org.apache.tomcat.service.http.HttpConnectionHandler"
 Starting endpoint port="8007"
 handler="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"
  Error reading request connection reset 

 Thanks a million.

 -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 John Bateman
 Cyber World Group Inc.






mod_jerv compilation

2000-10-24 Thread Bruce Williams

I am having trouble compiling a mod_jserv.so on the following system:

gcc -v
Reading specs from
/hf/local/lib/gcc-lib/sparc-sun-solaris2.6/2.95.2/specs
gcc version 2.95.2 19991024 (release)

uname -a
SunOS fayette 5.6 Generic_105181-20 sun4u sparc SUNW,Ultra-5_10

perl -v
This is perl, version 5.005_01 built for sun4-solaris-thread

 The problem:  when using Apache 1.3.9's apxs to compile Tomcat
mod_jserv.so

I get:
/ltmp/w3/bin/apxs -c *.c -o mod_jserv.so
gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite  -I/ltmp/w3/include
-c auto
change.c
gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite  -I/ltmp/w3/include
-c jser
v_ajpv11.c
.
.
.
gcc -DSOLARIS2=260 -DUSE_EXPAT -I../lib/expat-lite  -I/ltmp/w3/include
-c mod_
jserv.c
  -o autochange.so mod_jserv.o jserv_wrapper_win.o jserv_wrapper_unix.o
jserv_w
rapper.o jserv_watchdog.o jserv_utils.o jserv_status.o jserv_protocols.o
jserv_
mmap.o jserv_image.o jserv_balance.o jserv_ajpv12.o jserv_ajpv11.o
autochange.o
 -o mod_jserv.so
apxs:Break: Command failed with rc=16711680

Do you have any suggestions?
TIA

Bruce
-

G. Bruce Williams (Sr. Systems Analyst)
http://www.cis.uab.edu/info/staff/gbw/will.html
Computer and Information Sciences  e-mail:[EMAIL PROTECTED]
University of Alabama at Birminghamvoice:(205) 934-2213
Birmingham, AL 35294-1170  facsimile:(205) 934-5473
~





RE: admin user/password

2000-10-24 Thread Mike Tinnes


Thanks for the reply, but it's still not cooperating.. I've added 'tomcat'
to the web.xml with..

auth-constraint
   role-nameadmin/role-name
   role-nametomcat/role-name
/auth-constraint

but the login still fails after 3 attempts. I don't have to change the realm
do I?


-Original Message-
From: Joe Emenaker [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 24, 2000 5:05 PM
To: [EMAIL PROTECTED]
Subject: Re: admin user/password




 Hello,
 How do I determine/change/etc. the username and password for the /admin
 security context? I've tried the username/passwords from the
 tomcat-users.xml file, but these must relate to something else.

I don't know why nobody talks about this. I've seen numerous postings from
people trying to find out the name/password and all of the posts go,
curiously, unanswered.

Since I haven't yet been brought into the conspiracy of silence on this
matter, I'll tell you what I've found out so far.

Your tomcat-users.xml file seems to define the users that tomcat will know
*how* to authenticate. It also defines the "roles" that they're allowed to
participate in. The stock file, I believe, comes with three users ("tomcat",
"role1", and "both") and two roles ("tomcat" and "role1").

Then, in your web.xml in your admin directory, you should find a section
called "auth-constraint". This lists the roles that are allowed to use that
webapp. In my stock tomcat installation, the only role listed was "admin", a
role that WASN'T EVEN LISTED in tomcat-users.xml.

So, it would seem that there's no way to get into the admin webapp in the
default installation.

What bugs me is that, if you enter a valid username/password combination,
tomcat gives no indication that they're valid... it behaves as though the
name/password are invalid. I would have expected that it would come up with
a page that said that I didn't have the appropriate rights for that webapp
or something. Oh well

Anyway, what I ended up doing to get it to work was to add a
role-nametomcat/role-name in the auth-constraint section of the admin
web.xml. Then, I was able to log in as "tomcat"/"tomcat".

Now, lets see if you can help ME. When I go into the contextAdmin servlet
and click on "View All Contexts", I get:

java.lang.NullPointerException:
at ContextAdmin.init(ContextAdmin.java:46)


What do you get?

- Joe





jakarta and mod_jk

2000-10-24 Thread Hans K. Yoon

I tried to use mod_jk, but failed.
please help me.

I'm using 3.3dev version.
worker(connector) works well.

jk.log file has the following messages.


[jk_uri_worker_map.c (295)]: Into jk_uri_worker_map_t::uri_worker_map_open, there are 
3 rules
[jk_uri_worker_map.c (316)]: jk_uri_worker_map_t::uri_worker_map_open, done
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a match 
ajp12
[jk_worker.c (123)]: Into wc_get_worker_for_name ajp12
[jk_worker.c (127)]: wc_get_worker_for_name, done did not found a worker
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done without a 
match
=
above example, I tried to use ajp12 protocol to communicate with tomcat worker at 
localhost:8007.
But mod_jk only aborted.

I found the following result.
tomcat 3.1 has no mod_jk for apache, only jserv.
tomcat 3.3dev has mod_jk, without easy compiling:
(in solaris8, "-lrt" is missing ...)

If i use tomcat 3.2b6, I'll success?



Re: Tomcat bug?

2000-10-24 Thread Jeff Sum

sorry this only typing mistake.. my application was typed correctly but
still doesn't work

- Original Message -
From: "Mike Bremford" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, October 24, 2000 6:14 PM
Subject: RE: Tomcat bug?


 It may be a typo in your example, but shouldn't this be
file="test2/b.jsp".

  Content of a.jsp:
  html
  I am a.jsp %@ include file"test2/b.jsp" %
  /html
 






Tomcat setup permissions under linux

2000-10-24 Thread Pierre Métras

Hi all,

I want to test my application in a deployment context and try it under
linux.

I have set up a new PC with linux Debian 2.2, Sun JRE 1.3 and Tomcat 3.2B6.
When I untar the tomcat bin file, in the "/usr/local" directory, I noticed
that all files where owned by a user "500" and group "500". I checked in the
"/etc/passwd" that there's no user with id 500, so I choose to change the
property of all tomcat files and directories to "root.staff".

Now I created a "myapp" user that will own the application files, and I
don't want to give it access to root rights.

If I try to start tomcat from the "myapp" login, I obtain screenfull of
errors because tomcat can't access the "logs" and "work" directories. And
effectively, these directories are not created as they are on my development
environment.

Here come the questions:
[1] What should be tomcat files and directories permissions to allow access
to different users, under "/usr/local"? Must I run tomcat once as root to
create the missing directories and create initialization files?
[2] How should I start tomcat to give it the rights of some specific users
(and not root)? If I have two different users, should I need to start two
instances of tomcat?

Perhaps these are more linux questions and I'm not an expert in that field
but I want to setup my application with the right level of security on that
platform.
Thanks for your help.

Pierre Métras