RE: RNIF + Tomcat + Axis

2003-10-15 Thread Kenneth Westelinck
Howdy,
I personally don't, but that'd be a cool project ;)  If you go down the
path and reach something interesting, please feel free to share your
experience with the list ;)
Well is this combination the best way to go? From what I've read so far RNIF 
is a like ebXML, so I think I can use Axis to handle incoming RosettaNet 
messages right?

_
Op zoek naar makkelijk recept? http://www.msn.be/culinair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RNIF + Tomcat + Axis

2003-10-15 Thread Kenneth Westelinck
Hi all,

Maybe this is a little off-topic, but here goes anyway. Does anyone in the 
list have experience with using Tomcat (together with Axis or something 
else) to implement the Rosetta Net Implementation Framework?

regards,

Kenneth

_
Ken je het magazine Glamo al? http://www.msn.be/glamo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: ssl client authentication drives me crazy

2003-10-14 Thread Kenneth Westelinck
This article solved everything for me:
http://ws.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html
Follow it to the letter and you will get it to work. Trust me.


From: "Twan Munster" <[EMAIL PROTECTED]>
Reply-To: "Twan Munster" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: ssl client authentication drives me crazy
Date: Tue, 14 Oct 2003 09:33:26 +0200
Hello,

With apache client authentication was so simple. Now my boss wants to use 
it for smartcard login and I have to use tomcat with cocoon. Thats why I 
need the client authentication with ssl to work. But I just can't fix it 
can anyone please help me. All examples wont work I always get errors like  
Unsupported SSL v2.0 ClientHello,  no cipher suites in common and handshake 
error

Can somebody please tell me how to use keytool. I've got the following 
certificates and I use them in apache like this:

1 server.crt = server certificate
2 ca.crt = chain certificate
3 ca-bundle.crt = lots of certificates for client authentication
4 server.key = i really don't know how to get this one in keytool
Thnx

Twan Munster
_
Chatten met je online vrienden via MSN Messenger. http://messenger.msn.be
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4 + ssl + client authentication

2003-10-09 Thread Kenneth Westelinck
Client cert verification is done against the TrustStore, not the KeyStore.
Tomcat 5 has some improvements for this.  Tomcat 4 is still a bit limited.
> I have no idea what is goin wrong. Can someone tell me how to make this
> work?
>
Assuming that you don't want to just import the signing cert into cacerts
(see the JSSE docs for how to do this), then you need to have something
like:
CATALINA_OPTS="-Djavax.net.ssl.trustStore=/path/to/my/truststore 
-Djavax.net
.ssl.trustStorePassword=myTrustStorePassword"

At the moment, your TrustStore file has to be in the same format as your
KeyStore file (a nasty limitation that I haven't gotten around to fixing 
:).
Yep, done that. Yesterday after sending this mail I was able to get it to 
work authenticating using the imported client key in Mozilla and putting the 
signed client key in this truststore. So it is working now using Mozilla 
(nice).
So now I found out there is a keyStore property as well (stupid me), and I 
was able to authenticate using my Java client against the server (nice 
again). If someone is interested in the code, this is the client part (just 
for testing):

System.setProperty("javax.net.ssl.trustStore", "f:/client.keystore");
   System.setProperty("javax.net.ssl.keyStore", "f:/client.keystore");
   System.setProperty("javax.net.ssl.keyStorePassword","changeit");
