Re: mod_jk problem

2002-03-25 Thread Bernd Koecke

Hi,

I'm not an apache expert, but you configured in your mod_jk.conf the 
JkMount directives only for localhost without a port. So apache won't 
look into the VirtualHost localhost when you request limselsrv:9000

The lines from your mod_jk.log file are quite normal. But there should 
be an additional line, which says that a worker was found.

Hope this helps

Bernd

Fabien Nisol wrote:
> Hello all..
> 
> I've got some problems accessing my tomcat pages through tomcat using 
> mod_jk...
> 
> I'm currently trying to link apache (1.3.24) and tomcat (4.0.3) 
> together... My first problem was tru64 ... I had to patch and hack 
> mod_jk like a fool !
> But it finally worked...
> Both servers run fine, my tomcat jsp webapp is deployed and accessible 
> onto limselsrv:8080/limselControl (it work without any problem onto tomcat)
> 
> Apache is configured to include the tomcat generated mod_jk.conf file, 
> in httpd.conf:
> 
> Include /disk14/products/tomcat/appli//conf/auto/mod_jk.conf
> 
> the generated mod_jk.conf contains the following lines, after tomcat 
> startup:
> 
> ## Auto generated on Mon Mar 25 15:27:15 GMT-05:00 2002##
> 
> 
>   LoadModule jk_module libexec/mod_jk.so
> 
> 
> JkWorkersFile 
> "/disk14/products/tomcat/jakarta-tomcat-4.0.3/conf/jk/workers.properties"
> JkLogFile "/disk14/products/tomcat/jakarta-tomcat-4.0.3/logs/mod_jk.log"
> 
> JkLogLevel debug
> 
> 
> 
> 
> ServerName localhost
> 
> JkMount /limselControl ajp13
> JkMount /limselControl/*.jsp ajp13
> 
> 
> the workers.properties file contains the following:
> 
> # Setup for limselsrv
> #
> workers.tomcat_home=/disk14/products/tomcat/appli
> workers.java_home=/usr/opt/java130
> ps=/
> worker.list=ajp12, ajp13
> 
> # Definition for Ajp13 worker
> #
> worker.ajp13.port=8009
> worker.ajp13.host=localhost
> worker.ajp13.type=ajp13
> 
> 
> 
> 
> When it comes to test the pages through apache, going to 
> http://limselsrv:9000/limselControl does not work. I've a 404 apache 
> error, and the following lines into mod_jk.log file:
> 
> [Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (447)]: Into 
> jk_uri_worker_map_t::map_uri_to_worker
> [Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (464)]: Attempting to 
> map URI '/limselControl'
> 
> 
> Any clue for my problem ??? It seems that mod_jk does not find my tomcat 
> files .. :( ...
> 
> 
> 
> 
> 



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


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: bill caricature -- This was a virus (just in case anyone did not understand)

2002-03-25 Thread Nikola Milutinovic

W32/Caric-A as recognized by Sophos AV.

Nix.



Problem with mime types

2002-03-25 Thread Héctor Garcia Peris

Hello all,

I have tomcat 3.2.2 running in a debian potato 2.2.l9. I have a problem 
with mime types. When I get a page with extension .css I see that the mime 
type that the server returns to me is text/plain. I find a file under the 
conf directory that is web.xml that there are lines with this:

 
 
 wrl
 
 
 x-world/x-vrml
 
 

I think that here is where I can put my extensions and I put the following 
lines:

 
 
 css
 
 
 text/css
 
 
 
 
 js
 
 
 application/x-javascript
 
 

But when I restart the tomcat server and I get the file 
http://localhost:8080/estilos.css, the mime type is still text/plain, and 
not text/css.

What am I making wrong?

Thanks.


-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (Ivie)
C/ Guardia Civil, 22 esc-2 1º 46020 - Valencia (Spain)
Tfno.: +34 - 963190050 / +34 - 963930816
Fax.: +34 - 963190055 / +34 - 963930856
e-mail: [EMAIL PROTECTED]
--



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (Ivie)
C/ Guardia Civil, 22 esc-2 1º 46020 - Valencia (Spain)
Tfno.: +34 - 963190050 / +34 - 963930816
Fax.: +34 - 963190055 / +34 - 963930856
e-mail: [EMAIL PROTECTED]
--



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat 4.0 with IIIS5

2002-03-25 Thread Mark Eggers

Yes, I have Tomcat 4.0 running on a Windows 2000
Professional Laptop with Cocoon 2.02-dev, Jetspeed,
the Turbine Development Kit, and a few other oddities
on top of IIS 5.

Needless to say, my laptop is pretty bogged down. 
I'll try and get something written up in the next day
or so to publish to the mailing list.

To make a long story short however, you'll need to
follow the instructions for Tomcat 3.3a for the
redirect.dll part, and use the latest redirector you
can get.

That seems to be the gist of things - but I'll write
up a step by step in the next day or so.

/mde/

--- Stella Martzoukou <[EMAIL PROTECTED]> wrote:
> I have been trying to get Tomcat 4.0 to work with
> IIS the last few days.
> I have been testing it on a laptop that runs Windows
> 2000 and the
> redirect.dll does not work in my case either. I 've
> tried with Tomcat 3.2.1
> as well but i got the same result..
> 
> Of course, I followed every instruction as described
> on the web page
> http://www.vacodi.com/howto/tomcat/iisnt/index.html
> but still nothing..
> 
> ..any suggestion would be very helpful!
> 
> Thanks,
> 
> Stella
> 
> - Original Message -
> From: "A. Lai" <[EMAIL PROTECTED]>
> To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> Sent: Saturday, March 23, 2002 7:37 AM
> Subject: tomcat 4.0 with IIIS5
> 
> 
> > Looks like tomcat 4.0 may be broken on W2K.
> > The redirect from IIS simply refused to work.
> >
> > Anyone out there with success with Tomcat/IIS/W2K
> and what version of
> Tomcat
> > do you use?
> >
> > Thanks
> >
> > Alec
> >
> >


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: tomcat 4.0 with IIIS5

2002-03-25 Thread Stella Martzoukou

I have been trying to get Tomcat 4.0 to work with IIS the last few days.
I have been testing it on a laptop that runs Windows 2000 and the
redirect.dll does not work in my case either. I 've tried with Tomcat 3.2.1
as well but i got the same result..

Of course, I followed every instruction as described on the web page
http://www.vacodi.com/howto/tomcat/iisnt/index.html
but still nothing..

..any suggestion would be very helpful!

Thanks,

Stella

- Original Message -
From: "A. Lai" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Saturday, March 23, 2002 7:37 AM
Subject: tomcat 4.0 with IIIS5


> Looks like tomcat 4.0 may be broken on W2K.
> The redirect from IIS simply refused to work.
>
> Anyone out there with success with Tomcat/IIS/W2K and what version of
Tomcat
> do you use?
>
> Thanks
>
> Alec
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: bill caricature -- This was a virus (just in case anyone did not understand)

2002-03-25 Thread Joel Rees

- Original Message -
From: "Yuval Levav" <>
To: "Tomcat-User" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 4:11 PM
Subject: bill caricature


> Hi
> How are yo?
> look to bill caricature it's vvvery vey unny :-) :-)
> i promise you will love it? ok
> buy
>
> No Viruse Found
>  MCAFEE.COM
> 
>






> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: bill caricature

2002-03-25 Thread yilmaz

looking at the tone of his writing , one can easily understand what hell it
contains.

- Original Message -
From: "Stephan Mülhaus" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 3:16 PM
Subject: Re: bill caricature


Be careful this Mail contains a Virus!


At 09:11 26.03.2002 +0200, you wrote:
>--  Virus Warning Message (on raq4b.nwu.de)
>
>Found virus WORM_MYLIFE.B in file cari.scr
>The uncleanable file cari.scr is moved to /etc/iscan/virus/virsnOfKl.
>
>-
>Hi
>How are yo?
>look to bill caricature it's vvvery vey unny :-) :-)
>i promise you will love it? ok
>buy
>
>No Viruse Found
>  MCAFEE.COM
>
>--  Virus Warning Message (on raq4b.nwu.de)
>
>cari.scr is removed from here because it contains a virus.
>
>---
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--

--

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2

--



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: bill caricature

2002-03-25 Thread Stephan Mülhaus

Be careful this Mail contains a Virus!


At 09:11 26.03.2002 +0200, you wrote:
>--  Virus Warning Message (on raq4b.nwu.de)
>
>Found virus WORM_MYLIFE.B in file cari.scr
>The uncleanable file cari.scr is moved to /etc/iscan/virus/virsnOfKl.
>
>-
>Hi
>How are yo?
>look to bill caricature it's vvvery vey unny :-) :-)
>i promise you will love it? ok
>buy
>
>No Viruse Found
>  MCAFEE.COM
>
>--  Virus Warning Message (on raq4b.nwu.de)
>
>cari.scr is removed from here because it contains a virus.
>
>---
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


--
--
 

Stephan Mülhaus  [EMAIL PROTECTED]
NWU Gesellschaft fuer Netzwerk und Kommunikation mbH
Phone: +49-231-986510 - 0
FAX: +49-231-986522 - 2
--
 



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




bill caricature

2002-03-25 Thread Yuval Levav

Hi
How are yo?
look to bill caricature it's vvvery vey unny :-) :-)
i promise you will love it? ok
buy

No Viruse Found
 MCAFEE.COM

<>

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


Re: JNDI / DataSource problems

2002-03-25 Thread Nikola Milutinovic

> I'm having some problems initialising a DataSource object for the purposes of
> connection pooling under tomcat.
> 
> The database to which I'm trying to connect is Postgresql. The connections
> work fine with the standard java.sql.* approach.

Join the club. :-(

> Basically when I try to acquire a DataSource object, I get null. Nothing in
> my log files indicates the cause of the problem - or indeed that there is a
> problem at all (aside from my own log4j output).
> 
> When using the standard java.sql stuff my jsp & servlets work perfectly in
> every respect, so I'm confident that the rest of my configuration is correct. 
> Or correct enough, anyway.

Same here, same behaviour, PostgreSQL 7.2

> Versions:
> tomcat: 4.0.3
> jdk: 1.3.1
> j2sdkee: 1.3
> postgresql: 7.1.3
> log4j: 1.2beta4

One poster suggested it was the sign of Tyrex being unable to create a DataSource 
object. PostgreSQL in it's JAR doesn't have a DataSource implementation. Now there 
were some guys who say it is in the sources in developers version. I'll dig there 
deeper, if anything comes up, I'll e-mail.

Nix.



Re: Tomcat 4.0.4-b2 available?

2002-03-25 Thread Remy Maucherat

> I noticed that the following directory now exists on the Jakarta Web site.
>
> http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b2/bin/
>
> Does this mean that 4.0.4-b2 is out? Or, is that a nightly build?

There was no announcement, so it is not out yet. The binaries were uploaded
for verification (and it turns out there are issues with them, so that will
be modified).

> Also, anyone know if this release will contain the JNDIRealm enhancements?
I
> think Craig was saying that they wouldn't necessarily be in there since
they
> are enhancements rather than bug fixes?

I think this will be in the 4.1 release cycle.

Remy


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Start Problems

2002-03-25 Thread Ryan Heaton

I'm on RedHat 7.1, and I've never been able to get Tomcat 4 to start listening for 
incoming connections.

I've installed both by RPM and by simply unpacking the binary distribution and I get 
the same problem.  I've got the jdk1.3.1_02 directory set correctly as $JAVA_HOME in 
the environment, I've got my $CLASSPATH set to servlet.jar (and nothing else), and 
I've got $JAVA_PATH set to jdk1.3.1_02/bin.

I run the standard init script in /etc/init.d/tomcat4 to start/stop/restart tomcat.  
Everything appears to run with no hitch whatsoever, but nothing listens on port 8180 
or any other standard tomcat port for that matter (according to netstat -a) after 
startup.  There's nothing in catalina.out--completely empty (making me assume no 
hitches).  There are no other logs in the 'logs' directory that are created after 
startup.

When I run the init script, I do so as root, but from what I can tell that's how I 
should start it up.

Anyone have any ideas here?  I'm stumped.



Re: JSP Examples not working HTTP 500

2002-03-25 Thread Syam Rajasekharuni

The same example works OK here Win NT.

Day of month: is 26
Year: is 2002
Month: is March
Time: is 16:25:43
Date: is 3/26/2002
Day: is Tuesday
Day Of Year: is 85
Week Of Year: is 13
era: is 1
DST Offset: is 1
Zone Offset: is 10

Try stop and restart Tomcat. I have also started Apache server.


- Original Message -
From: "balash hauser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, March 26, 2002 3:23 PM
Subject: JSP Examples not working HTTP 500


> I just installed Tomcat 4.0.3 in my w2k pc. I can get
> to http://localhost:8080/index.html OK. But if I view
> the JSP Examples that came with the install (ie:
> http://localhost:8080/examples/jsp/dates/date.jsp)
> Im getting internal server error. Any clue?
>
>
>
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JSP Examples not working HTTP 500

2002-03-25 Thread balash hauser

I just installed Tomcat 4.0.3 in my w2k pc. I can get
to http://localhost:8080/index.html OK. But if I view
the JSP Examples that came with the install (ie:
http://localhost:8080/examples/jsp/dates/date.jsp)
Im getting internal server error. Any clue?



__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Handle Catalina.log

2002-03-25 Thread Moi
How to handle Catalina.out[Log file] cause it is growing time by time.
Is it possible to use Multilog if so how?



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


How to POST very large data to Servlet? (a question about ServletRequest.getInputStream)

2002-03-25 Thread Zhidong Yu

I want to use HTTP's POST method to send some very large and unknown
length data to server. The servlet just receives the data and writes
them to disk. The data may be larger than server's buffer size. 
When the doPost method of my servlet is triggered, has all the content
of the HTTP request been transferred to server side? 

If so, how can I POST very large data by HTTP POST method? 

If not, the calling to getInputStream() does open the valve to accept
data. Am I right?



smime.p7s
Description: application/pkcs7-signature


DISREGARD PREV RE: Client Side Authentication with Certificates...HOW?

2002-03-25 Thread Allen Harper

Please disregard previous email, I had a bad build of tomcat running.
Or at least, I messed up something.  I just reinstalled tomcat, and all
is well.
 
Sorry for waiting bandwidth...I am sure I will have a real problem
soon... more then
 
Allen

-Original Message-
From: Allen Harper [mailto:[EMAIL PROTECTED]] 
Sent: Monday, March 25, 2002 3:52 PM
To: [EMAIL PROTECTED]
Subject: Client Side Authentication with Certificates...HOW?


Hello, I am new to Tomcat.  I am trying to get Client Side
Authentication to work.   Below is a snippet from my server.xml file.
When I set the clientAuth="false", I can connect to the server with SSL
(server side as expected).  But when I set it as shown below
(clientAuth="true"), I get "The page cannot be displayed" error when
going to   https://localhost:8443   Works fine
with   http://localhost

I created the keystore and added two trusted CA certificates to it.
But, I can't even get it to pop up with request for client certificates.

Any ideas at all would be appreciated.

Attached are my logs.

-









I have not got to trying to protect a particular resource, figured I
would get it up first.  I have tried to play with web.xml, no luck, I
set it back to default.  If I need to include any other snippets, please
let me know.

allen harper




Configuring Tomcat 4

2002-03-25 Thread Larry Chambers

I would like to configure Tomcat, but the xml files are not very easy to 
follow.  All i'm trying to do right now is set up everything to make another 
directory ROOT, which is the one that I have apache pointing to right now.  
If it would be easier to just configure apache to send requests to tomcat 
then how can I do that?  I've heard something of a mod_webapp module but 
haven't found it for windows yet.  I'm on windows xp so usually windows 9x 
or windows 2000 stuff will work.


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Disregard the prev mail:problem with getting SSL to work

2002-03-25 Thread Rocky

Hi,
 Please disregard the previous email. 

Thanks,
rocky

--- Rocky <[EMAIL PROTECTED]> wrote:
> Hi,
>   I have followed the instructions at the
> website
> and when I restart tomcat server and try to view
> http://localhost:8443, all I get is five squares! I
> do
> not get the home page like I get for localhost:8080.
> The instructions asked me to download JSSE, copy the
> 3
> jar files to %JAVA_HOME/jre/lib/ext, create a
> keystore
> (and I didn't change the default password or the
> location), uncomment the SSL portion from the
> server.xml file and restart tomcat. I have done this
> process multiple times now without any success. Any
> comments on what am I doing wrong? 
> 
> Thanks,
> rocky
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards®
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




problem with getting SSL to work

2002-03-25 Thread Rocky

Hi,
  I have followed the instructions at the website
and when I restart tomcat server and try to view
http://localhost:8443, all I get is five squares! I do
not get the home page like I get for localhost:8080.
The instructions asked me to download JSSE, copy the 3
jar files to %JAVA_HOME/jre/lib/ext, create a keystore
(and I didn't change the default password or the
location), uncomment the SSL portion from the
server.xml file and restart tomcat. I have done this
process multiple times now without any success. Any
comments on what am I doing wrong? 

Thanks,
rocky

__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet mapping question

2002-03-25 Thread Sanjay Bahal

Yes this works? I will paly with it more and post.
Thanks a lot,
Sanjay
--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> Sanjay,
> Try
> http://localhost:8080//search/SearchServlet
> 
> where  is the directory name under webapps.
> Lance
> 
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 25, 2002 5:04 PM
> To: Tomcat Users List
> Subject: RE: Servlet mapping question
> 
> 
> My problem has been this mapping has not worked:
> 
>   SearchServlet
>  
> /search/SearchServlet
> 
>If I try to call this-
> http://localhost:8080/search/SearchServlet it fails
> uneless I make mapiing to /search/*.
> Thanks
> Sanjay
> --- Lance Smith <[EMAIL PROTECTED]>
> wrote:
> > Then according to Craig's previous email you need
> > to-do
> > something like this:
> > 
> >   SearchServlet
> >  
> > /search/SearchServlet
> > 
> > 
> >   SearchServlet2
> >  
> > /search/SearchServlet2
> > 
> > 
> > then you should reach it with
> > http:/.../search/SearchServlet or
> > http://.../search/SerchServlet2 for you're two
> > different ones.
> > 
> > Let me know if this is what you are looking for.
> > Lance
> > 
> > -Original Message-
> > From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 22, 2002 3:16 PM
> > To: Tomcat Users List
> > Subject: RE: Servlet mapping question
> > 
> > 
> > I have a similar issue- albeit simpler. I have two
> > servlets in one subdir. I have mapped it with
> > something like-
> > 
> >  SearchServlet
> >  /search/*
> >  
> > As a result of which /search/anything calls the
> > SearchServlet. How do I map to another servlet in
> > the
> > same directory. I tried removing the /* and giving
> a
> > specific name- the 1st servlet itself fails.
> > Thanks
> > Sanjay
> > --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> > wrote:
> > > 
> > > 
> > > On Fri, 22 Mar 2002, Sean LeBlanc wrote:
> > > 
> > > >
> > > > To add even more to this - I can't even get
> the
> > > pattern like this
> > > > to work:
> > > >
> > > > /c*
> > > >
> > > > anything typed doesn't seem to get recognized
> > and
> > > used by the
> > > > servlet. Any ideas would be welcome.
> > > >
> > > 
> > > You might start by consulting the Servlet
> > > Specification, to see what
> > > mapping patterns are legal :-).
> > >
> >
> 
> > > 
> > > 1.  Exact match (/foo or /foo/bar)
> > > 2.  Prefix match (/* or /foo/* or /foo/bar/*)
> > > 3.  Extension match (*.jsp or *.foo)
> > > 4.  Default servlet (/) used if no other mapping
> > > matches.
> > > (NOTE:  Tomcat 4 uses this for the
> > file-serving
> > > servlet,
> > > so replacing it will remove file serving
> > unless
> > > you do
> > > that yourself)
> > > 
> > > The rules are applied hierarchically -- in other
> > > words, the container
> > > checks for exact matches first, then prefix
> > matches,
> > > ...
> > > 
> > > In each case, request.getServletPath() will
> return
> > > the portion of the
> > > request URI that was used to map to your
> servlet. 
> > > In case (2), anything
> > > after the matching part will be returned via
> > > request.getPathInfo().
> > > 
> > > Craig McClanahan
> > > 
> > > 
> > > --
> > > To unsubscribe:  
> > >
> >
> 
> > > For additional commands:
> > > 
> > > Troubles with the list:
> > > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Movies - coverage of the 74th Academy
> Awards.
> > http://movies.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.3 Custom Tag Limitation???

2002-03-25 Thread Pavel Brun

Is there a document that details the 64 KB limitation issue under
JVM? Where could I read more about it?

Thanks
Paul

-Original Message-
From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 2:11 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.0.3 Custom Tag Limitation???


The Tomcat 4.0.x option equivalent to Tomcat 3.3's
JSPInterceptor attribute is found in Tomcat 4.0.x's global
webapp defaults file, conf/web.xml.  See the "The JSP page
compiler and execution servlet" section.  It will buy you
a little breathing room, but can't get around the 64K
limit, which is a JVM issue.  If you are hitting this
limit, it may be time to try splitting up the JSP page
into multiple JSP pages.

Cheers,
Larry

> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 25, 2002 2:00 PM
> To: Tomcat User
> Subject: Tomcat 4.0.3 Custom Tag Limitation???
> 
> 
> Hello all,
> 
> I am running into a problem processing a JSP page with a 
> large number of
> taglibs and encountered
> the following exception (shown below). We found bug 6088 
> (related to Tomcat
> 3.3 Final) which details
> this error detailing a limitation on the class file size (64 
> KB). There was
> a solution to set the
> "largeFile" parameter to "true" for the JSPInterceptor under 
> server.xml, but
> this is not an option
> under Tomcat 4.0.3. Are there any workarounds or solutions 
> that will permit
> classes files to go beyond
> this limit
> 
> Please let me know.
> Thanks
> Paul
> 
> Exception Below:
> 
> 
> javax.servlet.ServletException: (class: 
> org/apache/jsp/display$jsp, method:
> _jspService signature:
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht
> tpServletRespo
> nse;)V) Illegal target of jump or branch
> 
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
>   at java.lang.Thread.run(Unknown Source)
> 
> root cause
> 
> java.lang.VerifyError: (class: org/apache/jsp/display$jsp, method:
> _jspService signature:
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht
> tpServletRespo
> nse;)V) Illegal target of jump or branch
> 
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Unknown Source)
>   at
> org.apache.jaspe

RE: Servlet mapping question

2002-03-25 Thread Lance Smith

Sanjay,
Try
http://localhost:8080//search/SearchServlet 
where  is the directory name under webapps.
Lance


-Original Message-
From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
Sent: Monday, March 25, 2002 5:04 PM
To: Tomcat Users List
Subject: RE: Servlet mapping question


My problem has been this mapping has not worked:

  SearchServlet
  /search/SearchServlet

   If I try to call this-
http://localhost:8080/search/SearchServlet it fails
uneless I make mapiing to /search/*.
Thanks
Sanjay
--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> Then according to Craig's previous email you need
> to-do
> something like this:
> 
>   SearchServlet
>  
> /search/SearchServlet
> 
> 
>   SearchServlet2
>  
> /search/SearchServlet2
> 
> 
> then you should reach it with
> http:/.../search/SearchServlet or
> http://.../search/SerchServlet2 for you're two
> different ones.
> 
> Let me know if this is what you are looking for.
> Lance
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 3:16 PM
> To: Tomcat Users List
> Subject: RE: Servlet mapping question
> 
> 
> I have a similar issue- albeit simpler. I have two
> servlets in one subdir. I have mapped it with
> something like-
> 
>  SearchServlet
>  /search/*
>  
> As a result of which /search/anything calls the
> SearchServlet. How do I map to another servlet in
> the
> same directory. I tried removing the /* and giving a
> specific name- the 1st servlet itself fails.
> Thanks
> Sanjay
> --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> wrote:
> > 
> > 
> > On Fri, 22 Mar 2002, Sean LeBlanc wrote:
> > 
> > >
> > > To add even more to this - I can't even get the
> > pattern like this
> > > to work:
> > >
> > > /c*
> > >
> > > anything typed doesn't seem to get recognized
> and
> > used by the
> > > servlet. Any ideas would be welcome.
> > >
> > 
> > You might start by consulting the Servlet
> > Specification, to see what
> > mapping patterns are legal :-).
> >
> 
> > 
> > 1.  Exact match (/foo or /foo/bar)
> > 2.  Prefix match (/* or /foo/* or /foo/bar/*)
> > 3.  Extension match (*.jsp or *.foo)
> > 4.  Default servlet (/) used if no other mapping
> > matches.
> > (NOTE:  Tomcat 4 uses this for the
> file-serving
> > servlet,
> > so replacing it will remove file serving
> unless
> > you do
> > that yourself)
> > 
> > The rules are applied hierarchically -- in other
> > words, the container
> > checks for exact matches first, then prefix
> matches,
> > ...
> > 
> > In each case, request.getServletPath() will return
> > the portion of the
> > request URI that was used to map to your servlet. 
> > In case (2), anything
> > after the matching part will be returned via
> > request.getPathInfo().
> > 
> > Craig McClanahan
> > 
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards.
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Servlet mapping question

2002-03-25 Thread Sanjay Bahal

My problem has been this mapping has not worked:

  SearchServlet
  /search/SearchServlet

   If I try to call this-
http://localhost:8080/search/SearchServlet it fails
uneless I make mapiing to /search/*.
Thanks
Sanjay
--- Lance Smith <[EMAIL PROTECTED]>
wrote:
> Then according to Craig's previous email you need
> to-do
> something like this:
> 
>   SearchServlet
>  
> /search/SearchServlet
> 
> 
>   SearchServlet2
>  
> /search/SearchServlet2
> 
> 
> then you should reach it with
> http:/.../search/SearchServlet or
> http://.../search/SerchServlet2 for you're two
> different ones.
> 
> Let me know if this is what you are looking for.
> Lance
> 
> -Original Message-
> From: Sanjay Bahal [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 3:16 PM
> To: Tomcat Users List
> Subject: RE: Servlet mapping question
> 
> 
> I have a similar issue- albeit simpler. I have two
> servlets in one subdir. I have mapped it with
> something like-
> 
>  SearchServlet
>  /search/*
>  
> As a result of which /search/anything calls the
> SearchServlet. How do I map to another servlet in
> the
> same directory. I tried removing the /* and giving a
> specific name- the 1st servlet itself fails.
> Thanks
> Sanjay
> --- "Craig R. McClanahan" <[EMAIL PROTECTED]>
> wrote:
> > 
> > 
> > On Fri, 22 Mar 2002, Sean LeBlanc wrote:
> > 
> > >
> > > To add even more to this - I can't even get the
> > pattern like this
> > > to work:
> > >
> > > /c*
> > >
> > > anything typed doesn't seem to get recognized
> and
> > used by the
> > > servlet. Any ideas would be welcome.
> > >
> > 
> > You might start by consulting the Servlet
> > Specification, to see what
> > mapping patterns are legal :-).
> >
> 
> > 
> > 1.  Exact match (/foo or /foo/bar)
> > 2.  Prefix match (/* or /foo/* or /foo/bar/*)
> > 3.  Extension match (*.jsp or *.foo)
> > 4.  Default servlet (/) used if no other mapping
> > matches.
> > (NOTE:  Tomcat 4 uses this for the
> file-serving
> > servlet,
> > so replacing it will remove file serving
> unless
> > you do
> > that yourself)
> > 
> > The rules are applied hierarchically -- in other
> > words, the container
> > checks for exact matches first, then prefix
> matches,
> > ...
> > 
> > In each case, request.getServletPath() will return
> > the portion of the
> > request URI that was used to map to your servlet. 
> > In case (2), anything
> > after the matching part will be returned via
> > request.getPathInfo().
> > 
> > Craig McClanahan
> > 
> > 
> > --
> > To unsubscribe:  
> >
> 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Movies - coverage of the 74th Academy Awards.
> http://movies.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple users share java bean?

2002-03-25 Thread Daniel Hinojosa

In that case I recommend a facade bean in order to do this

For example, doing this.




Chenming Zhao wrote:

>Dniel,
>
>There is still one problem: the value set by the second user2 updated the
>value of the first user1 before finishing user1's work. I paste the code.
>Please take a look.
>
>public class test
>{
>int numEvents= 5;
>
>public synchronized int test()
>{
>int real=0;
>int eventCounter=0;
>
>while(eventCounter<=numEvents)
>{
>real=eventCounter;
>
>// wait for 0.01 second
>try{wait(10);}
>catch(InterruptedException e){};
>eventCounter++;
>}
>return real;
>}
>
>public synchronized int setNumEvents(int sec)
>{
>numEvents= sec;
>}
>}
>
>For example, I input 200 as the value of numEvents for user1. Before
>finishing user1's task, user2 input 100 as numEvents and  begin his work. I
>hope I can get results 200 and 100 respectively. But I got 100 both.
>
>- Original Message -
>From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
>To: "Tomcat Users List" <[EMAIL PROTECTED]>
>Sent: Monday, March 25, 2002 11:35 AM
>Subject: Re: Multiple users share java bean?
>
>>If it's a shared bean, sycnchronize it.   Make sure that
>>all mutators(Setters) are synchronized, and it would be a bad idea to do
>>that to the
>>accessors (mututors) are synchronized too.  If you have more open than
>>private member variables in this bean, make sure they are private.
>>e.g.
>>
>>public void synchronized setName(String name) {
>>.
>>}
>>
>>--
>>Daniel Hinojosa
>>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>
public  class TestFacade {
private Test test = null;
public void synchronized process() {
   if (test == null) test = new Test();
   test.test();
   test.setNumEvents(2);
}
}


With this I am pretty sure that you can take the synchronized off of 
methods of the Test Object and always use this testFacade before using 
your test object.

Hope that helps

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp.so GLIBC_2.2 error on RH 6.1

2002-03-25 Thread Alan Pogrebinschi

I had exactly the same problem. You just have to get the mod_webapp.so
source and compile it yourself.

The only thing that worked for me was getting the source directly from the
CVS, as well as the APR. I'll paste here the info from the README.txt file:

"Check out the module sources from CVS using the following commands:

cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic login
(Logging in to [EMAIL PROTECTED])
CVS password: anoncvs
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic \
checkout jakarta-tomcat-connectors/webapp

Once CVS downloads the WebApp module sources, we need to download the
APR (Apache Portable Runtime) sources. To do this simply:

cd ./jakarta-tomcat-connectors/webapp
cvs -d :pserver:[EMAIL PROTECTED]:/home/cvspublic \
checkout apr
"

At this point you already have your own README.txt to follow.

Hope this helps :)

Alan

- Original Message -
From: "Takaoglu, Uzay" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 2:17 PM
Subject: mod_webapp.so GLIBC_2.2 error on RH 6.1


> Hi All,
>
> I need to run tomcat 4.0.3 with apache 1.3.23 on linux RH 6.1. Obviously
> mod_webapp.so requires GLIBC 2.2 and RH 6.1 comes with GLIBC 2.1.3. When I
> try to run apache, it returns an error "Cannot load
> /mod_webapp.so into server: /lib/libc.so.6 version
> 'GLIBC_2.2' not found (required by
> /mod_webapp.so)
>
> Is there ayway I can use mod_webapp.so with GCC 2.1.3 ?
>
> Regards,
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Problem with Apache and Tomcat connection

2002-03-25 Thread Morten Bøhmer

I'm not saying this to talk-down on the warp connector, but it seems really 
hard to implement at this time (if it works at all!)

I have spent alot of time trying to configure the mod_webapp and warp 
connector but I havn't really got it to work properly. My suggestion is to 
use the mod_jk at the time being.

Best of luck
Regards mb

On Monday 25 March 2002 22:51, you wrote:
> My apologies in advance for the rookie questions.  We are trying to put up
> a demo app using Apache for static content and Tomcat for the JAVA base
> applications.
>
> Both work fine standalone, but when we try to 'marry' the two together we
> encounter some problems.  Specifically the error that I see is:
>
> 2002-03-25 14:23:50 [org.apache.catalina.connector.warp.WarpConnection]
> Exception on socket java.io.IOException: Premature packet header end
>   at
> org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:
>237) at
> org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHan
>dler.java:112) at
> org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:1
>94) at java.lang.Thread.run(Thread.java:479)
>
> The config is:
>
> Linux 2.2.15
> Apache 1.3.22
> Tomcat 4.0.3
> JDK1.2.2 (Blackdown port)
>
> If anyone has any suggestions, I would greatly appreciate it.  Thanks.

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: java.lan.OutOfMemoryError

2002-03-25 Thread Robert Douglass

David, the images are loaded at application start time with the following
method:
/**
 * This method returns a {@link java.util.Collection} of all of the
items
 * in the data source.  This is really the store's catalog.
 *
 * @param connection The {@link java.sql.Connection} object used to
execute
 * the select statement that will retrieve the items.
 *
 * @return a {@link java.util.Collection} of all of the items in the
data source.
 *
 * @throws java.sql.SQLException if there is an error selecting the
items.
 */
