Re: tomcat & apache in win32

2002-10-30 Thread dave m
I was told to try this doc.  It is pretty straight forward.  Please let me 
know if it is successful.

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip


From: Felipe Schnack <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Subject: tomcat & apache in win32
Date: 30 Oct 2002 14:35:56 -0200

  Anyone already used mod_jk to integrate Tomcat 4.1.x and Apache 1.3.x
under Win32?
  I need to do that, where I can find a how-to?
--

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 



_
Unlimited Internet access -- and 2 months free!  Try MSN. 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Problem with request-time attribute expressions in XML JSPs

2002-10-30 Thread Stefan Wachter
Hi all.

I tried to work with XML JSPs (i.e. JSP in XML form) but I am not able to
use request time attriubtes. For example the former JSP code




should translate into:




Tomcat 4.1.12 does not recognize this request-time attribute expression and
outputs it literally, i.e. the generated servlet contains the code:

out.write("");

Can anyone help me with this problem?

Thanks,
--Stefan


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat & apache in win32

2002-10-30 Thread Felipe Schnack
  Telling by the URL this is for Apache 2.x, I need to do it in apache
1.3.x

On Wed, 2002-10-30 at 16:11, dave m wrote:
> I was told to try this doc.  It is pretty straight forward.  Please let me 
> know if it is successful.
> 
> ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip
> 
> 
> >From: Felipe Schnack <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> >To: Tomcat Users List <[EMAIL PROTECTED]>
> >Subject: tomcat & apache in win32
> >Date: 30 Oct 2002 14:35:56 -0200
> >
> >   Anyone already used mod_jk to integrate Tomcat 4.1.x and Apache 1.3.x
> >under Win32?
> >   I need to do that, where I can find a how-to?
> >--
> >
> >Felipe Schnack
> >Analista de Sistemas
> >[EMAIL PROTECTED]
> >Cel.: (51)91287530
> >Linux Counter #281893
> >
> >Faculdade Ritter dos Reis
> >www.ritterdosreis.br
> >[EMAIL PROTECTED]
> >Fone/Fax.: (51)32303328
> >
> >
> >--
> >To unsubscribe, e-mail:   
> >
> >For additional commands, e-mail: 
> >
> 
> 
> _
> Unlimited Internet access -- and 2 months free!  Try MSN. 
> http://resourcecenter.msn.com/access/plans/2monthsfree.asp
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I increase performance on Tomcat?

