Re: Database connection pool scope

2001-02-27 Thread Valeriy Molyakov

I have few questions :

1. What the implementations for connection caches are availablis ?

2. In what advantages of such products before vendors drivers that is
supporting JDBC API 2.0 (ConnectionPoolDataSource)

3. Can I call my method ( not doPost(),doGet(),service() ) from other
servlet ? This method - multithreading ?

- Original Message -
From: "Jon Crater" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, February 26, 2001 6:35 PM
Subject: Re: Database connection pool scope


> the singleton is just a concrete java class that ensures only one instance
> can ever be instantiated.  i ensure this via this method:
>
>   public static synchronized ConnectionPool getInstance()
> throws SQLException
>   {
>   if (instance == null)
>   {
>   instance = new ConnectionPool(driver,url,username,password,
>   initialConnections,maxConnections,
> waitIfBusy);
>   }
>   return instance;
>   }
>
> this class is no different than any other class.  the important part of
> making the connection pool available to the rest of your application is
> storing the reference to the pool in the servlet context.  once you've
done
> this, and assuming your connectionbroker class is a servlet with access to
> the servlet context containing the connection pool reference, you can call
> getConnection() and releaseConnection() on the servlet class, which in
turn
> gets and returns connections from/to the connection pool.
>
> Original Message Follows
> From: "Valeriy Molyakov" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: <[EMAIL PROTECTED]>
> Subject: Re: Database connection pool scope
> Date: Mon, 26 Feb 2001 18:12:15 +0200
>
> Two questions:
>
> What is the singleton?
>
> Where it is possible to receive such class ?
>
> - Original Message -
> From: "Jon Crater" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Monday, February 26, 2001 5:17 PM
> Subject: RE: Database connection pool scope
>
>
>  > i use a connection pool in tomcat 3.2.1.  i have a servlet,
>  > ConnectionBroker.java, which, in its init() method checks for the
> existence
>  > of the connection pool.  if the connection pool is null, it creates an
>  > instance of it and binds it to the servlet context.  then other classes
> can
>  > call this class' static getConnection() and releaseConnection() methods
>  > without having to worry about whether they extend HttpServlet.  the
init
>  > method looks like this:
>  >
>  > public void init()
>  > {
>  > ServletContext ctx = getServletContext();
>  > jdbcPool = (ConnectionPool)ctx.getAttribute("jdbcPool");
>  >
>  > if (jdbcPool == null)
>  > {
>  > try
>  > {
>  > jdbcPool = ConnectionPool.getInstance();
>  > ctx.setAttribute("jdbcPool", jdbcPool);
>  > }
>  > catch (SQLException sqle)
>  > {
>  > debug("SQLException caught: " + sqle.getMessage());
>  > }
>  > }
>  > }
>  >
>  > the getConnection() method looks like this:
>  >
>  > public static Connection getConnection()
>  > throws SQLException
>  > {
>  > return jdbcPool.getConnection();
>  > }
>  >
>  > i then have a singleton ConnectionPool class which creates and manages
> jdbc
>  > connections.
>  >
>  > -jc
>  >
>  >
>  > Original Message Follows
>  > From: Randy Layman <[EMAIL PROTECTED]>
>  > Reply-To: [EMAIL PROTECTED]
>  > To: [EMAIL PROTECTED]
>  > Subject: RE: Database connection pool scope
>  > Date: Mon, 26 Feb 2001 07:58:53 -0500
>  >
>  >
>  > First of all, there are several connection pools avaiable, so you
>  > might want to look at those before you decide that re-inventing the
wheel
> is
>  > a good thing.
>  >
>  > Second, most connection pools work by using static classes.  Your
>  > code would look something like:
>  >
>  > Connection conn = ConnectionPool.getConnection();
>  >
>  > and the ConnectionPool would look something like:
>  >
>  > public static Connection getConnection()
>  >
>  >
>  > Randy
>  >
>  >
>  > -Original Message-
>  > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
>  > Sent: Monday, February 26, 2001 5:17 AM
>  > To: [EMAIL PROTECTED]
>  > Subject: Database connection pool scope
>  >
>  >
>  > Hello everybody,
>  >
>  > I am pretty new to Tomcat, but previously developed applications for
> other
>  > Java application servers (mostly Bea Weblogic). We want to set up a
>  > database connection pool to enhance performance, but we are making
> database
>  > connections using our class libraries; not directly from servlets /
> JSPs...
>  > To use a pool inside a JSP I would simply create an application object
or
> a
>  > JavaBean and use it. But inside a class; I cannot use Tomcat's
> application
>  > scope. In Weblogic, there is a special "workspace" class, which

Re: IIS 5, Tomcat 3.2 and port problem...

2001-02-27 Thread Andreas Holmer

My machine is a Win2000 Server, and I am admin...
I already set up another Win2000 Server but there I tried with Allaire's
JRun. Works fine, but I need something less expensive :)

Any other ideas?


- Original Message -
From: "Chris Haynes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 5:16 PM
Subject: Re: IIS 5, Tomcat 3.2 and port problem...


> Isn't there some constraint about NT not letting you start services on
> ports < 1024 unless you are an administrator?
>
> I know UNIX says you have to be root; I've an idea that NT has a
> similar security measure.
>
> Chris
>
>
> - Original Message -
> From: "Andreas Holmer" <[EMAIL PROTECTED]>
> To: "tomcat-User" <[EMAIL PROTECTED]>
> Sent: Tuesday, February 27, 2001 3:40 PM
> Subject: IIS 5, Tomcat 3.2 and port problem...
>
>
> > Hi!
> >
> > I have a little problem with Tomcat and IIS 5.
> >
> > Every time I try to access servlets from another machine, I get an
> error
> > message telling me 'Access denied'. If I try to connect to Tomcat
> via Port
> > 8080 (like in server.xml configured) it works. I already had the
> port
> > commented out, but then I could not connect at all. Is there a
> possibility
> > to configure IIS in a way which enables servlet execution directly
> via some
> > URI? I already have altered uriworkermap.properties to handle this
> URI, but
> > nothing happens. Or better: I get the message that I am not allowed
> to.
> >
> > Looks like this:
> >
> > ip:8080/pm works
> > ip/pm does not, but should
> >
> > Any suggestions? I know this has been asked quite often, but none of
> the
> > answers up to now did solve my problem... Or at least I didn't get
> the point
> > ;)
> >
> > Thanks
> >   Andy
> >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




ODP: log() ?

2001-02-27 Thread Herchel Wojciech

declare private ServletContext sc, make your init(ServletConfig config)
method look like this:
public void init(ServletConfig config) throws ServletException {

 this.config=config;
 sc = config.getServletContext();

 }

then sc.log("blalblalbla"); would do the trick


vVolf


> -Oryginalna wiadomooeæ-
> Od: Shahed Ali [mailto:[EMAIL PROTECTED]]
> Wys³ano: 27 lutego 2001 22:20
> Do: [EMAIL PROTECTED]
> Temat: log() ?
> 
> 
> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
> 
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and 
> I keep getting NullPointerExceptions
> 
> Thanks
> Shahed
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




ODP: MySQL question - No suitable driver

2001-02-27 Thread Herchel Wojciech

most likely the mm driver is not in your classpath

vVolf


> -Oryginalna wiadomooeæ-
> Od: Wong, Connie [mailto:[EMAIL PROTECTED]]
> Wys³ano: 27 lutego 2001 20:56
> Do: [EMAIL PROTECTED]
> Temat: MySQL question - No suitable driver
> 
> 
> Hi,
> 
> I try to connect a servlet talk to the MySQL database.
>  I set:
>  
>  drivername = "org.gjt.mm.mysql.Driver" and
>  url = "jdbc:mysql:tbl_data"
> 
> I downloaded MyODBC and fill in the ODBC setup and add the
> "mm_mysql-2_0_2-bin.jar" in the classpath.
> 
> When I run my servlet on the browser, it display the 
> following Exception:
> 
> 
> java.sql.SQLException: No suitable driver at
> java.sql.DriverManager.getConnection(DriverManager.java:537) at
> java.sql.DriverManager.getConnection(DriverManager.java:146) at
> Benchmark_sql.query(Benchmark_sql.java:94) at
> Benchmark_sql.doGet(Benchmark_sql.java:47) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:597)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServl
> et.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWra
> pper.java:503)
> at 
> org.apache.tomcat.core.ContextManager.service(ContextManager.j
> ava:559) at
> org.apache.tomcat.service.http.HttpConnectionHandler.processCo
> nnection(HttpC
> onnectionHandler.java:160) at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEnd
> point.java:338
> ) at java.lang.Thread.run(Thread.java:484) n
> 
> 
> Can someon tell me what else I do miss?
> Thanks,
> Connie
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

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




ODP: Form based auth

2001-02-27 Thread Herchel Wojciech

oops, i don't really have j_security_check class, i thought it is taken care
of by tomcat...

vVolf


> -Oryginalna wiadomość-
> Od: uthay [mailto:[EMAIL PROTECTED]]
> Wysłano: 27 lutego 2001 17:48
> Do: [EMAIL PROTECTED]
> Temat: Re: Form based auth
> 
> 
> If you are using servlet then you dont need the extension.
> But if your context is say webapps/xxx/
> and you have j_security_check.class inside xxx/WEB-INF
> then you may want to try
> xxx/j_security_check
> 
> 
> Uthay
> 
> 
> > > > How come would Tomcat (Apache?) return 404 Error while trying to
> > > > authenticate via form? apparently it does not recognise
> > > "j_security_check".
> > > > anybody has got any idea?
> > > > here's my code (login.jsp):
> > > >
> > > > 
> > > > 
> > > > 
> > > > 
> > > >   Please log in
> > > > 
> > > > 
> > > >   Username:
> > > >   
> > > > 
> > > > 
> > > >   Password:
> > > >   
> > > > 
> > > > 
> > > >value="Log in"
> > > > name="j_security_check">
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > > > and i'm getting 404 Error.
> >
> > 

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




Re: help building mod_jk

2001-02-27 Thread AC

this is an old problem. You should look first to the mailing list database! 
however I wonder why this bug still exist!
This is an old response.
---
I'm not sure where is the error in the makefile because I'm not a shell 
expert, but I solve the problem launching by myself apxs.
The location of the apxs is (in my configuration) /usr/local/sbin/ instead 
of ${APACHE_HOME}/bin/
After correcting this I launch the Makefile that compile the mod_jk.so 
(make all). The script launch :

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c

As you can see it compiles only the mod_jk.c. The command you have to 
launch is:

