ContextManager error after upgrading to 3.2

2000-12-28 Thread Jørgen Ramskov

I just try posting again, last time I didn't get any answers...
I've just upgraded to Tomcat 3.2 (from 3.1) and now I sometimes gets
this error:

=== Cut ===
- ContextManager: Error reading request, ignored -
java.lang.NullPointerException
at
org.apache.tomcat.core.ContextManager.handleError(ContextManager.java:1099)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:80
0)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Unknown Source)
=== Cut ===

I'm running Tomcat alone, that is, Apache isn't installed, only
Tomcat, because I only need support for servlets.

I haven't made much changes to server.xml (only added SSL).

My application still runs fine, but it would be nice to know why the
error occurs?


Greetings
Joergen Ramskov
  

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




bean Constructor

2000-12-28 Thread Deepak C S


 Hi ,

Im using a Bean with scope="session" as follows.



I am using the same bean in many JSP pages.

The Bean has a constructor which I expect to be called Only once for a
session created.

But the Constructor is getting called for each JSP page I access.Im also
using same 'id' value (in useBean tag) in all jsp pages.

Im using tomcat3.2.1. Can anybody clarify ..where the Problem is??

thanx in adv,
deeps



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




always a download dialogbox opened.

2000-12-28 Thread Zhao NaiQi



Hello,i have allready installed Tomcat 3.2 
with IIS5.0 on my machine using Windows 2000 professional. also i 
have set the ISAPI filters in IIS (using isapi_redirect.dll from 
jakarta.apache.org). It's working very well (.html, .asp and .jsp files). but 
the .isa (IIS ISAPI file, we created it using VC++6.0 ISAPI Extension Wizard) 
file is not working. always a download dialogbox opened. does the ISAPI 
file conflict with Tomcat 3.2? does anyone know how to solve this 
problem? 
 
I need help! 
 
Zhao Nai Qi DAIICHI Media Pte 
Ltd21 Kim Keat Road, #04-01Singapore 328805 Fax: (65) 
256-5922[EMAIL PROTECTED]http://www.daiichimedia.comhttp://www.moreatonce.com


Re: 403 forbidden in tomcat-apache

2000-12-28 Thread Parvez

thanks,

i got the mod_jk.so working now on my machine.
but somehow i cannot get it working on the other machine.
on my machine i have ...
1. apache user parvez:parvez
2. permisions to htdocs -> parvez:parvez
3. permissions to jsp/servlets -> parvez:parvez
and it works

but on the other machine
1. apache user nobody:nobody
2. permisions to htdocs -> admin:admin
3. permissions to jsp/servlets -> admin:admin
and apache gives and error ..."403 Forbidden"

where am i going wrong...
also do i have to start tomcat as root.

parvez


And Then  NSB)Hiroshi Kasamatsu wrote . 
 
> There seems to be no mod_jk.so for Tomcat3.2.1.
> If you do'nt mind,better to use Tomcat3.2 beta version.
> 
> You cannot access directly.
> 
> You try like this.
> 1.access to http://jakarta.apache.org/
> 2.click Binaries on Download area
> 3.click Tomcat3.x on Nightly Builds
> 4.click Parent Directory
> 5.click arcihves/
> 6.click link you want
> 7.click bin/
> 8.click linux for linux or win32 for windows
> 9.click i386
> 10.click mod_jk.so
> 
> 
> Parvez wrote:
> 
> > i cannot find /src/native/apache to compile mod_jk.so
> > i have looked into tomcat 3.2.1 distribution, everywhere.
> > where can i find it.
> > parvez
> >
> > And Then  NSB)Hiroshi Kasamatsu wrote .
> >
> > > For tomcat 3.2 or up,mod_jk.so is needed.You should download, copy it into your
> > > apache directory/libexec and include "your apache 
>directory/conf/mod_jk.conf-auto"
> > > into the last line of httpd.conf.The latter is automatically created when Tomcat 
>is
> > > exclusively initiated on port 8080.
> > > To check,http://localhost/examples is pointed to browser.In Tomcat and 
>apache,port
> > > 8080 is't used.
> > >
> > >
> > > Parvez wrote:
> > >
> > > > hi,
> > > >
> > > > i have installed tomcat 3.2.1, with apache 1.3.12 on a linux machine.
> > > > it works perfectly fine on port 8080, but when i include it with
> > > > apache conf (i.e. tomcat-apache.conf) and try to access the same jsp/servlet
> > > > file, it gives 403 forbidden error.
> > > > my http user in apache is "nobody:nobody" and my htdocs is conrolled by 
>"admin".
> > > > can someone tell me, where the problem is?
> > > > thanks in advance.
> > > >
> > > > parvez

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




Pl clear this

2000-12-28 Thread Narayanan




  
   
     Hi  All 
     I  have downloaded the latest 
  version of tomcat and using tha t.
    1. Is this the licensed  Version .?
    2. is there any Enterprise Vesion that has to be 
  purchased . ?
    3. How many Users this will support ?.
    Pl if i get the answers for this it will be very 
  useful.
   Thanks in advanvce..New Year Wishes to 
  all.
   
   
    


Re: unsubscribe me please

2000-12-28 Thread James Duncan Davidson

On 12/28/00 9:26 PM, "andyjee" <[EMAIL PROTECTED]> wrote:

> wrong email address sent!

Huh?

-- 
James Duncan Davidson[EMAIL PROTECTED]
  !try; do()


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




Should i register ALL sevlets in my WEB-INF/web.xml

2000-12-28 Thread Maxim Unger

Hi ALL!
Can anyone help me with simple question

Should i register ALL sevlets in my WEB-INF/web.xml

or there is any other simple way to register all of them , or
not
register them at all ?

Thank you !!
p.s tomcat 3.2.1 + apache(mod_jk)



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




Should i register ALL sevlets in my WEB-INF/web.xml

2000-12-28 Thread Maxim Unger

Hello andyjee,

Friday, December 29, 2000, 8:26:39 AM, you wrote:

a> wrong email address sent!
a> - Original Message -
a> From: James Duncan Davidson <[EMAIL PROTECTED]>
a> To: <[EMAIL PROTECTED]>
a> Sent: Thursday, December 28, 2000 11:47 PM
Hi ALL!
Can anyone help me with simple question

Should i register ALL sevlets in my WEB-INF/web.xml

or there is any other simple way to register all of them , or not
register them at all ?

Thank you !!
p.s tomcat 3.2.1 + apache(mod_jk)



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




Re: unsubscribe me please

2000-12-28 Thread andyjee

wrong email address sent!
- Original Message -
From: James Duncan Davidson <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 11:47 PM
Subject: Re: unsubscribe me please


> On 12/28/00 7:08 PM, "Kunal Mehta" <[EMAIL PROTECTED]> wrote:
>
> > unsubscribe
>
> Send email to [EMAIL PROTECTED]
>
> --
> James Duncan Davidson
[EMAIL PROTECTED]
>   !try;
do()
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
>


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




Tomcat and IIS

2000-12-28 Thread PinLee_Su

Hi Mr. Tomcat,
 I am just installing tomcat into my Win2000 machine. and follow the
installation guide as provided. However, I can't get it up and running. My
question is does Tomcat run under IIS 5.0/Win2000 platform?

thanks and best regards,spl


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




Re: unsubscribe me please

2000-12-28 Thread James Duncan Davidson

On 12/28/00 7:08 PM, "Kunal Mehta" <[EMAIL PROTECTED]> wrote:

> unsubscribe

Send email to [EMAIL PROTECTED]

-- 
James Duncan Davidson[EMAIL PROTECTED]
  !try; do()


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




jwma

2000-12-28 Thread Rian Schmidt

Hi all,

OK, I admit it, this is peripheral to tomcat, sort of...

But I've been trying to load up jwma (the Model 2 webmail thang), and
I've been getting this
cannot load servlet name: jwma
message at startup.  And nothing else... makes it a little hard to
debug...

The context exists under /admin and the jsp's compile OK.  All else is
fine with tomcat.

So, the general question is:
Where do I look when tomcat.log and server.log are empty?  Is there any
way to debug this "deployment" problem beyond the above message, or do I
need to get my fingers into the source (not sure I have the energy for
that)?

The specific-- just on the off chance type-- question is:
Has anyone had any experience with jwma?  Any thoughts?

The environment here is:
tomcat 3.2.1, jdk1.3, linux 2.4

Thanks for any help,
Rian

-- [EMAIL PROTECTED]






unsubscribe me please

2000-12-28 Thread Kunal Mehta

unsubscribe


__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



Tell me how to config Apache with DSO?

2000-12-28 Thread NSB)Hiroshi Kasamatsu
I had an error in command of./apachectl configtest:
API module structure 'jk_module' in file
/usr/local/apache_1.3.12/libexec/mod_jk.so is garbled-
perhaps this is not an Apache module DSO?

I want to cooperate Tomcat3.2 beta 8 with apache 1,3.12.
I copied mod_jk.so into apache_1.3.12/libexec and append "Include
/usr/local/jakarta-tomcat/conf/mod_jk.conf-auto" into httpd.conf.

Apache is compiled with ./configure --enable-rule=SHARED_CORE
--enable-module=so.
Does not this work?

Thanks in advance.
Hiroshi Kasamatsu


Re: Need help with isapi_redirect.dll and PWS

2000-12-28 Thread Mohammed Nasr Shalaby

Please tell me what do you write in your browser when you try to test it

"Hawkins, Keith (Keith)" wrote:

> Hello,
> I have been struggling with getting the isapi_redirect.dll to work with
> IIS/PWS.
> I have checked and rechecked the steps specified in the Tomcat IIS HowTo
> document by Gal Shachor.
>
> I keep getting 404-Not Found errors even though the redirector is
> recognizing the URL as one
> that matches the set of URLs it should handle.
>
> The entries in the PWS log file look as follows:
> 14:54:50 127.0.0.1 GET +/jakarta/isapi_redirect.dll 404
> 14:55:14 192.11.221.102 GET +/jakarta/isapi_redirect.dll 404
> 14:58:20 192.11.221.101 GET +/jakarta/isapi_redirect.dll 404
> 15:20:06 192.11.221.101 GET +/jakarta/isapi_redirect.dll 404
>
> The entries from the isapi.log file look as follows:
>
> [jk_isapi_plugin.c (408)]: HttpFilterProc started
> [jk_isapi_plugin.c (429)]: In HttpFilterProc test redirection of
> /examples/jsp/index.html
> [jk_uri_worker_map.c (344)]: Into
> jk_uri_worker_map_t::map_uri_to_worker
> [jk_uri_worker_map.c (406)]: jk_uri_worker_map_t::map_uri_to_worker,
> Found a match ajp12
> [jk_isapi_plugin.c (439)]: HttpFilterProc [/examples/jsp/index.html]
> is a servlet url - should redirect to ajp12
> [jk_isapi_plugin.c (461)]: HttpFilterProc check if
> [/examples/jsp/index.html] is points to the web-inf directory
>
> So it looks like the filter recognizes the URL as one that it should
> process, but the ajp12 worker never
> seems to get contacted.   The 404 error is returned right away.
>
> The Tomcat process seems to be running fine since I can successfully access
> the sample jsp pages using
> localhost:8080
>
> The breakdown seems to be in getting the redirection to the ajp12 worker on
> port 8007 and back
> to the PWS server when PWS is used as the web server.
>
> Any help would be greatly appreciated.
>
> Thanks,
> Keith