public static Collection getAllItems(Connection connection) throws
SQLException
{
Collection col = new ArrayList();

String strSQL = "SELECT * FROM Item";
Statement statement = connection.createStatement();
ResultSet rs = statement.executeQuery(strSQL);
while (rs.next())
{
col.add(new ItemBean(rs));
}
return col;
}



The ArrayList col is then made available to the JSP below with the
This method returns the name of the item's image.
 * @return the name of the item's image.
 */
public String getImage()
{return get("IMAGE").toString();}

and the get() method of the subclass is also simple:
/**
 * This method retreives a name/value pair from the {@link
DBBeanBase}.
 * It is overridden to allow for case in-sensitive retrieval.
 *
 * @param key the key used to locate the uniquely associated object.
 * @return the object uniquely associated with the specified key.
 */
public Object get(Object key)
{
return m_internalMap.get(key.toString().toUpperCase());
}

so, the JSP gets a String from getImage(). The string is the URL for the
 tag. Is this what you were looking for?
-Robert



> <%response.setHeader("Cache-Control","no-cache");%>
>
> 
>
> 
>
> 
> International Beetle Merchants
> 
>
> 
>  scope="application"/>
>
> 
> 
>
> 
>
> 
>
> 
>
>
> 
> 
> <%
> java.text.NumberFormat nf =
> java.text.NumberFormat.getCurrencyInstance(java.util.Locale.US);
> %>
> 
> Catalog
>
> 
> Item #
> 
> Description
> Price
> Add To Cart!
> 
> <%
>  java.util.Iterator i = catalog.iterator();
>  while (i.hasNext())
>  {
>   ItemBean item = (ItemBean)i.next();
> %>
>   
><%=item.getItemId()%>
>  height=75>
> <%=item.getDescription()%>
><%=nf.format(item.getPrice())%>
>
> title='AddToCartEventHandler.do?itemid=<%=item.getItemId()%>'>
>
>
> <%
>  }
> %>
> 
>
> 
>
> 
>
> 
>
> 
>
> -Original Message-
> From: David Hamilton [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 22, 2002 10:47 PM
> To: [EMAIL PROTECTED]
> Subject: Re: java.lan.OutOfMemoryError
>
>
> Robert,
>
> Thinking about your error, it seems apparent that the socket is being
closed
> before you have finished sending the image.
>
> I don't think you posted the code of your image handing servlet, or did I
> miss it?
>
> david
>
>
>
> - Original Message -
> From: "Robert Douglass" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 9:19 PM
> Subject: RE: java.lan.OutOfMemoryError
>
>
> > I changed the JDK back to 1.3.1 (which is what my class files were
> compiled
> > with) and the error message:
> > 2002-03-22 22:17:32 - Ctx( /RobertDouglass ): IOException in: R( /Robert
> >  + /img/Beetle4.gif + null) Connection aborted by peer: socket write err
> >
> > is still there every time it loads an image, but I cannot get the
> > java.lang.OutOfMemoryError.
> >
> > Whether this is because more resources are available on my system, I
don't
> > know.
> >
> > -Original Message-
> > From: David Hamilton [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 22, 2002 9:17 PM
> > To: Tomcat Users List
> > Subject: Re: java.lan.OutOfMemoryError
> >
> >
> > I know that IllegalStateException with TC 4.0x was reported on this list
a
> > few weeks ago - but IIRC the evaluation of it indicated that it was due
to
> > another reason than the one I described below (was it servlet
forwarding,
> or
> > something like that?)
> >
> > Is your similar problem occurring recursively, or just the once?
> >
> > david
> >
> > - Original Message -
> > From: "David Hamilton" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Friday, March 22, 2002 7:55 PM
> > Subject: Re: java.lan.OutOfMemoryError
> >
> >
> > > You sure?
> > >
> > > I only ask because if you are I have to got back to my team member who
> > > reported 4.01 fixed it and
> > > get him to
> > > a) double check with 4.01 and
> > > b) find if 4.03 is different.
> > >
> > > david
> > >
> > > - Original Message -
> > > From: "Vincent Lambert" <[EMAIL PROTECTED]>
> > > To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
> > > Sent: Friday, March 22, 2002 6:09 PM
> > > Subject: RE : java.lan.OutOfMemoryEr

