Where can I find mod-jk for tomcat 4.0 ?

2001-02-26 Thread Hervé Guidetti

Hi all,

I am looking for mod_jk for tomcat 4.0.
Where can I find that ??
What is its version (alpha, beta, ...)


Thanks a lot.

Herv



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




RE: IIS and Tomcat (3.2.1)

2001-02-26 Thread Randy Layman


That depends, did you tell IIS to redirect to Tomcat for /*.jsp?
(Chcek the uriworkermap.properties file for your settings, read through the
isapi.log file to find out what is currently happening)

Randy


-Original Message-
From: Tin Ngoc Doan [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 25, 2001 11:28 PM
To: [EMAIL PROTECTED]
Subject: IIS and Tomcat (3.2.1)



I installed Tomcat and everything seems to work great.  Then I installed IIS
Isapi, all examples seem to run great.

But I went ahead to create my own TEST.JSP under .\webapps\ROOT\

I can load it by http://localhost:8080/test.jsp but
http://localhost/test.jsp does not work.
Doesn't IIS suppose to route all JSP to Tomcat? (i tried using machine name
as well).

Any suggestion?

Thanks,
Tin Doan

-
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: Database connection pool scope

2001-02-26 Thread Randy Layman


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
instantiates with the server startup and is available to other classes in
the application (this is very similar to the application object in JSPs -
but you can use it everywhere). Is there a counterpart in Tomcat? If not,
how can I implement a connection pool which is available to the business
classes that I wrote.

Thanks in advance.
Selcuk Ayguney


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

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




Error messages

2001-02-26 Thread Patric Lichtensteiger

hi,

i always recieve the following error message in the jakarta window:

java.lang.NoClassDefFoundError: sun/tools/javac/Main

but i know, that the tools.jar and all other .jar-files i need are in the 
classpath...

this makes no sence to me...

greetz


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




Global Init Parameters

2001-02-26 Thread Brett W. McCoy

I have in

 http://www.chapelperilous.net/~bmccoy/
---
A rock store eventually closed down; they were taking too much for granite.


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




RE: Database connection pool scope

2001-02-26 Thread Jon Crater

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
instantiates with the server startup and is available to other classes in
the application (this is very similar to the application object in JSPs -
but you can use it everywhere). Is there a counterpart in Tomcat? If not,
how can I implement a connection pool which is available to the business
classes that I wrote.

Thanks in advance.
Selcuk Ayguney


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

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


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


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




RE: deep web.xml problem

2001-02-26 Thread Randy Layman


Ok, let me take a slightly different approach.  In your web.xml file
you are specifying some init-params for a particular named servlet.  Its
Tomcat's job that everytime it sees this name that it passes the init-params
from the web.xml file to the init method (this happens everytime the servlet
is created).

What I believe is happening is that you are not using this named
servlet to access the servlet (you're probably using /servlet/className),
consequently, Tomcat doesn't think that the init-params are for that
servlet.  Then in your init method you are overwritting the static
variables, or setting the values for a particular instance.

To set up the mapping you need to edit your web.xml file.  The spec
has the exact order that things need to go, but you will be adding something
like (and this is me typing, not copying, so check for errors)

servlet-mapping
servlet-nameMyMappedServlet/servlet-name
url-pattern/MyMappedServlet/url-pattern
/servlet-mapping

to your web.xml file (I believe below everything but mime-type mappings).

Randy

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:54 AM
To: [EMAIL PROTECTED]
Subject: RE: deep web.xml problem


-Randy

Thank you for technical direction on deep web.xml problem... I will follow
your lead to get this right... You asked "Does it make sense?" Not all of
it. So I ask the following questions for clarification.

QUESTIONS TO RANDY:

at startup create instance, set init-params correctly
Q1) I understand this to mean that as long as my init() method and web.xml
are ok, it's Tomcat's job to do this. Regardless of whether I
load-on-startup or not?

at request, create instance, set init-params to null (not specified
in web.xml), process request.
Q2) I don't know if this means Tomcat sets my init-params to null at
request, or if this is an explanation of the problem I am experiencing? Why
do you say (not specified in web.xml)?

What you need to do is to associted the start up with the mapping.
You do this by using the same servlet name for your servlet-mapping and
init-param tags.
Q3) Which config file has servlet-mapping?  Where/How do I map individual
servlet names in a web-app outside of web.xml?  Or am I missing the
concept?





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

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




JDBC connecting to Oracle

2001-02-26 Thread mike thomas

Hi all

Does anyone out there know the syntax for
connecting a JSP to an Oracle database using JDBC?
What I am really after is how do I set the
database name, user name and password so that JSP
can set up the connection. So far I have this :-

  Connection con =
DriverManager.getConnection("??");

Apologies if this is off the topic for this group

Thanks

Michael Thomas


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




Case Sensitivity

2001-02-26 Thread Bilodeau, David

Our Intranet developers are using Tomcat for an internal site.

We have just upgraded from 3.1 to 3.2.

Now, many of our hyperlinks are case sensitive whereas before they seemed to
be case insensitive.

I'm just asking this question on behalf of the content owners because
although I administer the NT box where Tomcat runs I don't own the site
itself.

Can we configure Tomcat 3.2 to be case-insensitive?

Regards,

David Bilodeau
SDA National Systems/eBusiness Group
Verizon Data Services, Inc.
Office:(972) 507-1191
Pager: (888) 592-3945
Pager e-mail: [EMAIL PROTECTED]
Cell Phone (972) 989-1593
Mail Stop HQMC03C76



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




halcyonsoft iasp

2001-02-26 Thread Jeremy Kusnetz

I am new to using tomcat.

I am using halcyonsoft iasp, which parses .asp files as java servlets.  I am
trying to get tomcat 3.21, running with apache 1.3.12  to act as the servlet
engine for iasp.

Using documentation from halcyonsoft, I have gotten *.asp files to be parsed
under the context /iasp, but I need *.asp to be parsed with tomcat globaly,
ie *.asp files residing anywhere will be parsed.

I will post the instructions given by halcyonsoft below, but basically they
make you create a WEB-INF directory under their sample directory, with a
web.xml file with instructions on reading .asp files.  Then you add a /iasp
context to server.xml which points to the sample directory.

This works, but I don't want .asp files being restricted to the sample
directory, so I removed the /iasp context from server.xml, and added web.xml
contence to the global web.xml file under the tomcat/conf directory, kind of
like .jsp is handled as far as I can tell.  This didn't seem to work.  Any
ideas on how to do this?

Here are the instuctions given to me from halyconsoft on getting .asp file
working in their samples directory.


--

Configuring Instant ASP with Tomcat 
  Please configure iASP with Tomcat according to the following instructions:


Create a context path for iASP in tomcat_home/conf/server.xml.
Add the following lines to ContextManager  /ContextManager block of
server.xml 

Context path="/iasp" 
 docBase=iasp_home 
 debug="0" 
 reloadable="true"  
/Context

Create a directory named WEB-INF under the  iasp_home, and a file named
web.xml under the iasp_home/WEB-INF/, the web.xml should contain the
following context:

?xml version="1.0" encoding="ISO-8859-1"? 
!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   servlet-class
 Dispatcher.DispatcherServlet
   /servlet-class
/servlet
servlet-mapping
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   url-pattern
*.asp
   /url-pattern
 /servlet-mapping
/web-app
 


Set all iASP classes to the system environment for Tomcat:
eg: setenv CLASSPATH iasp_home/lib/iasplib.jar:iasp_home/lib/asp2j.jar
.(on UNIX)
 set classpath=iasp_home/lib/iasplib.jar;iasp_home/lib/asp2j.jar
 (on windows)

Restart your Tomcat server and run iASP samples with
http://hostname:port/iasp/.

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




AW: JDBC connecting to Oracle

2001-02-26 Thread Kurt, Oliver

that depends if you use a thick oracle driver or the thin oracle driver.

for the thin-driver the URL is:

jdbc:oracle:thin:@host:port:SID

example:
jdbc:oracle:thin:@s_safedb1:1521:sf01

for the thick-driver:
jdbc:oracle:oci8:@tns-listener-name

see@ technet.oracle.com at the documentation for Oracle 8i and JDBC
documentation

-Ursprngliche Nachricht-
Von: mike thomas [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 26. Februar 2001 19:20
An: [EMAIL PROTECTED]
Betreff: JDBC connecting to Oracle


Hi all

Does anyone out there know the syntax for
connecting a JSP to an Oracle database using JDBC?
What I am really after is how do I set the
database name, user name and password so that JSP
can set up the connection. So far I have this :-

  Connection con =
DriverManager.getConnection("??");

Apologies if this is off the topic for this group

Thanks

Michael Thomas


-
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 as NT Service Error!!

2001-02-26 Thread Benjamin Cramer

Giovanni,

I too had some difficulty getting things running smoothly as an NT Service
on Win2K. I experienced the same error. Here's how I fixed mine:

1. Go to the c:\{My Tomcat Directory}\bin directory.
2. Rewrite your net service command like this: jk_nt_service -i service_name
conf\wrapper.properties

By excluding the conf\ directory from the command, the service is looking at
the wrong directory for the wrapper.properties file.

3. Once you rerun this, you have to reboot. Go to the NT Services
application through your SettingsControl PanelServices and make sure that
your service_name is listed in the services directory. You may have to reset
the start up to Automatic. Mine defaults to Manual.

4. Start the service from the Services panel.

5. Test your service by going to your browser and running a sample.jsp...

This should do it.

Ben Cramer
iPath Solutions
[EMAIL PROTECTED]




Date: Mon, 26 Feb 2001 14:44:17 +0100
To: "'[EMAIL PROTECTED]'" [EMAIL PROTECTED]
From: Serra Giovanni [EMAIL PROTECTED]
Subject: Tomcat as NT Service Error!!
Message-ID: 313FABF24A2AD311A34800508B2CD3902F6816@KRESSNT

Hi all,

I am trying to set up Tomcat as a Nt Service but i always got the same
error!! 
it is :

The service_name is starting.
The service_name service could not be started.

The service did not report an error.

More help is available by typing NET HELPMSG 3534.

what i've done is :
1. open a dos window
2. jk_nt_service -i service_name wrapper.properties (after modified it)
3. net start service_name

I am working on win 2k professional

I read lot of mailing list and lot of peoples answered that it's a 1.3 jdk
bug.

I tried with 1.2 and it's the same!! 
I CANT START THE SERVICE !! 

Can anyone help please.. 

thanks a lot !! 
Giovanni 


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




RE: Case Sensitivity

2001-02-26 Thread Randy Layman


No.  The Java platform is, generally, case sensitive.  I believe
that there were a number of hacks put into the Tomcat 3.1 code to allow this
case insensitivity, however, case sensitive behavior is easier, and I
believe its required by the JSP/Servlet spec.

Randy


-Original Message-
From: Bilodeau, David [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:18 AM
To: '[EMAIL PROTECTED]'
Subject: Case Sensitivity


Our Intranet developers are using Tomcat for an internal site.

We have just upgraded from 3.1 to 3.2.

Now, many of our hyperlinks are case sensitive whereas before they seemed to
be case insensitive.

I'm just asking this question on behalf of the content owners because
although I administer the NT box where Tomcat runs I don't own the site
itself.

Can we configure Tomcat 3.2 to be case-insensitive?

Regards,

David Bilodeau
SDA National Systems/eBusiness Group
Verizon Data Services, Inc.
Office:(972) 507-1191
Pager: (888) 592-3945
Pager e-mail: [EMAIL PROTECTED]
Cell Phone (972) 989-1593
Mail Stop HQMC03C76



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

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




porting from sun j2ee-ri to tomcat

2001-02-26 Thread Daniel Russ

Hi,
   I have a servlet that is basically an EJB client.  I deployed the EJB
and servlet as one application with a web and an ejb component, and it
worked fine on my PC running Sun's J2EE Reference Implementation.  I
want to move the web app to a different machine that is running tomcat. 
I moved the Client.jar file to the WEB-INF/lib directory, moved the
servlet.java file over. I recompiled the servlet, moved the class files
into the WEB-INF/classes directory.  I also copied the web.xml file over
and put it in the WEB-INF directory.

I am getting an Error: 500 Internal Servlet Error
java.lang.NoClassDefFound  for the EJB's Home Interface.  The Home
interface is in the Client.jar file which is in the WEB-INF/lib
directory.  I wrote a a small application client that uses the
Client.jar and it works fine.  Any Ideas on why it's not working?  Maybe
the web.xml file needs to be rewritten?
Thanks
Dan

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




RE: JDBC connecting to Oracle

2001-02-26 Thread Randy Layman


Perhaps you should consult the documentation that came with your
Oracle JDBC drivers?  I do know that there is an example of this in there.

There is a method in DriverManager getConnection(url, username,
password), so I believe it would be something like
getConnection("jdbc:oracle:instance", "scott", "tiger").  (I'm not 100% sure
about the jdbc:oracle part, its been a while)


Randy

-Original Message-
From: mike thomas [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: JDBC connecting to Oracle


Hi all

Does anyone out there know the syntax for
connecting a JSP to an Oracle database using JDBC?
What I am really after is how do I set the
database name, user name and password so that JSP
can set up the connection. So far I have this :-

  Connection con =
DriverManager.getConnection("??");

Apologies if this is off the topic for this group

Thanks

Michael Thomas


-
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: halcyonsoft iasp

2001-02-26 Thread Randy Layman


The whole concept behind web apps are that they are totally
independent.  You will heed to add the halcyonsoft stuff to each web app.

Randy

-Original Message-
From: Jeremy Kusnetz [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:21 AM
To: '[EMAIL PROTECTED]'
Subject: halcyonsoft iasp


I am new to using tomcat.

I am using halcyonsoft iasp, which parses .asp files as java servlets.  I am
trying to get tomcat 3.21, running with apache 1.3.12  to act as the servlet
engine for iasp.

Using documentation from halcyonsoft, I have gotten *.asp files to be parsed
under the context /iasp, but I need *.asp to be parsed with tomcat globaly,
ie *.asp files residing anywhere will be parsed.

I will post the instructions given by halcyonsoft below, but basically they
make you create a WEB-INF directory under their sample directory, with a
web.xml file with instructions on reading .asp files.  Then you add a /iasp
context to server.xml which points to the sample directory.

This works, but I don't want .asp files being restricted to the sample
directory, so I removed the /iasp context from server.xml, and added web.xml
contence to the global web.xml file under the tomcat/conf directory, kind of
like .jsp is handled as far as I can tell.  This didn't seem to work.  Any
ideas on how to do this?

Here are the instuctions given to me from halyconsoft on getting .asp file
working in their samples directory.


--

Configuring Instant ASP with Tomcat 
  Please configure iASP with Tomcat according to the following instructions:


Create a context path for iASP in tomcat_home/conf/server.xml.
Add the following lines to ContextManager  /ContextManager block of
server.xml 

Context path="/iasp" 
 docBase=iasp_home 
 debug="0" 
 reloadable="true"  
/Context

Create a directory named WEB-INF under the  iasp_home, and a file named
web.xml under the iasp_home/WEB-INF/, the web.xml should contain the
following context:

?xml version="1.0" encoding="ISO-8859-1"? 
!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   servlet-class
 Dispatcher.DispatcherServlet
   /servlet-class
/servlet
servlet-mapping
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   url-pattern
*.asp
   /url-pattern
 /servlet-mapping
/web-app
 


Set all iASP classes to the system environment for Tomcat:
eg: setenv CLASSPATH iasp_home/lib/iasplib.jar:iasp_home/lib/asp2j.jar
.(on UNIX)
 set classpath=iasp_home/lib/iasplib.jar;iasp_home/lib/asp2j.jar
 (on windows)

Restart your Tomcat server and run iASP samples with
http://hostname:port/iasp/.

-
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: halcyonsoft iasp

2001-02-26 Thread Jeremy Kusnetz

So how are *.jsp files handled?  I managed to get *.jsp files parsed that
weren't under a web app, at least ones that didn't use other classes falling
under the WEB-INF directory.

I would like to make virtual hosts, where a user could have a index.html,
index.jsp, index.asp be usable.  Would the entire document base of the
virtual host have to be a web app?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:55 AM
To: [EMAIL PROTECTED]
Subject: RE: halcyonsoft iasp



The whole concept behind web apps are that they are totally
independent.  You will heed to add the halcyonsoft stuff to each web app.

Randy

-Original Message-
From: Jeremy Kusnetz [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:21 AM
To: '[EMAIL PROTECTED]'
Subject: halcyonsoft iasp


I am new to using tomcat.

I am using halcyonsoft iasp, which parses .asp files as java servlets.  I am
trying to get tomcat 3.21, running with apache 1.3.12  to act as the servlet
engine for iasp.

Using documentation from halcyonsoft, I have gotten *.asp files to be parsed
under the context /iasp, but I need *.asp to be parsed with tomcat globaly,
ie *.asp files residing anywhere will be parsed.

I will post the instructions given by halcyonsoft below, but basically they
make you create a WEB-INF directory under their sample directory, with a
web.xml file with instructions on reading .asp files.  Then you add a /iasp
context to server.xml which points to the sample directory.

This works, but I don't want .asp files being restricted to the sample
directory, so I removed the /iasp context from server.xml, and added web.xml
contence to the global web.xml file under the tomcat/conf directory, kind of
like .jsp is handled as far as I can tell.  This didn't seem to work.  Any
ideas on how to do this?

Here are the instuctions given to me from halyconsoft on getting .asp file
working in their samples directory.


--

Configuring Instant ASP with Tomcat 
  Please configure iASP with Tomcat according to the following instructions:


Create a context path for iASP in tomcat_home/conf/server.xml.
Add the following lines to ContextManager  /ContextManager block of
server.xml 

Context path="/iasp" 
 docBase=iasp_home 
 debug="0" 
 reloadable="true"  
/Context

Create a directory named WEB-INF under the  iasp_home, and a file named
web.xml under the iasp_home/WEB-INF/, the web.xml should contain the
following context:

?xml version="1.0" encoding="ISO-8859-1"? 
!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   servlet-class
 Dispatcher.DispatcherServlet
   /servlet-class
/servlet
servlet-mapping
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   url-pattern
*.asp
   /url-pattern
 /servlet-mapping
/web-app
 


Set all iASP classes to the system environment for Tomcat:
eg: setenv CLASSPATH iasp_home/lib/iasplib.jar:iasp_home/lib/asp2j.jar
.(on UNIX)
 set classpath=iasp_home/lib/iasplib.jar;iasp_home/lib/asp2j.jar
 (on windows)

Restart your Tomcat server and run iASP samples with
http://hostname:port/iasp/.

-
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: halcyonsoft iasp

2001-02-26 Thread Morahg, Yoav

Actually, the web.xml file in conf is ignored in 3.2 and is back in use in
4.x

Yoav

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:12 AM
To: [EMAIL PROTECTED]
Subject: RE: halcyonsoft iasp



For Tomcat 3.2: In the conf directory there is a special web.xml
file that is magically added to all the different webapp web.xml files.  I
believe that this doesn't work in Tomcat 4.0.  It is not part of the spec
and will not work with any other JSP/servlet engine.
In that web.xml file, add your servlet mapping for url-pattern *.asp
to their class.

Randy


-Original Message-
From: Jeremy Kusnetz [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:37 AM
To: '[EMAIL PROTECTED]'
Subject: RE: halcyonsoft iasp


So how are *.jsp files handled?  I managed to get *.jsp files parsed that
weren't under a web app, at least ones that didn't use other classes falling
under the WEB-INF directory.

I would like to make virtual hosts, where a user could have a index.html,
index.jsp, index.asp be usable.  Would the entire document base of the
virtual host have to be a web app?

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 9:55 AM
To: [EMAIL PROTECTED]
Subject: RE: halcyonsoft iasp



The whole concept behind web apps are that they are totally
independent.  You will heed to add the halcyonsoft stuff to each web app.

Randy

-Original Message-
From: Jeremy Kusnetz [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 10:21 AM
To: '[EMAIL PROTECTED]'
Subject: halcyonsoft iasp


I am new to using tomcat.

I am using halcyonsoft iasp, which parses .asp files as java servlets.  I am
trying to get tomcat 3.21, running with apache 1.3.12  to act as the servlet
engine for iasp.

Using documentation from halcyonsoft, I have gotten *.asp files to be parsed
under the context /iasp, but I need *.asp to be parsed with tomcat globaly,
ie *.asp files residing anywhere will be parsed.

I will post the instructions given by halcyonsoft below, but basically they
make you create a WEB-INF directory under their sample directory, with a
web.xml file with instructions on reading .asp files.  Then you add a /iasp
context to server.xml which points to the sample directory.

This works, but I don't want .asp files being restricted to the sample
directory, so I removed the /iasp context from server.xml, and added web.xml
contence to the global web.xml file under the tomcat/conf directory, kind of
like .jsp is handled as far as I can tell.  This didn't seem to work.  Any
ideas on how to do this?

Here are the instuctions given to me from halyconsoft on getting .asp file
working in their samples directory.


--

Configuring Instant ASP with Tomcat 
  Please configure iASP with Tomcat according to the following instructions:


Create a context path for iASP in tomcat_home/conf/server.xml.
Add the following lines to ContextManager  /ContextManager block of
server.xml 

Context path="/iasp" 
 docBase=iasp_home 
 debug="0" 
 reloadable="true"  
/Context

Create a directory named WEB-INF under the  iasp_home, and a file named
web.xml under the iasp_home/WEB-INF/, the web.xml should contain the
following context:

?xml version="1.0" encoding="ISO-8859-1"? 
!DOCTYPE web-app

PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"

web-app
servlet
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   servlet-class
 Dispatcher.DispatcherServlet
   /servlet-class
/servlet
servlet-mapping
   servlet-name
  Dispatcher.DispatcherServlet
   /servlet-name
   url-pattern
*.asp
   /url-pattern
 /servlet-mapping
/web-app
 


Set all iASP classes to the system environment for Tomcat:
eg: setenv CLASSPATH iasp_home/lib/iasplib.jar:iasp_home/lib/asp2j.jar
.(on UNIX)
 set classpath=iasp_home/lib/iasplib.jar;iasp_home/lib/asp2j.jar
 (on windows)

Restart your Tomcat server and run iASP samples with
http://hostname:port/iasp/.

-
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]


hep

2001-02-26 Thread Vincent Choi

Hi

I downloaded the latest Apache 1.1.14 and the Tomcat 3.2.1, they seems
runing alright.  However, I don't know how to config the server to run my
jsp.  Could u give me some help, please?

Many thanks

Vincent


**
The contents of this e-mail and any attachments are 
intended for the named addressee only and may be
confidential. Unless you are the named addressee or
authorised to receive the e-mail of the named addressee
you may not disclose, use or copy the contents of the
e-mail. If you received the e-mail in error, please contact
the sender immediately and then delete the e-mail. Neither
Scoot Technology nor any other company in its group accepts 
responsibility for this message and any views or opinions
contained in this e-mail are solely those of the author 
unless expressly stated
otherwise.
In order to maintain the integrity of our IT systems and data, 
it is Scoot Technology policy to monitor the content of all incoming and 
outgoing electronic mail communications.
**

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




tomcat.bat

2001-02-26 Thread shlomi sarfati

Hi

I need to run something that tomcat depends on before tomcat
starts(rmiregistry.exe)
I thought about using the tomcat.bat for this
the thing is that if I do it like this , the tomcat wont work because it
will wait for the other program to end

to be simple , how can I call other program in different process through
batch file 

Thanks for the help
Shlomi



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




Re: Database connection pool scope

2001-02-26 Thread Valeriy Molyakov

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
 instantiates with the server startup and is available to other classes in
 the application (this is very similar to the application object in JSPs -
 but you can use it everywhere). Is there a counterpart in Tomcat? If not,
 how can I implement a connection pool which is available to the business
 classes that I wrote.

 Thanks in advance.
 Selcuk Ayguney


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

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


 _
 Get your FREE download of MSN Explorer at http://explorer.msn.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]




JNI shared libraries and wars

2001-02-26 Thread Nick Christopher


My web app uses some JNI code.  Currently I've put the shared library
into $TOMCAT_HOME/lib and added that directory to LD_LIBRARY_PATH.

I'd like something more elegant and that worked on Un*x and Windoze.
I'd love to get it into the war file.

Is there a right way to do this or any better suggestions?


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




removing /servlet from apache to tomcat ( mod_jk) URL's

2001-02-26 Thread Mohamed Nasser

 Hello folks.
 
 I have two implememtations of apache-tomcat.
 One has all developed servlets in webapps. In this implementation when I
 removed the  the /servlet/* ajp13 from the JkMount in the mod_jk.conf
 and left it as /* ajp13, things worked fine without the /servlet.
 However in another implementation whereby my servlets were not in webapps
 and I put the context in server.xml and in mod_jk.conf the context loaded
 successfully, however I could only get it working with /servlet/*
 although mod_jk.conf and web.xml had those servings altered. In the same
 implementation i altered admin/servlet/* to admin/* and it worked fine. 
 Is my problem just because my servlets and classes are not under webapps.
 
 Mohamed Nasser
 
 
 

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




Re: Authentication to LDAP

2001-02-26 Thread Peter Andersén

Hi
I can be included on this.
I have built a bean for doing contextless login into LDAP.
It maybe could be useful for this, but i need to understand what do you need
for the plugins to work.
I have not been looking at this much so if someone could enlight my on the
subject i could check.

/Peter
- Original Message -
From: "Fernando Padilla" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:30 PM
Subject: Re: Authentication to LDAP



 Tomcat 3.x uses Interceptors and thus the SecurityCheck.

 Tomcat 4.x uses Generalized Security handling code with pluggable Realm
 classes ( realms are access points into user authentication, authorization
 information ).  Realms are pluggable under the conf/server.xml file.

 There is a SimpleRealm class, and a JDBCRealm class.  Maybe someone should
 volunteer a JAASRealm and LDAPRealm for normal users to use...

 fern





 On Sun, 25 Feb 2001, Falcon cheetah wrote:

 
   Well,  I extend SimpleRealm because I did not see securityCheck
anywhere in the tomcat tree, and I assumed it was modified. And it works for
me :)
 
  What is JAAS? And I am not sure if writing and intercepter qualifies as
a project.
 
  I guess what we need to do is to get the wrox code to work for us and
then modify it to do more general auth with ldap. I saw that there is a huge
amount of bad coding in that wrox class and I am waiting to see it working
so I would do a whole rewrite.
 
  I guess if you want us to launch a project for this we have to start
putting the word on the tomcat-dev, rather than tomcat-users, someone would
give us the heads on there.
 
 
 
  Regards.
 
  Ahmed.
 
 
Martin Smith [EMAIL PROTECTED] wrote:
  OK, I've read over ldapAuthCheck.java (by Mark Wilcox, apparently.) I
  pretty well understand everything there, except I have a blank spot in
  knowledge of the Tomcat architecture. Which means I don't understand
  why you had to extend simpleRealm instead of securityCheck.
 
  Obviously, neither this class nor Tomcat implements JAAS. I'm assuming
  that's because they were built before JAAS was defined. They're also
  much simpler than the total pluggable-authentication-module framework
  implemented by JAAS. That's cool, since I don't need all that stuff
  anyhow. It's nice that the user name and password are just passed as
  strings in the call to checkPassword(), for example.
 
  So--What needs doing? I've never worked on a project so I don't know the
  rules.
 
  (The only thing I know I'd like to change is to add flexibility to use
  the "mail" attribute as the userID instead of the "UID" attribute.)
 
  Martin
 
 
  Falcon cheetah wrote:
 
   Martin,
  
   There is a good material about LDAP with Tomcat from Wrox's
   Professional JSP. There are two chapters that talk about this, and on
   chapter 15 they write a tomcat interceptor to do this task. I am
   currently trying to squeez sometime to test that. If you want to
   download the source code from their site and take a look at it.
  
   I know they have few issues with their interceptor. For example I had
   to make the class extend SimpleRealm instead of CheckSecurity.
  
   If you want to play with it and we can cooporate on expanding this
   code or put it in a seperate project if you want. If not I am glad to
   point out this great book to you and everyone else.
  
  
  
   Ahmed.
  
   Martin Smith wrote:
  
   I have been patiently lurking and waiting to see some news
   on the
   existence of a way to do Servlet container (ie Tomcat)
   authentication
   against an LDAP source of security info.
  
   I even posted an RFP at one of these freelancer sites
   (ants.com) to have
   one built. No credible responses.
  
   Limited though I am at programming java (or anything), I'm
   considering
   trying to build one myself. But I thought I'd ask one last
   time: is
   there a JNDI or LDAP Interceptor in the works anywhere?
  
   If not, any advice on the scope of the project? Do I just
   get the
   JDBCRealm source and analogize? (Sure hope we don't need
   threads! And
   callbacks sound hard, too.)
  
   TIA,
  
   martin
  
  
  
   -
   ---
  
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, email:
   [EMAIL PROTECTED]
  
  
 
 ---
   Do You Yahoo!?
   Yahoo! Auctions - Buy the things you want at great prices!
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, email: [EMAIL PROTECTED]
 
 
 
  -
  Do You Yahoo!?
  Yahoo! Mail Personal Address - Get email at your own domain with Yahoo!
Mail.


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




Re: tomcat.bat

2001-02-26 Thread Peter Andersén

Hi
by doing call in bat.
call resource.bat

/Peter
- Original Message - 
From: "shlomi sarfati" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:02 PM
Subject: tomcat.bat 


 Hi
 
 I need to run something that tomcat depends on before tomcat
 starts(rmiregistry.exe)
 I thought about using the tomcat.bat for this
 the thing is that if I do it like this , the tomcat wont work because it
 will wait for the other program to end
 
 to be simple , how can I call other program in different process through
 batch file 
 
 Thanks for the help
 Shlomi
 
 
 
 -
 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: Authentication to LDAP

2001-02-26 Thread Fernando Padilla


get the source form tomcat 4.x,
then go look at:

// Realm interface
src/catalina/src/share/org/apache/catalina/Realm.java

// basic realm that most extend
src/catalina/src/share/org/apache/catalina/realm/RealmBase.java

// and other example realms ( where the LDAP, et al will live in )
src/catalina/src/share/org/apache/catalina/realm/*

good luck

fern



On Mon, 26 Feb 2001, [iso-8859-1] Peter Andersén wrote:

 Hi
 I can be included on this.
 I have built a bean for doing contextless login into LDAP.
 It maybe could be useful for this, but i need to understand what do you need
 for the plugins to work.
 I have not been looking at this much so if someone could enlight my on the
 subject i could check.
 
 /Peter
 - Original Message -
 From: "Fernando Padilla" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, February 26, 2001 5:30 PM
 Subject: Re: Authentication to LDAP
 
 
 
  Tomcat 3.x uses Interceptors and thus the SecurityCheck.
 
  Tomcat 4.x uses Generalized Security handling code with pluggable Realm
  classes ( realms are access points into user authentication, authorization
  information ).  Realms are pluggable under the conf/server.xml file.
 
  There is a SimpleRealm class, and a JDBCRealm class.  Maybe someone should
  volunteer a JAASRealm and LDAPRealm for normal users to use...
 
  fern
 
 
 
 
 
  On Sun, 25 Feb 2001, Falcon cheetah wrote:
 
  
Well,  I extend SimpleRealm because I did not see securityCheck
 anywhere in the tomcat tree, and I assumed it was modified. And it works for
 me :)
  
   What is JAAS? And I am not sure if writing and intercepter qualifies as
 a project.
  
   I guess what we need to do is to get the wrox code to work for us and
 then modify it to do more general auth with ldap. I saw that there is a huge
 amount of bad coding in that wrox class and I am waiting to see it working
 so I would do a whole rewrite.
  
   I guess if you want us to launch a project for this we have to start
 putting the word on the tomcat-dev, rather than tomcat-users, someone would
 give us the heads on there.
  
  
  
   Regards.
  
   Ahmed.
  
  
 Martin Smith [EMAIL PROTECTED] wrote:
   OK, I've read over ldapAuthCheck.java (by Mark Wilcox, apparently.) I
   pretty well understand everything there, except I have a blank spot in
   knowledge of the Tomcat architecture. Which means I don't understand
   why you had to extend simpleRealm instead of securityCheck.
  
   Obviously, neither this class nor Tomcat implements JAAS. I'm assuming
   that's because they were built before JAAS was defined. They're also
   much simpler than the total pluggable-authentication-module framework
   implemented by JAAS. That's cool, since I don't need all that stuff
   anyhow. It's nice that the user name and password are just passed as
   strings in the call to checkPassword(), for example.
  
   So--What needs doing? I've never worked on a project so I don't know the
   rules.
  
   (The only thing I know I'd like to change is to add flexibility to use
   the "mail" attribute as the userID instead of the "UID" attribute.)
  
   Martin
  
  
   Falcon cheetah wrote:
  
Martin,
   
There is a good material about LDAP with Tomcat from Wrox's
Professional JSP. There are two chapters that talk about this, and on
chapter 15 they write a tomcat interceptor to do this task. I am
currently trying to squeez sometime to test that. If you want to
download the source code from their site and take a look at it.
   
I know they have few issues with their interceptor. For example I had
to make the class extend SimpleRealm instead of CheckSecurity.
   
If you want to play with it and we can cooporate on expanding this
code or put it in a seperate project if you want. If not I am glad to
point out this great book to you and everyone else.
   
   
   
Ahmed.
   
Martin Smith wrote:
   
I have been patiently lurking and waiting to see some news
on the
existence of a way to do Servlet container (ie Tomcat)
authentication
against an LDAP source of security info.
   
I even posted an RFP at one of these freelancer sites
(ants.com) to have
one built. No credible responses.
   
Limited though I am at programming java (or anything), I'm
considering
trying to build one myself. But I thought I'd ask one last
time: is
there a JNDI or LDAP Interceptor in the works anywhere?
   
If not, any advice on the scope of the project? Do I just
get the
JDBCRealm source and analogize? (Sure hope we don't need
threads! And
callbacks sound hard, too.)
   
TIA,
   
martin
   
   
   
-
---
   
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, email:
[EMAIL PROTECTED]
   
   
  
  ---
Do You Yahoo!?
Yahoo! 

Cannot load /var/apache/libexec/mod_jserv.so into server

2001-02-26 Thread Mark Sweeney

Hi

I'm running apache 1.3 and Tomcat 3.2.1 on a SUN Solaris 8.0 Ultra 1 SPARC platform.  
I'm able to view the HTTP pages from Apache and run the servlet examples from Tomcat. 
The problem is I cannot load mod_jserver.so when attempting to load via tomcat.conf 
file.

Below is the output I receive when starting apache. I copied the mod_jserv.so into 
both the directory /usr/apache/libexec and /var/apache/libexec/ 

Thanks in advance




bash-2.03# ./apachectl start
Syntax error on line 13 of /usr/local/jakarta-tomcat/conf/tomcat.conf:
Cannot load /var/apache/libexec/mod_jserv.so into server: ld.so.1: 
/usr/apache/bin/httpd: fatal: /var/apache/libexec/mod_jserv.so: open failed: No such 
file or directory
./apachectl start: httpd could not be started



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




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

2001-02-26 Thread Schiff, Nicky


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://Host_IP_Address:8081/Application/logon.jsp

where Host_IP_Address 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://Host_IP_Address: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"%
html
head
title
Company Application - Sign In
/title
SCRIPT language='JavaScript'
!-- hide the JavaScript from non JS browsers

function ValidText( txt )
{
  return ( txt.value != ""  txt.value != " " );
}

function PoliteMessage( field )
{
  alert( "The " + field + " is blank or invalid. Please re-enter." )
}

function DoSubmit()
{
  if ( !ValidText( document.UserInfo.UserName ) )
  {
PoliteMessage( "UserName" )
location.href = "#a_UserName";
return;
  }

  if ( !ValidText( document.UserInfo.PassWord ) )
  {
PoliteMessage( "password" )
location.href = "#a_PassWord";
return;
  }
  document.UserInfo.submit()
}
//--
/SCRIPT
/head
body BGCOLOR="cyan"

form name="UserInfo" action="Company.Application.Logon" method="post"

TABLE BORDER="0" CELLPADDING="0" CELLSPACING="0"
TR
MAP NAME="map"
  AREA SHAPE="CIRCLE" COORDS="51,128,25" HREF="Members.html"
ALT="members.html"
  AREA SHAPE="CIRCLE" COORDS="39,197,26" HREF="SampleData.html"
ALT="SampleData.html"
  AREA SHAPE="CIRCLE" COORDS="50,265,26" HREF="FreeTrial.html"
ALT="FreeTrial.html"
  AREA SHAPE="CIRCLE" COORDS="100,327,26" HREF="About.html"
ALT="About.html"
  AREA SHAPE="CIRCLE" COORDS="122,257,22" HREF="Demo.html"
ALT="Demo.html"
  AREA SHAPE="CIRCLE" COORDS="117,170,26" HREF="Home.html"
ALT="Home.html"
/MAP
TD WIDTH="156"IMG SRC="CAmenuMapColour.jpg" USEMAP = "#map"
/TD
TD COLSPAN="3"nbsp;/TD
TD
pinput type="hidden" name="Action"/p
pinput type="hidden" name="CurrentPage"/p
pName of User  a name="a_UserName"/ainput type="text"
name="UserName"/p
pPassword. a name="a_PassWord"/ainput type="password"
name="PassWord"/p

ppress Submit to post to Logon servlet/p
pinput type="submit" name="Submit" value="Submit" onclick="DoSubmit()"

input type="reset" value="Reset"/p
/form
hr
/TD
/TR
/TABLE
/form
/body
/html



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
**

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




RE: first time user!!!

2001-02-26 Thread Zakaria .

Thanks a lot, it worked!!!
I have another question, when i try to compile a simple servlet using:

javac -classpath c:\tomcat\lib\servlet.jar MyServlet.java

i get an error about the symbol : HttpServlet
the same error i get when i use :javac MyServlet.java

Like the servlet.jar doesnt work or doesnt contain the Servlet class...
Please help.
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




More on tomcat with SSL problem

2001-02-26 Thread Mandar Joshi

I created a java client communicating over https and used it with the same
URL it throws following exception:

javax.net.ssl.SSLException: Received fatal alert: handshake_failure (no
cipher suites in common)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.b([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.AppOutputStream.write([DashoPro-V1.2-120198])
at java.io.OutputStream.write(Unknown Source)
at
com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.doConnect([DashoPro-
V1.2-120198])

at
com.sun.net.ssl.internal.www.protocol.https.NetworkClient.openServer([DashoP
ro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.l([DashoPro-V1.2-1201
98])
at
com.sun.net.ssl.internal.www.protocol.https.HttpClient.init([DashoPro-V1.2
-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.init([DashoPro-V1.
2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsClient.a([DashoPro-V1.2-120
198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.connect([Dash
oPro-V1.2-120198])
at
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnection.getOutputStre
am([DashoPro-V1.2-120198])
at TestMessage.main(TestMessage.java:116)

The tomcat consol still dumps
2001-02-24 04:48:53 - Ctx(  ): 400 R( /) null
2001-02-24 04:48:53 - Ctx(  ): IOException in: R( /) Socket closed

There has to be a common Cipher Suite since both the programs are running on
same machine and sharing same environment.

Any help appritiated

Mandar

 -Original Message-
 From: Mandar Joshi [mailto:[EMAIL PROTECTED]]
 Sent: Saturday, February 24, 2001 6:27 PM
 To: [EMAIL PROTECTED]
 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
 Connector className="org.apache.tomcat.service.PoolTcpConnector"
 Parameter name="handler"

 value="org.apache.tomcat.service.http.HttpConnectionHandler"/
 Parameter name="port"
 value="8443"/
 Parameter name="socketFactory"
 value="org.apache.tomcat.net.SSLSocketFactory" /
 Parameter name="keystore" value="tomCertStore" /
 Parameter name="keypass" value="mypass"/
  Parameter name="clientAuth" value="false"/
 /Connector

 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]




about the

2001-02-26 Thread Bo Xu

Hi dear friends :-)

I am new to this List, thanks for your help! :-)

now I use jakarta-tomcat-4.0-b1(standalone, JDK1.3,  winnt40).

from the direction of one email in Servlet-List, I find the following
link:
http://jakarta.apache.org/cvsweb/index.cgi/jakarta-tomcat-4.0/catalina/docs/dev/classloaders.html

and I find there is a classloader named  "Shared" , and I want to
use it to load MyHelper.class. So I put MyHelper.jar in
both:
   TOMCAT_HOME\lib
   TOMCAT_HOME\classes(I made this folder by meself)

but when I try to make a new instance of MyHelper in MyServlet, I got
the following info in my broswer:

HTTP Status 500 - /myServletFolder0/servlet/MyServlet
The server encountered an internal error
(/myServletFolder0/servlet/MyServlet)
that prevented it from fulfilling this request.

But if I put MyHelper.jar in TOMCAT_HOME\webapps\myServletFolder0\lib,
it works well, but now I think MyHelper is not loaded by "Shared"
classloader.

I just guess perhaps the reason is:  now "Shared" classloader doesn't
work
well, ot it doesn't find MyHelper.jar in TOMCAT_HOME\lib.

Did anybody meet the same problem?
could you tell me how to fix it?

Thanks in advance!


Bo
Feb.26, 2001




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




newbie: I assume Tomcat 3.2.1 does support SSL via IIS

2001-02-26 Thread Todd Carmichael

I would like SSL requests to come into IIS and then be forward to Tomcat in
SSL mode.  From the documentation (how-to) on how to get SSL to work, only
Apace is mentioned.  

A quick answer would be appreciated.
Thanks.

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




global init param context-param

2001-02-26 Thread Brett W. McCoy

I am using context-param to set global variables for my servlets,
but my servlets are still not seeing them (the value is showing up as
null).  Here is an example:

 context-param
param-namebw.client.configDir/param-name
param-valueD:\dev\src\conf/param-value
  /context-param

And the code snippet using the param:

oamFileProps.load(config.getInitParameter("bw.client.configDir") +
System.getProperty("file.separator") +
   "SystemPref.properties");

And the exception being generated:

java.io.FileNotFoundException: null\SystemPref.properties (The system
cannot find the path specified)

I'm not sure why this is coming up as null.  Or should this be defined as
init-param for the servlets?  This could be a problem because there are
dozens and dozens of servlets using these parameters, and which ones those
are I don't know (I'm not part of the programming team for this, just the
sysadmin trying to deploy it all).  Again, this value was defined as a
global init parameter in the older JServ properties file.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Those who have had no share in the good fortunes of the mighty
Often have a share in their misfortunes.
-- Bertolt Brecht, "The Caucasian Chalk Circle"



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




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

2001-02-26 Thread Michael Specht

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/app 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 Strae 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]




Re: init-param with Tomcat4.0

2001-02-26 Thread Craig R. McClanahan



S Ramakrishnan wrote:

 Environment:
   Tomcat 4.0 on NT4.0
   Browser: IE5.5

 Problem:
   I am unable to get init-param to work.
   In my web.xml I have
servlet
 servlet-nameQuote/servlet-name
 servlet-classQuote/servlet-class
 init-param
   param-namequotesFile/param-name
   param-valuequotes.txt/param-value
 /init-param
   /servlet

 The ServletContext in init() fetches null for
 init-param "quotesFile". (I've tried restrating catalina).


For this to be recognized, you need to do two more things:

* Establish a servlet mapping for your servlet:

servlet-mapping
servlet-nameQuote/servlet-name
url-pattern/quote/url-pattern
/servlet-mapping

* Use this mapping in the URL that requests the servlet:

http://localhost:8080/myapp/quote

where "/myapp" is the context path of your web application.


 Could someone please give me an example of
 storing and using resources (say, Files) in my
 web application? I am not sure if I should put the file
 in thge root of the web app or in the classes directory.

 Thanks,

 Rk
 x77309


Craig McClanahan

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




RE: global init param context-param

2001-02-26 Thread Brett Knights


 oamFileProps.load(config.getInitParameter("bw.client.configDir") +
 System.getProperty("file.separator") +
"SystemPref.properties");
 
Context.getInitParameter for globals

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




Problem starting Apache and Tomcat

2001-02-26 Thread Rouiller Samuel

Hi,

I am using Apache with mod_jk and Tomcat. I included the mod_jk.conf file in
my http.conf and configured the workers.properties file.

My problem is that apache refuses to start by logging the following in
error.log:
[Mon Feb 26 20:16:15 2001] [emerg] (2)No such file or directory: Error while
opening the workers

I must say that I was able to setup apache and tomcat on another machine,
that's why I suspect some problem my environment variables, users rights or
sth like that. (I'm running linux, jdk1.3, apache 1.1.17 and tomcat 3.2.1)

Has anyone any idea of where this error msg come from and what it means?

thanks in advance for your help,
Samuel

==
Creating Opportunities for the Mobile Generation

Samuel Rouiller
RIXXO AG Mobile Services
Industriestrasse 11
CH-6343 Rotkreuz
Tel: +41 41 799 69 39
Fax: +41 41 799 69 30
http://www.rixxo.com
==




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




Re: TC3.2.1 - response commit on included JSPs

2001-02-26 Thread cmanolache

  " if that destination is another character or
   byte stream, flush it."
  
  In this case, the destination is the servlet output
  stream - and it has to be flushed.
 
 That is only because the particular servlet engine
 implementation implements the ServletOutputStream of
 the Response object passed to the included servlet by
 wrapping it around (or simply passing on) the current
 ServletOutputStream.  Technically, that does not have
 to be so.

Ok, the final destination is the user's browser
( where bits will eventually go ). The meaning of
flush() seems to be - empty all intermediary buffers.

 This is true.  My argument then is only that I think
 the spec is bad in this regard.  However, as I stated,
 I can live with it.

+1 on that :-)


 So, I'm trying to decide whether to use the latest
 milestone build, nightly build or to setup a cvs
 project and simply track the latest code with the
 eventual goal of helping to contribute.  Having to
 build one of my deployment tools from source is not
 something I really wanted to do from a project
 management perspective, but oh well

The release plan is to have a beta soon, and so
 far it seems to work fine (  or at least my optimistic
 look at the bugs doesn't show any stopper ).


 I presume I can hook up as a 'read only' user of the
 tc 3.3 cvs repositories with wincvs?  Where can I find
 the necessary repository url and authentication info? 
 Or can I actually checkout the whole project via
 cvsweb?  Looks like I need to do some poking around...

It's the main branch of jakarta-tomcat, with nightly
snapshots and builds available :-).


Costin


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




MySQL driver - java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

2001-02-26 Thread c cw_1

Hi

I try to use MySQL to access the database.
I set the drivername = "org.gjt.mm.mysql.Driver";
and set   URL = "jdbc:odbc:test";

and I included the "c:\mm.mysql-2.0.2-bin.jar" in the CLASSPATH, I got
the classNotFoundException.

I used"
Tomcat 3.1
MySQL 3.23.32
jdk1.3

Can some tell me how can i solve this problem?

Thank,
Cathy




Here's the Exception:

java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at 
org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:450) 
at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at 
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at 
java.lang.Class.forName0(Native Method) at 
java.lang.Class.forName(Class.java:120) at 
Benchmark_sql.query(Benchmark_sql.java:91) 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(HttpConnectionHandler.java:160)
 
at 
org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338) 
at java.lang.Thread.run(Thread.java:484)
_
Get your FREE download of MSN Explorer at http://explorer.msn.com


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




RE: global init param context-param

2001-02-26 Thread Brett W. McCoy

On Mon, 26 Feb 2001, Brett Knights wrote:

  oamFileProps.load(config.getInitParameter("bw.client.configDir") +
  System.getProperty("file.separator") +
 "SystemPref.properties");
 
 Context.getInitParameter for globals

Argh, I was hoping you wouldn't suggest a code change.  :-)

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
A wise person makes his own decisions, a weak one obeys public opinion.
-- Chinese proverb


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




Connecting to a servlet from within an applet

2001-02-26 Thread Neil Wood

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]
For additional commands, email: [EMAIL PROTECTED]




load on start-uo

2001-02-26 Thread Neil Wood

How do I get a servlet to load up on start-up of tomcat.

probably easy but I dont know how to?

where can i find answers to questions that are similar to this one?


Thankyou,

Neil


Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com



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




Fwd: load on start-uo

2001-02-26 Thread Neil Wood



Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com




How do I get a servlet to load up on start-up of tomcat.

probably easy but I dont know how to?

where can i find answers to questions that are similar to this one?


Thankyou,

Neil


Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com






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


Fwd: Connecting to a servlet from within an applet

2001-02-26 Thread Neil Wood



Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com




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]
For additional commands, email: [EMAIL PROTECTED]


RE: Connecting to a servlet from within an applet

2001-02-26 Thread Randy Layman


You simply need to make a request.  It depends upon what you are
trying to do.  A GET or POST request can be made by URLConnection fairly
easily.  If you are looking for a session, you have to pass the session id
back (the applet doesn't know about the cookies of the browser its running
in without some help from JavaScript).

There is no Tomcat (or any web server for that matter) specific
stuff you need to do.

Randy

-Original Message-
From: Neil Wood [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 12:13 PM
To: [EMAIL PROTECTED]
Subject: Connecting to a servlet from within an applet


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]
For additional commands, email: [EMAIL PROTECTED]

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




E-mail guidelines...

2001-02-26 Thread Adam Fowler

Hi all,

Could everyone please make sure that the to: address when they send e-mail
to this list is [EMAIL PROTECTED] and not "tomcat user"
"tomcat" or " ". It's a pain to sort through 50 unknown e-mails to put them
in the right place.

Also, the e-mail guidelines request that people use plain text messages. Not
RTF, HTML or any other pretty styling that Microsoft has come up with. This
is to allow people who read e-mail using a plain text editor (pine, elm etc.
on Unix/Linux) to actually read it. Otherwise they just get told the e-mail
has an attachment and probably don't ever bother reading it. (I know I don't
when I'm in Unix 8o) )

The above are only little things, but helps a lot in reply times.

Thanks,
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"




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




RE: JServ - mod_jk

2001-02-26 Thread Adam Fowler

Hi,

Mod_jk has its own config file called mod_jk.conf.auto you'll need to caopy
this to something like mod_jk.conf.correct and edit it for your paths etc.
After this make sure apache is including it.

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: Brett W. McCoy [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 23, 2001 3:49 PM
To: [EMAIL PROTECTED]
Subject: JServ - mod_jk


I am trying to migrate some applications from Apache/JServ to Tomcat using
mod_jk, and I am having trouble getting Tomcat to find servlets that are
in my classpath.

The web application is really just a presentation layer on top of a
proprietary application server built with Java.  Many of the various
packages that the application server is built from have servlets
associated with them.  Right now, these classes are not archived but are
under a development directory which is in the classpath.  Here is the
basic structure of the entire system (this is on Windows 2000):

\dev\src -- has all of the Java packages, unarchived, including servlet
 classes.  This is in the CLASSPATH

\dev\public_html -- document root (JSPs)  Apache is pointing here and a
 Context also exists in server.xml

\3rdpart\jakarta -- TOMCAT_HOME
\3rdparty\apache -- APACHE_HOME

Tomcat and Apache work fine using the default contexts (i.e., everything
under /examples works just fine).

Now, when I start up the servers, the index.jsp under the document root
loads, runs some JavaScript to see if cookies are enabled:

if (document.cookie.indexOf("acceptCookies=")  0)
  {
top.location.replace("/Error/Cookie/");
  }
  else
  {

top.location.replace("/servlets/com.appserver.servlets.Login");
  }

When the redirect occurs, I get

Not Found (404)

Original request: /servlets/com.appserver.servlets.Login

Not found request: /servlets/com.appserver.servlets.Login

in the browser.

The JSPs are building and compiling just fine (the compiled classes are
showing up under %TOMCAT_HOME%\work), but the servlet classes are just not
being seen.

What am I missing?

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
You will receive a legacy which will place you above want.




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



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




admin

2001-02-26 Thread Shai Bentin

anybody know of a good tool for tomcat administration,
something like an applet or application that lets you easily configure
tomcat configuration files?


thnx

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




How to setup CLASSPATH for different apps.

2001-02-26 Thread Rogelio Estudillo

Hello,

I am running Apache with Virtual Hosts and Tomcat 3.2 (mod_jserv) on Linux .
I'm trying to run multiple JVM's on the same machine (alpha and beta setup.)
I've modified the httpd.conf to support the two virtual hosts and the ApJ
mountpoints, created a server_alpha.xml and a server_beta.xml succesfully.

Is there any way to specify to tomcat to use the classpath in order to run
the different apps. using the especific servlets for each version?

CLASSPATH= ..:/home/alpha:/home/beta:..

/home/alpha/com/mycompany/util/myservlet
/home/beta/com/mycompany/util/myservlet

Thanks in advance.

Rogger.


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




Re: load on start-uo

2001-02-26 Thread Jon Crater

in the web.xml file for your context, map a servlet and use the 
load-on-startup tag.

servlet
  servlet-nameServletName/servlet-name
  descriptionDescription/description
  servlet-classfully.qualified.class.name/servlet-class
  !-- Load this servlet at server startup time --
  load-on-startup1/load-on-startup
/servlet

be sure to define a servlet mapping as well:

servlet-mapping
  servlet-nameServletName/servlet-name
  url-pattern/mappingName/url-pattern
/servlet-mapping

Original Message Follows
From: "Neil Wood" [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: load on start-uo
Date: Mon, 26 Feb 2001 17:12:58 +

How do I get a servlet to load up on start-up of tomcat.

probably easy but I dont know how to?

where can i find answers to questions that are similar to this one?


Thankyou,

Neil


Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com



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


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


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




RE: deep web.xml problem

2001-02-26 Thread Dresmond.McLaurin


-Thank you very much, Randy... I got it right now... servlet-mapping


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




Connecting to a servlet from within an applet

2001-02-26 Thread Neil Wood

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]
For additional commands, email: [EMAIL PROTECTED]




load on start-uo

2001-02-26 Thread Neil Wood

How do I get a servlet to load up on start-up of tomcat.

probably easy but I dont know how to?

where can i find answers to questions that are similar to this one?


Thankyou,

Neil


Neil Wood, Systems Developer, Jungle Online Ltd.
www.jungle.com



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




RE: JServ - mod_jk

2001-02-26 Thread Brett W. McCoy

On Mon, 26 Feb 2001, Adam Fowler wrote:

 Mod_jk has its own config file called mod_jk.conf.auto you'll need to caopy
 this to something like mod_jk.conf.correct and edit it for your paths etc.
 After this make sure apache is including it.

I got the problem sorted out (not having mod_jk.conf included wasn't the
issue -- it was being included).  For some reason my modified CLASSPATH
wasn't being seen globally on Windows 2000.  When I ended up rebooting the
machine over the weekend (for other reasons), it all started working (go
figure, it's Windows).  Now comes the fun of documenting the code impacts
I've discovered in our application server (which uses GNU JSP) and having
to document all of the API deprecations.  *sigh*  At least I'm the
programmer who has to do the re-coding...

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
Wasting time is an important part of living.


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




Re: MySQL driver - java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

2001-02-26 Thread Denny Chambers

For the URL try this:

URL = "jdbc:mysql://dbserver/dbname?user=myusernamepassword=myPassword"

It's been about a year since I fooled around with MySQL, but this worked
for me then.


Denny

c cw_1 wrote:
 
 Hi
 
 I try to use MySQL to access the database.
 I set the drivername = "org.gjt.mm.mysql.Driver";
 and set   URL = "jdbc:odbc:test";
 
 and I included the "c:\mm.mysql-2.0.2-bin.jar" in the CLASSPATH, I got
 the classNotFoundException.
 
 I used"
 Tomcat 3.1
 MySQL 3.23.32
 jdk1.3
 
 Can some tell me how can i solve this problem?
 
 Thank,
 Cathy
 
 Here's the Exception:
 
 java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver at
 org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(AdaptiveClassLoader.java:450)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:253) at
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313) at
 java.lang.Class.forName0(Native Method) at
 java.lang.Class.forName(Class.java:120) at
 Benchmark_sql.query(Benchmark_sql.java:91) 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(HttpConnectionHandler.java:160)
 at
 org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
 at java.lang.Thread.run(Thread.java:484)
 _
 Get your FREE download of MSN Explorer at http://explorer.msn.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, email: [EMAIL PROTECTED]

-- 
Denny Chambers
Linux Java Engineer
Connex, Inc
Voice: 770-455-7653
Fax: 770-455-7325

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




RE: JServ - mod_jk

2001-02-26 Thread Brett W. McCoy

On Mon, 26 Feb 2001, Brett W. McCoy wrote:

 *sigh* At least I'm the programmer who has to do the re-coding...

Oops, that should be "At least I'm NOT the programmer..." :-)

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
My uncle was the town drunk -- and we lived in Chicago.
-- George Gobel


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




Re: load on start-uo

2001-02-26 Thread William Brogden



Neil Wood wrote:
 
 How do I get a servlet to load up on start-up of tomcat.
 
 probably easy but I dont know how to?
 
 where can i find answers to questions that are similar to this one?
 

Read the documentation, study the Tomcat examples - especially
the way web.xml is used, download
the servlet and JSP APIs from java.sun.com 
You will find your answers a LOT faster than by bombarding
this list.

-- 
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]




Installing Tomcat

2001-02-26 Thread Noah silva

Hello,

I am a programmer and familiar with unix, HTML, and apache, but I am not
familiar with JSP, jserv, or tomcat.

In looking for a webmail product to meet my needs, I came across
"webmail", which despite it's rather generic sounding name, looks like a
very nice package.  It can be found at:
http://jwebmail.sourceforge.net/

It recommends installing JServ.  I was told JServ was a module for apache,
but it is not in my apache modules folder.  I was also told I could
install it to my system (which is debian-linux-2.2-sparc) as a package
(i.e.: "apt-get install jserv").  This doesn't work on my system, as jserv
is found in the debian database but "has in installation canidates".
Perhaps this means there is no sparc binary version?  I find that
difficult to believe.  One of my friends who does some JSP work told me I
should use Tomcat instead, as Jserv is obsolete.  In looking at
Jakarta.apache.org, I had more questions raised than answered.  I looked
in the binary download section, which only seemed to include i386 binarys
;(.  I also read that I would need a java compiler to compile Tomcat!?  Of
course Tomcat serves Java Servlet pages, but I thought that Tomcat itself
was written in C?  Also, do I need to install a Java Runtime system to run
the Servlets, or is that built into Tomcat?  I get the feeling from
reading some of te Docs that it isn't.  If Apache is already the HTTP
server, and you already have a JRE, it seems like Tomcat must be the
connecting piece, and it seems to me like that would be a trivial amount
of code, but obviously this isn't the case (but like I said, I am not
experiences with JSP).  I should follow my blabber with some concrete
questions:

a.) What exactly do I need to install, and where, on my sparc-linux box,
in able to be able to run java servlet applications.  

b.) If I need to install a JRE, which ones are available/recommended for
sparc/linux?

c.) Is there, anywhere, a binary of tomcat for sparc/linux?  I just want
to run some JSP pages, not wrestle with trying to get Tomcat to compile on
my system.

thanks,
   Noah Silva


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




Problem in Jakarta-Tomcat running in WinNT with multiple NICs

2001-02-26 Thread aneogi




Hi,
I'm using Jakarta-Tomcat as the servlet container and also as the
default web server listening to 8080 port for a Servlet-Jsp based application.
 The Servlet has a background thread running that communicates asynchrnously
(asynchronous to the HTTP requests) with an external process. This background
thread is implemented as a different object that gets instantiated from the
init() method of the Servlet. The external process executed (by
Runtime.getRuntime.exec()) is a proprietary command line tool. This background
thread, after being instantiated, executes this process, gets the output, input
and error streams associated with the process and then periodically writes to
the output stream and reads from the input stream.Everything works fine in both
Win32 and UNIX platforms.

If I start up Tomcat on a WINNT machine that has dual NICs (Network
Identification Card) connected to it, the  reading from the input stream never
happens as the inputstream.read() call never returns true.  If I just disconnect
one of the network connections then everything starts to work again. I've tried
changing the priorites of the background thread, yielding it, putting it to
sleep for a while but the inputstream just never gets ready to be read. I
actually wrap the InputStream out of the external process with an
InputStreamReader. In csae of multiple NICs, the InputStreamReader.ready() never
returns true.

The command line tool itself doesn't have any problem with multiple NICs as I
have tested. My java class (that runs as the background thread) also works fine
in multiple NIC environment if invoked as a NT service (after wrapping by C++)
or if simply started from the command line. Only when it's instantiated from the
Servlet running under jakarta-tomcat I face the problem mentioned above.

Any help/idea/pointers will be really appreciated.

Regards, Atanu



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




Calling an EJB from a servlet

2001-02-26 Thread Ghislain Gadbois

Hi everyone,

I developped a servlet that calls EJB components that are stored in an
Oracle 8.1.7 database.  When I run my servlet from Oracle JDeveloper, I can
call my EJB components without any problem.  When I deploy my servlet in
Tomcat 3.2.1 (on SunOS 5.6), I always get the following exception:

javax.naming.NoInitialContextException: Need to specify class name in
environment or system property, or as an applet parameter, or in an
application resource file:  java.naming.factory.initial.

According to the Oracle docs, the java.naming.factory.initial doesn't have
to be set at all.

I found a work around, but I really don't like it...  If I add all the jar
files used by my servlet, plus all the classes of my servlet in the system
CLASSPATH BEFORE I start Tomcat, the exception disappears:

export
CLASSPATH=${CLASSPATH}:${TOMCAT_HOME}/webapps/myapp/WEB-INF/classes:${TOMCAT
_HOME}/webapps/myapp/WEB-INF/lib/aurora_client.jar:${TOMCAT_HOME}/webapps/my
app/WEB-INF/lib/mts.jar:${TOMCAT_HOME}/webapps/myapp/WEB-INF/lib/vbjapp.jar:
${TOMCAT_HOME}/webapps/myapp/WEB-INF/lib/vbjorb.jar
${TOMCAT_HOME}/bin/startup.sh

The BIG problem with this is that this way, I can only have one application
per web server without risking name conflicts between the classes of the
applications and this is not good at all in my current context.

Can anyone help me on this one???

Thanks in advance

  _

Ghislain Gadbois
Analyst-Programmer

COGNICASE - SISCA

2144, King West,suite 240
Sherbrooke (Qubec) J1J 2E8
Tel. : (819) 564-1199,ext 2225
Fax : (819) 569-8597
E-Mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]




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




Re: MySQL driver - java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

2001-02-26 Thread Niels Wagner

Hi,
 I try to use MySQL to access the database.
 I set the drivername = "org.gjt.mm.mysql.Driver";
 and set   URL = "jdbc:odbc:test";
I'm not using exactly the same configuration (Tomcat 4.0,cocoon) but my urls
look like url=jdbc:mysql://localhost/db_name

 and I included the "c:\mm.mysql-2.0.2-bin.jar" in the CLASSPATH, I got
 the classNotFoundException.
I'm using Linux, but I had to 'jar -xf ... ' the downloaded jar-file and copy
the mysql.jar (in the extracted directory) to the lib-directory of tomcat and
cocoon and put it in my classpath. I hope this helps you, but I installed the
driver only yesterday and didn't have time to find the exact location. Maybe
this is a little overkill, but it works.


Bye

Niels Wagner

---
ping-tec
N. Wagner

Saumarkt 8a

91781 Weienburg

Tel.: 09141/923721
Fax.: 09141/923722
Mobil: 0177/6329448
[EMAIL PROTECTED]

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




RE: Installing Tomcat

2001-02-26 Thread Randy Layman


You need to install a JDK (from eitehr Sun or IBM)
You need to download and un-tar/zip the Tomcat binaries (it is
writtin in java, so there is only one package.  The various binary
directories are for the web server connectors)
The Where to install is where ever you like.  If you read
http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/src/doc
/tomcat-ug.html?rev=1.6content-type=text/html
you should be able to install without any problems.  If you need to
integrate with Apache then you will also need to read
http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/src/doc
/tomcat-apache-howto.html?rev=1.3content-type=text/html

Aren't manuals a wonderful thing?

Randy

-Original Message-
From: Noah silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 4:26 PM
To: [EMAIL PROTECTED]
Subject: Installing Tomcat


Hello,

I am a programmer and familiar with unix, HTML, and apache, but I am not
familiar with JSP, jserv, or tomcat.

In looking for a webmail product to meet my needs, I came across
"webmail", which despite it's rather generic sounding name, looks like a
very nice package.  It can be found at:
http://jwebmail.sourceforge.net/

It recommends installing JServ.  I was told JServ was a module for apache,
but it is not in my apache modules folder.  I was also told I could
install it to my system (which is debian-linux-2.2-sparc) as a package
(i.e.: "apt-get install jserv").  This doesn't work on my system, as jserv
is found in the debian database but "has in installation canidates".
Perhaps this means there is no sparc binary version?  I find that
difficult to believe.  One of my friends who does some JSP work told me I
should use Tomcat instead, as Jserv is obsolete.  In looking at
Jakarta.apache.org, I had more questions raised than answered.  I looked
in the binary download section, which only seemed to include i386 binarys
;(.  I also read that I would need a java compiler to compile Tomcat!?  Of
course Tomcat serves Java Servlet pages, but I thought that Tomcat itself
was written in C?  Also, do I need to install a Java Runtime system to run
the Servlets, or is that built into Tomcat?  I get the feeling from
reading some of te Docs that it isn't.  If Apache is already the HTTP
server, and you already have a JRE, it seems like Tomcat must be the
connecting piece, and it seems to me like that would be a trivial amount
of code, but obviously this isn't the case (but like I said, I am not
experiences with JSP).  I should follow my blabber with some concrete
questions:

a.) What exactly do I need to install, and where, on my sparc-linux box,
in able to be able to run java servlet applications.  

b.) If I need to install a JRE, which ones are available/recommended for
sparc/linux?

c.) Is there, anywhere, a binary of tomcat for sparc/linux?  I just want
to run some JSP pages, not wrestle with trying to get Tomcat to compile on
my system.

thanks,
   Noah Silva


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

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




Invalid Authorizaton

2001-02-26 Thread Bryan Murtha

I keep getting this error, I'm connecting to a mySQL database on the same 
Sun box as the webserver and Tomcat are running, I can use this same 
user/pass to connect through Perl DBI and everything is OK, but here I am 
told it's invalid. Have tried it using several different users, with no 
alphanumberic characters in user/pass strings.
Does anyone have any ideas?

Thanks
Bryan

SQLException: Invalid authorization specification: Access denied for user: 
'[EMAIL PROTECTED]' (Using password: YES) SQLState: 28000 
VendorError: 1045


Original Message Follows
From: Randy Layman [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: RE: Installing Tomcat
Date: Mon, 26 Feb 2001 16:07:27 -0500


You need to install a JDK (from eitehr Sun or IBM)
You need to download and un-tar/zip the Tomcat binaries (it is
writtin in java, so there is only one package.  The various binary
directories are for the web server connectors)
The Where to install is where ever you like.  If you read
http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/src/doc
/tomcat-ug.html?rev=1.6content-type=text/html
you should be able to install without any problems.  If you need to
integrate with Apache then you will also need to read
http://jakarta.apache.org/cvsweb/index.cgi/~checkout~/jakarta-tomcat/src/doc
/tomcat-apache-howto.html?rev=1.3content-type=text/html

Aren't manuals a wonderful thing?

Randy

-Original Message-
From: Noah silva [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 4:26 PM
To: [EMAIL PROTECTED]
Subject: Installing Tomcat


Hello,

I am a programmer and familiar with unix, HTML, and apache, but I am not
familiar with JSP, jserv, or tomcat.

In looking for a webmail product to meet my needs, I came across
"webmail", which despite it's rather generic sounding name, looks like a
very nice package.  It can be found at:
http://jwebmail.sourceforge.net/

It recommends installing JServ.  I was told JServ was a module for apache,
but it is not in my apache modules folder.  I was also told I could
install it to my system (which is debian-linux-2.2-sparc) as a package
(i.e.: "apt-get install jserv").  This doesn't work on my system, as jserv
is found in the debian database but "has in installation canidates".
Perhaps this means there is no sparc binary version?  I find that
difficult to believe.  One of my friends who does some JSP work told me I
should use Tomcat instead, as Jserv is obsolete.  In looking at
Jakarta.apache.org, I had more questions raised than answered.  I looked
in the binary download section, which only seemed to include i386 binarys
;(.  I also read that I would need a java compiler to compile Tomcat!?  Of
course Tomcat serves Java Servlet pages, but I thought that Tomcat itself
was written in C?  Also, do I need to install a Java Runtime system to run
the Servlets, or is that built into Tomcat?  I get the feeling from
reading some of te Docs that it isn't.  If Apache is already the HTTP
server, and you already have a JRE, it seems like Tomcat must be the
connecting piece, and it seems to me like that would be a trivial amount
of code, but obviously this isn't the case (but like I said, I am not
experiences with JSP).  I should follow my blabber with some concrete
questions:

a.) What exactly do I need to install, and where, on my sparc-linux box,
in able to be able to run java servlet applications.

b.) If I need to install a JRE, which ones are available/recommended for
sparc/linux?

c.) Is there, anywhere, a binary of tomcat for sparc/linux?  I just want
to run some JSP pages, not wrestle with trying to get Tomcat to compile on
my system.

thanks,
Noah Silva


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

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


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


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




RE: Connecting to a servlet from within an applet

2001-02-26 Thread GOMEZ Henri

   You simply need to make a request.  It depends upon what you are
trying to do.  A GET or POST request can be made by 
URLConnection fairly
easily.  If you are looking for a session, you have to pass 
the session id
back (the applet doesn't know about the cookies of the browser 
its running
in without some help from JavaScript).

   There is no Tomcat (or any web server for that matter) specific
stuff you need to do.


And you have to code the cookies support to allow the servlet track
your sessionid ;-)

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




Re: init-param with Tomcat4.0

2001-02-26 Thread S Ramakrishnan

I am afraid I do not understand. Why are the two correlated? 
Unless I am mistaken, servlet mapping is for 
arriving at compact URLs for user convenience.

Why is this mandatory in order to specify 
init-parm's?

Thanks,

Rk
x77309

On Mon, 26 Feb 2001 10:58:44  
 Craig R. McClanahan wrote:


S Ramakrishnan wrote:

 Environment:
   Tomcat 4.0 on NT4.0
   Browser: IE5.5

 Problem:
   I am unable to get init-param to work.
   In my web.xml I have
servlet
 servlet-nameQuote/servlet-name
 servlet-classQuote/servlet-class
 init-param
   param-namequotesFile/param-name
   param-valuequotes.txt/param-value
 /init-param
   /servlet

 The ServletContext in init() fetches null for
 init-param "quotesFile". (I've tried restrating catalina).


For this to be recognized, you need to do two more things:

* Establish a servlet mapping for your servlet:

servlet-mapping
servlet-nameQuote/servlet-name
url-pattern/quote/url-pattern
/servlet-mapping

* Use this mapping in the URL that requests the servlet:

http://localhost:8080/myapp/quote

where "/myapp" is the context path of your web application.


 Could someone please give me an example of
 storing and using resources (say, Files) in my
 web application? I am not sure if I should put the file
 in thge root of the web app or in the classes directory.

 Thanks,

 Rk
 x77309


Craig McClanahan

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




Get your small business started at Lycos Small Business at 
http://www.lycos.com/business/mail.html

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




Tomcat running inprocess with Netscape 3.62 webserver.

2001-02-26 Thread prasad . moganna

Hi guys,

I am trying to set up tomcat to run inside the Netscape's webserver process.
Using Netscape Enterprise Server 3.62

I followed all the steps mentioned in the documentation to run tomcat inside
the webserver
process. Downloaded the jni_connect.dll, changed the server.xml and
worker.properties file
as mentioned.

But when I try to start tomcat using the command "tomcat run" from the bin
dir,
it gives a null pointer exception.


***
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /examples )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /firstJSP.jsp )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.class )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.java )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx(  )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /test )
Failed to loadLibrary()
d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni
_connect.dll
Library d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni_connect.dll
loa
ded
FATAL:java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.service.JNIEndpointConnector.start(JNIEndpointConne
ctor.java:110)
at org.apache.tomcat.core.ContextManager.start(ContextManager.java,
Comp
iled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)



*

I searched the archive, but still couldn't find any answer to this.
Am I missing something here? Many thanks for any feedback on this 

 
Thanks,
Prasad M



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




RE: Tomcat running inprocess with Netscape 3.62 webserver.

2001-02-26 Thread Adam Fowler

Hi,

Should it be looking under the d:\struts directory? I thought struts was
another jakarta project?

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: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 4:31 PM
To: [EMAIL PROTECTED]
Subject: Tomcat running inprocess with Netscape 3.62 webserver.


Hi guys,

I am trying to set up tomcat to run inside the Netscape's webserver process.
Using Netscape Enterprise Server 3.62

I followed all the steps mentioned in the documentation to run tomcat inside
the webserver
process. Downloaded the jni_connect.dll, changed the server.xml and
worker.properties file
as mentioned.

But when I try to start tomcat using the command "tomcat run" from the bin
dir,
it gives a null pointer exception.


***
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /examples )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /admin )
Starting tomcat. Check logs/tomcat.log for error messages
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /firstJSP.jsp )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.class )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.java )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx(  )
2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /test )
Failed to loadLibrary()
d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni
_connect.dll
Library d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni_connect.dll
loa
ded
FATAL:java.lang.NullPointerException
java.lang.NullPointerException
at
org.apache.tomcat.service.JNIEndpointConnector.start(JNIEndpointConne
ctor.java:110)
at org.apache.tomcat.core.ContextManager.start(ContextManager.java,
Comp
iled Code)
at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)



*

I searched the archive, but still couldn't find any answer to this.
Am I missing something here? Many thanks for any feedback on this


Thanks,
Prasad M



-
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: Connecting to a servlet from within an applet

2001-02-26 Thread Randy Layman


I've found it easire to simply pass the session ID as a parameter,
and then in my servlet receive it back and use the
HttpSessionContext.getSession(sessionID).  I find it easier than messing
with the cookies.

Randy


-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:23 PM
To: [EMAIL PROTECTED]
Subject: RE: Connecting to a servlet from within an applet


   You simply need to make a request.  It depends upon what you are
trying to do.  A GET or POST request can be made by 
URLConnection fairly
easily.  If you are looking for a session, you have to pass 
the session id
back (the applet doesn't know about the cookies of the browser 
its running
in without some help from JavaScript).

   There is no Tomcat (or any web server for that matter) specific
stuff you need to do.


And you have to code the cookies support to allow the servlet track
your sessionid ;-)

-
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: Connecting to a servlet from within an applet

2001-02-26 Thread GOMEZ Henri

   I've found it easire to simply pass the session ID as a 
parameter,
and then in my servlet receive it back and use the
HttpSessionContext.getSession(sessionID).  I find it easier 
than messing
with the cookies.


Yes but how did mod_jk will find and use it this way ?

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




Re: init-param with Tomcat4.0

2001-02-26 Thread Bo Xu

S Ramakrishnan wrote:

 I am afraid I do not understand. Why are the two correlated?
 Unless I am mistaken, servlet mapping is for
 arriving at compact URLs for user convenience.

 Why is this mandatory in order to specify
 init-parm's?

 Thanks,

 Rk
 x77309

 On Mon, 26 Feb 2001 10:58:44
  Craig R. McClanahan wrote:
 
 
 S Ramakrishnan wrote:
 
  Environment:
Tomcat 4.0 on NT4.0
Browser: IE5.5
 
  Problem:
I am unable to get init-param to work.
In my web.xml I have
 servlet
  servlet-nameQuote/servlet-name
  servlet-classQuote/servlet-class
  init-param
param-namequotesFile/param-name
param-valuequotes.txt/param-value
  /init-param
/servlet
 
  The ServletContext in init() fetches null for
  init-param "quotesFile". (I've tried restrating catalina).
 
 
 For this to be recognized, you need to do two more things:
 
 * Establish a servlet mapping for your servlet:
 
 servlet-mapping
 servlet-nameQuote/servlet-name
 url-pattern/quote/url-pattern
 /servlet-mapping
 
 * Use this mapping in the URL that requests the servlet:
 
 http://localhost:8080/myapp/quote
 
 where "/myapp" is the context path of your web application.
 
 
  Could someone please give me an example of
  storing and using resources (say, Files) in my
  web application? I am not sure if I should put the file
  in thge root of the web app or in the classes directory.
 
  Thanks,
 
  Rk
  x77309
 
 
 Craig McClanahan
 [...]

Hi :-)  I am not sure,  from several emails and my understanding:
   *  every sevlet defination(servlet/servlet) will use one instance
   of MyServlet,  if we invoke MyServlet without
   servlet-mapping(servlet-mapping/servlet-mapping), it means
   now we want to use a "default" sevlet defination.

   *  every group of init-param(init-param/init-param) belong to
   one special sevlet defination(but I guess the "default" sevlet defination
   can ont has any initParameter-null).

   * from the viewing of client's invoking, how can we let Servlet container
   know that which  sevlet defination we want to use?  I guess the only
   way is use servlet-mapping(if we don't use the "default" servlet-mapping,
   i.e., we use http://host:8080/myapp/servlet/MyServlet to invoke, ,  now
   it means we want to use the "default" sevlet defination)  .

   * so I think at least servlet-mapping has two usages:
   -   for user convenience
   -   we use it to distinguish this servlet defination and that
servlet defination, Then we can distinguish this group.
of init-param and that group of init-param

*  in a short  word,  because:
- init-param  has relation with servlet defination
- servlet-mapping also has relation with servlet defination
   So  init-param has relation with servlet-mapping

   I just know it this afternoon :-)  because I use winnt40,
   and I omit the difference between "WEB-INF" and "Web-inf" :-)
   so MyServlet can not read my web.xml in "Web-inf"   :-)
   I spent several hours, and finally I correct Web-inf to
   WEB-INF...   but After modifing, in the "File Manager" of winnt40,
it Still looks like "Web-inf"...   //hahahahaha :-) :-)


Bo
Feb.26, 2001



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




JSP caching

2001-02-26 Thread Jim Miani


Hi,

I've been using Tomcat for about 2 months.
For 7 weeks and 6 days, JSP recompilation worked fabulously, no complaints.
It never cached.

Today, suddenly, everytime I want to change a class file that is called
by a JSP page, I have to *ugh* stop and restart Tomcat to get the
new class file into memory.

As you can imagine, this slows development to a crawl. NOTHING has changed
in the web server configuration. 

The only thing in the environment that _might_ have changed is the fact
that there were other users hitting the web server and running servlets
and/or applets at the same time. However, these files were totally
unrelated, so I can't believe that it has any relevance.

Can someone tell me what the hell I am doing wrong, and/or if there is
a bug, a patch, or a way to FORCE Tomcat to re-read the class files??

The setup of the class files is like so:
given webapp A
the class files are under 
$TOMCAT_HOME/webapps/A/WEB-INF/classes/com/icanon/utils
in a package com.icanon.utils

I am on Redhat Linux 6.2, Tomcat release 3.2

Thanks!

Jim





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




RE: Connecting to a servlet from within an applet

2001-02-26 Thread Randy Layman


Never thought of that - its not been a problem with my
configurations

Randy

-Original Message-
From: GOMEZ Henri [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:53 PM
To: [EMAIL PROTECTED]
Subject: RE: Connecting to a servlet from within an applet


   I've found it easire to simply pass the session ID as a 
parameter,
and then in my servlet receive it back and use the
HttpSessionContext.getSession(sessionID).  I find it easier 
than messing
with the cookies.


Yes but how did mod_jk will find and use it this way ?

-
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 running inprocess with Netscape 3.62 webserver.

2001-02-26 Thread prasad . moganna

Don't be misleaded by the name of the dir.

I wanted to use the struts framework, but for this one of the pre-requisites
was to have a servlet container, which the documentation suggested tomcat
and I went for that.

Before jumping into writing the app., I thought I would first write a simple
"HelloServlet"
and test the servlet container.

This is how my dir structure goes. Under D:\

struts
   |
   |__ Ant
   |
   |__ jakarta-struts
   |
   |__ tomcat
   |
   |__ Xalan
   |
   |__ jaxp


Thanks,
Prasad


 -Original Message-
 From: Adam Fowler [SMTP:[EMAIL PROTECTED]]
 Sent: Monday, February 26, 2001 4:50 PM
 To:   [EMAIL PROTECTED]
 Subject:  RE: Tomcat running inprocess with Netscape 3.62 webserver.
 
 Hi,
 
 Should it be looking under the d:\struts directory? I thought struts was
 another jakarta project?
 
 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: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED]]
 Sent: Monday, February 26, 2001 4:31 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat running inprocess with Netscape 3.62 webserver.
 
 
 Hi guys,
 
 I am trying to set up tomcat to run inside the Netscape's webserver
 process.
 Using Netscape Enterprise Server 3.62
 
 I followed all the steps mentioned in the documentation to run tomcat
 inside
 the webserver
 process. Downloaded the jni_connect.dll, changed the server.xml and
 worker.properties file
 as mentioned.
 
 But when I try to start tomcat using the command "tomcat run" from the bin
 dir,
 it gives a null pointer exception.
 
 **
 **
 ***
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /examples )
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /admin )
 Starting tomcat. Check logs/tomcat.log for error messages
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /firstJSP.jsp )
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.class )
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /Hello.java )
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx(  )
 2001-02-26 02:29:52 - ContextManager: Adding context Ctx( /test )
 Failed to loadLibrary()
 d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni
 _connect.dll
 Library
 d:/struts/tomcat/jakarta-tomcat-3.2.1/bin/win32/i386/jni_connect.dll
 loa
 ded
 FATAL:java.lang.NullPointerException
 java.lang.NullPointerException
 at
 org.apache.tomcat.service.JNIEndpointConnector.start(JNIEndpointConne
 ctor.java:110)
 at
 org.apache.tomcat.core.ContextManager.start(ContextManager.java,
 Comp
 iled Code)
 at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:202)
 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235)
 
 
 **
 **
 *
 
 I searched the archive, but still couldn't find any answer to this.
 Am I missing something here? Many thanks for any feedback on this
 
 
 Thanks,
 Prasad M
 
 
 
 -
 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]




mod_jk installation

2001-02-26 Thread Chris Andreou

I have installed (migrated)  from  jser_mod to jk_mod. I installed and I was
able to run the examples. My problems is when I registered a new Context
within Tomcat and try to run a simple sevlet then I get the exception
handling errors. 

The steps i followed were:
Server xml: 

Context path="/examplesb" 
 docBase="webapps/examplesb" 
 crossContext="false"
 debug="0" 
 reloadable="true"  
/Context

httpd.conf :
Alias /examplesb "E:/Tomcat/webapps/examplesb"
Directory "E:/tomcat/webapps/examplesb"
Options Indexes FollowSymLinks
/Directory
DirectoryIndex index.html 

#Configuration for examplesb
JkMount /examplesb/servlet/* ajp12
JkMount /examplesb/*.jsp ajp12

3. Create an examples directory under webapps
Create an Web-Inf directory under examplesb
Create a web.xml file with the following info: 
?xml version="1.0" encoding="ISO-8859-1"?

!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
"http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"
web-app
servlet
servlet-name
HelloWorld
/servlet-name
servlet-class
HelloWorldExample
/servlet-class
/servlet
/web-app

- Create a classes directory the Web-inf
Copy HelloWorldExample.class

Sometimes I get a response and sometimes I don't when I remove the following
files
LocalString.properties


What is the usage of files?  What process and steps should I follow once I
want to register a servlet into Tomcat? 

Thanks in advance



 LocalStrings_en.properties
 LocalStrings_es.properties
 LocalStrings.properties

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


RE: init-param with Tomcat4.0

2001-02-26 Thread S Ramakrishnan

Thanks for your note.

web.xml for my application has clearly
bound a set of init-parm's with a servlet
class. Hence the container must be able to
uniquely determine the set of initial parameters,
given a servlet class file, regardless of by what name
("default" or otherwise) the servlet is invoked.
Then why should I specify a servlet mapping?

Is this spelt out in the spec? I did not find this in
Ch13 of the 2.3 draft (I'm using Tomcat 4.0).

Rk
x77309



From: Bo Xu [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 3:06 PM



Hi :-)  I am not sure,  from several emails and my understanding:
   *  every sevlet defination(servlet/servlet) will use one instance
   of MyServlet,  if we invoke MyServlet without
   servlet-mapping(servlet-mapping/servlet-mapping), it means
   now we want to use a "default" sevlet defination.

   *  every group of init-param(init-param/init-param) belong to
   one special sevlet defination(but I guess the "default" sevlet
defination
   can ont has any initParameter-null).

   * from the viewing of client's invoking, how can we let Servlet container
   know that which  sevlet defination we want to use?  I guess the only
   way is use servlet-mapping(if we don't use the "default"
servlet-mapping,
   i.e., we use http://host:8080/myapp/servlet/MyServlet to invoke, ,
now
   it means we want to use the "default" sevlet defination)  .

   * so I think at least servlet-mapping has two usages:
   -   for user convenience
   -   we use it to distinguish this servlet defination and that
servlet defination, Then we can distinguish this group.
of init-param and that group of init-param

*  in a short  word,  because:
- init-param  has relation with servlet defination
- servlet-mapping also has relation with servlet defination
   So  init-param has relation with servlet-mapping

   I just know it this afternoon :-)  because I use winnt40,
   and I omit the difference between "WEB-INF" and "Web-inf" :-)
   so MyServlet can not read my web.xml in "Web-inf"   :-)
   I spent several hours, and finally I correct Web-inf to
   WEB-INF...   but After modifing, in the "File Manager" of winnt40,
it Still looks like "Web-inf"...   //hahahahaha :-) :-)


Bo
Feb.26, 2001



-
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: Connecting to a servlet from within an applet

2001-02-26 Thread Brett W. McCoy

On Mon, 26 Feb 2001, Randy Layman wrote:

   I've found it easire to simply pass the session ID as a parameter,
 and then in my servlet receive it back and use the
 HttpSessionContext.getSession(sessionID).  I find it easier than messing
 with the cookies.

According to the 2.2 spec of the Servlet API, HttpSessionContext is
deprecated and is going to be removed from the API.  It has been
deprecated for security reasons.

-- Brett
 http://www.chapelperilous.net/~bmccoy/
---
A man may be so much of everything that he is nothing of anything.
-- Samuel Johnson


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




Re: MySQL driver - java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver

2001-02-26 Thread RameshBabu R Muthuvel

Try the following

1) URL = "jdbc:mysql:test";
2) Add the classpath "c:\mm.mysql-2.0.2-bin.jar"  as follows:
   StartSettingsControl PanelSystemEnvironmentSystem Variables
3) Restart the computer

Try again. I got it, you too will get it.

ramesh


_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Can anyone decipher this Tomcat error?

2001-02-26 Thread Conrad Gustafson



Hello 
there,

Configuring Tomcat 
with IIS, I get an http 404 error when trying to hit http://localhost/examples/jsp/index.html. 


Do the following 
debug lines from the command prompt window mean anything to any Tomcat gurus out 
there?

I know about the 
"Socket write error" problem between IE and Tomcat. I don't know if this 
is what is happening, however, as I still get the http404 error with netscape or 
with IE after I have cleared the cache.

2001-02-26 10:22:40 
- Ctx( ): IOException in: R( + /index.html + null) Connection 
aborted by peer: socket write error2001-02-26 10:22:40 - Ctx( ): 
IOException in: R( + /tomcat-power.gif + null) Connection aborted by 
peer: socket write error2001-02-26 10:22:43 - Ctx( /examples ): IOException 
in: R( /examples + /servlets/index.html + null) Connection aborted by peer: 
socket write error2001-02-26 10:22:53 - Ctx( /examples ): IOException in: R( 
/examples + /jsp/index.html + null) Connection aborted by peer: socket write 
error2001-02-26 10:45:07 - Ctx( ): IOException in: R( + 
/index.html + null) Connection aborted by peer: socket write 
error

Furthermore, if this 
is a problem with images specifically, why can I not hit a page with no 
images? I get the same http error and isapi.log looks 
like:

[jk_isapi_plugin.c (429)]: In HttpFilterProc test 
redirection of /examples/jsp/index2.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/index2.html] 
is a servlet url - should redirect to ajp12[jk_isapi_plugin.c (461)]: 
HttpFilterProc check if [/examples/jsp/index2.html] is points to the web-inf 
directory
Other people have 
gotten Tomcat to work with iis5 on win2K, so it must be 
possible.

Thank you very 
much.

Conrad


Starting Tomcat

2001-02-26 Thread Ferdinand Enario

Hi,

I am new to tomcat. I have just installed tomcat on Linux Mandrake 7.1 with
Apache on it. I was able to configure this:
http://localhost/examples/jsp/index.html My problem now is how do I start
tomcat automatically before Apache starts (auto load on machine boot).
Please help.

Ferdinand


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




disabled cookies create a new session id

2001-02-26 Thread Guntupalli Shanti

Hi

I have seen so many people sending mails regarding the same problem but I 
didn't find a solution yet.

I am running TomCat 3.2 on Apache 1.3.12 through mod_jserv (tried mod_jk also).
As long as I enable the cookies and run my application (which is a bunch of 
servlets) I have no problem.
But when I disable cookies my servlets loose the session and I observed 
that there is new session ID
created each time the request comes in (even though through the same 
browser session). I tried this
in 3.2.1 also but no luck.  Can any one please help me??

Thanks in advance..Shanti


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




Re: disabled cookies create a new session id

2001-02-26 Thread Guntupalli Shanti

Forgot to mention I use encodeURL for all the links I have in my pages
Any ideas would be appreciated.

Thanks...Shanti
At 04:51 PM 2/26/2001 -0800, you wrote:
Hi

I have seen so many people sending mails regarding the same problem but I 
didn't find a solution yet.

I am running TomCat 3.2 on Apache 1.3.12 through mod_jserv (tried mod_jk 
also).
As long as I enable the cookies and run my application (which is a bunch 
of servlets) I have no problem.
But when I disable cookies my servlets loose the session and I observed 
that there is new session ID
created each time the request comes in (even though through the same 
browser session). I tried this
in 3.2.1 also but no luck.  Can any one please help me??

Thanks in advance..Shanti


-
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: Difficulty getting IIS to recognize additional Tomcat contexts

2001-02-26 Thread Todd Carmichael

Same problem here.  Any luck resolving the problem?

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Here's a snippet from isapi.log: (Note: "test" is the context I'm trying to
deploy)

[jk_isapi_plugin.c (452)]: HttpFilterProc [/test/] is not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/test/] is points to the
web-inf directory

server.xml
---
Context path="/test"
  docBase="webapps/test"
  crossContext="false"
  debug="0"
  reloadable="true"
  trusted="false" 
 /Context

uriworkermap.properties
--
default.worker=ajp12

/servlet/*=$(default.worker)
/*.jsp=$(default.worker)

#This context works...
/examples/*=$(default.worker)

#This doesn't!
/test/*=$(default.worker)

--Shrisha


- Original Message -
From: "Shrisha Radhakrishna" [EMAIL PROTECTED]
To: "tomcat" [EMAIL PROTECTED]
Sent: Saturday, February 24, 2001 9:43 PM
Subject: Re: Difficulty getting IIS to recognize additional Tomcat contexts


 Hmm.. I am facing the same problem!  I added my new contexts to server.xml
 and uriworker.properties...

 --Shrisha

 -Ursprngliche Nachricht-
 Von: MilitaryHire Technical Support [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 20. Februar 2001 22:58
 An: [EMAIL PROTECTED]
 Betreff: Difficulty getting IIS to recognize additional Tomcat
 contexts


 Hi,

 I have successfully instaled Tomcat and confirmed it worked
 using the
 examples.  I then used the isapi_rediredct.dll to have my IIS use
 Tomcat for
 servlets.  I confirmed that worked using the examples also.

 My problem is, I have not been able to get IIS to recognize any
 other
 contexts.  In an attempt to set up and test a new context, I copied
 the
 examples folder into a folder named "servlets" under the webapps
 directory.
 I then configured a "servlets" Tomcat context and tested it.  It
 worked
 fine.  When I then added the the context to uriworkers.properties
 and
 stopped and restarted IIS though, I was not able to access the new
 context.
 I kept getting 404 errors.  I could tell from the error format that
 it was
 being generated by IIS rather than Tomcat.  Any ideas what I might
 have done
 wrong?

 FYI, I'm using NT Workstation 4.0 SP6a, IIS 4, jdk 1.3.

 Thanks!

 Sean



 Shrisha Radhakrishna
 mailto:[EMAIL PROTECTED]
 Phone: 408.530.8530
 http://members.tripod.com/cricforum


 -
 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: Difficulty getting IIS to recognize additional Tomcat contexts

2001-02-26 Thread Shrisha Radhakrishna

Nada.  I have pulled the last strand of hair off my bald colleague's head.

--Shrisha

- Original Message -
From: "Todd Carmichael" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:01 PM
Subject: RE: Difficulty getting IIS to recognize additional Tomcat contexts


Same problem here.  Any luck resolving the problem?

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Here's a snippet from isapi.log: (Note: "test" is the context I'm trying to
deploy)

[jk_isapi_plugin.c (452)]: HttpFilterProc [/test/] is not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/test/] is points to the
web-inf directory

server.xml
---
Context path="/test"
  docBase="webapps/test"
  crossContext="false"
  debug="0"
  reloadable="true"
  trusted="false" 
 /Context

uriworkermap.properties
--
default.worker=ajp12

/servlet/*=$(default.worker)
/*.jsp=$(default.worker)

#This context works...
/examples/*=$(default.worker)

#This doesn't!
/test/*=$(default.worker)

--Shrisha


- Original Message -
From: "Shrisha Radhakrishna" [EMAIL PROTECTED]
To: "tomcat" [EMAIL PROTECTED]
Sent: Saturday, February 24, 2001 9:43 PM
Subject: Re: Difficulty getting IIS to recognize additional Tomcat contexts


 Hmm.. I am facing the same problem!  I added my new contexts to server.xml
 and uriworker.properties...

 --Shrisha

 -Ursprngliche Nachricht-
 Von: MilitaryHire Technical Support [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 20. Februar 2001 22:58
 An: [EMAIL PROTECTED]
 Betreff: Difficulty getting IIS to recognize additional Tomcat
 contexts


 Hi,

 I have successfully instaled Tomcat and confirmed it worked
 using the
 examples.  I then used the isapi_rediredct.dll to have my IIS use
 Tomcat for
 servlets.  I confirmed that worked using the examples also.

 My problem is, I have not been able to get IIS to recognize any
 other
 contexts.  In an attempt to set up and test a new context, I copied
 the
 examples folder into a folder named "servlets" under the webapps
 directory.
 I then configured a "servlets" Tomcat context and tested it.  It
 worked
 fine.  When I then added the the context to uriworkers.properties
 and
 stopped and restarted IIS though, I was not able to access the new
 context.
 I kept getting 404 errors.  I could tell from the error format that
 it was
 being generated by IIS rather than Tomcat.  Any ideas what I might
 have done
 wrong?

 FYI, I'm using NT Workstation 4.0 SP6a, IIS 4, jdk 1.3.

 Thanks!

 Sean



 Shrisha Radhakrishna
 mailto:[EMAIL PROTECTED]
 Phone: 408.530.8530
 http://members.tripod.com/cricforum


 -
 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: JDBCRealm

2001-02-26 Thread Craig R. McClanahan

Herchel Wojciech wrote:

 Hi!
 I've got the following problem - I want to dynamically display certain
 information to a user, depending upon a role they've been granted (via JDBC
 authorisation). how do i do that? getParameter("role") returns null.


The getParameter() method returns parameters, not roles.  You want to
use
request.isUserInRole() instead.  Example in a JSP page:

% if (request.isUserInRole("admin") { %
... stuff only admins should see ...
% } %


 vVolf


Craig McClanahan

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




Re: tc4: No processor available, rejecting this connection

2001-02-26 Thread Craig R. McClanahan

Endre Stlsvik wrote:

 On Sun, 25 Feb 2001, Craig R. McClanahan wrote:

 | Endre Stlsvik wrote:
 |
 |  My config is like this:
 | 
 |  Connector  className="org.apache.catalina.connector.http.HttpConnector"
 | port="##HTTPPORT##" minProcessors="1" maxProcessors="3"
 | acceptCount="100" debug="99" connectionTimeout="6"/
 | 
 |  This gives me lots of left out small gifs, maybe a leftout stylesheet, or
 |  the whole document.. or whatever.
 | 
 |  I realize that there's not many processors configured here, but why does
 |  it start to reject connections? It should stack them in a queue, shouldn't
 |  it? What am I doing wrong?
 |
 | The basic function of the HttpConnector class is to perform the
 | following loop over and over again:
 | * Wait for an incoming socket connection
 | * Assign it to an available processor
 |
 | When you define maxProcessors as 3, you are saying that you want Tomcat
 | to handle up to three simultaneous connections to
 | remote clients.  In an HTTP/1.0 environment, that many processors would
 | be able to handle a large number of clients if the
 | request rate was low, because each request is an individual socket
 | connection.

 Netscape (and all other browsers, I assume) opens four simultaneous
 connections (configurable), so it messes up right away.


It's not how many that Netscape opens that matters (although a page with
three
images will have problems in your scenario with maxProcessors=3).  The
real problem
is how long it *keeps* them open.


 What's "acceptCount", then?

This is a parameter of the server socket.  If the HttpConnector is busy
trying to
hand off a request to a processor, and another TCP connection request
comes in, the
request is queued up inside the operating system kernel, up to the
acceptCount.
This won't help you deal with a low maxProcessors, because that limit is
encountered
*after* the server socket connection is accepted.

 I assumed that you had three _processors_, but
 that connections was queued up untill "acceptCount" was reached.

Nope ... as above, it is a different thing.

 When a
 thread is finished doing it's task, it first checks the queue for waiting
 connections. If it finds something there, process it. If not, put yourself
 back onto the thread _stack_. (Stack is better, I think, since that thread
 was more recently in activity, and thus have is more likely to have some
 of it's memory still left in caches. Reducing context switching
 overheads.)
   Having hundred of threads might not be the correct solution for lots of
 applications. Context switching between lots of CPU bound threads is less
 efficient than just having eg. 10 threads and queueing up incoming
 requests, letting most of them finish before being preemted of their task
 a hundred times.

It is not obvious to me that I can manage pending requests better than
the OS can
manage threads.  I'm sure that is true for particular platforms, but not
so true in
general.


   There will always be a "break even" point there, where queueing will be
 slightly better than threads. And threads doesn't take up much resources,
 but still, they take a couple of bytes, right? At least this is what I
 have been thauhgt regarding threads (or processes as in Apache) vs. "event
 handling"/queueing. And I feel it makes at least a bit of sense? "Manual
 context switching".. ;)

 Also, as I've been ranting about before, I'd like to keep the thread count
 as low as possible for each tomcat, since I have about 15 tomcats running
 on one host. It's our little Linux develpment host.. I just ran out of
 processes (Linux' "thread-hack", remember?! ;), and configuring at least 8
 threads to just serve myself and maybe the occaisional co worker stopping
 by my address is a bit wasteful, I feel..


I like Linux a lot as well -- it's my standard development environment. 
But it's
thread support is, um, err, well, not up to the standards set by other
OSs yet.  For
example, check out the Volano Report data (http://www.volano.com) on how
many
threads Solaris will support quite comfortably compared to Linux.


 | In 4.0, just put your classes in WEB-INF/classes and automatic reloading
 | will recognize changes to them.  You can also use
 | the management app to request a reload of *any* webapp -- whether or not
 | it has been configured for auto reload.

 It actually doesn't work for me now. But I guess I've done some mistakes
 somewhere. But the log says something about "automatic reloading turned on
 for this context". But then I can delete and recompile every single file
 (which I most often do, jikes is just so _incredibly_ fast), and the logs
 doesn't mention this by a single word..

When you delete and recompile, these classes are in WEB-INF/classes,
right?  As the
release notes say, autoreload *only* works for classes that are stored
there, and is
only triggered if Tomcat has ever loaded one of the classes you just
changed.  It
does *not* operate for classes that are 

Re: tc4: catalina.home vs catalina.install

2001-02-26 Thread Craig R. McClanahan

Endre Stlsvik wrote:

 On Sun, 25 Feb 2001, Craig R. McClanahan wrote:

 | Endre Stlsvik wrote:
 |
 |  Hi!
 | 
 |  It kind of seems to me that there is some "inconsistency" between the
 |  catalina.home and where you actually want tomcat4 to _run_.
 | 
 |  I have a bunch of "installations" for my gang of developers, and each
 |  developer have a complete env. to develop in.
 | 
 |  But how do I configure, "say to", catalina that "this is where you're
 |  installed, and thus where you can find your code and stuff", and "this is
 |  where you're supposed to run, this is your _home_"..
 | 
 |
 | Right now, Tomcat 4.0 does not have a clear distinction between these
 | two concepts -- the best way to deal with multiple developers would be
 | to have multiple installations of Tomcat, each with their own
 | "catalina.home".

 Will there be such a distinction soon?! At least I feel it's clearly a
 needed option! :)


Well, one could always submit a patch to make it so :-)  That's usually
the
quickest way to get your own itch scratched.


 And if so, how impossible would it be to point several tomcats to the same
 webapp? E.g. the manager-thingy? Or would I have to copy the webapp into
 each tomcat's location? I guess there could be problems with the
 generation and compilation of those JSP things.


You can use an absolute disk pathname in the docBase parameter of the
Context
entry.  As long as each Catalina instance is not sharing the same
"catalina.home"
directory (and therefore, not sharing the same work directories), this
should
work fine.


 --
 Mvh,
 Endre


Craig

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




Re: tomcat4... pretends to be tomcat3

2001-02-26 Thread Craig R. McClanahan

[EMAIL PROTECTED] wrote:

 I have removed tomcat 3.2.1 from my freebsd4.2
 machine and installed tomcat4 instead. After re-booting
 and starting the tomcat server, I still get the
 tomcat3.2.1 splash page... How can this be?!


It means one of two possible things:

* You still have 3.2.1 installed somewhere, and it is being
  accessed by mistake.

* Your browser is caching the Tomcat splash page (because
  caching happens by URL, the browser has no idea that
  http://localhost:8080/index.html does not come from the
  same server now).  Trying clearing your browser cache.


 Mike


Craig

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




Re: using tomcat 4 - Newbie

2001-02-26 Thread Craig R. McClanahan

David Treves wrote:

 Hi there,

 I am trying to implement the "HttpSessionActivationListener" interface,
 but my compiler doesnt recognize it, what should I do about it?


Because this interface was added in the servlet 2.3 API classes, you
need to
make sure that the servlet.jar file that came with Tomcat 4.0 is on your
compiler classpath, rather than any older version that you have.


 Thanks,
 David.


Craig McClanahan

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




Re: Case Sensitivity

2001-02-26 Thread Craig R. McClanahan

"Bilodeau, David" wrote:

 Our Intranet developers are using Tomcat for an internal site.

 We have just upgraded from 3.1 to 3.2.

 Now, many of our hyperlinks are case sensitive whereas before they seemed to
 be case insensitive.

 I'm just asking this question on behalf of the content owners because
 although I administer the NT box where Tomcat runs I don't own the site
 itself.

 Can we configure Tomcat 3.2 to be case-insensitive?


No, you can't ... case insensitive-ness causes security holes (this was
a major
reason for the 3.1.1 and 3.2.1 security udpates).  In the HTTP specs, it
states
that URLs "SHOULD" be case sensitive, so the servlet spec adopts this
convention.  It will also be made explicit in the servlet 2.3 spec.


 Regards,

 David Bilodeau

Craig McClanahan

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




Re: JNI shared libraries and wars

2001-02-26 Thread Craig R. McClanahan

Nick Christopher wrote:

 My web app uses some JNI code.  Currently I've put the shared library
 into $TOMCAT_HOME/lib and added that directory to LD_LIBRARY_PATH.

 I'd like something more elegant and that worked on Un*x and Windoze.
 I'd love to get it into the war file.


Unfortunately, native code is, by its very nature, platform specific.
There is no support for it inside the WAR file architecture, which is
supposed to be platfom independent.  In that way, it avoids all the
issues of deciding "which native code module works on the current
platform" and "how do I add this native code module to the path seen by
my OS".


 Is there a right way to do this or any better suggestions?


Sounds like you are doing the only practical thing.

Craig

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




problems with apache and formbased sec?

2001-02-26 Thread John de la Garza

Are there any major problems with formbased security when running apache and
tomcat?


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




Tomcat .vs. jspGNU

2001-02-26 Thread kunwar

hi all

I'm a student who has to do a project (customer portal)using JSP and Oracle8 on a 
redhat 6i Intel machine.

The problem is that the client has reffered two options:
1. Tomcat
2. jspGNU

and we have to use whichever is the best for the job. If anyone can help with answers 
or websites, please do so. I will be greatful.

thanks
KUNWAR


__
Get your FREE personalized e-mail at http://www.canada.com

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




RE: Difficulty getting IIS to recognize additional Tomcat contexts

2001-02-26 Thread Craig O'Brien

Hello,

Why don't you guys just try simplifying things and dropping the variable.

My config files look like yours but I'm not using variables.  Mine works
fine with tomcat 3.2 on IIS.  Perhaps too much perl??


/test/*=ajp12


Worth a try, only takes 2 minutes.  Also try dropping the "trusted" field
for fun if that doesn't work.

Good luck,
Craig

PS that hair is precious.

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 26, 2001 5:28 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Nada.  I have pulled the last strand of hair off my bald colleague's head.

--Shrisha

- Original Message -
From: "Todd Carmichael" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Monday, February 26, 2001 5:01 PM
Subject: RE: Difficulty getting IIS to recognize additional Tomcat contexts


Same problem here.  Any luck resolving the problem?

-Original Message-
From: Shrisha Radhakrishna [mailto:[EMAIL PROTECTED]]
Sent: Saturday, February 24, 2001 10:06 PM
To: [EMAIL PROTECTED]
Subject: Re: Difficulty getting IIS to recognize additional Tomcat
contexts


Here's a snippet from isapi.log: (Note: "test" is the context I'm trying to
deploy)

[jk_isapi_plugin.c (452)]: HttpFilterProc [/test/] is not a servlet url
[jk_isapi_plugin.c (461)]: HttpFilterProc check if [/test/] is points to the
web-inf directory

server.xml
---
Context path="/test"
  docBase="webapps/test"
  crossContext="false"
  debug="0"
  reloadable="true"
  trusted="false" 
 /Context

uriworkermap.properties
--
default.worker=ajp12

/servlet/*=$(default.worker)
/*.jsp=$(default.worker)

#This context works...
/examples/*=$(default.worker)

#This doesn't!
/test/*=$(default.worker)

--Shrisha


- Original Message -
From: "Shrisha Radhakrishna" [EMAIL PROTECTED]
To: "tomcat" [EMAIL PROTECTED]
Sent: Saturday, February 24, 2001 9:43 PM
Subject: Re: Difficulty getting IIS to recognize additional Tomcat contexts


 Hmm.. I am facing the same problem!  I added my new contexts to server.xml
 and uriworker.properties...

 --Shrisha

 -Ursprngliche Nachricht-
 Von: MilitaryHire Technical Support [mailto:[EMAIL PROTECTED]]
 Gesendet: Dienstag, 20. Februar 2001 22:58
 An: [EMAIL PROTECTED]
 Betreff: Difficulty getting IIS to recognize additional Tomcat
 contexts


 Hi,

 I have successfully instaled Tomcat and confirmed it worked
 using the
 examples.  I then used the isapi_rediredct.dll to have my IIS use
 Tomcat for
 servlets.  I confirmed that worked using the examples also.

 My problem is, I have not been able to get IIS to recognize any
 other
 contexts.  In an attempt to set up and test a new context, I copied
 the
 examples folder into a folder named "servlets" under the webapps
 directory.
 I then configured a "servlets" Tomcat context and tested it.  It
 worked
 fine.  When I then added the the context to uriworkers.properties
 and
 stopped and restarted IIS though, I was not able to access the new
 context.
 I kept getting 404 errors.  I could tell from the error format that
 it was
 being generated by IIS rather than Tomcat.  Any ideas what I might
 have done
 wrong?

 FYI, I'm using NT Workstation 4.0 SP6a, IIS 4, jdk 1.3.

 Thanks!

 Sean



 Shrisha Radhakrishna
 mailto:[EMAIL PROTECTED]
 Phone: 408.530.8530
 http://members.tripod.com/cricforum


 -
 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]




Re: init-param with Tomcat4.0

2001-02-26 Thread Craig R. McClanahan

S Ramakrishnan wrote:

 Thanks for your note.

 web.xml for my application has clearly
 bound a set of init-parm's with a servlet
 class. Hence the container must be able to
 uniquely determine the set of initial parameters,
 given a servlet class file, regardless of by what name
 ("default" or otherwise) the servlet is invoked.
 Then why should I specify a servlet mapping?


The reasoning on why this is necessary goes like this:

* Servlet initialization parameters are defined for a particular
  servlet *definition*, not a particular servlet class.  It is entirely
  legal to have more than one servlet definition that uses
  the same class, but they will see different init parameters.

* In order for the container to know which servlet definition
  to use for selecting the servlet to be loaded, it matches
  the request URI against the available servlet-mapping
  entries.  Without any mappings, no such servlet definition
  will ever be selected.

* Some servlet containers let you invoke "anonymous" servlets
  by using a request URI of "/servlet/{classname}.  However, this
  feature is *not* defined in the servlet spec, and is *not* portable.


It sounds like you might do better with an alternative strategy:

* Use context initialization parameters instead.

* Name your context initialization parameters with names that
  begin with the classname of a servlet.

* Use the getServletContext().getInitParameter() method
  to read these parameters.


 Is this spelt out in the spec? I did not find this in
 Ch13 of the 2.3 draft (I'm using Tomcat 4.0).


The particulars discussed above are in Chapters 2, 3, and 11.  Be sure that you
pay attention to all of the spec's requirements, not just the deployment
descriptor.


 Rk
 x77309


Craig McClanahan



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




Progress in JSP/Servlet

2001-02-26 Thread Parayali, Jayesh 1065
Title: Progress in JSP/Servlet





Hi,


I need to show a text message while a jsp/servlet is doing some work.
If I use out.flush() or response.flushBuffer(), I can not use sendRedirect since the Response has already been committed

Any help is appreciated.


Thanks,
Jayesh





use of servlet tag in the apache/tomcat

2001-02-26 Thread KAPIL SHUKLA



Dear friends
   I  am trying to 
migrate from java web server to apache/tomacat.problem is this that
,site   uses servlet/servlet tag extensively,in its shtml pages.
these servlets are not executed properly on the apache/tomcat.
any work around
kapil



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




Tomcat 3.2.1 mod_jk binaries for Solaris 8/SPARC and Linux (non-EAPI)

2001-02-26 Thread Jones, Stephen

Okay, I can't zip the non-EAPI ones small enough... (the group only takes
100k mesgs)

Email me if you actually want them and don't find me annoying...

Steve

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




Tomcat 3.2.1 mod_jk binaries for Solaris 8/SPARC and Linux (EAPI)

2001-02-26 Thread Jones, Stephen


Since my company is attempting to redistribute mod_jk in binary format to
simplify installing our web product, I compiled these versions of mod_jk for
SSL-enabled (EAPI) Apache 1.3.17.

The attached tarball includes:
mod_jk_bin/mod_ssl/linux-i386/mod_jk.so
mod_jk_bin/mod_ssl/solaris8-sparc/mod_jk.so

These were all made from the Tomcat 3.2.1 mod_jk source.

I am e-mailing them out for two reasons:
* to verify that they work
* to contribute the binaries to the Tomcat 3.2.1 binary
distribution, if they're wanted

Please let me know how it fares if you try any of them

Thanks,
Steve


 mod_jk_ssl.tar.gz

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


[ANNOUNCEMENT] Tomcat 3.2.2 beta 1 released

2001-02-26 Thread Marc Saegesser

I am pleased to announce that the Tomcat 3.2.2 beta 1 release is now
available for download at

http://jakarta.apache.org/builds/tomcat/release/v3.2.2-beta-1

Tomcat 3.2.2 contains bug fixes collected since the release of Tomcat 3.2.1.
The bugs known to be fixed in this release are listed in the RELEASE-NOTES
file.

Please download this release and give it a try in your environment.  If no
more critical bugs are found, this will become the basis for the final
release of Tomcat 3.2.2 in approximately two weeks.


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