Re: log files in tomcat

2001-01-31 Thread Jason Pell

Perhaps we should take this as a suggested improvement to tomcat:

If they are present, then redirect System.out and System.err to these logfiles.

"Garmaev, Vladimir A" wrote:

> There should be two more logs:
>
> jvm.stderr
> jvm.stdout
>
> The latter is logging System.out.println


CPC Livelink Admin wrote:

> Actually, these are files that are generated by the jk_nt_service helper
> application, not entries in tomcat.
>
> If you want to capture the output of tomcat, you need to either a) redirect
> the output to a file (on Unix you also need to redirect stderr, on Windows
> stdout and stderr are much the same (I think)) or b) programatically change
> the stream pointed to by System.out and .err to something else which you
> have opened.
>
> -Original Message-
> From: Jason Pell [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 8:09 PM
> To: [EMAIL PROTECTED]
> Subject: Re: log files in tomcat
>
> I have also had problems with this.
>
> As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:
>
> - server.xml fragment
> ---
>  verbosityLevel = "DEBUG"
> path="logs/stderr.log"
> />
>
>  verbosityLevel = "DEBUG"
> path="logs/stdout.log"
> />
> - server.xml fragment
> ---
>
> But no joy I am afraid.  Is this the correct config info.
>
> I am running Tomcat 3.2.1 on Redhat 6.2
>
> Thanks
> Jason
>
> "Garmaev, Vladimir A" wrote:
>
> > There should be two more logs:
> >
> > jvm.stderr
> > jvm.stdout
> >
> > The latter is logging System.out.println
> >
> > -Original Message-
> > From: Ross Manges [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, January 31, 2001 1:44 PM
> > To: [EMAIL PROTECTED]
> > Subject: log files in tomcat
> >
> > Hello folks,
> >
> > I apologize in advance for this dumb question, but I'm
> > having an exteremly difficult time getting tomcat to
> > create a log file containing the event traces (and
> > possibly System.out.println()'s?) from my servlets.
> > I've read up on the available faq's and other
> > documentation, which directs me to the server.xml
> > file.  I've set that file to maximum debugging mode,
> > but still no luck.  I get two files in my /log
> > directory: jasper.log and servlet.log.  The latter
> > contains nearly nothing, and jasper.log simply reports
> > on my jsp files.
> >
> > Can somebody PLEASE point me in the right direction?
> > If I've missed some important set of documentation
> > please let me know.
> >
> > Thanks!
> >
> > --Ross
> >
> > p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
> > PIII-700, 128mb ram.
> >
> > __
> > Get personalized email addresses from Yahoo! Mail - only $35
> > a year!  http://personal.mail.yahoo.com/
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
> --
> Jason Pell
> Senior Analyst/Programmer - Web Developer
> Deakin Software Services Pty Ltd
> 12 Gheringhap St, Geelong Victoria 3220 Australia
> Phone: 03 5227 8858 International: +61 3 5227 8858
> Fax: 03 5227 8907 International: +61 3 5227 8907
> E-mail [EMAIL PROTECTED]
> http://www.dssonline.com.au
> Customer Support Hotline: 1800 620 497
>
> "Callista - the brightest solution in university management"
>
> ---
> Important Notice: The contents of this email transmission,
> including attachments, may be privileged and confidential.
> Any unauthorised use of the contents is expressly prohibited.
> If you have received this transmission in error, please advise
> the sender by return email or telephone immediately and
> destroy all versions.
> ---
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this em

RE: Disable Apache connector on port 8007

2001-01-31 Thread Randy Layman


You probably don't want to disable port 8007 - that's the port used
by the Shutdown process to kill Tomcat cleanly.  You probably just want to
edit your server.xml file to change 8007 to something else (8081 perhaps?).
If you do really want to remove it, either remove or comment out the lines
in the server.xml file for the connector with the handler of
Ajp12ConnectionHandler.  It should look something like:





Randy

-Original Message-
From: Chris Janicki [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 4:15 PM
To: [EMAIL PROTECTED]
Subject: Disable Apache connector on port 8007


I'm using Tomcat 3.1 for some JSP development work, without Apache.  
Starting up Tomcat is conflicting with other software (an unrelated 
Apache/JSP engine) running on the same machine, so I want to disable the 
server on port 8007. It's mostly just an annoyance, but I also don't want 
to steal the port if it becomes temporarily available.

I've read the 3.1 docs but can't see how to gracefully disable that 
service.  Any ideas?

Thanks,
Chris

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

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




Where to Strore bean in Tomcat

2001-01-31 Thread dsd dsd

Hello 

  my application directory is purejsp here i am 
keeping my jsp files. I created 2 more dirctories 
Web-inf under that one more direcory called classes 
here i am keeping my servlet class file. Now please
tell me where should i keep a bean (Package) that is
used by both jsp and servlet file.

with regards
kiran   



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

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




RE: boggling problem with jsp

2001-01-31 Thread SUCHETA LELE

Hi I am having exactly the same problem. But I didn't understand what you 
said. So, pls explain. I have say and add page, i post to the same page and 
do my insert and then redirect to a confirmation page. But I get the output 
of a javascript(.html) file that i had included in my add page, then the 
whole add page(*now blank) and then HTTP 200 OK__ response 
and then the contents of the confirm page . This does not happen when my 
proxy settings are enabled in the browser and i have an internet connection 
thru a proxy. But when disab;led, this does happen.
Please Help also, how to make a directory URL protected?

Please, i am spending a lot of time on this. If you know, please reply 
immediately.
Thanks,
Sucheta


>From: "Kotturi, Rajendra" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: boggling problem with jsp
>Date: Wed, 31 Jan 2001 10:29:23 -0800
>
>You are getting the next page appended to the same page because you may be
>using the same response object as the previous screen. So the response is
>sent/appended to the same page.
>
>-Original Message-
>From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, January 31, 2001 9:26 AM
>To: Jakarta Tomcat List
>Subject: boggling problem with jsp
>
>
>I am getting some really strange side effects with one of my jsp pages.
>I have a log-in page for a site I am working on, simple log-in, just type
>in your email address and password, click submit.  The log-in is working
>fine but for some reason the next page is not getting loaded into the
>browser properly every time, it is actually being appended to the bottom
>of the log-in page:
>
>...
>
>
>
>
>
>HTTP/1.1 200
>Date: Wed, 31 Jan 2001 15:58:12 GMT
>Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
>Keep-Alive: timeout=15, max=99
>Connection: Keep-Alive
>Transfer-Encoding: chunked
>Content-Type: text/html; charset=ISO-8859-1
>
>4
>
>
>
>c01
>
>
>
>
>...
>
>I can't seem to get this to happen in Netscape but it isn't a consistant
>thing in IE so I am quite confused as to where to look next.  It seems
>almost like some sort of memory buffer for tomcat isn't getting cleared
>properly and I am getting the old with the new or something...any
>suggestions?  Should I maybe take this to the tomcat-developer list?
>
>--
>Thomas Bartels
>aka Blossoms the Tact Rat
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Redirecting and Broken Streams with Tomcat under IIS

2001-01-31 Thread Daniel Noelpp

Hello Web Developers!

I found out that redirects (response.sendRedirect()) don't
always work with Tomcat started from IIS. Sometimes contents
of the two JSP pages get mixed up, sometimes IIS just hangs.
The hang happens when we are using file upload (using
jspSmartUpload) and redirecting. Sometimes adding return;
after a redirect() helps as a work-around.

In an other part of the web application there is some broken
stream detection to cancel some operations when the web app
user prematurely disconnects (catching an IOException
flushing the response buffer: response.flushBuffer() and
cancelling the rest of the operation when an exception
occurs). This detection doesn't work anymore running under
IIS.

Does someone of you know of such issues with IIS?

We are using IIS 5 on Windows NT 4 and the ISAPI redirector
from Jakarta. The Tomcat worker uses ajp12 (out of process).

Daniel Noelpp


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




RE: How to prevent a .jsp from being accessed directly?

2001-01-31 Thread Michael Molloy

Bob, I thought I had tried all combinations, but I apparently I had tried
them all except the right one. Thanks for your help.

--Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:50 PM
To: [EMAIL PROTECTED]
Subject: RE: How to prevent a .jsp from being accessed directly?


Don't include the www in your url-pattern rather if you directory
structure is

Tomcat
|
 -- webapps
   |
-- mywebapp
  |
 -- jsps
selectroster.jsp
another.jsp
another2.jsp

you would include /jsps/selectroster.jsp

What version of tomcat are you using? What is your environment?

Bob

-Original Message-
From: Michael Molloy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:44 PM
To: [EMAIL PROTECTED]
Subject: RE: How to prevent a .jsp from being accessed directly?


I've tried several variations, from your suggestion below to including the
entire url (www. . . .).

I'll take another look at it.

Thanks
--Michael

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 30, 2001 4:29 PM
To: [EMAIL PROTECTED]
Subject: RE: How to prevent a .jsp from being accessed directly?


You may want to try setting the url pattern relative to the root i.e.
/dir1/subdir1/selectroster.jsp

Bob

-Original Message-
From: Michael Molloy [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 29, 2001 7:41 PM
To: Tomcat
Subject: How to prevent a .jsp from being accessed directly?


I'm using the following web.xml file inside a servlet context
(/opt/tomcat/webapps/staging/WEB-INF/web.xml). However, it's not preventing
direct access to the jsp file, which is what I'm hoping to achieve. I got
this from the O'Reilly Javaserver Pages book, but it's not working. Any
suggestions?

Thanks
--Michael



RosterServlet
RosterServlet
1



RosterServlet
/process



no-access
selectroster.jsp


nobody





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

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



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

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



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




RE: log files in tomcat

2001-01-31 Thread CPC Livelink Admin


Actually, these are files that are generated by the jk_nt_service helper
application, not entries in tomcat.

If you want to capture the output of tomcat, you need to either a) redirect
the output to a file (on Unix you also need to redirect stderr, on Windows
stdout and stderr are much the same (I think)) or b) programatically change
the stream pointed to by System.out and .err to something else which you
have opened.


-Original Message-
From: Jason Pell [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 8:09 PM
To: [EMAIL PROTECTED]
Subject: Re: log files in tomcat


I have also had problems with this.

As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:

- server.xml fragment
---



- server.xml fragment
---

But no joy I am afraid.  Is this the correct config info.

I am running Tomcat 3.2.1 on Redhat 6.2

Thanks
Jason

"Garmaev, Vladimir A" wrote:

> There should be two more logs:
>
> jvm.stderr
> jvm.stdout
>
> The latter is logging System.out.println
>
> -Original Message-
> From: Ross Manges [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: log files in tomcat
>
> Hello folks,
>
> I apologize in advance for this dumb question, but I'm
> having an exteremly difficult time getting tomcat to
> create a log file containing the event traces (and
> possibly System.out.println()'s?) from my servlets.
> I've read up on the available faq's and other
> documentation, which directs me to the server.xml
> file.  I've set that file to maximum debugging mode,
> but still no luck.  I get two files in my /log
> directory: jasper.log and servlet.log.  The latter
> contains nearly nothing, and jasper.log simply reports
> on my jsp files.
>
> Can somebody PLEASE point me in the right direction?
> If I've missed some important set of documentation
> please let me know.
>
> Thanks!
>
> --Ross
>
> p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
> PIII-700, 128mb ram.
>
> __
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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



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




Wanted help for Linux Platform.......

2001-01-31 Thread Jaydeep Shah



Hello Sir,
   I am working on java mostly jsp & 
servlet.
   now my requirment is to work on linux 
platform so can u plesase give me
   information about all setting of 
tomcat & apache webserver for linux   
   platform.
 
 Thank you very much
 
   Jaydeep 
shah


RE: Wanted help for Linux Platform.......

2001-01-31 Thread James Diggans

> Hello,
> If U R working with Debian GNU/Linux, I can help U 2 some
extent.
> - Original Message -
>I am working on java mostly jsp & servlet.
>now my requirment is to work on linux platform so can u plesase
give me
>information about all setting of tomcat & apache webserver for
linux
>platform.
> Regards
> Nagappan

If you're looking to work on linux, all the docs you should need to
get Tomcat/Apache setup should be availible at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/index.html

Installation should be pretty straight-forward.
- jc

--
--
James C. Diggans
Excelsior Technologies, Inc.   At what point did we stop
[EMAIL PROTECTED] being citizens and start
http://www.excelsior-web.com   being mere 'consumers'?
--
--

-Original Message-
From: nagappan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 01, 2001 12:55 AM
To: [EMAIL PROTECTED]
Cc: Jaydeep Shah
Subject: Re: Wanted help for Linux Platform...




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




46 java threads???

2001-01-31 Thread James Diggans

I have tomcat running through mod_jk along with Apache. When tomcat is
launched it does so flawlessly but launches FORTY SIX 'java' threads,
each taking ~10MB of what gtop declares 'resident' memory (yes, 460MB
total). Now I realize these are probably sharing a memory space (since
I dont HAVE 460MB of RAM or swap) but is there a reason it's starting
46 threads? And can anyone tell me where I can configure this? It
seems .. high.

Regards,
- j

--
--
James C. Diggans
Excelsior Technologies, Inc.   At what point did we stop
[EMAIL PROTECTED] being citizens and start
http://www.excelsior-web.com   being mere 'consumers'?
--
--


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




[more on] Re: log files in tomcat

2001-01-31 Thread Ross Manges
 Hi,
That sounds like a great idea.  Could someone please tell me how to re-direct stderr and stout to a log file?  I have set every log file in the server.xml file to "DEBUG" but I still don't see the System.out.println() messages anywhere.  They don't even show up on the server console.  Your help is greatly appreciated!  I'm running tomcat 3.2.1 on WinMe (I've had the same behavior under Win98 if that helps).
--Ross
  Jason Pell <[EMAIL PROTECTED]> wrote: 
Perhaps we should take this as a suggested improvement to tomcat:If they are present, then redirect System.out and System.err to these logfiles."Garmaev, Vladimir A" wrote:> There should be two more logs:>> jvm.stderr> jvm.stdout>> The latter is logging System.out.printlnCPC Livelink Admin wrote:> Actually, these are files that are generated by the jk_nt_service helper> application, not entries in tomcat.>> If you want to capture the output of tomcat, you need to either a) redirect> the output to a file (on Unix you also need to redirect stderr, on Windows> stdout and stderr are much the same (I think)) or b) programatically change> the stream pointed to by System.out and .err to something else which you> have opened.>> -Original Message-> From: Jason Pell [mailto:[EMAIL PROTECTED]]> Sent: Wednesday, January 31, 2001 8:09 PM> To: [EMAIL PROTECTED]> Subject: Re: log files in tomcat>> I have also had problems with this.>> As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:>> - server.xml fragment> ---> > verbosityLevel = "DEBUG"> path="logs/stderr.log"> />>> > verbosityLevel = "DEBUG"> path="logs/stdout.log"> />> - server.xml fragment> --->> But no joy I am afraid. Is this the correct config info.>> I am running Tomcat 3.2.1 on Redhat 6.2>> Thanks> Jason>> "Garmaev, Vladimir A" wrote:>> > There should be two more logs:> >> > jvm.stderr> > jvm.stdout> >> > The latter is logging System.out.println> >> > -Original Message-> > From: Ross Manges [mailto:[EMAIL PROTECTED]]> > Sent: Wednesday, January 31, 2001 1:44 PM> > To: [EMAIL PROTECTED]> > Subject: log files in tomcat> >> > Hello folks,> >> > I apologize in advance for this dumb question, but I'm> > having an exteremly difficult time getting tomcat to> > create a log file containing the event traces (and> > possibly System.out.println()'s?) from my servlets.> > I've read up on the available faq's and other> > documentation, which directs me to the server.xml> > file. I've set that file to maximum debugging mode,> > but still no luck. I get two files in my /log> > directory: jasper.log and servlet.log. The latter> > contains nearly nothing, and jasper.log simply reports> > on my jsp files.> >> > Can somebody PLEASE point me in the right direction?> > If I've missed some important set of documentation> > please let me know.> >> > Thanks!> >> > --Ross> >> > p.s. - I'm running tomcat 3.2.1 standalone on WinMe,> > PIII-700, 128mb ram.> >> > __> > Get personalized email addresses from Yahoo! Mail - only $35> > a year! http://personal.mail.yahoo.com/> >> > -> > To unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, email: [EMAIL PROTECTED]> >> > -> > To unsubscribe, e-mail: [EMAIL PROTECTED]> > For additional commands, email: [EMAIL PROTECTED]>> --> Jason Pell> Senior Analyst/Programmer - Web Developer> Deakin Software Services Pty Ltd> 12 Gheringhap St, Geelong Victoria 3220 Australia> Phone: 03 5227 8858 International: +61 3 5227 8858> Fax: 03 5227 8907 International: +61 3 5227 8907> E-mail [EMAIL PROTECTED]> http://www.dssonline.com.au> Customer Support Hotline: 1800 620 497>> "Callista - the brightest solution in university management">> ---> Important Notice: The contents of this email transmission,> including attachments, may be privileged and confidential.> Any unauthorised use of the contents is expressly prohibited.> If you have received this transmission in error, please advise> the sender by return email or telephone immediately and> destroy all versions.> --->> -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, email: [EMAIL PROTECTED]>> -> To unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, email: [EMAIL PROTECTED]--Jason PellSenior Analyst/Programmer - Web DeveloperDeakin Software Services Pty Ltd12 Gheringhap St, Geelong Victoria 3220 AustraliaPhone: 03 5227 8858 International: +61 3 5227 8858Fax: 03 5227 8907 International: +61 3 5227 8907E-m

RE: install problem

2001-01-31 Thread Anthony Ikeda

Are you able to post the JSP with the error?

Cheers,
Anthony Ikeda,
Web Application Developer,
Proxima Technology,

Level 13,
181 Miller Street,
North Sydney
Australia


PH: +612-9458-1718
Mob: 041 624 5143


> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, 1 February 2001 10:13 AM
> To: [EMAIL PROTECTED]
> Subject: install problem
> 
> 
> I install the Tomcat 3.2.1. Through the default index.html 
> page, I try to run
> the jsp examples. It seems running servlet well. But it got 
> problem when loading
> jsp file. I guess that classpath something wrong. 
> 
> Your advice is greatly appreciated.
> Peter
> 
> 
> Location: /examples/jsp/num/numguess.jsp
> Internal Servlet Error:
> org.apache.jasper.JasperException: Unable to compile class for JSP
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> at javax.servlet.ServletException.(Compiled Code)
> ...
> Root cause: 
> java.lang.IllegalArgumentException: Unknown argument
> at java.lang.Throwable.(Compiled Code)
> at java.lang.Exception.(Compiled Code)
> ...
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: log files in tomcat

2001-01-31 Thread Ignacio J. Ortega

The solution it's on server.xml file it self, here it's an excerpt...

8<--



8<--


So to get tomcat screen logged into a file change the Logger element for
the "tc_log" log in server.xml to this:

8<--


8<--


Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Ross Manges [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 31 de enero de 2001 20:44
> Para: [EMAIL PROTECTED]
> Asunto: log files in tomcat
> 
> 
> Hello folks,
> 
> I apologize in advance for this dumb question, but I'm
> having an exteremly difficult time getting tomcat to
> create a log file containing the event traces (and
> possibly System.out.println()'s?) from my servlets. 
> I've read up on the available faq's and other
> documentation, which directs me to the server.xml
> file.  I've set that file to maximum debugging mode,
> but still no luck.  I get two files in my /log
> directory: jasper.log and servlet.log.  The latter
> contains nearly nothing, and jasper.log simply reports
> on my jsp files.
> 
> Can somebody PLEASE point me in the right direction? 
> If I've missed some important set of documentation
> please let me know.
> 
> Thanks!
> 
> --Ross
> 
> p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
> PIII-700, 128mb ram.
> 
> __
> Get personalized email addresses from Yahoo! Mail - only $35 
> a year!  http://personal.mail.yahoo.com/
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 

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




Re: log files in tomcat

2001-01-31 Thread Jason Pell

I have also had problems with this.

As suggested I tried adding jvm.stderr and jvm.stdout logs to server.xml:

- server.xml fragment
---



- server.xml fragment
---

But no joy I am afraid.  Is this the correct config info.

I am running Tomcat 3.2.1 on Redhat 6.2

Thanks
Jason

"Garmaev, Vladimir A" wrote:

> There should be two more logs:
>
> jvm.stderr
> jvm.stdout
>
> The latter is logging System.out.println
>
> -Original Message-
> From: Ross Manges [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 1:44 PM
> To: [EMAIL PROTECTED]
> Subject: log files in tomcat
>
> Hello folks,
>
> I apologize in advance for this dumb question, but I'm
> having an exteremly difficult time getting tomcat to
> create a log file containing the event traces (and
> possibly System.out.println()'s?) from my servlets.
> I've read up on the available faq's and other
> documentation, which directs me to the server.xml
> file.  I've set that file to maximum debugging mode,
> but still no luck.  I get two files in my /log
> directory: jasper.log and servlet.log.  The latter
> contains nearly nothing, and jasper.log simply reports
> on my jsp files.
>
> Can somebody PLEASE point me in the right direction?
> If I've missed some important set of documentation
> please let me know.
>
> Thanks!
>
> --Ross
>
> p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
> PIII-700, 128mb ram.
>
> __
> Get personalized email addresses from Yahoo! Mail - only $35
> a year!  http://personal.mail.yahoo.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Jason Pell
Senior Analyst/Programmer - Web Developer
Deakin Software Services Pty Ltd
12 Gheringhap St, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail [EMAIL PROTECTED]
http://www.dssonline.com.au
Customer Support Hotline: 1800 620 497

"Callista - the brightest solution in university management"

---
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---



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




tomcat and weblogic

2001-01-31 Thread John Smith

Anyone out there using tomcat with weblogic instead of weblogic's own 
servlet engine?

Any advice or issues that might be helpful to consider as I evalute this 
possibility?


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


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




RE: Disable Apache connector on port 8007

2001-01-31 Thread Chris Janicki

Thanks Randy (and Stefan),

I commented out those lines you listed and got the desired effect.  I 
think I have the shutdown covered... I have Tomcat running within my 
app's JVM, so I shut it down via:

  String[] args = { "-stop" };
  org.apache.tomcat.startup.Tomcat.main(args);

That seems to work for me.  I'm assuming that's a safe enough shutdown... 
(let me know if I'm off base).

Thanks again,
Chris


>> Original Message <<

On 1/31/01, 3:55:23 PM, Randy Layman <[EMAIL PROTECTED]> wrote 
regarding RE: Disable Apache connector on port 8007:


>   You probably don't want to disable port 8007 - that's the port used
> by the Shutdown process to kill Tomcat cleanly.  You probably just want 
to
> edit your server.xml file to change 8007 to something else (8081 
perhaps?).
> If you do really want to remove it, either remove or comment out the 
lines
> in the server.xml file for the connector with the handler of
> Ajp12ConnectionHandler.  It should look something like:
> 
>   
>   
> 

>   Randy

> -Original Message-
> From: Chris Janicki [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, January 31, 2001 4:15 PM
> To: [EMAIL PROTECTED]
> Subject: Disable Apache connector on port 8007


> I'm using Tomcat 3.1 for some JSP development work, without Apache.
> Starting up Tomcat is conflicting with other software (an unrelated
> Apache/JSP engine) running on the same machine, so I want to disable the
> server on port 8007. It's mostly just an annoyance, but I also don't want
> to steal the port if it becomes temporarily available.

> I've read the 3.1 docs but can't see how to gracefully disable that
> service.  Any ideas?

> Thanks,
> Chris

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

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

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




RE: REPOST : extracting jsp filename from generated class

2001-01-31 Thread Stefan Langer

I have some problems with understanding your question:

What do you mean the name of the jsp-page? Do you mean the title you give that page? 
Or do you mean the name of the actual class that gets generated? It might help if you 
could explain (as far as possible) why you intend to get the name!

Stefan




Re: log files in tomcat

2001-01-31 Thread Shahed Ali

I have modified my tomcat.sh/bat file
to have
java org.apache.whatever.tomcat start 1>/path/to/logs/stdout.log 2>&1

So when you startup tomcat , the stdout and stderr go to a file.

But since you are using windows, I am not very sure about the syntax.

just a > file.log may redirect both System.out.println and
System.err.println to
the same file.

Hope this helps
Regards
Shahed.


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




Disable Apache connector on port 8007

2001-01-31 Thread Chris Janicki

I'm using Tomcat 3.1 for some JSP development work, without Apache.  
Starting up Tomcat is conflicting with other software (an unrelated 
Apache/JSP engine) running on the same machine, so I want to disable the 
server on port 8007. It's mostly just an annoyance, but I also don't want 
to steal the port if it becomes temporarily available.

I've read the 3.1 docs but can't see how to gracefully disable that 
service.  Any ideas?

Thanks,
Chris

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




help getting tomcat 4.0 (catalina) running ?

2001-01-31 Thread Grobe, Gary

#1. ~/build/catalina.sh start : puts the following msg in the
~/logs/catalina.out file.

Exception during startup processing
java.lang.reflect.InvocationTargetException:
javax.xml.parsers.FactoryConfigurationError:
com.sun.xml.parser.SAXParserFactoryImpl
   at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
   at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:595)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:176)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:157)

#2. The build process cannot find/does not create the ~/logs dir, so
start-up is aborted (mkdir logs fixes this).

#3. ~/build/catalina.sh debug : does start catalina, but going to
localhost:8080 still results in a 'server not found' page.

#4. i setup tomcat-4.0 according to the following link:
http://jakarta.apache.org/tomcat/jakarta-tomcat-4.0/catalina/docs/dev/buildi
ng.html

do i need to do anything to the apache httpd.conf file or do anything to
make this work? am i missing something?

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




REPOST : extracting jsp filename from generated class

2001-01-31 Thread Shahed Ali

Hi all,

Sorry for this repost.

>From within a jsp page, I need to know the name of the jsp page.

If I do a <%=this.getClass()%>, I get a string which represents the class
name
of the generated servlet.

Is there some standard way in which I can extract the jsp page from that
name ?

Another Qs :- How does Tomcat know that a certain jsp page maps to
a certain class ?.
If I can access that data, then I can possibly lookup the pagename.

Any clues ?

Thanks
Shahed.


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




RE: Disable Apache connector on port 8007

2001-01-31 Thread Stefan Langer

You shouldn't disable the Ajp12 Connector on 8007 because it is used to shutdown 
Tomcat. 

Stefan




Tomcat 3.2.1 does not shutdown

2001-01-31 Thread Frank Signorelli

I am using jakarta-tomcat-3.2.1 with Apache on HP-UX 11.00
running the HP-UX Development Kit for Java and the HP-UX
Runtime Environment for Java that come with HP-UX 11.00.

When I run the shutdown script, $TOMCAT_HOME/bin/shutdown.sh,
it says that Tomcat has shutdown but Tomcat is still running as
seen by the output of the ps command:

# ps -ef | grep tomcat
root 20278 1 26 15:06:25 ttyp2 0:17
/opt/java/bin/PA_RISC/native_threads/java -Dtomcat.home=/opt

Running the shutdown script several more times (typically, a total
of 3 times) does shutdown Tomcat.

Why doesn't Tomcat shutdown the first time the shutdown
script is executed?

By the way, when I install jakarta-tomcat-3.2.1 in the same environment,
the shutdown script shuts down Tomcat the first time and every time.


Frank
---
Frank L. Signorelli   
Senior Member of Tech. Staff  Telesciences, Inc.
Telephone: +1.866.1000 x3207  2000 Midlantic Drive
  Suite 410
  Mt Laurel, NJ 08054


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




keytool error: KeyPairGenerator not available

2001-01-31 Thread Lijia Xu

Hi,

When I tried to configure tomcat to work with apache-ssl, I followed the
instruction in server.xml to generate a server certificate. When I run the
command "keytool -genkey -alias tomcat -keyalg RSA", it gives me the above
error. Does anyone know how to solve this?

Thanks,

Lijia Xu
(703) 796-5065 (O)


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




Re: JDK 1.3 - Tomcat 3.2

2001-01-31 Thread Geoff Lane

I use the IBM 1.3 JDK on Linux and the Sun 1.3 JDK on Solaris. Both of
them work well with no Tomcat specific issues. You'll need to make other
code changes to get up to date with any deprecated APIs, but that's not
too difficult.

The only issue that I found was the Sun JDK on Solaris was not getting a
default encoding, so it was not handlin non-ASCII characters in a Cipher
method that we have. This was fixed by setting LANG=en_US before
starting Tomcat. But this was specific to this JDK/OS and had nothing to
do with Tomcat actually.

J2EE User wrote:
> 
> Friends:
> Our application works great with JDK 1.2.2 and Tomcat 3.2
> 
> Does any one know any issues if we upgrade to JDK 1.3
> 
> I know of one issue where the Tomcat 3.2 with not work as a service in Win
> NT with JDK 1.3
> Are there any other issues
> 
> Best Regards
> J2EE User
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

-- 

Geoff Lane <[EMAIL PROTECTED]>
(650) 969-5000 x104

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




RE: log files in tomcat

2001-01-31 Thread Garmaev, Vladimir A

There should be two more logs:

jvm.stderr
jvm.stdout

The latter is logging System.out.println


-Original Message-
From: Ross Manges [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 1:44 PM
To: [EMAIL PROTECTED]
Subject: log files in tomcat


Hello folks,

I apologize in advance for this dumb question, but I'm
having an exteremly difficult time getting tomcat to
create a log file containing the event traces (and
possibly System.out.println()'s?) from my servlets. 
I've read up on the available faq's and other
documentation, which directs me to the server.xml
file.  I've set that file to maximum debugging mode,
but still no luck.  I get two files in my /log
directory: jasper.log and servlet.log.  The latter
contains nearly nothing, and jasper.log simply reports
on my jsp files.

Can somebody PLEASE point me in the right direction? 
If I've missed some important set of documentation
please let me know.

Thanks!

--Ross

p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
PIII-700, 128mb ram.

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

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

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




RE: Q: Request Dispatching with Cookies Turn Off?

2001-01-31 Thread Nathan N. Vuong

All,

Continuation.  

I've tested the following:
   RequestDispatcher rd = 
 request.getRequestDispatcher(response.encodeURL("/register.html"));
   rd.forward(request, response);
With Cookies turned on, works fine.  With Cookies turned off and with 
encodeURL, the receiving servlet still generated a new session id.

Bottomline it did not work.  As for the second method
   getServletContext().getNamedDispatcher(servlet name)
I really don't know how to proceed.

Regards,
Nathan Vuong
email: [EMAIL PROTECTED]

-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 12:21 PM
To: [EMAIL PROTECTED]
Subject: Re: Q: Request Dispatching with Cookies Turn Off?


Nathan N. Vuong typed the following on 09:33 AM 1/31/2001 -0500
>Would like to know how to maintain single Session with 
>Cookies turn off on the browser with request dispatching:
>
>  1) request.getRequestDispatcher(URL)
>  2) getServletContext().getNamedDispatcher(servlet name)
>
>My first thought is to encodeURL() for 
> request.getRequestDispatcher(encodeURL(URL)), I'll try 
>this method.  But as for second method I'm stumped.

I haven't tested this, but I don't think you have to worry about the
session ID in either case. If you call forward() or include() your servlet
will be invoked before the request is finished, so Tomcat should have the 
session readily available. Have you tested code and found that the
session isn't available to the included or forwarded resource? Let
us know if you test it and I'm wrong.

Kief


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



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




log files in tomcat

2001-01-31 Thread Ross Manges

Hello folks,

I apologize in advance for this dumb question, but I'm
having an exteremly difficult time getting tomcat to
create a log file containing the event traces (and
possibly System.out.println()'s?) from my servlets. 
I've read up on the available faq's and other
documentation, which directs me to the server.xml
file.  I've set that file to maximum debugging mode,
but still no luck.  I get two files in my /log
directory: jasper.log and servlet.log.  The latter
contains nearly nothing, and jasper.log simply reports
on my jsp files.

Can somebody PLEASE point me in the right direction? 
If I've missed some important set of documentation
please let me know.

Thanks!

--Ross

p.s. - I'm running tomcat 3.2.1 standalone on WinMe,
PIII-700, 128mb ram.

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

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




Tomcat + Apache under Mandrake

2001-01-31 Thread Tong Sun

Hi,

I managed to get Tomcat + Apache working under RH6.2 using mod_jk, which
means that all static pages are served by Apache (port 80), yet all
servlets and JSPs are forward to Tomcat by Apache to port 8080. 

Then I tried the same steps under Mandrake. Everything works find execpt
that Apache still insists serving the servlets and JSPs itself, without
forwarding them to Tomcat (port 8080). The result is that jsp are
display as plain text and servlets are not found. 

I asked the (only) friend who know the Tomcat, servlets and JSPs, and he
is having the same problem as mine. 

Has any of you met with the same problem? If not, please tell me what
kind of tools and steps should I take to nail down what is wrong? (I
tried to see if the communication between Tomcat and Apache using
netstate, but it seems to me now that it is not the right tool).

Thanks a lot for your help. 

and please CC me a copy whenever you reply, 'cause I'm subscribing in
digest mode. Thanks

-- 
SUN, Tong

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




RE: boggling problem with jsp

2001-01-31 Thread Sam Palanisamy

Hi,

I also experienced similar problems when I tried to move our web application
from Tomcat 3.2 environment to Tomcat 4.0. Try setting "Connection:close"
header in your response, like

response.setHeader("Connection","close");

This will force Tomcat 4.0 (HTTP 1.1 webserver) to behave like HTTP 1.0
(Tomcat 3.2). This will force IE to treat Tomcat4 like a HTTP 1.0 server,
hence it will *not* try to use a persistent connection.

This worked for me. Also, if you are using
response.sendRedirect("somepage.jsp") in your code, make sure you follow it
with a return statement, like

response.sendRedirect("somepage.jsp");
return;

This will make sure that "no more output" gets written to the response
stream after calling sendRedirect().

sam...


-Original Message-
From: Marty McKeever [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 10:25 AM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: boggling problem with jsp


We've been getting the same behavior using the Tomcat4 beta.
 From our experience this only happens using Internet Explorer (all is good 
in netscape) and is somehow related to the Persistent Connection features 
of IE.


At 12:25 PM 1/31/01 -0500, you wrote:
>I am getting some really strange side effects with one of my jsp pages.
>I have a log-in page for a site I am working on, simple log-in, just type
>in your email address and password, click submit.  The log-in is working
>fine but for some reason the next page is not getting loaded into the
>browser properly every time, it is actually being appended to the bottom
>of the log-in page:
>
>...
>
>
>
>
>
>HTTP/1.1 200
>Date: Wed, 31 Jan 2001 15:58:12 GMT
>Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
>Keep-Alive: timeout=15, max=99
>Connection: Keep-Alive
>Transfer-Encoding: chunked
>Content-Type: text/html; charset=ISO-8859-1
>
>4
>
>
>
>c01
>
>
>... I can't seem to get this to happen in Netscape but it isn't a 
>consistant thing in IE so I am quite confused as to where to look next. It 
>seems almost like some sort of memory buffer for tomcat isn't getting 
>cleared properly and I am getting the old with the new or something...any 
>suggestions? Should I maybe take this to the tomcat-developer list? -- 
>Thomas Bartels aka Blossoms the Tact Rat 
>- To 
>unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, email: [EMAIL PROTECTED]

## Marty McKeever[Information Architect]
## [EMAIL PROTECTED] [I-Silver, Inc]


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

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




JDK 1.3 - Tomcat 3.2

2001-01-31 Thread J2EE User

Friends:
Our application works great with JDK 1.2.2 and Tomcat 3.2

Does any one know any issues if we upgrade to JDK 1.3

I know of one issue where the Tomcat 3.2 with not work as a service in Win
NT with JDK 1.3
Are there any other issues

Best Regards
J2EE User

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




RE: String has been trancated.

2001-01-31 Thread Wang, Jianming

Thank you, Clyde.  It works.

-Original Message-
From: Danganan, Clyde [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 12:45 PM
To: '[EMAIL PROTECTED]'
Subject: RE: String has been trancated.


My guess is that method="get" in your form.  # is one of those symbols that
need to be URLencoded when passed this way.  You need to do something like
this:



Don't forget to import this class.
Clyde Danganan

-Original Message-
From: Wang, Jianming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 11:40 AM
To: [EMAIL PROTECTED]
Subject: String has been trancated.


Hello, everybody.

We encounter a problem:  we use "FORM" to send data back to tomcat. one of
the values in the FORM has the format like this: id=AB12#DD.  At server
side, we use request.getParameter(id) to get the value.  The value we get
back, however, is AB12.  The rest of content (after # sign) has been
trancated.  We also tried to use id="AB12#DD" and result is the same.  The
trancation only happens with the "#" sign.  Can any guru help?  

Thanks in advance.

Jianming Wang

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

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

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




RE: boggling problem with jsp

2001-01-31 Thread Kotturi, Rajendra

You are getting the next page appended to the same page because you may be
using the same response object as the previous screen. So the response is
sent/appended to the same page.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 9:26 AM
To: Jakarta Tomcat List
Subject: boggling problem with jsp


I am getting some really strange side effects with one of my jsp pages.
I have a log-in page for a site I am working on, simple log-in, just type
in your email address and password, click submit.  The log-in is working
fine but for some reason the next page is not getting loaded into the
browser properly every time, it is actually being appended to the bottom
of the log-in page:

...





HTTP/1.1 200 
Date: Wed, 31 Jan 2001 15:58:12 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

4  



c01




...

I can't seem to get this to happen in Netscape but it isn't a consistant
thing in IE so I am quite confused as to where to look next.  It seems
almost like some sort of memory buffer for tomcat isn't getting cleared
properly and I am getting the old with the new or something...any
suggestions?  Should I maybe take this to the tomcat-developer list?

-- 
Thomas Bartels 
aka Blossoms the Tact Rat

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

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




Re: boggling problem with jsp

2001-01-31 Thread Marty McKeever

We've been getting the same behavior using the Tomcat4 beta.
 From our experience this only happens using Internet Explorer (all is good 
in netscape) and is somehow related to the Persistent Connection features 
of IE.


At 12:25 PM 1/31/01 -0500, you wrote:
>I am getting some really strange side effects with one of my jsp pages.
>I have a log-in page for a site I am working on, simple log-in, just type
>in your email address and password, click submit.  The log-in is working
>fine but for some reason the next page is not getting loaded into the
>browser properly every time, it is actually being appended to the bottom
>of the log-in page:
>
>...
>
>
>
>
>
>HTTP/1.1 200
>Date: Wed, 31 Jan 2001 15:58:12 GMT
>Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
>Keep-Alive: timeout=15, max=99
>Connection: Keep-Alive
>Transfer-Encoding: chunked
>Content-Type: text/html; charset=ISO-8859-1
>
>4
>
>
>
>c01
>
>
>... I can't seem to get this to happen in Netscape but it isn't a 
>consistant thing in IE so I am quite confused as to where to look next. It 
>seems almost like some sort of memory buffer for tomcat isn't getting 
>cleared properly and I am getting the old with the new or something...any 
>suggestions? Should I maybe take this to the tomcat-developer list? -- 
>Thomas Bartels aka Blossoms the Tact Rat 
>- To 
>unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, email: [EMAIL PROTECTED]

## Marty McKeever[Information Architect]
## [EMAIL PROTECTED] [I-Silver, Inc]


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




RE: boggling problem with jsp

2001-01-31 Thread Debra Locke

I don't know how you are attempting to forward/load the next page, but try
using:

pageContext.forward("/servlet/Home")

Where "/servlet/Home" is the location you want to load.

Regards,
Debbie
-Original Message-
From: Thomas Bartels [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 12:26 PM
To: Jakarta Tomcat List
Subject: boggling problem with jsp


I am getting some really strange side effects with one of my jsp pages.
I have a log-in page for a site I am working on, simple log-in, just type
in your email address and password, click submit.  The log-in is working
fine but for some reason the next page is not getting loaded into the
browser properly every time, it is actually being appended to the bottom
of the log-in page:

...





HTTP/1.1 200
Date: Wed, 31 Jan 2001 15:58:12 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

4



c01




...

I can't seem to get this to happen in Netscape but it isn't a consistant
thing in IE so I am quite confused as to where to look next.  It seems
almost like some sort of memory buffer for tomcat isn't getting cleared
properly and I am getting the old with the new or something...any
suggestions?  Should I maybe take this to the tomcat-developer list?

--
Thomas Bartels
aka Blossoms the Tact Rat

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


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




Re[4]: Difficulties getting JDBCRealm to work with MySQL driv er

2001-01-31 Thread hische



Solved. I thought I had to add something to the web.xml. When I added the realm
declaration to the context of my webapplication in server.xml everything worked
fine.

Thanks again,

Wilko Hische





"Ignacio J. Ortega" <[EMAIL PROTECTED]> on 31-01-2001 17:36:34

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  RE: Re[2]: Difficulties getting JDBCRealm to work with MySQL driv er






Tomcat 3.3 will have perContext Interceptors..FYI

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 31 de enero de 2001 16:20
> Para: [EMAIL PROTECTED]
> Asunto: Re[2]: Difficulties getting JDBCRealm to work with
> MySQL driver
>
>
>
>
> Thanks Ignacio!
>
> The realm specification in server.xml now reads:
>
>   driverName="org.gjt.mm.mysql.Driver"
>
> connectionURL="jdbc:mysql://localhost/authority?user=root&
> password=apassword"
>   userTable="User" userNameCol="uname"
> userCredCol="password"
>   userRoleTable="UserRoles" roleNameCol="rname" />
>
> and it works.
>
> However the main reason for me to migrate to tomcat4 at this
> moment is the
> ability to specify a JDBC realm per webapp.
> I tried to move the Realm tag above to a web.xml file but got
> the following
> error:
>
> org.xml.sax.SAXParseException: Element "web-app" does not
> allow "Realm" here.
>
> I checked $TOMCAT/conf/web_23.dtd and there is no mention of
> a realm tag indeed.
>
> Do you have a suggestion on how to proceed?
>
> Thanks,
>
> Wilko
>
>
>
>
>
>
> "Ignacio J. Ortega" <[EMAIL PROTECTED]> on 31-01-2001 12:13:15
>
> Please respond to [EMAIL PROTECTED]
>
> To:   "'[EMAIL PROTECTED]'"
> <[EMAIL PROTECTED]>
> cc:(bcc: Wilko Hische/HADV/NL)
> Subject:  RE: Difficulties getting JDBCRealm to work with MySQL driver
>
>
>
> > Changing the semicolon in the connectionURL to an ampersand
> (= correct
> > org.gjt.mm.mysql syntax) was refused by the SAX parser?
> >
> > Am I overlooking something?  I am using Tomcat4-4.0-b1.1
>
> in XML the ampersand is a special character, is forbidden in XML to
> insert and "&" as is , to insert an ampersand you need use "&"
>
>
> Saludos ,
> Ignacio J. Ortega
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>
>
>
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>

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








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


RE: String has been trancated.

2001-01-31 Thread Danganan, Clyde

My guess is that method="get" in your form.  # is one of those symbols that
need to be URLencoded when passed this way.  You need to do something like
this:



Don't forget to import this class.
Clyde Danganan

-Original Message-
From: Wang, Jianming [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 11:40 AM
To: [EMAIL PROTECTED]
Subject: String has been trancated.


Hello, everybody.

We encounter a problem:  we use "FORM" to send data back to tomcat. one of
the values in the FORM has the format like this: id=AB12#DD.  At server
side, we use request.getParameter(id) to get the value.  The value we get
back, however, is AB12.  The rest of content (after # sign) has been
trancated.  We also tried to use id="AB12#DD" and result is the same.  The
trancation only happens with the "#" sign.  Can any guru help?  

Thanks in advance.

Jianming Wang

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

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




Catalina not starting ...

2001-01-31 Thread Grobe, Gary

Tomcat built successfully, I'm not sure of what the below error means.

(as root)
~/apache_home/bin/apachectl start
~/jakarta_home/build/tomcat-4.0/bin/catalina.sh start

produces the following ~/logs/catalina.out:
-

Exception during startup processing
java.lang.reflect.InvocationTargetException:
javax.xml.parsers.FactoryConfigurationError:
com.sun.xml.parser.SAXParserFactoryImpl
   at
javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:84)
   at org.apache.catalina.util.xml.XmlMapper.readXml(XmlMapper.java:224)
   at org.apache.catalina.startup.Catalina.start(Catalina.java:625)
   at org.apache.catalina.startup.Catalina.execute(Catalina.java:595)
   at org.apache.catalina.startup.Catalina.process(Catalina.java:176)
   at java.lang.reflect.Method.invoke(Native Method)
   at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:157)


Adv(Thnxs)ance

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




String has been trancated.

2001-01-31 Thread Wang, Jianming

Hello, everybody.

We encounter a problem:  we use "FORM" to send data back to tomcat. one of
the values in the FORM has the format like this: id=AB12#DD.  At server
side, we use request.getParameter(id) to get the value.  The value we get
back, however, is AB12.  The rest of content (after # sign) has been
trancated.  We also tried to use id="AB12#DD" and result is the same.  The
trancation only happens with the "#" sign.  Can any guru help?  

Thanks in advance.

Jianming Wang

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




list of HttpSession objects

2001-01-31 Thread S. Murthy Gorty

Hi,

We are moving to Tomcat3.2.1 and noticed a problem.
We monitor user-activity per web-server by keeping a list of HTTPSession 
objects; we query this list to see the sessions active (and thereby some ser 
information) at a given point.

With this version of tomcat, there seems to be this HTTPSessionfacade object 
that has a 'realsession' object. this realsession object gets nuked at the 
end of every request.

So, our list maintains a list of httpsessionfacade objects that do not have 
any realsession objects associated with them, so we get nullpointerexception 
when we try to read from these httpsession objects we maintain..

Is this a feature?
Is there any other way our management console can keep track of 
httpsessions?

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


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




Re: Q: Request Dispatching with Cookies Turn Off?

2001-01-31 Thread Kief Morris

Nathan N. Vuong typed the following on 09:33 AM 1/31/2001 -0500
>Would like to know how to maintain single Session with 
>Cookies turn off on the browser with request dispatching:
>
>  1) request.getRequestDispatcher(URL)
>  2) getServletContext().getNamedDispatcher(servlet name)
>
>My first thought is to encodeURL() for 
> request.getRequestDispatcher(encodeURL(URL)), I'll try 
>this method.  But as for second method I'm stumped.

I haven't tested this, but I don't think you have to worry about the
session ID in either case. If you call forward() or include() your servlet
will be invoked before the request is finished, so Tomcat should have the 
session readily available. Have you tested code and found that the
session isn't available to the included or forwarded resource? Let
us know if you test it and I'm wrong.

Kief


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




compiling Servletapi with jdk 1.1.7 - can't use 1.2.2

2001-01-31 Thread Duty, Jed

I am working on a Unixware 7.0.1 box.  This os won't run jdk 1.2.2 so I need
to compile the servletapi with jdk 1.1.7.  When I run build.sh here is what
I get:

Buildfile: build.xml

prepare:

compile:
[javac] Compiling 40 source files to
/source/jakarta/build/servletapi/classes

BUILD FAILED

java.lang.UnsatisfiedLinkError: no javac in shared library path
at java.lang.Runtime.loadLibrary(Runtime.java)
at java.lang.System.loadLibrary(System.java)
at
at
org.apache.tools.ant.taskdefs.Javac.doClassicCompile(Javac.java:525)
at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:295)
at org.apache.tools.ant.Target.execute(Target.java:132)
at org.apache.tools.ant.Project.runTarget(Project.java:717)
at org.apache.tools.ant.Project.executeTarget(Project.java:448)
at org.apache.tools.ant.Project.executeTargets(Project.java:422)
at org.apache.tools.ant.Main.runBuild(Main.java:279)
at org.apache.tools.ant.Main.main(Main.java:107)

Total time: 0 seconds


here is what my classpath and path look like:

Path
/home/pplus/sbin:/home/pplus/bin:/usr/iscbr/sbin:/usr/iscbr/bin:/usr/bin:/us
r/ccs/bin:/usr/public/bin:/home/pplus/bin:/usr/local/
bin:/home/pplus/scripts:/usr/vision/bin:/home/dutyj:/source/jakarta/build/to
mcat/bin:/usr/local/apache/bin:/opt/jdk-1.1.7/bin

Classpath

/source/jakarta/jaxp1.0.1/jaxp.jar:/source/jakarta/jaxp1.0.1/parser.jar:/sou
rce/jakarta/jsse1.0.2/lib/jcert.jar:/source/jakarta/jsse
1.0.2/lib/jnet.jar:/source/jakarta/jsse1.0.2/lib/jsse.jar:/opt/jdk-1.1.7/lib
/dt.jar:/opt/jdk-1.1.7/lib/classes.zip

not sure what the problem is javac is in the /opt/jdk-1.1.7/bin dir so i
don't know what it is complaining about.

any help would be much appreciated.

Jed Duty


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




boggling problem with jsp

2001-01-31 Thread Thomas Bartels

I am getting some really strange side effects with one of my jsp pages.
I have a log-in page for a site I am working on, simple log-in, just type
in your email address and password, click submit.  The log-in is working
fine but for some reason the next page is not getting loaded into the
browser properly every time, it is actually being appended to the bottom
of the log-in page:

...





HTTP/1.1 200 
Date: Wed, 31 Jan 2001 15:58:12 GMT
Server: Apache/1.3.12 (Unix)  (Red Hat/Linux) mod_jk mod_perl/1.21
Keep-Alive: timeout=15, max=99
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html; charset=ISO-8859-1

4  



c01




...

I can't seem to get this to happen in Netscape but it isn't a consistant
thing in IE so I am quite confused as to where to look next.  It seems
almost like some sort of memory buffer for tomcat isn't getting cleared
properly and I am getting the old with the new or something...any
suggestions?  Should I maybe take this to the tomcat-developer list?

-- 
Thomas Bartels 
aka Blossoms the Tact Rat

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




Servlet caching

2001-01-31 Thread Jim Miani


Has anyone had a problem with Tomcat caching servlets?

sometimes it doesn't, sometimes it does. reloadable is set to true,
and I even reduced the Loader checkInterval to 3 (in server.xml file), it
still sometimes caches a servlet.

Here's what the snippet of server.xml that is of concern here looks like:

   
   


When I recompile a servlet that lives under 
$TOMCAT_HOME/webapps/ICANON/WEB-INF/classes, it _usually_ picks up the changes
immediately. But every so often it caches the servlet, and I have to
restart Tomcat to get it out of cache.

Any help? TIA.

Jim





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




Re: session variables in a server farm

2001-01-31 Thread Kief Morris

Ferguson, Doug typed the following on 09:35 AM 1/31/2001 -0600
>Is there an elegant way to implement session variables in a load balancing
>senario? If I understand correcty everything is stored on the
>server and a sessionID is store in the users browser so that the 
>server can look it up. But what happens when the user gets routed
>to another server which doesn't have their info stored in the session,
>we wouldn't want them to log in again.  We though about placing this
>info in our ejb layer. But we'd like to not have to do a remote call
>just for authentication purposes.

Preliminary work has started on distributed sessions for Tomcat 4, but it 
isn't likely to be ready for production use for quite a while. Setting your
own cookie to ID the user and then using an EJB is probably the quickest
way to get this working if your load balancer can't be relied on to keep
the user on a single server.

Kief


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




Re: context

2001-01-31 Thread Zelestrial Signs

As long as you set up a context with the docBase pointing to wherever the 
root for your website is, jsp's can be run from any (other than protected) 
directories under it.
i.e. by default your website root is the webapps directory. just have your 
students "home" directories there, with whatever subdirectories they wish 
inside that, and their jsp's residing anywhere in there. Then they would 
just go to 
http://localhost:8080/studentsfolder/theirsubfolder/wherever/etc/SomeJSP.jsp
As long as they do not use a foldername like META-INF it should work fine.

If you didn't want to use the webapps directory, just make say a context 
/classwork that points to say D:\Students, and have all of their home 
directories there.
Then they would go to 
http://localhost:8080/classwork/studentsfolderetc/SomeJSP.jsp

JSP's by themselves don't really require a special directory structure.  Its 
only when you start using class files and jars that they need to reside in 
special locations.

While the above works with tomcat, so far I haven't had much luck with doing 
something like this with an apache frontend using 
~user/somefolder/SomeJSP.jsp and having apache forward the request to 
tomcat.  Right now though I'm not entirely sure if thats a problem with 
apache/tomcat and ~user, or issues with my firewall proxy(it likes to try 
and resolve localhost requests causing all sorts of testing problems).  
Using something like the above /classwork context get passed along to tomcat 
just fine from apache.

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: context
>Date: Wed, 31 Jan 2001 09:59:55 -
>
>Can I take that there isn't a way of setting up tomcat so that any user can
>run jsp files from their web space no matter where they are on the server
>i.e. can't you set global path for whole of web site?
>
>
>I have 200 students who need to write jsp files and just upload them to
>their webspace.
>
>please any thoughts?
>
>thanks Matthew
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




RE: jsp:include & jsp:forward

2001-01-31 Thread Michael Wentzel

> I don't think the flush=false is allow.
> 
> The think is we have some pages with some templates, that's 
> why we have the
> jsp:include, but after some processing in the jsp page we 
> want to redirect
> to a new page. We are just trying to do a "please wait" page.
> 
> That's all.


A workaround is to set the forward in the http header(response.setHeader()).


---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel

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




Re: session variables in a server farm

2001-01-31 Thread Dennis Doubleday

At 11:16 AM 1/31/01, you wrote:
> > Our application is completely stateless except for login information.
> >  We do load balancing with a hardware load balancer which I believe
> >   is a Foundry Server Iron?
> >  I now considering keep our login state in a stateful session bean(ejb)
> >  And store the home handle to this bean in a session cookie on the client
> >  I think I might store the same info in a tomcat session variable just for
> >  performance optimization, If it ain't in the session get it from the
> > appserver.
> >  if it ain't in the app server, send them to the login page. ?
> >
> >  Does this sound ridiculous?

No. If you have a hardware load-balancer, though, it should be able to 
preserve session affinity by looking at your cookie. I'm not familiar with 
Foundry's product but the F5 product can do it. Then if the app server 
serving the session dies, you might have to ask the user to log in again 
(or you might be able to transparently log them in again), but that should 
be rare.

-
Dennis Doubleday  email: [EMAIL PROTECTED]
yourfit.com, Inc.   web: http://www.yourfit.com/


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




RE: jsp:include & jsp:forward

2001-01-31 Thread Doremieux, Olivier

I don't think the flush=false is allow.

The think is we have some pages with some templates, that's why we have the
jsp:include, but after some processing in the jsp page we want to redirect
to a new page. We are just trying to do a "please wait" page.

That's all.

Olivier

-Original Message-
From: Jai Shankar Prasad Pankaj [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 12:48 AM
To: [EMAIL PROTECTED]
Subject: Re: jsp:include & jsp:forward


I think u cannot do that. u start by asking the jsp engine
to write something into the buffer and then u are changing  ur mind by
asking it to go to some other jsp page. This is not allowed.

May be u can try using flush=false. But i am bit skeptical about this. Let
me know if it works.

Jai.








- Original Message -
From: "Doremieux, Olivier" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 4:49 AM
Subject: jsp:include & jsp:forward


> Hello,
>
> Is there some way to have a jsp:include & jsp:forward on the same page?
>
> I am trying to write some code like that :
>
> 
> 
> 
> foo
> 
> 
>
> 
> 
> 
> Updating the Database... Please WaitDone.
> <%
> // Database Update here
> }
> %>
> 
> 
> 
>
>
> But I am getting the following error :
>
> Error: 500
> Location: /processTask0.jsp
> Internal Servlet Error:
>
> java.io.IOException: Error: Attempt to clear a buffer that's already been
> flushed
> at
> org.apache.jasper.runtime.JspWriterImpl.clear(JspWriterImpl.java:180)
> at
>
_0002fprocessTask_00030_0002ejspprocessTask0_jsp_2._jspService(_0002fprocess
> Task_00030_0002ejspprocessTask0_jsp_2.java:90)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
>
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
> va:177)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
> at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
> 7)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:210)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>
> Any idea how to fix that?
>
> Thank you,
>
> -
> Olivier Doremieux
> Senior Staff Engineer
> Celera Applied Genomics
> 384 Foster City Blvd.,
> Foster City, CA 94404
> Tel: 650-554-2243
> FAX: 650-638-6222
> e-mail: [EMAIL PROTECTED]
> -
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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

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




RE: ACTION= invoking servlets

2001-01-31 Thread Cato, Christopher

Are you sure the servlet is not using the GET method instead? That would be
your problem in that case. If so, simply add a call to the doPost method
inside the doGet() and you wont see it again. It might be a stupid answer,
but I've seen it happen a number of times.

Christopher

> -Original Message-
> From: Simmons, Donald [mailto:[EMAIL PROTECTED]]
> Sent: den 31 januari 2001 14:47
> To: [EMAIL PROTECTED]
> Subject: ACTION= invoking servlets
> 
> 
> to all,
> 
> I am trying to invoke a servlet from a form via POST and 
> action= however the servlet never runs and I don't see any 
> error messages. The URL appears correct in the browser when I 
> invoke it, however nothing happens. Any thoughts? Any help 
> would be appreciated. Thanks.
> 
> dj
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: how to enable ssi in tomcat. Urgent plssssssss

2001-01-31 Thread BBueckers

I agree with you, however if I set a url-protected directory all the files
in that url-protected directory must be under Tomcat, and thus if some of
the files are shtm's and use SSI, the headers and footers will no longer
show up because the page is now being server up by Tomcat rather than IIS.
When protecting a a directory via  in web.xml it is my
understanding that anything with that url pattern is served up by Tomcat
regadless of the file type.

See example below...

i.e.

My Protected Directory
-
/sales/*

My Tomcat Directory Structure
-
tomcat/
  webapps/
mysite/
  sales/
  index.shtm
  test.jsp
  figures.shtm
  salespeople.jsp

Any thoughts,

Bob

-Original Message-
From: Jan Labanowski [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 9:15 AM
To: [EMAIL PROTECTED]; Jan Labanowski;
[EMAIL PROTECTED]
Subject: Re: how to enable ssi in tomcat. Urgent pl



SSI (Server Side Includes) work only in Apache. They do not work in
Tomcat. You have to choose... Either you do SSI or JSP, you cannot have
both.
If you have: 
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
in you mod_jk.conf

and
  
  AddType text/html .shtml
  AddHandler server-parsed .shtml
in your httpd.conf

You should be OK, i.e., the *.jsp files will go to Tomcat, and *.shtml
will be processed by Apache.

In Apache2.0, there may be a possibility of chaining the output from JSP
to the handler in Apache, but for Apache 1.3 it is just not possible, and
you have to choose in which way you will serve your Dynamic content

Jan
http://www.ccl.net/cca/software/UNIX/apache/index.shtml


On Wed, 31 Jan 2001, Suresh.S.V wrote:

> Hi
> Iam using tomcat 3.2.1+ apache 1.3.14 .In this servlets and jsp are
working
> fine. When i stop tomcat  server side includes are working fine in
html.But
> when i start tomcat also html includes are not working.Its urgent.Pls
> help me.
> Thanx®ds
> Suresh
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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/


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

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




RE: Re[2]: Difficulties getting JDBCRealm to work with MySQL driver

2001-01-31 Thread Ignacio J. Ortega

Tomcat 3.3 will have perContext Interceptors..FYI

Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Enviado el: miércoles 31 de enero de 2001 16:20
> Para: [EMAIL PROTECTED]
> Asunto: Re[2]: Difficulties getting JDBCRealm to work with 
> MySQL driver
> 
> 
> 
> 
> Thanks Ignacio!
> 
> The realm specification in server.xml now reads:
> 
>   driverName="org.gjt.mm.mysql.Driver"
>   
> connectionURL="jdbc:mysql://localhost/authority?user=root&
> password=apassword"
>   userTable="User" userNameCol="uname" 
> userCredCol="password"
>   userRoleTable="UserRoles" roleNameCol="rname" />
> 
> and it works.
> 
> However the main reason for me to migrate to tomcat4 at this 
> moment is the
> ability to specify a JDBC realm per webapp.
> I tried to move the Realm tag above to a web.xml file but got 
> the following
> error:
> 
> org.xml.sax.SAXParseException: Element "web-app" does not 
> allow "Realm" here.
> 
> I checked $TOMCAT/conf/web_23.dtd and there is no mention of 
> a realm tag indeed.
> 
> Do you have a suggestion on how to proceed?
> 
> Thanks,
> 
> Wilko
> 
> 
> 
> 
> 
> 
> "Ignacio J. Ortega" <[EMAIL PROTECTED]> on 31-01-2001 12:13:15
> 
> Please respond to [EMAIL PROTECTED]
> 
> To:   "'[EMAIL PROTECTED]'" 
> <[EMAIL PROTECTED]>
> cc:(bcc: Wilko Hische/HADV/NL)
> Subject:  RE: Difficulties getting JDBCRealm to work with MySQL driver
> 
> 
> 
> > Changing the semicolon in the connectionURL to an ampersand 
> (= correct
> > org.gjt.mm.mysql syntax) was refused by the SAX parser?
> >
> > Am I overlooking something?  I am using Tomcat4-4.0-b1.1
> 
> in XML the ampersand is a special character, is forbidden in XML to
> insert and "&" as is , to insert an ampersand you need use "&"
> 
> 
> Saludos ,
> Ignacio J. Ortega
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 
> 
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 

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




(S.O.S) tomcat proxy problem

2001-01-31 Thread shlomi sarfati

hi
I am trying to use the isapi_redirect dll that enables the proxy service as
described in the how to "Tomcat IIS HowTo".
using a windows 2000 professional the service works fine .
when I tried to load my server to production machine (windows 2000 sever)
the isapi_redirect dll made the log file(what indicate that it is working )
but the iis doesn't redirect the request to the tomcat (I can see this in
the iis log file , request are not being transfer to
'jakarta/isapi_redirect.dll 200' they are going to the real path of the
request)
please if anyone can help I am finding my self spending hours on this not so
complicated issue
any help will be highly  appreciated
thanks
shlomi sarfati


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




RE: ACTION= invoking servlets

2001-01-31 Thread Simmons, Donald

Mike,

that's what I ended up doing and I found some problems in the code. Thanks for you help

-Original Message-
From: Michael Wentzel [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 7:48 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ACTION= invoking servlets


> I am trying to invoke a servlet from a form via POST and 
> action= however the servlet never runs and I don't see any 
> error messages. The URL appears correct in the browser when I 
> invoke it, however nothing happens. Any thoughts? Any help 
> would be appreciated. Thanks.

Put in some debugging output, or breakpoints if you have
debugging capabilities, and step through the servlet to make
sure:
  A. Your servlet is getting called
  B. Your servlet doPost() method is getting called
  C. Your servlet doPost() method is exiting normally
  D. If something is happening in doPost() what is the code
   that is raising a exception.

If you can't figure out the problem from this.  Post more information
on what exactly is happening and your configuration(settings in
web.xml, tomcat ver, OS, webserver config[stand alone or w/ IIS/Apache,
etc...).


---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel

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

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




Re: session variables in a server farm

2001-01-31 Thread Doug Ferguson

> Our application is completely stateless except for login information.
>  We do load balancing with a hardware load balancer which I believe
>   is a Foundry Server Iron?
>  I now considering keep our login state in a stateful session bean(ejb)
>  And store the home handle to this bean in a session cookie on the client
>  I think I might store the same info in a tomcat session variable just for
>  performance optimization, If it ain't in the session get it from the
> appserver.
>  if it ain't in the app server, send them to the login page. ?
>
>  Does this sound ridiculous?




> I don't know anything about your app, but I would simplify the problem by
> keeping session affinity with a single server, i.e. load-balance at the
> session level rather than at the request level. If you don't tie a session
> to a single server, you aren't just looking at unitary login problems but
> also at server-side session cache consistency issues.
>
> If you really need failover, though, you probably have to solve those
> problems anyway.
>
> At 10:35 AM 1/31/01, you wrote:
> >Is there an elegant way to implement session variables in a load balancing
> >senario? If I understand correcty everything is stored on the
> >server and a sessionID is store in the users browser so that the
> >server can look it up. But what happens when the user gets routed
> >to another server which doesn't have their info stored in the session,
> >we wouldn't want them to log in again.  We though about placing this
> >info in our ejb layer. But we'd like to not have to do a remote call
> >just for authentication purposes.
>
> -
> Dennis Doubleday  email: [EMAIL PROTECTED]
> yourfit.com, Inc.   web: http://www.yourfit.com/
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Using a servlet as default entry point instead of index.html ?

2001-01-31 Thread Wang, Jianming

I think you can set that servlet class in the  in web.xml

-Original Message-
From: Rikard Skogberg [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, January 31, 2001 10:50 AM
To: [EMAIL PROTECTED]
Subject: Using a servlet as default entry point instead of index.html ?


Hi
 
I have made a servlet that generates different pages depending on the
user-agent accessing it..
 
Can i make it run when someone accesses my server by http://myhost.com
  instead of the default index.html?
 
/Rikard
 
 


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




RE: Connection aborted - jasper problem?

2001-01-31 Thread Jord Sonneveld
Title: RE: Connection aborted - jasper problem?






This is a non-fatal error. IE aborts the connection prematurely, because it realizes that it has something in the local cache. Or something like that. I wouldn't worry about it.

Jord.


-Original Message-

From: Stefan Meier [mailto:[EMAIL PROTECTED]]

Sent: Wednesday, January 31, 2001 7:17 AM

To: [EMAIL PROTECTED]

Subject: Connection aborted - jasper problem?



When calling jsp pages with IE5.5 tomcat throws IOExceptions for all

"external files" like gifs, css,

(2001-01-31 12:56:36 - Ctx(  ): IOException in: R(  + /gfx/header.gif +

null) Connection aborted by peer: socket write error


This does not occur when calling the pages with Netscape. However, I seem to

get a "connection aborted" message for a short moment before the new page is

loaded.


Although it doesn't seem to have any bad effects (the images show up

correctly and the css is loaded, jsp work perfectly), I'm wondering what is

causing the exception, i.e. is any special configuration required for IE

compatibility ?


Or is there probably a minor flaw in tomcat/jasper that jsp-compiled

servlets do not close the streams correctly? From what I saw in the

generated servlet source the HTTPResponseStream is flushed, but not closed.

Can this cause the above behaviour?


Many thanks for your help!



-

To unsubscribe, e-mail: [EMAIL PROTECTED]

For additional commands, email: [EMAIL PROTECTED]





RE: session variables in a server farm

2001-01-31 Thread Furmaniak Christophe

> 
> Is there an elegant way to implement session variables in a 
> load balancing
> senario? If I understand correcty everything is stored on the
> server and a sessionID is store in the users browser so that the 
> server can look it up. But what happens when the user gets routed
> to another server which doesn't have their info stored in the session,
> we wouldn't want them to log in again.  We though about placing this
> info in our ejb layer. But we'd like to not have to do a remote call
> just for authentication purposes.
> 

did you have a look at
http://java.apache.org/jserv/howto.load-balancing.html ?

CF

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




Re: session variables in a server farm

2001-01-31 Thread Dennis Doubleday

I don't know anything about your app, but I would simplify the problem by 
keeping session affinity with a single server, i.e. load-balance at the 
session level rather than at the request level. If you don't tie a session 
to a single server, you aren't just looking at unitary login problems but 
also at server-side session cache consistency issues.

If you really need failover, though, you probably have to solve those 
problems anyway.

At 10:35 AM 1/31/01, you wrote:
>Is there an elegant way to implement session variables in a load balancing
>senario? If I understand correcty everything is stored on the
>server and a sessionID is store in the users browser so that the
>server can look it up. But what happens when the user gets routed
>to another server which doesn't have their info stored in the session,
>we wouldn't want them to log in again.  We though about placing this
>info in our ejb layer. But we'd like to not have to do a remote call
>just for authentication purposes.


-
Dennis Doubleday  email: [EMAIL PROTECTED]
yourfit.com, Inc.   web: http://www.yourfit.com/


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




AW: Server Side Includes(SSI) and Tomcat vs JSP Include Directive

2001-01-31 Thread Kurt, Oliver

I'm acutally no tomcat or jsp guru, but I think you have to use JSP-syntax
to include other jsps (or any other files)

have a look at the jsp reference @ javasoft.com


1.)

Include Directive Includes a static file, parsing the file's
<%@ include file=" relativeURL "%>

2.)

 Includes a static file or sends a request
to a dynamic file.

|
[  ]+
 }



-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Januar 2001 15:54
An: [EMAIL PROTECTED]
Betreff: Server Side Includes(SSI) and Tomcat vs JSP Include Directive


Does Tomcat have the ability to parse a common SSI like the following on an
'.shtm' page.





My setup is Tomcat 3.2.1 and IIS 4.0. I have '.shtm' files in a Tomcat
url-protected directory. I want Tomcat to be able to serve up the '.shtm'
correctly, which requires it to parse through the '.shtm' files and
acknowledge the SSI include syntax. I don't want to convert all the '.shtm'
pages into '.jsp' files just to use the JSP include directive. 

Any Ideas?

Thanks in advance,

Bob

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

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




Using a servlet as default entry point instead of index.html ?

2001-01-31 Thread Rikard Skogberg



Hi
 
I have made a servlet that generates different 
pages depending on the user-agent accessing it..
 
Can i make it run when someone accesses my server 
by http://myhost.com instead of the default 
index.html?
 
/Rikard
 
 


RE: session variables in a server farm

2001-01-31 Thread Kevin Jones

The spec allows for web servers to exchange session state. To do this you
need to mark your app as distributable, and make sure everything in the
session is serializable. In all honesty (and I stand to be corrected) I'm
not sure how many servers will implement this for load balancing. It just
strikes me as being too expensive.

One solution is to store the data in another server (usually a database) and
keep a cached local copy on each server in the farm. Along with the cookie
pass a timestamp so that you know if the cache is still valid. On each
intitial hit to a server you retrieve the state from the DB and so incur a
roundtrip, on subsequent hits you may incur a roundtrip depending on the
state of the cache.

Using the cache may or may not be a good idea depending on you usage
profile. If the session is usually read, then the cache is a good idea. If
you do lots of writes then the cache will just slow things down.

Kevin Jones
DevelopMentor
www.develop.com

> -Original Message-
> From: Ferguson, Doug [mailto:[EMAIL PROTECTED]]
> Sent: 31 January 2001 15:35
> To: '[EMAIL PROTECTED]'
> Subject: session variables in a server farm
>
>
> Is there an elegant way to implement session variables in a load balancing
> senario? If I understand correcty everything is stored on the
> server and a sessionID is store in the users browser so that the
> server can look it up. But what happens when the user gets routed
> to another server which doesn't have their info stored in the session,
> we wouldn't want them to log in again.  We though about placing this
> info in our ejb layer. But we'd like to not have to do a remote call
> just for authentication purposes.
>
> d.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: Can not generate mod_jk.so file

2001-01-31 Thread Jan Labanowski

Check my installation logs for Linux 7.0. Somewhere there I give
a detailed prescription on how to compile mod_jk.
http://www.ccl.net/cca/software/UNIX/apache/index.shtml

Jan




On Wed, 31 Jan 2001, Fabio Galarraga wrote:

> Hi to all:
> I'm trying to configure Tomcat+Apache+SSL so I must install mod_jk. When I
> execute apxs command as:
> 
> apxs -o mod_jk.so -I../jk -I/usr/local1.2.2/jdk/include
> -I/usr/local/jdk1.2.2/include/linux -c *.c ../jk/*.c
> 
> it abort with error:
> gcc:*.c: No such file or directory
> gcc: No input files
> 
> I look at /usr/local/jdk1.2.2/include/linux directory and only have some .h
> files (not .c files)
> 
> Any ideas?
> 
> Best regards,
> Fabio Galarraga
> [EMAIL PROTECTED]
> 

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/


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




session variables in a server farm

2001-01-31 Thread Ferguson, Doug

Is there an elegant way to implement session variables in a load balancing
senario? If I understand correcty everything is stored on the
server and a sessionID is store in the users browser so that the 
server can look it up. But what happens when the user gets routed
to another server which doesn't have their info stored in the session,
we wouldn't want them to log in again.  We though about placing this
info in our ejb layer. But we'd like to not have to do a remote call
just for authentication purposes.

d.

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




Can not generate mod_jk.so file

2001-01-31 Thread Fabio Galarraga

Hi to all:
I'm trying to configure Tomcat+Apache+SSL so I must install mod_jk. When I
execute apxs command as:

apxs -o mod_jk.so -I../jk -I/usr/local1.2.2/jdk/include
-I/usr/local/jdk1.2.2/include/linux -c *.c ../jk/*.c

it abort with error:
gcc:*.c: No such file or directory
gcc: No input files

I look at /usr/local/jdk1.2.2/include/linux directory and only have some .h
files (not .c files)

Any ideas?

Best regards,
Fabio Galarraga
[EMAIL PROTECTED]

 application/ms-tnef

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


Re[2]: Difficulties getting JDBCRealm to work with MySQL driver

2001-01-31 Thread hische



Thanks Ignacio!

The realm specification in server.xml now reads:



and it works.

However the main reason for me to migrate to tomcat4 at this moment is the
ability to specify a JDBC realm per webapp.
I tried to move the Realm tag above to a web.xml file but got the following
error:

org.xml.sax.SAXParseException: Element "web-app" does not allow "Realm" here.

I checked $TOMCAT/conf/web_23.dtd and there is no mention of a realm tag indeed.

Do you have a suggestion on how to proceed?

Thanks,

Wilko






"Ignacio J. Ortega" <[EMAIL PROTECTED]> on 31-01-2001 12:13:15

Please respond to [EMAIL PROTECTED]

To:   "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  RE: Difficulties getting JDBCRealm to work with MySQL driver



> Changing the semicolon in the connectionURL to an ampersand (= correct
> org.gjt.mm.mysql syntax) was refused by the SAX parser?
>
> Am I overlooking something?  I am using Tomcat4-4.0-b1.1

in XML the ampersand is a special character, is forbidden in XML to
insert and "&" as is , to insert an ampersand you need use "&"


Saludos ,
Ignacio J. Ortega


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








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




Re: how to enable ssi in tomcat. Urgent plssssssss

2001-01-31 Thread Jan Labanowski


SSI (Server Side Includes) work only in Apache. They do not work in
Tomcat. You have to choose... Either you do SSI or JSP, you cannot have
both.
If you have: 
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
in you mod_jk.conf

and
  
  AddType text/html .shtml
  AddHandler server-parsed .shtml
in your httpd.conf

You should be OK, i.e., the *.jsp files will go to Tomcat, and *.shtml
will be processed by Apache.

In Apache2.0, there may be a possibility of chaining the output from JSP
to the handler in Apache, but for Apache 1.3 it is just not possible, and
you have to choose in which way you will serve your Dynamic content

Jan
http://www.ccl.net/cca/software/UNIX/apache/index.shtml


On Wed, 31 Jan 2001, Suresh.S.V wrote:

> Hi
> Iam using tomcat 3.2.1+ apache 1.3.14 .In this servlets and jsp are working
> fine. When i stop tomcat  server side includes are working fine in html.But
> when i start tomcat also html includes are not working.Its urgent.Pls
> help me.
> Thanx®ds
> Suresh
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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/


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




mod_jk.so LoadModule problem

2001-01-31 Thread Ben Walls

Hi, I am trying to load the mod_jk.so in my Httpd.conf file;-

LoadModule jk_module libexec/mod_jk.so
AddModule mod_jk.c

JkWorkersFile /users/benw/dev/jakarta-tomcat-3.2.1/conf/workers.properties
JkLogFile /users/benw/dev/jakarta-tomcat-3.2.1/logs/mod_jk.log
JkLogLevel warn
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13


Yet when I try to start Apache I get the following LoadModule Error:

Syntax error on line 188 of /users/benw/dev/apache_1.3.6/conf/httpd.conf:
Cannot load /users/benw/dev/apache_1.3.6/libexec/mod_jk.so into server:
ld.so.1: /users/benw/dev/apache_1.3.6/bin/httpd: fatal: librt.so.1: open
failed: No such file or directory
/users/benw/dev/apache_1.3.6/bin/apachectl start: httpd could not be started

(line 188 is the "LoadModule" line in httpd.conf)

Any ideas?

Firstly, I had a bitch of a time trying to compile mod_jk.so anyway - it
kept exiting with
apxs:Break: Command failed with rc=-256  wow! verbose error message

So I finally managed to find a copy to download - for solaris.

Im running SunOS 5.6, Apache 1.3.6, and Tomcat 3.2.1

Thanks,
Ben




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




Server Side Includes(SSI) and Tomcat vs JSP Include Directive

2001-01-31 Thread BBueckers

Does Tomcat have the ability to parse a common SSI like the following on an
'.shtm' page.





My setup is Tomcat 3.2.1 and IIS 4.0. I have '.shtm' files in a Tomcat
url-protected directory. I want Tomcat to be able to serve up the '.shtm'
correctly, which requires it to parse through the '.shtm' files and
acknowledge the SSI include syntax. I don't want to convert all the '.shtm'
pages into '.jsp' files just to use the JSP include directive. 

Any Ideas?

Thanks in advance,

Bob

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




how to disable the tomcat webserver?

2001-01-31 Thread Marc Leblanc




Hi everyone ,
 
we devellope with tomcat/cocoon but recently ive 
noticed that everyone on the net can see our code beacause tomcat allow people 
to browse the directory where our code his.
 
anyone know how to shutdown the tomcat webserver or 
simply configure it , that he will not let everyone browse the 
directory.
 
i try with httpd.conf of apache with 
 and  but was unable to prevent 
this.
 
Thank you
Marc Leblanc
Nomad Logic
[EMAIL PROTECTED]


how to disable the tomcat webserver?

2001-01-31 Thread Marc Leblanc



Hi everyone ,
 
we devellope with tomcat/cocoon but recently ive 
noticed that everyone on the net can see our code beacause tomcat allow people 
to browse the directory where our code his.
 
anyone know how to shutdown the tomcat webserver or 
simply configure it , that he will not let everyone browse the 
directory.
 
i try with httpd.conf of apache with 
 and  but was unable to prevent 
this.
 
Thank you
Marc Leblanc
Nomad Logic
[EMAIL PROTECTED] 


Q: Request Dispatching with Cookies Turn Off?

2001-01-31 Thread Nathan N. Vuong

All,

Would like to know how to maintain single Session with 
Cookies turn off on the browser with request dispatching:

  1) request.getRequestDispatcher(URL)
  2) getServletContext().getNamedDispatcher(servlet name)

My first thought is to encodeURL() for 
 request.getRequestDispatcher(encodeURL(URL)), I'll try 
this method.  But as for second method I'm stumped.

Thanks,
Nathan 
email: [EMAIL PROTECTED]

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




Re: list of HttpSession objects

2001-01-31 Thread Luc Vanlerberghe

I'd have to check the servlet spec for the details, but I'm pretty sure
that servlets are not supposed to use the sessions, request and response
object after the request has been processed.
The servlet spec was designed to allow easy development of independent
web applications that can be run on any server that conforms to the
spec.
One of the 'features' of the spec is each webapp runs in its own context
shielded from other webapps that may be running on the same server, and
that sessions are maintained by the container in whatever way it sees
fit (as long as it conforms to the spec).  The Session, Request and
Response objects you see are objects that implement the required
interfaces but that says nothing about the way they are implemented.

Tomcat uses facade objects to shield the user objects from the actual
implementations to prevent users holding references to the
implementations and opening security holes.
E.g.: In tomcat, when a session times out, the implementing object is
not destroyed, but recycled to be reused when a new session is needed. 
If the user could still hold a reference, he would be able to see data
that is no longer his.

If the data you're trying to gather is limited to a single webapp, you
could take a look at the new Filter interface that is defined in the
proposed 2.3 servlet spec, or the events that can be sent when a new
session is started/stopped (HttpSessionActivationListener).  Tomcat 3.x
does not implement the 2.3 spec, but 4.x does.

If not, then what you are trying to write is something that is
inherently dependent on the way the servlet container implements these
objects, so I would suggest delving into the internals of tomcat and
writing a tomcat dependent RequestInterceptor (for 3.x) or Valve (for
4.x) for that functionality.

Luc Vanlerberghe

Ivo Limmen wrote:
> 
> Do you always get the nullpointerexception or is it only when the user
> closes the connection?
> I am working on a similar problem, I want to see how many sessions are
> active. I have tried to use a weak reference to each session object
> but it didn't work because all the sessions are reused by Tomcat, so
> they don't dissapear.
> 
> Ivo
> 
> -Original Message-
> From: TeamOn Crosswinds [mailto:[EMAIL PROTECTED]]
> Sent: woensdag 31 januari 2001 5:33
> To: [EMAIL PROTECTED]
> Subject: list of HttpSession objects
> 
> Hi,
> 
> We are moving to Tomcat3.2.1 and noticed a problem.
> We monitor user-activity per web-server by keeping a list of
> HTTPSession
> objects; we query this list to see the sessions active (and thereby
> some ser
> information) at a given point.
> 
> With this version of tomcat, there seems to be this HTTPSessionfacade
> object
> that has a 'realsession' object. this realsession object gets nuked at
> the
> end of every request.
> 
> So, our list maintains a list of httpsessionfacade objects that do not
> have
> any realsession objects associated with them, so we get
> nullpointerexception
> when we try to read from these httpsession objects we maintain..
> 
> Is this a feature?
> Is there any other way our management console can keep track of
> httpsessions?
> 
> thanks,
> murthy
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> Furore Informatica B.V.
> Rijswijkstraat 175-8
> Postbus 9204
> 1006 AE Amsterdam
> tel. (020) 346 71 71
> fax. (020) 346 71 77
> 
> --
> The information transmitted is intended only for the person
> or entity to which it is addressed and may contain confidential
> and/or privileged material. Any review, retransmission,
> dissemination or other use of, or taking of any action in
> reliance upon, this information by persons or entities other
> than the intended recipient is prohibited. If you received
> this in error, please contact the sender and delete the material
> from any computer
> --


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




RE: ACTION= invoking servlets

2001-01-31 Thread Michael Wentzel

> I am trying to invoke a servlet from a form via POST and 
> action= however the servlet never runs and I don't see any 
> error messages. The URL appears correct in the browser when I 
> invoke it, however nothing happens. Any thoughts? Any help 
> would be appreciated. Thanks.

Put in some debugging output, or breakpoints if you have
debugging capabilities, and step through the servlet to make
sure:
  A. Your servlet is getting called
  B. Your servlet doPost() method is getting called
  C. Your servlet doPost() method is exiting normally
  D. If something is happening in doPost() what is the code
   that is raising a exception.

If you can't figure out the problem from this.  Post more information
on what exactly is happening and your configuration(settings in
web.xml, tomcat ver, OS, webserver config[stand alone or w/ IIS/Apache,
etc...).


---
Michael Wentzel
Software Developer
http://www.aswethink.com">Software As We Think
mailto:[EMAIL PROTECTED]">Michael Wentzel

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




ACTION= invoking servlets

2001-01-31 Thread Simmons, Donald

to all,

I am trying to invoke a servlet from a form via POST and action= however the servlet 
never runs and I don't see any error messages. The URL appears correct in the browser 
when I invoke it, however nothing happens. Any thoughts? Any help would be 
appreciated. Thanks.

dj

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




RE: how to enable ssi in tomcat. Urgent plssssssss

2001-01-31 Thread Coetmeur, Alain

I don't really understand all in your problem description.

anyway I had some problem myself by using taglibs that
"include" the result of some other relative URL
(see the XSL taglib, with the include tag)

my problem was multiple:
- I needed JSSE to support SSL 
(as a client), and add it as a security provider
(some properties to change as documented in jsse)
- I needed to set the URLConnectionFactory
 of JSSE as a replacement for the usual one...
it is a -Dsomething, documented in JSSE install doc
this allow tomcat to be an HTTPS client
- now you need to have a valid server certificate
for your HTTPS server (apache in my case)
whose common name is the DNS name
otherwise the HTTPS client in tomcat refuse
to trust the server
- you also need to add the trusted certificate
of your server CA for JSSE to trust the
server received...

not so simple in fact...


> -Message d'origine-
> De: Suresh.S.V [mailto:[EMAIL PROTECTED]]
> Date: jeudi 1 février 2001 01:33
> À: [EMAIL PROTECTED]
> Objet: how to enable ssi in tomcat. Urgent pl
> 
> 
> Hi
> Iam using tomcat 3.2.1+ apache 1.3.14 .In this servlets and 
> jsp are working
> fine. When i stop tomcat  server side includes are working 
> fine in html.But
> when i start tomcat also html includes are not working.Its 
> urgent.Pls
> help me.
> Thanx®ds
> Suresh
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




RE: send me details

2001-01-31 Thread Cumming, Murray

> I am using Tomcat on Apache, now it is loaded but
> now to run tomcat on Apache I need mod_jserv.so to
> run it properly.

Don't bother with mod_jserv.so. The documentation is not clear. Use
mod_jk.so instead. See
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html

Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com

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




send me details

2001-01-31 Thread hemantvartak

Dear sir/madam,
 I am using Tomcat on Apache, now it is loaded but now to run tomcat on Apache I 
need mod_jserv.so to run it properly.
 Tell me how to get it and use it, we are using Red Hat 7.0 on Intel 810 chipset 
and P III processor.
regards,
truly Bhushan Vartak
__
Get your own FREE, personal Netscape Webmail account today at 
http://webmail.netscape.com/

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




Problems with Tomcat 4.0/Cocoon 1.8.1

2001-01-31 Thread Juan Julian Merelo Guervos

Hi,
I have followed standard procedures to install cocoon on Tomcat 4.0
beta, but I get this error (in logs/catalina.out)

Exception in thread "main" java.lang.IllegalArgumentException:
addRepositoryInternal: java.lang.NullPointerException
at
org.apache.catalina.loader.StandardClassLoader.addRepositoryInternal(StandardClassLoader.java,
Compiled Code)
at
org.apache.catalina.loader.StandardClassLoader.(StandardClassLoader.java,
Compiled Code)
at
org.apache.catalina.startup.Bootstrap.createSharedLoader(Bootstrap.java,
Compiled Code)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java, Compiled
Code)

No idea what to do with it. Any help? Has anybody managed to make that
combination work?

Thanks!

J
--
  [EMAIL PROTECTED]  | [EMAIL PROTECTED]  
JJ Merelo | http://geneura.ugr.es/~jmerelo
Grupo Geneura  Univ. Granada  | http://www.geneura.org/

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




Tomcat and OpenSSL/Keytool

2001-01-31 Thread Steve Smale


Hi all,

I'm a bit confused here with tomcat and SSL.

I've generated a key using keytool -genkey -alias tomcat -keyalg RSA as
described in the tomcat faq. This works fine, although the certificate
appears as "signed by an unknown source", and we really need it to just
plop straight into https without any warnings appearing on the users
screens...

So I've looked at OpenSSL, and generated a key and signing-request, and
got a certificate via verisign, using openssl req -new -out REQ.csr
-keyout KEY.key, again, as in the tomcat faqs.

Whether i put this resulting key through verisign's "free trial" signing
process, or self-sign it with openssl req -x509 -in REQ.csr -key KEY.key
-out CERT.pem, i then install it into the keytool using keytool -import -v
trustcacerts -alias tomcat -file CERT.pem.

If I then visit the site with netscape, I get the error: Netscape and this
server cannot communicate securely because they have no common encryptino
algorithm(s). While internet explorer comes up with no sensible error, but
doesnt work with https.

Does anyone have any ideas what I am doing wrong with this method - it
seems somehow the key generated with openssl is not of the right format
for netscape/ie to understand, yet the one made with keytool -genkey works
fine; - but both are exactly to the letter from the tomcat faq's...

If I cannot get openssl to operate with it correctly, is there a way to
export the key from keytool? - i've only really found it possible to
export the certificate, but not the private key, if it is generated that
way...

Before I go completely insane, has anyone else had any experience of these
problems?

Thanks!!!

-- 

Regards

Steve Smale
Java Developer
Hugh Symons Information Management
Telephone: 0870 849 0220
Facsimile: 0870 849 0221

www.hughsymons.com


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




Connection aborted - jasper problem?

2001-01-31 Thread Stefan Meier

When calling jsp pages with IE5.5 tomcat throws IOExceptions for all
"external files" like gifs, css,
(2001-01-31 12:56:36 - Ctx(  ): IOException in: R(  + /gfx/header.gif +
null) Connection aborted by peer: socket write error

This does not occur when calling the pages with Netscape. However, I seem to
get a "connection aborted" message for a short moment before the new page is
loaded.

Although it doesn't seem to have any bad effects (the images show up
correctly and the css is loaded, jsp work perfectly), I'm wondering what is
causing the exception, i.e. is any special configuration required for IE
compatibility ?

Or is there probably a minor flaw in tomcat/jasper that jsp-compiled
servlets do not close the streams correctly? From what I saw in the
generated servlet source the HTTPResponseStream is flushed, but not closed.
Can this cause the above behaviour?

Many thanks for your help!


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




Problems with IIS and Tomcat

2001-01-31 Thread MartinPfingstl

Hello,

We have IIS4.0 with NT 4 SP6.

I installed tomcat 3.2.1 on the machine and installed isapi_redirect.dll to
integrate it into the IIS4.0 (the green arrow appears in IIS management
console, so I suppose isapi_redirect.dll is properly installed).

Unfortunately it does not work as expected:

Whenever I directly access tomcat on port 8007 via the web browser on
another machine, all works fine.

Whenever I access tomcat via IIS and isapi_redirect.dll, only the very first
call to a JSP or Servlet page gets through and gets handled correctly. All
subsequent calls then fail (even the same call as the very first), they do
not get handled (IIS reports 404 not found). Again, when I access tomcat
directly, it works fine.

Is this a known problem? Any solution? Suggestion?

Best regards,
  Martin Pfingstl



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




Re: Is, there any one

2001-01-31 Thread ANKUR JAIN


Hi,

If your html part is too long on the JSP page, then you might get this error,
this happens in JRUN.
We generally put <%  "Spaces" %>  somewhere in the JSP page in b/w the html
code to solve the problem.

let me know if this works.

Ankur


nagappan wrote:

> Hello all,
> I'm getting an Error in the screen, when clicking an link in any JSP
> page. The error is,
>
> "Error: JSP Buffer Overflow"
>
> What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.
>
> Thankx in advance
> Regards
> Nagappan
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




problem with configuration of tomcat .for virtual hosting

2001-01-31 Thread Samuel k

Servlets for virtual hosting is not working with us ,while running from
/servlet .we are getting internal server error problem.so if you can provide
us with the details of configuring it.please send steps involved.


thanks
skq
- Original Message -
From: "Kurt Bernhard Pruenner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 31, 2001 12:55 AM
Subject: Re: Delay in invoking first servlet


> Rachel Gollub wrote:
> > I've got tomcat running with apache, and everything's working fine,
> > but when I invoke the first servlet from a browser, I get a 60-80
> > second delay.  Everything after that is fast -- it's just that first
> > servlet that's showing the delay.  It doesn't matter which servlet
> > I use, or whether I  -- it still happens.  Anyone
> > know what's going on, or how to fix it?
>
> To quote myself from a message I sent a few days ago:
>
> > >When the getSession line is reached in the code it freezes
> > >for around 9-10 seconds before returning a session, leading
> > >the user to think theyre not going to get anything back...
> >
> > That's because of the secure random number generator that's used to
create the
> > session ID - it takes quite some time to initialize.
> >
> > You could try adding
> >
> > -dtomcat.sessionid.randomclass=java.util.Random
> >
> > to the JVM's command line (i.e. add the above string to TOMCAT_OPTS)
which makes
> > Tomcat use the standard JAVA random number generator... I guess they're
using the
> > SecureRandom generator because it'll make guessing the next session ID
harder based
> > on the current one, but I think that that's not needed for development
purposes,
> > especially with that speed hit incurred by using the SecureRandom
generator...
>
> That should fix your startup delay, but don't use this on production
> servers, as it would allow evil-minded individuals to semi-"guess"
> session IDs...
>
> --
> Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
> Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
> ...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
> np: Pole - Lachen (1)
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




RE: Difficulties getting JDBCRealm to work with MySQL driver

2001-01-31 Thread Ignacio J. Ortega

> Changing the semicolon in the connectionURL to an ampersand (= correct
> org.gjt.mm.mysql syntax) was refused by the SAX parser?
> 
> Am I overlooking something?  I am using Tomcat4-4.0-b1.1

in XML the ampersand is a special character, is forbidden in XML to
insert and "&" as is , to insert an ampersand you need use "&"


Saludos ,
Ignacio J. Ortega


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




Difficulties getting JDBCRealm to work with MySQL driver

2001-01-31 Thread hische



Hi,

I am trying to set up a JDBCRealm in Catalina's server.xml

After starting I find a message in the logs stating a connection could not be
established because access was denied.
What I don't understand is that MySQL states no password has been supplied and
the user trying to connect is named 'root;password@localhost' where it should be
 'root@localhost'.
Changing the semicolon in the connectionURL to an ampersand (= correct
org.gjt.mm.mysql syntax) was refused by the SAX parser?

Am I overlooking something?  I am using Tomcat4-4.0-b1.1

Regards,

Wilko

--- catalina_log.2001-01-31.txt --

2001-01-31 11:16:09 JDBCRealm[Standalone]: The database connection is null or
was found to be closed. Trying to re-open it.
2001-01-31 11:16:09 JDBCRealm[Standalone]: Cannot find message associated with
key 'jdbcRealm.checkConnectionSQLException'
java.sql.SQLException: Invalid authorization specification: Access denied for
user: 'root;password@localhost' (Using password: NO)
at org.gjt.mm.mysql.MysqlIO.init(MysqlIO.java)
at org.gjt.mm.mysql.Connection.connectionInit(Connection.java)
at org.gjt.mm.mysql.jdbc2.Connection.connectionInit(Connection.java:89)
at org.gjt.mm.mysql.Driver.connect(Driver.java)
at java.sql.DriverManager.getConnection(DriverManager.java:517)
at java.sql.DriverManager.getConnection(DriverManager.java:199)
at
org.apache.catalina.realm.JDBCRealm.checkConnection(JDBCRealm.java:614)
etcetera

--- server.xml -





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




urgent plsssss

2001-01-31 Thread Suresh.S.V

Hi
Iam using tomcat 3.2.1+ apache 1.3.14 .In this servlets and jsp are working
fine. When i stop tomcat  server side includes are working fine in html.But
when i start tomcat also html includes are not working.Its urgent.Pls
help me.
Thanx®ds
Suresh



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




re: solved: mod_jserv compilation problems

2001-01-31 Thread Olaf Grewe

Hi Alex,

do

>find / ' grep mod_jk-howto.html

Is located somewhere in the src directory of jakarta-tomcat-src.tar.gz.
Sorry for not being more specific but I'm not at my machine.

Regards
Olaf

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




Problem-URGENT-Pls Help

2001-01-31 Thread SUCHETA LELE

Hi!
I have a problem. We were using a proxy server for connecting to the 
internet. Now when I disable the proxy server thru inter options in my 
browser and execute some code which does a response.sendredirect to another 
JSp page, the javascript of the current page, the page(now empty), and the 
HTTP 200 OK code is shown on the page alongwith the output of the page 
redirected to. Why is this happening? Please help
Sucheta
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




how to enable ssi in tomcat. Urgent plssssssss

2001-01-31 Thread Suresh.S.V

Hi
Iam using tomcat 3.2.1+ apache 1.3.14 .In this servlets and jsp are working
fine. When i stop tomcat  server side includes are working fine in html.But
when i start tomcat also html includes are not working.Its urgent.Pls
help me.
Thanx®ds
Suresh



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




SV: Is, there any one

2001-01-31 Thread Jørgen Ramskov

Hey Nagappan,

Please stop sending the same question again and again!!!

For each time you send it you chance for getting an answer becomes worse and
the chances for getting flames gets much better...

/Joergen Ramskov


> Hello all,
> I'm getting an Error in the screen, when clicking an link 
> in any JSP
> page. The error is,
> 
> "Error: JSP Buffer Overflow"
> 
> What might b causing this error. I'm using Tomcat 3.2.1 / 
> Debian GNU/Linux.
> 
> Thankx in advance
> Regards
> Nagappan

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




TOMCAT/Apache & jk

2001-01-31 Thread Mazzino Nadia

Hi,

I tried to install TOMCAT 3.2.1 with Apache 1.3.9 and jk on a Digital Unix
5.0a (Tru64Unix)
I need them to load JSP

I began with TOMCAT, and the installation was fine; I succeded in running
TOMCAT without errors.

Then I tried to configure Apache to work with TOMCAT, but, after this
command:

./configure --prefix=/usr/local/apache --enable-module=most
--enable-shared=max --enable-rule=SHARED_CORE
make 
make install

and then in httpd.conf:

LoadModule   jk_module   libexec/mod_jk.c
AddModulemod_jk.c



The command:

apachectl start

doesn't run and the error is:

syntax error (the line is the LoadModule line)

In the mod_jk.so there is an unresolved  reference to pthread_unlock 


Thanks for help

Nadia






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




Is, there any one

2001-01-31 Thread nagappan

Hello all,
I'm getting an Error in the screen, when clicking an link in any JSP
page. The error is,

"Error: JSP Buffer Overflow"

What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.

Thankx in advance
Regards
Nagappan


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




Help Help

2001-01-31 Thread nagappan

Hello all,
I'm getting an Error in the screen, when clicking an link in any JSP
page. The error is,

"Error: JSP Buffer Overflow"

What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.

Thankx in advance
Regards
Nagappan


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




Can this b solved

2001-01-31 Thread nagappan

Hello all,
I'm getting an Error in the screen, when clicking an link in any JSP
page. The error is,

"Error: JSP Buffer Overflow"

What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.

Thankx in advance
Regards
Nagappan


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




Can any one solve this

2001-01-31 Thread nagappan

Hello all,
I'm getting an Error in the screen, when clicking an link in any JSP
page. The error is,

"Error: JSP Buffer Overflow"

What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.

Thankx in advance
Regards
Nagappan


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




Do any one know this

2001-01-31 Thread nagappan

Hello all,
I'm getting an Error in the screen, when clicking an link in any JSP
page. The error is,

"Error: JSP Buffer Overflow"

What might b causing this error. I'm using Tomcat 3.2.1 / Debian GNU/Linux.

Thankx in advance
Regards
Nagappan


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




Re: solved: mod_jserv compilation problems

2001-01-31 Thread Alex A. Almero

kindly send me the link
thanks
- Original Message - 
From: "Olaf Grewe" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, January 24, 2001 8:40 PM
Subject: solved: mod_jserv compilation problems


> Hi all,
> 
> thanks for any suggestions, I finally found the mod_jk-howto. mod_jk
> build fine, so no questions open (I hope).
> 
> There just one suggestion: why isn't this incorporated into the user's
> guide?
> 
> Es grüßt
> Olaf
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
†(¹†¡¢ž·*.­úÞ{&¡¢‡(™§]­ë,jØm¶Ÿÿ™¨¥É¨h¡Ê&


=?utf-7?q?context?=

2001-01-31 Thread M . J . Birkin

Can I take that there isn't a way of setting up tomcat so that any user can
run jsp files from their web space no matter where they are on the server
i.e. can't you set global path for whole of web site?


I have 200 students who need to write jsp files and just upload them to
their webspace.

please any thoughts?

thanks Matthew

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




Re: AW: Classpath Woe

2001-01-31 Thread hische



Hi,

I am migrating from Tomcat 3.2.1 to 4.0b and noticed that I had to move the jar
file containing the mysql JDBC driver (used for a JDBCRealm) from
$TOMCAT_HOME/lib to $TOMCAT_HOME/bin ???
My guess is jars in lib are not added to the classpath anymore because you are
supposed to put them in the WEB-INF/lib of the webapp, but in case of a JDBC
driver I find this inconvenient. Furthermore I found several jar in
$TOMCAT_HOME/lib such as crimson.jar, jasper.jar etc.

Regards,

Wilko





"Thomas Bezdicek" <[EMAIL PROTECTED]> on 31-01-2001 10:34:17

Please respond to [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:(bcc: Wilko Hische/HADV/NL)
Subject:  AW: Classpath Woe






Hi,

I have to disagree. Having classes12.zip at $TOMCAT_HOME/lib and then
restarting worked fine
for us.

cheers

bez

-Ursprüngliche Nachricht-
Von: Gerald McCollam [mailto:[EMAIL PROTECTED]]
Gesendet: Mittwoch, 31. Jänner 2001 01:55
An: [EMAIL PROTECTED]
Betreff: Classpath Woe


  hi, i've been having the same problem as several others here -- tomcat
can't find my oracle jdbc drivers no matter where they're located. i placed
a copy of classes12.zip (for oracle) in every conceivable place with no luck
and finally decided tomcat doesn't like class packages if they're zipped. my
fix is to unzip and re-jar...(i.e. simply renaming the zip file didn't work,
duh)

  for oracle:

  1. unzip the original file (classes11.zip or classes12.zip) into your
$TOMCAT_HOME/lib directory. this will place two directories there: oracle
and javax. i didn't need javax so i threw it out

  2. open a shell and cd to $TOMCAT_HOME/lib

  3. jar up the oracle directory using  "jar cvf oracle.jar oracle." you can
name the jar file whatever you want.

  4. restart tomcat

  that worked for me!

  cheers

  - gerald





Hi,
 
I have 
to disagree. Having classes12.zip at $TOMCAT_HOME/lib and then restarting worked 
fine
for 
us.
 
cheers
 
bez
-Ursprüngliche Nachricht-Von: Gerald McCollam 
[mailto:[EMAIL PROTECTED]]Gesendet: Mittwoch, 31. Jänner 2001 
01:55An: [EMAIL PROTECTED]Betreff: Classpath 
Woe

  hi, i've been having the same problem as several 
  others here -- tomcat can't find my oracle jdbc drivers no matter 
  where they're located. i placed a copy of classes12.zip (for oracle) in 
  every conceivable place with no luck and finally decided tomcat doesn't like 
  class packages if they're zipped. my fix is to unzip and re-jar...(i.e. 
  simply renaming the zip file didn't work, duh)
   
  for oracle: 
   
  1. unzip the original file (classes11.zip or 
  classes12.zip) into your $TOMCAT_HOME/lib directory. this will place two 
  directories there: oracle and javax. i didn't need javax so i threw it 
  out
   
  2. open a shell and cd to $TOMCAT_HOME/lib 
  
   
  3. jar up the oracle directory using  "jar cvf oracle.jar oracle." you can name the jar 
  file whatever you want.
   
  4. restart tomcat
   
  that worked for me!
   
  cheers
   
  - gerald

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


  1   2   >