anyone using ajp13 protocol with mod_jk?

2000-12-28 Thread William Au

Is anyone actually using the ajp13 protocol with mod_jk?
I tried it but had to switch back to ajp12.  It seems faster
but less reliable.  I am getting the following error messages
in mod_jk.log.  All these messages occur multiple
times.  They only occur when I use the ajp13 protocol.

In mod_jk.log:

[jk_connect.c (143)]: jk_open_socket, connect() failed errno = 145
[jk_ajp13_worker.c (173)]: In jk_endpoint_t::connect_to_tomcat, failed
errno = 145
[jk_ajp13_worker.c (584)]: Error connecting to the Tomcat process.
[jk_ajp13_worker.c (325)]: Error ajp13_process_callback - write failed

In tomcat.log:

2000-12-28 04:04:07 - Ctx( /examples ): Exception in: R( /examples +
/10k.jsp + null) - java.lang.NullPointerException
at _0002f_00031_00030k_0002ejsp10k_jsp_0._jspService(Compiled
Code)
at org.apache.jasper.runtime.HttpJspBase.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(Compiled
Code)
at org.apache.jasper.servlet.JspServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.doService(Compiled
Code)
at org.apache.tomcat.core.Handler.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.service(Compiled Code)
at
org.apache.tomcat.core.ContextManager.internalService(Compiled Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp13ConnectionHandler.processConnection(Compiled
Code)
at org.apache.tomcat.service.TcpWorkerThread.runIt(Compiled
Code)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled Code)
at java.lang.Thread.run(Compiled Code)


Bill




netscape timing out

2000-12-28 Thread Parayali, Jayesh 1065
Title: netscape timing out





I am using tomcat 3.2.1 release build on winnt4.0


when I use jsp:forward, IE works fine.Netscape gets timed out.


<%
str1 = "myPage.jsp";
str1 = response.encodeURL(str1);
%>




Any idea?


Thanks,
Jayesh





Jakarta NT service...

2000-12-28 Thread Julka, Bobby

Hi,

My TOMCAT_HOME has a directory path c:\Program Files\Apache
Group\jakarta-tomcat3.2.1

As the directory path has spaces, I specified the path as "c:\Program
Files\Apache Group\jakarta-tomcat3.2.1" for wrapper.tomcat_home in
wrapper.properties. This seems to be a bug. Not using quotes obviously does
not work.

Thanks,

-bobby


___
Bobby Julka
Xqsite Inc. (Divine InterVentures)
Phone: (630) 799 1501 x34152
Fax: (630) 799 7514
Email: [EMAIL PROTECTED] 



ExceptionInInitializerError on loading Servlet

2000-12-28 Thread Ritwick Dhar

Has anyone seen this one before?
I have a servlet that's being loaded from a jar in the classpath. All the
other jars needed for the servlet to run (jdbc etc) are also in the
classpath. Note, this is not a webapp - the classes are in the system
classpath. Tomcat loads fine, and displays the proper classpath on startup.
But when I access the servlet, it gives the following error. I have a
feeling this has got something to do with the classpath, because when I
changed the order of the jars it worked wonce. Unfortunately, I don't
remember what the order was. Anyway, the order of the jars in the classpath
shouldn't matter, should it?

The same setup runs fine on another box running JRun.

Context log: path="" Error in invoker service() : null
 java.lang.ExceptionInInitializerError
at java.lang.Throwable.(Compiled Code)
at java.lang.Error.(Compiled Code)
at java.lang.LinkageError.(Compiled Code)
at java.lang.ExceptionInInitializerError.(Compiled Code)
at java.lang.ClassLoader.resolveClass(Compiled Code)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadSystemClass(Compiled Code)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled
Code)
at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Compiled
Code)
at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.run(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)
Context log: path="" Internal Servlet Error:

java.lang.ExceptionInInitializerError
at java.lang.Throwable.(Compiled Code)
at java.lang.Error.(Compiled Code)
at java.lang.LinkageError.(Compiled Code)
at java.lang.ExceptionInInitializerError.(Compiled Code)
at java.lang.ClassLoader.resolveClass(Compiled Code)
at
org.apache.tomcat.loader.AdaptiveClassLoader.loadSystemClass(Compiled Code)
at org.apache.tomcat.loader.AdaptiveClassLoader.loadClass(Compiled
Code)
at org.apache.tomcat.loader.AdaptiveServletLoader.loadClass(Compiled
Code)
at org.apache.tomcat.core.ServletWrapper.initServlet(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.servlets.InvokerServlet.service(Compiled Code)
at javax.servlet.http.HttpServlet.service(Compiled Code)
at org.apache.tomcat.core.ServletWrapper.handleRequest(Compiled
Code)
at org.apache.tomcat.core.ContextManager.service(Compiled Code)
at
org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection
(Compiled Code)
at org.apache.tomcat.service.TcpWorkerThread.run(Compiled Code)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(Compiled
Code)
at java.lang.Thread.run(Compiled Code)




Solved : Init() being called 3 times

2000-12-28 Thread Shahed Ali

Thanks for all the help.
My problem was that I had entiries in my server.xml which caused the same 
directory to be loaded, but under seprate contexts.


When I checked the jasper.log or tomcat.log, I saw what was going on.

Thanks
Shahed.




Re: mm JDBC driver

2000-12-28 Thread Mark Koscak

On my system I added the classpath to my mm.mysql installation directory or
/usr/local/mm.mysql.jdbc-1.2c  This was enough to give me access to my
database.

Here is some sample code that you can modify to retrive data from your
database.

import java.sql.*;
import java.io.*;

public class newjavadb
{

public static void main( String [ ] args )
{
String username = "avaliduser";
String password = "avalidpwd";
String url = "jdbc:mysql://domain.com.au/databasename";
String queryString = "SELECT ves_ref FROM
lbs_web_ves_sched";
int count = 0;
// Load the driver
try
{

Class.forName("org.gjt.mm.mysql.Driver").newInstance();
System.out.println("Success Driver Loaded" );
}
catch(java.lang.ClassNotFoundException e)
{
System.err.print("ClassNotFoundException: ");
System.err.println( e.getMessage() );
}
catch( Exception e )
{
System.err.print("Exception : " + e );
}

try
{
System.out.println("Inside Connection Try block" );
Connection con;
Statement stmt;
System.out.println("url is :" + url );

// Establish connection to the database
con = DriverManager.getConnection(url, username,
password);
System.out.println("Ok, connection to the DB
worked.");
System.out.println("Let's see can retrieve something
with : " +
queryString );

// Create a Statement object
stmt = con.createStatement();
// Send the query and bind the result to a set
ResultSet rs = stmt.executeQuery(queryString);
while( rs.next() )
{
count++;
String s = rs.getString("ves_ref");
System.out.println( s + "is the FIELD value.
Count is:" + count );
}

// Close resources
stmt.close();
con.close();
}// end try block
catch( SQLException ex)
{
System.err.println("==> SQLException: ");
while(ex != null)
{
System.out.println("Message:  " +
ex.getMessage() );
System.out.println("SQLState: " +
ex.getSQLState() );
System.out.println("ErrorCode: " +
ex.getErrorCode() );
ex = ex.getNextException();
System.out.println(" ");
}
}// end catch block
}// end main
}// end class newjavadb


- Original Message -
From: Shailaja Someshwar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 10:27 PM
Subject: mm JDBC driver


> Hello
>
> Where do I need to place the mm.jdbc driver for MySQL
> in tomcat directory so that its available system wide
> and all of the Apache virtual hosts.
>
> Also can someone direct me to a sample application to
> test my JDBC connection is working or not, as I do not
> know much about Java.
>
> Thanks in advance.
>
> Regards,
> Shailaja
>
> __
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/




Re: Tomcat Startup

2000-12-28 Thread Mark Koscak

Hi

I'm running Mandrake Linux 7.0
With apache running I have still been able to start and stop Tomcat.

Try starting Tomcat and running the example Servlet and JSP routines
provided.

Mark.

- Original Message -
From: Shailaja Someshwar <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 29, 2000 1:29 AM
Subject: Tomcat Startup


> Hello
>
> I've read in docs that Tomcat needs to be started
> before Apache. I am working on RH Linux 6.2 on Intel
> System.
>
> How to go about doing this...I've got a tomcat init
> script from FAQ which can start and stop tomcat...now
> how to automate this to start before httpd.
>
> Thanks
> Shailaja
>
> __
> Do You Yahoo!?
> Yahoo! Photos - Share your holiday photos online!
> http://photos.yahoo.com/




Where is ajp12 worker activity logged?

2000-12-28 Thread Hawkins, Keith (Keith)



I am 
trying to get IIS/PWS to redirect servlet and jsp requests to Tomcat via the 
isapi_redirect.dll.
I can 
see activity in the isapi.log file which indicates the filter is trapping on the 
URL and 
(supposedly) redirecting to it to the Tomcat 
process.  But I always get 404 Not Found responses in the browser.  

 
I want 
to determine what is happening (if anything) on the Tomcat 
process side.
 
Basically, I am looking for a way to determine if the 
filtered request is indeed being sent to Tomcat
what 
if anything Tomcat is doing with it.
 
How 
can I check this??  
 
I 
don't see the logs/tomcat.log file that is advertised when Tomcat starts 
up.
 
Environment is Tomcat3.2.1 on Windows NT4.0 using PWS 
4.0 Service Pack 5.
 
Thanks,
Keith
 


problem starting Tomcat 3.2: java.util.MissingResourceException

2000-12-28 Thread Jaap van der Molen


Hi all,

Would anybody please be so kind to shine some light on the error message
below that I keep getting with Tomcat 3.2 and 3.2.1. Surprisingly, 3.1 and
4.0 work fine.

Thanks,

Jaap


--
C:\java\tomcat3.21\bin>tomcat run
Including all jars in ..\lib in your CLASSPATH.

Using CLASSPATH:
..\classes;..\lib\ant.jar;..\lib\jaxp.jar;..\lib\servlet.jar;..\lib\parser.j
ar;..\lib\webserver.jar;..\lib\jasper.jar;..\classes;..\lib\ant.jar
;..\lib\jaxp.jar;..\lib\servlet.jar;..\lib\parser.jar;..\lib\webserver.jar;.
.\lib\jasper.jar;c:\java\projects\classes;
c:\progra~1\jdataconnect\classes;c:\java\
jdk1.3\lib\tools.jar;c:\java\jdk1.3\lib\tools.jar

Exception in thread "main" java.lang.ExceptionInInitializerError:
java.util.MissingResourceException: Can't find bundle for base name
org.apache.tomcat.resource
s.LocalStrings, locale en_US
   at
java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:7
07)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:679)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:546)
at
org.apache.tomcat.util.StringManager.(StringManager.java:115)
at
org.apache.tomcat.util.StringManager.getManager(StringManager.java:260)
at org.apache.tomcat.startup.Tomcat.(Tomcat.java:24)
C:\java\tomcat3.21\bin>





Re: Not Found(404) for virtual hosts

2000-12-28 Thread Ramkumar Manoharan

Did you try diting your web.xml file in your project diectory.See the 
examples folder in your tomcat installation and follow the same technique

Ram