HttpClient httpclient = new HttpClient();
Protocol myhttps =
new Protocol(
"https",
new StrictSSLProtocolSocketFactory(false),
8443);
httpclient.getHostConfiguration().setHost("myhost", 8443, myhttps);
GetMethod httpget = new GetMethod("/");
httpclient.executeMethod(httpget);
with StrictSSLProtocolSocketFactory the same code as the sample code you can 
download from the Apache/HTTPClient site. One question though ... suppose 
the client keyStore has different keys, how can one tell to the code to use 
key A or key B (for the moment there's only one key in this keyStore). Using 
mozilla it is simple, he just asks which key to use.

Thank you for your help.

regards,

Kenneth

_
Mis onze Back To School special niet! http://www.msn.be/backtoschool
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Tomcat 4 + ssl + client authentication

2003-10-09 Thread Kenneth Westelinck
Hi all,

I've been searching the internet for 2 days now and still haven't found a 
solution for my problem. I am trying to set up a Tomcat 4 server running in 
HTTPS mode, contacted by a client written in Java. The client is using 
HTTPClient from apache. I have done everything the document at 
http://ws.apache.org/soap/docs/install/FAQ_Tomcat_SOAP_SSL.html describes. 
If I disable client authentication in the tomcat config, the client is able 
to comunicate with the server. If I enable the authentication the client 
aborts with the following exception:
java.net.SocketException: Software caused connection abort: JVM_recv in 
socket input stream read
	at java.net.SocketInputStream.socketRead0(Native Method)
...

I enabled all possible debugging on the Tomcat server and this is part of 
what I found in the console:
Thread-10, WRITE:  SSL v3.1 Handshake, length = 625
Thread-10, READ:  SSL v3.1 Handshake, length = 141
*** Certificate chain
***
Thread-10, SEND SSL v3.1 ALERT:  fatal, description = bad_certificate
Thread-10, WRITE:  SSL v3.1 Alert, length = 2

The client's certificate cannot be bad. It was signed with the server's key 
and it's in the server's keystore.

I have no idea what is goin wrong. Can someone tell me how to make this 
work?

MTIA

regards,

Kenneth

_
Op zoek naar makkelijk recept? http://www.msn.be/culinair
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: meta search

2001-08-07 Thread Kenneth Westelinck

Arik,

Maybe you can use HTDig, from
http://www.htdig.org/


hope this helps,

Kenneth



>From: "Arik Levin" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: meta search
>Date: Tue, 7 Aug 2001 13:35:26 +0200
>
>
>   I'm looking for an open source Meta Search.
>
>   If anybody out there know a good one please get back to me...
>
>
>   Thanks...
>   Arik
>


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




RE: IIS and Tomcat

2001-06-05 Thread Kenneth Westelinck

Hi,

If you want to stop tomcat acting as a standalone web server just delete 
these lines in server.xml:




  


This works for 3.2.1 and 3.2.2 . Don't know about other versions though.

hope this helps,

Kenneth Westelinck


>From: "Chris Faulkner" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: IIS and Tomcat
>Date: Tue, 5 Jun 2001 07:13:03 +0100
>
>Hi
>
>Thanks, this pretty much confirms what I thought. The crucial question,
>though, is whether I can have Tomcat functioning in harness with IIS to
>serve my servlets but not have it operation as a web server. When its
>running in support of IIS, I also have the Tomcat web server running on 
>port
>8080. Maybe I've overdone my install !
>
>The other bit I'm stuck on is how to install a jar and access the classes 
>in
>it.
>
>Thanks very much
>
>Chris
>
> > -Original Message-
> > From: Todd Sussman [mailto:[EMAIL PROTECTED]]
> > Sent: 06 June 2001 07:36
> > To: [EMAIL PROTECTED]
> > Subject: RE: IIS and Tomcat
> >
> >
> > The messages show you are running IIS as the webserver and it is
> > redirecting the servlets to tomcat.  When you shutdown tomcat, IIS can
> > no longer redirect the servlets to tomcat and therefor you get an error.
> > I have never set Tomcat as a stand alone server, but it can be done.
> >
> > Todd
> >
> > -Original Message-
> > From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
> > Sent: Tuesday, June 05, 2001 12:50 AM
> > To: [EMAIL PROTECTED]
> > Subject: IIS and Tomcat
> >
> >
> > Hi
> >
> > I am just trying to get my servlets tested on IIS (windows 2000) and
> > Tomcat.
> > I have done all the set-up steps, the isapi_redirect stuff seems to be
> > functioning. I have IIS on W2K with Tomcat 3.2.2 and JDK 1.3.0_02. IIS
> > is on
> > the usual port 80.
> >
> > If I start up "tomcat run", tomcat starts and initialises everything
> > (IIS is
> > also running at this time)
> >
> > http://localhost:8080/examples/servlet/SnoopServlet
> >
> > I can see that its coming from Tomcat.
> >
> > If I hit
> >
> > http://localhost/examples/servlet/SnoopServlet
> >
> > This also works and it tells me that the port is 80 and the server is
> > Tomcat. However, I know that the port 80 is being served by IIS and I
> > can
> > see the request in the IIS logs, being redirected to
> > /jakarta/isapi_redirect.dll. Why is it telling me that the web server is
> > Tomcat ?
> >
> > So it all looks good, except that if I do a "tomcat stop", then the
> > servlet
> > requests to IIS start to fail. Is this expected ? If so, can I run
> > tomcat
> > without opening up that 8080 port ? Maybe I'm a bit confused  but I'd
> > like
> > to have tomcat managing my servlets without essentially having a second
> > web
> > server running.
> >
> > Secondly, how do I get a jar loaded and get access to the classes within
> > that jar ? Where do I put it and how can classes in it be aliased ?
> >
> > Thirdly, and probably related, how can I use the  tag in my
> > .shtml
> > web pages. I was using Apache JSSI previously.
> >
> > Thanks very much
> >
> >
> > Chris Faulkner
> >
> >
> >
> >
>

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




Re: I am writing detailed documentation on virtual hosting...

2001-04-25 Thread Kenneth Westelinck

Scott,


I'm very interested in this document and I would like to read it. Could you 
send a URL to this mailing list once you've finished a first version.


regards,

Kenneth Westelinck

>From: Scott Tatum <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: I am writing detailed documentation on virtual hosting...
>Date: Wed, 25 Apr 2001 11:20:54 -0500
>
>It seems like half the questions posted these days to the mailing list
>have something to do with virtual hosting. The existing documentation
>covers most of the bases, but it is spread across several documents and
>contains outdated information that is confusing (e.g. mod_jserv).
>
>Therefore, I am in the process of writing detailed documentation on
>setting up virtual hosting. The documentation right now has a few
>limitations:
>
>1. Only Tomcat 3.2.x will be discussed. There is no production version
>of Tomcat 4, and everyone using Tomcat 3 should be using the latest
>version.
>2. Only mod_jk will be discussed. Everyone who is setting up Tomcat now
>should be using mod_jk - I see no reason to discuss mod_jserv.
>3. Setup is only for a unix environment. I don't currently have any
>experience setting up Tomcat in a Windows environment, though setting up
>Tomcat standalone should be almost identical.
>4. Only webserver integration discussed is with Apache. This is the only
>webserver I have experience integrating Tomcat with. I would do some
>testing with IIS but I don't have access to it. If someone else would be
>willing to provide similar documentation for IIS and/or iPlanet
>integration, that would be great!
>
>Below is an initial outline for the document. The documentation will of
>course be in HTML, and I will try to mimic the formatting style of the
>existing documentation. I welcome suggestions for
>changes/additions/enhancements to this outline - I came up with it very
>quickly. Once I get some feedback from this I will begin writing the
>documentation, hopefully within in the next couple of days.
>
>Virtual Hosting and Tomcat
>
>1. Introduction
>2. Virtual Hosting Options
>2.1 Tomcat Standalone
>2.2 Tomcat with Apache
>2.2.1 Apache + Single Tomcat Instance
>2.2.2 Apache + Multiple Tomcat Instances
>2.4 AJP12 vs. AJP13
>2.5 General Do's and Dont's
>3. Configuring Tomcat Standalone
>3.1 Configuration Files Involved
>3.2 Modifying server.xml
>4. Configuring Tomcat + Single Tomcat Instance
>4.1 Configuration Files Involved
>4.2 Configuring server.xml
>4.3 Configuring workers.properties
>4.4 Configuring uriworkermap.properties
>4.5 Configuring mod_jk.conf
>4.6 Testing and Troubleshooting
>5. Configuring Tomcat + Multiple Tomcat Instances
>4.1 Configuration Files Involved
>4.2 Creating and Configuring Separate server.xml Files
>4.3 Configuring workers.properties
>4.4 Configuring uriworkermap.properties
>4.5 Configuring mod_jk.conf
>4.6 Testing and Troubleshooting
>
>-Scott
>
>--
>Scott Tatum | [EMAIL PROTECTED]
>Senior Applications Developer, Special Projects
>WorldCom | http://www.wcom.com/
>
>

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




Re: Tomcat default

2001-04-23 Thread Kenneth Westelinck

Hi,

Check tomcat-users.xml file in /conf .


regards,

Kenenth Westelinck


>From: yuzz <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
>Subject: Tomcat default
>Date: Tue, 24 Apr 2001 13:46:04 +0800
>
>hello,
>anybody knows what is tomcat admin default username and password??
>
>--
>yuzz
>System Engineer
>EmasOnline Dot Com Sdn. Bhd.
>http://www.EmasOnline.com
>[EMAIL PROTECTED]
>Tel No: 606+ 3345666 ext 2174
>Fax No: 606+ 3372233
>#Slackware live...
>
>
>

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




Re: Memory buildup on Tomcat JVM

2001-04-23 Thread Kenneth Westelinck

Hi,

What VM are you using? We had a similar problem when running our processes 
on 1.3 . When running them on 1.2.2 the problem seemed to be solved. Maybe 
you should try a different VM and check if your problem persists.

hope this helps,

Kenneth Westelinck


>From: Shravan Shashikant <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Memory buildup on Tomcat JVM
>Date: Tue, 24 Apr 2001 00:26:01 -0500 (CDT)
>
>Hi there,
>   Was wondering whether you guys had a similar problem as I have been
>having.A servlet code has hashtables and vectors in it and I do alot of
>assignment for these vectors/hashtables in the code..around 1000 vector
>elemtns and 100 hs elemnts.i clean it up after execution and set them to
>null,but my memory for the java vm starts around 9k when the code starts
>executing and at the end of its at around 24K(chked it out in the task
>manager)..basically it doesnt seem to cause much trouble but was wondering
>what the problem is and if it can be rectified..
>Thanks and Regards,
>Shravan
>

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




Re: Changing DocumentRoot

2001-04-23 Thread Kenneth Westelinck

Hi,


Adding this to server.xml should solve your problem:




hope this helps,

Kenneth Westelinck

>From: Christoph Kukulies <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Changing DocumentRoot
>Date: Mon, 23 Apr 2001 12:49:18 +0200 (CEST)
>
>After having noticed that embedded jsp statements *could* work
>with my configuration where apache was serving http requests
>while tomcat was only doing the servlets I want to switch to tomcat
>as the sole webserver. At least here in a small intranet environment
>I think I could afford. Don't know if tomcat can sustain heavy
>load in Internet environment though and if it's fast enough
>compared to apache.
>
>Anyway, I figured out that I only had to change the port value of the
>HttpConnection Handler from 8080 to 80.
>
>But how can I change the DocumentRoot to point to /usr/locaol/www/data
>(where my apache server had it's root) while maintaining the
>servlets under $TOMCAT_HOME/webapps?
>
>Simply creating a symbolic link in the filesystem of the server
>wouldn't work, would it?
>
>
>--
>Chris Christoph P. U. Kukulies [EMAIL PROTECTED]
>

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




RE: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm sorry, I forgot to mention the URL (my mistake :-). It's on 
tomcat.mslinn.com .


regards,

Kenneth Westelinck


>From: Georges Boutros <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: Good book
>Date: Thu, 12 Apr 2001 11:29:07 -0400
>
>what is this web site
>do you have the address
>
>-Original Message-
>From: Kenneth Westelinck [mailto:[EMAIL PROTECTED]]
>Sent: Thursday, April 12, 2001 11:33 AM
>To: [EMAIL PROTECTED]
>Subject: Re: Good book
>
>
>Hi,
>
>I'm not sure if there's a good book yet about Tomcat. I think some dudes on
>this mailing list are working on that. There is however a good website 
>which
>
>is being updated frequently and describes everything you need to administer
>a Tomcat web site.
>
>
>hope this helps.
>
>Kenneth Westelinck
>
>
> >From: <[EMAIL PROTECTED]>
> >Reply-To: [EMAIL PROTECTED]
> >To: [EMAIL PROTECTED]
> >Subject: Good book
> >Date: Thu, 12 Apr 01 11:08:00 EDT
> >
> >Hi,
> >
> >  Being a newbie to TOMCAT and Java.  Is there a good book or some other
> >type of reading material for TOMCAT.  I work as a system administrator 
>and
> >will not be developing JAVA servlet applications.  But, I do need to
> >understand the ins and outs of TOMCAT for installation, configurations 
>and
> >security.  I don't understand the information in the various files, like
> >server.xml, web.xml, etc and their releationships.
> >
> >Dave
> >
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

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




Re: Good book

2001-04-12 Thread Kenneth Westelinck

Hi,

I'm not sure if there's a good book yet about Tomcat. I think some dudes on 
this mailing list are working on that. There is however a good website which 
is being updated frequently and describes everything you need to administer 
a Tomcat web site.


hope this helps.

Kenneth Westelinck


>From: <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Good book
>Date: Thu, 12 Apr 01 11:08:00 EDT
>
>Hi,
>
>  Being a newbie to TOMCAT and Java.  Is there a good book or some other 
>type of reading material for TOMCAT.  I work as a system administrator and 
>will not be developing JAVA servlet applications.  But, I do need to 
>understand the ins and outs of TOMCAT for installation, configurations and 
>security.  I don't understand the information in the various files, like 
>server.xml, web.xml, etc and their releationships.
>
>Dave
>

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




Re: classpath question

2001-04-11 Thread Kenneth Westelinck

No.

>From: Chris Bailey <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: classpath question
>Date: 11 Apr 2001 11:00:00 -0700
>
>[System: Linux, Tomcat 3.2.1, Apache 1.3.19, mod_jk]
>
>I have a web app that uses several jar files.  I have these in a lib
>directory that has a symlink in my WEB-INF dir.  However, they don't
>seem to get picked up.  It only seems to work if I put them in
>TOMCAT_HOME/lib.  Do I need to do some other configuration?
>
>--
>Chris Bailey[EMAIL PROTECTED]
>Wego Systemshttp://www.wego.com
>

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




Re: /examples/servlet

2001-04-09 Thread Kenneth Westelinck

Hi,

If you're trying to make the examples work with apache just include the 
tomcat-apache.conf file in httpd.conf . This always works for me.

Hope this helps.


regards,

Kenneth Westelinck


>From: Kamesh J <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: /examples/servlet
>Date: Tue, 10 Apr 2001 12:45:17 +0530
>
>when the request is coming for URL
>http://localhost:8080/examples/servlet/HelloWorldExample,Tomcat responds
>without any problem.
>But when the request is coming for URL
>http://localhost/examples/servlet/HelloWorldExample apache is taking charge
>and gives file not found error.
>I have ApJservMount /examples/servlet /examples in tomcat-apache.conf file
>and including it in httpd.conf file
>
>I have RHL6.2,Tomcat3.2.1,apache 1.3.12
>waiting eagerly for ur reply
>kamesh jayachandran
>
>

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




Re: Urgent help

2001-04-09 Thread Kenneth Westelinck

Hi,

I don't think you can use Apache as a real FTP server. You can, of course, 
download and upload stuff to your server via HTTP.

If you want to us a real FTP server it depends on your OS which server to 
use. If you're using a UNIX like operating system the best choice (I think) 
is to use wu-ftp. You can download this server from www.wuftpd.org . If 
you're using Windows you can search www.download.com for an FTP server to do 
the trick.

Hope this helps.

regards,

Kenneth Westelinck


>From: "Suresh Krishna M (RBIN/DBA-JOT)" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Urgent help
>Date: Tue, 10 Apr 2001 05:05:44 +0200
>
>hello all,
> my application uses the apache server and tomcat.my need is 
>that
>i should be able to use the FTP server on the apache server. please guide 
>me
>through if apache can support(or act as both FTP and HTTP server).please
>give the relavant info if u have.
>thanx in advance
>
>
>
>

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




Re: DirectoryIndex -> /servlet/MyServlet

2001-04-08 Thread Kenneth Westelinck

Hi,

You could place an index.html page with the following content in the htdocs 
directory of apache:


   
  http://www.mydomain.com/servlet/MyServlet">
   



regards,

Kenneth Westelinck


>From: Christian Bjørnbak <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: DirectoryIndex -> /servlet/MyServlet
>Date: Mon, 9 Apr 2001 08:09:44 +0200
>
>Hi
>
>How do I setup Apache to use /servlet/MyServlet as DirectoryIndex?
>
>Let's say I have the following url: http://www.mydomain.com
>
>I would like to get it translated it to
>http://www.mydomain.com/servlet/MyServlet
>
>/Christian Bjørnbak

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




Re: WinME installation tip

2001-04-03 Thread Kenneth Westelinck

Hi,


There's another way to do this, use this command to extend your environment 
space:

c:\ COMMAND.COM /E:4096 /P


regards,

Kenneth Westelinck




>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: WinME installation tip
>Date: Tue, 3 Apr 2001 00:56:26 -0700
>
>(Forgive me for trying tomcat on WinME -- I promise not to try to make this
>a production environment!)
>
>FWIW, I kept getting errors, especially Out of Environment Space errors,
>until I renamed my TOMCAT_HOME directory to "\tc". After this change,
>bin\startup worked magically.

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




Re: Tomacat

2001-03-30 Thread Kenneth Westelinck

Hi,


I think this is enough:

SET PATH=%PATH%;C:\DMI\WIN32\BIN;C:\JDK1.3\bin;C:\jdk1.3\lib
SET TOMCAT_HOME=C:\jakarta-tomcat-3.2.1
SET JAVA_HOME=C:\jdk1.3

Instead of what you've written.


hope it helps,

Kenneth Westelinck

>From: "Sonia Sh" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Tomcat-User@Jakarta. Ap" <[EMAIL PROTECTED]>
>CC: <[EMAIL PROTECTED]>
>Subject: Tomacat
>Date: Fri, 30 Mar 2001 16:27:57 +0100
>
>Hi
>Following your suggestion I concentrated on Tomcat alone.  Now I've 
>unzipped the files in
>C:\jakarta-tomcat-3.2.1 directory.  JDK is installed in C:\JDK1.3
>I've set the following in Autoexec.bat...
>
>SET PATH=%PATH%;C:\DMI\WIN32\BIN;C:\JDK1.3\bin;C:\jdk1.3\lib;
>set 
>ClassPath=%ClassPath%;C:\jakarta-tomcat-3.2.1\bin;c:\jakarta-tomcat-3.2.1\lib;C:\jdk1.3\lib
>set ClassPath=%ClassPath%;%TOMCAT_HOME%/classes
>set TOMCAT_HOME=C:\jakarta-tomcat-3.2.1\src\org\apache\tomcat;
>set JAVA_HOME=C:\jdk1.3;
>
>Now when I try to run startup it says bad command or file name.
>Please help me I'm completely tired of this thing by now.
>Regards and Thanks
>Sonia

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




Re: Desperate with java.lang.VerifyError

2001-03-26 Thread Kenneth Westelinck

Hi,

I think I had this error too. It was due to 2 classes with the same name, 
but different version, in the classpath.


hope this helps,

Kenneth Westelinck

>From: [EMAIL PROTECTED]
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Desperate with   java.lang.VerifyError
>Date: Tue, 27 Mar 2001 07:27:15 +0100
>
>  Hi everybody.
>
>  I am getting all the time a very estrange error that is driven me mad...
>
>  Just after call a Servlet I get the error:
>
>
>Error: 500
>Location: /sharewatch/ShareWatch
>Internal Servlet Error:
>
>java.lang.VerifyError: (class: com/saadian/sharewatch/utils/Screen, method:
>showPage signature:
>(Ljava/util/Hashtable;Ljava/lang/String;Ljava/io/PrintWriter;Ljava/util/Prop
>erties;)V) Incompatible object argument for function call
> at 
>com.saadian.sharewatch.userHandlers.Login.processRequest(Login.java:83)
> at ShareWatch.doPost(ShareWatch.java:88)
> at ShareWatch.doGet(ShareWatch.java:39)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at 
>org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
> at org.apache.tomcat.core.Handler.service(Handler.java:286)
> at 
>org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
>org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
>7)
> at 
>org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
> at
>org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
>onnectionHandler.java:210)
> at
>org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
> at
>org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
> at java.lang.Thread.run(Thread.java:484)
>
>The showPage method is defined as:
> public static void showPage(Hashtable wmHash,String 
>pageName,PrintWriter
>out,Properties p)
>
>And the code in the line Login.java:83 is
>   Hashtable wmTable = new Hashtable();
>   wmTable.put("message","Login incorrect: Try again.");
>   try {
> Properties prop = ShareLoader.getInstance().getProperties();
> PrintWriter pw = res.getWriter();
> Screen.showPage(wmTable,"logon",pw,prop);
>   } catch (IOException e){
> cat.error("Displaying the login page:",e);
>   }
>
>
>  It works if I execute the code directly from JBuilder, but from
>  outside I get always this error.
>
>   I´m using Tomcat 3.2.? (the last stable version) and JDK 1.3.2,
>   compiling with JBuilder 4 Fundation and directly with an Ant
>   build.xml,   I tried as well with JDK 1.2.2_07 with the same result.
>
>
>   Knows anybody what is happen?
>
>   Knows anybody how increase the verbosity of the VM for know more
>   about the error message?
>
>   Exists any tool that checks the bytecode?
>
>
>   Anyway, thanks for your help.
>
>   JD Evora.
>
>

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




