help Error Catalina

2002-03-15 Thread Giuseppe De Vincenzi

Hi all,

My system win2000, TOMCAT 4.0 Cocoon2 , with following
JDK version ...
Java(TM) 2 Runtime Environment, Standard Edition 1.3.1

** Initially when i start TOMCAT, it start without any problem
and i can access it from http://localhost:8080/. Below is the start up
message shown **

** Once again, i start the TOMCAT again . the result shown
from command prompt is same as above ... no problem show . But when i check
the catalina.out ... i seen these message **

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:483)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

?
add these lines to the catalina.sh script as appropriate
if [ -z "$CATALINA_OPTS" ] ; then
  CATALINA_OPTS="-XdoCloseWithReadPending"
fi
. But when i check
the catalina.out ... i seen ERROR
?
Bye & Thank's
  Giuseppe.







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




Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan



On Sat, 16 Mar 2002, Soefara Redzuan wrote:

> Date: Sat, 16 Mar 2002 15:03:10 +0800
> From: Soefara Redzuan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: jndi versus database connection pooling
>
> Oh dear, Craig, I'm fairly embarassed. Sorry.
>
> >You're going to kick yourself ... the required element name is
> >, not  :-).
>
> I should have noticed that when I copied my web.xml right next to the
> previous person's. What is it they say about being so close to a problem to
> be blinded.
>
> But may I suggest that the JNDI docs are updated because it's
>  in many cases there, for Mail as well as JDBC.
>
> http://127.0.0.1:8080/tomcat-docs/jndi-resources-howto.html
>

Well, now I'm somewhat embarrassed, because I wrote the original document
that had the wrong element name :-(.

However, this was fixed in the Tomcat source code on October 10, 2001, and
therefore the correct version was included from release 4.0.1 onwards
(current production release is 4.0.3).  Which version are you running?  Is
there anyplace that the wrong version of this document still exists online
that we need to fix?

Craig


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




Re: jndi versus database connection pooling

2002-03-15 Thread Soefara Redzuan

Oh dear, Craig, I'm fairly embarassed. Sorry.

>You're going to kick yourself ... the required element name is
>, not  :-).

I should have noticed that when I copied my web.xml right next to the 
previous person's. What is it they say about being so close to a problem to 
be blinded.

But may I suggest that the JNDI docs are updated because it's 
 in many cases there, for Mail as well as JDBC.

http://127.0.0.1:8080/tomcat-docs/jndi-resources-howto.html

I really should have checked the DTD though.

>With regards to your question about portability, the answer is yes --
>resource references declared in the web.xml are portable, as long as the
>servlet container you plan to run on supports a JNDI naming context for
>each web application.  That covers *all* J2EE-compatible servers and
>Tomcat 4 -- for anything else, you will want to double check.

I think "*all* J2EE compatible servers" should be enough for the meantime. 
:-)


>Note, however, that the actual mechanism for defining what connection
>pool the resource reference actually refers to is server dependent.
>For Tomcat 4, that means setting things up in server.xml.  For other
>servers, consult the documentation for that server.

Thank you, Soefara.


_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan

Soefara,

You're going to kick yourself ... the required element name is
, not  :-).

With regards to your question about portability, the answer is yes --
resource references declared in the web.xml are portable, as long as the
servlet container you plan to run on supports a JNDI naming context for
each web application.  That covers *all* J2EE-compatible servers and
Tomcat 4 -- for anything else, you will want to double check.

Note, however, that the actual mechanism for defining what connection
pool the resource reference actually refers to is server dependent.
For Tomcat 4, that means setting things up in server.xml.  For other
servers, consult the documentation for that server.

Craig

On Sat, 16 Mar 2002, Soefara Redzuan wrote:

> Date: Sat, 16 Mar 2002 12:36:42 +0800
> From: Soefara Redzuan <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Re: jndi versus database connection pooling
>
>
> >   DataSource ds = null;
> >   Context initCtx = new InitialContext();
> >   Context envCtx = (Context)initCtx.lookup( "java:comp/env" );
> >   ds = (DataSource)envCtx.lookup( "jdbc/DB" );
> >
> >The problem is that returned datasource is always null.
>
> I wish I could get that far. I am using a web.xml that is almost identical
> to your own below and yet Tomcat will not start without reporting this XML
> parsing error.
>
> org.xml.sax.SAXParseException: Element "resource-ref" does not allow
> "resource-ref-name" here.
>
>
> >From: "Taavi Tiirik" <[EMAIL PROTECTED]>
> >
> >In web.xml I have following resource-ref defined:
> >
> >  
> >   
> >   Resource reference to a factory for javax.sql.DataSource
> >   instances that may be used for talking to a particular
> >   database that is configured in the server.xml file.
> >   
> >   jdbc/DB
> >   javax.sql.DataSource
> >   Container
> >  
>
> My own web.xml is contains almost the same resource-ref
>
> 
>   
> Resource reference to a factory for java.sql.Connection
> instances that may be used for talking to a particular
> database that is configured in the server.xml file.
>   
>   
> jdbc/mydb
>   
> javax.sql.DataSource
> Container
> 
>
> The error I get is an XML parsing error and the actual values are actually
> irrelevant. I'm using Tomcat 4.0.1 on Windows 2000. How come nobody else is
> reporting this error regardless if you're using Postgres, Oracle or mysql
>
> org.xml.sax.SAXParseException: Element "resource-ref" does not allow
> "resource-ref-name" here.
>
> Also, IF I ever get this to work, will this also work on other java servers
> like Websphere or will your own database pool manager be more cross platform
> ?
>
> Thank you, Soefara.
>
>
>
> _
> MSN Photos is the easiest way to share and print your photos:
> http://photos.msn.com/support/worldwide.aspx
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Re: jndi versus database connection pooling

2002-03-15 Thread Soefara Redzuan


>   DataSource ds = null;
>   Context initCtx = new InitialContext();
>   Context envCtx = (Context)initCtx.lookup( "java:comp/env" );
>   ds = (DataSource)envCtx.lookup( "jdbc/DB" );
>
>The problem is that returned datasource is always null.

I wish I could get that far. I am using a web.xml that is almost identical 
to your own below and yet Tomcat will not start without reporting this XML 
parsing error.

org.xml.sax.SAXParseException: Element "resource-ref" does not allow
"resource-ref-name" here.


>From: "Taavi Tiirik" <[EMAIL PROTECTED]>
>
>In web.xml I have following resource-ref defined:
>
>  
>   
>   Resource reference to a factory for javax.sql.DataSource
>   instances that may be used for talking to a particular
>   database that is configured in the server.xml file.
>   
>   jdbc/DB
>   javax.sql.DataSource
>   Container
>  

My own web.xml is contains almost the same resource-ref


  
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
  
  
jdbc/mydb
  
javax.sql.DataSource
Container


The error I get is an XML parsing error and the actual values are actually 
irrelevant. I'm using Tomcat 4.0.1 on Windows 2000. How come nobody else is 
reporting this error regardless if you're using Postgres, Oracle or mysql

org.xml.sax.SAXParseException: Element "resource-ref" does not allow
"resource-ref-name" here.

Also, IF I ever get this to work, will this also work on other java servers 
like Websphere or will your own database pool manager be more cross platform 
?

Thank you, Soefara.



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




RE: Double loading of my application

2002-03-15 Thread Paul, Debra, & 4 Kids Mendelson

bingo!!!

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 6:21 PM
To: Tomcat Users List
Subject: RE: Double loading of my application




On Fri, 15 Mar 2002, Paul, Debra, & 4 Kids Mendelson wrote:

> Date: Fri, 15 Mar 2002 16:58:47 -0500
> From: "Paul, Debra, & 4 Kids Mendelson" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Double loading of my application
>
> Lance,
>
> You're advice caused gave more insight.  After putting in more code I
> discovered that my app was loading once in the context I gave it in the
> server.xml and loading again as the context of it's native directory.
>
> Is there anyway to tell Tomcat to only load named contexts?
>

Tomcat only auto-loads things in the "webapps" directory.  Put your app
anywhere else and it will have to be in server.xml to get loaded -- note
that the "docBase" attribute will accept an absolute pathname.

> Thanks in advance for info,
>
> Paul
>

Craig


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

_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




question about tomcat configuration

2002-03-15 Thread Cheng Yan

Hi, all,

I just installed tomcat 4.0 binary on my Solaris 8 box at home. This Solaris
machine is connected to my w2k pc through a linksys router, which is
connected to a cable modem.

After I started tomcat, I can visit http://localhost:8080/index.html only
from the same workstation, but not from my pc. I understand this is because
the settings in $CATALINA_HOME/conf/server.xml. Could someone tell me how to
reconfigure this baby so that TOMCAT will point to a different location? The
"different" means that it does not point to the default page:
$CATALINA_HOME/webapps/ROOT/index.html. Or better yet, can I reconfigure it
to point to $HOME/public_html, where apache server has already pointed to?

I know I must set up somethings in $CATALINA_HOME/conf/server.xml. But I am
not sure how. Could someone show me step by step?

BTW, I have configured apache on this station. I can already visit
http://192.168.1.100/~myUnixID.

Thanks.


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




workers.properties configuration

2002-03-15 Thread Ronnie T Livingston

Hi, Im trying to setup a test load balanced configuration consisting of 3
machines.  Ive read Mr.Forget's tutorial but I couldnt really follow at a
certain point (modifying the server.xml) since i am using an older version
of tomcat.

Ive also read the Tomcat Workers how-to and im a little confused.  Do we
create this configuration on all the tomcat servers?  Once we configure
the workers.properties is there any other files needed to configure or
should it start balancing?

If anyone knows of any other tutorials or guides to using
workers.properties for load balancing I would be very much appreciative.

I am using Apache 1.3.19 and Tomcat 3.2.3

thanks,
Ronnie


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




[FAQ] jGuru FAQ Update

2002-03-15 Thread Alex Chaffee

jGuru maintains FAQs and Forums on Servlets, JSP, and Tomcat (as well as
many other Java topics).  Here is an automated update on recent postings to
Tomcat-related FAQs.  Please direct flames and feedback to [EMAIL PROTECTED] .

 - Alex


++ JavaServer Pages (JSP) FAQ: http://www.jguru.com/faq/JSP

In one of my applications i am using jsp for all reporting. But the problem here is 
that the window.print() command will print everything on screen. 
Is it possible to print only a part of the scrren, say the data displayed in a table?
http://www.jguru.com/misc/faqtrampoline.jsp?src=notify&EID=789539


You can shut email notification off at the FAQ home
page(s) or:

  http://www.jguru.com/guru/notifyprefs.jsp



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




Annoying installation problem, JSPs

2002-03-15 Thread Greg McClure

Tomcat Folk,

Three nights ago I had installed a Tomcat 4.0.1 binary dist and had it
working along with Cocoon 2. Everything worked, including JSPs. Life was
good.

>From there I fired up JBuilder and started doing some project work, but when
I copied over my initial WAR file life ceased to be good. I found that none
of my JSPs worked, neither those I had generated nor any in the supplied
'examples' webapp that comes with Tomcat. The servlet examples all continued
to work fine.

I had been doing much on my server, so I figured that I messed up a
configuration, so I checked my CLASSPATH, TOMCAT_HOME, CATALINA_HOME,
JAVA_HOME, etc., environment variables and everything was as it should be.
Also, Tomcat would *start* just fine and serve pages with no issue on port
8080. But JSPs produced the below supplied exception. Since, I have
reinstalled Tomcat and achieved the same result.

Any insight or help would be very, very appreciated. I need to make a very
rapid platform decision for a new project and I have the choice between .Net
or a Java implementation. I would like to use the open source stuff on
Jakarta, but I've got to understand what went wrong ...

See below for the exception.

Thanks so much, in advance,

:: Greg McClure
:: Third Stone Media
:: [EMAIL PROTECTED]
:: http://www.thirdstone.net
:: (949) 719-9678 ph
:: (978) 383-8306 fx

*

type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:871)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:472)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1011)
at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106
)
at java.lang.Thread.run(Thread.java:484)


root cause

java.lang.NoSuchMethodError
at
org.apache.jasper.compiler.TldLocationsCache.processJars(TldLocationsCache.j
ava:202)
at
org.apache.jasper.compiler.TldLocationsCache.(TldLocationsCache.java:139)
at org.apache.jasper.EmbededServletOptions.(EmbededServletOptions.java:324)
at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:266)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:852)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(Stand

RE: Apache-Tomcat webapps, who serves images?

2002-03-15 Thread Uma Munugala

Hi 
  Iam Running tomcat 4.0.0. on windows NT. Installation is successful, and
examples work properly.
I deployed my application in web-inf/classes
Iam getting an error when I run servlet. 

When code is trying to access the RelConnection.gDefaultConnectionIsOracle,
a static member Iam getting the error.
java.lang.ClassFormatError: com/CellFusion/Relational/RelConnection (Illegal
Variable name "")
Relconnection is a public class with all static members and static methods.
classpath is set properly.


Any help would be appreciated


Thanks
Uma 

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




RE: Double loading of my application

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Paul, Debra, & 4 Kids Mendelson wrote:

> Date: Fri, 15 Mar 2002 16:58:47 -0500
> From: "Paul, Debra, & 4 Kids Mendelson" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: RE: Double loading of my application
>
> Lance,
>
> You're advice caused gave more insight.  After putting in more code I
> discovered that my app was loading once in the context I gave it in the
> server.xml and loading again as the context of it's native directory.
>
> Is there anyway to tell Tomcat to only load named contexts?
>

Tomcat only auto-loads things in the "webapps" directory.  Put your app
anywhere else and it will have to be in server.xml to get loaded -- note
that the "docBase" attribute will accept an absolute pathname.

> Thanks in advance for info,
>
> Paul
>

Craig


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




Re: JNDIRealm with bind as user functionality

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Jonathan Eric Miller wrote:

> Date: Fri, 15 Mar 2002 15:36:09 -0600
> From: Jonathan Eric Miller <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  Jonathan Eric Miller <[EMAIL PROTECTED]>
> To: Tomcat User List <[EMAIL PROTECTED]>
> Subject: JNDIRealm with bind as user functionality
>
> Does anyone know if JNDIRealm is going to be fixed up anytime soon so that
> the bind as user functionality is in there?
>
> I know someone had a patch for this. I'm wondering if that patch is going to
> be integrated into the main distribution.
>

Interesting timing ... I committed the patch a couple of hours ago :-).

It will be in tonight's nightly build, which runs off the HEAD branch.
Seeing as how it is an enhancement, it may or may not get added into the
4.0 branch (which is focused on bug fixes, while new features get put into
the following release).  In theory, the new JNDIRealm class should work in
a 4.0.x environment, but I haven't tested it that way.

> Jon
>

Craig


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




RE: Double loading of my application

2002-03-15 Thread Paul, Debra, & 4 Kids Mendelson

Lance,

You're advice caused gave more insight.  After putting in more code I
discovered that my app was loading once in the context I gave it in the
server.xml and loading again as the context of it's native directory.

Is there anyway to tell Tomcat to only load named contexts?

Thanks in advance for info,

Paul

-Original Message-
From: Lance Smith [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:44 AM
To: 'Tomcat Users List'
Subject: RE: Double loading of my application


Paul ( I assume ),
Had the same trble with no answers also seemed to go away when I added
a path to my context statement like:



Hope this helps,
Lance

-Original Message-
From: Paul, Debra, & 4 Kids Mendelson
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 8:08 AM
To: Tomcat Users List
Subject: Double loading of my application


In my web application (described) below I am seeing my startup servlet
executing twice presumably because my application is loading twice.  Which
directive is causing my second load?

I have a Web application with a startup servlet described as follows:

MyStart
MyStart
0


I have tried to strip down my servlet.xml file to remove potential for
double loading my applictaion:
  

  
  



  
 
 
   
 
   
  




_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




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


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


_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: Where can I find archives for this list?

2002-03-15 Thread Ganey, Todd

Well you can try http://www.servlets.com/archive/servlet/ViewLists as it has
a Tomcat-Users searchable list.  (after clicking on tomcat-user then the
search option is in the upper right)

But you may have already visted this site as I got to it from a link on
http://jakarta.apache.org/site/mail2.html

Good luck,
Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:58 AM
To: Tomcat Users List
Subject: RE: Where can I find archives for this list?



Thanks Todd.
Unfortunately, I'm getting a 404 error on that link.
As an FYI: I found some archives at http://archive.covalent.net/ but they
are not searchable.
If you know of any searchable archives, please let me know.

~ suha.





"Ganey, Todd" <[EMAIL PROTECTED]> on 03/15/2002 01:50:57 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Where can I find archives for this list?


Try looking at this list of archives under the section "Archives and
searching"

http://jakarta.apache.org/site/mail2.html

HTH,
Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:34 AM
To: Tomcat Users List
Subject: Where can I find archives for this list?



This list is not archived at google. Any idea where I can find searchable
archives to this list?
thanks,
suha.





[EMAIL PROTECTED] on 03/15/2002 10:57:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Tomcat starts new session in servlet. Is this a bug?


Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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









This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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



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









This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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



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




Apache-Tomcat webapps, who serves images?

2002-03-15 Thread Brandon Cruz

I have a context called /MyContext and images inside that same context, say
in the /MyContext/images/ folder (Tomcat 3.2.4).  Tomcat serves all those
images since they are referenced as src="../images/image.gif" right?

If this is the case, would putting the images outside of the context, say on
a different virtual host completely, cause Apache to serve images?  For
example, I would the move the images to a different vhost and refere them as
src="http://www.host2.com";.

I am trying to display a page that has 40 images in a toolbar that are all
22 x 23 pixels.  It takes FOREVER for this page to come up, no matter how
much I optimize the images or page.

If moving the images to a different vhost and referencing them as
src="http://www.host2.com"; makes apache serve them, will this speed things
up considerably?

I am using Tomcat 3.2.4 and it is taking up to 30 seconds to display the
page on a 512K DSL connection.


I guess my basic question is "Does Apache serve images that much faster than
Tomcat, enough that it is worth completely trashing a nicely organized
webapp?"

Thanks for any help!

Brandon


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




JNDIRealm with bind as user functionality

2002-03-15 Thread Jonathan Eric Miller

Does anyone know if JNDIRealm is going to be fixed up anytime soon so that
the bind as user functionality is in there?

I know someone had a patch for this. I'm wondering if that patch is going to
be integrated into the main distribution.

Jon



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




Sessions in tomcat 4.03

2002-03-15 Thread Kishore R

Hi All,
 I am trying to store some objects in the "session" which 
are shared across multiple jsp's & servlets. To my surprise the 
session object I get from request.getSession() is different in different 
 servlets and jsp's and hence I am unable to access the objects 
that I store in the "session" in one jsp from another servlet. The 
same set of pages work neatly in weblogic 6.1. I am using tomcat4.03 on linux.

Any ideas.

Thanks,
Kishore




2,000,000,000 Web Pages--you only need 1. Save time with My Lycos.
http://my.lycos.com

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




Re: Trouble setting up mod_jk - success!!!

2002-03-15 Thread Jason Edgecombe

hi everyone,

   ok, here is what I did. I compiled mod_jk from the jakarta-tomcat 
connectors tarball. the build and configure didn't work right, I just rn 
axps with the right parameters (unfortunately, I didn't log the 
session). but I finally got it working. workers.properties was 
configured to use port 8009 for ajp13 and server.xml was configured for 
port 8109 for ajp13

now it works woohoo
I tested it with the examples servlets and it works fine.

just to sum up.
I used the tomcat rpms and compiled my own mod_jk by hand with apxs.

Sincerely,
Jason Edgecombe


Bernd Koecke wrote:

> Hi,
> 
> I use tc-4.0.3, mod_jk and apache 1.3.x on SuSE 7.3 successfully. I have 
> only a problem with loadbalancing (see my previous mail). But I don't 
> use the WarpConnector. I think that the protocols warp and ajp13 are 
> incompatible. It seems that your mod_jk tries to connect to the 
> WarpConnector with the ajp13 protocol. Have a look at your workers.conf 
> and the server.xml which ports are configured.
> 
> Bernd
> 
> Jason Edgecombe wrote:
> 
>> hi everyone,
>>
>>   I'm still having trouble with mod_jk. I compiled and installed it 
>> using the build-unix.sh from the tomcat-connectors tarball.
>>
>> Any help would be appreciated.
>> output from mod_jk.log and tomcat's apache_log-date.txt follow.
>>
>> here is what I get in my mod_jk.log file:
>>  
>>
>> [Thu Mar 14 16:02:06 2002]  [jk_connect.c (151)]: jk_open_socket, 
>> connect() failed errno = 111
>> [Thu Mar 14 16:02:06 2002]  [jk_ajp_common.c (598)]: In 
>> jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
>> [Thu Mar 14 16:02:06 2002]  [jk_ajp_common.c (843)]: Error connecting 
>> to the Tomcat process.
> 
> 
> [...]
> 
> 
>>  
>>
>>
>> I get the following in /var/tomcat4/logs/apache_log.2002-03-14.txt
>>  
>>
>> 2002-03-14 15:57:34 [org.apache.catalina.connector.warp.WarpConnector] 
>> Error accepting requests
>> java.net.SocketException: Socket closed
>> at java.net.PlainSocketImpl.socketAccept(Native Method)
>> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
>> at java.net.ServerSocket.implAccept(ServerSocket.java:438)
>> at java.net.ServerSocket.accept(ServerSocket.java:409)
>> at 
>> org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) 
>>
>> at java.lang.Thread.run(Thread.java:536)
>>
> 
> [...]
> 




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




