Re: problem..plz help me out1

2002-06-11 Thread puneet sachar

hi

Arshad Mahmood

well i have changed the tomcat's server.xml file and
then only .i start working

in fact i have made new engine and new context in that
engine...sir

u want i can send u my server.xml file...and its there
below this mail


Puneet
--- Arshad Mahmood [EMAIL PROTECTED] wrote:
 Hi,
 
 What is in your server.xml. Have you defined a
 virtual host for puneet, and
 how have you defined the
 Context. Send yout server.xml as an attachment and
 we should be able to see
 what the problem is.
 
 Do you get a response by trying
 http://localhost:8080/yourcontext/servlet/abc
 (replace yourcontext with
 the name of your context).
 
 Regards,
 Arshad
 
 - Original Message -
 From: puneet sachar [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]
 Sent: Sunday, June 09, 2002 6:51 PM
 Subject: Re: problem..plz help me out
 
 
  I'm on win me platform ..
 
  and i don't understand one thing if a servlet
 works
  fine with this url
  http://localhost:8080/examples/servlet/abc
 
  then whatz worng with
 
  http://puneet:8080/servlet/abc
  or
  http://puneet:8080/sachar/servlet/abc
 
  i have done what exactly written in server.xml
 
  if u can help me out plz do that..this is my 4th
 day
  without work
 
  Puneet
 
 
  --- puneet sachar [EMAIL PROTECTED] wrote:
  
   --- Markus Kirsten [EMAIL PROTECTED]
   wrote:
Does the example servlets and JSP work?
   
Which platform do you use?
   
   
Markus
   
   
On lördag, juni 8, 2002, at 09:22 , puneet
 sachar
wrote:
   
 Hi friends, this is my 4th mail regarding my
single
 complain..

 I have install the tomcat 4.0.3 and its
 doing
   fine
as
 far .html files are concern but no .class
 and
   .jsp
 files are running on it

 I have asked 9-10 times abt same question
 again
and
 again and I got nothing from u guys there

 Plz help meÖI really stuck ..

 With this mail Iím sending my server.xml
 file
   and
 web.xml file which is in my
 virtualhost/WEB-INF/

 I know it is very tough for u to go in these
   files
and
 see for errors but plz..iím in need badly
 and
afater
 spending so much time here I some time feel
 like
 crying Ö and Iím in such a place and in such
 a
part of
 India..where I canít get ant local computer
 guy
with
 whom I can discuss ..plz do me a little
 favour

 Here are my problems
 1) no .class and .jsp working only html is
   working
 2) I have done all changes which were to
 made in
 server.xmlÖ)I have send the file also plz
 check
   it
and
 tell me any mistake if u find)
 3) Iím getting 404 error ..no servlet found
 4) And Iím able to excess the .class file
 vis

 http://localhost:80/examples/servlet/abc.class
  But not by making my own virtual host aand
 not
even
 the default root directory


 what i have is my own context named sachar
 and when i go

  
 .http://puneet:80/sachar/servlet/HelloworldServlet

 error -- 404

 See friends ..if u can help me Iíll be very
grateful
 to u

 Puneet



  
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World
 Cup
 http://fifaworldcup.yahoo.com
 ?xml version=1.0 encoding=ISO-8859-1?

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD
 Web
Application 2.3//EN

 http://java.sun.com/dtd/web-app_2_3.dtd;

 web-app
 servlet
 servlet-nameMyExample/servlet-name

 servlet-classHelloWorldExample/servlet-class
 run-as
 descriptionSecurity role for anonymous
access/description
 role-nametomcat/role-name
 /run-as
 /servlet

 servlet-mapping
 servlet-nameMyExample/servlet-name

 url-pattern/sachar/servlet/snoop/url-pattern
 url-pattern/servlet/*/url-pattern
 /servlet-mapping


 /web-app
 !-- Example Server Configuration File --
 !-- Note that component elements are nested
corresponding to their
  parent-child relationships with each
 other
--

 !-- A Server is a singleton element that
represents the entire JVM,
  which may contain one or more Service
instances.  The Server
  listens for a shutdown command on the
indicated port.

  Note:  A Server is not itself a
Container, so you may not
  define subcomponents such as Valves
 or
Loggers at this level.
  --

 Server port=8005 shutdown=SHUTDOWN
 
=== message truncated ===


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




HttpSessionContext deprecation reasons

2002-06-11 Thread Ushakov, Sergey N

Hi, we know HttpSessionContext is deprecated now as claimed to be unsecure.

Meanwhile it is very useful for some tasks. It is also not a big deal to
implement it in a propriatary web app.

But does anyone know of the reasons for deprecation? I could find any trace
of them...

Are the security issues really big? Should I think twice before I deploy an
app with such a mechanism inside?

Regards,
Sergey


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




AJPV13 + BASIC authentication bug fixed?

2002-06-11 Thread Klemm, Mirko
Title: AJPV13 + BASIC authentication bug fixed?






Hi,


Tomcat 4.0.1 had a bug that prevented BASIC authentication from working through Apache and AJPv13. The release notes are a bit unclear about whether this bug has been fixed with 4.0.3 or not. Does anyone know?

Regards,

Mirko


taskarena Software Engineering GmbH

Pennefeldsweg 12

D-53177 Bonn

Tel.: +49 228 5505 527

Fax : +49 228 94 39 0 16

E-Mail: [EMAIL PROTECTED]


Besuchen Sie uns im Internet unter:

Visit our website:

http://www.taskarena.net




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


Tomcat4.0 - in process config with Apache

2002-06-11 Thread Thomas Krebs

On http://jakarta.apache.org/tomcat/tomcat-3.3-doc/index.html, I found a
reference how to setup an in process configuration of Tomcat 3.3 with Netscape
and IIS.
I wonder whether this is also possible for Apache 1.3.2x with Tomcat 4? If yes,
how is it done and is this a robust setup.

Thanks,
Thomas
--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.



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




Re: tomcat-apache with webapp connector

2002-06-11 Thread @Basebeans.com

Subject: Re: tomcat-apache with webapp connector
From: Bruno V [EMAIL PROTECTED]
 ===
You asked for pointer : here they are :
http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html

Good luck !


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




Re: mod_jk2/webapp source releases? recommendation?

2002-06-11 Thread @Basebeans.com

Subject: Re: mod_jk2/webapp source releases? recommendation?
From: Bruno V [EMAIL PROTECTED]
 ===
For the source, I think that you have to use the CVS link (in 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/)

Many people complains for the lack of compiled connector and more 
generaly for an out of box Apache Tomcat integration.

You can find more info in 
http://bruno.vernay.free.fr/HowTo/Apache-tomcat/bWebServer/references.html

otisg wrote:
 Hello,
 
 I would like to install the latest Tomcat (4.1.3 beta 2 or some such)
 and integrate it with Apache 2.0.
 
 Question #1:
 -- I'm not sure if I should go with mod_webapp or mod_jk2.
 Any recommendations?
 Do both work with Apache 2.0?
 
 I've been looking for mod_webapp and can't find the sources that I could
 compile into mod_webapp.so shared object.
 I have looked here:
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/webapp/releas
 e/v1.2.0/src/
 (does not seem to include any *webapp* files, I grepped the archive)
 http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.3/bin/l
 inux/i386/
 (but this is for Tomcat 4.0.* and is precompiled).
 
 Question #2:
 - Where can I find mod_webapp source code that I can compile to build
 mod_webapp.so?
 
 Any help would be appreciated.
 
 Thank you,
 Otis
 P.S.
 People at Codesta have done a nice job at:
 http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_01.js
 p,
 however the above questions are not covered in their instructions.
 
 
 ___
 Sign up for FREE iVillage newsletters http://s.ivillage.com/rd/16705 .
 From health and pregnancy to shopping and relationships, iVillage
 has the scoop on what matters most to you. 
 


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




RE: Tomcat 3.3.1/Apache Virtual Host and Alias

2002-06-11 Thread Laurent Michenaud

Yes, that was the problem = Alias must begin with a capital 'A' 

Sorry for my vocabulary but that sucks !
because there is no xml parser error and there is
no error telling u that the config file is incorrect.

Thanks a lot.


 -Message d'origine-
 De : Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Envoyé : lundi 10 juin 2002 19:53
 À : 'Tomcat Users List'
 Objet : RE: Tomcat 3.3.1/Apache Virtual Host and Alias
 
 
 It looks like the only way for things not to be working
 is if the www.test.net isn't being added as a host alias
 on the Tomcat side.  Try Alias .../ with a capital 'A',
 i.e:
 
   Alias name=www.test.net / 
 
 I believe this will get it working.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, June 10, 2002 1:06 PM
  To: Tomcat Users List
  Subject: RE: Tomcat 3.3.1/Apache Virtual Host and Alias
  
  
  Requesting www.test.net/index.jsp logs :
  
  * In mod_jk.log :
  
  [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (351)]: Into
  jk_uri_worker_map_t::map_uri_to_worker
  [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (368)]: 
 Attempting to
  map URI '/index.jsp'
  [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (416)]:
  jk_uri_worker_map_t::map_uri_to_worker, Found a suffix 
 match ajp13 -
  *.jsp
  [Mon Jun 10 18:51:00 2002]  [jk_worker.c (123)]: Into
  wc_get_worker_for_name ajp13
  [Mon Jun 10 18:51:00 2002]  [jk_worker.c (127)]: 
  wc_get_worker_for_name,
  done  found a worker
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (865)]: Into
  jk_worker_t::get_endpoint
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (775)]: Into
  jk_endpoint_t::service
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (403)]: Into
  ajp13_marshal_into_msgb
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (537)]: 
  ajp13_marshal_into_msgb
  - Done
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (206)]: 
  sending to ajp13
  #334
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (645)]: 
 send_request 2:
  request body to send 0 - request body to resend 0
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
  ajp13 #47
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (584)]:
  ajp13_unmarshal_response: status = 404
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (591)]:
  ajp13_unmarshal_response: Number of headers is = 2
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
  ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html]
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
  ajp13_unmarshal_response: Header[1] [Content-Length] = [171]
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
  ajp13 #175
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
  ajp13 #2
  [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (549)]: Into
  jk_endpoint_t::done
  
  * In tc.log
  
  After tomcat load : ( there is no www.test.net, normal ? )
  2002-06-10 19:00:25 - ContextManager: Tomcat configured and 
 in stable
  state 
  2002-06-10 19:00:25 - ContextManager: Adding  www.test.fr:/ROOT
  2002-06-10 19:00:25 - ContextManager: Adding  www.test.com:/ROOT
  
  When i call www.test.net/index.jsp :
  2002-06-10 19:00:53 - ContextManager: Host = www.test.net
  2002-06-10 19:00:53 - ContextManager: Assertion failed: 
  container==null
  (no Default Context?)
  2002-06-10 19:00:53 - Ctx() : Status code:404 request:R( /index.jsp)
  msg:null
  
  
  Any ideas ?
  
  
   -Message d'origine-
   De : Larry Isaacs [mailto:[EMAIL PROTECTED]]
   Envoyé : lundi 10 juin 2002 18:47
   À : 'Tomcat Users List'
   Objet : RE: Tomcat 3.3.1/Apache Virtual Host and Alias
   
   
   Check the mod_jk log and make sure the www.test.net requests
   are being forwarded to Tomcat.  If so, set the debug level
   on SimpleMapper1 in server.xml to 1 and examine the
   Tomcat log to see how the www.test.net requests are being
   handled differently from www.test.com requests.  I currently
   don't see anything in your config files that would cause this
   not to work.
   
   Note that the debug attributes should be set a numeric value
   rather than info.  I would guess this would be equivalent
   to setting it to zero.
   
   Cheers,
   Larry
   
-Original Message-
From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 12:27 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 3.3.1/Apache Virtual Host and Alias


Hi,

I've Tomcat 3.3.1 and Apache running together with mod_jk.

I'm trying to setup alias for VirtualHost in the tomcat 
   configuration
but it doesnot work.

* Here what i have in httpd.conf :

NameVirtualHost 192.168.1.125:80

VirtualHost 192.168.1.125:80
DocumentRoot c:/adeuza/sites/fortunoclic
ServerName www.test.fr
ErrorLog c:\tmp\apache-error-testfr.log
CustomLog c:\tmp\apache-access-testfr.log common
/VirtualHost

VirtualHost 192.168.1.125:80
DocumentRoot 

Re: AW: need X running tomcat

2002-06-11 Thread Zsolt Koppany

Hi,

what is a headless option? Could you provide an example?

Zsolt

On Thursday 06 June 2002 10:51, Ralph Einfeldt wrote:
 Alternativly use JDK 1.4 with the headless option
 to create the images.

  -Ursprüngliche Nachricht-
  Von: Michael Reutter [mailto:[EMAIL PROTECTED]]
  Gesendet: Donnerstag, 6. Juni 2002 09:52
  An: Tomcat Users List
  Betreff: need X running tomcat
 
 
  my servlets need some fonts to generate some images.
  Now I have to do the following to start tomcat:


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




AW: AW: need X running tomcat

2002-06-11 Thread Ralph Einfeldt

Have a look at:
http://java.sun.com/j2se/1.4/docs/guide/awt/AWTChanges.html#headless
http://forum.java.sun.com/thread.jsp?forum=20thread=132877

 -Ursprüngliche Nachricht-
 Von: Zsolt Koppany [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 09:34
 An: Tomcat Users List
 Betreff: Re: AW: need X running tomcat
 
 
 Hi,
 
 what is a headless option? Could you provide an example?
 
 Zsolt
 

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




Tomcat and servlet

2002-06-11 Thread Thébault, Médérick

Hi again,

I would like to change the URL of my servlet.

It can be access thru http://localhost/servlet/MyServlet; but I would
like to avoid servlet part.

In every example that I saw, the servlet part was always in. Is there
a way to set up something like alias?

Thanx

Med

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




Re: JNDI lookup connection datasource microsoft sql server

2002-06-11 Thread John McAuley

Cheers Anthony

I was looking at that but needed confirmation.

Regards
john
- Original Message -
From: anthony.dodd [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 5:08 AM
Subject: Re: JNDI lookup connection datasource microsoft sql server


 Hi

 I've posted a solution see Generic DataSource Resource Factory
 Available. JDBC Data Source on the tomcat user maillist. I used the
 datadirect ConnectJDBC as I found the Microsoft implementation was very
 poor. The Microsoft JDBC is  just an older version of ConnectJDBC which
 datadirect felt was'nt going the right direction.

 Tony

 - Original Message -
 From: John McAuley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 2:17 AM
 Subject: JNDI lookup connection datasource microsoft sql server


 Hi folks,

 I am trying to use Microsoft's jdbc driver for ms sql with Tomcat and
am
 running into trouble with the JNDI lookup method.  I look for a datasource
 and get null.  If I use the class.forname method the driver is found and
 works perfectly but I am unable to get it working with the JNDI look up,
 This is very frustrating and seems to crop up a couple of times with
fellow
 users.  Any thoughts ??

 Help much appreciated.

 John

 Server.xml

  Context path=/tools docBase=tools debug=0 reloadable=true
 Resource name=jdbc/ToolsDB auth=Container
 type=javax.sql.DataSource/
 ResourceParams name=jdbc/ToolsDB
 parameter
 nameuser/name
 valueuser/value
 /parameter
 parameter
 namepassword/name
 valuepassword/value
 /parameter
 parameter
 namedriverClassName/name

 valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
 /parameter
 parameter
 namedriverName/name

 valuejdbc:microsoft:sqlserver://IP-ADDRESS-of-server:1433/value
 /parameter
 /ResourceParams
 /Context

 web.xml

  resource-ref
   description
   Resource reference to a factory for java.sql.Connection
  instances that may be used for talking to a particular
  database that is configured in the server.xml file.
  /description
 res-ref-name
  jdbc/ToolsDB
  /res-ref-name
  res-type
  javax.sql.DataSource
  /res-type
  res-auth
  Container
  /res-auth
 /resource-ref

 Code Snippet

   Context ctx = new InitialContext();
  Context envCtx = (Context)ctx.lookup(java:comp/env);
  out.println(Got first context.);

 NamingEnumeration enum
 =ctx.listBindings(java:comp/env/jdbc);
   while( enum.hasMore() ) {
out.println(Binding:  +
 ((Binding)enum.next()).toString() + br);
   }
 DataSource ds =
 (DataSource)envCtx.lookup(jdbc/ToolsDB);
 out.println(Got the second context. + br +
 br);

   if (ds != null)
   {
  out.println(Getting the connection from the
 context.);
  Connection connection = ds.getConnection();
 }else{
 out.println(not working);
 }




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





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




Re: Tomcat and servlet

2002-06-11 Thread Markus Kirsten

Hi Med,
Deploy your servlet in the ROOT context instead.


Markus


On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:

 Hi again,

 I would like to change the URL of my servlet.

 It can be access thru http://localhost/servlet/MyServlet; but I would
 like to avoid servlet part.

 In every example that I saw, the servlet part was always in. Is there
 a way to set up something like alias?

 Thanx

 Med

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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




Re: Re[3]: Roles in JNDIRealms

2002-06-11 Thread Cristina Perez Sanchez

Hi,

first, thanks for your answers.

I would like to ask another question. I use Tomcat
4.0.3 and so I have to set roleSearch and create group
objects that contain the DNs of users associated to.
Which objectclass must be these group entries?
groupOfUniqueNames objectclass? group class? Are both
valid?


Thanks,

Cristina


--- Jonathan Eric Miller [EMAIL PROTECTED]
wrote:
 Jacob,
 
 I'm happy to say that there is a new bind as user
 mode in Tomcat 4.1.3
 which verifies the user password by binding as them
 to the directory, rather
 than querying the directory for the password. You
 are correct, previously it
 wouldn't work with Active Directory (as well as any
 other directory that
 didn't store it's passwords in the specific format
 that Tomcat wanted), but,
 now it does. Now, if you don't set the userPassword
 attribute, it operates
 in bind as user mode. They haven't updated the
 main end-user documentation
 on JNDIRealm yet, but, if you look at the Catalina
 developer docs, you'll
 see what I'm referring to if you look at the
 JNDIRealm class.
 
 Jon
 
 - Original Message -
 From: Ryan [EMAIL PROTECTED]
 To: Tomcat Users List
 [EMAIL PROTECTED]; Jacob Kjome
 [EMAIL PROTECTED]
 Sent: Monday, June 10, 2002 4:55 PM
 Subject: Re: Re[2]: Roles in JNDIRealms
 
 
  Jacob,
  I took a quick look at the source, but it looks
 like
  the passwords are digested here also (i.e. will
 not
  work with Active Directory). From what I
 understand,
  with AD the authentication has to be done _on_ the
  server.
  Thanks,
  Ryan
 
  --- Jacob Kjome [EMAIL PROTECTED] wrote:
   Hello Ryan,
  
   Check this out:
  
 http://www.peacetech.com/java/files/apache/tomcat/
  
   I haven't used it (nor have I used JNDIRealm at
 all
   so far), but I
   grab stuff that looks like useful info off the
 list
   and put it in my
   Vault ( http://www.personalmicrocosms.com/ )
 from
   time to time. Hopefully it is useful for you.
  
   Jake
  
   Monday, June 10, 2002, 3:18:15 PM, you wrote:
  
   R Jonathan,
   R This is sort of off subject, but does your
 Active
   R Directory setup work for Authentication?? It
   seems to
   R me that it wouldn't since there is no
   userPassword
   R attribute in AD, but I am hoping I'm wrong.
   R Thanks,
   R Ryan
  
   R --- Jonathan Eric Miller
 [EMAIL PROTECTED]
   R wrote:
If you are using Tomcat 4.1.3, there are two
   modes
that you can use for
checking roles. If you set roleSearch, it
 will
   look
for search for group
objects that contain a list of users for each
   group.
If you set
userRoleName, it will get the group
 information
   out
of the user's entry
instead. i.e. you don't need separate group
   objects.
   
If you are using Active Directory, I found
 that
   you
can use a setup similar
to the following.
   
This goes in server.xml,
   
Realm
   
 className=org.apache.catalina.realm.JNDIRealm
 debug=99
 connectionName=myadminuser@mydomain
 connectionPassword=myadminpassword
 connectionURL=ldap://mydomaincontroller;
 userBase=cn=Users, dc=mydomain
 userRoleName=memberOf

 userSearch=(userPrincipalName={0}@mydomain)/
   
Group membership is stored in an attribute
 named
memberOf in Active
Directory. myadminuser doesn't really have to
 be
   an
admin user in AD. It
just has to have read permission to the
 memberOf
attribute which is visible
to normal user accounts by default.
   
This goes in web.xml,
   
security-constraint
 web-resource-collection
 
 web-resource-nameTomcat/web-resource-name
  url-pattern/*/url-pattern
 /web-resource-collection
 auth-constraint
   
   
   R
  
 