>From: Shailaja Someshwar <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Not Found(404) for virtual hosts
>Date: Thu, 28 Dec 2000 00:07:06 -0800 (PST)
>
>
>Note: forwarded message attached.
>
>
>__
>Do You Yahoo!?
>Yahoo! Photos - Share your holiday photos online!
>http://photos.yahoo.com/
><< message3.txt >>

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




Re: Gzip

2000-12-28 Thread Matt B



<%@ page import=".GZIPOutputStream" %>

  
  <%@ page import="java.io.OutputStream" %>
  <%
  
    OutputStream 
  out1 = response.getOutputStream();  out = new 
  PrintWriter(new GZIPOutputStream(out1), false);
    /*you should use the response.setContentType() 
  */
    
  response.setHeader("Content-Encoding", "gzip");
     %>
   
   
  I had already tried that but 
  the problem is that I get this error:
   
  org.apache.jasper.JasperException: Unable to compile 
  class for 
  JSPD:\jakarta-tomcat\work\localhost_8080%2Ffirekey\_0002fjsp_0002frxwriter_0002frx_0002fPrescriptionView_0002ejspPrescriptionView_jsp_53.java:185: 
  Incompatible type for =. Can't convert java.io.PrintWriter to 
  javax.servlet.jsp.JspWriter.  
  out = new PrintWriter(new GZIPOutputStream(out1), 
  false);  
  
   
  Plus your comment says that I 
  should set the content type, but the content type is still text/html.. It's 
  the encoding type that I'm interested in changing. I want to send HTML encoded 
  with GZip.
   
  TIA
   
  Matt 
  B.


API directory

2000-12-28 Thread GoldenDawn Fan

Hi, I recently downloaded the Acme API, but I am not
sure where to put it.  Can anyone help please?

Thanks

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



Re: Init() being called 3 times

2000-12-28 Thread Filip Hanik

In addition to Mark's comments.
Since the init() method is an instance method (not static) one has to make
an assumption that it can be called once for each instance. However I would
like to believe that it will be called no more than once for a particular
instance.



Filip

- Original Message -
From: "Marc Saegesser" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 12:49 PM
Subject: RE: Init() being called 3 times


> In Tomcat 3.2.x, specifying more than one name for a servlet in web.xml
> causes a separate instance to be created for each name and each instances
> init() method will et invoked.  Essentially creating a new servlet for
each
> name as opposed to multiple names for a single instance of the servlet.
>
> The Servlet 2.2 spec (at least by my reading) doesn't provide clear
guidance
> on the real behaviour of the  tag and the behaviour may vary
> from one servlet container to another.  I seem to recall that JRun, for
> example, didn't create multiple instances.
>
> -Original Message-
> From: David Fusari [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 12:51 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Init() being called 3 times
>
>
> I have seen the same thing, it does not appear that init is called twice
but
> that you get 2 instances of the servlet loaded.  Perhaps something to do
> with aliases.  My work around was to not specify a context in server.xml
but
> only specify the servlet mapping in my web.xml.
>
> David.
>
> -Original Message-
> From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 1:46 PM
> To: [EMAIL PROTECTED]
> Subject: RE: Init() being called 3 times
>
>
> 1)  Set Tomcat's debug level to something big (say 20).
> 2)  Add a System.out.println() call to the begin and end or your init()
> method.  Include a timestamp.
> 3)  Add a call to Thread.currentThread().dumpStack() to the start of your
> init() method.
> 4)  Post the output here.
>
> It is extremely unlikely that the servlet container is calling init() more
> than once, but there is no way to diagnose the problem without more
> information.
>
> -Original Message-
> From: Shahed Ali [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 10:23 AM
> To: [EMAIL PROTECTED]
> Subject: Init() being called 3 times
>
>
> Hi,
>
>
> I am loading a servlet on startup. In the init(), I have a setting some
> system properties, and
> doing some logging.
>
> When I inspect the logs, its seems that the init method is called exactly
3
> times.
>
> Any idea whats going on ?
>
> I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel w/JDK 1.3
>
> Thanks
> Shahed.




RE: Init() being called 3 times

2000-12-28 Thread Marc Saegesser

In Tomcat 3.2.x, specifying more than one name for a servlet in web.xml
causes a separate instance to be created for each name and each instances
init() method will et invoked.  Essentially creating a new servlet for each
name as opposed to multiple names for a single instance of the servlet.

The Servlet 2.2 spec (at least by my reading) doesn't provide clear guidance
on the real behaviour of the  tag and the behaviour may vary
from one servlet container to another.  I seem to recall that JRun, for
example, didn't create multiple instances.

-Original Message-
From: David Fusari [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 12:51 PM
To: [EMAIL PROTECTED]
Subject: RE: Init() being called 3 times


I have seen the same thing, it does not appear that init is called twice but
that you get 2 instances of the servlet loaded.  Perhaps something to do
with aliases.  My work around was to not specify a context in server.xml but
only specify the servlet mapping in my web.xml.

David.

-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Init() being called 3 times


1)  Set Tomcat's debug level to something big (say 20).
2)  Add a System.out.println() call to the begin and end or your init()
method.  Include a timestamp.
3)  Add a call to Thread.currentThread().dumpStack() to the start of your
init() method.
4)  Post the output here.

It is extremely unlikely that the servlet container is calling init() more
than once, but there is no way to diagnose the problem without more
information.

-Original Message-
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:23 AM
To: [EMAIL PROTECTED]
Subject: Init() being called 3 times


Hi,


I am loading a servlet on startup. In the init(), I have a setting some
system properties, and
doing some logging.

When I inspect the logs, its seems that the init method is called exactly 3
times.

Any idea whats going on ?

I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel w/JDK 1.3

Thanks
Shahed.




RE: Gzip

2000-12-28 Thread Tim Cronin



<%@ page import=".GZIPOutputStream" %>
<%@ page import="java.io.OutputStream" %>
<%

  OutputStream 
out1 = response.getOutputStream();  out = new 
PrintWriter(new GZIPOutputStream(out1), false);
  /*you should use the response.setContentType() 
*/
  
response.setHeader("Content-Encoding", "gzip");
   %>
 
-Original Message-From: Matt B 
[mailto:[EMAIL PROTECTED]]Sent: Thursday, December 28, 2000 
12:34 PMTo: [EMAIL PROTECTED]Subject: 
Gzip
I want to use GZip compression on JSP page.  
I've done this with a servlet using the following code:
 
  OutputStream out1 = 
response.getOutputStream();  out = new 
PrintWriter(new GZIPOutputStream(out1), 
false);  response.setHeader("Content-Encoding", 
"gzip");
  ..
 
How would I get the equivalent using 
JSP?
 
 
TIA
 
Matt B.


Re: workers.properties etc.

2000-12-28 Thread Dave Smith

Ralph,

worker.inprocess refers to the type of deployment
where tomcat is going to run in the webserver process.
Defacto, this applies to the Win32 scenario, not a
unix box where tomcat will run on it's own pid.
So (unless I am mistaken) this is a non-issue in your case.

There is actually quite a bit of documentation available,
but you need to d/l the src disto and read everything in
the docs folder, read server.xml comments in conf, and
finally look in the source folders for some "hidden" docs.
Confusing? Sure, but everything you are asking about is
in there.

> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties...

The source code for them all is available.

Regards,

Dave


- Original Message -
From: "Ralph Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 3:53 AM
Subject: workers.properties etc.


> Is there any documentation concerning the settings in workers.properties?
> The defaults which come with it are apparently for Windows but I'm using
> Linux.
>
> In particular:
> worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
> java wrapper JAVA_HOME/jre/bin/java ?
>
> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties. I've read through 'Working
> with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat
users
> guide but I'm still a bit confused where to put my servlets and how to
load
> them from HTML - especially the use of 'servlet' and 'servlets'.
>
> Ralph Jensen
>
>
>




Re: How to be sure that ajpv13 is being used ?

2000-12-28 Thread Jacob Kjome

Keep in mind the mod_jk.conf-auto file is there for your convenience
only.  ajp13 and ajp12 are only used to communicate with Apache Web
Server through the mod_jk connector.  Whatever you include will be
used.

You seem to be duplicating efforts.  You are inlcuding the
mod_jk.conf-auto and then rewriting the same contents as the
mod_jk.conf-auto on the following lines.  The best way to do what
you need is to copy everything from the mod_jk.conf-auto to another file;
mod_jk.conf or mod_jk.conf-static or whatever.

Now edit the content to use ajp13 instead of ajp12 like you did
below.  

Now, get rid of everything that you've written below from your httpd.conf
except the include line.  However, change that line to point to the
new static file which you've edited to use ajp13.  BTW, this is also
a quite necessary thing to do when you need to use servlet mappings that
aren't the default "/contextname/*.jsp" and
"/contextname/servlet/*".  Now you can leave your
httpd.conf alone and just edit the static mod_jk.conf file whenever you
need to make changes to Tomcat webapps.

Jake

At 10:56 AM 12/28/2000 -0800, you wrote:
I have
gotten Apache 1.3.14 and Tomcat 3.2.1 to work.  I'm not sure if
ajpv13 protocol is being used; how can I be sure ?
 
I have added the following lines at the end of
my httpd.conf.
 

# Amit Added

include
D:/Tomcat/conf/mod_jk.conf-auto

# Use ajpv13 protocol thru the
ajp13 adapter

# Root context mounts for
Tomcat