Urgent : Problem in JSP with gif images

2002-03-15 Thread Rajeshwari Ramamurthi

Hi
I am using Apache with Tomcat 4.0.2 linked with mod_webapp.
My JSP pages contains lots of gif images. When I load this page from Tomcat 
(i.e port 8080), it works fine. But it is very slow and not loading the page 
fully when I tried to call from Apache through the link.

I think the problem is with mod_webapp. Am I right? Can anyone explain this 
to me?
Is there any other connectors through which I can solve this problem?

Anyhelp would be appreciated
Raji



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread James Williamson


>
> I'm glad I'm not the only one that's been put off by mod_webapp's design,
> but I still have to hand it to the Tomcat Open Source developers for all
> their hard work.  On the other hand, you're right about mod_webapp's
> non-conformance, and as users we really shouldn't be forced to hack Apache
> modules to make them work with each other. I wonder what it would take to
> at least interest these folks in adding an optional parameter in
> httpd.conf, e.g.:
>

Absolutely, which is why mod_webapp with it's current (dubious) design will
never work with
true multi-threaded platforms, in fact the guy who wrote it to quote in a
very
recent e-mail on the dev list:


---

>
> Hi,
>
> I've recently setup a intranet site on an NT 4.0 box using Apache 1.3.23
> combined with Tomcat 4.0.3.  To integrate them together I'm using the warp
> connector and the mod_webapp module...

Forget it... It doesn't work under Windows...

> If it is thought that this is a bug maybe I'll take a look at the source
code
> for mod_webapp and see if I can see anything wrong.  Does anynone have any
> ideas where to start and any information on how to get a build up and
running
> on NT?

You need to synchronize the calls to the socket, as Apache 1.3 is
multi-process under UNIX (that's why it works), but multi-threaded under
windows (that's why it doesn't)...

In the pr_warpc files you should really create a pool of socket used to
connect to the server when you're running in a multi-threaded environment...
All the rest of the code should be fairly fully reentrant...

(all your problems come up when you have more than one request getting into
tomcat at the same time).

As I don't have access to a windosh box anymore (thanks god I got rid of the
last one), I don't really care much... And since nobody pays me anymore to
fix those, well, it works for me :)

Pier (back on fixing Apache 2.0/worker under OS/X!)


--

Which basically means your thanks to these some of these guys who devote
their spare time to
writing open source software; is forget it, half of them get paid by the big
companies
whose management have jumped on the open source bandwagon (With the emphasis
on some).

>  WebAppConnection warp warp localhost:
compatible=Apache|Sun
>
> You seem to know a bit more about Apache module development than me;
Would
> you like to broach the subject with them, or shall I?
>
> Dan

I've tried, they're not bothered. The now infamous 404 Apache/Tomcat bug is
another example
of mod_webapp's failing, closely related to a bug I reported a few days ago.
I even offered to fix it
but got no response. What I don't understand is why mod_webapp has got the
official endorsement, I
only stick with it in case they suddenly stop supporting mod_jk.

>
>
> At 06:18 PM 3/15/02 +, James Williamson wrote:
> > > In httpd.conf, are you doing a redirect [R] or a passthrough [PT] ?
> >
> >I'm guess I'm using RewriteRule (I'll read the docs now), which tells me
> >this:
> >
> >192.168.0.101 - - [15/Mar/2002:18:06:36+]
> >[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
> >al] (2) init rewrite engine with requested uri /
> >192.168.0.101  - - [15/Mar/2002:18:06:36 +]
> >[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
> >al] (3) applying pattern '^/$' to uri '/'
> >192.168.0.101  - - [15/Mar/2002:18:06:36 +]
> >[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
> >al] (2) rewrite / -> /index.jsp
> >
> >Yet tomcat's logs show me this:
> >
> >2002-03-15 18:06:36 StandardContext[]: Mapping contextPath='' with
> >requestURI='/' and relativeURI=
> >'/'
> >
> > >
> > > Assuming you're not explicitly redirecting the request, you should
> >probably
> > > check your modifications to whichever tomcat module you're using in
> >Apache.
> > > The thing to look, I think, is which URI is being set into the request
> > > structure.  The mod_webapp module does this early on in wam_match()
before
> > > mod_rewrite has a chance to do its work:
> > >
> > >  ap_set_module_config(r->request_config, &webapp_module,
appl);
> >
> >I had a look at this, it's only setting the application to use, not the
> >path.
> >
> > >
> > > I essentially moved this bit to wam_invoke() which happens last when
the
> > > request is actually serviced.
> >
> >Quite right, no disrespect but the url rewriting stage isn't the right
stage
> >in Apache's handling cycle
> >to put this sort of thing, especially when it returns OK without letting
the
> >'proper' rewriters have a look.
> >
> > >
> > > I'm not one of the developers on this project, so I'm guessing here
and
> > > there.  It would probably be worth running your modifications by the
> > > tomcat-dev mailing list or Pier Fumagalli ([EMAIL PROTECTED]) who's
> >name
> > > is on the webapp.c module, if they have time to listen.  My impression
is
> > > that this grou

Re: Charts in Jsp doesn't work [urgent!]

2002-03-15 Thread Nancy Crisostomo Martinez

Thaks Randy!

And  I tried it in both ways and the same error appear:
/tomcat.sh: TOMCAT_OPTS=-Djava.awt.headless=true: is not an identifier

Could you help me?? Please!

Regards,
Nancy


Randy Layman wrote:

> For Tomcat 3.3 change CATALINA_OPTS to TOMCAT_OPTS.  Otherwise the
> directions quoted are correct.  If you insist on modifying the .sh file then
> add this command as the second line of the sh file.
>
> Randy
>
> > -Original Message-
> > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, March 15, 2002 3:17 PM
> > To: Tomcat Users List
> > Subject: Re: Charts in Jsp doesn't work [urgent!]
> >
> >
> > Do somebody know how to set Java to run in headless mode  in
> > Tomcat 3.3 ?
> >
> > Do you want give me a hint?
> > I really tried to modify the tomcat.sh script but I
> > couldn't.. It's very
> > hard to understand!!!
> > Could you please help me?
> >
> >
> >
> >
> > "Christopher K.St.John" wrote:
> >
> > > Andy Eastham wrote:
> > > >
> > > > 1) To run in headless mode, you do need to modify tomcat.sh,
> > > >
> > >
> > >$ export CATALINA_OPTS="-Djava.awt.headless=true"
> > >$ bin/startup.sh
> > >
> > >  No need to actually modify the catalina.sh code, it will
> > > automatically pick up the environment variable.
> > >
> >
> > Andy Eastham wrote:
> >
> > > Nancy,
> > >
> > > You either need X windows or (if your server has no graphics card):
> > >
> > > 1) Use j2se1.4 and run it in "headless" mode - the JAva VM
> > needs to be
> > > started with the
> > > -Djava.awt.headless=true option in the Tomcat startup scripts.
> > >
> > > 2) Get the virtual frame buffer (VFB) version of X windows and run
> > > that.  (I
> > > know we did this at my previous company but I'm afraid I
> > can't remember
> > > how
> > > to set it up).  Try typing "xwindows virtual frame buffer" into your
> > > favourite search engine.
> > >
> > > Andy
> > >
> > > > -Original Message-
> > > > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> > > > Sent: 14 March 2002 16:48
> > > > To: Tomcat Users List
> > > > Subject: Charts in Jsp doesn't work
> > > >
> > > >
> > > > Hi Everybody!
> > > >
> > > > Do you know what is X Windows System for?
> > > > Do I need to install it to work with charts?.. I mean, I
> > couldn't see
> > >
> > > > the charts displayed and someone told me that I need to install X
> > > Window
> > > > System... Is that true?
> > > > The jsp wich displays a chart are placed in a Solaris Sparc server
> > > > running on Tomcat 3.3, but I want to see the charts in a
> > Windows PC
> > > and
> > > > I couldn't
> >
> > >
> > > --
> > > Christopher St. John [EMAIL PROTECTED]
> > > DistribuTopia http://www.distributopia.com
> > >
> > > --
> > > To unsubscribe:
> > 
> > > For additional commands:
> > 
> > > Troubles with the list:
> > 
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




Re: help with realm setup

2002-03-15 Thread Micael Padraig Og mac Grene

I was serious, you know. That works if all you want is to have it check 
whether or not the person is a user, and if you want to precode the users.

At 12:20 PM 3/15/02 -0800, you wrote:
>Why don't you just call the role "has_username"?  lol
>
>At 09:30 AM 3/15/02 -0800, you wrote:
>
>
>>On Fri, 15 Mar 2002, Tony Dahbura wrote:
>>
>> > Date: Fri, 15 Mar 2002 11:27:40 -0500
>> > From: Tony Dahbura <[EMAIL PROTECTED]>
>> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
>> > To: Tomcat Users List <[EMAIL PROTECTED]>
>> > Subject: Re: help with realm setup
>> >
>> > Micael:
>> >
>> > Thanks for the data.  The question I have though is that I am using the
>> > role-name but this only applies to roles that map (basically as groups)
>> > against a series of users that authenticate.  I need to map directly
>> > against the user without having roles.
>> >
>> > So I need to be able to do a 1-1 mapping of access to a user without
>> > having roles/groups setup.  Can this be done when I have no control over
>> > the jndi source to control it?  Meaning I am trying to use a jndi or
>> > whatever source for authentication and say if the person passed in a
>> > valid userid and password of X how do I let them in?
>> >
>>
>>Security constraints in web.xml are specified *only* in terms of roles,
>>not usernames.  Therefore, if you want a 1:1 mapping, you'll have to
>>(somewhere on the line) convince whichever Realm you are using to look up
>>usernames instead of rolenames when the request.isUserInRole() method is
>>executed.  That may or may not take a code change, depending on which
>>realm you are using.
>>
>> > Thanks,
>> > Tony
>>
>>Craig
>>
>>
>>--
>>To unsubscribe:   
>>For additional commands: 
>>Troubles with the list: 
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 
>



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




RE: Where can I find archives for this list?

2002-03-15 Thread Milt Epstein

On Fri, 15 Mar 2002 [EMAIL PROTECTED] wrote:

> Thanks Todd.
> Unfortunately, I'm getting a 404 error on that link.
> As an FYI: I found some archives at http://archive.covalent.net/ but they
> are not searchable.
> If you know of any searchable archives, please let me know.

That URL -- repeated here for convenience:

http://jakarta.apache.org/site/mail2.html

is correct, it has lots of info about the jakarta-related mailing
lists.

I've had good luck with the archives at:

http://marc.theaimsgroup.com/


> "Ganey, Todd" <[EMAIL PROTECTED]> on 03/15/2002 01:50:57 PM
>
> Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>
>
> To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
> cc:
> Subject:  RE: Where can I find archives for this list?
>
>
> Try looking at this list of archives under the section "Archives and
> searching"
>
> http://jakarta.apache.org/site/mail2.html
>
> HTH,
> Todd
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 11:34 AM
> To: Tomcat Users List
> Subject: Where can I find archives for this list?
>
>
> This list is not archived at google. Any idea where I can find searchable
> archives to this list?
> thanks,
> suha.
[ ... ]

Milt Epstein
Research Programmer
Software/Systems Development Group
Computing and Communications Services Office (CCSO)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




Re: help with realm setup

2002-03-15 Thread Micael Padraig Og mac Grene

Why don't you just call the role "has_username"?  lol

At 09:30 AM 3/15/02 -0800, you wrote:


>On Fri, 15 Mar 2002, Tony Dahbura wrote:
>
> > Date: Fri, 15 Mar 2002 11:27:40 -0500
> > From: Tony Dahbura <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: help with realm setup
> >
> > Micael:
> >
> > Thanks for the data.  The question I have though is that I am using the
> > role-name but this only applies to roles that map (basically as groups)
> > against a series of users that authenticate.  I need to map directly
> > against the user without having roles.
> >
> > So I need to be able to do a 1-1 mapping of access to a user without
> > having roles/groups setup.  Can this be done when I have no control over
> > the jndi source to control it?  Meaning I am trying to use a jndi or
> > whatever source for authentication and say if the person passed in a
> > valid userid and password of X how do I let them in?
> >
>
>Security constraints in web.xml are specified *only* in terms of roles,
>not usernames.  Therefore, if you want a 1:1 mapping, you'll have to
>(somewhere on the line) convince whichever Realm you are using to look up
>usernames instead of rolenames when the request.isUserInRole() method is
>executed.  That may or may not take a code change, depending on which
>realm you are using.
>
> > Thanks,
> > Tony
>
>Craig
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




RE: Charts in Jsp doesn't work [urgent!]

2002-03-15 Thread Randy Layman


For Tomcat 3.3 change CATALINA_OPTS to TOMCAT_OPTS.  Otherwise the
directions quoted are correct.  If you insist on modifying the .sh file then
add this command as the second line of the sh file.

Randy

> -Original Message-
> From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 3:17 PM
> To: Tomcat Users List
> Subject: Re: Charts in Jsp doesn't work [urgent!]
> 
> 
> Do somebody know how to set Java to run in headless mode  in 
> Tomcat 3.3 ?
> 
> Do you want give me a hint?
> I really tried to modify the tomcat.sh script but I 
> couldn't.. It's very
> hard to understand!!!
> Could you please help me?
> 
> 
> 
> 
> "Christopher K.St.John" wrote:
> 
> > Andy Eastham wrote:
> > >
> > > 1) To run in headless mode, you do need to modify tomcat.sh,
> > >
> >
> >$ export CATALINA_OPTS="-Djava.awt.headless=true"
> >$ bin/startup.sh
> >
> >  No need to actually modify the catalina.sh code, it will
> > automatically pick up the environment variable.
> >
> 
> Andy Eastham wrote:
> 
> > Nancy,
> >
> > You either need X windows or (if your server has no graphics card):
> >
> > 1) Use j2se1.4 and run it in "headless" mode - the JAva VM 
> needs to be
> > started with the
> > -Djava.awt.headless=true option in the Tomcat startup scripts.
> >
> > 2) Get the virtual frame buffer (VFB) version of X windows and run
> > that.  (I
> > know we did this at my previous company but I'm afraid I 
> can't remember
> > how
> > to set it up).  Try typing "xwindows virtual frame buffer" into your
> > favourite search engine.
> >
> > Andy
> >
> > > -Original Message-
> > > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> > > Sent: 14 March 2002 16:48
> > > To: Tomcat Users List
> > > Subject: Charts in Jsp doesn't work
> > >
> > >
> > > Hi Everybody!
> > >
> > > Do you know what is X Windows System for?
> > > Do I need to install it to work with charts?.. I mean, I 
> couldn't see
> >
> > > the charts displayed and someone told me that I need to install X
> > Window
> > > System... Is that true?
> > > The jsp wich displays a chart are placed in a Solaris Sparc server
> > > running on Tomcat 3.3, but I want to see the charts in a 
> Windows PC
> > and
> > > I couldn't
> 
> >
> > --
> > Christopher St. John [EMAIL PROTECTED]
> > DistribuTopia http://www.distributopia.com
> >
> > --
> > To unsubscribe:   
> 
> > For additional commands: 
> 
> > Troubles with the list: 
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread Dan Lindy

James,

This is the same behavior I saw before hacking mod_webapp. The module is 
not just terminating Apache's handling cycle prematurely by returning an OK 
from wam_match(), it's also copying off a un-modified version of the URI. 
(Apologies for accidentally splitting up this thread. My earlier message 
spells out how I think this is happening.)

Dan

