TC + JDK1.4

2002-02-14 Thread Lauer, Oliver

Hi, 

does TC support JDK1.4 ? 

Thanx
Oliver 

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

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

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

==


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




Re: Running Tomcat for Multiple developers

2002-02-14 Thread tsmets


Don't you have a simple sys admin problem ?
As working under Unix / Linux soft links should give you some possibilities,
shouldn't it ?
A little shell-script like this ?

1°. mount ont /opt an nfs-shared d-rive where the common read-only
install is
2°. add a link there where webapp is a local dir
  Smthg like ln -s  /opt/tomcat/webbapp ~/data/webapp
(U have therefore in your userspace a reference to your own data
which are viewed as the Tomcat webapps directory)
3°.Add similar soft-links for the logging directories & other user
specific files / directories

You end up with every user sharing one remote install of Tomcat ith there
own environement  !
How to do under Zindozs :-))  dunno !

Thomas,



--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Bruxelles
yahoo-id : smetsthomas
- Original Message -
From: "Lantz Johnson" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: 15 February, 2002 1:35 AM
Subject: Running Tomcat for Multiple developers


> Hi,
>
> I need to use tomcat for 30 or so students who may or may not be logging
> onto more than one system.  How do I get multiple instance's of tomcat
> with one installation ?  I can not give everyone a separte server.xml
> file with unique port numbers because I can not figure out how to tell
> the startup.sh script where to find a server.xml file in, for example,
> everyone's home directory or how that will affect other components of the
> application.
>
> Thanks.
>
> Lantz Johnson
> Unix System Administrator
> Santa Clara University
> (408) 554-6806
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>



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




RE: Configuring apache + tomcat on separate machines

2002-02-14 Thread Anton Brazhnyk

Hi,

I've done it. Its easy if you read docs carefully. I did it with
both mod_webapp and mod_jk. (RedHat 7/Apache 1.3.20 + Win2k/Tomcat 4.0.2)

All the steps are pretty straitforward except maybe workers.properties.
Here is mine:

ps=/

worker.list=AJP13

worker.AJP13.port=8009
worker.AJP13.host=192.168.3.20
worker.AJP13.type=ajp13
worker.AJP13.lbfactor=1

in httpd.conf you have to LoadModule mod_jk.so and add something like
following (end of file is working for me)

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile logs/ajp.log
JkLogLevel error

JkMountCopy on

