Re: Tomcat & MySQL Run On Read-Only Media ..

2002-07-15 Thread Mohammed Omar

The user will install them ,  the man means that the user will run tomcat
and mysql services from the CD .
You did not get what he means .

Thanks

- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 15, 2002 4:06 AM
Subject: RE: Tomcat & MySQL Run On Read-Only Media ..


I would put only static documents on the CD if I were you...

You won't look like professional if you ship a CD containing a JVM, Tomcat &
MySQL to install.

Personally, I would not install it.

Greetings,

André POWROZNIK

-Original Message-
From: Murat Buyukkal ([EMAIL PROTECTED])
[mailto:[EMAIL PROTECTED]]
Sent: 15 July 2002 10:29
To: Tomcat-User@Jakarta. Apache. Org (E-mail)
Subject: Tomcat & MySQL Run On Read-Only Media ..


I have a web application containing Servlets & JSP pages and uses data on
Oracle 9i Server. Data is like a product catalogue. I plan to periodically
distribute this system (to people who do not have enough bandwidth to access
to our LAN) on CDROM media which contains binaries of a JVM, Tomcat Server,
Servlets & JSPs and MySQL Server running with special parameters and data
dumped into MySQL from Oracle. Is there anyone who accomplished this task?

 DISCLAIMER 
"This e-mail and any attachments thereto may contain information
which is confidential and/or protected by intellectual property
rights and are intended for the sole use of the recipient(s) named above.
Any use of the information contained herein (including, but not limited to,
total or partial reproduction, communication or distribution in any form)
by persons other than the designated recipient(s) is prohibited.
If you have received this e-mail in error, please notify the sender either
by telephone or by e-mail and delete the material from any computer.
Thank you for your cooperation."


--
To unsubscribe, e-mail:

For additional commands, e-mail:




--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




Environment Variables !!

2002-06-26 Thread Mohammed Omar

Dear all

I have Redhat 7.2 installed with the latest JDK , and i installed tomcat ,  
but when i run ./startup.sh it gives me :
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program .

I know it is a question about how to set environment variables in RedHat .

I used this command :
set JAVA_HOME=jdk path
export JAVA_HOME

but i still receieve the same message ..  what i can do?

Thanks





Tomcat Performance Counters

2002-06-08 Thread Mohammed Omar

Dear All

I run tomcat 4 under windows 2000 with IIS5.
I run stability test .

Is there a performance counters belongs to tomcat? 
for example , when I install SQL server or some email servers on Windows2000 , I found 
that some performance counters are installed by default .
is there something for tomcat.

Thanks in advance
waiting your reply




default servlet as an entry point

2002-05-30 Thread Mohammed Omar

Dear all

I have a web application under webapps of tomcat 4 , windows2000.
I want the visitors when access my site :

app.mysite.com

i want them to go to a default servlet as i have many servlets .

how i do that?

Thanks in advance




1 IP

2002-05-26 Thread Mohammed Omar

Dear all

If i run tomcat as standalone , How do I set tomcat to accept connections from only 
one specific IP adress?

Thanks in advance 



security resources

2002-05-26 Thread Mohammed Omar

Dear All

Is there any Docs or links includes security checklist for tomcat4 on windows2000 and 
IIS5 ?

Thanks




Re: Too Many Users

2002-05-23 Thread Mohammed Omar

What is the ideal number for it?
and how i know how many processes my sites need to operate without showing
this bad message for the visitors?

Thanks

- Original Message -
From: "peter lin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 5:06 PM
Subject: Re: Too Many Users


>
> change the maxprocessor setting in the server.xml file.
>
>
> peter lin
>
>
> Mohammed Omar wrote:
> >
> > Dear All
> >
> > I get this message when browsing a site under tomcat
> >
> > Too Many Users
> > There are too many connected users. Please try again later
> >
> > I received this message when i was refreshing the site pages very
quickly ,  how i extend the number of concurrent user? or number of running
processes ?!!!
> >
> > Thanks
> >
>
> ------

> > If there is any misunderstanding , please contact me at:
> > Mohammed Omar
> > Harf Information Technology (Cairo)
> > Phone  : (202)2759256  EXT: 320
> > Fax  : (202)2759261
> > Mobile : +20101806319
> > Email: [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 on Windows2000 as a service

2002-05-23 Thread Mohammed Omar

You are welcome :-)

go to :

http://members.ozemail.com.au/~lampante/howto/tomcat/iisnt

It is very good , has the instructions and link to install Jk_nt_service .

Thanks


- Original Message - 
From: "John Niven" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 4:41 PM
Subject: RE: Tomcat on Windows2000 as a service


> > -----Original Message-
> > From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
> > Sent: 23 May 2002 14:32
> > To: Tomcat Users List
> > Subject: Re: Tomcat on Windows2000 as a service
> > 
> > 
> > Thanks for your help
> > I downloaded Jk_nt_service ,  it solved all problems.
> > 
> 
> OK, my turn to ask for _your_ help!  What's jk-nt-service, and where can I
> find it - I've had more than my fair share of problems trying to install
> Tomcat as an NT service...!
> 
> > Thanks
> > 
> 
> Best wishes
> John
> 
>  --
> John Niven
> Please reply through mailing list
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



Too Many Users

2002-05-23 Thread Mohammed Omar

Dear All

I get this message when browsing a site under tomcat

Too Many Users
There are too many connected users. Please try again later


I received this message when i was refreshing the site pages very quickly ,  how i 
extend the number of concurrent user? or number of running processes ?!!!


Thanks


--
If there is any misunderstanding , please contact me at:
Mohammed Omar
Harf Information Technology (Cairo)
Phone  : (202)2759256  EXT: 320
Fax  : (202)2759261
Mobile : +20101806319
Email: [EMAIL PROTECTED]




Re: Tomcat on Windows2000 as a service

2002-05-23 Thread Mohammed Omar

Thanks for your help
I downloaded Jk_nt_service ,  it solved all problems.

Thanks

- Original Message -
From: "John Niven" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 4:24 PM
Subject: RE: Tomcat on Windows2000 as a service


> > -----Original Message-
> > From: Mohammed Omar [mailto:[EMAIL PROTECTED]]
> > Sent: 23 May 2002 13:55
> > To: Tomcat Users List
> > Subject: Re: Tomcat on Windows2000 as a service
> >
> >
> > Check your "%JAVA_HOME%\jre\bin\" directory - you may not
> > have a "classic"
> > > directory in it, you may have "hotspot" directory instead
> > (and I think
> > > there are other possibilities, instead of classic/hotspot?)
> >
> > My Answer :
> > --
> > I have no hotspot nor classic directory in
> > %JAVA_HOME%\jre\bin\ , I have 2 folders called server and
> > client contains the jvm.dll ,  I used the server directory .
> >
>
> OK, I'm still on JDK1.2.2 - not used these but they sound right.  I
suspect
> "server" is the right one - anyone care to coment?
>
> >
> > If that doesn't work, I'd check that "CATALINA_HOME" and
> > "JAVA_HOME" are set
> > > correctly - from a command prompt
> >
> > My Answer :
> > --
> > They are set correctly
>
> OK.
>
> >
> >
> > I found that %CATALINA_HOME%\logs\stderr.log is empty .
> > And the service is exist in the control panel , but can not
> > be started and give a message saying internal error upon
> > restarting it!!!
> >
> > Here it is my command again :
> >
> > C:\Tomcat\jakarta-tomcat-4.0.3\bin>tomcat.exe -install
> > ApacheTomcat "%JAVA_HOME% \jre\bin\client\jvm.dll"
>
> There seems to be a " " [space] between %JAVA_HOME% and \jre on the 2nd
> line...but I'm clutching at straws now.
>
> > -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%J
> > AVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%"
> > -xrs -start org.apach e.catalina.Bootstrap -params start
> > -stop org.apache.catalina.startup.Bootstrap - params stop
> > -out "%CATALINA_HOME%\logs\stderr.log" The service was
> > successfully installed.
>
> One final thing: if you can't get this to work from the command line
there's
> a product ("Service+", I think) that will automate the process - I've not
> used it, but it's been mentioned on this list.
>
> >
> >
> > Any idea
>
> Fast running out, I'm afraid!
>
> Good luck,
> John
>
>  --
> John Niven
> Please reply through mailing list
>
> --
> 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 on Windows2000 as a service

2002-05-23 Thread Mohammed Omar

Check your "%JAVA_HOME%\jre\bin\" directory - you may not have a "classic"
> directory in it, you may have "hotspot" directory instead (and I think there
> are other possibilities, instead of classic/hotspot?)  

My Answer :
--
I have no hotspot nor classic directory in %JAVA_HOME%\jre\bin\ , I have 2 folders 
called server and client contains the jvm.dll ,  I used the server directory .


If that doesn't work, I'd check that "CATALINA_HOME" and "JAVA_HOME" are set
> correctly - from a command prompt

My Answer :
--
They are set correctly


I found that %CATALINA_HOME%\logs\stderr.log is empty .
And the service is exist in the control panel , but can not be started and give a 
message saying internal error upon restarting it!!!

Here it is my command again :

C:\Tomcat\jakarta-tomcat-4.0.3\bin>tomcat.exe -install ApacheTomcat "%JAVA_HOME%
\jre\bin\client\jvm.dll" -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%J
AVA_HOME%\lib\tools.jar" -Dcatalina.home="%CATALINA_HOME%" -xrs -start org.apach
e.catalina.Bootstrap -params start -stop org.apache.catalina.startup.Bootstrap -
params stop -out "%CATALINA_HOME%\logs\stderr.log"
The service was successfully installed.


Any idea

- Original Message - 
From: "John Niven" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 3:43 PM
Subject: RE: Tomcat on Windows2000 as a service


> > -Original Message-
> > From: Mohammed Omar [mailto:[EMAIL PROTECTED]] 
> > Sent: 22 May 2002 12:44
> > To: Tomcat Users List
> > Subject: Re: Tomcat on Windows2000 as a service
> > 
> > 
> > I made that and the service exist now and i can stop and 
> > start it ,  but i see that the stop and restart of the 
> > service has no effect on Tomcat ,  wen i call a servlet from 
> > IIS , it does not run untill I startup tomcat from its 
> > startup command in the bin directory whether the service 
> > started in the control panel or not .
> > 
> > any idea!!
> > 
> 
> Mohammed
> 
> Check your "%JAVA_HOME%\jre\bin\" directory - you may not have a "classic"
> directory in it, you may have "hotspot" directory instead (and I think there
> are other possibilities, instead of classic/hotspot?)  If so, change the
> install line accordingly.
> 
> (Before changing the install script and re-installing the Tomcat service,
> you'll first need to uninstall the service - use this:
> "%CATALINA_HOME%\bin\tomcat.exe" -uninstall "ApacheTomcat"
> )
> 
> If that doesn't work, I'd check that "CATALINA_HOME" and "JAVA_HOME" are set
> correctly - from a command prompt, type:
> echo %CATALINA_HOME%
> (expected response: path to Tomcat)
> 
> echo %JAVA_HOME%
> (expected response: path to JDK)
> 
> One final thing - you are running Tomcat 4+, aren't you?  If you're running
> Tomcat 3 you'll need to replace "CATALINA_HOME" with "TOMCAT_HOME" - and
> there may be other changes required.  Sorry, but the only times I've used
> Tomcat 3 in anger is on Solaris.
> 
> 
> > thanks
> > 
> 
> HTH!
> John
> 
>  --
> John Niven
> Please reply through mailing list
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
> 



Tomcat security Guidelines and Checklist

2002-05-23 Thread Mohammed Omar

Dear All

We are going to install tomact 4 under Windows2000 servers in the production servers .
So what is the security checklist should I follow to secure Tomcat ?

Thanks in Advance

Waiting your reply




Memory Realm

2002-05-23 Thread Mohammed Omar

Hi all

Can any one send to me a sample portion of server.xml that configure memory realm for 
a context and the associated tomcat-users.xml ?

Thanks in advance



Re: startup and shutdown on Windows

2002-05-23 Thread Mohammed Omar

Thanks Chris for your pointer .
it works well now ,  it was shutdown :)))

Thanks

- Original Message -
From: "Chris Campbell" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Thursday, May 23, 2002 11:30 AM
Subject: RE: startup and shutdown on Windows


>
> > There is no process running on 8080 nor process running on
> > the shutdown port .
>
> then it would seem that the server is already shutdown... what error
message
> do you get when you call startup?
>
> --
> To unsubscribe, e-mail:

> For additional commands, e-mail:

>


--
To unsubscribe, e-mail:   
For additional commands, e-mail: 




startup and shutdown on Windows

2002-05-23 Thread Mohammed Omar

Dear all 
I try to shutdown or restart the tomcat but no way , it give me the following error .

There is no process running on 8080 nor process running on the shutdown port .

I feel that this problem will be solved if i restart my machine ,  but i dont like to 
try this solution now.

Any idea

Thanks

C:\Tomcat\jakarta-tomcat-4.0.3\bin>shutdown
Using CATALINA_BASE:   C:\Tomcat\jakarta-tomcat-4.0.3
Using CATALINA_HOME:   C:\Tomcat\jakarta-tomcat-4.0.3
Using CATALINA_TMPDIR: C:\Tomcat\jakarta-tomcat-4.0.3\temp
Using JAVA_HOME:   c:\j2sdk1.4.0
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.(Socket.java:290)
at java.net.Socket.(Socket.java:118)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
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)
C:\Tomcat\jakarta-tomcat-4.0.3\bin>shutdown
Using CATALINA_BASE:   C:\Tomcat\jakarta-tomcat-4.0.3
Using CATALINA_HOME:   C:\Tomcat\jakarta-tomcat-4.0.3
Using CATALINA_TMPDIR: C:\Tomcat\jakarta-tomcat-4.0.3\temp
Using JAVA_HOME:   c:\j2sdk1.4.0
Catalina.stop: java.net.ConnectException: Connection refused: connect
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
at java.net.Socket.connect(Socket.java:425)
at java.net.Socket.connect(Socket.java:375)
at java.net.Socket.(Socket.java:290)
at java.net.Socket.(Socket.java:118)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:831)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:683)
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)
C:\Tomcat\jakarta-tomcat-4.0.3\bin>



WAR and server.xml

2002-05-22 Thread Mohammed Omar

Dear All
I have a war file , and tomcat4 deployed it succefully after restarting tomcat , and 
the application works well ,  but i dont know why it is working well ?
why should not I write a context line for it in server.xml??!!
how it works without writing a context line in server.xml?!!

Thanks

--
If there is any misunderstanding , please contact me at:
Mohammed Omar
Harf Information Technology (Cairo)
Phone  : (202)2759256  EXT: 320
Fax  : (202)2759261
Mobile : +20101806319
Email: [EMAIL PROTECTED]




Mounting contexts to be the root of the IIS site

2002-05-22 Thread Mohammed Omar

Dear All

I run tomcat4  with IIS , I want to mount a tomcat context to be access from the root 
of the IIS site

Example :

I want to write http://sitename/
i want this to run a tomcat context .

I can mount only contexts to be as a virtual directory in IIS

How I mount it to be the root of the IIS website??

Thanks




Re: Tomcat on Windows2000 as a service

2002-05-22 Thread Mohammed Omar