At 06:18 PM 3/15/02 +, you wrote:
> > In httpd.conf, are you doing a redirect [R] or a passthrough [PT] ?
>
>I'm guess I'm using RewriteRule (I'll read the docs now), which tells me
>this:
>
>192.168.0.101 - - [15/Mar/2002:18:06:36+]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (2) init rewrite engine with requested uri /
>192.168.0.101  - - [15/Mar/2002:18:06:36 +]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (3) applying pattern '^/$' to uri '/'
>192.168.0.101  - - [15/Mar/2002:18:06:36 +]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (2) rewrite / -> /index.jsp
>
>Yet tomcat's logs show me this:
>
>2002-03-15 18:06:36 StandardContext[]: Mapping contextPath='' with
>requestURI='/' and relativeURI=
>'/'



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




Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Nikola Milutinovic wrote:

> Date: Fri, 15 Mar 2002 20:46:47 +0100
> From: Nikola Milutinovic <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: jndi versus database connection pooling
>
> Craig R. McClanahan wrote:
>
> >
> > In 4.0.x, automatically deployed contexts with no  entry do not
> > have any resources assigned to match up the resource references.
> > Therefore, you must explicitly define such webapps in the server.xml file
> > to give them access to the corresponding JNDI resources.
>
>
> What's the story on double deployment? Can it make a mess of my
> operation?

I'm not sure what you mean by "double deployment".

If you're worried about the same webapp getting auto-deployed more than
once in the same virtual host (simply because you declare it as a
 in server.xml), that doesn't happen because auto-deploy checks
to see if the context path is already in use.

To see this in action, look at how the examples webapp is delivered in the
default Tomcat configuration.  Even though the "examples" directory is in
"webapps" (so it would normally get auto-deployed) *and* it is listed
specifically in server.xml, the app is only deployed once.

> What wouldbe the preferable way of handling multiple virtual
> hosts with JNDI on my mind?
>
> So far, I've been just creating one user account per virtual host, make a
> ./webapp dir and setup  so it has appbase point to ~account/webapp.
> Then I would add any "system" contexts, like /docs and /manager.
>

That seems like a pretty reasonable approach to me.

>
> > In the HEAD branch (what will become 4.1), Tomcat supports the notion of a
> > separate "context descriptor file", which is an XML file that just
> > contains the  element for a particular webapp, plus all of its
> > nested elements.  This gives you the following options (in addition to the
> > auto-deploy support in 4.0):
> >
> > * Put a context description file in the appBase
> >   directory and that webapp will be auto-deployed
> >   with its resource definitions.
> >
> > * Use the /install command of the Manager webapp
> >   to dynamically deploy a context description file
> >   (and associated WAR or webapp directory).
> >
> > You can see this in action with a nightly build of Tomcat 4 -- the Admin
> > and Manager webapps themselves are deployed in this way.
>
> So, this is a CVS beta or what? Anyway, it looks nice.
>

It's visible if you build from CVS yourself, or if you grab one of the
recent nightly builds:

  http://jakarta.apache.org/builds/jakarta-tomcat-4.0/nightly/


> Oh, and one last thing. I'm using 4.0.1 and like some other guys, SAX is
> spitting an error on my web.xml:
>
> PARSE error at line 68 column 11
> org.xml.sax.SAXParseException: The content of element type "web-app" must match
> "(icon?,display-name?,des
> 
>cription?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessi
> 
>on-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-
> constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
>
> My web.xml file is:
>
> 
>"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
>  "http://java.sun.com/dtd/web-app_2_3.dtd";>
>
> 
>E-Mail address book Admin GUI
>
>
>  OrgUnitServlet
>  yu.co.ev.EVnet.mail.OrgUnitServlet
>
>  RedirectURL
>  orgUnitDisplay.jsp?id=
>  URL to redirect a client
>
>
>
>  OrgUnitServlet
>  /servlets/OrgUnit
>
>
>
>  EmailUserServlet
>  yu.co.ev.EVnet.mail.EUserServlet
>  
>RedirectURL
>eUserDisplay.jsp?id=
>URL to redirect a client
>  
>
>
>  EmailUserServlet
>  /servlets/EUser
>
>
>
>  
>javax.sql.DataSource for this application,
>as configured in server.xml
>  
>  jdbc/AddressBookDB
>  javax.sql.DataSource
>  container
>
> 
>
> The only thing I've done is add  part. The ordering of
> elements seams to be OK. So, what could be the problem?
>

This file looks ok, but the XML parser is complaining about line 68 -- and
this one doesn't have that many lines.  Check your other web.xml files as
well.

> Nix.
>

Criag


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




Re: Charts in Jsp doesn't work [urgent!]

2002-03-15 Thread Nancy Crisostomo Martinez

Do somebody know how to set Java to run in headless mode  in Tomcat 3.3 ?

Do you want give me a hint?
I really tried to modify the tomcat.sh script but I couldn't.. It's very
hard to understand!!!
Could you please help me?




"Christopher K.St.John" wrote:

> Andy Eastham wrote:
> >
> > 1) To run in headless mode, you do need to modify tomcat.sh,
> >
>
>$ export CATALINA_OPTS="-Djava.awt.headless=true"
>$ bin/startup.sh
>
>  No need to actually modify the catalina.sh code, it will
> automatically pick up the environment variable.
>

Andy Eastham wrote:

> Nancy,
>
> You either need X windows or (if your server has no graphics card):
>
> 1) Use j2se1.4 and run it in "headless" mode - the JAva VM needs to be
> started with the
> -Djava.awt.headless=true option in the Tomcat startup scripts.
>
> 2) Get the virtual frame buffer (VFB) version of X windows and run
> that.  (I
> know we did this at my previous company but I'm afraid I can't remember
> how
> to set it up).  Try typing "xwindows virtual frame buffer" into your
> favourite search engine.
>
> Andy
>
> > -Original Message-
> > From: Nancy Crisostomo Martinez [mailto:[EMAIL PROTECTED]]
> > Sent: 14 March 2002 16:48
> > To: Tomcat Users List
> > Subject: Charts in Jsp doesn't work
> >
> >
> > Hi Everybody!
> >
> > Do you know what is X Windows System for?
> > Do I need to install it to work with charts?.. I mean, I couldn't see
>
> > the charts displayed and someone told me that I need to install X
> Window
> > System... Is that true?
> > The jsp wich displays a chart are placed in a Solaris Sparc server
> > running on Tomcat 3.3, but I want to see the charts in a Windows PC
> and
> > I couldn't

>
> --
> Christopher St. John [EMAIL PROTECTED]
> DistribuTopia http://www.distributopia.com
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




Re: Tomcat starts new session in servlet. Is this a bug?

2002-03-15 Thread suha_yacoub



I found the solution to my problem. It was very simple.
If I link to the servlet as "/servlet/ServletName" tomcat will start a new
session;
however if I specify the context name in the URL:
/contextName/servlet/ServletName,
then everything works ok.

thanks,
suha.





[EMAIL PROTECTED] on 03/15/2002 10:57:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Tomcat starts new session in servlet. Is this a bug?


Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread Dan Lindy

James,

> >  ap_set_module_config(r->request_config, &webapp_module, appl);
>
>I had a look at this, it's only setting the application to use, not the path.

Yes, but (wa_application *)appl->rpth  is being compared to (request_rec 
*)r->uri, so I'm guessing that rpth is the rewritten version of uri, and 
that once the application is set, there's essentially nothing more that can 
be done about it.

> > I essentially moved this bit to wam_invoke() which happens last when the
> > request is actually serviced.
>
>Quite right, no disrespect but the url rewriting stage isn't the right stage
>in Apache's handling cycle
>to put this sort of thing, especially when it returns OK without letting the
>'proper' rewriters have a look.

I'm glad I'm not the only one that's been put off by mod_webapp's design, 
but I still have to hand it to the Tomcat Open Source developers for all 
their hard work.  On the other hand, you're right about mod_webapp's 
non-conformance, and as users we really shouldn't be forced to hack Apache 
modules to make them work with each other. I wonder what it would take to 
at least interest these folks in adding an optional parameter in 
httpd.conf, e.g.:

 WebAppConnection warp warp localhost: compatible=Apache|Sun

You seem to know a bit more about Apache module development than me;  Would 
you like to broach the subject with them, or shall I?

Dan