JkMount /*.jsp ajp13

JkMount /servlet/* ajp13

# The following line mounts all
JSP files and the /servlet/ uri to tomcat

JkMount /examples/servlet/*
ajp13

JkMount /examples/*.jsp
ajp13

# The following line mounts all
JSP files and the /servlet/ uri to tomcat

JkMount /admin/servlet/*
ajp13

JkMount /admin/*.jsp ajp13

# The following line mounts all
JSP files and the /servlet/ uri to tomcat

JkMount /amitTest/servlet/*
ajp13

JkMount /amitTest/*.jsp
ajp13

# The following line mounts all
JSP files and the /servlet/ uri to tomcat

JkMount /test/servlet/*
ajp13

JkMount /test/*.jsp ajp13

 

Do the above settings in
httpd.conf override the settings in the mod_jk.conf-auto file ?

Thanks
amit 
 


RE: context initialization

2000-12-28 Thread Kitching Simon

I didn't mention that part :-)

Obviously, there's no point in tomcat calling the
doGet/doPost methods - they're meant to be
passed in data about the calling browser etc.,
and output an HTML page. That just doesn't
make sense in the "load-on-startup" situation.

You define (actually, over-ride) the init method of
the servlet instead, like this:

public void init(ServletConfig config) throws ServletException 
{
super.init(config);
  // put your startup code here, like creating java objects and
  // putting them in the application context where all jsp pages
  // and other servlets can get at them.
  // 
  // eg
  //
  // ServletContext context = config.getServletContext();
  // SystemState systemState = new SystemState();
  // context.setAttribute("systemState", systemState);

}   

This is all documented in the sun java servlet specifications...

Regards,

Simon

> -Original Message-
> From: Nicolás Marjovsky [SMTP:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 7:57 PM
> To:   [EMAIL PROTECTED]
> Subject:  Re: context initialization
> 
> Dear Simon:
> I've tried what you told me but the servlet doesn´t gets executed,
> it´s
> just preloaded.
> 
> Any ideas?
> 
> Thanks for your help,
> Nicolás
> 
> - Original Message -
> From: "Kitching Simon" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Wednesday, December 27, 2000 7:16 AM
> Subject: RE: context initialization
> 
> 
> If I understand your question correctly, I do this sort of
> thing currently, by having a servlet which instantiates
> a bunch of objects, and adds them to the context.
> This servlet is defined as "load-on-startup".
> 
> 
> In the webapp's web.xml, I have:
> 
> 
> 
> initializerServlet
> orange.ola3.InitializerServlet
> 1
> 
> 
>   
> 
>   systemStateMode
>   DEBUG
> 
> 
> 
> In reality, I have a whole bunch more init-param tags, containing things
> like JDBC connection strings.
> The servlet code itself does a bunch of things like:
> 
>   systemState = new SystemState();
>   context.setAttribute("systemState", systemState);
> 
> Regards,
> 
> Simon
> 
> > -Original Message-
> > From: Nicolás Marjovsky [SMTP:[EMAIL PROTECTED]]
> > Sent: Tuesday, December 26, 2000 10:40 PM
> > To: [EMAIL PROTECTED]
> > Subject: context initialization
> >
> > Hello,
> > I need to put some static objects into a web application context at
> > start-up time... I want to set the context when the application is going
> > up. Where should I put this? In web.xml?
> >
> > Thanks,
> > Nicolás
> 



How to be sure that ajpv13 is being used ?

2000-12-28 Thread Amit Pradhan



I have gotten Apache 
1.3.14 and Tomcat 3.2.1 to work.  I'm not sure if ajpv13 protocol is being 
used; how can I be sure ?
 
I have added the 
following lines at the end of my httpd.conf.
 

# Amit Added
include 
D:/Tomcat/conf/mod_jk.conf-auto
# Use ajpv13 protocol thru the ajp13 
adapter
# Root context mounts for Tomcat
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
# The following line mounts all JSP files and 
the /servlet/ uri to tomcat
JkMount /examples/servlet/* ajp13
JkMount /examples/*.jsp ajp13
# The following line mounts all JSP files and 
the /servlet/ uri to tomcat
JkMount /admin/servlet/* ajp13
JkMount /admin/*.jsp ajp13
# The following line mounts all JSP files and 
the /servlet/ uri to tomcat
JkMount /amitTest/servlet/* ajp13
JkMount /amitTest/*.jsp ajp13
# The following line mounts all JSP files and 
the /servlet/ uri to tomcat
JkMount /test/servlet/* ajp13
JkMount /test/*.jsp ajp13
 
Do the above 
settings in httpd.conf override the settings in the mod_jk.conf-auto file 
?
Thanksamit 
 


Re: context initialization

2000-12-28 Thread Nicolás Marjovsky

Dear Simon:
I've tried what you told me but the servlet doesn´t gets executed, it´s
just preloaded.

Any ideas?

Thanks for your help,
Nicolás

- Original Message -
From: "Kitching Simon" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 27, 2000 7:16 AM
Subject: RE: context initialization


If I understand your question correctly, I do this sort of
thing currently, by having a servlet which instantiates
a bunch of objects, and adds them to the context.
This servlet is defined as "load-on-startup".


In the webapp's web.xml, I have:



initializerServlet
orange.ola3.InitializerServlet
1


  

  systemStateMode
  DEBUG



In reality, I have a whole bunch more init-param tags, containing things
like JDBC connection strings.
The servlet code itself does a bunch of things like:

  systemState = new SystemState();
  context.setAttribute("systemState", systemState);

Regards,

Simon

> -Original Message-
> From: Nicolás Marjovsky [SMTP:[EMAIL PROTECTED]]
> Sent: Tuesday, December 26, 2000 10:40 PM
> To: [EMAIL PROTECTED]
> Subject: context initialization
>
> Hello,
> I need to put some static objects into a web application context at
> start-up time... I want to set the context when the application is going
> up. Where should I put this? In web.xml?
>
> Thanks,
> Nicolás





RE: Init() being called 3 times

2000-12-28 Thread David Fusari

I have seen the same thing, it does not appear that init is called twice but
that you get 2 instances of the servlet loaded.  Perhaps something to do
with aliases.  My work around was to not specify a context in server.xml but
only specify the servlet mapping in my web.xml.

David.

-Original Message-
From: Marc Saegesser [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 1:46 PM
To: [EMAIL PROTECTED]
Subject: RE: Init() being called 3 times


1)  Set Tomcat's debug level to something big (say 20).
2)  Add a System.out.println() call to the begin and end or your init()
method.  Include a timestamp.
3)  Add a call to Thread.currentThread().dumpStack() to the start of your
init() method.
4)  Post the output here.

It is extremely unlikely that the servlet container is calling init() more
than once, but there is no way to diagnose the problem without more
information.

-Original Message-
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:23 AM
To: [EMAIL PROTECTED]
Subject: Init() being called 3 times


Hi,


I am loading a servlet on startup. In the init(), I have a setting some
system properties, and
doing some logging.

When I inspect the logs, its seems that the init method is called exactly 3
times.

Any idea whats going on ?

I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel w/JDK 1.3

Thanks
Shahed.





RE: Init() being called 3 times

2000-12-28 Thread Marc Saegesser

1)  Set Tomcat's debug level to something big (say 20).
2)  Add a System.out.println() call to the begin and end or your init()
method.  Include a timestamp.
3)  Add a call to Thread.currentThread().dumpStack() to the start of your
init() method.
4)  Post the output here.

It is extremely unlikely that the servlet container is calling init() more
than once, but there is no way to diagnose the problem without more
information.

-Original Message-
From: Shahed Ali [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 10:23 AM
To: [EMAIL PROTECTED]
Subject: Init() being called 3 times


Hi,


I am loading a servlet on startup. In the init(), I have a setting some
system properties, and
doing some logging.

When I inspect the logs, its seems that the init method is called exactly 3
times.

Any idea whats going on ?

I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel w/JDK 1.3

Thanks
Shahed.




Gzip

2000-12-28 Thread Matt B



I want to use GZip compression on JSP page.  
I've done this with a servlet using the following code:
 
  OutputStream out1 = 
response.getOutputStream();  out = new 
PrintWriter(new GZIPOutputStream(out1), 
false);  response.setHeader("Content-Encoding", 
"gzip");
  ..
 
How would I get the equivalent using 
JSP?
 
 
TIA
 
Matt B.


Re: & Multiple Contexts

2000-12-28 Thread Koen Maes \(BE-day.com\)



I think by removing
    
from the server xml

  - Original Message - 
  From: 
  Shahed Ali 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, December 28, 2000 6:15 
  PM
  Subject:  & Multiple 
  Contexts
  
  Hi,
   
  I have a  entry in my server.xml pointing to a 
  webapp.
   
  This webapp is in the webapps directory.
   
  When I start tomcat, it loads 2 contexts each refering to 
  the same application.
  one is webapps/myapp and the other is www.host.com 
   
  I have now moved my app to a separate directory, and only 
  one context is created.
   
  But is there any way to tell the context mamager not to load 
  a directory under webapps
  as a context by default ?
   
  Thanks
  Shahed.
   


Re: msdev mod_jk.dsp /make all

2000-12-28 Thread Pete Ehli



You need to change the http.conf file in Apache and 
change your workers.propeties file ect and if you want your server.xml file. 
Read the doc "Working with mod_jk closely. Where it show a directory structure 
like 
 
JkWorkersFile 
/usr/local/jakarta-tomcat/conf/workers.properties (partial example of apache 
http.conf file)
 
this is a solaris file structure - you need to use 
windows C:/program files/apache 
group/jakarta-tomcat3.2.1/workers.properties
 
Here is what I add to my apache http.conf 
file
 
#server name added 12/25/2000ServerName 
localhost
 
#Apache and Tomcat configuration added 
12/25/2000Include "C:/Program Files/Apache 
Group/jakarta-tomcat-3.2.1/conf/mod_jk.conf-auto"
 
LoadModule    jk_module  
libexec/mod_jk.soAddModule mod_jk.cJkWorkersFile 
"C:/Program Files/Apache 
Group/jakarta-tomcat-3.2.1/conf/workers.properties"JkLogFile 
"C:/Program Files/Apache 
Group/jakarta-tomcat-3.2.1/logs/mod_jk.logJkLogLevel    
warn
 
Email me directly and let me know if this works for 
you [EMAIL PROTECTED] Forget 
anything to do with virtual hosts for now -- just get the apache-tomcat 
configueration to work - remember read and reread the doc.
-- Pete --



  - Original Message - 
  From: 
  oliver 
  To: [EMAIL PROTECTED] 
  
  Sent: Thursday, December 28, 2000 12:37 
  AM
  Subject: RE: msdev mod_jk.dsp /make 
  all
  
  Why?
  I copy the mod_jk.dll file to moduler.And I run the tomcat 
  first.Then I run the apache.
  But the screen isn't that "Apache/1.3.14 (win 
  32) mod_jk running" .
  It is " Apache/1.3.14 (win 
  32) running" .
  It seems no change!
   
  hope u r help!
  thx!
   
  oliver
   
   
   
   
  
  
  I recently set this up (NT4.0 Apache 1.3.14 and 
  tomcat) and it works for me. You need to download the mod_jk.dll or you write 
  your own. The docs say "For Win32, mod_jk is available as mod_jk.dll. If there 
  isn't a prebuilt mod_jk available or you wish to build your own copy, you can 
  build it yourself from the source"  Why build your own when you can use 
  the .dll available at http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/ You put mod_jk.dll in your modules directory in the 
  Apache web server. Also my installation of tomcat (which is correct - is in 
  the Apache Group directory in the web server) which is shown in Professional 
  JSP (wrox book) - follow the rest of the directions in the docs 
  apache-tomcat howto. You start tomcat first and then Apache - when Apache 
  starts the dos screen says "Apache/1.3.14 (win 32) mod_jk 
  running" and I can go to http:localhost8080:index.html. I assume 
  that my setup is correct - if not, please someone let me know.
  -- Pete -- [EMAIL PROTECTED]- 
  Original Message - 
  From: oliverTo: 
  [EMAIL PROTECTED] Sent: Wednesday, December 27, 2000 7:55 
  PMSubject: MSDEV mod_jk.dsp /MAKE ALLI want to use mod_jk in 
  the NT4.0 apache1.3.14 tomcat3.21.I can not find the msdev.exe and 
  mod_jk.dsp files.where is the two 
  files?help!thx!oliver
   


RE: Followup (Session references)

2000-12-28 Thread Billy Turchin


  I am using Tomcat 3.2.1.  The session is certainly valid, because
though I get a null pointer exception when I try to invalidate it, I can
still perform actions with that user...ie data is still in the session.
I am storing the session in a Map.  I don't have a code snippet (its a
large/complex system, but here's exactly what I'm doing:


  When a servlet gets a hit it checks for presence of an object in the
session.  If not found, it adds a new object and saves the session using
a static class (static methods and members).  At any time that static
class can invalidate a session, causing that object to be removed.  With
Tomcat 3.2.1, if I invalidate from that other static class I get a null
pointer exception in HttpSessionFacade.  With Tomcat 3.1 this works
fine.  If I don't save the session when the object is added to the
session, but when the object receives a HttpSessionBindingEvent then
everything works.

  Perhaps I should try to create a small test case to show this?

 - Billy


-Original Message-
From: Kief Morris [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 12:10 PM
To: [EMAIL PROTECTED]
Subject: Re: Followup (Session references)


Billy Turchin typed the following on 11:18 AM 12/28/2000 -0500
>  Hi again, here is a follow up to the problem I was having that I
>emailed about earlier.  When I would get my first hit, I would save the
>HttpSession at that time in a static class accessible by all servlets.
>If instead I save the HttpSession when an object is bound to a session,
>via HttpSessionBindingEvent.getSession() ... then I am able to
>invalidate it later.  If I save the session as I was before I get the
>null pointer exception.  It seems like this may be a bug.

Are you sure the session is still valid? What version of Tomcat are
you using? How exactly are you saving the session (can you give
a code snippet?)






Re: PoolTcpConnector Freeze on start

2000-12-28 Thread Kurt Bernhard Pruenner

"Daniel E. Reed" wrote:
> hehe - ooops!
> 
> It looked like a foreground process (starting a background process), and
> when it didn't return me to a prompt, I thought it was freezing.  Guess I
> should have paid more attention.  Thanks!

Oh, it _did_ return you to a prompt:

> > > [root@linrr /root]# 2000-12-27 08:07:18 - ContextManager: Adding 
  ^^^
It's just that Tomcat (running in the background) still printed out a
few messages, which of course got printed right after your prompt, which
of course often leads to confusion... :)

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Uusitalo - Creating Undo For Kids (Vapaa Muurari Live)



Re: urgent...

2000-12-28 Thread Pete Ehli



Use ant or copy web.xml - set server.xml using 
examples as a reference. That is why the examples are there.

  - Original Message - 
  From: 
  srikanth 
  To: [EMAIL PROTECTED] 
  
  Sent: Friday, December 29, 2000 1:56 
  AM
  Subject: urgent...
  
  
  how to install a new 
web-application?".


Re: workers.properties etc.

2000-12-28 Thread Pete Ehli

If the docs are confusing I agree, but the example given in Working with
mod_jk for the worker.properties file is for Solaris and I sure the
directory structure is very similar in Linux. The examples provided in
tomcat is a great way to see where to place your servlets and JSP pages,
also how to set up your web.xml file and set your server.xml. The only
difference when using Apache is you want Apache to serve your static content
which should be easy.
- Original Message -

From: "Ralph Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 1:53 AM
Subject: workers.properties etc.


> Is there any documentation concerning the settings in workers.properties?
> The defaults which come with it are apparently for Windows but I'm using
> Linux.
>
> In particular:
> worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
> java wrapper JAVA_HOME/jre/bin/java ?
>
> I'd also appreciate some more information concerning the interaction of
> server.xml, mod_jk.conf and worker.properties. I've read through 'Working
> with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat
users
> guide but I'm still a bit confused where to put my servlets and how to
load
> them from HTML - especially the use of 'servlet' and 'servlets'.
>
> Ralph Jensen
>
>
>




& Multiple Contexts

2000-12-28 Thread Shahed Ali



Hi,
 
I have a  entry in my server.xml pointing to a 
webapp.
 
This webapp is in the webapps directory.
 
When I start tomcat, it loads 2 contexts each refering to the 
same application.
one is webapps/myapp and the other is www.host.com 
 
I have now moved my app to a separate directory, and only one 
context is created.
 
But is there any way to tell the context mamager not to load a 
directory under webapps
as a context by default ?
 
Thanks
Shahed.
 


R: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Marco


> 2 - Apache delegates the servlet to make the authentication. This would be
> the very best solution, but I suppose it is impossible (could an Apache
> module implement this feature?)

> You can do this!  Turn off authentication in Apache and implement it in
> your Servlet.

It's not what I want to do. I can authenticate the user by servlet but it
means that I do security administration only throw servlet session. In other
words, all the protected parts of the site should pass throw servlet, and it
is too much expensive (i.e. what about static html pages? Should they be
parsed by a servlet instead of quickly delivered by Apache?).





Re: Followup (Session references)

2000-12-28 Thread Kief Morris

Billy Turchin typed the following on 11:18 AM 12/28/2000 -0500
>  Hi again, here is a follow up to the problem I was having that I
>emailed about earlier.  When I would get my first hit, I would save the
>HttpSession at that time in a static class accessible by all servlets.
>If instead I save the HttpSession when an object is bound to a session,
>via HttpSessionBindingEvent.getSession() ... then I am able to
>invalidate it later.  If I save the session as I was before I get the
>null pointer exception.  It seems like this may be a bug.

Are you sure the session is still valid? What version of Tomcat are
you using? How exactly are you saving the session (can you give
a code snippet?)






RE: want to preporcess javascript files

2000-12-28 Thread Tim Cronin

Thanks for all the input.

Solution:

in the javascript file (call it javascript.jsp)

<% response.setContentType("text/javascript"); %>

mark all comment blocks with

<%--
comment .
--%>

you can include the javascript jsp file like a normal script file.



the only thing better than a solution is
a one line solution!

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 9:09 AM
To: '[EMAIL PROTECTED]'
Subject: RE: want to preporcess javascript files



What is the content-type you are returning from your JSP containing
JS file?  I believe that Netscape is expecting text/plain or text/javascript
and might not like a text/html when its not expecting it.  Also, are you
specifying the language in the 

Re: Problem to compile mod_jk.so with apxs.

2000-12-28 Thread Damien Serra

Its that you are looking for?

Inside jk_pool.h, at line 92, you need to add this,

#elif defined(NETWARE)
typedef long longjk_pool_atom_t;
#else  //ADD THIS LINE
typedef long longjk_pool_atom_t;   // ADD THIS LINE
#endif


Simon Orchanian wrote:

> Please just someone post the resolution
> to this. I know many people are having
> a problem with it on Solaris 7 with Apache 1.3.14.
>
> Thanks,
> Simon
>
> --- Donnie Cherng <[EMAIL PROTECTED]> wrote:
> >
> > I have read more than thousands of mails from the mail list and read howto
> > docs
> > from Tomcat.  Still have no clue why it is not working ...
> >
> > The running system is
> >   Solaris 7 with
> >   j2sdk1_3_0
> >   jakarta-tomcat-3.2.1
> >   apache_1.3.14.
> >
> >
> > /home/users/dcherng/apache/bin/apxs -I ../jk -I
> > /home/users/dcherng/j2sdk1_3_0/include -I
> > /home/users/dcherng/j2sdk1_3_0/include/solaris -c -o mod_jk.so mod_jk.c
> > ../jk/jk_ajp12_worker.c ../jk/jk_connect.c ../jk/jk_msg_buff.c
> > ../jk/jk_util.c ../jk/jk_ajp13.c ../jk/jk_jni_worker.c ../jk/jk_pool.c
> > ../jk/jk_worker.c ../jk/jk_ajp13_worker.c ../jk/jk_lb_worker.c
> > ../jk/jk_sockbuf.c  ../jk/jk_map.c ../jk/jk_uri_worker_map.c
> > gcc -DSOLARIS2=270 -DUSE_EXPAT -I../lib/expat-lite -DNO_DL_NEEDED
> > -I/home/users/dcherng/apache/include -I../jk
> > -I/home/users/dcherng/j2sdk1_3_0/include
> > -I/home/users/dcherng/j2sdk1_3_0/include/solaris  -c mod_jk.c
> > In file included from ../jk/jk_util.h:66,
> >  from mod_jk.c:90:
> > ../jk/jk_pool.h:116: parse error before `jk_pool_atom_t'
> > mod_jk.c: In function `jk_handler':
> > mod_jk.c:679: `jk_pool_atom_t' undeclared (first use in this function)
> > mod_jk.c:679: (Each undeclared identifier is reported only once
> > mod_jk.c:679: for each function it appears in.)
> > mod_jk.c:679: parse error before `buf'
> > mod_jk.c:680: `buf' undeclared (first use in this function)
> > apxs:Break: Command failed with rc=1
> > make: *** [mod_jk.so] Error 1
> >
> > thanks,
> > Donnie
>
> __
> Do You Yahoo!?
> Yahoo! Shopping - Thousands of Stores. Millions of Products.
> http://shopping.yahoo.com/




Re: getting mod_jk or mod_serv to work

2000-12-28 Thread Damien Serra

Hi again,
Can you do something, please:

Try compiling all with gcc:

for a in *.c
do
gcc -DUW=700 -DUSE_HSREGEX -I -c $a
done
gcc -share -o mod_jk.so *.o


Jed Duty wrote:

> Thanks that is getting me closer. Now I am back to the error I was getting
> with mod_jserv when I tried to compile it.
>
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c mo
> d_jk.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_ajp12_worker.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_ajp13.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_ajp13_worker.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_connect.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_jni_worker.c
> UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 731: assignment type
> mismatch
> UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 732: assignment type
> mismatch
> UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 764: invalid directive
> UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 765: invalid directive
> UX:acomp: WARNING: "../jk/jk_jni_worker.c", line 766: invalid directive
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_lb_worker.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_map.c
> UX:acomp: WARNING: "../jk/jk_map.c", line 468: newline not last character in
> file
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_msg_buff.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_nwmain.c
> UX:acomp: WARNING: "../jk/jk_nwmain.c", line 32: empty translation unit
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_pool.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_sockbuf.c
> UX:acomp: WARNING: "../jk/jk_sockbuf.c", line 214: newline not last
> character in file
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_uri_worker_map.c
> UX:acomp: WARNING: "../jk/jk_uri_worker_map.c", line 438: newline not last
> character in file
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_util.c
> cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> -I/opt/java2-1.2.2/include -I/opt/java2-1.2.2/include/unixware  -c ..
> /jk/jk_worker.c
>   -o mod_jk.so ../jk/jk_worker.o ../jk/jk_util.o ../jk/jk_uri_worker_map.o
> ../jk/jk_sockbuf.o ../jk/jk_pool.o ../jk/jk_nwmain.o ../j
> k/jk_msg_buff.o ../jk/jk_map.o ../jk/jk_lb_worker.o ../jk/jk_jni_worker.o
> ../jk/jk_connect.o ../jk/jk_ajp13_worker.o ../jk/jk_ajp13.
> o ../jk/jk_ajp12_worker.o mod_jk.o
> apxs:Break: Command failed with rc=16711680
>
> Not sure what to make of it.
> Thanks for the help though.
>
> Jed Duty
> -Original Message-
> From: Damien Serra [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, December 27, 2000 9:23 AM
> To: [EMAIL PROTECTED]
> Subject: Re: getting mod_jk or mod_serv to work
>
> Jed Duty wrote:
>
> > I am having similar problems but even the gcc compile line doesn't help.
> I
> > am actually getting a syntax error message with apxs as follows
> >
> > apxs -o mod_jk.so -I../jk -I/opt/java2-1.2.2/include
> > -I/opt/java-1.2.2/include/unixware -c *.c ../jk/*.c
> > -ksh: apxs: not found
> > uspkdevc# /usr/local/apache/bin/apxs -o mod_jk.so -I../jk
> > -I/opt/java2-1.2.2/include -I/opt/java-1.2.2/include/unixware -c *.c
> > ../jk/*.c
> > cc -DUW=700 -DUSE_HSREGEX  -I/usr/local/apache/include -I../jk
> > -I/opt/java2-1.2.2/include -I/opt/java-1.2.2/include/unixware  -c mod_jk.c
> > UX:acomp: ERROR: "../jk/jk_pool.h", line 116: Syntax error before or at:
> > jk_pool_atom_t
> > UX:acomp: ERROR: "mod_jk.c", line 679: undefined symbol: jk_pool_atom_t
> > UX:acomp: ERROR: "mod_jk.c", line 679: Syntax error before or at: buf
> > UX:acomp: ERROR: "mod_jk.c", line 680: undefined symbol: buf
> > apxs:Break: Command failed with rc=65536
> >
>
> Inside jk_pool.h

Re: PoolTcpConnector Freeze on start

2000-12-28 Thread Daniel E. Reed

hehe - ooops!

It looked like a foreground process (starting a background process), and
when it didn't return me to a prompt, I thought it was freezing.  Guess I
should have paid more attention.  Thanks!

-Dan

- Original Message -
From: "Kurt Bernhard Pruenner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 8:04 AM
Subject: Re: PoolTcpConnector Freeze on start


> "Daniel E. Reed" wrote:
> > [root@linrr /root]# 2000-12-27 08:07:18 - ContextManager: Adding context
> > Ctx( /examples )
> > 2000-12-27 08:07:19 - ContextManager: Adding context Ctx( /admin )
> > Starting tomcat. Check logs/tomcat.log for error messages
> > 2000-12-27 08:07:19 - ContextManager: Adding context Ctx(  )
> > 2000-12-27 08:07:19 - ContextManager: Adding context Ctx( /test )
> > 2000-12-27 08:07:20 - PoolTcpConnector: Starting HttpConnectionHandler
on
> > 8080
> > 2000-12-27 08:07:20 - PoolTcpConnector: Starting Ajp12ConnectionHandler
on
> > 8007
> >
> > Why is it freezing?  Any suggestions?  The scripts and config files are
> > virtually unchanged from the defaults.  In fact, I had the same problem
> > before making a single change.  Thanks!
>
> What makes you think it's freezing? Tomcat is a server - unless you use
> your browser to connect to it, it won't do anything else; it just sit's
> there and waits for connections. Note that there just isn't a message at
> the end that says "waiting for connections", if that's what you were
> looking for...
>
> Try pointing your browser at http://localhost:8080/ and see what
> happens... after it "freezes", that is... :)
>
> --
> Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
> Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
> ...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
> np: Uusitalo - Social Selection (Vapaa Muurari Live)




RE: want to preporcess javascript files

2000-12-28 Thread Ted Husted

On 12/28/2000 at 9:27 AM Tim Cronin wrote:
> This works fine in IE. but causes Netscape to hang. 

What's the simplest example that causes Netscape to hang?

Is this the sort of thing you're doing?





Hello World from HTML
HelloWorld();
<% out.println("Hello World from JSP"); %>




function HelloWorld() {
  document.write('Hello World from Javascript')
}


*** REPLY SEPARATOR  ***

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 23:17
To: '[EMAIL PROTECTED]'
Cc: Paul Lange; Frank Livaudais; Rex Staples
Subject: want to preporcess javascript files

I was initially using jsp files to contain javascript. This way I could
have them documented and keep revision history in them for development
then have the commenst stripped out when they were deployed to clients.

This works fine in IE. but causes Netscape to hang. I tryed to change
them back to js and add a handler to preprocess these files as well
but could not get it to work.

Any solutions?






Init() being called 3 times

2000-12-28 Thread Shahed Ali



Hi,
 
 
I am loading a servlet on startup. In the init(), I have a 
setting some system properties, and 
doing some logging.
 
When I inspect the logs, its seems that the init method is 
called exactly 3 times.
 
Any idea whats going on ?
 
I am using Tomcat 3.2.1 w/Apache 3.1.14 on Solaris 8 Intel 
w/JDK 1.3
 
Thanks
Shahed.


Followup

2000-12-28 Thread Billy Turchin

  Hi again, here is a follow up to the problem I was having that I
emailed about earlier.  When I would get my first hit, I would save the
HttpSession at that time in a static class accessible by all servlets.
If instead I save the HttpSession when an object is bound to a session,
via HttpSessionBindingEvent.getSession() ... then I am able to
invalidate it later.  If I save the session as I was before I get the
null pointer exception.  It seems like this may be a bug.

 - Billy



Re: Tomcat Startup

2000-12-28 Thread Barry L. Kline

Shailaja Someshwar wrote:
> 
> Hello
> 
> I've read in docs that Tomcat needs to be started
> before Apache. I am working on RH Linux 6.2 on Intel
> System.
> 
> How to go about doing this...I've got a tomcat init
> script from FAQ which can start and stop tomcat...now
> how to automate this to start before httpd.
> 


put the startup script into /etc/rc.d/init.d

Edit the startup script and add a comment line under #!/bin/sh that
says:

# chkconfig: lll ss kk  

where lll is the run level(s) where the script should be run
where ss is the start priority
where kk is the kill priority

Just choose a start priority that is lower than that of httpd.  You
can
figure what value you need by checking the httpd script in
/etc/rc.d/init.d

Once you save your edit, run chkconfig --add YourScriptName

For more information, see man chkconfig and examine the scripts in the
/etc/rc.d/init.d directory

Barry



Need help with isapi_redirect.dll and PWS

2000-12-28 Thread Hawkins, Keith (Keith)


Hello,
I have been struggling with getting the isapi_redirect.dll to work with
IIS/PWS.
I have checked and rechecked the steps specified in the Tomcat IIS HowTo
document by Gal Shachor.

I keep getting 404-Not Found errors even though the redirector is
recognizing the URL as one
that matches the set of URLs it should handle.

The entries in the PWS log file look as follows:
14:54:50 127.0.0.1 GET +/jakarta/isapi_redirect.dll 404
14:55:14 192.11.221.102 GET +/jakarta/isapi_redirect.dll 404
14:58:20 192.11.221.101 GET +/jakarta/isapi_redirect.dll 404
15:20:06 192.11.221.101 GET +/jakarta/isapi_redirect.dll 404

The entries from the isapi.log file look as follows:

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

So it looks like the filter recognizes the URL as one that it should
process, but the ajp12 worker never
seems to get contacted.   The 404 error is returned right away.

The Tomcat process seems to be running fine since I can successfully access
the sample jsp pages using
localhost:8080

The breakdown seems to be in getting the redirection to the ajp12 worker on
port 8007 and back
to the PWS server when PWS is used as the web server.

Any help would be greatly appreciated.

Thanks,
Keith




RE: want to preprocess javascript files

2000-12-28 Thread Jeffry Guttadauro

I'm not sure if I know exactly what you're after here, but I'll throw a
couple of thoughts out there.  It sounds like you want to use JSP pages to
keep all your JavaScript code so that you don't have to send comments to the
client.  I haven't tried this, but I'm thinking something like this should
work...

functions.jsp:
(JavaScript functions with comments)
you could try putting comments in
<%-- comment --%>
or in
<% /* comment */ %>
jsp comments so they aren't output to the client.