JkMount /tests/* AJP13
JkMount /tests AJP13

JkMount /manager/* AJP13
JkMount /manager AJP13

JkMount /tomcat-docs/* AJP13
JkMount /tomcat-docs AJP13

Hope it helps.


> -Original Message-
> From: Sharanya Vemu [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 6:28 PM
> To: Tomcat Users List
> Subject: RE: Configuring apache + tomcat on separate machines
> 
> 
> if any one hasnt done it , well the  question is can this be done 
> ?? at all
> , someone can surely reply for that atleast!!
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 3:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Configuring apache + tomcat on separate machines
> 
> 
> DOESEN'T ANYONE KNOW HOW TO DO THIS?
> SURELY SOMEONE MUST KNOW!
> 

Anton

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




RE: System.out.println

2002-02-14 Thread krithikav

Thanks, I am seeing the output now.

Regards,
Krithika

-Original Message-
From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 12:51 PM
To: [EMAIL PROTECTED]
Subject: Re: System.out.println


You can see it in the console or window where your tomcat is running.

***
Pedro Gaspar
PT Prime
DMK / GSV
Tel:  +351 21 500 41 43
Fax: +351 21 500 45 85
Email: [EMAIL PROTECTED]
***

>>> [EMAIL PROTECTED] 02/15/02 07:04 >>>
Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

Regards,
Krithika


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



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


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




RE: System.out.println

2002-02-14 Thread krithikav

Hi Pedro,
I see only the following in the consol and nothing more..
Starting service Tomcat-Standalone
Apache Tomcat/4.0
Starting service Tomcat-Apache
Apache Tomcat/4.0

Is there any problem in my installation?

Regards,
Krithika

-Original Message-
From: Pedro F Gaspar [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 12:51 PM
To: [EMAIL PROTECTED]
Subject: Re: System.out.println


You can see it in the console or window where your tomcat is running.

***
Pedro Gaspar
PT Prime
DMK / GSV
Tel:  +351 21 500 41 43
Fax: +351 21 500 45 85
Email: [EMAIL PROTECTED]
***

>>> [EMAIL PROTECTED] 02/15/02 07:04 >>>
Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

Regards,
Krithika


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



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


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




Re: System.out.println

2002-02-14 Thread Pedro F Gaspar

You can see it in the console or window where your tomcat is running.

***
Pedro Gaspar
PT Prime
DMK / GSV
Tel:  +351 21 500 41 43
Fax: +351 21 500 45 85
Email: [EMAIL PROTECTED]
***

>>> [EMAIL PROTECTED] 02/15/02 07:04 >>>
Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

Regards,
Krithika


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



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




RE: How to redirect port 8080 to port 443?

2002-02-14 Thread Anton Brazhnyk

Hi,

> -Original Message-
> From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 6:06 PM
> To: [EMAIL PROTECTED]
> Subject: How to redirect port 8080 to port 443?
> 
> 
> Greetings!
> 
> I am moving from an insecure to a secure server for Tomcat.  Currently,
> I have both ports 8080 (for http) and ports 443 (for https) enabled in
> my server.xml.file.
> 
> Now I have must remove port 8080 (insecure).
> 
> Is there a way to redirect port 8080 to port 443 within server.xml?  Is
> there an *easy* way?   (i.e. the setup is currently very stable and
> simple - I don't want to start trying to enable multiple virtual servers
> or contexts or anything like that - just a simple port redirection (if
> possible).
> 

Do you want to remove it or redirect it?
If you remove it you won't be able to access that port and thereof do
redirections. All you need is to remove or comment out Connector
with port="8080" attribute in server.xml
If you want to redirect requests from 8080 to 443 you have to
add/change the redirectPort attribute in that Connector and
add some SecurityConstraints to web.xml in your application.

These topics are covered in the SSL HOWTO of TC docs and
in Servlet Specification (Security)

> Thanks in advance for your assistance.
> 
> -Richard
> 
> 

Anton

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




System.out.println

2002-02-14 Thread krithikav

Hi,
Where do I see the output from System.out.println given in a java class
placed under WEB-INF\classes? I am new to Tomcat and developing a sample
application.

Regards,
Krithika


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




RE: ASP and JSP with no redirection

2002-02-14 Thread Sergei Batiuk

There is an option:

You can use the io taglib from http://jakarta.apache.org/taglibs, which
makes it possible
to make up a page from various sources. Your JSP should look like:
<%@ taglib uri="iotags" prefix="io"%>

<%
myEJB.myMethod();
%>
http://iisServer/m$Page.asp"/>
<%
java().stuff().again();
%>

This way you can create a single page from any http/ftp/file resources you
can think of.

Sincerely,
Sergei Batiuk.

-Original Message-
From: George Shafik [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 3:57 AM
To: [EMAIL PROTECTED]
Subject: ASP and JSP with no redirection


Hi All,

Just wondering if there is another way to integrate both JSP and ASP
together in the one page without redirection through a specific port.

Is it possible to combine both an ASP and JSP page together thus giving you
the ability to access a COM and EJB object on the same page ?

I know this sounds crazy but if it is possible then I would imagine its
something that needs to  be configured at the web server level such that
each Object method request is handled by its respective web server.

foo.JSP
<%

 ... myEJBBean.Method() ...
 ...myASPObj.Method()...

%>

Lets say our example is implemented on a JSP page then Tomcat/Apache will
need to know about IIS such that it passes the processing of
"myASPObj.Method() " to IIS. (no redirection)

Many thanks in advance for any feedback.

Regards,
George Shafik






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



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




More information: Getting Apache to Stop Buffering my Servlet Output

2002-02-14 Thread Bill Neuman

Sorry for the spam, but it might be significant to know what
versions of stuff I'm using.

Tomcat 3.2.3
Apache 1.3.19
jdk1.3.1
Windows NT SP6a (although I believe in the distant past
I verified this issue on Solaris as well)
Using mod_jserv, not mod_jk as the connector

These versions, and the use of mod_jserv are required by
the java application I'm developing with (according to
its documentation).

I notice that this problem DOES NOT occur if I replace mod_jserv
with mod_jk.  So, I just need to know if there is a solution that
works for mod_jserv (ideally the solution will be some
different usage of the java methods & objects on the servlet
or JSP side).

Thanks again.


Bill Neuman wrote:
> 
> Oops - I tried to use Hotmail to post because my primary ISP's mail
> server is down, and it mangled my JSP page.  So I'll repeat the
> question...
> 
> All,
> 
> This is a question that has been repeated several times on this mailing
> list, but as far as I can tell never answered.
> 
> I have a long back-end process during which I want to return interim
> results to the browser.  With a JSP, the standard way to do this seems
> to be to use out.flush() at any point where I want to return partial
> results.  This works great when I browse Tomcat's own web server
> (port 8080), but when I browse the same page served through Apache
> (port 80 for me) and serviced by Tomcat, the results all appear at
> once, rather than as I flush() them.
> 
> So, it appears Apache is adding some level of response buffering that
> I'm not asking it to do.  Does anybody know how to make this work.
> 
> Below is the code for a jsp page that demonstrates the issue--all help
> is appreciated.
> 
> ---BEGIN CODE---
> <%@page language="java" session="false"%>
> 
> 
> Delaying
> 
> Delaying...
> The following lines should appear at approx.1 second intervals.
> When served through Tomcat's own server (i.e. 8080) it works.
> When served through Apache using Tomcat as the handler, the page all
> appears at once after an approx. 5 second delay.
> 
> <%
> out.flush();
> 
> long delay = 1000;
> long start = System.currentTimeMillis();
> 
> for (int ii = 1; ii < 6; ii++) {
>while (System.currentTimeMillis() < start + delay) {
>}
>start = System.currentTimeMillis();
>%>
>Delayed a total of <%= ii %> intervals.  Pretend this is a
>message giving status on task execution in a long string of
>tasks.
> 
><%
>System.out.print(" ii=" + ii + "; ");
>out.flush();
> }
> 
> System.out.println("");
> %>
> 
> 
> ---END CODE---
> 
> P.S. I've also tried request.flushBuffer() based on responses
> to one of the previous questions about this, but that is even
> worse--if I use it, the "chunked" behavior doesn't even
> work when browsing Tomcat's own web server.
> 
> Regards,
> Bill Neuman

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




RE: ASP and JSP with no redirection

2002-02-14 Thread Deacon Marcus

Hi,
This not only sounds crazy but it is crazy. Suicidal even. If you absolutely
must do something like that try searching for Java-COM bridges, "simply"
mixing jsp and asp is not possible by definition, but it is possible to
access COM objects from .jsp via various Java-COM bridges. I suppose the
opposite (Java beans/EJBs from .asp) is also possible.

Greetings, deacon Marcus

> -Original Message-
> From: George Shafik [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 15, 2002 2:57 AM
> To: [EMAIL PROTECTED]
> Subject: ASP and JSP with no redirection
>
>
> Hi All,
>
> Just wondering if there is another way to integrate both JSP and ASP
> together in the one page without redirection through a specific port.
>
> Is it possible to combine both an ASP and JSP page together thus
> giving you
> the ability to access a COM and EJB object on the same page ?
>
> I know this sounds crazy but if it is possible then I would imagine its
> something that needs to  be configured at the web server level such that
> each Object method request is handled by its respective web server.
>
> foo.JSP
> <%
>
>  ... myEJBBean.Method() ...
>  ...myASPObj.Method()...
>
> %>
>
> Lets say our example is implemented on a JSP page then Tomcat/Apache will
> need to know about IIS such that it passes the processing of
> "myASPObj.Method() " to IIS. (no redirection)
>
> Many thanks in advance for any feedback.
>
> Regards,
> George Shafik
>
>
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




RE: Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-14 Thread Manish Bhatnagar

Where are you putting your mylib.so library? It should be in $CATALINA_HOME\lib.

-Original Message-
From: Mario Fernandez [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 15, 2002 1:40 AM
To: [EMAIL PROTECTED]
Subject: Problem with JNI, Tomcat 4.0.1 and FreeBSD



> Hi everybody,
> 
> I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
> machine. I call a native method from a servlet and it doesn´t work. I get
> a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
> My classes an native code are below:
> Is it necessary to do something in Tomcat to work with JNI??
> 
> From the servlet i make the following call:
> 
> 
> 
> Library.list(null, 0);
> 
> 
> 
> My class Library is like this:
> 
> public class Library{
> 
> static {
> 
> System.loadLibrary("mylib"); // The sahred library is called libmylib.so
> and this works fine
> }
> 
> public native static void list(String name, int num);
> 
> }
> 
> 
> The function header in Library.h (generated by javah -jni Library) is:
> 
> JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
> 
> And I use this header in mylib.c
> 
> Thanks in advance
> 
> 



RE: Running Tomcat for Multiple developers

2002-02-14 Thread Ricky Leung

You can have multiple instances of tomcat with 1 installation but every
instance *must* have their own instance.

To do that, simple set JAVA_HOME to where java is installed and set
CATALINA_HOME to be where tomcat4 is installed and lastly, set CATALINA_BASE
to be that user's home directory/tomcat.

Under CATALINA_BASE, there should be a conf, logs, webapps, and work, same
as the Tomcat install should have in order to run.  Each student can then
have their own complete set of webapps and server.xml as if there's only 1
instance on the server.  But, again, the server.xml will have to use
different port numbers.

Then each student simple runs $CATALINA_HOME/bin/startup.sh and
$CATALINA_HOME/bin/shutdown.sh to start/stop tomcat, respectively.

You should provide them with an example of server.xml that they should place
under conf/ and have them just edit the port number.  Your sample should
only have 1 service and you can delete the bottom  tag used for
apache integration.

The Tomcat4 documentation area has more detail info on this under the
configuration section.

Ricky

-Original Message-
From: Lantz Johnson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 7:36 PM
To: [EMAIL PROTECTED]
Subject: Running Tomcat for Multiple developers


Hi,

I need to use tomcat for 30 or so students who may or may not be logging
onto more than one system.  How do I get multiple instance's of tomcat
with one installation ?  I can not give everyone a separte server.xml
file with unique port numbers because I can not figure out how to tell
the startup.sh script where to find a server.xml file in, for example,
everyone's home directory or how that will affect other components of the
application.

Thanks.

Lantz Johnson
Unix System Administrator
Santa Clara University
(408) 554-6806


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



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




RE: Popup Browser Windows & Tomcat Realm Authentication

2002-02-14 Thread Ricky Leung

I'm not sure if this would work, but I am guessing that your popup
immediately opens and your original window didn't do a thing.  If you allow
your parent authenticate and go to a authenticated page, it would be fine.
Then simply have that page popup the window that you wanted.  This idea is
similar to the way many sites having an auto-popup of advertisement when you
enters their main page.  Give that a try.

Ricky

-Original Message-
From: Kennedy Clark [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 8:59 PM
To: [EMAIL PROTECTED]
Subject: Popup Browser Windows & Tomcat Realm Authentication


I'm using Tomcat 4.0.1 to develop a web-site application that needs to use
popup browser windows.  I have the main page protected by a JDBCRealm and
it's working nicely.  Now that I've added the popups, the popup window
opens fine using the authentication of the main windows.  However, when you
close the popup, you cannot do anything in the main windows without having
to re-authenticate.  I've tried using both a "target=" attribute on an "mailto:[EMAIL PROTECTED]>
For additional commands: 
Troubles with the list: 



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




ASP and JSP with no redirection

2002-02-14 Thread George Shafik

Hi All,

Just wondering if there is another way to integrate both JSP and ASP
together in the one page without redirection through a specific port.

Is it possible to combine both an ASP and JSP page together thus giving you
the ability to access a COM and EJB object on the same page ?

I know this sounds crazy but if it is possible then I would imagine its
something that needs to  be configured at the web server level such that
each Object method request is handled by its respective web server.

foo.JSP
<%

 ... myEJBBean.Method() ...
 ...myASPObj.Method()...

%>

Lets say our example is implemented on a JSP page then Tomcat/Apache will
need to know about IIS such that it passes the processing of
"myASPObj.Method() " to IIS. (no redirection)

Many thanks in advance for any feedback.

Regards,
George Shafik






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




Popup Browser Windows & Tomcat Realm Authentication

2002-02-14 Thread Kennedy Clark

I'm using Tomcat 4.0.1 to develop a web-site application that needs to use 
popup browser windows.  I have the main page protected by a JDBCRealm and 
it's working nicely.  Now that I've added the popups, the popup window 
opens fine using the authentication of the main windows.  However, when you 
close the popup, you cannot do anything in the main windows without having 
to re-authenticate.  I've tried using both a "target=" attribute on an "mailto:[EMAIL PROTECTED]>
For additional commands: 
Troubles with the list: 




Running Tomcat for Multiple developers

2002-02-14 Thread Lantz Johnson

Hi,

I need to use tomcat for 30 or so students who may or may not be logging
onto more than one system.  How do I get multiple instance's of tomcat
with one installation ?  I can not give everyone a separte server.xml
file with unique port numbers because I can not figure out how to tell
the startup.sh script where to find a server.xml file in, for example,
everyone's home directory or how that will affect other components of the 
application.  

Thanks.

Lantz Johnson
Unix System Administrator
Santa Clara University
(408) 554-6806


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




Re: Did the default HTTP expires header change in Tomcat?

2002-02-14 Thread Remy Maucherat

> Yeah, I just tried my application in 4.0.1 and it doesn't expire.
Something
> seems to have changed in 4.0.2.

Yes, the content which is protected through a security constraint is marked
as non cacheable (which fixes a security problem where a proxy would cache
the pages).

Remy


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




Re: Did the default HTTP expires header change in Tomcat?

2002-02-14 Thread Jonathan Eric Miller

Yeah, I just tried my application in 4.0.1 and it doesn't expire. Something
seems to have changed in 4.0.2.

Jon

- Original Message -
From: "Jonathan Eric Miller" <[EMAIL PROTECTED]>
To: "Tomcat User List" <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 6:14 PM
Subject: Did the default HTTP expires header change in Tomcat?


> In the applications that I'm developing, I used to be able to click on the
> Web browser back button to return to a page that contained form data that
> was generated by a HTTP post. I noticed that it now gives me an error
> message like "Page has Expired" when I try to do it. It does this in both
IE
> and Netscape. It never used to do this. Did the behavior in Tomcat change?
>
> If so, what do I need to do to return to the previous behavior? Set an
HTTP
> header like "expires" or something?
>
> I noticed the following in the release notes in the fixed bugs section.
> Could this have something to do with it?
>
> 6151  Manager servlet behaves bad in IE without an "Expires: -1" http
header
>
> Jon
>
>


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




Let's try this again: Getting Apache to Stop Buffering my Servlet Output

2002-02-14 Thread Bill Neuman

Oops - I tried to use Hotmail to post because my primary ISP's mail
server is down, and it mangled my JSP page.  So I'll repeat the
question...


All, 

This is a question that has been repeated several times on this mailing 
list, but as far as I can tell never answered. 

I have a long back-end process during which I want to return interim
results to the browser.  With a JSP, the standard way to do this seems
to be to use out.flush() at any point where I want to return partial
results.  This works great when I browse Tomcat's own web server
(port 8080), but when I browse the same page served through Apache
(port 80 for me) and serviced by Tomcat, the results all appear at
once, rather than as I flush() them. 

So, it appears Apache is adding some level of response buffering that
I'm not asking it to do.  Does anybody know how to make this work. 

Below is the code for a jsp page that demonstrates the issue--all help
is appreciated. 

---BEGIN CODE--- 
<%@page language="java" session="false"%>


Delaying

Delaying...
The following lines should appear at approx.1 second intervals.
When served through Tomcat's own server (i.e. 8080) it works.
When served through Apache using Tomcat as the handler, the page all
appears at once after an approx. 5 second delay.

<%
out.flush();

long delay = 1000;
long start = System.currentTimeMillis();

for (int ii = 1; ii < 6; ii++) {
   while (System.currentTimeMillis() < start + delay) {
   }
   start = System.currentTimeMillis();
   %>
   Delayed a total of <%= ii %> intervals.  Pretend this is a
   message giving status on task execution in a long string of
   tasks.

   <%
   System.out.print(" ii=" + ii + "; ");
   out.flush();
}

System.out.println("");
%>


---END CODE--- 


P.S. I've also tried request.flushBuffer() based on responses
to one of the previous questions about this, but that is even
worse--if I use it, the "chunked" behavior doesn't even
work when browsing Tomcat's own web server.

Regards, 
Bill Neuman

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




Did the default HTTP expires header change in Tomcat?

2002-02-14 Thread Jonathan Eric Miller

In the applications that I'm developing, I used to be able to click on the
Web browser back button to return to a page that contained form data that
was generated by a HTTP post. I noticed that it now gives me an error
message like "Page has Expired" when I try to do it. It does this in both IE
and Netscape. It never used to do this. Did the behavior in Tomcat change?

If so, what do I need to do to return to the previous behavior? Set an HTTP
header like "expires" or something?

I noticed the following in the release notes in the fixed bugs section.
Could this have something to do with it?

6151  Manager servlet behaves bad in IE without an "Expires: -1" http header

Jon



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




Re: Error Executing JSPs

2002-02-14 Thread Arnaldo Riquelme

 Copying JAVA_HOME/lib/tools.jar to CATALINA_HOME/lib/  did the trick.
Thanks a lot for all your help.


>
> Without modifying the startup script I don't believe this will help
> - Tomcat ignores any CLASSPATH variable you might have set.  Instead, the
> JAVA_HOME must be set so that JAVA_HOME/lib/tools.jar is valid, or
tools.jar
> needs to be copied (or symlinked) to the TOMCAT_HOME/lib/container
> directory.
>
> Randy



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




Not finding class, mistakenly looking for "null"

2002-02-14 Thread James Adams

Hello,

I have a web application which is not finding a tag handler class, it is mistakenly 
looking for "null".  The classes for this tag
handler is located in the WEB-INF/classes directory and is declared in web.xml.  The 
web application works as advertised on another
system which is running Tomcat version 4.0.1.   This server is also at version 4.0.1 
but obviously it still needs some
configuration before things are as they should be.

Some things to consider:

* The front page of my application is a JSP which appears as it should.
* The default Tomcat page, index.html doesn't appear when I try http://localhost:8080, 
I get a 404 Not Found message
* When I go to a page which utilizes the custom tag I get the following exception 
messages:

org.apache.jasper.compiler.CompileException: 
/var/tomcat4/webapps/dataview/Level2InteractiveSelect.jsp(48,8) Unable to load class
null
at org.apache.jasper.compiler.TagBeginGenerator.init(TagBeginGenerator.java)
at 
org.apache.jasper.compiler.JspParseEventListener$GeneratorWrapper.init(JspParseEventListener.java)


The tag library class is properly declared in web.xml and has a proper tld in 
WEB-INF/tlds, or at least I think it is proper since
it is working on the other machine which is running version 4.0.1.  Perhaps I have my 
jsp or tlib versions in the tld mixed up
?  Here's the tld for the taghandler in question:


--



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




  1.1
  1.2
  errorMessages
  
  A tag library to display error messages

  
message
dataview.taghandler.ErrorMessagesTagHandler
Outputs an error message corresponding to the key provided, if 
present

  key
  false

  



---


Can anyone suggest what to do or where to look in order to figure this out ?  This is 
an upgrade from Tomcat 3.2.1, perhaps there
are old files from the previous version which are wreaking havoc ?  The system in 
question is running Red Hat 7.2 and when I enter
the following command

rpm -qa | grep tomcat

I see both versions present.  Perhaps I should remove the tomcat-3.2.1-1 RPM ?

Thanks in advance for any suggestions.


-James


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




HttpResponse.sendRedirect problem with apache tomcat mod_webapp

2002-02-14 Thread remy menetrieux

Hi,

   I have this configuration :
Apache 1.3.19 on port 80
mod_webapp (downloded with tomcat 4.0.1)
tomcat 4.0.2 on port 8080 and warp connector on 8008
When I 'm connect to apache
all seems ok but when a servlet make a HttpResponse.sendRedirect i have 
an dns error to display.
but when i connect on port 8080 all is ok and HttpResponse.sendRedirect 
works too
Have you any idea ???
regards
Remy


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




Tomcat 4.0.2 problem with JDK 1.2.2

2002-02-14 Thread Adrian Prezioso

I have installed Tomcat 4.0.2 running with IIS 5.0
using JDK 1.2.2.  Tomcat starts fine, but when I make
a request to my application, I get the following
error:

java.lang.NoSuchMethodError: java.net.Socket: method
setKeepAlive(Z)V not found
at
org.apache.ajp.tomcat4.Ajp13Connector.run(Ajp13Connector.java,
Compiled Code)
at java.lang.Thread.run(Thread.java:479)

I then changed the JDK to 1.3.1 and I no longer get
the exception, but my application doesn't work
properly because it requires 1.2.2.  I can't
understand why JDK 1.2.2 seems to be the problem when
it clearly states in the Tomcat documentation that it
supports 1.2 and higher.  Any ideas how I can get
Tomcat 4.0 to work with JDK 1.2.2??

-Adrian

__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Getting Apache to Stop Buffering my Servlet Output

2002-02-14 Thread Bill Neuman

All,

This is a question that has been repeated several times on this mailing 
list, but as far as I can tell never answered.

I have a long back-end process during which I want to return interim results 
to the browser.  With a JSP, the standard way to do this seems to be to use 
out.flush() at any point where I want to return partial results.  This works 
great when I browse tomcat's own web server (port 8080), but when I browse 
the same page served through Apache (port 80 for me) and serviced by Tomcat, 
The results all appear at once, rather than as I flush() them.

So, it appears Apache is adding some level of response buffering that I'm 
not asking it to do.  Does anybody know how to make this work.

Below is the code for a jsp page that demonstrates the issue--all help is 
appreciated.

---BEGIN CODE---
<%@page language="java" session="false"%>


Delaying

Delaying...
The following lines should appear at approx.1 second intervals.
When served through Tomcat's own server (i.e. 8080) it works.
When served through Apache using Tomcat as the handler, the page all
appears at once after an approx. 5 second delay.

<%
out.flush();

long delay = 1000;
long start = System.currentTimeMillis();

for (int ii = 1; ii < 6; ii++) {
   while (System.currentTimeMillis() < start + delay) {
   }
   start = System.currentTimeMillis();
   %>
   Delayed a total of <%= ii %> intervals.  Pretend this is a message
   giving status on task execution in a long string of tasks.

   <%
   System.out.print(" ii=" + ii + "; ");
   out.flush();
}

System.out.println("");
%>


---END CODE---

Regards,
Bill Neuman

_
Join the world’s largest e-mail service with MSN Hotmail. 
http://www.hotmail.com


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




RE: null DataSource when trying to get JNDI InitialContext

2002-02-14 Thread George M. Coles

Thanks.

Now I have corrected that. Still no change - the DataSource retrieved is
null.

George Coles

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 4:56 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: null DataSource when trying to get JNDI InitialContext


On Thu, 14 Feb 2002, George M. Coles wrote:

> Date: Thu, 14 Feb 2002 15:53:17 -0500
> From: George M. Coles <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: null DataSource when trying to get JNDI InitialContext
>
> Hi all,
>   I am using tomcat for the firs time. I have v. 4.02, using jdk 1.4.
>
> I am attempting to deploy my app, which uses JNDI to look up a connection
> for its data access. I am using DB2 I have  placed the db2 jdbc zip file
in
> my WEB-INF/libs dir. My server.xml looks like this:
>
>   debug="5"
> privileged="true">
>type="javax.sql.DataSource" description="Pathline Database">
>   
>   
>   
>driverClassName
>   
>COM/ibm/db2/jdbc/app/DB2Driver
>   
>   
>   driverName
>   
>jdbc:db2:PATHLINE
>   
>   
>   user
>   db2admin
>   
>   
>   password
>   password
>   
>   
>   
>   
>
>
> When I do my context lookup, which should return a DataSource, the
> DataSource is null. I do not, however, get a naming exception, as I would
> expect if the resource could not be found.
>
> Has anyone had a similar experience? I am not quite knowlegeable enough
> about JNDI or Tomcat to see where my problem is.
>
> thanks,
> George Coles
>

The  element should *not* be nested inside the 
element.  Instead, it should *follow*  at the same level.


  
  
... parameter elements ...
  


Craig


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




Tomcat 3.3a and context loading order

2002-02-14 Thread Mario Felarca

Hello,

In Tomcat 3.2.x one could specify the order in which contexts were 
initialized by the order in which they were entered in the server.xml file.

In Tomcat 3.3 I have not found a way to do this yet, short of putting the 
contexts into one file (be it the server.xml file or an apps-ordered.xml 
file). Does anyone know of a better way to do this?

Thanks in advance,

Mario-


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


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




RE: Tomcat - OMVS/S390 - Urgent

2002-02-14 Thread Ignacio J. Ortega

> De: Brown Bay [mailto:[EMAIL PROTECTED]]
> Enviado el: jueves 14 de febrero de 2002 22:42

> Has anyone got Tomcat (any version) running under OMVS on S390.
> 
> Please let me know.

I Think this can be done at least with tomcat 3.3, Henri please can
expand a little to this gentleman, i know you know :)..

Saludos ,
Ignacio J. Ortega



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




Re: null DataSource when trying to get JNDI InitialContext

2002-02-14 Thread Craig R. McClanahan

On Thu, 14 Feb 2002, George M. Coles wrote:

> Date: Thu, 14 Feb 2002 15:53:17 -0500
> From: George M. Coles <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: null DataSource when trying to get JNDI InitialContext
>
> Hi all,
>   I am using tomcat for the firs time. I have v. 4.02, using jdk 1.4.
>
> I am attempting to deploy my app, which uses JNDI to look up a connection
> for its data access. I am using DB2 I have  placed the db2 jdbc zip file in
> my WEB-INF/libs dir. My server.xml looks like this:
>
>   debug="5"
> privileged="true">
>type="javax.sql.DataSource" description="Pathline Database">
>   
>   
>   
>driverClassName
>   
>COM/ibm/db2/jdbc/app/DB2Driver
>   
>   
>   driverName
>   
>jdbc:db2:PATHLINE
>   
>   
>   user
>   db2admin
>   
>   
>   password
>   password
>   
>   
>   
>   
>
>
> When I do my context lookup, which should return a DataSource, the
> DataSource is null. I do not, however, get a naming exception, as I would
> expect if the resource could not be found.
>
> Has anyone had a similar experience? I am not quite knowlegeable enough
> about JNDI or Tomcat to see where my problem is.
>
> thanks,
> George Coles
>

The  element should *not* be nested inside the 
element.  Instead, it should *follow*  at the same level.


  
  
... parameter elements ...
  


Craig


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




Re: mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread jonathan

On Thu, Feb 14, 2002 at 04:43:38PM -0500, Matt Egyhazy wrote:
> how does this affect performance?  i think that is the major concern with
> all 'reloading' features.

I'm not sure... :) I only just got it working, so I'm still testing it.

Every time an endpoint to a tomcat is requested I stat the
workers.properties file, if it has changed, the load-balancer
reconfigures itself. The reconfiguration does cause a small delay
response to any incoming requests as mod_jk has to open a new socket to
the desired tomcat.

Put it this way, I think it is quicker to reload the load-balanced
workers than to do a graceful apache restart. It is also cool to edit
the properties file, save it, and watch an immediate change in the
results coming to the script hammering your website... :)

I'm thinking about adding a minimum time between stats on the
workers.properties file. :)

Note: Currently the code only supports reconfiguring workers that are
under a load-balancer.

I guess this functionality is only required if you are frequently changing
the workers.properties file for some reason.

Anyone got any other ideas/requests and more importantly advice?

Jonathan.

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




Tomcat - OMVS/S390 - Urgent

2002-02-14 Thread Brown Bay

Has anyone got Tomcat (any version) running under OMVS on S390.

Please let me know.

Thanks in advance.

Brown.

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




Re: tomcat4 and load balancing with apache

2002-02-14 Thread jonathan

On Thu, Feb 14, 2002 at 04:31:20PM -0500, Ricky Leung wrote:
> I am getting mixed answers from the documentations.  Does Tomcat4
> support load-balancing with mod_jk?

Tomcat 4.0.2-b2 and TC 4.0.2 support load-balancing.

Note: if you want the http://www.ubeans.com/tomcat/index.html guide:

Apache 1.3.23 + Tomcat 4.0.2 + Load Balancing
January 24, 2002 by Pascal Forget

email me and I'll sent you a copy.

Jonathan.

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




Re: mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread Matt Egyhazy

how does this affect performance?  i think that is the major concern with
all 'reloading' features.

matt
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 3:56 PM
Subject: mod_jk: Auto reloading workers.properties file.


> Hi all,
>
> I've written a small patch for mod_jk that automaticly reloads the
> workers.properties file when ever it is changed.
>
> Currently it only works with apache-1.3 but it trivial to make it work
> with the others.
>
> Is anyone interested in using this patch?
>
> Jonathan.
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>


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




tomcat4 and load balancing with apache

2002-02-14 Thread Ricky Leung

Hi,

I am getting mixed answers from the documentations.  Does Tomcat4 support
load-balancing with mod_jk?  I know it doesn't with mod_webapp but any idea
when that feature will be out?  Also, in the release notes, it says that
there is now a Webapp 1.0.2, where can I download this?  I only see the one
in Tomcat4.0.1 but it's webapp-module-1.0, not 1.0.2.  I also looked at the
src of the connectors but not in there either,
jakarta-tomcat-connectors-4.0.2-01-src.

Thanks.
Ricky


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




RE: null DataSource when trying to get JNDI InitialContext

2002-02-14 Thread George M. Coles

Yes, I caught that directly after posting. Careless. I get the same result,
though, after that edit.

-Original Message-
From: Yoav Shapira [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 4:12 PM
To: Tomcat Users List
Subject: Re: null DataSource when trying to get JNDI InitialContext


Hi,
I'm not sure if it matters, but did you try giving the name
of the driver class separated by periods instead of slashes, e.g.
com.ibm.db2.jdbc.app.DB2Driver
?

Yoav Shapira

"George M. Coles" wrote:
>
> Hi all,
> I am using tomcat for the firs time. I have v. 4.02, using jdk
1.4.
>
> I am attempting to deploy my app, which uses JNDI to look up a connection
> for its data access. I am using DB2 I have  placed the db2 jdbc zip file
in
> my WEB-INF/libs dir. My server.xml looks like this:
>
>  privileged="true">
>  type="javax.sql.DataSource" description="Pathline Database">
> 
> 
>
driverClassName
>
COM/ibm/db2/jdbc/app/DB2Driver
> 
> 
>
driverName
>
jdbc:db2:PATHLINE
> 
> 
>
user
>
db2admin
> 
> 
>
password
>
password
> 
> 
> 
> 
>
> When I do my context lookup, which should return a DataSource, the
> DataSource is null. I do not, however, get a naming exception, as I would
> expect if the resource could not be found.
>
> Has anyone had a similar experience? I am not quite knowlegeable enough
> about JNDI or Tomcat to see where my problem is.
>
> thanks,
> George Coles
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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


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




Re: null DataSource when trying to get JNDI InitialContext

2002-02-14 Thread Yoav Shapira

Hi,
I'm not sure if it matters, but did you try giving the name
of the driver class separated by periods instead of slashes, e.g.
com.ibm.db2.jdbc.app.DB2Driver
?

Yoav Shapira

"George M. Coles" wrote:
> 
> Hi all,
> I am using tomcat for the firs time. I have v. 4.02, using jdk 1.4.
> 
> I am attempting to deploy my app, which uses JNDI to look up a connection
> for its data access. I am using DB2 I have  placed the db2 jdbc zip file in
> my WEB-INF/libs dir. My server.xml looks like this:
> 
> debug="5"
> privileged="true">
> auth="Container"
> type="javax.sql.DataSource" description="Pathline Database">
> 
> 
> 
>driverClassName
> 
>COM/ibm/db2/jdbc/app/DB2Driver
> 
> 
> 
>driverName
> 
>jdbc:db2:PATHLINE
> 
> 
> user
> 
>db2admin
> 
> 
> password
> 
>password
> 
> 
> 
> 
> 
> When I do my context lookup, which should return a DataSource, the
> DataSource is null. I do not, however, get a naming exception, as I would
> expect if the resource could not be found.
> 
> Has anyone had a similar experience? I am not quite knowlegeable enough
> about JNDI or Tomcat to see where my problem is.
> 
> thanks,
> George Coles
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




null DataSource when trying to get JNDI InitialContext

2002-02-14 Thread George M. Coles

Hi all,
I am using tomcat for the firs time. I have v. 4.02, using jdk 1.4.

I am attempting to deploy my app, which uses JNDI to look up a connection
for its data access. I am using DB2 I have  placed the db2 jdbc zip file in
my WEB-INF/libs dir. My server.xml looks like this:






driverClassName

COM/ibm/db2/jdbc/app/DB2Driver


driverName

jdbc:db2:PATHLINE


user
db2admin


password
password






When I do my context lookup, which should return a DataSource, the
DataSource is null. I do not, however, get a naming exception, as I would
expect if the resource could not be found.

Has anyone had a similar experience? I am not quite knowlegeable enough
about JNDI or Tomcat to see where my problem is.

thanks,
George Coles


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




RE: Error Executing JSPs

2002-02-14 Thread Randy Layman


Without modifying the startup script I don't believe this will help
- Tomcat ignores any CLASSPATH variable you might have set.  Instead, the
JAVA_HOME must be set so that JAVA_HOME/lib/tools.jar is valid, or tools.jar
needs to be copied (or symlinked) to the TOMCAT_HOME/lib/container
directory.

Randy


> -Original Message-
> From: KC Berg [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 3:02 PM
> To: 'Tomcat Users List'
> Subject: RE: Error Executing JSPs
> 
> 
> One more thing make sure that the JAVA_HOME/lib/tools.jar is in your
> CLASSPATH.
> 
> -Original Message-
> From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 12:51 PM
> To: TomcatUser
> Subject: Error Executing JSPs
> 
> 
> 
> I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 
> linux machine
> with Sun J2SDK1.4.0.
> I installed the following rpms:
> regexp-1.2-1.noarch.rpm
> servletapi4-4.0.2-1.noarch.rpm
> xerces-j-1.4.4-1.noarch.rpm
> tomcat4-webapps-4.0.2-1.noarch.rpm
> tomcat4-4.0.2-1.noarch.rpm
> The installation is pretty straight forward but I'm having problems
> executing the JSP examples.
> The servlets executed just fine but when I try to run the JSP 
> examples I get
> the exeption bellow.
> 
> Any help on pointing out what I'm missing will be greatly apreciated.
> Thanks
> 
> 
> Arnaldo
> 
> ===
> type Exception report
> message Internal Server Error
> description The server encountered an internal error 
> (Internal Server Error)
> that prevented it from fulfilling this request.
> exception
> javax.servlet.ServletException: sun/tools/javac/Main
>  at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
>  at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>  at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilt
> er(Application
> FilterChain.java:247)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(Appli
> cationFilterCh
> ain.java:193)
>  at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
> rapperValve.ja
> va:243)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContextValve.invoke(StandardC
> ontextValve.ja
> va:190)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
> henticatorBase
> .java:475)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardContext.invoke(StandardContex
> t.java:2343)
>  at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHost
> Valve.java:180
> )
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
> spatcherValve.
> java:170)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
> Valve.java:170
> )
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValv
> e.java:468)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 64)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
> gineValve.java
> :174)
>  at
> org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
> ipeline.java:5
> 66)
>  at
> org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
> ine.java:472)
>  at 
> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
>  at
> org.apache.catalina.connector.http.HttpProcessor.process(HttpP
> rocessor.java:
> 1012)
>  at
> org.apache.catalina.connector.http.HttpProcessor.run(HttpProce
> ssor.java:1107
> )
>  at java.lang.Thread.run(Thread.java:484)
> 
> root cause
> java.lang.NoClassDefFoundError: sun/tools/javac/Main
>  at
> org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaComp
> iler.java:136)
>  at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
>  at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
>  at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfN
> ecessary(JspSe
> rvlet.java:177)
>  at
> org.apache.ja

RE: Error Executing JSPs

2002-02-14 Thread KC Berg

One more thing make sure that the JAVA_HOME/lib/tools.jar is in your
CLASSPATH.

-Original Message-
From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:51 PM
To: TomcatUser
Subject: Error Executing JSPs



I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 linux machine
with Sun J2SDK1.4.0.
I installed the following rpms:
regexp-1.2-1.noarch.rpm
servletapi4-4.0.2-1.noarch.rpm
xerces-j-1.4.4-1.noarch.rpm
tomcat4-webapps-4.0.2-1.noarch.rpm
tomcat4-4.0.2-1.noarch.rpm
The installation is pretty straight forward but I'm having problems
executing the JSP examples.
The servlets executed just fine but when I try to run the JSP examples I get
the exeption bellow.

Any help on pointing out what I'm missing will be greatly apreciated.
Thanks


Arnaldo

===
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.inv

mod_jk: Auto reloading workers.properties file.

2002-02-14 Thread jonathan

Hi all,

I've written a small patch for mod_jk that automaticly reloads the
workers.properties file when ever it is changed.

Currently it only works with apache-1.3 but it trivial to make it work
with the others.

Is anyone interested in using this patch?

Jonathan.

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




tomcat 4.0.2 compiling client auth source ?

2002-02-14 Thread Stephen_Magennis

Hi
  I know in the tomcat 4.0.2 source code, the line in
SSLServerSocketFactory.java
for enabling the trustManagerFactory is commented
out this disabling the client authentication capability.

// Create the trust manager factory used for checking certificates
/*
trustManagerFactory = TrustManagerFactory.getInstance(algorithm);
trustManagerFactory.init(keyStore);
*/

