RE: Re OT: Java/JSP vs C#/.NET

2003-08-27 Thread David C. Rogers
I think im pretty much done with JSP...tags and all. I think the future (the
now) is XML/XSLT/CSS for the presentation. Do the presentation logic in java
and stuff the results in a DOM and let XSLT render it. Yea XSLT is hard to
learn but its good on reuse so once you have bult a widget you dont  have to
do it again.

Any one know about good Java Server Faces tools for the "lazy" among
us java developers? or is JSF too late?

Borland C#?? How about Eclipse? Now that IDE rocks.

I think $MS is going to have a hell of a time competing with the open source
community in the medium (5 year) term. Open Office is
looking really good these days.

Sun, IBM, and others sell hardware and services and so are investing big
time in java and open source. MS sells? xbox hardware? professional
services?


Java+XML+XSLT i say.

-D

-Original Message-
From: james Folsom [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 6:58 PM
To: Tomcat Users List
Subject: Re: Re OT: Java/JSP vs C#/.NET



Maybe I'm a little biased, but I don't see how it's even an issue. In order
for there to actually be some sort of debate, Microsoft .NET would have to
be at least somewhat comparable to Java. They aren't even close.

People who use C# use it because they are lazy. The thing about doing J2EE
is that you actually have to know something about computers to use it; it's
not exactly point and click. So far the only valid argument I have heard in
favor of .NET is that it is easy. If you want to be a cheeseball Microsoft
programmer that just copies and pastes VB code then you probably want to use
.NET.

I as far as I am concerned Java is the only decent development platform
business apps. Let's Compare The two on the basis of features and
flexibility.

Platform Independence:
Java 5 C# 0.

Runtime Environment w/ JIT:

Java 1 C# 1

Object-Oriented:

Java 1 C# 1

Support for web services:

Java 1 C# 1

Aspect-Oriented:

Java 5 C# 0

Scalable:

Java 5 C# 0

Solid(see Flyweight Pattern) Web Architecture for developing dynamic HTML:

Java 5 C# 0

Vendor neutral:

Java 5 C# 0

Distributed object model (a.k.a. EJB):

Java 5 C# 0

Open-source support:

Java 5 C# 0

Standards managed by a community process vs. no standards managed by a
company who has consistently proven that they have neither ethics nor
scruples:

Java 20 C# 0

As you can see, the choice is clear. .NET is nothing more than Microsoft
vapor-ware. Three years ago, everyone was saying that DCOM was going to be
the next big thing, now you can't even get Microsoft to support it anymore.
Microsoft's game is selling books and development tools. In five years,
there will probably be some brand-spankin'-new-latest-greatest-technology
coming out of Seattle and all the spin-doctors will pump the press and try
to convince you that   .NET is obsolete and you need to spend a few hundred
thousand dollars on development tools, operating systems, and training. Five
years from now..
You'll can be rushing to try and keep up with the latest crap (and it is
crap) Bill is feeding you. I'd rather not. I'll stick with Java. I hope you
will do the same.

As long as there are still people in this industry who actually know what
the hell they are doing, Java will still be here. If you can chart the
proliferation of ignorance and contrast it with the proliferation of
Microsoft, you can see that the lines move in perfect parallel.


--- Vic Cekvenich <[EMAIL PROTECTED]> wrote:
>It's fun to complain sometimes.
>
>Here is more:
>http://www.onjava.com/pub/a/onjava/2003/07/23/java_qa.html
>It seems that JCP and Vendors are leaving a lot of developers behind.
>I can download Borland C# for free, more choices are better for developers:
>http://borland.com/products/downloads/download_csharpbuilder.html#
>C# is ECMA standard of course and you can do MVC w/ Mav-Net for example.
>
>.V
>
>Shawn Zernik wrote:
>
>> Lance:
>>
>> 100% Multi-Platform Support: Microsoft doesn't have it.
>>
>> Shawn Zernik
>> Internetwork Consulting
>> www.internetworkconsulting.net
>>
>> -Original Message-
>> From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
>> Sent: Monday, August 25, 2003 4:57 PM
>> To: Tomcat Users List
>> Subject: Java/JSP vs C#/.NET
>>
>>
>> Hi,
>>
>> I am a pure java supporter. I don't like C# or .Net because of
Microsoft's
>> monopolization (sorry, kind of prejudice). However, I notice that more
and
>> more people pick up C#/.NET due to their new advantages. I also heard
that
>> C# is much faster than Java. My concern is, can Java/JSP still be
>> competitive to Microsoft's products? I don't like to see java be beaten
by
>> Microsoft since it borrowed so many ideas from java to make up the
so-called
>> "C#".
>>
>> ok, feel free to talk about this topic.
>>
>> Lance
>>
>>
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>--
>Vic Cekvenich,
>Struts Instructor,
>1-800-917-JAVA
>
>Adva

Re: Re OT: Java/JSP vs C#/.NET

2003-08-27 Thread james Folsom

Maybe I'm a little biased, but I don't see how it's even an issue. In order for there 
to actually be some sort of debate, Microsoft .NET would have to be at least somewhat 
comparable to Java. They aren't even close.

People who use C# use it because they are lazy. The thing about doing J2EE is that you 
actually have to know something about computers to use it; it's not exactly point and 
click. So far the only valid argument I have heard in favor of .NET is that it is 
easy. If you want to be a cheeseball Microsoft programmer that just copies and pastes 
VB code then you probably want to use .NET. 

I as far as I am concerned Java is the only decent development platform business apps. 
Let's Compare The two on the basis of features and flexibility. 

Platform Independence:
Java 5 C# 0.

Runtime Environment w/ JIT:

Java 1 C# 1

Object-Oriented:

Java 1 C# 1

Support for web services:

Java 1 C# 1

Aspect-Oriented:

Java 5 C# 0

Scalable:

Java 5 C# 0

Solid(see Flyweight Pattern) Web Architecture for developing dynamic HTML:

Java 5 C# 0

Vendor neutral:

Java 5 C# 0

Distributed object model (a.k.a. EJB):

Java 5 C# 0

Open-source support:

Java 5 C# 0

Standards managed by a community process vs. no standards managed by a company who has 
consistently proven that they have neither ethics nor scruples:

Java 20 C# 0

As you can see, the choice is clear. .NET is nothing more than Microsoft vapor-ware. 
Three years ago, everyone was saying that DCOM was going to be the next big thing, now 
you can't even get Microsoft to support it anymore. Microsoft's game is selling books 
and development tools. In five years, there will probably be some 
brand-spankin'-new-latest-greatest-technology coming out of Seattle and all the 
spin-doctors will pump the press and try to convince you that   .NET is obsolete and 
you need to spend a few hundred thousand dollars on development tools, operating 
systems, and training. Five years from now..
You'll can be rushing to try and keep up with the latest crap (and it is crap) Bill is 
feeding you. I'd rather not. I'll stick with Java. I hope you will do the same.

As long as there are still people in this industry who actually know what the hell 
they are doing, Java will still be here. If you can chart the proliferation of 
ignorance and contrast it with the proliferation of Microsoft, you can see that the 
lines move in perfect parallel.


--- Vic Cekvenich <[EMAIL PROTECTED]> wrote:
>It's fun to complain sometimes.
>
>Here is more:
>http://www.onjava.com/pub/a/onjava/2003/07/23/java_qa.html
>It seems that JCP and Vendors are leaving a lot of developers behind.
>I can download Borland C# for free, more choices are better for developers:
>http://borland.com/products/downloads/download_csharpbuilder.html#
>C# is ECMA standard of course and you can do MVC w/ Mav-Net for example.
>
>.V
>
>Shawn Zernik wrote:
>
>> Lance:
>> 
>> 100% Multi-Platform Support: Microsoft doesn't have it.
>> 
>> Shawn Zernik
>> Internetwork Consulting
>> www.internetworkconsulting.net
>> 
>> -Original Message-
>> From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
>> Sent: Monday, August 25, 2003 4:57 PM
>> To: Tomcat Users List
>> Subject: Java/JSP vs C#/.NET
>> 
>> 
>> Hi,
>> 
>> I am a pure java supporter. I don't like C# or .Net because of Microsoft's
>> monopolization (sorry, kind of prejudice). However, I notice that more and
>> more people pick up C#/.NET due to their new advantages. I also heard that
>> C# is much faster than Java. My concern is, can Java/JSP still be
>> competitive to Microsoft's products? I don't like to see java be beaten by
>> Microsoft since it borrowed so many ideas from java to make up the so-called
>> "C#".
>> 
>> ok, feel free to talk about this topic.
>> 
>> Lance
>> 
>> 
>> -
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>
>-- 
>Vic Cekvenich,
>Struts Instructor,
>1-800-917-JAVA
>
>Advanced Struts Training, mentoring and 
>project recovery in North East.
>Struts conversion and  fixed bid development.
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

_
Are you a Techie? Get Your Free Tech Email Address Now! Visit http://www.TechEmail.com

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



Class Loader skips WEB-INF/lib and shared/lib ?

2003-08-27 Thread Pike
Hi

when starting tomcat 5.0.9 on MacOSX,
one of my contexts has trouble reading files
from WEB-INF/classes and WEB-INF/lib
what strikes me most is the localhost_xxx.log (boy i hate
those datestamps in the filename :-) which tries to show
the ClassLoader delegation (I think)
it doesnt seem to find files in WEB-INF/classes
and it doesnt even look in /WEB-INF/lib or $CHOME/shared/lib ?
does this sound familiar to anyone ?

= [log snippet]

2003-08-28 00:36:55 Marking servlet xwebdav as unavailable
2003-08-28 00:36:55 Error loading WebappClassLoader
  delegate: false
  repositories:
/WEB-INF/classes/
--> Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
file:/usr/local/jakarta-tomcat-5/shared/classes/
--> Parent Classloader:
StandardClassLoader
  delegate: true
  repositories:
file:/usr/local/jakarta-tomcat-5/common/classes/
file:/usr/local/jakarta-tomcat-5/common/endorsed/xercesImpl.jar
[snip]  
file:/usr/local/jakarta-tomcat-5/common/lib/servlet-api.jar
--> Parent Classloader:
[EMAIL PROTECTED]
 nl.v2.apache.WebdavServlet
java.lang.ClassNotFoundException: nl.v2.apache.WebdavServlet
[etc]
===

thanks,
*-pike
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Is there a call to check if cookies are enabled?

2003-08-27 Thread Yansheng Lin
   Cookie[] cookies = request.getCookies();

will do the trick for you:).

Note: Tomcat checks for cookie on its first response.  That's why when you
restart tomcat for the first time, you can see the jsessionid *mysteriously*
appears in the URL.