2002-10-30 Thread David Tildesley
I've observed that increasing memory settings can have the opposite effect
on performance also and introduce a cyclic performance factor (requests per
second spikes quite high and then plummets to very low for sometimes 30 secs
or more. I don't have an answer except keep to the default settings.
Increasing maxprocessors is OK for sustained testing, but not sure if its
the answer for a peaky traffic load. There is a connection pooling class
that I've seen mentioned in relation to JK but haven't experimented with it.
Sorry not to be of more help. Putting Apache in front of Tomcat will not
help by the way (will make it worse) unless you have a lot of static content
that Apache could server up. Having said all that, we can load up tomcat on
a pretty ordinary box and get good performance up to 200 concurrent users
and get throughput up to 500 rps (requests per second).

-Original Message-
From: [EMAIL PROTECTED] [mailto:JStanczak@;vinu.edu]
Sent: Thursday, 31 October 2002 4:18 a.m.
To: Tomcat Users List
Subject: Re: How do I increase performance on Tomcat?



Here's my server.xml file. I'm using Tomcat 4 in standalone. I guess I'm
not understanding the connection pooling part of what you sent. I thought
the maxProcessors part was for that. I'm still reading through it all, but
the JVM part I've already done.





  
  
  







  












  
  
  
  
  
  
  
  
  
  
  
  













  
  
  
  
  
  
  
  
usersa
password
driverClassName
  org.hsql.jdbcDriver
driverName
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  

  

  
  
  
  



  
  
  
  

  



Thank You,

Justin A. Stanczak
Web Manager
Shake Learning Resource Center
Vincennes University
(812)888-5813


|-+>
| |   kathee   |
| |   <[EMAIL PROTECTED]>  |
| ||
| |   10/30/02 09:45 AM|
| |   Please respond to|
| |   "Tomcat Users|
| |   List"|
| ||
|-+>

>---
---|
  |
|
  |   To:   Tomcat Users List <[EMAIL PROTECTED]>
|
  |   cc:
|
  |   Subject:  Re: How do I increase performance on Tomcat?
|

>---
---|




Tomcat Tuning Notes (applies to all versions and a good start)

** Exerpted from:
http://jakarta.apache.org/tomcat/tomcat-3.2-doc/uguide/tomcat_ug.html.

Please see this for the complete Tomcat User Guide.

Real World Configuration Tips

By default the Tomcat distribution comes with a naive configuration
whose main goal is to promote first time user experience and an "out of
the box" operation... This configuration however is not the best way to
deploy Tomcat on real sites. For example, real sites may require some
performance tuning and site-specific settings (additional path elements
for example). This section will try to get you started by directing you
to the first steps that should be taken before publishing a Tomcat based
site.

Modify and Customize the Batch Files

As stated in the previous sections, the startup scripts are here for
your convenient. Yet, sometimes the scripts that are needed for
deployment should be modified:

To set resource limits such as maximum number of descriptors.
To add new CLASSPATH entries (for example, JDBC drivers).
To add new PATH/LD_LIBRARY_PATH entries (for example, JDBC drivers
DLLs).
To modify the JVM command line settings.
Make sure that you are using a specific JVM (out of the two or three
JVMs installed on your machine).
To switch user from root to some other user using the "su" UNIX command.
Your pet reason.

Some of these changes can be done without explicit changes to the basic
scripts; for example, the tomcat script can use an environment variable
named TOMCAT_OPTS to set extra command line parameters to the JVM (such
as memory setting etc.). On UNIX you can also create a file named
".tomcatrc" in your home directory and Tomcat will take environment
information such as PATH, JAVA_HOME, TOMCAT_HOME and CLASSPATH from this
file. On NT however (and also on UNIX when the modifications are for
something such as the JVM command line) you are forced to rewrite some
of the startup script...

Do not hesitate, just do it.

RE: Is CLASSPATH ignored ?

2002-10-30 Thread Sinclair, Alan (CORP, GEAccess)
I thought about modifying the setclasspath.sh however, we prefer not to
modify the Tomcat distribution - makes for easier upgrading in the future.

Thanks anyway

-Original Message-
From: [EMAIL PROTECTED] [mailto:MTimpe@;t-online.de]
Sent: Wednesday, October 30, 2002 10:17 AM
To: Tomcat Users List
Subject: Re: Is CLASSPATH ignored ?



There is a way to use the classpath. In the script 
catalina.bat/catalina.sh the variable CLASSPATH is overwritten and all 
previous content is skipped. You can fix this by including the content 
of the CLASSPATH variable. There is also a script called 
setclasspath.sh/setclasspath.bat. You can change this also. I did not 
find a solution if you're using the Tomcat service under Win NT/2000/XP. 
If you need JARS outside the Tomcat installation you have to go this way 
and to start Tomcat using the scripts instead of using the service.

Change the line

set CLASSPATH=...

to (according to your plattform)

set CLASSPATH=%CLASSPATH%;... or
set CLASSPATH=${CLASSPATH};...

Greetings

Michael


Craig R. McClanahan wrote:

>On Tue, 29 Oct 2002, Sinclair, Alan  (CORP, GEAccess) wrote:
>
>  
>
>>Date: Tue, 29 Oct 2002 13:01:06 -0700
>>From: "Sinclair, Alan  (CORP, GEAccess)" <[EMAIL PROTECTED]>
>>Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>To: "Tomcat Users List (E-mail)" <[EMAIL PROTECTED]>
>>Subject: Is CLASSPATH ignored ?
>>
>>All,
>>
>>Does the UNIX Tomcat implementation ignore the CLASSPATH environment
>>variable ?
>>
>>
>>
>
>Yes.
>
>  
>
>>For example, in order to make DBCP pooling work, I placed the Oracle JAR
>>file in $CATALINA_HOME/common/lib  Does this mean that all application JAR
>>files must be installed in ../common/lib ?
>>
>>
>>
>
>http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html
>
>  
>
>>Thanks
>>
>>
>
>Craig
>
>
>--
>To unsubscribe, e-mail:

>For additional commands, e-mail:

>
>
>  
>



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat firewall password

2002-10-30 Thread David Tildesley
what are you trying to achieve - why does tomcat need to "go out" through a
firewall? Do you want to serve up content to internet users from the tomcat
or do you have a tomcat application that needs to access a resource on the
internet?

-Original Message-
From: Lee, Michael [mailto:Michael.Lee@;directline.de]
Sent: Wednesday, 30 October 2002 7:36 p.m.
To: [EMAIL PROTECTED]
Subject: Tomcat firewall password


does any body know how to configure tomcat so that it is able to go out
through a firewall. The firewall at work requires a username and password
before a person can get on to the internet. I cannot find any documentation
on how this can be achieved

Many Thanks in advance

Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: How do I increase performance on Tomcat?

2002-10-30 Thread Craig R. McClanahan


On Thu, 31 Oct 2002, David Tildesley wrote:

> Date: Thu, 31 Oct 2002 07:19:48 +1300
> From: David Tildesley <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: How do I increase performance on Tomcat?
>
> I've observed that increasing memory settings can have the opposite effect
> on performance also and introduce a cyclic performance factor (requests per
> second spikes quite high and then plummets to very low for sometimes 30 secs
> or more.

That is exactly what I'd expect to see if you've allocated a lot of memory
and the garbage collector fires off.  The only way to know for sure is use
a monitoring tool.

If it is garbage collection, try using incremental mode (set your
CATALINA_OPTS environment variable to include "-Xincgc" before starting
Tomcat).

Craig


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




vs - which is better for me ?

2002-10-30 Thread achana
Hi all.
Both options work for me.
Which is the better solution in terms of performance ?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tomcat & apache in win32

2002-10-30 Thread Turner, John

http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml

John


> -Original Message-
> From: Felipe Schnack [mailto:felipes@;ritterdosreis.br]
> Sent: Wednesday, October 30, 2002 12:16 PM
> To: Tomcat Users List
> Subject: Re: tomcat & apache in win32
> 
> 
>   Telling by the URL this is for Apache 2.x, I need to do it in apache
> 1.3.x
> 
> On Wed, 2002-10-30 at 16:11, dave m wrote:
> > I was told to try this doc.  It is pretty straight forward. 
>  Please let me 
> > know if it is successful.
> > 
> > 
> ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip
> > 
> > 
> > >From: Felipe Schnack <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > >To: Tomcat Users List <[EMAIL PROTECTED]>
> > >Subject: tomcat & apache in win32
> > >Date: 30 Oct 2002 14:35:56 -0200
> > >
> > >   Anyone already used mod_jk to integrate Tomcat 4.1.x 
> and Apache 1.3.x
> > >under Win32?
> > >   I need to do that, where I can find a how-to?
> > >--
> > >
> > >Felipe Schnack
> > >Analista de Sistemas
> > >[EMAIL PROTECTED]
> > >Cel.: (51)91287530
> > >Linux Counter #281893
> > >
> > >Faculdade Ritter dos Reis
> > >www.ritterdosreis.br
> > >[EMAIL PROTECTED]
> > >Fone/Fax.: (51)32303328
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:   
> > >
> > >For additional commands, e-mail: 
> > >
> > 
> > 
> > _
> > Unlimited Internet access -- and 2 months free!  Try MSN. 
> > http://resourcecenter.msn.com/access/plans/2monthsfree.asp
> > 
> > 
> > --
> > To unsubscribe, e-mail:   

> For additional commands, e-mail:

> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Problem with request-time attribute expressions in XML JSPs

2002-10-30 Thread pqin
Will remove " work?

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: Stefan Wachter [mailto:Stefan.Wachter@;gmx.de] 
Sent: October 30, 2002 11:55 AM
To: [EMAIL PROTECTED]
Subject: Problem with request-time attribute expressions in XML JSPs

Hi all.

I tried to work with XML JSPs (i.e. JSP in XML form) but I am not able to
use request time attriubtes. For example the former JSP code




should translate into:




Tomcat 4.1.12 does not recognize this request-time attribute expression and
outputs it literally, i.e. the generated servlet contains the code:

out.write("");

Can anyone help me with this problem?

Thanks,
--Stefan


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: compile error?

2002-10-30 Thread pqin
Missing = at the beginning and ; at the end.

Regards,
 
 
Phillip Qin
 
Software Developer
Canadian Shareowner
121 Richmond Street W, 7th Floor
Toronto, ON M5H 2K1
(416) 595-9600 ext 291
 

-Original Message-
From: John Trollinger [mailto:jakarta@;trollingers.com] 
Sent: October 30, 2002 12:51 PM
To: 'Tomcat Users List'
Subject: RE: compile error?

If you want to see the date you must do  

<% java.util.Date() date = new java.util.Date(); %>
<%= date %>

> -Original Message-
> From: Tumy, Brad [mailto:TumyB@;Pragmatics.com] 
> Sent: Wednesday, October 30, 2002 12:37 PM
> To: 'Tomcat Users List'
> Subject: compile error?
> 
> 
> I just installed Tomcat on my server and I am trying to run a 
> test page.  I created a new jsp file in the directory: 
> C:\Tomcat\jakarta-tomcat-4.1.12\webapps\ROOT
> 
> The only code I put on this page was:
> <% new java.util.Date() %>
> 
> I got the following error:
> ***
> org.apache.jasper.JasperException: Unable to compile class for JSP
> 
> An error occurred at line: 12 in the jsp file: /test.jsp
> 
> Generated servlet error:
> [javac] Compiling 1 source file
> 
> C:\Tomcat\jakarta-tomcat-4.1.12\work\Standalone\localhost\_\te
> st_jsp.java:49
> : ';' expected
>   new java.util.Date()
> ^
> 1 error
> ***
> 
> If I put the semi-colon into the code like it's indicating, I 
> don't get anything display.
> 
> I would appreciate any help with this.
> 
> Brad Tumy
> 
> --
> To unsubscribe, e-mail:   
>  [EMAIL PROTECTED]>
> For 
> additional commands, 
> e-mail: 
> 


--
To unsubscribe, e-mail:

For additional commands, e-mail:




RE: tomcat & apache in win32

2002-10-30 Thread Felipe Schnack
  Thanks!

On Wed, 2002-10-30 at 16:34, Turner, John wrote:
> 
> http://www.galatea.com/flashguides/apache-tomcat-4-win32.xml
> 
> John
> 
> 
> > -Original Message-
> > From: Felipe Schnack [mailto:felipes@;ritterdosreis.br]
> > Sent: Wednesday, October 30, 2002 12:16 PM
> > To: Tomcat Users List
> > Subject: Re: tomcat & apache in win32
> > 
> > 
> >   Telling by the URL this is for Apache 2.x, I need to do it in apache
> > 1.3.x
> > 
> > On Wed, 2002-10-30 at 16:11, dave m wrote:
> > > I was told to try this doc.  It is pretty straight forward. 
> >  Please let me 
> > > know if it is successful.
> > > 
> > > 
> > ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip
> > > 
> > > 
> > > >From: Felipe Schnack <[EMAIL PROTECTED]>
> > > >Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > > >To: Tomcat Users List <[EMAIL PROTECTED]>
> > > >Subject: tomcat & apache in win32
> > > >Date: 30 Oct 2002 14:35:56 -0200
> > > >
> > > >   Anyone already used mod_jk to integrate Tomcat 4.1.x 
> > and Apache 1.3.x
> > > >under Win32?
> > > >   I need to do that, where I can find a how-to?
> > > >--
> > > >
> > > >Felipe Schnack
> > > >Analista de Sistemas
> > > >[EMAIL PROTECTED]
> > > >Cel.: (51)91287530
> > > >Linux Counter #281893
> > > >
> > > >Faculdade Ritter dos Reis
> > > >www.ritterdosreis.br
> > > >[EMAIL PROTECTED]
> > > >Fone/Fax.: (51)32303328
> > > >
> > > >
> > > >--
> > > >To unsubscribe, e-mail:   
> > > >
> > > >For additional commands, e-mail: 
> > > >
> > > 
> > > 
> > > _
> > > Unlimited Internet access -- and 2 months free!  Try MSN. 
> > > http://resourcecenter.msn.com/access/plans/2monthsfree.asp
> > > 
> > > 
> > > --
> > > To unsubscribe, e-mail:   
> 
> > For additional commands, e-mail:
> 
> > 
> -- 
> 
> Felipe Schnack
> Analista de Sistemas
> [EMAIL PROTECTED]
> Cel.: (51)91287530
> Linux Counter #281893
> 
> Faculdade Ritter dos Reis
> www.ritterdosreis.br
> [EMAIL PROTECTED]
> Fone/Fax.: (51)32303328
> 
> 
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 
-- 

Felipe Schnack
Analista de Sistemas
[EMAIL PROTECTED]
Cel.: (51)91287530
Linux Counter #281893

Faculdade Ritter dos Reis
www.ritterdosreis.br
[EMAIL PROTECTED]
Fone/Fax.: (51)32303328


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: compile error?

2002-10-30 Thread Julius Davies

Phillip Qin,

I only use semicolons in "<% %>" and "<%! %>", but never in "<%= %>".  Weblogic 
refuses to compile my jsps when I put semicolons in "<%= %>".  Tomcat and JRun don't 
seem to mind, though, and so since this is a Tomcat mailing list, I guess you're 
correct.

<%
String blah = "hello";
%>

<%-- NO SEMI-COLON: --%>
<%= blah %>

<%-- SEMI-COLON REQUIRED: --%>
<% out.println( blah ); %>


Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385




> -Original Message-
> From: [EMAIL PROTECTED] [mailto:pqin@;shareowner.com]
> Sent: Wednesday, October 30, 2002 10:40 AM
> To: [EMAIL PROTECTED]
> Subject: RE: compile error?
> 
> 
> Missing = at the beginning and ; at the end.
> 
> Regards,
>  
>  
> Phillip Qin
>  
> Software Developer
> Canadian Shareowner
> 121 Richmond Street W, 7th Floor
> Toronto, ON M5H 2K1
> (416) 595-9600 ext 291
>  
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat on Thru64 Unix (OSF1)

2002-10-30 Thread Denys Sene dos Santos
Hi,

I'm having some troubles while running Tomcat 4.1.12-LE
under Digital Unix (OSF1). The server are running ok, but the
/examples dir with the servlets are returning the error :

HTTP Status 404 - /examples/servlets/

type Status report

message /examples/servlets/

description The requested resource (/examples/servlets/) is not
available.

I'm working with the default config files.
Under linux, I have no problems.

Thank you.

-- 
 _
 \_   
   \  Denys Sene dos Santos  -  [EMAIL PROTECTED]
  o/\_  http://www1.cptec.inpe.br/~sene/ - ICQ #31845401  
 <\__,\  Meteorological Products Group - Phone: +55 12 560-8458   
  ">.  |  Center for Weather Forecasts and Climate Studies - CPTEC
   ` .-|  National Institute for Space Research - MCT/INPE
  . \  A happy Linux User #71117  
   . \
.-|

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Custom Error Page Issue

2002-10-30 Thread Jaimes Blunt
Hey Guys,
 
I am trying to create a custom error page for my webapps, and I am encountering the 
following message when I try to force an error.
Error page location myerror.jsp must start with a /
My webapp file has the following included:
 
   404
   myerror.jsp
 
 
   400
   myerror.jsp
 
 
   200
   myerror.jsp
 

Any ideas?

Jaimes Blunt 




Re: compile error?

2002-10-30 Thread Alfonso Martinez
  I guess Tomcat complies too, at least on my expierence. The error ocurrs when the 
jsp gets converted into servlet code:

<%=blah();%>  

into

out.write(blah(););   // servlet code

  ...  therefore the semicolon should be omitted for the servlet to be compiled 
normally...


greetings

Jose



On Wed, Oct 30, 2002 at 10:50:52AM -0800, Julius Davies wrote:
> 
> Phillip Qin,
> 
> I only use semicolons in "<% %>" and "<%! %>", but never in "<%= %>".  Weblogic 
>refuses to compile my jsps when I put semicolons in "<%= %>".  Tomcat and JRun don't 
>seem to mind, though, and so since this is a Tomcat mailing list, I guess you're 
>correct.
> 
> <%
> String blah = "hello";
> %>
> 
> <%-- NO SEMI-COLON: --%>
> <%= blah %>
> 
> <%-- SEMI-COLON REQUIRED: --%>
> <% out.println( blah ); %>
> 
> 
> Julius Davies, Programmer, CUCBC
> Email: [EMAIL PROTECTED], Ph: 604.730.6385
> 
> 
> 
> 
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:pqin@;shareowner.com]
> > Sent: Wednesday, October 30, 2002 10:40 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: compile error?
> > 
> > 
> > Missing = at the beginning and ; at the end.
> > 
> > Regards,
> >  
> >  
> > Phillip Qin
> >  
> > Software Developer
> > Canadian Shareowner
> > 121 Richmond Street W, 7th Floor
> > Toronto, ON M5H 2K1
> > (416) 595-9600 ext 291
> >  
> > 
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat 4.1.12 hanging under stress?

2002-10-30 Thread William Lee
Ben Ricker wrote:

On Mon, 2002-10-28 at 20:24, William Lee wrote:
 

Hmm, it may have something to do with the kernel, I'll try later to see 
whether this is the case.  I don't think the log gives me much though. 
Anyhow, I've made a weird discovery that I found interesting.


After the other info you gave me, I am less concerned with the kernel
now. I would still upgrade it, though. There is a nasty networking bug
in the 2,4,9 kernel, I believe, that effects scalability.



It seems like there's a "barrier" when the JVM consume around 90MB of 
RAM.  Once the JVM got over that barrier, then things will keep working.



Well, it turned out this problem may not have anything to do with the 
JVM at all.

After trying various different JREs, -X flags, and garbage collection 
info, etc, I updated my tomcat to 4.1.14 (test) and now I got the 
following exception in stdout when I got into the situation where the 
connection hung:

Class org.apache.commons.logging.impl.Log4JCategoryLog does not 
implement Log
at 
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:555)
at 
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:289)
at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:409)
at org.apache.tomcat.util.log.CommonLogHandler.log(CommonLogHandler.java:97)
at org.apache.tomcat.util.log.Log.log(Log.java:198)
at org.apache.tomcat.util.log.Log.log(Log.java:192)
at org.apache.tomcat.util.log.Log.log(Log.java:165)
at org.apache.tomcat.util.threads.ThreadPool.logFull(ThreadPool.java:260)
at org.apache.tomcat.util.threads.ThreadPool.runIt(ThreadPool.java:226)
at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:509)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:533)
at java.lang.Thread.run(Thread.java:512)


Looking into the 4.1.14 source code it turned out that the thread (maybe 
the connection thread?) just died when calling the function logFull(), 
and somehow log4j failed to do so (?).  Does this have anything to do 
with class loader and using different versions of log4j?  Does anyone 
know how tomcat logged its messages?


--
William Lee (Will)| Sendmail Inc.
Email:  [EMAIL PROTECTED] | http://www.sendmail.com
Tel:(510) 594-5505|


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



JDBC / ThreadLocal pattern.

2002-10-30 Thread Reynir Hübner
Hi all, 

This email is a little bit off topic, as it's more about JDBC-related stuff than 
tomcat.

I'm really looking for comments on the approach for JDBC connection pooling described 
in the article at : 
http://www-106.ibm.com/developerworks/java/library/j-threads3.html

In (very) short:  the idea here is to have one jdbc-connection for each thread, 
instead of a pool with connections.

I've got few ideas on the subject, for example this may be cool because : 

 1. I will never have to worrie about not returning connections anymore, as they will 
always be garbage collected as soon as the thread is dead.
 2. The connection will be available for more than one request so I can lazy load 
resultsets.
 3. This might make transaction-service implementation easyer
 4. many other great things

I realise there must be some kind of problems by doing it this way, but I only came up 
with these :

 1. can this approach cause too many connections to the database (75 threads in Tomcat 
is the default means 75 connections) ?
 2. can it be to heavy for the garbagecollector to collect all the dead connections 
lying around when a thread dies ?
 3. anything more negative stuff ?

I am looking for comments on the pattern.. Please respons if you have any.
Thanx alot!

[EMAIL PROTECTED]





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




help with tomcat 1.4.1 and j2sdk1.4.0?

2002-10-30 Thread Stanley Michaud
I need help with the jakarta-tomcat 1.4.1 and j2sdk1.4.0 which is installed in windows 
2000 Professional in an IBM laptop with an intel celeron processor with 466Mhz speed.  

Both in the user variables for default and the system variables. I use this to declare 
my variables:

CATALINA_HOME C:\tomcat
JAVA_HOME C:\j2sdk
CLASSPATH 
.;C:\j2sdk\bin;C:\j2sdk\jre\lib\ext\mm.mysql-2.0.14-bin.jar;C:\tomcat\bin\bootstrap.jar;C:\tomcat\common\lib\servlet.jar;c:\tomcat\common\lib\tools.jar;

I use the command prompt to startup my tomcat and this happens:

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.

C:\>cd tomcat

C:\TOMCAT>cd bin

C:\TOMCAT\BIN>startup
The CATALINA_HOME environment variable is not defined correctly
This environment variable is needed to run this program

C:\TOMCAT\BIN>

Another problem is when I compile a servlet in jdk this happens, it seems that the 
servlet jar file is not being recognized anywhere.

Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-1999.

C:\>cd j2sdk

C:\J2SDK>cd bin

C:\J2SDK\BIN>javac -classpath c:\j2sdk\bin;%CLASSPATH% Cam.java
Cam.java:1: package javax.servlet does not exist
import javax.servlet.*;
^
Cam.java:2: package javax.servlet.http does not exist
import javax.servlet.http.*;
^
Cam.java:7: cannot resolve symbol
symbol  : class HttpServlet
location: class Cam
public class Cam extends HttpServlet
 ^
Cam.java:10: cannot resolve symbol
symbol  : class ServletConfig
location: class Cam
public void init(ServletConfig config) throws ServletException
 ^
Cam.java:10: cannot resolve symbol
symbol  : class ServletException
location: class Cam
public void init(ServletConfig config) throws ServletException
  ^
Cam.java:88: cannot resolve symbol
symbol  : class HttpServletRequest
location: class Cam
public void doGet(HttpServletRequest req, HttpServletResponse resp)
  ^
Cam.java:88: cannot resolve symbol
symbol  : class HttpServletResponse
location: class Cam
public void doGet(HttpServletRequest req, HttpServletResponse resp)
  ^
Cam.java:101: cannot resolve symbol
symbol  : class HttpServletRequest
location: class Cam
public synchronized void doPost(HttpServletRequest req,
^
Cam.java:102: cannot resolve symbol
symbol  : class HttpServletResponse
location: class Cam
HttpServletResponse resp)
^
Cam.java:13: cannot resolve symbol
symbol  : variable super
location: class Cam
super.init(config);
^
Cam.java:20: cannot resolve symbol
symbol  : class ServletException
location: class Cam
{ throw new ServletException(e.toString()); }
^
Cam.java:136: cannot resolve symbol
symbol  : class ServletInputStream
location: class Cam
ServletInputStream instream = null;
^
Cam.java:141: cannot resolve symbol
symbol  : variable HttpUtils
location: class Cam
postData = HttpUtils.parsePostData(
   ^
13 errors

C:\J2SDK\BIN>



If anyone out there has the answer to these problems give me back a response, I would 
really appreciate it.

Stanley Michaud



RE: help with tomcat 1.4.1 and j2sdk1.4.0?

2002-10-30 Thread Turner, John

You're missing "=".

Should be:  CATALINA_HOME=C:\tomcat

John

> -Original Message-
> From: Stanley Michaud [mailto:jmichau2@;optonline.net]
> Sent: Wednesday, October 30, 2002 5:51 PM
> To: [EMAIL PROTECTED]
> Subject: help with tomcat 1.4.1 and j2sdk1.4.0?
> 
> 
> I need help with the jakarta-tomcat 1.4.1 and j2sdk1.4.0 
> which is installed in windows 2000 Professional in an IBM 
> laptop with an intel celeron processor with 466Mhz speed.  
> 
> Both in the user variables for default and the system 
> variables. I use this to declare my variables:
> 
> CATALINA_HOME C:\tomcat
> JAVA_HOME C:\j2sdk
> CLASSPATH 
> .;C:\j2sdk\bin;C:\j2sdk\jre\lib\ext\mm.mysql-2.0.14-bin.jar;C:
> \tomcat\bin\bootstrap.jar;C:\tomcat\common\lib\servlet.jar;c:\
> tomcat\common\lib\tools.jar;
> 
> I use the command prompt to startup my tomcat and this happens:
> 
> Microsoft(R) Windows DOS
> (C)Copyright Microsoft Corp 1990-1999.
> 
> C:\>cd tomcat
> 
> C:\TOMCAT>cd bin
> 
> C:\TOMCAT\BIN>startup
> The CATALINA_HOME environment variable is not defined correctly
> This environment variable is needed to run this program
> 
> C:\TOMCAT\BIN>
> 
> Another problem is when I compile a servlet in jdk this 
> happens, it seems that the servlet jar file is not being 
> recognized anywhere.
> 
> Microsoft(R) Windows DOS
> (C)Copyright Microsoft Corp 1990-1999.
> 
> C:\>cd j2sdk
> 
> C:\J2SDK>cd bin
> 
> C:\J2SDK\BIN>javac -classpath c:\j2sdk\bin;%CLASSPATH% Cam.java
> Cam.java:1: package javax.servlet does not exist
> import javax.servlet.*;
> ^
> Cam.java:2: package javax.servlet.http does not exist
> import javax.servlet.http.*;
> ^
> Cam.java:7: cannot resolve symbol
> symbol  : class HttpServlet
> location: class Cam
> public class Cam extends HttpServlet
>  ^
> Cam.java:10: cannot resolve symbol
> symbol  : class ServletConfig
> location: class Cam
> public void init(ServletConfig config) throws ServletException
>  ^
> Cam.java:10: cannot resolve symbol
> symbol  : class ServletException
> location: class Cam
> public void init(ServletConfig config) throws ServletException
>   ^
> Cam.java:88: cannot resolve symbol
> symbol  : class HttpServletRequest
> location: class Cam
> public void doGet(HttpServletRequest req, 
> HttpServletResponse resp)
>   ^
> Cam.java:88: cannot resolve symbol
> symbol  : class HttpServletResponse
> location: class Cam
> public void doGet(HttpServletRequest req, 
> HttpServletResponse resp)
>   ^
> Cam.java:101: cannot resolve symbol
> symbol  : class HttpServletRequest
> location: class Cam
> public synchronized void doPost(HttpServletRequest req,
> ^
> Cam.java:102: cannot resolve symbol
> symbol  : class HttpServletResponse
> location: class Cam
> HttpServletResponse resp)
> ^
> Cam.java:13: cannot resolve symbol
> symbol  : variable super
> location: class Cam
> super.init(config);
> ^
> Cam.java:20: cannot resolve symbol
> symbol  : class ServletException
> location: class Cam
> { throw new ServletException(e.toString()); }
> ^
> Cam.java:136: cannot resolve symbol
> symbol  : class ServletInputStream
> location: class Cam
> ServletInputStream instream = null;
> ^
> Cam.java:141: cannot resolve symbol
> symbol  : variable HttpUtils
> location: class Cam
> postData = HttpUtils.parsePostData(
>^
> 13 errors
> 
> C:\J2SDK\BIN>
> 
> 
> 
> If anyone out there has the answer to these problems give me 
> back a response, I would really appreciate it.
> 
> Stanley Michaud
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Custom Error Page Issue

2002-10-30 Thread Ben Ricker
On Wed, 2002-10-30 at 12:57, Jaimes Blunt wrote:
> Hey Guys,
>  
> I am trying to create a custom error page for my webapps, and I am encountering the 
>following message when I try to force an error.
> Error page location myerror.jsp must start with a /

Just as it says: you must begin the  with a '/'.

Ben Ricker
Wellinx.com

> My webapp file has the following included:
>  
>404
>myerror.jsp
>  
>  
>400
>myerror.jsp
>  
>  
>200
>myerror.jsp
>  
> 
> Any ideas?
> 
> Jaimes Blunt 
> 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Using Tomcat under Mac OS 10.2

2002-10-30 Thread Brookwell Brookwell
Anyone know whether TomCat can be used on the Mac?  I'd like to do development on my 
own home computer (which is a Mac) with the eventual idea to port it over to a Linux 
system.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Tomcat standalone - traffic logs???

2002-10-30 Thread neal
Good tip - thanks!

-Original Message-
From: Tim Funk [mailto:funkman@;joedog.org]
Sent: Wednesday, October 30, 2002 3:55 AM
To: Tomcat Users List
Subject: Re: Tomcat standalone - traffic logs???


Performance tip - keep  resolveHosts="false".

Otherwise your server will attempt to resolve all incoming addresses to
their hostname. But on an intranet - this might not be much of an issue.

-Tim

Reynir Hübner wrote:
> Just have the following in the context of your webapp  (in server.xml)
> :
>   resolveHosts="true"
> directory="C:/logdir/"
> prefix="access_log."
> suffix=".txt"
> pattern="common"/>
> Hope it helps
> -reynir
>
>
>
>>-Original Message-
>>From: neal [mailto:nealcabage@;yahoo.com]
>>Sent: 30. október 2002 11:15
>>To: Tomcat Users List
>>Subject: Tomcat standalone - traffic logs???
>>
>>
>>I'm using Tomcat Standalone and I would like to be able to
>>process my logs to determine traffic trends on my site. I
>>have webalizer and can use it to parse the logs.
>>
>>The problem though, is that I was looking at the logs being
>>generated form tomcat and these logs don't seem to have any
>>traffic info in them.  The have info such as what happened
>>when the server started, etc ... but I'm not seeing each page
>>request being logged.  And, I'm not seeing IP addresses
>>(which I presume is needed to determine unique users) being logged.
>>
>>Anyone know how to setup tomcat standalone logs to provide
>>the information, and to do so cleanly so that the info can be
>>consumer by Webalizer?
>>
>>Thanks!
>>Neal
>>
>>
>>--
>>To unsubscribe, e-mail:
>> [EMAIL PROTECTED]>
>>For
>>additional commands,
>>e-mail: 
>>
>>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


--
To unsubscribe, e-mail:

For additional commands, e-mail:



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




"Tomcat" in DOS window - WHY? WHY? WHY?

2002-10-30 Thread micael


When we startup Tomcat on a Win XP machine, the DOS window comes up saying 
"Tomcat".  What causes that to happen instead of the normal 
"C:\Windows\System32\cmd.exe"?

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: "Tomcat" in DOS window - WHY? WHY? WHY?

2002-10-30 Thread Robert Priest
Check out Catalina.bat:

if not "%OS%" == "Windows_NT" goto noTitle
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle

-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Wednesday, October 30, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: "Tomcat" in DOS window - WHY? WHY? WHY?




When we startup Tomcat on a Win XP machine, the DOS window comes up saying 
"Tomcat".  What causes that to happen instead of the normal 
"C:\Windows\System32\cmd.exe"?

Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank
you 



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Mod jk logged messages... oh

2002-10-30 Thread Milt Epstein
On Wed, 30 Oct 2002 [EMAIL PROTECTED] wrote:

> i think i worked it out.  It just meant that i couldnt find any reason
> according to my config, to pass html / gif etc to Tomcat - which is right..

Yes, I believe that's it.  Every request gets processed through mod_jk
to see if it's something that should be forwarded to Tomcat, and
perhaps depending on what you have the log level set to, information
about the processing will show up in the mod_jk log.  "done without a
match" just means it couldn't find a worker (as specified by a
JkMount) for the given request.


> Hello all,
>
> Can anyone shed some light on the following error message from mod_jk
>
> Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (477)]: Attempting to map
> URI '/htmlclient/hcl/common/index.html'
> [Wed Oct 30 13:59:22 2002]  [jk_uri_worker_map.c (599)]:
> jk_uri_worker_map_t::map_uri_to_worker, done without a match
>
> Im taking the fact that it says "done without a match", as meaning that
> there has been an error - do I need to worry ?  Some files that it seems
> unable to match can be viewed from a browser, so maybe its nothing, but
> then, things are generally not working.
>
> I have the log level set to debug by the way..
>
> Cheers,
>
> Med
>
>
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
>

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




gnu/regexp/REException issue

2002-10-30 Thread François Vallet
Who has ever seen this error
Thanks in advance...
F.

description The server encountered an internal error () that prevented it
from fulfilling this request.
exception 
org.apache.jasper.JasperException: gnu/regexp/REException
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
48)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2396)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172
)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:641)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:405)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConne
ction(Http11Protocol.java:380)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:508)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.jav
a:533)
at java.lang.Thread.run(Thread.java:484)
root cause 
javax.servlet.ServletException: gnu/regexp/REException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImp
l.java:497)
at org.apache.jsp.Connect_jsp._jspService(Connect_jsp.java:318)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
04)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)
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:260)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:191)
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java:643)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
at
org.apache.catalina.core.ContainerBase

Authentification from mysql with a manager role

2002-10-30 Thread Marcel Bariou
Platform :
linux 2.4.7.10 RH 7.2
Tomcat 4.1.12
J2SDK 1.4.1
Ant 1.5.1

With the binary distribution of TOMCAT I try the manager role, I login correctly with 
MemoryRealm with the following 





I replace MemoryRealm with a JDBCrealm
My MySQL Database is dbconfig and I create and populate, users, roles users_roles 
tables...

I setup my MySQL database and I change my realm to JDBCRealm, the connection to the 
database seems correct, but I can't login and I presume I've not the correct value for 
the RessourceLink element. I need some light about the value of the attributs :
name,
global,
type .
inside the ResourceLink element. What have I to put there ? Have somebody an idea, 
great thanks for your help .

Marcel

Merci pour votre attention <> Thanks for your interest <> [EMAIL PROTECTED]
 Web Services, Documents, connaissances => http://www.brasnah.fr
  



Re: Connecting to mysql - Server configuration denies accessto data source

2002-10-30 Thread Marcel Bariou
Wiith correct privileges on MySQL, I can't login. May be a bad definition of
ResourceLink attribut, look to my current post.

Marcel
- Original Message -
From: Jean-Luc BEAUDET <[EMAIL PROTECTED]>
To: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 3:33 PM
Subject: Re: Connecting to mysql - Server configuration denies accessto data
source


>   Well i don't have all the whole pb cause i just set up my brand new
> netscape
>
> It seems yu got in troubles with connection to mysql database. I just
> made it yesterday night to have my Tomcat's manager properly set up...
>
> First make yur database and tables. I can give yu a .sql script.
> Second, under sql admin, create a user who'll handle this database:
>  user: tomcat, password: tompass.
> They are many ways to do it, but on i use to is - assuming the db is
> called tomcatusers -
>
> GRANT ALL PRIVILEGES ON tomcatusers.* TO tomcat@localhost IDENTIFIED BY
> 'tompass';
>
> If all is OK, yu can then test it with:
>
> shell# mysql -u tomcat -p
> password:
> bla bla ../..
> mysql> connect tomcatusers;
> bla bla ../..
> mysql>mysql> show tables;
> +---+
> | Tables_in_tomcatusers |
> +---+
> | roles |
> | user_roles|
> | users |
> +---+
> 3 rows in set (0.00 sec)
>
> mysql>
>
> After that, yu have to modify the server.xml according to the Tomcat's
doc.
>
>
> For instance:
>   
>   
>   
> driverName="org.gjt.mm.mysql.Driver"
>  connectionURL="jdbc:mysql://localhost/tomcatusers"
>  connectionName="tomcat" connectionPassword="tompass"
>  userTable="users" userNameCol="user_name"
> userCredCol="user_pass"
>  userRoleTable="user_roles" roleNameCol="role_name" />
>
> Hope this help.
>
> JLB :O)
>
> Sam Taylor wrote:
>
> >you might also want to check that you haven't exceeded your max
connections
> >to mysql...
> >
> > -Original Message-
> >From: Larry Meadors [mailto:Larry.Meadors@;plumcreek.com]
> >Sent: Wednesday, October 30, 2002 8:31 AM
> >To: [EMAIL PROTECTED]
> >Subject: RE: Connecting to mysql - Server configuration denies accessto
data
> >source
> >
> >I got this a long time ago, so if I am wrong, sorry.
> >
> >Look in the user table in mysql, and you will find that each user is
> >associated with a host. The user you have in your datasource gets a
> >hostname added to it (i.e., lmeadors@mylinuxbox instead of just
> >lmeadors) and that combination is not valid in your mysql user table.
> >
> >Thanks for the reminder, I have a mysql database to setup today. ;-)
> >
> >Larry
> >
> >PS: BTW,
> > John is right - please be more specific in your posts, you will
> >get much better responses.
> >
> >
> [EMAIL PROTECTED] 10/30/02 06:06 AM >>>
> 
> >
> >Has anybody seen what?  Please be more specific.
> >
> >John
> >
> >>-Original Message-
> >>From: Kevin Passey [mailto:kpassey@;kdpsoftware.co.uk]
> >>Sent: Wednesday, October 30, 2002 6:50 AM
> >>To: Tomcat Users List (E-mail)
> >>Subject: Connecting to mysql - Server configuration denies access to
> >>data source
> >>
> >>
> >>Has anybody seen this.
> >>
> >>I've set the mysql tables correctly.
> >>
> >>Can anybody shed any light on this.
> >>
> >>Thanks
> >>
> >>Kevin Passey
> >>KDP Software Limited
> >>Tel: 01273 712830
> >>Fax: 08700 510103
> >>mailto:kpassey@;kdpsoftware.co.uk
> >>http://www.kdpsoftware.co.uk
> >>
> >>--
> >>To unsubscribe, e-mail:
> >>
> >>For ad
> >>ditional commands, e-mail:
> >>
> >>
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> >
> >
> >
> >
> >--
> >To unsubscribe, e-mail:

> >For additio
> >nal commands, e-mail: 
> >
> >
>
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat on Thru64 Unix (OSF1)

2002-10-30 Thread Garrett Smith
Hi,

I haven't used the examples, but I'm going to make a guess:

Did you try using /examples/servlet/servletName?

notice servlet/ instead of servlets/

Garrett

--- Denys Sene dos Santos <[EMAIL PROTECTED]> wrote:
> Hi,
> 
> I'm having some troubles while running Tomcat 4.1.12-LE
> under Digital Unix (OSF1). The server are running ok, but the
> /examples dir with the servlets are returning the error :
> 
> HTTP Status 404 - /examples/servlets/
> 
> type Status report
> 
> message /examples/servlets/
> 
> description The requested resource (/examples/servlets/) is not
> available.
> 
> I'm working with the default config files.
> Under linux, I have no problems.
> 
> Thank you.
> 
> -- 
>  _
>  \_   
>\  Denys Sene dos Santos  -  [EMAIL PROTECTED]
>   o/\_  http://www1.cptec.inpe.br/~sene/ - ICQ #31845401  
>  <\__,\  Meteorological Products Group - Phone: +55 12 560-8458   
>   ">.  |  Center for Weather Forecasts and Climate Studies - CPTEC
>` .-|  National Institute for Space Research - MCT/INPE
>   . \  A happy Linux User #71117  
>. \
> .-|
> 
> --
> To unsubscribe, e-mail:   
> For additional commands, e-mail: 
> 


=
http://dhtmlkitchen.com/
JSP | Servlets | DHTML 

Garrett Needs A Job

__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Where can I find the log information on Why Tomcat died?

2002-10-30 Thread CHAO,KENT (HP-Boise,ex1)
Hi:

We have an application running as part of Tomcat applications.  Recently we
have encountered Tomcat died 
from time to time.   We have no clue where to start debugging the problem
because we could not find any log message on its death.

Sysmptom:
   Apache and tomcat ran as a service on Win2000.
   The Tomcat service stopped from time to time.
   (Apache was still running after Tomcat died.)

Question:
 Where can I find the Tomcat log messages which may give me indication on
why Tomcat chose to termainate itself?
 (such as Exceptions,...)

I checked ~\tomcat\logs and couldn't find anything.
I also tried to run Tomcat from a command Window.  It died once but there
were nothing meaningful.

Any hints on where to look for information is greatly appreciated.

regards,

Kent
   





--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




vs - which is better for me ?

2002-10-30 Thread achana
Content-Class: urn:content-classes:message
Received: from nagoya.betaversion.org ([192.18.49.131]) by hume.tsdinc.steitz.com with 
Microsoft SMTPSVC(5.0.2195.5329); Wed, 30 Oct 2002 13:28:47 -0500
Received: (qmail 16865 invoked by uid 97); 30 Oct 2002 18:32:12 -
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Unsubscribe: 
List-Subscribe: 
List-Help: 
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.
List-Post: 
List-Id: "Tomcat Users List" 
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
Delivered-To: mailing list [EMAIL PROTECTED]
Received: (qmail 16814 invoked by uid 98); 30 Oct 2002 18:32:11 -
X-Antivirus: nagoya (v4218 created Aug 14 2002)
Sender: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
Date: Sat, 13 Mar 2004 13:32:38 +1100
From: <[EMAIL PROTECTED]>
Organization: achana
X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686)
X-Accept-Language: en
MIME-Version: 1.0
To: <[EMAIL PROTECTED]>
Subject:  vs  - which is better for me ?
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit
X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
Return-Path: <[EMAIL PROTECTED]>
X-OriginalArrivalTime: 30 Oct 2002 18:28:48.0864 (UTC) FILETIME=[30700600:01C28042]

Hi all.
Both options work for me.
Which is the better solution in terms of performance ?

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




TOMCAT STAND ALONE IN SSL MODE STARTING PROBLEMS

2002-10-30 Thread Arshad . Hussain
i am trying to run tomcat 4.0 in standalone ssl mode in solaris env
and  i just followed the tomcat doc 
JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA 
it asked me bucnh of question 
that was ok but 
when it comes password used by Tomcat
i put  "changeit" (all lower case)
at that time it gives me error saying tomcat already bound 
can some one give any idea 
where i am going wrong 
not i was able to do same process good in dev box
but test env it fails






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




NEWBIE: Is there a way to check if the mysql connector is working?

2002-10-30 Thread David Kramer
Im running RH 7.2, Mysql 3.23.41-1, and Tomcat 4.1.2 with the most current
Connector J from Mysql.  I jar xf the connector jar within my tomcat4 dir
under etc.  Is there a way to simply validate the connector is working?  Im
hoping there is something other than using a simple Result Set or JSP?
Thoughts anyone?

Thanks much,

DK

David Kramer
Software Developer
Reflect.com
Direct: 415.369.4856
Cell: 650.302.7889


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Setup of Develoment Environment

2002-10-30 Thread Raghava Rao
Hello,
 I'm new to Servlet programming and need help in starting to develop
servlets.
I have downloaded jakarta-tomcat-4.0.6. Once installed, it's installed as
C:\Program Files\Apache Tomcat 4.0
Now, I have a development environment of my own, where I write and compile
my Java files.. Like, C:\servlet\examples\HelloWorld.java
After providing the servlet.jar file in my CLASSPATH, and compiling
HelloWorld.java, I got HelloWorld.class. Now, where do I move this class
file to view it as http://localhost/servlet/HelloWorld??

I copied the classfile to C:\Program Files\Apache Tomcat
4.0\webapps\ROOT\WEB-INF\classes, where classes dir was created by me and
class files copied there.

Now, starting the Tomcat Webserver, I try opening this in Internet Explorer
as http://localhost/servlet/HelloWorld, I get the webpage error as:
Apache Tomcat/4.0.6 - HTTP Status 404 - /servlet/HelloWorld



type Status report

message /servlet/HelloWorld

description The requested resource (/servlet/HelloWorld) is not available.

What am I missing? I've thoroughly followed
http://www.moreservlets.com/Using-Tomcat-4.html, need help at the earliest.
Thank you.
   Raghava





_
Unlimited Internet access for only $21.95/month.  Try MSN! 
http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: NEWBIE: Is there a way to check if the mysql connector is working?

2002-10-30 Thread Qmail List

you can make mysql log everything it is doing, by starting it mysqld -l with
the -l flag. It will then log all connections failed or otherwise queries
(everything) to /usr/lib/mysql/yourhostname.log (rpm install)

very useful.



- Original Message -
From: "David Kramer" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 4:22 PM
Subject: NEWBIE: Is there a way to check if the mysql connector is working?


> Im running RH 7.2, Mysql 3.23.41-1, and Tomcat 4.1.2 with the most current
> Connector J from Mysql.  I jar xf the connector jar within my tomcat4 dir
> under etc.  Is there a way to simply validate the connector is working?
Im
> hoping there is something other than using a simple Result Set or JSP?
> Thoughts anyone?
>
> Thanks much,
>
> DK
>
> David Kramer
> Software Developer
> Reflect.com
> Direct: 415.369.4856
> Cell: 650.302.7889
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NEWBIE: Is there a way to check if the mysql connector is working?

2002-10-30 Thread Marcel Bariou
You can for example, setup a false login/password , it will tell you than
the access is denied. If nothing happens with a false login/password the
connector doesn't work certainly.
Marcel
- Original Message -
From: David Kramer <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:22 PM
Subject: NEWBIE: Is there a way to check if the mysql connector is working?


> Im running RH 7.2, Mysql 3.23.41-1, and Tomcat 4.1.2 with the most current
> Connector J from Mysql.  I jar xf the connector jar within my tomcat4 dir
> under etc.  Is there a way to simply validate the connector is working?
Im
> hoping there is something other than using a simple Result Set or JSP?
> Thoughts anyone?
>
> Thanks much,
>
> DK
>
> David Kramer
> Software Developer
> Reflect.com
> Direct: 415.369.4856
> Cell: 650.302.7889
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
>
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Setup of Develoment Environment

2002-10-30 Thread shawn
put a servlet mapping in your web.xml file..  



HelloWorld
HelloWorld
  
  
HelloWorld
/servlet/HelloWorld
  

see http://jakarta.apache.org/tomcat/tomcat-4.1-doc/appdev/deployment.html for 
more info.


shawn


On Wednesday 30 October 2002 02:36 pm, Raghava Rao wrote:
> Hello,
>   I'm new to Servlet programming and need help in starting to develop
> servlets.
> I have downloaded jakarta-tomcat-4.0.6. Once installed, it's installed as
> C:\Program Files\Apache Tomcat 4.0
> Now, I have a development environment of my own, where I write and compile
> my Java files.. Like, C:\servlet\examples\HelloWorld.java
> After providing the servlet.jar file in my CLASSPATH, and compiling
> HelloWorld.java, I got HelloWorld.class. Now, where do I move this class
> file to view it as http://localhost/servlet/HelloWorld??
>
> I copied the classfile to C:\Program Files\Apache Tomcat
> 4.0\webapps\ROOT\WEB-INF\classes, where classes dir was created by me and
> class files copied there.
>
> Now, starting the Tomcat Webserver, I try opening this in Internet Explorer
> as http://localhost/servlet/HelloWorld, I get the webpage error as:
> Apache Tomcat/4.0.6 - HTTP Status 404 - /servlet/HelloWorld
>
> ---
>-
>
> type Status report
>
> message /servlet/HelloWorld
>
> description The requested resource (/servlet/HelloWorld) is not available.
>
> What am I missing? I've thoroughly followed
> http://www.moreservlets.com/Using-Tomcat-4.html, need help at the earliest.
> Thank you.
> Raghava
>
>
>
>
>
> _
> Unlimited Internet access for only $21.95/month.  Try MSN!
> http://resourcecenter.msn.com/access/plans/2monthsfree.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




keeping user logged in using j_security_check

2002-10-30 Thread Guru Mandavia
Hi,
  I am using j_security_check to authenticate a user using Tomcat 4.1.  =
Every time a user closes the browser window,  he is forced to re-login =
even though he logged in just a couple of minutes ago.=20

Is there a way to configure j_security_check to use an existing session =
after the browser window is closed?

Thanks,
guru
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat & Apache, not connected?

2002-10-30 Thread Wendy Smoak

We've currently got Apache running on HP-UX 11.  Now I'm developing a Struts
webapp that will need to go on the same box.  HP hasn't released Tomcat 4
yet, so we'll have to get it to work ourselves.

Since the Struts app has no static content, is there any reason to put
ourselves through the pain of convincing Apache and Tomcat to play nicely
together?  Or can the two run on the same machine with no knowledge of one
another?

The only disadvantage I see is that my Tomcat URL's will have to include a
port number, since Apache is already listening on port 80.

Anything else I should know?

-- 
Wendy Smoak
http://sourceforge.net/projects/unidbtags 



Do you tell me how..........................?

2002-10-30 Thread Correo



I have st.Servlet1 class on Tomcat 
4.1/weapps/Myapp/WEB-INF/classes/st
 
and Servlet1.shtml on Tomcat 
4.1/weapps/Myapp
 
I have not problen when call Servlet1.shtml whit http://localhost:8080/Myapp/Servlet1.shtml 
 
but when I click on button to call 
Servlet1.class (the servlet) Tomcat return 404 error..
 
What is a problem ???
 
I send Myapp/WEB-INF  Web.xml  and 
Myapp/Servlet1.shtml to you see if I have any wrong.
 
 
Thank for your help !  
Andres.
 
 
  


Servlet1.shtml
Description: Binary data
 http://java.sun.com/dtd/web-app_2_3.dtd";>   
Un servlet simple  Se trata de poner 
un servlet en el tomcat. El servlet es simple.webmaster [EMAIL PROTECTED] 
 The EMAIL address of the administrator to whom questions and comments 
about this application should be addressed. Servlet1  el 
servlet sencillo...  st.Servlet1 
 1 
   Servlet1 /st 
   30 
   
  

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Re: Tomcat SSL w/ Apache

2002-10-30 Thread Randy Secrist
I played around with the config for a few hours today - didn't get any
results.  Having read that about name based hosting before, I switched to IP
based vhosting... - after poping in a few network cards...

What happens now is the same as before...

1)
I switch to HTTPS - and I get the standard warning about self signed
certificates...
2)
I accept it...
3)
Tomcat get's and compiles the request...showing isSecure is false...when
it should be true
4)
And apache feeds me the page via https, and the browser, and the browser
reports secure transmission.
5)
I check Apache's logs... (No errors in SSL via apache side..)
Tomcat's logs were garbled until I cleaned up my virtual host files -
but now they appear to be fine... - no errors.

