Re: Starting and stopping servlets on tomcat startup and shutdown

2001-05-29 Thread Bernd Koecke

Hi,

we needed the same functionality and I solved it with an own
Interceptor. You could inherit from BaseInterceptor and than you get
various callbacks (engineInit, engineShutdown etc). But I don't know if
this Interface/Class changes in newer versions of tomcat, we use 3.2.1.
Another posibility is, you write a servlet and move your startupcode in
the init-Method and the shutdowncode in the destroy-Method and set
'load-on-startup' in your web.xml-file. But these Methods could be
called if the servlet-environment decides to kill an unused Servelt if
it gets low on resources. But I don't know if tomcat behaves likes this.
Because of the ClassLoader the loaded Classes of your Servlet are only
visible in the containing webapp.

Hope this helps, bye

Bernd

Zsolt Koppany wrote:
> 
> Hi,
> 
> as the subject shows is it possible that tomcat calls a class when
> tomcat is just started or when it is shutting down?
> My application needs database and some other external resources and it
> would be nice if I could control those resources depending on the status
> of tomcat.
> 
> Zsolt
> 
> --
> Zsolt Koppany
> Intland GmbH www.intland.com
> Schulze-Delitzsch-Strasse 16
> D-70565 Stuttgart
> Tel: +49-711-7871080 Fax: +49-711-7871017

-- 
Dipl.-Inform. Bernd Koecke
UNIX-Entwicklung
Schlund+Partner AG
Fon: +49-721-91374-0
E-Mail: [EMAIL PROTECTED]



RE: lb-problem with mod_jk: high cpu load on apache when tomcat breaks down

2001-05-29 Thread GOMEZ Henri

>It seems to be a lifelock in mod_jk, because tomcat accepts the
>connection, but is not able to reply. I think its that while-loop in
>mod_jk:

That's all the magic of TCP IOs. You can connect, but you're not
sure that the remote server is ready to process your query.
Something which will be removed in AJP14 by the LOGIN feature.

Another "beauty" of socket API is that you couldn't be sure 
the write() call was really successfull before doing a read()
call.

Which make me think that when servicing a request we must add
somewhere a 'kind of timeout' in operation. But that complexify
also the process, since you had to play with NON-BLOCKED IO...