Is this functionality definitely unusable at the moment ?
Is it possible to uncomment the lines and recompile with the
TrustManagerFactory to enable client authentication ?

Any anticipated timeline when 4.0 client authentication will be enabled.

Any info/direction would be greatly appreciated as we are trying to do
client authenication with tomcat standalone without having to go the
apache/tomcat router.

Many Thanks
Stephen
[EMAIL PROTECTED]



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

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


**


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




Re: Configuring apache + tomcat on separate machines

2002-02-14 Thread Keith Simpson

Try workers.properties file - that is read by the mod_jk module (via the
include directive in the httpd.conf)  I think and has host settings for
ajp connectors.  As I said, never done it, but gotta work somehow!


"Eswar.K" wrote:
> 
> how would the apache server know on which IP address the tomcat is running?
> from the tomcat side it is fine, but how about the communication from apache
> to tomcat...
> 
> -Original Message-
> From: Keith Simpson [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 10:14 PM
> To: Tomcat Users List
> Subject: Re: Configuring apache + tomcat on separate machines
> 
> Would think it would have to be possible.  since they communicate via
> ajp protocol, you just need to specify something other than localhost on
> the tomcat side I would think.  the ajp stuff has default ports of
> something like 8007 and 8009.
> 
> Sharanya Vemu wrote:
> >
> > if any one hasnt done it , well the  question is can this be done ?? at
> all
> > , someone can surely reply for that atleast!!
> >
> > -Original Message-
> > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> > Sent: Thursday, February 14, 2002 3:31 AM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Configuring apache + tomcat on separate machines
> >
> > DOESEN'T ANYONE KNOW HOW TO DO THIS?
> > SURELY SOMEONE MUST KNOW!
> >
> > --
> > To unsubscribe:   
> > For additional commands: 
> > Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: Error Executing JSPs

2002-02-14 Thread Arnaldo Riquelme




> is your JAVA_HOME system var set to piont at the JDK home? it should be.
>
Yes
I set JAVA_HOME="/usr/java/j2sdk1.4.0  in the tomcat config file
/etc/tomcat4/conf/tomcat4.conf




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




RE: Error Executing JSPs

2002-02-14 Thread KC Berg

is your JAVA_HOME system var set to piont at the JDK home? it should be.

-Original Message-
From: Arnaldo Riquelme [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 12:51 PM
To: TomcatUser
Subject: Error Executing JSPs



I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 linux machine
with Sun J2SDK1.4.0.
I installed the following rpms:
regexp-1.2-1.noarch.rpm
servletapi4-4.0.2-1.noarch.rpm
xerces-j-1.4.4-1.noarch.rpm
tomcat4-webapps-4.0.2-1.noarch.rpm
tomcat4-4.0.2-1.noarch.rpm
The installation is pretty straight forward but I'm having problems
executing the JSP examples.
The servlets executed just fine but when I try to run the JSP examples I get
the exeption bellow.

Any help on pointing out what I'm missing will be greatly apreciated.
Thanks


Arnaldo

===
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(Sta

Problem with JNI, Tomcat 4.0.1 and FreeBSD

2002-02-14 Thread Mario Fernandez


> Hi everybody,
> 
> I´ve got an annoying error working with JNI and Tomcat 4.0.1 in a FreeBSD
> machine. I call a native method from a servlet and it doesn´t work. I get
> a core dumped... What do I have to do to make it works in Tomcat 4.0.1???
> My classes an native code are below:
> Is it necessary to do something in Tomcat to work with JNI??
> 
> From the servlet i make the following call:
> 
> 
> 
> Library.list(null, 0);
> 
> 
> 
> My class Library is like this:
> 
> public class Library{
> 
> static {
> 
> System.loadLibrary("mylib"); // The sahred library is called libmylib.so
> and this works fine
> }
> 
> public native static void list(String name, int num);
> 
> }
> 
> 
> The function header in Library.h (generated by javah -jni Library) is:
> 
> JNIEXPORT void JNICALL_Library_list(JNIEnv *,jobject,jobject,jint);
> 
> And I use this header in mylib.c
> 
> Thanks in advance
> 
> 



Error Executing JSPs

2002-02-14 Thread Arnaldo Riquelme


I've just installed Tomcat 4.0.2 binaries rpm on a RedHat 7.2 linux machine
with Sun J2SDK1.4.0.
I installed the following rpms:
regexp-1.2-1.noarch.rpm
servletapi4-4.0.2-1.noarch.rpm
xerces-j-1.4.4-1.noarch.rpm
tomcat4-webapps-4.0.2-1.noarch.rpm
tomcat4-4.0.2-1.noarch.rpm
The installation is pretty straight forward but I'm having problems
executing the JSP examples.
The servlets executed just fine but when I try to run the JSP examples I get
the exeption bellow.

Any help on pointing out what I'm missing will be greatly apreciated.
Thanks


Arnaldo

===
type Exception report
message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.
exception
javax.servlet.ServletException: sun/tools/javac/Main
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:485)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2343)
 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:
1012)
 at