Somewhere in there, Tomcat is getting the request - because it compiles the
JSP directives, and returns false when calling <%=request.isSecure()%>
However as noted above - this happens when using https!  If I do the same
thing on my linux box - it works just fine - (albeit I didn't compile apache
myself on that thing... - but that shouldn't matter - because SSL does
work - just NOT with Tomcat...)

Here is the relevant part of my httpd.conf...
- note - NameVirtualHost * is commented out prior to this... - does
_default_:443 - mean it is still trying to use a default named Vhost, or a
default IP?



DocumentRoot c:/web/Tomcat-4-1/webapps/ROOT
ErrorLog logs/ssl-error_log
TransferLog logs/ssl-access_log
SSLEngine on
SSLCipherSuite
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile conf/ssl/myDomain.cert
SSLCertificateKeyFile conf/ssl/myDomain.key
SetEnvIf User-Agent ".*MSIE.*" nokeepalive ssl-unclean-shutdown
CustomLog logs/ssl_request_log \
  "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
RewriteEngine On
RewriteOptions inherit




- Original Message -
From: "Robert L Sowders" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 12:51 AM
Subject: Re: Tomcat SSL w/ Apache


> The configuration you describe for virtual hosts is correct except that
> for SSL to work correctly in Apache you have to use IP based virtual
> hosting.  Name based virtual hosting will give you errors.  See
> http://www.modssl.org/docs/2.8/ssl_faq.html#ToC47
>
> rls
>
>
>
>
>
> "Randy Secrist" <[EMAIL PROTECTED]>
> 10/29/2002 07:58 PM
> Please respond to "Tomcat Users List"
>
>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> cc:
> Subject:Tomcat SSL w/ Apache
>
>
> I have an interesting problem that I don't know much about.  I am
> integrating Apache with Tomcat using mod_jk - and I have it mostly
> working.  The only real problem I have left - is getting SSL - which
> appears to be working with Apache - to work with Tomcat.
>
> I have both HTTP connector's disabled in Tomcat.  The only connector I
> have up is Coyote's AJP on 8009.  (Via tomcat 4.1.12).
>
> When I switch to https and accept my self generated certificate, the
> browser returns the compiled jsp page, without any non secure warnings...
> - but if I call <%=request.isSecure()%> - it returns FALSE - even though I
> am using HTTPS.  I'm not sure why this could be happening.
>
> In Apache - I have 2 virtual hosts mapped to the same domain name - on
> different ports - because I couldn't get it to work right with just one.
>
> mydomain.com:80
> and
> mydomain.com:443 (with all my SSL directives...)
>
> Could anyone offer advise?
>
> Randy
>
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat & Apache, not connected?

2002-10-30 Thread Randy Secrist
TC and apache don't need to know about each other unless you want tomcat and
apache to run on the same port.  (This includes SSL on 443...) - TC would
have to use a different port than the standard https 443 for secure
transmission - if you require such a thing.

Other than that - they can both run on different ports no problem.

Randy
- Original Message -
From: "Wendy Smoak" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 3:13 PM
Subject: Tomcat & Apache, not connected?


>
> We've currently got Apache running on HP-UX 11.  Now I'm developing a
Struts
> webapp that will need to go on the same box.  HP hasn't released Tomcat 4
> yet, so we'll have to get it to work ourselves.
>
> Since the Struts app has no static content, is there any reason to put
> ourselves through the pain of convincing Apache and Tomcat to play nicely
> together?  Or can the two run on the same machine with no knowledge of one
> another?
>
> The only disadvantage I see is that my Tomcat URL's will have to include a
> port number, since Apache is already listening on port 80.
>
> Anything else I should know?
>
> --
> Wendy Smoak
> http://sourceforge.net/projects/unidbtags
>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Search engines and MVC

2002-10-30 Thread Michele Emmi
I was wondering how search engines handle multi-view-controller 
architecture?

Thanks,
Michele





_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Tomcat & Apache, not connected?

2002-10-30 Thread Milt Epstein
On Wed, 30 Oct 2002, Wendy Smoak wrote:

> We've currently got Apache running on HP-UX 11.  Now I'm developing
> a Struts webapp that will need to go on the same box.  HP hasn't
> released Tomcat 4 yet, so we'll have to get it to work ourselves.
>
> Since the Struts app has no static content, is there any reason to
> put ourselves through the pain of convincing Apache and Tomcat to
> play nicely together?  Or can the two run on the same machine with
> no knowledge of one another?
>
> The only disadvantage I see is that my Tomcat URL's will have to
> include a port number, since Apache is already listening on port 80.
>
> Anything else I should know?

Sounds like you've got a handle on it, and yes, you can very well run
both Tomcat standalone and Apache independently on a machine.  This
has come up before on the list (especially regarding the pros/cons of
running Tomcat standalone vs. integrated with Apache).  It may not be
a consensus, but there is a good strong core feeling here that running
Tomcat standalone is a very good option, and perhaps even is worth
trying first to see how it works for you.  If you stay on this list
awhile, you'll see that the most common problems brought up here have
to do with integrating Tomcat and Apache, so if you can avoid that,
you're a step ahead :-).  Also, while there are many advantages to
running Tomcat integrated with Apache, performance on dynamic content
is not one of them, so if you have mostly/all dynamic content, you'll
likely get better performance with Tomcat standalone.

Milt Epstein
Research Programmer
Integration and Software Engineering (ISE)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-30 Thread Jan-Michael Ong
Greetings Tomcat-Users Group,

I tried to search on this topic on Google for a few days but was unable to 
come up with any useful leads.

I was hoping if any of you would have any idea about the following:

For each jsp page, I do the following


do some work

other work

What I would prefer to do is have any jsp page be rewritten right before it 
gets turned into a .java program so that it includes these lines.

I've looked at RequestInterceptors and ContextInterceptors and checked out 
the Java 3.2.4 source code ... and while I came up with some possible leads 
its been really hard to figure out if its the best way to do it or if there 
are better ways to accomplish what I'd like to do.

I would appreciate any help that you can provide in advance. Thanks very much.

Sincerely,

Jan-Michael Ong


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Search engines and MVC

2002-10-30 Thread German Augusto Niebles Alvarez
MVC is a design pattern not an engine.

If you want to learn about MVC you could visit www.java.sun.com and
search for design patterns or MVC especifically.



Regards.

German

==
>>> [EMAIL PROTECTED] 10/30 5:40 p.m. >>>
I was wondering how search engines handle multi-view-controller 
architecture?

Thanks,
Michele





_
Internet access plans that fit your lifestyle -- join MSN. 
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:  

For additional commands, e-mail:




Re: Search engines and MVC--to clarify

2002-10-30 Thread Michele Emmi
I know it is not an engine...how do search engines handle it.

To clarify...I have 2 websites built on the mvc architecture, I would like 
to have them indexed...does anyone have any experience in this...

Michele



From: "German Augusto Niebles Alvarez" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Subject: Re: Search engines and MVC
Date: Wed, 30 Oct 2002 18:01:24 -0500

MVC is a design pattern not an engine.

If you want to learn about MVC you could visit www.java.sun.com and
search for design patterns or MVC especifically.



Regards.

German

==
>>> [EMAIL PROTECTED] 10/30 5:40 p.m. >>>
I was wondering how search engines handle multi-view-controller
architecture?

Thanks,
Michele





_
Internet access plans that fit your lifestyle -- join MSN.
http://resourcecenter.msn.com/access/plans/default.asp


--
To unsubscribe, e-mail:

For additional commands, e-mail:




_
Surf the Web without missing calls! Get MSN Broadband. 
http://resourcecenter.msn.com/access/plans/freeactivation.asp


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Search engines and MVC--to clarify

2002-10-30 Thread da_alchemist
Your question is not descriptive enough, which is the
reason you were directed to the java.sun.com website. 
What you are asking makes no sense.  You must
elaborate more about what you are trying to
accomplish.

You have 2 websites implemented under the MVC design
pattern.  Okay, now what?  You would like to have them
indexed?  Huh, what does that mean?  Indexed how?  Do
you want your controller to access a database (index)
of URL's to redirect the user to the appropriate view
or is it something else?  Your inquired about search
engines and their handling of the MVC design pattern. 
Well, search engines do not handle MVC.  A developer
can decide to use an MVC architecture and build their
search engine into it to possibly function as part of
the controller part of the paradigm.

The way your question is worded it does not seem as if
there is a clear understanding of what MVC is,
nevermind the fact that it was mistaken for
"multi-view-controller".  Unless, of course, I am
totally mistaken, for which I would apologize, and
that MVC has a second meaning.

I would suggest that you either visit the site to
understand more about the MVC design pattern or
elaborate more on what you are trying to accomplish.

I hope this helps.

Thanks.

--- Michele Emmi <[EMAIL PROTECTED]> wrote:
> I know it is not an engine...how do search engines
> handle it.
> 
> To clarify...I have 2 websites built on the mvc
> architecture, I would like 
> to have them indexed...does anyone have any
> experience in this...
> 
> Michele
> 
> 
> 
> >From: "German Augusto Niebles Alvarez"
> <[EMAIL PROTECTED]>
> >Reply-To: "Tomcat Users List"
> <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Subject: Re: Search engines and MVC
> >Date: Wed, 30 Oct 2002 18:01:24 -0500
> >
> >MVC is a design pattern not an engine.
> >
> >If you want to learn about MVC you could visit
> www.java.sun.com and
> >search for design patterns or MVC especifically.
> >
> >
> >
> >Regards.
> >
> >German
> >
> >==
> > >>> [EMAIL PROTECTED] 10/30 5:40 p.m. >>>
> >I was wondering how search engines handle
> multi-view-controller
> >architecture?
> >
> >Thanks,
> >Michele
> >
> >
> >
> >
> >
>
>_
> >Internet access plans that fit your lifestyle --
> join MSN.
>
>http://resourcecenter.msn.com/access/plans/default.asp
> >
> >
> >--
> >To unsubscribe, e-mail:
> >
> >For additional commands, e-mail:
> >
> 
> 
>
_
> Surf the Web without missing calls! Get MSN
> Broadband. 
>
http://resourcecenter.msn.com/access/plans/freeactivation.asp
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-30 Thread da_alchemist
If I understand your question correctly, why don't you
just use one of the include directives to insert that
into your file where you want it?

Either:

<%@ include file="relativeURL" %>

-- OR --


   +


Thanks.

--- Jan-Michael Ong <[EMAIL PROTECTED]> wrote:
> Greetings Tomcat-Users Group,
> 
> I tried to search on this topic on Google for a few
> days but was unable to 
> come up with any useful leads.
> 
> I was hoping if any of you would have any idea about
> the following:
> 
> For each jsp page, I do the following
> 
> 
> do some work
> 
> other work
> 
> What I would prefer to do is have any jsp page be
> rewritten right before it 
> gets turned into a .java program so that it includes
> these lines.
> 
> I've looked at RequestInterceptors and
> ContextInterceptors and checked out 
> the Java 3.2.4 source code ... and while I came up
> with some possible leads 
> its been really hard to figure out if its the best
> way to do it or if there 
> are better ways to accomplish what I'd like to do.
> 
> I would appreciate any help that you can provide in
> advance. Thanks very much.
> 
> Sincerely,
> 
> Jan-Michael Ong
> 
> 
> --
> To unsubscribe, e-mail:  
> 
> For additional commands, e-mail:
> 
> 


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: NEWBIE: Intercepting the jsp request before its written as a java file

2002-10-30 Thread Jan-Michael Ong
Thank you for the quick response. Actually that's the problem. I don't want 
to have to remember to always insert an include into the jsp file.

I'd like to modify Tomcat's behavior such that ANY jsp file (preferably in 
a context) will get these lines added.

Good point though and I'll keep these in mind.

Any other suggestions?

Thanx

Jan-Michael


At 03:41 PM 10/30/2002 -0800, [EMAIL PROTECTED] wrote:
If I understand your question correctly, why don't you
just use one of the include directives to insert that
into your file where you want it?

Either:

<%@ include file="relativeURL" %>

-- OR --


   +


Thanks.

--- Jan-Michael Ong <[EMAIL PROTECTED]> wrote:
> Greetings Tomcat-Users Group,
>
> I tried to search on this topic on Google for a few
> days but was unable to
> come up with any useful leads.
>
> I was hoping if any of you would have any idea about
> the following:
>
> For each jsp page, I do the following
>
> 
> do some work
> 
> other work
>
> What I would prefer to do is have any jsp page be
> rewritten right before it
> gets turned into a .java program so that it includes
> these lines.
>
> I've looked at RequestInterceptors and
> ContextInterceptors and checked out
> the Java 3.2.4 source code ... and while I came up
> with some possible leads
> its been really hard to figure out if its the best
> way to do it or if there
> are better ways to accomplish what I'd like to do.
>
> I would appreciate any help that you can provide in
> advance. Thanks very much.
>
> Sincerely,
>
> Jan-Michael Ong
>
>
> --
> To unsubscribe, e-mail:
> 
> For additional commands, e-mail:
> 
>


__
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat firewall password

2002-10-30 Thread Steven Gollery

Michael,

