Re: Compiling mod_jserv.so

2000-11-27 Thread Richard Beton


Nathan Wilhelmi wrote:
I'm
trying to compile mod_jserv.so on a Solaris 8 x86 platform. When I run
the apxs command I'm getting an "Language Option Software Package not installed"
error. Can anybody offer any suggestions as to what this is an how I fix
it?

You haven't got a C compiler.
Get yourself GCC and try again.
Alternatively, find someone who has built mod_jserv for Solaris 8 x86
and get their binary.
Rick



begin:vcard 
n:Beton;Richard
tel;pager:ICQ: 56840977
tel;cell:MSN/Hotmail: [EMAIL PROTECTED]
tel;fax:01794 833434
tel;work:01794 833458
x-mozilla-html:TRUE
url:http://www.beton.freeserve.co.uk/
org:Roke Manor Research Limited;Internet Technology  Networks
adr:;;Roke Manor: http://www.roke.co.uk/;;;SO51 0ZN;UK
version:2.1
email;internet:[EMAIL PROTECTED]
title:Internet Consultant
note;quoted-printable:The information contained in this e-mail is confidential and must =0D=0Anot be passed to any third party without permission. This =0D=0Acommunication is for information only and shall not create =0D=0Aor change any contractual relationship. =0D=0A
fn:Rick Beton
end:vcard



Re: Tomcat Cache

2000-11-27 Thread Drasko Kokic


--- zys [EMAIL PROTECTED] wrote:
 I am trying a jsp file, however if I change in the
 jsp file
 this modification is not taken by TOMCAT eventhough
 I
 shutdown  restart it and delete all *.java ,
 *.class TOMCAT
 has generated for my jsp file.
 
 Did anyone faced such problem?
 
 regards
 ZIAD
 
Yeah ... me once, when I've forgotten to save the
changes :-)

Drasko

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



RE: Re[2]: tomcat-servlets problem

2000-11-27 Thread Panagiotis Konstantinidis
Title: RE: Re[2]: tomcat-servlets problem





 First of all I have to thank everybody foryour help and your time :-)


 -Original Message-
 From: Serg Velikanov [mailto:[EMAIL PROTECTED]]
 Sent: 24 November 2000 20:09
 To: Ritwick Dhar
 Subject: Re[2]: tomcat-servlets problem
 
 
 Hello Ritwick,
 
 Friday, November 24, 2000, 9:03:24 PM, you wrote:
 
 RD 'Getting started' documentation is included with the 
 download in the
 RD $TOMCAT_HOME/doc directory. Its also available online at 
 jakarta.apache.org.
 
 RD -Original Message-
 RD From: Panagiotis Konstantinidis [mailto:[EMAIL PROTECTED]]
 RD Sent: Friday, November 24, 2000 1:07 PM
 RD To: '[EMAIL PROTECTED]'
 RD Subject: tomcat-servlets problem
 
 
 
 RD Hello everybody. I am new to using Tomcat and I have 
 some problems. I am
 RD using Tomcat with Apache. The problem is that I do not 
 know how to run a
 RD servelt (or a jsp file) using tomcat. Lets say I have a servlet
 RD (HelloWorld.java) that I have compiled properly. How can 
 I run it using
 RD Tomcat? How can I configure the relevant files? I have 
 read the FAQ and the
 RD configuration instructions but they do not seem to work. 
 I have tried:
 RD http://localhost/servelts/HelloWorld 
 http://localhost/servelts/HelloWorld
 RD (and many more combinations) but it does not seem to 
 work. Could anybody
 RD help me please and give me explicit examples of how to 
 configure the proper
 RD files and where to put the servlet files? Is it the same 
 if I want to run
 RD JSP files? Thank you for your time.
 
 
 RD Regards 
 
 RD Panos 
 
 Getting started, getting started. May be, way be. So you have your
 servlet? Does tomcat know about it? It seems to me no.
 
 So .java and .class files of your project classesyour should be in
 tomcat\webapp\YOURPROJECTDIRECTORY\WEB-INF\class\YOURPROJECTCL
 ASSNAME\*.*
 due to servlet spec.


Ok I understand it, but what I cannot understand is how can I configure Tomcat to go and look at the files in : tomcat\webapp\MYPROJECTDIRECTORY\WEB-INF\class\MYPROJECTCLASSNAME.

Is it done automatically? Do I have to change anything in the server.xml file? Do I have to change anything in the web.xml file etc? 

And the how do I access it? Do I have to type the full name, e.g http://127.0.0.1/myServlets/WEb-INF/class/Test or I can just access it using http://127.0.0.1/myServlets/Test. Is it the same for Html and .jsp files?

Could you please be more specific?


 Your .html .htm .jsp and so on files should be in
 tomcat\webapp\YOURPROJECTDIRECTORY\
 
 And, please, restart your tomcat.
 
 For Tomcat TEAM eyes only not for mass:
 I'm very respect your work, but if you know something, please tell
 about it to other in your docs. As for me, I'm living in Ukraine and
 for me it's not a lot of ways to obtain knowleadge --- Internet, some
 translated books and hackers ftp's with books.
 It's seems to me Tomcat documentation very-very spartan. No details
 and so on. Your users should work hardly to know something. Please,
 sometime remember, sweet times when you first started.
 -- 
 
 Kharkov, Ukraine
 
 Best regards,
 Serg mailto:[EMAIL PROTECTED]
 


Regards


 Panos





Re: Increasing memory problem

2000-11-27 Thread Kai Müller

Hi!

thank you for your help!

In the meantime I found a stupid error in my code, which only appeared when
the amount read from the database got larger.

It was a "new "on the wrong place inside of the handler that selected data
from the database...

Kai


Saurabh Shukla wrote:

 YOu can also try Thread Pooling in tomcat, it might be help.

 SHuklix

 -Original Message-
 From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, November 26, 2000 10:08 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Increasing memory problem

 Hi, Kai.

 The problem you are experiencing is a difficult one, as it relates to the
 way you allocate and de-allocate your resources in a way the garbage
 collector can determine that a resource is not needed anymore.

 You say that you're using jdbc. You should make sure that you are properly
 (and explicitly) deallocating all resources you create.

 a) Connections to the database. If you're not using a connection pool, make
 sure your connections are closed.
 b) ResultSets AND statements. This is a common problem, you must close()
 them in order to let the garbage collector do its work.
 example:
 rset.close();
 stmt.close();
 conn.close();

 Julio

 - Original Message -
 From: Kai Müller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 24, 2000 12:35 PM
 Subject: Increasing memory problem

  Hi everybody!
 
  My problem is the following:
 
  after I start my application (JSPs read from MySQL) with Tomcat 3.1 the
  used memory of the java processes increases and the number of java
  processes themselves increases if I reload the same site (2 per second),
  reload, reload, reload  ;-)
 
  The performance goes down, and sometimes Tomcat crashes. The HTML sent
  to the browser is large (about 350 kB). I get several errors
  (OutOfMemory, Response has already been committed,...) and I am
  absolutely confused about it now.
 
  Can anybody help me ? Do you need further information ?
 
  With kind regards
 
  Kai Müller
 
 
  The input.jsp is the following and a global entry for all requests,
  which are handled and forward on a JSP page with the HTML-Codes.
 
  
  %@ page errorPage="/error/errorpage.jsp" %
  %@ page import="javax.servlet.*" %
  %@ page import="javax.servlet.http.*" %
 
  %
 response.setDateHeader("Expires",0);
 response.setHeader("Pragma","no-cache");
 response.setHeader("Cache-Control","no-cache,must-revalidate");
  %
 
   jsp:useBean
 id="requestProc"
 class="TheRequestClass"
 scope="session"
   
  %
   requestProc.initialize(config.getServletContext(), session);
   %
  /jsp:useBean
 
   jsp:useBean
 id="pageController"
 class="ThePageControllerClass"
 scope="session"
   
  /jsp:useBean
 
 
   %
 requestProc.processRequest(request);
 
 String next = pageController.getNextPage(request);
 getServletConfig().getServletContext().getRequestDispatcher("/" +
  next).forward(request, response);
   %
  -
  --
 
  Mediadom audiovisuelle Medien GmbH
  Merheimer Str. 151
  D-50733 Koeln
 
  Tel.: 0221 / 917 11 80
  Fax: 0221 / 917 11 81
 
  Internet: http://www.mediadom.de
 
 

--

Mediadom audiovisuelle Medien GmbH
Merheimer Str. 151
D-50733 Koeln

Tel.: 0221 / 917 11 80
Fax: 0221 / 917 11 81

Internet: http://www.mediadom.de





tomcat installation

2000-11-27 Thread Merwin Yap

I'm a newbie... I downloaded a copy of the Tomcat3.2beta 8  and i'm
trying to implement the simplest installation possible.

I'm getting an error message:

forbidden
you don't have permission to access /examples/servlet/HelloWorldExample
on this server