Problem with Apache and Tomcat connection

2002-03-25 Thread John Burnley

My apologies in advance for the rookie questions.  We are trying to put up a demo app 
using Apache for static content and Tomcat for the JAVA base applications.

Both work fine standalone, but when we try to 'marry' the two together we encounter 
some problems.  Specifically the error that I see is:

2002-03-25 14:23:50 [org.apache.catalina.connector.warp.WarpConnection] Exception on 
socket
java.io.IOException: Premature packet header end
at 
org.apache.catalina.connector.warp.WarpConnection.recv(WarpConnection.java:237)
at 
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHandler.java:112)
at 
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:194)
at java.lang.Thread.run(Thread.java:479)

The config is:

Linux 2.2.15
Apache 1.3.22
Tomcat 4.0.3
JDK1.2.2 (Blackdown port)

If anyone has any suggestions, I would greatly appreciate it.  Thanks.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_jk problem

2002-03-25 Thread Fabien Nisol

Hello all..

I've got some problems accessing my tomcat pages through tomcat using mod_jk...

I'm currently trying to link apache (1.3.24) and tomcat (4.0.3) together... 
My first problem was tru64 ... I had to patch and hack mod_jk like a fool !
But it finally worked...
Both servers run fine, my tomcat jsp webapp is deployed and accessible onto 
limselsrv:8080/limselControl (it work without any problem onto tomcat)