-Original Message-
From: Neil Aggarwal [mailto:[EMAIL PROTECTED] 
Sent: August 27, 2003 3:46 PM
To: 'Tomcat-User'
Subject: Is there a call to check if cookies are enabled?


Hello:

HttpServletResponse.encodeURL() has to know if cookies are enabled
or not.  Is there an API call to check that?

I looked thru the APIs and found nothing.  Searching the web and
mailing list was also fruitless.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com


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


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



RE: Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-27 Thread Randy Kerber

How about 

appbase="E:/Inetpub/wwwroot"

docbase="www.site1.com"
...
docbase="www.site2.com"


Also, in  you have defaultHost="localhost", but there is no
 defined.  So I think either leave out the
defaultHost, point it to "www.site1.com", or define a  entry with
name="localhost".

___
Randy Kerber
 
Data Mining Consultant 
   software development & data analysis
   San Jose, CA
 

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 11:12 AM
To: [EMAIL PROTECTED]
Subject: Multiple Virtual Hosts on 1 instance of Tomcat


Hello.  Thanks for taking the time to read this.  First of all, I am
assuming that virtual hosts are where you have more than one url
pointing to a web server.  Each url has it's own data.  Not redirection.

 
I have a web server that handles 5 virtual hosts using IIS.  I've
configured tomcat to work with IIS and serve JSP pages for 1 of the
virtual hosts.  I used the default server.xml file that came with the
installation.  
 
So my server.xml file looks like this.
 

 

 

 

 

 

 

 

 
 
  

 
Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?



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



Is there a call to check if cookies are enabled?

2003-08-27 Thread Neil Aggarwal
Hello:

HttpServletResponse.encodeURL() has to know if cookies are enabled
or not.  Is there an API call to check that?

I looked thru the APIs and found nothing.  Searching the web and
mailing list was also fruitless.

Thanks,
Neil

--
Neil Aggarwal, JAMM Consulting, (972)612-6056, www.JAMMConsulting.com
FREE! Valuable info on how your business can reduce operating costs by 
17% or more in 6 months or less! => http://newsletter.JAMMConsulting.com


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



RE: Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-27 Thread nrapagnani
I'm not sure what configuration the IIS connector would need.  I'm using the
redirector plug in 2.0 that points to the workers file.  I thought that was
all I needed for the IIS part.

As for doesn't work.  I get a 404-error page from IIS when I go to the web
page.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 4:15 PM
To: Tomcat Users List
Subject: Re: Multiple Virtual Hosts on 1 instance of Tomcat


Can you be more specific than "doesn't work"?

Have you done all of the configuration with your IIS connector required
for the second virtual host?

John

[EMAIL PROTECTED] wrote:

> Hello.  Thanks for taking the time to read this.  First of all, I am
> assuming that virtual hosts are where you have more than one url pointing
to
> a web server.  Each url has it's own data.  Not redirection.
> 
> I have a web server that handles 5 virtual hosts using IIS.  I've
configured
> tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts.  I
> used the default server.xml file that came with the installation. 
> 
> So my server.xml file looks like this.
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>   directory="logs"  prefix="psc_log." suffix=".txt"
> timestamp="true"/>
> 
>  reloadable="true" />
> 
> 
> 
> unpackWARs="true" autoDeploy="true">
> 
>   directory="logs"  prefix="psc_log." suffix=".txt"
> timestamp="true"/>
> 
>  debug="0" reloadable="true" />
> 
> 
>   
> 
> 
> Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?
>



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

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



Re:

2003-08-27 Thread Robert Charbonneau
On August 27, 2003 10:12 am, John Turner wrote:
> Sure, as soon as you give us insight such as:
>
> - what's wrong, exactly

I want to be able to run JSPs directly from the root of the domain on the 
webserver.  ie. http://domain.tld/index.jsp

When I access http://localhost/index.jsp when the path of the Context 
container is set to "/", I get a 404.  This, obviously, is undesirable.  
However, if I simply hit http://localhost/ Apache gives me a directory 
listing which shows me index.jsp.

> - what error messages you're getting

I get a 404 File Not Found error when I try to access index.jsp from / when 
 - what version of Tomcat

4.1.27

> - what version of Apache, what connector

Apache httpd 2.0.47 and mod_jk-2.0.43.so

> - whether its working in Tomcat standalone, without Apache

It's not working as the root of the tomcat server on port 8080, but I wasn't 
expecting it to.  I want the root of the domain being able to serve JSPs and 
Servlets so I don't have to create a subdirectory off of the root for this 
purpose.

> - what URL you are trying to use

http://localhost/index.jsp

> Specific information is best.  Saying "it doesn't work" doesn't help us
> help you.  Also, there is more involved in Apache + Tomcat than just
> server.xml, so you will need to give us that information as well (please
> don't post entire files...just snippets showing deviations from defaults
> is sufficient).

Sorry about that, most mailing lists I belong to are pretty free form.  I'll 
keep an eye on the amount of data sent in the future.

As for the rest of the configuration, everything is default except server.xml.  
When I startup Tomcat mod_jk.conf is generated in $CATALINA_HOME/conf/auto/ 
and is included by httpd.conf which is the only modification to that file I 
made aside from changing ServerName to ServerName localhost.

Any help would be appreciated.

> John
>
> Robert Charbonneau wrote:
> > I was trying to setup Tomcat to allow Apache to serve *.jsp files from
> > the DocumentRoot of Apache.  I had setup the following:
> >
> >
> >  > reloadable="true" >
> >   
> >> timestamp="true"/>
> > 
> >
> >   
> >
> > 
> >
> >   
> >
> > 
> >
> >

--
Robert Charbonneau
[EMAIL PROTECTED]
--


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



Re: Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-27 Thread John Turner
Can you be more specific than "doesn't work"?

Have you done all of the configuration with your IIS connector required 
for the second virtual host?

John

[EMAIL PROTECTED] wrote:

Hello.  Thanks for taking the time to read this.  First of all, I am
assuming that virtual hosts are where you have more than one url pointing to
a web server.  Each url has it's own data.  Not redirection. 
 
I have a web server that handles 5 virtual hosts using IIS.  I've configured
tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts.  I
used the default server.xml file that came with the installation.  
 
So my server.xml file looks like this.
 

 

 

 directory="logs"  prefix="psc_log." suffix=".txt"
timestamp="true"/>
 

reloadable="true" />
 

 

 

 directory="logs"  prefix="psc_log." suffix=".txt"
timestamp="true"/>
 

debug="0" reloadable="true" />
 
 
  

 
Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?



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


Re: Can not load JNDI DataSource in Servlet.init()

2003-08-27 Thread Manolo Ramirez T.
I try it and doGet() stop working too, the error was:

javax.naming.NameNotFoundException: Name jdbc is not bound in this Context

Anyway, I found how to configure the application context with ant (I 
think that it was not posible), so I can live without DefaultContext.

Thanks for the help.

Regards,

_
Manolo Ramirez T.
Madere, Colin wrote:
Ok, you are using a resource-ref.  But I'm not sure why since you have the
resource defined in the DefaultContext.  Try removing the resource-ref from
your web.xml and see if you get a different error.
(BTW: Better not to use attachments since this list is archived and not all
attachments work for all mail readers, etc).
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 7:01 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()

I was making more test with this, I find that if I define the resource 
in a normal context it works, but I want to use defaultcontext to work 
with ant InstallTask, or is there another way to do this?

I attached my web.xml, this is the relevant entry in server.xml:


   
   
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 
 
   maxActive
   100
 
 
   maxIdle
   30
 
 
   maxWait
   1
 
 
  username
  ***
 
 
  password
  ***
 
 
driverClassName
org.gjt.mm.mysql.Driver
 
 
   url
 
jdbc:mysql://localhost:3306/comercial?autoReconnect=true
 
   







Thanks for the help Colin.

_
Manolo Ramirez T.


Madere, Colin wrote:

Well then it may be something else.  I'm essentially doing what you 
are with a JNDI datasource defined in the DefaultContext with nothing 
in the web.xml (except to pass along the JNDI name so it's not 
hard-coded).  It breaks for me (and a bunch of other people posting 
recently using 4.1.x) when I try to move that to GlobalNamingResources 
and use a ResourceLink.

Post your server.xml and web.xml (or just relevant parts), maybe it's 
something else.

-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 3:50 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()
No, I'm not using a ResourceLink.

_
Manolo Ramirez T.
Madere, Colin wrote:


So you are using a resource link in the DefaultContext either in
server.xml or your web.xml?
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 1:27 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()
It's in DefaultContext, I checked the related messages, it seems like 
the same problem.

Thanks for the answer.

_
Manolo Ramirez T.
Madere, Colin wrote:



How is your JNDI resource configured?  In an explicitly defined 
Context or in the DefaultContext?  ResourceLinked?

I ask because there are a number of folks with similar problems that 
look to be something missing in how JNDI datasources are handled 
internally when using DefaultContext.

See other topics:

* ResourceLink and DefaultContext
* Tomcat 4.1 DefaultContext Bug?
* Question about Tomcat Documentation
* Globally defined JNDI DataSource
-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
Sent: Friday, August 22, 2003 10:55 PM
To: Tomcat Users List
Subject: Can not load JNDI DataSource in Servlet.init()
Hi all,

Why I can't load a JNDI resource on the init method of my servlet? 
there is no problem doing that in doGet() but on init() it doesn't 
work. the logs entry is:

java.sql.SQLException: Cannot load JDBC driver class 'null'

It's the same code! What I'm missing?

this is my servlet code:





package libreria;

import java.io.PrintWriter;
import java.io.IOException;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;
import javax.sql.*;
import javax.naming.*;
public class MyServlet extends HttpServlet {

  public void init (ServletConfig config) throws ServletException{
super.init(config);
try {
Context ctx = new InitialContext();
if(ctx==null) {
System.out.println("fallo InitialContext");
return;
}
DataSource ds =
(DataSource)ctx.lookup("java:comp/env/jdbc/ComercialDB");
if(ds==null) {
System.out.println("fallo lookup");
return;
}
	Connection conn = ds.getConnection();

Statement stm = conn.createStatement();

ResultSet rs = stm.executeQuery("select * from pruebas");
	while(rs.next()) {
	 
System.out.println(rs.getInt("id")+"::"+rs.getString("nombre")+"::"+r
s
.getSt
ring("apellido"));
	}
	}
	catch(Exception e) {
	e.printStackTrace();
	}
  }

  public void doGet(HttpServletRequest request, HttpServletResponse
re

Multiple Virtual Hosts on 1 instance of Tomcat

2003-08-27 Thread nrapagnani
Hello.  Thanks for taking the time to read this.  First of all, I am
assuming that virtual hosts are where you have more than one url pointing to
a web server.  Each url has it's own data.  Not redirection. 
 
I have a web server that handles 5 virtual hosts using IIS.  I've configured
tomcat to work with IIS and serve JSP pages for 1 of the virtual hosts.  I
used the default server.xml file that came with the installation.  
 
So my server.xml file looks like this.
 

 

 

 

 

 

 

 

 
 
  

 
Site1 works.  Site 2 doesn't.  Any idea what I'm doing wrong?


unsubscrive

2003-08-27 Thread PANIGADA ALBERTO

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

Re: jakarta connector, jBoss 3.0.6 and iPlanet version 6

2003-08-27 Thread Eric J. Pinnell
Hi,

What I had to do is fool netscape into thinking that the file was there.

For example:

I had http://www.foo.com/index.jsp.  I had to touch (write a 0 length
file) index.jsp in the netscape docroot so netscape wouldn't throw a 404.
Doing this would fool netscape into thinking the file was there.  Then the
redirection in the obj.conf would kick in and it would serve up the real
index.jsp from Tomcat.

-e

On Wed, 27 Aug 2003, Rick Edwards wrote:

> Hi all
>
> I've compiled version 4.1.27 of the jakarta nsapi_redirector, but can't seem to get 
> anything to redirect.  jBoss is for sure working, because I can access the examples 
> directly, using http://norman:8080/idm/ui/ping.jsp
> However, if I try to access these same examples using http://norman/idm/ui/ping.jsp 
> I get a 404 error - page not found.  In my limited understanding of this whole 
> affair, that means that the redirector isn't redirecting.  I do have all the proper 
> NameTrans directives in my obj.conf.
> Any takers??
>
> TIA
> Rick
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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



Re: Newbie

2003-08-27 Thread John Turner
Without more specific information, my guess is you don't have a JkMount 
for "/examples" in your SSL VirtualHost for "localhost".

John

Tran, Khiem (NIH/CIT) wrote:

Hi,

I am a newbie to Apache Tomcat.  I got the instruction of the following URL.
http://myweb.cableone.net/kdubuisson/Install.PDF
I installed and it worked fine.  I tried https://localhost/examples but it
did not work.
Please help me.  
Thanks in advance.

-KT

Packages installed

Red Hat Linux 7.3
httpd-2.0.47.tar.gz
j2sdk-1_4_1_04-linux-i586.bin
jakarta-tomcat-4.1.24.tar.gz
jakarta-tomcat-connectors-4.1.18-src.tar.gz
openssl-0.9.7.tar.gz
-
Worked fine
---
https://localhost/ 
https://kt.domainname/
http://localhost/examples


Did not work
---
https://localhost/examples
Not Found

The requested URL /examples was not found on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b mod_jk/1.2.2-dev Server
at localhost Port 443
---




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


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


Re: Can't access tomcat pages with https://

2003-08-27 Thread John Turner
Yes.  You wouldn't do it in a connector environment.

John

Denise Mangano wrote:

Even though I don't plan on using Tomcat as a standalone?  My intention
is to run it behind Apache using mod_jk.  All incoming traffic will be
coming in to my site from port 80 or port 443 which is configured on
Apache's site.  If I configured Tomcat for port 443 as well, wouldn't
that cause a conflict?
Thanks.



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


Re: Can't access tomcat pages with https://

2003-08-27 Thread John Turner
Denise Mangano wrote:

Apache is configured for SSL and http://localhost and https://localhost

Tomcat :  I can access http://localhost:8080 but not
https://localhost:8080
Why would this be the case?  
Because Tomcat doesn't have SSL setup by default.

Check the SSL HOWTO in the docs for more info.

If you do get it set up, it would be https://localhost:8443

I would like to get this resolved before I move back to setting up
mod_jk.  Or wait a second... is it because of mod_jk that I was able to
go from http://localhost/index.jsp to https://localhost/index.jsp ??
Actually, if your plan is to use Apache and a connector, there is no 
gain in setting up SSL for Tomcat other than experience and knowledge. 
In an Apache + connector + Tomcat environment, the only SSL 
configuration is done in Apache.  Tomcat has no SSL configuration in 
that environment, since all requests come in via AJP on "standard" port 
like 8009.

John



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


Newbie

2003-08-27 Thread Tran, Khiem (NIH/CIT)
Hi,

I am a newbie to Apache Tomcat.  I got the instruction of the following URL.
http://myweb.cableone.net/kdubuisson/Install.PDF
I installed and it worked fine.  I tried https://localhost/examples but it
did not work.
Please help me.  
Thanks in advance.

-KT

Packages installed

Red Hat Linux 7.3
httpd-2.0.47.tar.gz
j2sdk-1_4_1_04-linux-i586.bin
jakarta-tomcat-4.1.24.tar.gz
jakarta-tomcat-connectors-4.1.18-src.tar.gz
openssl-0.9.7.tar.gz
-

Worked fine
---
https://localhost/ 
https://kt.domainname/
http://localhost/examples


Did not work
---
https://localhost/examples

Not Found

The requested URL /examples was not found on this server.
Apache/2.0.47 (Unix) mod_ssl/2.0.47 OpenSSL/0.9.6b mod_jk/1.2.2-dev Server
at localhost Port 443
---





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



[SOLVED]: JK2, JNI, Apache2, Tomcat4.1, JDK1.4 setup problem

2003-08-27 Thread Jason Symons
It turns out if you just wait a bit before trying to pull up any tomcat-handled pages 
everything runs fine. It would seem that it just takes a little time for tomcat to be 
loaded in process with Apache.

JS


*** REPLY SEPARATOR  ***

On 26/08/2003 at 1:32 PM Jason Symons wrote:

>I'm not sure if this helps at all, but here is the output of the
>stderr.log from when one of the tomcat-handled pages is loaded first...
>Anybody have an idea of what might be causing the
>"java.lang.UnsatisfiedLinkError: Expecting an absolute path of the
>library: inprocess" error?
>
>TomcatStarter: main()
>Try  org.apache.tomcat.startup.Main
>Try  org.apache.catalina.startup.BootstrapService
>Starting org.apache.catalina.startup.BootstrapService
>Created catalinaLoader in: c:\Tomcat41\server\lib
>Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry loadRegistry
>INFO: Loading registry information
>Aug 26, 2003 1:37:17 PM org.apache.commons.modeler.Registry getRegistry
>INFO: Creating new Registry instance
>Aug 26, 2003 1:37:18 PM org.apache.commons.modeler.Registry getServer
>INFO: Creating MBeanServer
>Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.struts.util.LocalStrings',
>returnNull=true
>Aug 26, 2003 1:37:22 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.struts.action.ActionResources',
>returnNull=true
>Aug 26, 2003 1:37:23 PM org.apache.struts.util.PropertyMessageResources
>
>INFO: Initializing, config='org.apache.webapp.admin.ApplicationResources',
>returnNull=true
>Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelSocket init
>INFO: JK2: ajp13 listening on /0.0.0.0:8009
>Aug 26, 2003 1:37:28 PM org.apache.jk.common.ChannelJni init
>INFO: JK2: listening on channel.jni:jni
>java.lang.UnsatisfiedLinkError: Expecting an absolute path of the library:
>inprocess
>   at java.lang.Runtime.load0(Unknown Source)
>   at java.lang.System.load(Unknown Source)
>   at org.apache.jk.apr.AprImpl.loadNative(AprImpl.java:292)
>   at org.apache.jk.apr.AprImpl.init(AprImpl.java:243)
>   at org.apache.jk.server.JkMain.start(JkMain.java:354)
>   at org.apache.jk.server.JkCoyoteHandler.start(JkCoyoteHandler.java:171)
>   at
>org.apache.coyote.tomcat4.CoyoteConnector.start(CoyoteConnector.java:1180)
>   at
>org.apache.catalina.core.StandardService.start(StandardService.java:506)
>   at org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
>   at
>org.apache.catalina.startup.CatalinaService.start(CatalinaService.java:273)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at
>org.apache.catalina.startup.BootstrapService.start(BootstrapService.java:245)
>   at
>org.apache.catalina.startup.BootstrapService.main(BootstrapService.java:307)
>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>   at java.lang.reflect.Method.invoke(Unknown Source)
>   at org.apache.jk.apr.TomcatStarter.run(TomcatStarter.java:127)
>   at java.lang.Thread.run(Unknown Source)
>Aug 26, 2003 1:37:28 PM org.apache.jk.apr.AprImpl init
>INFO: JK2: Initialized apr
>Aug 26, 2003 1:37:28 PM org.apache.jk.server.JkMain start
>INFO: Jk running ID=0 time=0/125  config=c:\Tomcat41\conf\jk2.properties
>Aug 26, 2003 1:37:51 PM org.apache.jk.common.ChannelSocket
>processConnection
>INFO: connection timeout reached
>
>*** REPLY SEPARATOR  ***
>
>On 25/08/2003 at 2:24 PM Jason Symons wrote:
>
>>I've run into a problem with my setup of Apache 2.0.47, Tomcat 4.1.27 LE,
>>JDK1.4, and JK2 connected using JNI. If I stop the Apache service, and
>>then restart it, I get a 505 Server Error unless I either reload the page
>>a few times, or load a page that isn't passed to Tomcat first, once that's
>>done everything works fine. This problem only occurs if the Apache service
>>is stopped, if I reboot the machine, everything works fine. Has anybody
>>else encountered this problem, if so does anybody know what is causing it,
>>or is this just something I shouldn't worry about as it's only a minor
>>inconvenience?
>>
>>JS
>
>
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]





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



RE: Can't access tomcat pages with https://

2003-08-27 Thread Denise Mangano
Even though I don't plan on using Tomcat as a standalone?  My intention
is to run it behind Apache using mod_jk.  All incoming traffic will be
coming in to my site from port 80 or port 443 which is configured on
Apache's site.  If I configured Tomcat for port 443 as well, wouldn't
that cause a conflict?

Thanks.

> -Original Message-
> From: Shapira, Yoav [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 2:15 PM
> To: Tomcat Users List
> Subject: RE: Can't access tomcat pages with https://
> 
> 
> 
> Howdy,
> You need to have an SSL connector on the port you want https 
> for.  Take a close look at the sample connectors in the 
> server.xml file that ships with tomcat.
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-Original Message-
> >From: Denise Mangano [mailto:[EMAIL PROTECTED]
> >Sent: Wednesday, August 27, 2003 2:00 PM
> >To: [EMAIL PROTECTED]
> >Subject: Can't access tomcat pages with https://
> >
> >Ok, I recompiled Apache and Tomcat and each seems to be working 
> >individually.  I have a question regarding access to 
https:// access to 
>tomcat pages.  From what I remember from last time, there wasn't 
>anything special I had to do to configure tomcat for SSL, but for some 
>reason that doesn't seem to be the case this time.
>
>Apache is configured for SSL and http://localhost and https://localhost
>
>Tomcat :  I can access http://localhost:8080 but not 
>https://localhost:8080
>
>Why would this be the case?
>
>I would like to get this resolved before I move back to setting up 
>mod_jk.  Or wait a second... is it because of mod_jk that I was able to

>go from http://localhost/index.jsp to https://localhost/index.jsp ??
>
>
>Thanks!
>
>Denise
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential,
proprietary and/or privileged.  This e-mail is intended only for the
individual(s) to whom it is addressed, and may not be saved, copied,
printed, disclosed or used by anyone else.  If you are not the(an)
intended recipient, please immediately delete this e-mail from your
computer system and notify the sender.  Thank you.


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


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



RE: Can't access tomcat pages with https://

2003-08-27 Thread Shapira, Yoav

Howdy,
You need to have an SSL connector on the port you want https for.  Take
a close look at the sample connectors in the server.xml file that ships
with tomcat.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Denise Mangano [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 2:00 PM
>To: [EMAIL PROTECTED]
>Subject: Can't access tomcat pages with https://
>
>Ok, I recompiled Apache and Tomcat and each seems to be working
>individually.  I have a question regarding access to https:// access to
>tomcat pages.  From what I remember from last time, there wasn't
>anything special I had to do to configure tomcat for SSL, but for some
>reason that doesn't seem to be the case this time.
>
>Apache is configured for SSL and http://localhost and https://localhost
>
>Tomcat :  I can access http://localhost:8080 but not
>https://localhost:8080
>
>Why would this be the case?
>
>I would like to get this resolved before I move back to setting up
>mod_jk.  Or wait a second... is it because of mod_jk that I was able to
>go from http://localhost/index.jsp to https://localhost/index.jsp ??
>
>
>Thanks!
>
>Denise
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re OT: Java/JSP vs C#/.NET

2003-08-27 Thread Vic Cekvenich
It's fun to complain sometimes.

Here is more:
http://www.onjava.com/pub/a/onjava/2003/07/23/java_qa.html
It seems that JCP and Vendors are leaving a lot of developers behind.
I can download Borland C# for free, more choices are better for developers:
http://borland.com/products/downloads/download_csharpbuilder.html#
C# is ECMA standard of course and you can do MVC w/ Mav-Net for example.
.V

Shawn Zernik wrote:

Lance:

100% Multi-Platform Support: Microsoft doesn't have it.

Shawn Zernik
Internetwork Consulting
www.internetworkconsulting.net
-Original Message-
From: Xingqun Jiang [mailto:[EMAIL PROTECTED]
Sent: Monday, August 25, 2003 4:57 PM
To: Tomcat Users List
Subject: Java/JSP vs C#/.NET
Hi,

I am a pure java supporter. I don't like C# or .Net because of Microsoft's
monopolization (sorry, kind of prejudice). However, I notice that more and
more people pick up C#/.NET due to their new advantages. I also heard that
C# is much faster than Java. My concern is, can Java/JSP still be
competitive to Microsoft's products? I don't like to see java be beaten by
Microsoft since it borrowed so many ideas from java to make up the so-called
"C#".
ok, feel free to talk about this topic.

Lance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Vic Cekvenich,
Struts Instructor,
1-800-917-JAVA
Advanced Struts Training, mentoring and 
project recovery in North East.
Struts conversion and  fixed bid development.



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


jakarta connector, jBoss 3.0.6 and iPlanet version 6

2003-08-27 Thread Rick Edwards
Hi all

I've compiled version 4.1.27 of the jakarta nsapi_redirector, but can't seem to get 
anything to redirect.  jBoss is for sure working, because I can access the examples 
directly, using http://norman:8080/idm/ui/ping.jsp
However, if I try to access these same examples using http://norman/idm/ui/ping.jsp I 
get a 404 error - page not found.  In my limited understanding of this whole affair, 
that means that the redirector isn't redirecting.  I do have all the proper NameTrans 
directives in my obj.conf.  
Any takers??

TIA
Rick



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



Can't access tomcat pages with https://

2003-08-27 Thread Denise Mangano
Ok, I recompiled Apache and Tomcat and each seems to be working
individually.  I have a question regarding access to https:// access to
tomcat pages.  From what I remember from last time, there wasn't
anything special I had to do to configure tomcat for SSL, but for some
reason that doesn't seem to be the case this time.

Apache is configured for SSL and http://localhost and https://localhost

Tomcat :  I can access http://localhost:8080 but not
https://localhost:8080

Why would this be the case?  

I would like to get this resolved before I move back to setting up
mod_jk.  Or wait a second... is it because of mod_jk that I was able to
go from http://localhost/index.jsp to https://localhost/index.jsp ??


Thanks!

Denise 

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



RE: Can not load JNDI DataSource in Servlet.init()

2003-08-27 Thread Madere, Colin
Ok, you are using a resource-ref.  But I'm not sure why since you have the
resource defined in the DefaultContext.  Try removing the resource-ref from
your web.xml and see if you get a different error.

(BTW: Better not to use attachments since this list is archived and not all
attachments work for all mail readers, etc).

-Original Message-
From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED] 
Sent: Monday, August 25, 2003 7:01 PM
To: Tomcat Users List
Subject: Re: Can not load JNDI DataSource in Servlet.init()


I was making more test with this, I find that if I define the resource 
in a normal context it works, but I want to use defaultcontext to work 
with ant InstallTask, or is there another way to do this?

I attached my web.xml, this is the relevant entry in server.xml:


   

   
 
   factory
   org.apache.commons.dbcp.BasicDataSourceFactory
 

 
   maxActive
   100
 

 
   maxIdle
   30
 

 
   maxWait
   1
 

 
  username
  ***
 
 
  password
  ***
 

 
driverClassName
org.gjt.mm.mysql.Driver
 

 
   url
 
jdbc:mysql://localhost:3306/comercial?autoReconnect=true
 
   








Thanks for the help Colin.

_
Manolo Ramirez T.



Madere, Colin wrote:
> Well then it may be something else.  I'm essentially doing what you 
> are with a JNDI datasource defined in the DefaultContext with nothing 
> in the web.xml (except to pass along the JNDI name so it's not 
> hard-coded).  It breaks for me (and a bunch of other people posting 
> recently using 4.1.x) when I try to move that to GlobalNamingResources 
> and use a ResourceLink.
> 
> Post your server.xml and web.xml (or just relevant parts), maybe it's 
> something else.
> 
> -Original Message-
> From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
> Sent: Monday, August 25, 2003 3:50 PM
> To: Tomcat Users List
> Subject: Re: Can not load JNDI DataSource in Servlet.init()
> 
> 
> No, I'm not using a ResourceLink.
> 
> _
> Manolo Ramirez T.
> 
> Madere, Colin wrote:
> 
>>So you are using a resource link in the DefaultContext either in
>>server.xml or your web.xml?
>>
>>-Original Message-
>>From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
>>Sent: Monday, August 25, 2003 1:27 PM
>>To: Tomcat Users List
>>Subject: Re: Can not load JNDI DataSource in Servlet.init()
>>
>>
>>It's in DefaultContext, I checked the related messages, it seems like 
>>the same problem.
>>
>>Thanks for the answer.
>>
>>_
>>Manolo Ramirez T.
>>
>>Madere, Colin wrote:
>>
>>
>>>How is your JNDI resource configured?  In an explicitly defined 
>>>Context or in the DefaultContext?  ResourceLinked?
>>>
>>>I ask because there are a number of folks with similar problems that 
>>>look to be something missing in how JNDI datasources are handled 
>>>internally when using DefaultContext.
>>>
>>>See other topics:
>>>
>>>* ResourceLink and DefaultContext
>>>* Tomcat 4.1 DefaultContext Bug?
>>>* Question about Tomcat Documentation
>>>* Globally defined JNDI DataSource
>>>
>>>-Original Message-
>>>From: Manolo Ramirez T. [mailto:[EMAIL PROTECTED]
>>>Sent: Friday, August 22, 2003 10:55 PM
>>>To: Tomcat Users List
>>>Subject: Can not load JNDI DataSource in Servlet.init()
>>>
>>>
>>>Hi all,
>>>
>>>Why I can't load a JNDI resource on the init method of my servlet? 
>>>there is no problem doing that in doGet() but on init() it doesn't 
>>>work. the logs entry is:
>>>
>>>java.sql.SQLException: Cannot load JDBC driver class 'null'
>>>
>>>It's the same code! What I'm missing?
>>>
>>>this is my servlet code:
>>>
>>>
>>>
>>>
>>>
>>>
>>>package libreria;
>>>
>>>import java.io.PrintWriter;
>>>import java.io.IOException;
>>>import javax.servlet.*;
>>>import javax.servlet.http.*;
>>>import java.sql.*;
>>>import javax.sql.*;
>>>import javax.naming.*;
>>>
>>>
>>>public class MyServlet extends HttpServlet {
>>>
>>>public void init (ServletConfig config) throws ServletException{
>>> super.init(config);
>>> try {
>>> Context ctx = new InitialContext();
>>> if(ctx==null) {
>>> System.out.println("fallo InitialContext");
>>> return;
>>> }
>>>
>>> DataSource ds =
>>>(DataSource)ctx.lookup("java:comp/env/jdbc/ComercialDB");
>>> if(ds==null) {
>>> System.out.println("fallo lookup");
>>> return;
>>> }
>>>
>>> Connection conn = ds.getConnection();
>>>
>>> Statement stm = conn.createStatement();
>>> 
>>> ResultSet rs = stm.executeQuery("select * from pruebas");
>>>
>>> while(rs.next()) {
>>>  
>>>System.out.println(rs.getInt("id")+"::"+rs.getString("nombre")+"::"+r
>>>s
>>>.getSt
>>>ring("apellido"));
>>> }
>>> }
>>> catch(Exception e) {
>>> e.printStackTrace();
>>> }
>>>}
>>>
>>>public void doGet(HttpServletRequest request, HttpServletRes

Setting the "Server" header in HTTP traffic

2003-08-27 Thread Donie Kelly









Hi all

 

Is there
any easy way to set the Server name for Tomcat so that all traffic originating
from Tomcat uses the new name instead of eg: Server: Apache
Tomcat/4.1.18-LE-jdk14 (HTTP/1.1 Connector)

 

Thanks in
advance

Donie

 

--

Eagles may
soar but weasels don't get sucked into jet engines

 





**
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

**




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

Re: webdav - finding class files

2003-08-27 Thread P . van Kemenade
Hi

thanks,..

>well, nothing. it just sounds very ugly, having the same jar files
>running twice in one tomcat, once in server/lib and once in  
common/lib.
>is this how its _normally_ done ?

Alternatively, have you try putting it inside the
/lib directory of your webapp?  It will then only be accessible to that
webapp tho.
yes, I tried that, and it works. woopie.
to extend the WebdavServlet, I've copied
servlet-common.jar
servlet-default.jar 
servlet-webdav.jar
and catalina.jar (oops)
from the server/lib into my /WEB-INF/lib
ugly, but it compiles and runs. it appears
WebdavServlet was not intended to be extended
by the authors, because quite some usefull things
are 'private' :-|
now .. let's see if i can add the missing PROPPATCH support :-)

I found this old thread about extending WebdavServlet,
in which Andreas Probst notes his webapp cant load classes
from the $CATALINA_HOME/servlet/lib/ dir.
this url
	
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- 
howto.html
makes it clear why.

but now: how should I  extend WebdavServlet inside my webapp ?
If i put my own classes in the org.apache.bla package, it can't load
the classes from my webapp, ofcourse.
should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
to my webapps /WEB-INF/lib ?
  that should work, but it sounds ugly.



On Tue, 16 Jul 2002, Andreas Probst wrote:

Date: Tue, 16 Jul 2002 13:59:49 +0200
From: Andreas Probst <[EMAIL PROTECTED]>
Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: RE: newbie - finding class files

On Mon, 15 Jul 2002, Andreas Probst wrote:

Hi all,

does Tomcat really look into tomcatdir/server/lib? For me it   
seems
Tomcat doesn't.

This directory is only visible to the classloader for Tomcat
itself, not
for webapps.  There is a special rule that makes servlet classes in
package "org.apache.catalina" available to webapps anyway, however,
which
is why the standard WebdavServlet (as well as the other Tomcat
features
that are available via servlets) can be loaded.
Craig
Thank you Craig.

Could you please tell more about the rule or give a pointer. The
class-loader-info of the Tomcat-Docu says nothing about the rule,  
but
says, that "These classes and resources are TOTALLY invisible to web
applications".

Actually, the rule is very simple, and it is there in the docs.  Look
at
the picture of the class loader hierarchy in the Tomcat docs:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-
howto.html
The classes that are visible to a web application are those in the
class
loader for that webapp, and any of it's parent class loaders.  In
other
words, an application can see the "WebappX" class loader for itself,
plus the "Shared", "Common", "System", and "Bootstrap" class loaders.
 It
can*not* see the "Catalina" class loader.





thanks,
*-pike
=
Help stop world hunger -- visit 

Is The Hunger Site real?



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


RE: mod_jk load balancing with multiple apache servers

2003-08-27 Thread Ralph Einfeldt
See below:

> -Original Message-
> From: Peter Anning [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, August 27, 2003 11:20 AM
> To: Tomcat.Users.List"
> <[EMAIL PROTECTED]>"@www.peteranning.com
> Subject: RE: mod_jk load balancing with multiple apache servers
> 

> Http request 1 is sent to A1 by the ext LB this request may 
> go to T1. Then  http request 2 is sent to A2 this request may also go to T1. 
> Now T1 has double the load of T2 which is currently at zero.
> 
> What I am trying to work out in my is:
> 1. Does this matter or should it somehow be biased?
> 2. Will things be evened out as the no of requests increase?

If you can assume an even distribution of the session and the 
session duration it should be evened out. (It's dependend on the 
distribution and the quality of the loadbalancer)

> 3. How will it scale when adding non-even nos. of Tomcats to Apaches?

The number of nodes should not play a role.

> 4. How to represent this in mathematical terms?
> 

To express that you have to know the algorithm that is used by the 
loadbalancer and the distribution of the sessions.

BTW:

mod_jk should be configured to make no balancing. It just should do 
the routing. So a1 should route all request with no session info to 
t1 and a2 to t2. (Set the lbfactor to 0 for the second worker).

Note: This recommendation is based on reading rather than on really 
trying it, havn't used the loadbalaning feature of mod_jk by now.




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



MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

> From [EMAIL PROTECTED]  Wed Aug 27 11:11:09 2003
> Return-Path: <[EMAIL PROTECTED]>
> Received: from apache.org (daedalus.apache.org [208.185.179.12])
>   by mei.net (8.12.9/8.12.9) with SMTP id h7RFB9HL025645
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 11:11:09 -0400
> Received: (qmail 1363 invoked by uid 500); 27 Aug 2003 15:11:13 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: 
> List-Subscribe: 
> List-Help: 
> List-Post: 
> List-Id: "Tomcat Users List" 
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 1283 invoked from network); 27 Aug 2003 15:11:12 -
> Received: from unknown (HELO relay07.indigo.ie) (194.125.133.231)
>   by daedalus.apache.org with SMTP; 27 Aug 2003 15:11:12 -
> Received: (qmail 4037 messnum 1140468 invoked from network[213.94.193.34/unknown]); 
> 27 Aug 2003 15:11:01 -
> Received: from unknown (HELO HOLODECK) (213.94.193.34)
>   by relay07.indigo.ie (qp 4037) with SMTP; 27 Aug 2003 15:11:01 -
> Message-ID: <[EMAIL PROTECTED]>
> From: "Andoni" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> References: <[EMAIL PROTECTED]>
> Subject: Re: Badly stuck... Need help "Can't read /...$jsp.java"???
> Date: Wed, 27 Aug 2003 16:15:27 +0100
> MIME-Version: 1.0
> Content-Type: text/plain;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2800.1106
> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> BCT-delivery-for: paul
> MEI-wl-code: MEI0256551061997070B5e2xZ9RUlAWVO6f/94J9g
> 
> Permissions are fine.  All other files are working correctly, only this one
> is having problems!!
> 
> Andoni.
> 
> 
> - Original Message -
> From: "Shapira, Yoav" <[EMAIL PROTECTED]>
> To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Sent: Wednesday, August 27, 2003 3:16 PM
> Subject: RE: Badly stuck... Need help "Can't read /...$jsp.java"???
> 
> 
> 
> Howdy,
> Make sure tomcat has read permissions on the work directory ;)

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



Re: Tomcat and IIS 6 - Please HELP

2003-08-27 Thread John Turner
FAQ

http://jakarta.apache.org/tomcat/faq/connectors.html

and

http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=tomcat+iis+5&btnG=Google+Search

which would eventually lead you to:

http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html

John

J Raf wrote:

Hi,

I also have a similar question.

Where is the documentation for making IIS 5. work with Tomcat 4.1.18 or 
4.1.27? The documentation I was able to find reference 3.X. My Tomcat 
4.X installation does not include any files such as workers2.properties.

Thank you for your help.


From: "Renato Romano" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: Tomcat and IIS 6 - Please HELP
Date: Wed, 27 Aug 2003 17:33:19 +0200
I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.
I'm pretty sure there is no config error, because I "copied" the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks
Renato

Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


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


Re: Tomcat and IIS 6 - Please HELP

2003-08-27 Thread John Turner
Many people have the same problem (archives!).

As far as I know, there is no redirector built and available for IIS 6. 
 You either have to build it yourself, or wait for someone else to 
build it.  Even if you build it, there's no guarantee the source that 
works with IIS 5 will work unmodified for IIS 6, so you will then need 
to wait for someone savvy enough in IIS 6 internals to make the 
appropriate changes and post the changes to CVS.

Economic incentives might speed this process up...I doubt anything else 
will.

John

Renato Romano wrote:

I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.
I'm pretty sure there is no config error, because I "copied" the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks
Renato

Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


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


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


Re: Tomcat and IIS 6 - Please HELP

2003-08-27 Thread J Raf
Hi,

I also have a similar question.

Where is the documentation for making IIS 5. work with Tomcat 4.1.18 or 
4.1.27? The documentation I was able to find reference 3.X. My Tomcat 4.X 
installation does not include any files such as workers2.properties.

Thank you for your help.


From: "Renato Romano" <[EMAIL PROTECTED]>
Reply-To: <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: Tomcat and IIS 6 - Please HELP
Date: Wed, 27 Aug 2003 17:33:19 +0200
I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.
I'm pretty sure there is no config error, because I "copied" the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks
Renato

Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA
e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
_
Add photos to your messages with MSN 8. Get 2 months FREE*.  
http://join.msn.com/?page=features/featuredemail

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


RE: classpath error when changing context

2003-08-27 Thread rmusser
Btw, the problem I am having is with tomcat 4.1.27, on both WindowsXP and Linux.

-Original Message-
From: Richard Musser 
Sent: Tuesday, August 26, 2003 2:03 PM
To: [EMAIL PROTECTED]
Subject: classpath error when changing context


My web app is up and running, but when I added a context definition () 
for it suddenly the jsp compiler can't find the classes in WEB-INF/classes.  What 
gives?

My jsp files are in a subdirectory of the web app, like such: 
$CATALINA_HOME/webapps/foo/bar/index.jsp.  I added an xml file to the web apps 
directory to add the context definition so instead of hitting url 
http://localhost:8080/foo/bar/index.jsp I could just hit 
http://localhost:8080/bar/index.jsp.  The context definition is like:



But when I use that new url, the compiler complains about not being able to find the 
classes (in WEB-INF/classes).  If I hit the original url, it works fine.

Thanks!

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


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



Tomcat and IIS 6 - Please HELP

2003-08-27 Thread Renato Romano
I'm trying to configure IIS (6) to forward requests to Tomcat (4.1.18):
the configuration works fine with IIS 5, but with IIS 6, though I don't
get error messages, and the ISAPI filter shows the green upward arrow,
the browsere gets a 404 error.

I'm pretty sure there is no config error, because I "copied" the
configuration from a working installation with IIS 5, so I think the
problem is the IIS version. I could not find any help on the net...
Does anyone had the same problem ??
Thanks

Renato

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

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



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



RE: Authentication without authorisation

2003-08-27 Thread Krause Karin
Thanks!
I've tried this!
It runs!!!

-Original Message-
From: John Holman [mailto:[EMAIL PROTECTED]
Sent: Mittwoch, 27. August 2003 13:40
To: Tomcat Users List
Subject: Re: Authentication without authorisation


Krause

   
*


Will require authentication but not authorisation.

John.


Krause Karin wrote:

>Hi all,
>I've got a question regarding authentication. I wish to do
>authentication without authorisation. So this means everybody
>should be free to access my web-resource but I wish to know who it is.
>Therefore the accessing user must login.
>As probably everybody knows
>here I can configure that by means of a security-constraint/login-config in my 
>web.xml file.
>Here is a little example:
>
>   
>   Protect the Helloworld 
> example
>   
>   /servlet/HelloWorldExample
>   /servlet/SessionExample
>   POST
>   GET
>   
>
>
>   BASIC
>   public
>
>
>Please remark that no auth-constraint is defined, because anybody should
>have free access to this web-resource. So what I need is authentication without 
>authorisation. 
>The problem is that only if I define some auth-constraint in the security-constraint 
>the
>authenticate method of the Authenticator will be invoked. I think that the J2EE 
>Standard
>makes no restriction that authentication can only be used in combination with 
>authorisation.
>Am I wrong? Or is this a Tomcat bug?
>
>Cheers Karin
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>  
>


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

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



Re: Limit local connections

2003-08-27 Thread John Turner
When in doubt, check the docs.

Remote Address Filter and Remote Host Filter:

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/valve.html

John

Mario Moroni wrote:

In order to develop "in peace" i'd like to limit my tomcat only to local
connections.
is it possible?
How?
..or should I make a control for every page requested?

_Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Consigli su piante, fiori e bonsai? Affidati a Mr. Green, clicca qui!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=749&d=27-8
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Re: Badly stuck... Need help "Can't read /...$jsp.java"???

2003-08-27 Thread Andoni
Permissions are fine.  All other files are working correctly, only this one
is having problems!!

Andoni.


- Original Message -
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 3:16 PM
Subject: RE: Badly stuck... Need help "Can't read /...$jsp.java"???



Howdy,
Make sure tomcat has read permissions on the work directory ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Andoni [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 10:09 AM
>To: Tomcat Users List
>Subject: Badly stuck... Need help "Can't read /...$jsp.java"???
>
>Hello,
>
>I am getting this error in my log files followed by a stack trace
through
>Tomcat code.  Can anyone shed any light?
>
>org.apache.jasper.JasperException: Unable to compile class for
JSPerror:
>Can't read:
>/apache/jakarta/tomcat/work/Standalone/my.domain.net/_/jsp/savemsg$jsp.
java
>1 error
>
>Thanks.
>
>Andoni.



This e-mail, including any attachments, is a confidential business
communication, and may contain information that is confidential, proprietary
and/or privileged.  This e-mail is intended only for the individual(s) to
whom it is addressed, and may not be saved, copied, printed, disclosed or
used by anyone else.  If you are not the(an) intended recipient, please
immediately delete this e-mail from your computer system and notify the
sender.  Thank you.


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



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



RE: javac problems with Tomcat as NT Service

2003-08-27 Thread Turansky, Mark
This is perfect, thank you!

-Original Message-
From: John Corrigan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 4:34 AM
To: Tomcat Users List
Subject: RE: javac problems with Tomcat as NT Service


Edit the registry.  Off the top of my head it is something like:

HKEY_LOCAL_MACHINE
  SYSTEM
CurrentControlSet
  Services
Apache Tomcat 4.1
  Parameters

You need to change the value for the JVM library to point to the jvm.dll in
the server directory of your jre.  Should be something like
JAVA_HOME/jre/bin/server/jvm.dll.

When ran as a service, the environment variables are not read -- possibly
because Java can not read environment variables (at least without using
methods which have been deprecated.)

-Original Message-
From: Fred Kreek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:45 PM
To: Tomcat Users List
Subject: Re: javac problems with Tomcat as NT Service


At 22:56 26/08/03, you wrote:
>I have installed the J2SE and J2EE SDKs to c:\java.
>I installed Tomcat to c:\Tomcat.
>I have X_HOME variables for both installations in my computers Environment
>Variables.
>
>The problem is that the SDKs also install a JRE to c:\program files\java\.
>
>When I run Tomcat in a console window, everything runs fine.  Tomcat uses
>JAVA_HOME which has javac.
>
>When Tomcat runs as a service, I assume it is using the JRE in Program
>Files because JSPs that have not
>been compiled cannot be!  I receive an error and the logs point to the
>fact that Tomcat cannot create
>the javac process.
>
>Is there a way to set the Tomcat service to use my JAVA_HOME installation
>instead of the Program Files JRE?  Are there any other solutions to this
>problem?  I don't want to have to precompile every JSP page before I put
>code onto my production box, nor do I want to run my production server in
>a console window started by hand.
>
>Thanks in advance,
>Mark Turansky
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

I've never experienced the problem (i'm not running NT) but it seems to me
that you need to unset your path and set your JAVA_HOME to your java SDK
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or
otherwise in catalina.bat



"There are 10 types of people when it comes to binary, those that
understand it.. and those who don't."


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




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


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



Re: [OFF-TOPIC] Re: First mod_jk problem - can't start apache withInclude statement

2003-08-27 Thread John Turner
Cool.  My typical Apache build is:

./configure --enable-so --enable-ssl
make
make install
John

Denise Mangano wrote:

Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more "secure" but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:47 AM
To: Tomcat Users List
Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
apache with Include statement



Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined 
that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:


Yeah, it appears to be my apache.  I still get that 
SSLMutex error.  I 

have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
   suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise



-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all
other JK stuff 

from httpd.conf, your Apache starts up properly, with no errors?

What is the output of "httpd -l"?

John

Denise Mangano wrote:



OK, I tried adding the Jk directives directly into the httpd.conf
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed


to support the "Include" statement?

So now the problem is that although apache starts, it does
not start


properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
And needless to say I can't get to my web page.  Now again I am
getting those error messages in both my error_log and 
ssl_engine_log:


[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent


Apache from starting at all?

Thanks for your help :)
Denise



-

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




-

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


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



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


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


Limit local connections

2003-08-27 Thread Mario Moroni
In order to develop "in peace" i'd like to limit my tomcat only to local
connections.
is it possible?
How?

..or should I make a control for every page requested?

_Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Consigli su piante, fiori e bonsai? Affidati a Mr. Green, clicca qui!
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=749&d=27-8

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



RE: [OFF-TOPIC] Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yes I am.  The problem (right now) definitely appears to be some issues
with Apache.  Unfortunately, the Apache list isn't as heavily
trafficked, or as quick to response, so I'm still waiting on some
replies while I search the archives.  I think I have to recompile
Apache.  I added in a few extra flags when I did this yesterday to make
it more "secure" but I think I am better off just keeping it as is, then
taking out what I don't need later...  

Won't be able to determine if I have a mod_jk problem at all until I get
my Apache running properly.

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 10:47 AM
> To: Tomcat Users List
> Subject: [OFF-TOPIC] Re: First mod_jk problem - can't start 
> apache with Include statement
> 
> 
> 
> Are you loading mod_ssl?
> 
> I'm marking this as off-topic because we haven't determined 
> that this is 
> a JK/Tomcat problem yet.
> 
> John
> 
> Denise Mangano wrote:
> 
> > Yeah, it appears to be my apache.  I still get that 
> SSLMutex error.  I 
> > have to work on getting that resolved.
> > 
> > This is the output of httpd -l:
> > 
> > http_core.c
> > mod_env.c
> > mod_log_config.c
> > mod_mime.c
> > mod_negotiation.c
> > mod_status.c
> > mod_include.c
> > mod_dir.c
> > mod_cgi.c
> > mod_asis.c
> > mod_imap.c
> > mod_actions.c
> > mod_alias.c
> > mod_access.c
> > mod_auth.c
> > mod_so.c
> > mod_setenvif.c
> > suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
> > 
> > Denise
> > 
> > 
> >>-Original Message-
> >>From: John Turner [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 27, 2003 10:25 AM
> >>To: Tomcat Users List
> >>Subject: Re: First mod_jk problem - can't start apache with 
> >>Include statement
> >>
> >>
> >>
> >>Hate to say it, but it sounds like your Apache is munged up.
> >>
> >>If you delete the mod_jk.conf Include, and you delete all
> >>other JK stuff 
> >>from httpd.conf, your Apache starts up properly, with no errors?
> >>
> >>What is the output of "httpd -l"?
> >>
> >>John
> >>
> >>Denise Mangano wrote:
> >>
> >>
> >>>OK, I tried adding the Jk directives directly into the httpd.conf
> >>>file, and apache at least starts.  So the problem is the include 
> >>>statement. Is it possible that I don't have whatever module 
> >>
> >>is needed
> >>
> >>>to support the "Include" statement?
> >>>
> >>>So now the problem is that although apache starts, it does
> >>
> >>not start
> >>
> >>>properly.  When I run ps -aux | grep httpd I get the following:
> >>>   www 80740.0   0.0   00  ?Z10:070:00
> >>>[httpd ]
> >>>   www 80740.0   0.0   00  ?Z10:070:00
> >>>[httpd ]
> >>>   www 80740.0   0.0   00  ?Z10:070:00
> >>>[httpd ]
> >>>   www 80740.0   0.0   00  ?Z10:070:00
> >>>[httpd ]
> >>>
> >>>And needless to say I can't get to my web page.  Now again I am
> >>>getting those error messages in both my error_log and 
> >>
> >>ssl_engine_log:
> >>
> >>>   [error]mod_ssl: Child could not open SSLMutex lockfile
> >>>/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
> >>>   [error]System: Permission denied (errno: 13)
> >>>
> >>>So apparently I have a problem with mod_ssl, which I guess I didn't
> >>>resolve yesterday and should post to the apache list.  But the 
> >>>question still remains why using the Include statement 
> >>
> >>would prevent
> >>
> >>>Apache from starting at all?
> >>>
> >>>Thanks for your help :)
> >>>Denise
> >>>
> >>
> >>
> >>
> >>
> -
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re: Urgent !!! Problem to get TOMCAT/4.1.24 cluster running withsticky session support.

2003-08-27 Thread Vladyslav Kosulin
[EMAIL PROTECTED] wrote:
Hi guys here is detail description:
I have Apache/2.0.45 running on the server A 
If your Apache is running on UNIX/Linux/BSD/MacOS X, load balancing with sticky 
sessions will work only if you use worker MPM. At least this is correct for 
mod_jk2, and may be the same is the cause for mod_jk.
By default Apache is been compiled with prefork MPM on UNIX/Linux/BSD.
Check with
   httpd -l
If you see prefork.c, you have to recompile Apache using
./configure --with-mpm=worker ...

Hope this will help.

Vlad

And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 
 
--
Yefym Dmukh 
developer
email: [EMAIL PROTECTED]





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


[OFF-TOPIC] Re: First mod_jk problem - can't start apache with Includestatement

2003-08-27 Thread John Turner
Are you loading mod_ssl?

I'm marking this as off-topic because we haven't determined that this is 
a JK/Tomcat problem yet.

John

Denise Mangano wrote:

Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.
This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec
Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 10:25 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all 
other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of "httpd -l"?

John

Denise Mangano wrote:


OK, I tried adding the Jk directives directly into the httpd.conf 
file, and apache at least starts.  So the problem is the include 
statement. Is it possible that I don't have whatever module 
is needed 

to support the "Include" statement?

So now the problem is that although apache starts, it does 
not start 

properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
And needless to say I can't get to my web page.  Now again I am 
getting those error messages in both my error_log and 
ssl_engine_log:

	[error]mod_ssl: Child could not open SSLMutex lockfile 
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
	[error]System: Permission denied (errno: 13)	

So apparently I have a problem with mod_ssl, which I guess I didn't 
resolve yesterday and should post to the apache list.  But the 
question still remains why using the Include statement 
would prevent 

Apache from starting at all?

Thanks for your help :)
Denise


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



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


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


RE: Badly stuck... Need help "Can't read /...$jsp.java"???

2003-08-27 Thread Shapira, Yoav

Howdy,
Make sure tomcat has read permissions on the work directory ;)

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Andoni [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 10:09 AM
>To: Tomcat Users List
>Subject: Badly stuck... Need help "Can't read /...$jsp.java"???
>
>Hello,
>
>I am getting this error in my log files followed by a stack trace
through
>Tomcat code.  Can anyone shed any light?
>
>org.apache.jasper.JasperException: Unable to compile class for
JSPerror:
>Can't read:
>/apache/jakarta/tomcat/work/Standalone/my.domain.net/_/jsp/savemsg$jsp.
java
>1 error
>
>Thanks.
>
>Andoni.



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yeah, it appears to be my apache.  I still get that SSLMutex error.  I
have to work on getting that resolved.

This is the output of httpd -l:

http_core.c
mod_env.c
mod_log_config.c
mod_mime.c
mod_negotiation.c
mod_status.c
mod_include.c
mod_dir.c
mod_cgi.c
mod_asis.c
mod_imap.c
mod_actions.c
mod_alias.c
mod_access.c
mod_auth.c
mod_so.c
mod_setenvif.c
suexec: disabled; invalid wrapper /usr/local/apache/bin/suexec

Denise

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 10:25 AM
> To: Tomcat Users List
> Subject: Re: First mod_jk problem - can't start apache with 
> Include statement
> 
> 
> 
> Hate to say it, but it sounds like your Apache is munged up.
> 
> If you delete the mod_jk.conf Include, and you delete all 
> other JK stuff 
> from httpd.conf, your Apache starts up properly, with no errors?
> 
> What is the output of "httpd -l"?
> 
> John
> 
> Denise Mangano wrote:
> 
> > OK, I tried adding the Jk directives directly into the httpd.conf 
> > file, and apache at least starts.  So the problem is the include 
> > statement. Is it possible that I don't have whatever module 
> is needed 
> > to support the "Include" statement?
> > 
> > So now the problem is that although apache starts, it does 
> not start 
> > properly.  When I run ps -aux | grep httpd I get the following:
> > www 80740.0   0.0   00  ?Z10:070:00
> > [httpd ]
> > www 80740.0   0.0   00  ?Z10:070:00
> > [httpd ]
> > www 80740.0   0.0   00  ?Z10:070:00
> > [httpd ]
> > www 80740.0   0.0   00  ?Z10:070:00
> > [httpd ]
> > 
> > And needless to say I can't get to my web page.  Now again I am 
> > getting those error messages in both my error_log and 
> ssl_engine_log:
> > [error]mod_ssl: Child could not open SSLMutex lockfile 
> > /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
> > [error]System: Permission denied (errno: 13)
> > 
> > So apparently I have a problem with mod_ssl, which I guess I didn't 
> > resolve yesterday and should post to the apache list.  But the 
> > question still remains why using the Include statement 
> would prevent 
> > Apache from starting at all?
> > 
> > Thanks for your help :)
> > Denise
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



Re:

2003-08-27 Thread Andoni
1. Back up the file.
2. Delete all the comments.
3. Put all single-line XML tags on a single line (even if this means you
can't see the end of some of them)
4. Delete any contexts you don't need (e.g. examples)
5. Then try to work with the file.  Or post it to this list and ask your
questions.

As for getting Apache to work with a .jsp file instead of passing it on to
Tomcat all you have to do is remove the
JkMount /*.jsp ajp13

statement from Apache's httpd.conf file.  But then these will  be treated as
ordinary text files not script files which have to be interpreted.

Andoni.

- Original Message -
From: "Robert Charbonneau" <[EMAIL PROTECTED]>
To: "Tomcat Users Mailing List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 12:56 PM
Subject: 


> I was trying to setup Tomcat to allow Apache to serve *.jsp files from the
> DocumentRoot of Apache.  I had setup the following:
>
>
>
> I'm wondering if anyone can give me any insight as to how I can make this
work
> properly.
>
> Thanks.
>
> --
> Robert Charbonneau
> [EMAIL PROTECTED]
> --
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


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



Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-27 Thread Yefym . Dmukh
Hi guys , I'm newbei here , can be that I duplicate this message. 
Sorry for that , but would be nice if anybody reply me :)))
just to be sure that I have my chance to solve this problem


I have Apache/2.0.45 running on the server A 
And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 
 

Best Regards an thnx for your patience.)
--


Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hate to say it, but it sounds like your Apache is munged up.

If you delete the mod_jk.conf Include, and you delete all other JK stuff 
from httpd.conf, your Apache starts up properly, with no errors?

What is the output of "httpd -l"?

John

Denise Mangano wrote:

OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the "Include" statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?
Thanks for your help :)
Denise


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


RE: Tomcat logging loads of rubbish

2003-08-27 Thread Shapira, Yoav

Howdy,
It's coming from tomcat, which is picking up your log4j or
commons-logging configuration.  Are you using commons-logging in your
webapp?

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 10:00 AM
>To: Tomcat Users List
>Subject: RE: Tomcat logging loads of rubbish
>
>My logging is working OK. My Log4j is in web-inf/lib and the log4j
>properties is is web-inf/classes.
>
>The problem is that for some reason the log output includes my stuff
AND
>loads of other stuff that I do not want. I have no idea where it is
coming
>from.
>
>-Original Message-
>From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
>Sent: 27 August 2003 14:41
>To: Tomcat Users List
>Subject: RE: Tomcat logging loads of rubbish
>
>
>
>Howdy,
>Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
>shared/lib or common/lib).  Make sure your log4j configuration file is
>under your webapp somewhere, not in common/lib, common/classes,
>shared/lib, or shared/classes.
>
>Yoav Shapira
>Millennium ChemInformatics
>
>
>>-Original Message-
>>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>>Sent: Wednesday, August 27, 2003 7:53 AM
>>To: [EMAIL PROTECTED]
>>Subject: Tomcat logging loads of rubbish
>>
>>Tomcat seems to be churning out loads of logging into my web
>application's
>>log file (configured with Log4J) I have included a sample here...where
>can
>>I turn this all off .. I am not sure why it is all coming through into
>my
>>application log.
>>
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>startElement(,,servlet-name)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
>body
>>text ''
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>>match='web-app/servlet-mapping/servlet-name'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>begin()
>>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>characters(default)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>endElement(,,servlet-name)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>match='web-
>>app/servlet-mapping/servlet-name'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>>bodyText='default'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>body()
>>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
>body
>>text ''
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>end()
>>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>ignorableWhitespace()
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>ignorableWhitespace(
>>)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>ignorableWhitespace()
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>startElement(,,url-pattern)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
>body
>>text ''
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>>match='web-app/servlet-mapping/url-pattern'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>begin()
>>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>characters(/)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>>endElement(,,url-pattern)
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>match='web-
>>app/servlet-mapping/url-pattern'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>bodyText='/'
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>body()
>>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
>body
>>text ''
>>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
>end()
>>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>>
>>
>>
>>---
>>QAS Ltd.
>>Developers of QuickAddress Software
>>http://www.qas.com";>www.qas.com
>>Registered in England: No 2582055
>>Registered in Australia: No 082 851 474
>>---
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
>
>This e-mail, including any attachments, is a confidential business
>communication, and may contain information that is confidential,
>proprietary and/or privileged.  This e-mail is intended only for the
>individual(s) to whom it is addressed, and may not be saved, copie

RE: Tomcat logging loads of rubbish

2003-08-27 Thread Allistair Crossley
My logging is working OK. My Log4j is in web-inf/lib and the log4j properties is is 
web-inf/classes.

The problem is that for some reason the log output includes my stuff AND loads of 
other stuff that I do not want. I have no idea where it is coming from.

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]
Sent: 27 August 2003 14:41
To: Tomcat Users List
Subject: RE: Tomcat logging loads of rubbish



Howdy,
Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
shared/lib or common/lib).  Make sure your log4j configuration file is
under your webapp somewhere, not in common/lib, common/classes,
shared/lib, or shared/classes.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 7:53 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat logging loads of rubbish
>
>Tomcat seems to be churning out loads of logging into my web
application's
>log file (configured with Log4J) I have included a sample here...where
can
>I turn this all off .. I am not sure why it is all coming through into
my
>application log.
>
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>startElement(,,servlet-name)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>match='web-app/servlet-mapping/servlet-name'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>characters(default)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>endElement(,,servlet-name)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
>app/servlet-mapping/servlet-name'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>bodyText='default'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace()
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace(
>)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace()
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>startElement(,,url-pattern)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>match='web-app/servlet-mapping/url-pattern'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>characters(/)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>endElement(,,url-pattern)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
>app/servlet-mapping/url-pattern'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='/'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Register

Re: [ANN] Apache Tomcat 5.0.9 Beta released

2003-08-27 Thread Dominique Batard
Did anything changed in the docBase Context attribute within virtual Hosts ?

I can't have an absolute path in the docBase attribute, either within
server.xml or within a context file

I'm getting :
INFO: Processing Context configuration file URL
file:C:\jakarta-tomcat-5.0.9\conf\Catalina\edevis\foo.xml
27 août 2003 16:17:08 org.apache.commons.digester.Digester startElement
GRAVE: Begin event threw exception
java.io.IOException: Syntaxe du nom de fichier, de répertoire ou de volume
incorrecte
at java.io.WinNTFileSystem.canonicalize0(Native Method)
at java.io.Win32FileSystem.canonicalize(Win32FileSystem.java:352)
at java.io.File.getCanonicalPath(File.java:513)
at java.io.File.getCanonicalFile(File.java:534)
at org.apache.catalina.startup.SetDocBaseRule.begin(SetDocBaseRule.java:137)
at org.apache.commons.digester.Rule.begin(Rule.java:200)
at org.apache.commons.digester.Digester.startElement(Digester.java:1273)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
...

Dom
- Original Message -
From: "Bill Barker" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 5:30 AM
Subject: Re: [ANN] Apache Tomcat 5.0.9 Beta released


> This part of Tomcat didn't really change all that much from 4.1.x.  There
> are no changes on the Apache side (i.e. you can use the same binaries for
> mod_jk(2) that you use for 4.1.x).  Warp (aka mod_webapp) is not
supported.
> On the Tomcat side, only the CoyoteConnector is supported.  Other than
that,
> the server.xml config is a bit nicer, but it will also support your old
> 4.1.x configuration.  Your jk2.properties for 4.1.x should also work with
> Tomcat 5.
>
> "Johan Wasserman - CPX Mngd Services" <[EMAIL PROTECTED]>
wrote
> in message
>
news:[EMAIL PROTECTED]
.
> HOT!
>
> Any spec's available on setting up and running under Apache? Did it
> really change all that much?
>
> Thanks from a loyal supporter.
>
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



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



RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
OK, I tried adding the Jk directives directly into the httpd.conf file,
and apache at least starts.  So the problem is the include statement.
Is it possible that I don't have whatever module is needed to support
the "Include" statement?  

So now the problem is that although apache starts, it does not start
properly.  When I run ps -aux | grep httpd I get the following:
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]
www 80740.0   0.0   00  ?Z10:070:00
[httpd ]

And needless to say I can't get to my web page.  Now again I am getting
those error messages in both my error_log and ssl_engine_log:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

So apparently I have a problem with mod_ssl, which I guess I didn't
resolve yesterday and should post to the apache list.  But the question
still remains why using the Include statement would prevent Apache from
starting at all?

Thanks for your help :)
Denise



> -Original Message-  
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 9:29 AM
> To: Tomcat Users List
> Subject: Re: First mod_jk problem - can't start apache with 
> Include statement
> 
> 
> 
> configtest doesn't return an error?  It just hangs?  That is 
> very funky.
> 
> Can you post your mod_jk.conf?
> 
> John
> 
> Denise Mangano wrote:
> 
> > The same thing happens... It just hangs  Also, the same 
> situation. 
> > If I comment out the Include statement in httpd.conf I can run the 
> > configtest ok.
> > 
> > 
> >>-Original Message-
> >>From: John Turner [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 27, 2003 9:20 AM
> >>To: Tomcat Users List
> >>Subject: Re: First mod_jk problem - can't start apache with 
> >>Include statement
> >>
> >>
> >>
> >>What's the output of "APACHE_HOME/bin/apachectl configtest"?
> >>
> >>John
> >>
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

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



RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
Yes it is very strange.  I also tried it with Tomcat stopped, and still
that Include statement seems to be the offending line.

I sent my files with the previous emails, including the httpd.conf.  I
am wondering, if I try to put all the relevant JK 'stuff' directly into
the httpd.conf file will it work I am going to try that in the
meantime...

Thanks again:

mod_jk.conf :  (All paths to module, workers, etc are correct)

## Auto generated on Wed Aug 27 08:54:18 UTC 2003##


  LoadModule jk_module /usr/local/apache/libexec/mod_jk-1.3.eapi.so


JkWorkersFile
"/usr/local/jakarta-tomcat-4.1.27/conf/jk/workers.properties"
JkLogFile "/usr/local/jakarta-tomcat-4.1.27/logs/mod_jk.log"

JkLogLevel info




ServerName www.parkingticketpayment.com

 www.parkingticketpayment.com:/admin


# Static files 
Alias /admin
"/usr/local/jakarta-tomcat-4.1.27/webapps/../server/webapps/admin"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /admin/j_security_check  ajp13
JkMount /admin/*.do  ajp13
JkMount /admin/*.jsp  ajp13

 www.parkingticketpayment.com:/webdav


# Static files 
Alias /webdav "/usr/local/jakarta-tomcat-4.1.27/webapps/webdav"


Options Indexes FollowSymLinks
DirectoryIndex index.jsp index.html index.htm 



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /webdav/*.jsp  ajp13

 www.parkingticketpayment.com:/examples


# Static files 
Alias /examples "/usr/local/jakarta-tomcat-4.1.27/webapps/examples"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /examples/jsp/security/protected/j_security_check  ajp13
JkMount /examples/snoop  ajp13
JkMount /examples/servlet/*  ajp13
JkMount /examples/CompressionTest  ajp13
JkMount /examples/*.jsp  ajp13
JkMount /examples/servletToJsp  ajp13
JkMount /examples/SendMailServlet  ajp13

 www.parkingticketpayment.com:/tomcat-docs


# Static files 
Alias /tomcat-docs
"/usr/local/jakarta-tomcat-4.1.27/webapps/tomcat-docs"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /tomcat-docs/*.jsp  ajp13

 www.parkingticketpayment.com:/manager


# Static files 
Alias /manager
"/usr/local/jakarta-tomcat-4.1.27/webapps/../server/webapps/manager"


Options Indexes FollowSymLinks
DirectoryIndex index.html index.htm index.jsp 



# Deny direct access to WEB-INF and META-INF
#

AllowOverride None
deny from all



AllowOverride None
deny from all


JkMount /manager/list  ajp13
JkMount /manager/deploy  ajp13
JkMount /manager/html/*  ajp13
JkMount /manager/resources  ajp13
JkMount /manager/start  ajp13
JkMount /manager/stop  ajp13
JkMount /manager/install  ajp13
JkMount /manager/*.jsp  ajp13
JkMount /manager/remove  ajp13
JkMount /manager/roles  ajp13
JkMount /manager/sessions  ajp13
JkMount /manager/serverinfo  ajp13
JkMount /manager/reload  ajp13
JkMount /manager/undeploy  ajp13



> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 9:29 AM
> To: Tomcat Users List
> Subject: Re: First mod_jk problem - can't start apache with 
> Include statement
> 
> 
> 
> configtest doesn't return an error?  It just hangs?  That is 
> very funky.
> 
> Can you post your mod_jk.conf?
> 
> John
> 
> Denise Mangano wrote:
> 
> > The same thing happens... It just hangs  Also, the same 
> situation. 
> > If I comment out the Include statement in httpd.conf I can run the 
> > configtest ok.
> > 
> > 
> >>-Original Message-
> >>From: John Turner [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 27, 2003 9:20 AM
> >>To: Tomcat Users List
> >>Subject: Re: First mod_jk problem - can't start apache with 
> >>Include statement
> >>
> >>
> >>
> >>What's the output of "APACHE_HOME/bin/apachectl configtest"?
> >>
> >>John
> >>
> 
> 

Re:

2003-08-27 Thread John Turner
Sure, as soon as you give us insight such as:

- what's wrong, exactly
- what error messages you're getting
- what version of Tomcat
- what version of Apache, what connector
- whether its working in Tomcat standalone, without Apache
- what URL you are trying to use
Specific information is best.  Saying "it doesn't work" doesn't help us 
help you.  Also, there is more involved in Apache + Tomcat than just 
server.xml, so you will need to give us that information as well (please 
don't post entire files...just snippets showing deviations from defaults 
is sufficient).

John

Robert Charbonneau wrote:

I was trying to setup Tomcat to allow Apache to serve *.jsp files from the 
DocumentRoot of Apache.  I had setup the following:


  
  


  



  



I'm wondering if anyone can give me any insight as to how I can make this work 
properly.

Thanks.

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


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


Badly stuck... Need help "Can't read /...$jsp.java"???

2003-08-27 Thread Andoni
Hello,

I am getting this error in my log files followed by a stack trace through Tomcat code. 
 Can anyone shed any light?

org.apache.jasper.JasperException: Unable to compile class for JSPerror: Can't read: 
/apache/jakarta/tomcat/work/Standalone/my.domain.net/_/jsp/savemsg$jsp.java
1 error

Thanks.

Andoni.

tomcat-user@jakarta.apache.org

2003-08-27 Thread Robert Charbonneau
I was trying to setup Tomcat to allow Apache to serve *.jsp files from the 
DocumentRoot of Apache.  I had setup the following:










  
  
  
  

  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  

































  
  

  
  

  

  
  

  
  

  

  

  

  

  
  

   
















  
  

  



  
  
  
  
  
  
usernamesa
password
driverClassName
  org.hsql.jdbcDriver
url
  jdbc:HypersonicSQL:database
  
  
  

  mail.smtp.host
  localhost

  
  



  
  


  



  




I'm wondering if anyone can give me any insight as to how I can make this work 
properly.

Thanks.

--
Robert Charbonneau
[EMAIL PROTECTED]
--


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



RE: Tomcat logging loads of rubbish

2003-08-27 Thread Shapira, Yoav

Howdy,
Make sure log4j.jar is in your webapp's WEB-INF/lib directory (not
shared/lib or common/lib).  Make sure your log4j configuration file is
under your webapp somewhere, not in common/lib, common/classes,
shared/lib, or shared/classes.

Yoav Shapira
Millennium ChemInformatics


>-Original Message-
>From: Allistair Crossley [mailto:[EMAIL PROTECTED]
>Sent: Wednesday, August 27, 2003 7:53 AM
>To: [EMAIL PROTECTED]
>Subject: Tomcat logging loads of rubbish
>
>Tomcat seems to be churning out loads of logging into my web
application's
>log file (configured with Log4J) I have included a sample here...where
can
>I turn this all off .. I am not sure why it is all coming through into
my
>application log.
>
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>startElement(,,servlet-name)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>match='web-app/servlet-mapping/servlet-name'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>characters(default)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>endElement(,,servlet-name)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
>app/servlet-mapping/servlet-name'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
>bodyText='default'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
>for CallParamRule[paramIndex=1, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace()
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace(
>)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>ignorableWhitespace()
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>startElement(,,url-pattern)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New
>match='web-app/servlet-mapping/url-pattern'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
begin()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>characters(/)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax -
>endElement(,,url-pattern)
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
match='web-
>app/servlet-mapping/url-pattern'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -
bodyText='/'
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
body()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping
body
>text ''
>12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire
end()
>for CallParamRule[paramIndex=0, attributeName=null, from stack=false]
>
>
>
>---
>QAS Ltd.
>Developers of QuickAddress Software
>http://www.qas.com";>www.qas.com
>Registered in England: No 2582055
>Registered in Australia: No 082 851 474
>---
>
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



RE: TOMCAT User

2003-08-27 Thread Shapira, Yoav

Howdy,
You mean like getUserPrincipal() in HttpServletRequest?

Yoav Shapira
Millennium ChemInformatics

-Original Message-
From: Oscar (Eccox) [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 5:39 PM
To: Tomcat Users List
Subject: TOMCAT User

Hi,
 
Is there any attribute on the REQUEST where I can know what user is requesting the 
page ??? I'm using tomcat-users.xml...
 
Thanks,

===
José Oscar de Souza Eduardo
Coordenador de Projetos
tel: 3047-4541
fax: 3047-4550
[EMAIL PROTECTED]
===
 
 



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


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



Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
configtest doesn't return an error?  It just hangs?  That is very funky.

Can you post your mod_jk.conf?

John

Denise Mangano wrote:

The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 9:20 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



What's the output of "APACHE_HOME/bin/apachectl configtest"?

John



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


Message de l'administrateur réseau de la Régie du Rhône S.A.

2003-08-27 Thread Mail Security Administrator
Madame, Mademoiselle, Monsieur,

Votre e-mail n'a pas atteint son destinataire.

Pour des raisons de sécurité, le type de fichier attaché n'est pas autorisé. Nous vous 
prions de contacter le destinataire pour de plus amples renseignements.

Administrateur Informatique
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

Dear, Madam, Miss, Sir,

Your e-mail did not reach its destination.

For security reasons the file that you have attached to your mail message was not 
authorized.

For more information please contact the recipient.

System Administrator
Régie du Rhône S.A.
Place du Molard 3
1211 Genève

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



RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
The same thing happens... It just hangs  Also, the same situation.
If I comment out the Include statement in httpd.conf I can run the
configtest ok.

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 9:20 AM
> To: Tomcat Users List
> Subject: Re: First mod_jk problem - can't start apache with 
> Include statement
> 
> 
> 
> What's the output of "APACHE_HOME/bin/apachectl configtest"?
> 
> John
> 
> Denise Mangano wrote:
> 
> > John -
> > 
> > I just realized that I explained it slightly wrong.  When I 
> "comment" 
> > the Include statement, apache starts ok.  When I "uncomment" apache 
> > will not start.
> > 
> > I checked what you suggested.  As Bill suggested, I am including my 
> > conf files as well.
> > 
> > 1.  Apache's error logs are completely empty ...  Yesterday 
> I checked 
> > them and they had the following:
> > [error]mod_ssl: Child could not open SSLMutex lockfile 
> > /usr/local/apache/logs/ssl_mutex.30776 (System error follows)
> > [error]System: Permission denied (errno: 13)
> > 
> > That was a permissions issue, which I corrected.  Now when after 
> > starting apache, I wait about 10 seconds, then attempt to 
> start Apache 
> > and it hangs, but nothing is written to either the 
> access_log or the 
> > error_log.
> > 
> > 2.  The only thing in Tomcat's log is the server starting and 
> > stopping...  Here's the relevant mod_jk output:
> > INFO: Initializing Coyote HTTP/1.1 on port 8080
> > INFO: Starting Coyote HTTP/1.1 on port 8009
> > INFO: JK2: ajp13 listening on /0.0.0.0./8009
> > INFO: Jk running ID=0 time=0/28 
> > config=/usr/local/tomcat/conf/jk2.properties
> > 
> > Same thing that I had on my previous installation. Not sure 
> why there 
> > is mention of jk2.properties.
> > 
> > 3.  Tried moving mod_jk.conf and changing the include statement but 
> > still apache is a no go...
> > 
> > 4.  There are two connectors on port 8009 in the server.xml file.  
> > These are still the defaults:
> > 
> >  > port="8009" minProcessors="5" maxProcessors="75"
> > enableLookups="true" redirectPort="8443"
> > acceptCount="10" debug="0" connectionTimeout="0"
> > useURIValidationHack="false"
> > 
> > protocolHandlerClassName="org.apache.jk.server.JkCoyoteHandler"/>
> > 
> > 
> > 
> > 
> > 5.  workers.properties file in /usr/local/tomcat/conf/jk
> > #BEGIN workers.properties
> > worker.list=ajp13
> > worker.ajp13.port=8009
> > worker.ajp13.host=localhost
> > worker.ajp13.type=ajp13
> > #END workers.properties
> > 
> > Thanks,
> > 
> > Denise
> > 
> > 
> >>-Original Message-
> >>From: John Turner [mailto:[EMAIL PROTECTED]
> >>Sent: Wednesday, August 27, 2003 8:19 AM
> >>To: Tomcat Users List
> >>Subject: Re: First mod_jk problem - can't start apache with 
> >>Include statement
> >>
> >>
> >>
> >>Hi -
> >>
> >>Things I would check:
> >>
> >>- apache's access and error log -> is Apache trying to handle the
> >>request instead of Tomcat?
> >>
> >>- Tomcat's log -> is Tomcat even getting the request?
> >>
> >>- move mod_jk.conf to APACHE_HOME/conf, change your Include 
> to match.
> >>Then change JkLogLevel to "debug" or "info" (I forget 
> >>which..try "info" 
> >>first) and check mod_jk.log for more info
> >>
> >>- verify a Connector on port 8009
> >>
> >>- doublecheck your workers.properties file, especially the
> >>.host parameter
> >>
> >>John
> >>
> >>Denise Mangano wrote:
> >>
> >>
> >>>I've been following John Turner's how-to (diff apache
> >>
> >>version but the
> >>
> >>>instructions can still apply).  I think they problem is a
> >>
> >>permission
> >>
> >>>issue, but wanted some verification.
> >>>
> >>>Apache install is ok, Tomcat install is ok.  I followed the
> >>
> >>steps, and
> >>
> >>>added the Listeners, and the LoadModule and Include
> >>
> >>statement at the
> >>
> >>>end of my httpd.conf.  When I uncomment the Include
> >>
> >>statement apache
> >>
> >>>starts up no problem.  When I try to use it, my system just
> >>
> >>hangs as I
> >>
> >>>try to start apache.
> >>>
> >>>Tomcat is running under user tomcat, and all directories from
> >>>/usr/local/tomcat down have rwx for tomcat, and r only for 
> >>
> >>all others.
> >>
> >>>However, Apache runs as user 'www'.  I tried changing
> >>
> >>permissions to
> >>
> >>>be executable by all but that didn't seem to do the trick.
> >>
> >>The system
> >>
> >>>still hangs when I try to start Apache.
> >>>
> >>>Here is my structure with permissions:
> >>>
> >>>--usr drwxr-xr-x
> >>>   --local  drwxr-xr-x
> >>> --apache  drwxr-xr-x
> >>> --tomcat  drwxr-xr-x
> >>> --conf  drwxr-xr-x
> >>>  --auto  drwxr-xr-x
> >>>  mod_jk.conf -rwxr-xr-x
> >>> 
> >>>
> >>>If its not a permissions issue, then I'm quite clueless as
> >>
> >>to what it
> >>
> >>>can be.  I can't even run a config test.  Any suggestions/adv

Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
What's the output of "APACHE_HOME/bin/apachectl configtest"?

John

Denise Mangano wrote:

John -

I just realized that I explained it slightly wrong.  When I "comment"
the Include statement, apache starts ok.  When I "uncomment" apache will
not start.
I checked what you suggested.  As Bill suggested, I am including my conf
files as well.
1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)
That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.
2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties
Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.
3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...
4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:




5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties
Thanks, 

Denise


-Original Message-
From: John Turner [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 27, 2003 8:19 AM
To: Tomcat Users List
Subject: Re: First mod_jk problem - can't start apache with 
Include statement



Hi -

Things I would check:

- apache's access and error log -> is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log -> is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to "debug" or "info" (I forget 
which..try "info" 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the 
.host parameter

John

Denise Mangano wrote:


I've been following John Turner's how-to (diff apache 
version but the 

instructions can still apply).  I think they problem is a 
permission 

issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the 
steps, and 

added the Listeners, and the LoadModule and Include 
statement at the 

end of my httpd.conf.  When I uncomment the Include 
statement apache 

starts up no problem.  When I try to use it, my system just 
hangs as I 

try to start apache.

Tomcat is running under user tomcat, and all directories from 
/usr/local/tomcat down have rwx for tomcat, and r only for 
all others. 

However, Apache runs as user 'www'.  I tried changing 
permissions to 

be executable by all but that didn't seem to do the trick.  
The system 

still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
  --local  drwxr-xr-x
--apache  drwxr-xr-x
--tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
 --auto  drwxr-xr-x
 mod_jk.conf -rwxr-xr-x


If its not a permissions issue, then I'm quite clueless as 
to what it 

can be.  I can't even run a config test.  Any suggestions/advice is 
greatly appreciated.

Denise



-

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


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








  
  
  
  
  
  
  






  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  

  

  
  
  





















  
  
  
  
  

  
  
  
  
  
  
  
  
  
  












  
  
  

  
  
  
  
  
  
usernamesa
password
driverClassName
  org.hsql.jdbcDriver
url
  jdbc:HypersonicSQL:database
  
  
  
   

RE: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Denise Mangano
John -

I just realized that I explained it slightly wrong.  When I "comment"
the Include statement, apache starts ok.  When I "uncomment" apache will
not start.

I checked what you suggested.  As Bill suggested, I am including my conf
files as well.

1.  Apache's error logs are completely empty ...  Yesterday I checked
them and they had the following:
[error]mod_ssl: Child could not open SSLMutex lockfile
/usr/local/apache/logs/ssl_mutex.30776 (System error follows)
[error]System: Permission denied (errno: 13)

That was a permissions issue, which I corrected.  Now when after
starting apache, I wait about 10 seconds, then attempt to start Apache
and it hangs, but nothing is written to either the access_log or the
error_log.

2.  The only thing in Tomcat's log is the server starting and
stopping...  Here's the relevant mod_jk output:
INFO: Initializing Coyote HTTP/1.1 on port 8080
INFO: Starting Coyote HTTP/1.1 on port 8009
INFO: JK2: ajp13 listening on /0.0.0.0./8009
INFO: Jk running ID=0 time=0/28
config=/usr/local/tomcat/conf/jk2.properties

Same thing that I had on my previous installation. Not sure why there is
mention of jk2.properties.

3.  Tried moving mod_jk.conf and changing the include statement but
still apache is a no go...

4.  There are two connectors on port 8009 in the server.xml file.  These
are still the defaults:






5.  workers.properties file in /usr/local/tomcat/conf/jk
#BEGIN workers.properties
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
#END workers.properties

Thanks, 

Denise

> -Original Message-
> From: John Turner [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, August 27, 2003 8:19 AM
> To: Tomcat Users List
> Subject: Re: First mod_jk problem - can't start apache with 
> Include statement
> 
> 
> 
> Hi -
> 
> Things I would check:
> 
> - apache's access and error log -> is Apache trying to handle the 
> request instead of Tomcat?
> 
> - Tomcat's log -> is Tomcat even getting the request?
> 
> - move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
> Then change JkLogLevel to "debug" or "info" (I forget 
> which..try "info" 
> first) and check mod_jk.log for more info
> 
> - verify a Connector on port 8009
> 
> - doublecheck your workers.properties file, especially the 
> .host parameter
> 
> John
> 
> Denise Mangano wrote:
> 
> > I've been following John Turner's how-to (diff apache 
> version but the 
> > instructions can still apply).  I think they problem is a 
> permission 
> > issue, but wanted some verification.
> > 
> > Apache install is ok, Tomcat install is ok.  I followed the 
> steps, and 
> > added the Listeners, and the LoadModule and Include 
> statement at the 
> > end of my httpd.conf.  When I uncomment the Include 
> statement apache 
> > starts up no problem.  When I try to use it, my system just 
> hangs as I 
> > try to start apache.
> > 
> > Tomcat is running under user tomcat, and all directories from 
> > /usr/local/tomcat down have rwx for tomcat, and r only for 
> all others. 
> > However, Apache runs as user 'www'.  I tried changing 
> permissions to 
> > be executable by all but that didn't seem to do the trick.  
> The system 
> > still hangs when I try to start Apache.
> > 
> > Here is my structure with permissions:
> > 
> > --usr drwxr-xr-x
> >--local  drwxr-xr-x
> >  --apache  drwxr-xr-x
> >  --tomcat  drwxr-xr-x
> >   --conf  drwxr-xr-x
> >   --auto  drwxr-xr-x
> >   mod_jk.conf -rwxr-xr-x
> >  
> > 
> > If its not a permissions issue, then I'm quite clueless as 
> to what it 
> > can be.  I can't even run a config test.  Any suggestions/advice is 
> > greatly appreciated.
> > 
> > Denise
> > 
> > 
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 






  

  
  
  
  

  
  








  
factory
org.apache.catalina.users.MemoryUserDatabaseFactory
  
  
pathname
conf/tomcat-users.xml
  


  

  

  
  

































  
  

  
  

  

  
  

  
  

  

  

  

  

  
  


















  
  

  



  
  
  
  
  
  
usernamesa
password
driverClassName
  

MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

> From [EMAIL PROTECTED]  Wed Aug 27 09:01:35 2003
> Return-Path: <[EMAIL PROTECTED]>
> Received: from apache.org (daedalus.apache.org [208.185.179.12])
>   by mei.net (8.12.9/8.12.9) with SMTP id h7RD1YHL006826
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 09:01:34 -0400
> Received: (qmail 73412 invoked by uid 500); 27 Aug 2003 13:02:08 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: 
> List-Subscribe: 
> List-Help: 
> List-Post: 
> List-Id: "Tomcat Users List" 
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 73331 invoked from network); 27 Aug 2003 13:02:07 -
> Received: from unknown (HELO icw02.intercomponentware.com) (213.68.214.230)
>   by daedalus.apache.org with SMTP; 27 Aug 2003 13:02:07 -
> Received: from icw02.intercomponentware.com (localhost.localdomain [127.0.0.1])
>   by icw02.intercomponentware.com (8.11.3/8.11.1) with ESMTP id h7RCvlj04015
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 14:57:47 +0200
> Received: from esprit.intercomponentware.com (esprit.intercomponentware.com 
> [213.68.214.226])
>   by icw02.intercomponentware.com (8.11.3/8.11.1) with ESMTP id h7RCvlb04009
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 14:57:47 +0200
> To: [EMAIL PROTECTED]
> Subject: Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky session
>  support.
> MIME-Version: 1.0
> X-Mailer: Lotus Notes Release 5.0.11   July 24, 2002
> Message-ID: <[EMAIL PROTECTED]>
> From: [EMAIL PROTECTED]
> Date: Wed, 27 Aug 2003 14:58:23 +0200
> X-MIMETrack: Serialize by Router on notes/InterComponentWare(Release 5.0.11  |July 
> 24, 2002) at
>  08/27/2003 02:57:47 PM,
>   Serialize complete at 08/27/2003 02:57:47 PM
> Content-Type: multipart/alternative; boundary="=_alternative 0047435DC1256D8F_="
> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> BCT-delivery-for: paul
> MEI-wl-code: MEI0068341061989296YwVCE8kdBt7FCWc9iHrEwA
> 
> --=_alternative 0047435DC1256D8F_=
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi guys here is detail description:
> I have Apache/2.0.45 running on the server A 
> And two tomcat workers are running on B and C
> The problem is that I cannot get Tomcat cluster load 
> balanced , playing around with workers.properties on 
> Apache gave me two different situations.
> 1.if I have local_worker parameter equal to 1, then 
> I have no lost sessions but also no loadbalancing . But 
> cluster is still fail safe, if one tomcat dies - another 
> one gets all incoming requests. 
> 2. if I have local_worker=0 then I have a simple round- 
> robin balancer without session affinity. So my session got lost. 

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



Urgent !!! Problem to get TOMCAT/4.1.24 cluster running with sticky sessionsupport.

2003-08-27 Thread Yefym . Dmukh
Hi guys here is detail description:
I have Apache/2.0.45 running on the server A 
And two tomcat workers are running on B and C
The problem is that I cannot get Tomcat cluster load 
balanced , playing around with workers.properties on 
Apache gave me two different situations.
1.if I have local_worker parameter equal to 1, then 
I have no lost sessions but also no loadbalancing . But 
cluster is still fail safe, if one tomcat dies - another 
one gets all incoming requests. 
2. if I have local_worker=0 then I have a simple round- 
robin balancer without session affinity. So my session got lost. 

configuration example workers.properties: 
worker.list=tomcat-worker-01,tomcat-worker-02,router 
worker.tomcat-worker-02.port=4007
worker.tomcat-worker-02.host=xxx.xx.x.12
worker.tomcat-worker-02.type=ajp13
worker.tomcat-worker-02.lbfactor=50
worker.tomcat-worker-02.cachesize=10
worker.tomcat-worker-02.cache_timeout=600
worker.tomcat-worker-02.socket_timeout=300
worker.tomcat-worker-02.local_worker=1
worker.tomcat-worker-01.port=5007
worker.tomcat-worker-01.host=xxx.xx.x.20
worker.tomcat-worker-01.type=ajp13
worker.tomcat-worker-01.lbfactor=50
worker.tomcat-worker-01.cachesize=10
worker.tomcat-worker-01.cache_timeout=600
worker.tomcat-worker-01.socket_timeout=300
worker.tomcat-worker-01.local_worker=1
worker.router.type=lb
worker.router.balanced_workers=tomcat-worker-01,tomcat-worker-02
worker.router.sticky_session =1
worker.router.local_worker_only=1

P.S. I checked the previous discussions related to server.xmlS 
configuration.
I had there:
 
 
--
Yefym Dmukh 
developer
email: [EMAIL PROTECTED]




MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

> From [EMAIL PROTECTED]  Wed Aug 27 08:30:28 2003
> Return-Path: <[EMAIL PROTECTED]>
> Received: from apache.org (daedalus.apache.org [208.185.179.12])
>   by mei.net (8.12.9/8.12.9) with SMTP id h7RCURHL025834
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 08:30:27 -0400
> Received: (qmail 3641 invoked by uid 500); 27 Aug 2003 12:31:29 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: 
> List-Subscribe: 
> List-Help: 
> List-Post: 
> List-Id: "Tomcat Users List" 
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 3625 invoked from network); 27 Aug 2003 12:31:28 -
> Received: from unknown (HELO relay.pair.com) (209.68.1.20)
>   by daedalus.apache.org with SMTP; 27 Aug 2003 12:31:28 -
> Received: (qmail 55561 invoked from network); 27 Aug 2003 12:31:10 -
> Received: from unknown (HELO johnturner.com) (207.86.123.243)
>   by relay.pair.com with SMTP; 27 Aug 2003 12:31:10 -
> X-pair-Authenticated: 207.86.123.243
> Message-ID: <[EMAIL PROTECTED]>
> Date: Wed, 27 Aug 2003 08:31:10 -0400
> From: John Turner <[EMAIL PROTECTED]>
> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624
> X-Accept-Language: en-us, en
> MIME-Version: 1.0
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: vhosts and workers
> References: <[EMAIL PROTECTED]>
> In-Reply-To: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset=us-ascii; format=flowed
> Content-Transfer-Encoding: 7bit
> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> BCT-delivery-for: paul
> MEI-wl-code: MEI0258401061987428N6CPvtsUsWBzGNQoh2Oixg
> 
> Christopher Garrett wrote:
> 
> > 
> > ...
> > 
> > - setting the docBase/path attributes in the child  tag to some
> > directory within the appBase path:
> > 
> > 
> > ...
> > 
> > 
> 
> I'm assuming you mean "Host" instead of "Home".
> 
> > My questions:
> > 1: Would the aforementioned configuration properly serve JSPs/Servlets from

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



Re: vhosts and workers

2003-08-27 Thread John Turner
Christopher Garrett wrote:


...

- setting the docBase/path attributes in the child  tag to some
directory within the appBase path:


...


I'm assuming you mean "Host" instead of "Home".

My questions:
1: Would the aforementioned configuration properly serve JSPs/Servlets from
locations beneath vhost1 and vhost2's home directories?
Yes.

2: What exactly do the docBase and path attributes define within the Context
tag? What is the distinction?
Path = URL.  docBase = webapp root.  If you have a virtual host 
www.domain.com, and path = "/demo" with a docBase of "demo", then the 
webapp called "demo" will be reached by:

http://www.domain.com/demo

and the webapp will be located at appBase/demo.

3: It is possible to have a single worker handle requests for more than one web
application belonging to more than one virtual host/user. How beneficial would
it be to have a single worker handle requests sent to it from Apache for more
than one virtual host? Would it be more efficient to have one worker for each
virtual host and have a load balancing worker to manage those subordinate
workers?
Yes. Mostly. No...load balancing is typically for multiple Tomcat 
instances.  If you have just one, stick with one worker.  I run several 
dozen virtual hosts, each with several Contexts (webapps) and have no 
problems whatsoever with one worker under significant load.

4: What sort of mechanisms to workers use to handle requests? Does a worker
receive a request, fork(), child process handles the request, communicates with
the Tomcat JVM, and returns the result to the requesting client, while the
parent simply sits and listens for more connections? If this is the case, would
a load balancer really serve to benefit anything if all this is taking place on
a single machine, given that all the workers would be of type ajp13?
If a single Tomcat instance, no.  If multiple Tomcat instances, 
possibly, but the only definite answer is "test and see for yourself" 
since everyone's configuration is different.  From my experience, one 
worker and a single instance of Tomcat 4.1.x is just fine.  If I went to 
multiple instances of Tomcat, I would use separate machines.

I'm trying to achieve and optimal, secure configuration. One that would allow
the users to manage their own web applications within their home directories so
I don't have to open up rwx access to the world beneath the $TOMCAT_HOME
directory. Granted, I'll still have to amend server.xml to insert new contexts
for users adding new WARs, but this is trivial. I've read a number of articles
and even the manual describing configuration options, etc., but it seems that
there are just a few points missing that would really put things into
perspective for me, so I'm sending these, probably simple, questions to the
list, as my last resort. Any information or links would be greatly appreciated,
and hopefully I'll be able to get everything organized efficiently and securely.
If you train your users to use Tomcat's manager application (and ideally 
ant) then you won't ever have to do anything...they can deploy, stop, 
start, and restart their web applications as they wish, without your 
intervention, the only thing you would have to manage is the 
tomcat-users.xml file to give them the appropriate access permissions 
and the Host nodes in server.xml.  Contexts (webapps) can be autodeployed.

HTH

John



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


Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread John Turner
Hi -

Things I would check:

- apache's access and error log -> is Apache trying to handle the 
request instead of Tomcat?

- Tomcat's log -> is Tomcat even getting the request?

- move mod_jk.conf to APACHE_HOME/conf, change your Include to match. 
Then change JkLogLevel to "debug" or "info" (I forget which..try "info" 
first) and check mod_jk.log for more info

- verify a Connector on port 8009

- doublecheck your workers.properties file, especially the .host parameter

John

Denise Mangano wrote:

I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.
Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.
Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.
Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
	  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x  
 

If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.
Denise

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


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


Re: mod_jk and Tomcat Lose Touch

2003-08-27 Thread John Turner
Sounds to me like an OS resource issue.  Total number of allowed open 
connections, etc.  Since it worked on 7.x and not on 9, I would consider 
that a default changed somewhere, somehow.

John

Also, the same Apache 1.3.X and Tomcat 3.X and 4.X configurations worked
perfectly on Red Hat 7.3, it was not until RH 9 that this began occuring.
The behavior is consistent with Apache 1.3 and Apache 2 on RH 9.  I've tried
re-compiling and all the usual tricks.
...


Do you use multiple Apaches on the server? 



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


Tomcat logging loads of rubbish

2003-08-27 Thread Allistair Crossley
Tomcat seems to be churning out loads of logging into my web application's log file 
(configured with Log4J) I have included a sample here...where can I turn this all off 
.. I am not sure why it is all coming through into my application log.

12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
startElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New 
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire begin() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - characters(default)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
endElement(,,servlet-name)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   
match='web-app/servlet-mapping/servlet-name'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   bodyText='default'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire body() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire end() for 
CallParamRule[paramIndex=1, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace()
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace(
)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - ignorableWhitespace(   
 )
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
startElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Pushing body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   New 
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire begin() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - characters(/)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester.sax - 
endElement(,,url-pattern)
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   
match='web-app/servlet-mapping/url-pattern'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   bodyText='/'
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire body() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Popping body text ''
12:50:12,680 - DEBUG org.apache.commons.digester.Digester -   Fire end() for 
CallParamRule[paramIndex=0, attributeName=null, from stack=false]


 
---
QAS Ltd.
Developers of QuickAddress Software
http://www.qas.com";>www.qas.com
Registered in England: No 2582055
Registered in Australia: No 082 851 474
---



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



error while running application

2003-08-27 Thread Billy Kantartzis






i am trying to run the registry server of jwsdp1.2 and i get the following error 
--error ---
 Exception report
 
message 
 
description The server encountered an internal error () that prevented it from fulfilling this request.
 
exception 
 
javax.servlet.ServletException: Error instantiating servlet class com.sun.registry_server.server.RegistryServerServletorg.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:497)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)java.lang.Thread.run(Thread.java:536)
 
root cause 
 
java.lang.NoClassDefFoundError: javax/xml/soap/SOAPExceptionjava.lang.Class.getDeclaredConstructors0(Native Method)java.lang.Class.privateGetDeclaredConstructors(Class.java:1590)java.lang.Class.getConstructor0(Class.java:1762)java.lang.Class.newInstance0(Class.java:276)java.lang.Class.newInstance(Class.java:259)org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:175)org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:207)org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:647)org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:497)org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:575)org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:649)java.lang.Thread.run(Thread.java:536)
 
note The full stack
-- error --
i understand that i have to include some jars to run the application 
i have copied the library jars to common/lib as well as shared/lib 
do i need to do anything else ?
 
 
TIA 
 
Billy Kantartzis
it consultant 
email:[EMAIL PROTECTED]







  IncrediMail - Email has finally evolved - Click Here

Re: Authentication without authorisation

2003-08-27 Thread John Holman
Krause

  
   *
   
Will require authentication but not authorisation.

John.

Krause Karin wrote:

Hi all,
I've got a question regarding authentication. I wish to do
authentication without authorisation. So this means everybody
should be free to access my web-resource but I wish to know who it is.
Therefore the accessing user must login.
As probably everybody knows
here I can configure that by means of a security-constraint/login-config in my 
web.xml file.
Here is a little example:

		
			Protect the Helloworld example
			
			/servlet/HelloWorldExample
			/servlet/SessionExample
			POST
			GET
		


		BASIC
		public


Please remark that no auth-constraint is defined, because anybody should
have free access to this web-resource. So what I need is authentication without authorisation. 
The problem is that only if I define some auth-constraint in the security-constraint the
authenticate method of the Authenticator will be invoked. I think that the J2EE Standard
makes no restriction that authentication can only be used in combination with authorisation.
Am I wrong? Or is this a Tomcat bug?

Cheers Karin

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



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


Re: apache2, mod_jk2, tomcat4.1.27: "server has been restarted or reset this connection"

2003-08-27 Thread Chris Joelly
Hello!

i have this problem on a windows 2000 box ...

thx, Chris

Am Tue, Aug 26, 2003 at 01:34:47PM -0400, Eric J. Pinnell meinte:
> 
> I get this too.
> 
> You can add a connectionTimeout to the Connector (I use 12) and you
> will no longer get a "reset" INFO message but a "connection timed out"
> INFO message.
> 
> I know that it is possible for the user to get a 400 or 500 error due to
> these resets.  I haven't ran a test with the timeout settings to find out.
> I have done it with the timeout set to 0 (the default).
> 
> Also what OS are you using?  We spoke about this before and it seemed to
> be unique to Solaris.  Linux didn't have the problem.
> 
> But no one has figured out an answer to it...  at least that I know of.
> 
> On Tue, 26 Aug 2003, Chris Joelly wrote:
> 
> > Am Wed, Aug 20, 2003 at 03:42:55PM +0200, Chris Joelly meinte:
> > >
> > > i have setup apache2 with mod_jk2 and tomcat4.1.27 and all works fine,
> > > but the following log messages is written to the mod_jk log file:
> > >
> > > 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
> > > INFO: server has been restarted or reset this connection
> > > 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
> > > INFO: server has been restarted or reset this connection
> > > 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
> > > INFO: server has been restarted or reset this connection
> > > 19.08.2003 16:43:05 org.apache.jk.common.ChannelSocket processConnection
> > >
> > > as i can see this log message is written on every request, so i can
> > > change the log level or if there is a real problem would appreciate
> > > solving the problem.
> > >
> > > is this a real problem? and if yes, does anybody know whats the problem?
> > > i have tried several things with WORKER.sockt_keepalive and
> > > WORKER.socket_timeout, but things don't change...


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



Re: Webdav and security

2003-08-27 Thread P . van Kemenade
Hi

However it still lets anyone get a listing of all editable files by
virtue of the fact that GET and POST methods have no constraints 
applied
to them.
hm .. you can turn of the listings in your web.xml


bla
bla

  listings
  false

this is actually a standard servlet setting (for GET and POST),
regrettably, if you do this, it also disables the webdav PROPFIND
method (which generates the webdav listings).
there is some logic in there. somewhere.

it would probably be more correct to create two entries
to the same data; one is 'public', port 80, standard HTTP, the other
one is 'private', port 78456384578, behind a firewall, locked
with 10 passwords and WebDav HTTP.
does that make any sense ?

*pike
=
aRt&D
=
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread s p
I want to monitor Tomcat server using JMX from another
machine. I am not accessing the MBeanServer from an
webapplication deployed on the Tomcat. So I need have
mx4-jmx.jar in common/lib. 

Santosh

--- Purvis Robert <[EMAIL PROTECTED]> wrote:
> I forgot to mention - you must also copy the
> mx4j-jmx.jar from server/lib to
> common/lib so your web apps can use the Tomcat JMX
> classes.
> 
> Rob
> 
> -Original Message-
> From: s p [mailto:[EMAIL PROTECTED] 
> Sent: 27 August 2003 03:59
> To: [EMAIL PROTECTED]
> Subject: How to get reference of MBeanServer in
> Tomcat
> 
> 
> I am using JMX technology to get information of
> Tomcat
> server. I am unable to get the reference of the
> MBeanServer in Tomcat. Has any one worked on this
> before. I am able get the information for other
> application servers like weblogic and webshere. But
> I
> did not find suitable APIs for Tomcat. Any help in
> this direction will be appreciated.
> 
> Regards,
> Santosh
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> This e-mail is confidential and privileged.  If you
> are not the intended
> recipient please accept our apologies;  please do
> not disclose, copy or
> distribute information in this e-mail or take any
> action in reliance on its
> contents:  to do so is strictly prohibited and may
> be unlawful.  Please
> inform us that this message has gone astray before
> deleting it.  Thank you
> for your co-operation.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Is this the correct place to ask questions about WebDAV

2003-08-27 Thread P . van Kemenade
Hi

It's the right place.  I don't know if you'll get many responses, as
WebDAV seems to be one of the least used features.
:-) apparently. I haven't had any answer to any webdav questions yet,
but I'll be glad to answer yours if I can.
I'm afraid everyone seriously into webdav tries his luck with Tomcat,
and after a while, decides to go with Slide anyway. This is a bad thing,
since Slide itself would benefit from a more proper webdav support in
Tomcat 
2$c,
*pike
---
Editorship& Styling 'Techniek is waistline, Publish the plan!'
	What make the method strong until for instance one newspaperman who
	wish publish and not with technique wish turn troublesome fallen? The
	clientèle with all the bye bye the handshake with examples decrepit. 
The
	motto: 'Techniek is waistline, publish the plan!'

http://www.worldlanguage.com/Translation.htm 

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


RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Purvis Robert
I forgot to mention - you must also copy the mx4j-jmx.jar from server/lib to
common/lib so your web apps can use the Tomcat JMX classes.

Rob

-Original Message-
From: s p [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 03:59
To: [EMAIL PROTECTED]
Subject: How to get reference of MBeanServer in Tomcat


I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



RE: mod_jk load balancing with multiple apache servers

2003-08-27 Thread Peter Anning
Here are a few points of clarification:

- External hardware Http load balancing is setup using sticky sessions
- mod_jk is setup using  sticky sessions
- there is no session state replication (a lost Tomcat/Jboss instance 
requires a user to log back on)
- the tomcat/Jboss instances are on seperate machines

This is more or less your example no 1 below.

If you take the following example:

Http request 1 is sent to A1 by the ext LB this request may go to T1. Then 
http request 2 is sent to A2 this request may also go to T1. Now T1 has 
double the load of T2 which is currently at zero.

What I am trying to work out in my is:
1. Does this matter or should it somehow be biased?
2. Will things be evened out as the no of requests increase?
3. How will it scale when adding non-even nos. of Tomcats to Apaches?
4. How to represent this in mathematical terms?



Ralph Einfeldt wrote:

> To me it's not quite clear what you are doing exacly.
> 
> I see three option to use an externl loadbalancer.
> Which one is the one you use ?
> 
> - use mod_jk with sticky sessions.
>   - Setup two apaches with a mod_jk.
>   - Setup loadbalancing for mod_jk.
>   - Setup two tomcats with a unique jvmRoute.
> 
>  LB
> /  \
>/\
>   A1A2
>   |\   /|
>   | \ / |
>   |  x  |
>   | / \ |
>   |/   \|
>   T1   T2
>   
>   Although the last mails from Bill Barker indicate that current 
>   implementation of mod_jk doesn't balance the load equally, this
>   scenario should work for you, as the external load balancer does 
>   this already. The Loadbalancer in mod_jk is just used to route 
>   the requests to the correct tomcat.
> 
> - use session replication.
>   In this scenario each instance of tomcat has a copy of the session 
>   data, so it doesn't matter which receives the request. 
>   In this case you can omit apache and mod_jk and use tomcat native.
> 
>  LB
> /  \
>/\
>   A1A2
>   | |
>   | |
>   T1---T2
> 
> - use a load balancer that supports sticky sessions
>   (url and cookie based sessions)
> 
>   In this case you can treat each tomcat as a stand alone 
>   server. 
> 
>  LB
> /  \
>/\
>   A1A2
>   | |
>   | |
>   T1T2
> 
> > -Original Message-
> > From: Peter Anning [mailto:[EMAIL PROTECTED]
> > Sent: Tuesday, August 26, 2003 5:14 PM
> > To: Tomcat Users List
> > Subject: Re: mod_jk load balancing with multiple apache servers
> > 
> >




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



RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread s p
Hi Purvis,

Thanks for the reply.
This code will give me the MBeanServers on the same
JVM
But in our case we want to get the MBeanServer of a
remote Tomcat. The Tomat server may be running on any
other machine. I would have the port number and the
address of the machine where the Tomcat is running. So
the problem is to get MBeanServer of this Tomcat. 
Do we have any APIs for doing this?

Santosh

--- Purvis Robert <[EMAIL PROTECTED]> wrote:
> I've done this just recently in fact! I was looking
> for a means of
> monitoring objects within our Tomcat and dicovered
> JMX. To get to Tomcats
> Mbean Server you use the following (I've got it in a
> GeneralJMX class in a
> static method for easy of reuse):
> 
> public class GeneralJMX {
>
>/** Creates a new instance of GeneralJMX */
>public GeneralJMX() {
>}
>
>  
>
/***
> *
> * Get the MBean server associated with Tomcat.
> *
> * @return the MBean server, or null if one canot
> be found.
> */
> 
>public static MBeanServer getTomcatMBeanServer()
> {
>   MBeanServer server = null;
>   List myList =
> MBeanServerFactory.findMBeanServer(null);
>   if (myList.toArray().length > 0)
>  server = (MBeanServer)myList.toArray()[0];
> 
>   return server;
>}
>
> }
> 
> -Original Message-
> From: s p [mailto:[EMAIL PROTECTED] 
> Sent: 27 August 2003 03:59
> To: [EMAIL PROTECTED]
> Subject: How to get reference of MBeanServer in
> Tomcat
> 
> 
> I am using JMX technology to get information of
> Tomcat
> server. I am unable to get the reference of the
> MBeanServer in Tomcat. Has any one worked on this
> before. I am able get the information for other
> application servers like weblogic and webshere. But
> I
> did not find suitable APIs for Tomcat. Any help in
> this direction will be appreciated.
> 
> Regards,
> Santosh
> 
> __
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> This e-mail is confidential and privileged.  If you
> are not the intended
> recipient please accept our apologies;  please do
> not disclose, copy or
> distribute information in this e-mail or take any
> action in reliance on its
> contents:  to do so is strictly prohibited and may
> be unlawful.  Please
> inform us that this message has gone astray before
> deleting it.  Thank you
> for your co-operation.
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

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



Re: Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Robin
uri:/intranet*   , it cant work

for now im still using: [uri:/intranet/*]
My tomcat is also listening at port 8080
port 80 is for apache httpd
http://localhost:8080/intranet --> work
http://localhost:80/intranet --> cannot work
http://localhost:80/intranet/---> work
Venkata Srinivasa Rao, Yerra wrote:

uri:/intranet* may helps you

At 04:15 PM 8/27/2003 +0800, you wrote:

I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using 
mod_jk 2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]

so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt 
work... any body have any clues?

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


Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


RE: mod_jk forwarding scheme problems - https requests

2003-08-27 Thread Purvis Robert
Did you try:

   scheme="https"

as an attribute in the https Connector in server.xml ?

-Original Message-
From: Rudolf Schamberger [mailto:[EMAIL PROTECTED] 
Sent: 26 August 2003 16:50
To: [EMAIL PROTECTED]
Subject: mod_jk forwarding scheme problems - https requests


Hello,

did anyone ever solve problems with mod_jk which was forwarding
https://foo.bar requests as http://foo.bar requests to tomcat? 

Help appreciated.

  regards Rudolf S.

(detailed problems I have been described in my posting yesterday) 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



RE: How to get reference of MBeanServer in Tomcat

2003-08-27 Thread Purvis Robert
I've done this just recently in fact! I was looking for a means of
monitoring objects within our Tomcat and dicovered JMX. To get to Tomcats
Mbean Server you use the following (I've got it in a GeneralJMX class in a
static method for easy of reuse):

public class GeneralJMX {
   
   /** Creates a new instance of GeneralJMX */
   public GeneralJMX() {
   }
   
 
/***
*
* Get the MBean server associated with Tomcat.
*
* @return the MBean server, or null if one canot be found.
*/

   public static MBeanServer getTomcatMBeanServer() {
  MBeanServer server = null;
  List myList = MBeanServerFactory.findMBeanServer(null);
  if (myList.toArray().length > 0)
 server = (MBeanServer)myList.toArray()[0];

  return server;
   }
   
}

-Original Message-
From: s p [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 03:59
To: [EMAIL PROTECTED]
Subject: How to get reference of MBeanServer in Tomcat


I am using JMX technology to get information of Tomcat
server. I am unable to get the reference of the
MBeanServer in Tomcat. Has any one worked on this
before. I am able get the information for other
application servers like weblogic and webshere. But I
did not find suitable APIs for Tomcat. Any help in
this direction will be appreciated.

Regards,
Santosh

__
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
This e-mail is confidential and privileged.  If you are not the intended
recipient please accept our apologies;  please do not disclose, copy or
distribute information in this e-mail or take any action in reliance on its
contents:  to do so is strictly prohibited and may be unlawful.  Please
inform us that this message has gone astray before deleting it.  Thank you
for your co-operation.

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



Re: Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
uri:/intranet* may helps you

At 04:15 PM 8/27/2003 +0800, you wrote:
I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using mod_jk 2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]
so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt work... 
any body have any clues?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

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


RE: Webdav and security

2003-08-27 Thread Duncan Strang
Hi

Thanks for that.

I actually tried this and it works in a way.

However it still lets anyone get a listing of all editable files by
virtue of the fact that GET and POST methods have no constraints applied
to them.

Still, it solves the immediate problem which is what I needed.

Cheers
Duncan



-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:37
To: Tomcat Users List
Subject: Re: Webdav and security


Hi Duncan

check this
http://www.mail-archive.com/[EMAIL PROTECTED]/ 
msg101208.html
see the  tags specified there ?

if i get it right, you dont want to open the methods GET and POST for
everyone, and after that, you want to restrict all methods
(PUT,DELETE,PROPFIND,etc) to a certain role

does that help ? I havent actually tried this :-)

 >I have included the  org.apache.catalina.servlets.WebdavServlet
> in the web.xml descriptor for my application
>
> 
>  WebdavServlet
>
org.apache.catalina.servlets.WebdavServlet class
>
>  
>  WebdavServlet
>  /
>   
>
> It all falls down when I try to add security however.
>
> If all requests have to go through the webdav servlet, then if I 
> assign the following constraint
>
> 
>  
> The Webdav bit
> /* 
>  
>  
> somerole
>  
>
>
> this means that no one can see my site unless they log in . Which is
> not
> what I want of course.


goodluck,
*-pike


===
404 Not Found - The weapons you are looking for are currently  
unavailable. The country might be experiencing technical difficulties,  
or you may need to adjust your weapons inspectors mandate.


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



This email has been scanned for all viruses by the MessageLabs Email
Security System. For more information on a proactive email security
service working around the clock, around the globe, visit
http://www.messagelabs.com


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



Authentication without authorisation

2003-08-27 Thread Krause Karin
Hi all,
I've got a question regarding authentication. I wish to do
authentication without authorisation. So this means everybody
should be free to access my web-resource but I wish to know who it is.
Therefore the accessing user must login.
As probably everybody knows
here I can configure that by means of a security-constraint/login-config in my 
web.xml file.
Here is a little example:


Protect the Helloworld 
example

/servlet/HelloWorldExample
/servlet/SessionExample
POST
GET



BASIC
public


Please remark that no auth-constraint is defined, because anybody should
have free access to this web-resource. So what I need is authentication without 
authorisation. 
The problem is that only if I define some auth-constraint in the security-constraint 
the
authenticate method of the Authenticator will be invoked. I think that the J2EE 
Standard
makes no restriction that authentication can only be used in combination with 
authorisation.
Am I wrong? Or is this a Tomcat bug?

Cheers Karin

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



Tomcat 5.0.4 + Apache 2.0.46 with mod_jk 2.0.43

2003-08-27 Thread Robin
I am currenty try to install Tomcat 5.0.4 + Apache 2.0.46 using mod_jk 
2.0.43
this is my worker2.properties :
[shm:]
file=C:\Program Files\Apache Group\Apache2\logs\jk2.shm
size=100
[channel.socket:localhost:8009]
[uri:/intranet/*]
[uri:/jmx-console/*]

so when i run using this url
  http://localhost/intranet/, it works
but when i run this wayhttp://localhost/intranetit doesnt 
work... any body have any clues?

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


Re: Run tomcat without showing window

2003-08-27 Thread Mario Moroni
Thanks!
I've tryed this!
It runs!!!

 Mario

- Original Message - 
From: "Venkata Srinivasa Rao, Yerra" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, August 27, 2003 10:15 AM
Subject: Re: Run tomcat without showing window


> As I know you can use javaw to start tomcat
> What you need to do is, change the tomcat startup script from java to
javaw.
> After you run the script you can safely close the window but tomcat keeps
> running.
> Srinivas.
>
> At 09:54 AM 8/27/2003 +0200, you wrote:
> >I'd like to run tomcat without showing the window server.
> >In win NT & 2K I could run this as a service, but in WIN98? How can I do
> >This?
> >Thanks
> >
> >  _Mario_
> >
> >
> >
> >--
> >Email.it, the professional e-mail, gratis per te: http://www.email.it/f
> >
> >Sponsor:
> >Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca
> >per scoprire sconti e promozioni
> >Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730&d=27-8
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
>
> Best Regards,
> Venkata Srinivasa Rao, Yerra,
> Jadason Technology Limited.
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Da Peraga un giro del mondo gastronomico tra un acquisto è l'altro... fai un salto al 
Ristoro Sunflower. 
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1477&d=27-8

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



RE: javac problems with Tomcat as NT Service

2003-08-27 Thread John Corrigan
Edit the registry.  Off the top of my head it is something like:

HKEY_LOCAL_MACHINE
  SYSTEM
CurrentControlSet
  Services
Apache Tomcat 4.1
  Parameters

You need to change the value for the JVM library to point to the jvm.dll in
the server directory of your jre.  Should be something like
JAVA_HOME/jre/bin/server/jvm.dll.

When ran as a service, the environment variables are not read -- possibly
because Java can not read environment variables (at least without using
methods which have been deprecated.)

-Original Message-
From: Fred Kreek [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 26, 2003 10:45 PM
To: Tomcat Users List
Subject: Re: javac problems with Tomcat as NT Service


At 22:56 26/08/03, you wrote:
>I have installed the J2SE and J2EE SDKs to c:\java.
>I installed Tomcat to c:\Tomcat.
>I have X_HOME variables for both installations in my computers Environment
>Variables.
>
>The problem is that the SDKs also install a JRE to c:\program files\java\.
>
>When I run Tomcat in a console window, everything runs fine.  Tomcat uses
>JAVA_HOME which has javac.
>
>When Tomcat runs as a service, I assume it is using the JRE in Program
>Files because JSPs that have not
>been compiled cannot be!  I receive an error and the logs point to the
>fact that Tomcat cannot create
>the javac process.
>
>Is there a way to set the Tomcat service to use my JAVA_HOME installation
>instead of the Program Files JRE?  Are there any other solutions to this
>problem?  I don't want to have to precompile every JSP page before I put
>code onto my production box, nor do I want to run my production server in
>a console window started by hand.
>
>Thanks in advance,
>Mark Turansky
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

I've never experienced the problem (i'm not running NT) but it seems to me
that you need to unset your path and set your JAVA_HOME to your java SDK
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or
otherwise in catalina.bat



"There are 10 types of people when it comes to binary, those that
understand it.. and those who don't."


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




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



Re: Run tomcat without showing window

2003-08-27 Thread Venkata Srinivasa Rao, Yerra
As I know you can use javaw to start tomcat
What you need to do is, change the tomcat startup script from java to javaw.
After you run the script you can safely close the window but tomcat keeps 
running.
Srinivas.

At 09:54 AM 8/27/2003 +0200, you wrote:
I'd like to run tomcat without showing the window server.
In win NT & 2K I could run this as a service, but in WIN98? How can I do
This?
Thanks
 _Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca 
per scoprire sconti e promozioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730&d=27-8

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Best Regards,
Venkata Srinivasa Rao, Yerra,
Jadason Technology Limited. 

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


RE: newbie - finding class files

2003-08-27 Thread Stuart MacPherson
Well actually if you have them in 2 places it can cause terminal errors, and
at the very least will waste time and memory on startup.  Common/lib is not
an ideal solution, but you might want to try it at least to see if it works.
In any case, if you install things like Slide (a Jakarta DMS/CMS
webDAV-based framework), all the webDAV Servlets (and indeed everything
else) goes in common/lib.  Alternatively, have you try putting it inside the
/lib directory of your webapp?  It will then only be accessible to that
webapp tho.


-Original Message-
From: Pike [mailto:[EMAIL PROTECTED] 
Sent: 27 August 2003 00:25
To: Tomcat Users List
Subject: Re: newbie - finding class files

Hi

thanks for your response (sorry about the repeated post - my mistake)

> What's wrong with putting them in CATALINA_HOME/common/lib?

well, nothing. it just sounds very ugly, having the same jar files
running twice in one tomcat, once in server/lib and once in common/lib.
is this how its _normally_ done ?

another point is, tomcat starts complaining about 'bundles' then,
but this may be solvable...

> I found this old thread about extending WebdavServlet,
> in which Andreas Probst notes his webapp cant load classes
> from the $CATALINA_HOME/servlet/lib/ dir.
>
> this url
>   
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html
> makes it clear why.
>
> but now: how should I  extend WebdavServlet inside my webapp ?
> If i put my own classes in the org.apache.bla package, it can't load
> the classes from my webapp, ofcourse.
>
> should I copy all jar files from  $CATALINA_HOME/servlet/lib/*jar
> to my webapps /WEB-INF/lib ?
>
>   that should work, but it sounds ugly.
>
>
>
>>
>> On Tue, 16 Jul 2002, Andreas Probst wrote:
>>
>>> Date: Tue, 16 Jul 2002 13:59:49 +0200
>>> From: Andreas Probst <[EMAIL PROTECTED]>
>>> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>>> To: [EMAIL PROTECTED]
>>> Subject: RE: newbie - finding class files
>>>
>>>
 On Mon, 15 Jul 2002, Andreas Probst wrote:

>
> Hi all,
>
> does Tomcat really look into tomcatdir/server/lib? For me it  seems
> Tomcat doesn't.
>

 This directory is only visible to the classloader for Tomcat  
 itself, not
 for webapps.  There is a special rule that makes servlet classes in
 package "org.apache.catalina" available to webapps anyway, however,  
 which
 is why the standard WebdavServlet (as well as the other Tomcat  
 features
 that are available via servlets) can be loaded.

 Craig
>>>
>>> Thank you Craig.
>>>
>>> Could you please tell more about the rule or give a pointer. The
>>> class-loader-info of the Tomcat-Docu says nothing about the rule, but
>>> says, that "These classes and resources are TOTALLY invisible to web
>>> applications".
>>>
>>
>> Actually, the rule is very simple, and it is there in the docs.  Look  
>> at
>> the picture of the class loader hierarchy in the Tomcat docs:
>>
>>
>> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader- 
>> howto.html
>>
>> The classes that are visible to a web application are those in the  
>> class
>> loader for that webapp, and any of it's parent class loaders.  In  
>> other
>> words, an application can see the "WebappX" class loader for itself,
>> plus the "Shared", "Common", "System", and "Bootstrap" class loaders.  
>>  It
>> can*not* see the "Catalina" class loader.
>
>

thanks,
*-pike
==
Signature #1
==


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




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



Run tomcat without showing window

2003-08-27 Thread Mario Moroni
I'd like to run tomcat without showing the window server.
In win NT & 2K I could run this as a service, but in WIN98? How can I do
This?
Thanks

 _Mario_



--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f

Sponsor:
Le migliori offerte per desktop e notebook le trovi solo su Dell, clicca per scoprire 
sconti e promozioni
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=1730&d=27-8

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



Vedr.: Re: Vedr.: RE: request.getRemoteUser() only non-null on protectedpages

2003-08-27 Thread pste

We can agree that the behavior is spec-compliant, but we cannot agree that
the spec is particuarly smart on that point.

I would like to be able to make a patch, but Im not involved as a
developer.

Thanx



   
   
"Bill Barker"  
   
<[EMAIL PROTECTED]   Til:[EMAIL PROTECTED] 
  
ire.com> cc:   
   
Sendt af: news   Vedr.:  Re: Vedr.: RE: 
request.getRemoteUser() only non-null on protected pages  
<[EMAIL PROTECTED] 
   
e.org> 
   
   
   
   
   
27-08-03 08:55 
   
Besvar 
   
venligst til   
   
"Tomcat Users  
   
List"  
   
   
   
   
   




Well, that's basically the answer ;-).  If you strongly disagree with
Tomcat's (clearly spec-compliant) behavior, then patches are always welcome
;-).




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



Re: Any contractors from HK, S.E.Asia or India in this forum ?

2003-08-27 Thread achana
C'mon
There are 7+ million people in HK, x-number of multi-nationals from
y-number of industry sectors.
I can't believe no HK person is contributing to or listening in on this
forum.
Don't be shy.

[EMAIL PROTECTED] wrote:
> 
> Hiya, all.
> Any contractors in this forum specializing in java applet/servlet, a2s,
> jndi in an apache2/tc4 environment and are from HK/China, S.E.Asia or
> India ? Got a website?
> TIA :-)
> 
>   
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Vedr.: RE: request.getRemoteUser() only non-null on protected pages

2003-08-27 Thread Bill Barker

<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Yes, it an answer to someone that had the same problem as me. But the
> answer suggest only dump solutions - either making all pages protected, or
> storing the principal yourself in session.
>
> I was thinking if any of you had more intelligent solutions to the
problem.
>

Well, that's basically the answer ;-).  If you strongly disagree with
Tomcat's (clearly spec-compliant) behavior, then patches are always welcome
;-).

> Thanx.
>
>
>
>
>  mekon.com>Til:
<[EMAIL PROTECTED]>
>   cc:
> 26-08-03 17:09Vedr.:  RE:
request.getRemoteUser() only non-null on protected pages
> Besvar venligst
> til "Tomcat
> Users List"
>
>
>
>
>
>
> > Any comments, PLEASE...
>
> Could this be relavant ?
>
> http://marc.theaimsgroup.com/?l=jboss-user&m=103680567313168&w=2
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]




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



Re: First mod_jk problem - can't start apache with Include statement

2003-08-27 Thread Bill Barker
I'm afraid that you are clueless ;-).  Apache+mod_jk only needs read, which
it's got.

You could try posting your conf files, to see if anyone can spot the
error..

- Original Message - 
From: "Denise Mangano" <[EMAIL PROTECTED]>
Newsgroups: gmane.comp.jakarta.tomcat.user
Sent: Tuesday, August 26, 2003 3:38 PM
Subject: First mod_jk problem - can't start apache with Include statement


I've been following John Turner's how-to (diff apache version but the
instructions can still apply).  I think they problem is a permission
issue, but wanted some verification.

Apache install is ok, Tomcat install is ok.  I followed the steps, and
added the Listeners, and the LoadModule and Include statement at the end
of my httpd.conf.  When I uncomment the Include statement apache starts
up no problem.  When I try to use it, my system just hangs as I try to
start apache.

Tomcat is running under user tomcat, and all directories from
/usr/local/tomcat down have rwx for tomcat, and r only for all others.
However, Apache runs as user 'www'.  I tried changing permissions to be
executable by all but that didn't seem to do the trick.  The system
still hangs when I try to start Apache.

Here is my structure with permissions:

--usr drwxr-xr-x
   --local  drwxr-xr-x
 --apache  drwxr-xr-x
 --tomcat  drwxr-xr-x
  --conf  drwxr-xr-x
  --auto  drwxr-xr-x
  mod_jk.conf -rwxr-xr-x


If its not a permissions issue, then I'm quite clueless as to what it
can be.  I can't even run a config test.  Any suggestions/advice is
greatly appreciated.

Denise

This message is intended only for the use of the person(s) listed above as the 
intended recipient(s), and may contain information that is PRIVILEGED and 
CONFIDENTIAL.  If you are not an intended recipient, you may not read, copy, or 
distribute this message or any attachment. If you received this communication in 
error, please notify us immediately by e-mail and then delete all copies of this 
message and any attachments.

In addition you should be aware that ordinary (unencrypted) e-mail sent through the 
Internet is not secure. Do not send confidential or sensitive information, such as 
social security numbers, account numbers, personal identification numbers and 
passwords, to us via ordinary (unencrypted) e-mail.

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

Vedr.: RE: request.getRemoteUser() only non-null on protected pages

2003-08-27 Thread pste

Yes, it an answer to someone that had the same problem as me. But the
answer suggest only dump solutions - either making all pages protected, or
storing the principal yourself in session.

I was thinking if any of you had more intelligent solutions to the problem.

Thanx.



   

Til:<[EMAIL PROTECTED]>  
   
  cc:  

26-08-03 17:09Vedr.:  RE: request.getRemoteUser() only 
non-null on protected pages 
Besvar venligst

til "Tomcat

Users List"

   

   





> Any comments, PLEASE...

Could this be relavant ?

http://marc.theaimsgroup.com/?l=jboss-user&m=103680567313168&w=2


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






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



Re: Opposite of Persistent manager

2003-08-27 Thread Bill Barker
It's a pretty simple application of meta-refresh.  I've seen sites (mostly
subscription, so I can't give you a working URL) that do this.

<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Hi all.
> Currently I am using session timeout on web.xml
> Ideally if a user walks away from the terminal, even for a short while,
> the session dies and the display is cleared.
> I guess that has to be handled programmaticaly rather than through TC4.
> ???
> TIA :-)
>






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




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



Re: vhosts and workers

2003-08-27 Thread Fred Kreek
At 07:03 27/08/03, you wrote:
I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache
1.3.28 through mod_jk on a single machine. I have several virtual hosts set up
on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would
like to configure Apache/Tomcat to allow users of these vhosts to serve
JSPs/Servlets from beneath their home directories, e.g.:
/home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. 
From my
reading, I understand that this can be accomplished by:
- setting the appBase attribute of the  tag in the server.xml to those
absolute directories:

...

- setting the docBase/path attributes in the child  tag to some
directory within the appBase path:


...


sorry, should be app2 :~

This would cause the primarly application "app1" to be served out of vhost1's
home from /home/vhost1/public_html/webapps/app1, and another applicationed
"app1" belonging to vhost2 to be served out of
/home/vhost2/public_html/webapps/app1. This is my understanding of these
attributes, though I don't quite get what the distinction between docBase and
path is, as I've not found a decent enough description nor a solid example to
set these in stone for me.
My questions:
1: Would the aforementioned configuration properly serve JSPs/Servlets from
locations beneath vhost1 and vhost2's home directories?
you can also use something linke appBase="webapps/app1/" then your base will
be at $CATALINA_BASE/webapps/app1/
2: What exactly do the docBase and path attributes define within the Context
tag? What is the distinction?
path= the virtual path in the URI. so path=/app1 (for your 
my.first.virtualhost) makes
you app available at my.first.virtualhost/app1/.
docBase tells tomcat where to find the application locally (when not 
starting with
a slash, it is relative to you appBase)

you do not need to define your contexts within the server.xml, it is also 
possible to
do that in web.xml files

3: It is possible to have a single worker handle requests for more than 
one web
application belonging to more than one virtual host/user. How beneficial would
it be to have a single worker handle requests sent to it from Apache for more
than one virtual host? Would it be more efficient to have one worker for each
virtual host and have a load balancing worker to manage those subordinate
workers?
yes, put the second engine in the first service element. (and remove the second
service element:)
4: What sort of mechanisms to workers use to handle requests? Does a worker
receive a request, fork(), child process handles the request, communicates 
with
the Tomcat JVM, and returns the result to the requesting client, while the
parent simply sits and listens for more connections? If this is the case, 
would
a load balancer really serve to benefit anything if all this is taking 
place on
a single machine, given that all the workers would be of type ajp13?
dunno exactly really. that loadbalancing was from a example workers.properties

I'm trying to achieve and optimal, secure configuration. One that would allow
the users to manage their own web applications within their home 
directories so
I don't have to open up rwx access to the world beneath the $TOMCAT_HOME
directory. Granted, I'll still have to amend server.xml to insert new contexts
for users adding new WARs, but this is trivial. I've read a number of articles
and even the manual describing configuration options, etc., but it seems that
there are just a few points missing that would really put things into
perspective for me, so I'm sending these, probably simple, questions to the
list, as my last resort. Any information or links would be greatly 
appreciated,
and hopefully I'll be able to get everything organized efficiently and 
securely.

Christopher Garrett III
Inixoma, Incorporated


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Sorry 'bout the strange setup i gave you. But i am running mulptiple 
versions of
tomcat on one machine. So it is easier to have absolute path names in my
server.xml.

Fred

"There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't."

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


Re: javac problems with Tomcat as NT Service

2003-08-27 Thread Fred Kreek
At 22:56 26/08/03, you wrote:
I have installed the J2SE and J2EE SDKs to c:\java.
I installed Tomcat to c:\Tomcat.
I have X_HOME variables for both installations in my computers Environment 
Variables.

The problem is that the SDKs also install a JRE to c:\program files\java\.

When I run Tomcat in a console window, everything runs fine.  Tomcat uses 
JAVA_HOME which has javac.

When Tomcat runs as a service, I assume it is using the JRE in Program 
Files because JSPs that have not
been compiled cannot be!  I receive an error and the logs point to the 
fact that Tomcat cannot create
the javac process.

Is there a way to set the Tomcat service to use my JAVA_HOME installation 
instead of the Program Files JRE?  Are there any other solutions to this 
problem?  I don't want to have to precompile every JSP page before I put 
code onto my production box, nor do I want to run my production server in 
a console window started by hand.

Thanks in advance,
Mark Turansky
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
I've never experienced the problem (i'm not running NT) but it seems to me 
that you need to unset your path and set your JAVA_HOME to your java SDK 
dir. This could be done in tomcat.conf (maybe its .bat on an NT) or 
otherwise in catalina.bat



"There are 10 types of people when it comes to binary, those that 
understand it.. and those who don't."

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


RE: mod_jk load balancing with multiple apache servers

2003-08-27 Thread Ralph Einfeldt
To me it's not quite clear what you are doing exacly.

I see three option to use an externl loadbalancer.
Which one is the one you use ?

- use mod_jk with sticky sessions.
  - Setup two apaches with a mod_jk.
  - Setup loadbalancing for mod_jk.
  - Setup two tomcats with a unique jvmRoute.

 LB
/  \
   /\
  A1A2
  |\   /|
  | \ / |
  |  x  |
  | / \ |
  |/   \|
  T1   T2
  
  Although the last mails from Bill Barker indicate that current 
  implementation of mod_jk doesn't balance the load equally, this
  scenario should work for you, as the external load balancer does 
  this already. The Loadbalancer in mod_jk is just used to route 
  the requests to the correct tomcat.

- use session replication.
  In this scenario each instance of tomcat has a copy of the session 
  data, so it doesn't matter which receives the request. 
  In this case you can omit apache and mod_jk and use tomcat native.

 LB
/  \
   /\
  A1A2
  | |
  | |
  T1---T2

- use a load balancer that supports sticky sessions
  (url and cookie based sessions)

  In this case you can treat each tomcat as a stand alone 
  server. 

 LB
/  \
   /\
  A1A2
  | |
  | |
  T1T2

> -Original Message-
> From: Peter Anning [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, August 26, 2003 5:14 PM
> To: Tomcat Users List
> Subject: Re: mod_jk load balancing with multiple apache servers
> 
> 

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



MEI Whitelist Dequarantine Notice

2003-08-27 Thread paul

This message has been dequarantined.  Although the system only
presents the first 55 lines here, the original message was sent
to paul intact.

> From [EMAIL PROTECTED]  Wed Aug 27 01:02:20 2003
> Return-Path: <[EMAIL PROTECTED]>
> Received: from apache.org (daedalus.apache.org [208.185.179.12])
>   by mei.net (8.12.9/8.12.9) with SMTP id h7R52JHL024718
>   for <[EMAIL PROTECTED]>; Wed, 27 Aug 2003 01:02:19 -0400
> Received: (qmail 37547 invoked by uid 500); 27 Aug 2003 05:03:02 -
> Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
> Precedence: bulk
> List-Unsubscribe: 
> List-Subscribe: 
> List-Help: 
> List-Post: 
> List-Id: "Tomcat Users List" 
> Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
> Delivered-To: mailing list [EMAIL PROTECTED]
> Received: (qmail 37532 invoked from network); 27 Aug 2003 05:03:01 -
> Received: from unknown (HELO lakemtao03.cox.net) (68.1.17.242)
>   by daedalus.apache.org with SMTP; 27 Aug 2003 05:03:01 -
> Received: from somatose ([68.225.40.169]) by lakemtao03.cox.net
>   (InterMail vM.5.01.06.04 201-253-122-130-104-20030726) with SMTP
>   id <[EMAIL PROTECTED]>
>   for <[EMAIL PROTECTED]>;
>   Wed, 27 Aug 2003 01:02:17 -0400
> Message-ID: <[EMAIL PROTECTED]>
> From: "Christopher Garrett" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Subject: vhosts and workers
> Date: Wed, 27 Aug 2003 01:03:06 -0400
> MIME-Version: 1.0
> Content-Type: text/plain;
>   charset="iso-8859-1"
> Content-Transfer-Encoding: 7bit
> X-Priority: 3
> X-MSMail-Priority: Normal
> X-Mailer: Microsoft Outlook Express 6.00.2800.1106
> X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
> X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N
> BCT-delivery-for: paul
> MEI-wl-code: MEI0247251061960540GFr+T7edKzwnXhihdUJR3g
> 
> I'm in the process of configuration Tomcat 4.1.27 to communicate with Apache
> 1.3.28 through mod_jk on a single machine. I have several virtual hosts set up
> on my server in the following way: /home/vhost1, /home/vhost2, etc.. I would
> like to configure Apache/Tomcat to allow users of these vhosts to serve
> JSPs/Servlets from beneath their home directories, e.g.:
> /home/vhost1/public_html/webapps/ and /home/vhost2/public_html/webapps/. From my
> reading, I understand that this can be accomplished by:
> - setting the appBase attribute of the  tag in the server.xml to those
> absolute directories:
> 
> ...
> 
> - setting the docBase/path attributes in the child  tag to some
> directory within the appBase path:
> 

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



  1   2   >