At 06:18 PM 3/15/02 +, James Williamson wrote:
> > In httpd.conf, are you doing a redirect [R] or a passthrough [PT] ?
>
>I'm guess I'm using RewriteRule (I'll read the docs now), which tells me
>this:
>
>192.168.0.101 - - [15/Mar/2002:18:06:36+]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (2) init rewrite engine with requested uri /
>192.168.0.101  - - [15/Mar/2002:18:06:36 +]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (3) applying pattern '^/$' to uri '/'
>192.168.0.101  - - [15/Mar/2002:18:06:36 +]
>[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
>al] (2) rewrite / -> /index.jsp
>
>Yet tomcat's logs show me this:
>
>2002-03-15 18:06:36 StandardContext[]: Mapping contextPath='' with
>requestURI='/' and relativeURI=
>'/'
>
> >
> > Assuming you're not explicitly redirecting the request, you should
>probably
> > check your modifications to whichever tomcat module you're using in
>Apache.
> > The thing to look, I think, is which URI is being set into the request
> > structure.  The mod_webapp module does this early on in wam_match() before
> > mod_rewrite has a chance to do its work:
> >
> >  ap_set_module_config(r->request_config, &webapp_module, appl);
>
>I had a look at this, it's only setting the application to use, not the
>path.
>
> >
> > I essentially moved this bit to wam_invoke() which happens last when the
> > request is actually serviced.
>
>Quite right, no disrespect but the url rewriting stage isn't the right stage
>in Apache's handling cycle
>to put this sort of thing, especially when it returns OK without letting the
>'proper' rewriters have a look.
>
> >
> > I'm not one of the developers on this project, so I'm guessing here and
> > there.  It would probably be worth running your modifications by the
> > tomcat-dev mailing list or Pier Fumagalli ([EMAIL PROTECTED]) who's
>name
> > is on the webapp.c module, if they have time to listen.  My impression is
> > that this group of developers decided to explicitly over-ride mod_rewrite
> > because they thought this would result in a truer implementation of Sun's
> > servlet API.
>
>Hmm, I think that's being charitable...


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




RE: Where can I find archives for this list?

2002-03-15 Thread suha_yacoub


Thanks Todd.
Unfortunately, I'm getting a 404 error on that link.
As an FYI: I found some archives at http://archive.covalent.net/ but they
are not searchable.
If you know of any searchable archives, please let me know.

~ suha.





"Ganey, Todd" <[EMAIL PROTECTED]> on 03/15/2002 01:50:57 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   "'Tomcat Users List'" <[EMAIL PROTECTED]>
cc:
Subject:  RE: Where can I find archives for this list?


Try looking at this list of archives under the section "Archives and
searching"

http://jakarta.apache.org/site/mail2.html

HTH,
Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:34 AM
To: Tomcat Users List
Subject: Where can I find archives for this list?



This list is not archived at google. Any idea where I can find searchable
archives to this list?
thanks,
suha.





[EMAIL PROTECTED] on 03/15/2002 10:57:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Tomcat starts new session in servlet. Is this a bug?


Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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









This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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



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









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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




Re: jndi versus database connection pooling

2002-03-15 Thread rsequeira


I think all  tags should be defined prior to defining the
 tags.

RS





Nikola Milutinovic <[EMAIL PROTECTED]> on 03/15/2002 01:46:47 PM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

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

Subject:  Re: jndi versus database connection pooling

Craig R. McClanahan wrote:

>
> In 4.0.x, automatically deployed contexts with no  entry do not
> have any resources assigned to match up the resource references.
> Therefore, you must explicitly define such webapps in the server.xml file
> to give them access to the corresponding JNDI resources.


What's the story on double deployment? Can it make a mess of my operation?
What
wouldbe the preferable way of handling multiple virtual hosts with JNDI on
my mind?

So far, I've been just creating one user account per virtual host, make a
./webapp dir and setup  so it has appbase point to
~account/webapp.
Then I would add any "system" contexts, like /docs and /manager.


> In the HEAD branch (what will become 4.1), Tomcat supports the notion of
a
> separate "context descriptor file", which is an XML file that just
> contains the  element for a particular webapp, plus all of its
> nested elements.  This gives you the following options (in addition to
the
> auto-deploy support in 4.0):
>
> * Put a context description file in the appBase
>   directory and that webapp will be auto-deployed
>   with its resource definitions.
>
> * Use the /install command of the Manager webapp
>   to dynamically deploy a context description file
>   (and associated WAR or webapp directory).
>
> You can see this in action with a nightly build of Tomcat 4 -- the Admin
> and Manager webapps themselves are deployed in this way.

So, this is a CVS beta or what? Anyway, it looks nice.

Oh, and one last thing. I'm using 4.0.1 and like some other guys, SAX is
spitting an error on my web.xml:

PARSE error at line 68 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,des
cription?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessi

on-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-

constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".


My web.xml file is:


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


   E-Mail address book Admin GUI

   
 OrgUnitServlet
 yu.co.ev.EVnet.mail.OrgUnitServlet
   
 RedirectURL
 orgUnitDisplay.jsp?id=
 URL to redirect a client
   
   
   
 OrgUnitServlet
 /servlets/OrgUnit
   

   
 EmailUserServlet
 yu.co.ev.EVnet.mail.EUserServlet
 
   RedirectURL
   eUserDisplay.jsp?id=
   URL to redirect a client
 
   
   
 EmailUserServlet
 /servlets/EUser
   

   
 
   javax.sql.DataSource for this application,
   as configured in server.xml
 
 jdbc/AddressBookDB
 javax.sql.DataSource
 container
   


The only thing I've done is add  part. The ordering of
elements
seams to be OK. So, what could be the problem?

Nix.


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









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




RE: Where can I find archives for this list?

2002-03-15 Thread Ganey, Todd

Try looking at this list of archives under the section "Archives and
searching"

http://jakarta.apache.org/site/mail2.html

HTH,
Todd

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 11:34 AM
To: Tomcat Users List
Subject: Where can I find archives for this list?



This list is not archived at google. Any idea where I can find searchable
archives to this list?
thanks,
suha.





[EMAIL PROTECTED] on 03/15/2002 10:57:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Tomcat starts new session in servlet. Is this a bug?


Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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









This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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



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




Re: jndi versus database connection pooling

2002-03-15 Thread Nikola Milutinovic

Craig R. McClanahan wrote:

> 
> In 4.0.x, automatically deployed contexts with no  entry do not
> have any resources assigned to match up the resource references.
> Therefore, you must explicitly define such webapps in the server.xml file
> to give them access to the corresponding JNDI resources.


What's the story on double deployment? Can it make a mess of my operation? What 
wouldbe the preferable way of handling multiple virtual hosts with JNDI on my mind?

So far, I've been just creating one user account per virtual host, make a 
./webapp dir and setup  so it has appbase point to ~account/webapp. 
Then I would add any "system" contexts, like /docs and /manager.


> In the HEAD branch (what will become 4.1), Tomcat supports the notion of a
> separate "context descriptor file", which is an XML file that just
> contains the  element for a particular webapp, plus all of its
> nested elements.  This gives you the following options (in addition to the
> auto-deploy support in 4.0):
> 
> * Put a context description file in the appBase
>   directory and that webapp will be auto-deployed
>   with its resource definitions.
> 
> * Use the /install command of the Manager webapp
>   to dynamically deploy a context description file
>   (and associated WAR or webapp directory).
> 
> You can see this in action with a nightly build of Tomcat 4 -- the Admin
> and Manager webapps themselves are deployed in this way.

So, this is a CVS beta or what? Anyway, it looks nice.

Oh, and one last thing. I'm using 4.0.1 and like some other guys, SAX is 
spitting an error on my web.xml:

PARSE error at line 68 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must match 
"(icon?,display-name?,des
cription?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessi
on-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-
constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".

My web.xml file is:


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


   E-Mail address book Admin GUI

   
 OrgUnitServlet
 yu.co.ev.EVnet.mail.OrgUnitServlet
   
 RedirectURL
 orgUnitDisplay.jsp?id=
 URL to redirect a client
   
   
   
 OrgUnitServlet
 /servlets/OrgUnit
   

   
 EmailUserServlet
 yu.co.ev.EVnet.mail.EUserServlet
 
   RedirectURL
   eUserDisplay.jsp?id=
   URL to redirect a client
 
   
   
 EmailUserServlet
 /servlets/EUser
   

   
 
   javax.sql.DataSource for this application,
   as configured in server.xml
 
 jdbc/AddressBookDB
 javax.sql.DataSource
 container
   


The only thing I've done is add  part. The ordering of elements 
seams to be OK. So, what could be the problem?

Nix.


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




Where can I find archives for this list?

2002-03-15 Thread suha_yacoub


This list is not archived at google. Any idea where I can find searchable
archives to this list?
thanks,
suha.





[EMAIL PROTECTED] on 03/15/2002 10:57:23 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

To:   [EMAIL PROTECTED]
cc:
Subject:  Tomcat starts new session in servlet. Is this a bug?


Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential
and/or exempt from disclosure under applicable law. If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution, or use of the information contained herein (including any
reliance thereon) is STRICTLY PROHIBITED. If you received this transmission
in error, please immediately contact the sender and destroy the material in
its entirety, whether in electronic or hard copy format. Thank you.


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









This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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




Re: Information required _getString()

2002-03-15 Thread August Detlefsen

If there are no line breaks stored, then of course you will not get any
out. 

What database are you using? Maybe it doesn't allow line breaks in the
VARCHAR type?
 
What are you using to get the values IN to the database? Are you using
some JDBC abstraction that strips the line breaks prior to INSERT?

What DB driver are you using? Maybe it is flawed? 




--- puneet sachar <[EMAIL PROTECTED]> wrote:
> Listen August 
> 
> the values store in database not with line break but
> as white space
> 
> u do one thing include a text area and then add thre
> values in database the value store and goes as white
> space no line break ..
> 
> plz help me 
> try to find out ...with more people 
> 
> and thanx a lot for ur support
> 
> Reagrds
> Puneet Sachar
> e-Developer
> Shyama software solutions
> New Delhi
> 91-011-4675836
> --- August Detlefsen <[EMAIL PROTECTED]> wrote:
> > Puneet, 
> > 
> > Are the entries stored in the DB with the line
> > breaks? Do you just need
> > a way to translate \n or \r\n to  for display on
> > the HTML page? 
> > 
> > 
> > 
> > --- puneet sachar <[EMAIL PROTECTED]> wrote:
> > > Hello fellow developer
> > > 
> > > I got stuck somewhere 
> > > 
> > > actually there is a form which collect the detail
> > > resume of the candidate and in database it is
> > saved as
> > > string of varchar(7000) in sql database
> > > 
> > > now when i collect that data base by sending the
> > > required querry the resume is colected through get
> > > string ..
> > > 
> > > No problem is that 
> > > if the resume mention like this ..
> > > "
> > > Resume 
> > > 
> > > 
> > > Candidate name - two
> > > 
> > > ,,
> > > 
> > > 
> > > 
> > > "
> > > 
> > > but when i want to print ..evry cahracter comes in
> > st.
> > > line ..
> > > 
> > > 
> > > how i get in the same patten as filled by
> > candidate 
> > > 
> > > "PLZ i cannot change the database."
> > > 
> > > 
> > > Reagrds
> > > Puneet Sachar
> > > 
> > > __
> > > Do You Yahoo!?
> > > Yahoo! Sports - live college hoops coverage
> > > http://sports.yahoo.com/
> > > 
> > > --
> > > To unsubscribe:  
> > 
> > > For additional commands:
> > 
> > > Troubles with the list:
> > 
> > > 
> > 
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> > 
> > For additional commands:
> > 
> > Troubles with the list:
> > 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




RE: Tomcat and JDK 1.1.8

2002-03-15 Thread Larry Isaacs

One of the requirements for Tomcat 3.3 is that is be able to
run on JDK 1.1.8.  However, I don't believe the binary
distributions will run on JDK 1.1.8 because they are built
with Java 2 and with JSSE available.  You will likely have to
build your version of Tomcat 3.3 from source.  Download the
source distribution and check the README in the top level
directory for details.

Cheers,
Larry

> -Original Message-
> From: Mario Alberto Haza Treviño [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, March 15, 2002 1:07 PM
> To: [EMAIL PROTECTED]
> Subject: Tomcat and JDK 1.1.8
> 
> 
> We have a java application that run under JDK 1.1.8 on 
> Solaris and OAS.
> 
> Right now we're planning to put jsps that access some java 
> beans from that application using Tomcat.
> 
> Our production environment will be Solaris 2.7 and our tests 
> environment will be Red Hat Linux (could be 6.2, 7.1 or the 
> one that we are using 7.2).
> 
> The question is: which version of tomcat /apache is 
> compatible with JDK 1.1.8?
> 
> I know it's up to date but it very difficult to us to migrate 
> to a newr version of JDK.
> 
> --
> Mario Haza
> Jefe de Internet / MultiPack
> 5230-8970 ext. 2787
> www.multipack.com.mx
> 
> 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




RE: Novice here! Classpath issue...Tomcat 3.3/IIS5.0/Win2k/Oracle

2002-03-15 Thread Randy Layman


You are calling Long.parseLong with a string parameter that is null
(either equal to null or is a literal "null" - I can't remember how this
message is structured right now).

You are making the call from line 77 of the generated .java file for
the JSP page.

Randy

> -Original Message-
> From: Robert Keddie [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 1:00 PM
> To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Cc: Jim Saullo
> Subject: RE: Novice here! Classpath issue...Tomcat
> 3.3/IIS5.0/Win2k/Oracle
> 
> 
> I did everything you said and now I get this error( last 
> error gone which is good!)...what could this mean?
> 
> 2002-03-15 08:49:10 - Ctx(/marion) : Exception in R( /marion 
> + /permit_details.jsp + null) - javax.servlet.Ser
> vletException: null
> at 
> org.apache.jasper.runtime.PageContextImpl.handlePageException(
> PageContextImpl.java:460)
> at permit_details_1._jspService(permit_details_1.java:430)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandl
> er.java:484)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at 
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler
> .java:432)
> at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:915)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
> at 
> org.apache.tomcat.modules.server.Ajp12Interceptor.processConne
> ction(Ajp12Interceptor.java:207)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:477)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:517)
> at java.lang.Thread.run(Thread.java:484)
> Root cause:
> java.lang.NumberFormatException: null
> at java.lang.Long.parseLong(Long.java:279)
> at java.lang.Long.parseLong(Long.java:363)
> at permit_details_1._jspService(permit_details_1.java:77)
> at 
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(ServletHandl
> er.java:484)
> at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
> at org.apache.tomcat.core.Handler.service(Handler.java:235)
> at 
> org.apache.tomcat.facade.ServletHandler.service(ServletHandler
> .java:432)
> at 
> org.apache.tomcat.core.ContextManager.internalService(ContextM
> anager.java:915)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
> at 
> org.apache.tomcat.modules.server.Ajp12Interceptor.processConne
> ction(Ajp12Interceptor.java:207)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoi
> nt.java:477)
> at 
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(
> ThreadPool.java:517)
> at java.lang.Thread.run(Thread.java:484)
> 
> Robert Keddie
> web development
> Marion County, FL
> 
> Robert Keddie
> web development
> Marion County, FL
> 
> >>> [EMAIL PROTECTED] 03/14/02 11:19AM >>>
> Note that the tomcat.bat batch file includes:
> 
> set CLASSPATH=%TOMCAT_INSTALL%\lib\tomcat.jar
> 
> which will override your previously set CLASSPATH environment
> variable.  For info on the recommended way to add classes to
> Tomcat 3.3, please refer to:
> 
>  l#configuring_classes>
> 
> I would recommend as a first approach, renaming the two ".zip" files
> to ".jar" files and copy them to TOMCAT_HOME\lib\common.
> 
> Cheers,
> Larry
> 
> > -Original Message-
> > From: Robert Keddie [mailto:[EMAIL PROTECTED]] 
> > Sent: Thursday, March 14, 2002 11:02 AM
> > To: [EMAIL PROTECTED] 
> > Cc: Jim Saullo
> > Subject: Novice here! Classpath issue...Tomcat 
> 3.3/IIS5.0/Win2k/Oracle
> > 
> > 
> > I recieve the following error, but I shouldn't because the 
> > classpath has the following : 
> > CLASSPATH=.;C:\jdk1.3.1;C:\Oracle\Ora81\jdbc\lib\classes111.zi
> > p;C:\Oracle\Ora81\jdbc\lib\nls_charset11.zip;
> > 
> > Im using Tomcat 3.3 on IIS 5.0 on Win 2k ... the page source 
> > is at the bottom.
> > When I first received this error I made subfolders under 
> > classes/oracle/jbdc/driver/* with the oracle driver classes 
> > but it then couldnt process this part  
> > "call.registerOutParameter(2, OracleTypes.CURSOR);   
> > call.registerOutParameter(3, OracleTypes.CURSOR)" of the page 
> > source at bottom. 
> > Please anyone help this novice!
> > 
> > 2002-03-14 08:25:52 - ServerXmlReader: 
> > Config=$TOMCAT_HOME\conf\server.xml
> > 2002-03-14 08:25:52 - PathSetter: home

JDBCRealm SQLException

2002-03-15 Thread Joe Clem

I am having some form authentication issues using the JDBCRealm.

First, when a user logs in I have noticed many of the following message
in the stderr log file:

  ContextManager: JDBCRealm: The database connection is null or was
found to be closed: Trying to re-open it

Sometimes the user will not be authenticated and be asked to try again.
When this happens the following are the errors messages in the stderr
log:

ContextManager: JDBCRealm: The database connection is null or was found
to be closed: Trying to re-open it.

ContextManager: JDBCRealm: There was an SQLException in authenticate:
username

ContextManager: JDBCRealm: SQLException:java.sql.SQLException:Connection
reset by peer: JVM_recv in socket input stream read.

configuration
tomcat 3.2.3
Oracle 8i database
Using Oracle 8i jdbc thin driver

I tried looking in the archives for similar problems, but I can't seem
to get there at this time.

Thanks for any help.

Joe


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




Re: how to set truststore

2002-03-15 Thread Daniel Fisher

Is anyone using Tomcat 4 / JDK 1.4 with SSL and client authentication?

I've also experienced many JVM core dumps with this setup.
I can't reliably reproduce it, so I have submitted a bug report yet.
(I'm running the Linux JDK 1.4 on FreeBSD, which may be the cause of these problems)
It does appear to be related to SSL and client authentication.
Thanks in advance for any help.

-- 
Daniel Fisher


On Fri 15 Mar 02 11:57, you wrote:
> I did the same thing as you and it worked expect I was using JDK 1.3.  Also
> you need to set the trust store password unless you use the default.
>
> Tim
>
> -Original Message-
> From: Daniel Fisher [mailto:[EMAIL PROTECTED]]
> Sent: Friday, March 15, 2002 10:19 AM
> To: [EMAIL PROTECTED]
> Subject: how to set truststore
>
>
> Hello,
> I'm having a problem setting the truststore in Tomcat 4.0.3 using JDK 1.4.0
> In server.xml there doesn't appear to be a parameter I can use in the
> Factory tag, like there is for keystoreFile.
> I've tried setting System.setProperty("javax.net.ssl.trustStore",
> "path_to_certs"); in my class, but that doesn't work.
> I've also edited catalina.sh and added
> -Djavax.net.ssl.trustStore=path_to_certs to the CATALINA_OPTS variable, but
> that doesn't work either.
> I know it is still loading the default Java cacerts file, because I set
> -Djavax.net.debug=ssl.
>
> I'm attempting to do client authentication and because I can't seem to load
> my certificates I get this exception:
> Exception while waiting for close javax.net.ssl.SSLHandshakeException:
> Received fatal alert: bad_certificate
>
> Thanks in advance for any help.



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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread James Williamson

> In httpd.conf, are you doing a redirect [R] or a passthrough [PT] ?

I'm guess I'm using RewriteRule (I'll read the docs now), which tells me
this:

192.168.0.101 - - [15/Mar/2002:18:06:36+]
[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
al] (2) init rewrite engine with requested uri /
192.168.0.101  - - [15/Mar/2002:18:06:36 +]
[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
al] (3) applying pattern '^/$' to uri '/'
192.168.0.101  - - [15/Mar/2002:18:06:36 +]
[www.nameonthe.net/sid#80cd06c][rid#811d54c/initi
al] (2) rewrite / -> /index.jsp

Yet tomcat's logs show me this:

2002-03-15 18:06:36 StandardContext[]: Mapping contextPath='' with
requestURI='/' and relativeURI=
'/'

>
> Assuming you're not explicitly redirecting the request, you should
probably
> check your modifications to whichever tomcat module you're using in
Apache.
> The thing to look, I think, is which URI is being set into the request
> structure.  The mod_webapp module does this early on in wam_match() before
> mod_rewrite has a chance to do its work:
>
>  ap_set_module_config(r->request_config, &webapp_module, appl);

I had a look at this, it's only setting the application to use, not the
path.

>
> I essentially moved this bit to wam_invoke() which happens last when the
> request is actually serviced.

Quite right, no disrespect but the url rewriting stage isn't the right stage
in Apache's handling cycle
to put this sort of thing, especially when it returns OK without letting the
'proper' rewriters have a look.

>
> I'm not one of the developers on this project, so I'm guessing here and
> there.  It would probably be worth running your modifications by the
> tomcat-dev mailing list or Pier Fumagalli ([EMAIL PROTECTED]) who's
name
> is on the webapp.c module, if they have time to listen.  My impression is
> that this group of developers decided to explicitly over-ride mod_rewrite
> because they thought this would result in a truer implementation of Sun's
> servlet API.

Hmm, I think that's being charitable...

>
> Dan
>
>
> At 04:21 PM 3/15/02 +, James Williamson wrote:
> >Thanks Dan,
> >
> >Actually I did something pretty similar (changing OK to DECLINED in
> >wam_match), knowing that after a handler in the url rewrite stage has
> >returned OK no other (such as mod_rewrite) gets a look in. However, this
> >still didn't work for me, even though mod_rewrite in the logs said it'd
> >rewritten / as /index.jsp, I still got the 302?
> >
> >James
> >
> >- Original Message -
> >From: Dan Lindy <[EMAIL PROTECTED]>
> >To: James Williamson <[EMAIL PROTECTED]>; Edam Cheeseman
> ><[EMAIL PROTECTED]>
> >Cc: Tomcat Users List <[EMAIL PROTECTED]>
> >Sent: Friday, March 15, 2002 4:20 PM
> >Subject: Re: OFFTOPIC: apache mod_rewrite
> >
> >
> > > James et al.,
> > >
> > > I use hacked version of mod_webapp.c on Apache 1.3 to do exactly this.
> > > My modifications may be crude, but it's worked well for me so far:
> > >
> > >  /* Match an Apache request */
> > >  static int wam_match(request_rec *r) {
> > >  wa_virtualhost *host=NULL;
> > >  //wa_application *appl=NULL;
> > >  //wa_chain *elem=NULL;
> > >
> > >  /* Paranoid check */
> > >  if (!wam_initialized) return(DECLINED);
> > >
> > >  /* Check if this host was recognized */
> > >
> >host=ap_get_module_config(r->server->module_config,&webapp_module);
> > >  if (host==NULL) return(DECLINED);
> > >
> > >  ///* Check if the uri is contained in one of our
applications
> > > root path */
> > >  //elem=host->apps;
> > >  //while(elem!=NULL) {
> > >  //appl=(wa_application *)elem->curr;
> > >  //if
(strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0)
> >break;
> > >  //
> > >  //appl=NULL;
> > >  //elem=elem->next;
> > >  //}
> > >  //if (appl==NULL) return(DECLINED);
> > >
> > >  /* The uri path is matched: set the handler and return */
> > >  r->handler=ap_pstrdup(r->pool,"webapp-handler");
> > >
> > >  ///* Set the webapp request structure into Apache's
request
> > > structure */
> > >  //ap_set_module_config(r->request_config, &webapp_module,
> >appl);
> > >  //return(OK);
> > >  return(DECLINED);  // added
> > >
> > >  }
> > >
> > >  /* Handle the current request */
> > >  static int wam_invoke(request_rec *r) {
> > >  server_rec *svr=r->server;
> > >  conn_rec *con=r->connection;
> > >  wa_virtualhost *host=NULL;   // added
> > >  wa_application *appl=NULL;
> > >  wa_chain *elem=NULL; // added
> > >  wa_request *req=NULL;
> > >  const char *msg=NULL;
> > >  char *stmp=NULL;
> > >  char *ctmp=NULL;
> > >  char *ssl_t

mysql-jdbc in redhat linux

2002-03-15 Thread Paul Phillips

This is not a question, but rather an answer.  After about three hours of 
work this morning, I found out why my tomcat configuration (which worked 
fine on my Solaris development server) was not working under redhat linux 
7.2.

I use Tomcat with mysql and jdbc to do both authentication, and serve up 
the data of my site.

The issue apparently has to do with how redhat configures mysql.  A user 
must be configured in the mysql grant tables as [EMAIL PROTECTED] 
- NOT just as user@localhost.

Then, the normal mm.mysql driver, jdbc syntax works to connect to it just 
fine.
Note that the jdbc syntax doesn't have to include the "localdomain", only 
the mysql grant table.

Without that "localdomain" in the mysql grant table, the connection is 
always refused.

Regards,
Paul Phillips

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




AW: Tomcat and JDK 1.1.8

2002-03-15 Thread Michael Weissenbacher

sorry, afaik, tomcat is only compatible with jdk>=1.2
i think you can use jserv with gnujsp for jsp's, but i have never tried that

michael

-Ursprüngliche Nachricht-
Von: Mario Alberto Haza Treviño [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 15. März 2002 19:07
An: [EMAIL PROTECTED]
Betreff: Tomcat and JDK 1.1.8


We have a java application that run under JDK 1.1.8 on Solaris and OAS.

Right now we're planning to put jsps that access some java beans from
that application using Tomcat.

Our production environment will be Solaris 2.7 and our tests environment
will be Red Hat Linux (could be 6.2, 7.1 or the one that we are using
7.2).

The question is: which version of tomcat /apache is compatible with JDK
1.1.8?

I know it's up to date but it very difficult to us to migrate to a newr
version of JDK.

--
Mario Haza
Jefe de Internet / MultiPack
5230-8970 ext. 2787
www.multipack.com.mx



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

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




Re: Information required _getString()

2002-03-15 Thread puneet sachar

Listen August 

the values store in database not with line break but
as white space

u do one thing include a text area and then add thre
values in database the value store and goes as white
space no line break ..

plz help me 
try to find out ...with more people 

and thanx a lot for ur support

Reagrds
Puneet Sachar
e-Developer
Shyama software solutions
New Delhi
91-011-4675836
--- August Detlefsen <[EMAIL PROTECTED]> wrote:
> Puneet, 
> 
> Are the entries stored in the DB with the line
> breaks? Do you just need
> a way to translate \n or \r\n to  for display on
> the HTML page? 
> 
> 
> 
> --- puneet sachar <[EMAIL PROTECTED]> wrote:
> > Hello fellow developer
> > 
> > I got stuck somewhere 
> > 
> > actually there is a form which collect the detail
> > resume of the candidate and in database it is
> saved as
> > string of varchar(7000) in sql database
> > 
> > now when i collect that data base by sending the
> > required querry the resume is colected through get
> > string ..
> > 
> > No problem is that 
> > if the resume mention like this ..
> > "
> > Resume 
> > 
> > 
> > Candidate name - two
> > 
> > ,,
> > 
> > 
> > 
> > "
> > 
> > but when i want to print ..evry cahracter comes in
> st.
> > line ..
> > 
> > 
> > how i get in the same patten as filled by
> candidate 
> > 
> > "PLZ i cannot change the database."
> > 
> > 
> > Reagrds
> > Puneet Sachar
> > 
> > __
> > Do You Yahoo!?
> > Yahoo! Sports - live college hoops coverage
> > http://sports.yahoo.com/
> > 
> > --
> > To unsubscribe:  
> 
> > For additional commands:
> 
> > Troubles with the list:
> 
> > 
> 
> 
> __
> Do You Yahoo!?
> Yahoo! Sports - live college hoops coverage
> http://sports.yahoo.com/
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: Realm configuration in jsp

2002-03-15 Thread Fabien Nisol

Thank you for your quick reply !... I'm looking forward for "Global JNDI 
Resources" and how to adapt my code to this ...




>On Fri, 15 Mar 2002 [EMAIL PROTECTED] wrote:
>
> > Date: Fri, 15 Mar 2002 11:40:02 -0500
> > From: [EMAIL PROTECTED]
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: Realm configuration in jsp
> >
> > Hello all !
> >
> > I'm currently developping a web application under tomcat, and I've a
> > question for you all.
> > Like a lot of us, I had to develop jsp pages which permits the remote user
> > to manage user accounts that can use the application... I'm facing a little
> > design problem : Tomcat realms (and jsp/servlet specification) permit to
> > Authenticate a user, not change its configuration...
> > No problem with that, but when it comes to develop the jsp that I did, you
> > have to access the same Realm repository (JDBC/ Memory / LDAP) that the one
> > used in Authentication.
> >
> > My current implementation force me to define JNDI resources that are clones
> > of realm entries defined in server.xml, which I dislike (if you change
> > something in realm configuration, don't forget to change it in Realm Write
> > Access properties)
> >
> > My Question:
> >
> > How to get the Realm configuration used in the current application 
> Context /
> > Container ??? I looked into JNDI Resource HOW-TO, but I see nothing to get
> > server.xml configuration ...
> >
>
>In Tomcat 4.0.x, you're pretty much stuck having to remember to change two
>sets of configuration entries to access the underlying resources like
>this.
>
>In the HEAD branch of Tomcat 4 (i.e. what is built in the nightly builds,
>and what will become Tomcat 4.1) there is the notion of "Global JNDI
>Resources" where you can declare a shared resource once, and then link to
>it from multiple places.  The admin webapp (also being built for the HEAD
>branch) uses just this kind of trick to have a webapp that is able to
>administer the very same user database that Tomcat is using to
>authenticate, but without having to configure the access properties more
>than once.
>
> > Please, help !
> >
> > Fabien Nisol
> >
>
>Craig
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


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




Tomcat and JDK 1.1.8

2002-03-15 Thread Mario Alberto Haza Treviño

We have a java application that run under JDK 1.1.8 on Solaris and OAS.

Right now we're planning to put jsps that access some java beans from
that application using Tomcat.

Our production environment will be Solaris 2.7 and our tests environment
will be Red Hat Linux (could be 6.2, 7.1 or the one that we are using
7.2).

The question is: which version of tomcat /apache is compatible with JDK
1.1.8?

I know it's up to date but it very difficult to us to migrate to a newr
version of JDK.

--
Mario Haza
Jefe de Internet / MultiPack
5230-8970 ext. 2787
www.multipack.com.mx



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




RE: Novice here! Classpath issue...Tomcat3.3/IIS5.0/Win2k/Oracle

2002-03-15 Thread Robert Keddie

I did everything you said and now I get this error( last error gone which is 
good!)...what could this mean?

2002-03-15 08:49:10 - Ctx(/marion) : Exception in R( /marion + /permit_details.jsp + 
null) - javax.servlet.Ser
vletException: null
at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:460)
at permit_details_1._jspService(permit_details_1.java:430)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:484)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:432)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:915)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
at 
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Interceptor.java:207)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:517)
at java.lang.Thread.run(Thread.java:484)
Root cause:
java.lang.NumberFormatException: null
at java.lang.Long.parseLong(Long.java:279)
at java.lang.Long.parseLong(Long.java:363)
at permit_details_1._jspService(permit_details_1.java:77)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(ServletHandler.java:484)
at org.apache.tomcat.core.Handler.invoke(Handler.java:322)
at org.apache.tomcat.core.Handler.service(Handler.java:235)
at org.apache.tomcat.facade.ServletHandler.service(ServletHandler.java:432)
at 
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:915)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:831)
at 
org.apache.tomcat.modules.server.Ajp12Interceptor.processConnection(Ajp12Interceptor.java:207)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:477)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:517)
at java.lang.Thread.run(Thread.java:484)

Robert Keddie
web development
Marion County, FL

Robert Keddie
web development
Marion County, FL

>>> [EMAIL PROTECTED] 03/14/02 11:19AM >>>
Note that the tomcat.bat batch file includes:

set CLASSPATH=%TOMCAT_INSTALL%\lib\tomcat.jar

which will override your previously set CLASSPATH environment
variable.  For info on the recommended way to add classes to
Tomcat 3.3, please refer to:



I would recommend as a first approach, renaming the two ".zip" files
to ".jar" files and copy them to TOMCAT_HOME\lib\common.

Cheers,
Larry

> -Original Message-
> From: Robert Keddie [mailto:[EMAIL PROTECTED]] 
> Sent: Thursday, March 14, 2002 11:02 AM
> To: [EMAIL PROTECTED] 
> Cc: Jim Saullo
> Subject: Novice here! Classpath issue...Tomcat 3.3/IIS5.0/Win2k/Oracle
> 
> 
> I recieve the following error, but I shouldn't because the 
> classpath has the following : 
> CLASSPATH=.;C:\jdk1.3.1;C:\Oracle\Ora81\jdbc\lib\classes111.zi
> p;C:\Oracle\Ora81\jdbc\lib\nls_charset11.zip;
> 
> Im using Tomcat 3.3 on IIS 5.0 on Win 2k ... the page source 
> is at the bottom.
> When I first received this error I made subfolders under 
> classes/oracle/jbdc/driver/* with the oracle driver classes 
> but it then couldnt process this part  
> "call.registerOutParameter(2, OracleTypes.CURSOR);   
> call.registerOutParameter(3, OracleTypes.CURSOR)" of the page 
> source at bottom. 
> Please anyone help this novice!
> 
> 2002-03-14 08:25:52 - ServerXmlReader: 
> Config=$TOMCAT_HOME\conf\server.xml
> 2002-03-14 08:25:52 - PathSetter: home=C:\jakarta-tomcat 
> 2002-03-14 08:25:52 - ContextXmlReader: Context 
> config=$TOMCAT_HOME\conf\apps-127.0.0.1.xml
> 2002-03-14 08:25:52 - ContextXmlReader: Context 
> config=$TOMCAT_HOME\conf\apps-admin.xml
> 2002-03-14 08:25:52 - ContextXmlReader: Context 
> config=$TOMCAT_HOME\conf\apps-examples.xml
> 2002-03-14 08:25:52 - AutoWebApp: Loaded from config: 
> DEFAULT:/admin 2002-03-14 08:25:52 - AutoWebApp: Loaded from 
> config: DEFAULT:/examples 2002-03-14 08:25:52 - AutoWebApp: 
> Auto-Adding DEFAULT:/marion 2002-03-14 08:25:52 - AutoWebApp: 
> Auto-Adding DEFAULT:/ 2002-03-14 08:25:52 - ContextManager: 
> Tomcat configured and in stable state 2002-03-14 08:25:52 - 
> ContextManager: Adding  DEFAULT:/admin 2002-03-14 08:25:52 - 
> ContextManager: Adding  DEFAULT:/examples 2002-03-14 08:25:52 
> - Context

Re: jndi versus database connection pooling

2002-03-15 Thread Micael Padraig Og mac Grene

This was a major help in making decisions and should answer about ten 
questions presently floating through the pages, Craig.  Good job!

At 09:17 AM 3/15/02 -0800, you wrote:


>On Fri, 15 Mar 2002, Nikola Milutinovic wrote:
>
> > Date: Fri, 15 Mar 2002 14:08:38 +0100
> > From: Nikola Milutinovic <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: jndi versus database connection pooling
> >
> > > I use the JNDI based connection pool with Postgres quite successfully.
> > > You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a
> > > server.xml configuration something like this:
> >
> > Finally, someone using PostgreSQL...
> >
> > >   
> >
> > What about "automatically deployed contexts"? I usually set a virtual
> > host, with it's "appbase", for automatic context deployment. If I define
> > the auto-deploy context I will have it deployed twice - no exactly what
> > I want.
> >
>
>In 4.0.x, automatically deployed contexts with no  entry do not
>have any resources assigned to match up the resource references.
>Therefore, you must explicitly define such webapps in the server.xml file
>to give them access to the corresponding JNDI resources.
>
>In the HEAD branch (what will become 4.1), Tomcat supports the notion of a
>separate "context descriptor file", which is an XML file that just
>contains the  element for a particular webapp, plus all of its
>nested elements.  This gives you the following options (in addition to the
>auto-deploy support in 4.0):
>
>* Put a context description file in the appBase
>   directory and that webapp will be auto-deployed
>   with its resource definitions.
>
>* Use the /install command of the Manager webapp
>   to dynamically deploy a context description file
>   (and associated WAR or webapp directory).
>
>You can see this in action with a nightly build of Tomcat 4 -- the Admin
>and Manager webapps themselves are deployed in this way.
>
> > Nix.
> >
>
>Craig
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




Re: Realm configuration in jsp

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002 [EMAIL PROTECTED] wrote:

> Date: Fri, 15 Mar 2002 11:40:02 -0500
> From: [EMAIL PROTECTED]
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: Realm configuration in jsp
>
> Hello all !
>
> I'm currently developping a web application under tomcat, and I've a
> question for you all.
> Like a lot of us, I had to develop jsp pages which permits the remote user
> to manage user accounts that can use the application... I'm facing a little
> design problem : Tomcat realms (and jsp/servlet specification) permit to
> Authenticate a user, not change its configuration...
> No problem with that, but when it comes to develop the jsp that I did, you
> have to access the same Realm repository (JDBC/ Memory / LDAP) that the one
> used in Authentication.
>
> My current implementation force me to define JNDI resources that are clones
> of realm entries defined in server.xml, which I dislike (if you change
> something in realm configuration, don't forget to change it in Realm Write
> Access properties)
>
> My Question:
>
> How to get the Realm configuration used in the current application Context /
> Container ??? I looked into JNDI Resource HOW-TO, but I see nothing to get
> server.xml configuration ...
>

In Tomcat 4.0.x, you're pretty much stuck having to remember to change two
sets of configuration entries to access the underlying resources like
this.

In the HEAD branch of Tomcat 4 (i.e. what is built in the nightly builds,
and what will become Tomcat 4.1) there is the notion of "Global JNDI
Resources" where you can declare a shared resource once, and then link to
it from multiple places.  The admin webapp (also being built for the HEAD
branch) uses just this kind of trick to have a webapp that is able to
administer the very same user database that Tomcat is using to
authenticate, but without having to configure the access properties more
than once.

> Please, help !
>
> Fabien Nisol
>

Craig


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




Re: help with realm setup

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Tony Dahbura wrote:

> Date: Fri, 15 Mar 2002 11:27:40 -0500
> From: Tony Dahbura <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: help with realm setup
>
> Micael:
>
> Thanks for the data.  The question I have though is that I am using the
> role-name but this only applies to roles that map (basically as groups)
> against a series of users that authenticate.  I need to map directly
> against the user without having roles.
>
> So I need to be able to do a 1-1 mapping of access to a user without
> having roles/groups setup.  Can this be done when I have no control over
> the jndi source to control it?  Meaning I am trying to use a jndi or
> whatever source for authentication and say if the person passed in a
> valid userid and password of X how do I let them in?
>

Security constraints in web.xml are specified *only* in terms of roles,
not usernames.  Therefore, if you want a 1:1 mapping, you'll have to
(somewhere on the line) convince whichever Realm you are using to look up
usernames instead of rolenames when the request.isUserInRole() method is
executed.  That may or may not take a code change, depending on which
realm you are using.

> Thanks,
> Tony

Craig


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




Re: AW: session listener

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Lauer, Oliver wrote:

> Date: Fri, 15 Mar 2002 11:30:05 +0100
> From: "Lauer, Oliver" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: AW: session listener
>
> Hi,
>
> you can create an object that implements HttpSessionBindingListener and
> store this object in your current session. This object will then be informed
> when the session gets bound and unbound.
>

Oliver's solution works for both Servlet 2.2 (Tomcat 3.x) and Servlet 2.3
(Tomcat 4.x).  If you are using Tomcat 4, however, you do have an
additional option -- you can register application event listeners in the
web.xml file that are notified of interesting events (such as session
creation and deletion, or changes to session attributes).  The "/examples"
webapp has some  elements to show you how they are registered.
Look in the API Javadocs for the following APIs:
  javax.servlet.ServletContextListener
  javax.servlet.ServletContextAttributeListener
  javax.servlet.http.HttpSessionListener
  javax.servlet.http.HttpSessionActivationListener
  javax.servlet.http.HttpSessionAttributeListener
for the interfaces you must implement.  The functionality is defined in
the Servlet 2.3 specification, which you can download at:

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


> Oliver


Craig


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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread Dan Lindy

In httpd.conf, are you doing a redirect [R] or a passthrough [PT] ?

Assuming you're not explicitly redirecting the request, you should probably 
check your modifications to whichever tomcat module you're using in Apache. 
The thing to look, I think, is which URI is being set into the request 
structure.  The mod_webapp module does this early on in wam_match() before 
mod_rewrite has a chance to do its work:

 ap_set_module_config(r->request_config, &webapp_module, appl);

I essentially moved this bit to wam_invoke() which happens last when the 
request is actually serviced.

I'm not one of the developers on this project, so I'm guessing here and 
there.  It would probably be worth running your modifications by the 
tomcat-dev mailing list or Pier Fumagalli ([EMAIL PROTECTED]) who's name 
is on the webapp.c module, if they have time to listen.  My impression is 
that this group of developers decided to explicitly over-ride mod_rewrite 
because they thought this would result in a truer implementation of Sun's 
servlet API.

Dan


At 04:21 PM 3/15/02 +, James Williamson wrote:
>Thanks Dan,
>
>Actually I did something pretty similar (changing OK to DECLINED in
>wam_match), knowing that after a handler in the url rewrite stage has
>returned OK no other (such as mod_rewrite) gets a look in. However, this
>still didn't work for me, even though mod_rewrite in the logs said it'd
>rewritten / as /index.jsp, I still got the 302?
>
>James
>
>- Original Message -
>From: Dan Lindy <[EMAIL PROTECTED]>
>To: James Williamson <[EMAIL PROTECTED]>; Edam Cheeseman
><[EMAIL PROTECTED]>
>Cc: Tomcat Users List <[EMAIL PROTECTED]>
>Sent: Friday, March 15, 2002 4:20 PM
>Subject: Re: OFFTOPIC: apache mod_rewrite
>
>
> > James et al.,
> >
> > I use hacked version of mod_webapp.c on Apache 1.3 to do exactly this.
> > My modifications may be crude, but it's worked well for me so far:
> >
> >  /* Match an Apache request */
> >  static int wam_match(request_rec *r) {
> >  wa_virtualhost *host=NULL;
> >  //wa_application *appl=NULL;
> >  //wa_chain *elem=NULL;
> >
> >  /* Paranoid check */
> >  if (!wam_initialized) return(DECLINED);
> >
> >  /* Check if this host was recognized */
> >
>host=ap_get_module_config(r->server->module_config,&webapp_module);
> >  if (host==NULL) return(DECLINED);
> >
> >  ///* Check if the uri is contained in one of our applications
> > root path */
> >  //elem=host->apps;
> >  //while(elem!=NULL) {
> >  //appl=(wa_application *)elem->curr;
> >  //if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0)
>break;
> >  //
> >  //appl=NULL;
> >  //elem=elem->next;
> >  //}
> >  //if (appl==NULL) return(DECLINED);
> >
> >  /* The uri path is matched: set the handler and return */
> >  r->handler=ap_pstrdup(r->pool,"webapp-handler");
> >
> >  ///* Set the webapp request structure into Apache's request
> > structure */
> >  //ap_set_module_config(r->request_config, &webapp_module,
>appl);
> >  //return(OK);
> >  return(DECLINED);  // added
> >
> >  }
> >
> >  /* Handle the current request */
> >  static int wam_invoke(request_rec *r) {
> >  server_rec *svr=r->server;
> >  conn_rec *con=r->connection;
> >  wa_virtualhost *host=NULL;   // added
> >  wa_application *appl=NULL;
> >  wa_chain *elem=NULL; // added
> >  wa_request *req=NULL;
> >  const char *msg=NULL;
> >  char *stmp=NULL;
> >  char *ctmp=NULL;
> >  char *ssl_temp;
> >  int ret=0;
> >
> >  /* Paranoid check */
> >  if (!wam_initialized) return(DECLINED);
> >
> >  // begin added...
> >
> >  /* Check if this host was recognized */
> >
>host=ap_get_module_config(r->server->module_config,&webapp_module);
> >  if (host==NULL) return(DECLINED);
> >
> >  /* Check if the uri is contained in one of our applications
> > root path */
> >  elem=host->apps;
> >  while(elem!=NULL) {
> >  appl=(wa_application *)elem->curr;
> >  if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0)
>break;
> >
> >  appl=NULL;
> >  elem=elem->next;
> >  }
> >  if (appl==NULL) return(DECLINED);
> >
> >  /* Set the webapp request structure into Apache's request
> > structure */
> >  ap_set_module_config(r->request_config, &webapp_module,
>appl);
> >
> >  // ...end added
> >
> > Regards,
> > Dan Lindy
> >
> > At 04:02 PM 3/15/02 +, you wrote:
> > >Hi Paul,
> > >
> > >I sent a message to the dev list abou

tomcat+apache

2002-03-15 Thread Mariano

Hi folks,
I have installed tomcat 4.03 on linux redhat and apache 1.3.2
also i have download mod_webapp and integrated with apache following the
instruccions.
when i run tomcat i have the following meessage at the console
Starting service Tomcat-Standalone
Apache Tomcat/4.0.3
Starting service Tomcat-Apache
Apache Tomcat/4.0.3
i chech at the browser ah javadev:8180/examples  (my host) and works fine
but when i check without the port (just javadev/examples) it's fails. apache
is working fine because when i point javadev it tells me the server is
working ok.
i have added this lines to my http.conf(apache)
LoadModule webapp_module libexec/mod_webapp.so

AddModule mod_webapp.c



WebAppConnection conn warp localhost:8008

WebAppDeploy examples conn /examples

WebAppInfo /webapp-info



is it ok?

Thnks in advance

mariano




_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




Re: jndi versus database connection pooling

2002-03-15 Thread Craig R. McClanahan



On Fri, 15 Mar 2002, Nikola Milutinovic wrote:

> Date: Fri, 15 Mar 2002 14:08:38 +0100
> From: Nikola Milutinovic <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: jndi versus database connection pooling
>
> > I use the JNDI based connection pool with Postgres quite successfully.
> > You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a
> > server.xml configuration something like this:
>
> Finally, someone using PostgreSQL...
>
> >   
>
> What about "automatically deployed contexts"? I usually set a virtual
> host, with it's "appbase", for automatic context deployment. If I define
> the auto-deploy context I will have it deployed twice - no exactly what
> I want.
>

In 4.0.x, automatically deployed contexts with no  entry do not
have any resources assigned to match up the resource references.
Therefore, you must explicitly define such webapps in the server.xml file
to give them access to the corresponding JNDI resources.

In the HEAD branch (what will become 4.1), Tomcat supports the notion of a
separate "context descriptor file", which is an XML file that just
contains the  element for a particular webapp, plus all of its
nested elements.  This gives you the following options (in addition to the
auto-deploy support in 4.0):

* Put a context description file in the appBase
  directory and that webapp will be auto-deployed
  with its resource definitions.

* Use the /install command of the Manager webapp
  to dynamically deploy a context description file
  (and associated WAR or webapp directory).

You can see this in action with a nightly build of Tomcat 4 -- the Admin
and Manager webapps themselves are deployed in this way.

> Nix.
>

Craig



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




Re: AW: How to host a Site from Home without ISP

2002-03-15 Thread Robert H Clarence

Your post was way off topic, but since I took the time to read it I
figured I could replay Go to dslwebserver.com.  Great sight with
detailed instructions on how to set up a web server from home.

Enjoy

RHC
On Fri, 15 Mar 2002 10:54:53 EST [EMAIL PROTECTED] writes:
> 
> Sorry to all those I offended by posting up such questions. Anyway 
> thanxs Jim.
> 
> If anyone has a Site they can refer me to then please advise
> 
> Thanxs
> Amran
> 


GET INTERNET ACCESS FROM JUNO!
Juno offers FREE or PREMIUM Internet access for less!
Join Juno today!  For your FREE software, visit:
http://dl.www.juno.com/get/web/.

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




Re: FW: Help help

2002-03-15 Thread Ashutosh Aman


Tomcat 4.0.3 has a bug and it does not pick up the jar files automatically from 
web-inf/lib directory of your application.
you have two options:
copy your jar files to the global lib directory and erstart Tomcat or
Install Tomcat 4.0.4-b1 which does not have this bug.

Thanks
Aman


--

This e-mail may contain confidential and/or privileged information. If you are not the 
intended recipient (or have received this e-mail in error) please notify the sender 
immediately and destroy this e-mail. Any unauthorized copying, disclosure or 
distribution of the material in this e-mail is strictly forbidden.



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




Re: help with realm setup

2002-03-15 Thread Micael Padraig Og mac Grene

Sorry, Tony,

I jumped in too fast there.  If you want to do it without roles, then the 
manager is not the app for you.  Why don't you make your own app for 
ids?  There are many, many ways to do this.  What you want to do depends on 
the number of users you are talking about, etc., etc.  What you want to do 
is the first specification needed for anyone to give you advice.  But, I 
would not even think of trying to tweek the manager application for this 
purpose.  Build your own.  It will be simpler and better for its own uses.

Micael

At 11:27 AM 3/15/02 -0500, you wrote:
>Micael:
>Thanks for the data.  The question I have though is that I am using the
>role-name but this only applies to roles that map (basically as groups) 
>against
>a series of users that authenticate.  I need to map directly against the user
>without having roles.
>
>So I need to be able to do a 1-1 mapping of access to a user without having
>roles/groups setup.  Can this be done when I have no control over the jndi
>source to control it?  Meaning I am trying to use a jndi or whatever 
>source for
>authentication and say if the person passed in a valid userid and password 
>of X
>how do I let them in?
>
>Thanks,
>Tony
>
>
>Micael Padraig Og mac Grene wrote:
>
> > Just as a start, you need something more like the following.  You need to
> > look at how xml dtd are used.
> >
> > 
> >  
> >  
> >  Joes Grill
> >  /jsp/pigout.jsp
> >  
> >  
> >  hungryman
> >  
> >  
> >  
> >  
> >  Joes Grill
> >  /jsp/grill.jsp
> >  
> >  
> >  eater
> >  
> >  
> >  
> >  
> >  Joes Grill
> >  /jsp/uploads/upload.jsp
> >  
> >  
> >  uploader
> >  
> >  
> >  
> >  BASIC
> >  Joes Grill
> >  
> > 
> >
> > At 05:14 PM 3/14/02 -0500, you wrote:
> > >I would like to set up my realm to allow folks in by userid not by
> > >rolename.
> > >
> > >I do not know what the tag for the web.xml file should be The following
> > >is a sample security constraint.
> > >The role names are working fine, but I need to say if a user is tony or
> > >user is x then allow them in, but without the use of
> > >roles.
> > >
> > >
> > >   Example Security Constraint
> > >   
> > >  Protected Area
> > >  
> > >  /jsp/security/protected/*
> > >  
> > >
> > >  DELETE
> > >  GET
> > >  POST
> > >  PUT
> > >   
> > >   
> > >  
> > > 
> > > 
> > >  tony
> > >  marketing
> > >  role1
> > >   
> > > 
> > >
> > >Thanks,
> > >Tony
> > >
> > >
> > >
> > >--
> > >To unsubscribe:   
> > >For additional commands: 
> > >Troubles with the list: 
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
>
>--
>Tony Dahbura
>Director Client Services East
>Loudcloud Inc.
>4501 Singer Court
>Suite 200
>Chantilly, VA 20151
>voice: 703.653.6880
>fax: 703.961.8268
>[EMAIL PROTECTED]
>
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




RE: how to set truststore

2002-03-15 Thread Tim McClure

I did the same thing as you and it worked expect I was using JDK 1.3.  Also
you need to set the trust store password unless you use the default.

Tim

-Original Message-
From: Daniel Fisher [mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 10:19 AM
To: [EMAIL PROTECTED]
Subject: how to set truststore


Hello,
I'm having a problem setting the truststore in Tomcat 4.0.3 using JDK 1.4.0
In server.xml there doesn't appear to be a parameter I can use in the
Factory tag, like there is for keystoreFile.
I've tried setting System.setProperty("javax.net.ssl.trustStore",
"path_to_certs"); in my class, but that doesn't work.
I've also edited catalina.sh and added
-Djavax.net.ssl.trustStore=path_to_certs to the CATALINA_OPTS variable, but
that doesn't work either.
I know it is still loading the default Java cacerts file, because I set
-Djavax.net.debug=ssl.

I'm attempting to do client authentication and because I can't seem to load
my certificates I get this exception:
Exception while waiting for close javax.net.ssl.SSLHandshakeException:
Received fatal alert: bad_certificate

Thanks in advance for any help.

-- 
Daniel Fisher



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

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




Tomcat starts new session in servlet. Is this a bug?

2002-03-15 Thread suha_yacoub

Hello all,

I recently added a new context (virutal directory) to Tomcat.
My original context does not have this problem. In the new context,
Tomcat maintains two sessions per one user session. The JSPs
have one session id and the servlets have a different session id.
I must have mis-configured this new context. However, I don't see any
differences between the entries in web.xml + server.xml for each context.
I hope this is not a bug. Please help?

Thanks,
Suha.



This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


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




RE: Double loading of my application

2002-03-15 Thread Lance Smith

Paul ( I assume ),
Had the same trble with no answers also seemed to go away when I added
a path to my context statement like:

  

Hope this helps,
Lance

-Original Message-
From: Paul, Debra, & 4 Kids Mendelson
[mailto:[EMAIL PROTECTED]]
Sent: Friday, March 15, 2002 8:08 AM
To: Tomcat Users List
Subject: Double loading of my application


In my web application (described) below I am seeing my startup servlet
executing twice presumably because my application is loading twice.  Which
directive is causing my second load?

I have a Web application with a startup servlet described as follows:

MyStart
MyStart
0


I have tried to strip down my servlet.xml file to remove potential for
double loading my applictaion:
  

  
  



  
 
 
   
 
   
  




_

Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com




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


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




Realm configuration in jsp

2002-03-15 Thread Nisol . Fabien

Hello all !

I'm currently developping a web application under tomcat, and I've a
question for you all.
Like a lot of us, I had to develop jsp pages which permits the remote user
to manage user accounts that can use the application... I'm facing a little
design problem : Tomcat realms (and jsp/servlet specification) permit to
Authenticate a user, not change its configuration...
No problem with that, but when it comes to develop the jsp that I did, you
have to access the same Realm repository (JDBC/ Memory / LDAP) that the one
used in Authentication.

My current implementation force me to define JNDI resources that are clones
of realm entries defined in server.xml, which I dislike (if you change
something in realm configuration, don't forget to change it in Realm Write
Access properties)

My Question:

How to get the Realm configuration used in the current application Context /
Container ??? I looked into JNDI Resource HOW-TO, but I see nothing to get
server.xml configuration ...

Please, help !

Fabien Nisol





Re: help with realm setup

2002-03-15 Thread Tony Dahbura

Micael:
Thanks for the data.  The question I have though is that I am using the
role-name but this only applies to roles that map (basically as groups) against
a series of users that authenticate.  I need to map directly against the user
without having roles.

So I need to be able to do a 1-1 mapping of access to a user without having
roles/groups setup.  Can this be done when I have no control over the jndi
source to control it?  Meaning I am trying to use a jndi or whatever source for
authentication and say if the person passed in a valid userid and password of X
how do I let them in?

Thanks,
Tony


Micael Padraig Og mac Grene wrote:

> Just as a start, you need something more like the following.  You need to
> look at how xml dtd are used.
>
> 
>  
>  
>  Joes Grill
>  /jsp/pigout.jsp
>  
>  
>  hungryman
>  
>  
>  
>  
>  Joes Grill
>  /jsp/grill.jsp
>  
>  
>  eater
>  
>  
>  
>  
>  Joes Grill
>  /jsp/uploads/upload.jsp
>  
>  
>  uploader
>  
>  
>  
>  BASIC
>  Joes Grill
>  
> 
>
> At 05:14 PM 3/14/02 -0500, you wrote:
> >I would like to set up my realm to allow folks in by userid not by
> >rolename.
> >
> >I do not know what the tag for the web.xml file should be The following
> >is a sample security constraint.
> >The role names are working fine, but I need to say if a user is tony or
> >user is x then allow them in, but without the use of
> >roles.
> >
> >
> >   Example Security Constraint
> >   
> >  Protected Area
> >  
> >  /jsp/security/protected/*
> >  
> >
> >  DELETE
> >  GET
> >  POST
> >  PUT
> >   
> >   
> >  
> > 
> > 
> >  tony
> >  marketing
> >  role1
> >   
> > 
> >
> >Thanks,
> >Tony
> >
> >
> >
> >--
> >To unsubscribe:   
> >For additional commands: 
> >Troubles with the list: 
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

--
Tony Dahbura
Director Client Services East
Loudcloud Inc.
4501 Singer Court
Suite 200
Chantilly, VA 20151
voice: 703.653.6880
fax: 703.961.8268
[EMAIL PROTECTED]



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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread James Williamson

Thanks Dan,

Actually I did something pretty similar (changing OK to DECLINED in
wam_match), knowing that after a handler in the url rewrite stage has
returned OK no other (such as mod_rewrite) gets a look in. However, this
still didn't work for me, even though mod_rewrite in the logs said it'd
rewritten / as /index.jsp, I still got the 302?

James

- Original Message -
From: Dan Lindy <[EMAIL PROTECTED]>
To: James Williamson <[EMAIL PROTECTED]>; Edam Cheeseman
<[EMAIL PROTECTED]>
Cc: Tomcat Users List <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:20 PM
Subject: Re: OFFTOPIC: apache mod_rewrite


> James et al.,
>
> I use hacked version of mod_webapp.c on Apache 1.3 to do exactly this.
> My modifications may be crude, but it's worked well for me so far:
>
>  /* Match an Apache request */
>  static int wam_match(request_rec *r) {
>  wa_virtualhost *host=NULL;
>  //wa_application *appl=NULL;
>  //wa_chain *elem=NULL;
>
>  /* Paranoid check */
>  if (!wam_initialized) return(DECLINED);
>
>  /* Check if this host was recognized */
>
host=ap_get_module_config(r->server->module_config,&webapp_module);
>  if (host==NULL) return(DECLINED);
>
>  ///* Check if the uri is contained in one of our applications
> root path */
>  //elem=host->apps;
>  //while(elem!=NULL) {
>  //appl=(wa_application *)elem->curr;
>  //if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0)
break;
>  //
>  //appl=NULL;
>  //elem=elem->next;
>  //}
>  //if (appl==NULL) return(DECLINED);
>
>  /* The uri path is matched: set the handler and return */
>  r->handler=ap_pstrdup(r->pool,"webapp-handler");
>
>  ///* Set the webapp request structure into Apache's request
> structure */
>  //ap_set_module_config(r->request_config, &webapp_module,
appl);
>  //return(OK);
>  return(DECLINED);  // added
>
>  }
>
>  /* Handle the current request */
>  static int wam_invoke(request_rec *r) {
>  server_rec *svr=r->server;
>  conn_rec *con=r->connection;
>  wa_virtualhost *host=NULL;   // added
>  wa_application *appl=NULL;
>  wa_chain *elem=NULL; // added
>  wa_request *req=NULL;
>  const char *msg=NULL;
>  char *stmp=NULL;
>  char *ctmp=NULL;
>  char *ssl_temp;
>  int ret=0;
>
>  /* Paranoid check */
>  if (!wam_initialized) return(DECLINED);
>
>  // begin added...
>
>  /* Check if this host was recognized */
>
host=ap_get_module_config(r->server->module_config,&webapp_module);
>  if (host==NULL) return(DECLINED);
>
>  /* Check if the uri is contained in one of our applications
> root path */
>  elem=host->apps;
>  while(elem!=NULL) {
>  appl=(wa_application *)elem->curr;
>  if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0)
break;
>
>  appl=NULL;
>  elem=elem->next;
>  }
>  if (appl==NULL) return(DECLINED);
>
>  /* Set the webapp request structure into Apache's request
> structure */
>  ap_set_module_config(r->request_config, &webapp_module,
appl);
>
>  // ...end added
>
> Regards,
> Dan Lindy
>
> At 04:02 PM 3/15/02 +, you wrote:
> >Hi Paul,
> >
> >I sent a message to the dev list about this (no response, I even offered
to
> >do the
> >coding). I've tried mod_rewrite to probably do exactly what you've been
> >doing (no luck).
> >  I don't think it is off topic, because search engines will leave
> >immediately when they
> >see the 302 response which will dramatically affect your site's traffic.
> >
> >Regards,
> >
> >James Williamson
> >
> >www.nameonthe.net
> >
> >
> >- Original Message -
> >From: Edam Cheeseman <[EMAIL PROTECTED]>
> >To: <[EMAIL PROTECTED]>
> >Sent: Friday, March 15, 2002 2:57 PM
> >Subject: OFFTOPIC: apache mod_rewrite
> >
> >
> > > Hi list,
> > >
> > > Just wondering if anyone has tried using apache mod_rewrite to rewrite
> >their
> > > URLs allow search engines to crawl their dynamic tomcat-served pages?
> > >
> > > If so, have you noticed any favourable impact on your rankings? Just
> >curious
> > > to see if its worth doing before I invest what looks like a lot of
time
> > > figuring out how to do it.
> > >
> > > thanks,
> > >
> > > Paul
> > >
> > > _
> > > Get your FREE download of MSN Explorer at
> >http://explorer.msn.com/intl.asp.
> > >
> > >
> > > --
> > > To unsubscribe:   
> > > For additional commands: 
> > > Troub

Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread Dan Lindy

James et al.,

I use hacked version of mod_webapp.c on Apache 1.3 to do exactly this.
My modifications may be crude, but it's worked well for me so far:

 /* Match an Apache request */
 static int wam_match(request_rec *r) {
 wa_virtualhost *host=NULL;
 //wa_application *appl=NULL;
 //wa_chain *elem=NULL;

 /* Paranoid check */
 if (!wam_initialized) return(DECLINED);

 /* Check if this host was recognized */
 host=ap_get_module_config(r->server->module_config,&webapp_module);
 if (host==NULL) return(DECLINED);

 ///* Check if the uri is contained in one of our applications 
root path */
 //elem=host->apps;
 //while(elem!=NULL) {
 //appl=(wa_application *)elem->curr;
 //if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0) break;
 //
 //appl=NULL;
 //elem=elem->next;
 //}
 //if (appl==NULL) return(DECLINED);

 /* The uri path is matched: set the handler and return */
 r->handler=ap_pstrdup(r->pool,"webapp-handler");

 ///* Set the webapp request structure into Apache's request 
structure */
 //ap_set_module_config(r->request_config, &webapp_module, appl);
 //return(OK);
 return(DECLINED);  // added

 }

 /* Handle the current request */
 static int wam_invoke(request_rec *r) {
 server_rec *svr=r->server;
 conn_rec *con=r->connection;
 wa_virtualhost *host=NULL;   // added
 wa_application *appl=NULL;
 wa_chain *elem=NULL; // added
 wa_request *req=NULL;
 const char *msg=NULL;
 char *stmp=NULL;
 char *ctmp=NULL;
 char *ssl_temp;
 int ret=0;

 /* Paranoid check */
 if (!wam_initialized) return(DECLINED);

 // begin added...

 /* Check if this host was recognized */
 host=ap_get_module_config(r->server->module_config,&webapp_module);
 if (host==NULL) return(DECLINED);

 /* Check if the uri is contained in one of our applications 
root path */
 elem=host->apps;
 while(elem!=NULL) {
 appl=(wa_application *)elem->curr;
 if (strncmp(appl->rpth,r->uri,strlen(appl->rpth))==0) break;

 appl=NULL;
 elem=elem->next;
 }
 if (appl==NULL) return(DECLINED);

 /* Set the webapp request structure into Apache's request 
structure */
 ap_set_module_config(r->request_config, &webapp_module, appl);

 // ...end added

Regards,
Dan Lindy

At 04:02 PM 3/15/02 +, you wrote:
>Hi Paul,
>
>I sent a message to the dev list about this (no response, I even offered to
>do the
>coding). I've tried mod_rewrite to probably do exactly what you've been
>doing (no luck).
>  I don't think it is off topic, because search engines will leave
>immediately when they
>see the 302 response which will dramatically affect your site's traffic.
>
>Regards,
>
>James Williamson
>
>www.nameonthe.net
>
>
>- Original Message -
>From: Edam Cheeseman <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Friday, March 15, 2002 2:57 PM
>Subject: OFFTOPIC: apache mod_rewrite
>
>
> > Hi list,
> >
> > Just wondering if anyone has tried using apache mod_rewrite to rewrite
>their
> > URLs allow search engines to crawl their dynamic tomcat-served pages?
> >
> > If so, have you noticed any favourable impact on your rankings? Just
>curious
> > to see if its worth doing before I invest what looks like a lot of time
> > figuring out how to do it.
> >
> > thanks,
> >
> > Paul
> >
> > _
> > Get your FREE download of MSN Explorer at
>http://explorer.msn.com/intl.asp.
> >
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> >
>
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


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




Re: tomcat https security: is it possible to steal sessions?

2002-03-15 Thread Wolfgang Stein

It depends on the circumstances. I believe one widespread risk
among others might be the use of self-signed server certs
to establish a secure (ssl) communication.

If you use self-generated server certs,
someone could do a man-in-the-middle-attack,
making the client believe to communicate with the right server.
(I believe 'DNS spoofing' or manipulation of etc/hosts are ways
to place yourself betweena client and a server).

Since the client sends the symetric encryption key
to the wrong server (encrypted with the wrong public key),
it does not matter anymore whether the communication
were encrypted or not.
All data will be visible to the malicious server (not only
session ids).

The malicious server could additionally establish himself a
ssl connection to the originally intended server, using the
previously recorded login data for example.

>From now on, the man in the middle could forward client data
to the server and vice versa. This will all be done over ssl,
making the endpoints believe in a 'secure' connection.

One way to avoid trusting malicious servers is to use
certs issued be an 'official' certification agency (CA).
Another way might be to deliver selfsigned server certs to all
clients in a secure way (by messenger for example) and ask
the clients to import the server cert into their browser.

Too expensive ?! Thats why official CAs exist :-)

If you are concerned about someone stealing your information
(as your posting suggests) and just solved the problem of
trusting a malicious server, you might also wonder about
malicious clients ...

This will finally lead to client certs, smartcards etc.

But in the end even these security mechanisms have their weakness
(e.g. browser infection, social engineering). 

I wouldn't even totally trust in biometric techniques like
fingerprints or retina analysis. Imagine a you were an 
authorized client meeting a criminal surgeon  :-)

> ... I do not pass any confidential information
> as url parameters (ie. all forms are using post method).

Using the post or get method makes no difference 
in man-in-the-middle attacks.

Gruss,
Wolfgang
___

 Even paranoids have enemies
  -- Anonymous
___


 

> -Ursprüngliche Nachricht-
> Von: Taavi Tiirik [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 15. März 2002 11:37
> An: Tomcat Users List
> Betreff: tomcat https security: is it possible to steal sessions?
> 
> 
> Hello,
> 
> What kind of security risks are there if I use tomcat over https
> (http connector is disabled).
> 
> Would it be ok to assume that nobody can listen traffic between
> tomcat and browser? I do not pass any confidential information
> as url parameters (ie. all forms are using post method).
> 
> Is it still possible to (somehow) steal session info and act as
> somebody else?
> 
> with best wishes,
> Taavi

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




FW: Help help

2002-03-15 Thread Uma Munugala

Hi 
Iam new to Tomcat
 Iam working on tomcat 4.0.3 on windows NT.
Installation is successful. Examples are working fine.
I placed all my application class files under a directory in webapps and I
placed jar files in web-inf/lib
and unpacked class files resources files in web-inf/classes.
dir structure is something like this
D:\jakarta-tomcat-4.0.3\webapps\cellfusion\WEB-INF\classes
D:\jakarta-tomcat-4.0.3\webapps\cellfusion\WEB-INF\lib
When I run my application servlet Iam getting error
java.lang.NoClassDefFoundError
The class which it is referring is in jar file and it is placed in
web-inf/lib. I just followed exactly according to documentation. Still Iam
getting that error, Iam stuck with this problem.

Do I need to integrate tomcat with apcahe http server 

Immediate help would be very much appreciated.



Thanks
Uma

-Original Message-
From: Uma Munugala [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 7:05 AM
To: 'Tomcat Developers List'
Subject: RE: Where can I find the spec to implement SSI on Jakarta
Tomcat 4.0?


Hi

   I installed tomcat 4.0.3 and it went successfully. I tested examples they
are working fine. i followed the application developer guide for deployment.
Do I need to create web.xml for my application is it mandatory ?. 
For running servlet application do i need apache web server also.

any help in this regards is appreciated.


Thanks
Uma


-Original Message-
From: Amy Roh [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, March 13, 2002 6:15 PM
To: Tomcat Developers List
Subject: Re: Where can I find the spec to implement SSI on Jakarta
Tomcat 4.0?


Uma Munugala wrote:

> Hi
>I installed tomcat 4.0.3 and installation was successful.
> I tested examples they are working fine.
> I unzipped all my application files in a directory under webapps
directory.
> when I tried to run my servlets, Iam getting error
> http status 404 servlet (Login) not found.
>
> can some body write to me step by step procedure what to do when I want to
> run an application (servlet).

You can refer to "Application Developer's Guide" -
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/index.html.  Hope you
find this useful.

Amy

>
>
> Thanks
> Uma
>
> -Original Message-
> From: Amy Roh [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, March 13, 2002 5:31 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Where can I find the spec to implement SSI on Jakarta
> Tomcat 4.0?
>
> Mike Jette wrote:
>
> > Where can I find the spec to implement Server-Side Include (SSI) on
> Jakarta
> > Tomcat 4.0?
>
> There isn't an actual spec for SSI feature for Tomcat 4.0.  It follows the
> NCSA
> SSI rules same as the Apache documentation.  You need to uncomment SSI
> Servlet
> in web.xml.  And to use the SSI servlet, you also need to rename the
> $CATALINA_HOME/server/lib/servlets-ssi.renametojar file to
> $CATALINA_HOME/server/lib/servlets-ssi.jar
>
> Amy
>
> >
> >
> > If you can point me at a link I would really appreciate your help.
> > Is it that same as the Apache documentation?
> >
> > Thanks you.
> >
> > --
> > Michael E. Jette
> > Technology Partners, Inc.
> > 636-519-1221 ext. 104
> > 1-877-636-1331 ext. 104 (toll free)
> > www.tech-partners.com
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:



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

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

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




Re: AW: How to host a Site from Home without ISP

2002-03-15 Thread camccuk


--- [EMAIL PROTECTED] wrote:
> 
> Sorry to all those I offended by posting up such
> questions. Anyway thanxs Jim.

There probably are better lists to ask on, yes...

> If anyone has a Site they can refer me to then
> please advise

Amran, I've said it before and I'll no doubt say it
again: Anyone with the slightest interest in websites,
the net, e-whatever and the whole nine-yards shoud be
forced to read:

http://www.arsdigita.com/books/panda/

It is, of course, Phillip and Alex's Guide to Web
Publishing.

Have fun,
cam

__
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

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




Re: OFFTOPIC: apache mod_rewrite

2002-03-15 Thread James Williamson

Hi Paul,

I sent a message to the dev list about this (no response, I even offered to
do the
coding). I've tried mod_rewrite to probably do exactly what you've been
doing (no luck).
 I don't think it is off topic, because search engines will leave
immediately when they
see the 302 response which will dramatically affect your site's traffic.

Regards,

James Williamson

www.nameonthe.net


- Original Message -
From: Edam Cheeseman <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 2:57 PM
Subject: OFFTOPIC: apache mod_rewrite


> Hi list,
>
> Just wondering if anyone has tried using apache mod_rewrite to rewrite
their
> URLs allow search engines to crawl their dynamic tomcat-served pages?
>
> If so, have you noticed any favourable impact on your rankings? Just
curious
> to see if its worth doing before I invest what looks like a lot of time
> figuring out how to do it.
>
> thanks,
>
> Paul
>
> _
> Get your FREE download of MSN Explorer at
http://explorer.msn.com/intl.asp.
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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




Re: AW: How to host a Site from Home without ISP

2002-03-15 Thread AMRAN121


Sorry to all those I offended by posting up such questions. Anyway thanxs Jim.

If anyone has a Site they can refer me to then please advise

Thanxs
Amran



Re: AW: Multiple Tomcat 3.2.4 JVMs Document

2002-03-15 Thread Dan Lindy

Hmmm... This was not my experience using more sophisticated regular 
expression pattern matching and replacements via rewrite directives, but 
I'm glad to see there are work-arounds for some situations such as the one 
you mention for Rob's configuration.

I was speaking more to configurations like this:

 # serve static files as-is
 RewriteCond   /home/site/html/$1   -f
 RewriteRule   ^/(.*)$   - [L]

 # default handler servlet
 # send everything else to the request broker using the file 
extension as the pool name
 RewriteRule   ^/(.*)\.(.+) 
/request-broker/servlet/RequestBroker/$2/$1 [PT]

I suppose one could use Tomcat's ability to map file extensions to 
servlets, but you'd still need the context portion of the path.

The main thing is that mod_rewrite is great tool (albeit double-edged), and 
to my knowledge mod_jk and mod_webapp essentially ignore it because they 
insist on operating on an original copy of the URI rather than the one 
processed by mod_rewrite.


At 04:09 PM 3/15/02 +0100, Ralph Einfeldt wrote:
>As I understand it, no 'hacking' is needed to use mod_jk
>without redirect to achieve the same effect :
>
>
>   ...
>   DirectoryIndex /site1contextname/index.jsp
>   # Should be equivalent to
>   # RewriteEngine On
> # RewriteRule ^/$ /site1contextname/index.jsp [NC,R]
>
>
> > -Ursprüngliche Nachricht-
> > Von: Dan Lindy [mailto:[EMAIL PROTECTED]]
> > Gesendet: Freitag, 15. März 2002 15:49
> > An: Robert Walther
> > Cc: Tomcat Users List
> > Betreff: Re: Multiple Tomcat 3.2.4 JVMs Document
>
> > To get around this, I was able to successfully hack the mod_webapp
>Apache
> > 1.3 module, and it appears to be working just fine with multiple
>instances
> > of Tomcat running on the same server.
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 


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




RE: How to host a Site from Home without ISP

2002-03-15 Thread Justin Rowles

> Does anyone know of any good Site(s) that give you a step by 
> step guide on how to host your own web site.

Stfw?  Certainly hardly a TC question!

> Also Can any one tell me what is the best platform to host a 
> site on I know 
> many ISP companies host on Red Hat Linux. Is this because it 
> cost less the 
> Microsoft? 

Ask on a Linux users list?

> Final question What is the best Linux Operating System to 
> host on. I have 
> used Linux Mandrake because it is user friendly. Is this as 
> good as Red Hat?

Ask on a Linux list and watch the resulting flame-war erupt!  Mandrake is based on Red 
Hat by the way.

Justin.
-- 
You're only jealous cos the little penguins are talking to me. 



***
For more information on Ordnance Survey products and services,
visit our web site at http://www.ordnancesurvey.co.uk
***




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




Re: Howto:s?

2002-03-15 Thread Micael Padraig Og mac Grene

Boy, did you, Wiman.  Tomcat 4.0 has massive and great documentation on the 
main site.

At 04:05 PM 3/15/02 +0100, you wrote:
>Hi, all.
>
>I'm a sysadmin who tries to get a bunch of servlets running. Our java team
>has given me a bunch of jar files, and I thought Apache and Tomcat 4.0.2
>would be a suitable platform to run the thing on. I have previously been
>using jserv and it worked but seems obsolete. The problem here is that I
>don't know how to write a working sever.xml file. Is there some kind of
>howto that covers configuration in a rather straightforward way? The older
>tomcat versions seem to have quite understandable documentetion, is it
>applicable for 4.0? Did I miss something?
>
>
>/Rasmus Wiman
>
>http://rasmus.wiman.org
>http://dagbok.wiman.org
>
>I program my home computer
>Beam myself into the future
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




AW: How to host a Site from Home without ISP

2002-03-15 Thread Mohr James

Greetings!

When I switched Web services provider six months ago, I explictely went to
one using Linux. I want as much control over my web site as possible. In
most cases (in my experience) what little configuration MIIS allows needs to
be done by the administrator, which is okay if all you want to do is drop
your files off in a directory and have things work. I wanted the level of
control that Linux naturally allows, including command line access to my
server (via ssh). My experience is that ISPs that have Windows do so
reluctantly because people insist on ASPs (which are not all that bad).
However, there is ASP support for Apache. Having to pay almost as much for
the OS as you do for the machine, is a good reason not to go with Microsoft.


If any ISP is going to use Apache, why bother with NT, if only for the
price? However, if you want as detailed configuration of your system as you
can get, then Linux is the way to go. At home I am completely Windows-free
and I have Windows 2K in WMWare on Linux at work. My opinion is that the
difference between Linux and Windows is like the difference between a TV
dinner and a 7 course meal. With Windows you plop it in and it works, but it
doesn't taste very good. Linux takes a long longer, but you can do with it
what you need to. 

Which distribution of Linux you want is IMHO a matter of personal
preference. I use SuSE at home and work, and I am really impressed with how
easy the installation goes. It installs KDE by default, which is a problem
for those people who like GNOME better. I prefer KDE. If all you are worried
about is the web server, they all have Apache, so it really doesn't matter
(IMHO). 


If you want step-by-step instructions on setting up a web server, you can
try the "UNIX Web Server Administrator's Interactive Workbook" from Prentice
Hall. It includes exercises, questions and answers, as well as an
introduction to HTML. 


Regards,

Jim Mohr

>> -Ursprungliche Nachricht-
>> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>> Gesendet: Freitag, 15. Marz 2002 16:00
>> An: [EMAIL PROTECTED]
>> Betreff: How to host a Site from Home without ISP
>> 
>> 
>> Hi 
>> 
>> Does anyone know of any good Site(s) that give you a step by 
>> step guide on 
>> how to host your own web site.
>> 
>> Also Can any one tell me what is the best platform to host a 
>> site on I know 
>> many ISP companies host on Red Hat Linux. Is this because it 
>> cost less the 
>> Microsoft? 
>> 
>> Final question What is the best Linux Operating System to 
>> host on. I have 
>> used Linux Mandrake because it is user friendly. Is this as 
>> good as Red Hat?
>> 
>> Any thoughts most welcomed I will be hosting on the Apache 
>> Web server with 
>> Tomcat as the application server. Tomcat will be on Windows NT.
>> 
>> 
>> Regards 
>> Amran
>> 

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




how to set truststore

2002-03-15 Thread Daniel Fisher

Hello,
I'm having a problem setting the truststore in Tomcat 4.0.3 using JDK 1.4.0
In server.xml there doesn't appear to be a parameter I can use in the Factory tag, 
like there is for keystoreFile.
I've tried setting System.setProperty("javax.net.ssl.trustStore", "path_to_certs"); in 
my class, but that doesn't work.
I've also edited catalina.sh and added -Djavax.net.ssl.trustStore=path_to_certs to the 
CATALINA_OPTS variable, but that doesn't work either.
I know it is still loading the default Java cacerts file, because I set 
-Djavax.net.debug=ssl.

I'm attempting to do client authentication and because I can't seem to load my 
certificates I get this exception:
Exception while waiting for close javax.net.ssl.SSLHandshakeException: Received fatal 
alert: bad_certificate

Thanks in advance for any help.

-- 
Daniel Fisher



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




Howto:s?

2002-03-15 Thread Rasmus Wiman

Hi, all.

I'm a sysadmin who tries to get a bunch of servlets running. Our java team
has given me a bunch of jar files, and I thought Apache and Tomcat 4.0.2
would be a suitable platform to run the thing on. I have previously been
using jserv and it worked but seems obsolete. The problem here is that I
don't know how to write a working sever.xml file. Is there some kind of
howto that covers configuration in a rather straightforward way? The older
tomcat versions seem to have quite understandable documentetion, is it
applicable for 4.0? Did I miss something?


/Rasmus Wiman

http://rasmus.wiman.org
http://dagbok.wiman.org

I program my home computer
Beam myself into the future

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




AW: Multiple Tomcat 3.2.4 JVMs Document

2002-03-15 Thread Ralph Einfeldt

As I understand it, no 'hacking' is needed to use mod_jk
without redirect to achieve the same effect :


  ...
  DirectoryIndex /site1contextname/index.jsp
  # Should be equivalent to
  # RewriteEngine On
# RewriteRule ^/$ /site1contextname/index.jsp [NC,R]


> -Ursprüngliche Nachricht-
> Von: Dan Lindy [mailto:[EMAIL PROTECTED]]
> Gesendet: Freitag, 15. März 2002 15:49
> An: Robert Walther
> Cc: Tomcat Users List
> Betreff: Re: Multiple Tomcat 3.2.4 JVMs Document

> To get around this, I was able to successfully hack the mod_webapp
Apache 
> 1.3 module, and it appears to be working just fine with multiple
instances 
> of Tomcat running on the same server.

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




Re: How to host a Site from Home without ISP

2002-03-15 Thread Micael Padraig Og mac Grene

Amran, you have a long way to go and I love your sense of adventure.  Read 
up first about TCP/IP and HTTP.

At 09:59 AM 3/15/02 -0500, you wrote:
>Hi
>
>Does anyone know of any good Site(s) that give you a step by step guide on
>how to host your own web site.
>
>Also Can any one tell me what is the best platform to host a site on I know
>many ISP companies host on Red Hat Linux. Is this because it cost less the
>Microsoft?
>
>Final question What is the best Linux Operating System to host on. I have
>used Linux Mandrake because it is user friendly. Is this as good as Red Hat?
>
>Any thoughts most welcomed I will be hosting on the Apache Web server with
>Tomcat as the application server. Tomcat will be on Windows NT.
>
>
>Regards
>Amran



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




RE: MOVED TO TOMCAT

2002-03-15 Thread Rodrigo Gonzalez Asensio

Thanks!  Here, in Argentina we says: gracias capo

I started read the docs but not deeply.
Ill take your advice! Thanks!

Regard from the south


--- 

Rodrigo Gonzalez Asensio
División de Ingeniería - Platino - GUI Development
Gilbarco Latin America
Congreso 3450 - C1430AZD Buenos Aires - Argentina
TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)



-Original Message-
From: John Niven [mailto:[EMAIL PROTECTED]] 
Sent: Viernes, 15 de Marzo de 2002 07:39 a.m.
To: 'Tomcat Users List'
Subject: RE: MOVED TO TOMCAT


> -Original Message-
> From: Rodrigo Gonzalez Asensio [mailto:[EMAIL PROTECTED]]
> Sent: 14 March 2002 19:35
> To: [EMAIL PROTECTED]
> Subject: MOVED TO TOMCAT
> 
> 
> TODAY, I DECIDED MOVE TO TOMCAT FROM SERVLETEXEC.
> I HAVE DEVELOPED SEVERAL WEBAPPS BASED ON A SERVLETCENTRAL.
> I HAVE DETERMINED MY ROOT DIRECTORIES AND FILES LOCATIONS.
> 
> MY DOUBT:
> HOW CAN I POINT THE ROOT OF TOMCAT TO MY
> c:\RGA\WEBAPPS\DEFAULT ??? In server.xml ??? What tag.

Rodrigo,

You're correct, it's the /conf/server.xml file:


  
  












  


Docs:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html

> 
> Tks!!

No probs -- but check the documentation, it's pretty thorough.

Cheers
John

> 
> ---
> 
> Rodrigo Gonzalez Asensio
> División de Ingeniería - Platino - GUI Development
> Gilbarco Latin America
> Congreso 3450 - C1430AZD Buenos Aires - Argentina
> TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)
> 

 --
John Niven
Please reply through mailing list

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


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




HELP Error creating server socket

2002-03-15 Thread Giuseppe De Vincenzi

Hi all,

My system win2000, TOMCAT 4.0 , with following
JDK version ...
Java(TM) 2 Runtime Environment, Standard Edition 1.3.1

** Initially when i start TOMCAT, it start without any problem
and i can access it from http://localhost:8080/. Below is the start up
message shown **

** Once again, i start the TOMCAT again . the result shown
from command prompt is same as above ... no problem show . But when i check
the catalina.out ... i seen these message **

Catalina.start: LifecycleException:  Error creating server socket:
java.net.BindException: Address already in use
LifecycleException:  Error creating server socket:  java.net.BindException:
Address already in use
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:483)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use
at java.net.PlainSocketImpl.socketBind(Native Method)
at java.net.PlainSocketImpl.bind(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at java.net.ServerSocket.(Unknown Source)
at
org.apache.catalina.net.DefaultServerSocketFactory.createSocket(DefaultServe
rSocketFactory.java:118)
at
org.apache.catalina.connector.warp.WarpConnector.initialize(WarpConnector.ja
va:477)
at
org.apache.catalina.core.StandardService.initialize(StandardService.java:454
)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.java:552)
at org.apache.catalina.startup.Catalina.start(Catalina.java:775)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

?
add these lines to the catalina.sh script as appropriate
if [ -z "$CATALINA_OPTS" ] ; then
  CATALINA_OPTS="-XdoCloseWithReadPending"
fi
. But when i check
the catalina.out ... i seen ERROR
?
Bye & Thank's
  Giuseppe.







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




How to host a Site from Home without ISP

2002-03-15 Thread AMRAN121

Hi 

Does anyone know of any good Site(s) that give you a step by step guide on 
how to host your own web site.

Also Can any one tell me what is the best platform to host a site on I know 
many ISP companies host on Red Hat Linux. Is this because it cost less the 
Microsoft? 

Final question What is the best Linux Operating System to host on. I have 
used Linux Mandrake because it is user friendly. Is this as good as Red Hat?

Any thoughts most welcomed I will be hosting on the Apache Web server with 
Tomcat as the application server. Tomcat will be on Windows NT.


Regards 
Amran



OFFTOPIC: apache mod_rewrite

2002-03-15 Thread Edam Cheeseman

Hi list,

Just wondering if anyone has tried using apache mod_rewrite to rewrite their 
URLs allow search engines to crawl their dynamic tomcat-served pages?

If so, have you noticed any favourable impact on your rankings? Just curious 
to see if its worth doing before I invest what looks like a lot of time 
figuring out how to do it.

thanks,

Paul

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


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




Re: Double loading of my application

2002-03-15 Thread rsequeira


Are you deploying the "myapp" as a war? Maybe your answer lies here:
http://localhost:8080/tomcat-docs/config/host.html#Automatic%20Application%20Deployment
and
http://localhost:8080/tomcat-docs/appdev/deployment.html

RS





"Paul, Debra, & 4 Kids Mendelson" <[EMAIL PROTECTED]> on
03/15/2002 08:07:36 AM

Please respond to "Tomcat Users List" <[EMAIL PROTECTED]>

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

Subject:  Double loading of my application

In my web application (described) below I am seeing my startup servlet
executing twice presumably because my application is loading twice.  Which
directive is causing my second load?

I have a Web application with a startup servlet described as follows:
   
 MyStart
 MyStart
 0
   

I have tried to strip down my servlet.xml file to remove potential for
double loading my applictaion:
  

  
  



  
 
 
   
 
   
  



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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









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




Re: Multiple Tomcat 3.2.4 JVMs Document

2002-03-15 Thread Dan Lindy

Rob,

I noticed you are having to use external redirects with mod_rewrite to get 
it to work with Tomcat.  This requirement, in my opinion, is the result of 
an over-zealous interpretation of Sun's servlet API specification which 
ends up forcing users to look at ugly, less-informative (from their 
perspective) URI's in their browser's location bar.  It's also bad news for 
people who need to communicate easy-to-remember URI's with each other (e.g. 
over the phone or on a business card).

To get around this, I was able to successfully hack the mod_webapp Apache 
1.3 module, and it appears to be working just fine with multiple instances 
of Tomcat running on the same server.  I haven't looked at mod_jk or the 
Apache 2.0 version of mod_webapp, but I imagine the required hacks would be 
similar.  If you're interested, let me know and I'll forward the code.

Regards,
Dan Lindy


At 05:10 PM 3/14/02 -0600, Robert Walther wrote:
>Hello All,
>
>I have been looking through the email archives to get instruction on how
>to set-up multiple instances of Tomcat on a single machine.  I found lots
>of good emails but no single source for what I wanted to accomplish.
>With the information I gathered, I was able to get a working system, where
>I can start and stop Tomcat independently of other Tomcat instances.  In
>the process, I also put together a document of the procedure I used.  This
>document follows below.
>
>If possible, I would really appreciate any feedback.  The system described
>below works, but I'm still not convinced it is the best configuration.  I
>hope, in any event this document may help others as well.
>
>PLEASE NOTE, this document is a draft version and does not offer any
>gaurantees to anyone if they choose to use it for building their own
>sites.
>
>I hope to include comments into this document as time goes by and keep
>updating it for everyone.  Thanks in advance for any comments and I hope
>this Open Source Community can benefit from it.
>
>Document Follows:
>
>Our Environment:
>HardwareSoftware
>System: Interserv90 OS: TurboLinux 
>Server 7.0
>Processor:  PIII 450Mhz Kernel: 2.4.9
>Ram:256MWeb Server: Apache 
>1.3.22-2
>SWAP:   520MJavajdk 1.3.1_02
> JServer Tomcat 3.2.4
> Connector   mod_jk.so 
> (ajp12 + ajp13)
>Prerequisites:
>·   You must have already installed both jdk 1.3.1_02 and tomcat 3.2.4.
>·   JAVA_HOME should be set to the directory in which jdk 1.3.1_02 is
>installed.
>In this example the java rpm installed java into /usr/java and then 
>we:
>ln
> JAVA_HOME=/java; export JAVA_HOME
>
>·   TOMCAT_HOME should be set to the directory in which tomcat-3.2.4 is
>installed.
>In this example we installed tomcat into /usr/local/src and then:
>ln
>TOMCAT_HOME=/tomcat; export TOMCAT_HOME
>
>·   Set JAVA_HOME and TOMCAT_HOME in /etc/profile, so they reset on each
>reboot.
>·   Get the appropriate mod_jk from. (either mod_jk-eapi or mod_jk-noeapi)
>http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.3/bin/linux/i386/
>   rename it to mod_jk.so
>   place it in apache
>“libexec”
>
>In this example we downloaded mod_jk-eapi to /root
> mkdir /etc/httpd/libexec
>mv /root/mod_jk-eapi /etc/httpd/libexec/mod_jk.so
>
>Note, If you downloaded the wrong mod_jk, apache will tell you upon its
>next startup.  There are only two to choose from, simply go back and get
>the other one to use.
>
>
>Note:
>Although, not entirely necessary, this document instructs that a separate
>directory be set-up for each JVM in order to better separate the
>functionality of each JVM.  For this example, the individual JVM
>directories have been placed under a new directory called /contexts.
>Although we will have a separate directory for each JVM under /contexts,
>we still only have one TOMCAT_HOME.  You do not need to set a TOMCAT_HOME
>for each JVM.
>
>
>Procedure:
>(Two new and INDEPENDENT JVM
>example below.  Instructions that include “site#” apply to both sites)
>
>1. Make “/contexts” and create a new directory for each site within
>/contexts.
>
>mkdir /contexts
>cd /contexts
>mkdir site1
>mkdir site2
>
>2. Copy the contents of your original Tomcat Installation into each site
>directory.
>
> cp -R /$TOMCAT_HOME  /contexts/site1
>cp -R /$TOMCAT_HOME  /contexts/site2
>
>3. You should now have the following directories & files in each site
>directory:
>
>ls -p /contexts/site#
>
>bin/doc/lib/logs/ 
>src/work/
>conf/   KEYSLICENSE RELEASE-NOTES   webapps/ 
>
>
>4. set-up your “ajp” workers that will eventually be used by apache to
>redirect requests to Tomcat.  Using a text editor

Double loading of my application

2002-03-15 Thread Paul, Debra, & 4 Kids Mendelson

In my web application (described) below I am seeing my startup servlet
executing twice presumably because my application is loading twice.  Which
directive is causing my second load?

I have a Web application with a startup servlet described as follows:

MyStart
MyStart
0


I have tried to strip down my servlet.xml file to remove potential for
double loading my applictaion:
  

  
  



  
 
 
   
 
   
  



_
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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




RE: simple context question for tomcat

2002-03-15 Thread Jeff Prideaux

Thanks Chris.  It will take a bit of editing, but that will solve the
problem since I'm using all jsp pages

Although, in our production environment, our webapp has its own sub-domain,
so



and

test

both go to the same place.  The problem is in my development environment
(which I am not familiar with configuring subdomains or contexts...).


-Original Message-
From: Chris Novak [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 6:52 PM
To: Tomcat Users List
Subject: RE: simple context question for tomcat


instead of writing:
test

try:
test

When you are creating html, make sure the context path is given.  Paths in
HTML are different than paths in your java code.

-Original Message-
From: Jeff Prideaux [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 14, 2002 2:58 PM
To: tomcat user
Subject: simple context question for tomcat


In my development environment, for my "myapp" web-app, I'm doing the
following



and it finds the file just fine.  header.jsp is in the common directory
under the "myapp" webapp.

Although, if I use an anchor

test

it doesn't find the file. it looks to my "root" webapp.   I must use
test

What configuration step must I do so that my anchors (and references to
images) can be addressed using the first way I tried (without having to use
/myapp/...)

I have reasons for not using relative addressing  (../common/...).

Any tips on the configuration steps (even general comments) would be greatly
appreciated.


Thanks!!!

Jeff Prideaux,



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



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


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




Re: jndi versus database connection pooling

2002-03-15 Thread Nikola Milutinovic

> I use the JNDI based connection pool with Postgres quite successfully.
> You will need to have postgresql.jar in $CATALINA_HOME/common/lib, and a
> server.xml configuration something like this:

Finally, someone using PostgreSQL...

>   

What about "automatically deployed contexts"? I usually set a virtual host, with it's 
"appbase", for automatic context deployment. If I define the auto-deploy context I 
will have it deployed twice - no exactly what I want.

Nix.



Content Negotiation

2002-03-15 Thread Roberto Lo Giacco

Is it possible to set up content negotiation on JSPs using Apache + mod_negotiation + 
Tomcat ?



Re: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c Line: 198

2002-03-15 Thread Yunce Gunawan

it's not worked...

and i still see apache on my browser..



On Friday 15 March 2002 12:18, you wrote:
> Thats right. But try pointing to localhost/cocoon/ or wherever you mapped
> it to. That should invoke Tomcat.
>
> You can of course map Cocoon to the server root I think also.
>
> Chris.

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




RE: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c Line: 198

2002-03-15 Thread Chris Pheby

Thats right. But try pointing to localhost/cocoon/ or wherever you mapped it
to. That should invoke Tomcat.

You can of course map Cocoon to the server root I think also.

Chris.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Yunce Gunawan
Sent: 15 March 2002 10:41
To: Tomcat Users List
Subject: Re: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c
Line: 198



of course i restarting Apache with Tomcat running.

>
> 2) Try removing the line WebAppDeploy tomcat conn / to see if this is
> responsible for the error.

if i remove  the line WebAppDeploy tomcat conn /
i have not any error, but i can just see apache server. not tomcat or cocoon
on my browser ...

i heard that mod_webapp have bugs... it's true ..??



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




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




Loadbalancing with Tomcat4.0.2+Apache 1.3.23+mod_jk

2002-03-15 Thread Sahin Tuereyenler

Hi,

Has anyone experience with loadbalancing on Tomcat4.0.2/Apache1.3.23 with
Win-OS??
i follow the guideline : http://www.ubeans.com/tomcat/index.html

But i can't start Apache after configuration!
I get the error-message :

[error] Cannot remove module mod_jk.c: not found in module list

Does anybody know what to do???

please help !

Thanks in advanced

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




Re: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c Line: 198

2002-03-15 Thread Yunce Gunawan


of course i restarting Apache with Tomcat running.

>
> 2) Try removing the line WebAppDeploy tomcat conn / to see if this is
> responsible for the error.

if i remove  the line WebAppDeploy tomcat conn / 
i have not any error, but i can just see apache server. not tomcat or cocoon 
on my browser ...

i heard that mod_webapp have bugs... it's true ..??



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




RE: MOVED TO TOMCAT

2002-03-15 Thread John Niven

> -Original Message-
> From: Rodrigo Gonzalez Asensio [mailto:[EMAIL PROTECTED]] 
> Sent: 14 March 2002 19:35
> To: [EMAIL PROTECTED]
> Subject: MOVED TO TOMCAT
> 
> 
> TODAY, I DECIDED MOVE TO TOMCAT FROM SERVLETEXEC.
> I HAVE DEVELOPED SEVERAL WEBAPPS BASED ON A SERVLETCENTRAL.
> I HAVE DETERMINED MY ROOT DIRECTORIES AND FILES LOCATIONS.
> 
> MY DOUBT:
> HOW CAN I POINT THE ROOT OF TOMCAT TO MY 
> c:\RGA\WEBAPPS\DEFAULT ??? In server.xml ??? What tag.

Rodrigo,

You're correct, it's the /conf/server.xml file:


  
  












  


Docs: http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/context.html

> 
> Tks!!

No probs -- but check the documentation, it's pretty thorough.

Cheers
John

> 
> --- 
> 
> Rodrigo Gonzalez Asensio
> División de Ingeniería - Platino - GUI Development
> Gilbarco Latin America
> Congreso 3450 - C1430AZD Buenos Aires - Argentina
> TE: +54 (11) 5167-5634 - +54 (11) 4545-5600 (x 5634)
> 

 --
John Niven
Please reply through mailing list

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




tomcat https security: is it possible to steal sessions?

2002-03-15 Thread Taavi Tiirik

Hello,

What kind of security risks are there if I use tomcat over https
(http connector is disabled).

Would it be ok to assume that nobody can listen traffic between
tomcat and browser? I do not pass any confidential information
as url parameters (ie. all forms are using post method).

Is it still possible to (somehow) steal session info and act as
somebody else?

with best wishes,
Taavi



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




AW: session listener

2002-03-15 Thread Lauer, Oliver

Hi, 

you can create an object that implements HttpSessionBindingListener and
store this object in your current session. This object will then be informed
when the session gets bound and unbound. 

Oliver 

> AXA eSolutions GmbH
> AXA Konzern AG Germany
> Oliver Lauer 
> Web Architect
> Wörthstraße 34
> D-50668 Köln
> Germany
> Tel.: +49 221 148 31277
> Fax: +49 221 148 43963
> Mobil: +49 179 59 064 59
> e-Mail: [EMAIL PROTECTED]
> _
> 


-Ursprüngliche Nachricht-
Von: Aline [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 15. März 2002 11:31
An: Tomcat Users List
Betreff: session listener


Hello,

I'd like to add a listener to a session (there's no method for this in
HttpSession class).
I read that I have to configure the web.xml file but I don't know how

Does anyone can help me?

thanks

Aline
WEBCASTER
T +33 (0)3 28 36 25 25
F +33 (0)3 20 13 06 04
http://www.oeilpouroeil.fr
http://www.visiodrome.com



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


--
Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information 
nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne 
auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der 
unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des 
Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht  ist ausschliesslich fuer 
den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der 
vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich 
mit dem Absender der E-Mail in Verbindung zu setzen.

For legal and security reasons the information provided in this e-mail is not legally 
binding. Upon request we would be pleased to provide you with a legally binding 
confirmation in written form. Any form of unauthorised use, publication, reproduction, 
copying or disclosure of the content of this e-mail is not permitted. This message is 
exclusively for the person addressed or their representative. If you are not the 
intended recipient of this message and its contents, please notify the sender 
immediately.

==


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




session listener

2002-03-15 Thread Aline

Hello,

I'd like to add a listener to a session (there's no method for this in
HttpSession class).
I read that I have to configure the web.xml file but I don't know how

Does anyone can help me?

thanks

Aline
WEBCASTER
T +33 (0)3 28 36 25 25
F +33 (0)3 20 13 06 04
http://www.oeilpouroeil.fr
http://www.visiodrome.com



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




RE: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c Line: 198

2002-03-15 Thread Chris Pheby

Try:

1) Ensure Tomcat is running when you start Apache. On Windows you can do
this with Service+ (from www.activeplus.com) to establish a dependency. On
Linux maybe set Tomcat to start at an earlier runlevel (?) or restart Apache
from the end of Tomcat's start-up script. Of course before you do this,
first just try restarting Apache with Tomcat running.

2) Try removing the line WebAppDeploy tomcat conn / to see if this is
responsible for the error.

3) If using JDK 1.4 ensure you compile cocoon from source, rather than just
downloading the binary.

Hope some of this helps. Let me know.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
On Behalf Of Yunce Gunawan
Sent: 15 March 2002 09:20
To: Tomcat Users List
Subject: Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c
Line: 198



 Hi there !

i installed tomcat 4.0.1 on apache_1.3.22 and my httpd.conf  like this


  WebAppConnection conn  warp  :8080
   WebAppDeploy   tomcat  conn  /
WebAppDeploy   cocoon  conn  /cocoon
   WebAppInfo /webapp-info



but i have this error on my browser

WebApp: Error 404
(File: wa_request.c Line: 198)
Web-application not yet deployed

what is file wa_request.c ?

can anybody help me?

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




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




Apache Tomcat/4.0.1 - HTTP Status 404 - File: wa_request.c Line: 198

2002-03-15 Thread Yunce Gunawan


 Hi there !

i installed tomcat 4.0.1 on apache_1.3.22 and my httpd.conf  like this


  WebAppConnection conn  warp  :8080
   WebAppDeploy   tomcat  conn  /
WebAppDeploy   cocoon  conn  /cocoon
   WebAppInfo /webapp-info



but i have this error on my browser

WebApp: Error 404
(File: wa_request.c Line: 198)
Web-application not yet deployed 

what is file wa_request.c ?

can anybody help me?

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




Re: Trouble setting up mod_jk

2002-03-15 Thread Bernd Koecke

Hi,

I use tc-4.0.3, mod_jk and apache 1.3.x on SuSE 7.3 successfully. I have 
only a problem with loadbalancing (see my previous mail). But I don't 
use the WarpConnector. I think that the protocols warp and ajp13 are 
incompatible. It seems that your mod_jk tries to connect to the 
WarpConnector with the ajp13 protocol. Have a look at your workers.conf 
and the server.xml which ports are configured.

Bernd

Jason Edgecombe wrote:
> hi everyone,
> 
>   I'm still having trouble with mod_jk. I compiled and installed it 
> using the build-unix.sh from the tomcat-connectors tarball.
> 
> Any help would be appreciated.
> output from mod_jk.log and tomcat's apache_log-date.txt follow.
> 
> here is what I get in my mod_jk.log file:
>  
> 
> [Thu Mar 14 16:02:06 2002]  [jk_connect.c (151)]: jk_open_socket, 
> connect() failed errno = 111
> [Thu Mar 14 16:02:06 2002]  [jk_ajp_common.c (598)]: In 
> jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
> [Thu Mar 14 16:02:06 2002]  [jk_ajp_common.c (843)]: Error connecting to 
> the Tomcat process.

[...]


>  
> 
> 
> I get the following in /var/tomcat4/logs/apache_log.2002-03-14.txt
>  
> 
> 2002-03-14 15:57:34 [org.apache.catalina.connector.warp.WarpConnector] 
> Error accepting requests
> java.net.SocketException: Socket closed
> at java.net.PlainSocketImpl.socketAccept(Native Method)
> at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:343)
> at java.net.ServerSocket.implAccept(ServerSocket.java:438)
> at java.net.ServerSocket.accept(ServerSocket.java:409)
> at 
> org.apache.catalina.connector.warp.WarpConnector.run(WarpConnector.java:590) 
> 
> at java.lang.Thread.run(Thread.java:536)
> 

[...]

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


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