Apache is configured to include the tomcat generated mod_jk.conf file, in 
httpd.conf:

Include /disk14/products/tomcat/appli//conf/auto/mod_jk.conf

the generated mod_jk.conf contains the following lines, after tomcat startup:

## Auto generated on Mon Mar 25 15:27:15 GMT-05:00 2002##


   LoadModule jk_module libexec/mod_jk.so


JkWorkersFile 
"/disk14/products/tomcat/jakarta-tomcat-4.0.3/conf/jk/workers.properties"
JkLogFile "/disk14/products/tomcat/jakarta-tomcat-4.0.3/logs/mod_jk.log"

JkLogLevel debug




 ServerName localhost

 JkMount /limselControl ajp13
 JkMount /limselControl/*.jsp ajp13


the workers.properties file contains the following:

# Setup for limselsrv
#
workers.tomcat_home=/disk14/products/tomcat/appli
workers.java_home=/usr/opt/java130
ps=/
worker.list=ajp12, ajp13

# Definition for Ajp13 worker
#
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13




When it comes to test the pages through apache, going to 
http://limselsrv:9000/limselControl does not work. I've a 404 apache error, 
and the following lines into mod_jk.log file:

[Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (447)]: Into 
jk_uri_worker_map_t::map_uri_to_worker
[Mon Mar 25 15:56:52 2002]  [jk_uri_worker_map.c (464)]: Attempting to map 
URI '/limselControl'


Any clue for my problem ??? It seems that mod_jk does not find my tomcat 
files .. :( ...







Re: JDBCRealm SQLException

2002-03-25 Thread Joe Clem

Well,

This is pretty much what I am doing.  I followed the configuration
example in the 3.2.3 documentation.  I am using the exact table
structure that you have laid out here.  As far as the realm attributes I
am just plugging in my own account info and database connection info.

JOe

Peter Rossbach wrote:

> Hello!
>
> Please test the following configuration:
>
>   className="org.apache.catalina.realm.JDBCRealm"
>   debug="99"
>   driverName="oracle.jdbc.driver.OracleDriver"
>   connectionName="scott"
>   connectionPassword="tiger"
>   connectionURL="jdbc:oracle:thin:@puuh:1521:puuh"
>   userTable="users"
>   userNameCol="user_name"
>   userCredCol="user_pass"
>   userRoleTable="user_roles"
>   roleNameCol="role_name"
>/>
>
> with the tomcat doc schema:
> drop table users ;
> drop table user_roles ;
>
> create table users (
>   user_name varchar(50) not null primary key,
>   user_pass varchar(50) not null
> );
>
> create table user_roles (
>   user_name varchar(50) not null,
>   role_name varchar(32) not null,
>   primary key (user_name, role_name)
> );
>
> --
> Regards
> --
> Peter Roßbach
> - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
>   The WebApp Framework http://www.webapp.de/
>   SMI  connect your Web-Business with success
>   Persistence  objectrelational mapping
>   Java Server & Servlets   The German servlet book
> ---
> Address:Am Josephsschacht 72, 44879 Bochum, Germany
> Phone:  (49) 234 / 9413228
> Mobil:  (49) 175 / 1660884
> E-Mail: [EMAIL PROTECTED]


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple users share java bean?

2002-03-25 Thread Chenming Zhao

Thanks for your help.
Of course I want that multple users can use multiple instances of the bean.
But I don't know much about the instance. Can you explain or show me
something about it?

- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 2:29 PM
Subject: Re: Multiple users share java bean?


>
> If you have multiple users sharing the same bean, then that's what's going
to
> happen.  By synchronizing the get and set method, all you're doing is
saying
> "Make sure the user finishes this whole get or set method before any other
> user can start it."  However, that won't prevent another user from calling
the
> set method right after the first user does and before the first user has a
> chance to call the get method.  Are you sure you want multiple users
sharing
> the same bean here?  Or do you want multiple users using multiple
instances of
> the bean (what it sounds like to me)??
>
>
>
>
> "Chenming
> Zhao"To: "Tomcat Users List"
<[EMAIL PROTECTED]>
> <[EMAIL PROTECTED]cc:
> u>   Subject: Re: Multiple users
share java bean?
>
> 03/25/02
> 12:52 PM
> Please
> respond to
> "Tomcat Users
> List"
>
>
>
>
>
>
> Dniel,
>
> There is still one problem: the value set by the second user2 updated the
> value of the first user1 before finishing user1's work. I paste the code.
> Please take a look.
>
> public class test
> {
> int numEvents= 5;
>
> public synchronized int test()
> {
> int real=0;
> int eventCounter=0;
>
> while(eventCounter<=numEvents)
> {
> real=eventCounter;
>
> // wait for 0.01 second
> try{wait(10);}
> catch(InterruptedException e){};
> eventCounter++;
> }
> return real;
> }
>
> public synchronized int setNumEvents(int sec)
> {
> numEvents= sec;
> }
> }
>
> For example, I input 200 as the value of numEvents for user1. Before
> finishing user1's task, user2 input 100 as numEvents and  begin his work.
I
> hope I can get results 200 and 100 respectively. But I got 100 both.
>
> - Original Message -
> From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 25, 2002 11:35 AM
> Subject: Re: Multiple users share java bean?
>
> > If it's a shared bean, sycnchronize it.   Make sure that
> > all mutators(Setters) are synchronized, and it would be a bad idea to do
> > that to the
> > accessors (mututors) are synchronized too.  If you have more open than
> > private member variables in this bean, make sure they are private.
> > e.g.
> >
> > public void synchronized setName(String name) {
> > .
> > }
> >
> > --
> > Daniel Hinojosa
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




tomcat documentation..

2002-03-25 Thread Vijay Shinde

Hey All,

 where can i found detailed documentation about tomcat4.0.

Vijay


--7D47ADF4D827D6690E6D66BA--

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple users share java bean?

2002-03-25 Thread jeff . guttadauro


If you have multiple users sharing the same bean, then that's what's going to
happen.  By synchronizing the get and set method, all you're doing is saying
"Make sure the user finishes this whole get or set method before any other
user can start it."  However, that won't prevent another user from calling the
set method right after the first user does and before the first user has a
chance to call the get method.  Are you sure you want multiple users sharing
the same bean here?  Or do you want multiple users using multiple instances of
the bean (what it sounds like to me)??



   

"Chenming  

Zhao"To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
<[EMAIL PROTECTED]cc:   

u>   Subject: Re: Multiple users share java 
bean?  
   

03/25/02   

12:52 PM   

Please 

respond to 

"Tomcat Users  

List"  

   

   





Dniel,

There is still one problem: the value set by the second user2 updated the
value of the first user1 before finishing user1's work. I paste the code.
Please take a look.

public class test
{
int numEvents= 5;

public synchronized int test()
{
int real=0;
int eventCounter=0;

while(eventCounter<=numEvents)
{
real=eventCounter;

// wait for 0.01 second
try{wait(10);}
catch(InterruptedException e){};
eventCounter++;
}
return real;
}

public synchronized int setNumEvents(int sec)
{
numEvents= sec;
}
}

For example, I input 200 as the value of numEvents for user1. Before
finishing user1's task, user2 input 100 as numEvents and  begin his work. I
hope I can get results 200 and 100 respectively. But I got 100 both.

- Original Message -
From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:35 AM
Subject: Re: Multiple users share java bean?

> If it's a shared bean, sycnchronize it.   Make sure that
> all mutators(Setters) are synchronized, and it would be a bad idea to do
> that to the
> accessors (mututors) are synchronized too.  If you have more open than
> private member variables in this bean, make sure they are private.
> e.g.
>
> public void synchronized setName(String name) {
> .
> }
>
> --
> Daniel Hinojosa


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




mod_webapp.so GLIBC_2.2 error on RH 6.1

2002-03-25 Thread Takaoglu, Uzay

Hi All,

I need to run tomcat 4.0.3 with apache 1.3.23 on linux RH 6.1. Obviously
mod_webapp.so requires GLIBC 2.2 and RH 6.1 comes with GLIBC 2.1.3. When I
try to run apache, it returns an error "Cannot load
/mod_webapp.so into server: /lib/libc.so.6 version
'GLIBC_2.2' not found (required by
/mod_webapp.so)

Is there ayway I can use mod_webapp.so with GCC 2.1.3 ? 

Regards,

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Tomcat 4.0.3 Custom Tag Limitation???

2002-03-25 Thread Larry Isaacs

The Tomcat 4.0.x option equivalent to Tomcat 3.3's
JSPInterceptor attribute is found in Tomcat 4.0.x's global
webapp defaults file, conf/web.xml.  See the "The JSP page
compiler and execution servlet" section.  It will buy you
a little breathing room, but can't get around the 64K
limit, which is a JVM issue.  If you are hitting this
limit, it may be time to try splitting up the JSP page
into multiple JSP pages.

Cheers,
Larry

> -Original Message-
> From: Pavel Brun [mailto:[EMAIL PROTECTED]] 
> Sent: Monday, March 25, 2002 2:00 PM
> To: Tomcat User
> Subject: Tomcat 4.0.3 Custom Tag Limitation???
> 
> 
> Hello all,
> 
> I am running into a problem processing a JSP page with a 
> large number of
> taglibs and encountered
> the following exception (shown below). We found bug 6088 
> (related to Tomcat
> 3.3 Final) which details
> this error detailing a limitation on the class file size (64 
> KB). There was
> a solution to set the
> "largeFile" parameter to "true" for the JSPInterceptor under 
> server.xml, but
> this is not an option
> under Tomcat 4.0.3. Are there any workarounds or solutions 
> that will permit
> classes files to go beyond
> this limit
> 
> Please let me know.
> Thanks
> Paul
> 
> Exception Below:
> 
> 
> javax.servlet.ServletException: (class: 
> org/apache/jsp/display$jsp, method:
> _jspService signature:
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht
> tpServletRespo
> nse;)V) Illegal target of jump or branch
> 
>   at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>   at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>   at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>   at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>   at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:243)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:190)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
>   at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170
> )
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>   at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>   at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>   at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
>   at 
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
>   at java.lang.Thread.run(Unknown Source)
> 
> root cause
> 
> java.lang.VerifyError: (class: org/apache/jsp/display$jsp, method:
> _jspService signature:
> (Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/Ht
> tpServletRespo
> nse;)V) Illegal target of jump or branch
> 
>   at java.lang.Class.newInstance0(Native Method)
>   at java.lang.Class.newInstance(Unknown Source)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(Js
> pServlet.java:
> 139)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:179)
>   at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service
> (JspServlet.ja
> va:189)
>   at 
> org.apa

Tomcat 4.0.3 Custom Tag Limitation???

2002-03-25 Thread Pavel Brun

Hello all,

I am running into a problem processing a JSP page with a large number of
taglibs and encountered
the following exception (shown below). We found bug 6088 (related to Tomcat
3.3 Final) which details
this error detailing a limitation on the class file size (64 KB). There was
a solution to set the
"largeFile" parameter to "true" for the JSPInterceptor under server.xml, but
this is not an option
under Tomcat 4.0.3. Are there any workarounds or solutions that will permit
classes files to go beyond
this limit

Please let me know.
Thanks
Paul

Exception Below:


javax.servlet.ServletException: (class: org/apache/jsp/display$jsp, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V) Illegal target of jump or branch

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
  at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
  at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:371)
at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:424)
at java.lang.Thread.run(Unknown Source)

root cause

java.lang.VerifyError: (class: org/apache/jsp/display$jsp, method:
_jspService signature:
(Ljavax/servlet/http/HttpServletRequest;Ljavax/servlet/http/HttpServletRespo
nse;)V) Illegal target of jump or branch

at java.lang.Class.newInstance0(Native Method)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspServlet.java:
139)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:179)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.a

Re: Multiple users share java bean?

2002-03-25 Thread Chenming Zhao

Dniel,

There is still one problem: the value set by the second user2 updated the
value of the first user1 before finishing user1's work. I paste the code.
Please take a look.

public class test
{
int numEvents= 5;

public synchronized int test()
{
int real=0;
int eventCounter=0;

while(eventCounter<=numEvents)
{
real=eventCounter;

// wait for 0.01 second
try{wait(10);}
catch(InterruptedException e){};
eventCounter++;
}
return real;
}

public synchronized int setNumEvents(int sec)
{
numEvents= sec;
}
}

For example, I input 200 as the value of numEvents for user1. Before
finishing user1's task, user2 input 100 as numEvents and  begin his work. I
hope I can get results 200 and 100 respectively. But I got 100 both.

- Original Message -
From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:35 AM
Subject: Re: Multiple users share java bean?

> If it's a shared bean, sycnchronize it.   Make sure that
> all mutators(Setters) are synchronized, and it would be a bad idea to do
> that to the
> accessors (mututors) are synchronized too.  If you have more open than
> private member variables in this bean, make sure they are private.
> e.g.
>
> public void synchronized setName(String name) {
> .
> }
>
> --
> Daniel Hinojosa


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Apache-1.3.19 with mod_webapp

2002-03-25 Thread Gabriel López Millán


Hi all.

I'm trying to compile apache-1.3.19 with mod_webapp
I have a redhat7.2 systems with jdk1.4.

I hava download jakarta-tomcat-connectors-4.0.4-b1-src and laster 
apr from cvs
I run:   

../webapp]#/support/buildconf
./webapp]#./configure --with-apxs

apxs are found succesfully from /usr/local/apache/bin/apxs
   
./webapp]#make

I have:
gcc -DLINUX=22 -DINET6 -Dss_family=__ss_family -Dss_len=__ss_len 
-DUSE_HSREGEX -DUSE_EXPAT -I../lib/expat-lite -g -O2 -g -O2 -DLINUX=2 
-D_REENTRANT 
-I/usr/local/jakarta/src/jakarta-tomcat-connectors-4.0.4-b1-src/webapp/apr/include 
-I/usr/local/jakarta/src/jakarta-tomcat-connectors-4.0.4-b1-src/webapp/include 
-fpic -DSHARED_MODULE -I/usr/local/apache/include  -c mod_webapp.c
mod_webapp.c: In function `wam_invoke':
mod_webapp.c:453: structure has no member named `sin_port'
mod_webapp.c:453: structure has no member named `sin_port'
mod_webapp.c:453: structure has no member named `sin_port'
mod_webapp.c:453: structure has no member named `sin_port'
mod_webapp.c:454: structure has no member named `sin_port'
mod_webapp.c:454: structure has no member named `sin_port'
mod_webapp.c:454: structure has no member named `sin_port'
mod_webapp.c:454: structure has no member named `sin_port'
apxs:Break: Command failed with rc=1
make[2]: *** [mod_webapp.so] Error 1
make[2]: Saliendo directorio 
`/usr/local/jakarta/src/jakarta-tomcat-connectors-4.0.4-b1-src/webapp/apache-1.3'
make[1]: Exiting directory "apache-1.3"
make[1]: *** [template] Error 2
make[1]: Saliendo directorio 
`/usr/local/jakarta/src/jakarta-tomcat-connectors-4.0.4-b1-src/webapp'
make: *** [apache-1.3-build] Error 2



Any idea?

Thanks a lot, Gabi.

   

-- 
-
Gabriel Lopez Millan - Grupo ANTS-CIRCuS
Facultad de Informática
Universidad de Murcia (España) Tfo: +34 968367645



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple users share java bean?

2002-03-25 Thread Chenming Zhao

Thank you, Daniel. You saved me. I synchronied objects before but didn't
synchronized such type as
 public void setName(String name) {}. Thanks again,

Minger

- Original Message -
From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:35 AM
Subject: Re: Multiple users share java bean?


>
>
> Chenming Zhao wrote:
>
> >Hi,
> >When two users call the bean almost at the same time, it seems that they
share the same object and their implementing is dependent with each other (I
hope they are independent), and cannot get correct results. Should I
configure Tomcat? I think the java bean is no problem. It's urgent. Please
help me.
> >
> >Minger
> >
> If it's a shared bean, sycnchronize it.   Make sure that
> all mutators(Setters) are synchronized, and it would be a bad idea to do
> that to the
> accessors (mututors) are synchronized too.  If you have more open than
> private member variables in this bean, make sure they are private.
> e.g.
>
> public void synchronized setName(String name) {
> .
> }
>
> --
> Daniel Hinojosa
> Java & XML: Consultant | Developer | Instructor
> P.O. Box 4675
> Albuquerque, NM 87196-4675
> (505) 363-5832
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat 4.0.4-b2 available?

2002-03-25 Thread Jonathan Eric Miller

I noticed that the following directory now exists on the Jakarta Web site.

http://jakarta.apache.org/builds/jakarta-tomcat-4.0/release/v4.0.4-b2/bin/

Does this mean that 4.0.4-b2 is out? Or, is that a nightly build?

Also, anyone know if this release will contain the JNDIRealm enhancements? I
think Craig was saying that they wouldn't necessarily be in there since they
are enhancements rather than bug fixes?

Jon



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: mod_webapp.so Solaris 2.6

2002-03-25 Thread Jean-Luc BEAUDET

[EMAIL PROTECTED] a écrit :

> Does anyone have mod_webapp compiled for Solaris 2.6?  If so, where can I
> download it from?  I can't find it at jakarta.apache.org.
>
> If no one has one,does anybody know how to fix this error that happens with
> the WebAppDeploy directive:
>
>  Invalid port number (p<1) No "Port" statement found
>
> Any help would be apreciated.
>
> David Godsey
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

I have one i compiled with no pbs.

This is a mod_webapp.so compiled for Tomcat 4.0.2 Final Release and Apache
1.3.22

Which way do yu try to compile it ?

Jean-Luc B



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




AW: JNDI/EJB: looking for some references

2002-03-25 Thread Ralph Einfeldt

I think, there are 2 more typo's:

> -Ursprüngliche Nachricht-
> Von: Jeff Larsen [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 25. März 2002 18:27
> An: Tomcat Users List
> Betreff: Re: JNDI/EJB: looking for some references

> "org.jnp.intervaces.NaingContextFactory");
^   ^
  "org.jnp.interfaces.NamingContextFactory 

> -Ursprüngliche Nachricht-
> Von: Jeff Larsen [mailto:[EMAIL PROTECTED]]
> Gesendet: Montag, 25. März 2002 18:29
> An: Tomcat Users List
> Betreff: Re: JNDI/EJB: looking for some references
> 
> 
> Oops, I mistyped "factory" in one of the lines of sample code.
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




TC4.0.2, ssl certificate problems?

2002-03-25 Thread David Ethell

We previosly had SSL working under stand-alone Tomcat 4.0.1 with JDK1.3 and 
JSSE. Since testing SSL successfully we've moved to Tomcat 4.0.2 and JDK1.4. We 
finally received our Thawte certificate so now I'm trying to install it and get 
SSL working again.

I can import our key into the keystore with no problems. Upon starting Tomcat I 
get this in the catalina output:

Finalizer, SEND SSL v3.1 ALERT:  warning, description = close_notify
Finalizer, WRITE:  SSL v3.1 Alert, length = 2

When issuing requests to the https url at our server ROOT I just get the usual 
blank page in IE saying the page can't be displayed. Turning jsse debugging on 
(javax.net.debug=all) I get this in the catalina output:

[read] MD5 and SHA1 hashes:  len = 3
: 01 03 00   ...
[read] MD5 and SHA1 hashes:  len = 73
: 00 33 00 00 00 10 00 00   04 00 00 05 00 00 0A 01  .3..
0010: 00 80 07 00 C0 03 00 80   00 00 09 06 00 40 00 00  .@..
0020: 64 00 00 62 00 00 03 00   00 06 02 00 80 04 00 80  d..b
0030: 00 00 13 00 00 12 00 00   63 28 12 E3 E6 39 A2 26  c(...9.&
0040: A8 27 A2 4B 0F 04 34 2F   5E   .'.K..4/^
HttpProcessor[443][4], READ:  SSL v2, contentType = 22, translated length = 65
*** ClientHello, v3.0
RandomCookie:  GMT: 0 bytes = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 40, 18, 227,
 230, 57, 162, 38, 168, 39, 162, 75, 15, 4, 52, 47, 94 }
Session ID:  {}
Cipher Suites:  { 0, 4, 0, 5, 0, 10, 0, 9, 0, 100, 0, 98, 0, 3, 0, 6, 0, 19, 0,
18, 0, 99 }
Compression Methods:  { 0 }
***
%% Created:  [Session-2, SSL_NULL_WITH_NULL_NULL]
HttpProcessor[443][4], SEND SSL v3.0 ALERT:  fatal, description = handshake_fail
ure
HttpProcessor[443][4], WRITE:  SSL v3.0 Alert, length = 2
HttpProcessor[443][4], SEND SSL v3.1 ALERT:  warning, description = close_notify
HttpProcessor[443][4], WRITE:  SSL v3.1 Alert, length = 2

I am completely stumped. I've reinstalled the certificate a dozen times, 
checked that the Thawte CA is correctly installed in the cacerts file and 
checked all my classpath stuff and jre/lib/ext place to make sure the old JSSE 
libraries aren't still being referenced. All that seems clear and still no clue.

Any ideas?
David

-
This mail sent through IMP: http://horde.org/imp/

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem running Tomcat as a service with PVCS Dimensions

2002-03-25 Thread Siegel, Tom

I was directed your way by the folks at Merant to see if you could figure
out why we are having dificulty running Tomcat as a service on our
Dimensions Server.

The server O/S is Windows 2000 and we are running iis as the web server on
the same machine.

There are two applications on the server PVCS Dimensions and Caliber.
Dimensions is using Tomcat and iis and is pointed to a unique IP address.
Caliber is using Apache which is also pointing to a unique IP address.

Below is a thread from my conversations with Merant.

Thanks in advance for your assistance.

"We keep running into these JSP errors in different areas of Inet while
running Tomcat as a service. If I stop the Tomcat service, start Inet as an
application, go to where I got the error, execute the command successfuly,
stop Inet, restart Tomcat as a service, it seems to fix that particular
problem. Of course we can't do that every time we run into a Java error. I
tried your suggestion about changing the account in the service but that did
not seem to fix the problem. We are running 2 web servers on the same box,
we have Caliber using Apache and Dimensions using IIS/Tomcat, I have them
both using different IP addresses though. I don't know if that could be
causing a conflict, the error message (see below) does make a reference to
apache. 

Error: 500 
Location: /dimensions/errorpage.jsp 
Internal Servlet Error: 

org.apache.jasper.JasperException: Unable to compile class for JSP 
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:254) 
at org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:462) 
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146) 
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152) 
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164) 
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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194) 
at
_0002fedit_0005fchgdoc_0005fattributes_0005fmain_0002ejspedit_0005fchgdoc_00
05fattributes_0005fmain_jsp_0._jspService(_0002fedit_0005fchgdoc_0005fattrib
utes_0005fmain_0002ejspedit_0005fchgdoc_0005fattributes_0005fmain_jsp_0.java
:145) 
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.facade.RequestDispatcherImpl.forward(RequestDispatcherImpl
.java:194) 
at merant.adm.servlet.ServletUtils.forwardToPage(ServletUtils.java:200) 
at
merant.adm.servlet.GenericServletPage.showPage(GenericServletPage.java:121) 
at
merant.adm.servlet.GenericServletPage.showDisplayPage(GenericServletPage.jav
a:173) 
at
merant.adm.servlet.GenericServletPage.doGet(GenericServletPage.java:66) 
at merant.adm.servlet.AdmServlet.doGet(AdmServlet.java:437) 
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740) 
at merant.adm.servlet.AdmServlet.service(AdmServlet.java:606) 
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(Unknown Source) "


_
Thomas F. Siegel
Programmer/Analyst II
Intrado
6285 Lookout Road
Boulder, Co. 80301
Direct Line (303) 581-5613
[EMAI

mod_webapp.so Solaris 2.6

2002-03-25 Thread tomcat

Does anyone have mod_webapp compiled for Solaris 2.6?  If so, where can I
download it from?  I can't find it at jakarta.apache.org.  

If no one has one,does anybody know how to fix this error that happens with
the WebAppDeploy directive:

 Invalid port number (p<1) No "Port" statement found 


Any help would be apreciated.

David Godsey

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JNDI/EJB: looking for some references

2002-03-25 Thread Jeff Larsen

Oops, I mistyped "factory" in one of the lines of sample code.

- Original Message - 
From: "Jeff Larsen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:26 AM
Subject: Re: JNDI/EJB: looking for some references


> I'm using servlets on Tomcat that must access one of
> four remote JBoss servers depending on the web user login.
> Basically, you have to tell the client where the JBoss 
> server is running. Here's the java code from the servlet side...
> 
> Properties props = new Properties();
> props.put("java.naming.factory.initial", "org.jnp.intervaces.NaingContextFactory");
> props.put("java.naming.facotyr.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
> props.put("java.naming.provider.url", "myjbosshost.mydomain.com");
> InitialContext ic = new InitialContext(props);
> ... then proceed as normal
> 
> Note that you will need some jars (jboss-client.jar, jboss-j2ee.jar, 
> jnp-client.jar, jbosssx-client.jar) from the JBoss 'client' subdir
> available to your tomcat installation. I put them in $TOMCAT_HOME/lib.
> Your required jars may vary depending on what functions of JBoss you 
> are using. If you are using a port other than 1099 for JBoss, you will 
> need to use "myjbosshost.mydomain.com:myport" instead.
> 
> Jeff
> 
> - Original Message - 
> From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Monday, March 25, 2002 10:37 AM
> Subject: Re: JNDI/EJB: looking for some references
> 
> 
> > I use Jboss all the time but I use it within the same server, so I never 
> > come across that.  I highly recommend the JBoss forum at 
> > http://main.jboss.org
> > 
> > Alberto Bolchini wrote:
> > 
> > >Hi all.
> > >
> > >I'm trying to find some references on using an EJB from a remote J2EE
> > >Container (JBoss).
> > >I'v deployed the .war in my Tomcat 4.0.2 including JBoss's client jars
> > >in WEB-INF/lib and have in my web.xml mentioned the  as follows
> > >
> > >
> > > Nation
> > > ejb/Nation
> > > Session
> > > NationHome
> > > Nation
> > > jnp:remoteIP/Nation
> > >
> > >
> > >All I get is a 
> > >Error initializing context: javax.naming.NameNotFoundException: Name
> > >jnp:remoteIP is not bound in this Context
> > >
> > >Can anyone point me a source of infos on this (or show me where the
> > >error is?)
> > >
> > >--
> > >To unsubscribe:   
> > >For additional commands: 
> > >Troubles with the list: 
> > >
> > >
> > >
> > 
> > -- 
> > Daniel Hinojosa
> > Java & XML: Consultant | Developer | Instructor
> > P.O. Box 4675
> > Albuquerque, NM 87196-4675
> > (505) 363-5832
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JNDI/EJB: looking for some references

2002-03-25 Thread Jeff Larsen

I'm using servlets on Tomcat that must access one of
four remote JBoss servers depending on the web user login.
Basically, you have to tell the client where the JBoss 
server is running. Here's the java code from the servlet side...

Properties props = new Properties();
props.put("java.naming.factory.initial", "org.jnp.intervaces.NaingContextFactory");
props.put("java.naming.facotyr.url.pkgs", "org.jboss.naming:org.jnp.interfaces");
props.put("java.naming.provider.url", "myjbosshost.mydomain.com");
InitialContext ic = new InitialContext(props);
... then proceed as normal

Note that you will need some jars (jboss-client.jar, jboss-j2ee.jar, 
jnp-client.jar, jbosssx-client.jar) from the JBoss 'client' subdir
available to your tomcat installation. I put them in $TOMCAT_HOME/lib.
Your required jars may vary depending on what functions of JBoss you 
are using. If you are using a port other than 1099 for JBoss, you will 
need to use "myjbosshost.mydomain.com:myport" instead.

Jeff

- Original Message - 
From: "Daniel Hinojosa" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 10:37 AM
Subject: Re: JNDI/EJB: looking for some references


> I use Jboss all the time but I use it within the same server, so I never 
> come across that.  I highly recommend the JBoss forum at 
> http://main.jboss.org
> 
> Alberto Bolchini wrote:
> 
> >Hi all.
> >
> >I'm trying to find some references on using an EJB from a remote J2EE
> >Container (JBoss).
> >I'v deployed the .war in my Tomcat 4.0.2 including JBoss's client jars
> >in WEB-INF/lib and have in my web.xml mentioned the  as follows
> >
> >
> > Nation
> > ejb/Nation
> > Session
> > NationHome
> > Nation
> > jnp:remoteIP/Nation
> >
> >
> >All I get is a 
> >Error initializing context: javax.naming.NameNotFoundException: Name
> >jnp:remoteIP is not bound in this Context
> >
> >Can anyone point me a source of infos on this (or show me where the
> >error is?)
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
> >
> >
> >
> 
> -- 
> Daniel Hinojosa
> Java & XML: Consultant | Developer | Instructor
> P.O. Box 4675
> Albuquerque, NM 87196-4675
> (505) 363-5832
> 
> 
> 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: deploying webapplication on tomcat4.0

2002-03-25 Thread Chenming Zhao

%CATALINA_HOME\webapps\ROOT\WEB-INF\classes or lib.

Check
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

Minger

- Original Message - 
From: "Vijay Shinde" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, March 25, 2002 11:50 AM
Subject: deploying webapplication on tomcat4.0


> Hey All,
> 
> I am new to tomcat4.0 ,I am trying to run some servlets ,I am able
> to run this servlets by putting the clasees under the examples
> web-app.But i just want to test this under default web-app.will anyone
> tell me what is the default application path for tomcat.
> 
> Vijay
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




DocBase, Path, and WARs

2002-03-25 Thread Ken Ramirez

I have a quick question regarding WARs and Tomcat 4.x, which I hope
someone can give me a straight answer for:

I'm reposting this message since I still haven't received an answer:

I created a WAR file containing a servlet, and a few JSPs.  I put all of
the necessary stuff into the web.xml, and created the appropriate
structure in the WAR file.  According to the TOMCAT documentation, I
need to specify a context as follows:



However, this did not work and TOMCAT did not expand the WAR file when I
started TOMCAT up.  After messing around with it for a bit, I discovered
that the following finally got it to work:



In fact, I even tried leaving the docBase empty "" and it still expanded
the WAR file when TOMCAT started up.

What gives?  I guess I don't have a solid understanding of docBase and
path yet.  I thought that the purpose of creating a Context entry was to
provide the application with its own private context at runtime?  If
this is so, who's context is this application running under.  It
certainly doesn't appear to be creating a context for MyWebApp.

Ken
 




tomcat documentation..

2002-03-25 Thread Vijay Shinde

Hey All,

  Does anyone tell  me where do i  find good documentation about
tomcat4.0.
 The default documentation at apache site is not good enough.

Regards,

Vijay


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




deploying webapplication on tomcat4.0

2002-03-25 Thread Vijay Shinde

Hey All,

I am new to tomcat4.0 ,I am trying to run some servlets ,I am able
to run this servlets by putting the clasees under the examples
web-app.But i just want to test this under default web-app.will anyone
tell me what is the default application path for tomcat.

Vijay


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: 'Remember Me'

2002-03-25 Thread Ken Martin

On Monday, March 25, 2002, at 10:31 AM, Daniel Hinojosa wrote:

> There was a bit more to my question though that you truncated.

No offense intended... I answered the part I knew there was a 
reference for. Reading and writing cookies is one part of your 
desired process. The rest I've not done. At least that spec show 
how to get the data into and out of cookies.

Best wishes,

Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: JNDI/EJB: looking for some references

2002-03-25 Thread Daniel Hinojosa

I use Jboss all the time but I use it within the same server, so I never 
come across that.  I highly recommend the JBoss forum at 
http://main.jboss.org

Alberto Bolchini wrote:

>Hi all.
>
>I'm trying to find some references on using an EJB from a remote J2EE
>Container (JBoss).
>I'v deployed the .war in my Tomcat 4.0.2 including JBoss's client jars
>in WEB-INF/lib and have in my web.xml mentioned the  as follows
>
>
>   Nation
>   ejb/Nation
>   Session
>   NationHome
>   Nation
>   jnp:remoteIP/Nation
>
>
>All I get is a 
>Error initializing context: javax.naming.NameNotFoundException: Name
>jnp:remoteIP is not bound in this Context
>
>Can anyone point me a source of infos on this (or show me where the
>error is?)
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>
>
>

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Multiple users share java bean?

2002-03-25 Thread Daniel Hinojosa



Chenming Zhao wrote:

>Hi,
>When two users call the bean almost at the same time, it seems that they share the 
>same object and their implementing is dependent with each other (I hope they are 
>independent), and cannot get correct results. Should I configure Tomcat? I think the 
>java bean is no problem. It's urgent. Please help me.
>
>Minger
>
If it's a shared bean, sycnchronize it.   Make sure that 
all mutators(Setters) are synchronized, and it would be a bad idea to do 
that to the
accessors (mututors) are synchronized too.  If you have more open than 
private member variables in this bean, make sure they are private.
e.g.

public void synchronized setName(String name) {
.
}

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: 'Remember Me'

2002-03-25 Thread Daniel Hinojosa




Ken Martin wrote:

> On Sunday, March 24, 2002, at 04:43 PM, Daniel Hinojosa wrote:
>
>> How can I implement a 'Remember Me' checkbox for username, password, 
>> on my site when I use 'Form-Based' authentication?
>
>
> Write and read cookies.
>
> 
> _top_>
>
> Ken Martin
>
>
> -- 
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>
>
There was a bit more to my question though that you truncated. The API 
(2.2+) doesn't tell me about assigning a principal so that I may check 
isUserInRole() etc.  I am talking about custom-authentication to assign 
a principal so that I may check that against that isUserInRole. 
 Obtaining a principal is something I get from using the FORM-based 
authentication, but how do I get that with custom based authentication.

-- 
Daniel Hinojosa
Java & XML: Consultant | Developer | Instructor
P.O. Box 4675
Albuquerque, NM 87196-4675
(505) 363-5832






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




[Fwd: [MVC-Programmers@basebeans.com] [Struts Tips] #2 - Use DispatchAction to organize related operations]

2002-03-25 Thread Vic Cekvenich

To get these articles 2 times a week, the only place you can get these 
articles is at www.basebeans.com/forums.jsp (and sign up at the bottom 
link) for the BaseBeans MVC mail list.

(also daily Java News feed at www.strutsplus.com/news.jsp)

hth, Vic

 Original Message 
Subject: [[EMAIL PROTECTED]] [Struts Tips] #2 - Use 
DispatchAction to organize related operations
Date: Mon, 25 Mar 2002 09:11:07 -0500
From: Ted Husted <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]

Newsgroups: MVC-Programmers
References: <[EMAIL PROTECTED]>

Any software application is defined by the things it can do for you. In
a Struts Web application, the things an application does is usually
defined by its action-mapping elements. An action-mapping is designed to
be the target of an HTML form, and is often used with hyperlinks as
well.

Each action-mapping can specify a Struts Action class as its handler. In
larger applications, developers can find themselves managing dozens or
even hundreds of Action classes.

In practice, many of these Action classes handle related operations,
often evidenced by their name. A package might include separate
RegCreate, RegSave, and RegDelete Actions, which just perform different
operations on the same RegBean object. Since all of these operations are
usually handled by the same JSP page, it would be handy to also have
them handled by the same Struts Action.

A very simple way to do this is to have the submit button modify a field
in the form which indicates which operation to perform.


function set(target) {
  document.forms[0].dispatch.value=target;
}



SAVE
SAVE AS NEW
DELETE

Then, in the Action you can setup different methods to handle the
different operations, and branch to one or the other depending on which
value is passed in the dispatch field.

String dispatch = myForm.getDispatch();

if ("create".equals(dispatch)) { ...

if ("save".equals(dispatch)) { ...

The Struts Dispatch Action is designed to do exactly the same thing, but
without messy branching logic. The base perform method will check a
dispatch field for you, and invoke the indicated method. The only catch
is that the dispatch methods must use the same signature as perform.
This is a very modest requirement, since in practice you usually end up
doing that anyway.

To convert an Action that was switching on a dispatch field to a
DispatchAction, you simply need to create methods like this

 public ActionForward create(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException { ...

 public ActionForward save(ActionMapping mapping,
  ActionForm form,
  HttpServletRequest request,
  HttpServletResponse response)
 throws IOException, ServletException { ...

Cool. But do you have to use a property named dispatch? No, you don't.
The other step is to specify the name of of the "dispatch" property as
the "parameter" property of the action-mapping. So a mapping for our
example might look like this:

  // Which parameter to use

If you wanted to use the property "o" instead, as in o=create, you would
change the mapping to

  // Look for o=dispatchMethod

Again, very cool. But why use a JavaScript button in the first place?
Why not use several buttons named "dispatch" and use the values to
specify the operation.

You can, but the value of the button is also its label. This means if
the page designers want to label the button something different, they
have to coordinate with the Action programmer. Worse, localization
becomes virtualy impossible.

If you prefer not to use JavaScript buttons, you can use the
DispatchLookup Action instead. This works much like the DispatchAction,
but requires more setup. We'll explore the DispatchLookup Action in Tip
#3.

HTH, Ted.


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Log File?

2002-03-25 Thread Ravindra K. Bhat

Hi:

Where can I find the log file to see who has connected to my server?  I am
using TCAT 3.4...

Thanks



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Multiple users share java bean?

2002-03-25 Thread Chenming Zhao

Hi,
When two users call the bean almost at the same time, it seems that they share the 
same object and their implementing is dependent with each other (I hope they are 
independent), and cannot get correct results. Should I configure Tomcat? I think the 
java bean is no problem. It's urgent. Please help me.

Minger



Re: bug in catalina.sh (fwd)

2002-03-25 Thread Ravindra K. Bhat

Hi:

Where can I find the log file to see who has connected to my server?  I am
using TCAT 3.4...

Thanks


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: ajp12.id

2002-03-25 Thread Larry Isaacs

See if:



answers your question.

Cheers,
Larry

> -Original Message-
> From: Neo Gigs [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 6:03 AM
> To: Tomcat Users List
> Subject: ajp12.id
> 
> 
> hi there,
> 
> can anyone tell me whats the content of the file called 
> ajp12.id? if using tomcat 3.3a, once there is a missing of 
> this file before shutting down, what should i do about it 
> except to restart server?
> 
> neo
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: bug in catalina.sh

2002-03-25 Thread Fabien Nisol

Thank you !
I already solved my problem by changing #!/bin/sh by #!/bin/ksh on the top 
line of each tomcat scripts It appears to be a Tru64 bug which was 
discussed in bugzilla on jakarta.apache.org... (I saw this after having 
posted my problem)

Thank you for your explanation for the "$@" instead of $@, I did'nt think 
of that possible problem... To bad Tru64 is not that standard ( I miss my 
Solaris station ;)



>Fabien,
>
>I posted the following message to the [EMAIL PROTECTED] mailing
>list. I am resending it to you in case you did not see it.
>
>If the "${@}" works on your OS, let me know.
>
>Patrick
>
>Fabien,
>
>Since the "$@" is necessary to preserve quoting of arguments with spaces in
>them, changing it to $@ is not a really good solution. First off, which Unix
>platform are you using? I know that the "$@" works on Solaris and Linux 
>and Mac
>OS X.
>
>Also, have you tried using "${@}"? Most platfroms don't require the curly 
>braces
>to preserve quoting, but maybe yours does.
>
>Patrick
>
>Fabien Nisol wrote:
> >
> > Hello,
> >
> > I noticed a bug in catalina.sh that make some of us have problem starting
> > tomcat. The common error is that a message
> >
> > usage: java org.apache.catalina.startup.Catalina [ -config {pathname} ] [
> > -debug ] [ -nonaming ] { start | stop }
> >
> > is printed in $CATALINA_HOME/logs/catalina.out
> >
> > I began to look at this problem and I finally found the bug:
> >
> > The problem is that at every line where catalina is started ("$_RUNJAVA
> > ..."), command line arguments that are passed to the catalina.sh script are
> > passed using "$_RUNJAVA"   "$@"  (quotes
> > included) ... The problem : When only one argument is passed to the VM , in
> > Catalina.main(String args[]), args are { "" ,  } and not {
> >  } ... ( starting catalina.sh start means starting "java
> >   "" start", not "java   start") ...
> >
> > big problem in Catalina.arguments(String[] args) where the argument ""
> > (empty string) is not recognised and issues an error on stdout...
> >
> > I think the problem could be corrected by replacing all "$@" (with quotes)
> > occurence by $@ (without quotes) in catalina.sh
> >
> > Are you ok with this or am I missing something??
> >
> > Fabien Nisol
> > java Developer/Analyst consultant
> >
> > --
> > To unsubscribe, 
> e-mail:   
> > For additional commands, e-mail: 
> 
>
>--
>_
>Patrick Luby  Email: [EMAIL PROTECTED]
>Sun Microsystems  Phone: 408-276-7471
>901 San Antonio Road, USCA14-303
>Palo Alto, CA 94303-4900
>_


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Session ID length

2002-03-25 Thread Larry Isaacs

The conf/module.xml contains a line which maps SessionIdGenerator
to a class.  You can modify this class, or derive your own
class and substitute your own module for SessionIdGenerator.

Cheers,
Larry

> -Original Message-
> From: Gurmeet [mailto:[EMAIL PROTECTED]] 
> Sent: Saturday, March 23, 2002 5:52 AM
> To: Tomcat Users List
> Subject: Session ID length
> 
> 
> Hi All,
> 
> There is something like  in 
> the server.xml
> 
> Can anybody throw a bit light on this. How can I use it to 
> specify my own
> sessionID generator.
> I actually want to reduce the length of the session Id which 
> is generated by
> Tomcat automatically.
> 
> Gurmeet
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: 'Remember Me'

2002-03-25 Thread Ken Martin

On Sunday, March 24, 2002, at 04:43 PM, Daniel Hinojosa wrote:

> How can I implement a 'Remember Me' checkbox for username, 
> password, on my site when I use 'Form-Based' authentication?

Write and read cookies.



Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat on Mac OS X, please help!

2002-03-25 Thread Ken Martin

On Sunday, March 24, 2002, at 10:31 AM, Donald Huebschman wrote:

> I, also, experienced this problem. And, tried your fixes, which 
> didn't work, but, did provide different errors. In searching 
> the archives suggested, I came across a similar problem with 
> SetCharacterEncodingFilter.
> class not being named correctly. Checking, it was indeed 
> SetCharacterEncodingFilter.clas. Changing it corrected example 
> errors.

This should be in a FAQ somewhere... someone on this list helped 
me with this...

Don't use StuffIt and don't use tar in Terminal.

Use gnutar in Terminal. Works perfectly. I had the exact same 
SetCharacter... error.

Install is a snap on OSX once this step is corrected (I used the 
Apple docs, too).

Ken Martin


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Understand the security in tomcat

2002-03-25 Thread Terence Dewaele

Hello,

I have Apache 1.3.23 + Tomcat 3.3 in the debian linux server.
It's work togheter.
I have configured tomcat for using virtualhost :

-- server.xml --

  
  
  


-- httpd.conf --

JkMount /*.jsp ajp13


If i put test.jsp in my test.felling.org and i execute him it's work -> ok

Now if i put <% System.exit(1); %> in my test.jsp and i execute, i d'ont have 
security exception, my tomcat was killed !!

Howto disabled this and get security exception ?

Howto configure a chrooted enviroment to forbidden access reading file in 
directory up ?

Thx

P.S:
Sorry for my english :(
---
Térence Dewaele

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




JNDI/EJB: looking for some references

2002-03-25 Thread Alberto Bolchini

Hi all.

I'm trying to find some references on using an EJB from a remote J2EE
Container (JBoss).
I'v deployed the .war in my Tomcat 4.0.2 including JBoss's client jars
in WEB-INF/lib and have in my web.xml mentioned the  as follows


Nation
ejb/Nation
Session
NationHome
Nation
jnp:remoteIP/Nation


All I get is a 
Error initializing context: javax.naming.NameNotFoundException: Name
jnp:remoteIP is not bound in this Context

Can anyone point me a source of infos on this (or show me where the
error is?)

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Running a bean when tomcat starts.

2002-03-25 Thread Rui Oliveira

Hello,

I have a question. Is it possible to instantiate a user-class when
tomcat starts? What must I do in order to do it?

TIA
Rui Oliveira







--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: Does redirect stop processing of originally-targeted jsp?

2002-03-25 Thread Randy Layman



> -Original Message-
> From: Marc Elliott [mailto:[EMAIL PROTECTED]]
> Sent: Monday, March 25, 2002 8:43 AM
> To: [EMAIL PROTECTED]
> Subject: Does redirect stop processing of originally-targeted jsp?
> 
> 
> In a nutshell:  I have a process the runs in a javabean/jsp 
> that takes a long
> time and I don't want the user to have to wait for process to 
> finish before
> getting a response. So, I want the user to start the process, 
> then move on
> and do other things on the site.
> 
> If I send the user to the jsp with the javabean, and redirect 
> to another
> page, will the process on that first jsp continue to run?  
> How do I separate
> the presentation of jsp pages from the process being run by the client
> javabean?  Is that possible.

When you call response.sendRedirect, that only sets a response
header.  The JSP continues processing to the next statement and continues
until the end of the JSP page, a return command, or an exception is thrown -
all of which would stop execution of that JSP page.

What you are really looking for is to use threads.  You will need to
start a thread and put it into the session or some other object that won't
be garbage collected.  I would advise you to understand threads before going
very far down this path - threads can be complicated and the problems that
they can cause are not always very straight forward and easy to debug.

Randy

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




RE: DBCP, Pool and Collections - Further thoughts

2002-03-25 Thread Chirossel, Oliver

You must get the jar of "Pool" and "Collections" from the jakarta commons
subproject and put them in common/lib

http://jakarta.apache.org/commons/index.html

I test this solution of connection poolling and found some problems, when i
stop/start the SGBD connections aren't well recreate (broken pipe ...)
the Exceptions don't lift (when there is a bad configuration to connect the
db ...).

Olivier 


> -Message d'origine-
> De:   Steven Elliott [SMTP:[EMAIL PROTECTED]]
> Date: lundi 25 mars 2002 12:29
> À:[EMAIL PROTECTED]
> Objet:DBCP, Pool and Collections - Further thoughts
> 
> In my servlet I changed the Datasource reference to a BasicDataSource
> reference.  Now when I try to lookup the BasicDataSource with the
> following
> call:
>   BasicDataSource bds = (BasicDataSource)
> envCtx.lookup("jdbc/EmployeeDB");
> 
> I get the same error reported in my previous post but with a Root Cause
> now
> thrown in:
> 
> - Root Cause -
> java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPool
> at 
> org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(Unknown
> Source)
> at 
> org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactor
> y.
> java:165)
> at 
> javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
> at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
> at AdminLogin.chkIn(AdminLogin.java:72)
> at AdminLogin.doGet(AdminLogin.java:32)
> at AdminLogin.doPost(AdminLogin.java:56)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.ja
> va
> :446)
> at 
> org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216
> )
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicati
> on
> FilterChain.java:247)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilter
> Ch
> ain.java:193)
> at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.
> ja
> va:243)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 66)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.
> ja
> va:190)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 66)
> at 
> org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java
> :2
> 46)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 64)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
> at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:1
> 80
> )
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 66)
> at 
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValv
> e.
> java:170)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 64)
> at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:1
> 70
> )
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 64)
> at 
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 64)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.ja
> va
> :174)
> at 
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java
> :5
> 66)
> at 
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472
> )
> at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
> at 
> org.apache.catalina

Does redirect stop processing of originally-targeted jsp?

2002-03-25 Thread Marc Elliott

In a nutshell:  I have a process the runs in a javabean/jsp that takes a long
time and I don't want the user to have to wait for process to finish before
getting a response. So, I want the user to start the process, then move on
and do other things on the site.

If I send the user to the jsp with the javabean, and redirect to another
page, will the process on that first jsp continue to run?  How do I separate
the presentation of jsp pages from the process being run by the client
javabean?  Is that possible.

Thanks in advance for any help!

-- Marc

..

Marc Elliott
Director of Information Architecture / HNW Inc.
Digital Solutions for High-Net-Worth Marketers
ph: 617-243-9199 x224
fx: 815-327-4167 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Security + IIS

2002-03-25 Thread Renato Romano

I have to integrate two web applications: the first is written using
JSP, but the second is using Microsoft ASP pages. That's ok to have
Tomcat running under IIS, I already used this technique succesfully, but
what about using Servlet Security Schema, for ASP pages ?? Briefly I
would have of course IIS run ASP pages, but security checked by Tomcat
!! I suppose this ain't very easy, because i shoul let Tomcat serve ALL
resources, recognize ASP pages, and send them back to IIS, in some way
... Any help ? Thanks... Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




sendRedirect and port 0

2002-03-25 Thread Miguel Angel Medina Lopez

Hi all:

I'm using tomcat 3.2.3 with apache, and I have a problem with the
response.sendRedirect method. When I use it with a relative URL the port 0
was added to the result url, but the original didn't have it.

For example:
I call the servlet with the URL "http://www.logic-factory.com/servlet/Hello";
and in the code I write:
  res.sendRedirect("../index.jsp");

The servlet redirect the browser to the URL
http://www.logic-factory.com:0/index.html

Can anyone help me? Is a problem with the tomcat configuration or with the
sendRedirect Method.

Than you.

-
Miguel Ángel Medina López
Logic Factory: www.logic-factory.com
Granada - España






--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How do I configure uriworkermap.properties in IIS?

2002-03-25 Thread Alexander Höglind

Hi,
How do I configure uriworkermap.properties to allow all jsp files on a virtual host 
that's not in the %CATALINDA_HOME% directory?

Thanx,
Alexander Höglind



Re: Tomcat & IIS + MemoryRealm

2002-03-25 Thread A. Lai

Hi Lee,

I have installed Tomcat 4.03 on Win2K Server but it always complains about
the redirector .dll cannot load. Can you give me some pointers as to which
documentation you use? Thanks.

Alec

> Hi,
>
> I've installed Tomcat 4.0.3 on a Win 2k Server and installed the
redirector
> plugin so that IIS redirects JSP  and Servlet requests to Tomat.
Everything
> works fine, Tomcat serves JSP and servlets are running.
>
> Here's the problem:
> Tomcat's built-in MemoryRealm doesn't work when trying it via IIS. When
> using the 8080 Port while trying to  access a protected file the browser
is
> redirected to the login page and upon succesful login to the requested
> secure page. When I try the same thing through IIS Tomcat sends me to a
403
> Restricted Area Access  Denied page. Attempts to log in by calling the
login
> page manually result in a 404 error for j_security_check,  the action
> specified in the login form. I've already tried to include
j_security_check
> in the  uriworkermap.properties, but with no success.
>
> Any help is appreciated
>
> Lee
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat & IIS + MemoryRealm

2002-03-25 Thread Lee Kyon

Hi, 

I've installed Tomcat 4.0.3 on a Win 2k Server and installed the redirector
plugin so that IIS redirects JSP  and Servlet requests to Tomat. Everything
works fine, Tomcat serves JSP and servlets are running. 

Here's the problem:
Tomcat's built-in MemoryRealm doesn't work when trying it via IIS. When
using the 8080 Port while trying to  access a protected file the browser is
redirected to the login page and upon succesful login to the requested
secure page. When I try the same thing through IIS Tomcat sends me to a 403
Restricted Area Access  Denied page. Attempts to log in by calling the login
page manually result in a 404 error for j_security_check,  the action
specified in the login form. I've already tried to include j_security_check
in the  uriworkermap.properties, but with no success.

Any help is appreciated

Lee

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




DBCP, Pool and Collections - Further thoughts

2002-03-25 Thread Steven Elliott

In my servlet I changed the Datasource reference to a BasicDataSource
reference.  Now when I try to lookup the BasicDataSource with the following
call:
  BasicDataSource bds = (BasicDataSource) envCtx.lookup("jdbc/EmployeeDB");

I get the same error reported in my previous post but with a Root Cause now
thrown in:

- Root Cause -
java.lang.NoClassDefFoundError: org/apache/commons/pool/ObjectPool
at 
org.apache.commons.dbcp.BasicDataSourceFactory.getObjectInstance(Unknown
Source)
at 
org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.
java:165)
at 
javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)
at org.apache.naming.NamingContext.lookup(NamingContext.java:835)
at org.apache.naming.NamingContext.lookup(NamingContext.java:181)
at org.apache.naming.NamingContext.lookup(NamingContext.java:822)
at org.apache.naming.NamingContext.lookup(NamingContext.java:194)
at AdminLogin.chkIn(AdminLogin.java:72)
at AdminLogin.doGet(AdminLogin.java:32)
at AdminLogin.doPost(AdminLogin.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java
:446)
at 
org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:216)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2
46)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at 
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at 
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at 
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at 
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
at 
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
at java.lang.Thread.run(Thread.java:496)

If I could get the BasicDataSource reference I could invoke the
setLogWriter() method to try and get some more meaningful output but I can't
even seem to reference the BasicDataSource.

Craig do you have any ideas what the problem may be?  All three jars
(commons-collections, commons-pool and commons-dbcp) are in
$CATALINA_HOME/common/lib.  If I use the standard Tomcat 4.0.3 DataSource
factory with my servlet everything works as it should.  So I am at a loss.

??

Steven 


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




How to run binary cgi's?

2002-03-25 Thread Martin Schurbohm

Hi all!

I am trying to execute binary cgi's with the following configuration:
-Tomcat 4.0.3 (standalone)
-Windows 2000 Prof. SP2

I enabled CGI and SSI (renaming files and uncommenting web.xml) but there is no chance 
:(
Sometimes I get a cgi error, sometimes "file not found" and sometimes it shows me the 
content of the test.exe

thx for any help

-- 
Martin

--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




keyword of "domain" in Cookie

2002-03-25 Thread oh

Hi,

I am developing the server program for login process,
I set the cookie with "domain" and "path", but the keyword 
is not the format that the client expected.

Cookie were set by this way :
Cookie cookie = new Cookie("ticket", value);
cookie.setMaxAge(age);
cookie.setDomain("test.hostname.xxx");
cookie.setPath("/");
I hope it will be as the following format in the head of response:
Set-Cookie: ticket=53vt5whj61.ajp12tis21;domain=test.hostname.xxx;expires=Sat, 
12-Apr-2070 13:56:49 GMT;path=/

but all of the keywords are in capital, 
Set-Cookie: ticket=53vt5whj61.ajp12tis21;Domain=test.hostname.xxx;Expires=Sat, 
12-Apr-2070 13:56:49 GMT;Path=/

The client program received this by the response and set "Domain" as another cookie in 
the next request,
But tomcat doesnt't accept it, an exception occured:

java.lang.IllegalArgumentException: Cookie name Domain is a reserved token

For some reason the client cannot be changed, does any one know how to solve this 
problem?
I refered the documents about HTTP Cookie, the keyword is "domain" , not "Domain".
Why it was written as "Domain" by Tomcat?

Any help will be appreciate.

Regards,
Huimin Wang





--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem accessing servlets

2002-03-25 Thread Fabian Sommer

Hello!

I try to access a self-written http-servlet named Seminar02.class.
I have created a new directory tree in the tomcat/webapps directory, 
named Seminar. I have added /Seminar/Web-Inf/class directory and created 
a web.xml-file in Web-Inf. I have put my class-file in the class directory.
Else i added following lines in server.xml in the tomcat-rootdirectory:

 


I thought this should be enough to point my local tomcat installation to 
the Seminar-directory, and if i try to access "localhost:8080/seminar" i 
get the content of my Seminar-directory without the Web-Inf directory.

This is my web.xml file in the /Seminar/Web-Inf directory:

--



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






Seminare02

This is version 0.4 of an application to perform
   wild jdbc-mysql tasks.





webmaster
[EMAIL PROTECTED]

The EMAIL address of the developer to whom questions
 and comments about this application should be addressed.
   






Seminar02

This servlet plays the "controller" role
   
Seminar02




Seminar02
/Seminar/*



Seminar02
/Seminar02



Seminar02
/



30 





As you can see i have tried several servlet-mappings - but none of these 
seem to take effect: every time i try to access this servlet via 
"localhost:8080/seminar/Seminar02" or something close to this ending i 
get the tomcat-error-html-output:

  The requested resource (/Seminar02) is not available.

I verify that my servlet is working by using the examples-directory, 
where i added the same servlet-description and -mapping to the 
web.xml-file - and there my servlet is accessible and fine working.
I expect myself to have a lack of understanding the xml-configuration of 
tomcat-web-applications. But i'm stuck:
I'm looking for help since weeks. Perhaps i got to an end with my search? ;)

If there is an archive of this list with postings covering these 
problems, please let me know.

Ah, some more info you need perhaps about my system-config:
I'm running tomcat-4.0.1 on a win98-machine with a JSDK1.3 (where all 
these problems occur in the way i desribed them here - i tried these 
things also on a winnt and a win2k machine, and there i meet much more 
problems regarding the work of the mm.mysqldriver in my application)

Thanks for any help!
Fabian Sommer


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: java.lan.OutOfMemoryError

2002-03-25 Thread David Hamilton

H.  I recant my heresy!

Tomcat is not to blame here.  I have just reminded myself that IOException
is the only checked exception thrown by OutputStream and
IllegalStateException is unchecked.  Given that the rule-of-thumb is 'use
unchecked exceptions only if the error cannot occur in a bug-free, correctly
running, well configured system', and that a closed socket can happen any
system, the JDK classes should be throwing IOException.

david

- Original Message -
From: "David Hamilton" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 8:06 PM
Subject: Re: RE : java.lan.OutOfMemoryError


> That was my evaluation.  The error handling looked distinctly fragile to
me.
> To be honest, it looks like Sun have tightened up their state-checking
with
> the nio package (good) and exposed some weaknesses in the tomcat code
(bad).
>
> But then I have strong opinions on error handling (i.e. you should define
a
> policy for it in your coding standard).  It seems too often that it's just
> left to individual coders to make arbitrary decisions on which errors
ignore
> and which to escalate... seems to be a frequent cause of 'unexpected'
> behaviour!
>
> david
>



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Re: Tomcat on Mac OS X, please help!

2002-03-25 Thread Steven Elliott

Apologies for not including this in my original reply.

Here are the lines in the $CATALINA_HOME/examples/WEB.XML file that should
be on or about lines 68 - 73.  If you comment these out exceptions for
filters.SetCharacterEncodingFilter should disappear (even if you leave in
the declaration for the filter in the lines above).

If you have other error messages (from either catalina_log or localhost_log,
etc) then post the stack trace and a description of the problem and we'll
try to help.   Can't do much more without the information.

--< to be commented out >---


Set Character Encoding
/*


--< end >---

Steven


--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Problem with mime types

2002-03-25 Thread Héctor Garcia Peris

Hello all,

I have tomcat 3.2.2 running in a debian potato 2.2.l9. I have a problem 
with mime types. When I get a page with extension .css I see that the mime 
type that the server returns to me is text/plain. I find a file under the 
conf directory that is web.xml that there are lines with this:

 
 
 wrl
 
 
 x-world/x-vrml
 
 

I think that here is where I can put my extensions and I put the following 
lines:

 
 
 css
 
 
 text/css
 
 
 
 
 js
 
 
 application/x-javascript
 
 

But when I restart the tomcat server and I get the file 
http://linux.ivie.es:8080/estilos.css, the mime type is still text/html, 
and not text/css.

What am I making wrong?

Thanks.


-
Héctor Garcia Peris
Dpto. Informática
Instituto Valenciano de Investigaciones Económicas S.A. (Ivie)
C/ Guardia Civil, 22 esc-2 1º 46020 - Valencia (Spain)
Tfno.: +34 - 963190050 / +34 - 963930816
Fax.: +34 - 963190055 / +34 - 963930856
e-mail: [EMAIL PROTECTED]
--



--
To unsubscribe:   
For additional commands: 
Troubles with the list: 




Tomcat Security

2002-03-25 Thread Renato Romano

I have to integrate two web applications: the first is written using
JSP, but the second is using Microsoft ASP pages. That's ok to have
Tomcat running under IIS, I already used this technique succesfully, but
what about using Servlet Security Schema, for ASP pages ?? Briefly I
would have of course IIS run ASP pages, but security checked by Tomcat
!! I suppose this ain't very easy, because i shoul let Tomcat serve ALL
resources, recognize ASP pages, and send them back to IIS, in some way
...
Any help ?
Thanks...
Renato


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_




--
To unsubscribe:   
For additional commands: 
Troubles with the list: