Whats wrong with this code?

2002-06-10 Thread Juan

This piece of code don't work if the '@' is not found:

  String em = usuario.getEmail();
  int p = em.indexOf('@');
  out.println(Integer.toString(p));

if the '@' is within the string, it works well. Why?

Thanks in advance,

Juan José Velázquez Garcia
Web Development
www.htmlspider.com.br



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




Re: About thread mod_jk: ajp13: cpu load problem with apache

2002-06-10 Thread Costas Stergiou

Hi Francisco,
I really know how annoying (at least) it is to find a definite problem/bug
and
have noone from the list care or try to solve it. I have been using
tomcat/apache
in a production environment for too long and I am now so commited to it I
cannot
change it.

Unfortunately, I have not found any real workaroung, BUT: I did solve the
problem
for me. The solution is quite simple and it is just a shell script that I
run it every 1 second
through crontab that checks for runaway httpd processes and kill them (only
the runaway
process).
This does not affect neither apache nor tomcat and it does resolve the
issue.
I know this is not a real solution, but reality is a really strange thing
when it comes
to productin environments. I don't like myself this solution, but in fact it
is a solution!
The script is very simple, and it works fine for AIX. Maybe for another os
you may
need to modify the ps/grep arguments but this should be fairly easy.
Here is the script:

#!/bin/ksh
##Periodically check for httpd runaway processes and kill them!
ps aux | grep HTTPServer | read a b c d
load=`echo $c|cut -f 1 -d ,`
if [ $load -gt 1 ]
then
  echo Killing process $b since load is $c
  kill -9 $b
fi

If you add a crontab entry with this you wil get an e-mail every time
you have a runaway process too.

If you need any more help with the above or anything else, pls say so,
kind regards,
Costas

- Original Message -
From: Francisco R. Santos [EMAIL PROTECTED]
To: Costas Stergiou [EMAIL PROTECTED]
Sent: Friday, June 07, 2002 12:11 PM
Subject: About thread mod_jk: ajp13: cpu load problem with apache


Hi Costas,

I'm having the same problem you stated in this thread
(http://www.apachelabs.org/tomcat-user/200205.mbox/%3c034e01c1f73a$2c1015a0
$[EMAIL PROTECTED]%3e), and I haven't found any solution yet.

Did you find any solution for this problem?

Thanks in advance,
Francisco

__

Francisco R. Santos Méndez [EMAIL PROTECTED]
qarana Solutions S.A. Tel:+34.91.789.74.00   Fax: +34.91.789.74.01
Capitán Haya 1, EuroCentro Building 6ª floor  28020  Madrid  Spain
__


-
This mail sent through IMP: http://horde.org/imp/



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




Strarting-up Error Message

2002-06-10 Thread Marek, Tomas

Guys,
 
when starting Tomcat 4.03, I get the following message in the terminal
window:
 
Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Address
 already in use: JVM_Bind:80
LifecycleException:  null.open:  java.net.BindException: Address already in
use:
 JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
However, it seems the server works fine (I tried some servlets). The
possible culprit could be config file server.XML in install_dir/conf path. I
did only 2 changes in it, as suggested in M. Hall's book:
!. Changed the default port 8080 to 80
2. Added element DefaultContext reloadable=true/ to ensure automatic
reloading.
 
So, do you have any idea, what could be wrong?
 
Thanks for your help.
Tom



AW: Solaris JVM never seems to garbage collect, runs out eventually.

2002-06-10 Thread Ralph Einfeldt

Answer to both questions: I don't know.
Haven't looked much at jikes. 

In the past there was a big difference, sun's licence 
didn't allow to redistribute a jdk (just a jre which 
has no compiler).
So people who wanted to distribute JSP's applications 
without precompiled pages used jikes. But several 
month ago sun changed the license, so it its possible 
to include tools.jar (which includes javac) in a 
distribution. Since then the volume of jikes related 
questions in this list went down.

 -Ursprüngliche Nachricht-
 Von: August Detlefsen [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 7. Juni 2002 22:19
 An: Tomcat Users List
 Betreff: Re: Solaris JVM never seems to garbage collect, runs out
 eventually.
snip/
 Will jikes work with JDK 1.4? 
 Are there any other benefits to using jikes besides the memory leak
 issue? 
snip/

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




please help..Tomcat4+Ibm jdk1.3 get hang in FreeBSD

2002-06-10 Thread sonam singh

hi

I installed the linux-jdk1.3 and linux-ibm-jdk1.3.1
using ports . When i tried to run tomcat4+with above
JVM machine gets hang...Below is some of the parameter
which i tried ..

Os  Jdk   TomcatRun/Or Not

FreeBSD Sun1.2 4xYes
FreeBSD Sun1.3 4xNo(HotSpot Error Unable to
Find Pid) ..Why???

FreBSD  Sun1.4 4xNo(HotSpot Error Unable to
Find Pid) ..Why???
FreeBSD IBM1.3 4xHang..Why ???   
FreeBSD IBM1.3.1   4xHang..Why???
Windows98   IBM1.3 4xRun
Windows98   IBM1.3.1   4xRun




4x:-Tomcat 4.0.1 and Tomcat4.0.3
FreeBSD4.5 Release + Linux_base6

Is there any problem with Tomcat4 or FreeBSD . I thing

the problem is on the FreeBSD .Tomcat4 runs
successfuly even in windows98... Can u provide any
suggestion
 
Bye
Sonam


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




please help..Tomcat4+Ibm jdk1.3 get hang in FreeBSD

2002-06-10 Thread sonam singh



hi

I installed the linux-jdk1.3 and linux-ibm-jdk1.3.1
using ports . When i tried to run tomcat4+with above
JVM machine gets hang...Below is some of the parameter
which i tried ..

Os  Jdk   TomcatRun/Or Not
FreeBSD Sun1.2 4xYes
FreeBSD Sun1.3 4xNo(HotSpot Error Unable to
Find Pid) ..Why???

FreBSD  Sun1.4 4xNo(HotSpot Error Unable to
Find Pid) ..Why???
FreeBSD IBM1.3 4xHang..Why ???   
FreeBSD IBM1.3.1   4xHang..Why???
Windows98   IBM1.3 4xRun
Windows98   IBM1.3.1   4xRun

FreeBSD Sun1.2 3xRun
FreeBSD Sun1.3 3xRun
FreeBSD Sun1.3.1   3xRun
FreeBSD Sun1.4 3xRun
FreeBSD IBM1.3 3xRun
FreeBSD IBM1.3.1   3xRun




4x:-Tomcat 4.0.1 and Tomcat4.0.3
FreeBSD4.5 Release + Linux_base6

Is there any problem with Tomcat4 or FreeBSD . I thing

the problem is on the FreeBSD .Tomcat4 runs
successfuly even in windows98... Can u provide any
suggestion
 
Bye
Sonam


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




windows to linux

2002-06-10 Thread Aline

Hi,

I have an application which works under Tomcat on windows.
I tried to move the application to Tomcat linux. 

But the xtags in my jsp pages don't work anymore.
Is there any file to init in linux or something else to do so that it work?

Thanks

Aline
Webcaster


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




RE: problem..plz help me out

2002-06-10 Thread jon wingfield

Puneet,

Fairly certain that puneet has to be either a bona fide DNS name (or for
development an alias in your hosts file)

Jon

-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: 08 June 2002 20:22
To: Xinji Gu
Subject: problem..plz help me out


Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help meI really stuck ..

With this mail Im sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..im in need badly and afater
spending so much time here I some time feel like
crying  and Im in such a place and in such a part of
India..where I cant get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working
2)  I have done all changes which were to made in
server.xml)I have send the file also plz check it and
tell me any mistake if u find)
3)  Im getting 404 error ..no servlet found
4)  And Im able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me Ill be very grateful
to u

Puneet


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


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




RE: Whats wrong with this code?

2002-06-10 Thread Chris Campbell


That part of the code looks ok. I suspect it is something after that which
gives you the problem - what else do you do with p? Remember indexOf returns
-1 if the substring is not found. This means that if you then use p to try
checking the name of the email like:

String namePart = em.substring(0, p); 

you will get an IndexOutOfBoundsException.

ChrisC


 This piece of code don't work if the '@' is not found:
 
   String em = usuario.getEmail();
   int p = em.indexOf('@');
   out.println(Integer.toString(p));
 
 if the '@' is within the string, it works well. Why?

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




RE: Redirect port 80 requests to 443

2002-06-10 Thread Sefton, Adam

John,

I'm not sure if I am missing your point, but it sounds like I wanted to achieve the 
same thing as you (that is all requests to a standalone instance of Tomcat via https) 
and I did this by placing the following snippet of code in the /conf/web.xml, which 
applies to all applications:

  security-constraint