/usr/local/sbin/apxs -c -I/usr/local/jdk1.1.8/include 
-I/usr/local/jdk1.1.8/include/freebsd -DFREEBSD -I/usr/local/apache/include 
-I../jk mod_jk.c ../jk/*.c

If you use a different jdk just yank the apxs command and add ../jk/*.c at 
the end as I did.

It works with all the jdk (1.1.8, 1.2 beta native and 1.2 linux)


regards

At 21.21 27/02/2001 -0600, you wrote:
>Can any one make a suggestion as to solving following error.
>
>
>bash-2.04# apachectl configtest
>Syntax error on line 8 of /usr/local/www/conf/mod_jk.conf-auto:
>Cannot load /usr/local/www/libexec/mod_jk.so into server: 
>/usr/local/www/libexec/mod_jk.so: Undefined symbol "map_name_at"
>
>Kiet Duong


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




RE: Using ResourceBoundle with JSP

2001-02-27 Thread Markus Keller mssc

Hello Craig

Craig McClanahan wrote:

> Resource bundles are searched for on the web
> application's "class path".
> ... put it the WEB-INF/classes directory of your
> web app

That works! Thanks.

Markus


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




Cookies problems?

2001-02-27 Thread D.Lion



Hi.
 
I'm using: 
    - 
jakarta-tomcat-4.0-b1
    - Apache-1.3.17
    - Linux RH 6.1 krnl 
2.2.12
    - mod_webapp 1.8
    - JSDK2.0
    - jdk1.3.1
 
I'm trying to run servlet through 
mod_webapp.
this will print headers and one of them cookie. I 
recive for example 3 cookies
 
    
Enumeration e = 
request.getHeaderNames();    while 
(e.hasMoreElements()) 
        
{    String 
headerName = 
(String)e.nextElement();    
String headerValue = 
request.getHeader(headerName);    
out.println("headerName);    
out.println("headerValue");    
} 
But the following code prints "0"
    Cookie[] cc = 
request.getCookies();    
out.println(cc.length);
 
the same code working with tomcat stand alone 
prints all OK
 
 
It looks like problem with 
mod_webapp.
 
any ideas?
if any one have the same problem please 
replay.
 
 



D.Lion
Webmaster of Media Group Logos
 


True Apache + Tomcat + Cocoon intergration

2001-02-27 Thread Shaun Adolphson

Hello All,

I am running:   Cocoon 1.8.2, Tomcat 3.2.1 (with mod_jk), Apache
1.3.12, on Redhat 6.2.
I have everything running smoothly between Apache, Tomcat and Cocoon on 
both port 8080 and 80.  

What I want to be able to do is have a large number of virtual hosts in
Apache,
that can all server pure XML/XSL sites with Cocoon, without having to access
a sub-directory, which is link to Tomcat/Cocoon.  So in other words, be able
to use  XML in the root of the site. 

I am sure that other Cocoon users would have had this problem, so if you
could
help me out it would great.  If you need anymore information please let me
know.

Thanks

Shaun

--
Shaun Adolphson
Xweb Pty Ltd
Email: [EMAIL PROTECTED]
Web: http://www.xweb.com.au



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




Re: Tomcat class loader

2001-02-27 Thread Aaron Brashears

On Tue, Feb 27, 2001 at 04:13:08PM -, Chris Haynes wrote:
> So you have to keep stopping and starting tomcat unless you use ONLY
> simple JSP pages (with no other changing classes referred to ) and
> servlets which use only stable classes.

alternately, you can enable the manager classes by modifying the
tomcat conf, and then sending an http get to the appropriate url for
your web app. I implement this by calling wget in my makefile install
script. I don't know of an equivalent utility on windows, but here's
an example of how to do this once you've enabled the manager.

wget http://:@localhost:8080/manager/reload?path=

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




help building mod_jk

2001-02-27 Thread Kiet Duong

Can any one make a suggestion as to solving following error.


bash-2.04# apachectl configtest
Syntax error on line 8 of /usr/local/www/conf/mod_jk.conf-auto:
Cannot load /usr/local/www/libexec/mod_jk.so into server:
/usr/local/www/libexec/mod_jk.so: Undefined symbol
"map_name_at"


Kiet Duong




Re: Anybody doing SSL with Tomcat successfully (SSL Direct)?

2001-02-27 Thread Mandar Joshi


Thankyou Todd,
I tried your suggestion

I am getting following exception on the consol now

2001-02-27 07:13:06 - ContextManager: IOException reading request, ignored -
javax.net.ssl.SSLException: Unrecognized SSL handshake.
at
com.sun.net.ssl.internal.ssl.InputRecord.read([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.a([DashoPro-V1.2-120198])
at
com.sun.net.ssl.internal.ssl.AppInputStream.read([DashoPro-V1.2-120198])
at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestAdapter.
java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServletInpu
tStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServletInputS
tream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(HttpReques
tAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:195)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)

There seems to be something wrong while hand-shake.

Mandar

- Original Message -
From: "Todd Carmichael" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 7:03 PM
Subject: RE: Anybody doing SSL with Tomcat successfully (SSL Direct)?


> I had similar problems.  I added the following parameter to my Connector
>
> 
> 
>
> The documentation lists only clientAuth which I don't know what it does.
> Once I added secure, it all worked fine.
>
> -Original Message-
> From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 6:19 PM
> To: [EMAIL PROTECTED]
> Subject: Anybody doing SSL with Tomcat successfully (SSL Direct)?
>
>
> I am facing this problem - could not resolve it yet
>
> TIA
> Mandar
>
> - Original Message -
> From: "Mandar Joshi" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Saturday, February 24, 2001 4:27 PM
> Subject: tomcat with SSL
>
>
> > Hi,
> >
> > I am using tomcat V3.2. I am trying to configure SSL for stand alone
> tomcat.
> > I have following entry in the server.xml file
> > 
> >  >
> > value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
> >  > value="8443"/>
> >  > value="org.apache.tomcat.net.SSLSocketFactory" />
> > 
> > 
> >  
> > 
> >
> > When I start tomcat it shows me that it has started listening to port
8443
> > however When I type https://myserv:8443/, it gives me 'The page cannot
be
> > displayed' error
> >
> > Tomcat consol dumps following lines
> > 2001-02-24 04:18:13 - Ctx(  ): 400 R( /) null
> > 2001-02-24 04:18:13 - Ctx(  ): IOException in: R( /) Socket closed
> >
> > Any ideas why is this happening ?
> >
> > Thanks in advance
> > Mandar
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




RE: Anybody doing SSL with Tomcat successfully (SSL Direct)?

2001-02-27 Thread Todd Carmichael

I had similar problems.  I added the following parameter to my Connector




The documentation lists only clientAuth which I don't know what it does.
Once I added secure, it all worked fine.

-Original Message-
From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 6:19 PM
To: [EMAIL PROTECTED]
Subject: Anybody doing SSL with Tomcat successfully (SSL Direct)?


I am facing this problem - could not resolve it yet

TIA
Mandar

- Original Message -
From: "Mandar Joshi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 24, 2001 4:27 PM
Subject: tomcat with SSL


> Hi,
>
> I am using tomcat V3.2. I am trying to configure SSL for stand alone
tomcat.
> I have following entry in the server.xml file
> 
> 
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>  value="8443"/>
>  value="org.apache.tomcat.net.SSLSocketFactory" />
> 
> 
>  
> 
>
> When I start tomcat it shows me that it has started listening to port 8443
> however When I type https://myserv:8443/, it gives me 'The page cannot be
> displayed' error
>
> Tomcat consol dumps following lines
> 2001-02-24 04:18:13 - Ctx(  ): 400 R( /) null
> 2001-02-24 04:18:13 - Ctx(  ): IOException in: R( /) Socket closed
>
> Any ideas why is this happening ?
>
> Thanks in advance
> Mandar
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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

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




Re: Hiding a jsp file from public access?

2001-02-27 Thread Filip Hanik

each context has its own class loader.
so each context's WEB-INF/classes and WEB-INF/lib will belong to a separate
classloader

Filip

~
Namaste - I bow to the divine in you
~
Filip Hanik
Software Architect
[EMAIL PROTECTED]
www.filip.net
- Original Message -
From: "Adam Haberlach" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 6:38 PM
Subject: Re: Hiding a jsp file from public access?


> On Tue, Feb 27, 2001 at 06:14:42PM -0800, Pierre Delisle wrote:
> > Ben Flaumenhaft wrote:
> > >
> > > Folks,
> > >
> > > Is there anything in Tomcat or in the .war file specification to deny
> > > non-forwarded access to a JSP? Where's the appropriate place to do
this?
> > >
> > > I'm using the MVC, or so-called model 2 approach, where a servlet
prepares
> > > and then forwards to a JSP. Users should NOT be able to ask for the
JSP,
> > > only the servlet (because the servlet needs to prepare context, check
> > > security, etc.). What's the correct way?
> >
> > Simply put the JSPs under the WEB-INF directory.
> >
> > Tomcat protects the WEB-INF directory for you.  This is required by the
servlet
> > specification.
>
> On another note (I'm barging in here since I just joined the list) I've
> got a machine set up in which we will have several developers working
> independently on the same code via source control.  Currently, each
engineer
> has their own context, but I need a way to give them their own classpaths,
> so that code can be checked out into the path, used, tested, modified, and
> then checked back into the tree for others.
>
> In PHP I did this by setting PHP's includepath directives in the
httpd.conf
> file.  Is there a similar way to do this for Tomcat classes?
>
> --
> Adam Haberlach| "Having a smoking section in a restaurant is
> [EMAIL PROTECTED]   | like having a peeing section in a swimming
pool"
> http://www.newsnipple.com |
> '88 EX500'00 >^<  |
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: Hiding a jsp file from public access?

2001-02-27 Thread Adam Haberlach

On Tue, Feb 27, 2001 at 06:14:42PM -0800, Pierre Delisle wrote:
> Ben Flaumenhaft wrote:
> > 
> > Folks,
> > 
> > Is there anything in Tomcat or in the .war file specification to deny
> > non-forwarded access to a JSP? Where's the appropriate place to do this?
> > 
> > I'm using the MVC, or so-called model 2 approach, where a servlet prepares
> > and then forwards to a JSP. Users should NOT be able to ask for the JSP,
> > only the servlet (because the servlet needs to prepare context, check
> > security, etc.). What's the correct way?
> 
> Simply put the JSPs under the WEB-INF directory. 
> 
> Tomcat protects the WEB-INF directory for you.  This is required by the servlet
> specification.

On another note (I'm barging in here since I just joined the list) I've
got a machine set up in which we will have several developers working
independently on the same code via source control.  Currently, each engineer
has their own context, but I need a way to give them their own classpaths,
so that code can be checked out into the path, used, tested, modified, and
then checked back into the tree for others.

In PHP I did this by setting PHP's includepath directives in the httpd.conf
file.  Is there a similar way to do this for Tomcat classes?

-- 
Adam Haberlach| "Having a smoking section in a restaurant is
[EMAIL PROTECTED]   | like having a peeing section in a swimming pool"
http://www.newsnipple.com |
'88 EX500'00 >^<  |

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




mod_jk with IRIX

2001-02-27 Thread Bush, Craig R.

Hello,

I'm fairly new to tomcat

Anyone know the apxs command to build mod_jk with IRIX??

I tried to modify the example they gave for Solaris...and several attempts
failed.

Thanks,

Craig R. Bush
Human Biological Chemistry and Genetics
University of Texas Medical Branch
409-747-6809
http://www.bioinfo.utmb.edu


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




Re: Hiding a jsp file from public access?

2001-02-27 Thread Pierre Delisle



Ben Flaumenhaft wrote:
> 
> Folks,
> 
> Is there anything in Tomcat or in the .war file specification to deny
> non-forwarded access to a JSP? Where's the appropriate place to do this?
> 
> I'm using the MVC, or so-called model 2 approach, where a servlet prepares
> and then forwards to a JSP. Users should NOT be able to ask for the JSP,
> only the servlet (because the servlet needs to prepare context, check
> security, etc.). What's the correct way?

Simply put the JSPs under the WEB-INF directory. 

Tomcat protects the WEB-INF directory for you.  This is required by the servlet
specification.

-- Pierre

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




Anybody doing SSL with Tomcat successfully (SSL Direct)?

2001-02-27 Thread Mandar Joshi

I am facing this problem - could not resolve it yet

TIA
Mandar

- Original Message -
From: "Mandar Joshi" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, February 24, 2001 4:27 PM
Subject: tomcat with SSL


> Hi,
>
> I am using tomcat V3.2. I am trying to configure SSL for stand alone
tomcat.
> I have following entry in the server.xml file
> 
> 
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>  value="8443"/>
>  value="org.apache.tomcat.net.SSLSocketFactory" />
> 
> 
>  
> 
>
> When I start tomcat it shows me that it has started listening to port 8443
> however When I type https://myserv:8443/, it gives me 'The page cannot be
> displayed' error
>
> Tomcat consol dumps following lines
> 2001-02-24 04:18:13 - Ctx(  ): 400 R( /) null
> 2001-02-24 04:18:13 - Ctx(  ): IOException in: R( /) Socket closed
>
> Any ideas why is this happening ?
>
> Thanks in advance
> Mandar
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]


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




Re: Tomcat or Resin

2001-02-27 Thread Ryan

Haven't had any problems with Tomcat
I used to use Resin and classes came up with weird errors...

For instance I couldn't set a string value equal to the return value of
method.. such as

stringvar = object.stringmethd();

Supposedly Resin is faster but it seems that tomcat is the most widely used.

I would stick with Tomcat.


-ryu


- Original Message -
From: "Ase Lieden-Seeligson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 1:23 PM
Subject: Tomcat or Resin


> I am setting up this web server:
> Pentium 100
> RedHat 6.2
> Apache 1.3.17
>
> We will use both static and dynamic pages and therefor I was going to
install Tomcat. However, I keep coming across positive comments on Resin.
Could anyone advise me on which way to go, Tomcat or Resin? Especially if
you have experience with both. Why would I choose one over the other?? Is
Tomcat still the main road?
>
> Åse
>
> PS I am an intern who is setting this system up for the local Court house.
They have staff who will be able to support it when I am done. Personally, I
am new at this, so please be clear and simple... Thanks!
>
> PS2. I realize this list might not be the most impartial place to post
this question, but I'll do it anyway. If anyone has suggestions on other
mailing lists to ask, please let me know. Thanks!
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Tomcat Servlet SingleThreadModel Question

2001-02-27 Thread Walter Prabhakar

Hello Kief,

  How is SingleThreadModel handled in Tomcat 3.2.1 ?
Is it possible to specify Min and Max Threads ( assuming that if a thread is 
free a Servlet can be instatiated and executed in that thread ) in Tomcat 
3.2.1 so that the response time is less and at the same time the CPU is not 
burnt ?

Thanks for your time.

Yours Servlet Friendly

Walter G. Prabhakar.
http://www.billsofindia.com

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


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




SingleThread

2001-02-27 Thread James MailingList

If a Servlet implements SinglThreadModel interface then how does the Tomcat v3.2.1
handle it ?
a. Creates multiple threads as and when the request comes and kicks off the
multiple instances of the servlet.  If YES, then can we configure how the Min/Max
threads to be created ?
b. Creates a single thread and serves one request at a time while putting others
in a queue ?
c. Or does it handle in some other way ?

Yours Servlet Friendly,
Walter G. Prabhakar.


__
Get Your FREE FlashMail Address now at http://www.flashmail.com
It's Free, Easy, & Fun !!!

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




follow-up on extra whitespace

2001-02-27 Thread Daniel Chudnov


While trying to figure out why I'm getting lots of extra linefeeds in
simple jsp output (using tomcat-3.2.1), I found, in Luc's response to a
similar question a few weeks ago, here:

http://www.mail-archive.com/tomcat-user%40jakarta.apache.org/msg09088.html

...that "there is no way to let tomcat do this automatically. 
It is impossible for it to know which whitespace is needed and which
not."

This makes sense, it's just the nature of mixed-syntax tools like jsp.  
Nonetheless I'd rather not make all my code look more awful (it already is
rather lousy to begin with :) on any page where I need to return straight
xml.  This seems to beg for a more obvious and elegant solution.

Is there any simpler way to address this problem directly from jsp, or is
it just better for such apps to drop back to a servlet controller, using
one of the jakarta frameworks or otherwise?  It would be great, for
instance, if there were a flag that might be set somewhere to turn off
whitespace generation around jsp directives.  Of course that's not in the
spec, but, well, yknow.  Hrmph.

Btw I tried to query the bug database to see if anyone had requested such
a thing but the one pointed to from the jakarta site (at
http://jakarta.apache.org/site/bugs.html) isn't responding.  I haven't
seend any of the more recent source releases, either, so apologies in
advance if this is already addressed somewhere.


  Thanks,

  -Dan




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




RE: poolman

2001-02-27 Thread Patrick Vanden Driessche


Hi Ryan,

I've been using Poolman for a while in my development environment without
problems.
I'm running MySQL, Tomcat 3.2.1. on Win2K system for development...

Are you sure that the poolman.jar and the jdbc2.0-stdext.jar are in Tomcat's
classpath ?
(in my case I placed them in the %TOMCAT_HOME%\lib directory.

Secondly... Make sure that the jdbc driver used by Poolman to connect to
your database is also available in the classpath.
(In my case, the mm.mysql driver is in the same folder)

Hope this helps,

Patrick.


-Original Message-
From: Ryan [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 19:19
To: [EMAIL PROTECTED]
Subject: poolman


I was wondering if anyone has used the pooling library called PoolMan.. it
can be found on freshmeat.net. I have heard good things about it and the
souce code seems pretty nifty. However, I tried compiling the sample file
and all worked fine, but when I ran the compiled class it said that the
poolman driver could not be located

any help on how to get it working would be great

-thanx
ryan


here is the error for what its worth---
root@the45:/home/http/jsp/the45# java PoolManSample "SELECT * FROM
userpass;"

Executing demo of SQLUtil syntax, in which SQLUtil manages the query and all
resources automatically (last db in poolman.props is used):

Looks like the driver was not found...
Be sure it is in your CLASSPATH and listed properly in the properties file.
A non-SQL error occurred when requesting a
connection:java.lang.NullPointerException
Looks like the driver was not found...
Be sure it is in your CLASSPATH and listed properly in the properties file.
A non-SQL error occurred when requesting a
connection:java.lang.NullPointerException
Looks like the driver was not found...
Be sure it is in your CLASSPATH and listed properly in the properties file.
A non-SQL error occurred when requesting a
connection:java.lang.NullPointerException
Looks like the driver was not found...
Be sure it is in your CLASSPATH and listed properly in the properties file.
A non-SQL error occurred when requesting a
connection:java.lang.NullPointerException
Looks like the driver was not found...
Be sure it is in your CLASSPATH and listed properly in the properties file.
A non-SQL error occurred when requesting a
connection:java.lang.NullPointerException
java.lang.RuntimeException: ERROR: SQLManager: Couldn't create connection
pool:
at com.codestudio.util.SQLManager.createPool(SQLManager.java:266)
at com.codestudio.util.SQLManager.init(SQLManager.java:221)
at com.codestudio.util.SQLManager.(SQLManager.java:109)
at com.codestudio.util.SQLManager.getInstance(SQLManager.java:60)
at com.codestudio.util.SQLUtil.getSQLManager(SQLUtil.java:152)
at com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:189)
at com.codestudio.util.SQLUtil.execute(SQLUtil.java:132)
at com.codestudio.util.SQLUtil.execute(SQLUtil.java:127)
at PoolManSample.doSQL(PoolManSample.java:61)
at PoolManSample.main(PoolManSample.java:377)

POOLMAN SAMPLE COMPLETE

root@the45:/home/http/jsp/the45#


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




Hiding a jsp file from public access?

2001-02-27 Thread Ben Flaumenhaft

Folks,

Is there anything in Tomcat or in the .war file specification to deny
non-forwarded access to a JSP? Where's the appropriate place to do this?

I'm using the MVC, or so-called model 2 approach, where a servlet prepares
and then forwards to a JSP. Users should NOT be able to ask for the JSP,
only the servlet (because the servlet needs to prepare context, check
security, etc.). What's the correct way?

Thanks,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com



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




Re: MySQL question - No suitable driver

2001-02-27 Thread Ben Flaumenhaft


Connie,

Your problem is most likely *not* that it can't find the classes, but that
it hasn't associated the URL with the appropriate class.

Try adding the following call anytime before you get the connection:

Class.forName ("org.gjt.mm.mysql.Driver");

This tells the VM to actually load the class, at which point the classloader
calls static initializers on that class. Static inits for a JDBC driver
register it with the DriverManager, effectively saying "anytime anyone asks
for anything jdbc:mysql:..., use me." Until the class has been statically
initialized (that is, loaded explicitly), you can't use getConnection ().

Hope that helps.

Regards,
Ben Flaumenhaft
Principal, Sidelight Consulting
http://www.sidelight.com

- Original Message -
From: "Wong, Connie" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 11:56 AM
Subject: MySQL question - No suitable driver


> Hi,
>
> I try to connect a servlet talk to the MySQL database.
>  I set:
>
>  drivername = "org.gjt.mm.mysql.Driver" and
>  url = "jdbc:mysql:tbl_data"
>
> I downloaded MyODBC and fill in the ODBC setup and add the
> "mm_mysql-2_0_2-bin.jar" in the classpath.
>
> When I run my servlet on the browser, it display the following Exception:
>
>
> java.sql.SQLException: No suitable driver at
> java.sql.DriverManager.getConnection(DriverManager.java:537) at
> java.sql.DriverManager.getConnection(DriverManager.java:146) at
> Benchmark_sql.query(Benchmark_sql.java:94) at
> Benchmark_sql.doGet(Benchmark_sql.java:47) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
>
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at
>
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160) at
>
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> ) at java.lang.Thread.run(Thread.java:484) n
>
>
> Can someon tell me what else I do miss?
> Thanks,
> Connie
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Re: Profile tool for Apache/Tomcat

2001-02-27 Thread Ben Flaumenhaft



 
Hi George,
 
I *highly* recommend OptimizeIt (optimizeit.com). It's 
extremely easy to use and very powerful -- it has lots of features for finding 
hotspots and profiling code through different sampling methods.
 
It shouldn't be hard to set up an OptimizeIt project to launch 
Tomcat as its main application -- although you'll need to digest the tomcat 
shell scripts and rework them into an OptimizeIt project. I've done this with 
JServ and Enhydra, and it's been very useful.
 
Regards,Ben FlaumenhaftPrincipal, Sidelight 
Consultinghttp://www.sidelight.com

  - Original Message - 
  From: 
  George 
  Shafik 
  To: [EMAIL PROTECTED] 
  
  Sent: Tuesday, February 27, 2001 11:29 
  AM
  Subject: Profile tool for 
  Apache/Tomcat
  
  Hi,
   
  We are looking for a profiling tool for Apache/Tomcat and if 
  that is not possible a class library that implements a framework that we 
  can incorporate into our development environment that will aid us in 
  locating possible bottle neck in our code and thus target these areas for 
  JNI.
   
  Greatly appreciative of any help as this is an issue that 
  has been raised on this "list" on several occasions with no 
  real input.
   
  Regards,
  George


Servlet as an RMI client

2001-02-27 Thread Sam Newman



Dear all, I'm having some problems using a servlet as an RMI 
client. I start my RMI server up, and register my remote object using 
Naming.rebind(). A sample client works fine with this object. I write a servlet 
and try and communicate with the Server in the same way, and use an 
RMISecurityManager, but I get a seucirty 
exception:(java.net.SocketPermission localhost resolve)I thought this 
was an issue with security, so I change the policy file to give my apps context 
full permissions. I then invoke Tomcat with the -security option, and now I 
cannot even retrieve a session object. My two questions are: 1.) 
Why can't I contact the rmi socket even with security manager is in 
place?2.) Why do my changes to the policy file seem to have no 
effect? Here is the 
error: java.security.AccessControlException: access denied 
(java.net.SocketPermission 206.42.42.10:1099 
connect,resolve)  at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:272) Thanks 
in advance, sam newmanStamplets.comsoftware 
developer  


RE: Profile tool for Apache/Tomcat

2001-02-27 Thread Ben Galbraith

JProbe (www.jprobe.com) is another excellent profiling utility.  It also
supports Tomcat 3.2.


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




Re: Path Problem- URGENT

2001-02-27 Thread Chris Haynes

Amitabh,

I don't quite understand what you are trying to do when you say you
want to 'access' your .jsp file from within
your servlet.

If you are trying to get the servlet to tell tomcat what file to send
to the user you can use

getServletContext().getRequestDispatcher("error.jsp").forward(request,
response);

That will be the last thing the servlet does during that call - and
tomcat will use the compiled version of error.jsp to generate the
response to the user.

You can feed data from the servlet to the .JSP by using
request.setAttribute("xxx") in the servlet and then
<%=request.getAttribute("xxx")%> in the JSP


Alternatively you could make the last method  insert(,) to embed the
output of the .jsp among other output from the servlet..


If, on the other hand, you are trying (for some strange reason) to
read the actual error.jsp file itself into the servlet as a string or
whatever, you can use

getServletContext.getRealPath("error.jsp")

to return the full path name to that file - but I can't think why you
would want to do this.

Chris



- Original Message -
From: "amitabh dubey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 10:55 PM
Subject: Path Problem- URGENT


> Hello,
>I am using Tomcat 3.1 on a win2k platform. I am
> able to access my servlets from a browser, but am
> unable to access my html and jsp pages from within my
> servlets themselves. If i choose a path like
> "index.htm", the complete path assumed is
> c:\jakarta-tomcat\bin\index.htm. If i change it to
> /index.htm, the assumed path is c:index.htm. If i
> choose the path as ./index.htm, the path assumed is
> c:\jakarta-tomcat\bin\./index.htm.
>
> Please can someone tell me hoow do i access a file say
> "error.jsp" from withing my servlets that are
> installed in
> c:\jakarta-tomcat\webapps\LDS\WEB-INF\classes
>
>
> Thank you
> Amitabh
>
>
> __
> Do You Yahoo!?
> Get email at your own domain with Yahoo! Mail.
> http://personal.mail.yahoo.com/
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: Question about configuration

2001-02-27 Thread Adam Fowler

Hi,

You'll need a little thing called mod_jk to get apache to forward requests
for JSP + servlets to Tomcat.

Try reading the mod_jk faq at
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
or my version (Linux specific though ;o( ) at
http://willow.cc.edu/docs/adminguide

Hope that helps you.

Regards,
Adam.


Adam Fowler
Second year Computer Science undergraduate
University of Wales, Aberystwyth
Carroll College, WI, USA(2000-2001)
web: http://gucciboy.dyndns.org/aff9
e-mail: [EMAIL PROTECTED]
"Every new beginning comes from some other beginning's end"



-Original Message-
From: Stote, Robert [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 4:47 PM
To: '[EMAIL PROTECTED]'
Subject: RE: Question about configuration


so far I'm with you...

I have both apache...and tomcat up and running I can see each of there home
pages...where I getting stuck is the ability to configure apache or tomcat
(I'm not sure which one) to forward the requests that come in from apache to
tomcat to get tomcat to run the servlet.

right now I'm reading a good article from java world..but it seams to
concentrate on running tomcat as a stand alone...
good article though...

http://www.javaworld.com/javaworld/jw-02-2001/jw-0223-servletweblogic.html

Rob



-Original Message-
From: Web master [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about configuration


I never used Win2K, but let us see, if i can help.

First you down load everything  fresh.(Tomcat and JDK)
you have update two variable in your environment
JAVA_HOME=c:\jdk1.3
TOMCAT_HOME=c:\jakarta-tomcat-3.2.1 (or what ever directory you have)
You can set it through the control panel.

Now go to tomcat bin directory

in my example it would be
c:\jakarta-tomcat-3.2.1\bin\
and execute startup.bat ie

c:\>cd c:\jakarta-tomcat-3.2.1\bin\
c:\jakarta-tomcat-3.2.1\bin>startup

Now this should bring in another ms dos prompt. that will be java
console. You need not worry about it at this time

Now lanch your browser and put the following url and it should show the
tomcat home page.
http://localhost:8080/

If you can see the tomcat home, then you are ready to make change to
lanch your application. If you can not see tomcat homebase, we have to
fix your configuration before continuing...



Robert Keddie wrote:

> HI Unni...can u helpme out too?
>
> I have Apache 1.3.14/Tomcat 1.1.2
>
>  both running...
>
> i can call up the helloworld example through the local host
>
> but i cant call up my own jsp's! i get a 404
>
>
>
> im on a win nt
>
>
>
> Robert Keddie
> web development
> Marion County, FL
>
>  >>> [EMAIL PROTECTED] 02/27/01 04:45PM >>>
> unni
>
> I'm on Win2k
>
> sorry I should have provided that
>
> thnx
>
> Rob
>
> -Original Message-
> From: Web master [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Question about configuration
>
>
> Hi Stote,
>
> What OS are u using? If you are using Win'98 or Win NT, please let me
> know, I will try my level best to help you.
>
> -Unni
>
>
>
> Stote, Robert wrote:
>
>  > Hello:
>  >
>  > I was wondering...after I get apache and Tomcat installed where do I go
> from
>  > there...I've read all the documentation (users guide, developing
>  > applications, howto etc..)...and feeling over whelmed. I would like to
> have
>  > my servlets reside on Tomcat, the requests would be coming from
> html pages
>  > from apache...worded poorly sorry...but the long and the short of
> it is I
>  > have no idea what I should or shouldn't be changing...on the config
> files
>  > for example...are the pound signs..section that are commented
> out...where
> do
>  > I add the included statments..and when I did follow the users guide and
>  > edited the sever.xml file the whole thin (Tomcat) stopped
> working...I hope
>  > some one can help me..all I want to have happen is have an html, or jsp
>  > forward a request to a servlet which resides on Tomcat, have the
> servlet
> do
>  > what it has to do...then stream back the html, or xml back to the
> browser.
>  >
>  > I am completely lost..is there a book or something I should be
> reading ? I
>  > am a java programmer, and used to using javawebserver...
>  >
>  > Rob (total newbie)
>  > I guess there is a reason I only program in java ;)
>  >
>  >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, email: [EMAIL PROTECTED]
>  >
>  >
>  >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


--

Null session

2001-02-27 Thread Mead, David W.

Since we upgraded to Tomcat 3.2 in December, we have been seeing an
occational null session returned from req.getSession(false); 
We have seen this on slower systems < 300Mhz running Windows 95.  We have
not seen it on our faster hardware which is running NT, so we're not sure if
its related to the speed of the system or the OS.

Has anyone else seen this?  Know of any workarounds?

Thanks,

David Mead




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




Path Problem- URGENT

2001-02-27 Thread amitabh dubey

Hello,
   I am using Tomcat 3.1 on a win2k platform. I am
able to access my servlets from a browser, but am
unable to access my html and jsp pages from within my
servlets themselves. If i choose a path like
"index.htm", the complete path assumed is
c:\jakarta-tomcat\bin\index.htm. If i change it to
/index.htm, the assumed path is c:index.htm. If i
choose the path as ./index.htm, the path assumed is
c:\jakarta-tomcat\bin\./index.htm. 

Please can someone tell me hoow do i access a file say
"error.jsp" from withing my servlets that are
installed in
c:\jakarta-tomcat\webapps\LDS\WEB-INF\classes


Thank you
Amitabh


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: Question about configuration

2001-02-27 Thread Web master

where do you have the jsp's?
If you have the JSP in say c:\test
then create a context entry in server.xml

something like this

   
   

in the server.xml in the conf directory, right before 

after then stop and start the server.
go back and type in http://localhost:8080/test/example.jsp

Hope this helps.


Robert Keddie wrote:

> HI Unni...can u helpme out too?
> 
> I have Apache 1.3.14/Tomcat 1.1.2
> 
>  both running...
> 
> i can call up the helloworld example through the local host
> 
> but i cant call up my own jsp's! i get a 404
> 
>  
> 
> im on a win nt
> 
>  
> 
> Robert Keddie
> web development
> Marion County, FL
> 
>  >>> [EMAIL PROTECTED] 02/27/01 04:45PM >>>
> unni
> 
> I'm on Win2k
> 
> sorry I should have provided that
> 
> thnx
> 
> Rob
> 
> -Original Message-
> From: Web master [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Question about configuration
> 
> 
> Hi Stote,
> 
> What OS are u using? If you are using Win'98 or Win NT, please let me
> know, I will try my level best to help you.
> 
> -Unni
> 
> 
> 
> Stote, Robert wrote:
> 
>  > Hello:
>  >
>  > I was wondering...after I get apache and Tomcat installed where do I go
> from
>  > there...I've read all the documentation (users guide, developing
>  > applications, howto etc..)...and feeling over whelmed. I would like to
> have
>  > my servlets reside on Tomcat, the requests would be coming from 
> html pages
>  > from apache...worded poorly sorry...but the long and the short of 
> it is I
>  > have no idea what I should or shouldn't be changing...on the config 
> files
>  > for example...are the pound signs..section that are commented 
> out...where
> do
>  > I add the included statments..and when I did follow the users guide and
>  > edited the sever.xml file the whole thin (Tomcat) stopped 
> working...I hope
>  > some one can help me..all I want to have happen is have an html, or jsp
>  > forward a request to a servlet which resides on Tomcat, have the 
> servlet
> do
>  > what it has to do...then stream back the html, or xml back to the 
> browser.
>  >
>  > I am completely lost..is there a book or something I should be 
> reading ? I
>  > am a java programmer, and used to using javawebserver...
>  >
>  > Rob (total newbie)
>  > I guess there is a reason I only program in java ;)
>  >
>  >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, email: [EMAIL PROTECTED]
>  >
>  >
>  >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




RE: Question about configuration

2001-02-27 Thread Stote, Robert

so far I'm with you...

I have both apache...and tomcat up and running I can see each of there home
pages...where I getting stuck is the ability to configure apache or tomcat
(I'm not sure which one) to forward the requests that come in from apache to
tomcat to get tomcat to run the servlet. 

right now I'm reading a good article from java world..but it seams to
concentrate on running tomcat as a stand alone...
good article though...

http://www.javaworld.com/javaworld/jw-02-2001/jw-0223-servletweblogic.html

Rob



-Original Message-
From: Web master [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 5:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about configuration


I never used Win2K, but let us see, if i can help.

First you down load everything  fresh.(Tomcat and JDK)
you have update two variable in your environment
JAVA_HOME=c:\jdk1.3
TOMCAT_HOME=c:\jakarta-tomcat-3.2.1 (or what ever directory you have)
You can set it through the control panel.

Now go to tomcat bin directory

in my example it would be
c:\jakarta-tomcat-3.2.1\bin\
and execute startup.bat ie

c:\>cd c:\jakarta-tomcat-3.2.1\bin\
c:\jakarta-tomcat-3.2.1\bin>startup

Now this should bring in another ms dos prompt. that will be java 
console. You need not worry about it at this time

Now lanch your browser and put the following url and it should show the 
tomcat home page.
http://localhost:8080/

If you can see the tomcat home, then you are ready to make change to 
lanch your application. If you can not see tomcat homebase, we have to 
fix your configuration before continuing...



Robert Keddie wrote:

> HI Unni...can u helpme out too?
> 
> I have Apache 1.3.14/Tomcat 1.1.2
> 
>  both running...
> 
> i can call up the helloworld example through the local host
> 
> but i cant call up my own jsp's! i get a 404
> 
>  
> 
> im on a win nt
> 
>  
> 
> Robert Keddie
> web development
> Marion County, FL
> 
>  >>> [EMAIL PROTECTED] 02/27/01 04:45PM >>>
> unni
> 
> I'm on Win2k
> 
> sorry I should have provided that
> 
> thnx
> 
> Rob
> 
> -Original Message-
> From: Web master [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Question about configuration
> 
> 
> Hi Stote,
> 
> What OS are u using? If you are using Win'98 or Win NT, please let me
> know, I will try my level best to help you.
> 
> -Unni
> 
> 
> 
> Stote, Robert wrote:
> 
>  > Hello:
>  >
>  > I was wondering...after I get apache and Tomcat installed where do I go
> from
>  > there...I've read all the documentation (users guide, developing
>  > applications, howto etc..)...and feeling over whelmed. I would like to
> have
>  > my servlets reside on Tomcat, the requests would be coming from 
> html pages
>  > from apache...worded poorly sorry...but the long and the short of 
> it is I
>  > have no idea what I should or shouldn't be changing...on the config 
> files
>  > for example...are the pound signs..section that are commented 
> out...where
> do
>  > I add the included statments..and when I did follow the users guide and
>  > edited the sever.xml file the whole thin (Tomcat) stopped 
> working...I hope
>  > some one can help me..all I want to have happen is have an html, or jsp
>  > forward a request to a servlet which resides on Tomcat, have the 
> servlet
> do
>  > what it has to do...then stream back the html, or xml back to the 
> browser.
>  >
>  > I am completely lost..is there a book or something I should be 
> reading ? I
>  > am a java programmer, and used to using javawebserver...
>  >
>  > Rob (total newbie)
>  > I guess there is a reason I only program in java ;)
>  >
>  >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, email: [EMAIL PROTECTED]
>  >
>  >
>  >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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

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




AW: TomCat - IIS - Security

2001-02-27 Thread Christian Schulz
Title: AW: TomCat - IIS - Security





Hello Randy,


how can we tell TomCat to perfom user authentication using NT mechnism (NTLM) ? And, if we want to protect


"ourserver/secretfolder" with permissions for user "foo" and user "bar",
but
"ourserver/secretfolder/moresecret" with permissions for user "bar", how could that be possible ?


Bye


    Christian


-Ursprüngliche Nachricht-
Von: Randy Layman [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 27. Februar 2001 13:57
An: [EMAIL PROTECTED]
Betreff: RE: TomCat - IIS - Security




    This seems perfectly reasonable to me - you told IIS to protect
everything it serves our of outserver/secrectfolder and have apparently not
told Tomcat to protect this webapp.  If you want to protect all JSPs then
you can protect the /jakarta directory, or you could configure Tomcat to
perform user authentication.


    Randy


-Original Message-
From: Christian Schulz [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 8:17 AM
To: '[EMAIL PROTECTED]'
Cc: Thomas Dingel
Subject: TomCat - IIS - Security
Importance: High



Hello, 
when using Tomcat with IIS, we have a security hole. 
We installed Tomcat as descriped at the documentation. 
The following scenario will show our problem: 
We have a folder named reachable as http://outserver/secretfolder/ with NT
Security permissions set. 
The folder "secretfolder" can only be read by the system and by a user named
"foo". Now, without tomcat, the user "foo" can access the contents of the
folder "secretfolder", all other users will get "access denied". We use NTLM
for authentification (so the browser [IE 5.x] automatically send the current
NT user's account to the webserver).
Now, we put a file named "testme.jsp" to "secretfolder" and try to open it
from an NT User's account named "bar". The IIS now redirects to TomCat
without checking any permissions and tomcat returns the result of
"testme.jsp". But, in our opinion, this should not happen !!!
The user "bar" also has to get an error "access denied" ! So, TomCat
bypasses NT Security ! 
Does anybody have a solution for that ? 
Bye bye 
  Christian Schulz 


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





Re: Question about configuration

2001-02-27 Thread Web master

I never used Win2K, but let us see, if i can help.

First you down load everything  fresh.(Tomcat and JDK)
you have update two variable in your environment
JAVA_HOME=c:\jdk1.3
TOMCAT_HOME=c:\jakarta-tomcat-3.2.1 (or what ever directory you have)
You can set it through the control panel.

Now go to tomcat bin directory

in my example it would be
c:\jakarta-tomcat-3.2.1\bin\
and execute startup.bat ie

c:\>cd c:\jakarta-tomcat-3.2.1\bin\
c:\jakarta-tomcat-3.2.1\bin>startup

Now this should bring in another ms dos prompt. that will be java 
console. You need not worry about it at this time

Now lanch your browser and put the following url and it should show the 
tomcat home page.
http://localhost:8080/

If you can see the tomcat home, then you are ready to make change to 
lanch your application. If you can not see tomcat homebase, we have to 
fix your configuration before continuing...



Robert Keddie wrote:

> HI Unni...can u helpme out too?
> 
> I have Apache 1.3.14/Tomcat 1.1.2
> 
>  both running...
> 
> i can call up the helloworld example through the local host
> 
> but i cant call up my own jsp's! i get a 404
> 
>  
> 
> im on a win nt
> 
>  
> 
> Robert Keddie
> web development
> Marion County, FL
> 
>  >>> [EMAIL PROTECTED] 02/27/01 04:45PM >>>
> unni
> 
> I'm on Win2k
> 
> sorry I should have provided that
> 
> thnx
> 
> Rob
> 
> -Original Message-
> From: Web master [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 27, 2001 4:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Question about configuration
> 
> 
> Hi Stote,
> 
> What OS are u using? If you are using Win'98 or Win NT, please let me
> know, I will try my level best to help you.
> 
> -Unni
> 
> 
> 
> Stote, Robert wrote:
> 
>  > Hello:
>  >
>  > I was wondering...after I get apache and Tomcat installed where do I go
> from
>  > there...I've read all the documentation (users guide, developing
>  > applications, howto etc..)...and feeling over whelmed. I would like to
> have
>  > my servlets reside on Tomcat, the requests would be coming from 
> html pages
>  > from apache...worded poorly sorry...but the long and the short of 
> it is I
>  > have no idea what I should or shouldn't be changing...on the config 
> files
>  > for example...are the pound signs..section that are commented 
> out...where
> do
>  > I add the included statments..and when I did follow the users guide and
>  > edited the sever.xml file the whole thin (Tomcat) stopped 
> working...I hope
>  > some one can help me..all I want to have happen is have an html, or jsp
>  > forward a request to a servlet which resides on Tomcat, have the 
> servlet
> do
>  > what it has to do...then stream back the html, or xml back to the 
> browser.
>  >
>  > I am completely lost..is there a book or something I should be 
> reading ? I
>  > am a java programmer, and used to using javawebserver...
>  >
>  > Rob (total newbie)
>  > I guess there is a reason I only program in java ;)
>  >
>  >
>  >
>  >
>  > -
>  > To unsubscribe, e-mail: [EMAIL PROTECTED]
>  > For additional commands, email: [EMAIL PROTECTED]
>  >
>  >
>  >
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


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




vhost's

2001-02-27 Thread josh

As far as I can tell, tomcat doesn't have a way to just allow a /servlet 
directory so I can put all my .java, .class, and .jar files in like most 
servlet install files ask, am I missing something?  It appears that I have 
to use the webapps directory, then have the WEB-INF directory structure 
below it.  Is that right?

Josh


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




RE: Zone?

2001-02-27 Thread Hawkins, Keith (Keith)

Did you stop and restart the web server and tomcat?

-Original Message-
From: Richard Brodine (SWUS) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 4:06 PM
To: '[EMAIL PROTECTED]'
Subject: Zone?


We would like to be able to invoke our servlet by entering a URL of
http://SIASDEV06/sias/servlet instead of http://SIASDEV06/sias/java/servlet.
I have entered a context definition for sias in the Tomcat server.xml file
but it does not seem to have an effect. The browser cannot find the URL.

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

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




Open-source compliant way of deploying Tomcat to customer sites

2001-02-27 Thread Hawkins, Keith (Keith)


Hello,

We have a product which we sell to our customers for which we want to
include Tomcat for the version of our product that runs under IIS.  (Our
product is a servlet based application that is deployed on our customers'
web servers.)

What is the open-source compliant way we can ship Tomcat to our customers?
I checked the FAQ, but didn't see anything regarding this.

Please CC my email address  ([EMAIL PROTECTED]) on any replies since I
don't want to miss a response in the 100+ other messages that arrive in the
tomcat-user list each day.

Thanks in advance,
Keith


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




RE: Question about configuration

2001-02-27 Thread Robert Keddie



HI Unni...can u helpme out too?
I have Apache 1.3.14/Tomcat 1.1.2
 both running...
i can call up the helloworld example through the local host
but i cant call up my own jsp's! i get a 404
 
im on a win nt
 
Robert Keddieweb developmentMarion County, FL>>> 
[EMAIL PROTECTED] 02/27/01 04:45PM >>>unniI'm on 
Win2ksorry I should have provided thatthnx Rob 
-Original Message-From: Web master 
[mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 27, 2001 4:26 PMTo: 
[EMAIL PROTECTED]Subject: Re: Question about 
configurationHi Stote,What OS are u using? If you are using 
Win'98 or Win NT, please let me know, I will try my level best to help 
you.-UnniStote, Robert wrote:> Hello:> 
> I was wondering...after I get apache and Tomcat installed where do I 
gofrom> there...I've read all the documentation (users guide, 
developing> applications, howto etc..)...and feeling over whelmed. I 
would like tohave> my servlets reside on Tomcat, the requests would 
be coming from html pages> from apache...worded poorly sorry...but the 
long and the short of it is I> have no idea what I should or shouldn't be 
changing...on the config files> for example...are the pound 
signs..section that are commented out...wheredo> I add the included 
statments..and when I did follow the users guide and> edited the 
sever.xml file the whole thin (Tomcat) stopped working...I hope> some one 
can help me..all I want to have happen is have an html, or jsp> forward a 
request to a servlet which resides on Tomcat, have the servletdo> 
what it has to do...then stream back the html, or xml back to the 
browser.> > I am completely lost..is there a book or something I 
should be reading ? I> am a java programmer, and used to using 
javawebserver...> > Rob (total newbie)> I guess there is a 
reason I only program in java ;)> > > > > 
-> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For 
additional commands, email: [EMAIL PROTECTED]> > 
> 
-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, email: 
[EMAIL PROTECTED]-To 
unsubscribe, e-mail: [EMAIL PROTECTED]For 
additional commands, email: 
[EMAIL PROTECTED]


Re: log() ?

2001-02-27 Thread Bo Xu

Shahed Ali wrote:

> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
>
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and
> I keep getting NullPointerExceptions
>
> Thanks
> Shahed
> [...]

Hi :-)  I also have this question:
*   I put "this.getServletContext().log("a");" in "service(...)"
  method in MyServlet
*   in TOMCAT_HOME/logs, I find several kinds of log files:
 - localhost_log.2001-02-27.txt
 - localhost_examples_log.2001-02-27.txt
 - catalina_log.2001-02-27.txt
 - catalina.out
 - localhost_access_log..txt

 every time when I access MyServlet, I find Only
  localhost_access_log..txt is updated, but I didn't
  find "a" in it.  could anybody tell me how to
  do it?


Thanks in advance!

Bo
Feb.27, 2001




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




RE: Tomcat or Resin

2001-02-27 Thread GOMEZ Henri

>I am setting up this web server:
>Pentium 100
>RedHat 6.2
>Apache 1.3.17 
>
>We will use both static and dynamic pages and therefor I was 
>going to install Tomcat. However, I keep coming across 
>positive comments on Resin. Could anyone advise me on which 
>way to go, Tomcat or Resin? Especially if you have experience 
>with both. Why would I choose one over the other?? Is Tomcat 
>still the main road?

You're using Redhat 6.2 system and one reason to use Tomcat instead
of Resin could be there is RPM which will ease the installation and
runtime.

1) rpm -Ivh tomcat-xxx.noarch.rpm => install the servlet engine.
   The tomcat server will be launch automatically at startup via
   the init process (/etc/rc.d/init.d/tomcat)

2) If you want to use tomcat behind the Apache web server, in 
   normal or secure (SSL), install tomcat-mod-xxx.i386.rpm.
   That will install necessary module in Apache.

3) Apache / Tomcat is the perfect combination since via mod_jk
   you could have a farm of Tomcat behind Apache. You directly
   get a fault-tolerant and load-balancing system.

Resin may be faster than current Tomcat release but speed 
increase at each release. Preliminary versions of Tomcat 3.3
show a great boost in performance over Tomcat 3.1 or Tomcat 3.2.

Tomcat is also the servlet reference at Sun and Tomcat 4.0 will
be certainly include in upcoming JDK refs

But you're right, we may be partial ;-)

When you choose a product you must go beyond performance and
take in consideration Openess, Documentation and stability.


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




RE: Question about configuration

2001-02-27 Thread Stote, Robert

unni

I'm on Win2k

sorry I should have provided that

thnx 

Rob 

-Original Message-
From: Web master [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: Question about configuration


Hi Stote,

What OS are u using? If you are using Win'98 or Win NT, please let me 
know, I will try my level best to help you.

-Unni



Stote, Robert wrote:

> Hello:
> 
> I was wondering...after I get apache and Tomcat installed where do I go
from
> there...I've read all the documentation (users guide, developing
> applications, howto etc..)...and feeling over whelmed. I would like to
have
> my servlets reside on Tomcat, the requests would be coming from html pages
> from apache...worded poorly sorry...but the long and the short of it is I
> have no idea what I should or shouldn't be changing...on the config files
> for example...are the pound signs..section that are commented out...where
do
> I add the included statments..and when I did follow the users guide and
> edited the sever.xml file the whole thin (Tomcat) stopped working...I hope
> some one can help me..all I want to have happen is have an html, or jsp
> forward a request to a servlet which resides on Tomcat, have the servlet
do
> what it has to do...then stream back the html, or xml back to the browser.
> 
> I am completely lost..is there a book or something I should be reading ? I
> am a java programmer, and used to using javawebserver...
> 
> Rob (total newbie)
> I guess there is a reason I only program in java ;)
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


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

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




RE: log() ?

2001-02-27 Thread S Ramakrishnan

The Throwable argument is optional.
This is a different problem.

The GenericServlet has a log() service.
You do not need to seek ServletContext
to log messages within the HttpServlet methods
At any rate, you pl post the stack trace?

Rk
x77309

-Original Message-
From: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 1:33 PM
To: [EMAIL PROTECTED]
Subject: Re: log() ?


On Tue, 27 Feb 2001, Shahed Ali wrote:

> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
>
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and
> I keep getting NullPointerExceptions

The function signature is log(String message, Throwable, throwable).  Is
this what might be casuing the null pointer exception?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Stupidity, like virtue, is its own reward.


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


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




Re: log() ?

2001-02-27 Thread Brett W. McCoy

On Tue, 27 Feb 2001, Shahed Ali wrote:

> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
>
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and
> I keep getting NullPointerExceptions

The function signature is log(String message, Throwable, throwable).  Is
this what might be casuing the null pointer exception?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Stupidity, like virtue, is its own reward.


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




Re: Question about configuration

2001-02-27 Thread Web master

Hi Stote,

What OS are u using? If you are using Win'98 or Win NT, please let me 
know, I will try my level best to help you.

-Unni



Stote, Robert wrote:

> Hello:
> 
> I was wondering...after I get apache and Tomcat installed where do I go from
> there...I've read all the documentation (users guide, developing
> applications, howto etc..)...and feeling over whelmed. I would like to have
> my servlets reside on Tomcat, the requests would be coming from html pages
> from apache...worded poorly sorry...but the long and the short of it is I
> have no idea what I should or shouldn't be changing...on the config files
> for example...are the pound signs..section that are commented out...where do
> I add the included statments..and when I did follow the users guide and
> edited the sever.xml file the whole thin (Tomcat) stopped working...I hope
> some one can help me..all I want to have happen is have an html, or jsp
> forward a request to a servlet which resides on Tomcat, have the servlet do
> what it has to do...then stream back the html, or xml back to the browser.
> 
> I am completely lost..is there a book or something I should be reading ? I
> am a java programmer, and used to using javawebserver...
> 
> Rob (total newbie)
> I guess there is a reason I only program in java ;)
> 
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


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




Re: get init parameters

2001-02-27 Thread Brett W. McCoy

On Tue, 27 Feb 2001, Carlos de la Flor wrote:

> in the web.xml i have some init parameters:
> name
> param-value>value
> in the jsp page with the <%=request.getInitParameter("name")%>
> i print the value.
> But how can i this value put in a string? (String name2 = ... )??
> or how can i put the value into this:?
> <%=w.myservlet(XX)%> the XX must to be the value of the init parameter.
> Is this posibnle?
> can anybody help me?

<% String name2 = request.getInitParameter("name"); %>
<%=name2%>

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Truth will out this morning.  (Which may really mess things up.)



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




Re: MySQL question - No suitable driver

2001-02-27 Thread Web master


I am using the MySql and I don't have any problem. Please check my db 
code below. One more thing, if you are using win '98 then use 8.3 
filename format in the class path.

public mysql_db(String uid, String pwd)
{
 
  try
  {
  Class.forName("org.gjt.mm.mysql.Driver").newInstance();
  } catch (Exception e)
  {
  System.out.println(e);
  return;
  }

  try
  {
  con = DriverManager.getConnection(
 "jdbc:mysql://localhost:3306/test",uid,pwd);
  stmt = con.createStatement();
  } catch (Exception e)
  {
  System.out.println(e);
  return;
  }
}


Wong, Connie wrote:

> Hi,
> 
> I try to connect a servlet talk to the MySQL database.
>  I set:
>  
>  drivername = "org.gjt.mm.mysql.Driver" and
>  url = "jdbc:mysql:tbl_data"
> 
> I downloaded MyODBC and fill in the ODBC setup and add the
> "mm_mysql-2_0_2-bin.jar" in the classpath.
> 
> When I run my servlet on the browser, it display the following Exception:
> 
> 
> java.sql.SQLException: No suitable driver at
> java.sql.DriverManager.getConnection(DriverManager.java:537) at
> java.sql.DriverManager.getConnection(DriverManager.java:146) at
> Benchmark_sql.query(Benchmark_sql.java:94) at
> Benchmark_sql.doGet(Benchmark_sql.java:47) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
> at
> org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
> org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
> at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
> onnectionHandler.java:160) at
> org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
> ) at java.lang.Thread.run(Thread.java:484) n
> 
> 
> Can someon tell me what else I do miss?
> Thanks,
> Connie
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> 
> 


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




Tomcat or Resin

2001-02-27 Thread Ase Lieden-Seeligson

I am setting up this web server:
Pentium 100
RedHat 6.2
Apache 1.3.17 

We will use both static and dynamic pages and therefor I was going to install Tomcat. 
However, I keep coming across positive comments on Resin. Could anyone advise me on 
which way to go, Tomcat or Resin? Especially if you have experience with both. Why 
would I choose one over the other?? Is Tomcat still the main road?

Åse 

PS I am an intern who is setting this system up for the local Court house. They have 
staff who will be able to support it when I am done. Personally, I am new at this, so 
please be clear and simple... Thanks!

PS2. I realize this list might not be the most impartial place to post this question, 
but I'll do it anyway. If anyone has suggestions on other mailing lists to ask, please 
let me know. Thanks!


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




log() ?

2001-02-27 Thread Shahed Ali

Sorry for this stupid question,
but how do I use the log() method in servlets ?

In JSP application.log() seems to work,
but in servlets, I tried getServletContext().log("adad") etc and 
I keep getting NullPointerExceptions

Thanks
Shahed


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




RE: get init parameters

2001-02-27 Thread Thierry Leveque



 
Something simple has this
 
<%
    String initString = 
getServletContext().getInitParameter("name");
%>
 
<%=initString%>
 
Basic Java!!
 
Thierry

  -Original Message-[Thierry Leveque] From: Carlos de la Flor 
  [mailto:[EMAIL PROTECTED]]Sent: 27 février, 2001 16:08To: 
  [EMAIL PROTECTED]Subject: get init 
  parameters
  in the web.xml i have some init parameters:
  name
  param-value>value
  in the jsp page with the 
<%=request.getInitParameter("name")%>
  i print the value.
  But how can i this value put in a string? (String name2 = ... )??
  or how can i put the value into this:?
  <%=w.myservlet(XX)%> the XX must to be the value of the init 
  parameter.
  Is this posibnle?
  can anybody help me?
  thanks
  Carlos


Zone?

2001-02-27 Thread Richard Brodine (SWUS)

We would like to be able to invoke our servlet by entering a URL of
http://SIASDEV06/sias/servlet instead of http://SIASDEV06/sias/java/servlet.
I have entered a context definition for sias in the Tomcat server.xml file
but it does not seem to have an effect. The browser cannot find the URL.

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




get init parameters

2001-02-27 Thread Carlos de la Flor



in the web.xml i have some init parameters:
name
param-value>value
in the jsp page with the <%=request.getInitParameter("name")%>
i print the value.
But how can i this value put in a string? (String name2 = ... )??
or how can i put the value into this:?
<%=w.myservlet(XX)%> the XX must to be the value of the init 
parameter.
Is this posibnle?
can anybody help me?
thanks
Carlos


Question about configuration

2001-02-27 Thread Stote, Robert

Hello:

I was wondering...after I get apache and Tomcat installed where do I go from
there...I've read all the documentation (users guide, developing
applications, howto etc..)...and feeling over whelmed. I would like to have
my servlets reside on Tomcat, the requests would be coming from html pages
from apache...worded poorly sorry...but the long and the short of it is I
have no idea what I should or shouldn't be changing...on the config files
for example...are the pound signs..section that are commented out...where do
I add the included statments..and when I did follow the users guide and
edited the sever.xml file the whole thin (Tomcat) stopped working...I hope
some one can help me..all I want to have happen is have an html, or jsp
forward a request to a servlet which resides on Tomcat, have the servlet do
what it has to do...then stream back the html, or xml back to the browser.

I am completely lost..is there a book or something I should be reading ? I
am a java programmer, and used to using javawebserver...

Rob (total newbie)
I guess there is a reason I only program in java ;)




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




RE: Where to place .properties-Files when deploying a .war ?

2001-02-27 Thread Chris Andreou

What deployment tool are you using to create the war file ?


-Original Message-
From: Michael Specht [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 12:47 PM
To: [EMAIL PROTECTED]
Subject: Where to place .properties-Files when deploying a .war ?
Importance: High


Hello,

where i have to place the .properties-Files, when deploying an application
as an .war-File?
I tried several locations:
  - in root of war-File
  - in the WEB-INF/lib-directory
  - in the WEB-INF/classes directory
  - in the root of the web-apps/ dir
 and ...

I always get the Message 

java.util.MissingResourceException: Can't find bundle for base name EcoText,
locale de_DE

Can anyone help

Thanks
Michael


Michael Specht

T-Systems
debis Systemhaus Dienstleistungen GmbH, BU CRM Nord
Hausanschrift: Frankfurter Straße 27, 65760 Eschborn
Telefon: (0 61 96) 9 61 - 575
Telefax: (0 61 96) 9 61 - 564
Mobiltelefon: (0171) 45 84 172
E-Mail: [EMAIL PROTECTED]
Internet: http://www.t-systems.de



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

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




MySQL question - No suitable driver

2001-02-27 Thread Wong, Connie

Hi,

I try to connect a servlet talk to the MySQL database.
 I set:
 
 drivername = "org.gjt.mm.mysql.Driver" and
 url = "jdbc:mysql:tbl_data"

I downloaded MyODBC and fill in the ODBC setup and add the
"mm_mysql-2_0_2-bin.jar" in the classpath.

When I run my servlet on the browser, it display the following Exception:


java.sql.SQLException: No suitable driver at
java.sql.DriverManager.getConnection(DriverManager.java:537) at
java.sql.DriverManager.getConnection(DriverManager.java:146) at
Benchmark_sql.query(Benchmark_sql.java:94) at
Benchmark_sql.doGet(Benchmark_sql.java:47) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:740) at
javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:597)
at
org.apache.tomcat.servlets.InvokerServlet.service(InvokerServlet.java:257)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at
org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559) at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:160) at
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338
) at java.lang.Thread.run(Thread.java:484) n


Can someon tell me what else I do miss?
Thanks,
Connie

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




RE: Profile tool for Apache/Tomcat

2001-02-27 Thread Casey Lucas



Try OptimizeIt (www.optimizeit.com).  It has tomcat integration and they have
an eval you can download. I tried the download and like it so much that
we're probably going to buy it.


-Casey

-Original Message-
From: George Shafik [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 1:30 PM
To: [EMAIL PROTECTED]
Subject: Profile tool for Apache/Tomcat


Hi,

We are looking for a profiling tool for Apache/Tomcat and if that is not possible a 
class library that implements a framework that
we can incorporate into our development environment that will aid us in locating 
possible bottle neck in our code and thus target
these areas for JNI.

Greatly appreciative of any help as this is an issue that has been raised on this 
"list" on several occasions with no real input.

Regards,
George


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




RE: newbie help

2001-02-27 Thread Robert Keddie



when i look at th etomcat window it says the following
 
date time-Ctx( ):404R( +/permit_number.jsp + null) JSP file not 
found
 
do i not have something connectted right?
 
 
Robert Keddieweb developmentMarion County, FL>>> 
[EMAIL PROTECTED] 02/27/01 02:32PM >>>
Try using http://yourserver:8080/soandso.jsp  
or http://yourserver:8080/jsp/soandso.jsp  

 

  -Original Message-From: Robert Keddie 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 27, 
  2001 11:29 AMTo: 
  "'[EMAIL PROTECTED]'"<[EMAIL PROTECTED]Subject: 
  newbie help
  I just started tomcat and apache.
  I send a request to apache for soandso.jsp and I get back
   
  NOT FOUND (404)
  original request: /soandso.jsp
   
  not found request: /soandso.jsp
   
  Do i have the jsp's in the wrong directory on the Apache?
   
  they are under htdocs/jsp  
  i have htdocs set as root
   
  I have Apache 1.3.14 on root of C drive on an NT
  I have Tomcat  on the Apache server
  I have Jserv 1.1.2 under c:/program files
  I have jsdk 2.0 on root of C drive
   
  I am really at a loss as to how to make this work and where th ejsps and 
  class files belong etc :(   
   
  help?
   
   
   
  Robert Keddieweb developmentMarion County, 
FL


Re: newbie help

2001-02-27 Thread William Brogden

Number one note for newbies. STOP sending HTML formatted email
to the list. Plain text only please.

-- 
WBB - [EMAIL PROTECTED]
Java Cert mock exams http://www.lanw.com/java/javacert/
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

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




Problems Starting tomcat?

2001-02-27 Thread Noah silva

Hi,

I had Tomcat semi-working (not doing what I wanted, but at least
starting!), but recently, it changed to giving me this message:  I tried
switching back to my olv JVM, but tno no avail.  I also un-installed, and
re-installed both the JVM and tomcat, again, only to recieve the same
message.  ANyone have any idea what's wrong?  I would guess it's not
finding the class to start.

thanks,
   noah silva

transcript follows:


sparcy:/usr/local/tomcat/bin# ./startup.sh
Guessing TOMCAT_HOME from tomcat.sh to ./..
Setting TOMCAT_HOME to ./..
Using classpath:
./../lib/ant.jar:./../lib/jasper.jar:./../lib/jaxp.jar:./../lib
/parser.jar:./../lib/servlet.jar:./../lib/test:./../lib/webserver.jar
sparcy:/usr/local/tomcat/bin# java.lang.ExceptionInInitializerError:
[exception
was java.util.MissingResourceException: no bundles found:
org.apache.tomcat.reso
urces.LocalStrings]
at java.lang.Throwable.(Throwable.java:38)
at java.lang.Error.(Error.java:21)
at java.lang.LinkageError.(LinkageError.java:21)
at
java.lang.ExceptionInInitializerError.(ExceptionInInitializerEr
ror.java:25)


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




RE: newbie help

2001-02-27 Thread Bryan Lipscy



Try using http://yourserver:8080/soandso.jsp  
or http://yourserver:8080/jsp/soandso.jsp  

 

  -Original Message-From: Robert Keddie 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 27, 
  2001 11:29 AMTo: 
  "'[EMAIL PROTECTED]'"<[EMAIL PROTECTED]Subject: 
  newbie help
  I just started tomcat and apache.
  I send a request to apache for soandso.jsp and I get back
   
  NOT FOUND (404)
  original request: /soandso.jsp
   
  not found request: /soandso.jsp
   
  Do i have the jsp's in the wrong directory on the Apache?
   
  they are under htdocs/jsp  
  i have htdocs set as root
   
  I have Apache 1.3.14 on root of C drive on an NT
  I have Tomcat  on the Apache server
  I have Jserv 1.1.2 under c:/program files
  I have jsdk 2.0 on root of C drive
   
  I am really at a loss as to how to make this work and where th ejsps and 
  class files belong etc :(   
   
  help?
   
   
   
  Robert Keddieweb developmentMarion County, 
FL


RE: Tomcat newbies mailing list

2001-02-27 Thread Stote, Robert



Hi Robert...
Being a newbie myself 
I'm all for it
 
Rob Stote 
Applications Developer
West Greenwich RI

  -Original Message-From: Robert Keddie 
  [mailto:[EMAIL PROTECTED]]Sent: Tuesday, February 27, 
  2001 1:34 PMTo: [EMAIL PROTECTED]Subject: 
  Re: Tomcat newbies mailing list
  GOOD IDEA!
   
  Robert Keddieweb developmentMarion County, FL>>> 
  [EMAIL PROTECTED] 02/27/01 12:17PM >>>
  There has been some off the list discussion regarding starting a new 
  mailing list for tomcat-newbies.  The purpose of this mailing list would 
  be to handle setup issues and would be geared towards the first time tomcat 
  user.  What this mailing list would not be for is advanced installation 
  & configuration issues.  The basic premise here is for the mailing 
  list to be a safer place to ask those basic questions then flounder around in 
  documentation for days on end or getting an rtm reply.
  What do you, the subscribers of tomcat-user, think?  Good idea?  
  Bad idea?  Is this something that needs to happen? 
  Bryan Lipscy 


Profile tool for Apache/Tomcat

2001-02-27 Thread George Shafik



Hi,
 
We are looking for a profiling tool for Apache/Tomcat and if 
that is not possible a class library that implements a framework that we 
can incorporate into our development environment that will aid us in 
locating possible bottle neck in our code and thus target these areas for 
JNI.
 
Greatly appreciative of any help as this is an issue that has 
been raised on this "list" on several occasions with no 
real input.
 
Regards,
George


newbie help

2001-02-27 Thread Robert Keddie



I just started tomcat and apache.
I send a request to apache for soandso.jsp and I get back
 
NOT FOUND (404)
original request: /soandso.jsp
 
not found request: /soandso.jsp
 
Do i have the jsp's in the wrong directory on the Apache?
 
they are under htdocs/jsp  
i have htdocs set as root
 
I have Apache 1.3.14 on root of C drive on an NT
I have Tomcat  on the Apache server
I have Jserv 1.1.2 under c:/program files
I have jsdk 2.0 on root of C drive
 
I am really at a loss as to how to make this work and where th ejsps and 
class files belong etc :(   
 
help?
 
 
 
Robert Keddieweb developmentMarion County, FL


Re: tomcat status ??

2001-02-27 Thread Chris Haynes
Title: tomcat status ??



Srini,
 
Running under linux I've found that the following 
is useful.
It returns a string if tomcat is actively listening 
on its ajp12 port (port 8006 in my config),
 and nothing if it isn't.
 
This seems quite a good test of 
"running"
 
netstat -t -l -n | grep 0:8006
 
Chris Haynes
Evesham
England

  - Original Message - 
  From: 
  Srinivas Kurella 
  To: '[EMAIL PROTECTED]' 
  
  Sent: Tuesday, February 27, 2001 7:08 
  PM
  Subject: tomcat status ??
  
  Is there a tool or utility to check the status of tomcat ? 
  something like "tomcat.sh status" to find out if 
  tomcat is up and running. I am trying to write an installation script for my 
  app and i need to check the status before that.
  Thanks, 
  Srini 


Re: Tomcat class loader

2001-02-27 Thread Bo Xu

uthay wrote:

> Thx Jim
>
> I tried that.
> I also want to bring some other thing I read recently.
> It states that although tomcat supports class reloading on updation it is
> still not supported to those classes that are not servlets.
> What does that supposed to mean?
> [...]

> [...]
> >
> > Uthay - I was having the same problem. See my post yesterday under subject
> > JSP caching.
> >
> > The problem is that your WEB-INF directory is probably in your CLASSPATH
> > when you start Tomcat - see the FAQ - it won't reload classes in your
> > CLASSPATH
> >
> > There is a question/answer in the FAQ re: this - I feel dumb about it. Now
> > you can too :)
> >
> > Good luck.
> >
> > Jim
> [...]

> [...]
> > >From: "uthay"
> > >Subject:  Tomcat class loader
> > >Date:  Tue, 27 Feb 2001 13:15:44 -
> > >
> > > It was stated in the tomcat installation instructions that tomcat will
> > > reload any servelet or jsp file if the file is changed.
> > > I am using a package through a servlet. Although I have modified the
> > > package, tomcat is refusing to load the new classes and holding onto the
> > > older ones.
> > > May be its because they are not servlets??
> > > Is there anyway of solving this.
> > > Does tomcat follow a different class loading mechanism for classes
> > >that are not servlets. (classes in WEB-INF)?
> [...]

Hi :-)   I am not sure, the following is from my work with
jakarta-tomcat-4.0-b1(standalone, JDK1.3,  winnt40), I post
here as a reference:

   * in myapp(one special webapp):

 - all MyServlet(Servlet class) in WEB-INF/classes
 - all MyHelper(Helper class, class-style)  in WEB-INF/classes
 - all MyHelper(Helper class, jar-style)  in WEB-INF/lib
 are loaded by the same(OnlyOne) classloader;
 and if ANY of them is modified,  then:
 -  after a while(for example, 0.x second to several seconds)
AND
 - get a client-requesting which is to any servlet definition of
any MyServlet in myapp
 then:
 -  the old OnlyOne classloader is destroied ; a new OnlyOne
classloader is made.
  - at least, that MyServlet class which is belong to that servlet
 definition which is invoked is loaded ;
 and an instance of this loaded class is made for that servlet
 definition which is being requested;
 and all MyHelper need by the loaded class  is loaded by
 the same OnlyOne classloader.
  - just from my work,  I didn't find any servlet definition which
has "" can be "started"
at this moment(reloading) -> IF  this servlet definition doesn't
get a client-requesting.
  -after this moment, the new OnlyOne classloader begins to work,
just like the old one.
  - now because the old classloader is not there, so if we put some
object which is loaded by the old classloader into ServletContext
 as a Attribute,  now perhaps this object will not have its Class
 object( it is like a tree without root :-)  ), but now this object
 also can not be GCed-> it has a reference in ServletContext ,
 so now perhaps our servlet code will meet a error.

* and I also have a question about the "Shared classloader"
   - I find when jakarta-tomcat-4.0-b1 starts, all my CLASSPATH
 is lost -> jakarta-tomcat-4.0-b1 disable all "custom CLASSPATH",
 is that right?   if so, I guess it means I can not use some "System
 classloader", am I right?

   - so now I try to find a classloader within jakarta-tomcat-4.0-b1,
 but because the classloader "inside every wepapp" will be
 destroied/re-made,  so sometimes I want to use the "Shared
 classloader" to load some MyHelper which need to "live for
 long time", but just from my work, no matter I put MyHelper
 (jar style) in:
 %  TOMCAT_HOME/lib
 %  TOMCAT_HOME/classes

 I can not load MyHelper in MyServlet, and I got the following
 in browser:
 HTTP Status 500 - /myServletFolder0/servlet/MyServlet
 The server encountered an internal error
 (/myServletFolder0/servlet/MyServlet)
 that prevented it from fulfilling this request.

 so:
 -  can anybody do the above with jakarta-tomcat-4.0-b1?
 -  can anybody do the above with 3.2.1 or other version?

 thanks very much in advance!  if somebody can give me direction
 about how to do it, I will send you a good 2CD->" many signers
 tribute to Bob Dylan"  it is very good! :-) Stevie Wonder sings
 a song named "blow in the wind", and I think he sings this song
 much better than Bob Dylan himself!   //hahahahaha :-) :-)


Bo
Feb.27, 2001



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




tomcat status ??

2001-02-27 Thread Srinivas Kurella
Title: tomcat status ??






Is there a tool or utility to check the status of tomcat ? 
something like "tomcat.sh status" to find out if tomcat is up and running. I am trying to write an installation script for my app and i need to check the status before that.

Thanks,


Srini





Building Tomcat for the first time

2001-02-27 Thread Karl Martino

I'm following the directions from the README that
accompanies the CVS module jakarta-tomcat and am
working on Windows 2000.

When executing bootstrap to build jakarta-ant, it
reports that the build is successful, but the
bootstrap does not copy ant.jar  to the
$JAKARTA_HOME/jakarta-ant/lib subdirectory.  I do find
it, in $JAKARTA_HOME/jakarta-ant/lib/lib.  

Am I doing something wrong, is the documentation in
error, or is the bootstrap not working the way it
should on my machine?

Thanks,
-Karl

__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




Re: Tomcat newbies mailing list

2001-02-27 Thread Noah silva

Hello,

I think this "newbie" list is a good idea, as long as there are more
expert users willing to monitor the list answer the questions asked by the
newbies.  Tomcat is somewhat confusing to people not used to it, and it
isn't always easy to find what is needed in the documentation.

Thanks,
   Noah Silva

On Tue, 27 Feb 2001, Robert Keddie wrote:

> GOOD IDEA!
> 
> Robert Keddie
> web development
> Marion County, FL
> 
> >>> [EMAIL PROTECTED] 02/27/01 12:17PM >>>
> 
> There has been some off the list discussion regarding starting a new mailing list 
>for tomcat-newbies.  The purpose of this mailing list would be to handle setup issues 
>and would be geared towards the first time tomcat user.  What this mailing list would 
>not be for is advanced installation & configuration issues.  The basic premise here 
>is for the mailing list to be a safer place to ask those basic questions then 
>flounder around in documentation for days on end or getting an rtm reply.
> What do you, the subscribers of tomcat-user, think?  Good idea?  Bad idea?  Is this 
>something that needs to happen? 
> 
> 
> Bryan Lipscy 
> 


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




Re: Tomcat newbies mailing list

2001-02-27 Thread Robert Keddie



GOOD IDEA!
 
Robert Keddieweb developmentMarion County, FL>>> 
[EMAIL PROTECTED] 02/27/01 12:17PM >>>
There has been some off the list discussion regarding starting a 
new mailing list for tomcat-newbies.  The purpose of this mailing list 
would be to handle setup issues and would be geared towards the first time 
tomcat user.  What this mailing list would not be for is advanced 
installation & configuration issues.  The basic premise here is for the 
mailing list to be a safer place to ask those basic questions then flounder 
around in documentation for days on end or getting an rtm reply.
What do you, the subscribers of tomcat-user, think?  Good 
idea?  Bad idea?  Is this something that needs to happen? 

Bryan Lipscy 


building mod_jk on Solaris

2001-02-27 Thread Ed Osborne

I've followed the docs for building mod_jk on a Solaris 2.6 sparc but I
get the following.

$apxs -o mod_jk.so -DSOLARIS -I../jk -I/usr/java/include
-I/usr/java/include/solaris -c *.c ../jk/*.c

gcc -DSOLARIS2=260 -DMOD_SSL=204100 -DEAPI -DUSE_EXPAT -I../lib/expat-lite
-fPIC -DSHARED_CORE -DSHARED_MODULE -I/usr/local/apache/include
-I/usr/java/include -I/usr/java/include/solaris -I../jk -DSOLARIS  -c
mod_jk.c
mod_jk.c: In function `ws_start_response':
mod_jk.c:217: internal error--unrecognizable insn:
(insn 20 18 21 (set (reg:SI 106)
(mem/f:SI (plus:SI (reg:SI 30 %fp)
(const_int 68 [0x44])) 0)) -1 (nil)
(nil))
apxs:Break: Command failed with rc=65536



Has anyone had any problems building this module?

Any suggestions?


Thanks in advance.

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




poolman

2001-02-27 Thread Ryan



I was wondering if anyone has used the pooling 
library called PoolMan.. it can be found on freshmeat.net. I have heard good 
things about it and the souce code seems pretty nifty. However, I tried 
compiling the sample file and all worked fine, but when I ran the compiled class 
it said that the poolman driver could not be located
 
any help on how to get it working would be 
great
 
-thanx
ryan
 
 
here is the error for what its 
worth---
root@the45:/home/http/jsp/the45# 
java PoolManSample "SELECT * FROM userpass;"

 
Executing demo of SQLUtil syntax, in which SQLUtil 
manages the query and all resources automatically (last db in poolman.props is 
used):
 
Looks like the driver was not found...Be sure 
it is in your CLASSPATH and listed properly in the properties file.A non-SQL 
error occurred when requesting a 
connection:java.lang.NullPointerExceptionLooks like the driver was not 
found...Be sure it is in your CLASSPATH and listed properly in the 
properties file.A non-SQL error occurred when requesting a 
connection:java.lang.NullPointerExceptionLooks like the driver was not 
found...Be sure it is in your CLASSPATH and listed properly in the 
properties file.A non-SQL error occurred when requesting a 
connection:java.lang.NullPointerExceptionLooks like the driver was not 
found...Be sure it is in your CLASSPATH and listed properly in the 
properties file.A non-SQL error occurred when requesting a 
connection:java.lang.NullPointerExceptionLooks like the driver was not 
found...Be sure it is in your CLASSPATH and listed properly in the 
properties file.A non-SQL error occurred when requesting a 
connection:java.lang.NullPointerExceptionjava.lang.RuntimeException: ERROR: 
SQLManager: Couldn't create connection 
pool:    at 
com.codestudio.util.SQLManager.createPool(SQLManager.java:266)    
at 
com.codestudio.util.SQLManager.init(SQLManager.java:221)    
at 
com.codestudio.util.SQLManager.(SQLManager.java:109)    
at 
com.codestudio.util.SQLManager.getInstance(SQLManager.java:60)    
at 
com.codestudio.util.SQLUtil.getSQLManager(SQLUtil.java:152)    
at 
com.codestudio.util.SQLUtil.executeSql(SQLUtil.java:189)    
at 
com.codestudio.util.SQLUtil.execute(SQLUtil.java:132)    
at 
com.codestudio.util.SQLUtil.execute(SQLUtil.java:127)    
at 
PoolManSample.doSQL(PoolManSample.java:61)    
at PoolManSample.main(PoolManSample.java:377)
 
POOLMAN SAMPLE COMPLETE
 
root@the45:/home/http/jsp/the45#


Re: Tomcat newbies mailing list

2001-02-27 Thread Karl Martino


That's awesome!  It should probably use some form of
weblog software.  Software that can maintain simple
user rights so many people can post.  I'm not partial
to any out there.  It would be cool to actually use
Cocoon or Struts to build it, but that would take
time.

Does anyone here know of any Java based weblog
software that's open source?

-Karl

--- "W. D." <[EMAIL PROTECTED]> wrote:
> Sounds like a great idea!  
> 
> I can provide web space.
> 
> What next?
> 
> At 09:23 2/27/2001 -0800, Karl Martino, wrote:
> >I think something like this would be great - with a
> >site that compliments it and ties it all together. 
> >The site is very important in the mix.  It can
> provide
> >roadmaps to answers and be a general resource.  
> It's
> >important that the newbies themselves maintain it
> as
> >well.  That way, everyone feels an ownership of the
> >site and it is more likely to be maintained.
> >
> >-Karl
> >
> >--- Bryan Lipscy <[EMAIL PROTECTED]> wrote:
> >> There has been some off the list discussion
> >> regarding starting a new mailing
> >> list for tomcat-newbies.  The purpose of this
> >> mailing list would be to
> >> handle setup issues and would be geared towards
> the
> >> first time tomcat user.
> >> What this mailing list would not be for is
> advanced
> >> installation &
> >> configuration issues.  The basic premise here is
> for
> >> the mailing list to be
> >> a safer place to ask those basic questions then
> >> flounder around in
> >> documentation for days on end or getting an rtm
> >> reply.
> >> 
> >> What do you, the subscribers of tomcat-user,
> think? 
> >> Good idea?  Bad idea?
> >> Is this something that needs to happen?
> >> 
> >> 
> >> Bryan Lipscy
> >> 
> >
> >
> >__
> >Do You Yahoo!?
> >Get email at your own domain with Yahoo! Mail. 
> >http://personal.mail.yahoo.com/
> >
>
>-
> >To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> >For additional commands, email:
> [EMAIL PROTECTED]
> >
> 
> Start Here to Find It Fast!© ->
> http://US-WebMasters.com/start.htm
> 
>
-
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, email:
> [EMAIL PROTECTED]
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




IIS and tomcat

2001-02-27 Thread Donald Backa

I've got tomcat3.2.1 and IIS4.0 working together.  The problem I'm finding
is getting a new context path working. 
I've added in a folder within 'webapps' called 'access'.  I followed the
procedure outlined in the howTo document, and made the changes to
uriworkermap.properties.  

This however didn't seem to do the trick.

Any help would be greatly appreciated! I'm pluck outta ideas!

Don Backa

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




Re: Connecting to a servlet from within an applet

2001-02-27 Thread Web master

Hi Neil,

I am using Tomcat and I didn't do anything special to call servlet from 
the applet. Only thing was the classes has to be in web-inf\classes in 
the directory where you have the applet.

-Unni

Neil Wood wrote:

> Hi,
> 
> how can I configure a servlet in Tomcat  to be accessible from within a client side 
>applet?
> 
> I had this working in Java Web Server but in Tomcat I cant get it to work!!
> 
> Thanks for any advice!!
> 
> Neil
> 
> 
> Neil Wood, Systems Developer, Jungle Online Ltd.
> www.jungle.com
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> 


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




RE: Tomcat IIS How to

2001-02-27 Thread sohail . rana



>  -Original Message-
> From: Rana,SP,Sohail,CEG1 RANASP R  
> Sent: Friday, February 23, 2001 5:20 PM
> To:   '[EMAIL PROTECTED]'
> Subject:  Tomcat IIS How to
> 
> Hi 
> I am having problems running PWS with Tomcat. If you could help me I would
> be grateful.
> 
> What Am I running
> NT4 (SP6) workstation
> Tomcat 3.2.1
> PWS 4
> 
> I followed the instruction but don't understand one of them 
> 
> 
>  (I use the name jakarta), its executable must be our
> c:\jakarta-tomcat\bin\win32\i386\isapi_redirect.dll. For PWS, you'll
>  need to use regedit and add/edit the "Filter DLLs" key under
>  
> HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\W3SVC\Parameters.
> This key contains a "," separated list of dlls ( full
>  paths ) - you need to insert the full path to isapi_redirect.dll. 
> 
> 
> OK, for PWS I need to add Filter DLLs as key and .isapi_redirect.dll
> as a value (I guess), but my question is what is the name of the string. I
> am not sure, so created the Key (Filter DLLs) under Parameters and add the
> value to the default key.
> 
> All the other settings are OK. But I can not access the .../examples, and
> always get 404. Also notice the /tomcat/logs/ dir did not produce
> isapi.log file.
> 
> Can you see what am I doing wrong? Please let me know.
> 
> Kind Regards
> Sohail

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




Re: Tomcat newbies mailing list

2001-02-27 Thread W. D.

Sounds like a great idea!  

I can provide web space.

What next?

At 09:23 2/27/2001 -0800, Karl Martino, wrote:
>I think something like this would be great - with a
>site that compliments it and ties it all together. 
>The site is very important in the mix.  It can provide
>roadmaps to answers and be a general resource.   It's
>important that the newbies themselves maintain it as
>well.  That way, everyone feels an ownership of the
>site and it is more likely to be maintained.
>
>-Karl
>
>--- Bryan Lipscy <[EMAIL PROTECTED]> wrote:
>> There has been some off the list discussion
>> regarding starting a new mailing
>> list for tomcat-newbies.  The purpose of this
>> mailing list would be to
>> handle setup issues and would be geared towards the
>> first time tomcat user.
>> What this mailing list would not be for is advanced
>> installation &
>> configuration issues.  The basic premise here is for
>> the mailing list to be
>> a safer place to ask those basic questions then
>> flounder around in
>> documentation for days on end or getting an rtm
>> reply.
>> 
>> What do you, the subscribers of tomcat-user, think? 
>> Good idea?  Bad idea?
>> Is this something that needs to happen?
>> 
>> 
>> Bryan Lipscy
>> 
>
>
>__
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail. 
>http://personal.mail.yahoo.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

Start Here to Find It Fast!© -> http://US-WebMasters.com/start.htm

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




Newbie in mod_jk: Can Apache starts Tomcat automatically?

2001-02-27 Thread Xu, Lifeng

I am totally new to mod_jk.

Right now we are running Apache & mod_jserv & Tomcat. What we do is that we
have Apache start Tomcat automatically when Apache starts. We make this
happen by setting "ApJServManual off" in Tomcat.conf and making use of
Tomcat.properties file.

I wonder if there is also a way, with mod_jk, that you can have Apache start
Tomcat automatically?

Thank you in advance.

Lifeng

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




Re: Tomcat newbies mailing list

2001-02-27 Thread Karl Martino

I think something like this would be great - with a
site that compliments it and ties it all together. 
The site is very important in the mix.  It can provide
roadmaps to answers and be a general resource.   It's
important that the newbies themselves maintain it as
well.  That way, everyone feels an ownership of the
site and it is more likely to be maintained.

-Karl

--- Bryan Lipscy <[EMAIL PROTECTED]> wrote:
> There has been some off the list discussion
> regarding starting a new mailing
> list for tomcat-newbies.  The purpose of this
> mailing list would be to
> handle setup issues and would be geared towards the
> first time tomcat user.
> What this mailing list would not be for is advanced
> installation &
> configuration issues.  The basic premise here is for
> the mailing list to be
> a safer place to ask those basic questions then
> flounder around in
> documentation for days on end or getting an rtm
> reply.
> 
> What do you, the subscribers of tomcat-user, think? 
> Good idea?  Bad idea?
> Is this something that needs to happen?
> 
> 
> Bryan Lipscy
> 


__
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

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




RE: [ANNOUNCEMENT] Tomcat 3.2.2 beta 1 released

2001-02-27 Thread GOMEZ Henri

RPMs available at :

ftp://ftp.falsehope.com/home/gomez/tomcat/

Regards

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




RE: webapp icons, disabling directory listings, and tags in web.xml

2001-02-27 Thread Cox, Charlie
Title: RE: webapp icons, disabling directory listings, and tags in web.xml





I defined my welcome-file-list in $TOMCAT_HOME/conf/web.xml 


I created an empty index.html and then I mapped it to my servlet in /WEB-INF/web.xml 


It looks like you may be putting the welcome-list in the wrong web.xml


Charlie



-Original Message-
From: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, February 27, 2001 11:17 AM
To: [EMAIL PROTECTED]
Subject: RE: webapp icons, disabling directory listings, and
tags in web.xml



Ok... thanks (regarding the ).


The correct reaction from tomcat... hmmm... not sure I know what you
mean here... are you talking in regards to the  or the welcome
file list?


I'll just answer it in two parts,


1) The icon should be displayed for example in the title bar when the
webapp is active in some browser.  I've seen this somewhere on the
javasoft site.  Then I got that cute little penguin/triangle thing with
the hands and all...  I admit that this is not exactly on the top of my
priority list but more done out of curiosity.


2) With regards to the welcome files I want users to be able to go to
the URL http://some.host.somewhere/ and not to the URL
http://some.host.somewhere/servlet/com.decode.ips.webservice.controller.
IPSControllerServlet.  I think the reason for why I want that is pretty
obvious.  The only way I can get that is to create an index.htm file
that has this tag in the head section:
  


But I would much rather that the server handled that and I could skip
the stupid index.htm file.  At all costs I do not want the user to get
the directory listing!


Thanks for your time,
    Stefan.


-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: 27. febrúar 2001 15:38
To: '[EMAIL PROTECTED]'
Subject: RE: webapp icons, disabling directory listings, and
tags in web.xml



AFaIK the  element it's not used at all on tomcat.., this is not a
bug simply it's an optional element not used..., 


out of curiosity... Which is the (correct) reaction  you would expect
from tomcat ?



Saludos ,
Ignacio J. Ortega



> -Mensaje original-
> De: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 27 de febrero de 2001 16:31
> Para: [EMAIL PROTECTED]
> Asunto: RE: webapp icons, disabling directory listings, and
> tags in web.xml
> 
> 
> ok.. so the icon should be working?
> 
> let me get this straight... If I have a definition in my web.xml that
> looks like this:
> 
>   
>       /img/iconSmall.gif
>       /img/iconLarge.gif
>   
> ...
> 
> and the directory structure for my webapp looks like this:
> 
> 'webapp_root'-+
>   +-'img'-+
>   |   +-'iconSmall.gif'
>   |   +-'iconLarge.gif'
>   |   +-...
>   |
>   +-'WEB-INF'-+
>   +-'web.xml'
>   +-...
> 
> Things should work ok?  Well... they don't... and I've tried to have
> both /bla/ble.gif and
> bla/ble.gif and nada!  Also the trick you
> talked about with the welcome file list is not working, I've 
> also tried
> every possible combination of that...  If I put in a 
> 
> with those things the directory listing appears but if I skip it or do
> it with only the index.htm file in it the index.htm file is used, so
> it's actually working but not redirecting to the right place.
> 
> The things to notice about my setup are:
> 1) I'm running on an EmbededTomcat fired up from within another app.
> 2) I'm using https connectors
> 
> The other (regular) things are that:
> I'm using Win2000, JDK1.3.
> 
> This smells like some sort of bug to me but just in case I'm going to
> append the contents of the web.xml file I'm using:
> 
> 
> 
> Application
> 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> 
>   
>       img/iconSmall.gif
>       img/iconLarge.gif
>   
>   
>   IPS Web Application
>   
>   The webservice of the IPS system
>   
>   
>       Controller
>   
> com.decode.ips.webservice.controller.IPSControl
> lerServlet
> 
>   
>   
>   
>       Controller
>       /logon
>   
> 
>   
>       index.htm
>   
>   
>   
>       javax.servlet.ServletException
>       /error.jsp
>   
>   
> 
> 
> 
> Hopefully someone can find something wrong with my setup here...
> otherwise this is a bug.
> 
> Kind regards and thanks for all your help.
> 
> Stefan.
> 
> -Original Message-
> From: Fernando Padilla [mailto:[EMAIL PROTECTED]]
> Sent: 27. febrúar 2001 14:27
> To: Tomcat-User
> Subject: Re: webapp icons, disabling directory listings, and
> tags in web.xml
> 
> 
> 
> Stefan,
> 
> The web.xml file is completely defined as part of the Servlet 2.2
> Specification, when it defines Web Applications. Go there for the
> official
> reference.
> 
> 
> On Tue, 27 Feb 2001, Stefán F

Tomcat newbies mailing list

2001-02-27 Thread Bryan Lipscy
Title: Tomcat newbies mailing list





There has been some off the list discussion regarding starting a new mailing list for tomcat-newbies.  The purpose of this mailing list would be to handle setup issues and would be geared towards the first time tomcat user.  What this mailing list would not be for is advanced installation & configuration issues.  The basic premise here is for the mailing list to be a safer place to ask those basic questions then flounder around in documentation for days on end or getting an rtm reply.

What do you, the subscribers of tomcat-user, think?  Good idea?  Bad idea?  Is this something that needs to happen?



Bryan Lipscy





Pasing trough information from the webserver to library in jsp in a trustable way

2001-02-27 Thread Eduard Witteveen

Hello,

I have the following problem:
 I have a webserver(say tomcat(trustable))
 I have scripts(jsp) (which are being uploaded, but are not 
completely trustable)
 I have somekinda library(mmbase server actually), which needs know 
the context in which the webserver is running.(which we can also trust)

How do i get the information from the webserver into this library, and i 
still know that i can trust the information(a jsp script creater could 
generate fake information and provide it to the library) (for example 
the request).

I hope somebody knows a sollution, or could give me some ideas how to 
solve this problem.

Greetings,

-- 
Eduard WitteveenSysteemontwikkelaar NOS Internet
Mediacentrum Kamer 203, tel. +31(0)35 6773059

Sed quis custodiet ipsos custodes? : The sixth Satire from Juvenal


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




4.0b1 manager not working

2001-02-27 Thread Michael Engelhart

Hi, 

I'm having trouble getting the manager application to run on Mac OS X.  I'm under the 
impression from reading the docs and searching the archive that all I have to do is 
add a user with the manager role to tomcat-users.xml and then go to 
http://localhost:8080/manager/ 

and I'll be prompted for a username/password and then have access.

Well, after downloading a fresh copy and making that single change to the 
tomcat-users.xml file, when I go to type http://localhost:8080/manager context I get 
this message:

   Cannot find message associated with key managerServlet.unknownCommand

if i add the trailing slash to the manager context like http://localhost:8080/manager/

I just get a blank directory listing page.

Am I missing something?  Tomcat 3.2.1 works fine on the same system. 

Thanks for any  information


Mike

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




integration with Netscape enterprise server 3.6 on solaris

2001-02-27 Thread mogo

Folks,
Has anyone ever managed to get Tomcat working as a 
plugin to Netscape ES on SOlaris.  

I'm having a few problems and would appreciate a few 
pointers.  
So far I've managed to compile the naspi_redirector.so 
and have configured the obj.conf file but I still cant see 
or display JSP files.   Netscape is telling me that 
the /examples directory doesnt exist.

Anyone got any advice?

Cheers
Aidan

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




forwarding to JSP + session not found in JSP

2001-02-27 Thread Bartsch Axel

Hi,

I am using TOMCAT 3.2 (I guiess 3.2 means 3.2.1).

When a servlet forwards a request to a JSP
using
ServletContext sc = getServletContext();
RequestDispatcher rd = sc.getRequestDispatcher("/common/index.jsp");
rd.forward(req,resp);

always this exception arrives:


2001-02-27 05:44:50 - ContextManager: SocketException reading request, ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:90)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:190)
at java.io.BufferedInputStream.read(BufferedInputStream.java, Compiled C
ode)
at org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java, Compiled Code)
at org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java, Compiled Code)
at org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java, Compiled Code)
at javax.servlet.ServletInputStream.readLine(ServletInputStream.java, Co
mpiled Code)
at org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:195)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java,
 Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
, Compiled Code)
at java.lang.Thread.run(Thread.java:479)

Additionally: the session, created in the servlet is not found in the JSP

Who can help?


AxelLannion/France


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




Error 404 running isapi with PWS 4.0 and Tomcat 3.2

2001-02-27 Thread Ralf Weiss




Hi all ,

I´m trying to let PWS 4.0 work together with Tomcat 3.2 under NT 4.0.

I think the isapi_redirect.dll is properly configured but I alway get the
error 404 and don´t know why. I also studied the several How-To´s
but I didn´t find any new hint.

The isapi.log looks like this when I´m trying to acces the url
"http://localhost/examples/jsp/index.html":

[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/examples/jsp/index.html
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
match ajp12
[jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html] is a
servlet url - should redirect to ajp12
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/examples/jsp/index.html] is
 points to the web-inf directory
[jk_isapi_plugin.c (408)]: HttpFilterProc started
[jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
/jakarta/isapi_redirect.dll
[jk_uri_worker_map.c (344)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (434)]: jk_uri_worker_map_t::map_uri_to_worker, done
without a match
[jk_isapi_plugin.c (452)]: HttpFilterProc [/jakarta/isapi_redirect.dll ] is not
a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/jakarta/isapi_redirect.dll
] is points to the web-inf directory


Any idea?

Thanks in advance

Ralf



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




SSL

2001-02-27 Thread Julie Ruiz

Hello,
Tomcat release 3.1 uses SSL?
Exists a patch that can be added to make it function???

Julie.


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




Re: Form based auth

2001-02-27 Thread uthay

> hm, according to servlet specification v2.2:

If you are using servlet then you dont need the extension.
But if your context is say webapps/xxx/
and you have j_security_check.class inside xxx/WEB-INF
then you may want to try
xxx/j_security_check


Uthay


- Original Message -
From: "Herchel Wojciech" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 4:03 PM
Subject: ODP: Form based auth


> hm, according to servlet specification v2.2:
> "11.5.3.1 Login Form Notes
> ...the action of the login form must always be "j_security_check"..."
> furthermore, according to tomcat docs, it (tomcat) complies with that!
> and it works when i'm testing it on win95+tomcat. but when i moved it on
my
> company's server (linux) it does not, resulting in said error.
> anybody?
>
> vVolf
>
>
> >
> > Is your file "j_security_check" a jsp file or servlet
> > If jsp where is the extension!
> > If servlet you may want to make sure you are giving the
> > correct context
> > path.
> >
> >
> >
> >
> >
> > - Original Message -
> > From: "Herchel Wojciech" <[EMAIL PROTECTED]>
> > To: "'Tomcat'" <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 27, 2001 3:14 PM
> > Subject: Form based auth
> >
> >
> > > Hi all!
> > >
> > > How come would Tomcat (Apache?) return 404 Error while trying to
> > > authenticate via form? apparently it does not recognise
> > "j_security_check".
> > > anybody has got any idea?
> > > here's my code (login.jsp):
> > >
> > > 
> > > 
> > > 
> > > 
> > >   Please log in
> > > 
> > > 
> > >   Username:
> > >   
> > > 
> > > 
> > >   Password:
> > >   
> > > 
> > > 
> > >> > name="j_security_check">
> > > 
> > > 
> > > 
> > > 
> > >
> > > and i'm getting 404 Error.
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: Tomcat class loader

2001-02-27 Thread uthay

Chris,
How did you test it?


My bean class (happens to be a session bean) is not released even after
stopping and starting tomcat!!!
I have tried removing all the class and java files with that name but
instead of showing class not found, somehow it finds the old class!


- Original Message -
From: "Chris Haynes" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 4:13 PM
Subject: Re: Tomcat class loader


> What I've observed is that it only reloads the classes it *directly*
> knows about.
>
> I.E. it will reload amended Servlet classes and JSP files, but if they
> then refer to other classes, these other classes will NOT be reloaded
> if they change.
>
> So you have to keep stopping and starting tomcat unless you use ONLY
> simple JSP pages (with no other changing classes referred to ) and
> servlets which use only stable classes.
>
>
> Chris
>
>
> - Original Message -
> From: "uthay" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 27, 2001 3:35 PM
> Subject: Re: Tomcat class loader
>
>
> > Thx Jim
> >
> > I tried that.
> > I also want to bring some other thing I read recently.
> > It states that although tomcat supports class reloading on updation
> it is
> > still not supported to those classes that are not servlets.
> > What does that supposed to mean?
> >
> >
> >
> > - Original Message -
> > From: "Jim Miani" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, February 27, 2001 1:40 PM
> > Subject: RE: Tomcat class loader
> >
> >
> > >
> > > Uthay - I was having the same problem. See my post yesterday under
> subject
> > > JSP caching.
> > >
> > > The problem is that your WEB-INF directory is probably in your
> CLASSPATH
> > > when you start Tomcat - see the FAQ - it won't reload classes in
> your
> > > CLASSPATH
> > >
> > > There is a question/answer in the FAQ re: this - I feel dumb about
> it. Now
> > > you can too :)
> > >
> > > Good luck.
> > >
> > > Jim
> > >
> > >
> > > >From: "uthay"
> > > >Subject:  Tomcat class loader
> > > >Date:  Tue, 27 Feb 2001 13:15:44 -
> > > >
> > > > It was stated in the tomcat installation instructions that
> tomcat will
> > > > reload any servelet or jsp file if the file is changed.
> > > > I am using a package through a servlet. Although I have modified
> the
> > > > package, tomcat is refusing to load the new classes and holding
> onto the
> > > > older ones.
> > > > May be its because they are not servlets??
> > > > Is there anyway of solving this.
> > > > Does tomcat follow a different class loading mechanism for
> classes
> > > >that are not servlets. (classes in WEB-INF)?
> > >
> > >
> > >
> > >
> >
> > 
> -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email:
> [EMAIL PROTECTED]
> > >
> > >
> >
> >
> > 
> -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> >
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: 404 error when pressing 'Submit' button when running a JSP

2001-02-27 Thread Jan Labanowski

On Tue, 27 Feb 2001, Schiff, Nicky wrote:

Your Application.jar needs to be in the ../WEB-INF/lib directory
Your action in the  should be
   /Application/servlet/Company.Application.Logon
(I assume it is a servlet...  
You can remap this location in the web.xml file under your /WEB-INF dir
To find out how you remap servlets see:
http://www.ccl.net/cca/software/UNIX/apache/tomcatfaq.shtml

Jan

> 
> Having installed and attempted to configure Tomcat v3.2.1 and Apache v1.3, I
> try to run a JSP called 'logon.jsp' via my browser (IE v4.0).
> The Java application is installed within a Sun Solaris UNIX environment.
> 
> The JSP is run via the browser by typing in the following URL :-
> 
> http://:8081/Application/logon.jsp
> 
> where  is the relevant IP Address of the Host machine.
> 
> It displays the JSP fine in the browser, but then when I click on the
> 'Submit' button, it calls up the following URL :-
> 
> http://:8081/Application/Company.Application.Logon
> 
> and I get the following error :-
> 
> Not Found (404)
> 
> Original request: /Application/Company.Application.Logon
> 
> Not found request: /Application/Company.Application.Logon
> 
> The code within the JSP (i.e. logon.jsp) is as follows :-
> 
> 
> 
> <%@page language="java" errorPage="ErrorPage.jsp" %>
> <%@page import="Company.Application.*" %>
> <%@page contentType="text/html"%>
> 
> 
> 
> Company Application - Sign In
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>ALT="members.html">
>ALT="SampleData.html">
>ALT="FreeTrial.html">
>ALT="About.html">
>ALT="Demo.html">
>ALT="Home.html">
> 
>  >
>  
> 
> 
> 
> Name of User   name="UserName">
> Password.  name="PassWord">
> 
> press Submit to post to Logon servlet
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> The 'web.xml' file has been configured.
> The 'Application.jar' file is present within the
> 'usr/local/apache/tomcat/webapps/Application/WEB-INF' directory.
> The 'Logon.class' is contained within the 'Application.jar' file.
> The 'jasper.log' reports the following :-
> 
> 2001-02-26 02:19:40 - JspEngine --> /logon.jsp
> 2001-02-26 02:19:40 -ServletPath: /logon.jsp
> 2001-02-26 02:19:40 -   PathInfo: null
> 2001-02-26 02:19:40 -   RealPath:
> /usr/local/apache/tomcat/webapps/Application/logon.jsp
> 2001-02-26 02:19:40 - RequestURI: /Application/logon.jsp
> 2001-02-26 02:19:40 -QueryString: null
> 2001-02-26 02:19:40 - Request Params:
> 2001-02-26 02:19:40 - Classpath according to the Servlet Engine is:
> /usr/local/apache/tomcat/webapps/Application/WEB-INF/classes:/usr/local/apac
> he/tomcat/webapps/Application/WEB-INF/lib/Application.jar
> 
> Any ideas ?
> 
> Please help !!!
> 
> Regards,
> Nicky
> 
> 
> 
> **
> This email and any files transmitted with it are confidential and
> intended solely for the use of the individual or entity to whom they
> are addressed. If you have received this email in error please notify
> the system manager.
> 
> This footnote also confirms that this email message has been swept by
> MIMEsweeper for the presence of computer viruses.
> 
> www.mimesweeper.com
> **
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Performance Result on Tomcat 3.2.2 beta 1

2001-02-27 Thread niv the tool

hi all .
Hope That one of tomcat guru will response to this TIA.

i have just install Tomcat Version 3.2.2 beta 1

and test it with MS web Stress Application with the folowing setting :
==

Tomcat Version  3.2.2 beta 1.
OS  win2k server 512M.
concurrent connections:
===
num threads 100
sockets per thread  10
URL http://207.232.10.101:8080/examples/servlet/HelloWorldExample



test results are :
=

1.In tomcat console :
=

lots of these error
2001-02-27 06:20:15 - ContextManager: SocketException reading request,
ignored -
 java.net.SocketException: Connection reset by peer: JVM_recv in socket
input st
ream read
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:86)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
at
org.apache.tomcat.service.http.HttpRequestAdapter.doRead(HttpRequestA
dapter.java:115)
at
org.apache.tomcat.core.BufferedServletInputStream.doRead(BufferedServ
letInputStream.java:106)
at
org.apache.tomcat.core.BufferedServletInputStream.read(BufferedServle
tInputStream.java:128)
at
javax.servlet.ServletInputStream.readLine(ServletInputStream.java:138
)
at
org.apache.tomcat.service.http.HttpRequestAdapter.readNextRequest(Htt
pRequestAdapter.java:129)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnectio
n(HttpConnectionHandler.java:195)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:
416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java
:498)
at java.lang.Thread.run(Thread.java:484)Overview

Web Stress Results :


Report name:  2/27/2001 6:19:11 PM
Run on:   2/27/2001 6:19:11 PM
Run length:   00:01:05

Web Application Stress Tool Version:1.1.293.1

Number of test clients:   1

Number of hits:   6449
Requests per Second:  107.45

Socket Statistics


Socket Connects:  7332
Total Bytes Sent (in KB): 2391.76
Bytes Sent Rate (in KB/s):39.85
Total Bytes Recv (in KB): 4003.51
Bytes Recv Rate (in KB/s):66.70

Socket Errors


Connect:  3471
Send: 0
Recv: 0
Timeouts: 0

RDS Results


Successful Queries:   0


Script Settings


Server:   localhost
Number of threads:1000

Test length:  00:01:00
Warmup:   00:00:00
Cooldown: 00:00:00

Use Random Delay: No

Follow Redirects: Yes
Max Redirect Depth:   15


Clients used in test


localhost

Clients not used in test




Result Codes
Code  Description   Count


200   OK6449


Page Summary
PageHits  TTFB Avg  TTLB Avg  Auth
Query


GET /examples/servlet/HelloWor  6449  3822.48   5183.40   NoNo




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




Re: HELP: MIGRATION FROM JSERV TO TOMCAT

2001-02-27 Thread Jan Labanowski

You can check how my tomcat was installed to work with Apache at:
  http://www.ccl.net/cca/software/UNIX/apache/index.shtml
Basically you need to edit the TOMCAT_HOME/conf/mod_jk.conf and
TOMCAT_HOME/conf/workers.properties files, possibly also the server.xml
file in the same directory, and the Apache httpd.conf file to include
the mod_jk.conf rather than jserv.conf file at the end.


On Tue, 27 Feb 2001, Paolo Fantoli wrote:

> I DON'T SUCCED IN CONFIGURING TOMCAT INSTEAD OF JSERV  TO COOPERATE WITH IIS.
> WHICH FILES  MUST I CHANGE EXACTLY, COMPARING TOMCAT WITH JSERV ???
> AND WHICH CHANGES MUST I DO ???
> IF THERE IS A GOOD BOY ON LINE, OR SOMEBODY WHO TOOK MY SAME PROBLEM , PLEASE I NEED 
>HELP. 
> 
> THANKS A LOT
> I'M WAITING FOR AN ANSWER.
> PLEASE HELP ME 
> PAOLO 
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Re: Apache - Tomcat startup race for port 8009?

2001-02-27 Thread Jan Labanowski

You may want to read my notes on starting apache/tomcat at
http://www.ccl.net/cca/software/UNIX/apache/index.shtml

Jan

On Tue, 27 Feb 2001, Chris Haynes wrote:

> As far as I can read there are the following requirements when using
> Apache and Tomcat with AJP13 linking them:
> 
> 1) To have Apache forward requests using AJP13 requires Tomcat to
> listen on Port 8009 and Apache to send to it.
> 2) Tomcat must have opened that port for listening before Apache
> (mod_jk) attempts to use it,
> 3) In the standard "tomcat.sh start" sequence the script forks the
> tomcat process and returns before it can be sure the port has been
> opened.
> 4) In the alternative "tomcat.sh run" the script seems to block - the
> method Tomcat.start() seems not to return until tomcat is shut down
> (although looking at the source code for Tomcat and ContextManager I
> can't see why this is).
> 
> I need to have an unattended start-up configuration.
> 
> My concern is this:
> 
> If I write a shellscript that first starts tomcat (using tomcat.sh
> start or startup.sh), then starts Apache (httpd),
> there is an unmanaged race to port 8009 availability - Apache could
> start trying to use it before tomcat has opened it.
> 
> I have no data on the behaviour of mod_jk if it can't open the port -
> so I have to assume it can't cope.
> 
> I can't have an unmanaged race (even if this has not yet actually been
> observed).
> 
> Visually the problem situation appears realistic: apache appears to
> start much faster than tomcat , so there is a very real possibility
> that I could have incoming requests being processed by apache and
> forwarded to mod_jk before tomcat has finished initializing itself.
> 
> Have I missed something?
> 
> If I'm right that there is a race, has anyone come up with a sensible
> work-around?
> 
> My list of ways of approaching this (if I have to) include:
> 
> A) Write a small program which keeps trying to open port 8009 as a
> client - cycling and waiting until it finds the port open and put this
> between the tomcat and apache starts - but what then happens when it
> closes the port on finding it open without having sent a valid AJP13
> message? How well does the handler cope with this? I have looked at
> the code of Ajp13ConnectorRequest to see of there is some kind of
> valid "NO-OP" I could send to the port before closing it, but can't
> see one - and I can't find the AJP13 spec on the web.
> 
> B) Ask Linux which ports it has open, see if 8009 is open, and keep
> looping / waiting until it is
> 
> C) Scan the tomcat log - looking for a *recent* message saying it has
> started that connector (but my observation of tomcat source code is
> that processes seem to announce 'starting . . ' before they actually
> do it, so there would still be a race).
> 
> D) Write a new dummy ConnectionHandler class which responds to start()
> by writing a flag file somewhere I can see it. Place this after the
> AJP13 handler in 'server.xml' (. . . but does Tomcat *contract* to
> start connection handlers in the order in which they appear in
> server.xml? . . . ). I then have a test-wait loop program  called from
> the shellscript which waits for this flag file to appear before
> letting Apache start.
> 
> Obviously all of the 'state change' approaches check that the
> pre-start state is correct before starting tomcat.
> 
> D seems the most elegant - if I have to do anything myself.
> B seems the most 'correct' and fool-proof.
> 
> All comments / suggestions gratefully received.
> 
> Chris Haynes
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 

Jan K. Labanowski|phone: 614-292-9279,  FAX: 614-292-7168
Ohio Supercomputer Center|Internet: [EMAIL PROTECTED] 
1224 Kinnear Rd, |http://www.ccl.net/chemistry.html
Columbus, OH 43212-1163  |http://www.osc.edu/


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




Re: Selecting spawned task user

2001-02-27 Thread Chris Haynes

John,

I read somewhere last night in the Tomcat documentation (can't
remember where) about starting it with something like:

su fred startup.sh

Suggest you hunt for the correct version of this.

Chris

- Original Message -
From: "John Preston" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 3:44 PM
Subject: Re: Selecting spawned task user


> Hi, I'm new to this mailing list although I was previously a member
of the
> JServ mailing list.
>
> Can anybody tell me what is the preferred way of setting the user
that a
> spawned
> Runtime.exec(???) task is run as. I spawn some unix tasks from my
servlets
> and I want them to
> run as a particular user. By default they are run as the user that
Tomcat
> is runnng as. However
> in the production system Tomcat will be started at boot time and
thus I
> expect will running as root.
> I want my servlet tasks to execute as another user.
>
> What is the preferred way of getting this done.
>
> Thanks In advance
>
> John Preston
>
>
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: tomcat not working totally...

2001-02-27 Thread Corey A. Johnson

Yep.  That will do it.  Grab JDK 1.2..  That will take care of your problem.

Cj

Andrew Y Ng wrote:

> java -version gives me:
> java version "1.1.6"
>
> there is not a tools.jar anywhere, maybe i need to update my JDK?
>
> /ayn
>
> On Tue, 27 Feb 2001, Corey A. Johnson wrote:
>
> > What JDK version do you have installed?  It looks to me like the file
> > tools.jar is not in your CLASSPATH.
> >
> > Should be located in JAVA_HOME/lib
> >
> > Let me know if that helps.
> >
> > Cj
> >
> > Andrew Y Ng wrote:
> >
> > > Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time
> > > to upgrade) on i386, with the apache-1.3.17.1 package. I installed
> > > the jakarta-tomcat-3.1.1 binary package and ran the startup
> > > script. I tried out the JSP and servlet examples and some
> > > of them did not work, I suspect it's a CLASSPATH problem but
> > > after looking at the tomcat.sh script, i think all i need
> > > is JAVA_HOME to be set right, and the script sets CLASSPATH
> > > so at least JSP and servlet engines would run.
> > >
> > > If you guys can take a look at http://guadalupe.rem.cmu.edu:8080
> > > and give me ideas as to what's wrong, i'd really appreciate that.
> > > I have a feeling that this is something trivial and you guys
> > > have probably seen this many times. Thanks!
> > >
> > > /ayn
> > >
> > > --
> > > Andrew Y Ng  |  <[EMAIL PROTECTED]>  |  http://andrew.Ngbert.org/
> > > --
> > >   (-) please finger [EMAIL PROTECTED] if u need more info...
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > --
> > Corey A. Johnson
> > Creative Network Innovations
> > http://www.cniweb.net/
> > 1-800-CNi-5547 ** 1-321-259-1984
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
> --
> Andrew Y Ng  |  <[EMAIL PROTECTED]>  |  http://andrew.Ngbert.org/
> --
>   (-) please finger [EMAIL PROTECTED] if u need more info...
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

--
Corey A. Johnson
Creative Network Innovations
http://www.cniweb.net/
1-800-CNi-5547 ** 1-321-259-1984



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




Re: IIS 5, Tomcat 3.2 and port problem...

2001-02-27 Thread Chris Haynes

Isn't there some constraint about NT not letting you start services on
ports < 1024 unless you are an administrator?

I know UNIX says you have to be root; I've an idea that NT has a
similar security measure.

Chris


- Original Message -
From: "Andreas Holmer" <[EMAIL PROTECTED]>
To: "tomcat-User" <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 3:40 PM
Subject: IIS 5, Tomcat 3.2 and port problem...


> Hi!
>
> I have a little problem with Tomcat and IIS 5.
>
> Every time I try to access servlets from another machine, I get an
error
> message telling me 'Access denied'. If I try to connect to Tomcat
via Port
> 8080 (like in server.xml configured) it works. I already had the
port
> commented out, but then I could not connect at all. Is there a
possibility
> to configure IIS in a way which enables servlet execution directly
via some
> URI? I already have altered uriworkermap.properties to handle this
URI, but
> nothing happens. Or better: I get the message that I am not allowed
to.
>
> Looks like this:
>
> ip:8080/pm works
> ip/pm does not, but should
>
> Any suggestions? I know this has been asked quite often, but none of
the
> answers up to now did solve my problem... Or at least I didn't get
the point
> ;)
>
> Thanks
>   Andy
>
>
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




RE: webapp icons, disabling directory listings, and tags in web.xml

2001-02-27 Thread Stefán F. Stefánsson

Ok... thanks (regarding the ).

The correct reaction from tomcat... hmmm... not sure I know what you
mean here... are you talking in regards to the  or the welcome
file list?

I'll just answer it in two parts,

1) The icon should be displayed for example in the title bar when the
webapp is active in some browser.  I've seen this somewhere on the
javasoft site.  Then I got that cute little penguin/triangle thing with
the hands and all...  I admit that this is not exactly on the top of my
priority list but more done out of curiosity.

2) With regards to the welcome files I want users to be able to go to
the URL http://some.host.somewhere/ and not to the URL
http://some.host.somewhere/servlet/com.decode.ips.webservice.controller.
IPSControllerServlet.  I think the reason for why I want that is pretty
obvious.  The only way I can get that is to create an index.htm file
that has this tag in the head section:
  

But I would much rather that the server handled that and I could skip
the stupid index.htm file.  At all costs I do not want the user to get
the directory listing!

Thanks for your time,
Stefan.

-Original Message-
From: Ignacio J. Ortega [mailto:[EMAIL PROTECTED]]
Sent: 27. febrúar 2001 15:38
To: '[EMAIL PROTECTED]'
Subject: RE: webapp icons, disabling directory listings, and
tags in web.xml


AFaIK the  element it's not used at all on tomcat.., this is not a
bug simply it's an optional element not used..., 

out of curiosity... Which is the (correct) reaction  you would expect
from tomcat ?


Saludos ,
Ignacio J. Ortega


> -Mensaje original-
> De: Stefán F. Stefánsson [mailto:[EMAIL PROTECTED]]
> Enviado el: martes 27 de febrero de 2001 16:31
> Para: [EMAIL PROTECTED]
> Asunto: RE: webapp icons, disabling directory listings, and
> tags in web.xml
> 
> 
> ok.. so the icon should be working?
> 
> let me get this straight... If I have a definition in my web.xml that
> looks like this:
> 
>   
>   /img/iconSmall.gif
>   /img/iconLarge.gif
>   
> ...
> 
> and the directory structure for my webapp looks like this:
> 
> 'webapp_root'-+
>   +-'img'-+
>   |   +-'iconSmall.gif'
>   |   +-'iconLarge.gif'
>   |   +-...
>   |
>   +-'WEB-INF'-+
>   +-'web.xml'
>   +-...
> 
> Things should work ok?  Well... they don't... and I've tried to have
> both /bla/ble.gif and
> bla/ble.gif and nada!  Also the trick you
> talked about with the welcome file list is not working, I've 
> also tried
> every possible combination of that...  If I put in a 
> 
> with those things the directory listing appears but if I skip it or do
> it with only the index.htm file in it the index.htm file is used, so
> it's actually working but not redirecting to the right place.
> 
> The things to notice about my setup are:
> 1) I'm running on an EmbededTomcat fired up from within another app.
> 2) I'm using https connectors
> 
> The other (regular) things are that:
> I'm using Win2000, JDK1.3.
> 
> This smells like some sort of bug to me but just in case I'm going to
> append the contents of the web.xml file I'm using:
> 
> 
>  Application
> 2.2//EN"
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
> 
>   
>   img/iconSmall.gif
>   img/iconLarge.gif
>   
>   
>   IPS Web Application
>   
>   The webservice of the IPS system
>   
>   
>   Controller
>   
> com.decode.ips.webservice.controller.IPSControl
> lerServlet
> 
>   
>   
>   
>   Controller
>   /logon
>   
> 
>   
>   index.htm
>   
>   
>   
>   javax.servlet.ServletException
>   /error.jsp
>   
>   
> 
> 
> 
> Hopefully someone can find something wrong with my setup here...
> otherwise this is a bug.
> 
> Kind regards and thanks for all your help.
> 
> Stefan.
> 
> -Original Message-
> From: Fernando Padilla [mailto:[EMAIL PROTECTED]]
> Sent: 27. febrúar 2001 14:27
> To: Tomcat-User
> Subject: Re: webapp icons, disabling directory listings, and
> tags in web.xml
> 
> 
> 
> Stefan,
> 
> The web.xml file is completely defined as part of the Servlet 2.2
> Specification, when it defines Web Applications. Go there for the
> official
> reference.
> 
> 
> On Tue, 27 Feb 2001, Stefán F. Stefánsson wrote:
> 
> > Hello.
> >
> > I was wondering if anyone knows if the  element in web.xml is
> not
> > working in Tomcat (it's not working for me... just wondering if it's
> not
> > supported or if it's something specific with me).
> 
> ??? report a reproducable bug please, and someone should handle it.
> don't forget the icon file has to be relative to the webapp root.
> 
> 
> > Another thing (a little more important) is the 
> > element.  I have one such in my web.xml and it contains one
> >  element.  This is directly from it:
> >
>

Re: Tomcat class loader

2001-02-27 Thread Chris Haynes

What I've observed is that it only reloads the classes it *directly*
knows about.

I.E. it will reload amended Servlet classes and JSP files, but if they
then refer to other classes, these other classes will NOT be reloaded
if they change.

So you have to keep stopping and starting tomcat unless you use ONLY
simple JSP pages (with no other changing classes referred to ) and
servlets which use only stable classes.


Chris


- Original Message -
From: "uthay" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 27, 2001 3:35 PM
Subject: Re: Tomcat class loader


> Thx Jim
>
> I tried that.
> I also want to bring some other thing I read recently.
> It states that although tomcat supports class reloading on updation
it is
> still not supported to those classes that are not servlets.
> What does that supposed to mean?
>
>
>
> - Original Message -
> From: "Jim Miani" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, February 27, 2001 1:40 PM
> Subject: RE: Tomcat class loader
>
>
> >
> > Uthay - I was having the same problem. See my post yesterday under
subject
> > JSP caching.
> >
> > The problem is that your WEB-INF directory is probably in your
CLASSPATH
> > when you start Tomcat - see the FAQ - it won't reload classes in
your
> > CLASSPATH
> >
> > There is a question/answer in the FAQ re: this - I feel dumb about
it. Now
> > you can too :)
> >
> > Good luck.
> >
> > Jim
> >
> >
> > >From: "uthay"
> > >Subject:  Tomcat class loader
> > >Date:  Tue, 27 Feb 2001 13:15:44 -
> > >
> > > It was stated in the tomcat installation instructions that
tomcat will
> > > reload any servelet or jsp file if the file is changed.
> > > I am using a package through a servlet. Although I have modified
the
> > > package, tomcat is refusing to load the new classes and holding
onto the
> > > older ones.
> > > May be its because they are not servlets??
> > > Is there anyway of solving this.
> > > Does tomcat follow a different class loading mechanism for
classes
> > >that are not servlets. (classes in WEB-INF)?
> >
> >
> >
> >
>
> 
-
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email:
[EMAIL PROTECTED]
> >
> >
>
>
> 
-
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>
>


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




Re: tomcat not working totally...

2001-02-27 Thread Andrew Y Ng

java -version gives me:
java version "1.1.6"

there is not a tools.jar anywhere, maybe i need to update my JDK?

/ayn


On Tue, 27 Feb 2001, Corey A. Johnson wrote:

> What JDK version do you have installed?  It looks to me like the file
> tools.jar is not in your CLASSPATH.
> 
> Should be located in JAVA_HOME/lib
> 
> Let me know if that helps.
> 
> Cj
> 
> Andrew Y Ng wrote:
> 
> > Hi, I'm new to tomcat, I am running NetBSD 1.4.1 (sorry, no time
> > to upgrade) on i386, with the apache-1.3.17.1 package. I installed
> > the jakarta-tomcat-3.1.1 binary package and ran the startup
> > script. I tried out the JSP and servlet examples and some
> > of them did not work, I suspect it's a CLASSPATH problem but
> > after looking at the tomcat.sh script, i think all i need
> > is JAVA_HOME to be set right, and the script sets CLASSPATH
> > so at least JSP and servlet engines would run.
> >
> > If you guys can take a look at http://guadalupe.rem.cmu.edu:8080
> > and give me ideas as to what's wrong, i'd really appreciate that.
> > I have a feeling that this is something trivial and you guys
> > have probably seen this many times. Thanks!
> >
> > /ayn
> >
> > --
> > Andrew Y Ng  |  <[EMAIL PROTECTED]>  |  http://andrew.Ngbert.org/
> > --
> >   (-) please finger [EMAIL PROTECTED] if u need more info...
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> --
> Corey A. Johnson
> Creative Network Innovations
> http://www.cniweb.net/
> 1-800-CNi-5547 ** 1-321-259-1984
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 


--
Andrew Y Ng  |  <[EMAIL PROTECTED]>  |  http://andrew.Ngbert.org/
--
  (-) please finger [EMAIL PROTECTED] if u need more info...


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




  1   2   >