I'll run through on what i've done so far...
1. I decommpressed the file jakarta-tomcat.32beta8 (installed in the
directory
/home/webapp/jakarta-tomcat)
2. made the environment variables in .bash_profile (tomcat_home, i've
successfully  installed java
already)
3. copied the mod_jk.so on the directory /usr/lib/apache/
4. appeded "include /home/webapp/jakarta-tomcat/conf/mod_jk..conf-auto"
in httpd.conf
5. edited the worker.properties
6. excuted startup.sh
7. edited mod_jk.conf-auto (changed the line LoadModule statement into "
LoadModule jk_module
/usr/lib/apache/mod_jk.so")
8. started apache
9  used netscape and accessed it.
("http://localhost/examples/servlet/HelloWorldExample")
10 i get the error message.

I know tomcat works cause i accessed the url
"http://localhost:8080/examples/servlet/HelloWorldExample" i get the
hello world message.




RE: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + Mandrake 7.1

2000-11-27 Thread Lars Schioeler

Is Apache(mod_jk) at any time connected to Tomcat ? (in log)
What you probably already know:
- You have to enable the ajp12 listener in server.xml, to make it possible
for mod_jk to connect.
- Tomcat must be started before Apache.


Lars Schioler
Software developer
Belle Systems A/S
Universitetsparken 7
DK-4000 Roskilde
Denmark 
Tlf: 7012 2500
Fax: 7012 2501
Email: [EMAIL PROTECTED] 
Homepage: www.bellesystems.com 
. Defining the Future of IP Services .
 
 


-:)-Original Message-
-:)From: Dominique BATARD [mailto:[EMAIL PROTECTED]]
-:)Sent: Monday, November 27, 2000 10:56 AM
-:)To: [EMAIL PROTECTED]
-:)Subject: Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + 
-:)Mandrake 7.1 
-:)
-:)
-:)Salut
-:)
-:)You have to compile mod_jk !
-:)
-:)Dom
-:)
-:)- Original Message -
-:)From: "Bourque, Guillaume" [EMAIL PROTECTED]
-:)To: [EMAIL PROTECTED]
-:)Sent: Friday, November 24, 2000 11:22 PM
-:)Subject: Re: HELP on Tomcat 3.2 + mod_jk + Apache 1.3.14 + 
-:)Mandrake 7.1
-:)
-:)
-:) I forgot to included the ouput of  /var/log/httpd/mod_jk.log
-:)
-:) [jk_uri_worker_map.c (344)]: Into 
-:)jk_uri_worker_map_t::map_uri_to_worker
-:) [jk_uri_worker_map.c (434)]: 
-:)jk_uri_worker_map_t::map_uri_to_worker, done
-:) without a match
-:)
-:) What's missing to my tomcat conf ?
-:)
-:)
-:) Vous auriez écrit ... :
-:)
-:) Hello all !
-:) 
-:) Sorry to ask this one but I tried a lot of thing before asking ?
-:) 
-:) I have a standards Mandrake/Linux machine 7.1 with the 
-:)following packages
-:) installed
-:) 
-:) [root@localhost conf]# rpm -qa | egrep "apache|tomcat|IBMB"
-:) apache-suexec-1.3.12-24mdk
-:) apache-1.3.12-24mdk
-:) apache-common-1.3.12-24mdk
-:) apache-manual-1.3.12-24mdk
-:) apache-devel-1.3.12-12mdk
-:) IBMJava2-SDK-1.3-2.0
-:) tomcat-3.2-beta5.1
-:) tomcat-mod-3.2-beta5.1
-:) tomcat-doc-3.2-beta5.1
-:) 
-:) 
-:) After installing these package I can talk to tomcat via
-:) http://localhost:8080
-:) 
-:) But like every body I want to use 80 and the JKMount for 
-:)my jsp files
-:) 
-:) And here is my /etc/http/conf/mod_jk.conf file
-:) 
-:) VirtualHost 131.195.53.122:80
-:)   DocumentRoot /web/host1
-:)   ServerName darwin.hydro.qc.ca
-:)   JkMount /*.jsp ajp12
-:)   JkMount /servlet/* ajp12
-:) /VirtualHost
-:) 
-:) 
-:) Also I included the ouput of the strace command run on my 
-:)apache process
-:) 
-:) strace -f -p 18460
-:) 
-:) 
-:) brk(0x8151000)  = 0x8151000
-:) brk(0x8154000)  = 0x8154000
-:) brk(0x8157000)  = 0x8157000
-:) read(11, "GET /carts.jsp HTTP/1.0\r\nIf-Modi"..., 4096) = 415
-:) write(10, "[jk_uri_worker_map.c (344)]: Int"..., 73) = 73
-:) fdatasync(0xa)  = 0
-:) write(10, "[jk_uri_worker_map.c (406)]: jk_"..., 89) = 89
-:) fdatasync(0xa)  = 0
-:) stat("/web/host1/carts.jsp", {st_mode=S_IFREG|0644, 
-:)st_size=522, ...}) =
-:)0
-:) open("/.htaccess", O_RDONLY)= -1 ENOENT (No 
-:)such file or
-:) directory)
-:) open("/web/.htaccess", O_RDONLY)= -1 ENOENT (No 
-:)such file or
-:) directory)
-:) open("/web/host1/.htaccess", O_RDONLY)  = -1 ENOENT (No 
-:)such file or
-:) directory)
-:) open("/web/host1/carts.jsp", O_RDONLY)  = 12
-:) select(12, [11], NULL, NULL, {0, 0})= 0 (Timeout)
-:) write(11, "HTTP/1.1 304 Not Modified\r\nDate:"..., 283) = 283
-:) close(12)   = 0
-:) read(11, 0x8152b20, 4096)   = ? ERESTARTSYS 
-:)(To be restarted)
-:) --- SIGALRM (Minuterie d'alerte) ---
-:) close(11)   = 0
-:) rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
-:) rt_sigaction(SIGURG, {0x805be14, [], 
-:)SA_INTERRUPT|0x400}, {0x805be14,
-:) [], SA_INTERRUPT|0x400}, 8) = 0
-:) 
-:) 
-:) What am I missing ?
-:) 
-:) Why apache do not pass the request to tomcat or why 
-:)tomcat doesnot reply
-:) to apache ?
-:) 
-:) Right now I see only the ascii source file of my jsp file !
-:) 
-:) TIA,
-:) 
-:) Guillaume
-:) 
-:) 
-:) 
-:)
-:) --
-:) - La qualité avant tout ! 
-:)--
-:) Guillaume BourqueArchitecte 
-:)informatique
-:)  LogiSoft Technologies inc.
-:) Tél. (514) 580-0050  Fax: 
-:)(450) 649-6134
-:)  http://www.logisoftech.com 
-:)
-:)
-:)
-:)



tomcat URL rewriting

2000-11-27 Thread Anton Rakovchuk



Hi 
all,

I am newbee in the 
world of java, servlets and apache+tomcat
I am just wondering 
if someone can explain me the following problem.
I found out that URL 
rewriting mechanism for session tracking purposesdoes not work when 
browser's cookies are disabled.
Is it an apache 
issue ? or it is tomcat problems ?
I am using apache 
1.3.14 + tomcat 3.1

Thanks,
Anton.


Re: tomcat URL rewriting

2000-11-27 Thread carnell

Use 3.2 Beta 8

- Original Message -
From: Anton Rakovchuk
To: [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 11:29 AM
Subject: tomcat  URL rewriting


Hi all,

I am newbee in the world of java, servlets and apache+tomcat
I am just wondering if someone can explain me the following problem.
I found out that URL rewriting mechanism for session tracking purposes does
not work when browser's cookies are disabled.
Is it an apache issue ? or it is tomcat problems ?
I am using apache 1.3.14 + tomcat 3.1

Thanks,
Anton.




Re: Tomcat Cache

2000-11-27 Thread Miles Daffin

Subject: Re: Tomcat  Cache



 --- zys [EMAIL PROTECTED] wrote:
  I am trying a jsp file, however if I change in the
  jsp file
  this modification is not taken by TOMCAT eventhough
  I
  shutdown  restart it and delete all *.java ,
  *.class TOMCAT
  has generated for my jsp file.
 
  Did anyone faced such problem?
 
  regards
  ZIAD
 
 Yeah ... me once, when I've forgotten to save the
 changes :-)

 Drasko

Or, if you are following the development process as suggested in the how to
pages, you have forgotten to do an ant build on your project source which
places new versions of you code etc in the webapps directory.

Miles




how do i recreate the user session after session timeout or server restart?

2000-11-27 Thread Joakim Verona

hello,

i have an web-app which uses form login. This works well except when the session times 
out or
the server is restarted(due to a software update)

the problem occurs when the user reloads a page from a no longer valid session.
tomcat then redirects the user properly to the form-login page.
only problem, then, is that the user then is redirected to the original page, which 
relies on a valid session.

i could of course have the session initialization code in every page, but this is 
error prone.
is there some more elegant way, perhaps using some form of event handler? 
(interceptor?)

i think the basic problem is that i cant make the form-login system actually do 
anything other
than setting the username in the underlying session object.

-- 
Joakim Verona
[EMAIL PROTECTED]
http://www.verona.se/



Using SSL CA certificates

2000-11-27 Thread Lacerda, Wellington (AFIS)

How can I use a C.A. real certificate with Tomcat SSL ? I want to add a test
certificate from Verisign.
Can you explain that with some detail, please ?

Many thanks,

Wellington 





Re: Windows 98 startup problem

2000-11-27 Thread Jose Javier Rodriguez Sanz

The only thing you´ve got to do is increse the DOS window´s memory , change the value 
from "default" to "4096" k , you can do this creating a sortcut in the desktop and 
selecting it with the rigth button. Sorry but my
english isn´t very nice.

[EMAIL PROTECTED] wrote:

 Hello,

 I hopelessly try and use Tomcat v3.1 on my Win98 platform but I always get an error 
message at startup that says something like "Insufficient Environment Space".

 I think that this problem avoids Tomcat from accessing the compiler and so no JSP 
page can be compiled.

 It always happens at the line "set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\tools.jar" 
of the tomcat.bat file and I'm sure that the CLASSPATH and JAVA_HOME variables have 
been set correctly (set JAVA_HOME=c:\jdk1.3 ...)

 Can anyone help me ?

 Thanks.

 Olivier.

 - La messagerie itinérante sans abonnement NetCourrier -
 Web : www.netcourrier.com Minitel : 3615 et 3623 NETCOURRIER
   Tél : 08 36 69 00 21


begin:vcard 
n:Rodriguez Sanz;Jose Javier
tel;work:TCP Sistemas e Ingenieria
x-mozilla-html:FALSE
url:http://www.tcpsi.es
version:2.1
email;internet:[EMAIL PROTECTED]
title:GTWAP, grupo de tecnologias WAP
adr;quoted-printable:;;c/ Fernandez Caro, 7, 5a planta.=0D=0A;MADRID;;28027;
fn:Jose Javier Rodriguez Sanz
end:vcard



Re: Increasing memory problem

2000-11-27 Thread Kai Müller

Hello Shuklix,

could you tell me more about the thread pooling, please? Where do I get some
information? How does Tomcat handle the requests?

Thank you.

Kai

Saurabh Shukla wrote:

 YOu can also try Thread Pooling in tomcat, it might be help.

 SHuklix

 -Original Message-
 From: Julio Serje (@canada.com) [mailto:[EMAIL PROTECTED]]
 Sent: Sunday, November 26, 2000 10:08 PM
 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
 Subject: Re: Increasing memory problem

 Hi, Kai.

 The problem you are experiencing is a difficult one, as it relates to the
 way you allocate and de-allocate your resources in a way the garbage
 collector can determine that a resource is not needed anymore.

 You say that you're using jdbc. You should make sure that you are properly
 (and explicitly) deallocating all resources you create.

 a) Connections to the database. If you're not using a connection pool, make
 sure your connections are closed.
 b) ResultSets AND statements. This is a common problem, you must close()
 them in order to let the garbage collector do its work.
 example:
 rset.close();
 stmt.close();
 conn.close();

 Julio

 - Original Message -
 From: Kai Müller [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 24, 2000 12:35 PM
 Subject: Increasing memory problem

  Hi everybody!
 
  My problem is the following:
 
  after I start my application (JSPs read from MySQL) with Tomcat 3.1 the
  used memory of the java processes increases and the number of java
  processes themselves increases if I reload the same site (2 per second),
  reload, reload, reload  ;-)
 
  The performance goes down, and sometimes Tomcat crashes. The HTML sent
  to the browser is large (about 350 kB). I get several errors
  (OutOfMemory, Response has already been committed,...) and I am
  absolutely confused about it now.
 
  Can anybody help me ? Do you need further information ?
 
  With kind regards
 
  Kai Müller
 
 
  The input.jsp is the following and a global entry for all requests,
  which are handled and forward on a JSP page with the HTML-Codes.
 
  
  %@ page errorPage="/error/errorpage.jsp" %
  %@ page import="javax.servlet.*" %
  %@ page import="javax.servlet.http.*" %
 
  %
 response.setDateHeader("Expires",0);
 response.setHeader("Pragma","no-cache");
 response.setHeader("Cache-Control","no-cache,must-revalidate");
  %
 
   jsp:useBean
 id="requestProc"
 class="TheRequestClass"
 scope="session"
   
  %
   requestProc.initialize(config.getServletContext(), session);
   %
  /jsp:useBean
 
   jsp:useBean
 id="pageController"
 class="ThePageControllerClass"
 scope="session"
   
  /jsp:useBean
 
 
   %
 requestProc.processRequest(request);
 
 String next = pageController.getNextPage(request);
 getServletConfig().getServletContext().getRequestDispatcher("/" +
  next).forward(request, response);
   %
  -
  --
 
  Mediadom audiovisuelle Medien GmbH
  Merheimer Str. 151
  D-50733 Koeln
 
  Tel.: 0221 / 917 11 80
  Fax: 0221 / 917 11 81
 
  Internet: http://www.mediadom.de
 
 

--

Mediadom audiovisuelle Medien GmbH
Merheimer Str. 151
D-50733 Koeln

Tel.: 0221 / 917 11 80
Fax: 0221 / 917 11 81

Internet: http://www.mediadom.de





Problem with tomcat IIS 5.0

2000-11-27 Thread Wolfgang Bauer

Hi,
I am using Tomcat as a servlet engine for IIS 5.0 on win 2k. It is registered as a 
service and works fine.
BUT: In irregular interval the service stops.

Has anyone encountered similar problems or has any idea where to look for the error ??
Any help appreciated

Wolfgang


P.S. To map any request of the /servlet subdirectory to the servlet engine, I created 
a Wep-App called servlet, and in its 
web.xml file I added:

servlet-mapping
servlet-name
invoker
/servlet-name
url-pattern
/
/url-pattern
/servlet-mapping   
   
 Can this causes my troubles ??

P.P.S.: I am NOT using jdk 1.3




 smime.p7s


I want to use my own Java-classes in tomcat.

2000-11-27 Thread Katrin_Seiffert


I have in tomcat create my own webapp. But know I want to use my own
Java-classes. I have put my Java-clasese in WEB-INF/classes/de/test. But my
application can't find this Java-classes. I know I must put an Classpath.
But how can I do this in tomcatf?


Katrin Seiffert





Bug between JSP and multipart/form-data

2000-11-27 Thread Jose Euclides da Silva Junior - DIGR.O

-BEGIN PGP SIGNED MESSAGE-

Hi,
it seems to happen a foolish bug whenever JSP deals with
multipart/form-data. Since I have developed all my project with JSP,  now it
is a very difficult to change all  into servlets. It seems to be a bug when
JSP performs  getInputStreams method with request object , as you can see
below. A loop performs 19 times with the following command:

int length
... ServletInputStream sis =  request.getInputStream()
for ( 19 times)
 {
length = sis.readLine(tempbuff,0,tempbuff.length);
 ...
 }

Can somebody help me what is happening?



Error: 500
Location: /examples/jsp/serstar/Form2.jsp
Internal Servlet Error:

org.apache.jasper.JasperException: Unable to compile class for
JSPD:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0
002fForm_00032_0002ejspForm2_jsp_22.java:144: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:168: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:192: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:216: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:240: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:264: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:288: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:312: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:336: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:360: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:384: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:408: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:432: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:456: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:480: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:504: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:528: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^
D:\jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_0002
fForm_00032_0002ejspForm2_jsp_22.java:552: Missing term.
out.write("\" \t\t\t\tvalue=\"");
 ^

httpd.conf file with tomcat-apache.conf file

2000-11-27 Thread deniz gulmez



Hi everyone, 

i can't start apache service on Win2k machine while 
i make the "httpd.conf" file include the "tomcat-apache.conf" file, created by 
tomcat. Error message like this: "Error 1053: The service did not respond to the 
start or control request in a timely fashion"..

Thnx!


AW: Bug between JSP and multipart/form-data

2000-11-27 Thread Ralph Einfeldt


It looks like you have a syntax error in
/examples/jsp/serstar/Form2.jsp.

Look at line 144 of the the generated file:
jakarta\tomcat\work\localhost_8080%2Fexamples\_0002fjsp_0002fserstar_000
2fForm_00032_0002ejspForm2_jsp_22.java

Or some lines before. There is possibly a " to less 
or to much before this line.

 -Ursprüngliche Nachricht-
 Von: Jose Euclides da Silva Junior - DIGR.O
 [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 27. November 2000 15:51
 An: [EMAIL PROTECTED]
 Betreff: Bug between JSP and multipart/form-data
 



virtual domains

2000-11-27 Thread Carlos


Anyboy can send me a server.xml with virtual domains for tomcat 3.2 b8 with
apache?
I dont understand the manula
thanks




mod_jk for AIX?

2000-11-27 Thread Ritwick Dhar

Guys,

I'm having immense difficulty building mod_jk on AIX 4.3.3. + IBM HTTP
Server 1.3.12.1 + jdk1.1.8

apxs command: 
/backup/ofxsoftware/IHS1.3.12.1.bin/bin/apxs -o mod_jk.so -I../jk
-I/usr/jdk_base/include -I/usr/jdk_base/i
nclude/aix -c *.c ../jk/*.c

Compilation goes well, the link fails with:
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/backup/ofxsoftware/IHS1.3.12.1.bin/libexec/httpd.exp -lc -o mod_jk.so
jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o
jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o
jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o 
ld: 0711-244 ERROR: No csects or exported symbols have been saved.

Can anyone tell me where I'm going wrong?

Does anyone have a prebuilt mod_jk.so for AIX?

Thanks
Rit

PS: I had no better luck with mod_jserv either. See my previous post about
HANDLER THREAD PROBLEM. Can't believe it's *this* difficult and frustrating
getting tomcat to work with Apache!



tomcat 3.2b8 and response.flushBuffer()

2000-11-27 Thread Mauro Bertapelle

It seems to me that response.flushBuffer()
doesn't work anymore with beta8.

Can someone confirm this ?

Regards,

Mauro Bertapelle
JMatica Srl
[EMAIL PROTECTED]
--



Re: Apache + Tomcat

2000-11-27 Thread Trevor Little

you can have index.html redirect to the jsp


carnell wrote:
 
 Does anyone know how to make Apache/Tomcat automatically load up index.jsp
 in a directory,
 instead of producing a directory listing? (port 80). I would like to server
 a JSP immediately, without a index.html.
 
 Craig.



Re: Apache + Tomcat

2000-11-27 Thread Dominique BATARD

In httpd.conf :

IfModule mod_dir.c
DirectoryIndex index.html index.jsp
/IfModule

Dom

- Original Message -
From: "carnell" [EMAIL PROTECTED]
To: "Tomcat-user" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 5:09 PM
Subject: Apache + Tomcat


 Does anyone know how to make Apache/Tomcat automatically load up index.jsp
 in a directory,
 instead of producing a directory listing? (port 80). I would like to
server
 a JSP immediately, without a index.html.

 Craig.








To Parse JSP has HTML ?

2000-11-27 Thread Charles Sabourdin

Dear All,
  I would like to parse files (*.html) with jsp tag.
In order to hide that my web site use jsp. I thought I
only had to use this tag in the web.xml of my web app.

web-app
servlet-mapping
servlet-name
jsp
/servlet-name
url-pattern
*.html
/url-pattern
/servlet-mapping
/web-app
  Apparently, my html are parse with no analyse.

I use RedHat 6.2 (jdk1.3 of sun) Tomcat 3.2 beta 6.
could anyone correct my statment.
please.
thank you.

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



reloading..

2000-11-27 Thread Endre Stølsvik

I'm going a bit crazy soon, so any help here would be much appreciated!

I have a DB pool. I instantiate this class as a "connection holder", and
the pool is a static field in this class. I also have a static int that I
increase each time I make a new of these connection holders, and decrease
each time they get garbage collected.
  I Initialize this from a servlet (Startup.java) that I've defined as
"load-on-startup". This goes just fine, and everything is merry.

When I recompile my servlets, beans and helpers (rm all .class files, and
jikes the whole thing), I apparently have "lost" this pool somewhere. I
get a nullpointer exception at the point where I try to reference it. The
counter I was talking about has also been reset to zero.

I then tried to put a call to the initialization in the "doGet()" of the
Startup.java, so that I can call it when I need it. This is when things
get annyoing.
  I now (sometimes!) apparently get two different "contexts" of servlets.
This because the call to Startup.java and this other servlet gives me
_different_ values from this counter. So the Startup.java is happy,
because the pool is working fine there, but my main servlet hasn't got the
same class or whatever.

As I've understood it, this is because I now have two different
classloaders loading these classes, and in reality, two enirely different
contexts. Is this really the way it's meant to be, or am I totally doing
something wrong?

Is there _anything_ I can do from within the servlets to just get rid of
ALL classes and start all over if tomcat notices a "reload-situation"? If
I have to go to the tomcat source, where should I start?!

Any help would much appreciated.

-- 
Mvh,
Endre




Re: System properties

2000-11-27 Thread Miles Daffin

Craig,

I was wondering if there is an optimal way of doing the following in TomCat?
If you have the time to briefly describe such

Thanks

Miles

  (I prefer to store global application
  objects in
   the servlet context, so that they are easily visible to all servlets
and
  JSP
   pages in my apps).

p.s. please would you cc any response to my address.






One JVM per context?? Please help!

2000-11-27 Thread Mike La Budde


Is it possible to configure tomcat to execute a new java virtual machine 
per context? If so, how?

TIA,

Mike




Re: Is Tomcat/Apache combo necessary?

2000-11-27 Thread Trevor Little

Matt Becker wrote:
 
 I need to write an JSP web application and so far have been going the route
 of configuring Tomcat and Apache to work together. Two things come to my
 mind to ask:
 
 1. Is the Tomcat/Apache combination really necessary? This web site is
 going to be pretty much all JSP. I know that Tomcat can do the serving on
 it's own, but I've read stuff saying that it's not so good at serving static
 files and so forth. How would it benefit a JSP web application by me setting
 up the Tomcat/Apache combination?

No you don't have to use Apache.  Apache is faster at serving static
pages but if you don't have many then tomcat can serve them.  If you
wanted to use SSL you used to have to use Apache, but now tomcat 3.2b8
supports ssl.  We're using tomcat 3.2b8 standalone to serve our webapp
and about 5 static pages with ssl.


 
 2. I'm not sure if the actual files of the JSP web application would
 reside in the Tomcat directory, or would they be split in-between Tomcat and
 Apache, where JSP files would be on the Tomcat side and html files and
 content on Apache?

We keep jsps in the tomcat dir.  But you can put them anywhere, you just
need to specify where in the conf files.


 
 I would greatly appreciate any input on this!
 
 Thanks!
 
 Matt



Re: how to create war file

2000-11-27 Thread Mike La Budde

At 11/27/2000 04:44 PM +, you wrote:
Dear List

I'm a beginner on Tomcat can any one tell me how to create war file and 
where to place it for a very simple "hello world" jsp program.

1) You can use the jar command. E.g. Navigate to your classes directory and 
use this command:

jar cvf myapp.war .

2) You can simply use winzip (or equivalent) to create a zip file and 
rename it to have a war extension.

3) Use j2ee graphical method of creating a war file.

4) Check your ide, some will help you create one...

5) Use the new war task in Ant 1.2

HTH,

Mike


thanx
ks
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




RE: reloading..

2000-11-27 Thread Alistair Hopkins

give up, restart tomcat.

i found that to be the only sureproof way :-(

-Original Message-
From: Endre Stølsvik [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 4:49 PM
To: [EMAIL PROTECTED]
Subject: reloading..


I'm going a bit crazy soon, so any help here would be much appreciated!

I have a DB pool. I instantiate this class as a "connection holder", and
the pool is a static field in this class. I also have a static int that I
increase each time I make a new of these connection holders, and decrease
each time they get garbage collected.
  I Initialize this from a servlet (Startup.java) that I've defined as
"load-on-startup". This goes just fine, and everything is merry.

When I recompile my servlets, beans and helpers (rm all .class files, and
jikes the whole thing), I apparently have "lost" this pool somewhere. I
get a nullpointer exception at the point where I try to reference it. The
counter I was talking about has also been reset to zero.

I then tried to put a call to the initialization in the "doGet()" of the
Startup.java, so that I can call it when I need it. This is when things
get annyoing.
  I now (sometimes!) apparently get two different "contexts" of servlets.
This because the call to Startup.java and this other servlet gives me
_different_ values from this counter. So the Startup.java is happy,
because the pool is working fine there, but my main servlet hasn't got the
same class or whatever.

As I've understood it, this is because I now have two different
classloaders loading these classes, and in reality, two enirely different
contexts. Is this really the way it's meant to be, or am I totally doing
something wrong?

Is there _anything_ I can do from within the servlets to just get rid of
ALL classes and start all over if tomcat notices a "reload-situation"? If
I have to go to the tomcat source, where should I start?!

Any help would much appreciated.

--
Mvh,
Endre





architecture document

2000-11-27 Thread Mahati



hai all,
 any of u pl. help me. Where can i get a 
document related to architecture of
tomcat .Also Can any of u give me the 
download url of Servlet specification 2.2

thanx.


virtual domains and web.xml, server.xml

2000-11-27 Thread Carlos

if i use several virtual domains i have put in each virtual domain a
server.xml and web.xml file?
thanks
Carlos




UNICA Comunicación Global
www.unicaonline.com
[EMAIL PROTECTED]
Iparraguirre 61, 2º. 48010 BILBAO
Tel.: 902 152099
Fax: 944 442735





AW: mod_jk for AIX?

2000-11-27 Thread Christoph Leser

I have the same problem. It seems to me that the -bE option is missing. On 
AIX we need to have a *.exp file stating what symbols are to be exported by 
the shared object we are going to build. Don't know how other systems do 
it.

So we should figure out what symbols in mod_jk are to be exported (maybe 
only jk_module ? ).

If nobody jumps in here, I'll try to figure it out, but it will not be 
before next weekend.


Christoph Leser
SP Computersysteme GmbH
E-Mail:[EMAIL PROTECTED]
Tel. +49 711 7264112
Fax: +49 711 7289860

-Ursprüngliche Nachricht-
Von:Ritwick Dhar [SMTP:[EMAIL PROTECTED]]
Gesendet am:Montag, 27. November 2000 16:50
An: '[EMAIL PROTECTED]'
Betreff:mod_jk for AIX?

Guys,

I'm having immense difficulty building mod_jk on AIX 4.3.3. + IBM HTTP
Server 1.3.12.1 + jdk1.1.8

apxs command:
/backup/ofxsoftware/IHS1.3.12.1.bin/bin/apxs -o mod_jk.so -I../jk
-I/usr/jdk_base/include -I/usr/jdk_base/i
nclude/aix -c *.c ../jk/*.c

Compilation goes well, the link fails with:
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/backup/ofxsoftware/IHS1.3.12.1.bin/libexec/httpd.exp -lc -o mod_jk.so
jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o 
jk_nwmain.o
jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o
jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
ld: 0711-244 ERROR: No csects or exported symbols have been saved.

Can anyone tell me where I'm going wrong?

Does anyone have a prebuilt mod_jk.so for AIX?

Thanks
Rit

PS: I had no better luck with mod_jserv either. See my previous post about
HANDLER THREAD PROBLEM. Can't believe it's *this* difficult and frustrating
getting tomcat to work with Apache!



AW: passing parameters to a Servlet

2000-11-27 Thread Ralph Einfeldt

For each blank use %20 or +.

Or use java.net.URLEncoder.encode("A nasty Url to decode öäü");

 -Ursprüngliche Nachricht-
 Von: Christoph Kukulies [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 27. November 2000 18:58
 An: [EMAIL PROTECTED]
 Betreff: passing parameters to a Servlet
 I have some strings with blanks that I have to pass to a
 Servlet in the URL. How can I do that? 
 -- 
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
 



Re: how to create war file

2000-11-27 Thread Dan Smith


Use the jar command (i.e. jar cvf myapp.war classes...). The classes
should be located in a directory structure as follows:
 myapp
 |
 |-- HTML/JSP files
 |
 |--WEB-INF

|

|--web.xml

|

|--classes

| |

| |--all classes (or packages)

|

|--lib

|

|-- all 3rd party jars and zips (i.e. JDBC drivers, XMLParsers...)
NOTE: If you have your classes (i.e. beans) located under a package
(i.e. com.mycompany.mybeans), then the package structure needs to be preserved
under the 'WEB-INF/classes' directory. In other words, com.mycompany.mybeans.Bean1.class
would be found under WEB-INF/classes/com/mycompany/mybeans/Bean1.class.
Once you have your war file, we will call it 'myapp.war', you place
it under the Tomcat 'webapps' directory. When you restart tomcat,
it will expand myapp.war into the directory 'myapp', adding the path 'myapp/WEB-INF/classes'
to the classpath along with all jar and zip files under 'myapp/WEB-INF/lib'.
For a complete discussion in WebApps, see the link under Apache at http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html
Hope this helps,
Dan


--
"Sometimes I wish I could be you, just so I could be friends with me."
 -- Agelica Pickles



RE: Sooo Close, Apache, Tomcat missing one thing

2000-11-27 Thread Randy Paries(WK)

In my server.xml I have

1)  Context path="/rptest"
 docBase="/home/unit/javaapps"
 crossContext="false"
 debug="1"
 reloadable="true" 
/Context

2)  in my httpd.conf I have(among some other stuff( i didn't want to include
all
of my previous message)
JkMount   *.jsp ajp13
JkMount   /servlet/* ajp13

3) in the directory /home/unit/javaapps i have
HelloWorld.class.

4) So here is where I am still confused. To access my servlet in
/home/unit/javaapps
   would the url be??
   http://www.mymachine.com/servlet/rptest/HelloHttpServlet

5) I can access the servlet, if I put it in
/usr/local/jakarta-tomcat/webapps/ROOT/WEB-INF
   and my URL is
http://www.mymachine.com/servlet/HelloHttpServlet
   Do I HAVE To put all my java classes ONLY in this directory?

Thanks







-Original Message-
From: Saurabh Shukla [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 25, 2000 12:57 AM
To: [EMAIL PROTECTED]
Subject: RE: Sooo Close, Apache, Tomcat missing one thing


You have to mention document base in server.xml

SHuklix

-Original Message-
From: Randy Paries [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 25, 2000 9:41 AM
To: [EMAIL PROTECTED]
Subject: Sooo Close, Apache, Tomcat missing one thing

So I am pretty sure it has to do something with the way I have my tomcat
configured. The piece that I can't seem to follow thru on is:
1) I understand that the JkMount statements redirect all /.jps's and
/servlet to
the tomcat server. But how does tomcat know where to look for the file/class
.


Thanks for any help/ direction

Randy Paries






Re: tomcat 3.2b8 and response.flushBuffer()

2000-11-27 Thread Craig R. McClanahan

Mauro Bertapelle wrote:

 It seems to me that response.flushBuffer()
 doesn't work anymore with beta8.

 Can someone confirm this ?


What symptoms are you seeing that lead to this conclusion?

There are at least the following circumstances under which you won't see any
output at the browser even though you've done a response.flushBuffer() call:

* You are running behind Apache, and Apache is still buffering
  the response.

* There is a proxy server between the client and server that is
  buffering the response

* You are creating an HTML response, but you flush in the middle
  of a paragraph or some other element.  For example:

html
head
titleMy Title/title
/head
body
pThis is a paragraph that should be partially flushed
FLUSH HERE --
and then completed later./p
/body
/html

In the latter case, the browser won't display the first line of the paragraph
even if the flush works perfectly, because it does not know what the remaining
text of the paragraph will contain, and therefore cannot format the screen yet.


 Regards,

 Mauro Bertapelle
 JMatica Srl
 [EMAIL PROTECTED]
 --

Craig McClanahan





Re: System properties

2000-11-27 Thread Craig R. McClanahan

Miles Daffin wrote:

 Craig,

 I was wondering if there is an optimal way of doing the following in TomCat?
 If you have the time to briefly describe such

 Thanks

 Miles

   (I prefer to store global application
   objects in
the servlet context, so that they are easily visible to all servlets
 and
   JSP
pages in my apps).

 p.s. please would you cc any response to my address.

Yes, it's easy in Tomcat (or any other servlet container that implements servlet
2.2 or later).

What I normally do is define a servlet to initialize my application resources,
and declare it load-on-startup in the web.xml file (so that the time-consuming
stuff happens when the server starts instead of on the first request).  As part
of the init() method of this servlet, I store these resources as a servlet
context attribute.

For example, lets say you have a nice fancy connection pool object that you want
to make available to the servlets and JSP pages of your application.  In the
init() method of the startup servlet, you just need to do the following:

ConnectionPool myPool = ... create the pool object ...
getServletContext().setAttribute("pool", myPool);

Now, any servlet in your application can acquire a reference to this pool in the
doGet() or doPost() method:

ConnectionPool thePool =
  (ConnectionPool) getServletContext().getAttribute("pool");

Or, in a JSP page, you can access it like this:

jsp:useBean id="pool" type="com.mycompany.ConnectionPool"
 scope="application"/

Craig McClanahan





Problem With Deployment of Web Application in Tomcat

2000-11-27 Thread Vijayanand Sukumar


Hi Everyone,
   
   When i Tried to deploy a web application that uses xml.jar, tomcat
overrides my xml.jar withits own
parser.jar from its library. Is there a way i can override this behaviour.

Thanks

Vijay



RE: mod_jk for AIX?

2000-11-27 Thread Ritwick Dhar

There *is* a .exp file specified with
-bI:/backup/ofxsoftware/IHS1.3.12.1.bin/libexec/httpd.exp. Is this what
you're talking about? This file has what looks like gazillions of function
names defined in it. Of course, I know zip about this stuff.

-Original Message-
From: Christoph Leser [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 11:44 AM
To: '[EMAIL PROTECTED]'
Subject: AW: mod_jk for AIX?


I have the same problem. It seems to me that the -bE option is missing. On 
AIX we need to have a *.exp file stating what symbols are to be exported by 
the shared object we are going to build. Don't know how other systems do 
it.

So we should figure out what symbols in mod_jk are to be exported (maybe 
only jk_module ? ).

If nobody jumps in here, I'll try to figure it out, but it will not be 
before next weekend.


Christoph Leser
SP Computersysteme GmbH
E-Mail:[EMAIL PROTECTED]
Tel. +49 711 7264112
Fax: +49 711 7289860

-Ursprüngliche Nachricht-
Von:Ritwick Dhar [SMTP:[EMAIL PROTECTED]]
Gesendet am:Montag, 27. November 2000 16:50
An: '[EMAIL PROTECTED]'
Betreff:mod_jk for AIX?

Guys,

I'm having immense difficulty building mod_jk on AIX 4.3.3. + IBM HTTP
Server 1.3.12.1 + jdk1.1.8

apxs command:
/backup/ofxsoftware/IHS1.3.12.1.bin/bin/apxs -o mod_jk.so -I../jk
-I/usr/jdk_base/include -I/usr/jdk_base/i
nclude/aix -c *.c ../jk/*.c

Compilation goes well, the link fails with:
ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
-bI:/backup/ofxsoftware/IHS1.3.12.1.bin/libexec/httpd.exp -lc -o mod_jk.so
jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o 
jk_nwmain.o
jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o
jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
ld: 0711-244 ERROR: No csects or exported symbols have been saved.

Can anyone tell me where I'm going wrong?

Does anyone have a prebuilt mod_jk.so for AIX?

Thanks
Rit

PS: I had no better luck with mod_jserv either. See my previous post about
HANDLER THREAD PROBLEM. Can't believe it's *this* difficult and frustrating
getting tomcat to work with Apache!



Re: mod_jk for AIX?

2000-11-27 Thread John Tangney

Hi

I too had immense problems building mod_jk. I am on Solaris, not AIX,
though. What finally worked for me was to hack the apxs file and modify the
$CFG_LD_SHLIB to be gcc and $CFG_LDFLAGS_SHLIB to -G

Both of these changes should not have been necessary had the configure
script for apache done the right thing. But it didn't.

You might try messing with the command line that apxs generates as a way to
diagnose what command line options are needed.

Good luck!
--johnt

On 11/27/00 7:50 AM, Ritwick Dhar at [EMAIL PROTECTED] wrote:

 Guys,
 
 I'm having immense difficulty building mod_jk on AIX 4.3.3. + IBM HTTP
 Server 1.3.12.1 + jdk1.1.8
 
 apxs command: 
 /backup/ofxsoftware/IHS1.3.12.1.bin/bin/apxs -o mod_jk.so -I../jk
 -I/usr/jdk_base/include -I/usr/jdk_base/i
 nclude/aix -c *.c ../jk/*.c
 
 Compilation goes well, the link fails with:
 ld -H512 -T512 -bhalt:4 -bM:SRE -bnoentry
 -bI:/backup/ofxsoftware/IHS1.3.12.1.bin/libexec/httpd.exp -lc -o mod_jk.so
 jk_worker.o jk_util.o jk_uri_worker_map.o jk_sockbuf.o jk_pool.o jk_nwmain.o
 jk_msg_buff.o jk_map.o jk_lb_worker.o jk_jni_worker.o jk_connect.o
 jk_ajp13_worker.o jk_ajp13.o jk_ajp12_worker.o mod_jk.o
 ld: 0711-244 ERROR: No csects or exported symbols have been saved.
 
 Can anyone tell me where I'm going wrong?
 
 Does anyone have a prebuilt mod_jk.so for AIX?
 
 Thanks
 Rit
 
 PS: I had no better luck with mod_jserv either. See my previous post about
 HANDLER THREAD PROBLEM. Can't believe it's *this* difficult and frustrating
 getting tomcat to work with Apache!




missing welcome file causes CPU intensive loop

2000-11-27 Thread Thom Park

Hello,

I've noticed some curious behavior with Tomcat 3.2.beta 8. It seems that if the
'global' welcome file (index.html) is missing  then Tomcat will drop into
a CPU extensive loop (on NT at least)  The easiest way to reproduct this is as
follows;

1. rename %TOMCAT_HOME%\webapps to %TOMCAT_HOME%\webapps_hidden.
2. start tomcat
3. use your browser of choice to connect to http://localhost:8080/

If you bring up the NT taskmanager you'll see that the tomcat JVM is running at or
close to 100% { unless you've a multi cpu system ;-) }

I would have expected a 404 or something similar as there's no file to serve.
Has anyone else noticed this behavior or can suggest where in the source to look for
a possible cause (I need to fix this).

I tried enabling the "suppress" option on the StaticHandler class but it didn't
change the behavior.

-Thom


"Craig R. McClanahan" wrote:

 Miles Daffin wrote:

  Craig,
 
  I was wondering if there is an optimal way of doing the following in TomCat?
  If you have the time to briefly describe such
 
  Thanks
 
  Miles
 
(I prefer to store global application
objects in
 the servlet context, so that they are easily visible to all servlets
  and
JSP
 pages in my apps).
 
  p.s. please would you cc any response to my address.

 Yes, it's easy in Tomcat (or any other servlet container that implements servlet
 2.2 or later).

 What I normally do is define a servlet to initialize my application resources,
 and declare it load-on-startup in the web.xml file (so that the time-consuming
 stuff happens when the server starts instead of on the first request).  As part
 of the init() method of this servlet, I store these resources as a servlet
 context attribute.

 For example, lets say you have a nice fancy connection pool object that you want
 to make available to the servlets and JSP pages of your application.  In the
 init() method of the startup servlet, you just need to do the following:

 ConnectionPool myPool = ... create the pool object ...
 getServletContext().setAttribute("pool", myPool);

 Now, any servlet in your application can acquire a reference to this pool in the
 doGet() or doPost() method:

 ConnectionPool thePool =
   (ConnectionPool) getServletContext().getAttribute("pool");

 Or, in a JSP page, you can access it like this:

 jsp:useBean id="pool" type="com.mycompany.ConnectionPool"
  scope="application"/

 Craig McClanahan




Re: passing parameters to a Servlet

2000-11-27 Thread Tony Keith

Christoph Kukulies wrote:

 I have some strings with blanks that I have to pass to a
 Servlet in the URL. How can I do that?

 --
 Chris Christoph P. U. Kukulies [EMAIL PROTECTED]

If you are trying to test your servlet by passing information through a
URL,
then try the following.

servletnameparameter1=this%20and%20 that

where a '%20' is a URL encoded space.

Hope this helps
--
Tony Keith




How to configure Tomcat to handle .html pages as .jsp pages?

2000-11-27 Thread Hu, Geoff

Hi, all,

Is it possible to configure Tomcat to handle .html files whic contains JSP
codes as .jsp files?
I'm using Apache 1.3.12 and Tomcat 3.1

Thanks for any help.

Geoff Hu




importing javax.mail.* from within JSP servlets

2000-11-27 Thread Giorgio Brajnik

Hi.

I'm trying to write a jsp that imports javax.mail.* but jasper complains 
with 
"Package javax.mail not found in import.
import javax.mail.*;"

I tried to put the i2ee.jar file almost everywhere, including

/tomcat/lib
my_application_context/lib
/usr/java/jdk1.3.0_01/lib/
in the classpath environment var used by tomcat.sh

What should I do?

Thanks a lot.

Giorgio Brajnik

-
I'm using Apache+tomcat on linux, but not the j2ee.



Re: Problem With Deployment of Web Application in Tomcat

2000-11-27 Thread Michael J. Suzio

The only way I know of to handle this is what the Cocoon install
documentation suggests -- renamed parser.jar to z_parser.jar so that it
comes *after* xml.jar in the automatically-generated classpath.

I am not sure if this introduces any possible errors, however... I also
haven't thought about it to any greater depth than that :-).

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Re: Need database recommendation

2000-11-27 Thread Derek DeMoro

Go with oracle.  You can't lose.

Derek

- Original Message -
From: "Ralph Einfeldt" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, November 24, 2000 8:58 AM
Subject: AW: Need database recommendation


The answer depends on your requirements:
- do you need
views
sub selects
outer joins (which versions)
transctions
- whats are the requirements in terms of
reliability (redundancy)
scalability (performance, datavolume)
- whats is your budget

Some of our expiriences
  mySQL
The last time we checked, transactions (or
to be more precise the interface to berkley
db) was alpha. I think this will take some
time to become a stable release. It is not
clear what this mean to the performance,
because I don't know any result with this
engine.
No views. I like to use views to hide some
complexities of the underlying db model.
No subselects. This is a very bad thing
for delete. You have do implement loops
where you normaly use sub selects.
  Sybase ASA
Cheapest full featered commercial RDBMS
for web applications.
Blobs are just 32K in the current release
(Although the documentation says something
different)
  Oracle
Quite expensive.
Never the less the db I made the best
experiences with.
  Interbase
Some nasty bugs with outer joins

  Cloudscape, InstantDB, Hypersonis SQL
All thre do not support views

 -Ursprüngliche Nachricht-
 Von: c cw288 [mailto:[EMAIL PROTECTED]]
 Gesendet: Mittwoch, 22. November 2000 21:00
 An: [EMAIL PROTECTED]
 Betreff: Need database recommendation


 Hi all,
 We are going to develop an application on apache + tomcat + mod_jk on
 Solaris 8, and we need a database for our application. There
 are lots of
 databases exit, we need some recommendation of which  is easier to
 implement.

 Thanks,

 Cathy
 __
 ___
 Get more from the Web.  FREE MSN Explorer download :
http://explorer.msn.com






Re: architecture document

2000-11-27 Thread Stefan Woithe

For the latter:

http://java.sun.com/products/servlet/download.html#specs

 Mahati wrote:
 
 hai all,
   any of u pl. help me. Where can i get a document related to architecture of
  tomcat .Also Can any of u give me the download url of Servlet specification 2.2
 
 thanx.

Stefan




File upload...

2000-11-27 Thread Servais, Pascal-Eric

Is there anybody who could tell me how to process a file upload from a html
form after the user has submitted the form ? I guess that the
HttpServletRequest is implied but I have no idea how.
 
Thanks for any hint.

Pascal-Eric Servais ( http://pages.infinit.net/denethor
http://pages.infinit.net/denethor  ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 




Re: architecture document

2000-11-27 Thread Craig R. McClanahan

For Tomcat 4.0, there are some basic diagrams and other information in the

catalina/docs/dev

and

jasper/doc/dev

directories of the "jakarta-tomcat-4.0" CVS repository.  You can download via
anonymous CVS, or grab nightly snapshots, as documented at
http://jakarta.apache.org.

Craig McClanahan


Mahati wrote:

 hai all,  any of u pl. help me. Where can i get a document related to
 architecture of tomcat .Also Can any of u give me the download url of Servlet
 specification 2.2 thanx.




Re: Using SSL CA certificates

2000-11-27 Thread Craig R. McClanahan

"Lacerda, Wellington (AFIS)" wrote:

 How can I use a C.A. real certificate with Tomcat SSL ? I want to add a test
 certificate from Verisign.
 Can you explain that with some detail, please ?


You are talking about a server certificate, right?  And running Tomcat
stand-alone?

The detailed steps are documented in comments in the "conf/server.xml" file for
whichever version of Tomcat you are using (3.2 or 4.0 only -- 3.1 doesn't
support SSL).  In particular, you will need to install the server certificate
using the command line tools included with JSSE 1.0.2 -- the user's guide that
comes with that package documents what is necessary.


 Many thanks,

 Wellington

Craig





Testing Tomcat

2000-11-27 Thread William Colls

I am sure this topic has been well covered else where but I'm having a
dumb day, and can't find a reference.

I have Apache installed, and working. I have tomcat installed, and I
think, working. What do I need to do to use the examples provided to
test my installation?

I know, very basic, but any help will be gratefully received.
--
/* == */