web-resource-collection
web-resource-nameAll Servlets/web-resource-name
url-pattern/*/url-pattern
/web-resource-collection
user-data-constraint
 transport-guarantee
CONFIDENTIAL
 /transport-guarantee
/user-data-constraint
  /security-constraint

This goes at the very end of web.xml, just before /web-app. This causes all requests 
on that Tomcat instance to use https.

Does this help at all?

Adam

-Original Message-
From: John Roth [mailto:[EMAIL PROTECTED]]
Sent: 07 June 2002 20:59
To: 'Tomcat Users List'
Subject: RE: Redirect port 80 requests to 443


Actually, I took it a step further:  I wanted to be sure that anyone who
goes to http: gets redirected.  With just a simple redirection page, someone
could still go http://oursite/ourapp and get by without using SSL.

Here's what I did:
1. added a new Service with the http connector (port 80) and a single app
with 1 page (index.html) and web.xml.
2. The index.html redirects them to https:
3. Snippets of code from server.xml:

Service name=Tomcat-(Redirector)
   Connector className=org.apache.catalina.connector.http.HttpConnector
address=x.x.x.x port=80 {remainder removed for ease}/
Engine name=Redirector defaultHost=localhost
Host name=localhost debug=4 appBase=webapps
unpackWARs=true
Context path= docBase=e:/staging/wwwroot/Redirector
reloadable=false/
/Host
/Engine
/Service
  Service name=Tomcat-(Staging)
Connector className=org.apache.catalina.connector.http.HttpConnector
address=x.x.x.x port=443 {remainder removed}
Factory className=org.apache.catalina.net.SSLServerSocketFactory
{remaining SSL Factory stuff}/
  /Connector
Engine name=Standalone defaultHost=localhost
... remainder of server.xml ...

Thanks,
John

-Original Message-
From: Richard S. Huntrods [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 3:38 PM
To: [EMAIL PROTECTED]
Subject: RE: Redirect port 80 requests to 443


John Roth said:

This seems simple, but ...

I am running Tomcat 4.0.3, standalone on w2k.  I would like all requests
to
http://oursite/ to be automatically redirected to https://oursite/ but
am
not finding an elegant/simple solution.  Below is a snippet from
server.xml:


Why not simply create a web page that automatically redirects the
request to the https page?  That is what I did and it works fine.

-Richard


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


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


**
This message may contain information which is confidential or privileged.
If you are not the intended recipient, please advise the sender immediately
by reply e-mail and delete this message and any attachments
without retaining a copy.  

**


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




Can't Stop Tomcat 4.03

2002-06-10 Thread Marek, Tomas

When running batch file shutdown.bat or link from start menu, which runs
bootstrap.jar stop, Tomcat runs on and can't be stopped. What could I do
to stop it?
 
tom



RE: Can't Stop Tomcat 4.03

2002-06-10 Thread Aline

You can try to press keys Ctrl+c in the Tomcat Window

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




RE: Can't Stop Tomcat 4.03

2002-06-10 Thread Marek, Tomas

Thanks, but the window is out already. When looking into process manager
(W2k), the tomcat.exe resides still there even after machine rebooting. How
can I kill it? Process manager disallow me to do it by hand. Any
suggestions?

tom

-Original Message-
From: Aline [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 11:12 AM
To: Tomcat Users List
Subject: RE: Can't Stop Tomcat 4.03

You can try to press keys Ctrl+c in the Tomcat Window

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

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




why JServ??

2002-06-10 Thread mishra

Hi All,
Is it necessary to usr JServ to connect as https from Apache to Tomcat???
Please help..
Regards,
mishra


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




Re: why JServ??

2002-06-10 Thread Nikola Milutinovic

 Hi All,
 Is it necessary to usr JServ to connect as https from Apache to Tomcat???

No. JServ is a deprecated Apache Java project implementing Java Servlets. It has been 
pulled out of use/support (practically, although Oracle uses it). You should use one 
of Tomcat's connectors:

- mod_webapp
- mod_jk
- mod_jk2

Nix.



JNDI lookup connection datasource microsoft sql server

2002-06-10 Thread John McAuley

Hi folks,

I am trying to use Microsoft's jdbc driver for ms sql with Tomcat and am running 
into trouble with the JNDI lookup method.  I look for a datasource and get null.  If I 
use the class.forname method the driver is found and works perfectly but I am unable 
to get it working with the JNDI look up,  This is very frustrating and seems to crop 
up a couple of times with fellow users.  Any thoughts ??

Help much appreciated.

John

Server.xml

 Context path=/tools docBase=tools debug=0 reloadable=true
Resource name=jdbc/ToolsDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/ToolsDB
parameter
nameuser/name
valueuser/value
/parameter
parameter
namepassword/name
valuepassword/value
/parameter
parameter
namedriverClassName/name

valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
namedriverName/name

valuejdbc:microsoft:sqlserver://IP-ADDRESS-of-server:1433/value
/parameter
/ResourceParams
/Context

web.xml

 resource-ref
  description
  Resource reference to a factory for java.sql.Connection
 instances that may be used for talking to a particular
 database that is configured in the server.xml file.
 /description
res-ref-name
 jdbc/ToolsDB
 /res-ref-name
 res-type
 javax.sql.DataSource
 /res-type
 res-auth
 Container
 /res-auth
/resource-ref

Code Snippet

  Context ctx = new InitialContext();
 Context envCtx = (Context)ctx.lookup(java:comp/env);
 out.println(Got first context.);

NamingEnumeration enum =ctx.listBindings(java:comp/env/jdbc);
  while( enum.hasMore() ) {
   out.println(Binding:  + ((Binding)enum.next()).toString() + 
br);
  }
DataSource ds = (DataSource)envCtx.lookup(jdbc/ToolsDB);
out.println(Got the second context. + br + br);

  if (ds != null)
  {
 out.println(Getting the connection from the context.);
 Connection connection = ds.getConnection();
}else{
out.println(not working);
}




AW: Can't Stop Tomcat 4.03

2002-06-10 Thread Sven Woltmann

Hi,

you've probably installed Tomcat with the NT Service (NT/2k/XP only)
option selected (which is unselected by default).  I don't know if you can
deinstall this option with the Tomcat install program.  If you can't, then
disable the Tomcat service in System Control / Services and set the startup
type to deactivated. 

Or... deinstall Tomcat and reinstall it without the NT Service option.
That's what I did to get it clean.

Sven



 -Ursprngliche Nachricht-
 Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Juni 2002 11:13
 An: 'Tomcat Users List'
 Betreff: RE: Can't Stop Tomcat 4.03
 
 
 Thanks, but the window is out already. When looking into 
 process manager
 (W2k), the tomcat.exe resides still there even after machine 
 rebooting. How
 can I kill it? Process manager disallow me to do it by hand. Any
 suggestions?
 
 tom
 
 -Original Message-
 From: Aline [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, June 10, 2002 11:12 AM
 To: Tomcat Users List
 Subject: RE: Can't Stop Tomcat 4.03
 
 You can try to press keys Ctrl+c in the Tomcat Window
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: Can't Stop Tomcat 4.03

2002-06-10 Thread Marek, Tomas

Thanks, it sounds promising.

-Original Message-
From: Sven Woltmann [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 11:22 AM
To: 'Tomcat Users List'
Subject: AW: Can't Stop Tomcat 4.03

Hi,

you've probably installed Tomcat with the NT Service (NT/2k/XP only)
option selected (which is unselected by default).  I don't know if you can
deinstall this option with the Tomcat install program.  If you can't, then
disable the Tomcat service in System Control / Services and set the startup
type to deactivated. 

Or... deinstall Tomcat and reinstall it without the NT Service option.
That's what I did to get it clean.

Sven



 -Ursprngliche Nachricht-
 Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Juni 2002 11:13
 An: 'Tomcat Users List'
 Betreff: RE: Can't Stop Tomcat 4.03
 
 
 Thanks, but the window is out already. When looking into 
 process manager
 (W2k), the tomcat.exe resides still there even after machine 
 rebooting. How
 can I kill it? Process manager disallow me to do it by hand. Any
 suggestions?
 
 tom
 
 -Original Message-
 From: Aline [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, June 10, 2002 11:12 AM
 To: Tomcat Users List
 Subject: RE: Can't Stop Tomcat 4.03
 
 You can try to press keys Ctrl+c in the Tomcat Window
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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

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




AW: JasperException

2002-06-10 Thread Power-Netz \(Schwarz\)



 I'm trying to use a jsp page with a JavaBean and getting the
 following error:
 org.apache.jasper.JasperException: Unable to compile class for JSP

 The jsp page is very simple:
 html
 head
titleTEST PAGE/title
 /head
 body
jsp:useBean is=usr class=study.User /
   should be id (a typo in your mail or your
application?)
%= usr.getId() %
 /body
 /html



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




How to place HTML and JSP files in different directory apart from Tomcat root for Apache-Tomcat 4.0.3

2002-06-10 Thread Rama

Hi!!,

I am using Linux OS for the Apache TOMCAT 4.0.3 configuration. I am using 
webapp_module(ie warpconnector 
not APJ13 connecter) for connecting between apache web server and Tomcat Servlet 
engine.

I am facing 2 problems:

1. After the connection is established between apache web server and Tomcat i am not 
able to access the html files from the url http://ServerIpaddress/myhtml/myhtml.html. 
These html files are under (Document root) /htdocs/myhtml dir of apache.

But when i kept these html files  along with jsp files under 
TOMCAT_HOME/webapps/myhtml/htmlfiles 
then i am able to access these Html files from the above url.
I think the html request apache receives is sent to tomcat immdtly so it doesn't look 
into /htdocs dir 
of apache.

So i want to know how to place these html files in different directory apart from the 
Tomcat webapps dir TOMCAT_HOME/webapps/myhtml/htmlfiles.
I tried using alias in httpd.conf file in apache. but it didn't work.
Alias /myhtml/ /home/myhtml/
I tried to change the DocumentRoot of apache to /home/myhtml/ even then i am not 
able to access these 
html files present in the /home/myhtml/ directory.
So please tell me how to come out of this problem. 

2. Similarly i want to know how to place jsp files in separate 
directory(eg:/usr/myjsps/all jsp files) apart from the docBase dir ie 
TOMCAT_HOME/webapps/myjsps.


Thanks in advance..

With Regds,
Rama




-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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




AW: Strarting-up Error Message

2002-06-10 Thread franzR

How often did you start Tomcat? ( i.e. ps -e | grep java)
I'm using Tomcat on a unix box and it happens sometimes that a shutdown of
tomcat does not kill the (jvm)-process. Then a restart of tomcat will - of
course - leed to an error because tomcat is still running!

franzR

-Ursprngliche Nachricht-
Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Juni 2002 09:24
An: [EMAIL PROTECTED]
Betreff: Strarting-up Error Message


Guys,

when starting Tomcat 4.03, I get the following message in the terminal
window:

Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Address
 already in use: JVM_Bind:80
LifecycleException:  null.open:  java.net.BindException: Address already in
use:
 JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

However, it seems the server works fine (I tried some servlets). The
possible culprit could be config file server.XML in install_dir/conf path. I
did only 2 changes in it, as suggested in M. Hall's book:
!. Changed the default port 8080 to 80
2. Added element DefaultContext reloadable=true/ to ensure automatic
reloading.

So, do you have any idea, what could be wrong?

Thanks for your help.
Tom


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




Re: AW: Strarting-up Error Message

2002-06-10 Thread matt dilley

did you start tomcat from the root user?
If the server port is changed to 80, you have to make sure that you
start the process from root, as that is the only user that is allowed to
access that port

Matt

On Mon, 2002-06-10 at 10:25, franzR wrote:
 How often did you start Tomcat? ( i.e. ps -e | grep java)
 I'm using Tomcat on a unix box and it happens sometimes that a shutdown of
 tomcat does not kill the (jvm)-process. Then a restart of tomcat will - of
 course - leed to an error because tomcat is still running!
 
 franzR
 
 -Ursprüngliche Nachricht-
 Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Juni 2002 09:24
 An: [EMAIL PROTECTED]
 Betreff: Strarting-up Error Message
 
 
 Guys,
 
 when starting Tomcat 4.03, I get the following message in the terminal
 window:
 
 Catalina.start: LifecycleException:  null.open:  java.net.BindException:
 Address
  already in use: JVM_Bind:80
 LifecycleException:  null.open:  java.net.BindException: Address already in
 use:
  JVM_Bind:80
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
 ctor.java:1130)
 at
 org.apache.catalina.core.StandardService.initialize(StandardService.j
 ava:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
 a:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Address already in use: JVM_Bind:80
 at
 org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
 ava:950)
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
 ctor.java:1128)
 at
 org.apache.catalina.core.StandardService.initialize(StandardService.j
 ava:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
 a:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 However, it seems the server works fine (I tried some servlets). The
 possible culprit could be config file server.XML in install_dir/conf path. I
 did only 2 changes in it, as suggested in M. Hall's book:
 !. Changed the default port 8080 to 80
 2. Added element DefaultContext reloadable=true/ to ensure automatic
 reloading.
 
 So, do you have any idea, what could be wrong?
 
 Thanks for your help.
 Tom
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 



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




RE: Strarting-up Error Message

2002-06-10 Thread Marek, Tomas

I think the problem is caused by residential running of Tomcat on W2k box.
Not knowing that, I started Tomcat thus second time. That's it! How is it on
Linux box, have no idea.

tom

-Original Message-
From: franzR [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 11:25 AM
To: Tomcat Users List
Subject: AW: Strarting-up Error Message

How often did you start Tomcat? ( i.e. ps -e | grep java)
I'm using Tomcat on a unix box and it happens sometimes that a shutdown of
tomcat does not kill the (jvm)-process. Then a restart of tomcat will - of
course - leed to an error because tomcat is still running!

franzR

-Ursprngliche Nachricht-
Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Juni 2002 09:24
An: [EMAIL PROTECTED]
Betreff: Strarting-up Error Message


Guys,

when starting Tomcat 4.03, I get the following message in the terminal
window:

Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Address
 already in use: JVM_Bind:80
LifecycleException:  null.open:  java.net.BindException: Address already in
use:
 JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

However, it seems the server works fine (I tried some servlets). The
possible culprit could be config file server.XML in install_dir/conf path. I
did only 2 changes in it, as suggested in M. Hall's book:
!. Changed the default port 8080 to 80
2. Added element DefaultContext reloadable=true/ to ensure automatic
reloading.

So, do you have any idea, what could be wrong?

Thanks for your help.
Tom


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

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




RE: AW: Strarting-up Error Message

2002-06-10 Thread Marek, Tomas

No, it happens on W2k box. Thanks anyway. It's been solved out.

-Original Message-
From: matt dilley [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 11:45 AM
To: Tomcat Users List
Subject: Re: AW: Strarting-up Error Message

did you start tomcat from the root user?
If the server port is changed to 80, you have to make sure that you
start the process from root, as that is the only user that is allowed to
access that port

Matt

On Mon, 2002-06-10 at 10:25, franzR wrote:
 How often did you start Tomcat? ( i.e. ps -e | grep java)
 I'm using Tomcat on a unix box and it happens sometimes that a shutdown of
 tomcat does not kill the (jvm)-process. Then a restart of tomcat will - of
 course - leed to an error because tomcat is still running!
 
 franzR
 
 -Ursprüngliche Nachricht-
 Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Juni 2002 09:24
 An: [EMAIL PROTECTED]
 Betreff: Strarting-up Error Message
 
 
 Guys,
 
 when starting Tomcat 4.03, I get the following message in the terminal
 window:
 
 Catalina.start: LifecycleException:  null.open:  java.net.BindException:
 Address
  already in use: JVM_Bind:80
 LifecycleException:  null.open:  java.net.BindException: Address already
in
 use:
  JVM_Bind:80
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
 ctor.java:1130)
 at
 org.apache.catalina.core.StandardService.initialize(StandardService.j
 ava:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
 a:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 - Root Cause -
 java.net.BindException: Address already in use: JVM_Bind:80
 at
 org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
 ava:950)
 at
 org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
 ctor.java:1128)
 at
 org.apache.catalina.core.StandardService.initialize(StandardService.j
 ava:454)
 at
 org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
 a:553)
 at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
 java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
 sorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
 
 However, it seems the server works fine (I tried some servlets). The
 possible culprit could be config file server.XML in install_dir/conf path.
I
 did only 2 changes in it, as suggested in M. Hall's book:
 !. Changed the default port 8080 to 80
 2. Added element DefaultContext reloadable=true/ to ensure automatic
 reloading.
 
 So, do you have any idea, what could be wrong?
 
 Thanks for your help.
 Tom
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 



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

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




How many rows have a ResultSet?

2002-06-10 Thread Anibal Constante Brito

Hello:

How can I know the rows that have a simple ResultSet, which method or
attribute have to call?

Best Regards.
Owen.

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




Re: How many rows have a ResultSet?

2002-06-10 Thread Elwert . Marcus


Hy,

you can use rs.RecordCount

Regards
Marcus



   
 
Anibal Constante  
 
Brito  To: Tomcat 
[EMAIL PROTECTED]   
aconstante_00@ho   cc:
 
tmail.com  Subject: How many rows have a 
ResultSet?
   
 
10.06.2002 11:55   
 
Please respond to  
 
Tomcat Users  
 
List  
 
   
 
   
 




Hello:

How can I know the rows that have a simple ResultSet, which method or
attribute have to call?

Best Regards.
Owen.

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






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




I need JServ from https(Apache) to https(Tomcat)??

2002-06-10 Thread mishra

Hi All,
I am using Linux 7.0, Apache 1.3.22 and Tomcat 4.0.1 now i am in https in
Apache server so i wanrt to connect to a .jsp in Tomcat.So what should i
do??
I need JServ or not???
Pl. send me in details..
Where to start with??
Regards,
mishra

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




RE: How to write files when web-app is a WAR?

2002-06-10 Thread John Burgess

If the war file is unpacked (which tomcat will do automatically at startup
unless you specify somewhere in server.xml not to) then it is just as if you
had deployed to the webapp\your_app directory yourself.  I believe that
leaving war's unpacked results in slightly worse performance and isn't
recommended for a deployment server anyway.

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666 
Fax: 01865 718600


-Original Message-
From: Chris Bailey [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 8:02 PM
To: Tomcat Mailing List
Subject: How to write files when web-app is a WAR?


From what I've read, it seems that if you package your web application in a
WAR file, you have no way of attaining a path on the server's file system
that you can use to write files.  Reference:
http://mikal.org/interests/java/tomcat/archive/view?mesg=15006.

I have a web app that we'd like to package as a WAR.  But, we need to be
able to write various data files out to the server's file system.  What
solution(s) are people using for this?  Writing the files to a database is
not acceptable for us  (I'm not a DBMS expert, but have been told that BLOB
performance is not great, and that using a DB as a file system replacement
is not good, etc.).

I was thinking we'd have to do a bit of a hack...  Basically, at the time we
install our application, the user will pick the real path on their disk
where the data files are stored.  We then store this in a property in
web.xml, and retrieve that in the app for using as the path.  For
links/hrefs on a web page, we'd just use something like /data_files, but
then set up a path-mapping that had /data_files mapped to say
/home/appname/data_files or whatever.   I also am assuming I will need to
ensure that this real path lies outside of the WAR expanded directory
because someday Tomcat (and maybe others already?) will not expand the WAR
file.

Anyway, what have folks come up with?  While we use Tomcat for all our
development work, we'll likely have to support a variety of Servlet
containers (I think we can require at least Servlet 2.2, hopefully 2.3).


Chris Bailey   mailto:[EMAIL PROTECTED]
Code Intensity   http://www.codeintensity.com


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
 

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




How to place HTML files in different directory apart from Tomcat root for Apache-Tomcat 4.0.3

2002-06-10 Thread Rama


Hi!!,

I am using Linux OS for the Apache TOMCAT 4.0.3 configuration. I am using 
webapp_module(ie warpconnector 
and not APJ13 connecter) for connecting between apache web server and Tomcat Servlet 
engine.
I have 2 problems:

1. My problem is After the connection is established between apache web server and 
Tomcat i am not able 
to access the html files from the url http://serveripadrress/myhtml/myhtml.html. These 
html files are under /htdocs/myhtml dir of apache.

But when i kept these html files  along with jsp files under 
TOMCAT_HOME/webapps/myhtml/all the htmlfiles, 
then i am able to access these Html files from the above url.
I think the html request apache receives is sent to tomcat immdtly so it doesn't look 
into /htdocs dir 
of apache.

So i want to know how to place these html files(also image files) in different 
directory apart from the Tomcat webapps 
dir TOMCAT_HOME/webapps/myhtml/all htmlfiles.
I tried using alias in httpd.conf file in apache. but it didn't work.
Alias /myhtml/ /home/myhtml/
I tried to change the DocumentRoot of apache to /home/myhtml/ even then i am not 
able to access these 
html files present in the /home/myhtml/ directory.

2. Similarly i want to place all my jsp files in separate directory(eg: home/myjsps) 
other than under /webapps/myjsp files directory.

So please tell me how to come out of this problem. 
Tell me what lines to be changed in the httpd.conf file of apache and server.xml of 
tomcat4.0.3
ps: I am able to access all the jsp and html files, if i kept them under 
TOMCAT_HOME/webapps/myjsp directory.


Urgent...

Thanks in advance

with regds,
Rama
-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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




How to place JSP and HTML files in separate dir ofther than Tomcat docbase.

2002-06-10 Thread Rama

Hi!!,
 
ITS VERY VERY URGENT...
So please give me some suggestions..


I am using Linux OS for the Apache TOMCAT 4.0.3 configuration. I am using 
webapp_module(ie warpconnector) for connecting between apache web server and Tomcat 
Servlet engine.

I am facing 2 problems:

1. After the connection is established between apache web server and Tomcat i am not 
able to access the html files from the url http://ServerIpaddress/myhtml/myhtml.html. 
These html files are under (Document root) /htdocs/myhtml dir of apache.

But when i kept these html files  along with jsp files under 
TOMCAT_HOME/webapps/myhtml/htmlfiles 
then i am able to access these Html files from the above url.

So i want to know how to place these html files in different directory apart from the 
Tomcat webapps dir TOMCAT_HOME/webapps/myhtml/htmlfiles.
I tried using alias in httpd.conf file in apache. but it didn't work.
Alias /myhtml/ /home/myhtml/
I tried to change the DocumentRoot of apache to /home/myhtml/ even then i am not 
able to access these 
html files present in the /home/myhtml/ directory.
So please tell me how to come out of this problem. 

2. Similarly i want to know how to place jsp files in separate 
directory(eg:/usr/myjsps/all jsp files) apart from the docBase dir ie 
TOMCAT_HOME/webapps/myjsps.

Thanks in advance..

With Regds,
Rama




-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success! 
Click here to know how http://education.sify.com

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




RE: problem..plz help me out

2002-06-10 Thread Renato Romano

I can't find the run-as element which you mention in your web.xml file
... If you want to restrict access to a resource just use the security
constraint element... Look in the servlet doc...


Renato Romano
Sistemi e Telematica S.p.A.
Calata Grazie - Vial Al Molo Giano
16127 - GENOVA

e-mail: [EMAIL PROTECTED]
Tel.:   010 2712603
_


-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]] 
Sent: sabato 8 giugno 2002 21.22
To: Xinji Gu
Subject: problem..plz help me out


Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me.I really stuck ..

With this mail I'm sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i'm in need badly and afater
spending so much time here I some time feel like
crying . and I'm in such a place and in such a part of India..where I
can't get ant local computer guy with whom I can discuss ..plz do me a
little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml.)I have send the file also plz check it and
tell me any mistake if u find)
3)  I'm getting 404 error ..no servlet found
4)  And I'm able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go .http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I'll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


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




AW: How to place HTML and JSP files in different directory apart from Tomcat root for Apache-Tomcat 4.0.3

2002-06-10 Thread franzR

ad1)
Try http://ServerIpaddress:8080/myhtml/myhtml.html
If it works you have to help your web server by installing Tomcat's
connectors like mod_webapp.

ad2)
Before you start to leave the standardized way for publishing web resources
you must keep the following things in your mind: (

A web application is defined as a hierarchy of directories and files in a
standard layout. Such a hierarchy can be accessed in its unpacked form,
where each directory and file exists in the filesystem separately, or in a
packed form known as a Web ARchive, or WAR file. The former format is more
useful during development, while the latter is used when you distribute your
application to be installed.
..
Web Application Deployment Descriptor
As mentioned above, the WEB-INF/web.xml file contains the Web Application
Deployment Descriptor for your application. As the filename extension
implies, this file is an XML document, and defines everything about your
application that a server needs to know (except the context path, which is
assigned by the system administrator when the application is deployed).


http://ServerIpaddress:8080/docs/appdev/index.html
It makes no sense if you change the configuration of your http-server
concerning things which belongs to the servlet engine. How would you deploy
such apps?



franzR


-Ursprüngliche Nachricht-
Von: Rama [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Juni 2002 11:04
An: [EMAIL PROTECTED]
Betreff: How to place HTML and JSP files in different directory apart
from Tomcat root for Apache-Tomcat 4.0.3


Hi!!,

I am using Linux OS for the Apache TOMCAT 4.0.3 configuration. I am using
webapp_module(ie warpconnector
not APJ13 connecter) for connecting between apache web server and Tomcat
Servlet engine.

I am facing 2 problems:

1. After the connection is established between apache web server and Tomcat
i am not able to access the html files from the url
http://ServerIpaddress/myhtml/myhtml.html. These html files are under
(Document root) /htdocs/myhtml dir of apache.

But when i kept these html files  along with jsp files under
TOMCAT_HOME/webapps/myhtml/htmlfiles
then i am able to access these Html files from the above url.
I think the html request apache receives is sent to tomcat immdtly so it
doesn't look into /htdocs dir
of apache.

So i want to know how to place these html files in different directory apart
from the Tomcat webapps dir TOMCAT_HOME/webapps/myhtml/htmlfiles.
I tried using alias in httpd.conf file in apache. but it didn't work.
Alias /myhtml/ /home/myhtml/
I tried to change the DocumentRoot of apache to /home/myhtml/ even then i
am not able to access these
html files present in the /home/myhtml/ directory.
So please tell me how to come out of this problem.

2. Similarly i want to know how to place jsp files in separate
directory(eg:/usr/myjsps/all jsp files) apart from the docBase dir ie
TOMCAT_HOME/webapps/myjsps.


Thanks in advance..

With Regds,
Rama




-
Sify Mail - now with Anti-virus protection powered by Trend Micro, USA.
Know more at http://mail.sify.com

Take the shortest route to success!
Click here to know how http://education.sify.com

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


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




Re: About thread mod_jk: ajp13: cpu load problem with apache

2002-06-10 Thread Tim Funk

I got in this thread late - but there is a bug in in 4.0.3 tomcat 
connectors that did not do error checking on the size of POST requests. 
So if a browser doesn't send enough data in a POST request and 
terminates - the tomcat process will infinite loop - asking for more 
data from the httpd process - the httpd process returns (eof) or similar 
and the error is not checked by tomcat.

This bug is fixed in 4.0.4 beta3.

Costas Stergiou wrote:
 Hi Francisco,
 I really know how annoying (at least) it is to find a definite problem/bug
 and
 have noone from the list care or try to solve it. I have been using
 tomcat/apache
 in a production environment for too long and I am now so commited to it I
 cannot
 change it.
 
 Unfortunately, I have not found any real workaroung, BUT: I did solve the
 problem
 for me. The solution is quite simple and it is just a shell script that I
 run it every 1 second
 through crontab that checks for runaway httpd processes and kill them (only
 the runaway
 process).
 This does not affect neither apache nor tomcat and it does resolve the
 issue.
 I know this is not a real solution, but reality is a really strange thing
 when it comes
 to productin environments. I don't like myself this solution, but in fact it
 is a solution!
 The script is very simple, and it works fine for AIX. Maybe for another os
 you may
 need to modify the ps/grep arguments but this should be fairly easy.


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




SSL question

2002-06-10 Thread Laura

Hi all,

I have a question about SSL - HTTPS. I have a system with apache + 2 Tomcat
instances with load balancer. Now my web application is over HTTP. Next week
we are going to buy a Verisign Certificate and I have to move the web
application from HTTP to HTTPS.

We have apache compiled for SSL: all the emails I have read till now are
about Tomcat as web server with SSL support. Am I rigth?

How can I do to configure apache with SSL support telling him that when  he
finds /sss/eee he has to call the web application /sss in Tomat (JkMount).
That is: the client call
http://myserver/sss/eee and I want to call in HTTPS my web application under
Tomcat (https://myserver/sss/eee) whre SSL is managed by Apache.

How can I do?

Thanks for your help


Laura





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




RE: AW: Strarting-up Error Message

2002-06-10 Thread sonam singh


--- Marek, Tomas [EMAIL PROTECTED] wrote:
 No, it happens on W2k box. Thanks anyway. It's been
 solved out.
 
 -Original Message-
 From: matt dilley [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, June 10, 2002 11:45 AM
 To: Tomcat Users List
 Subject: Re: AW: Strarting-up Error Message
 
 did you start tomcat from the root user?
 If the server port is changed to 80, you have to
 make sure that you
 start the process from root, as that is the only
 user that is allowed to
 access that port
 
 Matt

use ps wax | grep java | kill java process id (first
process id)



 On Mon, 2002-06-10 at 10:25, franzR wrote:
  How often did you start Tomcat? ( i.e. ps -e |
 grep java)
  I'm using Tomcat on a unix box and it happens
 sometimes that a shutdown of
  tomcat does not kill the (jvm)-process. Then a
 restart of tomcat will - of
  course - leed to an error because tomcat is still
 running!
  
  franzR
  
  -Ursprüngliche Nachricht-
  Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 10. Juni 2002 09:24
  An: [EMAIL PROTECTED]
  Betreff: Strarting-up Error Message
  
  
  Guys,
  
  when starting Tomcat 4.03, I get the following
 message in the terminal
  window:
  
  Catalina.start: LifecycleException:  null.open: 
 java.net.BindException:
  Address
   already in use: JVM_Bind:80
  LifecycleException:  null.open: 
 java.net.BindException: Address already
 in
  use:
   JVM_Bind:80
  at
 

org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
  ctor.java:1130)
  at
 

org.apache.catalina.core.StandardService.initialize(StandardService.j
  ava:454)
  at
 

org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
  a:553)
  at

org.apache.catalina.startup.Catalina.start(Catalina.java:780)
  at

org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at

org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at
 java.lang.reflect.Method.invoke(Method.java:324)
  at

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  - Root Cause -
  java.net.BindException: Address already in use:
 JVM_Bind:80
  at
 

org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
  ava:950)
  at
 

org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
  ctor.java:1128)
  at
 

org.apache.catalina.core.StandardService.initialize(StandardService.j
  ava:454)
  at
 

org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
  a:553)
  at

org.apache.catalina.startup.Catalina.start(Catalina.java:780)
  at

org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at

org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at
 sun.reflect.NativeMethodAccessorImpl.invoke0(Native
 Method)
  at
 

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
  java:39)
  at
 

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
  sorImpl.java:25)
  at
 java.lang.reflect.Method.invoke(Method.java:324)
  at

org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
  
  However, it seems the server works fine (I tried
 some servlets). The
  possible culprit could be config file server.XML
 in install_dir/conf path.
 I
  did only 2 changes in it, as suggested in M.
 Hall's book:
  !. Changed the default port 8080 to 80
  2. Added element DefaultContext
 reloadable=true/ to ensure automatic
  reloading.
  
  So, do you have any idea, what could be wrong?
  
  Thanks for your help.
  Tom
  
  
  --
  To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
  
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: How many rows have a ResultSet?

2002-06-10 Thread sonam singh


--- Anibal Constante Brito [EMAIL PROTECTED]
wrote:
 Hello:
 
 How can I know the rows that have a simple
 ResultSet, which method or
 attribute have to call?
 
 Best Regards.
 Owen.

What dou mean by Simple ResultSet .. U can use while
..
while(resultset.hasNext())
{
ctr++
}
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: How to place JSP and HTML files in separate dir ofther than Tomcat docbase.

2002-06-10 Thread sonam singh


--- Rama [EMAIL PROTECTED] wrote:
 Hi!!,
  
 ITS VERY VERY URGENT...
 So please give me some suggestions..
 
 
 I am using Linux OS for the Apache TOMCAT 4.0.3
 configuration. I am using webapp_module(ie
 warpconnector) for connecting between apache web
 server and Tomcat Servlet engine.
 
 I am facing 2 problems:
 
 1. After the connection is established between
 apache web server and Tomcat i am not able to access
 the html files from the url
 http://ServerIpaddress/myhtml/myhtml.html. These
 html files are under (Document root) /htdocs/myhtml
 dir of apache.


 But when i kept these html files  along with jsp
 files under TOMCAT_HOME/webapps/myhtml/htmlfiles 
 then i am able to access these Html files from the
 above url.


 So i want to know how to place these html files in
 different directory apart from the Tomcat webapps
 dir TOMCAT_HOME/webapps/myhtml/htmlfiles.
 I tried using alias in httpd.conf file in apache.
 but it didn't work.
 Alias /myhtml/ /home/myhtml/
 I tried to change the DocumentRoot of apache to
 /home/myhtml/ even then i am not able to access
 these 
 html files present in the /home/myhtml/ directory.
 So please tell me how to come out of this problem. 
 

DocumentRoot /home not as above

 2. Similarly i want to know how to place jsp files
 in separate directory(eg:/usr/myjsps/all jsp files)
 apart from the docBase dir ie
 TOMCAT_HOME/webapps/myjsps.
 
 Thanks in advance..
In server.xml 
 Connector
className=org.apache.catalina.connector.warp.WarpConnector
 port=8008 minProcessors=5 maxProcessors=75
 enableLookups=true
 acceptCount=10 debug=4 appBase=/usr/myjsp/


 With Regds,
 Rama
 
 
 
 
 -
 Sify Mail - now with Anti-virus protection powered
 by Trend Micro, USA.
 Know more at http://mail.sify.com
 
 Take the shortest route to success! 
 Click here to know how http://education.sify.com
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Tomcat/Apache/mod_webapp *bump*

2002-06-10 Thread Adrian

I think you have a malformed WebAppDeploy line.
I`ll play with the config at work today but I think this will work.
Remember, Try one at a time, use this one way first .


VirtualHost *
ServerName www.404th.net
DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/404th
WebAppConnection warpConnection warp localhost:8008
WebAppDeploy 404th warpConnection /404th/
/VirtualHost

- Original Message -
From: Catherine Shepherd [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, June 09, 2002 11:54 PM
Subject: RE: Tomcat/Apache/mod_webapp *bump*



 Hi, We've done extensive searching of the archives and the web but failed
to
 come up with a solution that works.  Anybody cast some light on this?

 We're trying to get a multiple-webapp installation of Tomcat 4.0.3 on
RedHat
 7.2 with Apache 1.3 and mod_webapp (and JDK 1.4).  Apache works fine,
Tomcat
 works fine standalone, but when we link them together it fails to work.
All
 were installed from binaries, the Apache install was part of a Nusphere
 install.  We want to run two domains on one Tomcat Server, so the
server.xml
 looks like the following:

 Server port=8005 shutdown=SHUTDOWN debug=0
   Service name=Tomcat-Apache
 Connector
className=org.apache.catalina.connector.warp.WarpConnector
port=8008 minProcessors=1 maxProcessors=50
 scheme=http
enableLookups=true appBase=webapps
acceptCount=10 debug=0/
 Engine className=org.apache.catalina.connector.warp.WarpEngine
 name=Tomcat-Apache debug=0
   Logger className=org.apache.catalina.logger.FileLogger
   prefix=apache_log. suffix=.txt
   timestamp=true/
   Realm className=org.apache.catalina.realm.MemoryRealm /
   Host className = org.apache.catalina.connector.warp.WarpHost
  name=www.mytopfive.com
  debug=0
  appBase=webapps/mytopfive
  unpackWARs=true 
 Context path= docBase=. debug=0 /
   /Host
   Host className = org.apache.catalina.connector.warp.WarpHost
  name=www.404th.net
  debug=0
  appBase=webapps/404th
  unpackWARs=true 
 Context path= docBase=. debug=0 /
   /Host
 /Engine
 /Service
 /Server

 The JSP's for each webapp are in the webapps/[webapp-name] directory,
hence
 the Context.  Both were deployed from IBM Websphere Studio Application
 Developer 4.0.3 generated .war's.

 The httpd.conf looks like the following (extract) :

 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c
 ServerName 62.3.69.188
 NameVirtualHost *

 WebAppConnection warpConnection warp localhost:8008

 VirtualHost *
 ServerName www.404th.net
 DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/404th
 WebAppDeploy 404th warpConnection /
 /VirtualHost

 VirtualHost *
 ServerName www.mytopfive.com
 DocumentRoot /usr/local/tomcat/jakarta-tomcat-4.0.3/webapps/mytopfive
 WebAppDeploy mytopfive warpConnection /
 /VirtualHost

 We have also tried this configuration with the WebAppDeploy .
 warpConnection / per an example at www.codesta.com, but get no better
 results.

 Tomcat seems to start up and initialise the webapps fine, and the logs
 reveal no issues.  The logs also reveal good connections from the Apache
 mod_webapp when we start Apache, and Apache puts out what appears to be
good
 news at the command line.  However, loading either of those domains in a
 browser gets a 'The page cannot be displayed'.  Other static sites are
 served fine through Apache.

 Any ideas?  Thanks very very much.

 James and Catherine





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




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




Re: SSL question

2002-06-10 Thread sonam singh


--- Laura [EMAIL PROTECTED] wrote:
 Hi all,
 
 I have a question about SSL - HTTPS. I have a system
 with apache + 2 Tomcat
 instances with load balancer. Now my web application
 is over HTTP. Next week
 we are going to buy a Verisign Certificate and I
 have to move the web
 application from HTTP to HTTPS.
 
 We have apache compiled for SSL: all the emails I
 have read till now are
 about Tomcat as web server with SSL support. Am I
 rigth?
 
 How can I do to configure apache with SSL support
 telling him that when  he
 finds /sss/eee he has to call the web application
 /sss in Tomat (JkMount).
 That is: the client call
 http://myserver/sss/eee and I want to call in HTTPS
 my web application under
 Tomcat (https://myserver/sss/eee) whre SSL is
 managed by Apache.
 

u have to reinstall the apache with openssl+mod_ssl
if u want to know the installation faq 
www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/README.shtml

 How can I do?
 
 Thanks for your help
 
 
 Laura
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: Can't Stop Tomcat 4.03

2002-06-10 Thread Jean-Luc BEAUDET

Marek, Tomas a Ýcrit :

 Thanks, it sounds promising.

 -Original Message-
 From: Sven Woltmann [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 10, 2002 11:22 AM
 To: 'Tomcat Users List'
 Subject: AW: Can't Stop Tomcat 4.03

 Hi,

 you've probably installed Tomcat with the NT Service (NT/2k/XP only)
 option selected (which is unselected by default).  I don't know if you can
 deinstall this option with the Tomcat install program.  If you can't, then
 disable the Tomcat service in System Control / Services and set the startup
 type to deactivated.

 Or... deinstall Tomcat and reinstall it without the NT Service option.
 That's what I did to get it clean.

 Sven

  -Ursprüngliche Nachricht-
  Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
  Gesendet: Montag, 10. Juni 2002 11:13
  An: 'Tomcat Users List'
  Betreff: RE: Can't Stop Tomcat 4.03
 
 
  Thanks, but the window is out already. When looking into
  process manager
  (W2k), the tomcat.exe resides still there even after machine
  rebooting. How
  can I kill it? Process manager disallow me to do it by hand. Any
  suggestions?
 
  tom
 
  -Original Message-
  From: Aline [mailto:[EMAIL PROTECTED]]
  Sent: Monday, June 10, 2002 11:12 AM
  To: Tomcat Users List
  Subject: RE: Can't Stop Tomcat 4.03
 
  You can try to press keys Ctrl+c in the Tomcat Window
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 

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

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

Well...

Try to install a Linux (Real) Server in dual boot...

Tomcat works fine on unices boxes...

:O)




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




Re: problem..plz help me out

2002-06-10 Thread Mark Teegarden

In your server.xml file, you will notice the lines of text that say
!--  Tomcat Manager Context  -- 
Context path=/manager docBase=manager debug=0 privileged=true  
 /Context

immediately after this, enter your context
 Context path=/sachar docBase=sachar debug=0 reloadable=true 
crossContext=true
  Logger className=org.apache.catalina.logger.FileLogger 
prefix=puneet_examples_log. suffix=.txt timestamp=true / 
  Ejb name=ejb/EmplRecord type=Entity home=com.wombat.empl.EmployeeRecordHome 
remote=com.wombat.empl.EmployeeRecord / 
 /Context


That should be a start.

 [EMAIL PROTECTED] 06/08/02 03:22PM 
Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me*I really stuck ..

With this mail I'm sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i'm in need badly and afater
spending so much time here I some time feel like
crying * and I'm in such a place and in such a part of
India..where I can't get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml*)I have send the file also plz check it and
tell me any mistake if u find)
3)  I'm getting 404 error ..no servlet found
4)  And I'm able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class 
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet 

error -- 404

See friends ..if u can help me I'll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com


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




RE: SSL question

2002-06-10 Thread Sébastien Dui

Hi Laura, 

You may use Mod_Rewrite for that.
(http://httpd.apache.org/docs/mod/mod_rewrite.html)
The syntax is rather similar to RegExp. 

Regards,

Sébastien Dui 
[EMAIL PROTECTED]

-Message d'origine-
De : Laura [mailto:[EMAIL PROTECTED]]
Envoyé : lun. 10 juin 2002 13:06
À : Tomcat Users List
Objet : SSL question


Hi all,

I have a question about SSL - HTTPS. I have a system with apache + 2 Tomcat
instances with load balancer. Now my web application is over HTTP. Next week
we are going to buy a Verisign Certificate and I have to move the web
application from HTTP to HTTPS.

We have apache compiled for SSL: all the emails I have read till now are
about Tomcat as web server with SSL support. Am I rigth?

How can I do to configure apache with SSL support telling him that when  he
finds /sss/eee he has to call the web application /sss in Tomat (JkMount).
That is: the client call
http://myserver/sss/eee and I want to call in HTTPS my web application under
Tomcat (https://myserver/sss/eee) whre SSL is managed by Apache.

How can I do?

Thanks for your help


Laura





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

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




Re: SSL question

2002-06-10 Thread Laura

My tomcat version is 4.0.3 and not 3.x

If I reinstall the apache with openssl+mod_ssl and configure Tomcat with SSL
support (http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html), if
in httpd.conf I have

JkMount /xx loadbalancer (I have a loadbalancer worker in
workers.properties)

if a client call https://myserver/xx/pippo

is the request  passed to Tomcat?

How can I tell Apache to redirect http requests to https requests?

Thanks

Laura


- Original Message -
From: sonam singh [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 1:32 PM
Subject: Re: SSL question



 --- Laura [EMAIL PROTECTED] wrote:
  Hi all,
 
  I have a question about SSL - HTTPS. I have a system
  with apache + 2 Tomcat
  instances with load balancer. Now my web application
  is over HTTP. Next week
  we are going to buy a Verisign Certificate and I
  have to move the web
  application from HTTP to HTTPS.
 
  We have apache compiled for SSL: all the emails I
  have read till now are
  about Tomcat as web server with SSL support. Am I
  rigth?
 
  How can I do to configure apache with SSL support
  telling him that when  he
  finds /sss/eee he has to call the web application
  /sss in Tomat (JkMount).
  That is: the client call
  http://myserver/sss/eee and I want to call in HTTPS
  my web application under
  Tomcat (https://myserver/sss/eee) whre SSL is
  managed by Apache.
 

 u have to reinstall the apache with openssl+mod_ssl
 if u want to know the installation faq
 www.ccl.net/cca/software/UNIX/apache/solaris-t3.2/README.shtml

  How can I do?
 
  Thanks for your help
 
 
  Laura
 
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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



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




Re: please help..Tomcat4+Ibm jdk1.3 get hang in FreeBSD

2002-06-10 Thread RNivas

Try to get the latest compatible version of your platform from the Tomcat,
This problem seems due to uncompatible version of JDK and other services.

Wishes
RNivas

- Original Message -
From: sonam singh [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 1:25 PM
Subject: please help..Tomcat4+Ibm jdk1.3 get hang in FreeBSD




 hi

 I installed the linux-jdk1.3 and linux-ibm-jdk1.3.1
 using ports . When i tried to run tomcat4+with above
 JVM machine gets hang...Below is some of the parameter
 which i tried ..

 Os JdkTomcatRun/Or Not
 FreeBSD Sun1.24x  Yes
 FreeBSD Sun1.34x  No(HotSpot Error Unable to
 Find Pid) ..Why???

 FreBSD Sun1.44x  No(HotSpot Error Unable to
 Find Pid) ..Why???
 FreeBSD IBM1.3 4x  Hang..Why ???
 FreeBSD IBM1.3.1   4x  Hang..Why???
 Windows98 IBM1.34x   Run
 Windows98 IBM1.3.1   4x   Run

 FreeBSD Sun1.23x  Run
 FreeBSD Sun1.33x  Run
 FreeBSD Sun1.3.1   3x  Run
 FreeBSD Sun1.43x  Run
 FreeBSD IBM1.33x  Run
 FreeBSD IBM1.3.1   3x  Run




 4x:-Tomcat 4.0.1 and Tomcat4.0.3
 FreeBSD4.5 Release + Linux_base6

 Is there any problem with Tomcat4 or FreeBSD . I thing

 the problem is on the FreeBSD .Tomcat4 runs
 successfuly even in windows98... Can u provide any
 suggestion

 Bye
 Sonam


 __
 Do You Yahoo!?
 Yahoo! - Official partner of 2002 FIFA World Cup
 http://fifaworldcup.yahoo.com

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




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




retrieving complete classpath for tomcat instance

2002-06-10 Thread Paresh Deshpande

Hi, I am using tomcat 4.0 servlet container with apache 1.3.24 as web
server. 
I have a situation where I need to compile a java file at runtime within 
my web-application.
 
I am using org.apache.jasper.compiler.SunJavaCompiler to generate the
necessary
class files. While compilation, I need complete classpath as an argument to
method setClasspath.
Once I set classpath correctly, I should be able to use compile method to
generate appropriate
class files.
 
Problem is that, I am not able to set classpath information for compiler
class correctly. How can 
I include all the jar files to classpath available in servlet container
context? If I use  
System.getProperty(java.class.path), I get only
$CATALINA_HOME$\bin\bootstrap.jar. 
None of the jar files in $CATALINA_HOME$\server\lib\ or common\lib folder
are returned 
by accessing this property. Is their any system property to get the complete
classpath for 
the current Apache-Tomcat service?

regards
Paresh
 



LoadModule Error

2002-06-10 Thread P.V.Sankar




 
 Hi,
  I am new to this group as well as to this package.
  I posted this mail once,but nobody has responded to my problem,that's
why i am posting the same message again.If somebody knows the bug please
reply to me .

Regards,
Sankar


   I have installed tomcat 4.0.3 on my solaris system,and copied the binary
 mod_webapp.so to $APACHE_HOME/libexec.I updated the neccessary
 parameters in httpd.conf like:
 
 LoadModule webapp_module libexec/mod_webapp.so
 AddModule mod_webapp.c

 IfModule mod_webapp.c
  WebAppConnection conn  warp  localhost:8008
  WebAppDeploy examplesconn  /examples
  WebAppInfo /webapp-info
 /IfModule
 
 But when i tested httpd.conf by typing 
 $APACHE_HOME/bin apachectl configtest
 it is giving the following error message
 
 Syntax error on line 202 of /usr/local/apache/conf/httpd.conf:
 Invalid command 'LoadModule' , perhaps mis-spelled or defined by a module
 not included in the server configuration.
 
 I have followed the same  instructions given  in INSTALL.txt and
 README.txt files in the tomcat package.
 
 Can somebody  help me in solving this problem.
 
 Thanks  Regards,
 Sankar
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: mailto:[EMAIL PROTECTED]
 
 


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




Re: LoadModule Error

2002-06-10 Thread Arshad Mahmood

Hi,

Are you sure your version of apache supports dynamic libraries. If you have
built it yourself then ensure that you
have enabled module 'so'.

Regards,
Arshad

- Original Message -
From: P.V.Sankar [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 12:52 PM
Subject: LoadModule Error





 
  Hi,
   I am new to this group as well as to this package.
   I posted this mail once,but nobody has responded to my problem,that's
 why i am posting the same message again.If somebody knows the bug please
 reply to me .

 Regards,
 Sankar


I have installed tomcat 4.0.3 on my solaris system,and copied the
binary
  mod_webapp.so to $APACHE_HOME/libexec.I updated the neccessary
  parameters in httpd.conf like:
 
  LoadModule webapp_module libexec/mod_webapp.so
  AddModule mod_webapp.c
 
  IfModule mod_webapp.c
   WebAppConnection conn  warp  localhost:8008
   WebAppDeploy examplesconn  /examples
   WebAppInfo /webapp-info
  /IfModule
 
  But when i tested httpd.conf by typing
  $APACHE_HOME/bin apachectl configtest
  it is giving the following error message
 
  Syntax error on line 202 of /usr/local/apache/conf/httpd.conf:
  Invalid command 'LoadModule' , perhaps mis-spelled or defined by a
module
  not included in the server configuration.
 
  I have followed the same  instructions given  in INSTALL.txt and
  README.txt files in the tomcat package.
 
  Can somebody  help me in solving this problem.
 
  Thanks  Regards,
  Sankar
 
 
 
 
 
 
 
  --
  To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 


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



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




apache and tomcat working

2002-06-10 Thread Carlos

HEllo this is my fist question.
i have install in a linux machine apache and tomcat.
but i have several questions:
1.- the documentroot in apache i havbe in /usr/local/httpd/htdocs. and the
tomcat in /Opt/jakarta/webapps/ROOT. How can i changhe the tomcat
documentroot to /usr/local/httpd/htdocs?
2.- i dont want that tomcat response in the 8080 port, i only want to show,
the tomcat, the jsp pages. How ca i make this?

thanks



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




Urgent help -- Microsoft SQL SERVER connection

2002-06-10 Thread John McAuley

Hi folks,

I am trying to use Microsoft's jdbc driver for ms sql with Tomcat and am running 
into trouble with the JNDI lookup method.  I look for a datasource and get null.  If I 
use the class.forname method the driver is found and works perfectly but I am unable 
to get it working with the JNDI look up,  This is very frustrating and seems to crop 
up a couple of times with fellow users.  Any thoughts ??

Help much appreciated.

John

Server.xml

 Context path=/tools docBase=tools debug=0 reloadable=true
Resource name=jdbc/ToolsDB auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/ToolsDB
parameter
nameuser/name
valueuser/value
/parameter
parameter
namepassword/name
valuepassword/value
/parameter
parameter
namedriverClassName/name

valuecom.microsoft.jdbc.sqlserver.SQLServerDriver/value
/parameter
parameter
namedriverName/name

valuejdbc:microsoft:sqlserver://IP-ADDRESS-of-server:1433/value
/parameter
/ResourceParams
/Context

web.xml

 resource-ref
  description
  Resource reference to a factory for java.sql.Connection
 instances that may be used for talking to a particular
 database that is configured in the server.xml file.
 /description
res-ref-name
 jdbc/ToolsDB
 /res-ref-name
 res-type
 javax.sql.DataSource
 /res-type
 res-auth
 Container
 /res-auth
/resource-ref

Code Snippet

  Context ctx = new InitialContext();
 Context envCtx = (Context)ctx.lookup(java:comp/env);
 out.println(Got first context.);

NamingEnumeration enum =ctx.listBindings(java:comp/env/jdbc);
  while( enum.hasMore() ) {
   out.println(Binding:  + ((Binding)enum.next()).toString() + 
br);
  }
DataSource ds = (DataSource)envCtx.lookup(jdbc/ToolsDB);
out.println(Got the second context. + br + br);

  if (ds != null)
  {
 out.println(Getting the connection from the context.);
 Connection connection = ds.getConnection();
}else{
out.println(not working);
}




RE: apache and tomcat working

2002-06-10 Thread FEDERICO MARTIN LARA

Try this:

In the file server.conf (directory conf)

1.- Go to the section host
2.- Search a line like this: Context path=ROOT docBase=ROOT...
3.- Replace the docBase parameter value by the path /usr/local/httpd/htdocs
and save the changes.

Excuse my english. I'm spanish

-Mensaje original-
De: Carlos [mailto:[EMAIL PROTECTED]]
Enviado el: lunes, 10 de junio de 2002 14:44
Para: [EMAIL PROTECTED]
Asunto: apache and tomcat working


HEllo this is my fist question.
i have install in a linux machine apache and tomcat.
but i have several questions:
1.- the documentroot in apache i havbe in /usr/local/httpd/htdocs. and the
tomcat in /Opt/jakarta/webapps/ROOT. How can i changhe the tomcat
documentroot to /usr/local/httpd/htdocs?
2.- i dont want that tomcat response in the 8080 port, i only want to show,
the tomcat, the jsp pages. How ca i make this?

thanks



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


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




Session

2002-06-10 Thread D Bamud

Tomcat3.2.3 / JDK1.3.1 / IE5.0

Q1. I have a like like SCRIPT LANGUAGE=JavaScript
SRC=js/utils.js/SCRIPT in my jsp file. When I load I get following.
Any idea why it is happening?

2002-06-10 14:16:55 - Ctx( /act ): IOException in: R( /act + js/utils.js +
null) Connection aborted by peer: socket write error.

Q2. Is there a method to know if a given session object is invalidated or
not?

Q3. Is there ready made API that can give the list of session objects
currently active. I know HttpSessionContext is deprecated.

Sorry my last two Q are not purely tomcat related.
Regards


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




RE: Strarting-up Error Message

2002-06-10 Thread Shapira, Yoav

Howdy,
Keep it mind that tomcat won't shut down if there are non-daemon threads still 
running.  It's a good idea to check your application for such threads 
and take care of them (kill them in destroy() methods, make them daemons, call 
System.exit() in a lifecycle listener, whatever) for cleanliness.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Marek, Tomas [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 5:47 AM
To: 'Tomcat Users List'
Subject: RE: Strarting-up Error Message

I think the problem is caused by residential running of Tomcat on W2k box.
Not knowing that, I started Tomcat thus second time. That's it! How is it
on
Linux box, have no idea.

tom

-Original Message-
From: franzR [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:25 AM
To: Tomcat Users List
Subject: AW: Strarting-up Error Message

How often did you start Tomcat? ( i.e. ps -e | grep java)
I'm using Tomcat on a unix box and it happens sometimes that a shutdown of
tomcat does not kill the (jvm)-process. Then a restart of tomcat will - of
course - leed to an error because tomcat is still running!

franzR

-Ursprüngliche Nachricht-
Von: Marek, Tomas [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 10. Juni 2002 09:24
An: [EMAIL PROTECTED]
Betreff: Strarting-up Error Message


Guys,

when starting Tomcat 4.03, I get the following message in the terminal
window:

Catalina.start: LifecycleException:  null.open:  java.net.BindException:
Address
 already in use: JVM_Bind:80
LifecycleException:  null.open:  java.net.BindException: Address already in
use:
 JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1130)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
- Root Cause -
java.net.BindException: Address already in use: JVM_Bind:80
at
org.apache.catalina.connector.http.HttpConnector.open(HttpConnector.j
ava:950)
at
org.apache.catalina.connector.http.HttpConnector.initialize(HttpConne
ctor.java:1128)
at
org.apache.catalina.core.StandardService.initialize(StandardService.j
ava:454)
at
org.apache.catalina.core.StandardServer.initialize(StandardServer.jav
a:553)
at org.apache.catalina.startup.Catalina.start(Catalina.java:780)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

However, it seems the server works fine (I tried some servlets). The
possible culprit could be config file server.XML in install_dir/conf path.
I
did only 2 changes in it, as suggested in M. Hall's book:
!. Changed the default port 8080 to 80
2. Added element DefaultContext reloadable=true/ to ensure automatic
reloading.

So, do you have any idea, what could be wrong?

Thanks for your help.
Tom


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

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


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




RE: WAR file location

2002-06-10 Thread Shapira, Yoav

Howdy,
See the Automatic Deployment section in the Host element
configuration:
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/config/host.html

Also see the unpackWARs directive.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Bo Min Jiang [mailto:[EMAIL PROTECTED]] 
Sent: Friday, June 07, 2002 10:00 PM
To: Tomcat Users List
Subject: WAR file location

Hi,

The Tomcat config docs specify that the docBase attribute of the Context
container can be the directory of a web application or the location of a
WAR file.  If I specify a WAR file (which is not located in Tomcat's
webapps directory), does Tomcat unpack the WAR, and if so, where does it
get unpacked?  Also, is it possible to actually specify where the WAR
file should be unpacked?

Thanks,
Bo

  File: ATT258807.txt  



Please help me improve my question skills (number of tomcatapps)

2002-06-10 Thread Knutsen Jeffrey S

I have submitted the following question and received no response.  I know
this isn't a technical problem, but I was hoping for responses from real
developers.  I thought it was a simple question, and have always received
excellent and quick responses from the tomcat mail list in the past, so the
problem must be with me or the way I am asking.

Can someone please help me improve myself?  Is this a stupid question?  Have
I perhaps asked it incorrectly?  I am open and receptive to any constructive
criticism available (I can take it, but maybe you could send a direct
response if you want to be extremely brutal?!)

All I really want to know is how many applications real developers are
putting on one machine in the real world. I am just looking for an abstract
number, and I am not worried about system configurations at this time.

Thanks!


ORIGINAL QUESTION:

I am doing some Tomcat cost/benefit projections for my company.  I need to
determine the maximum number of applications that will run on Tomcat and
still provide stable performance.  I am not interested in a theoretical
number at this time, just seeking information about what real developers are
actually doing with real applications.  

At this time, I am not interested in what machine types, OSs,
configurations, versions, are being used.  I understand the answer to my
questions will depend heavily on these issues as well as on the applications
themselves.  I just need to come up with a realistic number of
instances/apps which are being run on a single machine by real users. I am
seeking an answer to the following two questions:

Number of Tomcat instances I am running on one machine:

Number of individual applications I am running in all instances of Tomcat on
one machine:

Please feel free to respond to the mail list, or to me directly at
[EMAIL PROTECTED] (if we don't want to clog the list with
answers to this question).  I will post a final resolution message to the
mail list when I have come to some sort of conclusion.

Thanks in advance for your help!




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



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




RE: Please help me improve my question skills (number of tomcat apps)

2002-06-10 Thread Marek, Tomas

Maybe you'd better check this
http://www.tuxedo.org/~esr/faqs/smart-questions.html  first or, still
better, ask at The Tomcat Developer List, which can be subscribed here
http://jakarta.apache.org/site/mail2.html . The guys there might know.
That's all I can do for you, mate.
 
tom
 
-Original Message-
From: Knutsen Jeffrey S [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 3:49 PM
To: '[EMAIL PROTECTED]'
Subject: Please help me improve my question skills (number of tomcat apps)
 
I have submitted the following question and received no response.  I know
this isn't a technical problem, but I was hoping for responses from real
developers.  I thought it was a simple question, and have always received
excellent and quick responses from the tomcat mail list in the past, so the
problem must be with me or the way I am asking.
 
Can someone please help me improve myself?  Is this a stupid question?  Have
I perhaps asked it incorrectly?  I am open and receptive to any constructive
criticism available (I can take it, but maybe you could send a direct
response if you want to be extremely brutal?!)
 
All I really want to know is how many applications real developers are
putting on one machine in the real world. I am just looking for an abstract
number, and I am not worried about system configurations at this time.
 
Thanks!
 
 
ORIGINAL QUESTION:
 
I am doing some Tomcat cost/benefit projections for my company.  I need to
determine the maximum number of applications that will run on Tomcat and
still provide stable performance.  I am not interested in a theoretical
number at this time, just seeking information about what real developers are
actually doing with real applications.  
 
At this time, I am not interested in what machine types, OSs,
configurations, versions, are being used.  I understand the answer to my
questions will depend heavily on these issues as well as on the applications
themselves.  I just need to come up with a realistic number of
instances/apps which are being run on a single machine by real users. I am
seeking an answer to the following two questions:
 
Number of Tomcat instances I am running on one machine:
 
Number of individual applications I am running in all instances of Tomcat on
one machine:
 
Please feel free to respond to the mail list, or to me directly at
[EMAIL PROTECTED] (if we don't want to clog the list with
answers to this question).  I will post a final resolution message to the
mail list when I have come to some sort of conclusion.
 
Thanks in advance for your help!
 
 
 
 
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]



Roles in JNDIRealms

2002-06-10 Thread Cristina Perez Sanchez

Hi,

could anyone tell me what objectclass must be group
entries that represent roles associated to users in
JNDIRealms?? I use groupOfUniqueNames as objectclass
but I would like to know if the objectclass group is
more proper or if the objectclass isn´t relevant.


Thanks for advance,

Cristina

__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




How to disable the directory listing in Tomcat?

2002-06-10 Thread Alvin Wang

If I do not set the welcome file in web.xml, is there a way to disable the
directory listing in Tomcat? Thanks!

Alvin


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




RE: How to disable the directory listing in Tomcat?

2002-06-10 Thread Mark Annal

Check out the listings attribute for the DefaultServlet in $TOMCAT_HOME/conf/web.xml.

_

Mark Annal   e-mail: [EMAIL PROTECTED]
TARGUSinfo   phone : (585) 598-7011
255 Woodcliff Drive  fax   : (585) 598-7001
Fairport, NY 14450   web   : www.targusinfo.com
_


-Original Message-
From: Alvin Wang [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 10:08 AM
To: Tomcat Users List
Subject: How to disable the directory listing in Tomcat?


If I do not set the welcome file in web.xml, is there a way to disable the
directory listing in Tomcat? Thanks!

Alvin


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


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




RE: How to disable the directory listing in Tomcat?

2002-06-10 Thread Milt Epstein

On Mon, 10 Jun 2002, Mark Annal wrote:

 Check out the listings attribute for the DefaultServlet in
 $TOMCAT_HOME/conf/web.xml.

Also check the archives, this question has come up repeatedly.  (Links
to archives can be found from jakarta/apache's mailing lists page.)


 -Original Message-
 From: Alvin Wang [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 10, 2002 10:08 AM
 To: Tomcat Users List
 Subject: How to disable the directory listing in Tomcat?


 If I do not set the welcome file in web.xml, is there a way to disable the
 directory listing in Tomcat? Thanks!

 Alvin

Milt Epstein
Research Programmer
Systems and Technology Services (STS)
Campus Information Technologies and Educational Services (CITES)
University of Illinois at Urbana-Champaign (UIUC)
[EMAIL PROTECTED]


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




RE: How to write files when web-app is a WAR?

2002-06-10 Thread Les Hughes


Hi,

I find that too many people make bad assumptions about file system
availability. Nowhere does it say that thou must deploy from an exploded
WAR/filesystem. All too often you see resource loading code using the Evil
getRealPath API call and others instead of getResource or
getResourceAsStream.

Anyway, enough rant. To write temporary files (and there are those that
would say that a web app has no business in writing to the filesystem of the
server it's executing on - security nightmare) you should use

File temp = (File)context.getAttribute(javax.servlet.context.tempdir); 

As per the servlet spec (P30 of my version).

Enjoy,

Les




 -Original Message-
 From: John Burgess [mailto:[EMAIL PROTECTED]]
 Sent: 10 June 2002 11:25
 To: Tomcat Users List
 Subject: RE: How to write files when web-app is a WAR?
 
 
 If the war file is unpacked (which tomcat will do 
 automatically at startup
 unless you specify somewhere in server.xml not to) then it is 
 just as if you
 had deployed to the webapp\your_app directory yourself.  I 
 believe that
 leaving war's unpacked results in slightly worse performance and isn't
 recommended for a deployment server anyway.
 
 Best Wishes
 John Burgess
 [EMAIL PROTECTED]
 Tel: 01865 718666 
 Fax: 01865 718600
 
 
 -Original Message-
 From: Chris Bailey [mailto:[EMAIL PROTECTED]]
 Sent: Friday, June 07, 2002 8:02 PM
 To: Tomcat Mailing List
 Subject: How to write files when web-app is a WAR?
 
 
 From what I've read, it seems that if you package your web 
 application in a
 WAR file, you have no way of attaining a path on the server's 
 file system
 that you can use to write files.  Reference:
 http://mikal.org/interests/java/tomcat/archive/view?mesg=15006.
 
 I have a web app that we'd like to package as a WAR.  But, we 
 need to be
 able to write various data files out to the server's file 
 system.  What
 solution(s) are people using for this?  Writing the files to 
 a database is
 not acceptable for us  (I'm not a DBMS expert, but have been 
 told that BLOB
 performance is not great, and that using a DB as a file 
 system replacement
 is not good, etc.).
 
 I was thinking we'd have to do a bit of a hack...  Basically, 
 at the time we
 install our application, the user will pick the real path 
 on their disk
 where the data files are stored.  We then store this in a property in
 web.xml, and retrieve that in the app for using as the path.  For
 links/hrefs on a web page, we'd just use something like 
 /data_files, but
 then set up a path-mapping that had /data_files mapped to say
 /home/appname/data_files or whatever.   I also am assuming I 
 will need to
 ensure that this real path lies outside of the WAR expanded directory
 because someday Tomcat (and maybe others already?) will not 
 expand the WAR
 file.
 
 Anyway, what have folks come up with?  While we use Tomcat for all our
 development work, we'll likely have to support a variety of Servlet
 containers (I think we can require at least Servlet 2.2, 
 hopefully 2.3).
 
 
 Chris Bailey   mailto:[EMAIL PROTECTED]
 Code Intensity   http://www.codeintensity.com
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 ---
 Incoming mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
  
 
 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02
  
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




Oracle Connection Pool example server.xml

2002-06-10 Thread Ryan Cornia

I'm searching for an example server.xml that uses the Oracle connection pool mechanism 
from oracle. (As opposed to poolman, etc...)
 
Any help would be greatly appreciated, I cannot seem to get the server.xml correctly 
configured with the Oracle connection pool classes. 
 
What I've tried -
 
Resource name=jdbc/timesheet auth=Container type=javax.sql.DataSource/
 
ResourceParams name=jdbc/timesheet
 parameter
   parameternameuser/namevaluemy_username/value/parameter
  parameternamepassword/namevaluemy_password/value/parameter

  namefactory/name
  valueoracle.jdbc.pool.OracleDataSourceFactory/value
 /parameter
 parameter
  namedriverClassName/name
  valueoracle.jdbc.pool.OracleDataSource/value
 /parameter
 parameter
  namedriverName/name
  valuejdbc:oracle:thin:MYHOST:1521:ORCL/value
 /parameter
/ResourceParams 

When I try and get a connection from the pool, it returns null. If I configure it to 
not use a connection pool, the code works, so I know the problem is with the oracle 
pool definition.
 
Thanks,
Ryan
 




Re: How to disable the directory listing in Tomcat?

2002-06-10 Thread Nancy Crisostomo Martinez

Yes, If you have Tomcat 3.3 you must check these:
 http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ug.html#conf_svr_cust

Here you can find how to Turn off directory listings It's very easy and it
works perfect...

If you have another Tomcat version, maybe you must check the server.xml
documentation.

Regards,
Nancy.



Alvin Wang wrote:

 If I do not set the welcome file in web.xml, is there a way to disable the
 directory listing in Tomcat? Thanks!

 Alvin

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


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




tomcat-apache with webapp connector

2002-06-10 Thread Stanish, Brian

I am using Tomcat 4.0.3 with Java SDK 1.4.0 along with Apache 1.3.24. These are all 
running on a RedHat 7.2 box on which I do have root access. 

I have followed the readme and install files and managed to get Tomcat working 
standalone. Then I installed mod_webapp as a shared object for Apache and edited my 
httpd.conf file to use that module:

*
LoadModule webapp_module /etc/httpd/modules/mod_webapp.so
AddModule mod_webapp.c

IfModule mod_webapp.c
WebAppConnection conn  warp  127.0.0.1:8008
WebAppDeploy examplesconn  /examples
WebAppDeploy manager conn  /manager
WebAppInfo /webapp-info
/IfModule
*

I am able to access tomcat by going to the URL myhost.mydomain.com:8080 and I can 
access $tomcat_root/examples and $tomcat_root/manager by going to 
myhost.mydomain.com/examples/ and myhost.mydomain.com/manager/ respectively. 

What I would like to do however, is allow .jsp files (and eventually servlets as well) 
in my html root. Currently if I have a file such as myhost.mydomain.com/foo.jsp, 
apache returns it as source text. I have looked for a way to tell apache that if it 
finds a jsp file it should send it to tomcat for processing, but all I have found on 
the web and in newsgroups is how to do it using either jserv or jk. Current 
documentation has recommended using webapp as a connector, which is why I installed 
it, but does it disallow me from having jsp's in my docroot? Any pointers would be 
appreciated. 

Thanks in advance.

-Brian



AccessLogValve setting restriction

2002-06-10 Thread Frédéric Laurent

Hello

what I want to do :
- configure tomcat in order to have no log, no trace

the problem I have:
- concerning the logger, it seems to be ok. In fact, I can set
the logger class to my implementation
- concerning the valve , problems !!!

in the documentation http://localhost:8080/tomcat-docs/config/valve.html
no className can be changed acording to :
className : This MUST be set to 
org.apache.catalina.valves.AccessLogValve !

so why such a restriction ???
how can I do to bypass access log ??? any idea ?

thanks in advance

-- 
Frédéric Laurent
http://www.opikanoba.org



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




JkSet directives for mod_jk2?

2002-06-10 Thread Douglas, Rory

Hi there
 
I'm attempting to get TC 4.1.3 to work with Apache 2.0.36 using mod_jk2 (on
win2k).
 
It seems the config format for httpd.conf has changed: Apache now complains
about JkWorkersFile etc.  A little searching unearthed people using JkSet
 and including a lot of stuff that used to be in workers.properties
directly in httpd.conf.
 
Is this the way to configure mod_jk2? If so, where are the directives
documented?
 
I have attempted to use some fragments I found on a tomcat-dev mailing list
archive eg.
 
JkSet worker.ajp13.type ajp13
JkSet worker.ajp13.channel socket
JkSet worker.ajp13.port 8009
 
However, Apache complains with  unrecognised option worker.ajp13.type
ajp13 etc.
 
Can anyone shed some light on this? If I am wasting my time trying to get
this to work on Windows, having that pointed out would also be most
appreciated ;-)
 
cheers
Rory



Re: Please help me improve my question skills (number of tomcatapps)

2002-06-10 Thread Craig R. McClanahan



On Mon, 10 Jun 2002, Knutsen Jeffrey S wrote:

 Date: Mon, 10 Jun 2002 08:48:39 -0500
 From: Knutsen Jeffrey S [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Please help me improve my question skills (number of tomcat apps)

 I have submitted the following question and received no response.  I know
 this isn't a technical problem, but I was hoping for responses from real
 developers.  I thought it was a simple question, and have always received
 excellent and quick responses from the tomcat mail list in the past, so the
 problem must be with me or the way I am asking.

 Can someone please help me improve myself?  Is this a stupid question?  Have
 I perhaps asked it incorrectly?  I am open and receptive to any constructive
 criticism available (I can take it, but maybe you could send a direct
 response if you want to be extremely brutal?!)

 All I really want to know is how many applications real developers are
 putting on one machine in the real world. I am just looking for an abstract
 number, and I am not worried about system configurations at this time.


The problem is that there is no generally useful answer to your question
as stated.  It depends even more on the nature of the applications you are
talking about (when the answer might even be zero for a particular server
configuration) as the size of the server (an answer based on a 64-CPU
mega-server with 4 gigabytes of main memory isn't going to help you on a
small single-CPU Linux box with 64 megs).

There are no architectural limits on the number of webapps a single Tomcat
instance can support, or the number of Tomcat instances on a single
server.  It all comes down to what resource bottlenecks you run into first
in your application environment.  In many webapp environments, the first
bottleneck encountered is often database access, followed by the number of
simultenaous requests being processed.  Neither of those bottlenecks has
much directly to do with how many different webapps you are talking
about.


 Thanks!


Craig



 ORIGINAL QUESTION:

 I am doing some Tomcat cost/benefit projections for my company.  I need to
 determine the maximum number of applications that will run on Tomcat and
 still provide stable performance.  I am not interested in a theoretical
 number at this time, just seeking information about what real developers are
 actually doing with real applications.

 At this time, I am not interested in what machine types, OSs,
 configurations, versions, are being used.  I understand the answer to my
 questions will depend heavily on these issues as well as on the applications
 themselves.  I just need to come up with a realistic number of
 instances/apps which are being run on a single machine by real users. I am
 seeking an answer to the following two questions:

 Number of Tomcat instances I am running on one machine:

 Number of individual applications I am running in all instances of Tomcat on
 one machine:

 Please feel free to respond to the mail list, or to me directly at
 [EMAIL PROTECTED] (if we don't want to clog the list with
 answers to this question).  I will post a final resolution message to the
 mail list when I have come to some sort of conclusion.

 Thanks in advance for your help!




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



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




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




Re: AccessLogValve setting restriction

2002-06-10 Thread Craig R. McClanahan



On Mon, 10 Jun 2002, Frédéric Laurent wrote:

 Date: Mon, 10 Jun 2002 17:18:36 +0200
 From: Frédéric Laurent [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: AccessLogValve setting restriction

 Hello

 what I want to do :
 - configure tomcat in order to have no log, no trace


If you do not want an access log, simply remove (or comment out) the
Valve entry for AccessLogValve.

Craig



 the problem I have:
 - concerning the logger, it seems to be ok. In fact, I can set
 the logger class to my implementation
 - concerning the valve , problems !!!

 in the documentation http://localhost:8080/tomcat-docs/config/valve.html
 no className can be changed acording to :
 className : This MUST be set to
 org.apache.catalina.valves.AccessLogValve !

 so why such a restriction ???
 how can I do to bypass access log ??? any idea ?

 thanks in advance

 --
 Frédéric Laurent
 http://www.opikanoba.org



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




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




tomcat 3.2.4 versus recent one

2002-06-10 Thread Marc Logemann

Hi,

i am dealing with a project on an IBM iSeries (AS/400). There you can use
a pre-installed tomcat 3.2.4 or you can chose to install a recent one of course.
Cause installing a recent one would require some efforts (we speak of more than
one machine in this project), i want to ask if there are fundamental differences
so that its not wise to use 3.2.4 ...

Any comments appreciated.




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




Secure connection between Apache and Tomcat

2002-06-10 Thread Thomas Krebs

Can I setup Apache and Tomcat in a way that Apache that the connection between
Apache and Tomcat can be considered as secure, e.g. SSL
In a guideline concerning the setup of Apache/Tomcat with SSL, I saw references
to mod_jk parameters like JkExtractSSL, JkHTTPSIndicator,...
What is the exact meaning of those parameters, do they extend a SSL session
established by the Apache server to Tomcat?

thanks,
thomas

--
Diese E-Mail enthaelt vertrauliche oder rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte
sofort den Absender und loeschen Sie diese E-Mail. Das unbefugte Kopieren
dieser E-Mail oder die unbefugte Weitergabe der enthaltenenen Informationen
ist nicht gestattet.

The information contained in this message is confidential or protected by
law. If you are not the intended recipient, please contact the sender and
delete this message. Any unauthorised copying of this message or
unauthorised distribution of the information contained herein is prohibited.



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




RE: Please help me improve my question skills (number of tomcata pps)

2002-06-10 Thread Knutsen Jeffrey S

Thanks very much for the help.  

I do understand that there are many variables that will affect the answer to
this question.  At this time, all I am really after is what is the best
that anyone has done, in any configuration.  I am interested in real-world
successes.

Thanks again!




-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 10:33 AM
To: Tomcat Users List
Subject: Re: Please help me improve my question skills (number of tomcat
apps)




On Mon, 10 Jun 2002, Knutsen Jeffrey S wrote:

 Date: Mon, 10 Jun 2002 08:48:39 -0500
 From: Knutsen Jeffrey S [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
 Subject: Please help me improve my question skills (number of tomcat apps)

 I have submitted the following question and received no response.  I know
 this isn't a technical problem, but I was hoping for responses from real
 developers.  I thought it was a simple question, and have always received
 excellent and quick responses from the tomcat mail list in the past, so
the
 problem must be with me or the way I am asking.

 Can someone please help me improve myself?  Is this a stupid question?
Have
 I perhaps asked it incorrectly?  I am open and receptive to any
constructive
 criticism available (I can take it, but maybe you could send a direct
 response if you want to be extremely brutal?!)

 All I really want to know is how many applications real developers are
 putting on one machine in the real world. I am just looking for an
abstract
 number, and I am not worried about system configurations at this time.


The problem is that there is no generally useful answer to your question
as stated.  It depends even more on the nature of the applications you are
talking about (when the answer might even be zero for a particular server
configuration) as the size of the server (an answer based on a 64-CPU
mega-server with 4 gigabytes of main memory isn't going to help you on a
small single-CPU Linux box with 64 megs).

There are no architectural limits on the number of webapps a single Tomcat
instance can support, or the number of Tomcat instances on a single
server.  It all comes down to what resource bottlenecks you run into first
in your application environment.  In many webapp environments, the first
bottleneck encountered is often database access, followed by the number of
simultenaous requests being processed.  Neither of those bottlenecks has
much directly to do with how many different webapps you are talking
about.


 Thanks!


Craig



 ORIGINAL QUESTION:

 I am doing some Tomcat cost/benefit projections for my company.  I need to
 determine the maximum number of applications that will run on Tomcat and
 still provide stable performance.  I am not interested in a theoretical
 number at this time, just seeking information about what real developers
are
 actually doing with real applications.

 At this time, I am not interested in what machine types, OSs,
 configurations, versions, are being used.  I understand the answer to my
 questions will depend heavily on these issues as well as on the
applications
 themselves.  I just need to come up with a realistic number of
 instances/apps which are being run on a single machine by real users. I am
 seeking an answer to the following two questions:

 Number of Tomcat instances I am running on one machine:

 Number of individual applications I am running in all instances of Tomcat
on
 one machine:

 Please feel free to respond to the mail list, or to me directly at
 [EMAIL PROTECTED] (if we don't want to clog the list with
 answers to this question).  I will post a final resolution message to the
 mail list when I have come to some sort of conclusion.

 Thanks in advance for your help!




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



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




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



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




Re: tomcat-apache with webapp connector

2002-06-10 Thread Jean-Luc BEAUDET

Stanish, Brian a écrit :

 I am using Tomcat 4.0.3 with Java SDK 1.4.0 along with Apache 1.3.24. These are all 
running on a RedHat 7.2 box on which I do have root access.

 I have followed the readme and install files and managed to get Tomcat working 
standalone. Then I installed mod_webapp as a shared object for Apache and edited my 
httpd.conf file to use that module:

 *
 LoadModule webapp_module /etc/httpd/modules/mod_webapp.so
 AddModule mod_webapp.c

 IfModule mod_webapp.c
 WebAppConnection conn  warp  127.0.0.1:8008
 WebAppDeploy examplesconn  /examples
 WebAppDeploy manager conn  /manager
 WebAppInfo /webapp-info
 /IfModule
 *

 I am able to access tomcat by going to the URL myhost.mydomain.com:8080 and I can 
access $tomcat_root/examples and $tomcat_root/manager by going to 
myhost.mydomain.com/examples/ and myhost.mydomain.com/manager/ respectively.

 What I would like to do however, is allow .jsp files (and eventually servlets as 
well) in my html root. Currently if I have a file such as 
myhost.mydomain.com/foo.jsp, apache returns it as source text.

Well it seems that your jsp files are not treated at all...
First of all yu do have to well understand how deployments are done under Tomcat.

/examples works well because, basically, your tomcat is pre-configured to work this 
way.
The ServerROOT for Tomcat is under /path/to/Tomcat/webapps.

When Tomcat is started, it looks in that directory and deploy every web application 
found. In that case,
examples ROOT manager tomcat-docs and eventually webdav.
This deployement is controlled by the $TOMCAT_DIR/server.xml and web.xml.

So try first to execute sample codes from the /examples deployement and look if it 
goes right.
You can see it too in $TOMCAT_DIR/work/127.0.0.1/ directoty.

 I have looked for a way to tell apache that if it finds a jsp file it should send it 
to tomcat for processing,

Once mod_webapp is compiled, well installed and declared as a shared module, Apache 
knows that all jsp's are to be sent to this module, according, obviously, to the 
Deployment done.

About the deployment, i was talking of the part dedicated to Tomcat-Apache which is 
handled in your case by mod_webapp on server 127.0.0.1 ( hum, yu can forget it 
assuming that it is the default...) on port 8008.
So that each Host and Context declared in this part AND WebAppDeployed in httpd.conf 
will be concerned.

Yu may keep the structure described in THE 2.3 API Servlet:
/path/to/my/zone/webapps containing folders below:
./jsp  put jsp's files
./servlets for yur servlets
./WEB-INF/classes all .class files
./WEB-INF/lib all .jar files
./WEB-INF/web.xml describing how to handle yur jsp and servlets.

Don't forget that with no personal web.xml under WEB-INF, the deployer will  
understand that yu want to use the default one; that is $TOMCAT_DIR/conf/web.xml.
For instance it says that a common servlet will be call by 
http://myserver/servlet/MyServlet.


 but all I have found on the web and in newsgroups is how to do it using either jserv 
or jk. Current documentation has recommended using webapp as a connector, which is 
why I installed it, but does it disallow me from having jsp's in my docroot? Any 
pointers would be appreciated.

Try to read the online documentation directly on yur server port 8080 ( if available) 
or go to the jakarta online doc
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html




 Thanks in advance.

 -Brian

Hope this help.

Jean-Luc :O)



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




RE: tomcat-apache with webapp connector

2002-06-10 Thread Thébault, Médérick

Hello,

Es tu français?


-Message d'origine-
De : Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Envoyé : lundi 10 juin 2002 17:37
À : Tomcat Users List
Objet : Re: tomcat-apache with webapp connector


Stanish, Brian a écrit :

 I am using Tomcat 4.0.3 with Java SDK 1.4.0 along with Apache 1.3.24.
These are all running on a RedHat 7.2 box on which I do have root
access.

 I have followed the readme and install files and managed to get Tomcat
working standalone. Then I installed mod_webapp as a shared object for
Apache and edited my httpd.conf file to use that module:

 *
 LoadModule webapp_module /etc/httpd/modules/mod_webapp.so
 AddModule mod_webapp.c

 IfModule mod_webapp.c
 WebAppConnection conn  warp  127.0.0.1:8008
 WebAppDeploy examplesconn  /examples
 WebAppDeploy manager conn  /manager
 WebAppInfo /webapp-info
 /IfModule
 *

 I am able to access tomcat by going to the URL
myhost.mydomain.com:8080 and I can access $tomcat_root/examples and
$tomcat_root/manager by going to myhost.mydomain.com/examples/ and
myhost.mydomain.com/manager/ respectively.

 What I would like to do however, is allow .jsp files (and eventually
servlets as well) in my html root. Currently if I have a file such as
myhost.mydomain.com/foo.jsp, apache returns it as source text.

Well it seems that your jsp files are not treated at all...
First of all yu do have to well understand how deployments are done
under Tomcat.

/examples works well because, basically, your tomcat is pre-configured
to work this way.
The ServerROOT for Tomcat is under /path/to/Tomcat/webapps.

When Tomcat is started, it looks in that directory and deploy every web
application found. In that case,
examples ROOT manager tomcat-docs and eventually webdav.
This deployement is controlled by the $TOMCAT_DIR/server.xml and
web.xml.

So try first to execute sample codes from the /examples deployement and
look if it goes right.
You can see it too in $TOMCAT_DIR/work/127.0.0.1/ directoty.

 I have looked for a way to tell apache that if it finds a jsp file it
should send it to tomcat for processing,

Once mod_webapp is compiled, well installed and declared as a shared
module, Apache knows that all jsp's are to be sent to this module,
according, obviously, to the Deployment done.

About the deployment, i was talking of the part dedicated to
Tomcat-Apache which is handled in your case by mod_webapp on server
127.0.0.1 ( hum, yu can forget it assuming that it is the default...) on
port 8008.
So that each Host and Context declared in this part AND WebAppDeployed
in httpd.conf will be concerned.

Yu may keep the structure described in THE 2.3 API Servlet:
/path/to/my/zone/webapps containing folders below:
./jsp  put jsp's files
./servlets for yur servlets
./WEB-INF/classes all .class files
./WEB-INF/lib all .jar files
./WEB-INF/web.xml describing how to handle yur jsp and servlets.

Don't forget that with no personal web.xml under WEB-INF, the deployer
will  understand that yu want to use the default one; that is
$TOMCAT_DIR/conf/web.xml.
For instance it says that a common servlet will be call by
http://myserver/servlet/MyServlet.


 but all I have found on the web and in newsgroups is how to do it
using either jserv or jk. Current documentation has recommended using
webapp as a connector, which is why I installed it, but does it disallow
me from having jsp's in my docroot? Any pointers would be appreciated.

Try to read the online documentation directly on yur server port 8080 (
if available) or go to the jakarta online doc
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html




 Thanks in advance.

 -Brian

Hope this help.

Jean-Luc :O)



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


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




Re: Please help me improve my question skills (number of tomcat a pps)

2002-06-10 Thread Arshad Mahmood

Hi,

So the question reduces to:-
1. What are the extra memory requirements for a virtual host/context?
2. How much longer does it take to decide on a servlet/jsp to invoke for
an extra virtual host/context?

From my (limited) understanding of Tomcat, I would say the answer to both of
these questions is negligible compared to the memory/overhead of processing
a typical request. So your question reduces to how many requests can be
processed by your instance, and that depends very much on your application.
The distribution of the requests amongst the applications shouldm't matter.

Can somebody more knowledgeable confirm the extra resource requirements for
virtual hosts/contexts.

Regards,
Arshad


- Original Message -
From: Knutsen Jeffrey S [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, June 10, 2002 4:37 PM
Subject: RE: Please help me improve my question skills (number of tomcat a
pps)


 Thanks very much for the help.

 I do understand that there are many variables that will affect the answer
to
 this question.  At this time, all I am really after is what is the best
 that anyone has done, in any configuration.  I am interested in
real-world
 successes.

 Thanks again!




 -Original Message-
 From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
 Sent: Monday, June 10, 2002 10:33 AM
 To: Tomcat Users List
 Subject: Re: Please help me improve my question skills (number of tomcat
 apps)




 On Mon, 10 Jun 2002, Knutsen Jeffrey S wrote:

  Date: Mon, 10 Jun 2002 08:48:39 -0500
  From: Knutsen Jeffrey S [EMAIL PROTECTED]
  Reply-To: Tomcat Users List [EMAIL PROTECTED]
  To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]
  Subject: Please help me improve my question skills (number of tomcat
apps)
 
  I have submitted the following question and received no response.  I
know
  this isn't a technical problem, but I was hoping for responses from real
  developers.  I thought it was a simple question, and have always
received
  excellent and quick responses from the tomcat mail list in the past, so
 the
  problem must be with me or the way I am asking.
 
  Can someone please help me improve myself?  Is this a stupid question?
 Have
  I perhaps asked it incorrectly?  I am open and receptive to any
 constructive
  criticism available (I can take it, but maybe you could send a direct
  response if you want to be extremely brutal?!)
 
  All I really want to know is how many applications real developers are
  putting on one machine in the real world. I am just looking for an
 abstract
  number, and I am not worried about system configurations at this time.
 

 The problem is that there is no generally useful answer to your question
 as stated.  It depends even more on the nature of the applications you are
 talking about (when the answer might even be zero for a particular server
 configuration) as the size of the server (an answer based on a 64-CPU
 mega-server with 4 gigabytes of main memory isn't going to help you on a
 small single-CPU Linux box with 64 megs).

 There are no architectural limits on the number of webapps a single Tomcat
 instance can support, or the number of Tomcat instances on a single
 server.  It all comes down to what resource bottlenecks you run into first
 in your application environment.  In many webapp environments, the first
 bottleneck encountered is often database access, followed by the number of
 simultenaous requests being processed.  Neither of those bottlenecks has
 much directly to do with how many different webapps you are talking
 about.


  Thanks!
 

 Craig


 
  ORIGINAL QUESTION:
 
  I am doing some Tomcat cost/benefit projections for my company.  I need
to
  determine the maximum number of applications that will run on Tomcat and
  still provide stable performance.  I am not interested in a theoretical
  number at this time, just seeking information about what real developers
 are
  actually doing with real applications.
 
  At this time, I am not interested in what machine types, OSs,
  configurations, versions, are being used.  I understand the answer to my
  questions will depend heavily on these issues as well as on the
 applications
  themselves.  I just need to come up with a realistic number of
  instances/apps which are being run on a single machine by real users. I
am
  seeking an answer to the following two questions:
 
  Number of Tomcat instances I am running on one machine:
 
  Number of individual applications I am running in all instances of
Tomcat
 on
  one machine:
 
  Please feel free to respond to the mail list, or to me directly at
  [EMAIL PROTECTED] (if we don't want to clog the list with
  answers to this question).  I will post a final resolution message to
the
  mail list when I have come to some sort of conclusion.
 
  Thanks in advance for your help!
 
 
 
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
  --
  To unsubscribe, 

HELP : can't find ressources

2002-06-10 Thread noel . jean-baptiste


 Hi, 
 in my servlet Java i do :
 ServletContext servletContext = getServletContext();
 String pathXml = servletContext.getRealPath(file.xxx);
 
 the result is pathXml = /usr/nameUsers/public_hmtl/file.xxx
 
 The WebServeur can't acces by this way.
 
 How can i do to access to my hostname/~nameUsers from the ROOT of 
 webServeur? 
 
 Thank you, 
 
 Djibi
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 


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




Tomcat and serlvet path

2002-06-10 Thread Thébault, Médérick

Hi there,

I am trying to deploy servlet (Tomcat 4.0.x and Java 1.4). Strange isn't
it?

I managed to deploy my servlet but I would like to change the URL which
is myhost/mydirectory/servlet/myservlet.

I though this was possible in web.xml of my servlet, but can not
succeed.

Is there a way to change/avoid this?

Thanx

Med

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




AW: Secure connection between Apache and Tomcat

2002-06-10 Thread Ralph Einfeldt

AFAIK there is no builtin support for SSL connections between
a connector and tomcat. Those parameters are for the 
communication between the connector and apache:
http://jakarta.apache.org/tomcat/tomcat-3.3-doc/tomcat-ssl-howto.html#s4

Two alternative solutions:
- Use a VPN
- Use a SSH Daemon with port forwarding.

 -Ursprüngliche Nachricht-
 Von: Thomas Krebs [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 10. Juni 2002 17:35
 An: [EMAIL PROTECTED]
 Betreff: Secure connection between Apache and Tomcat
 
 
 Can I setup Apache and Tomcat in a way that Apache that the 
 connection between
 Apache and Tomcat can be considered as secure, e.g. SSL
 In a guideline concerning the setup of Apache/Tomcat with 
 SSL, I saw references
 to mod_jk parameters like JkExtractSSL, JkHTTPSIndicator,...
 What is the exact meaning of those parameters, do they 
 extend a SSL session
 established by the Apache server to Tomcat?
 

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




Tomcat 3.3.1/Apache Virtual Host and Alias

2002-06-10 Thread Laurent Michenaud

Hi,

I've Tomcat 3.3.1 and Apache running together with mod_jk.

I'm trying to setup alias for VirtualHost in the tomcat configuration
but it doesnot work.

* Here what i have in httpd.conf :

NameVirtualHost 192.168.1.125:80

VirtualHost 192.168.1.125:80
DocumentRoot c:/adeuza/sites/fortunoclic
ServerName www.test.fr
ErrorLog c:\tmp\apache-error-testfr.log
CustomLog c:\tmp\apache-access-testfr.log common
/VirtualHost

VirtualHost 192.168.1.125:80
DocumentRoot c:/adeuza/sites/test
ServerName www.test.com
ServerAlias www.test.net
ErrorLog c:\tmp\apache-error-testcom.log
CustomLog c:\tmp\apache-error-testcom.log common
/VirtualHost

* And my apps-testfr.xml 

?xml version=1.0 encoding=ISO-8859-1?
webapps
  Host name=www.test.fr address=192.168.1.125:80
Context path=/ 
 docBase=c:/adeuza/sites/fortunoclic 
 debug=info 
/Context  
  /Host
/webapps

* And my apps-testcom.xml

?xml version=1.0 encoding=ISO-8859-1?
webapps
  Host name=www.test.com address=192.168.1.125:80
alias name=www.test.net /
Context path=/ 
 docBase=c:/adeuza/sites/test 
 debug=info 
/Context
  /Host
/webapps


www.test.fr and www.test.com are ok.
www.test.net can display the correct html files but it cannot find the
jsp and servlet



Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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




How can I disable authentication in Tomcat 4?

2002-06-10 Thread Luca Ventura

Hello everybody!

I have a great problem.:-(
I have installed IIS as Web Server and Tomcat 4 as JSP/Servlet container:
the problem is that when I connect to a site that must be redirected to
Tomcat (because it contains JSP/servlets pages) the servlet container (i.e.
Tomcat 4) asks me to authenticate (it asks me the login and the password)!

I have searched in the Tomcat 4's documentation and on the Jakarta's site to
avoid this problem but unsuccessfully.how can avoid that Tomcat ask me
for authentication?


Can someone help me, please?

Thanks a lot!

  Luca


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




RE: problem..plz help me out

2002-06-10 Thread Swart, James (Jim) %

well, your web.xml has some goofy stuff here:

servlet-nameMyExample/servlet-name
servlet-classHelloWorldExample/servlet-class

Why are you trying to get to it from
http://puneet:80/sachar/servlet/HelloworldServlet when if you mapped it like
above it would be http://puneet:80/sachar/servlet/MyExample ?

-
J a m e s   B.   S w a r t
Agere Systems - Colorado Design Centers
Everything IT Related.  Period.
VOICE: 720-494-2330 ¿ FAX: 720-494-2331


-Original Message-
From: puneet sachar [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 08, 2002 1:22 PM
To: Xinji Gu
Subject: problem..plz help me out


Hi friends, this is my 4th mail regarding my single
complain..

I have install the tomcat 4.0.3 and its doing fine as
far .html files are concern but no .class and .jsp
files are running on it

I have asked 9-10 times abt same question again and
again and I got nothing from u guys there

Plz help me...I really stuck ..

With this mail I'm sending my server.xml file and
web.xml file which is in my virtualhost/WEB-INF/

I know it is very tough for u to go in these files and
see for errors but plz..i'm in need badly and afater
spending so much time here I some time feel like
crying ... and I'm in such a place and in such a part of
India..where I can't get ant local computer guy with
whom I can discuss ..plz do me a little favour

Here are my problems
1)  no .class and .jsp working only html is working 
2)  I have done all changes which were to made in
server.xml...)I have send the file also plz check it and
tell me any mistake if u find)
3)  I'm getting 404 error ..no servlet found
4)  And I'm able to excess the .class file vis
http://localhost:80/examples/servlet/abc.class
 But not by making my own virtual host aand not even
the default root directory


what i have is my own context named sachar 
and when i go
.http://puneet:80/sachar/servlet/HelloworldServlet

error -- 404

See friends ..if u can help me I'll be very grateful
to u

Puneet 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Re: AccessLogValve setting restriction

2002-06-10 Thread Frédéric Laurent

what I want to do :
- configure tomcat in order to have no log, no trace
 

Craig R. McClanahan wrote:
 
 If you do not want an access log, simply remove (or comment out) the
 Valve entry for AccessLogValve.


argh... it was so simple that I hadn't even think about it...
well, now no log file is created on disk, good news ! but
I still have console messages like
...
WebappLoader[/examples]: Reloading checks are enabled for this Context
ContextConfig[/examples]: Configured an authenticator for method FORM
StandardManager[/examples]: Seeding random number generator class 
java.security.SecureRandom
StandardManager[/examples]: Seeding of random number generator has been 
completed
StandardWrapper[/examples:default]: Loading container servlet default
StandardWrapper[/examples:invoker]: Loading container servlet invoker
HostConfig[localhost]: Deploying configuration descriptor admin.xml


this is the bad news...

in the package org.apache.catalina.servlets there is a class named
ManagerServlet in which the javadoc says :

  * libdebug/b - The debugging detail level that controls the amount
  * of information that is logged by this servlet.  Default is zero.
  * /ul

and the code says...

protected int debug = 1;

I bet on a mistake :-)




-- 
Frédéric Laurent
http://www.opikanoba.org



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




RE: Tomcat 3.3.1/Apache Virtual Host and Alias

2002-06-10 Thread Larry Isaacs

Check the mod_jk log and make sure the www.test.net requests
are being forwarded to Tomcat.  If so, set the debug level
on SimpleMapper1 in server.xml to 1 and examine the
Tomcat log to see how the www.test.net requests are being
handled differently from www.test.com requests.  I currently
don't see anything in your config files that would cause this
not to work.

Note that the debug attributes should be set a numeric value
rather than info.  I would guess this would be equivalent
to setting it to zero.

Cheers,
Larry

 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, June 10, 2002 12:27 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat 3.3.1/Apache Virtual Host and Alias
 
 
 Hi,
 
 I've Tomcat 3.3.1 and Apache running together with mod_jk.
 
 I'm trying to setup alias for VirtualHost in the tomcat configuration
 but it doesnot work.
 
 * Here what i have in httpd.conf :
 
 NameVirtualHost 192.168.1.125:80
 
 VirtualHost 192.168.1.125:80
 DocumentRoot c:/adeuza/sites/fortunoclic
 ServerName www.test.fr
 ErrorLog c:\tmp\apache-error-testfr.log
 CustomLog c:\tmp\apache-access-testfr.log common
 /VirtualHost
 
 VirtualHost 192.168.1.125:80
 DocumentRoot c:/adeuza/sites/test
 ServerName www.test.com
 ServerAlias www.test.net
 ErrorLog c:\tmp\apache-error-testcom.log
 CustomLog c:\tmp\apache-error-testcom.log common
 /VirtualHost
 
 * And my apps-testfr.xml 
 
 ?xml version=1.0 encoding=ISO-8859-1?
 webapps
   Host name=www.test.fr address=192.168.1.125:80
 Context path=/ 
  docBase=c:/adeuza/sites/fortunoclic 
  debug=info 
 /Context  
   /Host
 /webapps
 
 * And my apps-testcom.xml
 
 ?xml version=1.0 encoding=ISO-8859-1?
 webapps
   Host name=www.test.com address=192.168.1.125:80
 alias name=www.test.net /
 Context path=/ 
  docBase=c:/adeuza/sites/test 
  debug=info 
 /Context
   /Host
 /webapps
 
 
www.test.fr and www.test.com are ok.
www.test.net can display the correct html files but it cannot find the
jsp and servlet



Michenaud Laurent
- Adeuza -
[ Développeur Web - Administrateur Réseau ]


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

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




Re: How can I disable authentication in Tomcat 4?

2002-06-10 Thread @Basebeans.com

Subject: Re: How can I disable authentication in Tomcat 40 41 42 43 44 45 46 47 48 49
From: Chris Miller [EMAIL PROTECTED]
 ===
Look for a security-constraint tag and a login-config tag in your
web.xml file. Removing them should solve the problem.

Luca Ventura [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]...
 Hello everybody!

 I have a great problem.:-(
 I have installed IIS as Web Server and Tomcat 4 as JSP/Servlet container:
 the problem is that when I connect to a site that must be redirected to
 Tomcat (because it contains JSP/servlets pages) the servlet container
(i.e.
 Tomcat 4) asks me to authenticate (it asks me the login and the password)!

 I have searched in the Tomcat 4's documentation and on the Jakarta's site
to
 avoid this problem but unsuccessfully.how can avoid that Tomcat ask me
 for authentication?


 Can someone help me, please?

 Thanks a lot!

   Luca


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




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




Apache+Tomcat, mod_webapp or mod_proxy?

2002-06-10 Thread Alex Short

Just wondering what people's experiences are with mod_webapp and 
mod_proxy.

I've been able to see two configurations for Tomcat4 with apache.  One 
using mod_proxy and ProxyPass to send requests to Tomcat, others using 
mod_webapp's warpConnection.  Is one a better solution then the other?

Our deployment will likely be some load balancing solution (hardware or 
software) then two webservers running apache and tomcat.

I'd like to set apache to feed any requests for jsp pages to tomcat, right 
now I'm accomplishing this by setting a symlink from the webapps dir to 
the www directory, so that both apache and tomcat can see the same files, 
and have apache pass it off if the content is jsp.  Ideally i'd set it up 
so both apache servers can talk to their own tomcat4 server and also cross 
over to the other one if theirs is down.

Any advice?

Thanks

-Alex


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




RE: Tomcat and serlvet path

2002-06-10 Thread Marek, Tomas

Check out this: http://www.moreservlets.com/Using-Tomcat-4.html

tom

-Original Message-
From: Thébault, Médérick [mailto:[EMAIL PROTECTED]] 
Sent: Monday, June 10, 2002 5:59 PM
To: [EMAIL PROTECTED]
Subject: Tomcat and serlvet path

Hi there,

I am trying to deploy servlet (Tomcat 4.0.x and Java 1.4). Strange isn't
it?

I managed to deploy my servlet but I would like to change the URL which
is myhost/mydirectory/servlet/myservlet.

I though this was possible in web.xml of my servlet, but can not
succeed.

Is there a way to change/avoid this?

Thanx

Med

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

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




RE: Tomcat 3.3.1/Apache Virtual Host and Alias

2002-06-10 Thread Laurent Michenaud

Requesting www.test.net/index.jsp logs :

* In mod_jk.log :

[Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (351)]: Into
jk_uri_worker_map_t::map_uri_to_worker
[Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (368)]: Attempting to
map URI '/index.jsp'
[Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (416)]:
jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -
*.jsp
[Mon Jun 10 18:51:00 2002]  [jk_worker.c (123)]: Into
wc_get_worker_for_name ajp13
[Mon Jun 10 18:51:00 2002]  [jk_worker.c (127)]: wc_get_worker_for_name,
done  found a worker
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (865)]: Into
jk_worker_t::get_endpoint
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (775)]: Into
jk_endpoint_t::service
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (403)]: Into
ajp13_marshal_into_msgb
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (537)]: ajp13_marshal_into_msgb
- Done
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (206)]: sending to ajp13
#334
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (645)]: send_request 2:
request body to send 0 - request body to resend 0
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
ajp13 #47
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (584)]:
ajp13_unmarshal_response: status = 404
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (591)]:
ajp13_unmarshal_response: Number of headers is = 2
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html]
[Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
ajp13_unmarshal_response: Header[1] [Content-Length] = [171]
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
ajp13 #175
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
ajp13 #2
[Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (549)]: Into
jk_endpoint_t::done

* In tc.log

After tomcat load : ( there is no www.test.net, normal ? )
2002-06-10 19:00:25 - ContextManager: Tomcat configured and in stable
state 
2002-06-10 19:00:25 - ContextManager: Adding  www.test.fr:/ROOT
2002-06-10 19:00:25 - ContextManager: Adding  www.test.com:/ROOT

When i call www.test.net/index.jsp :
2002-06-10 19:00:53 - ContextManager: Host = www.test.net
2002-06-10 19:00:53 - ContextManager: Assertion failed: container==null
(no Default Context?)
2002-06-10 19:00:53 - Ctx() : Status code:404 request:R( /index.jsp)
msg:null


Any ideas ?


 -Message d'origine-
 De : Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Envoyé : lundi 10 juin 2002 18:47
 À : 'Tomcat Users List'
 Objet : RE: Tomcat 3.3.1/Apache Virtual Host and Alias
 
 
 Check the mod_jk log and make sure the www.test.net requests
 are being forwarded to Tomcat.  If so, set the debug level
 on SimpleMapper1 in server.xml to 1 and examine the
 Tomcat log to see how the www.test.net requests are being
 handled differently from www.test.com requests.  I currently
 don't see anything in your config files that would cause this
 not to work.
 
 Note that the debug attributes should be set a numeric value
 rather than info.  I would guess this would be equivalent
 to setting it to zero.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
  Sent: Monday, June 10, 2002 12:27 PM
  To: [EMAIL PROTECTED]
  Subject: Tomcat 3.3.1/Apache Virtual Host and Alias
  
  
  Hi,
  
  I've Tomcat 3.3.1 and Apache running together with mod_jk.
  
  I'm trying to setup alias for VirtualHost in the tomcat 
 configuration
  but it doesnot work.
  
  * Here what i have in httpd.conf :
  
  NameVirtualHost 192.168.1.125:80
  
  VirtualHost 192.168.1.125:80
  DocumentRoot c:/adeuza/sites/fortunoclic
  ServerName www.test.fr
  ErrorLog c:\tmp\apache-error-testfr.log
  CustomLog c:\tmp\apache-access-testfr.log common
  /VirtualHost
  
  VirtualHost 192.168.1.125:80
  DocumentRoot c:/adeuza/sites/test
  ServerName www.test.com
  ServerAlias www.test.net
  ErrorLog c:\tmp\apache-error-testcom.log
  CustomLog c:\tmp\apache-error-testcom.log common
  /VirtualHost
  
  * And my apps-testfr.xml 
  
  ?xml version=1.0 encoding=ISO-8859-1?
  webapps
Host name=www.test.fr address=192.168.1.125:80
  Context path=/ 
   docBase=c:/adeuza/sites/fortunoclic 
   debug=info 
  /Context  
/Host
  /webapps
  
  * And my apps-testcom.xml
  
  ?xml version=1.0 encoding=ISO-8859-1?
  webapps
Host name=www.test.com address=192.168.1.125:80
  alias name=www.test.net /
  Context path=/ 
   docBase=c:/adeuza/sites/test 
   debug=info 
  /Context
/Host
  /webapps
  
  
 www.test.fr and www.test.com are ok.
 www.test.net can display the correct html files but it cannot find the
 jsp and servlet
 
 
 
 Michenaud Laurent
 - Adeuza -
 [ Développeur Web - Administrateur Réseau ]
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:   
 

configuration problem?

2002-06-10 Thread Jiann-Ming Su

We're running tomcat-4.0.3 and j2sdk-1.4.0.  We're having the problems 
described below.  I think it's a configuration problem on our end, but
I'm not sure where.  Thanks for any insight.


 Original Message 


 That  makes sense to me.  We are experiencing an interesting problem. 
  We are only able to execute 1 search using our installation of ARC 
 (http://callimachus.library.emory.edu:8180/oai/index.html) using IE 5.5, 
 subsequent searches have a very long response time.  We must close the 
 browser window before executing any more searches.  This problem does 
 not occur in Netscape or with your installation of ARC 
 (http://arc.cs.odu.edu/).  Do you have any thoughts on this?
 


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




RE: How to write files when web-app is a WAR?

2002-06-10 Thread Chris Bailey

That is not true to my understanding.  If you deploy a WAR file on Tomcat (v
4.0.3 anyway), then ServletContext.getRealPath() will return null (even
though the WAR gets expanded).  This is proper behavior as per the Servlet
spec.

Les' message about how to get the temp path is closer, but basically I need
more complete access to the file system.

For the time being I have just deployed not using a WAR file and I can then,
at deploy time, write the full path location into a property and use that,
etc.  But, what worries me is that there may be containers out there
(WebLogic maybe? Resin? others?) that ONLY allow deploying as a WAR file and
further, don't expand it; meaning that my normally nested file paths in the
expanded WAR area are now not accessible via java.io.File.

-Original Message-
From: John Burgess [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:25 AM
To: Tomcat Users List
Subject: RE: How to write files when web-app is a WAR?


If the war file is unpacked (which tomcat will do automatically at startup
unless you specify somewhere in server.xml not to) then it is just as if you
had deployed to the webapp\your_app directory yourself.  I believe that
leaving war's unpacked results in slightly worse performance and isn't
recommended for a deployment server anyway.

Best Wishes
John Burgess
[EMAIL PROTECTED]
Tel: 01865 718666
Fax: 01865 718600


-Original Message-
From: Chris Bailey [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 8:02 PM
To: Tomcat Mailing List
Subject: How to write files when web-app is a WAR?


From what I've read, it seems that if you package your web application in a
WAR file, you have no way of attaining a path on the server's file system
that you can use to write files.  Reference:
http://mikal.org/interests/java/tomcat/archive/view?mesg=15006.

I have a web app that we'd like to package as a WAR.  But, we need to be
able to write various data files out to the server's file system.  What
solution(s) are people using for this?  Writing the files to a database is
not acceptable for us  (I'm not a DBMS expert, but have been told that BLOB
performance is not great, and that using a DB as a file system replacement
is not good, etc.).

I was thinking we'd have to do a bit of a hack...  Basically, at the time we
install our application, the user will pick the real path on their disk
where the data files are stored.  We then store this in a property in
web.xml, and retrieve that in the app for using as the path.  For
links/hrefs on a web page, we'd just use something like /data_files, but
then set up a path-mapping that had /data_files mapped to say
/home/appname/data_files or whatever.   I also am assuming I will need to
ensure that this real path lies outside of the WAR expanded directory
because someday Tomcat (and maybe others already?) will not expand the WAR
file.

Anyway, what have folks come up with?  While we use Tomcat for all our
development work, we'll likely have to support a variety of Servlet
containers (I think we can require at least Servlet 2.2, hopefully 2.3).


Chris Bailey   mailto:[EMAIL PROTECTED]
Code Intensity   http://www.codeintensity.com


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

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.365 / Virus Database: 202 - Release Date: 24/05/02


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



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




Error response

2002-06-10 Thread John C Cartwright

Hello All,

I notice that using tomcat 4.0.3, the error response is not interpreted 
correctly when the request is routed through apache.

For example, if I request a non-existant servlet from stand-alone 
tomcat, I get a nicely formatted error page.  If I request the same URL 
through apache, I get just the text representation of the html page.

I'm using mod_jk as a connector with the ajp13 protocol and mozilla 1.0 
on a RH7.2 system.

Can anyone point out what I need to change in my configuration?

Thanks!

-- john




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




Apache 1.3.23 and Tomcat 4.1.3 integration problem

2002-06-10 Thread Bill Kurani

Hello

I am using Apache 1.3.29 and Tomcat 4.1.3
Tomcat Works Standalone. Apache works fine
I have gone over all the configuration files and they
seem to be having correct entries.

When I access the page http://localhost/examples/
I get Internal Error Server Error as below 

Internal Server Error
The server encountered an internal error or misconfiguration and was unable to 
complete your request.

Please contact the server administrator, root@localhost and inform them of the time 
the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache/1.3.23 Server at localhost Port 80

and mod_jk.log file shows


[Mon Jun 10 10:39:16 2002]  [jk_connect.c (116)]: Into jk_open_socket
[Mon Jun 10 10:39:16 2002]  [jk_connect.c (123)]: jk_open_socket, try to connect 
socket = 9
[Mon Jun 10 10:39:16 2002]  [jk_connect.c (132)]: jk_open_socket, after connect ret = 
-1
[Mon Jun 10 10:39:16 2002]  [jk_connect.c (151)]: jk_open_socket, connect() failed 
errno = 111
[Mon Jun 10 10:39:16 2002]  [jk_ajp_common.c (599)]: In 
jk_endpoint_t::ajp_connect_to_endpoint, failed errno = 111
[Mon Jun 10 10:39:16 2002]  [jk_ajp_common.c (844)]: Error connecting to the Tomcat 
process.
[Mon Jun 10 10:39:16 2002]  [jk_ajp_common.c (1153)]: In jk_endpoint_t::service, 
ajp_send_request failed in send loop 2
[Mon Jun 10 10:39:16 2002]  [jk_ajp_common.c (1339)]: Into jk_endpoint_t::done, 
closing connection 0
[Mon Jun 10 10:39:16 2002]  [jk_ajp_common.c (536)]: In 
jk_endpoint_t::ajp_close_endpoint

Any idea 

thanks - bill



RE: Tomcat 3.3.1/Apache Virtual Host and Alias

2002-06-10 Thread Larry Isaacs

It looks like the only way for things not to be working
is if the www.test.net isn't being added as a host alias
on the Tomcat side.  Try Alias .../ with a capital 'A',
i.e:

Alias name=www.test.net / 

I believe this will get it working.

Cheers,
Larry

 -Original Message-
 From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, June 10, 2002 1:06 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 3.3.1/Apache Virtual Host and Alias
 
 
 Requesting www.test.net/index.jsp logs :
 
 * In mod_jk.log :
 
 [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (351)]: Into
 jk_uri_worker_map_t::map_uri_to_worker
 [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (368)]: Attempting to
 map URI '/index.jsp'
 [Mon Jun 10 18:51:00 2002]  [jk_uri_worker_map.c (416)]:
 jk_uri_worker_map_t::map_uri_to_worker, Found a suffix match ajp13 -
 *.jsp
 [Mon Jun 10 18:51:00 2002]  [jk_worker.c (123)]: Into
 wc_get_worker_for_name ajp13
 [Mon Jun 10 18:51:00 2002]  [jk_worker.c (127)]: 
 wc_get_worker_for_name,
 done  found a worker
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (865)]: Into
 jk_worker_t::get_endpoint
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (775)]: Into
 jk_endpoint_t::service
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (403)]: Into
 ajp13_marshal_into_msgb
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (537)]: 
 ajp13_marshal_into_msgb
 - Done
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (206)]: 
 sending to ajp13
 #334
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (645)]: send_request 2:
 request body to send 0 - request body to resend 0
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
 ajp13 #47
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (584)]:
 ajp13_unmarshal_response: status = 404
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (591)]:
 ajp13_unmarshal_response: Number of headers is = 2
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
 ajp13_unmarshal_response: Header[0] [Content-Type] = [text/html]
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13.c (634)]:
 ajp13_unmarshal_response: Header[1] [Content-Length] = [171]
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
 ajp13 #175
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (258)]: received from
 ajp13 #2
 [Mon Jun 10 18:51:00 2002]  [jk_ajp13_worker.c (549)]: Into
 jk_endpoint_t::done
 
 * In tc.log
 
 After tomcat load : ( there is no www.test.net, normal ? )
 2002-06-10 19:00:25 - ContextManager: Tomcat configured and in stable
 state 
 2002-06-10 19:00:25 - ContextManager: Adding  www.test.fr:/ROOT
 2002-06-10 19:00:25 - ContextManager: Adding  www.test.com:/ROOT
 
 When i call www.test.net/index.jsp :
 2002-06-10 19:00:53 - ContextManager: Host = www.test.net
 2002-06-10 19:00:53 - ContextManager: Assertion failed: 
 container==null
 (no Default Context?)
 2002-06-10 19:00:53 - Ctx() : Status code:404 request:R( /index.jsp)
 msg:null
 
 
 Any ideas ?
 
 
  -Message d'origine-
  De : Larry Isaacs [mailto:[EMAIL PROTECTED]]
  Envoyé : lundi 10 juin 2002 18:47
  À : 'Tomcat Users List'
  Objet : RE: Tomcat 3.3.1/Apache Virtual Host and Alias
  
  
  Check the mod_jk log and make sure the www.test.net requests
  are being forwarded to Tomcat.  If so, set the debug level
  on SimpleMapper1 in server.xml to 1 and examine the
  Tomcat log to see how the www.test.net requests are being
  handled differently from www.test.com requests.  I currently
  don't see anything in your config files that would cause this
  not to work.
  
  Note that the debug attributes should be set a numeric value
  rather than info.  I would guess this would be equivalent
  to setting it to zero.
  
  Cheers,
  Larry
  
   -Original Message-
   From: Laurent Michenaud [mailto:[EMAIL PROTECTED]] 
   Sent: Monday, June 10, 2002 12:27 PM
   To: [EMAIL PROTECTED]
   Subject: Tomcat 3.3.1/Apache Virtual Host and Alias
   
   
   Hi,
   
   I've Tomcat 3.3.1 and Apache running together with mod_jk.
   
   I'm trying to setup alias for VirtualHost in the tomcat 
  configuration
   but it doesnot work.
   
   * Here what i have in httpd.conf :
   
   NameVirtualHost 192.168.1.125:80
   
   VirtualHost 192.168.1.125:80
   DocumentRoot c:/adeuza/sites/fortunoclic
   ServerName www.test.fr
   ErrorLog c:\tmp\apache-error-testfr.log
   CustomLog c:\tmp\apache-access-testfr.log common
   /VirtualHost
   
   VirtualHost 192.168.1.125:80
   DocumentRoot c:/adeuza/sites/test
   ServerName www.test.com
   ServerAlias www.test.net
   ErrorLog c:\tmp\apache-error-testcom.log
   CustomLog c:\tmp\apache-error-testcom.log common
   /VirtualHost
   
   * And my apps-testfr.xml 
   
   ?xml version=1.0 encoding=ISO-8859-1?
   webapps
 Host name=www.test.fr address=192.168.1.125:80
   Context path=/ 
docBase=c:/adeuza/sites/fortunoclic 
debug=info 
   /Context  
 /Host
   /webapps
   
   * And my apps-testcom.xml
   
   ?xml version=1.0 encoding=ISO-8859-1?
  

RE: tomcat-apache with webapp connector

2002-06-10 Thread Stanish, Brian

Thanks for the info. Let me clarify a few things.

So try first to execute sample codes from the /examples deployement and look if it 
goes right.
You can see it too in $TOMCAT_DIR/work/127.0.0.1/ directory.

The example servlets and JSP's work fine, but they are in the tomcat root. I want to 
be able to process JSP's that are within the apache htdoc root. 

Once mod_webapp is compiled, well installed and declared as a shared module, Apache 
knows that all jsp's are
to be sent to this module, according, obviously, to the Deployment done.

By this, do you mean the part of my httpd.conf that says:
WebAppDeploy examples conn  /examples

That will create a link from http://myserver/examples/ to 
/path/to/tomcat/webapps/examples, correct? So if I want all JSP's within my htdoc root 
to be processed, would it be something like
 
WebAppDeploy /web/docroot/*.jsp conn  ?

Am I correct in observing that JSP's do not require a context, but servlets do? Also, 
theoretically, I don't need a WEB-INF folder for every JSP/Servlet, because if it 
doesn't exist it will use the default?

Let's say I set up a context in my server.xml file for /web/docroot (which is where my 
html files are served from). When I try to access /web/docroot/helloworld.jsp by going 
to http://myserver/helloworld.jsp, the browser would send the request to Apache, not 
Tomcat, and Apache would then return the file, unprocessed to the browser, because 
there is no directive for JSP files. What I want is for Apache to see that the file is 
a JSP, send it to Tomcat, let Tomcat produce the results which would then get returned 
to Apache to be served to my Web Browser. Does that sound right? Its so easy to do 
with PHP or Perl. JSP's aren't much different are they?

I've seen some other examples for config files 
(http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_06.jsp) that say 
to have Apache send *all* requests over to Tomcat, but that defeats the purpose of 
having Apache so that *it* will be in charge of serving my static files along with 
sending my PHP/Perl files to the apropriate processer. 

Try to read the online documentation directly on yur server port 8080 ( if available) 
or go to the jakarta online doc 
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/index.html

Believe me I tried. :) 

Thanks again.

-Brian



Re: How many rows have a ResultSet?

2002-06-10 Thread Anibal Constante Brito

 Hy,

 you can use rs.RecordCount

 Regards
 Marcus

the ResultSet don't have this property?, sorry, but you answer don't help
me.

Owen.

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




how to recuperate files on Sun5.7 serveur from tomcat's root

2002-06-10 Thread noel . jean-baptiste

Hi,
On Sun5.7 all my servlets are under this path :

/usagers/myNameUser/public_html/WEB-INF/classes/myServelt

To accede to my servlet by an http request i do :

http://www.labunix.uqam.ca/~myNameUser/servlet/myServlet 

But in my myServlet how to recuperate files situated 
under /usagers/myNameUser/public_html ? 

If i do in my myServlet :

ServletContext servletContext = getServletContext();
String pathXml = servletContext.getRealPath(file.xxx);
the result is = pathXml = /usagers/myNameUser/public_hmtl/file.xxx
 
The WebServeur can't access by this abolute's path. 

Thank you, 

Djibi




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




Re: tomcat-apache with webapp connector

2002-06-10 Thread Joseph Molnar

 I've seen some other examples for config files

(http://www.codesta.com/knowledge/technical/tomcat_warp_apache/page_06.jsp)
 that say to have Apache send *all* requests over to Tomcat,
 but that defeats the purpose of having Apache so that *it*
 will be in charge of serving my static files along with sending
 my PHP/Perl files to the apropriate processer.

Hey there. I wrote the example you are quoting above, so I thought I would
say hello.

Yes, the example I gave does by default send everything through Apache and
it does this for a couple reasons ... first it is a stepping stone for
getting to either a stand-alone Tomcat for someone who knows Apache well,
and as means to get to learn how Tomcat works for those that know Apache (ie
if you have SSL and/or password setups already figured out in Apache, then
this setup means you don't need to figure it out in Tomcat).

What I haven't tried to do yet (time, I always need more time) is sit down
and distinguish between forcing all static content (.html, .gif, .jpeg, etc)
to be done via Apache (though mod_webapp...since we all know that mod_jk can
in fact do this).

That being said there are still ways to make this steup function/process
files differently. On the page you quoted, as an example, I placed a 'note'
that talks about how Apache analyzes 'Location' directives before sending
them off to WARP, unlike how Apache ends up 'ignoring' 'Directory'
directives. Through the 'Location' directive you can actually have some
other module process the files.

Not sure if that helps or not.

Joe

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




Help: Using FORM based authentication

2002-06-10 Thread BBui

Hi all,

I am using FORM Based authentication.  I have my web.xml as followed:

..
web-app
security-constraint
web-resource-collection
web-resource-nameCSD_COS_TRACKER/web-resource-name
 
url-pattern/csd/marketing/clinicaloutcomestudies/tracker/*/url-pattern
/web-resource-collection
auth-constraint
role-namecsd_cos/role-name
/auth-constraint
/security-constraint
login-config
auth-methodFORM/auth-method
form-login-config