role-nameCN=Tomcat,CN=Users,DC=mydomain/role-name
 /auth-constraint
/security-constraint
login-config
 auth-methodBASIC/auth-method
 realm-nameTomcat/realm-name
/login-config
   
In the above example, I created a group in
 the
   Users
container named Tomcat.
If you want to see how things are organized
 in
Active Directory, you can use
LDIFDE to dump the directory into an LDIF
 file.
That's how I figured it out.
   
Jon
   
- Original Message -
From: Cristina Perez Sanchez
   [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 9:10 AM
Subject: Roles in JNDIRealms
   
   
 Hi,

 could anyone tell me what objectclass must
 be
group
 entries that represent roles associated to
   users
in
 JNDIRealms?? I use groupOfUniqueNames as
objectclass
 but I would like to know if the objectclass
   group
is
 more proper or if the objectclass isn´t
   relevant.


 Thanks for advance,

 Cristina


  
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA
 World
   Cup
 http://fifaworldcup.yahoo.com

 
=== message truncated ===



Re: AJPV13 + BASIC authentication bug fixed?

2002-06-11 Thread Markus Kirsten

Hi Mirko,
I didn't know that. 4.0.3 seems to work fine for me with BASIC 
authentication as well as form based through Apache as well as directly. 
Or do you mean if you set up HTTP Authentication in Apache?


Markus

On tisdag, juni 11, 2002, at 09:18 , Klemm, Mirko wrote:

 Hi,

 Tomcat 4.0.1 had a bug that prevented BASIC authentication from working 
 through Apache and AJPv13. The release notes are a bit unclear about 
 whether this bug has been fixed with 4.0.3 or not. Does anyone know?

 Regards,
 Mirko

 taskarena Software Engineering GmbH
 Pennefeldsweg 12
 D-53177 Bonn
 Tel.: +49 228 5505 527
 Fax : +49 228 94 39 0 16
 E-Mail: [EMAIL PROTECTED]

 Besuchen Sie uns im Internet unter:
 Visit our website:
 http://www.taskarena.net

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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




AW: ssl configuration on tomacat 4.0

2002-06-11 Thread Sven Woltmann

1.) You've set the keystorePass parameter in the Connector element, it
does belong into the Factory element.  Try to also set your keystore file
there:

Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS
keystoreFile= keystorePass=/

It works in my configuration.

2.) Check your log files, they usually give you a hint about what went wrong
when you can't load a page.


Sven



 -Ursprüngliche Nachricht-
 Von: sunmeet [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 01:38
 An: [EMAIL PROTECTED]
 Betreff: ssl configuration on tomacat 4.0
 
 
 hi,
 i am tryingto configure Tomcat as a secure web server using 
 SSL on windows 2000
 i have installed the tomcat 4.0
 and j2sdk1.4.0
 my tomact is working alright that is the unsecure tomcat
 so far to make secure web server i have done this
 
 1. i have created the certificate by
 %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA
 
 2. I have made changes in the server.xml
 
 !-- Define a non-SSL HTTP/1.1 Connector on port 80 --
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=80 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set 
 connectionTimeout value 
  to -1 --
 
 !-- Define an SSL HTTP/1.1 Connector on port 8443 --
 
 Connector 
 className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true keystorePass=changeit
 acceptCount=10 debug=0 scheme=https secure=true
   Factory 
 className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 
 
 3. now when i do https://localhost:8443/
 it gives me oage not found but
 http://localhost works
 
 can give me some what should i do
 
 
  
 

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




RE: Tomcat and servlet

2002-06-11 Thread Marek, Tomas

Could give more details, please.

tom

-Original Message-
From: Markus Kirsten [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, June 11, 2002 10:36 AM
To: Tomcat Users List
Subject: Re: Tomcat and servlet

Hi Med,
Deploy your servlet in the ROOT context instead.


Markus


On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:

 Hi again,

 I would like to change the URL of my servlet.

 It can be access thru http://localhost/servlet/MyServlet; but I would
 like to avoid servlet part.

 In every example that I saw, the servlet part was always in. Is there
 a way to set up something like alias?

 Thanx

 Med

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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

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




Re: Tomcat and servlet

2002-06-11 Thread Jean-Luc BEAUDET

Marek, Tomas a écrit :

 Could give more details, please.

 tom

 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 10:36 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and servlet

 Hi Med,
 Deploy your servlet in the ROOT context instead.

 Markus

 On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:

  Hi again,
 
  I would like to change the URL of my servlet.
 
  It can be access thru http://localhost/servlet/MyServlet; but I would
  like to avoid servlet part.
 
  In every example that I saw, the servlet part was always in. Is there
  a way to set up something like alias?
 
  Thanx
 
  Med
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
 

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

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

Well,

The other way is to simply Deploy your own servlet zone and add a
Your_Zone/WEB-INF/web.xml
to bypass the default web.xml responsible of this mapping...

Hope this help.

Jean-Luc :O)



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




RE: Tomcat and servlet

2002-06-11 Thread Thébault, Médérick

Thanx for the answers, It helps the debate but...

I already deployed my servlet as mentionned in the documentation
(servlet path is webapps/myservlet to act as in webapps/examples).
Web.xml is quite simple as nothing is set in it. See below :

!DOCTYPE web-app
PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
http://java.sun.com/dtd/web-app_2_3.dtd;
web-app
/web-app

But I still need to enter localhost/mypath/servlet/myservlet to access
it.

So Jean-Luc, I think I do not need to try your advice or am I completly
wrong and missing something essential?

And Markus, what do you mean by ROOT context? Setting ROOT in
conf/server.xml as /mypath/servlet will solve the case?

Thanx in advance,

Cheers.

Med

-Message d'origine-
De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 11 juin 2002 10:48
À : Tomcat Users List
Objet : Re: Tomcat and servlet


Marek, Tomas a écrit :

 Could give more details, please.

 tom

 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 10:36 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and servlet

 Hi Med,
 Deploy your servlet in the ROOT context instead.

 Markus

 On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:

  Hi again,
 
  I would like to change the URL of my servlet.
 
  It can be access thru http://localhost/servlet/MyServlet; but I
would
  like to avoid servlet part.
 
  In every example that I saw, the servlet part was always in. Is
there
  a way to set up something like alias?
 
  Thanx
 
  Med
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
 

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

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

Well,

The other way is to simply Deploy your own servlet zone and add a
Your_Zone/WEB-INF/web.xml
to bypass the default web.xml responsible of this mapping...

Hope this help.

Jean-Luc :O)



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


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




Re: Tomcat and servlet

2002-06-11 Thread Jean-Luc BEAUDET

Thébault, Médérick a écrit :

 Thanx for the answers, It helps the debate but...

 I already deployed my servlet as mentionned in the documentation
 (servlet path is webapps/myservlet to act as in webapps/examples).
 Web.xml is quite simple as nothing is set in it. See below :

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 /web-app

 But I still need to enter localhost/mypath/servlet/myservlet to access
 it.

 So Jean-Luc, I think I do not need to try your advice or am I completly
 wrong and missing something essential?

 And Markus, what do you mean by ROOT context? Setting ROOT in
 conf/server.xml as /mypath/servlet will solve the case?

 Thanx in advance,

 Cheers.

 Med

 -Message d'origine-
 De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 11 juin 2002 10:48
 À : Tomcat Users List
 Objet : Re: Tomcat and servlet

 Marek, Tomas a écrit :

  Could give more details, please.
 
  tom
 
  -Original Message-
  From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 10:36 AM
  To: Tomcat Users List
  Subject: Re: Tomcat and servlet
 
  Hi Med,
  Deploy your servlet in the ROOT context instead.
 
  Markus
 
  On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:
 
   Hi again,
  
   I would like to change the URL of my servlet.
  
   It can be access thru http://localhost/servlet/MyServlet; but I
 would
   like to avoid servlet part.
  
   In every example that I saw, the servlet part was always in. Is
 there
   a way to set up something like alias?
  
   Thanx
  
   Med
  
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 Well,

 The other way is to simply Deploy your own servlet zone and add a
 Your_Zone/WEB-INF/web.xml
 to bypass the default web.xml responsible of this mapping...

 Hope this help.

 Jean-Luc :O)

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

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

Well...

As your web.xml is empty, no new directives can bypass the default one...

Try to add smth like:

../..

servlet
servlet-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/MyServlet/url-pattern
/servlet-mapping

../..

This could do the trick. I think that all of this would be described in the
servlet API 2.3.

Hope this help.

Jean-Luc :O)





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




no way to avoid log ?

2002-06-11 Thread Frédéric Laurent

Hello,

I'm still trying to configure tomcat to avoid logs (in files or on the 
console...)
After the deletion of all the xml statements concerning Logger and
Valve, there are still numerous logs on my console...
I set all the servlet/object debug parameter to 0 value, but it seems to
  be insufficient...

for instance :
...
WebappLoader[/admin]: Deploy ...
...