>static int ajpv12_handle_response(ajp12_endpoint_t *p,
>  jk_ws_service_t *s,
>  jk_logger_t *l)
>{
>while(1) {
>unsigned to_read = READ_BUF_SIZE;
>unsigned acc = 0;
>char *buf = NULL;
>
>if(!jk_sb_read(&p->sb, &buf, to_read, &acc)) {
>jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
>reading
> from \n"); return JK_FALSE;
>}
>
>if(!acc) {
>jk_log(l, JK_LOG_DEBUG, "ajpv12_handle_response, response
>body is
> done\n"); break;
>}
>
>if(write_to_ws) {
>if(!s->write(s, buf, acc)) {
>jk_log(l, JK_LOG_ERROR, "ajpv12_handle_response, error
> writing back to server\n"); write_to_ws = JK_FALSE;}
>}
>}
>---
>
>
>what do you think?
>
>Greetings,
>Timo
>
>Guido Medina wrote:
>> 
>> Yesd, I had, I changed to mod_jserv, I'm still waiting for 
>the same answer
>> as you do, for the high CPU request of mod_jk...
>> 
>> Guido.
>> - Original Message -
>> From: "Timo Carl" <[EMAIL PROTECTED]>
>> To: <[EMAIL PROTECTED]>
>> Sent: Wednesday, May 23, 2001 10:37 AM
>> Subject: lb-problem with mod_jk: high cpu load on apache 
>when tomcat breaks
>> down
>> 
>> > Hello tomcat-users,
>> >
>> > We are having a problem with mod_jk and load balancing.
>> > Does anyone else have had similar problems with that kind of
>> > architecture setup?
>> >
>> > Our System:
>> > ===
>> > Alteon switch (round robin)
>> > |
>> > |
>> > three Apache 1.3.19 on three SPARC-Servers (called 
>s1,s2,s3)(3 CPU, 3
>> > GB)
>> > |
>> > |each:
>> > mod_jk with lb (in case of s1: 1*s1,0.001*s2,0.001*s3)
>> > |
>> > |
>> > |
>> > two tomcats-3.2.1 on each server (jdk1.2.2, native threads, -Xms50M
>> > -Xoss4M -Xss4M -Xmx600M)
>> >
>> > We chose this architecture because the alteon is not able 
>to perform
>> > session tracking properly.
>> >
>> > The Problem:
>> > 
>> > On startup, the system works fine. Each java-Process has 
>about 1-8% CPU
>> > load.
>> > After one day or so, one tomcat takes 40% CPU load or 
>more. I think the
>> > reason is inside our applications. But thats not the error 
>I want to
>> > post:
>> >
>> > After the error of a tomcat, the httpd-processes on EACH 
>Server begin to
>> > take a lot of CPU time (8-30% each).
>> > In server-status I can see that the processes are waiting 
>for a response
>> > of that tomcat.
>> > Of course I want to have a fault tolerance, but when I 
>have a problem
>> > with one server, the other servers go down too.
>> >
>> >
>> > Did/Does anyone have the same problem and/or a similar system
>> > architecture?
>> > Maybe anyone solved that problem?
>> >
>> > Greetings and thanks in advance,
>> > Timo Carl
>
>-- 
>
>
>
>Timo Carl
>Technik & Programmierung
>
>travelchannel GmbH
>Kehrwieder 8
>D-20457 Hamburg
>Telefon +49/40/38617-275
>Telefax +49/40/38617-330
>
>http://www.travelchannel.de - das neue Reisen
>



Re: Tomcat and Apache on diffenet machines

2001-05-29 Thread David Cassidy (Programmer)
Title: Re: Tomcat and Apache on diffenet machines





OK Kumar here goes !


Machine 1 the application server doesn't need mod_jk. mod_jk is an 
apache thing.


in your workers.properties  have you got a workers.list=ajp13 ?



Are you sure that mod_jk _has_ loaded ?


Because I wouldn't expect a 404 ...


David




Kumar Vijayaratnam wrote:
> 
> David,
> 
> Can you state what needs to be implemented on machine1 and machine2, I
> have posted another query the contents of which I have pasted below:-
> 
> I am trying to configure two separate machines one with  Tomcat 3.2.1
> and another with apache with mod_jk
> 
> The config is as follows:-
> 
> Machine1:
> --
> 
> Tomcat 3.2.1 + mod_jk
> 
> workers.properties
> 
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> JkMount
> 
> server.xml contains the standard configuration
> 
> with Context of
>  
>  docBase="/packages/apps/myapp" />
> 
> Machine2
> --
> 
> Apache is setup to load mod_jk
> 
> This machine also has tomcat loaded
> 
> The workers.properties file on Machine2 has the following entry
> 
> worker.ajp13.port=8009
> worker.ajp13.host=machine1
> worker.ajp13.type=ajp13
> 
> Then I add the following mount points
> 
> JkMount /myapp/servlet/* ajp13
> JkMount /myapp/*.jsp ajp13
> 
> 
> I then startup Tomcat on Machine1 followed by apache on Machine2
> 
> When I then type on http://www.myhost.com/myapp/myjsp.jsp
> 
> 
> I don't get my application just a message saying 404 not found.
> 
> 
> I have tried telnet machine1  8009  but nothing is returned...
> 
> Regards
> Kumar
> 
> "David Cassidy (Programmer)" wrote:
> 
> 
> 
> Yup this is possible 
> 
> and if you are using the loadbalancing module ( so you can have more
> than 1
> tomcat for your apache(s) to talk to) essential
> 
> in workers.properties you should find something like ...
> 
> worker.ajp12.port=8007
> worker.ajp12.host=localhost
> worker.ajp12.type=ajp12
> worker.ajp12.lbfactor=1
> 
> To define another service try ...
> 
> worker.external_1.port=8007
> worker.external_1.host=192.168.34.43
> worker.external_1.type=ajp12
> worker.external_1.lbfactor=1
> 
> You can define as many of these as you want.
> 
> You can then define a loadbalancer ( if you want to)
> 
> worker.loadbalancer.type=lb
> worker.loadbalancer.balanced_workers=ajp12, external_1, external_2 etc
> 
> then
> worker.list=loadbalancer
> and you have got load balancing
> 
> If you just want to use a single tomcat host then
> worker.list=external_1
> 
> in your mod_jk.conf
> 
> JkMount /test/* loadbalancer
> 
> or
> 
> JkMount /test/* external_1
> 
> Hope this helps
> 
> David
> 
> PS If you are going to do loadbalancing I suggest you use ajp12
>    it takes less time to recover if than ajp13
> 
> 
> 
> Kumar Vijayaratnam wrote:
> >
> > Michael,
> >
> > Did you ever get an answer to this question.. I also posted a similar
> > question but have never received an answer.
> >
> > Regards
> > Kumar
> >
> > Wolle wrote:
> >
> > > Hello all,
> > > Is it possible to use Apache with mod_jk to a extrenal Tomcat ?
> > > I have found something like this for the mod_jserv (to insert in the
> 
> > > httpd.conf)
> > >  ApJServMount /examples ajpv12://hostname:port/root
> > >
> > > Is it also with mod_jk ?
> > >
> > > JkMount /test/* ajp12://test.domain.com:8007/root
> > > and
> > > JkMount /test/* ajp13://test.domain.com:8009/root
> > >
> > > ?
> > >
> > > Has someone tested this behavior ?
> > >
> > > Greetings,
> > > Michael





Re: tomcat process dies out... (fwd)

2001-05-29 Thread Jan Labanowski



> The commands can also look like:
> 
>  Under /bin/sh, /bin/ksh, /bin/bash, etc:
> 
>   nohup ./startup.sh -f server_1.xml > /tmp/mytomcat.log 2>&1 &

This means:
 nohup -- do not kill process on terminal interrupt
 > file  -- redirect STDOUT to file
 2>&1  -- join STDERR(2) with STDOUT (1)
 & put to background



> Under /bin/csh or /bin/tcsh
> 
>  nohup ./startup.sh -f server_1.xml >&! &

I made a mistake here and forgot to put the file. SHould be:

  nohup ./startup.sh -f server_1.xml >&! /tmp/mytomcat.log &


  >&! means: send STDERR and STDOUT to a file and overwrite file if exists
  & means: do it in background

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/




RE: PROBLEMS_IMPORTING_CLASSES

2001-05-29 Thread Bhat, Mahesh

Copy it in jre/lib/ext it should work...

-Original Message-
From: Daniel Leyva [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 8:20 AM
To: [EMAIL PROTECTED]
Subject: PROBLEMS_IMPORTING_CLASSES


Hi,

I have some problems importing classes of java which are used for JSP pages
( under Tomcat - linux) , the package oracle.jdbo.*.
I´ve defined the CLASS_PATH, JAVA_HOME, I´ve copied the package in
jdk1.3.1/lib, in jdk1.3.1/jre/lib, in jakarta-tomcat/lib but the tomcat
doesn´t find it.


Thank you very much,

Daniel Leyva Cortes


Important:

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish 
to confirm the origin or content of this communication, please contact the sender 
using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it 
without copying, disclosing or otherwise using its contents. Please notify the sender 
immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of 
companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. 
Reg. No. 2294747.
Registered in England.



newbie problem: javax.servlet.ServletException at org.apache.jasper.runtime.PageContextImpl.handlePageException

2001-05-29 Thread Terje Kristensen

Hi, 

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

My problem:

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





LSP-200 - Changes in Issue


<% 
String report   = request.getParameter("report");
String opn  = request.getParameter("opn");
String issue= request.getParameter("issue");

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

if (no_1) { 
String section1 = "section1.xsql?opn="+ opn + "&issue=" +
issue;
String section2 = "section2.xsql?opn="+ opn + "&issue=" +
issue;
String section3 = "section3.xsql?opn="+ opn + "&issue=" +
issue;
String section4 = "section4.xsql?opn="+ opn + "&issue=" +
issue;
String section5 = "section5.xsql?opn="+ opn + "&issue=" +
issue;
String section6 = "section6.xsql?opn="+ opn + "&issue=" +
issue;
String section7 = "section7.xsql?opn="+ opn + "&issue=" +
issue;
String section8 = "section8.xsql?opn="+ opn + "&issue=" +
issue;
String section9 = "section9.xsql?opn="+ opn + "&issue=" +
issue;
%>











<%  } 
if (no_2) { 
String section1 = "changes_section1.xsql?opn="+ opn +
"&issue=" + issue;
String section2 = "changes_section2.xsql?opn="+ opn +
"&issue=" + issue;
String section3 = "changes_section3.xsql?opn="+ opn +
"&issue=" + issue;
String section4 = "changes_section4.xsql?opn="+ opn +
"&issue=" + issue;
String section5 = "changes_section5.xsql?opn="+ opn +
"&issue=" + issue;
String section6 = "changes_section6.xsql?opn="+ opn +
"&issue=" + issue;
String section7 = "changes_section7.xsql?opn="+ opn +
"&issue=" + issue;
String section8 = "changes_section8.xsql?opn="+ opn +
"&issue=" + issue;
String section9 = "changes_section9.xsql?opn="+ opn +
"&issue=" + issue;
%>











<%  } 
if (no_3) { %>










Printout section
1. General
2. PCS
3. SST
4. VDS
5. VSK
6. MDS
7. ESK
8.
SC
9. VSM




  

<%  } 
if (no_4) { %>
<%
} 
if (no_5) { %>





"/>

Historic Data:

Section Selection
Description: This will print out a complete
example of the current issue


PCS Selection
Description: This will print out a complete
example of the current issue
PCS: 

VDS Selection
Description: This will print out a complete
example of the current issue
VDS: 

Pipe Element Selection

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

2001-05-29 Thread Ralph Einfeldt

To get an idea what happens, you should have a look at line 72 of the 
generated java file
_0002flsp_00032_00030_00030_0002fadvanced_0005fredirect_0002ejspadvanced_000
5fredirect_jsp_0.java

to find the place in advanced_redirect.jsp which causes this problem.

Try to reduce your jsp's to the bare minimum that reproduces this error.

> -Ursprüngliche Nachricht-
> Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 29. Mai 2001 11:18
> An: '[EMAIL PROTECTED]'
> Betreff: newbie problem: javax.servlet.ServletException at
> org.apache.jasp er.runtime.PageContextImpl.handlePageException 
 
Root cause: 
java.lang.IllegalArgumentException
at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285)
at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:154)
at
org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDispatc
herImpl.java:491)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:176)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:421)
at
lsp_00032_00030_00030._0002flsp_00032_00030_00030_0002fadvanced_0005fredirec
t_0002ejspadvanced_0005fredirect_jsp_0._jspService(_0002flsp_00032_00030_000
30_0002fadvanced_0005fredirect_0002ejspadvanced_0005fredirect_jsp_0.java:72)
 



Re: Signed certificate and tomcat

2001-05-29 Thread François Andromaque



I'm using tomcat on stand-alone (without apache), i 
want to configure tomcat to work with SSL by self signing my server 
certificate.
 
The documentation TOMCAT and SSL (SSL direct) 
suggest  to import a cert with openssl :
openssl req -new -out REQ.pem -keyout 
KEY.pem
openssl req -x509 -in REQ.pem -key KEY.pem -out 
CERT.pem (password='xx')
keytool -import   -v -trustcacerts -alias tomcat -file CERT.pem
    saved in 
/root/.keystore
 
server.xml :

 (it is the same with 
value="443")
    

 
if I try : https://my_ip_adress:8443 ( or 443 ), the 
navigator returns connexion refused,
 
i have also tried to create my own ca 
:
openssl genrsa -des3 -out ca.key 1024
openssl rsa req -new -x509 -days 365 -key ca.key 
-out ca.crt
 
and a cert for the server ( CERT.pem can not be 
signed by this ca and using sign.sh from mod_ssl )
openssl genrsa -des3 -out server.key 
1024
openssl req -new -key server.key -out 
server.csr
 
server.csr can be signed : sign.sh server.csr, and 
server.crt is created, can i configure tomcat to use this self signed 
cert?
otherwise what can i do for configure tomcat to use 
jsse1.0.2 with a self signed certificate without installing tomcat.
 

  - Original Message - 
  From: 
  Rams 
  To: [EMAIL PROTECTED] 
  Sent: Tuesday, May 29, 2001 8:23 AM
  Subject: RE: Signed certificate and 
  tomcat
  
  Hi 
  Andromaque,
      can u elaborate ur 
  doubt?
   
  Rams 
   -Original Message-From: François Andromaque [mailto:[EMAIL PROTECTED]]Sent: 
  Monday, May 28, 2001 9:16 PMTo: [EMAIL PROTECTED]Subject: 
  Signed certificate and tomcat
  
How configure tomcat, after have create a new 
self signed certificate 
server.crt


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

2001-05-29 Thread Terje Kristensen

Oops, my error...

The flow is as follows: from file1 to this:
String opn  = request.getParameter("opn");
String pcs  = request.getParameter("pcs");
String vds  = request.getParameter("vds");
boolean no_1= request.getParameter("xsql_file").equals("Section
Selection");
boolean no_2= request.getParameter("xsql_file").equals("PCS Selection");
boolean no_3= request.getParameter("xsql_file").equals("VDS Selection");
boolean no_4= request.getParameter("xsql_file").equals("Pipe Element
Selection");
if (no_1) { %><% }
if (no_2) { %><% }
if (no_3) { %><% }
if (no_4) { %><% } %>

where I try to open file 2 in my previous mail. 
It seems as if there is something wrong with my jsp:forward. Any clue?

Will search the net...

Thanks 

Terje K.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 29. mai 2001 11:53
To: '[EMAIL PROTECTED]'
Subject: AW: newbie problem: javax.servlet.ServletException at
org.apache.jasp er.runtime.PageContextImpl.handlePageException 


To get an idea what happens, you should have a look at line 72 of the 
generated java file
_0002flsp_00032_00030_00030_0002fadvanced_0005fredirect_0002ejspadvanced_000
5fredirect_jsp_0.java

to find the place in advanced_redirect.jsp which causes this problem.

Try to reduce your jsp's to the bare minimum that reproduces this error.

> -Ursprüngliche Nachricht-
> Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 29. Mai 2001 11:18
> An: '[EMAIL PROTECTED]'
> Betreff: newbie problem: javax.servlet.ServletException at
> org.apache.jasp er.runtime.PageContextImpl.handlePageException 
 
Root cause: 
java.lang.IllegalArgumentException
at javax.servlet.http.HttpUtils.parseName(HttpUtils.java:285)
at javax.servlet.http.HttpUtils.parseQueryString(HttpUtils.java:154)
at
org.apache.tomcat.facade.RequestDispatcherImpl.addQueryString(RequestDispatc
herImpl.java:491)
at
org.apache.tomcat.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:176)
at
org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:421)
at
lsp_00032_00030_00030._0002flsp_00032_00030_00030_0002fadvanced_0005fredirec
t_0002ejspadvanced_0005fredirect_jsp_0._jspService(_0002flsp_00032_00030_000
30_0002fadvanced_0005fredirect_0002ejspadvanced_0005fredirect_jsp_0.java:72)
 



RE: PROBLEMS_IMPORTING_CLASSES

2001-05-29 Thread Daniel Leyva

thank you very much!!!, it works..

Daniel Leyva
- Original Message -
From: Bhat, Mahesh <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 11:15 AM
Subject: RE: PROBLEMS_IMPORTING_CLASSES


> Copy it in jre/lib/ext it should work...
>
> -Original Message-
> From: Daniel Leyva [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 8:20 AM
> To: [EMAIL PROTECTED]
> Subject: PROBLEMS_IMPORTING_CLASSES
>
>
> Hi,
>
> I have some problems importing classes of java which are used for JSP
pages
> ( under Tomcat - linux) , the package oracle.jdbo.*.
> I´ve defined the CLASS_PATH, JAVA_HOME, I´ve copied the package in
> jdk1.3.1/lib, in jdk1.3.1/jre/lib, in jakarta-tomcat/lib but the tomcat
> doesn´t find it.
>
>
> Thank you very much,
>
> Daniel Leyva Cortes
>
>
> Important:
>
> Internet communications are not necessarily secure and may be intercepted
or changed after they are sent.
> The Abbey National Group does not accept liability for any such changes.
If you wish to confirm the origin or content of this communication, please
contact the sender using an alternative means of communication.
>
> This communication does not create or modify any contract.
>
> If you are not the intended recipient of this communication you should
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error.
>
> The Abbey National Group comprises Abbey National plc and its subsidiary
group of companies.
>
> Abbey National plc. Registered Office: Abbey House, Baker Street, London,
NW1 6XL. Reg. No. 2294747.
> Registered in England.




Tomcat Web Server 3.1 bug

2001-05-29 Thread Vishal Batra
hello ,

i am working on a web based application using JSP on Tomcat Web Server. Other tools used are JavaMail 1.1.
I am getting a runtime exception which i have tried to solve but am unable to do so. So i have come to u for help.

I have traced out the location where i get this error. 

I have a jsp mailTest.jsp which calls method mailUserAboutLoginCreation( ) of TeamshareMailBean.class
This method accepts 5 String parameters. This method calls method sendMessage() of MailGenericBean.class.
It is here that I get a problem. The following code causes the problem ( of sendMessage() ).

            try
            {
                message = new MimeMessage( session ) ; // message is object of javax.mail.Message class
                                                                         
          // session is an object of javax.mail.Session class
            }
            catch( Exception e )
            {
                outputWriter.write( "CATCH : Exception while creating Message object : " + e ) ;
            }
            finally
            {
                outputWriter.write( "FINALLY : Exception while creating Message object : " + message ) ;
            }

When the above code executes the 'message' object is not instantiated. The
'catch' block is not executed while the 'finally' block is executing. The
code which follows the 'finally' block is not executed.

After this the HTML part of mailTest.jsp which lies above the TeamshareMailBean.mailUserAboutLoginCreation(
) appear on my browser followed by the exception. Here is the output ( in
italics) :

User Name  Vishal Batra  
User Email Address  [EMAIL PROTECTED]  
Company Login ID  SUVI  
User Login ID  vishal  
User Password  vishal  
M A I L T E S T M A I L T E S T 
Error: 500
Location: /teambean/jsp/mailTest.jsp
Internal Servlet Error:

java.lang.IllegalStateException: Response has already been committed
    at java.lang.Throwable.fillInStackTrace(Native Method)
    at java.lang.Throwable.fillInStackTrace(Compiled Code)
    at java.lang.Throwable.(Compiled Code)
    at java.lang.Exception.(Compiled Code)
    at java.lang.RuntimeException.(RuntimeException.java:47)
    at java.lang.IllegalStateException.(IllegalStateException.java:45)
    at org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
    at org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
    at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
    at org.apache.tomcat.core.ContextManager.service(Compiled Code)
    at org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled Code)
    at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
    at java.lang.Thread.run(Compiled Code)

Unfortunately, the above code is giving problem only with Tomcat Web Server, version 3.1 and not with version 3.2.1.

In my lab we use Tomcat Web Server 3.2.1 but our Application Service Provider uses Tomcat Web Server 3.1

It is working very fine in my lab but not in the uploaded version.

Kindly suggest a solution

Vishal Batra.


Re-deploy a WAR file

2001-05-29 Thread jsoriano

Hi:
I've listened about the chance of re-deploy an application
(i.e. a war file) in Tomcat without restarting the server.
I think is setting the attribute "reload" to 'true' in server.xml

Can you confirm this point?

Regards:
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__



RE: tomcat not running...

2001-05-29 Thread Randy Layman


Your problem is that Tomcat is not starting correctly - if the DOS
window goes away then Tomcat has stopped.  I would suggest trying to run
"tomcat run" instead of "tomcat start" so that you can see the error.

Randy

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Monday, May 28, 2001 4:11 PM
> To: [EMAIL PROTECTED]
> Subject: tomcat not running...
> 
> 
> Hello guys,
> I don't know what's happening with my tomcat installation, it 
> was ok... but suddenly stopped. I'm running on win2k + IIS 
> redirect mode. When type "tomcat start" on prompt C:\>, i 
> receive the usual messages in a new "DOS" window and after it 
> close automatically and tomcat process hang-up. My tomcat.log 
> file doesn't register any error message.
> Any suggestions are wellcome!
> thanks in advance!
> 



RE: PROBLEMS_IMPORTING_CLASSES

2001-05-29 Thread Randy Layman


I would guess that you are using the Oracle packages in
classesXXX.zip.  Tomcat's automatic class loading only works on *.jar files
in the webapp or in $TOMCAT_HOME/lib.

Just an FYI as to why it wasn't working before.

Randy

> -Original Message-
> From: Daniel Leyva [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 7:42 AM
> To: [EMAIL PROTECTED]
> Subject: RE: PROBLEMS_IMPORTING_CLASSES
> 
> 
> thank you very much!!!, it works..
> 
> Daniel Leyva
> - Original Message -
> From: Bhat, Mahesh <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 29, 2001 11:15 AM
> Subject: RE: PROBLEMS_IMPORTING_CLASSES
> 
> 
> > Copy it in jre/lib/ext it should work...
> >
> > -Original Message-
> > From: Daniel Leyva [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, May 29, 2001 8:20 AM
> > To: [EMAIL PROTECTED]
> > Subject: PROBLEMS_IMPORTING_CLASSES
> >
> >
> > Hi,
> >
> > I have some problems importing classes of java which are 
> used for JSP
> pages
> > ( under Tomcat - linux) , the package oracle.jdbo.*.
> > I´ve defined the CLASS_PATH, JAVA_HOME, I´ve copied the package in
> > jdk1.3.1/lib, in jdk1.3.1/jre/lib, in jakarta-tomcat/lib 
> but the tomcat
> > doesn´t find it.
> >
> >
> > Thank you very much,
> >
> > Daniel Leyva Cortes
> >
> >
> > Important:
> >
> > Internet communications are not necessarily secure and may 
> be intercepted
> or changed after they are sent.
> > The Abbey National Group does not accept liability for any 
> such changes.
> If you wish to confirm the origin or content of this 
> communication, please
> contact the sender using an alternative means of communication.
> >
> > This communication does not create or modify any contract.
> >
> > If you are not the intended recipient of this communication 
> you should
> destroy it without copying, disclosing or otherwise using its 
> contents.
> Please notify the sender immediately of the error.
> >
> > The Abbey National Group comprises Abbey National plc and 
> its subsidiary
> group of companies.
> >
> > Abbey National plc. Registered Office: Abbey House, Baker 
> Street, London,
> NW1 6XL. Reg. No. 2294747.
> > Registered in England.
> 



Starting Tomcat without new DOS Window

2001-05-29 Thread David DELGRANCHE

Hi All,

Does anybody know how to start tomcat without opening a new Window? Is it 
possible to start Tomcat as a service?
Thanks for help

David DELGRANCHE
[EMAIL PROTECTED]  
tel. 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX






RE: JavaBeans

2001-05-29 Thread Bhat, Mahesh

Hi

Place the bean class either in the Web-inf/classes directory (along with the
package directory structure) or package it in a jar and place it in the 
Web-Inf/lib directory.


regards

-Original Message-
From: Kavi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 7:13 AM
To: [EMAIL PROTECTED]
Subject: JavaBeans


Hi everyone,
I am trying to use my first javabean in a JSP using
tomcat but where I must place the bean(or package??)
I am getting error 500 - Unable to load class

Please help!!

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


Important:

Internet communications are not necessarily secure and may be intercepted or changed 
after they are sent.
The Abbey National Group does not accept liability for any such changes. If you wish 
to confirm the origin or content of this communication, please contact the sender 
using an alternative means of communication.

This communication does not create or modify any contract.

If you are not the intended recipient of this communication you should destroy it 
without copying, disclosing or otherwise using its contents. Please notify the sender 
immediately of the error.

The Abbey National Group comprises Abbey National plc and its subsidiary group of 
companies.

Abbey National plc. Registered Office: Abbey House, Baker Street, London, NW1 6XL. 
Reg. No. 2294747.
Registered in England.



xalan ApplyXSL sample servlet fails

2001-05-29 Thread Stan Devitt

Any pointers to additional info, a working example, 
or  direct help in resolving the following would 
be most appreciated.

Stan Devitt

==
I am attempting to run the servlet example that is part of
the xalan1.2.2  zip file - specifically with DefaultApplyXSL,
whose purpose is to apply xslt transformations.

I am using tomcat 3.2.1. (more details below)

I have installed the servlet in a Test context 
and a sample xml and style file tested independently.

I successfully link to the servlet using:

http://localhost:8080/Test/servlet/DefaultApplyXSL?
debug=true&URL=/Test/main.xml&xslURL=/Test/styles/main.xsl

but the transformation fails in the process method in ApplyXSL during

xslprocessor.process(xmlSource, xslSource, outBuffer);

The debug response indicates that
a) it is finding the servlet,
b) it is finding the xml file and its style file,  

however, a SAX exception occurs while it is being processed to
generate html output - the log shows

SystemId Unknown; Line 1; Column 1; SystemId Unknown; Line 0; Column 0; 
Exception is org.xml.sax.SAX Exception

Additional Notes:

1.  The xml and style file has been validated and successfully 
transformed using both xt and xalan in command line mode.

2.  I am using tomcat 3.2.1, together with jdk1.3.1,
xerces 1.2.3 and xalan 1.2.2 on Windows 2000.

3.  There is no DOCTYPE in the xml file, nor is there a
style sheet processing instruction.

4.  The xalan.jar and xerces.jar files are at the start of the
class path.

Thanks in advance.





RE: Starting Tomcat without new DOS Window

2001-05-29 Thread Ronald G. Louzon

Tomcat can be started as a service using either jk_nt_service.exe which is
described in the Tomcat documentation or you can use Alexandria Consulting's
JavaService.exe which is available from 

http://www.alexandriasc.com/software/JavaService/index.html

Both service wrappers are free and redistributable.  Be aware that the
Apache supplied jk_nt_service.exe has a bug which causes the service to stop
when you log out of NT.  JavaService works very well and is well
documented



-Original Message-
From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 29, 2001 9:20 AM
To: Liste de diffusion TomCat (Adresse de messagerie)
Subject: Starting Tomcat without new DOS Window


Hi All,

Does anybody know how to start tomcat without opening a new Window?
Is it possible to start Tomcat as a service?
Thanks for help

David DELGRANCHE
[EMAIL PROTECTED]  
tel. 02.99 05.34.25 
Fax: 02.99.05.34.05
Sogitec Industries
24, Avenue Lavoisier
ZI du Champ Niguel
35174 BRUZ CEDEX





RE: Starting Tomcat without new DOS Window

2001-05-29 Thread Randy Layman


Actually its Sun's bug.  The Alexandria service just wrappers the
JVM and catches the appropriate signal and doesn't forward it on to the JVM.

Randy

> -Original Message-
> From: Ronald G. Louzon [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 8:41 AM
> To: '[EMAIL PROTECTED]'
> Subject: RE: Starting Tomcat without new DOS Window
> 
> 
> Tomcat can be started as a service using either 
> jk_nt_service.exe which is
> described in the Tomcat documentation or you can use 
> Alexandria Consulting's
> JavaService.exe which is available from 
> 
> http://www.alexandriasc.com/software/JavaService/index.html
> 
> Both service wrappers are free and redistributable.  Be aware that the
> Apache supplied jk_nt_service.exe has a bug which causes the 
> service to stop
> when you log out of NT.  JavaService works very well and is well
> documented
> 
> 
> 
> -Original Message-
> From: David DELGRANCHE [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 9:20 AM
> To: Liste de diffusion TomCat (Adresse de messagerie)
> Subject: Starting Tomcat without new DOS Window
> 
> 
>   Hi All,
> 
>   Does anybody know how to start tomcat without opening a 
> new Window?
> Is it possible to start Tomcat as a service?
>   Thanks for help
> 
> David DELGRANCHE
> [EMAIL PROTECTED]
> tel. 02.99 05.34.25   
> Fax: 02.99.05.34.05
> Sogitec Industries
> 24, Avenue Lavoisier
> ZI du Champ Niguel
> 35174 BRUZ CEDEX
> 
> 



RE: xalan ApplyXSL sample servlet fails

2001-05-29 Thread Chris McNeilly

Funny you should ask.  I had (possibly) a very similar problem last
week.  After combing through maillists etc, I found a reference
suggesting that there was a conflict with the xerces xml parser and the
xml parser included with tomcat.  It suggested removing parser.jar and
jaxp.jar from the classpath in the tomcat startup scripts (tomcat.bat
for me).  That worked for me.  I've only been playing with it for a day
or two, but it doesn't seem to break tomcat and now my xalan-based
servlets function.

Chris

> -Original Message-
> From: Stan Devitt [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: xalan ApplyXSL sample servlet fails
>
>
> Any pointers to additional info, a working example,
> or  direct help in resolving the following would
> be most appreciated.
>
> Stan Devitt
>
> ==
> I am attempting to run the servlet example that is part of
> the xalan1.2.2  zip file - specifically with DefaultApplyXSL,
> whose purpose is to apply xslt transformations.
>
> I am using tomcat 3.2.1. (more details below)
>
> I have installed the servlet in a Test context
> and a sample xml and style file tested independently.
>
> I successfully link to the servlet using:
>
> http://localhost:8080/Test/servlet/DefaultApplyXSL?
> debug=true&URL=/Test/main.xml&xslURL=/Test/styles/main.xsl
>
> but the transformation fails in the process method in ApplyXSL during
>
> xslprocessor.process(xmlSource, xslSource, outBuffer);
>
> The debug response indicates that
> a) it is finding the servlet,
> b) it is finding the xml file and its style file,
>
> however, a SAX exception occurs while it is being processed to
> generate html output - the log shows
>
> SystemId Unknown; Line 1; Column 1; SystemId Unknown; Line 0;
> Column 0;
> Exception is org.xml.sax.SAX Exception
>
> Additional Notes:
>
> 1.  The xml and style file has been validated and successfully
> transformed using both xt and xalan in command line mode.
>
> 2.  I am using tomcat 3.2.1, together with jdk1.3.1,
> xerces 1.2.3 and xalan 1.2.2 on Windows 2000.
>
> 3.  There is no DOCTYPE in the xml file, nor is there a
> style sheet processing instruction.
>
> 4.  The xalan.jar and xerces.jar files are at the start of the
> class path.
>
> Thanks in advance.
>
>
>




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

2001-05-29 Thread Ralph Einfeldt

As I understand the spec, this is not valid:



(See 2.13.5 and 2.5.2)

Instead you can use:


 


This notation is a bit 'noisy' but it should work.

> -Ursprüngliche Nachricht-
> Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 29. Mai 2001 12:29
> An: '[EMAIL PROTECTED]'
> Betreff: RE: newbie problem: javax.servlet.ServletException at
 



Big problems to run my application on tomcat3.3m3

2001-05-29 Thread Woynar Andrea

Hallo,

i try to run my application on tomcat 3.3m3 and get a error messages, that i
don't understand:

Error: 500
Location: /Portal.jsp
Internal Servlet Error:

java.util.MissingResourceException: Can't find resource for base name
org.apache.jasper.resources.LocalStrings, locale en_US
void
org.apache.tomcat.facade.JasperLiaison.jsp2java(org.apache.jasper.compiler.J
asperMangler,  org.apache.jasper.JspCompilationContext)
int
org.apache.tomcat.facade.JasperLiaison.processJspFile(org.apache.tomcat.core
.Request,  java.lang.String, org.apache.tomcat.facade.ServletHandler,
java.util.Properties)
int
org.apache.tomcat.facade.JspInterceptor.requestMap(org.apache.tomcat.core.Re
quest)
int
org.apache.tomcat.core.ContextManager.processRequest(org.apache.tomcat.core.
Request)
void
org.apache.tomcat.core.ContextManager.internalService(org.apache.tomcat.core
.Request,  org.apache.tomcat.core.Response)
void
org.apache.tomcat.core.ContextManager.service(org.apache.tomcat.core.Request
,  org.apache.tomcat.core.Response)
void
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(org.apa
che.tomcat.util.net.TcpConne ction, java.lang.Object[])
void
org.apache.tomcat.util.net.TcpWorkerThread.runIt(java.lang.Object[])
void org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run()
void java.lang.Thread.run()


the same application work on tomcat 3.2.1 very good, can somebody help me 

thanks 

Andrea




Problems with ResultSet

2001-05-29 Thread Enrique Prados Valiente


Hi! 
I'm using Tomcat and JSP but there are problem, my JSP don' work.
I have this code in my JSP
(code.)
Statement 
s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);

(more code)


   if (!rs.isFirst()) rs.previous(); 

  %> 
  <%=rs.getString(1)%><%

   }

(more code)

In begin of my JSP there is this code line <%@ page language="java" 
import="java.sql.*,java.io.*,java.util.*" %>

but when I run the server and JSP, it appears this error


[Microsoft][ODBC Driver Manager] Invalid cursor state


I think that Jsp fails in this code line, <%=rs.getString(1)%><%


   
Can anyone out there help me? 
Thanks in advance, 
Enrique.









TOMCAT and SELF-SIGNED CERTIFICATE

2001-05-29 Thread François Andromaque



i have tried to follow your instructions :
generate a key : 
    keytool -genkey -alias tomcat 
-keyalg RSA -keystore $JAVA_HOME/jre/lib/security/jssecacerts
generate CSR
    keytool -certreq -alias tomcat 
-keystore $JAVA_HOME/jre/lib/security/jssecacerts -file server.csr
 
create a ca with openssl :
    openssl genrsa -des3 -out ca.key 
1024
    openssl req -new -x509 -days 365 
-key ca.key -out ca.crt
after have imported sign.sh from mod_ssl, i've 
signed myself my cert :
    sign.sh server.crs
 
I've now a server.crt cert, ca.db.certs/01.pem 
cert, ca.db.index, ca.db.serial
 
import the cert into the jssecacerts keystore by 
trying
        keytool 
-certreq -alias tomcat  -keystore 
$JAVA_HOME/jre/lib/security/jssecacerts -file server.csr
and   keytool -certreq -alias 
tomcat  -keystore 
$JAVA_HOME/jre/lib/security/jssecacerts -file 
ca.db.certs/01.pem
the both commands result is : 
java.security.cert.Certificate Exception : IOException : Sequence tag 
error
 
can you tell where my mistake 
is?


Re: Tomcat Usage

2001-05-29 Thread Jerry Villamizar

Peter,

With Tomcat you can develop any kind of critical mission project, what
kind of applicacion do you want to develop?

Jerry Villamizar
MarketNews International
[EMAIL PROTECTED]

- Original Message -
From: "Peter Horne" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, May 28, 2001 10:07 PM
Subject: Tomcat Usage


> Hi...
>
> Has anyone or does anyone know of anyone who has done
> a mission critical deployment of Tomcat in a financial
> environment?  I'd really like to hear from you...
>
> Thanks...Pete
>
>
>
> =
> Peter S. Horne
> [EMAIL PROTECTED]
>
> To know and not to do is not to know
> 
>
> 
> Do You Yahoo!?
> Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
> or your free @yahoo.ie address at http://mail.yahoo.ie
>




Re: Problems with ResultSet

2001-05-29 Thread Jim Cheesman

At 03:01 PM 29/05/01, you wrote:

>Hi!
>I'm using Tomcat and JSP but there are problem, my JSP don' work.
>I have this code in my JSP
>(code.)
>Statement 
>s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
>
>(more code)
>
>
>if (!rs.isFirst()) rs.previous();


Is there any particular reason you're going backwards through the result 
set? Wouldn't it be more efficient/logical to use rs.next()?



> [Microsoft][ODBC Driver Manager] Invalid cursor state


Try something like:
if (rs.next()) {
   <%= rs.getString(1) %>
}



Salud2.
Jim




--

   *   Jim Cheesman   *
 Trabajo: 
[EMAIL PROTECTED] - (34)(91) 724 9200 x 2360
  Not only am I 
redundant and superfluous, but I
also tend to use more 
words than necessary.





RV: Undelivered Mail Returned to Sender

2001-05-29 Thread Enrique Prados Valiente



-Mensaje original-
De: Mail Delivery System [SMTP:[EMAIL PROTECTED]]
Enviado el: martes, 29 de mayo de 2001 15:16
Para:   [EMAIL PROTECTED]
Asunto: Undelivered Mail Returned to Sender

This is the Postfix program at host mail-in.namezero.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to 

If you do so, please include this problem report. You can
delete your own text from the message returned below.

The Postfix program

<[EMAIL PROTECTED]>: host
inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown  

begin 600 MSG0.TXT
M1&4Z($5N2!*4U @
M9&]N)R!W;W)K+BXN+BX-"DD@:&%V92!T:&ES(&-O9&4@:6X@;7D@2E-0#0HH
M8V]D92XN+BXN*0T*4W1A=&5M96YT(',]8VXN8W)E871E4W1A=&5M96YT*%)E
M2 R,# Q(# V.C$U.C0T("TP-S P("A0
M1%0I#0H-"D9I;F%L+5)E8VEP:65N=#H@


mod_ssl?

2001-05-29 Thread Lessault Jean-Luc


Hi all!

Would someone be able to tell me where to find mod_ssl?
Thanks.




tc4 and image caching

2001-05-29 Thread Marcel Jansen

Hi

I'm in the process of moving our application from TC 3.2 to 
Catalina and the loading of a servlet generated web page is
a lot slower when using catalina. It spends its time serving
images that are part of this page which didn't happen
when using 3.2.

I've tried several combinations and found the following:

no image caching:
Win2K/IE5.0 browser using HTTP1.1 and TC4b5 server
Win2K/IE5.0 browser using HTTP1.0 and TC4b5 server

image caching:
Linux/Netscape4.73 using HTTP1.0 and TC4b5 server
Win2K/IE5.0 browser using HTTP1.0 and TC3.2 server
Linux/Netscape4.73 using HTTP1.0 and TC3.2 server

Is there any configuration in catalina that can be done
so that these images (that are not going to change) will
be cached? 

regards
Marcel






Re: mod_ssl?

2001-05-29 Thread Eirik Dentz


Normally you can get it here:

www.modssl.org

but it looks like the server is down right now.  Try a google search?

> From: Lessault Jean-Luc <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> Date: Tue, 29 May 2001 15:49:06 +0200
> To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
> Subject: mod_ssl?
> 
> 
> Hi all!
> 
> Would someone be able to tell me where to find mod_ssl?
> Thanks.
> 
> 




Re: mod_ssl?

2001-05-29 Thread Brendan McKenna

: 
: Hi all!
: 
: Would someone be able to tell me where to find mod_ssl?


www.modssl.org

: Thanks.
: 
: 

-- 
Brendan McKennaEmail: [EMAIL PROTECTED]
Development Strategist Phone: +353-61-338177
Taringold Ltd. Fax:   +353-61-338065





Site specific configuration

2001-05-29 Thread Erik Erskine


I'm trying to produce a WAR file that can be deployed at several sites. 
I would like to keep any site-specific configuration (ie jdbc details)
seperate from the .war file to ease the process of upgrading clients. 
For this reason I want to avoid any configuration under
webapps/myapp/...

Ideally I'd like to put this within the  definition, but this
does not appear to be possible (from looking at server.xml).  Is there
another way to do this, or should I be doing something completely
different?

I'm using Tomcat 3.3, but this is flexible.

Thanks,

Erik

/\
|   Erik Erskine   [EMAIL PROTECTED]   |
|   Sundayta Ltd |
\/



response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread A Yang

Hi All,

Does anyone know offhand whether the Java Servlet
specification requires a new HttpSession to be created
when using HttpServletResponse.sendRedirect()?

In a servlet, I was using:

getServletConfig().getServletContext().getRequestDispatcher("/Result.jsp").forward(req,
resp);

at the end of a sequence of pages/servlets, but I
wanted to replace it with

response.sendRedirect("/Result.jsp");

instead. The result page prints out the contents of
several javabeans which are stored in the session.

This worked fine when all I used were
requestDispatcher.forward but with
response.sendRedirect(), all of my session attributes
are gone! In fact, the session id is different after
the sendRedirect.

I'm pretty sure the session is supposed to survive
across any series of GET's and POST's until it is
invalidated explicitly (or timed out).

Any thoughts? I'm using Tomcat 3.2.1

Thanks.

___
Do You Yahoo!?
Get your free @yahoo.ca address at http://mail.yahoo.ca



Re: [ANNOUNCEMENT] Tomcat 3.2.2 released

2001-05-29 Thread Dariush Mossadeghi

did you get this ? could you download and update phatplanet ?

At 10:58 pm -0500 28/5/01, Marc Saegesser wrote:
>I am pleased to announce that the Tomcat 3.2.2 release is now
>available for download at
>
>http://jakarta.apache.org/builds/tomcat/release/v3.2.2
>
>Tomcat 3.2.2 is a maintenance release that fixes several bugs from version
>3.2.1 and corrects all known specification compliance issues.  The release
>notes file in src/doc/readme covers the details of the Tomcat 3.2.2 release.
>
>Tomcat 3.2.2 is now the latest production quality Tomcat release.  Users of
>version 3.2.1 and earlier release are encouraged to update to this release.
>
>Marc A. Saegesser




server.xml DTD

2001-05-29 Thread Paulo J S Pereira

Hi;

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

TIA!

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





RE: Using JDBCRealms

2001-05-29 Thread Ben Sifuentes

I'm trying to utilize teh JDBCRealm also. I see you are trying to get some
of the same information I am. Did you get a response for your previos e-mail

-Ben

-Original Message-
From: William Kaufman [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 16, 2001 8:05 PM
To: Tomcat Users (E-mail)
Subject: Using JDBCRealms


(Tomcat version 3.2.1.)

I'm trying to use JDBCRealm to manage access to some static files.  Is there
any documentation for that?

I've successfully configured authorization in web.xml (though it only seems
to work if the files are under webapps/ROOT--that's OK for what I'm doing,
but I am curious about why that is).

But I can't seem to get JDBCRealm (or my own subclass of that) to get
called.  I've added,



to my conf\server.xml, and commented out the SimpleRealm interceptor.
JDBCRealm is on my classpath--"javap" can print it.  And that JDBC
connection works fine outside of JDBCRealms, so it's not a JDBC issue.

Near as I can figure, Tomcat isn't even loading the class.  Is there some
debugging I can turn on in Tomcat to see what's going wrong?

-- Bill K.




Re: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Alex Fernández

Conceptually, requestDispatcher.forward() is different from
response.sendRedirect().

In forward(), you are moving inside the same webapp, and as such it
doesn't even reach the client browser. The session is maintained.

In sendRedirect(), you're instead moving across webapps, and it's the
browser that redirects to the specified location. In fact, it doesn't
even need to be another servlet, you may redirect to an ASP or a static
page. New request and response are created.

It seems strange that the session is not maintained, though, since both
requests come from the same browser. Perhaps it's a bug?

Un saludo,

Alex.

A Yang wrote:
> 
> Hi All,
> 
> Does anyone know offhand whether the Java Servlet
> specification requires a new HttpSession to be created
> when using HttpServletResponse.sendRedirect()?
> 
> In a servlet, I was using:
> 
> 
>getServletConfig().getServletContext().getRequestDispatcher("/Result.jsp").forward(req,
> resp);
> 
> at the end of a sequence of pages/servlets, but I
> wanted to replace it with
> 
> response.sendRedirect("/Result.jsp");
> 
> instead. The result page prints out the contents of
> several javabeans which are stored in the session.
> 
> This worked fine when all I used were
> requestDispatcher.forward but with
> response.sendRedirect(), all of my session attributes
> are gone! In fact, the session id is different after
> the sendRedirect.
> 
> I'm pretty sure the session is supposed to survive
> across any series of GET's and POST's until it is
> invalidated explicitly (or timed out).
> 
> Any thoughts? I'm using Tomcat 3.2.1
> 
> Thanks.
> 
> ___
> Do You Yahoo!?
> Get your free @yahoo.ca address at http://mail.yahoo.ca



JSP and Tomcat containers

2001-05-29 Thread Martin Kock




  
  Hi!
   
  I'm doing an assignment on Java Server Pages, and 
  I have a couple of questions about the Tomcat webserver:
   
  1. Which container (engine) will be running with 
  Tomcat? The JSP container, the servlet container, or both?
  2. I'm only using JSP-documents, but does the JSP 
  container handle the same stuff that the servlet container handled before 'the 
  era' of JSP?
  3. Tomcat listens on port 8080 - can I get it to 
  listen on port 80, and how?
  4. Where can I get the API documentation for class HttpJspBase? I've 
  searched Suns homepage with no luck.
  5. How do I (in my JSP page) read data sent with HTTP POST? I can't use 
  request.getParameter(java.lang.String);
   
  Thanks in advance,
  Martin Kock
  [EMAIL PROTECTED]


Servlets and relative paths

2001-05-29 Thread Chris McNeilly

I've got a servlet and am trying to open files.  The problem is that its
defaulting to the tomcat/bin directory whenever I attempt to refer to
them.  How can I change this?  Hardcoding the path isn't such a good
idea as my dev environment is different from production.  These are xml
and xsl files and they are located on the webroot.

Thanks,

Chris




RE: tc4 and image caching

2001-05-29 Thread Marcel Jansen

Hmm, seems to be my browser, a colleague
with IE5.5 is getting good results.
Sorry 'bout that.

Marcel


> I'm in the process of moving our application from TC 3.2 to 
> Catalina and the loading of a servlet generated web page is
> a lot slower when using catalina. It spends its time serving
> images that are part of this page which didn't happen
> when using 3.2.
> 
> I've tried several combinations and found the following:
> 
> no image caching:
> Win2K/IE5.0 browser using HTTP1.1 and TC4b5 server
> Win2K/IE5.0 browser using HTTP1.0 and TC4b5 server
> 
> 
> 



Re: xalan ApplyXSL sample servlet fails

2001-05-29 Thread Stan Devitt

I got it (or rather, DefaultApplyXSLT) to work.  The resolution was:

1.  Use xalan-j_2_0_0, and the servlet example
from there which uses ApplyXSLT 

2.  Clean up my careless classpath usage of jar files leading
instead with xalan.jar and xerces.jar from the xalan2_0_0
distribution.

3.  Be sure to get the right path to the servlet as the
new servlet example is now in a "servlet" package instead of 
the top level of the context.)

(I am now using tomcat 3.2.1, together with jdk1.3.1,
xerces 1.2.3 and xalan 2.0.0 on Windows 2000.)

Thanks.

Stan.

- Original Message - 
From: "Chris McNeilly" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 8:46 AM
Subject: RE: xalan ApplyXSL sample servlet fails


> Funny you should ask.  I had (possibly) a very similar problem last
> week.  After combing through maillists etc, I found a reference
> suggesting that there was a conflict with the xerces xml parser and the
> xml parser included with tomcat.  It suggested removing parser.jar and
> jaxp.jar from the classpath in the tomcat startup scripts (tomcat.bat
> for me).  That worked for me.  I've only been playing with it for a day
> or two, but it doesn't seem to break tomcat and now my xalan-based
> servlets function.
> 
> Chris
> 





Virtual Host Context Aliasing

2001-05-29 Thread Daniel Zen

I would think this would be a common question, but I couldn't find it
documented, nor asked on this list.

Very often domains are served from 2 urls (www.zzz.net & zzz.net) with the
same functionality. When I configure my virtual hosts in Apache's httpd.conf
this is easy:


 ServerName www.zzz.net
 ServerAlias zzz.net
 DocumentRoot /home/httpd/html/zzz
 
  Options None
  Deny from all
 
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13


The following properly placed in server.xml creates 2 seperate contexts for
the same set of servlets and JSPs. Functional, but a little wasteful.

  
   
  

  
   
  

Now, I how do I do an alias Context in Tomcat's server.xml so that there is
only one Host/Context with multiple names??

Thank you in advance.

Daniel Zen




Re: tomcat process dies out...

2001-05-29 Thread Krishna Kishore Thotakura

Hi,
yeah, i made a typo and
>nohup ./startup.sh -f server_1.xml >&1 &
did work. I am using tcsh shell. I now understand that 
>nohup ./startup.sh -f server_1.xml 
also works. But i think i should redirect stdout,stderr to some file coz i dont
see the stdout,stderr written to nohup.out as described in the man pages.
i dont see the nohup.out file at all. 

anyway, i'll work around that. thanks for your help. u were very informative.


Milt Epstein wrote:
> 
> On Mon, 28 May 2001, Krishna Kishore Thotakura wrote:
> 
> > yeah..now, it works.
> >
> > >nohup ./startup.sh -f server_1.xml >&1 &
> >
> > could u please explain how it made a difference?
> > What does redirection to '&1' mean? sorry, i am not a unix pro.
> 
> Ummm, the command you show above doesn't match either of the commands
> Jan gave.  Did you make a typo, or are you really using what you show
> above?  And exactly which shell are you using?  (You should be able to
> do "echo $SHELL" to find out.)
> 
> The syntax is somewhat different for the sh et al shells and the csh
> et al shells.  But, basically, ">" indicates "redirection".  More
> specifically:
> 
> In the sh et al command, "> /tmp/mytomcat.log" indicates to redirect
> stdout to /tmp/mytomcat.log, and "2>&1" indicates to redirect stderr
> to the same place stdout is going to (in this case, /tmp/mytomcat.log)
> -- 2 is the file descriptor for stderr, 1 is the file descriptor for
> stdout.
> 
> In the csh et al command, first of all, I think Jan made a typo
> (unless I misunderstand it, which is certainly possible :-), and left
> out the file to redirect to.  So I think the command should be:
> 
>   nohup ./startup.sh -f server_1.xml >& /tmp/mytomcat.log &
> 
> But recall that csh et al shells don't need the "nohup" when a job is
> backgrounded (done by the final "&"), so this can be simplified to:
> 
>   ./startup.sh -f server_1.xml >& /tmp/mytomcat.log &
> 
> ">&" means to redirect both stdout and stderr to the specified file.
> 
> AFAIK, the "!" has to do with changing the behavior slightly when you
> have the shell variable noclobber set.  At this point, I'd suggest
> reading the csh man page for more specifics.
> 
> > Jan Labanowski wrote:
> > >
> > > The commands can also look like:
> > >
> > > Under /bin/sh, /bin/ksh, /bin/bash, etc:
> > >
> > >   nohup ./startup.sh -f server_1.xml > /tmp/mytomcat.log 2>&1 &
> > >
> > > Under /bin/csh or /bin/tcsh
> > >
> > >   nohup ./startup.sh -f server_1.xml >&! &
> > >
> > > Jan
> > > [EMAIL PROTECTED]
> > >
> > > On Mon, 28 May 2001, Krishna Kishore Thotakura wrote:
> > >
> > > > It still doesnt work. I was under the impression that tomcat
> > > > would run in the background automatically. Also, i use the same
> > > > command to start the tomcat process on my other port(8080), and
> > > > it works just fine.
> > > >
> > > > Milt Epstein wrote:
> > > > >
> > > > > On Mon, 28 May 2001, Mathew Clark wrote:
> > > > >
> > > > > > You may need to try
> > > > > >
> > > > > > nohup ./startup.sh -f server_1.xml &
> > > > > >
> 
> Milt Epstein
> Research Programmer
> Software/Systems Development Group
> Computing and Communications Services Office (CCSO)
> University of Illinois at Urbana-Champaign (UIUC)
> [EMAIL PROTECTED]

-- 
Krishna Kishore Thotakura.
Work 256 961 7818
Home 256 837 9927



AW: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Ralph Einfeldt

Try this one:

response.sendRedirect(response.encodeRedirectUrl("/Result.jsp"));

> -Ursprüngliche Nachricht-
> Von: A Yang [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 29. Mai 2001 16:21
> An: [EMAIL PROTECTED]
> Betreff: response.sendRedirect vs. requestDispatcher.forward

> response.sendRedirect("/Result.jsp");




Re: Re-deploy a WAR file (2nd)

2001-05-29 Thread jsoriano

About the same question
Is there any 'signal' that says Tomcat there is a new version
of a War File (so Tomcat can re-deploy the war)?
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__




[EMAIL PROTECTED]
29/05/2001 14:02
Please respond to tomcat-user

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re-deploy a WAR file


Hi:
I've listened about the chance of re-deploy an application
(i.e. a war file) in Tomcat without restarting the server.
I think is setting the attribute "reload" to 'true' in server.xml

Can you confirm this point?

Regards:
__
Jaume Soriano Sivera <[EMAIL PROTECTED]>
Tel: 96504 -ext. 44744 Fax: 965040047
Portal y servicios multimedia - Nuevas tecnologias 
W a n a d o o E s p a n a - http://www.wanadoo.es 
__






BASE64Decoder - where?

2001-05-29 Thread TWR - Hauptuser

Hi,

I am using Tomcat 3.2.2 and therefore need accessing the methode 
BASE64Decoder (no catalina!) in sun.misc.*. But when trying to access Tomcat 
give me a class not found exception. I am using jdk 1.3 from JBuilder 4. What 
could be wrong?

Regards
   Thomas



Tomcat Image Errors

2001-05-29 Thread Mike Alba



Hi,
 
  I am currently getting this type of error 
from Tomcat
when I try to display an image in my 
app:
 

2001-05-29 09:19:22 - Ctx( ): 404 R( + /images/qc.bmp + null) null
Anyone have any ideas?
Thanks so much in advance for your help!!
Mike
 


Re: Signed certificate and tomcat

2001-05-29 Thread Bo Xu

François Andromaque wrote:

> I'm using tomcat on stand-alone (without apache), i want to configure
> tomcat to work with SSL by self signing my server certificate. The
> documentation TOMCAT and SSL (SSL direct) suggest  to import a cert
> with openssl :[...]



Hi :-)  could anybody tell me where I can find the documentation about
how to config the
following in TOMCAT:
- https
- SSL

Thanks in advance!


Bo
May.29, 2001






autostarting apache/tomcat

2001-05-29 Thread Tim O'Neil

Does anyone know if I can write a shell script
(to put in rc.d of course) that will add the
password to an ssl-enabled apache/tomcat setup?




Re: Simple Catalina/JSP question

2001-05-29 Thread Gary Gwin

Sachin,

Until they fix the bug, you don't need to reboot. Simply delete the compiled
classes in the tomcat/work/localhost directory.

Gary

sachin chaudhari wrote:
> 
> I am using catalina 4.0 B5. But if I make changes to
> the JSP page it does recompile the page. Even after
> restarting the catalina. Only way to see the changes
> is to add a new JSP page & restart the server. What
> configs in server.xml I need to change?
> 
> Thanks in advance for your help.
> 
> =
> Sachin Chaudhari
> 
> __
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/

--



Virtual hosts and identical context paths in Tomcat4b3. Bug??

2001-05-29 Thread hische





Hi,

I have specified two virtual hosts in my server.xml. In both hosts I have
specified a context with the same path, ie


  



  


In the log for host2 I get the message:

StandardContext[]: Error initializing naming context for context samepath

and the context on host2 is not working. However if I comment out the context in
host1 the context in host2 does work.

I have found two messages mentioning the same problem but no solution sofar. Is
this a bug??

I am using Tomcat4b3 on RH Linux 7.0

Regards,

Wilko Hische







Was there an answer to this? (setProperty and repeating form fields)

2001-05-29 Thread greyson . smith

I find myself in a situation similar to this, and I wondered if there was
ever an answer to the question.



In order to set my bean properties based on an incoming (POST'ed) HTML
form,
I'm using the following construct in a JSP page:


  


It works fine except now I want to process something a little different.
I'm
working on an Order entry system and the Order Items are a repeating group
of
fields.  In my HTML form I have  fields named like "partNumber0,
quantity0, price0" and "partNumber1, quantity1, price1" that repeat for
each
potential item in an order.

Is there any way to use the  construct to automatically
set
the properties in an OrderItems bean.  I'm guessing it might have something
to
do with indexed properties but I really can't see how this would work.  If
I
have my bean as

public class OrderItemBean
{
   String[] partNumber;
   ...

   public void setPartNumber( int index, String value ) {...}
   ...
}

Is the JSP runtime going to be able to take the partNumber0 field and be
able
to call my indexed-property setter method with the correct index.  What if
I
use the version

   public void setPartNumber( String[] value );

as my setter method?

--

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





Re: servlet start-up

2001-05-29 Thread Brian Elliott

Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President & CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged & Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+



Retrieving the current directory path...

2001-05-29 Thread Rui Oliveira

Hello,

is there a way to find out the operating system path where a JSP is being
executed?



Many thanks
Rui




FATAL: java.netBindException: Address in use: JVM_Bind

2001-05-29 Thread Jack Li

Hello,

I have a problem to setup Tomcat on Windows 2000 server. When I run
startup.bat, I got the error:

FATAL: java.netBindException: Address in use: JVM_Bind.

Any idea to solve this problem? 

Thanks,
Jack Li



AW: Tomcat Web Server 3.1 bug

2001-05-29 Thread Ralph Einfeldt


Change catch( Exception e ) to catch( Throwable e )
to see which kind of error you get.
There are Throwables that are not Exceptions 
(java.lang.Error and all of it's subclasses)

If your problem lies in a tomcat 3.1 bug, you won't 
have much fun. You just can try to avoid the 
offending code. (Or convince your provider to upgrade.
As tomcat 3.1 is known as quite buggy, I think this
is recommended anyway)

By the way, I think it's not a good idea to define a 
variable with the name 'session'. With that you hide 
the implicit session object of jsp.

-Ursprüngliche Nachricht-
Von: Vishal Batra [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Mai 2001 14:00
An: [EMAIL PROTECTED]
Betreff: Tomcat Web Server 3.1 bug




Re: server.xml DTD

2001-05-29 Thread Milt Epstein

On Tue, 29 May 2001, Paulo J S Pereira wrote:

> Hi;
>
> I am looking for the server.xml DTD ... (if one exists) ... can
> anyone help?
>
> TIA!

Well, I don't know about that, but Mike Slinn has some documentation
and a validator for server.xml up at http://tomcat.mslinn.com.  You
might need to poke around the links to find it.

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]




Re: xalan ApplyXSL sample servlet fails

2001-05-29 Thread niv maman

hi .
did u check it with the new release of tomcat 3.2.2?
- Original Message - 
From: "Stan Devitt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 5:29 PM
Subject: Re: xalan ApplyXSL sample servlet fails


> I got it (or rather, DefaultApplyXSLT) to work.  The resolution was:
> 
> 1.  Use xalan-j_2_0_0, and the servlet example
> from there which uses ApplyXSLT 
> 
> 2.  Clean up my careless classpath usage of jar files leading
> instead with xalan.jar and xerces.jar from the xalan2_0_0
> distribution.
> 
> 3.  Be sure to get the right path to the servlet as the
> new servlet example is now in a "servlet" package instead of 
> the top level of the context.)
> 
> (I am now using tomcat 3.2.1, together with jdk1.3.1,
> xerces 1.2.3 and xalan 2.0.0 on Windows 2000.)
> 
> Thanks.
> 
> Stan.
> 
> - Original Message - 
> From: "Chris McNeilly" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, May 29, 2001 8:46 AM
> Subject: RE: xalan ApplyXSL sample servlet fails
> 
> 
> > Funny you should ask.  I had (possibly) a very similar problem last
> > week.  After combing through maillists etc, I found a reference
> > suggesting that there was a conflict with the xerces xml parser and the
> > xml parser included with tomcat.  It suggested removing parser.jar and
> > jaxp.jar from the classpath in the tomcat startup scripts (tomcat.bat
> > for me).  That worked for me.  I've only been playing with it for a day
> > or two, but it doesn't seem to break tomcat and now my xalan-based
> > servlets function.
> > 
> > Chris
> > 
> 




RES: Becoming a CA Authority

2001-05-29 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Or you can either buy a single cert like verisign, but you will not a CA

José Euclides Júnior
__
E-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] 
http://euclides.8m.com



- -Mensagem original-
De: François Andromaque [SMTP:[EMAIL PROTECTED]]
Enviada em: Segunda-feira, 28 de Maio de 2001 11:06
Para:   [EMAIL PROTECTED]
Assunto:Re: Becoming a CA Authority

Where can i find the instructions create and sign a ca?

- - Original Message -
From: "Tim O'Neil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 25, 2001 5:38 PM
Subject: Re: Becoming a CA Authority


> At 04:45 PM 5/25/2001 +0200, you wrote:
> >Can someone tell me all the steps to become a CA Authority, create a new
> >certificate and configure tomcat to use this certificate
>
> Self sign your cert, and your a ca. Of course,
> your clients will all get dialogs on their
> browsers asking them if they want to trust your
> unknown ca unless you can make them all add your
> ca to their list of known ca's...
-BEGIN PGP SIGNATURE-
Version: PGP 6.5.1

iQCVAwUBOxQzx90YhuJ3BUxtAQFPdQQAoPJTEIW8SXAhpFC6zn2/3qvofLJTzsQK
YPwMgb8Uim13DNiF9+x+EypG4AjU45tHBvRC2k2xNUqjqIj1wSbfBomF+Nl01JxN
H16a5e7lE14r8SYdIvyPL8rRhus2BprJVPy+8Zn0z1xi0F3wTTMWrxik0F6ylred
gdeW7yRux2E=
=h0Ob
-END PGP SIGNATURE-



Re: Servlets and relative paths

2001-05-29 Thread Bo Xu

Chris McNeilly wrote:

> I've got a servlet and am trying to open files.  The problem is that its
> defaulting to the tomcat/bin directory whenever I attempt to refer to
> them.  How can I change this?  Hardcoding the path isn't such a good
> idea as my dev environment is different from production.  These are xml
> and xsl files and they are located on the webroot.
>
> Thanks,
>
> Chris

Hi :-)  from several emails in Servlet-List and this List:

* InputStream is = this.getServletContext().

getResourceAsStream("/WEB-INF/testApp.properties");

now testApp.properties is in myapp/WEB-INF/


*
- InputStream is =
this.getClass().getResourceAsStream("testApp.properties");
- InputStream is = Thread.currentThread().getContextClassLoader().
getResourceAsStream("myservlet.conf");

  now, (normally),  myservlet.conf/testApp.properties is in
myapp/WEB-INF/classes


Bo
May.29, 2001






RE: Using JDBCRealms

2001-05-29 Thread William Kaufman

It turned out I was being an idiot: I modified tomcat/conf/server.xml, where
our batch file was actually executing Tomcat with "-f
/some/where/else/server.xml".  Once I put it in the right file, everything
worked fine, so I don't know how much help my responses would be.  (You
could look through the archives at one of,

http://tomcat.mslinn.com/
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2

Maybe you should post the problem(s) you're having, and whatever debug info
you're getting,...

-- Bill K.


> -Original Message-
> From: Ben Sifuentes [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 7:49 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Using JDBCRealms
> 
> 
> I'm trying to utilize teh JDBCRealm also. I see you are 
> trying to get some
> of the same information I am. Did you get a response for your 
> previos e-mail
> 
> -Ben
> 
> -Original Message-
> From: William Kaufman [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 16, 2001 8:05 PM
> To: Tomcat Users (E-mail)
> Subject: Using JDBCRealms
> 
> 
> (Tomcat version 3.2.1.)
> 
> I'm trying to use JDBCRealm to manage access to some static 
> files.  Is there
> any documentation for that?
> 
> I've successfully configured authorization in web.xml (though 
> it only seems
> to work if the files are under webapps/ROOT--that's OK for 
> what I'm doing,
> but I am curious about why that is).
> 
> But I can't seem to get JDBCRealm (or my own subclass of that) to get
> called.  I've added,
> 
>  className="org.apache.tomcat.request.JDBCRealm"
> debug="99"
> driverName="oracle.jdbc.driver.OracleDriver"
> connectionURL="jdbc:oracle:thin:@localhost:1521:adb"
> connectionName="metax"
> connectionPassword="tiger"
> userTable="contacts"
> userNameCol="username"
> userCredCol="password"
> userRoleTable="user_roles"
> roleNameCol="role" />
> 
> to my conf\server.xml, and commented out the SimpleRealm interceptor.
> JDBCRealm is on my classpath--"javap" can print it.  And that JDBC
> connection works fine outside of JDBCRealms, so it's not a JDBC issue.
> 
> Near as I can figure, Tomcat isn't even loading the class.  
> Is there some
> debugging I can turn on in Tomcat to see what's going wrong?
> 
> -- Bill K.
> 



Re: Starting Tomcat without new DOS Window

2001-05-29 Thread Jonathan Eric Miller

I don't know about the service related part of your question, but, I found
out how to start it without opening a new Command Prompt window.

In startup.bat, you should see a line like the following.

call "%TOMCAT_HOME%\bin\tomcat" start %1 %2 %3 %4 %5 %6 %7 %8 %9

If you change the text "start" to "run" as in the following, it will run and
not open another window.

call "%TOMCAT_HOME%\bin\tomcat" run %1 %2 %3 %4 %5 %6 %7 %8 %9

I found this to be helpful when trying to get SSL to work. I didn't have
things configured correctly and couldn't see what the error message was
because the window was shutting too fast.

BTW, Tomcat developers, it would be nice if errors were logged to the log
file in this case and not just to the screen.

Jon





Re: tomcat process dies out...

2001-05-29 Thread Milt Epstein

On Tue, 29 May 2001, Krishna Kishore Thotakura wrote:

> Hi,
> yeah, i made a typo and
> >nohup ./startup.sh -f server_1.xml >&1 &
> did work. I am using tcsh shell. I now understand that
> >nohup ./startup.sh -f server_1.xml
> also works. But i think i should redirect stdout,stderr to some file
> coz i dont see the stdout,stderr written to nohup.out as described
> in the man pages.  i dont see the nohup.out file at all.
>
> anyway, i'll work around that. thanks for your help. u were very
> informative.

OK, here's some more information (hopefully not too much :-).

First, note that tcsh is in the csh family of shells.

In csh shells, nohup is a shell built-in command, as opposed to be a
separate executable/command, like /usr/bin/nohup.  nohup.out is
relevant to /usr/bin/nohup, but not to the csh built-in nohup.  (I'm
not sure how things are in ksh, but the ksh man page doesn't indicate
that nohup is a shell built-in command.)  That would explain why you
don't see a nohup.out file.

In csh shells, ">&1" is actually a valid redirection -- to a file
named "1"!  That is, it redirects both stdout and stderr to the file 1
in the current directory.  You might look for that file in the
directory you were in when you invoked this command.  (In csh shells,
you cannot redirect stdout and stderr separately as you can do in sh
shells.)

Recall that as I've mentioned previously, in csh shells, if you invoke
something in the background (i.e. by having a "&" at the end of the
command), you do not need to use nohup (i.e. backgrounded jobs are
automatically nohup'ed).  So, you should be able to use something like
this to do what you want:

  ./startup.sh -f server_1.xml >& /path/to/log/file

Sorry for those of you on the list that are not interested in this, I
just kept it here since it started here and in case it might be of
interest to anyone else.


> Milt Epstein wrote:
> >
> > On Mon, 28 May 2001, Krishna Kishore Thotakura wrote:
> >
> > > yeah..now, it works.
> > >
> > > >nohup ./startup.sh -f server_1.xml >&1 &
> > >
> > > could u please explain how it made a difference?
> > > What does redirection to '&1' mean? sorry, i am not a unix pro.
> >
> > Ummm, the command you show above doesn't match either of the commands
> > Jan gave.  Did you make a typo, or are you really using what you show
> > above?  And exactly which shell are you using?  (You should be able to
> > do "echo $SHELL" to find out.)
> >
> > The syntax is somewhat different for the sh et al shells and the csh
> > et al shells.  But, basically, ">" indicates "redirection".  More
> > specifically:
> >
> > In the sh et al command, "> /tmp/mytomcat.log" indicates to redirect
> > stdout to /tmp/mytomcat.log, and "2>&1" indicates to redirect stderr
> > to the same place stdout is going to (in this case, /tmp/mytomcat.log)
> > -- 2 is the file descriptor for stderr, 1 is the file descriptor for
> > stdout.
> >
> > In the csh et al command, first of all, I think Jan made a typo
> > (unless I misunderstand it, which is certainly possible :-), and left
> > out the file to redirect to.  So I think the command should be:
> >
> >   nohup ./startup.sh -f server_1.xml >& /tmp/mytomcat.log &
> >
> > But recall that csh et al shells don't need the "nohup" when a job is
> > backgrounded (done by the final "&"), so this can be simplified to:
> >
> >   ./startup.sh -f server_1.xml >& /tmp/mytomcat.log &
> >
> > ">&" means to redirect both stdout and stderr to the specified file.
> >
> > AFAIK, the "!" has to do with changing the behavior slightly when you
> > have the shell variable noclobber set.  At this point, I'd suggest
> > reading the csh man page for more specifics.
> >
> > > Jan Labanowski wrote:
> > > >
> > > > The commands can also look like:
> > > >
> > > > Under /bin/sh, /bin/ksh, /bin/bash, etc:
> > > >
> > > >   nohup ./startup.sh -f server_1.xml > /tmp/mytomcat.log 2>&1 &
> > > >
> > > > Under /bin/csh or /bin/tcsh
> > > >
> > > >   nohup ./startup.sh -f server_1.xml >&! &
> > > >
> > > > Jan
> > > > [EMAIL PROTECTED]
> > > >
> > > > On Mon, 28 May 2001, Krishna Kishore Thotakura wrote:
> > > >
> > > > > It still doesnt work. I was under the impression that tomcat
> > > > > would run in the background automatically. Also, i use the same
> > > > > command to start the tomcat process on my other port(8080), and
> > > > > it works just fine.
> > > > >
> > > > > Milt Epstein wrote:
> > > > > >
> > > > > > On Mon, 28 May 2001, Mathew Clark wrote:
> > > > > >
> > > > > > > You may need to try
> > > > > > >
> > > > > > > nohup ./startup.sh -f server_1.xml &
> > > > > > >
> >
> > Milt Epstein
> > Research Programmer
> > Software/Systems Development Group
> > Computing and Communications Services Office (CCSO)
> > University of Illinois at Urbana-Champaign (UIUC)
> > [EMAIL PROTECTED]
>
> --
> Krishna Kishore Thotakura.
> Work 256 961 7818
> Home 256 837 9927
>

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services

RE: out of ideas on an error

2001-05-29 Thread Martin van den Bemt



We had 
the problem also, I'm just giving some ideas, because at that time I didn't have 
the time to "cleanly" solve the problem..
 
These 
are things that were at that moment going on :
 
- 
Having java files in the classes directory which are not the 
same.
- Some 
compiled classes are not compiled in classic mode.
- Make 
a "compiled" export with visual age and also export the java files (see the 
first one).
 
Our 
solution : delete all the classes and compile it again...
 
Mvgr,
Martin
 
 

  -Original Message-From: Kevin Fonner 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, May 29, 2001 4:03 
  AMTo: [EMAIL PROTECTED]Subject: out of 
  ideas on an error
  I am attempting to set up a servlet which acts as 
  and rmi client.  I am getting an error which I don't understand.  
  Are their additional securitys I have to set or something??
  Here's the error
   
  Internal Servlet Error:java.lang.NullPointerException
	at java.lang.ClassLoader.resolveClass0(Native Method)
	at java.lang.ClassLoader.resolveClass(ClassLoader.java:588)
	at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:518)
	at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(AdaptiveServletLoader.java:174)
	at org.apache.tomcat.core.ServletWrapper.loadServlet(ServletWrapper.java:265)
	at org.apache.tomcat.core.ServletWrapper.init(ServletWrapper.java:289)
	at org.apache.tomcat.core.Handler.service(Handler.java:254)
	at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
	at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
	at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
	at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
	at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
	at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
	at java.lang.Thread.run(Thread.java:484)



RE: Re-deploy a WAR file

2001-05-29 Thread Martin van den Bemt

As far as my experience goes : redploying is only in tomcat 4. tomcat 3.2.1
(3.2.2 I don't know) is just reloading servlets and not the classes called
in the servlets and that's if you're having a good day ;-)).

Mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 2:03 PM
> To: [EMAIL PROTECTED]
> Subject: Re-deploy a WAR file
>
>
> Hi:
> I've listened about the chance of re-deploy an application
> (i.e. a war file) in Tomcat without restarting the server.
> I think is setting the attribute "reload" to 'true' in server.xml
>
> Can you confirm this point?
>
> Regards:
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias
> W a n a d o o E s p a n a - http://www.wanadoo.es
> __
>




Re: tc4 and image caching

2001-05-29 Thread Remy Maucherat

> Hmm, seems to be my browser, a colleague
> with IE5.5 is getting good results.
> Sorry 'bout that.

I'll try to have a look at what's going on with IE 5.0.

Remy

> 
> 
> > I'm in the process of moving our application from TC 3.2 to 
> > Catalina and the loading of a servlet generated web page is
> > a lot slower when using catalina. It spends its time serving
> > images that are part of this page which didn't happen
> > when using 3.2.
> > 
> > I've tried several combinations and found the following:
> > 
> > no image caching:
> > Win2K/IE5.0 browser using HTTP1.1 and TC4b5 server
> > Win2K/IE5.0 browser using HTTP1.0 and TC4b5 server
> > 
> > 
> >




RE: response.sendRedirect vs. requestDispatcher.forward

2001-05-29 Thread Martin van den Bemt

A different hostname creates a new session which could be the problem here..
(so http://www.example.com and http://example.com create a different session
even it's the same server/context/etc..

Mvgr,
Martin

> -Original Message-
> From: Alex Fernandez [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 4:57 PM
> To: [EMAIL PROTECTED]
> Subject: Re: response.sendRedirect vs. requestDispatcher.forward
>
>
> Conceptually, requestDispatcher.forward() is different from
> response.sendRedirect().
>
> In forward(), you are moving inside the same webapp, and as such it
> doesn't even reach the client browser. The session is maintained.
>
> In sendRedirect(), you're instead moving across webapps, and it's the
> browser that redirects to the specified location. In fact, it doesn't
> even need to be another servlet, you may redirect to an ASP or a static
> page. New request and response are created.
>
> It seems strange that the session is not maintained, though, since both
> requests come from the same browser. Perhaps it's a bug?
>
> Un saludo,
>
> Alex.
>
> A Yang wrote:
> >
> > Hi All,
> >
> > Does anyone know offhand whether the Java Servlet
> > specification requires a new HttpSession to be created
> > when using HttpServletResponse.sendRedirect()?
> >
> > In a servlet, I was using:
> >
> >
> getServletConfig().getServletContext().getRequestDispatcher("/Resu
> lt.jsp").forward(req,
> > resp);
> >
> > at the end of a sequence of pages/servlets, but I
> > wanted to replace it with
> >
> > response.sendRedirect("/Result.jsp");
> >
> > instead. The result page prints out the contents of
> > several javabeans which are stored in the session.
> >
> > This worked fine when all I used were
> > requestDispatcher.forward but with
> > response.sendRedirect(), all of my session attributes
> > are gone! In fact, the session id is different after
> > the sendRedirect.
> >
> > I'm pretty sure the session is supposed to survive
> > across any series of GET's and POST's until it is
> > invalidated explicitly (or timed out).
> >
> > Any thoughts? I'm using Tomcat 3.2.1
> >
> > Thanks.
> >
> > ___
> > Do You Yahoo!?
> > Get your free @yahoo.ca address at http://mail.yahoo.ca
>




RE: Re-deploy a WAR file (2nd)

2001-05-29 Thread Martin van den Bemt

For servlets (don't use wars anymore) it checks if the servlet has a more
recent date then the one in memory (stored in a Vector or Hashtable, don't
know exactly anymore..). If it does it's supposed to be reloading. Just
don't depend on it.. Sometimes it just doesn't relad enough to get you
servlet working (the called classes from the servlet don't get reloaded).

Mvgr,
Martin

> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 6:38 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Re-deploy a WAR file (2nd)
> Importance: High
>
>
> About the same question
> Is there any 'signal' that says Tomcat there is a new version
> of a War File (so Tomcat can re-deploy the war)?
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias
> W a n a d o o E s p a n a - http://www.wanadoo.es
> __
>
>
>
>
> [EMAIL PROTECTED]
> 29/05/2001 14:02
> Please respond to tomcat-user
>
>
> To: [EMAIL PROTECTED]
> cc:
> Subject:Re-deploy a WAR file
>
>
> Hi:
> I've listened about the chance of re-deploy an application
> (i.e. a war file) in Tomcat without restarting the server.
> I think is setting the attribute "reload" to 'true' in server.xml
>
> Can you confirm this point?
>
> Regards:
> __
> Jaume Soriano Sivera <[EMAIL PROTECTED]>
> Tel: 96504 -ext. 44744 Fax: 965040047
> Portal y servicios multimedia - Nuevas tecnologias
> W a n a d o o E s p a n a - http://www.wanadoo.es
> __
>
>
>
>




Session gone after 2 forwards

2001-05-29 Thread Allen Hopkins

I posted last week about losing my HttpSession after doing
two forwards, from one servlet to a second, and then to a third.
All 3 servlets are in the same context.  The second servlet
sees the same HttpSession as the first, but the third sees
a new one, in which the session attribute from the first servlet
is not available.

After my first post, a couple suggestions were made about
things not being in the same context, but I don't think that
applies.  This looks like a bug in Tomcat to me, (but, hey,
what do I know?:-)) so I'm posting again about it.

This only happens on the first access after a server restart,
or after the session's 30-minute expiration has run out.

Here's some information from each of the three servlets in turn, just
after a server restart:

--- servlet 1: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = h3m9az5eg1
session isNew() = true
session getCreationTime() = 991174054485
session getLastAccessedTime() = 991174054485
servlet1 says myAttribute = boo!

--- servlet 2: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = h3m9az5eg1
session isNew() = false
session getCreationTime() = 991174054485
session getLastAccessedTime() = 991174054485
servlet2 says myAttribute = boo!

--- servlet 3: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = vju2fx5eg2
session isNew() = true
session getCreationTime() = 991174064281
session getLastAccessedTime() = 991174064281
servlet3 says myAttribute = null

-

... Then on a Reload of the web page, you see that the session makes
it to the third servlet OK:

--- servlet 1: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = vju2fx5eg2
session isNew() = false
session getCreationTime() = 991174064281
session getLastAccessedTime() = 991174064281
servlet1 says myAttribute = boo!

--- servlet 2: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = vju2fx5eg2
session isNew() = false
session getCreationTime() = 991174064281
session getLastAccessedTime() = 991174235758
servlet2 says myAttribute = boo!

--- servlet 3: ---
ServletContext = org.apache.tomcat.facade.ServletContextFacade@342cbf
session id = vju2fx5eg2
session isNew() = false
session getCreationTime() = 991174064281
session getLastAccessedTime() = 991174235759
servlet3 says myAttribute = boo!

-
After 30 minutes, a Reload results in output that looks like the first
case, except the session IDs (and of course the times) have changed.
Servlets 1 & 2 have the same session ID.

Here's the source code for the three very simple servlets.  Most of
the code is involved in accumulating the output string and passing it
along to the third servlet (via the HttpServletResponse) for output.

-
package gsrc.workshop;

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

public class TestServlet1 extends HttpServlet {

public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

String message   = new String();
ServletContext sc= getServletContext();
RequestDispatcher rd =
sc.getRequestDispatcher("/servlet/TestServlet2");   HttpSession
httpSession = req.getSession();

httpSession.setAttribute("myAttribute", new String("boo!"));

message += "--- servlet 1: ---";
message += "ServletContext = " + sc + "";
message += "session id = " + httpSession.getId() + "";
message += "session isNew() = " + httpSession.isNew() + "";
message += "session getCreationTime() = "
   + httpSession.getCreationTime() + "";
message += "session getLastAccessedTime() = "
   + httpSession.getLastAccessedTime() + "";
message += "servlet1 says myAttribute = "
   + httpSession.getAttribute("myAttribute") + "";
req.setAttribute("message", message);

rd.forward(req, res);
}
}

-
package gsrc.workshop;

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

public class TestServlet2 extends HttpServlet {

public void service(HttpServletRequest req, HttpServletResponse res)
throws ServletException, IOException {

String message   = (String)req.getAttribute("message");
ServletContext sc= getServletContext();
RequestDispatcher rd =
sc.getRequestDispatcher("/servlet/TestServlet3");   HttpSession
httpSession = req.getSession();

message += "--- servlet 2: ---";
message += "ServletContext = " + sc + "";
message += "session id = " + httpSession.getId() + "";
message += "session isNew() = " + httpSession.isNew() + "";
message += "session getCreationTime() = "
   + httpS

servlet error..

2001-05-29 Thread Krishna Kishore Thotakura

Hi,
 i am trying to write an image to the outputstream of a servlet. The image is
actually obtained from an invisible awt Canvas. 
I'm using Jimi package to encode the Image into JPEG format and writing this
out to the ServletOutputStream. Sometimes this works fine and i see a nice
image in the browser but at times, i get the following error:
in tomcat.log
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key

in browser ---
Error: 500
Location: /wms/servlet/WmsServlet
Internal Servlet Error:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:120)
at java.awt.Toolkit$2.run(Toolkit.java:498)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:489)
at java.awt.Component.getToolkitImpl(Component.java:657)
at java.awt.Component.getToolkit(Component.java:641)
at java.awt.Component.createImage(Component.java:2265)
at stt.View.ViewJava3D.initMem(ViewJava3D.java:190)
at stt.View.ViewJava3D.(ViewJava3D.java:214)
at stt.Display.DisplayManager.initView(DisplayManager.java:126)
at stt.Display.DisplayManager.(DisplayManager.java:64)
at sttx.Display.GeoDisplayManager.(GeoDisplayManager.java:79)
at WmsServlet.init(WmsServlet.java:49)

Any comments,suggestions,explanations would be greatly appreciated.



Re: autostarting apache/tomcat

2001-05-29 Thread Jeff Waugh

Your key file is encrypted.

Use openssl to create an unencryted key:

openssl rsa -in server.key -out run.key

Change your httpd.conf to use run.key as your SSLCertificateKeyFile.

HTH,
-Jeff

- Original Message - 
From: "Tim O'Neil" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 29, 2001 1:23 PM
Subject: autostarting apache/tomcat


> Does anyone know if I can write a shell script
> (to put in rc.d of course) that will add the
> password to an ssl-enabled apache/tomcat setup?
> 
> 




Re: autostarting apache/tomcat

2001-05-29 Thread Tim O'Neil

At 07:24 PM 5/29/2001 -0400, you wrote:
>Your key file is encrypted.
>
>Use openssl to create an unencryted key:
>
>openssl rsa -in server.key -out run.key
>
>Change your httpd.conf to use run.key as your SSLCertificateKeyFile.


Thanks Jeff.

Sounds like the result of this is to take
away the need for apache to prompt the shell
process for a password, but the server still
runs in ssl. Is that the gist of it?






RE: Retrieving the current directory path...

2001-05-29 Thread William Kaufman

Yes, there is.  Don't do it.

What are you actually trying to accomplish?


-- Bill K.


> -Original Message-
> From: Rui Oliveira [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 12:19 PM
> To: [EMAIL PROTECTED]
> Subject: Retrieving the current directory path...
> 
> 
> Hello,
> 
> is there a way to find out the operating system path where a 
> JSP is being
> executed?
> 
> 
> 
> Many thanks
> Rui
> 



How To Get The Initial Username & Ping of localhos:8080/mamager?Thanks In Advanced!

2001-05-29 Thread Rock Luiss



Hi!
  All,
How To Get The Initial Username & Ping of 
localhos:8080/mamager?Thanks In Advanced!
And how to change it?Where to change 
it?


RE: Starting Tomcat without new DOS Window

2001-05-29 Thread Artigas, Ricardo Y.

According to the documentation, it is possible to start tomcat as an nt
service. I am not familiar with it though but I read it in the
documentations. 

:^)
Ricky Y. Artigas
Analyst/Programmer /
Database Administrator
Information Technology Division
Easycall Communications Phils., Inc.
- Easycall Internet -
418 Arayat St., Mandaluyong City 1550, Philippines
Personal WAP Site: http://www.buzzed.co.uk/mobile/?rya
Company Website: http://www.easycall.com.ph
Tel.no: (+632) 5338001 ext.6574
Mobile:(+63) 0917-8951783
Pager:  141-002955
Email: [EMAIL PROTECTED]


> ---
> IMPORTANT NOTICE: 
  
> This message (and any attachment hereto) may contain privileged and/or
> confidential information specific to EasyCall. If you are not the intended
> addressee indicated in this message, you may not copy or disseminate this
> message (or any attachment hereto) to anyone. Instead, please destroy this
> message (and any attachment hereto), and kindly notify the sender by reply
> email. Any information in this message (and any attachment thereto) that
> do not relate to the official business of EasyCall shall be understood as
> neither given nor endorsed by the company.
> 
> 
> -Original Message-
> From: David DELGRANCHE [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, May 29, 2001 9:20 PM
> To:   Liste de diffusion TomCat (Adresse de messagerie)
> Subject:  Starting Tomcat without new DOS Window
> 
>   Hi All,
> 
>   Does anybody know how to start tomcat without opening a new Window?
> Is it possible to start Tomcat as a service?
>   Thanks for help
> 
> David DELGRANCHE
> [EMAIL PROTECTED]
> tel. 02.99 05.34.25   
> Fax: 02.99.05.34.05
> Sogitec Industries
> 24, Avenue Lavoisier
> ZI du Champ Niguel
> 35174 BRUZ CEDEX
> 
> 



TC4-AJP13-Connector

2001-05-29 Thread SongDongsheng



Hi,
 
When I use TC4-AJP13-Connector, TC4 report:
**
[Ajp13] sendHeaders()[Ajp13] status is:  500(Internal 
Server Error)[Ajp13] send()[Ajp13] sending msg, len = 47[Ajp13] 
doWrite(byte[], 0, 143)[Ajp13] send()[Ajp13] sending msg, len = 
151[Ajp13] finish()[Ajp13] send()[Ajp13] sending msg, len = 
6[Ajp13] recycle()[Ajp13] receiveNextRequest()[Ajp13] 
receive()
**
 
My server.xml is:

**
    
       
port="8009" acceptCount="10" debug="999"/>
     
name="Apache" defaultHost="egcs" debug="0" 
appBase="D:/usr/fpb_net_pub">
 
    
prefix="apache_log." 
suffix=".txt"  
timestamp="true"/>
 
  
 
    
 
  
**
 
Thanks for advance.
 
SongDongsheng


Deploying a simple servlet

2001-05-29 Thread Michael Misovec

I have Apache and Tomcat running on NT. I am trying to deploy a simple
servlet which was developed in JBuilder4. The servlet runs fine using
JBuilder's built in Tomcat.
The shtml file which I am using, displays the source in the browser
rather than the intended web page. I am not sure if this is the only
problem. I have downloaded the latest JRE from Sun and also tried
converting the html file using Sun's html converter. This did not help.

Thank you,

Mike M
757-686-2440




Re: servlet start-up

2001-05-29 Thread Brian Elliott

Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian

Reporting-MTA: dns; mail-in.namezero.com
Arrival-Date: Tue, 29 May 2001 16:24:12 -0700 (PDT)

Final-Recipient: rfc822; [EMAIL PROTECTED]
Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host
inbound.namezero.com.criticalpath.net[209.228.14.51] said: 550 User unknown




Rui,

I am having the same problem with tomcat for my servlets as you
described in your posting where you get an Internal Server Error when
first requesting a servlet. Did you ever get the problem fixed?

I am under some intense time pressures and would GREATLY appreciate any
help.

Thanks,

Brian
-- 
+---+--+
| Brian Elliott | Unplugged Systems / ESWC.com /   |
| President & CTO   |   ES Innovation Labs |
| [EMAIL PROTECTED] | MLS Unplugged & Wireless Systems |
|   | http://www.unpluggedsystems.com  |
+---+--+





Re:

2001-05-29 Thread Brian Elliott

"Silvestre Turija Jr." wrote:
> 
> sorry for the intrusion, I am having the same problem
> "Internal Servlet Error" kindly inform me I you got a
> fixed on this bug.

I sure will. 

I am wondering whether it is the ajp13 with mod_jk? I have seen posts
like the following
(http://www.perl.jann.com/tomcat/200012/msg00142.html):

Is anyone actually using the ajp13 protocol with mod_jk?
I tried it but had to switch back to ajp12.  It seems faster
but less reliable.  I am getting the following error messages
in mod_jk.log.  All these messages occur multiple
times.  They only occur when I use the ajp13 protocol.

This is just a guess on my part but I seen a number of people with the
problem but no solutions. I am considering switching to Jetty if I don't
get a solution very soon.

Brian



Tomcat Web Server Problem ( Response has already been committed )

2001-05-29 Thread Vishal Batra

hello ,

i am working on a web based application using JSP on Tomcat Web Server. 
Other tools used are JavaMail 1.1.
I am getting a runtime exception which i have tried to solve but am 
unable to do so. So i have come to u for help.

I have traced out the location where i get this error.

I have a jsp mailTest.jsp which calls method mailUserAboutLoginCreation( 
) of TeamshareMailBean.class
This method accepts 5 String parameters. This method calls method 
sendMessage() of MailGenericBean.class.
It is here that I get a problem. The following code causes the problem ( 
of sendMessage() ).

try
{
message = new MimeMessage( session ) ; // message is 
object of javax.mail.Message class

// session is an object of javax.mail.Session class
}
catch( Exception e )
{
outputWriter.write( "CATCH : Exception while creating 
Message object : " + e ) ;
}
finally
{
outputWriter.write( "FINALLY : Exception while creating 
Message object : " + message ) ;
}

When the above code executes the 'message' object is not instantiated. 
The 'catch' block is not executed while the 'finally' block is 
executing. The code which follows the 'finally' block is not executed.

After this the HTML part of mailTest.jsp which lies above the 
TeamshareMailBean.mailUserAboutLoginCreation( ) appear on my browser 
followed by the exception. Here is the output ( in italics) :

User Name Vishal Batra 
User Email Address [EMAIL PROTECTED] 
Company Login ID SUVI 
User Login ID vishal 
User Password vishal 
M A I L T E S T M A I L T E S T
Error: 500
Location: /teambean/jsp/mailTest.jsp
Internal Servlet Error:

java.lang.IllegalStateException: Response has already been committed
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:47)
at java.lang.IllegalStateException.(IllegalStateException.java:45)
at 
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at 
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled 
Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

Unfortunately, the above code is giving problem only with Tomcat Web 
Server, version 3.1 and not with version 3.2.1.

In my lab we use Tomcat Web Server 3.2.1 but our Application Service 
Provider uses Tomcat Web Server 3.1

It is working very fine in my lab but not in the uploaded version.

Kindly suggest a solution

Vishal Batra.



_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com







format of uriworkermap.properties file?

2001-05-29 Thread Donald Ball

heya. i've got iis and tomcat-3.2.1 talking to each other, hurrah! now
what i'd like to do is have iis pass all requests for a uri with a given
extension, say .xml, on to tomcat, but i can't tell how to write that in
uriworkermap.properties. my first guess would be:

/*.xml=ajp12

but it doesn't seem to be work everywhere. /foo.xml is passed through to
tomcat but /foo/bar.xml is not. is this the expected behavior? what should
i put in my uriworkermap.properties file instead? is the format of that
file actually documented anywhere? the tomcat+iis instruction page, while
very helpful in getting things working, isn't terribly good as a
reference.

- donald




Free Books

2001-05-29 Thread Moin Anjum H.

Hi Everybody,

Just Check this site for Free Books.

http://www.aboutemarket.com

Best Regards
Moin.




RE: Tomcat Web Server Problem ( Response has already been committed )

2001-05-29 Thread Ross Dyson

You're sure the exception is not thrown just BEFORE the instantiation of
your message object?  And then its trying to jump to your error handling JSP
page, but the response is already comitted?

Ross.

-Original Message-
From: Vishal Batra [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 30 May 2001 2:49 PM
To: [EMAIL PROTECTED]
Subject: Tomcat Web Server Problem ( Response has already been committed
)


hello ,

i am working on a web based application using JSP on Tomcat Web Server.
Other tools used are JavaMail 1.1.
I am getting a runtime exception which i have tried to solve but am
unable to do so. So i have come to u for help.

I have traced out the location where i get this error.

I have a jsp mailTest.jsp which calls method
lUserAboutLoginCreation( 
) of TeamshareMailBean.class
This method accepts 5 String parameters. This method calls method 
sendMessage() of MailGenericBean.class.
It is here that I get a problem. The following code causes the problem ( 
of sendMessage() ).

try
{
message = new MimeMessage( session ) ; // message is 
object of javax.mail.Message class

// session is an object of javax.mail.Session class
}
catch( Exception e )
{
outputWriter.write( "CATCH : Exception while creating 
Message object : " + e ) ;
}
finally
{
outputWriter.write( "FINALLY : Exception while creating 
Message object : " + message ) ;
}

When the above code executes the 'message' object is not instantiated. 
The 'catch' block is not executed while the 'finally' block is 
executing. The code which follows the 'finally' block is not executed.

After this the HTML part of mailTest.jsp which lies above the 
TeamshareMailBean.mailUserAboutLoginCreation( ) appear on my browser 
followed by the exception. Here is the output ( in italics) :

User Name Vishal Batra 
User Email Address [EMAIL PROTECTED] 
Company Login ID SUVI 
User Login ID vishal 
User Password vishal 
M A I L T E S T M A I L T E S T
Error: 500
Location: /teambean/jsp/mailTest.jsp
Internal Servlet Error:

java.lang.IllegalStateException: Response has already been committed
at java.lang.Throwable.fillInStackTrace(Native Method)
at java.lang.Throwable.fillInStackTrace(Compiled Code)
at java.lang.Throwable.(Compiled Code)
at java.lang.Exception.(Compiled Code)
at java.lang.RuntimeException.(RuntimeException.java:47)
at java.lang.IllegalStateException.(IllegalStateException.java:45)
at 
org.apache.tomcat.core.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:157)
at 
org.apache.jasper.runtime.JspServlet.unknownException(JspServlet.java:299)
at org.apache.jasper.runtime.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at 
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Compiled 
Code)
at org.apache.tomcat.service.TcpConnectionThread.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)

Unfortunately, the above code is giving problem only with Tomcat Web 
Server, version 3.1 and not with version 3.2.1.

In my lab we use Tomcat Web Server 3.2.1 but our Application Service 
Provider uses Tomcat Web Server 3.1

It is working very fine in my lab but not in the uploaded version.

Kindly suggest a solution

Vishal Batra.



_
Chat with your friends as soon as they come online. Get Rediff Bol at
http://bol.rediff.com









RE: Free Books

2001-05-29 Thread Ross Dyson

Uh-oh!  Spam!

-Original Message-
From: Moin Anjum H. [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, 30 May 2001 3:12 PM
To: [EMAIL PROTECTED]
Subject: Free Books


Hi Everybody,

Just Check this site for Free Books.

http://www.aboutemarket.com

Best Regards
Moin.





Re: Problems with ResultSet

2001-05-29 Thread Moin Anjum H.

Hi,

Is your Database MSAccess?

If yes then try Statement 
s=cn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_ONLY);
for a full blown Explain Explaination Please go through Java Docs.

HTH
Best Regards
Moin.

Enrique Prados Valiente wrote:

> Hi!
> I'm using Tomcat and JSP but there are problem, my JSP don' work.
> I have this code in my JSP
> (code.)
> Statement 
>s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ_ONLY);
>
> (more code)
>
>if (!rs.isFirst()) rs.previous();
>
>   %>
>   <%=rs.getString(1)%><%
>
>}
>
> (more code)
>
> In begin of my JSP there is this code line <%@ page language="java" 
>import="java.sql.*,java.io.*,java.util.*" %>
>
> but when I run the server and JSP, it appears this error
>
> [Microsoft][ODBC Driver Manager] Invalid cursor state
>
> I think that Jsp fails in this code line, <%=rs.getString(1)%><%
>
>
> Can anyone out there help me?
> Thanks in advance,
> Enrique.




Re: Problems with ResultSet

2001-05-29 Thread Guido Medina

It also happens with MS Access if your try to getType(int n), Type = {String
| Int | ...} more than once, it means that you cannot do the follow with MS
Access:

Statement st = con.createStatement();
ResultSet rs = st.executeQuery("..");
while (rs.next()) {
   out.println(String a = rs.getString(1));
   ...
   ...
   ...
   out.println(String a = rs.getString(1));
}

This should work in every database manager but doesn't work, you must do:
String a = rs.getString(1) and keep using a instead of try to get the value
again...

This happens with MS Access, I don't know if with some else database
manager...

Guido.
- Original Message -
From: "Moin Anjum H." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 1:14 AM
Subject: Re: Problems with ResultSet


> Hi,
>
> Is your Database MSAccess?
>
> If yes then try Statement
s=cn.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,ResultSet.CONCUR_READ_O
NLY);
> for a full blown Explain Explaination Please go through Java Docs.
>
> HTH
> Best Regards
> Moin.
>
> Enrique Prados Valiente wrote:
>
> > Hi!
> > I'm using Tomcat and JSP but there are problem, my JSP don' work.
> > I have this code in my JSP
> > (code.)
> > Statement
s=cn.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE,ResultSet.CONCUR_READ
_ONLY);
> >
> > (more code)
> >
> >if (!rs.isFirst()) rs.previous();
> >
> >   %>
> >   <%=rs.getString(1)%><%
> >
> >}
> >
> > (more code)
> >
> > In begin of my JSP there is this code line <%@ page language="java"
import="java.sql.*,java.io.*,java.util.*" %>
> >
> > but when I run the server and JSP, it appears this error
> >
> > [Microsoft][ODBC Driver Manager] Invalid cursor state
> >
> > I think that Jsp fails in this code line,
<%=rs.getString(1)%><%
> >
> >
> > Can anyone out there help me?
> > Thanks in advance,
> > Enrique.
>




Internal Server Error

2001-05-29 Thread Nidhish Abraham

Sir ,

 I'm working on a JSP project , i'm facing the following problem

 I was able to access all the jsp's ,jpegs, htm,html's etc

 There was an Internal Servlet Error: when i try to access session
variable(from the next pages) after creating the session variable 
in the home page.

whenever  i try to access the other pages the following error is reported 

(HERE: Login and TimeSpent are session variables , which are created 
 in the home page )


But these class files are created in the work directory automatically 
created by TomCat server.

 

===
Error: 500

Location: /web/VC/vc2.jsp

Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for JSPerror: File
C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\Login.class does not contain
type VC.Login as expected, but type Login. Please remove the file, or make
sure it appears in the correct subdirectory of the class path.
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_jsp_0.java:67:
Class VC.Login not found.
Login lo=(Login)session.getValue("login");
^
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_jsp_0.java:67:
Class VC.Login not found.
Login lo=(Login)session.getValue("login");
  ^
error: File C:\jakarta-tomcat\work\localhost_8080%2Fweb\VC\TimeSpent.class
does not contain type VC.TimeSpent as expected, but type TimeSpent. Please
remove the file, or make sure it appears in the correct subdirectory of the
class path.
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_jsp_0.java:90:
Class VC.TimeSpent not found.
TimeSpent ts=(TimeSpent)session.getValue("time");
^
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_jsp_0.java:90:
Class VC.TimeSpent not found.
TimeSpent ts=(TimeSpent)session.getValue("time");
  ^
Note:
C:\jakarta-tomcat\work\localhost_8080%2Fweb\_0002fVC_0002fvc_00032_0002ejspvc2_jsp_0.java
uses or overrides a deprecated API.  Recompile with "-deprecation" for
details.
6 errors, 1 warning

at org.apache.jasper.compiler.Compiler.compile(Compiler.java:247)
at org.apache.jasper.runtime.JspServlet.loadJSP(JspServlet.java:413)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.loadIfNecessary(JspServlet.java:149)
at
org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(JspServlet.java:161)
at
org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:261)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:369)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Unknown Source)




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



AW: Problems with ResultSet

2001-05-29 Thread Ralph Einfeldt


It can happen with any driver. 

That's what JDBC API doc tells:

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

> -Ursprüngliche Nachricht-
> Von: Guido Medina [mailto:[EMAIL PROTECTED]]
> Gesendet: Mittwoch, 30. Mai 2001 07:38
> An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Betreff: Re: Problems with ResultSet

> It means that you cannot do the follow with MS Access:
> 
> Statement st = con.createStatement();
> ResultSet rs = st.executeQuery("..");
> while (rs.next()) {
>out.println(String a = rs.getString(1));
>...
>...
>...
>out.println(String a = rs.getString(1));
> }




tomcat on Netware

2001-05-29 Thread Mark Currie



Can someone please provide the URL where the Netware version of Tomcat can 
be downloaded fromit is not in the downloads area.
 
Thanks,
 
 
Regards,
 
Mark Currie (CNE)Senior Consulting EngineerNetwork Integration and 
Design
 
Austnet Support Group Pty Ltd88 St Kilda RoadSt Kilda. Vic. 3182. 
Australia.
 
Phone:   +61 3 9525-5755 
Fax:    +61 3 
9525-5979Mobile:   +61 
438-883-771eMail: [EMAIL PROTECTED]web:   
http://www.austnet.com.au


Who Can Provide Me org.hsql.jdbcDriver ?Thanks!

2001-05-29 Thread Rock Luiss



Who Can Provide Me org.hsql.jdbcDriver ?Thanks In 
Advance.


Re: Problems with ResultSet

2001-05-29 Thread Guido Medina

That's what I'm saying with the "snip" example...

Guido.

Java Leader/Network Specialist, CTO, WHS International

- Original Message -
From: "Ralph Einfeldt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 2:19 AM
Subject: AW: Problems with ResultSet


>
> It can happen with any driver.
>
> That's what JDBC API doc tells:
>
> "For maximum portability, result set columns within each row
>  should be read in left-to-right order, and each column should
>  be read only once."
>
> > -Ursprüngliche Nachricht-
> > Von: Guido Medina [mailto:[EMAIL PROTECTED]]
> > Gesendet: Mittwoch, 30. Mai 2001 07:38
> > An: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> > Betreff: Re: Problems with ResultSet
> 
> > It means that you cannot do the follow with MS Access:
> >
> > Statement st = con.createStatement();
> > ResultSet rs = st.executeQuery("..");
> > while (rs.next()) {
> >out.println(String a = rs.getString(1));
> >...
> >...
> >...
> >out.println(String a = rs.getString(1));
> > }
> 
>




Re: Who Can Provide Me org.hsql.jdbcDriver ?Thanks!

2001-05-29 Thread Guido Medina



Go to http://java.sun.com and search in 
JDBC...
 
Guido

  - Original Message - 
  From: 
  Rock 
  Luiss 
  To: [EMAIL PROTECTED] 
  
  Sent: Wednesday, May 30, 2001 2:28 
  AM
  Subject: Who Can Provide Me 
  org.hsql.jdbcDriver ?Thanks!
  
  Who Can Provide Me org.hsql.jdbcDriver ?Thanks In 
  Advance.


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

2001-05-29 Thread Terje Kristensen

Thanks, that did it :-)

Terje K.

-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: 29. mai 2001 13:16
To: '[EMAIL PROTECTED]'
Subject: AW: newbie problem: javax.servlet.ServletException at
org.apache. jasp er.runtime.PageContextImpl.handlePageException 


As I understand the spec, this is not valid:



(See 2.13.5 and 2.5.2)

Instead you can use:


 


This notation is a bit 'noisy' but it should work.

> -Ursprüngliche Nachricht-
> Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 29. Mai 2001 12:29
> An: '[EMAIL PROTECTED]'
> Betreff: RE: newbie problem: javax.servlet.ServletException at
 



Dynamically reloading a web.xml

2001-05-29 Thread Jeff Trent

If I have webapp named "a" & "b", is it possible to:

(1) dynamically add "c" without restarting the tomcat service thereby
affecting "a" & "b"?

(2) redeploy "a" without restarting the tomcat service?

Thanks.





Tomcat hanging

2001-05-29 Thread Heijns, P.J.B.

Hi,

I have some problems with tomcat. Sometimes when I am using tomcat, and a
some other users, tomcat hangs. Very strange. Some jsp pages are oke after
the crash, but some not, I don't know when en why it crashes. But when it
crashes, it are always the same pages that are oke and not oke. When I want
to request a page (bad page) after the crash, it is searching for the page,
but he doesn't let see the page to me. When I reboot tomcat, everythins is
oke. The time between rebooting and crashing is different, sometimes after 1
hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as a
upload servlet, big search results pages. I am using tomcat 3.2.1, interbase
6.0, interclient 2.0, windows2000.
It seems that it is a internal tomcat error, does anybody know what's the
problem and how I can solve it?

Grtz Pieter



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

2001-05-29 Thread Guido Medina

Another way to do it is saving the complete URI+parameters in a String
variable and put it as a tag: <@jsp:forward page="<%=url_plus_paramters%>">

parameters="?"+parameters... to get http://yourdomain.com/some.jsp?...

Guido.

P.D: I already tested but I don't remember if is <@jsp:forward or

To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 2:53 AM
Subject: RE: newbie problem: javax.servlet.ServletException at org.apache.
jasp er.runtime.PageContextImpl.handlePageException


> Thanks, that did it :-)
>
> Terje K.
>
> -Original Message-
> From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
> Sent: 29. mai 2001 13:16
> To: '[EMAIL PROTECTED]'
> Subject: AW: newbie problem: javax.servlet.ServletException at
> org.apache. jasp er.runtime.PageContextImpl.handlePageException
>
>
> As I understand the spec, this is not valid:
>
> 
>
> (See 2.13.5 and 2.5.2)
>
> Instead you can use:
>
> 
>  
> 
>
> This notation is a bit 'noisy' but it should work.
>
> > -Ursprüngliche Nachricht-
> > Von: Terje Kristensen [mailto:[EMAIL PROTECTED]]
> > Gesendet: Dienstag, 29. Mai 2001 12:29
> > An: '[EMAIL PROTECTED]'
> > Betreff: RE: newbie problem: javax.servlet.ServletException at
> 
>




Re: Tomcat hanging

2001-05-29 Thread Guido Medina

Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
3.2.2...

Guido.

- Original Message -
From: "Heijns, P.J.B." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 2:58 AM
Subject: Tomcat hanging


> Hi,
>
> I have some problems with tomcat. Sometimes when I am using tomcat, and a
> some other users, tomcat hangs. Very strange. Some jsp pages are oke after
> the crash, but some not, I don't know when en why it crashes. But when it
> crashes, it are always the same pages that are oke and not oke. When I
want
> to request a page (bad page) after the crash, it is searching for the
page,
> but he doesn't let see the page to me. When I reboot tomcat, everythins is
> oke. The time between rebooting and crashing is different, sometimes after
1
> hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as
a
> upload servlet, big search results pages. I am using tomcat 3.2.1,
interbase
> 6.0, interclient 2.0, windows2000.
> It seems that it is a internal tomcat error, does anybody know what's the
> problem and how I can solve it?
>
> Grtz Pieter
>




Tomcat-4.0-Apache-WARP/Tomcat-4.0-Apache-AJP13

2001-05-29 Thread SongDongsheng




Hi,
 
Who Can Provide Me server.xml & httpd.conf examples with 
Tomcat-4.0-Apache-WARP/Tomcat-4.0-Apache-AJP13 connectors ?
 
Thanks In Advance.


RE: Tomcat hanging

2001-05-29 Thread Heijns, P.J.B.

I think that I am not using mod_jk, I have never installed it. I only use
tomcat as a standalone webserver. Do you know if my problem is solved in
tomcat 3.2.2.?

Thanks Pieter

-Original Message-
From: Guido Medina [mailto:[EMAIL PROTECTED]]
Sent: woensdag 30 mei 2001 9:01
To: [EMAIL PROTECTED]
Subject: Re: Tomcat hanging


Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
3.2.2...

Guido.

- Original Message -
From: "Heijns, P.J.B." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 2:58 AM
Subject: Tomcat hanging


> Hi,
>
> I have some problems with tomcat. Sometimes when I am using tomcat, and a
> some other users, tomcat hangs. Very strange. Some jsp pages are oke after
> the crash, but some not, I don't know when en why it crashes. But when it
> crashes, it are always the same pages that are oke and not oke. When I
want
> to request a page (bad page) after the crash, it is searching for the
page,
> but he doesn't let see the page to me. When I reboot tomcat, everythins is
> oke. The time between rebooting and crashing is different, sometimes after
1
> hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such as
a
> upload servlet, big search results pages. I am using tomcat 3.2.1,
interbase
> 6.0, interclient 2.0, windows2000.
> It seems that it is a internal tomcat error, does anybody know what's the
> problem and how I can solve it?
>
> Grtz Pieter
>



Re: Tomcat hanging

2001-05-29 Thread Guido Medina

  A lot of bugs are solved in 3.2.2 and the migration is very easy, of
course, don't overwrite the files without read a litle bit but you almost
can may do it...

  You can also put running apache web server in windows, is ten times faster
than IIS and is very fast for static page, use the bridge mod_jk to
comunicate one with other...try it, you will like it, I did on a Windows 98
machine for my Freelance jobs...

Guido.

- Original Message -
From: "Heijns, P.J.B." <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 3:09 AM
Subject: RE: Tomcat hanging


> I think that I am not using mod_jk, I have never installed it. I only use
> tomcat as a standalone webserver. Do you know if my problem is solved in
> tomcat 3.2.2.?
>
> Thanks Pieter
>
> -Original Message-
> From: Guido Medina [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 30 mei 2001 9:01
> To: [EMAIL PROTECTED]
> Subject: Re: Tomcat hanging
>
>
> Are you using mod_jk with tomcat 3.2.1 ?, it is a bug...it is fixed in
> 3.2.2...
>
> Guido.
>
> - Original Message -
> From: "Heijns, P.J.B." <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, May 30, 2001 2:58 AM
> Subject: Tomcat hanging
>
>
> > Hi,
> >
> > I have some problems with tomcat. Sometimes when I am using tomcat, and
a
> > some other users, tomcat hangs. Very strange. Some jsp pages are oke
after
> > the crash, but some not, I don't know when en why it crashes. But when
it
> > crashes, it are always the same pages that are oke and not oke. When I
> want
> > to request a page (bad page) after the crash, it is searching for the
> page,
> > but he doesn't let see the page to me. When I reboot tomcat, everythins
is
> > oke. The time between rebooting and crashing is different, sometimes
after
> 1
> > hour but sometimes after 6 hours. I use a lot of heavy jsp pages, such
as
> a
> > upload servlet, big search results pages. I am using tomcat 3.2.1,
> interbase
> > 6.0, interclient 2.0, windows2000.
> > It seems that it is a internal tomcat error, does anybody know what's
the
> > problem and how I can solve it?
> >
> > Grtz Pieter
> >
>




  1   2   >