William E. Colls   Tel 613 591 0079
PROComputer SystemsFax 613 591 3924
67 Willow Glen Dr www.procomsys.com
Kanata  Ontario  Canada   PEG Member 1998051404

  Specialists in Progress Software development since 1985





about the file wrapper.properties

2000-11-27 Thread Irwin

this file is missing in tomcat 3.1 release for windows NT.

But it seems to be needed in order to register tomcat as a service




Re: importing javax.mail.* from within JSP servlets

2000-11-27 Thread Craig R. McClanahan

Giorgio Brajnik wrote:

 Hi.

 I'm trying to write a jsp that imports javax.mail.* but jasper complains
 with
 "Package javax.mail not found in import.
 import javax.mail.*;"

 I tried to put the i2ee.jar file almost everywhere, including


What is the "i2ee.jar" file, and what does it contain?  (You can find out, if
you're curious, by typing the following command):

jar tvf i2ee.jar

You need the "mail.jar" file from the JavaMail release, and the "activation.jar"
from the Java Activation Framework release, on your classpath.  You can get
these releases from http://java.sun.com/products/javamail.

Craig McClanahan





RE: File upload...

2000-11-27 Thread Josh Knowles

Check out the orielly package from Jason Hunter at www.servlets.com - it
will help solve file upload problems.

-Original Message-
From: Servais, Pascal-Eric [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 2:06 PM
To: '[EMAIL PROTECTED]'
Subject: File upload...


Is there anybody who could tell me how to process a file upload from a html
form after the user has submitted the form ? I guess that the
HttpServletRequest is implied but I have no idea how.
 
Thanks for any hint.

Pascal-Eric Servais ( http://pages.infinit.net/denethor
http://pages.infinit.net/denethor  ) 
Cognicase ( division Web )
--- 
PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
"Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 



RE: File upload...

2000-11-27 Thread Doug Pedley

To receive a file you have to use a multipart request which HttpServletRequest
doesn't support yet. Try the replacement from O'Reilly:
http://www.servlets.com/resources/com.oreilly.servlet/index.html

It's well documented and works great for me.

-d

 -Original Message-
 From: Servais, Pascal-Eric [mailto:[EMAIL PROTECTED]]
 Sent: Monday, November 27, 2000 2:06 PM
 To: '[EMAIL PROTECTED]'
 Subject: File upload...
 
 
 Is there anybody who could tell me how to process a file upload 
 from a html
 form after the user has submitted the form ? I guess that the
 HttpServletRequest is implied but I have no idea how.
  
 Thanks for any hint.
 
 Pascal-Eric Servais ( http://pages.infinit.net/denethor
 http://pages.infinit.net/denethor  ) 
 Cognicase ( division Web )
 --- 
 PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA 
 "Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme 
 


Re: File upload...

2000-11-27 Thread Steve Ruby


The response will be multipart mime format you will most likely want
some utils to parts the multipart format, this one works well for me:

http://www.servlets.com/resources/com.oreilly.servlet/index.html

you'll then do something like this:

// parse the content and put the file in default directory
multi = new MultipartRequest(data.getRequest(), uploaddir);

// get the other parameters like this
multi.getParameter("paramname");



"Servais, Pascal-Eric" wrote:
 
 Is there anybody who could tell me how to process a file upload from a html
 form after the user has submitted the form ? I guess that the
 HttpServletRequest is implied but I have no idea how.
 
 Thanks for any hint.
 
 Pascal-Eric Servais ( http://pages.infinit.net/denethor
 http://pages.infinit.net/denethor  )
 Cognicase ( division Web )
 ---
 PGP Fingerprint : 8D0C FB66 CAF0 B9B3 E925  8D2E 7BDB 1D47 DC0B 4AEA
 "Engagez-vous qu'ils disaient, vous allez voir du pays...", Anonyme



Re: is the sample Hello World servlet linked properly?

2000-11-27 Thread Craig R. McClanahan

Rob Leachman wrote:

 Doh. Someone asked and got an excellent answer to this issue just 4 days
 ago... so nevermind, I'm lame, I'll try to do better.

 Hey speaking of, I would like to contribute at least a little bit to the
 project. Tomcat provided the encouragement I needed to get CVS working,
 and while I certainly wouldn't want to take on a "committer" level... I
 spent quite a bit of time reading the http://jakarta.apache.org/guidelines
 but did not see how I could send in a patch (to the doc, for instance) for
 consideration.

 So, maybe that's a better topic to ask for a reply on? If I drafted an
 "improvement" to the doc, how would I submit it for review? Just blab it
 to the developer's mailing list? gulp


Yep :-)

Because the documentation is almost totally in text files of some sort, you can
submit patches to the docs the same way as you would for code patches -- by
including them (in the format defined on the Guidelines pages) in a mail message
to [EMAIL PROTECTED]  One of the existing committers can then
evaluate the suggestion and incorporate it as appropriate.

I wouldn't get too nervous about it -- we all started our involvement somewhere!

Craig McClanahan





RE: Problem With Deployment of Web Application in Tomcat

2000-11-27 Thread Vijayanand Sukumar

I was able to fix it if the type of loading is changed to static loading in
place of dynamic loading and having my xml.jar before the parser.jar in the
static classpath.

Thanks

VijayVijayanand Sukumar
Software Engineer
Manage.com
eManagement for eBusiness
www.manage.com
2345 North First St.,
San Jose, CA 95131
Tel: 408-944-1500 ext. 651
Fax: 408-944-1599
[EMAIL PROTECTED]

-Original Message-
From: Michael J. Suzio [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 12:58 PM
To: [EMAIL PROTECTED]
Subject: Re: Problem With Deployment of Web Application in Tomcat


The only way I know of to handle this is what the Cocoon install
documentation suggests -- renamed parser.jar to z_parser.jar so that it
comes *after* xml.jar in the automatically-generated classpath.

I am not sure if this introduces any possible errors, however... I also
haven't thought about it to any greater depth than that :-).

-- 
Michael J. Suzio
Lead Software Engineer -- ISS Southfield
[EMAIL PROTECTED]



Re: Need database recommendation

2000-11-27 Thread Scott Jones

Hi Cathy,

Oracle is a great DBMS; however, it is somewhat difficult to manage and
set-up if you are not a DBA.  You may also want to check out IBM's DB2,
which is less expensive, and (in my experience) faster and much easier to
develop an application around.  In addition, DB2 supports the SQL 92
standards to a greater degree with fewer proprietary "additions."  However,
with how much Oracle is used in our industry; many people consider them to
be the standard...

We had to port our application from DB2 6.1 to Oracle 8i, and saw about a
factor of 3 decrease in performance (on average).  Of course, none of us
were Oracle DBAs, but  with just the default settings DB2 performs at a
measurably higher level.  I know that an Oracle expert can tweak it to get
it running very quickly, but there is a reason that you pay those guys
$200-$300/hr.  As far as reliability and redundancy goes, DB2 runs 4 out of
the 5 largest databases in the world, so you're not going to be compromising
there...  :)

I am developing my current project using DB2 7.1  Tomcat; Everything is
working very nicely so far!  :)

Check out http://www-4.ibm.com/software/data/db2/udb/downloads.html for a
free download.

I don't have any experience with DB2 on Solaris; my current application runs
on Linux (and my previous experience was on NT).

Good Luck!

Scott

- Original Message -
From: "Derek DeMoro" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 11:42 AM
Subject: Re: Need database recommendation


 Go with oracle.  You can't lose.

 Derek

 - Original Message -
 From: "Ralph Einfeldt" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Friday, November 24, 2000 8:58 AM
 Subject: AW: Need database recommendation


 The answer depends on your requirements:
 - do you need
 views
 sub selects
 outer joins (which versions)
 transctions
 - whats are the requirements in terms of
 reliability (redundancy)
 scalability (performance, datavolume)
 - whats is your budget

 Some of our expiriences
   mySQL
 The last time we checked, transactions (or
 to be more precise the interface to berkley
 db) was alpha. I think this will take some
 time to become a stable release. It is not
 clear what this mean to the performance,
 because I don't know any result with this
 engine.
 No views. I like to use views to hide some
 complexities of the underlying db model.
 No subselects. This is a very bad thing
 for delete. You have do implement loops
 where you normaly use sub selects.
   Sybase ASA
 Cheapest full featered commercial RDBMS
 for web applications.
 Blobs are just 32K in the current release
 (Although the documentation says something
 different)
   Oracle
 Quite expensive.
 Never the less the db I made the best
 experiences with.
   Interbase
 Some nasty bugs with outer joins

   Cloudscape, InstantDB, Hypersonis SQL
 All thre do not support views

  -Ursprüngliche Nachricht-
  Von: c cw288 [mailto:[EMAIL PROTECTED]]
  Gesendet: Mittwoch, 22. November 2000 21:00
  An: [EMAIL PROTECTED]
  Betreff: Need database recommendation
 
 
  Hi all,
  We are going to develop an application on apache + tomcat + mod_jk on
  Solaris 8, and we need a database for our application. There
  are lots of
  databases exit, we need some recommendation of which  is easier to
  implement.
 
  Thanks,
 
  Cathy
  __
  ___
  Get more from the Web.  FREE MSN Explorer download :
 http://explorer.msn.com








Re: how do i recreate the user session after session timeout or server restart?

2000-11-27 Thread Dave Smith

Joakim,

It's easy to test for a live session (JSP code) :

 if(session == null) { response.sendRedirect("/logged-out.jsp"); return; }

You might want to read up on sessions and how to use them, for instance by
checking out Jason Hunter's book.
Obviously restarting the server destroys all current sessions...

Dave

- Original Message -
From: "Joakim Verona" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 8:00 AM
Subject: how do i recreate the user session after session timeout or server
restart?


 hello,

 i have an web-app which uses form login. This works well except when the
session times out or
 the server is restarted(due to a software update)

 the problem occurs when the user reloads a page from a no longer valid
session.
 tomcat then redirects the user properly to the form-login page.
 only problem, then, is that the user then is redirected to the original
page, which relies on a valid session.

 i could of course have the session initialization code in every page, but
this is error prone.
 is there some more elegant way, perhaps using some form of event handler?
(interceptor?)

 i think the basic problem is that i cant make the form-login system
actually do anything other
 than setting the username in the underlying session object.

 --
 Joakim Verona
 [EMAIL PROTECTED]
 http://www.verona.se/




Re: architecture document

2000-11-27 Thread Mahati

thank u stefan
- Original Message -
From: Stefan Woithe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, November 28, 2000 3:20 AM
Subject: Re: architecture document


 For the latter:

 http://java.sun.com/products/servlet/download.html#specs

  Mahati wrote:
 
  hai all,
any of u pl. help me. Where can i get a document related to
architecture of
   tomcat .Also Can any of u give me the download url of Servlet
specification 2.2
 
  thanx.

 Stefan




RE: Multipart stuff - inside JSP?

2000-11-27 Thread Josh Knowles

I dont know why you would want to do it in a jsp anyways - that kind of
stuff is what servlets are good for.

-Original Message-
From: Mike Kobe [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 28, 2000 10:36 AM
To: [EMAIL PROTECTED]
Subject: Re: Multipart stuff - inside JSP?


Hi,

I was looking at the multipart request handler from oreilly,
(www.servlets.com), is it possible to use the same class INSIDE jsp? I mean
in the declaration tags

%!

class MultipartRequest...

%


and then call it from there? This is giving me a hell lot of problems.
First, all the IMPORT tags in the class were giving me a problem, so I
removed all those, but now it gives me a problem with the "Hashtable" from
java.util.*, so I removed all of that, and the reference to all "Vectors"..

Now it doesnt work! ALways gives me the "premature ending" IOException..

Please help! Is there something that I cannot do inside the JSP declaration
tags? How to go around this?

Thanks!!!
Mike



RE: Tomcat - Fresh data not brought forward

2000-11-27 Thread Scott Hamilton

Hi,
I have developed an application that allows insert  update
of records in the database.The problem I am facing is when I insert
or update the record the inserted or updated record is not brought
forward.


Umm without more info, it sounds like the transaction hasn't
been committed or the new transaction is not really a new
transaction


Scott, Esq.


Thanks

Ann.
_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




RE: Tomcat issue - Fresh data not brought forward

2000-11-27 Thread ann patil

Hi,

Some more info:
1) I enter the record number to retrieve the record from the
database.
2) Transaction: If record exist should be brought forward and allow the user 
to update else new data entered.
3) Assume the record does not exist.
4) Screen with blank fields are displayed.
5) I enter data and press save.
6) Then I check the database if the record is really inserted.
7) SQL plus : Displays the inserted record.
8) Then I close the web browser and open it again.
9) Try to view the record inserted by entering the record number.
10)Displays the inserted record only if Tomcat server stoped and re-started 
else shows screen with blank fields(instance of earlier
blank screen before inserting the record)