In the WebAppLoader class (org.apache.catalina.loader), a
private log method is declared. These method writes logs on a logger if
one is defined, but if there is no logger available, System.out.println
is called !

 private void log(String message) {
[...]
 if (logger != null)
 logger.log(WebappLoader[ + container.getName() + ]: 
+ message);
 else {
[...]
 System.out.println(WebappLoader[ + containerName
+ ]:  + message);

So what is the conclusion ?
If I don't want any log, do I have to patch all classes in which such a
method is used ? or do I miss something ?

thanks in advance

-- 
Frédéric Laurent
http://www.opikanoba.org



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




Re: Tomcat and servlet

2002-06-11 Thread Markus Kirsten

There's a folder named ROOT in your webapp directory. Put your servlet 
into the classes folder under WEB-INF and then replace the DD with yours 
(actually not needed just to run it).

Hope this helps!


Markus


On tisdag, juni 11, 2002, at 11:34 , Jean-Luc BEAUDET wrote:

 Thébault, Médérick a écrit :

 Thanx for the answers, It helps the debate but...

 I already deployed my servlet as mentionned in the documentation
 (servlet path is webapps/myservlet to act as in webapps/examples).
 Web.xml is quite simple as nothing is set in it. See below :

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 /web-app

 But I still need to enter localhost/mypath/servlet/myservlet to access
 it.

 So Jean-Luc, I think I do not need to try your advice or am I completly
 wrong and missing something essential?

 And Markus, what do you mean by ROOT context? Setting ROOT in
 conf/server.xml as /mypath/servlet will solve the case?

 Thanx in advance,

 Cheers.

 Med

 -Message d'origine-
 De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 11 juin 2002 10:48
 À : Tomcat Users List
 Objet : Re: Tomcat and servlet

 Marek, Tomas a écrit :

 Could give more details, please.

 tom

 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 10:36 AM
 To: Tomcat Users List
 Subject: Re: Tomcat and servlet

 Hi Med,
 Deploy your servlet in the ROOT context instead.

 Markus

 On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:

 Hi again,

 I would like to change the URL of my servlet.

 It can be access thru http://localhost/servlet/MyServlet; but I
 would
 like to avoid servlet part.

 In every example that I saw, the servlet part was always in. Is
 there
 a way to set up something like alias?

 Thanx

 Med

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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

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

 Well,

 The other way is to simply Deploy your own servlet zone and add a
 Your_Zone/WEB-INF/web.xml
 to bypass the default web.xml responsible of this mapping...

 Hope this help.

 Jean-Luc :O)

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

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]

 Well...

 As your web.xml is empty, no new directives can bypass the default 
 one...

 Try to add smth like:

 ../..

 servlet
 servlet-nameMyServlet/servlet-name
 servlet-classMyServlet/servlet-class
 /servlet
 servlet-mapping
 servlet-nameMyServlet/servlet-name
 url-pattern/MyServlet/url-pattern
 /servlet-mapping

 ../..

 This could do the trick. I think that all of this would be described in 
 the
 servlet API 2.3.

 Hope this help.

 Jean-Luc :O)





 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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




AW: no way to avoid log ?

2002-06-11 Thread Ralph Einfeldt

In this case implementing and defining a 'QuietLogger' would help.
(A logger of your own that just has empty methods)
This way you wouldn't have to patch tomcat sources.