org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1107
)
 at java.lang.Thread.run(Thread.java:484)

root cause
java.lang.NoClassDefFoundError: sun/tools/javac/Main
 at
org.apache.jasper.compiler.SunJavaCompiler.compile(SunJavaCompiler.java:136)
 at org.apache.jasper.compiler.Compiler.compile(Compiler.java:272)
 at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:552)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:177)
 at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:189)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:474)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java)
 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
 at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
 at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
 at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:475)
 at
org.apache.catalina.core.Standa

RE: reloading classes - rephrase

2002-02-14 Thread Larry Isaacs

There were some reloading problems encountered with URLClassLoader in Tomcat 3.3.
A new attribute, use11Loader,  was added to  as a workaround.
If you can, give Tomcat 3.3.1 Beta 1 a try with use11Loader="true" and see if you
still have the problem.

See:



for details.

Cheers,
Larry

> -Original Message-
> From: tamir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 2:10 PM
> To: 'Tomcat Users List'
> Subject: RE: reloading classes - rephrase
> 
> 
> Hello again,
> 
> Thank you very much for your quick response.
> 
> I read your answer and tried to refresh classes in the web-inf/lib.
> 
> Nevertheless, when I override an already existing myxxx.jar file (in
> web-inf/lib) with a newer version tomcat 3.3 gets crazy.
> 
> Our application is loading a class from myxxx.jar using 
> Class.forName and
> activates some methods in it.
> Everything is going well until we override myxxx.jar with a 
> newer jar (class
> interface hasn't been changed).
> Tomcat is refreshed well (although, losing session), however, 
> when accessing
> again the class in the jar,
> I get the following exception:
> 
> 2002-02-14 20:45:34 - Ctx(/movious) : Exception in R( 
> /movious + /portlet +
> null
> ) - java.lang.ClassFormatError: com/movious/NivPortlet 
> (Truncated class
> file)
> at java.lang.ClassLoader.defineClass0(Native Method)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:495)
> at
> org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(U
> nknown Source)
> at
> org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Un
> known Source)
> at 
> org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
> Sourc
> e)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown S
> ource)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:260)
> at 
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> at java.lang.Class.forName0(Native Method)
> at java.lang.Class.forName(Class.java:130)
> at
> com.movious.api.portlets.PortletManager.getClass(PortletManager.java:
> 578)
> at
> com.movious.api.portlets.PortletManager.createClip(PortletManager.jav
> a:532)
> at
> com.movious.api.portlets.PortletManager.getData(PortletManager.java:2
> 88)
> at
> com.movious.api.portlets.PortletServlet.doPost(PortletServlet.java:11
> 9)
> at
> com.movious.api.portlets.PortletServlet.doGet(PortletServlet.java:37)
> 
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java)
> at 
> org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
> at org.apache.tomcat.core.Handler.invoke(Unknown Source)
> at org.apache.tomcat.core.Handler.service(Unknown Source)
> at 
> org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
> at 
> org.apache.tomcat.core.ContextManager.internalService(Unknown
> Source)
> 
> at 
> org.apache.tomcat.core.ContextManager.service(Unknown Source)
> at
> org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
> Unknown Source)
> at 
> org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
> at
> org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
>  Source)
> at java.lang.Thread.run(Thread.java:579)
> 
> 
> Am i doing something wrong Dear Guru ???
> Tnx
> 
> 
> 
> -Original Message-
> From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 6:22 PM
> To: Tomcat Users List
> Subject: Re: reloading classes - rephrase
> 
> 
> 
> 
> On Thu, 14 Feb 2002, tamir wrote:
> 
> > Date: Thu, 14 Feb 2002 10:54:15 +0200
> > From: tamir <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: [EMAIL PROTECTED]
> > Subject: reloading classes - rephrase
> >
> > Hi there,
> > I've a simple question, hope there's a simple answer.
> >
> > Is it possible to do autoreload for classes not found in 
> WEB-INF/classes
> or
> > WEB-INF/lib
> > without restarting tomcat or reloading my web-app classes ?
> > (I mean i put my classes OUTSIDE the web-app).
> >
> > I'm using tomcat 3.3, but can do the advance to 4.02 if needed.
> >
> > Tnx Alot
> > for any information!
> >
> 
> The answer is simple:  no.
> 
> Java provides no mechanism for unloading a class that has already been
> loaded.  The way that reloading is implemented for a webapp 
> is to throw
> away the entire class loader used to load that webapp, and 
> starting over
> again.  If we did that for shared classes, however, you'd 
> have to restart
> *all* webapps because they would all need to be thrown away.
> 
> If you want to take advantage of the aut

RE: security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Kapasi, Mehjabin wrote:

> Date: Thu, 14 Feb 2002 10:21:54 -0800
> From: "Kapasi, Mehjabin" <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: security-role-ref not working with Tomcat 4.0.1 & .2
>
> I was also getting the same error although it was with the  tag. I
> followed the DTD correctly but still could not get rid of the error.
> I commented that section out and it worked like a charm with no errors. I am
> not sure if that is because of some tag library issue in Tomcat 4.0.1.
> If you also have a tag library associated, try commenting it out and see if
> that works.
>

The DTD doesn't just declare what elements are legal -- it also defines
the *order* in which the elements must be presented.  Put things in the
right order and it will work fine.

> -Mehjabin
>

Craig


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




Re: J2EE and Tomcat

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Reynir Hübner wrote:

> Date: Thu, 14 Feb 2002 17:27:38 -
> From: Reynir Hübner <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: J2EE and Tomcat
>
> hey guys..
>
> On that matter (J2EE & Tomcat), I've noticed one "small" difference
> between Tomcat and the jsp spec.
> Tomcat renders jsp-code that's between , the HTML comment tag.
> this means that Javascript especially can be commented out of the HTML
> for old browsers while some of the javascript code is generated by
> jsp-code.
>
> In other J2EE servers I've looked at like orion and websphere they do
> not render jsp-code with in HTML comment tags.
>
> why is this different in tomcat from others and the spec ? Or am I not
> understanding this correctly ?
>
> Well this is not a big problem (not for me at least), but I assume many
> people are using tomcat as a developement tool, and if they are
> developing something accordingly to how Tomcat handles it, they might
> face a problem when migrating to other J2EE servers... but then again,
> they haven't been developing according to the spec...
>
> ... so, why break the spec ?
>

Can you provide an example of what you mean by this?  Tomcat's JSP
compiler renders HTML comments only if you include them in the original
JSP page (or you use a custom tag that creates them) -- it doesn't add or
remove any by itself.

> thanx
> [EMAIL PROTECTED]
>

Craig McClanahan


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




Re: NO jaxp.jar --- WHY NOT?? Any smarty pants out there?

2002-02-14 Thread Mark Teegarden

The answer is on Cocoon's documentation. Goto this url
  http://xml.apache.org/cocoon/installing/index.html 
and search for jaxp on this webpage.

>>> [EMAIL PROTECTED] 02/14/02 12:58PM >>>
The Sun XML pack includes jaxp-1.2-ea-1 but that only includes xerces.jar 
and xalan.jar and docs.  What do we do with applications that have 
instructions calling for jaxp.jar??

Eh?  I am not Canadian, but am on the Eh Team.  ;-)

At 09:52 AM 2/14/02 -0500, you wrote:
>Hi,
>It's in the Sun XML pack (among other places), at
>http://java.sun.com/xml/downloads/javaxmlpack.html 
>
>Yoav Shapira
>
>
>[EMAIL PROTECTED] wrote:
> >
> > I got it about 6 months ago and you're right, I can't seem
> > to find it again.
> >
> >
> >> Where did you find jaxp.jar, if you 
> did?  I
> >> have been looking everywhere
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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



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




RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Dahnke, Eric


Do a man chpasswd from the linux command line. See the format it expects
(user_name:password). Just write the username and pw into a file using that
format from your tomcat app. (say the file is: /tmp/new_pw). chown new_pw to
nobody.nobody or chmod it 666.

Then in your /etc/crontab file add:

05 * * * * root chpasswd /tmp/new_pw

This will run the chpasswd as root every 5 seconds. Actually rather than
calling chpasswd from cron I would create a shell script that does some
checking to make sure that your web app isn't trying to change the pw for
root or any other important system users. And that also empties the file
new_pw after chpasswd is run. Be careful. Don't look yourself out of your
machine on my account ;->






-Original Message-
From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 2:30 PM
To: Tomcat Users List
Subject: RE: changing a user's password on linux using jsp exec.


Hi Dahnke,
The cron idea seems interesting. Do you have something
working? Or even an example for me to follow.

Thanks.