webpage.jsp:
wherever you want your JavaScript functions inserted, you could try


Is this the general idea?  Are you saying you've already tried something like
this and it doesn't work?  Am I just way off the mark?

Hope this helps,
-Jeff





[EMAIL PROTECTED] on 12/28/2000 09:27:30 AM
Please respond to [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
cc:
Subject: RE: want to preporcess javascript files

>- I dont see why a js file won't be handled like a jsp regarding source
>control and revision history.

this is not a problem. It is handled by source control, But I don't want
to send revision history and code documentation to client machines.

>- It costs you in performance to use js in jsp - you make the Tomcat
>generate them again and again for each request. I guess that the js code is
>quite static and not changed between requests, so that generation is
>unnecessary.

if I have it as the src attribute in the script tag it will only be
downloaded once
to each client, and if I cache the jsp page it will be resident in memory
intead of reading it from disk before sending it down.

>- I have a js file whose code depends on some other java classes. I have
>made in java a sort of preprocessor that create it whenever a new version
is
>required.

The Jakarta team has done a great job at writing a preprocessor which I
don't
want or have the time to do.

So back to my origonal question does anyone know how I could do this without
telling me why I should not.


-Original Message-
From: Boaz Shaham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 3:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: want to preporcess javascript files


I had that problem too. Some notes:

- I dont see why a js file won't be handled like a jsp regarding source
control and revision history.

- It costs you in performance to use js in jsp - you make the Tomcat
generate them again and again for each request. I guess that the js code is
quite static and not changed between requests, so that generation is
unnecessary.

- I have a js file whose code depends on some other java classes. I have
made in java a sort of preprocessor that create it whenever a new version is
required.

If you still want to use it as jsp - try add to these files a header
indicating the mime type for js code (dont know what it is)


- Boaz

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 23:17
To: '[EMAIL PROTECTED]'
Cc: Paul Lange; Frank Livaudais; Rex Staples
Subject: want to preporcess javascript files


I was initially using jsp files to contain javascript. This way I could
have them documented and keep revision history in them for development
then have the commenst stripped out when they were deployed to clients.

This works fine in IE. but causes Netscape to hang. I tryed to change
them back to js and add a handler to preprocess these files as well
but could not get it to work.

Any solutions?






Tomcat 3.2 HttpSessionFacade

2000-12-28 Thread Billy Turchin

  Hi all, I just upgraded to a new version of Tomcat and I've been
having problems with the HttpSession.  My web application allows me to
invalidate any of the currently running sessions from an administration
component.  So when new sessions are created, I save a reference to
them.  This was working fine with my previous version of Tomcat (I
believe 3.1).  Now when I invalidate the HttpSession object I get a null
pointer exception in HttpSessionFacade... the underlying realSession is
null.  Has anyone encountered this or has any ideas?
 
 - Billy
 
java.lang.NullPointerException
DEBUG: java.lang.NullPointerException
at
org.apache.tomcat.facade.HttpSessionFacade.invalidate(HttpSessionFaca
de.java:136)
 
 
-
Billy Turchin
mailto:[EMAIL PROTECTED]  
 



Wrote some simple docs for NetWare if anyone is interested...

2000-12-28 Thread wilsonkb

Howdy all,
I have spent a bit of time pulling all the stuff together I 
needed to get Tomcat on NetWare and also how to integrate 
it with Apache on NetWare.  I was looking on how to submit 
docs into the CVS tree (is that the right place?) and well 
being a newbe to CVS trees, I decided to post the short 
docs here and see if anyone had any advice on how to get 
this published for others to use...

thanks,
-b

Here they are:  First is Tomcat, second is Apache/Tomcat 
integration...

NetWare specific documentation for Jakarta-Tomcat 
I was thinking this could go in the place where the shell 
scripts were mentioned or just below, I can't think of an
elegant way to write the equivalent of a shell script on
NetWare, But some platform notes on what to edit might 
be helpful

On NetWare most java configuration information is stored in 
the sys:etc\java.cfg file.  This file needs to be updated 
to point to the TOMCAT_HOME and is where the various 
classpath additions will be entered.   So here are the 
lines that should be entered into the java.cfg file for 
Tomcat to execute.  For this example Tomcat was installed 
into sys:java\tomcat:

TOMCAT_HOME=SYS:JAVA\TOMCAT

CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\ant.jar
CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jasper.jar
CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\jaxp.jar
CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\parser.jar
CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\servlet.jar
CLASSPATH=$CLASSPATH;$TOMCAT_HOME\lib\webserver.jar

Remember that the standard SERVLETCLASSPATH will not work 
with TOMCAT you need to put anything, including servlets 
you want to execute, into the standard CLASSPATH.

You will need to restart java on NetWare for these to take 
place:
  java -killall  (will kill all running java processes)
  java -exit  (will exit)
  java (will load java again)

if you want to check you working classpath you can type:
envset

To launch Tomcat you might want to create a tcatup.ncf file 
and place it in you sys:system directory. The NCF file will
contain:

Java -Dtomcat.home=\java\tomcat 
org.apache.tomcat.startup.Tomcat



I was unable to create a tcatdn.ncf so you will need to use 
the NetWare java -show command to see what the process id 
is of tomcat, then use java -killxxx (where xxx is the 
process id) to unload it.

When your editing the server.xml, paths are referenced by 
relative (no \ in front) or full like 
sys:\novonyx\suitespot\docs.  

NetWare works with either / or \ 


---


Platform integration specifics for Apache/Jakarta-Tomcat on 
NetWare
1.install Apache:  
http://httpd.apache.org/docs/netware.html or at 
http://developer.novell.com/ndk/leadedge.htm  check out 
143, 144, & 142

2.If you want Apache to serve your old 
novonyx/suitespot/docs documents edit the following in your 
httpd.conf

DocumentRoot "sys:/novonyx/suitespot/docs"

3.Don't forget to rem out nsweb in you autoexec.ncf  

4. Install Tomcat see above:

5. Grab mod_jk.nlm from the binaries section at 
Jakarta.apache.org throw it in sys:/apache/modules

6. In the tomcat server.xml file you need to add:


 
 


# This adds the Ajp13 connector so the mod_jk can work.

and

   
  

#This  is so *.jsp files in your normal web root under 
#apache, it should match what ever you put in the 
#httpd.conf for document root

5. In the Apache httpd.conf add the following under
   the LoadModule area:

  LoadModulejk_module modules/mod_jk.nlm
  AddModule mod_jk.c
  JkWorkersFile sys:/java/tomcat/conf/workers.properties
  JkLogFile /logs/mod_jk.log
  JkLogLevelwarn

# The above loads the mod_jk.nlm 

  JkMount   /*.jsp ajp13
  JkMount   /servlet/* ajp13
  JkMount   /nwservlet/* ajp13
  JkMount   /otherworker/*.jsp remoteworker

#These are the paths handed off to tomcat from Apache, 
#They need to be referenced in the tomcat server.xml


If you want to learn about the other modules listed in
this section of the httpd.conf go to:
http://httpd.apache.org/docs/mod/index.html
and read on...

If you want to use the mod_nds_auth or authldap from
http://developer.novell.com/ndk/leadedge.htm as 
mentioned before, the settings in the httpd.conf are:

# ldap needs cldap lib from developer.novell.com/nds/
LoadModule auth_ldap_module modules/authldap.nlm

LoadModule nds_auth_module modules/mod_nds.nlm

These cannot be loaded into protected memory yet,
but can be loaded at the kernel level
Just use load apache instad of
load address space = apache apache.




RE: want to preporcess javascript files

2000-12-28 Thread Tim Cronin

>- I dont see why a js file won't be handled like a jsp regarding source
>control and revision history.

this is not a problem. It is handled by source control, But I don't want
to send revision history and code documentation to client machines.

>- It costs you in performance to use js in jsp - you make the Tomcat
>generate them again and again for each request. I guess that the js code is
>quite static and not changed between requests, so that generation is
>unnecessary.

if I have it as the src attribute in the script tag it will only be
downloaded once
to each client, and if I cache the jsp page it will be resident in memory
intead of reading it from disk before sending it down.

>- I have a js file whose code depends on some other java classes. I have
>made in java a sort of preprocessor that create it whenever a new version
is
>required.

The Jakarta team has done a great job at writing a preprocessor which I
don't
want or have the time to do.

So back to my origonal question does anyone know how I could do this without
telling me why I should not.


-Original Message-
From: Boaz Shaham [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 28, 2000 3:17 AM
To: '[EMAIL PROTECTED]'
Subject: RE: want to preporcess javascript files


I had that problem too. Some notes:

- I dont see why a js file won't be handled like a jsp regarding source
control and revision history.

- It costs you in performance to use js in jsp - you make the Tomcat
generate them again and again for each request. I guess that the js code is
quite static and not changed between requests, so that generation is
unnecessary.

- I have a js file whose code depends on some other java classes. I have
made in java a sort of preprocessor that create it whenever a new version is
required.

If you still want to use it as jsp - try add to these files a header
indicating the mime type for js code (dont know what it is)


- Boaz

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 23:17
To: '[EMAIL PROTECTED]'
Cc: Paul Lange; Frank Livaudais; Rex Staples
Subject: want to preporcess javascript files


I was initially using jsp files to contain javascript. This way I could
have them documented and keep revision history in them for development
then have the commenst stripped out when they were deployed to clients.

This works fine in IE. but causes Netscape to hang. I tryed to change
them back to js and add a handler to preprocess these files as well
but could not get it to work.

Any solutions?



Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Ted Husted

For some background on authentication with Tomcat, see 

<
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/JDBCRealm.howto
>

<
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg03534.html
 >

1 - Apache authenticates the user whith basic (or other) method, and
servlet are enabled to know the actual userid

Servlets can access the HTTP login from the header; it's encoded in
Base64. 

See ProtectedPage - chapter 3 of Marty Hall's Core Servlets and JSP
(www.coreservlets.com).

2 - Apache delegates the servlet to make the authentication. This would
be the very best solution, but I suppose it is impossible (could an
Apache module implement this feature?)

The servlets can  check for an attribute stored in the session context,
and send people to a login page if it is missing.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 425-0252; Fax 716 223-2506.
-- http://www.husted.com/





Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Holger Hartwig

1 - read out the request headers, you get the username and password
(almost) directly  

String auth = request.getHeader("authorization"); // as send by
apache
if (auth == null) return true;
try {
auth = new String((new
sun.misc.BASE64Decoder()).decodeBuffer(auth.substring(6)));
}
catch (Exception exc) {
System.out.println(exc.toString());
return true;
}

if (auth == null) return true;
int pos = auth.indexOf(":");
if (pos < 0) {
  System.out.println("No user");
  return true;
}
String username = auth.substring(0, pos);
System.out.println("Login 401 user " + username);


This snippet is not from me, I found this in an earlier posting, but I
forgot where it was, sorry.
Holger  

> 
> 1 - Apache authenticates the user whith basic (or other) method, and servlet
> are enabled to know the actual userid
> 2 - Apache delegates the servlet to make the authentication. This would be
> the very best solution, but I suppose it is impossible (could an Apache
> module implement this feature?)
> 
> Tnx in advance
> Marco




Re: Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Charles Forsythe

Marco wrote:
> 2 - Apache delegates the servlet to make the authentication. This would be
> the very best solution, but I suppose it is impossible (could an Apache
> module implement this feature?)

You can do this!  Turn off authentication in Apache and implement it in
your Servlet.

-- Charles



SV: JSP

2000-12-28 Thread Cato Førrisdahl

Eylon wrote:
>How can I write and test my JSP on NT platform?

You'll have to download and install a jdk along with 
tomcat. You'll find a jdk at http://www.javasoft.com/ 
and tomcat at http://jakarta.apache.org/. 

There should be sufficient documentation with tomcat
to get you up and running. Worth mentioning is that
under the doc-directory somewhere you'll find an 
example-webapp you can copy, and just make minor
adjustments in the build.xml-file and you're off
with a new webapp. 

As for tomcat, it's completely java-based and hence
is platform independent.

Good luck!

Cato





Q: Apache, Tomcat and HTTP Authentication

2000-12-28 Thread Marco

Hi,

I have developed a servlet application using Tomcat as servlet engine and
Apache as webserver, under linux plattform.
In some circumstances the servlet app is located in a reserved area of the
web site, this area is defined with basic authentication in the apache
httpd.conf. The problem is: request.getRemoteUser() always returns null and
I haven't found any method to know the user authenticated by apache...
I have read in other message of this list that this is a well-known problem
since Tomcat does not implements the security container. However I hope
there is an "elegant" solution.

I supposed two scenarios:

1 - Apache authenticates the user whith basic (or other) method, and servlet
are enabled to know the actual userid
2 - Apache delegates the servlet to make the authentication. This would be
the very best solution, but I suppose it is impossible (could an Apache
module implement this feature?)

Tnx in advance
Marco




Tomcat Startup

2000-12-28 Thread Shailaja Someshwar

Hello

I've read in docs that Tomcat needs to be started
before Apache. I am working on RH Linux 6.2 on Intel
System.

How to go about doing this...I've got a tomcat init
script from FAQ which can start and stop tomcat...now
how to automate this to start before httpd.

Thanks
Shailaja

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



JSP

2000-12-28 Thread Eylon Steiner

How can I write and test my JSP on NT platform?

Thanks,
  Eylon.

TopTier Israel www.toptier.com
4 Hacharoshet St. Ra'anana 43657, Israel 
Tel: +972.9.7430940 Ext 143.  Fax: +972.9.7463089 
Eylon Steiner, Software Engineer 
[EMAIL PROTECTED]





Re: PoolTcpConnector Freeze on start

2000-12-28 Thread Kurt Bernhard Pruenner

"Daniel E. Reed" wrote:
> [root@linrr /root]# 2000-12-27 08:07:18 - ContextManager: Adding context
> Ctx( /examples )
> 2000-12-27 08:07:19 - ContextManager: Adding context Ctx( /admin )
> Starting tomcat. Check logs/tomcat.log for error messages
> 2000-12-27 08:07:19 - ContextManager: Adding context Ctx(  )
> 2000-12-27 08:07:19 - ContextManager: Adding context Ctx( /test )
> 2000-12-27 08:07:20 - PoolTcpConnector: Starting HttpConnectionHandler on
> 8080
> 2000-12-27 08:07:20 - PoolTcpConnector: Starting Ajp12ConnectionHandler on
> 8007
> 
> Why is it freezing?  Any suggestions?  The scripts and config files are
> virtually unchanged from the defaults.  In fact, I had the same problem
> before making a single change.  Thanks!

What makes you think it's freezing? Tomcat is a server - unless you use
your browser to connect to it, it won't do anything else; it just sit's
there and waits for connections. Note that there just isn't a message at
the end that says "waiting for connections", if that's what you were
looking for...

Try pointing your browser at http://localhost:8080/ and see what
happens... after it "freezes", that is... :)

-- 
Kurt Bernhard Pruenner --- Haendelstrasse 17 --- 4020 Linz --- Austria
Music: http://www.mp3.com/Leak --- Work: http://www.ssw.uni-linz.ac.at
...It might be written "Mindfuck", but it's spelt "L-A-I-N"...
np: Uusitalo - Social Selection (Vapaa Muurari Live)



HTTP/1.1 chunked encoding & Apache

2000-12-28 Thread Charles Forsythe

Am I recalling correctly that Tomcat 3.x *does not* support chunked
transfer encoder, but Tomcat 4.0 does?  How does this work if I've got
Apache as a front end (Apache does support chunked encoding).  Can
Apache decide to chunk encode a response that is supplied by Tomcat, or
is mod_jserv/jk more of a pass-through? 

-- Charles



Re: mm JDBC driver

2000-12-28 Thread Ted Husted

I can't vouch for the Apache virtual hosts part, but to make it
available for all your Tomcat applications, you can put the jar in the
lib folder, along with servlet.jar. You may also need to add it to your
classpath. 

You may get other offerings, but if not, there's a simple plug-and-play
JDBC sample web application at 

< http://husted.com/about/struts/ >

As configured, it will test a factory-default MySQL installation "out
of the box" on your local workstation. If yours is not a default
installation, you can revise the  element in the
struts-config.xml in the usual way.

This example uses the Jakarta Struts framework, but will test your JDBC
connection nonetheless.

*** REPLY SEPARATOR  ***

On 12/28/2000 at 3:27 AM Shailaja Someshwar wrote:

Hello

Where do I need to place the mm.jdbc driver for MySQL
in tomcat directory so that its available system wide
and all of the Apache virtual hosts.

Also can someone direct me to a sample application to
test my JDBC connection is working or not, as I do not
know much about Java.

Thanks in advance.

Regards,
Shailaja

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/






Re: PleaseUnsubscribe

2000-12-28 Thread James Duncan Davidson

On 12/28/00 3:15 AM, "Ravindran Venkatapathy" <[EMAIL PROTECTED]> wrote:

> Please unsubscribe me

Please follow the advice I just gave to Mark.
-- 
James Duncan Davidson[EMAIL PROTECTED]
  !try; do()




Re: unsubscribe me please

2000-12-28 Thread James Duncan Davidson

On 12/28/00 3:10 AM, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
wrote:

> unsubscribe

Send email to [EMAIL PROTECTED]

-- 
James Duncan Davidson[EMAIL PROTECTED]
  !try; do()




mm JDBC driver

2000-12-28 Thread Shailaja Someshwar

Hello

Where do I need to place the mm.jdbc driver for MySQL
in tomcat directory so that its available system wide
and all of the Apache virtual hosts.

Also can someone direct me to a sample application to
test my JDBC connection is working or not, as I do not
know much about Java.

Thanks in advance.

Regards,
Shailaja

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



PleaseUnsubscribe

2000-12-28 Thread Ravindran Venkatapathy

Please unsubscribe me

Ravindran

__
Do You Yahoo!?
Yahoo! Photos - Share your holiday photos online!
http://photos.yahoo.com/



unsubscribe me please

2000-12-28 Thread mark_mead

unsubscribe


Re: urgent...

2000-12-28 Thread Narayanan



Put the content under the web apps.
 
Create a new folder which says ur application name 
.
Put ur Jsp  under the application and create w 
web-inf and place all the class files.
 
This will work and we have tested a application 
sucessfully.
 
Regards
Narayanan.

  - Original Message - 
  From: 
  srikanth 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 29, 2000 3:26 
  PM
  Subject: urgent...
  
  
  how to install a new 
web-application?".


Re: urgent...

2000-12-28 Thread Ted Husted



Assuming the web-application is properly designed, 
put it under the webapps folder, and Tomcat will 
detect it. If it is in a WAR, Tomcat will expand 
it first. 
 
If you want to develop a web-application, see 

< http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/appdev/index.html >
 
*** REPLY SEPARATOR ***On 
12/29/2000 at 5:56 PM srikanth wrote: 

how to install a new web-application?".



Re: Pre-compiled mod_jk for Apache 1.3.11 on Linix?

2000-12-28 Thread Ralph Jensen

Eeeeh - I couldn't find one so I compiled it myself.

It worked as straightforward as described in
http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/mod_jk-howto.html
after downloading the source jakarta-tomcat-3.2.1-src.tar.gz from
http://jakarta.apache.org/builds/tomcat/release/v3.2.1/src
into TOMCAT_HOME and doing 'tar -zxvf jakarta-tomcat-3.2.1-src.tar.gz' in
TOMCAT_HOME.

I could also send you one attached to an email. In that case mail me
directly: [EMAIL PROTECTED] and allow for weekends.

Ralph


- Original Message -
From: Robert K. Hamilton <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, December 28, 2000 8:10 AM
Subject: Pre-compiled mod_jk for Apache 1.3.11 on Linix?


> Anyone have a pre-compiled mod_jk for Apache 1.3.11 on Linux?
>
> Thanks,
>
> -B
>
> --
> Robert K. Hamilton
> Senior Systems Engineer
> e-centives.com
> [EMAIL PROTECTED]
> 240.333.6178
> --
> 
> Imagine FREE personalized online coupons and special offers from
> your favorite brands. Great savings delivered directly to your own
> personalized online e-centives organizer--ready to redeem when
> you're ready to shop. Sign up for e-centives today at
> http://www.e-centives.com
> 




workers.properties etc.

2000-12-28 Thread Ralph Jensen

Is there any documentation concerning the settings in workers.properties?
The defaults which come with it are apparently for Windows but I'm using
Linux.

In particular:
worker.inprocess.jvm_lib is set to some jvm.dll. Should that be set to the
java wrapper JAVA_HOME/jre/bin/java ?

I'd also appreciate some more information concerning the interaction of
server.xml, mod_jk.conf and worker.properties. I've read through 'Working
with mod_jk', 'Tomcat workers.properties' and the minimalistic Tomcat users
guide but I'm still a bit confused where to put my servlets and how to load
them from HTML - especially the use of 'servlet' and 'servlets'.

Ralph Jensen






urgent...

2000-12-28 Thread srikanth




how to install a new web-application?".


RE: java.net.SocketException: Too many open files

2000-12-28 Thread Boaz Shaham

We had the same problem, and we also increased these limits in the OS
(Linux).
However, it seems that the JVM (1.3 by SUN) has an internal limit of around
1024: 
we created a program in c which opens FD as much as it can, and it reached
the limit specified by the OS. However, same program in java stops at 1016
(I guess it may use some FD of its own).

-Original Message-
From: Steven Newton [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 22:10
To: '[EMAIL PROTECTED]'
Subject: RE: java.net.SocketException: Too many open files



Actually it's quite easy on linux 2.2.x kernels:

echo 32768 > /proc/sys/fs/file-max
echo 65536 > /proc/sys/fs/inode-max
increases the system limit on open files, and
ulimit -n 32768
increases the current process' limit.

See http://www.kegel.com/c10k.html#limits.filehandles
and the multiple terrific links to other information
from that page.


s



RE: want to preporcess javascript files

2000-12-28 Thread Boaz Shaham

I had that problem too. Some notes:

- I dont see why a js file won't be handled like a jsp regarding source
control and revision history.

- It costs you in performance to use js in jsp - you make the Tomcat
generate them again and again for each request. I guess that the js code is
quite static and not changed between requests, so that generation is
unnecessary.

- I have a js file whose code depends on some other java classes. I have
made in java a sort of preprocessor that create it whenever a new version is
required.

If you still want to use it as jsp - try add to these files a header
indicating the mime type for js code (dont know what it is)


- Boaz

-Original Message-
From: Tim Cronin [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, December 27, 2000 23:17
To: '[EMAIL PROTECTED]'
Cc: Paul Lange; Frank Livaudais; Rex Staples
Subject: want to preporcess javascript files


I was initially using jsp files to contain javascript. This way I could
have them documented and keep revision history in them for development
then have the commenst stripped out when they were deployed to clients.

This works fine in IE. but causes Netscape to hang. I tryed to change
them back to js and add a handler to preprocess these files as well
but could not get it to work.

Any solutions?



How is DSO compiled for mod_jk.so?

2000-12-28 Thread NSB)Hiroshi Kasamatsu
 When I started apache with the cooperation between apache1.3.12 and
tomcat3.2beta8,
I had an error:
API module structue 'jk_module' in file
/usr/local/apache/libexec/mod_jk.so is garbled-
perphaps this is not an Apache module DSO?

To use mod_jk.so for Tomcat3.2beta version,apache must be compiled with
DSO.
I had a configure of apache1.3.12 like this.
./configure --enable-shared=max --enable-module=so
And I put "Include /usr/local/jakarta-tomcat/conf/mod_jk.conf-auto"

I cannot keep up with the speed of Tomcat's version-ups.

Please help me out.
Thanks in advance.

Hiroshi Kasamatsu


RE: msdev mod_jk.dsp /make all

2000-12-28 Thread oliver



Why?
I copy the mod_jk.dll file to moduler.And I run the tomcat 
first.Then I run the apache.
But the screen isn't that "Apache/1.3.14 (win 32) mod_jk 
running" .
It is " Apache/1.3.14 (win 
32) running" .
It seems no change!
 
hope u r help!
thx!
 
oliver
 
 
 
 


I recently set this up (NT4.0 Apache 1.3.14 and 
tomcat) and it works for me. You need to download the mod_jk.dll or you write 
your own. The docs say "For Win32, mod_jk is available as mod_jk.dll. If there 
isn't a prebuilt mod_jk available or you wish to build your own copy, you can 
build it yourself from the source"  Why build your own when you can use the 
.dll available at http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/ You put mod_jk.dll in your modules directory in the 
Apache web server. Also my installation of tomcat (which is correct - is in the 
Apache Group directory in the web server) which is shown in Professional JSP 
(wrox book) - follow the rest of the directions in the docs apache-tomcat 
howto. You start tomcat first and then Apache - when Apache starts the dos 
screen says "Apache/1.3.14 (win 32) mod_jk running" and I can go 
to http:localhost8080:index.html. I assume that my setup is correct - if not, 
please someone let me know.
-- Pete -- [EMAIL PROTECTED]- Original 
Message - 
From: oliverTo: 
[EMAIL PROTECTED] Sent: Wednesday, December 27, 2000 7:55 
PMSubject: MSDEV mod_jk.dsp /MAKE ALLI want to use mod_jk in the 
NT4.0 apache1.3.14 tomcat3.21.I can not find the msdev.exe and mod_jk.dsp 
files.where is the two 
files?help!thx!oliver
 


Re: MSDEV mod_jk.dsp /MAKE ALL

2000-12-28 Thread Pete Ehli



I recently set this up (NT4.0 Apache 1.3.14 and 
tomcat) and it works for me. You need to download the mod_jk.dll or you write 
your own. The docs say "For Win32, mod_jk is available as mod_jk.dll. If there 
isn't a prebuilt mod_jk available or you wish to build your own copy, you can 
build it yourself from the source"  Why build your own when you can use the 
.dll available at http://jakarta.apache.org/builds/jakarta-tomcat/release/v3.2.1/bin/win32/i386/ You put mod_jk.dll in your modules directory in the 
Apache web server. Also my installation of tomcat (which is correct - is in the 
Apache Group directory in the web server) which is shown in Professional JSP 
(wrox book) - follow the rest of the directions in the docs apache-tomcat 
howto. You start tomcat first and then Apache - when Apache starts the dos 
screen says "Apache/1.3.14 (win 32) mod_jk running" and I can go 
to http:localhost8080:index.html. I assume that my setup is correct - if not, 
please someone let me know.
-- Pete -- [EMAIL PROTECTED]- Original 
Message - 
From: 张志国 To: 
[EMAIL PROTECTED] Sent: Wednesday, December 27, 2000 7:55 
PMSubject: MSDEV mod_jk.dsp /MAKE ALLI want to use mod_jk in the 
NT4.0 apache1.3.14 tomcat3.21.I can not find the msdev.exe and mod_jk.dsp 
files.where is the two 
files?help!thx!oliver