Re: Problems while configuring Apache-Tomcat on Linux

2001-03-26 Thread Kenneth Westelinck

Hi,

Maybe you should get the source of the module and compile it yourself.


regards,

Kenneth Westelinck

>From: Kavita Jotwani <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: Problems while configuring Apache-Tomcat on Linux
>Date: Tue, 27 Mar 2001 10:45:23 +0530
>
>For configuring Apache-Tomcat to work together on Linux, I downloaded the
>file named mod_jserv_tomcat.so from the www.jakarta.apache.org site and
>placed it in the /usr/local/apache/libexec/ directory. The
>tomcat-apache.conf that was generated on starting tomcat was also renamed 
>to
>tomcat.conf and the same was included in the apache's httpd.conf. I had to
>update this tomcat.conf file to change the first line to
>
>"LoadModule jserv_module libexec/mod_jserv_tomcat.so"
>
>instead of
>
>"LoadModule jserv_module libexec/mod_jserv.so"
>
>On restarting tomcat, it works fine. When we restart Apache, it gives the
>following error -
>
>[root@linuxwd libexec]# /usr/local/apache/bin/apachectl start
>Syntax error on line 1021 of /usr/local/apache/conf/httpd.conf:
>API module structure `jserv_module' in file
>/usr/local/apache/libexec/mod_jserv_tomcat.so is
>garbled - perhaps this is not an Apache module DSO?
>/usr/local/apache/bin/apachectl start: httpd could not be started
>
>
>Can anybody provide assistance in the same? Also, the same thing works fine
>for NT. I have tried the same with mod_jserv.dll on NT. It is working fine.
>
>Thanks and regards
>Kavita

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




Re: chart in jsp

2001-03-26 Thread Kenneth Westelinck

Hi,


Maybe you should use an applet.


regards,

Kenneth Westelinck

>From: Ludovic Maitre <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: chart in jsp
>Date: Mon, 26 Mar 2001 14:34:46 +0200
>
>Altuð Altýntaþ (Koç.Net) wrote:
> >
> > are there  any way to draw a dynamic chart in jsp ?
> >
> > any source  or idea ?
> >
> > thanks ..
> >
> > Altug
>
>Perhaps that you can generate an SVG image (cf www.w3.org) from your
>data but it's more easy with XML than with JSP.
>And your public must have a SVG plugin on their browser.
>
>Regards,
>
>--
>  [EMAIL PROTECTED]
>
>  INRIA - 2004 route des lucioles - BP 93Tel: (33/0) 4 92 38 50 41
>  06902   SOPHIA-ANTIPOLIS cedex (France)Fax: (33/0) 4 92 38 76 02

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




Re: IOException in server

2001-03-26 Thread Kenneth Westelinck

Hi,

That's right. How to do this is described in detail in the documentation 
I've mentioned before.


regards,

Kenneth Westelinck

>From: "Rafal Maczewski" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: IOException in server
>Date: Mon, 26 Mar 2001 11:41:30 +0200
>
>Hi,
>
>Maybe you have apache compiled without DSO (Dynamic Shared Object) support.
>In such case you are not able to load the modules dynamically using
>LoadModule directive.
>Try running the
>httpd -l
>this should show you the list of compiled-in modules. If you have
>mod_jserv.c in the list than you just have to remove the LoadModule from 
>the
>tomcat-apache.conf and your apache should start.
>If you don't have mod_jserv.c compiled in then you have to recompile apache
>and either include DSO support or compile mod_jserv.c statically.
>Having the mod_jserv.c compiled statically is somewhat annoying because you
>have to remove the LoadModule directive every time you restart tomcat.
>
>Hope this helps,
>
>Rafal
>
>
>- Original Message -
>From: "Tonny Liu" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, March 26, 2001 11:31 AM
>Subject: Re: IOException in server
>
>
> > Hi,I'm really confused :(
> > I've done what you told me and read the documents carefully, but I can't
>get out of it.
> > It looks like that apache can't execute "LoadMoudle", but what cause it?
> > I'm not clear about this error:
> > Invalid command 'LoadModule', perhaps mis-spelled or defined by a module
>not included in the server configuration
> >
> > I'm trying, and I posted this problem here, hoping your help at your
>convenience.
> >
> > Regards,
> >
> > Tonny.
> >
> > - Original Message -
> > From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Monday, March 26, 2001 3:56 PM
> > Subject: Re: IOException in server
> >
> >
> > > Hi,
> > >
> > > mod_jserv.so is an old module to link apache with Tomcat. You should
>copy
> > > this to your libexec directory (as you already did). Next you should
>start
> > > Tomcat and check if the tomcat-apache.conf is created in
> > > /usr/local/jakarta-tomcat/conf . Now check the contents of this file.
>Near
> > > the beginning you should find something like:
> > > LoadModule jserv_module libexec/mod_jserv.so . Next include this file 
>in
> > > Apache's httpd.conf and start Apache.
> > > Please note that the tomcat-apache.conf file is auto-generated. If you
> > > change something in it the changes are lost during the next restart of
> > > Tomcat.
> > >
> > > For more information
> > > - about Apache: see included manuals
> > > - about mod_jserv: http://java.apache.org/
>jserv/install/howto.servlets.html
> > > - about tomcat: see included documentation
> > >
> > >
> > > regards,
> > >
> > > Kenneth Westelinck
> > > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > > >Reply-To: [EMAIL PROTECTED]
> > > >To: <[EMAIL PROTECTED]>
> > > >Subject: Re: IOException in server
> > > >Date: Mon, 26 Mar 2001 15:18:21 +0800
> > > >
> > > >Thank you, Kenneth Westelinck .
> > > >
> > > >Please help me with another problem: I included tomcat.conf in
> > > >httpd.conf,but I can't start apache for the following error:
> > > >
> > > >Syntax error on line 1 of
> > > >/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
> > > >Invalid command 'LoadModule', perhaps mis-spelled or defined by a
>module
> > > >not included in the server configuration
> > > >../bin/apachectl restart: httpd could not be started
> > > >**
> > > >
> > > >I've got a version of  mod_jserv.so  and copied it in
> > > >/usr/local/apache/libexec/. can you tell me why?
> > > >
> > > >Thanks very much!
> > > >
> > > >Regards,
> > > >
> > > >Tonny.
> > > >
>
>

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




Re: IOException in server

2001-03-25 Thread Kenneth Westelinck

Hi,

mod_jserv.so is an old module to link apache with Tomcat. You should copy 
this to your libexec directory (as you already did). Next you should start 
Tomcat and check if the tomcat-apache.conf is created in
/usr/local/jakarta-tomcat/conf . Now check the contents of this file. Near 
the beginning you should find something like:
LoadModule jserv_module libexec/mod_jserv.so . Next include this file in 
Apache's httpd.conf and start Apache.
Please note that the tomcat-apache.conf file is auto-generated. If you 
change something in it the changes are lost during the next restart of 
Tomcat.

For more information
- about Apache: see included manuals
- about mod_jserv: http://java.apache.org/jserv/install/howto.servlets.html
- about tomcat: see included documentation


regards,

Kenneth Westelinck
>From: "Tonny Liu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: IOException in server
>Date: Mon, 26 Mar 2001 15:18:21 +0800
>
>Thank you, Kenneth Westelinck .
>
>Please help me with another problem: I included tomcat.conf in 
>httpd.conf,but I can't start apache for the following error:
>
>Syntax error on line 1 of 
>/usr/local/jakarta-tomcat/conf/tomcat-apache.conf:
>Invalid command 'LoadModule', perhaps mis-spelled or defined by a module 
>not included in the server configuration
>../bin/apachectl restart: httpd could not be started
>**
>
>I've got a version of  mod_jserv.so  and copied it in 
>/usr/local/apache/libexec/. can you tell me why?
>
>Thanks very much!
>
>Regards,
>
>Tonny.
>
>- Original Message -
>From: "Kenneth Westelinck" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: Monday, March 26, 2001 1:46 PM
>Subject: Re: IOException in server
>
>
> > Hi,
> >
> > I don't think you should connect to port 8007 (8007 is for AJP12 
>connector).
> > The actual webserver is running on port 8080, or whatever is configured 
>in
> > server.xml . So if you browse to : http://localhost:8080/ you should see
> > some nice stuff.
> >
> >
> > regards,
> >
> > Kenneth Westelinck
> >
> >
> > >From: "Tonny Liu" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: <[EMAIL PROTECTED]>
> > >Subject: IOException in server
> > >Date: Mon, 26 Mar 2001 13:45:28 +0800
> > >
> > >Hi,I encountered a problem,it seems curious to me.
> > >I installed tomcat in Redhat6.2, and started it , I can see it 
>listening on
> > >port 8007,but when I tried to connect  it from a browser:
> > >http://localhost:8007, I can't get anyting, but In server, it gave the
> > >following error:
> > >BEGIN 
>ERROR*
> > >HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
> > >java.io.IOException: Stream broken
> > > at
> > 
> 
>>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
> > > at
> > 
> 
>>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
> > > at
> > 
> >org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> > > at java.lang.Thread.run(Thread.java:475)
> > >END 
>ERROR***
> > >
> > >
> > >
> > >
> >
> > 
>_
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.

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




Re: IOException in server

2001-03-25 Thread Kenneth Westelinck

Hi,

I don't think you should connect to port 8007 (8007 is for AJP12 connector). 
The actual webserver is running on port 8080, or whatever is configured in 
server.xml . So if you browse to : http://localhost:8080/ you should see 
some nice stuff.


regards,

Kenneth Westelinck


>From: "Tonny Liu" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: IOException in server
>Date: Mon, 26 Mar 2001 13:45:28 +0800
>
>Hi,I encountered a problem,it seems curious to me.
>I installed tomcat in Redhat6.2, and started it , I can see it listening on 
>port 8007,but when I tried to connect  it from a browser: 
>http://localhost:8007, I can't get anyting, but In server, it gave the 
>following error:
>BEGIN ERROR*
>HANDLER THREAD PROBLEM: java.io.IOException: Stream broken
>java.io.IOException: Stream broken
> at 
>org.apache.tomcat.service.connector.AJP12RequestAdapter.readNextRequest(Ajp12ConnectionHandler.java:386)
> at 
>org.apache.tomcat.service.connector.Ajp12ConnectionHandler.processConnection(Ajp12ConnectionHandler.java:134)
> at 
>org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
> at java.lang.Thread.run(Thread.java:475)
>END ERROR***
>
>
>
>

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




Re: XML in parameter value tag

2001-03-24 Thread Kenneth Westelinck

Hi,


I'm not sure if this will help, but have you tried:

configXML



regards,

Kenneth Westelinck


>From: "Felgenhauer, Florian, VP-EXT, FFELG" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: XML in parameter value tag
>Date: Fri, 23 Mar 2001 14:34:36 +0100
>
>I tried to put XML in a servlet parameter.
>
>Here is the part from web.xml:
>
>configXML
>bla
>
>Reading the parameter like this
>
>ServletConfig conf = getServletConfig();
>
>String configXML = conf.getInitParameter("configXML");
>
>I got only the text bla of the tag .
>
>Florian
>
>
>---
>This Mail has been checked for Viruses
>Attention: Encrypted Mails can NOT be checked !
>
>***
>
>Diese Mail wurde auf Viren ueberprueft
>Hinweis: Verschluesselte Mails koennen NICHT geprueft werden!
>

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




Re: Does JDK1.3 works with Tomcat?

2001-03-22 Thread Kenneth Westelinck

Hi,


Tomcat runs fine on JDK1.3 . I've also tried it on JDK1.1.8 and JDK1.2.2 . 
Always runs nice.


regards,

Kenneth Westelinck

>From: "Jack Li" Reply-To: [EMAIL PROTECTED] To: Subject: Does 
>JDK1.3 works with Tomcat? Date: Thu, 22 Mar 2001 10:52:01 -0500
>
>Hello, Does JDK1.3 works with tomcat. My beans do not work with JDK1.3. 
>Error message says can't find the class. But all these beans works fine 
>with JDK1.1.8. Any ideas?
>
>Thanks, Jack Li
>
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Re: servlet init problem.

2001-03-22 Thread Kenneth Westelinck

Hi,


Have you created a mapping for your servlet? In your context there should be 
a web.xml file. There should be something like this:


AServlet
the.name.of.the.Servlet

AParameter
AValue




AServlet
/AServlet



hope this helps,

Kenneth Westelinck

>From: "Pradeep Kumar" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: servlet init problem.
>Date: Thu, 22 Mar 2001 16:38:31 +0530
>
>Hi all,
>I am using tomcat 3.2.1 with IIS web server on a win2k box. I am able to
>execute the sample servlet and JSP.
>I have context under webapp called at. I am able to see my JSP pages for 
>this
>context. However I am not able to execute my servlet. Its not even getting
>initialized (I see no printing on the server console). On my browser I get
>the error 405, "Resource not allowed" when I try to call my servlet.
>
>Your help here is highly appreciated.
>
>Thanks,
>pradeep

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




RE: single login form for single sign on

2001-03-22 Thread Kenneth Westelinck

Guys,

I haven't followed your discussion, so if I'm out of line here don't shoot 
me.
I'm using Apache 1.3.19 together with Tomcat 3.2.1 . The website I'm using 
is secured with a single login. The configuration to do this looks like:

#
# secure the site
#

deny from all
AuthType Basic
AuthUserFile "/a path/http-passwd"
AuthName "/"
require valid-user
satisfy any


So, if any user browses to http://myhost/ a loging pops up and the user has 
to provide a name and password.

I hope this helps anyone.

regards,

Kenneth Westelinck

>From: <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: RE: single login form for single sign on
>Date: Thu, 22 Mar 2001 08:34:26 -
>
> > > So in essense the question is: Is there a way to specify a
> > "global" login
> > > and error page that will be used by all webapps?
> > >
> >
> > No.  Each web application is still a stand-alone entity.
> >
> > What single sign on support does for you is remember that
> > you've signed on
> > already.  You are still using whatever login mechanism is
> > defined for each
> > individual web app.  They don't even have to all use the same approach
> > (some could be BASIC, some could be FORM, for example).
> >
>
>What's the thinking behind this? Single sign on would imply having, at 
>least
>the option of having a single login page, even if an individual web
>application could override the default and provide its own (for instance I
>guess webdav can't use FORM, so would have to override a FORM default to 
>use
>BASIC/DIGEST).
>
>Having to define login for each we application:
>1. provides a maintenance problem if you do want a common login page across
>all webapps
>2. begins to enter into "using my password for something I haven't approved
>it to be used for" teritory. i.e. the login page says you are logging into
>webapp1, but in fact your login will be used for webapp2. A single login
>page would tell you you are logging into both.
>
>Hence my initial question - is this just the way it has been done, or does
>the Spec say it must be done that way etc.?
>
>Many thanks
>
>Tim
>
>
>Tim Dudgeon <[EMAIL PROTECTED]>
>
>
>
>--
>DISCLAIMER: This message contains proprietary
>information some or all of which may be
>confidential and/or legally privileged. It is for
>the intended recipient only who may use and apply
>the information only for the intended purpose.
>Internet communications are not secure and
>therefore the British Biotech group does not
>accept legal responsibility for the contents of
>this message. Any views or opinions presented are
>only those of the author and not those of the
>British Biotech group. If you are not the intended
>recipient please delete this e-mail and notify the
>author immediately by calling ++44 (0)1865 748747;
>do not use, disclose, distribute, copy, print or
>rely on this e-mail.

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




Re: Simple Question

2001-03-20 Thread Kenneth Westelinck

Amir,

Yes, unless you configure it in the hosts file:
- on unix: /etc/hosts
- on Windoze: c:\winnt\system32\drivers\etc\hosts


regards,

Kenneth Westelinck

>From: "Amir Nuri" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "Tomcat-User" <[EMAIL PROTECTED]>
>Subject: Simple Question
>Date: Tue, 20 Mar 2001 13:06:40 +0200
>
>Do i need DNS in order to use Virtul Hosts ?

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




Re: Starting Tomcat in Apache

2001-03-18 Thread Kenneth Westelinck

Hi,


Tomcat and Apache are not running in background. It should be possible to 
run both Apache and Tomcat as a service. If this is the case, than indeed 
you are uncertain about the result of the script. If however you run the 
script in a command window, you can see immediately if something goes wrong. 
When executing the script, two windows should popup. If not, something is 
wrong.

The thing I love about Linux/Unix is that you can easily run everything 
without anyone being logged into the system. In windows you can use 
services, but I find it hard to work with (compared to *NIX systems).

I'm almost certain that, when using this:

:loop
if not exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" goto loop

Apache will include the correct, and complete mod_jk.conf-auto. If, for some 
reason, Tomcat fails to produce this file the script gets in an infinite 
loop. A better script would be:

start Tomcat
:loop
wait a second
increment a counter
if (the file is not there) and (counter < 10) goto loop

if (the counter < 10) goto start_apache
echo "failed to start Tomcat and Apache"
goto end

:start_apache
start Apache

:end

I know it's not nice programming, but I don't know if there's any other way 
to do this in a .bat file. I don't even know how to use a counter in a .bat 
file.

Anyway the script works fine if nothing goes wrong. If something goes wrong 
than I have a problem. If there's anyone who knows a better way to do this 
(ie a better startup script) please let me know.


regards,

Kenneth Westelinck


>From: Peter Bernard West <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Starting Tomcat in Apache
>Date: Sun, 18 Mar 2001 13:58:02 +1000
>
>Kenneth,
>
>I don't know enough about the Win environment.  In the absence of a
>return value for the script, everything becomes uncertain.  Under linux,
>tomcat is started in the background, and I assume the same thing is
>happening under Windows.  The uncertainty is in the timing of the
>startup of java+tomcat, versus the completion of the startup.bat script.
>
>Is it possible to put a timeout in a batch file?
>
>Peter
>
>
>Kenneth Westelinck wrote:
> >
> > Peter,
> >
> > I'm not sure about this, since this has never occurred before. I make 
>sure
> > Tomcat is running fine on it's own and then bring in the startup script. 
>If
> > you have a workaround, please let me know.
> >
> > thanks,
> >
> > Kenneth Westelinck
> >
> > >From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To:
> > >[EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache 
>Date:
> > >Fri, 16 Mar 2001 12:17:13 +1000
> > >
> > >In Windows, does a batch script exit if any of the commands fails? If 
>it
> > >does not, the script will hang if startup.bat fails, or fails to 
>produce
> > >mod_jk.conf-auto.
> > >
> > >Peter
>
>--
>Peter B. West  [EMAIL PROTECTED]  http://powerup.com.au/~pbwest
>"Lord, to whom shall we go?"

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




Re: Starting Tomcat in Apache

2001-03-15 Thread Kenneth Westelinck

Peter,


I'm not sure about this, since this has never occurred before. I make sure 
Tomcat is running fine on it's own and then bring in the startup script. If 
you have a workaround, please let me know.


thanks,

Kenneth Westelinck


>From: Peter Bernard West Reply-To: [EMAIL PROTECTED] To: 
>[EMAIL PROTECTED] Subject: Re: Starting Tomcat in Apache Date: 
>Fri, 16 Mar 2001 12:17:13 +1000
>
>In Windows, does a batch script exit if any of the commands fails? If it 
>does not, the script will hang if startup.bat fails, or fails to produce 
>mod_jk.conf-auto.
>
>Peter
>
>Steve Prior wrote: > > Wouldn't you need to insert a line in the batch file 
>like: > if exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" erase > 
>"%TOMCAT_HOME%\conf\mod_jk.conf-auto" > > Before :loop otherwise the batch 
>file as given would only wait the first time > you > ever ran it? > > Steve 
>Prior > > Kenneth Westelinck wrote: > > > Hi, > > > > I think you'll have 
>to create a general startup script. The script starts > > Tomcat first and, 
>if the auto-conf file is generated, starts Apache > > afterwards. I don't 
>have much experience in scripting in Linux, but this is > > how I do it on 
>Windows NT. > > > > startup.bat: > > @echo off > > set JAVA_HOME=c:\jdk13 > 
> > set TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1 > > 
>set APACHE_HOME=d:\program files\apache group\apache > > > > call 
>"%TOMCAT_HOME%\bin\startup.bat" > > :loop > > if not exist 
>"%TOMCAT_HOME%\conf\mod_jk.conf-auto" goto loop > > start "Apache" 
>"%APACHE_HOME%\Apache.exe" -d "%APACHE_HOME%" -s -k start > > > > 
>shutdown.bat: > > @echo off > > set JAVA_HOME=c:\jdk13 > > set 
>TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1 > > set 
>APACHE_HOME=d:\program files\apache group\apache > > > > 
>"%APACHE_HOME%\Apache.exe" -d "%APACHE_HOME%" -k shutdown > > 
>"%TOMCAT_HOME%\bin\shutdown.bat" > > > > hope this helps, > > > > Kenneth 
>Westelinck > > > > >From: venkatesan > > >Reply-To: 
>[EMAIL PROTECTED] > > >To: tomcat > > >Subject: Starting 
>Tomcat in Apache > > >Date: Thu, 15 Mar 2001 18:39:36 +0530 > > > > > >Hi 
>All, > > > I have tomcat which i am starting everytime by typing > > 
> >/bin/startup.sh and closing by ..bin/shutdown.sh. manually. Tomcat > 
> > >is running with Apache in my Linux system. Can anybody know how Apache 
> > > >web server will start tomcat automatically when it starts and 
>shutdown > > >while it stops. > > > > > >Thanks in advance > > >cheers > > 
> >Venkatesh > > > > > > > 
>_ > 
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.
>
>--
>Peter B. West [EMAIL PROTECTED] http://powerup.com.au/~pbwest "Lord, to 
>whom shall we go?"
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.




Start processes on the server

2001-03-15 Thread Kenneth Westelinck

Hi all,


I have a server running Apache 1.3.14 together with Tomcat 3.2.1 on a 
Windows NT 4.0 box . On this server there are some Java programs running, 
say ProgA and ProgB. If ProgA crashes than someone has to go to the server 
and execute the startProgA.bat to restart the Java process. Same problem if 
ProgB crashes.

Is it possible to restart this processes by means of a web interface? Is it 
possible to write a Servlet/JSP (anything) that restarts this process? If 
this exists can I use this on Unix/Linux too?


many thanks in advance,

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




Re: Starting Tomcat in Apache

2001-03-15 Thread Kenneth Westelinck

Hi,

I think you'll have to create a general startup script. The script starts 
Tomcat first and, if the auto-conf file is generated, starts Apache 
afterwards. I don't have much experience in scripting in Linux, but this is 
how I do it on Windows NT.

startup.bat:
@echo off
set JAVA_HOME=c:\jdk13
set TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1
set APACHE_HOME=d:\program files\apache group\apache

call "%TOMCAT_HOME%\bin\startup.bat"
:loop
if not exist "%TOMCAT_HOME%\conf\mod_jk.conf-auto" goto loop
start "Apache" "%APACHE_HOME%\Apache.exe"  -d "%APACHE_HOME%" -s -k start


shutdown.bat:
@echo off
set JAVA_HOME=c:\jdk13
set TOMCAT_HOME=d:\program files\apache group\jakarta-tomcat-3.2.1
set APACHE_HOME=d:\program files\apache group\apache

"%APACHE_HOME%\Apache.exe"  -d "%APACHE_HOME%"  -k shutdown
"%TOMCAT_HOME%\bin\shutdown.bat"


hope this helps,

Kenneth Westelinck

>From: venkatesan <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: tomcat <[EMAIL PROTECTED]>
>Subject: Starting Tomcat in Apache
>Date: Thu, 15 Mar 2001 18:39:36 +0530
>
>Hi All,
>   I have tomcat which i am starting everytime by typing
>/bin/startup.sh  and closing by ..bin/shutdown.sh. manually. Tomcat
>is running with Apache in my Linux system. Can anybody know how Apache
>web server will start tomcat automatically when it starts and shutdown
>while it stops.
>
>Thanks in advance
>cheers
>Venkatesh
>

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




Re: xml reader

2001-03-13 Thread Kenneth Westelinck

Hi,

In my opinion there's only one good XML reader/creator and that's XMLSpy. 
You can find it at www.xmlspy.com . It's not free but it's damn good. You 
can use it to create XSL too.


regards,

Kenneth Westelinck

>From: Vladimir Grishchenko <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: xml reader
>Date: Tue, 13 Mar 2001 22:22:24 -0800
>
>Download JBuilder 4 foundation.
>It has tree-like view of XML/HTML docs...
>
>JEdit might be good also...
>
>IE5 can show XML in tree-like form
>
>[EMAIL PROTECTED] wrote:
> >
> > can anyone suggest the best compatible xml reader. Currently I am using 
>word
> > but it is really slow and takes time to browse through...
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: problems with conf

2001-03-12 Thread Kenneth Westelinck

Try textpad (www.textpad.com)


>From: "Robert Keddie" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Re: problems with conf
>Date: Mon, 12 Mar 2001 08:20:07 -0500
>
>wordpad
>
>Robert Keddie
>web development
>Marion County, FL
>
> >>> [EMAIL PROTECTED] 03/10/01 06:41PM >>>
>when I open it with notepad it gets all mushed and ugly, very incoherent. 
>Is
>there any other editor that can open it.
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

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


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




Re: Servlet via URL of the form http://my.domain.com/blah

2001-03-11 Thread Kenneth Westelinck

Milt,

I suggest you download jserv (tar.gz archive) from: 
http://java.apache.org/jserv/dist/. There is a lot of documentation 
included.


regards,

Kenneth


>From: Milt Epstein <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Servlet via URL of the form http://my.domain.com/blah
>Date: Mon, 12 Mar 2001 00:20:27 -0600 (CST)
>
>On Mon, 12 Mar 2001, Kenneth Westelinck wrote:
>
> > Hi,
> >
> > If you want to know exactly how the ApJServMount directive is used
> > you should take a look at the documentation included with JServ (at
> > java.apache.org).
>
>Thanks for the pointer, but could you be more specific.  I looked
>through virtually everything off the jserv link off the main page
>there (which takes you to http://java.apache.org/jserv/index.html),
>and didn't find anything that was helpful.  There was one thing
>entitled "Using Apache JServ 1.0" that looked like it would cover it
>at
>
>http://java.apache.org/jserv/install/index.html
>
>but unfortunately, that link wasn't working (it goes to
>http://www.servletcentral.com, which wasn't responding.)
>
>
> > >From: Milt Epstein Reply-To: [EMAIL PROTECTED] To:
> > >[EMAIL PROTECTED] Subject: Servlet via URL of the form
> > >http://my.domain.com/blah Date: Sun, 11 Mar 2001 23:11:19 -0600 (CST)
> > >
> > >
> > >If you remember, I and at least one other person were trying to set 
>tomcat
> > >up so that a URL of the form
> > >
> > >http://my.domain.com/blah
> > >
> > >would invoke a specific servlet in the "blah" context. We were having
> > >trouble doing this, and the closest we could come was using
> > >
> > >http://my.domain.com/blah/blah
> > >
> > >or
> > >
> > >http://my.domain.com/blah/servlet/blah
> > >
> > >Well, it looks like I figured out how to do this.
> > >
> > >As it turned out, the problem (for me at least), wasn't with how I had
> > >tomcat set up -- you see, it wasn't even getting to tomcat, it was 
>being
> > >handled by apache. I had just been using the apache/jserv directives as 
>per
> > >the sample and documentation on the tomcat page. In particular, the 
>only
> > >relevant ApJServMount directive I had was
> > >
> > >ApJServMount /blah/servlet /blah
> > >
> > >I'm not sure of the exact syntax/semantics of the ApJServMount 
>directive,
> > >but I believe it indicates that URIs of certain forms (e.g. 
>/blah/servlet)
> > >should be passed to the specified tomcat context (e.g. blah). So, since 
>all
> > >I had was the above directive, only URIs that started with 
>/blah/servlet
> > >was being passed to tomcat, and that of course does not include the URI
> > >/blah. So I added another directive
> > >
> > >ApJServMount /blah /blah
> > >
> > >and after that, I was able to use a URL of the form
> > >
> > >http://my.domain.com/blah
> > >
> > >as I originally wanted to.
> > >
> > >Hope this helps someone else. And if someone understands better exactly 
>how
> > >the ApJServMount directive works, please feel free to fill in the 
>details.
> > >
> > >Milt Epstein Research Programmer Software/Systems Development Group
> > >Computing and Communications Services Office (CCSO) University of 
>Illinois
> > >at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
> > >
> > >
> > >- 
>To
> > >unsubscribe, e-mail: [EMAIL PROTECTED] For
> > >additional commands, email: [EMAIL PROTECTED]
> > >
> > 
>_
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
>
>Milt Epstein
>Research Programmer
>Software/Systems Development Group
>Computing and Communications Services Office (CCSO)
>University of Illinois at Urbana-Champaign (UIUC)
>[EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: Servlet via URL of the form http://my.domain.com/blah

2001-03-11 Thread Kenneth Westelinck

Hi,

If you want to know exactly how the ApJServMount directive is used you 
should take a look at the documentation included with JServ (at 
java.apache.org).


greets,

Kenneth Westelinck


>From: Milt Epstein Reply-To: [EMAIL PROTECTED] To: 
>[EMAIL PROTECTED] Subject: Servlet via URL of the form 
>http://my.domain.com/blah Date: Sun, 11 Mar 2001 23:11:19 -0600 (CST)
>
>
>If you remember, I and at least one other person were trying to set tomcat 
>up so that a URL of the form
>
>http://my.domain.com/blah
>
>would invoke a specific servlet in the "blah" context. We were having 
>trouble doing this, and the closest we could come was using
>
>http://my.domain.com/blah/blah
>
>or
>
>http://my.domain.com/blah/servlet/blah
>
>Well, it looks like I figured out how to do this.
>
>As it turned out, the problem (for me at least), wasn't with how I had 
>tomcat set up -- you see, it wasn't even getting to tomcat, it was being 
>handled by apache. I had just been using the apache/jserv directives as per 
>the sample and documentation on the tomcat page. In particular, the only 
>relevant ApJServMount directive I had was
>
>ApJServMount /blah/servlet /blah
>
>I'm not sure of the exact syntax/semantics of the ApJServMount directive, 
>but I believe it indicates that URIs of certain forms (e.g. /blah/servlet) 
>should be passed to the specified tomcat context (e.g. blah). So, since all 
>I had was the above directive, only URIs that started with /blah/servlet 
>was being passed to tomcat, and that of course does not include the URI 
>/blah. So I added another directive
>
>ApJServMount /blah /blah
>
>and after that, I was able to use a URL of the form
>
>http://my.domain.com/blah
>
>as I originally wanted to.
>
>Hope this helps someone else. And if someone understands better exactly how 
>the ApJServMount directive works, please feel free to fill in the details.
>
>Milt Epstein Research Programmer Software/Systems Development Group 
>Computing and Communications Services Office (CCSO) University of Illinois 
>at Urbana-Champaign (UIUC) [EMAIL PROTECTED]
>
>
>- To 
>unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, email: [EMAIL PROTECTED]
>
_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


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




Re: Tomcat Administration Tools

2001-03-09 Thread Kenneth Westelinck

Hi,

My best guess is: yes, you need a different role for every conext. If you 
want one username for different context I think you should use:
  

But I'm not sure about this. I don't think this is well documented either. 
Any ideas are appreciated.

About "Alias", "Context" and "ApJServMount":


- The Alias directive allows documents to be stored in the local filesystem 
other than under the DocumentRoot. URLs with a (%-decoded) path beginning 
with url-path will be mapped to local files beginning with 
directory-filename.

Example:

Alias /image /ftp/pub/image

A request for http://myserver/image/foo.gif would cause the server to return 
the file /ftp/pub/image/foo.gif.
(from Apache manual)

- ApJServMount mounts a zone to a URL. It connects Apache to JServ/Tomcat. 
For more info about this you should read the documentation that comes with 
JServ

- Each Context represents a path in the Tomcat hierarchy where you place a 
web application.


regards,

Kenneth


>From: "Thomas Klein" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: Re: Tomcat Administration Tools
>Date: Fri, 09 Mar 2001 15:37:28 +0100
>
>I did look at your previous mail of course, before sending my help request. 
>but
>it did not seem to work...
>
>I updated tomcat-users.xml with :
>  
>I updated server.xml with :
>docBase="webapps/admin"
>  crossContext="true"
>  debug="0"
>  reloadable="true"
>  trusted="true" >
> 
>
>hmmm, I'm sorry Kenneth, I did not restart Tomcat... :-0
>OK, Thanks, now it works well ! :-)
>
>But I'm still not comfortable with the way it works...
>I understand the role name must have the same value as the context path, is
>that right ?
>Then, do you have to create a new role in tomcat-users.xml for each context
>defined in server.xml ?
>Can't several contexts share the same role ?
>
>
>Actually, I guess I mix "Alias", "Context", "ApJServMount" and "jkMount"...
>I'm lost in the configuration files.
>Which one is used for what ???
>Could somebody rescue me ?
>
>Thomas
>
>
>Kenneth Westelinck wrote:
>
> > Hi,
> >
> > For the first question, please have a look at: "Re: what is the password 
>of
> > tomcat admin".
> > I haven't tried it yet, but I think the admin is being used as a 
>graphical
> > tool to create and delete a context. If you prefer the non graphical 
>way,
> > just edit the server.xml file.
> >
> > regards,
> >
> > Kenneth
> >
> > >From: "Thomas Klein" <[EMAIL PROTECTED]>
> > >Reply-To: [EMAIL PROTECTED]
> > >To: Tomcat User List <[EMAIL PROTECTED]>
> > >Subject: Tomcat Administration Tools
> > >Date: Fri, 09 Mar 2001 14:03:10 +0100
> > >
> > >Hello All !
> > >Three-questions-in-one :
> > >
> > >Question 1 : What's the use of  the "Tomcat Administration Tools"
> > >(http://localhost:8080/admin/index.html) page ?
> > >
> > >From there I get 2 links :
> > >- "Context Admin"
> > >(http://localhost:8080/admin/contextAdmin/contextAdmin.html),
> > >- "Snoop" (http://localhost:8080/examples/jsp/snp/snoop.jsp) which 
>seems
> > >to be just an example.
> > >
> > >The problem is I can't access "Context Admin". A Login/Password is
> > >required (!)
> > >I looked into "server.xml" and "tomcat-users.xml" but I couldn't figure
> > >how the roles defined in tomcat-users are associated to the context
> > >defined in server.xml...
> > >
> > >Question 2 : Could someone explain how it works ?
> > >Question 3 : How should I configure my Tomcat server to get in
> > >"ContextAdmin" from the Tomcat Administration Tools page ?
> > >
> > >Thanks for your help.
> > >
> > >Thomas
> > >(Windows NT4 + JDK 1.3 + Apache 1.3.14 + Tomcat 3.2.1)
> > ><< r7972c.vcf >>
> > >-
> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> > >For additional commands, email: [EMAIL PROTECTED]
> >
> > 
>_
> > Get Your Private, Free E-mail from MSN Hotmail at 
>http://www.hotmail.com.
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
><< r7972c.vcf >>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

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


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




Re: Tomcat Administration Tools

2001-03-09 Thread Kenneth Westelinck

Hi,

For the first question, please have a look at: "Re: what is the password of 
tomcat admin".
I haven't tried it yet, but I think the admin is being used as a graphical 
tool to create and delete a context. If you prefer the non graphical way, 
just edit the server.xml file.


regards,

Kenneth


>From: "Thomas Klein" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: Tomcat User List <[EMAIL PROTECTED]>
>Subject: Tomcat Administration Tools
>Date: Fri, 09 Mar 2001 14:03:10 +0100
>
>Hello All !
>Three-questions-in-one :
>
>Question 1 : What's the use of  the "Tomcat Administration Tools"
>(http://localhost:8080/admin/index.html) page ?
>
>From there I get 2 links :
>- "Context Admin"
>(http://localhost:8080/admin/contextAdmin/contextAdmin.html),
>- "Snoop" (http://localhost:8080/examples/jsp/snp/snoop.jsp) which seems
>to be just an example.
>
>The problem is I can't access "Context Admin". A Login/Password is
>required (!)
>I looked into "server.xml" and "tomcat-users.xml" but I couldn't figure
>how the roles defined in tomcat-users are associated to the context
>defined in server.xml...
>
>Question 2 : Could someone explain how it works ?
>Question 3 : How should I configure my Tomcat server to get in
>"ContextAdmin" from the Tomcat Administration Tools page ?
>
>Thanks for your help.
>
>Thomas
>(Windows NT4 + JDK 1.3 + Apache 1.3.14 + Tomcat 3.2.1)
><< r7972c.vcf >>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]

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


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




Re: what is the password of tomcat admin

2001-03-09 Thread Kenneth Westelinck

Hi,


You should change the following files:

serverl.xml, add or alter:


tomcat-users.xml, add or alter:


then you should be able to log in with admin/admin .


regards,

Kenneth

>From: Shankar Gowda <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: what is the password of tomcat admin
>Date: Fri, 9 Mar 2001 03:42:53 -0800 (PST)
>
>hello all,
>
>  i have problem in tomcat admin password
>please help me out with default password,
>thanks
>
>shankar
>
>
>__
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: httpd.conf file

2001-03-09 Thread Kenneth Westelinck

Hi,

I had the same problem you should change:
include d:\foo\tomcat\conf\my_tomcat-apache.conf

to:
include "d:/foo/tomcat/conf/my_tomcat-apache.conf"

looks the same, but its different.


hope it helps,

Kenneth Westelinck


>From: "tomcat users" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: httpd.conf file
>Date: Fri, 09 Mar 2001 10:53:03 -
>
>Hello
>I am configurinng Tomcat for apache Web server.  The installation paths for
>apache is
>C:\Program Files\ Apache Group\Apache
>For Tomcat the installation path is
>D:\ Foo\Tomcat\
>i have added my_tomcat_apache.conf file in conf folder of tomcat root dir
>then I add Apache include directive at the end of httpd.conf as follows
>   include d:\foo\tomcat\conf\my_tomcat-apache.conf
>
>but when I restart apche webserver it genrates the following error
>Access to configfle
>C:\Program
>Files/apache/group/apache/d:\foo\tomcat\Conf\my_tomcat-apache.conf
>Not a valid file name.
>fOpen : Permission denied
>  plz tell do we need to copy the tomcat root folder to apacahe root
>directory.
>Thanks,
>
>
>
>
>_
>Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: Unreachable servlets: who knows ?

2001-03-09 Thread Kenneth Westelinck

Hi,

I guess you've included the mod_jk.conf-auto to make Apache talk with 
Tomcat. If this is right, you should have a look in the mod_jk.conf-auto 
file. You should find something like:

#
# Auto configuration for the /myweb context starts.
#

a few lines below there should be something like:

#
# The following line mounts all JSP files and the /servlet/ uri to tomcat
#
JkMount /myweb/servlet/* ajp12
JkMount /myweb/*.jsp ajp12

In the example above the servlets are reached by 
http://host/myweb/servlet/TheNameOfTheServlet, since JKMount tells Apache 
everything that matches /myweb/servlet/* to forward to Tomcat.  It's 
possible that the above example looks different in your configuration.


hope this helps,

Kenneth Westelinck

>From: "Gerard BORREILL" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>CC: [EMAIL PROTECTED]
>Subject: Re: Unreachable servlets: who knows ?
>Date: Fri, 09 Mar 2001 09:57:47 +0100
>
>Sorry,
>  But in fact I have not solved the problem yet.
>
>   The url I used is http://:8080/myweb/Test
>   This does not correspond to what I have understood in the Tomcat
>documentation.
>   8080 is the port number used by tomcat for Http requests, so Apache is 
>not
>used.
>
>I have in mly servlet.xml:
>
> 
>value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
>  value="8080"/>
> 
>
>But I still do not know what URL to use to deal with Apache and make it
>dialogue with Tomcat using mod_jk.
>I tried:
>
>  http://:80/myweb/servlet/Test
>
>But it fails on my client: it is a java client that sends an HTTP POST 
>form.
>
>HttpClient: sendForm(): openConnection OK !! // it means a new URL object 
>has
>been created.
>HttpClient: sendForm(): set property on urlconnection OK !
>HttpClient: sendForm(): object sent OK !
>java.io.FileNotFoundException: http://XXX.XXX.XXX.XXX:80/myweb/servlet/Test
> at
>sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:545)
>
> at x..HttpClient.sendForm(HttpClient.java:463)
> at tests.x...HttpClientTester.main(HttpClientTester.java:129)
>
>In my Tomcat logs I have: (this is the only URL that produces such a log).
>2001-03-09 09:33:32 - Ctx( /myweb ): 404 R( /myweb + /servlet/Test+ null)
>null
>
>So apache deals with tomcat, but there is a mis-configuration and I do not
>know where.
>Does anyone knows how to interpret this line ?
>
>Gérard,
>
>
>
>Georges Boutros wrote:
>
> > --> How did you do to reach your servlet with tomcat???
> > thanks
> >
> > OK I have found it
> >
> > Gerard BORREILL wrote:
> >
> > > Hello,
> > >   There is probably something I do not understand, but I can't manage
> > > making my servlets reachable with tomcat .
> > > I am using Tomcat 3.2.1 with apache on Solaris. So I have generated 
>the
> > > mod_jk module.
> > >
> > > I have set in the web.xml file of my servlet :
> > > 
> > >   MyServlet
> > >   /Test
> > > 
> > >
> > > So I presume that the URL to my servlet should end with"/Test"
> > >
> > > My .war file (myweb.war) is under
> > > ../dist/tomcat/webapps/
> > > and is uncompressed when I start Tomcat.
> > >
> > > The servlet is started (the init() method is called). So it means it 
>is
> > > installed in the right place and Tomcat knows where to find it, and 
>the
> > > servlet does not crash when being started.
> > >
> > > What URL should I type to call my servlet ? I am using a little java
> > > client that sends data to the servlet.
> > >
> > > I have tried
> > >
> > > http:///myweb/Test
> > > http:///myweb/servlet/Test
> > > ans so many others...
> > >
> > > But my client still fails to reach the servlet. (Error 404 file not
> > > found) What's wrong ?
> > >
> > > In advance, thank you,
> > >
> > > Gérard
> > >
> > > -
> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




XSQL on tomcat

2001-03-07 Thread Kenneth Westelinck

Hi all,

I'm using Tomcat 3.2.1 and Apache 1.3.17 on a Windows NT4.0 OS. Apache is 
connected to Tomcat with the mod_jk.
Everything is working fine.
For submitting queries to a database I'm using the oracle XSQL servlet. XSQL 
pages have an extension .xsql.

If I include this line in httpd.conf:
JkMount /xsql/*.xsql ajp12

Everything works. If I browse to http://host/xsql, I'm getting the test 
page.

Is it possible to make Tomcat generate the line:
"JkMount /xsql/*.xsql ajp12"
automatically, so I can omit this line and just include the mod_jk.conf-auto


thanks,

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


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




Re: How do I FTP a file to Tomcat Server from a Java client program?

2001-03-06 Thread Kenneth Westelinck

Ganasen,

You can do this easy by downloading the NetComponents.jar from:
http://www.savarese.org/oro/products/NetComponents.html

It should be obvious how to use this jar. There's a lot of documentation and 
examples included.

good luck,

Kenneth Westelinck


>From: "Ganasen Gounden" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: How do I FTP a file to Tomcat Server from a Java client program?
>Date: Wed, 07 Mar 2001 09:36:58 +0200
>
>Hello
>
>I need some sample code or guidance on how to FTP or copy a file to a 
>Windows 2000 or Unix Server from within a Java client program.
>The client java program reads an ascii input text file, processes each line 
>and then writes it out to a new ascii file using the filereader function.
>
>I need to however transfer/ftp this file to a destination server as the 
>next step in the program.
>
>I could write a batch file to ftp this file but I would like to contain the 
>whole process within one java program for automation and maintenance 
>benefits.
>
>If this is not the appropriate list server for this could you also please 
>suggest which listserver might help me in this regard.
>
>Many thanks for your help.
>
>
>Gan Gounden
>City of Cape Town
>Ph (021) 400-2174
>Fax (021) 425-1096
>Cell 083-63-59-268
>e-mail: [EMAIL PROTECTED]
>
>
>
>
>**
>Any unauthorized use and interception of this e-mail is illegal.
>If this e-mail is not intended for you, you may not copy,
>distribute or disclose the contents to anyone.  This e-mail
>does not give rise to any binding legal obligations upon the
>City of Cape Town unless the City of Cape Town subsequently
>confirms the content in writing non-electronically.  This e-mail
>may be confidential, legally privileged or otherwise protected
>by law.  Unauthorised disclosure or copying of any or all of it
>may be unlawful. If you receive this e-mail in error please notify
>the sender and delete the message
>
>**
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: help: tomcat 3.2 won't work on win 98

2001-03-06 Thread Kenneth Westelinck

All WIN98/95 dudes should use:

c:\ COMMAND.COM /E:4096 /P



>From: pothi pothi <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: [EMAIL PROTECTED]
>Subject: help: tomcat 3.2 won't work on win 98
>Date: Tue, 6 Mar 2001 21:57:42 -0800 (PST)
>
>hai,
>
>i am using win 98. i have set java_home and
>tomcat_home. But when i run the startup.bat file the
>following error occurred.
>
>"
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Unable to set CLASSPATH dynamically
>Note: To set CLASSPATH dynamically in win9x systems
>   only dos 8.3 names may be used in TOMCAT_HOME!
>Setting your CLASSPATH statically.
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>
>Using CLASSPATH:
>
>Starting Tomcat in new window
>Bad command or file name.
>"
>
>I cann't understand what is the error? please give me
>some suggestion to succesfully run tomcat.
>
>Thanks,
>Pothi K.
>
>__
>Do You Yahoo!?
>Get email at your own domain with Yahoo! Mail.
>http://personal.mail.yahoo.com/
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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




Re: tomcat won't work.

2001-03-06 Thread Kenneth Westelinck

For all you WIN98/95 dudes use this:

c:\ COMMAND.COM /E:4096 /P



>From: "K Pothi" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: tomcat won't work.
>Date: Wed, 7 Mar 2001 11:05:37 +0530
>
>i am using win 98. i have set java_home and tomcat_home. But when i run the 
>startup.bat file the following error occurred.
>
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>Out of environment space
>starting tomcat in new window
>using classpath e:\progra~1\jakart~1\classes;c:\using\jdk1.3\lib\tools.jar
>
>and a new java window appears for a second and then it disappears 
>suddently. Please help me to solve the problem.

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


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




Re: Problems getting tomcat to work with apache

2001-03-03 Thread Kenneth Westelinck

Dave,

Have you also included these lines in your httpd.conf file:
LoadModulejk_module  modules/mod_jk.dll
AddModule mod_jk.c

and did you copy the mod_jk.dll to the modules directory of apache?


regards,

Kenneth Westelinck


>From: "Dave Townsend" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: Problems getting tomcat to work with apache
>Date: Sat, 3 Mar 2001 13:19:26 -
>
>Can anyone explain this? I have tomcat running fine and serving out pages,
>servlets and jsps on port 8080. I included the mod_jk.conf-auto into
>httpd.conf and apache refuses to send jsp and servlet requests to tomcat. 
>It
>has aliased all the webapps in the correct place so it is reading the 
>config
>file.
>
>Any ideas?
>
>Dave
>
>
>-
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, email: [EMAIL PROTECTED]
>

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


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