--- "Dahnke, Eric" <[EMAIL PROTECTED]> wrote:
> 
> The only password you could ever change is the one
> for the user Tomcat is
> running as (nobody i believe).
> 
> I've been down the road you're going down. Your
> options are:
> 
> -1- (compiling apache/tomcat to run as user root
> (unreasonable on anything
> other than a intranet environment). big security
> hole.
> -2- you can use the expect programming language. 
> -3- you can hand the passwd execution to a cron job
> that runs as root. just
> dump the user to change password into a text file.
> grep the text file every
> 5 seconds or something from cron. if an entry exists
> chpasswd on it and
> delete the entry from the file. cron is very light
> weight. see man chpasswd
> 
> HTH
> 
> 
> 
> -Original Message-
> From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:53 PM
> To: Tomcat Users List
> Subject: changing a user's password on linux using
> jsp exec.
> 
> 
> Is it possible? I wrote this jsp file, but nothing
> seems to happen. Any ideas?
> 
> == Code ===
> <%@ page import="java.io.DataInputStream"%>
> <%@ page import="java.io.DataOutputStream"%>
> 
> <%@ page import="java.io.BufferedWriter"%>
> <%@ page import="java.io.FileWriter"%>
> <%@ page import="java.io.IOException"%>
> 
> 
> 
> <%
> 
> String username = "TestUserId";
> 
> String old_p_word = "oldPassword";
> 
> String new_p_word = "newPassword";
> 
>Process proc = null;
>   
>
> Runtime thisRun = Runtime.getRuntime();
> 
> String cmd = "passwd " + username;
> 
> proc = thisRun.exec(cmd); 
>
> 
> //Returns a Stream connected to the output of the
> child process. 
>
>  DataInputStream inputstream = new
> DataInputStream(proc.getInputStream());
>  //Reads output from process
>  
>  String procOutputline = inputstream.readLine();
>
> if (procOutputline != null)
> {
>out.println("Process output: " +
> procOutputline);
> }
> 
> //Returns a Stream connected to the input of the
> child
> process. 
> //we assume user exists and that the process will
> ask
> for the old password first.
> 
> DataOutputStream outputstream = new
> DataOutputStream(proc.getOutputStream());
> outputstream.writeBytes(old_p_word);
> 
>  
> //read output from process. We assume that the
> process
> will ask for the new password
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //send value of new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
> //Process should ask us to confirm the new password
> //Returns a Stream connected to the output of the
> child process. 
> 
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //confirm the new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
>  //Waits for the subprocess to complete. 
>  proc.waitFor();
> 
>  //Returns the exit value for the subprocess.
>out.println("Process existed with value: "
> +proc.exitValue());
>  
>  //Returns the an InputStream connected to the error
> stream of the child process. 
> DataInputStream errorinputstream = new
> DataInputStream(proc.getErrorStream());
>  String line = errorinputstream.readLine();
> 
>  if (line != null)
>  {
> throw new Exception("There was a problem
> changing password for : " + username + " --" +
> line);
>  }
> 
> //out.println("The output string is
> "+proc.toString()); 
> proc.destroy(); 
>   
>   
> %>
> 
> = End of code.
> 
> 
> 
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
> --
> To

RE: J2EE and Tomcat

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Steve Earl wrote:

> Date: Thu, 14 Feb 2002 10:06:51 -0700
> From: Steve Earl <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: 'Tomcat Users List' <[EMAIL PROTECTED]>
> Subject: RE: J2EE and Tomcat
>
> Hi Craig,
>
> I posted a question to this group regarding getting Tomcat 4.0.2 and
> Weblogic 6.1 to play together, particularly with the Pet Store application.
> I've been working at this issue for several days now with no solution.
>
> Are you aware of any configuration "gotchas" that might affect splitting
> petstore functionality to have Tomcat 4.0.2 serve jsp & servlets while
> having Weblogic 6.1 provide data services?
>

I have no idea if this is even possible, so I'm afraid I can't be of much
help.

Given that WebLogic has its own servlet/JSP container built in (as does
the J2EE RI and every other J2EE app server), it would actually surprise
me if WebLogic went to the effort required to make this work.

Can someone please explain to me why such a thing is needed?

> Thanks in advance,
>
> Steve...
>

Craig


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




Re: security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Mark Teegarden

Ohhh! I stand corrected. Thanks!

I was not interpreting this feature correctly, but now I understand. 

>>> [EMAIL PROTECTED] 02/14/02 03:09PM >>>
Mark Teegarden wrote:
> 
> Try adding an entry of the following to the end of web.xml
> in examples before the  tag:
>

 The  element is declared as part of
a , not a :



 There's an example in the servlet spec in SRV.13.4.2
"An Example of Security".

-- 
Christopher St. John [EMAIL PROTECTED] 
DistribuTopia http://www.distributopia.com 

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



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




RE: Configuring apache + tomcat on separate machines

2002-02-14 Thread Eswar.K

how would the apache server know on which IP address the tomcat is running?
from the tomcat side it is fine, but how about the communication from apache
to tomcat...

-Original Message-
From: Keith Simpson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 10:14 PM
To: Tomcat Users List
Subject: Re: Configuring apache + tomcat on separate machines


Would think it would have to be possible.  since they communicate via
ajp protocol, you just need to specify something other than localhost on
the tomcat side I would think.  the ajp stuff has default ports of
something like 8007 and 8009.  


Sharanya Vemu wrote:
> 
> if any one hasnt done it , well the  question is can this be done ?? at
all
> , someone can surely reply for that atleast!!
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 3:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Configuring apache + tomcat on separate machines
> 
> DOESEN'T ANYONE KNOW HOW TO DO THIS?
> SURELY SOMEONE MUST KNOW!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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

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




RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Al-Qalb el-Mounir

Hi Dahnke,
The cron idea seems interesting. Do you have something
working? Or even an example for me to follow.

Thanks.


--- "Dahnke, Eric" <[EMAIL PROTECTED]> wrote:
> 
> The only password you could ever change is the one
> for the user Tomcat is
> running as (nobody i believe).
> 
> I've been down the road you're going down. Your
> options are:
> 
> -1- (compiling apache/tomcat to run as user root
> (unreasonable on anything
> other than a intranet environment). big security
> hole.
> -2- you can use the expect programming language. 
> -3- you can hand the passwd execution to a cron job
> that runs as root. just
> dump the user to change password into a text file.
> grep the text file every
> 5 seconds or something from cron. if an entry exists
> chpasswd on it and
> delete the entry from the file. cron is very light
> weight. see man chpasswd
> 
> HTH
> 
> 
> 
> -Original Message-
> From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:53 PM
> To: Tomcat Users List
> Subject: changing a user's password on linux using
> jsp exec.
> 
> 
> Is it possible? I wrote this jsp file, but nothing
> seems to happen. Any ideas?
> 
> == Code ===
> <%@ page import="java.io.DataInputStream"%>
> <%@ page import="java.io.DataOutputStream"%>
> 
> <%@ page import="java.io.BufferedWriter"%>
> <%@ page import="java.io.FileWriter"%>
> <%@ page import="java.io.IOException"%>
> 
> 
> 
> <%
> 
> String username = "TestUserId";
> 
> String old_p_word = "oldPassword";
> 
> String new_p_word = "newPassword";
> 
>Process proc = null;
>   
>
> Runtime thisRun = Runtime.getRuntime();
> 
> String cmd = "passwd " + username;
> 
> proc = thisRun.exec(cmd); 
>
> 
> //Returns a Stream connected to the output of the
> child process. 
>
>  DataInputStream inputstream = new
> DataInputStream(proc.getInputStream());
>  //Reads output from process
>  
>  String procOutputline = inputstream.readLine();
>
> if (procOutputline != null)
> {
>out.println("Process output: " +
> procOutputline);
> }
> 
> //Returns a Stream connected to the input of the
> child
> process. 
> //we assume user exists and that the process will
> ask
> for the old password first.
> 
> DataOutputStream outputstream = new
> DataOutputStream(proc.getOutputStream());
> outputstream.writeBytes(old_p_word);
> 
>  
> //read output from process. We assume that the
> process
> will ask for the new password
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //send value of new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
> //Process should ask us to confirm the new password
> //Returns a Stream connected to the output of the
> child process. 
> 
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //confirm the new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
>  //Waits for the subprocess to complete. 
>  proc.waitFor();
> 
>  //Returns the exit value for the subprocess.
>out.println("Process existed with value: "
> +proc.exitValue());
>  
>  //Returns the an InputStream connected to the error
> stream of the child process. 
> DataInputStream errorinputstream = new
> DataInputStream(proc.getErrorStream());
>  String line = errorinputstream.readLine();
> 
>  if (line != null)
>  {
> throw new Exception("There was a problem
> changing password for : " + username + " --" +
> line);
>  }
> 
> //out.println("The output string is
> "+proc.toString()); 
> proc.destroy(); 
>   
>   
> %>
> 
> = End of code.
> 
> 
> 
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 
> --
> To unsubscribe:  
> 
> For additional commands:
> 
> Troubles with the list:
> 
> 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Al-Qalb el-Mounir

It did not work for either the '\n' nor the
PrintWriter! Do you have an idea why? I will address
the security issues later, this is an exercise only to
show that our company can use such a technique.

Any ideas?

Thanks.


<%@ page import="java.io.DataInputStream"%>
<%@ page import="java.io.PrintWriter"%>

<%@ page import="java.io.BufferedWriter"%>
<%@ page import="java.io.FileWriter"%>
<%@ page import="java.io.IOException"%>



<%

String username = "testUserId";

String old_p_word = "oldPassword";

String new_p_word = "newPassword";

   Process proc = null;
  
 
Runtime thisRun = Runtime.getRuntime();

String cmd = "passwd " + username;

proc = thisRun.exec(cmd); 
   

//Returns a Stream connected to the output of the
child process. 
   
 DataInputStream inputstream = new
DataInputStream(proc.getInputStream());
 //Reads output from process
 
 String procOutputline = inputstream.readLine();
   
if (procOutputline != null)
{
   out.println("Process output: " +
procOutputline);
}

//Returns a Stream connected to the input of the child
process. 
//we assume user exists and that the process will ask
for the old password first.

PrintWriter pw = new
PrintWriter(proc.getOutputStream());
pw.println(old_p_word);

 
//read output from process. We assume that the process
will ask for the new password
 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//send value of new password to the process.
pw.println(new_p_word);


//Process should ask us to confirm the new password
//Returns a Stream connected to the output of the
child process. 

 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//confirm the new password to the process.
pw.println(new_p_word);


 //Waits for the subprocess to complete. 
// proc.waitFor();

 //Returns the exit value for the subprocess.
   out.println("Process existed with value: "
+proc.exitValue());
 
 //Returns the an InputStream connected to the error
stream of the child process. 
DataInputStream errorinputstream = new
DataInputStream(proc.getErrorStream());
 String line = errorinputstream.readLine();

 if (line != null)
 {
throw new Exception("There was a problem
setting up account: " + username + " --" + line);
 }

//out.println("The output string is
"+proc.toString()); 
proc.destroy(); 
  
  
%>



--- Randy Layman <[EMAIL PROTECTED]> wrote:
> 
>   1.  I believe that you want a PrintWriter or add \n
> to the end of
> the passwords (the user presses enter when running
> passwd).  This is
> probably causing your symptom of nothing happening
> (passwd waiting for you,
> you waiting for passwd).
>   2.  Only some users (maybe just root) can change
> other user's
> passwords.  You will need to run Tomcat as root,
> which introduces its own
> set of security issues.
> 
>   Randy
> 


__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




Re: security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Christopher K. St. John

Mark Teegarden wrote:
> 
> Try adding an entry of the following to the end of web.xml
> in examples before the  tag:
>

 The  element is declared as part of
a , not a :



 There's an example in the servlet spec in SRV.13.4.2
"An Example of Security".

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




Re: security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Gerhard Kreutzer

"Kapasi, Mehjabin" schrieb:
> 
> I was also getting the same error although it was with the  tag. I
> followed the DTD correctly but still could not get rid of the error.
> I commented that section out and it worked like a charm with no errors. I am
> not sure if that is because of some tag library issue in Tomcat 4.0.1.
> If you also have a tag library associated, try commenting it out and see if
> that works.
> 
> -Mehjabin
> 
> -Original Message-
> From: Mark Teegarden [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 11:10 AM
> To:  Subject: security-role-ref not working with Tomcat 4.0.1 & .2
> 
> I'm trying to use a security-role-ref entry in my web deployment descriptor
> of Tomcat 4. Has  this been broken in 4.0.1 and 4.0.2?
> 
> Try adding an entry of the following to the end of web.xml in examples
> before the  tag:
>
>   ADMIN
>   Administrator
>
> 
> I get the following from catalina on startup:
> Starting service Tomcat-Standalone
> Apache Tomcat/4.0.2
> PARSE error at line 283 column 11
> org.xml.sax.SAXParseException: The content of element type "web-app" must
> match
> "(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
> ter-
> mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,w
> elco
> me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-c
> onst
> raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
> Starting service Tomcat-Apache
> Apache Tomcat/4.0.2
>
i think you should make entries in web.xml in the defined order. see
servlet spec. SRV13.3.

gerhard 
[]

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




RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Dahnke, Eric


The only password you could ever change is the one for the user Tomcat is
running as (nobody i believe).

I've been down the road you're going down. Your options are:

-1- (compiling apache/tomcat to run as user root (unreasonable on anything
other than a intranet environment). big security hole.
-2- you can use the expect programming language. 
-3- you can hand the passwd execution to a cron job that runs as root. just
dump the user to change password into a text file. grep the text file every
5 seconds or something from cron. if an entry exists chpasswd on it and
delete the entry from the file. cron is very light weight. see man chpasswd

HTH



-Original Message-
From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 1:53 PM
To: Tomcat Users List
Subject: changing a user's password on linux using jsp exec.


Is it possible? I wrote this jsp file, but nothing
seems to happen. Any ideas?

== Code ===
<%@ page import="java.io.DataInputStream"%>
<%@ page import="java.io.DataOutputStream"%>

<%@ page import="java.io.BufferedWriter"%>
<%@ page import="java.io.FileWriter"%>
<%@ page import="java.io.IOException"%>



<%

String username = "TestUserId";

String old_p_word = "oldPassword";

String new_p_word = "newPassword";

   Process proc = null;
  
 
Runtime thisRun = Runtime.getRuntime();

String cmd = "passwd " + username;

proc = thisRun.exec(cmd); 
   

//Returns a Stream connected to the output of the
child process. 
   
 DataInputStream inputstream = new
DataInputStream(proc.getInputStream());
 //Reads output from process
 
 String procOutputline = inputstream.readLine();
   
if (procOutputline != null)
{
   out.println("Process output: " +
procOutputline);
}

//Returns a Stream connected to the input of the child
process. 
//we assume user exists and that the process will ask
for the old password first.

DataOutputStream outputstream = new
DataOutputStream(proc.getOutputStream());
outputstream.writeBytes(old_p_word);

 
//read output from process. We assume that the process
will ask for the new password
 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//send value of new password to the process.
outputstream.writeBytes(new_p_word);


//Process should ask us to confirm the new password
//Returns a Stream connected to the output of the
child process. 

 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//confirm the new password to the process.
outputstream.writeBytes(new_p_word);


 //Waits for the subprocess to complete. 
 proc.waitFor();

 //Returns the exit value for the subprocess.
   out.println("Process existed with value: "
+proc.exitValue());
 
 //Returns the an InputStream connected to the error
stream of the child process. 
DataInputStream errorinputstream = new
DataInputStream(proc.getErrorStream());
 String line = errorinputstream.readLine();

 if (line != null)
 {
throw new Exception("There was a problem
changing password for : " + username + " --" + line);
 }

//out.println("The output string is
"+proc.toString()); 
proc.destroy(); 
  
  
%>

= End of code.



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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

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




RE: changing a user's password on linux using jsp exec.

2002-02-14 Thread Randy Layman


1.  I believe that you want a PrintWriter or add \n to the end of
the passwords (the user presses enter when running passwd).  This is
probably causing your symptom of nothing happening (passwd waiting for you,
you waiting for passwd).
2.  Only some users (maybe just root) can change other user's
passwords.  You will need to run Tomcat as root, which introduces its own
set of security issues.

Randy


> -Original Message-
> From: Al-Qalb el-Mounir [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 1:53 PM
> To: Tomcat Users List
> Subject: changing a user's password on linux using jsp exec.
> 
> 
> Is it possible? I wrote this jsp file, but nothing
> seems to happen. Any ideas?
> 
> == Code ===
> <%@ page import="java.io.DataInputStream"%>
> <%@ page import="java.io.DataOutputStream"%>
> 
> <%@ page import="java.io.BufferedWriter"%>
> <%@ page import="java.io.FileWriter"%>
> <%@ page import="java.io.IOException"%>
> 
> 
> 
> <%
> 
> String username = "TestUserId";
> 
> String old_p_word = "oldPassword";
> 
> String new_p_word = "newPassword";
> 
>Process proc = null;
>   
>
> Runtime thisRun = Runtime.getRuntime();
> 
> String cmd = "passwd " + username;
> 
> proc = thisRun.exec(cmd); 
>
> 
> //Returns a Stream connected to the output of the
> child process. 
>
>  DataInputStream inputstream = new
> DataInputStream(proc.getInputStream());
>  //Reads output from process
>  
>  String procOutputline = inputstream.readLine();
>
> if (procOutputline != null)
> {
>out.println("Process output: " +
> procOutputline);
> }
> 
> //Returns a Stream connected to the input of the child
> process. 
> //we assume user exists and that the process will ask
> for the old password first.
> 
> DataOutputStream outputstream = new
> DataOutputStream(proc.getOutputStream());
> outputstream.writeBytes(old_p_word);
> 
>  
> //read output from process. We assume that the process
> will ask for the new password
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //send value of new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
> //Process should ask us to confirm the new password
> //Returns a Stream connected to the output of the
> child process. 
> 
>  procOutputline = inputstream.readLine();
> 
>  if (procOutputline != null)
>  {
> out.println("Process output: " +
> procOutputline);
> }
> 
> //confirm the new password to the process.
> outputstream.writeBytes(new_p_word);
> 
> 
>  //Waits for the subprocess to complete. 
>  proc.waitFor();
> 
>  //Returns the exit value for the subprocess.
>out.println("Process existed with value: "
> +proc.exitValue());
>  
>  //Returns the an InputStream connected to the error
> stream of the child process. 
> DataInputStream errorinputstream = new
> DataInputStream(proc.getErrorStream());
>  String line = errorinputstream.readLine();
> 
>  if (line != null)
>  {
> throw new Exception("There was a problem
> changing password for : " + username + " --" + line);
>  }
> 
> //out.println("The output string is
> "+proc.toString()); 
> proc.destroy(); 
>   
>   
> %>
> 
> = End of code.
> 
> 
> 
> __
> Do You Yahoo!?
> Send FREE Valentine eCards with Yahoo! Greetings!
> http://greetings.yahoo.com
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
> 

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




RE: reloading classes - rephrase

2002-02-14 Thread tamir

Hello again,

Thank you very much for your quick response.

I read your answer and tried to refresh classes in the web-inf/lib.

Nevertheless, when I override an already existing myxxx.jar file (in
web-inf/lib) with a newer version tomcat 3.3 gets crazy.

Our application is loading a class from myxxx.jar using Class.forName and
activates some methods in it.
Everything is going well until we override myxxx.jar with a newer jar (class
interface hasn't been changed).
Tomcat is refreshed well (although, losing session), however, when accessing
again the class in the jar,
I get the following exception:

2002-02-14 20:45:34 - Ctx(/movious) : Exception in R( /movious + /portlet +
null
) - java.lang.ClassFormatError: com/movious/NivPortlet (Truncated class
file)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:495)
at
org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(U
nknown Source)
at
org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Un
known Source)
at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown
Sourc
e)
at java.security.AccessController.doPrivileged(Native Method)
at
org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown S
ource)
at java.lang.ClassLoader.loadClass(ClassLoader.java:260)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
com.movious.api.portlets.PortletManager.getClass(PortletManager.java:
578)
at
com.movious.api.portlets.PortletManager.createClip(PortletManager.jav
a:532)
at
com.movious.api.portlets.PortletManager.getData(PortletManager.java:2
88)
at
com.movious.api.portlets.PortletServlet.doPost(PortletServlet.java:11
9)
at
com.movious.api.portlets.PortletServlet.doGet(PortletServlet.java:37)

at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at org.apache.tomcat.facade.ServletHandler.doService(Unknown Source)
at org.apache.tomcat.core.Handler.invoke(Unknown Source)
at org.apache.tomcat.core.Handler.service(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown
Source)

at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at
org.apache.tomcat.modules.server.Http10Interceptor.processConnection(
Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown
 Source)
at java.lang.Thread.run(Thread.java:579)


Am i doing something wrong Dear Guru ???
Tnx



-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 6:22 PM
To: Tomcat Users List
Subject: Re: reloading classes - rephrase




On Thu, 14 Feb 2002, tamir wrote:

> Date: Thu, 14 Feb 2002 10:54:15 +0200
> From: tamir <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: reloading classes - rephrase
>
> Hi there,
> I've a simple question, hope there's a simple answer.
>
> Is it possible to do autoreload for classes not found in WEB-INF/classes
or
> WEB-INF/lib
> without restarting tomcat or reloading my web-app classes ?
> (I mean i put my classes OUTSIDE the web-app).
>
> I'm using tomcat 3.3, but can do the advance to 4.02 if needed.
>
> Tnx Alot
> for any information!
>

The answer is simple:  no.

Java provides no mechanism for unloading a class that has already been
loaded.  The way that reloading is implemented for a webapp is to throw
away the entire class loader used to load that webapp, and starting over
again.  If we did that for shared classes, however, you'd have to restart
*all* webapps because they would all need to be thrown away.

If you want to take advantage of the auto-reload capability to update
classes in a webapp, you *must* put those classes in /WEB-INF/classes, or
in a JAR file in /WEB-INF/lib.

Craig McClanahan



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

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




changing a user's password on linux using jsp exec.

2002-02-14 Thread Al-Qalb el-Mounir

Is it possible? I wrote this jsp file, but nothing
seems to happen. Any ideas?

== Code ===
<%@ page import="java.io.DataInputStream"%>
<%@ page import="java.io.DataOutputStream"%>

<%@ page import="java.io.BufferedWriter"%>
<%@ page import="java.io.FileWriter"%>
<%@ page import="java.io.IOException"%>



<%

String username = "TestUserId";

String old_p_word = "oldPassword";

String new_p_word = "newPassword";

   Process proc = null;
  
 
Runtime thisRun = Runtime.getRuntime();

String cmd = "passwd " + username;

proc = thisRun.exec(cmd); 
   

//Returns a Stream connected to the output of the
child process. 
   
 DataInputStream inputstream = new
DataInputStream(proc.getInputStream());
 //Reads output from process
 
 String procOutputline = inputstream.readLine();
   
if (procOutputline != null)
{
   out.println("Process output: " +
procOutputline);
}

//Returns a Stream connected to the input of the child
process. 
//we assume user exists and that the process will ask
for the old password first.

DataOutputStream outputstream = new
DataOutputStream(proc.getOutputStream());
outputstream.writeBytes(old_p_word);

 
//read output from process. We assume that the process
will ask for the new password
 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//send value of new password to the process.
outputstream.writeBytes(new_p_word);


//Process should ask us to confirm the new password
//Returns a Stream connected to the output of the
child process. 

 procOutputline = inputstream.readLine();

 if (procOutputline != null)
 {
out.println("Process output: " +
procOutputline);
}

//confirm the new password to the process.
outputstream.writeBytes(new_p_word);


 //Waits for the subprocess to complete. 
 proc.waitFor();

 //Returns the exit value for the subprocess.
   out.println("Process existed with value: "
+proc.exitValue());
 
 //Returns the an InputStream connected to the error
stream of the child process. 
DataInputStream errorinputstream = new
DataInputStream(proc.getErrorStream());
 String line = errorinputstream.readLine();

 if (line != null)
 {
throw new Exception("There was a problem
changing password for : " + username + " --" + line);
 }

//out.println("The output string is
"+proc.toString()); 
proc.destroy(); 
  
  
%>

= End of code.



__
Do You Yahoo!?
Send FREE Valentine eCards with Yahoo! Greetings!
http://greetings.yahoo.com

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




RE: security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Kapasi, Mehjabin

I was also getting the same error although it was with the  tag. I
followed the DTD correctly but still could not get rid of the error.
I commented that section out and it worked like a charm with no errors. I am
not sure if that is because of some tag library issue in Tomcat 4.0.1.
If you also have a tag library associated, try commenting it out and see if
that works.

-Mehjabin

-Original Message-
From: Mark Teegarden [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 11:10 AM
To:  tag:
   
  ADMIN
  Administrator
   

I get the following from catalina on startup:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.2
PARSE error at line 283 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must
match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,fil
ter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,w
elco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-c
onst
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.2




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

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




security-role-ref not working with Tomcat 4.0.1 & .2

2002-02-14 Thread Mark Teegarden

I'm trying to use a security-role-ref entry in my web deployment descriptor of Tomcat 
4. Has  this been broken in 4.0.1 and 4.0.2?

Try adding an entry of the following to the end of web.xml in examples before the 
 tag:
   
  ADMIN
  Administrator
   

I get the following from catalina on startup:
Starting service Tomcat-Standalone
Apache Tomcat/4.0.2
PARSE error at line 283 column 11
org.xml.sax.SAXParseException: The content of element type "web-app" must match
"(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-
mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welco
me-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-const
raint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)".
Starting service Tomcat-Apache
Apache Tomcat/4.0.2




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




NO jaxp.jar --- WHY NOT?? Any smarty pants out there?

2002-02-14 Thread Micael Padraig Og mac Grene

The Sun XML pack includes jaxp-1.2-ea-1 but that only includes xerces.jar 
and xalan.jar and docs.  What do we do with applications that have 
instructions calling for jaxp.jar??

Eh?  I am not Canadian, but am on the Eh Team.  ;-)

At 09:52 AM 2/14/02 -0500, you wrote:
>Hi,
>It's in the Sun XML pack (among other places), at
>http://java.sun.com/xml/downloads/javaxmlpack.html
>
>Yoav Shapira
>
>
>[EMAIL PROTECTED] wrote:
> >
> > I got it about 6 months ago and you're right, I can't seem
> > to find it again.
> >
> >
> >> Where did you find jaxp.jar, if you 
> did?  I
> >> have been looking everywhere
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




Re: DBPool on Tomcat

2002-02-14 Thread David Smith

Cheer up Craig.  I don't think I've ever asked a question on the list 
(although you've corrected me once or twice) and that's mainly because of 
your docs and user list replies.  Thanks for all the effort you've put in to 
Tomcat and Struts!!.

--David

On Thursday 14 February 2002 12:29 pm, you wrote:
> On Thu, 14 Feb 2002, Marcelo Mathias Lima wrote:
> > Date: Thu, 14 Feb 2002 15:00:23 -0300
> > From: Marcelo Mathias Lima <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Cc: [EMAIL PROTECTED]
> > Subject: DBPool on Tomcat
> >
> > Hey guys...
> >
> > Does anyone can help me? I need to know if Tomcat has a DBPool and
> > a fast example to know how to get these connections...
> >
> > I know that u can already answered this before, but I think that it is
> > easy to who really knows. And u DO know, right? :)
>
> Sniff, sniff ... work my fingers to the bone writing documentation and
> nobody even *looks* at it ...   :-)
>
> In your running Tomcat installation:
>
>   http://localhost:8080/tomcat-docs/jndi-resources-howto.html
>
> Or online:
>
>   http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
>
> Scroll down to the section on "JDBC Data Sources".
>
> > Thanks in advance,
> >
> > --
> > Marcelo Mathias Lima
> > [EMAIL PROTECTED]
> > Java/JSP Developer
>
> Craig

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




NoClassDefFoundError

2002-02-14 Thread Sharanya Vemu


Hi all 

I started my tomcat configuration again with Tomcat version 3.2.4 what beats
me is i've set TOMCAT_HOME, JAVA_HOME and put tools.jar in classpath and
when i run startup.sh it uses all the jats including webserver.jar from the
classpath but still fails with the exception syaing of NoClassDefFoundError
for org/apache/tomcat/startup/Tomcat , can anyone tell me what i'vebeen
missing out on .. 
p.s:i also can see that the class exists in webserver.jar 

Regards
S Vemu

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




Compression Filter Performance

2002-02-14 Thread Yoav Shapira

Hi,
I have a compression filter (variation of Jason Hunter's JavaWorld
article filter) working exactly as I want it to.  It wraps the
response in a GZIP output stream (if the client can handle it,
and the compression threshold is exceeded), and the client deals with
it.  

My question is, how can I measure how compressed my response is 
versus running without using the filter?  (I don't mind recycling
the server and changing web.xml between runs).  

Thanks in advance,

Yoav Shapira
Millennium Pharmaceuticals

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




Re: DBPool on Tomcat

2002-02-14 Thread Marcelo Mathias Lima

Sorry... :))

I promess that I tried a documentation... but was the wrong documentation..

Very thank u... apologize me to be lammer... :))



- Original Message -
From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, February 14, 2002 2:29 PM
Subject: Re: DBPool on Tomcat


>
>
> On Thu, 14 Feb 2002, Marcelo Mathias Lima wrote:
>
> > Date: Thu, 14 Feb 2002 15:00:23 -0300
> > From: Marcelo Mathias Lima <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Cc: [EMAIL PROTECTED]
> > Subject: DBPool on Tomcat
> >
> > Hey guys...
> >
> > Does anyone can help me? I need to know if Tomcat has a DBPool and
> > a fast example to know how to get these connections...
> >
> > I know that u can already answered this before, but I think that it is
easy
> > to who really knows. And u DO know, right? :)
> >
>
> Sniff, sniff ... work my fingers to the bone writing documentation and
> nobody even *looks* at it ...   :-)
>
> In your running Tomcat installation:
>
>   http://localhost:8080/tomcat-docs/jndi-resources-howto.html
>
> Or online:
>
>
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html
>
> Scroll down to the section on "JDBC Data Sources".
>
> > Thanks in advance,
> >
> > --
> > Marcelo Mathias Lima
> > [EMAIL PROTECTED]
> > Java/JSP Developer
> >
>
> Craig
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 


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




J2EE and Tomcat

2002-02-14 Thread Reynir Hübner

hey guys..
 
On that matter (J2EE & Tomcat), I've noticed one "small" difference
between Tomcat and the jsp spec. 
Tomcat renders jsp-code that's between , the HTML comment tag. 
this means that Javascript especially can be commented out of the HTML
for old browsers while some of the javascript code is generated by
jsp-code.

In other J2EE servers I've looked at like orion and websphere they do
not render jsp-code with in HTML comment tags. 

why is this different in tomcat from others and the spec ? Or am I not
understanding this correctly ?

Well this is not a big problem (not for me at least), but I assume many
people are using tomcat as a developement tool, and if they are
developing something accordingly to how Tomcat handles it, they might
face a problem when migrating to other J2EE servers... but then again,
they haven't been developing according to the spec... 

... so, why break the spec ?

thanx 
[EMAIL PROTECTED]





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




Re: DBPool on Tomcat

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Marcelo Mathias Lima wrote:

> Date: Thu, 14 Feb 2002 15:00:23 -0300
> From: Marcelo Mathias Lima <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Cc: [EMAIL PROTECTED]
> Subject: DBPool on Tomcat
>
> Hey guys...
>
> Does anyone can help me? I need to know if Tomcat has a DBPool and
> a fast example to know how to get these connections...
>
> I know that u can already answered this before, but I think that it is easy
> to who really knows. And u DO know, right? :)
>

Sniff, sniff ... work my fingers to the bone writing documentation and
nobody even *looks* at it ...   :-)

In your running Tomcat installation:

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

Or online:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/jndi-resources-howto.html

Scroll down to the section on "JDBC Data Sources".

> Thanks in advance,
>
> --
> Marcelo Mathias Lima
> [EMAIL PROTECTED]
> Java/JSP Developer
>

Craig


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




Re: J2EE and Tomcat

2002-02-14 Thread Keith Simpson

Yaaay!  Finally an answer!  Thanks Craig.  I knew that substituting jars
was not kosher, but I love to experiment.   The approach actually worked
6 months ago when I was experimenting with implementing mail on my TC
3.2 server.  I would "never,never,never" go to production with such a
hair brained scheme!   I thought I had seen somewhere that TC 4.0x was
J2EE 1.3, but could not "refind" that information.

I was aware I could get javamail and that there was some extension (must
be the one of which you speak) to use the mail tags in jakarta-taglib. 
The link specified in the taglib docs was dead - I assumed that sun just
decided to wrap it all up into j2ee.

once again, many thanks.


"Craig R. McClanahan" wrote:
> 
> On Thu, 14 Feb 2002, Keith Simpson wrote:
> 
> > Date: Thu, 14 Feb 2002 08:00:04 -0500
> > From: Keith Simpson <[EMAIL PROTECTED]>
> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> > To: Tomcat Users List <[EMAIL PROTECTED]>
> > Subject: Re: J2EE and Tomcat
> >
> > How very ironic - we have the same name - and we have the same
> > question!  I put mine out yesterday.  Is this a parallel universe or
> > something?  I am running 3.3 tomcat on my dev platform and need to use
> > javamail.  (which can be picked up separately or in j2ee)  We are
> > developing a new product with JSP (used to be all servlets) and I find
> > that there is a problem when it comes to compiling the JSP when I
> > replace servlet.jar with j2ee.jar  Otherwise, I believe it works just
> > fine.  (that's a big stumbling block)  I am wondering if I am going to
> > need to go to tomcat 4 - or what - to get around this one.  My issue
> > with 4 is that I will have to migrate it to my production environment
> > (apache/tomcat), and that we resell to others with all sorts of app
> > servers.
> >
> 
> Never ever ever ever should you be replacing system JAR files like that!
> The j2ee.jar file from the J2EE RI includes a version of Tomcat already,
> so you are just duplicating a whole bunch of classes and it is
> going to cause runtime conflicts.
> 
> If you just need JavaMail, the smart thing to do would be to go download
> JavaMail and add the appropriate JARs to Tomcat
> .  You will also need the Java
> Activation Framework package -- a link is provided on this page.
> 
> Tomcat 4 releases include the JavaMail and JAF jar files already.
> 
> Craig
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Re: Another Question About Tomcat Auth

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Renato Romano wrote:

> Date: Thu, 14 Feb 2002 16:50:52 +0100
> From: Renato Romano <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Another Question About Tomcat Auth
>
> I succeffully defined my own Realm Implementation, but for have it working i
> had to put the classes into the $CATALINA_HOME/server/classes dir. Since I
> also use those classes in my webapp, I also had to put them in
> webapps/myapp/WEB-INF/classes !! Of course I tried to put the classes in the
> common/classes dir, but it doesn't works. Any idea ?
> Thanks again
>

If you need classes to be visible to *both* Tomcat and your webapp, put
them in $CATALINA_HOME/common/classes (or in JAR files in
$CATALINA_HOME/common/lib).  For more information on how class loading
works in Tomcat 4, see the appropriate docs:

  http://localhost:8080/tomcat-docs/class-loader-howto.html

or online at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

> Renato
>

Craig


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




Re: R: Tomcat Auth

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Renato Romano wrote:

> Date: Thu, 14 Feb 2002 16:26:04 +0100
> From: Renato Romano <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: R: Tomcat Auth
>
> Ok I got it, that's also in the doc... Do you know if it is also possible
> with Tomcat 3.2.x ?
> There the Realm is defined by a RequestInterceptor element ...
> Thanks
>

Tomcat 3.2 does not support per-host or per-webapp realms.

> Renato
>

Craig


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




Re: TC4 Realm Problem

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Mark Thill wrote:

> Date: Thu, 14 Feb 2002 07:05:26 -0800 (PST)
> From: Mark Thill <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: TC4 Realm Problem
>
> I just started testing realms with the default
> installation that comes with Tomcat 4.0.1, so I'm
> using the MemoryRealm.  I'm having an issue where if I
> place a servlet in a non-secure area and a jsp page in
> a secure area that I can use:
>
> getServletContext().getRequestDispatcher(url).forward(request,
> response);
>
> from the servlet to seemingly bypass the security
> addressed by the realm and forward right into the
> secure area without authenticating.  Can anyone tell
> me if this is by design, am I doing something wrong,
> or if this is maybe a bug.
>

No, it is not a bug.  Security constraints only apply to the *original*
request URI from the user.  Applications are assumed to know what they are
doing -- if the app doesn't want the user to follow a particular forward,
it shouldn't execute that forward.

> Thanks
> Mark T.
>

Craig


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




Re: Problem in connecting apache and tomcat on different hosts

2002-02-14 Thread Keith Simpson

think it has something to do with bindaddress in your tomcat properties
file.  experiment!


"Eswar.K" wrote:
> 
> hi all,
> 
> I have a problem here..
> I have apache 1.3 on 1 machine and tomcat 3.2.3 on another machine.
> how do i make them talk to each other.
> where and what do i configure in apache so that it talks to tomcat on
> another host.
> if they are on the same machine then it works fine...
> 
> Thanks in advance...
> 
> Regards,
> Eswat

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




Re: Tomcat Auth

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Renato Romano wrote:

> Date: Thu, 14 Feb 2002 16:00:19 +0100
> From: Renato Romano <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Tomcat Auth
>
> Is it possible to use different Authentication Realms for different
> applications running on Tomcat4.0 ? Or at least use different DataBase,
> tables etc... ?And if yes how ?
> Thanks everyone.
>

Yes.  All you need to do is create a  element in server.xml for
each element, and put the  element for that application inside it.
The gory details are in the Server Configuration Reference, which is
available once you start up Tomcat 4 at:

  http://localhost:8080/tomcat-docs/config/

> Renato
>

Craig


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




Re: HTTP response header problems with Tomcat 4.0.2

2002-02-14 Thread Remy Maucherat

> Since I upgraded to Tomcat 4.0.2, I've noticed that HTTP response headers
are
> different than they were in 4.0.1. The difference is causing various HTML
> pages from Tomcat, like 404 error messages and others, to display as plain
> text rather than rendering as HTML pages (I see HTML tags) in most web
> browsers: Netscape 6.2.1, Konqueror in KDE 2.2.2, and Lynx 2.8.1. However,
> Internet Exploror 6.0 displayed the pages as HTML still.

Mozilla 0.9.8 on Windows works fine, so I didn't notice the issue :-(
It is fixed now.

Remy


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




Re: Compilation error with ant...

2002-02-14 Thread Craig R. McClanahan

The "[javadoc}" at the beginning of each line tells you that this output
is coming from the  task in the Ant build.xml script, which
(surprise surprise :-) runs JavaDoc.  JavaDoc will complain like this when
your code has a reference to classes external to the package, when it
doesn't know how to create the corresponding hyperlinks.  It just issues a
warning and makes those references static text instead.

The BUILD SUCCESSFUL message is the important part.

Craig


On Thu, 14 Feb 2002, Jean-Luc BEAUDET wrote:

> Date: Thu, 14 Feb 2002 14:23:25 +0100
> From: Jean-Luc BEAUDET <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Compilation error with ant...
>
> Hi all !
>
> Well, who can help for this non blockin' pb:
>
> When i compil tomcat 4.0.2 with ant, i've got 2 set of warnings:
>
>  [javadoc] Building tree for all the packages and classes...
>   [javadoc] Building index for all the packages and classes...
>   [javadoc] Building index for all classes...
>   [javadoc] javadoc: warning - Tag @see: Class or Package not found:
> java.lang.Runtime#exec(String command, String[]
>  envp,
>   [javadoc] File dir)
>   [javadoc] javadoc: warning - Tag @see: Class or Package not found:
> java.lang.Runtime#exec(String command, String[]
>  envp,
>   [javadoc] File dir)
>   [javadoc] Generating
> /usr/local/jakarta-tomcat-4.0.2-src/catalina/build/javadoc/stylesheet.css...
>
>   [javadoc] 3 warnings
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/catalina/docs/api
>
>  [copy] Copying 374 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/catalina/docs/api
>
> build-prepare:
>
> build-static:
>
> build-main:
>
> And the second one:
>
> javadoc:
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/jasper/build/javadoc
>   [javadoc] Generating Javadoc
>   [javadoc] Javadoc execution
>   [javadoc] Loading source files for package org.apache.jasper...
>   [javadoc] Loading source files for package org.apache.jasper.parser...
>
>   [javadoc] Loading source files for package
> org.apache.jasper.compiler...
>   [javadoc] Loading source files for package
> org.apache.jasper.runtime...
>   [javadoc] Loading source files for package
> org.apache.jasper.logging...
>   [javadoc] Loading source files for package org.apache.jasper.util...
>   [javadoc] Loading source files for package
> org.apache.jasper.servlet...
>   [javadoc] Loading source files for package org.apache.jasper.core...
>   [javadoc] Constructing Javadoc information...
>   [javadoc] javadoc: warning - Import not found: sun.tools.javac.Main -
> ignoring!
>   [javadoc] Building tree for all the packages and classes...
>   [javadoc] Building index for all the packages and classes...
>   [javadoc] Building index for all classes...
>   [javadoc] Generating
> /usr/local/jakarta-tomcat-4.0.2-src/jasper/build/javadoc/stylesheet.css...
>
>   [javadoc] 1 warning
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/jasper/docs/api
>
>  [copy] Copying 131 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/jasper/docs/api
>
> [mkdir] Created dir:
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/servletapi
>  [copy] Copying 154 files to
> /usr/local/jakarta-tomcat-4.0.2-src/dist/webapps/tomcat-docs/servletapi
>
> dist:
>
> BUILD SUCCESSFUL
>
> Total time: 2 minutes 22 seconds
>
> The build successful message is nice but i'd like to understand from
> where are commin' those warnings !
>
> Any help/clues appreciated.
>
> Regards.
>
> Jean-Luc B :O)
>
>
>
>
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 
>
>


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




Apache+Tomcat and the RewriteRule

2002-02-14 Thread Jarecsni János

Hi,

how can I use Apache mod_rewrite to alias a dynamic resource (to be served
by tomcat thru ajp)???

RewriteRule !^/istore(.*) - [C]
RewriteRule (.*) http://my.virtual.host/istore$1 [L]

is not good since it handles the URL as a file after rule is matched (so it
prepends the document root, instead of passing the request to Tomcat [I have
the appropriate JkMounts]).

(2) init rewrite engine with requested uri /control/main
(3) applying pattern '^/istore(.*)' to uri '/control/main'
(3) applying pattern '(.*)' to uri '/control/main'
(2) rewrite /control/main -> http://my.virtual.host/istore/control/main
(3) reduce http://my.virtual.host/istore/control/main ->
/istore/control/main
(2) local pathresult: /istore/control/main
(2) prefixed with document_root to
f:/jboss-2.4.4_tomcat-4.0.2b/jboss/deploy/istore.war/istore/control/main
(1) go-ahead with
f:/jboss-2.4.4_tomcat-4.0.2b/jboss/deploy/istore.war/istore/control/main
[OK]

I tried the [P] flag to proxy it:

RewriteRule !^/istore(.*) - [C]
RewriteRule (.*) http://my.virtual.host/istore$1 [P]

So we redirect the newly rewritten URL to ourselves back, for another round
of processing (which in deed will activate tomcat). The problem: cookies are
lost with this approach.

I tried a few other lists and archives but found absolutely nothing.

thanks
János

--
Jarecsni, János
MORGAN HILL CONSULTING, Internet Applications Unit
mailto:[EMAIL PROTECTED]
http://morganhillconsulting.hu/ :: Phone+Fax: + 36 1 484 0392


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




RE: J2EE and Tomcat

2002-02-14 Thread Steve Earl

Hi Craig,

I posted a question to this group regarding getting Tomcat 4.0.2 and
Weblogic 6.1 to play together, particularly with the Pet Store application.
I've been working at this issue for several days now with no solution.

Are you aware of any configuration "gotchas" that might affect splitting
petstore functionality to have Tomcat 4.0.2 serve jsp & servlets while
having Weblogic 6.1 provide data services?

Thanks in advance,

Steve...


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 10:03 AM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: J2EE and Tomcat




On Thu, 14 Feb 2002, Keith Ng wrote:

> Date: Thu, 14 Feb 2002 20:38:18 +0800
> From: Keith Ng <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: J2EE and Tomcat
>
> Hi Guys
>
> I just joined in, Happy Chinese New Year, esp to the all the Chinese here.
>
> I have the following query, its not exactly a TOMCAT question but I
figured
> people here can help. I have installed J2EE and have previously used
TOMCAT.
> Therefore I have the following queries
>
> 1)There are many versions of TOMCAT, but Im only using a pretty old
version,
> like 3.2.2. I want to try run my web application on a J2EE server. Are
both
> J2EE and TOMCAT using the same specifications for JSP and SERVLETS?
> Currently using J2EE 1.3 ...
>

Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1
specifications (these match up with J2EE 1.2).

Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which
are the versions included in J2EE 1.3.  In general these specs are
backwards compatible so that your older webapps will still run.

> 2)Am I supposed to continue using TOMCAT to develop web applications for
> deployment in J2EE? I certainly do not know how to do the same with J2EE
> what I have learnt with TOMCAT
>

If your applications don't require EJBs, it is very reasonable to do your
development under Tomcat and then deploy on a J2EE server.  Just be sure
you don't rely on Tomcat-specific features in your applications.

> Hope someone can enlighten me. Thanks ;)
>
>

Craig


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

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




Re: J2EE and Tomcat

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Keith Simpson wrote:

> Date: Thu, 14 Feb 2002 08:00:04 -0500
> From: Keith Simpson <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: Re: J2EE and Tomcat
>
> How very ironic - we have the same name - and we have the same
> question!  I put mine out yesterday.  Is this a parallel universe or
> something?  I am running 3.3 tomcat on my dev platform and need to use
> javamail.  (which can be picked up separately or in j2ee)  We are
> developing a new product with JSP (used to be all servlets) and I find
> that there is a problem when it comes to compiling the JSP when I
> replace servlet.jar with j2ee.jar  Otherwise, I believe it works just
> fine.  (that's a big stumbling block)  I am wondering if I am going to
> need to go to tomcat 4 - or what - to get around this one.  My issue
> with 4 is that I will have to migrate it to my production environment
> (apache/tomcat), and that we resell to others with all sorts of app
> servers.
>

Never ever ever ever should you be replacing system JAR files like that!
The j2ee.jar file from the J2EE RI includes a version of Tomcat already,
so you are just duplicating a whole bunch of classes and it is
going to cause runtime conflicts.

If you just need JavaMail, the smart thing to do would be to go download
JavaMail and add the appropriate JARs to Tomcat
.  You will also need the Java
Activation Framework package -- a link is provided on this page.

Tomcat 4 releases include the JavaMail and JAF jar files already.

Craig


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




Re: J2EE and Tomcat

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Keith Ng wrote:

> Date: Thu, 14 Feb 2002 20:38:18 +0800
> From: Keith Ng <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>,
>  [EMAIL PROTECTED]
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: J2EE and Tomcat
>
> Hi Guys
>
> I just joined in, Happy Chinese New Year, esp to the all the Chinese here.
>
> I have the following query, its not exactly a TOMCAT question but I figured
> people here can help. I have installed J2EE and have previously used TOMCAT.
> Therefore I have the following queries
>
> 1)There are many versions of TOMCAT, but Im only using a pretty old version,
> like 3.2.2. I want to try run my web application on a J2EE server. Are both
> J2EE and TOMCAT using the same specifications for JSP and SERVLETS?
> Currently using J2EE 1.3 ...
>

Tomcat 3.2 (and 3.3) are based on the Sevlet 2.2 and JSP 1.1
specifications (these match up with J2EE 1.2).

Tomcat 4.0 is based on the Servlet 2.3 and JSP 1.2 specifications, which
are the versions included in J2EE 1.3.  In general these specs are
backwards compatible so that your older webapps will still run.

> 2)Am I supposed to continue using TOMCAT to develop web applications for
> deployment in J2EE? I certainly do not know how to do the same with J2EE
> what I have learnt with TOMCAT
>

If your applications don't require EJBs, it is very reasonable to do your
development under Tomcat and then deploy on a J2EE server.  Just be sure
you don't rely on Tomcat-specific features in your applications.

> Hope someone can enlighten me. Thanks ;)
>
>