form-login-page/security/login.jsp/form-login-page

form-error-page/security/login.jsp?login=false/form-error-page
/form-login-config
/login-config
security-role 
role-namecsd_cos/role-name
/security-role
/web-app
..

and my tomcat-user.xml defined:

.
tomcat-users
user name=tomcat password=tomcat roles=tomcat /
user name=role1  password=tomcat roles=role1  /
user name=both   password=tomcat roles=tomcat,role1 /

user name=user password=password roles=csd_cos /
/tomcat-users   
..

and my uriworkermap.properties as below:

...
# *** Begin uriworkermap.properties ***
#
# Simple worker configuration file
#

# Mount the Servlet context to the ajp13 worker
/servlet/*=ajp13
/*.jsp=ajp13

# Mount the examples context to the ajp13 worker
/examples/*=ajp13

# Advanced mount of the examples context
# /examples/servlet/*=ajp13

# Mount the security context to the ajp12 worker
/security/*=ajp13

/intranet/csd/marketing/clinicaloutcomestudies/tracker/*=ajp13

# * End uriworkermap.properties 
..

What am I missing?  I got the area locked down but the login form is not
loaded when user access the secured area.

Thanks very much for helping.


Bao-Ha Dam Bui
[EMAIL PROTECTED]
S. Jude Medical, Inc
651.765.1018




Re: Whats wrong with this code?

2002-06-10 Thread August Detlefsen

What error are you getting? 



--- Juan [EMAIL PROTECTED] wrote:
 This piece of code don't work if the '@' is not found:
 
   String em = usuario.getEmail();
   int p = em.indexOf('@');
   out.println(Integer.toString(p));
 
 if the '@' is within the string, it works well. Why?
 
 Thanks in advance,
 
 Juan José Velázquez Garcia
 Web Development
 www.htmlspider.com.br
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com

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




Tomcat 4 web.xml vs. Tomcat 3

2002-06-10 Thread Jim Michael

I'm seeing some odd behavior since converting from Tomcat 3.x to 4.0...
it seems that 4.0 is extremely picky about the *order* things are in
within WEB.XML.

For example, with Tomcat 3.x I could do

servlet
...
/servlet

servlet-mapping
...
/servlet-mapping

servlet
... another servlet
/servlet

servlet-mapping
...another servlet mapping
/servlet-mapping

etc, etc.

The order of servet/servlet-mapping tags was irrlevevent as long as
everything was correct.

Now with Tomcat 4, it refuses to load a servlet unless *all* servlet
tags come first, then all associated servlet-mapping tags come
after... 

Is this design intentional, or is it a bug? Its not a huge deal, but
I'm used to having my web.xml files formatted for better readability and
TC4 doesn't like it. Why should it care if I want to put each
servlet-mapping tag right after its associated servlet tag?

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




RE: Tomcat 4 web.xml vs. Tomcat 3

2002-06-10 Thread Shapira, Yoav

Howdy,
Tomcat 4.x implements the Servlet Specification, v2.3.  See the complete
thing at
http://jcp.org/aboutJava/communityprocess/first/jsr053/index.html

Accordingly, tomcat doesn't determine the DTD for web.xml.  Tomcat just
validates against that DTD.  The v2.3 DTD specifies all servlet tags
must come before any servlet-mapping tags.  So it's the responsibility
of the web.xml owner to migrate it as part of moving from tomcat 3.x to
4.x.  

I hope that answers your question ;)  Have a speedy and easy migration,

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Michael [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 3:08 PM
To: [EMAIL PROTECTED]
Subject: Tomcat 4 web.xml vs. Tomcat 3

I'm seeing some odd behavior since converting from Tomcat 3.x to 4.0...
it seems that 4.0 is extremely picky about the *order* things are in
within WEB.XML.

For example, with Tomcat 3.x I could do

servlet
...
/servlet

servlet-mapping
...
/servlet-mapping

servlet
... another servlet
/servlet

servlet-mapping
...another servlet mapping
/servlet-mapping

etc, etc.

The order of servet/servlet-mapping tags was irrlevevent as long as
everything was correct.

Now with Tomcat 4, it refuses to load a servlet unless *all* servlet
tags come first, then all associated servlet-mapping tags come
after...

Is this design intentional, or is it a bug? Its not a huge deal, but
I'm used to having my web.xml files formatted for better readability
and
TC4 doesn't like it. Why should it care if I want to put each
servlet-mapping tag right after its associated servlet tag?

--
To unsubscribe, e-mail:   mailto:tomcat-user-
[EMAIL PROTECTED]
For additional commands, e-mail: mailto:tomcat-user-
[EMAIL PROTECTED]


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




Re: Please help me improve my question skills (number of tomcat apps)

2002-06-10 Thread Craig R. McClanahan



On Mon, 10 Jun 2002, Arshad Mahmood wrote:

 Date: Mon, 10 Jun 2002 16:49:07 +0100
 From: Arshad Mahmood [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Please help me improve my question skills (number of tomcat
 a pps)

 Hi,

 So the question reduces to:-
 1. What are the extra memory requirements for a virtual host/context?
 2. How much longer does it take to decide on a servlet/jsp to invoke for
 an extra virtual host/context?

 From my (limited) understanding of Tomcat, I would say the answer to both of
 these questions is negligible compared to the memory/overhead of processing
 a typical request. So your question reduces to how many requests can be
 processed by your instance, and that depends very much on your application.
 The distribution of the requests amongst the applications shouldm't matter.

 Can somebody more knowledgeable confirm the extra resource requirements for
 virtual hosts/contexts.


Virtual hosts and webapps are both looked up via Hashtables (Tomcat 3.x)
or HashMaps (Tomcat 4.x), so the cost is indeed very small - so small that
it's basically not worth worrying about for a standalone Tomcat
installation.

When you're using Tomcat behind a web connector, it really depends on how
the connector is implemented -- and someone else will have to answer those
questions; I never use 'em so don't have any idea.

 Regards,
 Arshad


Craig


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




Database Pool of Connections?

2002-06-10 Thread Alejandro Arredondo

Does TOmcat 4 has implemented a database pool
of connections? If it does. Can anybody send me
a working easy example on how to use it?
Thanks in advance

_
Free E-mail ---
http://letodesigns.mail.everyone.net
Letodesigns  Programming Free e-mail
6MB limit
http://letodesigns.8k.com

_
Promote your group and strengthen ties to your members with [EMAIL PROTECTED] by 
Everyone.net  http://www.everyone.net/?btn=tag

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




  1   2   >