If this would be enough I'm not shure. Didn't look at the tomcat 
sources and didn't try it on my own.

 -Ursprüngliche Nachricht-
 Von: Frédéric Laurent [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 12:43
 An: Tomcat Users List
 Betreff: no way to avoid log ?
 
 In the WebAppLoader class (org.apache.catalina.loader), a
 private log method is declared. These method writes logs on a 
 logger if one is defined, but if there is no logger available, 
 System.out.println is called !

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




security-constraints

2002-06-11 Thread Dennis van den Berg

Hi all,

According to the servlet 2.3 specs, the longest path-prefix is used when determining 
which servlet-mapping or which security-constraint is to be used.

However when I specify the following security-constraint's:

  security-constraint
web-resource-collection
  web-resource-nameCollection1/web-resource-name
  url-pattern/*/url-pattern
/web-resource-collection
auth-constraint
  role-namerole1/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
  /security-constraint
  security-constraint
web-resource-collection
  web-resource-nameCollection2/web-resource-name
  url-pattern/view/*/url-pattern
/web-resource-collection
auth-constraint
  role-namerole2/role-name
/auth-constraint
user-data-constraint
  transport-guaranteeNONE/transport-guarantee
/user-data-constraint
  /security-constraint

A user which is in role2 is denied access to url's which start with /view/*, and it 
seems that the order in which I specify the security-constraint's mathers?

Am I missing something?

Thanks,


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




RE: Tomcat/mod_jk/Apache error

2002-06-11 Thread Mark Annal

Do you start Tomcat and Apache at the same time? If so it is likely that Tomcat has 
not fully started up when Apache tries to connect to the connector socket.

I found this with mod_webapp and a five second pause in my startup script solved it.

_

Mark Annal   e-mail: [EMAIL PROTECTED]
TARGUSinfo   phone : (585) 598-7011
255 Woodcliff Drive  fax   : (585) 598-7001
Fairport, NY 14450   web   : www.targusinfo.com
_


-Original Message-
From: PJ Crump [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 2:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/mod_jk/Apache error


Hello, 
I have gotten over a lot of hurldes in getting Apache  tomcat to talk, now I'm down 
to this..

Im receiving this error in mod_jk.log when I start apache:

[Wed Jun 12 01:04:21 2002]  [jk_connect.c (151)]: jk_open_socket, connect() failed 
errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_ajp_common.c (599)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_connect.c (151)]: jk_open_socket, connect() failed 
errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_ajp_common.c (599)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

Can anyone tell me what this means? and (hopefully) how to fix it.


- PJ

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




Newbie Question about logging

2002-06-11 Thread ben


Hi All,

I have just started using 1.4 and using the application log files.

These are great for build errors etc but how can I get my servlets to write
runtime errors to that log (ie ORA errors).

At the moment my catches just write to System.out.println as I hoped the
logs would receive standard err?

Any help is very much appreciated.


Ben Wrigley


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




JSP examples error but servelts examples running

2002-06-11 Thread Lynne Gurney

hello everyone!!

I am a new Tomcat user and am anxious to get things moving. However I have
come across what I can see as a common error that the servlet examples run
but the jsps do not. I have hunted through the archives and tried the advice
that has already been given. But have still not been able to solve the
problem. So here is what I have done so far 

Firstly when I start Tomcat I get a command line error but it still runs 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 7 column -1
org.xml.sax.SAXParseException: Element servlet does not allow init-param
here.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

Versions:
Tomcat-Standalone 4.0
Windows 2000
j2sdk1.4.0_01

Environment variables
CATALINA_HOME Tomcat home directory
CATALINA_BASE Tomcat home directory
JAVA_HOME jdk home directory
PATH includes C:\j2sdk1.4.0_01\bin and C:\j2sdk1.4.0_01\lib (tools.jar)

Can anyone help? Of course this looks to me like it is a jsp compilation
error. This is the examples log entry 

2002-06-11 12:02:56 jsp: init
2002-06-11 12:11:11 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

newbie question urgent plz

2002-06-11 Thread Vikramjit Singh


 hi all,
 
i am sending this mail again. plz somebody cud solve my problem.

 i have installed tomcat 4.0.3 and have been breaking my head since 15
 days. I am trying to add a context CorpMIS, but its not getting added. I
 have added the following lines in server.xml
 
 Context path=/CorpMIS 
  docBase=CorpMIS 
  crossContext=true
  debug=0 
   reloadable=true 
  trusted=false / 
 
 
  but when i type the url in the address bar of the browser its giving me
 
 description The requested resource (/CorpMIS) is not available.
 earlier i was working on tomcat 3.2.1 and its works perfectly fine without
 any problem.
 
 Could somebody throw some light. Thanking in advance.
 
 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031
 

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




RE: newbie question urgent plz

2002-06-11 Thread Chris Campbell


What files are in the context? Do you have a
webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager list,
and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz
 
 
 
  hi all,
  
 i am sending this mail again. plz somebody cud solve my problem.
 
  i have installed tomcat 4.0.3 and have been breaking my 
 head since 15
  days. I am trying to add a context CorpMIS, but its not 
 getting added. I

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




RE: newbie question urgent plz

2002-06-11 Thread Vikramjit Singh

yeah the directory structure is exactly the same.
how do i check the mananger list i am typing http://localhost:8080/manager
its asking for password.


Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Chris Campbell [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 4:35 AM
To: 'Tomcat Users List'
Subject: RE: newbie question urgent plz



What files are in the context? Do you have a
webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager list,
and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz
 
 
 
  hi all,
  
 i am sending this mail again. plz somebody cud solve my problem.
 
  i have installed tomcat 4.0.3 and have been breaking my 
 head since 15
  days. I am trying to add a context CorpMIS, but its not 
 getting added. I

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

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




Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters



-Original Message-
From: Geoff Peters 
Sent: June 7, 2002 11:12 AM
To: Tomcat Users List
Subject: Tomcat Unexplained Shutdown


I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based faxing 
application that users can attach a document to send to a server process that sends it 
as an attachment. This is done using servlets. Every so often, if a user uploads an 
attachment the server doesn't like, it shuts down Tomcat, other times it seems if the 
user tries to view a file on the server that doesn't exist, the Tomcat server shuts 
itself down. This is very annoying, and the customer is not impressed - is there is a 
way to simply throw an exception and continue running, instead of Tomcat shutting 
itself down? I can't really be more specific as there are no errors in the log files 
to correspond to these occurrences, all I know is that it happens and makes the app 
look WAY less stable than if it was built using ASP's and running under IIS.. 

Any suggestions?

Geoff


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


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




Customize Tomcat error pages

2002-06-11 Thread Markus Kirsten

How do I configure standard error pages like 403, 404 etc. for Tomcat?

I've gone through the Tomcat documentation breifly but can't find 
anything about it.


Markus


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




Re: newbie question urgent plz

2002-06-11 Thread Markus Kirsten

Hi,
Check your tomcat-users file located in /conf/ and add an account with 
the role manager or change an existing one.

Good luck!


Markus


On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

 yeah the directory structure is exactly the same.
 how do i check the mananger list i am typing 
 http://localhost:8080/manager
 its asking for password.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Chris Campbell [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:35 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie question urgent plz



 What files are in the context? Do you have a
 webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager 
 list,
 and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz



 hi all,

 i am sending this mail again. plz somebody cud solve my problem.

 i have installed tomcat 4.0.3 and have been breaking my
 head since 15
 days. I am trying to add a context CorpMIS, but its not
 getting added. I

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

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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




Re: Customize Tomcat error pages

2002-06-11 Thread Tim Funk

Its part of the Servlet Specification and not unique to Tomcat. Place 
this snippet into web.xml to redirect page not found errors to 
/errorpage_404.jsp.

error-page
   error-code404/error-code
   location/errorpage_404.jsp/location
/error-page

-Tim

Markus Kirsten wrote:
 How do I configure standard error pages like 403, 404 etc. for Tomcat?
 
 I've gone through the Tomcat documentation breifly but can't find 
 anything about it.
 
 
 Markus 


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




Auto Start Tomcat

2002-06-11 Thread Wynn Ricks

Can anybody out there please tell me how to AutoStart Tomcat in the background on a 
RedHat Linux box without having to log in and start the service manually?

Thanks for any help in advance


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




RE: Auto Start Tomcat

2002-06-11 Thread FEDERICO MARTIN LARA

In S.u.S.E. is done with the rc scripts (/etc/rc.d). Tomcat start when the
system starts.
Probably in Redhat it works of the same form.

Try to copy the rc scripts of S.u.S.E to your RedHat.

More information in www.suse.de

-Mensaje original-
De: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 11 de junio de 2002 13:57
Para: Tomcat Users List (E-mail)
Asunto: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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


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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread FEDERICO MARTIN LARA

Great!

Have you got the sevlets?.

-Mensaje original-
De: Geoff Peters [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 11 de junio de 2002 13:34
Para: [EMAIL PROTECTED]
Asunto: Tomcat Unexplained Shutdown




-Original Message-
From: Geoff Peters
Sent: June 7, 2002 11:12 AM
To: Tomcat Users List
Subject: Tomcat Unexplained Shutdown


I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based
faxing application that users can attach a document to send to a server
process that sends it as an attachment. This is done using servlets. Every
so often, if a user uploads an attachment the server doesn't like, it shuts
down Tomcat, other times it seems if the user tries to view a file on the
server that doesn't exist, the Tomcat server shuts itself down. This is very
annoying, and the customer is not impressed - is there is a way to simply
throw an exception and continue running, instead of Tomcat shutting itself
down? I can't really be more specific as there are no errors in the log
files to correspond to these occurrences, all I know is that it happens and
makes the app look WAY less stable than if it was built using ASP's and
running under IIS..

Any suggestions?

Geoff


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


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


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




RE: Newbie Question about logging

2002-06-11 Thread Wagoner, Mark

Take a look at Log4j

http://jakarta.apache.org/log4j/docs/index.html



-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: Newbie Question about logging



Hi All,

I have just started using 1.4 and using the application log files.

These are great for build errors etc but how can I get my servlets to write
runtime errors to that log (ie ORA errors).

At the moment my catches just write to System.out.println as I hoped the
logs would receive standard err?

Any help is very much appreciated.


Ben Wrigley


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

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




Statistic and Tomcat 4.x

2002-06-11 Thread info

Hi,

how are you guys getting user access statistics about your apps running on Tomcat?
Normaly I use Webtrends or Webanalyses. Is that possible with Tomcat? 
Can someone give comments on this?

Thanks! Rainer




jk_nt_service.exe with Tomcat V4.0.3

2002-06-11 Thread charles . collin

Hi Folks
Is jk_nt_service.exe compatible with Tomcat V4.0.3? There is no copy in the
V4.0.3 directory structure.
There is the copy in the V3.3.1 directory. Is that version specific?
Thanks for any help,
Charlie.

Charles Collin
Software Engineer
eSolutions ITS
BT Ignite Solutions

   Tel: +44 (01442) 208756
   FAX: +44 (01442) 208757
   Mobile:  +44 (07764) 144289
   e-mail:  [EMAIL PROTECTED]
   Address: pp 421, 
Anzani House,
Trinity Avenue,
FELIXSTOWE, 
Suffolk,
IP11 4XB,
UK.

British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 180.

This electronic message contains information from British Telecommunications
plc which may be privileged or confidential. The information is intended to
be for the use of the individual(s) or entity named above. If you are not
the intended recipient be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us by telephone or
email (to the numbers or address above) immediately.


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




RE: jk_nt_service.exe with Tomcat V4.0.3

2002-06-11 Thread Wagoner, Mark

I don't know if it is compatible or not, but it is not necessary.  The
Tomcat 4.x installer includes a run as service option during installation.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:14 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: jk_nt_service.exe with Tomcat V4.0.3


Hi Folks
Is jk_nt_service.exe compatible with Tomcat V4.0.3? There is no copy in the
V4.0.3 directory structure.
There is the copy in the V3.3.1 directory. Is that version specific?
Thanks for any help,
Charlie.

Charles Collin
Software Engineer
eSolutions ITS
BT Ignite Solutions

   Tel: +44 (01442) 208756
   FAX: +44 (01442) 208757
   Mobile:  +44 (07764) 144289
   e-mail:  [EMAIL PROTECTED]
   Address: pp 421, 
Anzani House,
Trinity Avenue,
FELIXSTOWE, 
Suffolk,
IP11 4XB,
UK.

British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 180.

This electronic message contains information from British Telecommunications
plc which may be privileged or confidential. The information is intended to
be for the use of the individual(s) or entity named above. If you are not
the intended recipient be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us by telephone or
email (to the numbers or address above) immediately.


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

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




AW: Tomcat Unexplained Shutdown

2002-06-11 Thread Ralph Einfeldt

An unintended shutdown of tomcat whithout a log message
typically indicates a problem in the VM or in a native library.

- Whick JDK are you using (Vendor and version).
- Did you try other JDK's (other version, other vendor)
- Do you use tomcat standalone or behind a web server
  - If behind a web server which one, and which
connector in which version do you use ?
- Do you use any library that includes native libraries ?
  - e.g. JDBC Driver

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Tomcat Unexplained Shutdown
snip/
 I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a 
 web based faxing application that users can attach a document 
 to send to a server process that sends it as an attachment. 
 This is done using servlets. Every so often, if a user 
 uploads an attachment the server doesn't like, it shuts down 
 Tomcat, other times it seems if the user tries to view a file 
 on the server that doesn't exist, the Tomcat server shuts 
 itself down. This is very annoying, and the customer is not 
 impressed - is there is a way to simply throw an exception 
 and continue running, instead of Tomcat shutting itself down? 
 I can't really be more specific as there are no errors in the 
 log files to correspond to these occurrences, all I know is 
 that it happens and makes the app look WAY less stable than 
 if it was built using ASP's and running under IIS.. 
 
snip/

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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread FEDERICO MARTIN LARA

Thanks, thanks, thanks!!!

-Mensaje original-
De: Geoff Peters [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 11 de junio de 2002 14:13
Para: Tomcat Users List
Asunto: RE: Tomcat Unexplained Shutdown


Here are the uncompiled servlets (the ones that would possibly cause the
shutdowns) - if you need the associated jar file let me know...

thanks!

Geoff

-Original Message-
From: FEDERICO MARTIN LARA [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:06 AM
To: Tomcat Users List
Subject: RE: Tomcat Unexplained Shutdown


Great!

Have you got the sevlets?.

-Mensaje original-
De: Geoff Peters [mailto:[EMAIL PROTECTED]]
Enviado el: martes, 11 de junio de 2002 13:34
Para: [EMAIL PROTECTED]
Asunto: Tomcat Unexplained Shutdown




-Original Message-
From: Geoff Peters
Sent: June 7, 2002 11:12 AM
To: Tomcat Users List
Subject: Tomcat Unexplained Shutdown


I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a web based
faxing application that users can attach a document to send to a server
process that sends it as an attachment. This is done using servlets. Every
so often, if a user uploads an attachment the server doesn't like, it shuts
down Tomcat, other times it seems if the user tries to view a file on the
server that doesn't exist, the Tomcat server shuts itself down. This is very
annoying, and the customer is not impressed - is there is a way to simply
throw an exception and continue running, instead of Tomcat shutting itself
down? I can't really be more specific as there are no errors in the log
files to correspond to these occurrences, all I know is that it happens and
makes the app look WAY less stable than if it was built using ASP's and
running under IIS..

Any suggestions?

Geoff


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


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


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



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




RE: newbie question urgent plz

2002-06-11 Thread Vikramjit Singh

yeah i opened my tomcat-users and changed the existing file. now the file
contains this

!--
  NOTE:  By default, no user is included in the manager role required
  to operate the /manager web application.  If you wish to use this app,
  you must define such a user - the username and password are arbitrary.
--
tomcat-users
  user name=vikram password=vikram roles=tomcat /
  user name=role1  password=tomcat roles=role1  /
  user name=both   password=tomcat roles=tomcat,role1 /
/tomcat-users

in the url i am writing http://localhost/manager

username is vikram
password is vikram

It is giving

type Status report

message Access to the requested resource has been denied

description Access to the specified resource (Access to the requested
resource has been denied) has been forbidden.


Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 4:43 AM
To: Tomcat Users List
Subject: Re: newbie question urgent plz


Hi,
Check your tomcat-users file located in /conf/ and add an account with 
the role manager or change an existing one.

Good luck!


Markus


On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

 yeah the directory structure is exactly the same.
 how do i check the mananger list i am typing 
 http://localhost:8080/manager
 its asking for password.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Chris Campbell [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:35 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie question urgent plz



 What files are in the context? Do you have a
 webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager 
 list,
 and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz



 hi all,

 i am sending this mail again. plz somebody cud solve my problem.

 i have installed tomcat 4.0.3 and have been breaking my
 head since 15
 days. I am trying to add a context CorpMIS, but its not
 getting added. I

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

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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

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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

Ralph:
Using jdsk 1.3.1_2 (sun), have not tried other versions but if you think that is a 
possible cause, I will check into it.

I am using TOmcat 4.0.3 standalone running the App, however IIS 4.0 is running another 
application on another port (switched IIS to 8080, Tomcat to Port 80), but has nothing 
to do with my application, is it possible IIS is causing it?

The libraries I am using are for the most part the standard java API's - (servlet.jar 
and tools.jar), as well as an API for the fax functionality, and the com.oreilly 
package I am also using the JDBC driver sun.jdbc.odbc.JdbcOdbcDriver.

Thanks, I have a few other areas to explore, that is all I am trying to find out what 
I could possibly look at

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:23 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


An unintended shutdown of tomcat whithout a log message
typically indicates a problem in the VM or in a native library.

- Whick JDK are you using (Vendor and version).
- Did you try other JDK's (other version, other vendor)
- Do you use tomcat standalone or behind a web server
  - If behind a web server which one, and which
connector in which version do you use ?
- Do you use any library that includes native libraries ?
  - e.g. JDBC Driver

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 13:34
 An: [EMAIL PROTECTED]
 Betreff: Tomcat Unexplained Shutdown
snip/
 I am running Tomcat 4.0.2 on Windows NT 4.0, it is running a 
 web based faxing application that users can attach a document 
 to send to a server process that sends it as an attachment. 
 This is done using servlets. Every so often, if a user 
 uploads an attachment the server doesn't like, it shuts down 
 Tomcat, other times it seems if the user tries to view a file 
 on the server that doesn't exist, the Tomcat server shuts 
 itself down. This is very annoying, and the customer is not 
 impressed - is there is a way to simply throw an exception 
 and continue running, instead of Tomcat shutting itself down? 
 I can't really be more specific as there are no errors in the 
 log files to correspond to these occurrences, all I know is 
 that it happens and makes the app look WAY less stable than 
 if it was built using ASP's and running under IIS.. 
 
snip/

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


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




Re: Newbie Question about logging

2002-06-11 Thread Frédéric Laurent

[EMAIL PROTECTED] wrote:
 Hi All,
 
 I have just started using 1.4 and using the application log files.
 
 These are great for build errors etc but how can I get my servlets to write
 runtime errors to that log (ie ORA errors).
 

see the servlet specifications
in 2.2, the ServletContext interface have log methods
in javadoc
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html
see the log methods
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#log(java.lang.String)
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/ServletContext.html#log(java.lang.String,%20java.lang.Throwable)

just add in your doGet method
log(my log);

that's enough !

 At the moment my catches just write to System.out.println as I hoped the
 logs would receive standard err?

-- 
Frédéric Laurent
http://www.opikanoba.org



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




Re: Tomcat Unexplained Shutdown

2002-06-11 Thread Tim Funk

Quick stab in the dark - Since you are using an ODBC driver - I bet the 
driver is not thread safe. So if tomcat is trying to serve 2 different 
requests concurrently, it may be dying in native odbc code.

-Tim

Geoff Peters wrote:
 Here are the uncompiled servlets (the ones that would possibly cause the shutdowns) 
- if you need the associated jar file let me know...
 
 thanks!
 
 Geoff
 


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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

What alternatives would I have to that ODBC driver as a testing option?

-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:32 AM
To: Tomcat Users List
Subject: Re: Tomcat Unexplained Shutdown


Quick stab in the dark - Since you are using an ODBC driver - I bet the 
driver is not thread safe. So if tomcat is trying to serve 2 different 
requests concurrently, it may be dying in native odbc code.

-Tim

Geoff Peters wrote:
 Here are the uncompiled servlets (the ones that would possibly cause the shutdowns) 
- if you need the associated jar file let me know...
 
 thanks!
 
 Geoff
 


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


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




Re: Newbie Question about logging

2002-06-11 Thread Frédéric Laurent

Frédéric Laurent wrote:
 
 see the servlet specifications
 in 2.2, the ServletContext interface have log methods

sorry I would say GenericServlet instead of ServletContext
http://java.sun.com/products/servlet/2.2/javadoc/javax/servlet/GenericServlet.html#log(java.lang.String)

 just add in your doGet method
 log(my log);
 
 that's enough !
 


-- 
Frédéric Laurent
http://www.opikanoba.org



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




Re: newbie question urgent plz

2002-06-11 Thread Arshad Mahmood

The role needs to be manager not tomcat to use the manager application.

Regards,
Arshad

- Original Message -
From: Vikramjit Singh [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 1:22 PM
Subject: RE: newbie question urgent plz


 yeah i opened my tomcat-users and changed the existing file. now the file
 contains this

 !--
   NOTE:  By default, no user is included in the manager role required
   to operate the /manager web application.  If you wish to use this app,
   you must define such a user - the username and password are arbitrary.
 --
 tomcat-users
   user name=vikram password=vikram roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users

 in the url i am writing http://localhost/manager

 username is vikram
 password is vikram

 It is giving

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:43 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 Hi,
 Check your tomcat-users file located in /conf/ and add an account with
 the role manager or change an existing one.

 Good luck!


 Markus


 On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

  yeah the directory structure is exactly the same.
  how do i check the mananger list i am typing
  http://localhost:8080/manager
  its asking for password.
 
 
  Regards,
  Vikramjit Singh,
  Systems Engineer,
  GTL Ltd.
  Ph. 7612929-1031
 
 
  -Original Message-
  From: Chris Campbell [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 4:35 AM
  To: 'Tomcat Users List'
  Subject: RE: newbie question urgent plz
 
 
 
  What files are in the context? Do you have a
  webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager
  list,
  and if so what is its status?
 
  -Original Message-
  From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 8:20 PM
  To: '[EMAIL PROTECTED]'
  Subject: newbie question urgent plz
 
 
 
  hi all,
 
  i am sending this mail again. plz somebody cud solve my problem.
 
  i have installed tomcat 4.0.3 and have been breaking my
  head since 15
  days. I am trying to add a context CorpMIS, but its not
  getting added. I
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
 


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

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



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




RE: jk_nt_service.exe with Tomcat V4.0.3

2002-06-11 Thread Douglas, Rory

If you type TOMCAT.EXE /? you will see the that it is possible to install
a tomcat service from the command line.  It is a bit tricky though, you need
to specify the main class etc.

rory

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:14 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: jk_nt_service.exe with Tomcat V4.0.3


Hi Folks
Is jk_nt_service.exe compatible with Tomcat V4.0.3? There is no copy in the
V4.0.3 directory structure.
There is the copy in the V3.3.1 directory. Is that version specific?
Thanks for any help,
Charlie.

Charles Collin
Software Engineer
eSolutions ITS
BT Ignite Solutions

   Tel: +44 (01442) 208756
   FAX: +44 (01442) 208757
   Mobile:  +44 (07764) 144289
   e-mail:  [EMAIL PROTECTED]
   Address: pp 421, 
Anzani House,
Trinity Avenue,
FELIXSTOWE, 
Suffolk,
IP11 4XB,
UK.

British Telecommunications plc
Registered office: 81 Newgate Street London EC1A 7AJ
Registered in England no. 180.

This electronic message contains information from British Telecommunications
plc which may be privileged or confidential. The information is intended to
be for the use of the individual(s) or entity named above. If you are not
the intended recipient be aware that any disclosure, copying, distribution
or use of the contents of this information is prohibited. If you have
received this electronic message in error, please notify us by telephone or
email (to the numbers or address above) immediately.


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



Re: Tomcat Unexplained Shutdown

2002-06-11 Thread Tim Funk

A primitive way to confirm it is the odbc driver- use 2 web browsers to 
make 2 requests at the same time. Or use a benchmarking/stress testing 
tool to simulate many requests at the same time (like siege or similar).

To eliminate the problem - you may need to synchronize all database 
access so only one request may view/fax/whatever at a time. Or get a 
thread safe version of the odbc driver.

After that - its out of my league.

-Tim

Geoff Peters wrote:
 What alternatives would I have to that ODBC driver as a testing option?
 
 -Original Message-
 From: Tim Funk [mailto:[EMAIL PROTECTED]]
 Sent: June 11, 2002 9:32 AM
 To: Tomcat Users List
 Subject: Re: Tomcat Unexplained Shutdown
 
 
 Quick stab in the dark - Since you are using an ODBC driver - I bet the 
 driver is not thread safe. So if tomcat is trying to serve 2 different 
 requests concurrently, it may be dying in native odbc code.
 
 -Tim


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




AW: Tomcat Unexplained Shutdown

2002-06-11 Thread Ralph Einfeldt

My first bet is the JdbcOdbcDriver.
It has no production quality.

What database do you access with it ?

To access SQL Server 2000 you can use a driver
from microsoft. (they licensed it from merant)
http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/7
79/msdncompositedoc.xmlframe=true

I don't think that the IIS is a cause in your case.

My second guess is to try the JDK from IBM

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:27
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 Using jdsk 1.3.1_2 (sun), have not tried other versions but 
 if you think that is a possible cause, I will check into it.
 
 I am using TOmcat 4.0.3 standalone running the App, however 
 IIS 4.0 is running another application on another port 
 (switched IIS to 8080, Tomcat to Port 80), but has nothing to 
 do with my application, is it possible IIS is causing it?
 
 am also using the JDBC driver sun.jdbc.odbc.JdbcOdbcDriver.
 

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




RE: newbie question urgent plz

2002-06-11 Thread Vikramjit Singh

ok changed the role to manager, now i didnt get that error, but this line

FAIL - Unknown command 




-Original Message-
From: Arshad Mahmood [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 5:47 AM
To: Tomcat Users List
Subject: Re: newbie question urgent plz


The role needs to be manager not tomcat to use the manager application.

Regards,
Arshad

- Original Message -
From: Vikramjit Singh [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 1:22 PM
Subject: RE: newbie question urgent plz


 yeah i opened my tomcat-users and changed the existing file. now the file
 contains this

 !--
   NOTE:  By default, no user is included in the manager role required
   to operate the /manager web application.  If you wish to use this app,
   you must define such a user - the username and password are arbitrary.
 --
 tomcat-users
   user name=vikram password=vikram roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users

 in the url i am writing http://localhost/manager

 username is vikram
 password is vikram

 It is giving

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:43 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 Hi,
 Check your tomcat-users file located in /conf/ and add an account with
 the role manager or change an existing one.

 Good luck!


 Markus


 On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

  yeah the directory structure is exactly the same.
  how do i check the mananger list i am typing
  http://localhost:8080/manager
  its asking for password.
 
 
  Regards,
  Vikramjit Singh,
  Systems Engineer,
  GTL Ltd.
  Ph. 7612929-1031
 
 
  -Original Message-
  From: Chris Campbell [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 4:35 AM
  To: 'Tomcat Users List'
  Subject: RE: newbie question urgent plz
 
 
 
  What files are in the context? Do you have a
  webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager
  list,
  and if so what is its status?
 
  -Original Message-
  From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 8:20 PM
  To: '[EMAIL PROTECTED]'
  Subject: newbie question urgent plz
 
 
 
  hi all,
 
  i am sending this mail again. plz somebody cud solve my problem.
 
  i have installed tomcat 4.0.3 and have been breaking my
  head since 15
  days. I am trying to add a context CorpMIS, but its not
  getting added. I
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:   mailto:tomcat-user-
  [EMAIL PROTECTED]
  For additional commands, e-mail: mailto:tomcat-user-
  [EMAIL PROTECTED]
 


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

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



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

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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

No unfortunately it is Access 97, or else I would have used a more specific driver... 
(couldn't find a specific Access driver as no one in their right mind would use it 
anyway)

Thanks for your suggestions, it definitely gives me some avenues to explore!!!

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 9:51 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


My first bet is the JdbcOdbcDriver.
It has no production quality.

What database do you access with it ?

To access SQL Server 2000 you can use a driver
from microsoft. (they licensed it from merant)
http://msdn.microsoft.com/downloads/sample.asp?url=/MSDN-FILES/027/001/7
79/msdncompositedoc.xmlframe=true

I don't think that the IIS is a cause in your case.

My second guess is to try the JDK from IBM

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:27
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 Using jdsk 1.3.1_2 (sun), have not tried other versions but 
 if you think that is a possible cause, I will check into it.
 
 I am using TOmcat 4.0.3 standalone running the App, however 
 IIS 4.0 is running another application on another port 
 (switched IIS to 8080, Tomcat to Port 80), but has nothing to 
 do with my application, is it possible IIS is causing it?
 
 am also using the JDBC driver sun.jdbc.odbc.JdbcOdbcDriver.
 

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


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




RE: newbie question urgent plz

2002-06-11 Thread Vikramjit Singh

changing the lowercase does not make a difference. Since i am typing the
correct case-sensitive URL. The problem is that if i am putting some other
context also, still it does not read it. is it a but in tomcat 4.0.3. in
tomcat 3.2.1 you didnt have to go through all these processes. the context
was just picked up by the server, and there your application is running.
neither is some documentation provided, regarding the manager settings.

Regards,
Vikramjit Singh,
Systems Engineer,
GTL Ltd.
Ph. 7612929-1031


-Original Message-
From: Sankar Kondur [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 5:32 AM
To: Vikramjit Singh
Subject: RE: newbie question urgent plz



can u try making the directory name lowercase. also
make it lowercase in the server.xml


--- Vikramjit Singh [EMAIL PROTECTED] wrote:
 yeah that was for ur understanding. i just type
 http://localhost/CorpMIS
 
 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031
 
 
 -Original Message-
 From: Sankar Kondur [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:54 AM
 To: Vikramjit Singh
 Subject: RE: newbie question urgent plz
 
 
 your server.xml says port 80
 
 but ur url says port 8080?
 
 Shankar
 
 --- Vikramjit Singh [EMAIL PROTECTED]
 wrote:
  yeah i am able to access the examples context, and
  even run the jsps and
  servlet examples.
  the CorpMIS is in webapps as in 3.2.1. 
  the url is http://localhost:8080/CorpMIS
  i am checking the case.
  the browser is only giving 404.
  yeah my folder does contain index.html.
  yeah removed crossContext and trusted. 
  
  still not working. have u installed tomcat 4.0.3
  
  
  Regards,
  Vikramjit Singh,
  Systems Engineer,
  GTL Ltd.
  Ph. 7612929-1031
  
  
  -Original Message-
  From: Sankar Kondur [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 4:36 AM
  To: Vikramjit Singh
  Subject: RE: newbie question urgent plz
  
  
  The server.xml looks fine.
  
  Here are a few things I can think off. They might
 be
  obvious but no harm in trying.
  
  1. Are you able to access the /examples context
  2. Do you have the CorpMIS directory under the
  webapps
  directory
  3. Can you mention the URL you are trying?
  4. Did you take care of proper case - upper and
  lower?
  5. Did you check the log files for any obvious
  error.
  6. If you are not mentionign the file name then
 does
  the directory have index.jsp
  7. Can you please remove 'crossContext' and
  'trusted'
  and try.
  
  
  Shankar 
  
  
  
  
  =
 

-
  NC Studio - A better alternative to desktop IDEs
  http://www.ncstudio.com
 

-
  
  __
  Do You Yahoo!?
  Yahoo! - Official partner of 2002 FIFA World Cup
  http://fifaworldcup.yahoo.com
 
 
 =

-
 NC Studio - A better alternative to desktop IDEs
 http://www.ncstudio.com

-
 
 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com


=
-
NC Studio - A better alternative to desktop IDEs
http://www.ncstudio.com
-

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: newbie question urgent plz

2002-06-11 Thread Arshad Mahmood

Checkout the documentation for the manager application. You need to specify
a command on the url (e.g. list), there is no GUI access (i.e. index page
with any options/commands).

Regards,
Arshad

- Original Message -
From: Vikramjit Singh [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 1:48 PM
Subject: RE: newbie question urgent plz


 ok changed the role to manager, now i didnt get that error, but this line

 FAIL - Unknown command




 -Original Message-
 From: Arshad Mahmood [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 5:47 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 The role needs to be manager not tomcat to use the manager
application.

 Regards,
 Arshad

 - Original Message -
 From: Vikramjit Singh [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 1:22 PM
 Subject: RE: newbie question urgent plz


  yeah i opened my tomcat-users and changed the existing file. now the
file
  contains this
 
  !--
NOTE:  By default, no user is included in the manager role required
to operate the /manager web application.  If you wish to use this
app,
you must define such a user - the username and password are arbitrary.
  --
  tomcat-users
user name=vikram password=vikram roles=tomcat /
user name=role1  password=tomcat roles=role1  /
user name=both   password=tomcat roles=tomcat,role1 /
  /tomcat-users
 
  in the url i am writing http://localhost/manager
 
  username is vikram
  password is vikram
 
  It is giving
 
  type Status report
 
  message Access to the requested resource has been denied
 
  description Access to the specified resource (Access to the requested
  resource has been denied) has been forbidden.
 
 
  Regards,
  Vikramjit Singh,
  Systems Engineer,
  GTL Ltd.
  Ph. 7612929-1031
 
 
  -Original Message-
  From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 4:43 AM
  To: Tomcat Users List
  Subject: Re: newbie question urgent plz
 
 
  Hi,
  Check your tomcat-users file located in /conf/ and add an account with
  the role manager or change an existing one.
 
  Good luck!
 
 
  Markus
 
 
  On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:
 
   yeah the directory structure is exactly the same.
   how do i check the mananger list i am typing
   http://localhost:8080/manager
   its asking for password.
  
  
   Regards,
   Vikramjit Singh,
   Systems Engineer,
   GTL Ltd.
   Ph. 7612929-1031
  
  
   -Original Message-
   From: Chris Campbell [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, June 11, 2002 4:35 AM
   To: 'Tomcat Users List'
   Subject: RE: newbie question urgent plz
  
  
  
   What files are in the context? Do you have a
   webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager
   list,
   and if so what is its status?
  
   -Original Message-
   From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
   Sent: Tuesday, June 11, 2002 8:20 PM
   To: '[EMAIL PROTECTED]'
   Subject: newbie question urgent plz
  
  
  
   hi all,
  
   i am sending this mail again. plz somebody cud solve my problem.
  
   i have installed tomcat 4.0.3 and have been breaking my
   head since 15
   days. I am trying to add a context CorpMIS, but its not
   getting added. I
  
   --
   To unsubscribe, e-mail:
   mailto:[EMAIL PROTECTED]
   For additional commands, e-mail:
   mailto:[EMAIL PROTECTED]
  
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
  
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


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

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



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




Re: Auto Start Tomcat

2002-06-11 Thread Adrian

Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




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




AW: Tomcat Unexplained Shutdown

2002-06-11 Thread Ralph Einfeldt


Some sidenotes to your source code:
- You shouldn't open a connection in the init method.
  This way you share one connection between two concurent requests to 
  the same servlet.
  It's better to use a connection pool and get the connection for every
request.
- All your instance variables are dangerous, because they are shared
between
  two concurrent requests to the same servlet.
- Maybe you should use Throwable instead of Exception

   try {
   } catch {Throwable ex}
   } 

This way you will have also control about the Errors that might occur.
 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:13
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 
 Here are the uncompiled servlets (the ones that would 
 possibly cause the shutdowns) - if you need the associated 
 jar file let me know...
 

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




Plz help!! Consulted archives!! RE: JSP examples error but servelts examples running

2002-06-11 Thread Lynne Gurney



-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 12:18
To: Tomcat Users List
Subject: JSP examples error but servelts examples running


hello everyone!!

I am a new Tomcat user and am anxious to get things moving. However I have
come across what I can see as a common error that the servlet examples run
but the jsps do not. I have hunted through the archives and tried the advice
that has already been given. But have still not been able to solve the
problem. So here is what I have done so far 

Firstly when I start Tomcat I get a command line error but it still runs 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 7 column -1
org.xml.sax.SAXParseException: Element servlet does not allow init-param
here.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

Versions:
Tomcat-Standalone 4.0
Windows 2000
j2sdk1.4.0_01

Environment variables
CATALINA_HOME Tomcat home directory
CATALINA_BASE Tomcat home directory
JAVA_HOME jdk home directory
PATH includes C:\j2sdk1.4.0_01\bin and C:\j2sdk1.4.0_01\lib (tools.jar)

Can anyone help? Of course this looks to me like it is a jsp compilation
error. This is the examples log entry 

2002-06-11 12:02:56 jsp: init
2002-06-11 12:11:11 StandardWrapperValve[jsp]: Servlet.service() for servlet
jsp threw exception
javax.servlet.ServletException: sun/tools/javac/Main
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:536)
- Root Cause -
java.lang.NoClassDefFoundError: sun/tools/javac/Main
at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at 

Re: newbie question urgent plz

2002-06-11 Thread Markus Kirsten

Check the documentation! This is not an error, since you havn't supplied 
the manager application with any command. Try /list after manager...

Please look at the documenation before asking questions. You've got all 
you need @ http://jakarta.apache.org/tomcat/tomcat-4.0-doc/manager-
howto.html. Please mail back if you still having problems.


Markus


On tisdag, juni 11, 2002, at 02:48 , Vikramjit Singh wrote:

 ok changed the role to manager, now i didnt get that error, but this 
 line

 FAIL - Unknown command




 -Original Message-
 From: Arshad Mahmood [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 5:47 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 The role needs to be manager not tomcat to use the manager 
 application.

 Regards,
 Arshad

 - Original Message -
 From: Vikramjit Singh [EMAIL PROTECTED]
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Sent: Tuesday, June 11, 2002 1:22 PM
 Subject: RE: newbie question urgent plz


 yeah i opened my tomcat-users and changed the existing file. now the 
 file
 contains this

 !--
   NOTE:  By default, no user is included in the manager role required
   to operate the /manager web application.  If you wish to use this 
 app,
   you must define such a user - the username and password are 
 arbitrary.
 --
 tomcat-users
   user name=vikram password=vikram roles=tomcat /
   user name=role1  password=tomcat roles=role1  /
   user name=both   password=tomcat roles=tomcat,role1 /
 /tomcat-users

 in the url i am writing http://localhost/manager

 username is vikram
 password is vikram

 It is giving

 type Status report

 message Access to the requested resource has been denied

 description Access to the specified resource (Access to the requested
 resource has been denied) has been forbidden.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:43 AM
 To: Tomcat Users List
 Subject: Re: newbie question urgent plz


 Hi,
 Check your tomcat-users file located in /conf/ and add an account with
 the role manager or change an existing one.

 Good luck!


 Markus


 On tisdag, juni 11, 2002, at 01:32 , Vikramjit Singh wrote:

 yeah the directory structure is exactly the same.
 how do i check the mananger list i am typing
 http://localhost:8080/manager
 its asking for password.


 Regards,
 Vikramjit Singh,
 Systems Engineer,
 GTL Ltd.
 Ph. 7612929-1031


 -Original Message-
 From: Chris Campbell [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 4:35 AM
 To: 'Tomcat Users List'
 Subject: RE: newbie question urgent plz



 What files are in the context? Do you have a
 webapps/CorpMIS/WEB-INF/web.xml? Does CorpMIS show up in the manager
 list,
 and if so what is its status?

 -Original Message-
 From: Vikramjit Singh [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 8:20 PM
 To: '[EMAIL PROTECTED]'
 Subject: newbie question urgent plz



 hi all,

 i am sending this mail again. plz somebody cud solve my problem.

 i have installed tomcat 4.0.3 and have been breaking my
 head since 15
 days. I am trying to add a context CorpMIS, but its not
 getting added. I

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

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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

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



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

 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]



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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

Ralph - Thanks for pointing that out, I am new to Tomcat and servlets, and have heard 
about connection pooling but never used it, obviously I should I am going to make 
those changes, also going to try the changes to my try block.

thanks again, I appreciate the advice of people who have experienced these problems 
before, and taking the time to reply to other peoples problems!!!

Geoff

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 10:05 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown



Some sidenotes to your source code:
- You shouldn't open a connection in the init method.
  This way you share one connection between two concurent requests to 
  the same servlet.
  It's better to use a connection pool and get the connection for every
request.
- All your instance variables are dangerous, because they are shared
between
  two concurrent requests to the same servlet.
- Maybe you should use Throwable instead of Exception

   try {
   } catch {Throwable ex}
   } 

This way you will have also control about the Errors that might occur.
 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:13
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 
 Here are the uncompiled servlets (the ones that would 
 possibly cause the shutdowns) - if you need the associated 
 jar file let me know...
 

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


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




Re: Tomcat/mod_jk/Apache error

2002-06-11 Thread PJ Crump

Yeah, I did that (actually I waited about 30 seconds to ensure it was up and
functioning)..  Any other tips?
- Original Message -
From: Mark Annal [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 6:12 AM
Subject: RE: Tomcat/mod_jk/Apache error


Do you start Tomcat and Apache at the same time? If so it is likely that
Tomcat has not fully started up when Apache tries to connect to the
connector socket.

I found this with mod_webapp and a five second pause in my startup script
solved it.

_

Mark Annal   e-mail: [EMAIL PROTECTED]
TARGUSinfo   phone : (585) 598-7011
255 Woodcliff Drive  fax   : (585) 598-7001
Fairport, NY 14450   web   : www.targusinfo.com
_


-Original Message-
From: PJ Crump [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 2:12 AM
To: [EMAIL PROTECTED]
Subject: Tomcat/mod_jk/Apache error


Hello,
I have gotten over a lot of hurldes in getting Apache  tomcat to talk, now
I'm down to this..

Im receiving this error in mod_jk.log when I start apache:

[Wed Jun 12 01:04:21 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_connect.c (151)]: jk_open_socket, connect()
failed errno = 111
[Wed Jun 12 01:04:21 2002]  [jk_ajp_common.c (599)]: In
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111

Can anyone tell me what this means? and (hopefully) how to fix it.


- PJ

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





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




RE: Auto Start Tomcat

2002-06-11 Thread Wynn Ricks

I have heard of it but am new to the Linux world like this is day 5.  say that the box 
looses power for some reason will CRON start TomCat when the server is done restarting 
without anybody logging into the machine?

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:02 AM
To: Tomcat Users List
Subject: Re: Auto Start Tomcat


Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




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


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




AW: Tomcat Unexplained Shutdown

2002-06-11 Thread Ralph Einfeldt

Access calls for trouble, as it isn't designed for multithreaded write
access.

Two option for a cheap database:
- mysql (Although I personally don't like it much it might be good
enough for you: No Views, No Subselects)
  http://www.mysql.com/downloads/mysql-max-3.23.html
- postgreSQL (I like it more, but it's much harder to get started, esp.
under windows)

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:49
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown

 No unfortunately it is Access 97, or else I would have used a 
 more specific driver... (couldn't find a specific Access 
 driver as no one in their right mind would use it anyway)
 
 Thanks for your suggestions, it definitely gives me some 
 avenues to explore!!!
 
 Geoff
 

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




RE: Auto Start Tomcat

2002-06-11 Thread Wagoner, Mark

CRON is to run jobs at a scheduled time.  The init scripts are what starts
processes at boot up.

Just a word of warning; being a fairly recent Windows-to-Linux convert
myself, be prepared to read and reread the docs before you get it working.
;-)

-Original Message-
From: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:19 AM
To: Tomcat Users List
Subject: RE: Auto Start Tomcat


I have heard of it but am new to the Linux world like this is day 5.  say
that the box looses power for some reason will CRON start TomCat when the
server is done restarting without anybody logging into the machine?

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:02 AM
To: Tomcat Users List
Subject: Re: Auto Start Tomcat


Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




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


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

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




RE: Tomcat Unexplained Shutdown

2002-06-11 Thread Geoff Peters

I tried and TRIED to use another DB, even upgrade to SQL server as our company has a 
site license, however the fax server software by softlinx uses access and access only, 
it makes updates to the access database as well as an admin site running under IIS 
(asp code), so I am stuck with it.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: June 11, 2002 10:26 AM
To: Tomcat Users List
Subject: AW: Tomcat Unexplained Shutdown


Access calls for trouble, as it isn't designed for multithreaded write
access.

Two option for a cheap database:
- mysql (Although I personally don't like it much it might be good
enough for you: No Views, No Subselects)
  http://www.mysql.com/downloads/mysql-max-3.23.html
- postgreSQL (I like it more, but it's much harder to get started, esp.
under windows)

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 14:49
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown

 No unfortunately it is Access 97, or else I would have used a 
 more specific driver... (couldn't find a specific Access 
 driver as no one in their right mind would use it anyway)
 
 Thanks for your suggestions, it definitely gives me some 
 avenues to explore!!!
 
 Geoff
 

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


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




Re: Auto Start Tomcat

2002-06-11 Thread Denis Haskin

This is a Linux question, not Tomcat-specific.  Try google and search on linux 
startup scripts.  Looks like Linux (which I don't know) is like Solaris (which I 
sorta know) in that you probably want to link your Tomcat
startup scripts into /etc/rc3.d with the right names.

You don't want cron for this.  That runs programs at specific time intervals.

dwh


Wynn Ricks wrote:

 I have heard of it but am new to the Linux world like this is day 5.  say that the 
box looses power for some reason will CRON start TomCat when the server is done 
restarting without anybody logging into the machine?


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




RE: Auto Start Tomcat

2002-06-11 Thread Wynn Ricks

Mark I already have Tomcat working if I manually type startup.sh and I have found many 
documents that tell me to use the /etc/rc.d/rc.local file to start tomcat with the 
machines boot process but I have tried at least 50 different syntax's in this file and 
none of them seem to work.  I have looked for an explanation of how to use this file 
to start it but none seem to exist if you know of any online please send a usable 
link.:)

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:29 AM
To: 'Tomcat Users List'
Subject: RE: Auto Start Tomcat


CRON is to run jobs at a scheduled time.  The init scripts are what starts
processes at boot up.

Just a word of warning; being a fairly recent Windows-to-Linux convert
myself, be prepared to read and reread the docs before you get it working.
;-)

-Original Message-
From: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:19 AM
To: Tomcat Users List
Subject: RE: Auto Start Tomcat


I have heard of it but am new to the Linux world like this is day 5.  say
that the box looses power for some reason will CRON start TomCat when the
server is done restarting without anybody logging into the machine?

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:02 AM
To: Tomcat Users List
Subject: Re: Auto Start Tomcat


Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




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


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

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


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




Re: Plz help!! Consulted archives!! RE: JSP examples error but serveltsexamples running

2002-06-11 Thread rsequeira


To resolve the first error, check your web.xml. The elements don't seem to
be in the correct order.
For the second, you need tools.jar in your classpath (not path)


RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 08:02:04 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
cc:

Subject:Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running



-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 12:18
To: Tomcat Users List
Subject: JSP examples error but servelts examples running


hello everyone!!

I am a new Tomcat user and am anxious to get things moving. However I have
come across what I can see as a common error that the servlet examples run
but the jsps do not. I have hunted through the archives and tried the
advice
that has already been given. But have still not been able to solve the
problem. So here is what I have done so far 

Firstly when I start Tomcat I get a command line error but it still runs 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 7 column -1
org.xml.sax.SAXParseException: Element servlet does not allow
init-param
here.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

Versions:
Tomcat-Standalone 4.0
Windows 2000
j2sdk1.4.0_01

Environment variables
CATALINA_HOME Tomcat home directory
CATALINA_BASE Tomcat home directory
JAVA_HOME jdk home directory
PATH includes C:\j2sdk1.4.0_01\bin and C:\j2sdk1.4.0_01\lib (tools.jar)

Can anyone help? Of course this looks to me like it is a jsp compilation
error. This is the examples log entry 

2002-06-11 12:02:56 jsp: init
2002-06-11 12:11:11 StandardWrapperValve[jsp]: Servlet.service() for
servlet
jsp threw exception
javax.servlet.ServletException: sun/tools/javac/Main
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2

46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java

:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:

1012)
 at

problem with connections not closing...

2002-06-11 Thread Christian J. Dechery

I'm experiencing here a pretty serious problem, that we can't get trough...
 
We have several classes accessing and connecting via the oracle native driver... but 
so it happens, some of these connections aren't properly closed when the class dies 
(meaning, the execution of the JSP ends).
 
I've even debugged it, there are some JSPs that opens like 4 connections, and in my 
finalize() method there's a con.close() call, never all the 4 con.close() are 
successfull, there's always at least one that fails and gives an execption. I don't 
know why.
 
Would that JDBC Realm thing help that? What is that anyway, could someone explain to 
me?
 
thanks
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332




Re: AW: no way to avoid log ?

2002-06-11 Thread Frédéric Laurent

Ralph Einfeldt wrote:
 In this case implementing and defining a 'QuietLogger' would help.
 (A logger of your own that just has empty methods)
 This way you wouldn't have to patch tomcat sources.
 
 If this would be enough I'm not shure. Didn't look at the tomcat 
 sources and didn't try it on my own.

ok I tried without success :(
In my server.xml, if I set the Logger of the engine with
Logger className=org.apache.catalina.logger.SystemOutLogger /
all is ok, I've got traces on the console.

Now I create my own class inheriting from SystemOutLogger which is :

public class NoneLogger extends SystemOutLogger {
public void log(String msg) {
}
}

I've got at runtime

ServerLifecycleListener: createMBeans: MBeanException
java.lang.Exception: ManagedBean is not found with NoneLogger
at
org.apache.catalina.mbeans.MBeanUtils.createMBean(MBeanUtils.java:475)
at 
org.apache.catalina.mbeans.ServerLifecycleListener.createMBeans(ServerLifecycleListener.java:453)



With the SystemOutLogger, I've got no exception !!!
what's wrong ?



-- 
Frédéric Laurent
http://www.opikanoba.org



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




AW: Auto Start Tomcat

2002-06-11 Thread Ralph Einfeldt

No cron isn't the right tool for that. 
That just good for sceduled starts.

If you want to start processes on 'power on', 
you have to look at the init program.

man init

Also have a look at 
http://www.redhat.com/support/resources/tips/Boot-Process-Tips/Boot-Proc
ess-Tips-3.html

 -Ursprüngliche Nachricht-
 Von: Wynn Ricks [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 15:19
 An: Tomcat Users List
 Betreff: RE: Auto Start Tomcat
 
 
 I have heard of it but am new to the Linux world like this is 
 day 5.  say that the box looses power for some reason will 
 CRON start TomCat when the server is done restarting without 
 anybody logging into the machine?

 
 Ever heard of cron ?

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




RE: Auto Start Tomcat

2002-06-11 Thread Shapira, Yoav

Howdy,
Cron will execute any job at pre-determined times.  You can write a
script that looks for a tomcat process every minute, and if there isn't
one, starts tomcat.  That would be an OK way of getting it done.  Cron
docs for linux:
http://nodevice.com/sections/ManIndex/man0204.html

You could also modify /etc/rc3.d or whatever it is on your linux version
to tie tomcat into your boot sequence.  See your linux documentation on
boot sequence and services setup for this. This is a good starting
point:
http://www.desktop-linux.net/linuxbootprocess.htm

Good luck,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:19 AM
To: Tomcat Users List
Subject: RE: Auto Start Tomcat

I have heard of it but am new to the Linux world like this is day 5.
say
that the box looses power for some reason will CRON start TomCat when
the
server is done restarting without anybody logging into the machine?

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:02 AM
To: Tomcat Users List
Subject: Re: Auto Start Tomcat


Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


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




SSL Certificates from a CA...

2002-06-11 Thread Sean M Alderman

Greetings,
  I just read through the SSL-HowTo for Tomcat and followed it to get
things going with a test certificate.  Is there any documentation on how
to generate a server certificate request for a CA?  I've done this with
apache and mod_ssl using openSSL with out issue.  Are the openSSL tools
interoperable with Tomcat?

Thanks.
-- 
Sean M. Alderman
ITRACK Systems Analyst
PACE/NCI - NASA Glenn Research Center
(216) 433-2795

Calling a windowed operating system Windows is like naming an
automobile Wheels.

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




RE: Auto Start Tomcat

2002-06-11 Thread Carlos

Hi Winn,
Try installing webmin (www.webmin.com) and create an action script to start
and stop tomcat.  There are a couple of scripts to start and stop tomcat at
bootup time that were posted in this forum and which you can add to the
action scripts.  The scripts export Java_HOME and CATALINA_HOME and then run
the startup.sh or shutdown.sh.

The webmin helps you because it creates the links for the action scripts.

Hope that this helps you.

Regards,
-Original Message-
From: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:31 AM
To: Tomcat Users List
Subject: RE: Auto Start Tomcat


Mark I already have Tomcat working if I manually type startup.sh and I have
found many documents that tell me to use the /etc/rc.d/rc.local file to
start tomcat with the machines boot process but I have tried at least 50
different syntax's in this file and none of them seem to work.  I have
looked for an explanation of how to use this file to start it but none seem
to exist if you know of any online please send a usable link.:)

-Original Message-
From: Wagoner, Mark [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:29 AM
To: 'Tomcat Users List'
Subject: RE: Auto Start Tomcat


CRON is to run jobs at a scheduled time.  The init scripts are what starts
processes at boot up.

Just a word of warning; being a fairly recent Windows-to-Linux convert
myself, be prepared to read and reread the docs before you get it working.
;-)

-Original Message-
From: Wynn Ricks [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 9:19 AM
To: Tomcat Users List
Subject: RE: Auto Start Tomcat


I have heard of it but am new to the Linux world like this is day 5.  say
that the box looses power for some reason will CRON start TomCat when the
server is done restarting without anybody logging into the machine?

-Original Message-
From: Adrian [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 7:02 AM
To: Tomcat Users List
Subject: Re: Auto Start Tomcat


Ever heard of cron ?
- Original Message -
From: Wynn Ricks [EMAIL PROTECTED]
To: Tomcat Users List (E-mail) [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 7:57 AM
Subject: Auto Start Tomcat


Can anybody out there please tell me how to AutoStart Tomcat in the
background on a RedHat Linux box without having to log in and start the
service manually?

Thanks for any help in advance


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




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


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

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


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

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




AW: SSL Certificates from a CA...

2002-06-11 Thread Sven Woltmann

If you use Apache's SSL functionality, you don't need Tomcat's, since Apache
does all the SSL encrypting/decrypting for you.

If you use Tomcat standalone, you can use JDK's keytool to generate an SSL
certificate request with the -certreq option.

Sven


 -Ursprüngliche Nachricht-
 Von: Sean M Alderman [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 15:43
 An: Tomcat Users List
 Betreff: SSL Certificates from a CA...
 
 
 Greetings,
   I just read through the SSL-HowTo for Tomcat and followed it to get
 things going with a test certificate.  Is there any 
 documentation on how
 to generate a server certificate request for a CA?  I've done 
 this with
 apache and mod_ssl using openSSL with out issue.  Are the 
 openSSL tools
 interoperable with Tomcat?
 
 Thanks.
 -- 
 Sean M. Alderman
 ITRACK Systems Analyst
 PACE/NCI - NASA Glenn Research Center
 (216) 433-2795
 
 Calling a windowed operating system Windows is like naming an
 automobile Wheels.
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: retrieving complete classpath for tomcat instance

2002-06-11 Thread Paresh Deshpande

Hello, I posted this query yesterday, haven't received
any replies. Does anyone know how to retrieve classpath for the tomcat 
instance from a web-app? I am stuck with the problem
and I am not sure as to how to proceed!! your suggestions would really be 
valuable.
thanks
Paresh

-Original Message-
From: Paresh Deshpande [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 06:01 PM
To: [EMAIL PROTECTED]
Subject: retrieving complete classpath for tomcat instance
Importance: High


Hi, I am using tomcat 4.0 servlet container with apache 1.3.24 as web
server. 
I have a situation where I need to compile a java file at runtime within 
my web-application.
 
I am using org.apache.jasper.compiler.SunJavaCompiler to generate the
necessary
class files. While compilation, I need complete classpath as an argument to
method setClasspath.
Once I set classpath correctly, I should be able to use compile method to
generate appropriate
class files.
 
Problem is that, I am not able to set classpath information for compiler
class correctly. How can 
I include all the jar files to classpath available in servlet container
context? If I use  
System.getProperty(java.class.path), I get only
$CATALINA_HOME$\bin\bootstrap.jar. 
None of the jar files in $CATALINA_HOME$\server\lib\ or common\lib folder
are returned 
by accessing this property. Is their any system property to get the complete
classpath for 
the current Apache-Tomcat service?

regards
Paresh
 

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




RE: Plz help!! Consulted archives!! RE: JSP examples error but servelts examples running

2002-06-11 Thread Lynne Gurney

RS

Firstly the web.xml file is for the Tomcat examples so I don't see how it
could be configured wrongly.

Secondly I wondered about classpath v path but it may be that win 2000 if
fine with path. I did add classpath to my environment variables and am still
getting the error.

L

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 14:34
To: Tomcat Users List
Subject: Re: Plz help!! Consulted archives!! RE: JSP examples error but
servelts examples running



To resolve the first error, check your web.xml. The elements don't seem to
be in the correct order.
For the second, you need tools.jar in your classpath (not path)


RS





Lynne Gurney [EMAIL PROTECTED] on 06/11/2002 08:02:04 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:Tomcat Users List [EMAIL PROTECTED],
   [EMAIL PROTECTED]
cc:

Subject:Plz help!! Consulted archives!! RE: JSP examples error but
   servelts examples running



-Original Message-
From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
Sent: 11 June 2002 12:18
To: Tomcat Users List
Subject: JSP examples error but servelts examples running


hello everyone!!

I am a new Tomcat user and am anxious to get things moving. However I have
come across what I can see as a common error that the servlet examples run
but the jsps do not. I have hunted through the archives and tried the
advice
that has already been given. But have still not been able to solve the
problem. So here is what I have done so far 

Firstly when I start Tomcat I get a command line error but it still runs 

Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
PARSE error at line 7 column -1
org.xml.sax.SAXParseException: Element servlet does not allow
init-param
here.
Starting service Tomcat-Apache
Apache Tomcat/4.0.3

Versions:
Tomcat-Standalone 4.0
Windows 2000
j2sdk1.4.0_01

Environment variables
CATALINA_HOME Tomcat home directory
CATALINA_BASE Tomcat home directory
JAVA_HOME jdk home directory
PATH includes C:\j2sdk1.4.0_01\bin and C:\j2sdk1.4.0_01\lib (tools.jar)

Can anyone help? Of course this looks to me like it is a jsp compilation
error. This is the examples log entry 

2002-06-11 12:02:56 jsp: init
2002-06-11 12:11:11 StandardWrapperValve[jsp]: Servlet.service() for
servlet
jsp threw exception
javax.servlet.ServletException: sun/tools/javac/Main
 at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application

FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh

ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja

va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja

va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase

.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2

46)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.

java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170

)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5

64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at

RE: Auto Start Tomcat

2002-06-11 Thread Varley, Roger

 
 Can anybody out there please tell me how to AutoStart Tomcat 
 in the background on a RedHat Linux box without having to log 
 in and start the service manually?
 

This came up a couple of days ago. Scan the archives for the thread
Automatic start from /etc/rc3.d ??? and you'll find everything that you
need in there, including some example startup scripts.

Regards
Roger


Information in this message is confidential and may be privileged.  It is
for the exclusive use of the intended recipient(s).  If you are not the
intended recipient(s) please notify the sender and delete the message
immediately.  Unauthorised disclosure, distribution and copying of this
email is strictly prohibited.  The opinions expressed within this message
are those of the individual author.  Whilst Brakes takes reasonable steps to
scan this email it does not accept liability for any virus that may be
contained in it.

Brake Bros plc. Registered Office: Enterprise House, Eureka Business Park,
Ashford, Kent TN25 4AG.
 Registered in England  Wales number 2035315.

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




apache / tomcat 4 / ajp13 -- upload loop

2002-06-11 Thread John Klassa


We're using Apache and Tomcat 4, and having them talk via ajp13.
When we attempt to upload a multipart form (using struts FormFile on
the back end), we seem to go into an endless upload loop, and the server
finally complains that the data received has exceeded the content length.
If we use the jspSmart smart upload package, no check is done, and we
eventually get an out of memory exception.

I've perused the net and various archives for about a day now, and have
seen scant little mention of this.  I'm hoping somebody can point me to
some info that will help.

Thanks,
John

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




AW: Tomcat Unexplained Shutdown

2002-06-11 Thread Ralph Einfeldt

I think then you have to serialize the write access to the database.

If it's possible to read from Access while somebody else (in this 
case another Thread) is reading, I haven't tried.

I would think about decoupling the application, use one application with
a 
'real database' to implement the interface to the user and use one
program 
as backendto the fax database and implement a serial communication 
between theses applications. (Depends a bit on the amount of users that
will 
fax if there is just a very little chance that two users access the fax
concurrently, you can synchronize the access to the fax database through
an object that is known to all servlets).

 -Ursprngliche Nachricht-
 Von: Geoff Peters [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 15:25
 An: Tomcat Users List
 Betreff: RE: Tomcat Unexplained Shutdown
 
 
 I tried and TRIED to use another DB, even upgrade to SQL 
 server as our company has a site license, however the fax 
 server software by softlinx uses access and access only, it 
 makes updates to the access database as well as an admin site 
 running under IIS (asp code), so I am stuck with it.
 

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




LOGGING TIME TAKEN TO SERVE A REQUEST

2002-06-11 Thread Charles Sanders

I was wondering if anyone has been able to log time taken to serve a
request with just Tomcat running and no other web servers. I am unsure if
Tomcat as a stand alone is able to log that peace of information. I have
checked the documentation at
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/valve.html#Access%20L
og%20Valve  but this does not show that as an option.
Any help would be appreciated.
Thanks,
Charles




winmail.dat
Description: application/ms-tnef

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


AW: LOGGING TIME TAKEN TO SERVE A REQUEST

2002-06-11 Thread Ralph Einfeldt

AFAIK to log that information you have to define your own Valve or
Filter.

  -Ursprüngliche Nachricht-
 Von:  Charles Sanders [mailto:[EMAIL PROTECTED]] 
 Gesendet: Dienstag, 11. Juni 2002 16:00
 An:   Tomcat Users List (E-mail)
 Betreff:  LOGGING TIME TAKEN TO SERVE A REQUEST
 
 I was wondering if anyone has been able to log time taken to serve a 
 request with just Tomcat running and no other web servers.

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




Re: Plz help!! Consulted archives!! RE: JSP examples error but servelts examples running

2002-06-11 Thread Jean-Luc BEAUDET

Lynne Gurney a écrit :

 -Original Message-
 From: Lynne Gurney [mailto:[EMAIL PROTECTED]]
 Sent: 11 June 2002 12:18
 To: Tomcat Users List
 Subject: JSP examples error but servelts examples running

 hello everyone!!

 I am a new Tomcat user and am anxious to get things moving. However I have
 come across what I can see as a common error that the servlet examples run
 but the jsps do not. I have hunted through the archives and tried the advice
 that has already been given. But have still not been able to solve the
 problem. So here is what I have done so far 

 Firstly when I start Tomcat I get a command line error but it still runs 

 Starting service Tomcat-Standalone
 Apache Tomcat/4.0.3
 PARSE error at line 7 column -1
 org.xml.sax.SAXParseException: Element servlet does not allow init-param
 here.
 Starting service Tomcat-Apache
 Apache Tomcat/4.0.3

 Versions:
 Tomcat-Standalone 4.0
 Windows 2000
 j2sdk1.4.0_01

 Environment variables
 CATALINA_HOME Tomcat home directory
 CATALINA_BASE Tomcat home directory
 JAVA_HOME jdk home directory
 PATH includes C:\j2sdk1.4.0_01\bin and C:\j2sdk1.4.0_01\lib (tools.jar)

 Can anyone help? Of course this looks to me like it is a jsp compilation
 error. This is the examples log entry 

 2002-06-11 12:02:56 jsp: init
 2002-06-11 12:11:11 StandardWrapperValve[jsp]: Servlet.service() for servlet
 jsp threw exception
 javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
 at
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
 FilterChain.java:247)
 at
 org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
 ain.java:193)
 at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
 va:243)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
 va:190)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
 .java:475)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
 46)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
 java:170)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
 )
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 64)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
 :174)
 at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
 66)
 at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
 org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
 1012)
 at
 org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
 )
 at java.lang.Thread.run(Thread.java:536)
 - Root Cause -
 java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
 org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
 org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
 rvlet.java:177)
 at
 

mod_jk, ajp1.4, apache-1.3.24, tomcat-4.1.3 howto??

2002-06-11 Thread Brian P. Millett

Configuration: apache-1.3.24, tomcat 4.1.3, jdk 1.4, gcc 3.1, solaris8,
apr (solo install)

Some questions: I want to use mod_jk with tomcat 4.1.3 via the ajp 1.4
protocol.  
All I can see is that by default, tomcat 4.1.3 has a connector for
Coyote/JK2 AJP 1.4 Connector on port 8009.  The
jakarta-tomcat-connector/jk directory has multiple hints as to
building with ant native or going to native and doing the buildconf.sh
dance to get a configuration file. But the native/apache-1.3 shows only
how to use ajp1.3.  How do I tell the compile to add -DEAPI?

How do I compile mod_jk for apache-1.3 using ajp1.4?  
My build.conf =
tomcat41.home=/opt/jakarta-tomcat
apache13.home=/opt/apache13
apr.home=/opt/apr
apr.include=${apr.home}/include
apr-util.include=${apr.home}/include
apr.lib=${apr.home}/lib
apr-util.lib=${apr.home}/lib
so.debug=true
so.optimize=false
so.profile=false

Doing ant native produces a BUILD SUCCESSFUL, but where is the
mod_jk.so?

Ok, so I cd into jk/native.  sh ./buildconf.sh, then do
./configure --with-apxs=/opt/apache/bin/apxs
--with-java-home=${JAVA_HOME} --with-java-platform=2
--with-apr-include=/opt/apr/include --with-apr-lib=/opt/apr/lib
--enable-EAPI --with-tomcat41=/opt/jakarta-tomcat

make  make install

which compiles and gives me a libjk.so, but how do I configure the
module?  Is it the same as mod_jk?

Thanks.
-- 
Brian Millett
Enterprise Consulting Group   Shifts in paradigms
(314) 205-9030   often cause nose bleeds.
[EMAIL PROTECTED]   Greg Glenn


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




Re: AW: SSL Certificates from a CA...

2002-06-11 Thread Sean M Alderman

On Tue, 2002-06-11 at 09:47, Sven Woltmann wrote:
 If you use Apache's SSL functionality, you don't need Tomcat's, since Apache
 does all the SSL encrypting/decrypting for you.

Can you point me in the right direction for the docs on these to
setups?  Forgive me, but I don't recall seeing anything on configuration
of Tomcat as Standalone versus w/ Apache.  I have apache installed and
running in a different location (same server, different IP).  Now that
you mention that I'm not sure which way I have Tomcat setup.  I start it
with $CATALINA_HOME/bin/startup.sh

 
 If you use Tomcat standalone, you can use JDK's keytool to generate an SSL
 certificate request with the -certreq option.
 
 Sven
 
 
  -Ursprüngliche Nachricht-
  Von: Sean M Alderman [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 11. Juni 2002 15:43
  An: Tomcat Users List
  Betreff: SSL Certificates from a CA...
  
  
  Greetings,
I just read through the SSL-HowTo for Tomcat and followed it to get
  things going with a test certificate.  Is there any 
  documentation on how
  to generate a server certificate request for a CA?  I've done 
  this with
  apache and mod_ssl using openSSL with out issue.  Are the 
  openSSL tools
  interoperable with Tomcat?
  
  Thanks.
  -- 
  Sean M. Alderman
  ITRACK Systems Analyst
  PACE/NCI - NASA Glenn Research Center
  (216) 433-2795
  
  Calling a windowed operating system Windows is like naming an
  automobile Wheels.
  
  --
  To unsubscribe, e-mail:   
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail: 
  mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 
-- 
Sean M. Alderman
ITRACK Systems Analyst
PACE/NCI - NASA Glenn Research Center
(216) 433-2795

Calling a windowed operating system Windows is like naming an
automobile Wheels.

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




Re: problem with connections not closing...

2002-06-11 Thread Tim Funk

finalize() gets called on garbage collection. Which may occur a long 
time from when your are done with your connection. Which isn't the time 
to close your db connections - it should be done much earlier. Here is 
code I typically use:

Connection con = null;
PreparedStatement stmt = null;
ResultSet rs = null;
try {
   con = magicalConnectionGetter();
   stmt = magicalStatementGetter();
   rs = magicalResultSetGetter();
} catch(Throwable e) {
 //do as needed
} finally {
   try {if (rs!=null) rs.close();}catch(Throwable e){}
   try {if (stmt!=null) stmt.close();}catch(Throwable e){}
   try {if (con!=null) con.close();}catch(Throwable e){}
}

Always use finally to close your database assets - it will save much 
heartache later. finally blocks always gets run  - even if you issue a 
return in the try block.

-Tim

Christian J. Dechery wrote:
 I'm experiencing here a pretty serious problem, that we can't get trough...
  
 We have several classes accessing and connecting via the oracle native driver... but 
so it happens, some of these connections aren't properly closed when the class dies 
(meaning, the execution of the JSP ends).
  
 I've even debugged it, there are some JSPs that opens like 4 connections, and in my 
finalize() method there's a con.close() call, never all the 4 con.close() are 
successfull, there's always at least one that fails and gives an execption. I don't 
know why.
  
 Would that JDBC Realm thing help that? What is that anyway, could someone explain 
to me?
  
 thanks
  
 .:| Christian J. Dechery
 .:| FINEP - Depto. de Sistemas
 .:| [EMAIL PROTECTED]
 .:| (21) 2555-0332
 
 



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




Connection aborted by peer: socket write error

2002-06-11 Thread R.C.Nougain

Tomcat3.2.3 / JDK1.3.1 / IE5.0

Q1. I am getting following error. Any idea why it is happening?

2002-06-10 14:16:55 - Ctx( /act ): IOException in: R( /act + js/utils.js +
null) Connection aborted by peer: socket write error.

 I have a line in my html page that looks as SCRIPT LANGUAGE=JavaScript
SRC=js/utils.js/SCRIPT in my jsp file.

Q2. Is there a method to know if a given session object is invalidated or
not?

Q3. Is there ready made API that can give the list of session objects
currently active. I know HttpSessionContext is deprecated.

Regards



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




IIS mailing list (off-topic)

2002-06-11 Thread Luca Ventura

Sorry with everybody about this off-topic question but I need absolutely
to find a mailing-list about Internet Information Server. I tried to search
on the Web but unsuccessfully.

Anyway I can explain to you the type of the problem I have...when I open the
Microsoft Management Console of IIS (I installed it in a Windows 2000
machine) I receive this error message:

A non-fatal configuration error occurred. Not all available information may
be displayed

The problem is that this type of error doesn't allow me to create new
sites!!!

Can someone help me? Is there some log file in IIS where this type of error
may have been described?
Maybe a more detailed description of the problem could help me


Thanks and sorry again for this off-topic post.

   Luca

P.S: Given that this is an off-topic message I pray uou to contact me
directly at: [EMAIL PROTECTED]

Thanks!


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




AW: problem with connections not closing...

2002-06-11 Thread Ralph Einfeldt

The finalize method migth not be called until tomcat is shut down.
Recommended actions:
- Use a connection pool
- Request the connection as close as possible to the usage
- Return the connection as soon as possible after the usage
- Always use a pattern like 
  Connection mCon = null;
  try {
mCon = mPool.getConnection(); 
// The exact code depends on the implemenation of the pool
  } catch (...) {
  } finally {
mPool.releaseConnection(mCon);
// The exact code depends on the implemenation of the pool
// if you have to catch Exception or to make shure that
// mCon != null and if you need transactions
  }

 -Ursprüngliche Nachricht-
 Von: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 15:33
 An: [EMAIL PROTECTED]
 Betreff: problem with connections not closing...
 
 I've even debugged it, there are some JSPs that opens like 4 
 connections, and in my finalize() method there's a 
 con.close() call, never all the 4 con.close() are 
 successfull, there's always at least one that fails and gives 
 an execption. I don't know why.

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




RE: Tomcat and servlet

2002-06-11 Thread Thébault, Médérick

Well It is working fine.

Thanx Jean-Luc. U could have answered RTFM as well.

Anyway, UR advice was a good one. All reside in web.xml.

First description of the servlet, then the URL and mapping data.

And the servlet is reachable by localhost/WebAppPrefix/servletname.
Tricky isn't it?

Thanx a lot.

Last thing is it possible to define more than one mapping for one
servlet?

I tried this :

servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/zzz/url-pattern
  url-pattern/MyApp/url-pattern
/servlet-mapping

and that

servlet-mapping
  servlet-nameMyServlet/servlet-name
  url-pattern/zzz/url-pattern
  servlet-nameMyServlet/servlet-name
  url-pattern/MyApp/url-pattern
/servlet-mapping

But...

Also for newbie like me, www.moreservlets.com is a must for tips. Thanx
Tomas.

Read U soon,

Med


-Message d'origine-
De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Envoyé : mardi 11 juin 2002 11:35
À : Tomcat Users List
Objet : Re: Tomcat and servlet


Thébault, Médérick a écrit :

 Thanx for the answers, It helps the debate but...

 I already deployed my servlet as mentionned in the documentation
 (servlet path is webapps/myservlet to act as in webapps/examples).
 Web.xml is quite simple as nothing is set in it. See below :

 !DOCTYPE web-app
 PUBLIC -//Sun Microsystems, Inc.//DTD Web Application 2.3//EN
 http://java.sun.com/dtd/web-app_2_3.dtd;
 web-app
 /web-app

 But I still need to enter localhost/mypath/servlet/myservlet to access
 it.

 So Jean-Luc, I think I do not need to try your advice or am I
completly
 wrong and missing something essential?

 And Markus, what do you mean by ROOT context? Setting ROOT in
 conf/server.xml as /mypath/servlet will solve the case?

 Thanx in advance,

 Cheers.

 Med

 -Message d'origine-
 De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 11 juin 2002 10:48
 À : Tomcat Users List
 Objet : Re: Tomcat and servlet

 Marek, Tomas a écrit :

  Could give more details, please.
 
  tom
 
  -Original Message-
  From: Markus Kirsten [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, June 11, 2002 10:36 AM
  To: Tomcat Users List
  Subject: Re: Tomcat and servlet
 
  Hi Med,
  Deploy your servlet in the ROOT context instead.
 
  Markus
 
  On tisdag, juni 11, 2002, at 10:08 , Thébault, Médérick wrote:
 
   Hi again,
  
   I would like to change the URL of my servlet.
  
   It can be access thru http://localhost/servlet/MyServlet; but I
 would
   like to avoid servlet part.
  
   In every example that I saw, the servlet part was always in. Is
 there
   a way to set up something like alias?
  
   Thanx
  
   Med
  
   --
   To unsubscribe, e-mail:   mailto:tomcat-user-
   [EMAIL PROTECTED]
   For additional commands, e-mail: mailto:tomcat-user-
   [EMAIL PROTECTED]
  
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]

 Well,

 The other way is to simply Deploy your own servlet zone and add a
 Your_Zone/WEB-INF/web.xml
 to bypass the default web.xml responsible of this mapping...

 Hope this help.

 Jean-Luc :O)

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

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

Well...

As your web.xml is empty, no new directives can bypass the default
one...

Try to add smth like:

../..

servlet
servlet-nameMyServlet/servlet-name
servlet-classMyServlet/servlet-class
/servlet
servlet-mapping
servlet-nameMyServlet/servlet-name
url-pattern/MyServlet/url-pattern
/servlet-mapping

../..

This could do the trick. I think that all of this would be described in
the
servlet API 2.3.

Hope this help.

Jean-Luc :O)





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


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




Re: problem with connections not closing...

2002-06-11 Thread Christian J. Dechery

but I can't close the connection in each query... the connection is used by other 
objects...
I have a DAO for each class that needs access to the DB... but some of these DAOs are 
Singletons, so several objects can use one DAO and one connection to the db... so I 
can't just close it whenever I want...
 
.:| Christian J. Dechery
.:| FINEP - Depto. de Sistemas
.:| [EMAIL PROTECTED]
.:| (21) 2555-0332

 [EMAIL PROTECTED] 11/06/02 11:12  
finalize() gets called on garbage collection. Which may occur a long 
time from when your are done with your connection. Which isn't the time 
to close your db connections - it should be done much earlier. Here is 
code I typically use: 

Connection con = null; 
PreparedStatement stmt = null; 
ResultSet rs = null; 
try { 
con = magicalConnectionGetter(); 
stmt = magicalStatementGetter(); 
rs = magicalResultSetGetter(); 
} catch(Throwable e) { 
//do as needed 
} finally { 
try {if (rs!=null) rs.close();}catch(Throwable e){} 
try {if (stmt!=null) stmt.close();}catch(Throwable e){} 
try {if (con!=null) con.close();}catch(Throwable e){} 
} 

Always use finally to close your database assets - it will save much 
heartache later. finally blocks always gets run - even if you issue a 
return in the try block. 

-Tim 

Christian J. Dechery wrote: 
 I'm experiencing here a pretty serious problem, that we can't get trough... 
 
 We have several classes accessing and connecting via the oracle native driver... but 
so it happens, some of these connections aren't properly closed when the class dies 
(meaning, the execution of the JSP ends). 
 
 I've even debugged it, there are some JSPs that opens like 4 connections, and in my 
finalize() method there's a con.close() call, never all the 4 con.close() are 
successfull, there's always at least one that fails and gives an execption. I don't 
know why. 
 
 Would that JDBC Realm thing help that? What is that anyway, could someone explain 
to me? 
 
 thanks 
 
 .:| Christian J. Dechery 
 .:| FINEP - Depto. de Sistemas 
 .:| [EMAIL PROTECTED] 
 .:| (21) 2555-0332 
 
 



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






Tomcat Performance??

2002-06-11 Thread Hanks Mei

Hi,

I have been trying to analyze the 
performance of my application(Jsp pages with tag libraries)
in tomcat4.0.3+ jdk1.4

But I was astonished to find that, the time taken for 
the pages to be served was varying between 90ms to 2200ms.
The test jsp page is a dummy page without any back-end processing.
The tags use a java class which contains all the required info 
hard coded for testing purposes.

I am working on a application which must be highly 
responsive. So as I was trying to find out the reason,behind it.
The time increase seems to be due to the Class lookup.
(All the required classes are within the WEB-INF/classes)

Can anybody shed some light on this?
Has anybody seen this issue?

I would greatly appreciate your help.

Thx
mano


-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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




Exception when using security manager

2002-06-11 Thread [EMAIL PROTECTED]

Hi,

I need to deploy an webapps under Tomcat4.0.3 with security manager

#startup -security

I have added in the required permission in the catalina.policy file as

grant codeBase file:${catalina.home}/webapps/sso/* {
permission java.security.AllPermission;
};

I guess this will grant all the rights to the webapps.
But when I startup tomcat with security manager, I got exceptions as follow:

Any thoughts!

Thanks


2002-06-10 16:58:45 StandardHost[localhost]: Installing web application at
context path /sso from URL file:D:\tomcat-4-LE\webapps\sso
2002-06-10 16:58:46 WebappLoader[/sso]: Deploying class repositories to work
directory D:\tomcat-4-LE\work\localhost\sso
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/SCBJaas.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\SCBJaas.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR
/WEB-INF/lib/classes12.jar to
D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\classes12.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/ecb.jar to
D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\ecb.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/ecbldap.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\ecbldap.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR
/WEB-INF/lib/ecbsecurity.jar to
D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\ecbsecurity.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/ldap.jar to
D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\ldap.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/log4j.jar to
D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\log4j.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/logapp.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\logapp.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/logger.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\logger.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/session.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\session.jar
2002-06-10 16:58:46 WebappLoader[/sso]: Deploy JAR /WEB-INF/lib/struts.jar
to D:\tomcat-4-LE\webapps\sso\WEB-INF\lib\struts.jar
2002-06-10 16:58:46 StandardManager[/sso]: Seeding random number generator
class java.security.SecureRandom
2002-06-10 16:58:46 StandardManager[/sso]: Seeding of random number
generator has been completed
2002-06-10 16:58:46 ContextConfig[/sso]: Added certificates - request
attribute Valve
2002-06-10 16:58:46 SSO-init: init
2002-06-10 16:58:48 StandardContext[/sso]: Servlet /sso threw load()
exception
javax.servlet.ServletException: Servlet.init() for servlet SSO-init threw
exception
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:93
5)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:
3266)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSuppor
t.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.security.AccessControlException: access denied
(java.net.SocketPermission dbhost resolve)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:270)
at
java.security.AccessController.checkPermission(AccessController.java:401)
at 

AW: problem with connections not closing...

2002-06-11 Thread Ralph Einfeldt

This kind of design will give you nothing but headache.
- The connection will be longer open than needed.
- You must do hard work to close the connections at all
- You have hardly control about the number of connections

I prefer to manage the connections outside of my dao's.
My DAO's get the connection as a parameter.

 -Ursprüngliche Nachricht-
 Von: Christian J. Dechery [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 11. Juni 2002 16:42
 An: [EMAIL PROTECTED]
 Betreff: Re: problem with connections not closing...
 
 
 but I can't close the connection in each query... the 
 connection is used by other objects...
 I have a DAO for each class that needs access to the DB... 
 but some of these DAOs are Singletons, so several objects can 
 use one DAO and one connection to the db... so I can't just 
 close it whenever I want...
  

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




RES: Tomcat Performance??

2002-06-11 Thread Jose Euclides da Silva Junior - DIGR.O

Hi. It seems very strange. you ve got very differents response time, from 90
up 2200 ms!!! Do you have any other kind of service running and wasting your
cpu or io service?
Regards, Euclides.

-Mensagem original-
De: Hanks Mei [mailto:[EMAIL PROTECTED]]
Enviada em: terça-feira, 11 de junho de 2002 11:06
Para: [EMAIL PROTECTED]
Assunto: Tomcat Performance??


Hi,

I have been trying to analyze the 
performance of my application(Jsp pages with tag libraries)
in tomcat4.0.3+ jdk1.4

But I was astonished to find that, the time taken for 
the pages to be served was varying between 90ms to 2200ms.
The test jsp page is a dummy page without any back-end processing.
The tags use a java class which contains all the required info 
hard coded for testing purposes.

I am working on a application which must be highly 
responsive. So as I was trying to find out the reason,behind it.
The time increase seems to be due to the Class lookup.
(All the required classes are within the WEB-INF/classes)

Can anybody shed some light on this?
Has anybody seen this issue?

I would greatly appreciate your help.

Thx
mano


-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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

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




Re: Tomcat Performance??

2002-06-11 Thread peter lin


Are you using tomcat 4.0.3 _ jdk1.4 on Solaris?

If so, there is a bug with sun.tools.javac.Main that hits performance
and jsp page compilation.

In general, JSP tag performance is slower than pages with scriplets. In
the last 2 months there have been patches and changes to jasper which
improve the performance. The are several known issues with JSP Tag
performance.

1. pages with lots of tags (50+) do not perform well under load
2. pages with 100+ tags may not compile due to 64K per method limitation
in Java. This particular issue is currently being address by a couple
developers and should be fixed in 4.1.x.
3. deeply nested try/catch statements result in rapid performance
degredation under load


There are a couple things that will improve the situation. When tomcat
4.0.4 comes out, it has a recent patch which fixes deeply nested
try/catch. Also, tomcat 4.0.4 has a new httpconnector called coyote.
Together the performance improves dramatically such that the number of
concurrent requests triples. Also, the response time improves
significantly. If you're page still performs poorly, try breaking it up
into include files and use action include instead of include directive.
I.e use c:import or jsp:include, instead of %@ include %. I hope
that helps.

peter


Hanks Mei wrote:
 
 Hi,
 
 I have been trying to analyze the
 performance of my application(Jsp pages with tag libraries)
 in tomcat4.0.3+ jdk1.4
 
 But I was astonished to find that, the time taken for
 the pages to be served was varying between 90ms to 2200ms.
 The test jsp page is a dummy page without any back-end processing.
 The tags use a java class which contains all the required info
 hard coded for testing purposes.
 
 I am working on a application which must be highly
 responsive. So as I was trying to find out the reason,behind it.
 The time increase seems to be due to the Class lookup.
 (All the required classes are within the WEB-INF/classes)
 
 Can anybody shed some light on this?
 Has anybody seen this issue?
 
 I would greatly appreciate your help.
 
 Thx
 mano
 
 -
 Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
 Know more at http://mail.sify.com
 
 Take the shortest route to success!
 Click here to know how http://education.sify.com
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]

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




Re: AW: Tomcat Performance??

2002-06-11 Thread Hanks Mei

Quoting  Ralph Einfeldt [EMAIL PROTECTED]:

 I gueass that for the requests with 2200 ms 
 tomcat had to compile the pages. 
Well the pages have not been touched while testing, I have not really
tried pre-compiling. anyway will try it out.
Is there any known bug in tomcat, regarding recompiling the 
pages even when it is not changed???

Thx
mano
 To get realistic values you have to make shure 
 that all pages you wan't to test are already compiled.
 
  -Ursprüngliche Nachricht-
  Von: Hanks Mei [mailto:[EMAIL PROTECTED]]
  Gesendet: Dienstag, 11. Juni 2002 16:06
  An: [EMAIL PROTECTED]
  Betreff: Tomcat Performance??
  
  the pages to be served was varying between 90ms to 2200ms.
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 

-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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




Re: Tomcat Performance??

2002-06-11 Thread Rick Fincher

Hi,

Just a shot in the dark because you sound pretty well versed in JSP, but
were your pages pre-compiled?
If not, they compile the first time they are called, that adds significantly
to loading time.

If it looks like class lookup was the bottleneck, was the slowdown on the
first call to the class or was it random?  The slowdown may have been
because the first call to the class loaded it, while subsequent calls
didn't.

Also, what was the load on the server/database system?  If you are making
calls to a corporate database on a remote server, its performance can vary a
lot during peak hours.

Same with a heavily used server.

Rick
- Original Message -
From: Hanks Mei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 11, 2002 10:06 AM
Subject: Tomcat Performance??


 Hi,

 I have been trying to analyze the
 performance of my application(Jsp pages with tag libraries)
 in tomcat4.0.3+ jdk1.4

 But I was astonished to find that, the time taken for
 the pages to be served was varying between 90ms to 2200ms.
 The test jsp page is a dummy page without any back-end processing.
 The tags use a java class which contains all the required info
 hard coded for testing purposes.

 I am working on a application which must be highly
 responsive. So as I was trying to find out the reason,behind it.
 The time increase seems to be due to the Class lookup.
 (All the required classes are within the WEB-INF/classes)

 Can anybody shed some light on this?
 Has anybody seen this issue?

 I would greatly appreciate your help.

 Thx
 mano



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




RE: Statistic and Tomcat 4.x

2002-06-11 Thread Anthony Eden

I use analog and it works fine.  I have specified that my logging valve is combined so 
that I get all of the referrer
data as well.  Analog is set up to run as a cron job and the logs are placed in a 
secure section of the site so that
they are accessible with proper authentication.

Sincerely,
Anthony Eden

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, June 11, 2002 7:49 AM
 To: Tomcat Users List
 Subject: Statistic and Tomcat 4.x


 Hi,

 how are you guys getting user access statistics about your apps running on Tomcat?
 Normaly I use Webtrends or Webanalyses. Is that possible with Tomcat?
 Can someone give comments on this?

 Thanks! Rainer




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




  1   2   3   >