Craig


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




DBPool on Tomcat

2002-02-14 Thread Marcelo Mathias Lima

Hey guys...

Does anyone can help me? I need to know if Tomcat has a DBPool and
a fast example to know how to get these connections...

I know that u can already answered this before, but I think that it is easy
to who really knows. And u DO know, right? :)

Thanks in advance,

--
Marcelo Mathias Lima
[EMAIL PROTECTED]
Java/JSP Developer



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




RE: restarting Tomcat 4

2002-02-14 Thread Thanh Duong

Hi,
to start tomcat in a separate window use
"$CATALINA_HOME/bin/catalina.sh start"

to stop tomcat use
"$CATALINA_HOME/bin/catalina.sh stop"

It works fine so you don't need to wait for ending the tomcat process.

Bye
Thanh

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Donnerstag, 14. Februar 2002 16:02
To: [EMAIL PROTECTED]
Subject: restarting Tomcat 4


Hi.

 I was wondering if anyone out there has a good way of restarting Tomcat
4...?  In version 3, I used to just be able to do
"$TOMCAT_HOME/bin/shutdown.sh; $TOMCAT_HOME/bin/startup.sh".  Now, in
version
4 though, since the starting and stopping scripts seem to have been modified
to be background processes, this no longer works since it won't wait for the
first script to finish anymore before starting the second one.  Now, my
restart alias looks like this: "$CATALINA_HOME/bin/shutdown.sh; sleep 40;
$CATALINA_HOME/bin/startup.sh".  Pretty lame, and I just arrived at the
sleep
value by trial and error (actually as I add more stuff in my server.xml
file,
I think the shutdown might even take longer, so I may need to bump this
value
up).  Does anyone have any more elegant/exact ways of doing this?

Thanks,
-Jeff



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


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




Re: CDROM applications with tomcat

2002-02-14 Thread Alex Brain

Hi Franck - I've done exactly that with a copy of DB2 Everyplace and Tomcat - simply 
edit your server.xml file as follows:

Find the default logger configuration line

  

and change it to instead log everything to a console window

  

You'll get to see all the startup and error messages, but at least it doesn't write to 
the disk. Even our sales team can cope with this for demoing our software! Hope it 
helps,

Alex


>>> [EMAIL PROTECTED] 14/02/02 16:32:36 >>>

Hi, Franck.

 I'm not sure if this would work, but maybe you could try to define a
$CATALINA_BASE that is on the hard disk while keeping the $CATALINA_HOME
pointed to the CD...?  Just a thought.

Good luck.
-Jeff



   
  
Franck Delahaye
  
 cc: 
  
   Subject: CDROM applications with 
tomcat   
02/14/02 10:20 AM  
  
Please respond to  
  
"Tomcat Users List"
  
   
  
   
  




Hi,
I am new to tomcat and uses the 3.2 version to make a web application.
I'd like to run tomcat from a cdrom on a windows boxe :
   after having tested my application on the hard disk, I have put the
tomcat tree on a cd with a jvm and and launched the startup.bat script
that launches tomcat
It seems that tomcat wants to write in the log directory and also in the
conf directory.
Is it possible to make a specific configuration and launch tomcat sothat
it does not try to write any files and run from a tomcat directory tree
on a CDROM ?

regards,
Franck



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






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


***
This transmission contains information which may be confidential and  
which may also be privileged.  It is intended for the named addressee  
only.  Unless you are the named addressee, or authorised to receive it 
on behalf of the addressee you may not copy or use it, or disclose it 
to anyone else.  If you have received this transmission in error please 
contact the sender.  Thank you for your cooperation. 
***

For more information about AEA Technology please visit our website at 
http://www.aeat.co.uk

AEA Technology plc registered office 329 Harwell, Didcot, Oxfordshire OX11 0QJ.
Registered in England and Wales, number 3095862.




Re: CDROM applications with tomcat

2002-02-14 Thread jeff . guttadauro


Just noticed that you're using tomcat 3.2, so this wouldn't be an option
unless you upgraded to version 4.  I don't know of a way to do it under
version 3 (doesn't mean there isn't one).



   
   
jeff.guttadauro@   
   
abbott.com  To: "Tomcat Users List" 
<[EMAIL PROTECTED]>  
cc:
   
02/14/02 10:32  Subject: Re: CDROM applications with 
tomcat   
AM 
   
Please respond 
   
to "Tomcat Users   
   
List"  
   
   
   
   
   





Hi, Franck.

 I'm not sure if this would work, but maybe you could try to define a
$CATALINA_BASE that is on the hard disk while keeping the $CATALINA_HOME
pointed to the CD...?  Just a thought.

Good luck.
-Jeff




Franck Delahaye

 cc:

   Subject: CDROM applications
with tomcat
02/14/02 10:20 AM

Please respond to

"Tomcat Users List"







Hi,
I am new to tomcat and uses the 3.2 version to make a web application.
I'd like to run tomcat from a cdrom on a windows boxe :
   after having tested my application on the hard disk, I have put the
tomcat tree on a cd with a jvm and and launched the startup.bat script
that launches tomcat
It seems that tomcat wants to write in the log directory and also in the
conf directory.
Is it possible to make a specific configuration and launch tomcat sothat
it does not try to write any files and run from a tomcat directory tree
on a CDROM ?

regards,
Franck



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






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






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




Re: Configuring apache + tomcat on separate machines

2002-02-14 Thread Keith Simpson

Would think it would have to be possible.  since they communicate via
ajp protocol, you just need to specify something other than localhost on
the tomcat side I would think.  the ajp stuff has default ports of
something like 8007 and 8009.  


Sharanya Vemu wrote:
> 
> if any one hasnt done it , well the  question is can this be done ?? at all
> , someone can surely reply for that atleast!!
> 
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, February 14, 2002 3:31 AM
> To: [EMAIL PROTECTED]
> Subject: Re: Configuring apache + tomcat on separate machines
> 
> DOESEN'T ANYONE KNOW HOW TO DO THIS?
> SURELY SOMEONE MUST KNOW!
> 
> --
> To unsubscribe:   
> For additional commands: 
> Troubles with the list: 

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




Problem in connecting apache and tomcat on different hosts

2002-02-14 Thread Eswar.K

hi all,
 
I have a problem here..
I have apache 1.3 on 1 machine and tomcat 3.2.3 on another machine.
how do i make them talk to each other.
where and what do i configure in apache so that it talks to tomcat on
another host.
if they are on the same machine then it works fine...
 
Thanks in advance...
 
Regards,
Eswat



problem configuring security appn with Netscape Directory Structure

2002-02-14 Thread jay n gaba


hi
I am trying to run the sample security example (i.e 
http://localhost:8080/examples/jsp/security/protected/)
using netscape directory structure.I can connect to ldap but while trying to connect 
to the application I receive an invalid user or password error.
I have successfully connected through an ldap browser.
Netscape Directory server has been configured to use the SHA algorithm for encrypting 
the passwords.I read some previous archives which suggests that there is some problem 
while comparing the passwords.I have tried removing passwords but still it throws the 
same error.

Can anyone give me some direction on this.??? I have pasted below the realm 
configuration and a sample entry in the ldap. I have used the sample entry given by 
the tomcat site.

Thanks in advance

Jay

ldap://abc2.xyz.org:8389/o=abc.org";
roleBase="cn=roles,o=abc.org"
roleName="cn"
roleSearch="(uniqueMember={0})"
roleSubtree="false"
userPassword="userpassword"
userPattern="cn={0},o=abc.org" 
digest="SHA"/>

ldap entry :

# Define a user named 'tomcat'
dn: cn=tomcat,o=abc.org
cn: tomcat
userpassword: tomcat
sn: Tomcat User
objectClass: person
 


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




Re: CDROM applications with tomcat

2002-02-14 Thread jeff . guttadauro


Hi, Franck.

 I'm not sure if this would work, but maybe you could try to define a
$CATALINA_BASE that is on the hard disk while keeping the $CATALINA_HOME
pointed to the CD...?  Just a thought.

Good luck.
-Jeff



   
  
Franck Delahaye
  
 cc: 
  
   Subject: CDROM applications with 
tomcat   
02/14/02 10:20 AM  
  
Please respond to  
  
"Tomcat Users List"
  
   
  
   
  




Hi,
I am new to tomcat and uses the 3.2 version to make a web application.
I'd like to run tomcat from a cdrom on a windows boxe :
   after having tested my application on the hard disk, I have put the
tomcat tree on a cd with a jvm and and launched the startup.bat script
that launches tomcat
It seems that tomcat wants to write in the log directory and also in the
conf directory.
Is it possible to make a specific configuration and launch tomcat sothat
it does not try to write any files and run from a tomcat directory tree
on a CDROM ?

regards,
Franck



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






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




Re: JAXP

2002-02-14 Thread Micael Padraig Og mac Grene

I got the pack, and it was not in there.  I will try again.  Fourth time.

At 09:52 AM 2/14/02 -0500, you wrote:
>Hi,
>It's in the Sun XML pack (among other places), at
>http://java.sun.com/xml/downloads/javaxmlpack.html
>
>Yoav Shapira
>
>
>[EMAIL PROTECTED] wrote:
> >
> > I got it about 6 months ago and you're right, I can't seem
> > to find it again.
> >
> >
> >> Where did you find jaxp.jar, if you 
> did?  I
> >> have been looking everywhere
>
>--
>To unsubscribe:   
>For additional commands: 
>Troubles with the list: 



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




CDROM applications with tomcat

2002-02-14 Thread Franck Delahaye

Hi,
I am new to tomcat and uses the 3.2 version to make a web application.
I'd like to run tomcat from a cdrom on a windows boxe :
   after having tested my application on the hard disk, I have put the 
tomcat tree on a cd with a jvm and and launched the startup.bat script 
that launches tomcat
It seems that tomcat wants to write in the log directory and also in the 
conf directory.
Is it possible to make a specific configuration and launch tomcat sothat 
it does not try to write any files and run from a tomcat directory tree 
on a CDROM ?

regards,
Franck



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




Deploying wars using Manager

2002-02-14 Thread John Wadkin

All,

Is it possible for me to deploy a Web App stored on my Windows NT machine to
TomCat running under Unix using the Manager Web App? The docs (as ever)
aren't clear on if this can be done and how. If not, then what's the point
of the Manager app? 

Thanks,

John

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




Re: "Standard" filter implementations

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, Attila Szegedi wrote:

> Date: Thu, 14 Feb 2002 11:45:29 +0100
> From: Attila Szegedi <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: Tomcat Users List <[EMAIL PROTECTED]>
> Subject: "Standard" filter implementations
>
> People,
>
> does anyone know if there are "standard" (open source, of course)
> implementations of a caching filter (one that would perform content-caching
> on the server side) and a compression filter (one that would at least
> implement gzip and deflate transfer encodings  - since these algorithms are
> readily available in Java). These filters have very common usage, and I'd be
> surprised if no one actually took a stab at them already.
>

There is a just-barely-started effort within the Jakarta Commons project
to create a package of nice, reusable, Filters.  Caching is one of the use
cases (and it will need more than one implementation, because different
applications will have different requirements), but no code has been
submitted yet.

This will be discussed on the COMMONS-DEV mailing list -- see
 for subscription information.

For compression, there's an output filter that does this for you included
in the example app of Tomcat 4.  You can rip it out and use it in your own
applications as well.  (Yes, this is going to be contributed to the
Commons package once it's up and running :-).

> --
> Attila Szegedi
> home: http://www.szegedi.org
>

Craig McClanahan


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




RE: Configuring apache + tomcat on separate machines

2002-02-14 Thread Sharanya Vemu

if any one hasnt done it , well the  question is can this be done ?? at all
, someone can surely reply for that atleast!!

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 3:31 AM
To: [EMAIL PROTECTED]
Subject: Re: Configuring apache + tomcat on separate machines


DOESEN'T ANYONE KNOW HOW TO DO THIS?
SURELY SOMEONE MUST KNOW!

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




Re: Scale Tomcat-Apache - Is this true?

2002-02-14 Thread Christopher K. St. John

Brown Bay wrote:
> 
> http://www.apachelabs.org/tomcat-user/200112.mbox/%3C01f101c17e30$577e27a0$4
> [EMAIL PROTECTED]%3E
> 

  http://mikal.org/interests/java/tomcat/archive/view?mesg=55280 

"Highlights in this release include: Full support for the
 AJP 1.3 and 1.4 native connector protocols, including
 load balancing"

-- 
Christopher St. John [EMAIL PROTECTED]
DistribuTopia http://www.distributopia.com

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




Re: reloading classes - rephrase

2002-02-14 Thread Craig R. McClanahan



On Thu, 14 Feb 2002, tamir wrote:

> Date: Thu, 14 Feb 2002 10:54:15 +0200
> From: tamir <[EMAIL PROTECTED]>
> Reply-To: Tomcat Users List <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Subject: reloading classes - rephrase
>
> Hi there,
> I've a simple question, hope there's a simple answer.
>
> Is it possible to do autoreload for classes not found in WEB-INF/classes or
> WEB-INF/lib
> without restarting tomcat or reloading my web-app classes ?
> (I mean i put my classes OUTSIDE the web-app).
>
> I'm using tomcat 3.3, but can do the advance to 4.02 if needed.
>
> Tnx Alot
> for any information!
>

The answer is simple:  no.

Java provides no mechanism for unloading a class that has already been
loaded.  The way that reloading is implemented for a webapp is to throw
away the entire class loader used to load that webapp, and starting over
again.  If we did that for shared classes, however, you'd have to restart
*all* webapps because they would all need to be thrown away.

If you want to take advantage of the auto-reload capability to update
classes in a webapp, you *must* put those classes in /WEB-INF/classes, or
in a JAR file in /WEB-INF/lib.

Craig McClanahan



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




RE: Scale Tomcat-Apache - Is this true?

2002-02-14 Thread Ming Fai

to my understanding, tomcat 4.02 beta has fixed the mod_jk load balancing
problem. The newly released 4.02 should support load balancing, could
somebody confirm this?

regards,
mingfai

-Original Message-
From: Brown Bay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, February 14, 2002 11:53 PM
To: Tomcat Users List
Subject: Re: Scale Tomcat-Apache - Is this true?


> I have Apache 1.3.19 and Tomcat 4.0.1 running off a Suse Linux box "A". I
> can scale this config for upto 1500 users giving acceptible response
times.
> I have an identical machine "B".
>
> What I would like to do is run Apache on machine A, serving requests off
to
> Tomcat on machines A and B, some kind of load balancing to achieve better
> performance and server more users. Can somebody please point me to
> documentation that shows how to do this.
>
>
> Brown.

I found this on the internet. Is this true. Is there a workaround to this.

http://www.apachelabs.org/tomcat-user/200112.mbox/%3C01f101c17e30$577e27a0$4
[EMAIL PROTECTED]%3E

If I do go back to TC3.3, what do I gain/lose in terms of functionality and
performance.


Brown.


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


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




  1   2   >