Are you using CATALINA_OPTS (or some other method) to set the 
http.proxyHost and http.proxyServer? If so, you might be able to set 
http.proxyUser and http.proxyPassword the same way. (I understand this 
doesn't always work, but if you haven't tried it yet, it's worth looking 
into.)

Steve


-Original Message-
From: Lee, Michael [mailto:Michael.Lee@;directline.de]
Sent: Wednesday, 30 October 2002 7:36 p.m.
To: [EMAIL PROTECTED]
Subject: Tomcat firewall password


does any body know how to configure tomcat so that it is able to go out
through a firewall. The firewall at work requires a username and password
before a person can get on to the internet. I cannot find any documentation
on how this can be achieved

Many Thanks in advance

Michael

--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Search engines and MVC--to clarify

2002-10-30 Thread Qmail List

His question was clear. I'm interested in the answer as well. Anyone?

Guessing I would say that as most search engines employ crawlers or spiders
the sites will get indexed assuming there are links that propogate a user
through the site. Presumably rather than static pages the URLs indexed by
the search engine would be http://yoursite/controller?event=some_page

Really the question applies to any non-static, non-page centric web
architecure.


- Original Message -
From: <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 6:33 PM
Subject: Re: Search engines and MVC--to clarify


> Your question is not descriptive enough, which is the
> reason you were directed to the java.sun.com website.
> What you are asking makes no sense.  You must
> elaborate more about what you are trying to
> accomplish.
>
> You have 2 websites implemented under the MVC design
> pattern.  Okay, now what?  You would like to have them
> indexed?  Huh, what does that mean?  Indexed how?  Do
> you want your controller to access a database (index)
> of URL's to redirect the user to the appropriate view
> or is it something else?  Your inquired about search
> engines and their handling of the MVC design pattern.
> Well, search engines do not handle MVC.  A developer
> can decide to use an MVC architecture and build their
> search engine into it to possibly function as part of
> the controller part of the paradigm.
>
> The way your question is worded it does not seem as if
> there is a clear understanding of what MVC is,
> nevermind the fact that it was mistaken for
> "multi-view-controller".  Unless, of course, I am
> totally mistaken, for which I would apologize, and
> that MVC has a second meaning.
>
> I would suggest that you either visit the site to
> understand more about the MVC design pattern or
> elaborate more on what you are trying to accomplish.
>
> I hope this helps.
>
> Thanks.
>
> --- Michele Emmi <[EMAIL PROTECTED]> wrote:
> > I know it is not an engine...how do search engines
> > handle it.
> >
> > To clarify...I have 2 websites built on the mvc
> > architecture, I would like
> > to have them indexed...does anyone have any
> > experience in this...
> >
> > Michele
> >
> >
> >
> > >From: "German Augusto Niebles Alvarez"
> > <[EMAIL PROTECTED]>
> > >Reply-To: "Tomcat Users List"
> > <[EMAIL PROTECTED]>
> > >To: <[EMAIL PROTECTED]>
> > >Subject: Re: Search engines and MVC
> > >Date: Wed, 30 Oct 2002 18:01:24 -0500
> > >
> > >MVC is a design pattern not an engine.
> > >
> > >If you want to learn about MVC you could visit
> > www.java.sun.com and
> > >search for design patterns or MVC especifically.
> > >
> > >
> > >
> > >Regards.
> > >
> > >German
> > >
> > >==
> > > >>> [EMAIL PROTECTED] 10/30 5:40 p.m. >>>
> > >I was wondering how search engines handle
> > multi-view-controller
> > >architecture?
> > >
> > >Thanks,
> > >Michele
> > >
> > >
> > >
> > >
> > >
> >
> >_
> > >Internet access plans that fit your lifestyle --
> > join MSN.
> >
> >http://resourcecenter.msn.com/access/plans/default.asp
> > >
> > >
> > >--
> > >To unsubscribe, e-mail:
> > >
> > >For additional commands, e-mail:
> > >
> >
> >
> >
> _
> > Surf the Web without missing calls! Get MSN
> > Broadband.
> >
> http://resourcecenter.msn.com/access/plans/freeactivation.asp
> >
> >
> > --
> > To unsubscribe, e-mail:
> > 
> > For additional commands, e-mail:
> > 
> >
>
>
> __
> Do you Yahoo!?
> HotJobs - Search new jobs daily now
> http://hotjobs.yahoo.com/
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Tomcat Hangs and cannot be shut down

2002-10-30 Thread Lior Shliechkorn

Tomcat, from time to time, starts processing and locks into some loop or something. I 
don't know what is happening, and that is the best way I can explain it. After 
noticing that the JSP do not get served and IE just waits and waits, I try to Shutdown 
Tomcat and I get an exception.

java.net.ConnectException: Connection refused: connect ...

This happens for a while and then when the session is terminated, I believe, then 
everything goes back to the way it was before and works fine.

Can someone explain what is exactly might happening here? Is there a way to force the 
shutdown of Tomcat? 

Thank you for your time,

Lior

 



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


Help: Custom Error Page Wild Card?

2002-10-30 Thread Extance, Paul
Is there a more efficent way to get the web.xml to point to an common error
page for all errors?

I currently have in web.xml


  
400
/errorpage/error.jsp
  
  
401
/errorpage/error.jsp
  
  
403
/aura4d/security/logon/jsp/noAccess.jsp
  
  
404
/errorpage/error.jsp
  
  
405
/errorpage/error.jsp
  
  
409
/errorpage/error.jsp
  
  
412
/errorpage/error.jsp
  
  
413
/errorpage/error.jsp
  
  
415
/errorpage/error.jsp
  
  
500
/errorpage/error.jsp
  
  
501
/errorpage/error.jsp
  
  
502
/errorpage/error.jsp
  
  
503
/errorpage/error.jsp
  
  
java.lang.Throwable
/errorpage/error.jsp
  

I tried a wildcard for a default but that didn't work
  
  
403
/aura4d/security/logon/jsp/noAccess.jsp
  
  
java.lang.Throwable
/errorpage/error.jsp
  
  
*
/errorpage/error.jsp
   

The problem i have is that our users  keep seeing the default 'Tomcat' error
page, and keep reporting 'Tomcat' errors, of course Tomcat is fine, its
normally the application or the end user that is the problem, so i don't
want any scenarios to bring up the tomcat error page.

PS: I'm currently using Tomcat 4.0.6

Thanx

PaulE

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Session Timeout Configuration

2002-10-30 Thread Lior Shliechkorn

Hello,

I'm trying to monitor the sessions of users using the app. I want to be able to 
distinguish between a user logging out and a session being timed out. I tried using 
the HttpSessionBindingListener and it's not ideal for redirecting requests back to the 
user (since the session is terminated as well as the request).

I was told that I can have Tomcat intercept the session timeout and redirect the user 
to maybe a "timedout.html" page. Is this true? Can I configure Tomcat to handle the 
session, so let's just say 30 seconds before the session times out the client gets 
redirected to a page where he can choose to login again?

Thanks,

Lior



-
Do you Yahoo!?
HotJobs - Search new jobs daily now


RE: Search engines and MVC

2002-10-30 Thread Julius Davies

Michele Emmi,

I've never used Struts, or anything which could be abbreviated to MVC.  Despite this, 
your question did strike a chord with me.  I think what you're asking is this:

How do search engines handle dynamic content, where the content changes based on the 
query-string?

Example: 

/blah.jsp?animal=frog
/blah.jsp?animal=cat

These pages will appear to be the same page to most search engines, even though their 
content might be dramatically different.  So, what do you do if you want both of these 
pages to be individually indexed by search engines?  The answer is simple, albeit a 
hack.  There are two parts:

1.)  Switch to "pure" servlets and never use query strings.  This would mean changing 
those two urls to look something like this instead:

/blah/animal/frog.html
/blah/animal/cat.html

Servlets can support this.  Even though those URLs look static, you can make it so 
they're actually dynamic.  Go to "http://globeandmail.com";, a Canadian newspaper, and 
click on any article.  You'll notice the Globe & Mail is basically doing this with 
their URLs:  no query strings.  The URLs are somewhat insane looking (obviously 
dynamic), but they fool the search engines into thinking they are static.

2.)  Create a "site map", and have every page on your site link to the "site map".  
Submit your "site map" to the search engines.


I hope this is what you meant.

yours,

Julius Davies, Programmer, CUCBC
Email: [EMAIL PROTECTED], Ph: 604.730.6385




> -Original Message-
> From: Michele Emmi [mailto:micheleemmi@;hotmail.com]
> Sent: Wednesday, October 30, 2002 2:40 PM
> To: [EMAIL PROTECTED]
> Subject: Search engines and MVC
> 
> 
> I was wondering how search engines handle multi-view-controller 
> architecture?
> 
> Thanks,
> Michele
> 
> 
> 
> 
> 
> _
> Internet access plans that fit your lifestyle -- join MSN. 
> http://resourcecenter.msn.com/access/plans/default.asp
> 
> 
> --
> To unsubscribe, e-mail:   
> 
> For additional commands, e-mail: 
> 
> 
> 

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: JDBC / ThreadLocal pattern.

2002-10-30 Thread Extance, Paul
2 Cents...

Not all threads need to do things with the database? kind of a waste to use
the thread with the connection sitting idle, if it is a limited resource.
I'm guessing the worker thread pool in tomcat typically needs to be higher
that that of the connection pool its classes would use, in which case your
hogging/wasting a valuable resource. This alone would probably justify not
using it for me.

We sometimes using multiple connections in a single thread if our business
process need two isolated transactions, one to do the work (which could
rollback) and the other to do the logging to the database, which should not
be rolled back with the main transaction. Could this be supported with a
single connection per thread?

If you have stateful form beans (say with STRUTS) that want to maintain
connection state, can you guarantee that the same thread will service the
same request associated to this stateful bean. I know in a web/stateless
environment you probably don't want to leave connections open across
successive calls...so maybe this is not a real issue..

PaulE

-Original Message-
From: Reynir Hübner [mailto:reynir@;hugsmidjan.is]
Sent: Wednesday, October 30, 2002 11:06 AM
To: Tomcat Users List
Subject: JDBC / ThreadLocal pattern.


Hi all, 

This email is a little bit off topic, as it's more about JDBC-related stuff
than tomcat.

I'm really looking for comments on the approach for JDBC connection pooling
described in the article at : 
http://www-106.ibm.com/developerworks/java/library/j-threads3.html

In (very) short:  the idea here is to have one jdbc-connection for each
thread, instead of a pool with connections.

I've got few ideas on the subject, for example this may be cool because : 

 1. I will never have to worrie about not returning connections anymore, as
they will always be garbage collected as soon as the thread is dead.
 2. The connection will be available for more than one request so I can lazy
load resultsets.
 3. This might make transaction-service implementation easyer
 4. many other great things

I realise there must be some kind of problems by doing it this way, but I
only came up with these :

 1. can this approach cause too many connections to the database (75 threads
in Tomcat is the default means 75 connections) ?
 2. can it be to heavy for the garbagecollector to collect all the dead
connections lying around when a thread dies ?
 3. anything more negative stuff ?

I am looking for comments on the pattern.. Please respons if you have any.
Thanx alot!

[EMAIL PROTECTED]





--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: Using JAXB in a Servlet (class loader prob?)

2002-10-30 Thread Extance, Paul
Upgrade to tomcat 4.0.4 - 4.0.6, then you can put the jaxb-rt.jar into the
WEB-INF/lib directory. I think 4.0.3 has some class loader issues with
packages that start with java and javax in the WEB-INF/lib folders

This solved the problem for us.

PaulE

-Original Message-
From: Nick Lombard (VSP) [mailto:nick.lombard@;vcontractor.co.za]
Sent: Wednesday, October 30, 2002 5:05 AM
To: Tomcat Users List
Subject: RE: Using JAXB in a Servlet (class loader prob?)


Hi Steve

My half a cent comment.

mailto:steve_slatcher@;scientia.com]
Sent: Wednesday, October 30, 2002 2:54 PM
To: Tomcat Users List
Subject: Using JAXB in a Servlet (class loader prob?)


Hi all

I have some code that uses JAXB that works fine in a standalone app with
the jars I expect it to need.  When I put the same code in a webapp I got a
couple of problems initialising the Sevlet (see log file below).

I managed to get rid of one problem (javax.xml.bind.JAXBContext) by putting
a copy of jaxb-api.jar in /common/lib (before it was only in
app/WEB-INF/lib).

The second problem was solved by copying a xerces.jar into my
app/WEB-INF/lib directory (as far as I can tell my standalone app did not
need org.w3c.dom.ls.DocumentLS at all).

Can anone shed more light on this?  Specifically I would be interested in
any ways to avoid using the /common/lib directory.

I'm using Tomcat 4.0.3, JAXB 1.0 beta (currently the latest version), and
the magic Xerces that came to the rescue was 1.4.4.  Despite the name of my
webapp I am NOT intent on spamming!

Cheers

Steve Slatcher