I made that and the service exist now and i can stop and start it ,  but i
see that the stop and restart of the service has no effect on Tomcat ,  wen
i call a servlet from IIS , it does not run untill I startup tomcat from its
startup command in the bin directory whether the service started in the
control panel or not .

any idea!!

thanks

- Original Message -
From: "John Niven" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Wednesday, May 22, 2002 12:32 PM
Subject: RE: Tomcat on Windows2000 as a service


> > -----Original Message-
> > From: Mohammed Omar [mailto:[EMAIL PROTECTED]]
> > Sent: 22 May 2002 10:15
> > To: Tomcat Users List
> > Subject: Re: Tomcat on Windows2000 as a service
> >
> >
> > Where I write that :
> >
> >
> > "%CATALINA_HOME%\bin\tomcat.exe" -install ApacheTomcat
> > "%JAVA_HOME%\jre\bin\classic\jvm.dll"
> >
> > -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM
> > E%\lib\tools.
> > j
> >  ar" -Dcatalina.home="%CATALINA_HOME%" -Xrs -start
> > org.apache.catalina.startup.Bootstrap -params start -stop
> > org.apache.catalina.startup.Bootstrap -params stop -out
> > "%CATALINA_HOME%\logs\stderr.log"
> >
> > Thanks
> >
> >
>
> Mohammed
>
> From a command prompt/console.  Click "Start", "Run", then type "cmd".  At
> the command prompt that will appear, type the long string from my earlier
> posting.
>
> Good luck!
>
> John
>
>  --
> John Niven
> Please reply through mailing list
>
> --
> 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 on Windows2000 as a service

2002-05-22 Thread Mohammed Omar

Where I write that :


"%CATALINA_HOME%\bin\tomcat.exe" -install ApacheTomcat
 "%JAVA_HOME%\jre\bin\classic\jvm.dll"
 -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools.
j
 ar" -Dcatalina.home="%CATALINA_HOME%" -Xrs -start
 org.apache.catalina.startup.Bootstrap -params start -stop
 org.apache.catalina.startup.Bootstrap -params stop -out
 "%CATALINA_HOME%\logs\stderr.log"

Thanks


- Original Message -
From: "John Niven" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Tuesday, May 21, 2002 3:03 PM
Subject: RE: Tomcat on Windows2000 as a service


> > -Original Message-
> > From: Mohammed Omar [mailto:[EMAIL PROTECTED]]
> > Sent: 21 May 2002 12:19
> > To: [EMAIL PROTECTED]
> > Subject: Tomcat on Windows2000 as a service
> >
> >
> > Dear all
> >
> > I installed tomcat v4 on windows 2000 server from its zip
> > file , and i started it by the startup command in the bin
> > directory.  how i enable this installation to be a service ?
> >
> > thanks in advance
> >
> > waiting your reply
> >
> >
>
> Mohammed
>
> This worked for me, YMMV:
>
> "%CATALINA_HOME%\bin\tomcat.exe" -install ApacheTomcat
> "%JAVA_HOME%\jre\bin\classic\jvm.dll"
> -Djava.class.path="%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\tools
.j
> ar" -Dcatalina.home="%CATALINA_HOME%" -Xrs -start
> org.apache.catalina.startup.Bootstrap -params start -stop
> org.apache.catalina.startup.Bootstrap -params stop -out
> "%CATALINA_HOME%\logs\stderr.log"
>
> You need to enter this all as one line.  You may also need to change the
> \classic\jvm.dll to \hotspot\jvm.dll - check the mailing list archive for
> the exact details.
>
> HTH
> John
>
>  --
> John Niven
> Please reply through mailing list
>
> --
> 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 on Windows2000 as a service

2002-05-21 Thread Mohammed Omar

Dear all

I installed tomcat v4 on windows 2000 server from its zip file , and i started it by 
the startup command in the bin directory.  how i enable this installation to be a 
service ?

thanks in advance

waiting your reply