Same happens when I try to update the record.

In other words only after I stop and re-start the Tomcat server
the latest data is displayed.

Transaction flow:

Enter record number
  |
if exist
  |
   --
   | |
No Yes
  |   |
Blank screen Inserted record is displayed
  |   |
Enter data   Update
  |   |
Save Save




Please help.


Thanks

Ann.


From: Scott Hamilton [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Tomcat - Fresh data not brought forward
Date: Tue, 28 Nov 2000 16:57:10 EST

 Hi,
 I have developed an application that allows insert  update
 of records in the database.The problem I am facing is when I insert
 or update the record the inserted or updated record is not brought
 forward.
 

 Umm without more info, it sounds like the transaction hasn't
 been committed or the new transaction is not really a new
 transaction


 Scott, Esq.

 
 Thanks
 
 Ann.
 
_
 Get more from the Web.  FREE MSN Explorer download : 
http://explorer.msn.com
 

_
Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




Re: Apache + Tomcat

2000-11-27 Thread carnell

Thanks!

- Original Message -
From: "Dominique BATARD" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; "C S Carnell" [EMAIL PROTECTED]
Sent: Monday, November 27, 2000 5:26 PM
Subject: Re: Apache + Tomcat


 In httpd.conf :

 IfModule mod_dir.c
 DirectoryIndex index.html index.jsp
 /IfModule

 Dom

 - Original Message -
 From: "carnell" [EMAIL PROTECTED]
 To: "Tomcat-user" [EMAIL PROTECTED]
 Sent: Monday, November 27, 2000 5:09 PM
 Subject: Apache + Tomcat


  Does anyone know how to make Apache/Tomcat automatically load up
index.jsp
  in a directory,
  instead of producing a directory listing? (port 80). I would like to
 server
  a JSP immediately, without a index.html.
 
  Craig.
 
 
 







Gatekeeper for TOMCAT. Where/Who is????

2000-11-27 Thread seidhi Help

Hi all,
I am not so conversant with the admin aspects of
TOMCAT. Is there a direct way to instruct TOMCAT to
shut-down any client request/communications when some
adverse conditions are detectd on the server.
Something like  a java app that handles requests
from clients is too busy or ran out of space and
requires some time to recover. I think such a
functionality should be available in other web-servers
as such Or should i tweak some entry point so that
i can have my own gatekeeper 

TIA,
--Seidhi

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



RE: HANDLER THREAD PROBLEM: Stream closed prematurely

2000-11-27 Thread Ranko Bijelonic

i still think its not the platform.  My stuff worked fine until I used a
version of Apache with ssl, then I got the same problem as you.  And
building mod_jserv from scratch did not help me either.  I had to 'apxs it
in'.  I don't know why it worked, or what it really did, but just rebuilding
mod_jserv.so and sticking it into libexec directory it did not work.  it had
to be apxs-ed for some reason :).  what do you mean apxs does not work
though?  what kind of errors do you get?  I think among other options you
have to say with EAPI also.

-Original Message-
From: Ritwick Dhar [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 10:42 AM
To: '[EMAIL PROTECTED]'
Subject: RE: HANDLER THREAD PROBLEM: Stream closed prematurely


Unfortunately, in my case, it doesn't work. The problem is compounded in my
case because my platform is AIX4.3.3 + IBM Apache 1.3.6.2 + Tomcat 3.1.
Something is seriously screwed up in this level of AIX.

apxs does not work. Period. No matter what I do.

I built IBM's version of apache from scratch with DSO support. Then I
downloaded Apache jServ and built that from scratch. This resulted in a new
mod_jserv.so. However, this one makes Apache core dump. So I'm back to
square one.

Can't believe its *this* difficult getting tomcat to run/build on AIX!!!



-Original Message-
From: Ranko Bijelonic [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 27, 2000 9:47 AM
To: [EMAIL PROTECTED]
Subject: RE: HANDLER THREAD PROBLEM: Stream closed prematurely


I had the exact same problem.  Nothing helped until I recompiled mod_jserv
using the apache apxs utility.
So recompile, and everything should be fine.

-Original Message-
From: Ritwick Dhar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 4:04 PM
To: '[EMAIL PROTECTED]'
Subject: RE: HANDLER THREAD PROBLEM: Stream closed prematurely


Update on this problem:

I simplified the client to simply POST a line of text and the server to
simply echo it back. The results seem to be:

The client can open an outputstream to a servlet and write to it, but a
close() or even a flush()
causes the stream to be shut down and the server prints the stacktrace for
an IOException. If the
stream is not flushed, however, the server proceeds without any input
whatsoever (contentlength = 0).

I tried this servlet on Jrun and WebSphere. Both work without a hitch.

I think this is starting to smell like a bug.

Thanks
Ritwick

-Original Message-
From: William Brogden [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 24, 2000 11:27 AM
To: [EMAIL PROTECTED]
Subject: Re: HANDLER THREAD PROBLEM: Stream closed prematurely


 Does your client close the stream that writes the request or
just flush it? I seem to recall having a problem similar to this
where the solution was to not close the client's output stream
until after the complete transaction.

Ritwick Dhar wrote:

 Hi,

 This problem is driving me nuts. I've tried debugging this, but nothing
yet.
 I was hoping someone on this list will have come accross this before.

 Case: I have a servlet (server) that accepts POST requests (content-type=
 application/x-ofx), and sends back a OFX response. I have another servlet
 (client), that opens a URL to the server, writes the request, and reads
the
 reponse. Simple.

 The problem is, the moment the client tries to call
 'urlConn.getInputStream()' to get an inputstream from the server, I get
this
 (on the server console):

 HANDLER THREAD PROBLEM: java.io.IOException: Stream closed prematurely
 java.io.IOException: Stream closed prematurely
 at java.lang.Throwable.init(Compiled Code)
 at java.lang.Exception.init(Compiled Code)
 at java.io.IOException.init(Compiled Code)
 at

org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Comp
 iled 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)

 What's really driving me up the wall is that this works perfectly fine
with
 Both WebSphere and JRun. Is this something particular to Tomcat??

 Thanks for all help

 Rit

--
WBB - [EMAIL PROTECTED]
Author of Java Developer's Guide to Servlets and JSP
ISBN 0-7821-2809-2