2002-10-30 11:33:14 WebappLoader[/spam]: Deploying class repositories to
work directory C:\jakarta-tomcat-4.0.3\work\localhost\spam
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/activation.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\activation.jar
2002-10-30 11:33:14 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/dom.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\dom.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jax-qname.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jax-qname.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-libs.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-libs.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-ri.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-ri.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxb-xjc.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxb-xjc.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/jaxp-api.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\jaxp-api.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/log4j-1.2.6.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\log4j-1.2.6.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/mail.jar
to C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\mail.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR /WEB-INF/lib/sax.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\sax.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Deploy JAR
/WEB-INF/lib/xercesImpl.jar to
C:\jakarta-tomcat-4.0.3\bin\..\webapps\spam\WEB-INF\lib\xercesImpl.jar
2002-10-30 11:33:15 WebappLoader[/spam]: Reloading checks are enabled for
this Context
2002-10-30 11:33:15 StandardManager[/spam]: Seeding random number generator
class java.security.SecureRandom
2002-10-30 11:33:15 StandardManager[/spam]: Seeding of random number
generator has been completed
2002-10-30 11:33:15 ContextConfig[/spam]: Added certificates -> request
attribute Valve
2002-10-30 11:33:15 StandardWrapper[/spam:Mailer]: Marking servlet Mailer
as unavailable
2002-10-30 11:33:15 StandardContext[/spam]: Servlet /spam threw load()
exception
javax.servlet.ServletException: Error instantiating servlet class
com.scientia.spam.MailerServlet
 at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:8
93)
 at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:808)
 at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java
:3266)
 at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3395)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
 at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
 at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
 at
org.apache.catalina.core.StandardService.start(StandardService.java:388)
 at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
 at org.apache.catalina.startup.Cata

RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error.

2002-10-30 Thread Lambert, Stephen : CO IR
John, I still can't get this to work?!
I started over from scratch with your docs and was able correct the
duplicate mod_jk.conf problem.
However, when I try the following URL's, localhost still doesn't work.

http://localhost result= Netscape starts searching the internet

http://localhost:8080 result= Netscape starts searching the internet

http://w121c20.legacyhs:8080 result= works fine!

http://w121c20.legacyhs result= works fine!

Is this a Netscape issue?


-Original Message-
From: Turner, John [mailto:JTurner@;AAS.com]
Sent: Tuesday, October 08, 2002 5:34 AM
To: 'Tomcat Users List'
Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration
error .



Take a look at the docs for the ApacheConfig Listener...there are parameters
there to stop things like appending to mod_jk.conf, which might be what is
happening.  In other words, shut everything down, wait a bit, delete
mod_jk.conf, then start up Tomcat and see if the mod_jk.conf file is correct
(make sure permissions on mod_jk.conf file are correct, too...the user
Tomcat is running as should have write/delete access to that file).  It's
possible that you just keep using the same mod_jk.conf file, a new one may
not be getting written everytime Tomcat starts.

For the 8080 message, make sure you have a HTTP connector on 8080 enabled in
server.xml.  Take a second and go back through my HOWTO (not the connector
build steps).  There are only 4 or 5 specific changes to make to httpd.conf
and server.xml to get Apache working with Tomcat...and none of those changes
are major.

John


> -Original Message-
> From: Lambert, Stephen : CO IR [mailto:SLambert@;LHS.ORG]
> Sent: Monday, October 07, 2002 7:31 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration
> error .
> 
> 
> Changes below completed.
> Apache now starts with no warning!
> However, result of http://localhost:8080/examples is unable 
> to locate server
> localhost:8080
> 
> And result of http://localhost/examples finds the jsp 
> examples with a URL of
> http://w121c20.legacyhs/examples/
> 
> 
> What's bizarre is that the mod_jk.conf file is once again 
> populated with a
> second VirtualHost directive after starting Tomcat.
> 
> So if I stop/start Tomcat/Apache the VirtualHost warning 
> message re-appears.
> 
> Stephen.
> 
> -Original Message-
> From: Turner, John [mailto:JTurner@;AAS.com]
> Sent: Monday, October 07, 2002 3:08 PM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> error .
> 
> 
> 
> In your server.xml, change the defaultHost parameter of your 
> Engine element
> to "localhost".
> 
> You're getting that Apache error because you have two VirtualHost
> definitions for w121c20.legacyhs in mod_jk.conf.  There 
> should only be one.
> 
> Also, change ServerName in httpd.conf to w121c20.legacyhs.
> 
> Give that a try, and see what happens.
> 
> John
> 
> 
> 


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error.

2002-10-30 Thread Josh G
You don't have localhost in your HOSTS file, add this entry and it'll all be
good :)

-Josh

Who can it be knocking at my door?
Go away, don't come round here no more.
Can't you see that it's late at night?
I'm very tired, and I'm not feeling right.
- Original Message -
From: "Lambert, Stephen : CO IR" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 11:20 AM
Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration error.


> John, I still can't get this to work?!
> I started over from scratch with your docs and was able correct the
> duplicate mod_jk.conf problem.
> However, when I try the following URL's, localhost still doesn't work.
>
> http://localhost result= Netscape starts searching the internet
>
> http://localhost:8080 result= Netscape starts searching the internet
>
> http://w121c20.legacyhs:8080 result= works fine!
>
> http://w121c20.legacyhs result= works fine!
>
> Is this a Netscape issue?
>
>
> -Original Message-
> From: Turner, John [mailto:JTurner@;AAS.com]
> Sent: Tuesday, October 08, 2002 5:34 AM
> To: 'Tomcat Users List'
> Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration
> error .
>
>
>
> Take a look at the docs for the ApacheConfig Listener...there are
parameters
> there to stop things like appending to mod_jk.conf, which might be what is
> happening.  In other words, shut everything down, wait a bit, delete
> mod_jk.conf, then start up Tomcat and see if the mod_jk.conf file is
correct
> (make sure permissions on mod_jk.conf file are correct, too...the user
> Tomcat is running as should have write/delete access to that file).  It's
> possible that you just keep using the same mod_jk.conf file, a new one may
> not be getting written everytime Tomcat starts.
>
> For the 8080 message, make sure you have a HTTP connector on 8080 enabled
in
> server.xml.  Take a second and go back through my HOWTO (not the connector
> build steps).  There are only 4 or 5 specific changes to make to
httpd.conf
> and server.xml to get Apache working with Tomcat...and none of those
changes
> are major.
>
> John
>
>
> > -Original Message-
> > From: Lambert, Stephen : CO IR [mailto:SLambert@;LHS.ORG]
> > Sent: Monday, October 07, 2002 7:31 PM
> > To: 'Tomcat Users List'
> > Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk integration
> > error .
> >
> >
> > Changes below completed.
> > Apache now starts with no warning!
> > However, result of http://localhost:8080/examples is unable
> > to locate server
> > localhost:8080
> >
> > And result of http://localhost/examples finds the jsp
> > examples with a URL of
> > http://w121c20.legacyhs/examples/
> >
> >
> > What's bizarre is that the mod_jk.conf file is once again
> > populated with a
> > second VirtualHost directive after starting Tomcat.
> >
> > So if I stop/start Tomcat/Apache the VirtualHost warning
> > message re-appears.
> >
> > Stephen.
> >
> > -Original Message-
> > From: Turner, John [mailto:JTurner@;AAS.com]
> > Sent: Monday, October 07, 2002 3:08 PM
> > To: 'Tomcat Users List'
> > Subject: RE: tomcat 4.1.12 with apache1.3.26 and mod_jk intergration
> > error .
> >
> >
> >
> > In your server.xml, change the defaultHost parameter of your
> > Engine element
> > to "localhost".
> >
> > You're getting that Apache error because you have two VirtualHost
> > definitions for w121c20.legacyhs in mod_jk.conf.  There
> > should only be one.
> >
> > Also, change ServerName in httpd.conf to w121c20.legacyhs.
> >
> > Give that a try, and see what happens.
> >
> > John
> >
> >
> >
>
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Help with load balanced Tomcat persistant session storage.

2002-10-30 Thread David Hladky
Hey,
I have a question for any of you guru's out there.  My colegues and
I are attempting to set up a load balanced apache-tomcat system.  We are
attempting to configure the persistance manager in the server.xml
Because of the round robin scheduling of the webservers, every request
can theoretically go to either application server.  Right now I am
getting some pretty strange behavior from the application.  The way we
coded our servlets was to use a master base servlet to compare and
maintain session.  The weird behavior is that even after you have logged
out and invalided the session.  The persistance manager for some reason
resurrects the old deleted session when you log in again.  The engine
issues a new session which dosen't match the old one and all hell breaks
loose with the app.  The application we are using relies heavily on
session, and matching session ID's for security and storage of rather
large array's (vectors) of persistant data.  Is anybody out their savy
enough to show me any kind of sample configuration that might help a
bit.  I have already looked and used the sample configurations in the
Goodwill Apache-Jakarta book.  They don't go very far in depth.

Thanks for any help in advance.

--
---
David J. Hladky [EMAIL PROTECTED]
Software Engineer
---





Virtual hosts with Apache 2.0.43 & Tomcat 4.1.12 & mod_jk2 on Linux

2002-10-30 Thread Tomcat Newbie
I can't seem to figure out why my setup behaves differently when I access
the same host with and without 'www.'. I used to run Apache 1.3.x and Tomcat
4.0.x, where my setup included aliases in Apache config file as well as two
virtual hosts in Tomcat (with 'www.' and without) for each domain. Not sure
if that was the way to do it, but it worked!

My present setup, aside from upgraded software, has Aliases both in Apache
and Tomcat config files, however such setup does not seem to help. Apache
handles requests properly and forwards them to the same directory, however
with 'www.' I get a directory listing, while without Tomcat picks up the
request and processes it.

What am I missing? Or do I have to setup two hosts for each domain again?

Thanks,

Ed


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (mod_jk2-2.0.43.dll)

2002-10-30 Thread M. Hockings
Hello,

I too am trying to get this configuration working to give me a test 
environment that duplicates a remote server.  I have followed the 
instructions pointed to by John Turner very closely and only modified 
the line in workers2.properties that points to the jvm.dll.  When I 
start Apache I see the following in logs\error.log.   If you have any 
hints or suggestions about what I have set up incorrectly please let me 
know.  Both Apache and Tomcat seem to work fine individually.

Thanks,

Mike

[Wed Oct 30 21:48:39 2002] [notice] config.setAttribute() Error setting 
vm: classpath C:\ApacheGroup\Tomcat4.1/bin/tomcat-jni.jar
[Wed Oct 30 21:48:39 2002] [notice] config.setAttribute() Error setting 
vm: classpath C:\ApacheGroup\Tomcat4.1/server/lib/commons-logging.jar
[Wed Oct 30 21:48:39 2002] [notice] Parent: Created child process 728
[Wed Oct 30 21:48:39 2002] [notice] config.setAttribute() Error setting 
vm: classpath C:\ApacheGroup\Tomcat4.1/bin/tomcat-jni.jar
[Wed Oct 30 21:48:39 2002] [notice] config.setAttribute() Error setting 
vm: classpath C:\ApacheGroup\Tomcat4.1/server/lib/commons-logging.jar
[Wed Oct 30 21:48:39 2002] [notice] Child 728: Child process is running
[Wed Oct 30 21:48:39 2002] [notice] vm.init(): Jni lib: 
C:\Progra~1\j2sdk1.4.0_01\jre\bin\client\jvm.dll
[Wed Oct 30 21:48:39 2002] [notice] vm.openJvm2() Option: 
-Dtomcat.home=C:\ApacheGroup\Tomcat4.1
[Wed Oct 30 21:48:39 2002] [notice] vm.openJvm2() Option: 
-Dcatalina.home=C:\ApacheGroup\Tomcat4.1
[Wed Oct 30 21:48:39 2002] [notice] vm.openJvm2() Option: -Xmx128M
[Wed Oct 30 21:48:39 2002] [notice] vm.open2() done
[Wed Oct 30 21:48:40 2002] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter
[Wed Oct 30 21:48:40 2002] [error] Can't find class 
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Wed Oct 30 21:48:40 2002] [notice] vm.detach() ok
[Wed Oct 30 21:48:40 2002] [error] workerEnv.initWorkers() init failed 
for worker.jni:onStartup
[Wed Oct 30 21:48:40 2002] [notice] jni.validate() class= 
org/apache/jk/apr/TomcatStarter
[Wed Oct 30 21:48:40 2002] [error] Can't find class 
org/apache/jk/apr/TomcatStarter
java.lang.NoClassDefFoundError: org/apache/jk/apr/TomcatStarter
[Wed Oct 30 21:48:40 2002] [notice] vm.detach() ok
[Wed Oct 30 21:48:40 2002] [error] workerEnv.initWorkers() init failed 
for worker.jni:onShutdown
[Wed Oct 30 21:48:40 2002] [notice] workerEnv.init() ok 
C:/ApacheGroup/Apache2/conf/workers2.properties
[Wed Oct 30 21:48:40 2002] [notice] mod_jk child init 1 -1
[Wed Oct 30 21:48:40 2002] [notice] Child 728: Acquired the start mutex.
[Wed Oct 30 21:48:40 2002] [notice] Child 728: Starting 250 worker threads.





Turner, John wrote:

This should be all you need, courtesy of Robert Sowders:

ftp://pokey.wr.usgs.gov/pub/rsowders/Apache2_Jk2_TC4.1.x_JSDK1.4.x.zip

John




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 ( mod_jk2-2.0.43.dll)

2002-10-30 Thread Tomcat Newbie
How about the slashes in your path?

C:\ApacheGroup\Tomcat4.1/bin/tomcat-jni.jar
  ^^^

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:00 PM
Subject: Re: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (
mod_jk2-2.0.43.dll)


> Hello,
>
> I too am trying to get this configuration working to give me a test
> environment that duplicates a remote server.  I have followed the
> instructions pointed to by John Turner very closely and only modified
> the line in workers2.properties that points to the jvm.dll.  When I
> start Apache I see the following in logs\error.log.   If you have any
> hints or suggestions about what I have set up incorrectly please let me
> know.  Both Apache and Tomcat seem to work fine individually.
>
> Thanks,
>
> Mike


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




RE: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing in mod_jk.conf

2002-10-30 Thread Tref Gare
Thanks Robert and Bill,

I've got the system working now using direct additions to httdp.conf
(basically a cut and paste of the auto generated file mod_jk.conf with
additions).  I haven't yet had a chance to experiment with the
noRoot="false" though that sounds very much like the sort of attribute
that might have been tripping us up.  The thing that was refusing to
work for me was the Aliasing of the root context.  Now that I've stopped
trying to alias it and instead am just referring JkMounts to ajp13 and
pointing Apache at the same root as tomcat all seems to be well.

I can appreciate the convenience of configuring things from one location
and as such, perhaps what I should be doing is using the Include
directive in the httpd.conf and configuring a static copy of mod_jk.conf
(ie: one that doesn't get overwritten with each startup of Tomcat) for
the aliases etc.
Either way I'm still editing two files, either server.xml and
mod_jk.conf and or httpd.conf and server.xml

Many thanks for your various assistances thus far.  You're champions.

Tref


--
Tref Gare
Development Consultant
Areeba
Level 19/114 William St, Melbourne VIC 3000
email: [EMAIL PROTECTED]
phone: +61 3 9642 5553
fax: +61 3 9642 1335
website: http://www.areeba.com.au
--
"This email is intended only for the use of the individual or entity
named above and contains information that is confidential. No
confidentiality is waived or lost by any mis-transmission. If you
received this correspondence in error, please notify the sender and
immediately delete it from your system. You must not disclose, copy or
rely on any part of this correspondence if you are not the intended
recipient. Any communication directed to clients via this message is
subject to our Agreement and relevant Project Schedule. Any information
that is transmitted via email which may offend may have been sent
without knowledge or the consent of Areeba."
--

-Original Message-
From: Robert L Sowders [mailto:rsowders@;usgs.gov] 
Sent: Wednesday, 30 October 2002 8:03 PM
To: Tomcat Users List
Subject: Re: tc4.1.12 and Apache2.0.43 mod_jk Root Context not appearing
in mod_jk.conf

Oops, cat short_term_memory | /dev/null 

I'm glad I could help you at least once then,

It's been awhile since I've been down with JK mind you, been tracking
JK2 
while others here have maintained JK systems. 

If you know the correct syntax for your jkmounts and such and make your 
own edits to server.xml, there really is no reason to use the generated 
mod_jk.conf.  A judicious use of Apache DocumentRoot and webapp 
co-mingling, together with JkAutoAlias, sprinkled with a dash of auto 
generated mod_jk.conf can lead to allot less configuration for admins. 
Especially on sites with a lot of virtual hosts. 

I guess the difference is the same as cmd line unix and windows gui.
I've 
often wondered why windows users put up with having to click thru 15 
different windows to get to a button that changes one line in a file
they 
just as easily could have directly edited.

For single user installations, it's not really needed, but it's cool 
none-the-less.

I believe if you make your own contexts in server.xml outside of the
ROOT 
then your auto generated mod_jk.conf will contain the new Jkmounts.

I'll send you a txt file off list that details a web hosting setup that 
makes it easy without auto generated mod_jk.conf.

rls
 





"Bill Barker" <[EMAIL PROTECTED]>
Sent by: news <[EMAIL PROTECTED]>
10/29/2002 11:07 PM
Please respond to "Tomcat Users List"

 
To: [EMAIL PROTECTED]
cc: 
Subject:Re: tc4.1.12 and Apache2.0.43 mod_jk Root
Context not appearing in 
mod_jk.conf


You also need to set the noRoot="false" attribute in the Listener.  It
defaults to "true", since otherwise (if the default forwardAll="true"), 
all
requests get sent to Tomcat.

"Tref Gare" <[EMAIL PROTECTED]> wrote in message
news:D9E0834F4E6DA84C8F8F421EDA28E84106A63F@;proxy.areeba.com.au...
Thanks Robert,

You actually helped me out last week with the same howto.. however in
this case we're a step past that.  I've got the listeners set up as per
the howto and they're doing fine when it comes to setting up the
examples context, however they don't seem to want to have anything to do
with the root context.

I was wondering briefly if this has something to do with the invoker
servlet (disabled by default in tomcat 4.1.12) but I'm only trying to
reach .jsp's at the moment not /servlet/MyServlet etc.

On the topic can you enlighten me at all as to what's the advantage
(aside from ease of use) of using the auto generated files as compared
to manually created ones (ie: taking the params in mod_jk.conf and
copying/tweaking them in httpd.conf direct).  I'm going to have some non
vanilla mappings (*.form for example) that I imagine might not be able
to be co

Re: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (mod_jk2-2.0.43.dll)

2002-10-30 Thread M. Hockings
Hi Newbie,

In the workers2.properties it is ${TOMCAT_HOME}/bin/tomcat-jni.jar. 
I've tried hard-coding it with forward slashes but the result was the 
same.  There is probably something very simple that I'm overlooking.

Thanks,

Mike

Tomcat Newbie wrote:

How about the slashes in your path?

C:\ApacheGroup\Tomcat4.1/bin/tomcat-jni.jar
 ^^^

- Original Message -
From: "M. Hockings" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, October 30, 2002 10:00 PM
Subject: Re: need help connecting Tomcat 4.1.12, Apache 2.0.43 using jk2 (
mod_jk2-2.0.43.dll)


 

Hello,

I too am trying to get this configuration working to give me a test
environment that duplicates a remote server.  I have followed the
instructions pointed to by John Turner very closely and only modified
the line in workers2.properties that points to the jvm.dll.  When I
start Apache I see the following in logs\error.log.   If you have any
hints or suggestions about what I have set up incorrectly please let me
know.  Both Apache and Tomcat seem to work fine individually.

Thanks,

Mike
   



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 

 


--

Note new email address -> [EMAIL PROTECTED] <-

Mike's Page   :  http://www.hockings.net/~mike
Rifle Shooting in Ontario :  http://www.hockings.net/rso/
Scarborough Rifle Club:  http://www.hockings.net/rso/src/
Canadian Shooting Sports  :  http://www.CdnShootingSports.org
Ontario Rifle Association :  http://www.OntarioRifleAssociation.org





NEWBIE: Tomcat Bean Placement

2002-10-30 Thread Christopher J . Utley
I've Tomcat up and running on Mac OS X v10.2.  I can execute basic .jsp 
files, but as soon as I started working with beans I hit a wall.

I have a very simple bean I copied from a tutorial.  They instruct me 
to place the .java file in a particular path with a .class file.  I 
assumed the .class file was created by running javac on my .java file.  
S, I put the .java and .class file in a path that looks like 
this:

../jswdk-1.0/examples/jsp/tutorial/hellouser (my .jsp files)
../jswdk-1.0/examples/WEB-INF/jsp/beans/hello (where my .java and 
.class files are located)

I have checked file names, case, etc..  I get this error:

java.lang.ClassNotFoundException: hello.NameHandler

What is the convention for placing beans on the server?  Does what I'm 
doing look right?

TIA,
Chris


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: NEWBIE: Tomcat Bean Placement

2002-10-30 Thread Kwok Peng Tuck
Classes (.class) go under /WEB-INF/classes in each and every web app.
If they are in a jar, then it goes under /WEB-INF/lib of every web app.

Christopher J. Utley wrote:


I've Tomcat up and running on Mac OS X v10.2.  I can execute basic 
.jsp files, but as soon as I started working with beans I hit a wall.

I have a very simple bean I copied from a tutorial.  They instruct me 
to place the .java file in a particular path with a .class file.  I 
assumed the .class file was created by running javac on my .java 
file.  S, I put the .java and .class file in a path that looks 
like this:

../jswdk-1.0/examples/jsp/tutorial/hellouser (my .jsp files)
../jswdk-1.0/examples/WEB-INF/jsp/beans/hello (where my .java and 
.class files are located)

I have checked file names, case, etc..  I get this error:

java.lang.ClassNotFoundException: hello.NameHandler

What is the convention for placing beans on the server?  Does what I'm 
doing look right?

TIA,
Chris


--
To unsubscribe, e-mail:   

For additional commands, e-mail: 






--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Re: Tomcat on Thru64 Unix (OSF1)

2002-10-30 Thread Nikola Milutinovic
Denys Sene dos Santos wrote:

Hi,

I'm having some troubles while running Tomcat 4.1.12-LE
under Digital Unix (OSF1). The server are running ok, but the
/examples dir with the servlets are returning the error :

HTTP Status 404 - /examples/servlets/

type Status report

message /examples/servlets/

description The requested resource (/examples/servlets/) is not
available.

I'm working with the default config files.
Under linux, I have no problems.


Sounds like "Invoker Servlet" is disabled, which is the default since 4.1.12. 
Anything else in the logs?

Nix.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



RE: "Tomcat" in DOS window - WHY? WHY? WHY?

2002-10-30 Thread micael
Thanks.  Much appreciated.

At 03:31 PM 10/30/2002 -0500, you wrote:

Check out Catalina.bat:

if not "%OS%" == "Windows_NT" goto noTitle
set _EXECJAVA=start "Tomcat" %_RUNJAVA%
goto gotTitle
:noTitle
set _EXECJAVA=start %_RUNJAVA%
:gotTitle

-Original Message-
From: micael [mailto:caraunltd@;harbornet.com]
Sent: Wednesday, October 30, 2002 3:16 PM
To: [EMAIL PROTECTED]
Subject: "Tomcat" in DOS window - WHY? WHY? WHY?




When we startup Tomcat on a Win XP machine, the DOS window comes up saying
"Tomcat".  What causes that to happen instead of the normal
"C:\Windows\System32\cmd.exe"?

Micael

---

This electronic mail  transmission and any accompanying documents contain
information belonging to the sender which may be confidential and legally
privileged.  This information is intended only for the use of the
individual or entity to whom this electronic mail transmission was sent as
indicated above. If you are not the intended recipient, any disclosure,
copying, distribution, or action taken in reliance on the contents of the
information contained in this transmission is strictly prohibited.  If you
have received this transmission in error, please delete the message.  Thank
you



--
To unsubscribe, e-mail:

For additional commands, e-mail:


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



Re: Tomcat & Apache, not connected?

2002-10-30 Thread micael
Don't use the apache, switch the Tomcat to 80.  Works out of the box like 
that, and the directions on how are in Goodwill's Apache Jakarta-Tomcat if 
you want to look at that.  It is really obvious, though.  Just don't use 
apache and change 8080 to 80.

At 03:13 PM 10/30/2002 -0700, you wrote:

We've currently got Apache running on HP-UX 11.  Now I'm developing a Struts
webapp that will need to go on the same box.  HP hasn't released Tomcat 4
yet, so we'll have to get it to work ourselves.

Since the Struts app has no static content, is there any reason to put
ourselves through the pain of convincing Apache and Tomcat to play nicely
together?  Or can the two run on the same machine with no knowledge of one
another?

The only disadvantage I see is that my Tomcat URL's will have to include a
port number, since Apache is already listening on port 80.

Anything else I should know?

--
Wendy Smoak
http://sourceforge.net/projects/unidbtags


Micael

---

This electronic mail  transmission and any accompanying documents contain 
information belonging to the sender which may be confidential and legally 
privileged.  This information is intended only for the use of the 
individual or entity to whom this electronic mail transmission was sent as 
indicated above. If you are not the intended recipient, any disclosure, 
copying, distribution, or action taken in reliance on the contents of the 
information contained in this transmission is strictly prohibited.  If you 
have received this transmission in error, please delete the message.  Thank you 



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 



package not found for docBase outside tomcat/webapp

2002-10-30 Thread Affan Qureshi
I am using Tomcat 4.1 on Win2k.

If I place my web application outside ${Tomcat_Home}\webapps the package for my 
classes (placed in WEB-INF\classes) is not recognized. Even the jar file's package in 
the lib dir of my web application is not recognized. If I copy the same dir into the 
webapps directory the problem is solved. Has anyone else also experienced this problem?

Thanks.



Re: package not found for docBase outside tomcat/webapp

2002-10-30 Thread Affan Qureshi
I think this has been reported at Bugzilla with id:12387 And it says that it
is fixed. Should I download latest Tomcat version?

Can someone tell me how to fix this?

- Original Message -
From: "Affan Qureshi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, October 31, 2002 11:46 AM
Subject: package not found for docBase outside tomcat/webapp


I am using Tomcat 4.1 on Win2k.

If I place my web application outside ${Tomcat_Home}\webapps the package for
my classes (placed in WEB-INF\classes) is not recognized. Even the jar
file's package in the lib dir of my web application is not recognized. If I
copy the same dir into the webapps directory the problem is solved. Has
anyone else also experienced this problem?

Thanks.



--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




ANNOUNCE: basicPortal release 0.7e on Sourceforge

2002-10-30 Thread John Menke
The basicPortal project on Sourceforge has just released a new release of
their FREE OPEN SOURCE portal software.  See http://basicportal.SF.net.

basicPortal is a SET OF vertical applications designed to increase web
programmer
productivity that incorporates Struts, the JSTL tag library, a BASIC DAO
implementation, and MVC programming techniques.  The goal of basicPortal is
provide developers with a working base of code to jumpstart their web/portal
projects.

basicPortal:

- contains the functionality common to 80% of web projects
- we let developers customize the last 20%.


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




MIDP and USSD ?

2002-10-30 Thread Daniel.T.Hellstrand
Is it possible to send a USSD through MIDP ?

/Dan

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




largefile option in 4.1.12

2002-10-30 Thread Holger Brozio
Hello,

has anybody tested the largefile option with Tomcat 4.1.12?
In my opinion it seems to be without effect. No .dat file are
generated like in 4.0.x. I have also scanned the jasper code
for this option. The option is set at the EmbededServletOptions
class, but nobody seems to use this value inside of the jasper package?

Thanks in advamce.

Holger Brozio

--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




<    1   2