RE: Broken pipe

2002-02-01 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Emerson [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 6:40 PM
 To: Tomcat Users List
 Subject: RE: Broken pipe
 
 
 Hi Anton
 
 Take a look above, i marked the lines that appear my servlet code :
 

Yeap, sorry. I noticed them when the letter had already been sent.
So, you should be able to catch it. And you could rollback 
the transactions made.
The only bad thing, AFAIK, you'll get the exception not earlier then 
you try to send data back to the user (using either Writer or OutputStream).
So, you cant stop the transaction in the middle of execution and 
your server will have to finnish the job nobody has already been 
interested in.
Isn't it unnecessary resource drain that RFC2616 (8.1.4) talks about?
Did I misunderstand it?

 
 At 09:38 31/1/2002 +0200, you wrote:
 Hi,
 
  -Original Message-
  From: Emerson [mailto:[EMAIL PROTECTED]]
  Sent: Wednesday, January 30, 2002 7:36 PM
  To: Tomcat Users List
  Subject: RE: Broken pipe
  
  
  .java:162)
 from here:
 
  at cadServlet.visualizaEstatiticas(cadServlet.java:690)
  at cadServlet.doGet(cadServlet.java:351)
  at cadServlet.doPost(cadServlet.java:408)
 
 to here I can catch the exception, cadServlet is the name of the servlet
 
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
  at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
  at
  
 
 Any mention about your own code, right? So, you can't catch it in your
 servlet
 or jsp. Its internal for container. IMHO you'll have to hack 
 into TC to get
 this IOException.
 I've been trying to ask about this problem, or if its not a problem and I
 just
 crazzy :)
 I really want to get notified of connection closing event.
 Nobody answered :(
 
 Emerson Cargnin
 TRE-SC
 Setor de Desenvolvimento 
 Tel: (48) 251-3700 - Ramal 3134
 

Anton.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Help giving Tomcat more memory

2002-02-01 Thread Tom Bednarz

Michael,

 I then start the program with
 java -Xms145M -Xmx160M test

 If I understand this correctly, the initial heap size should be 145 megs.
 However, looking at my processes, there is only about 7200K allocated for
the
 program. Why doesn't it start out at 145? That is the same behaviour I'm
 seeing on the Win2K machine with Tomcat. It ignores the initial heap size
I'm
 specifying and starts around 16MB, and then dies around 78.

 Am I misunderstanding how the -Xms and -Xmx flags work?


No, but when looking at the task manager you should not look at Mem Usage
but at VM Size. (You can select the columns at View | Select Columns...)
NT/W2K/XP allocate Memory usually as virtual memory (using LocalAlloc() or
GlobalAlloc() API functions in C/C++). The OS decides when it will swap
unused data and program code to the page file and give more fast memory to
a process. So if you specify -Xmsn and -Xmxn the OS will not immediately
take away all memory when the process starts. You just made sort of a
reservation. If you look at VMSize you will see, that you got your 145
MB.

HTH

Thomas


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Dynamic Loading Of Changed Classes

2002-02-01 Thread Hargurjit Singh Malhi


Hi All,
I am using tomcat-3.2.4

I have a XmlRpc servlet deployed and this in turn accesses other classes(by 
importing that package)...

According to Tomcat documentation setting of the reloadable variable in 
server.xml affects the fact whether Tomcat is able to load the recent class 
file or notbut this is applicable to classes in Web-inf\classes and 
to Jars in Web-
inf\lib.

Can any one please tell me how can I make the Tomcat to load the recent 
version of other class files(in the package that is imported in the servlet) 
that the servlet invokes.also I have a properties file(in the same 
package) do I need to restart the server everytime I make a change 
in this properties file

Any suggestions are welcome...

Malhi



_
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: AW: Job situation in the US

2002-02-01 Thread Lauer, Oliver

Jobserve also includes a lot of german jobs because of German recruitment is
done from within the UK. 
You also have the advantage to being able to talk English with those guys.
Just sarch for something like Java and German or Java and Frankfurt and so
on..!

Nevertheless you could try www.jobpilot.de and www.monster.de, too.

Oliver 

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


-Ursprüngliche Nachricht-
Von: Micael Padraig Og mac Grene [mailto:[EMAIL PROTECTED]]
Gesendet: Donnerstag, 31. Januar 2002 18:47
An: Tomcat Users List
Betreff: Re: AW: Job situation in the US


This reference seems to be to the UK rather than to Germany.  Do you have 
any German references?  Thanks.

At 04:00 PM 1/29/02 +0100, you wrote:
Hi Lars,

try http://www.jobserve.com . I believe in Frankfurt/Munich/Germany (that's
where all the banking and telco business is) is still a demand for
Java/J2EE/C++ contractors without having to speak German, just using
English
as business language.

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


-Ursprüngliche Nachricht-
Von: Lars Nielsen Lind [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 29. Januar 2002 15:42
An: Tomcat Users List
Betreff: Re: Job situation in the US


Anyone there have links to freelance jobs (java, jsp, javabeans, jakarta,
apache, postgresql, linux)?

Best regards,

Lars Nielsen Lind

- Original Message -
From: dderry [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 29, 2002 2:32 PM
Subject: Re: Job situation in the US


  Speaking from my experience in Georgia: I was laid-off in June. I've had
one
  2 month contract since then. I find a lot of job postings that do not
seem
  to be real (I never get any response, and the positions are constantly
being
  reposted). Many job postings have a shopping list of 'required' skills.
My
  background is extensively in C++, but also with a couple of years of
Java

  JSP. I haven't had any luck with any of these skills.
 
  Good luck!
  Dave Derry
 
 
  - Original Message -
  From: Lauer, Oliver [EMAIL PROTECTED]
  To: Tomcat Users List (E-Mail) [EMAIL PROTECTED]
  Sent: Tuesday, January 29, 2002 2:58 AM
  Subject: Job situation in the US
 
 
  Hi all,
 
  I admit this forum isn't quite suitable for those postings (saying sorry
to
  all who are annoyed reading that) but I believe as well a lot of experts
are
  listening who can answer this question maybe:
 
  Is it still a bloodbath in the US concerning Java Jobs or is the
situation
  improving ? I'm asking due to my family is wanting me to looking for a
  challenge abroad :-)
 
  Thanx
  Oliver
   AXA eSolutions GmbH
   AXA Konzern AG Germany
   Oliver Lauer
   Web Architect
   Wörthstraße 34
   D-50668 Köln
   Germany
   Tel.: +49 221 148 31277
   Fax: +49 221 148 43963
   Mobil: +49 179 59 064 59
   e-Mail: [EMAIL PROTECTED]
   _
  
  
 
 
--
--
  --
  Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene
  Information nicht rechtsverbindlich. Eine rechtsverbindliche
Bestaetigung
  reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach.
Beachten
  Sie bitte, dass jede Form der unautorisierten Nutzung,
Veroeffentlichung,
  Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht
gestattet
  ist.Diese Nachricht  ist ausschliesslich fuer den bezeichneten
Adressaten
  oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene
Adressat
  dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit
dem
  Absender der E-Mail in Verbindung zu setzen.
  
  For legal and security reasons the information provided in this e-mail
is
  not legally binding. Upon request we would be pleased to provide you
with
a
  legally binding confirmation in written form. Any form of unauthorised
use,
  publication, reproduction, copying or disclosure of the content of this
  e-mail is not permitted. This message is exclusively for the person
  addressed or their representative. If you are not the intended recipient
of
  this message and its contents, please notify the sender immediately.
 
 
===
=
  ==
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles 

RE: Mod_Webapp

2002-02-01 Thread Cressatti, Dominique

Have you tried something like:

WebAppDeploy YourContextDir YourConnection /AnyURLYouWant/*.jsp
WebAppDeploy YourContextDir YourConnection /AnyURLYouWant/servlet*

Let us know if it worked
Dom
-Original Message-
From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 08:14
To: Tomcat Users List
Subject: Mod_Webapp 


Hi

I have an app which Iam upgrading from Tomcat 3 to 4, implementing mod_webapp.

Whereas I used to have

http://server/dir

where dir lived on Apache were it contained all static html, gifs and also as a 
context /dir on Tomcat where I put my JSP and servlets. So I would only mount the 
following on ajp12.

JkMount /ism/*.jsp  ajp12
JkMount /ism/servlet/*  ajp12

As far as Ican see, with mod_webapp, you have to mount the whole of /ism/, thereby 
forcing all static content into Tomcat. Is there any way around this ? 

The release notes say that mod_webapp fowards *all requests uunder the specified 
context path to Tomcat for processing. When Tomcat 4.0 final is released, it will 
automatically configure 
itself to serve static resources from Apache... Having read that 4.0.1 was production 
quality, I thought that it was a formal release of version 4. What is Tomcat 4.0 final 
 as opposed to 
production quality, released 4.0.1? 

This feels like a shortcoming in mod_webapp and the way that things are mounted with 
mod_webapp. I have posted and seen questions asking whether you can mount /*.jsp in 
mod_webapp 
but never seen a satisfactory respose or solution.

Thanks

Chris


Kevin HaleBoyes a écrit :
 
 This may seem long but I wanted to include anything
 I thought was relevant.
 
   CATALINA_HOME=/usr/local/jakarta/jakarta-tomcat-4.0.2-b2
   JAVA_HOME=/usr/java/jdk1.3.1_02
 
 I added a new Host entry to server.xml for my new website.
 This is the only change I made to the stock server.xml.
 
Host name=192.168.0.52 debug=0 appBase=webapps unpackWARs=true
  Realm className=org.apache.catalina.realm.MemoryRealm /
 
  Valve className=org.apache.catalina.valves.AccessLogValve
   directory=logs  prefix=192.168.0.52_access_log.
 suffix=.txt
   pattern=common/
 
  Logger className=org.apache.catalina.logger.FileLogger
 prefix=192.168.0.52_log. suffix=.txt timestamp=true/
 
  Context path=/manager docBase=manager debug=0 privileged=true/
 
  Context path= docBase=NewWebsite debug=0 reloadable=true
Logger className=org.apache.catalina.logger.FileLogger
   prefix=NewWebsite_log. suffix=.txt timestamp=true/
  /Context
/Host
 
 This works great.  When I point my browser at http://192.168.0.52:8080/
 I get my home page and the JSP/servlet stuff works as expected.
 
 Like so many other, the next step is to set up the
 Warp connector so that I can front Tomcat with Apache.
 
 I changed the stock httpd.conf (RedHat 7.2 i386) by adding a
 new VirtualHost section to correspond to NewWebsite above.
 I installed mod_webapp.so from the downloaded webapp-module-1.0.2-tc402
 archive.
 
NameVirtualHost 192.168.0.52
 
LoadModule webapp_module modules/mod_webapp.so
WebAppConnection warpConnection warp 192.168.0.52:8008
WebAppDeploy examples warpConnection /examples/
 
VirtualHost 192.168.0.52
ServerName 192.168.0.52
WebAppDeploy NewWebsite warpConnection /
/VirtualHost
 
 The address 192.168.0.52 will eventually become a properly
 DNS-registered name www.NewWebsite.com (names and ip
 addresses may have been changed to protect the guilty).
 
 The intention is to have any request for http://192.168.0.52/ be
 redirected by mod_webapp to the NewWebsite Tomcat context.
 But that is not what happens.  Instead, the browser sits as if
 it is loading something that never comes and there are no
 messages in any of the apache  tomcat log files on the server.
 Not even an access log entry.
 
 On startup of httpd I get the following message in the httpd
 error log.
 
   [Thu Jan 31 12:49:58 2002] [warn] Loaded DSO modules/mod_webapp.so uses
 plain Apache 1.3 API, this module might crash under EAPI! (please recompile it
 with -DEAPI)
   [Thu Jan 31 12:49:59 2002] [notice] Apache/1.3.20 (Unix)  (Red-Hat/Linux)
 mod_python/2.7.6 Python/1.5.2 mod_ssl/2.8.4 OpenSSL/0.9.6b DAV/1.0.2 PHP/4.0.6
 mod_perl/1.24_01 mod_throttle/3.1.2 configured -- resuming normal operations
   [Thu Jan 31 12:49:59 2002] [notice] suEXEC mechanism enabled (wrapper:
 /usr/sbin/suexec)
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection warpConnection cannot
 connect
   [Thu Jan 31 12:53:08 2002] [error] Cannot open connection warpConnection
   [Thu Jan 31 12:53:08 2002] [error] Connection 

Re: Tomcat 4.0.1 Dreamweaver 4.01 using WebDAV too slow

2002-02-01 Thread Madock Chiwenda

I have configured the HTTP 1.0 connector. It works as fast as I expected to GET-ing 
the site and pages . However I 
still get some problems.

1. PUT the files does not work showing error that the files are locked.


2. GET of JSP pages executes the pages and then returns the HTML content instead of 
JSP Source. I have tried to 
disable the JSP Servlet I was able to get the source. But not being able to preview 
tehe executed content. how can I 
view JSP source  with webdav and preview HTML content with browser. (Is it possible to 
have two web.xml running in 
the same tomcat program and website files?)

31/01/02 16:00:34, Remy Maucherat [EMAIL PROTECTED] wrote:

 I am trying to access Tomcat 4.0.1 web application files using Dreamweaver
4.0.1 in my win98 machine. I find  it to be
 extremely slow takes up to 3-5 minutes to retrieve the site.

 I tried to access the same tomcat files using Web Folders in Windows
Explorer it works fine and fast enough  (1-3 seconds). I
 have tested Tomcat with DAVExplorer, it also worked fine. I have tested
Dreamweaver with MS IIS 5 it worked  fine after
 WebDAV Configurations

 What configurations would make Dreamweaver fast in accessing Tomcat 4.0.1
as WebDAV server

I think Dreamweaver's HTTP/1.1 stack is broken. Essentially, it waits for
the server to close the connection (without specifying any Connection: close
header), and since Tomcat will persist the connection, it takes 30s to do
each HTTP operation (that's the default connection timeout in Tomcat).

Use the HTTP/1.0 connector with Dreamweaver.

The new HTTP/1.1 connector will allow you to specify a list of restricted
user agent (when one is used, the connector will degrade itself to
HTTP/1.0).

Remy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]





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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: how to get changes to web.xml without restarting tomcat

2002-02-01 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 6:17 PM
 To: [EMAIL PROTECTED]
 Subject: how to get changes to web.xml without restarting tomcat
 
 
 All,
 
  My dilemma as I understand it is this.  Tomcat is run at root level,
 requiring restarts of both Tomcat and Apache to be performed by the system
 administrator.  For changes to take effect in web.xml (so far as I can
 tell) Tomcat must be restarted.  This means, bugging the system
 administrator to restart Tomcat and then restart Apache.  Anytime an
 init-param changes I have to go through the sysadmin.  As I recently
 inherited a bunch of servlets, and they have migrated from 
 windows to Linux
 and from JWS to Tomcat, as you can imagine there are many changes to such
 parameters.  Is there a way to get around this at all?  Reloading class
 files is already transparent to the sysadmin, either through a reloadable
 context, or the manager application, but the web.xml changes are bringing
 me down.  Do I have to write a custom servlet?  It seems to me that Tomcat
 should allow for something basic like this.
 

Yeap, I expected reloading to read and parse web.xml every time. But it doesn't.
So, I have to start/stop application from manager application.
Using HTMLManagerServlet its still pretty easy, just two clicks.

 Thanks to any who take the time to try to help.
 
 Tim
 -
 Timothy DD Martin
 CSC - GreenTec IV
 (301) 794-2815
 [EMAIL PROTECTED]
 
 

Anton.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat3.3 java policy codebase

2002-02-01 Thread David Dascalescu

Hello,
For Tomcat3.3 how can I assign permissions to individual jar files in the
/WEB-INF/lib/ directory, for example, I would like something like this:
 grant codeBase file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/- {
  permission java.net.SocketPermission dbhost.mycompany.com:5432, connect;
 };
Is it possible in Tomcat3.3?
If not, can someone suggest a workaraound?


Regards,

David Dascalescu
Project Manager
EduLib Soft, srl
Craiova, Romania

Tel: + 40 51 413496
Fax: + 40 51 418935
Email: [EMAIL PROTECTED]
Url: www.edulib.ro


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Tomcat 4.0.1 Dreamweaver 4.01 using WebDAV too slow

2002-02-01 Thread Nikola Milutinovic

 I have configured the HTTP 1.0 connector. It works as fast as I expected to 
GET-ing the site and pages . However I 
 still get some problems.
 
 1. PUT the files does not work showing error that the files are locked.
 
 
 2. GET of JSP pages executes the pages and then returns the HTML content instead of 
JSP Source. I have tried to 
 disable the JSP Servlet I was able to get the source. But not being able to preview 
tehe executed content. how can I 
 view JSP source  with webdav and preview HTML content with browser. (Is it possible 
to have two web.xml running in 
 the same tomcat program and website files?)

Which version of Dreamveawer are you using? I tried 4.01 with Apache/mod_dav, but it 
wouldn't upload...

Nix.



RE: Can I use the Hotspot JVM to run tomcat

2002-02-01 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Antony Stace [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 2:57 AM
 To: Tomcat Users List
 Subject: Re: Can I use the Hotspot JVM to run tomcat
 
 
 With java included with JDK1.4 there is an option
 
 -server
 
 from the man page it says
 
 -server Selects the Java HotSpot server VM.
 
 In the file /etc/bin/dtomcat4 there is no mention of hotspot or 
 server, it has
 
 
 JPDA_OPTS=-classic -Xdebug -Xnoagent 
 -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
 
 which I presume means that java is started with the -classic 
 option.  On inspection of the
 man page for java there is no mention of the option classic. 
 Can someone please tell me what this
 classic option is doing?  Can I change this to server and it 
 will use the hotspot VM.
 

I'm not familiar with JPDA, but AFAIK its all about debugging,
and since Hotspot VM isn't suitable for debugging and classic VM is
they use -classic.
If you use startup script without debug options Tomcat runs in 
default (Hotspot) VM.

 Cheers
 
 Tony
 
  
 
 

Anton

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problems with .exe install for NT

2002-02-01 Thread Anton Brazhnyk

Hi,

 -Original Message-
 From: Tom Bednarz [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 10:01 AM
 To: Tomcat Users List
 Subject: Re: Problems with .exe install for NT
 
 
 Hello Anton,
 
 
  I've found a link at tomcat-dev
  (JavaService -
 http://www.alexandriasc.com/software/JavaService/index.html)
  I posted it here couple of days ago in that old thread you asked for it
 last time.
  Mayby I should have posted it to you directly, sorry.
 
 
 Many thanks for that link! Unfortunately it seems the site is not 
 up. I get
 an under construction if I look at http://www.alexandriasc.com or 
 I get the
 photo of a baby! Probably the site belongs to a happy new daddy 
 which has no
 time to write software anymore!
 

Sorry again, I couldn't check the link do to some security in out company.
I've got only couple of sites opened, and alexandriasc.com surely isn't in that list.

 Tom
 
 

Anton.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem porting webapp from Orion / Resin to Tomcat 4.0.1

2002-02-01 Thread Wolfram Laube

Hi,

This is my first posting on this list, so I hope I meet
the communication standards (if not, just beat me up (verbally)).

I had to develop an application that generates dynamic
XML out of DB content via JSPs; the JSPs' output
is passed through a Servlet 2.3 filter and transformed into
whatever format the requesting device is able to display.
Customer chose Resin 2.04, and all worked fine
(Orion 1.5.3's OK, too.)

New customer has objected to use any of these JSP-Engines
but wants Tomcat as deployment target, so I tried porting
it to Tomcat, but am experiencing the following massive
trouble:
Trying to tweak the content type of the response
from text/xml to e. g. text/html simply has no effect;
the transformed output comes as text/xml to the browser,
which will
a) ask what to do with page of type text/xml, if not XML-enabled
b) get stuck in a parse exception, if XML-enabled
(since the transformed content isn't well formed XML,
but e.g. HTML)

The relevant portions of the filter code are the following:

public void doFilter(ServletRequest request, ...)
throws IOException, ServletException
{
OutputStream out = response.getOutputStream();
GenericResponseWrapper wrapper =
new GenericResponseWrapper((HttpServletResponse)response);
chain.doFilter(request,wrapper);

String s;
if((s = wrapper.getContentType()) != null)
{
if(s.indexOf(text/xml) = 0)
{
response.setContentType(text/html); // THIS DOESN'T
WORK

String media = null, title = null, charset = null;
InputStream xmlStream = null;
Source xmlSource = null;
Source xslSource = null;
try
{
//... transform XML and write into output...


response.setContentLength(charArrayWriter.toString().length());
out.write(charArrayWriter.toString().getBytes());

out.flush();

//... close XML Stream and the like...
}
catch (TransformerException e)
{
out.write(e.getMessage().getBytes());
out.flush();
}
}
else
{
response.setContentType(s);
out.write(wrapper.getData());
out.flush();
}
}
out.close();
response.flushBuffer();
}


Has anyone experienced the like? What am I doing wrong?

Thanks,
Wolfram



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Where's the MemeryRealm user-info stored?

2002-02-01 Thread Michel

Howdy y'all

I've enabled a Tomcat 4.0.1 memory realm for protecting parts of my website
with a username/password.

When I try to access the protected JSPs I get this ugly Windows/IE
login-window.

What I would like to do is to create a HTML/JSP form where the user can
enter his login credentials beforehand, so that the standard Windows/IE
login-window isn't shown anymore when he's accessing the protected area but
instead the credentials already entered should be used. Based on this info,
I would also like to hade/show some parts of my website.

Any idea how to store the credentials so that the Memory Realm can make use
of it?

gr. Michel


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP/Servlet Hosting

2002-02-01 Thread Michel

 Hello All,
 
 I am looking for a JSP/Servlet provider that offers:
 
 350 MB web space
 25 GB bandwidth per month
 mySQL included
 
 for around $25 US per month.  Ideally something like
 
 http://www.communitech.net/products/virtual/unix/comparisons/
 
 but with JSP/Servlet hosting?
 
 Am I asking for too much?
Could be. Servlets.net offers 100MB / 3GB / mySql for $100

gr. Michel

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP/Servlet Hosting

2002-02-01 Thread Allan Kamau

You have have a look at www.aoindustries.com
They everything you've asked for including 1GB of disk
space at only $30. And the best part is that they
offer Servlet 2.3 hosting on TC 4.0.1 I think they are
the first ISP to do this.
You can even get J2EE hosting for just $50 per month
on JBoss.

I hope this helps.


Allan Kamau.
Nairobi.

--- Michel [EMAIL PROTECTED] wrote:
  Hello All,
  
  I am looking for a JSP/Servlet provider that
 offers:
  
  350 MB web space
  25 GB bandwidth per month
  mySQL included
  
  for around $25 US per month.  Ideally something
 like
  
 

http://www.communitech.net/products/virtual/unix/comparisons/
  
  but with JSP/Servlet hosting?
  
  Am I asking for too much?
 Could be. Servlets.net offers 100MB / 3GB / mySql
 for $100
 
 gr. Michel
 
 --
 To unsubscribe:  
 mailto:[EMAIL PROTECTED]
 For additional commands:
 mailto:[EMAIL PROTECTED]
 Troubles with the list:
 mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat/Apache acces control

2002-02-01 Thread Julien OIX

hi everybody,

I have a question about access control using the Tomcat/Apache service,
with the WARP connector


in httpd.conf, when I only keep (out of the VH's section),

Directory /
AllowOverride None
Order Allow,Deny
Deny from all
/Directory

I still can access the site;

Do I have to put these lines in my VH's section ? 
Does Tomcat have priority for access control ?

if it does, how do I configure access control ? with which parameters ?
in web.xml or server.xml ?

I'm using RedHat 7.1, apache 1.3.22, mod_webapp and Tomcat 4.0.1


thanks in advance
-- 
Julien OIX
Service Informatique de Gestion
Tél: 02 40 99 83 65
mail: [EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Getting Tomcat to generate DocumentRoot in mod_jk.conf

2002-02-01 Thread Larry Isaacs

The default in Tomcat 3.3's generated mod_jk.conf is to not
attempt to override Apache's htdocs with Tomcat's ROOT.
Usually this requires a little manual intervention before it
will work successfully.  First, a choice must be made as to
who will be the ROOT context, Apache's htdocs or Tomcat's
ROOT.

In your case, it looks like you want to use Tomcat's ROOT.
To do this, add:

noRoot=false

to the ApacheConfig ... / entry in server.xml and then regenerate
conf/auto/mod_jk.conf using the jkconf startup option.  Another
default is to forward all context requests to Tomcat.  This allows
any behavior defined in the web.xml to function properly.  However,
if you prefer Apache to serve static content, also add:

forwardAll=false

to the ApacheConfig ... / entry and regenerate mod_jk.conf.
Assuming you aren't using virtual hosts, you will also need to
manually change the DocumentRoot directive in Apache's httpd.conf
to point to Tomcat's ROOT webapp directory.  The mod_jk.conf isn't
able to override this setting.

Cheers,
Larry 

 -Original Message-
 From: Joe Emenaker [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 5:06 PM
 To: Tomcat Users List
 Subject: Getting Tomcat to generate DocumentRoot in mod_jk.conf
 
 
 I originally posted this in a thread that was pretty much 
 dead... so I think
 it got ignored. Here it is again with a more appropriate subject line.
 
 When I make a webapp in Tomcat 3.3 and define a ROOT context, 
 it doesn't put
 any DocumentRoot statement in the auto-generated mod_jk.conf.
 
 Basically, I'm trying to be able to do all configuration for 
 a virtual host
 with an AutoWebApp entry in Tomcat's server.xml. I want 
 everything Apache
 needs (DocumentRoot, JkMounts, the deny entries for WEB-INF
 everything) to be autogenerated by Tomcat.
 
 Does anyone know of a way to make it do this?
 
 - Joe
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: J2EE 1.3 RI + Tomcat 4.0.1

2002-02-01 Thread Matthew

Hi Craig,

That's the problem: I NEED separate instance of Tomcat. So I am repeating
the question once more:

Were anyone succesfull in deploying EAR application on J2EE RI + Tomcat
combination. That means using RI as EJB container and Tomcat as Web
container? If so send detail spec here plz...

- Original Message -
From: Craig R. McClanahan [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 4:34 PM
Subject: Re: J2EE 1.3 RI + Tomcat 4.0.1


 The J2EE RI already has Tomcat built inside it -- you don't need a
 separate instance.  Simply follow the RI's documentation for deploying an
 EAR, and you'll be running your app on Tomcat.

 Craig



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: which is the current directory for Tomcat Server?

2002-02-01 Thread Larry Isaacs

I believe the current directory will vary depending on how
Tomcat is started.  Using getRealPath(), which gives you
the path of the webapp's base directory, will be much more
reliable.

Cheers,
Larry

 -Original Message-
 From: timothy [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 11:38 PM
 To: Tomcat Users List
 Subject: Re: which is the current directory for Tomcat Server?
 
 
 %TOMCAT_HOME%\bin
 
 From Timothy
 - Original Message -
 From: Santosh Varghese [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Friday, February 01, 2002 6:37 AM
 Subject: which is the current directory for Tomcat Server?
 
 
  Hi,
 
  I  wanted  to  read  some txt  file  from  the  current 
 directory  for
  tomcat  server. But  I  am  unable  to  find  out  the  current
 directory.
  Please help me  out
 
  Regards,
  Santosh
 
 
 
 
  --
  To unsubscribe:   
 mailto:[EMAIL PROTECTED]
  For additional commands: 
 mailto:[EMAIL PROTECTED]
  Troubles with the list: 
 mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Larry Isaacs

You need to examine Tomcat 4.0.1's bin\catalina.bat to see the
Java command used to start Catalina.  You must then
update the Java command created by the wrapper.properies
file to create the same command.  The error shown below is
including Tomcat 3.2.x's list of jars and startup class which
aren't going to work with Catalina.

Cheers,
Larry

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Thursday, January 31, 2002 5:57 PM
 To: [EMAIL PROTECTED]
 Subject: Jakarta NT service error
 
 
 Got NT service installed but it wont start getting the error 
 below; none of these jar files were on the server so I copied 
 them from another box to this the paths listed in the error 
 and that didnt do anything
 
 -Thanks
 
 
 c:\Javajk_nt_service -s tomcat
 Asked (and given) winsock 1.1
 
 c:\jdk1.2.2\bin\java.exe -classpath 
 c:\jakarta-tomcat-4.0.1\classes; 
 c:\jakarta-tomcat-4.0.1\lib\jaxp.jar; 
 c:\jakarta-tomcat-4.0.1\lib\parser.jar; 
 c:\jakarta-tomcat-4.0.1\lib\webserver.jar; 
 c:\jakarta-tomcat-4.0.1\lib\servlet.jar; 
 c:\jakarta-tomcat-4.0.1\lib\jasper.jar; 
 c:\jakarta-tomcat-4.0.1\lib\tools.jar; 
 c:\jakarta-tomcat-4.0.1\lib\classes.zip 
 org.apache.tomcat.startup.Tomcat -config 
 c:\c:\jakarta-tomcat-4.0.1\conf\server.xml -home 
 c:\jakarta-tomcat-4.0.1Error: Can not create new process - 
 The filename, directory name, or volume label syntax is 
 incorrect (0x7b)
 
 
 -- 
 
 ___
 Sign-up for your own FREE Personalized E-mail at Mail.com
 http://www.mail.com/?sr=signup
 
 Win a ski trip!
 http://www.nowcode.com/register.asp?affiliate=1net2phone3a
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat3.3 java policy codebase

2002-02-01 Thread Larry Isaacs

Have you tried adding the permission to Tomcat's conf/tomcat.policy
file?

Cheers,
Larry

 -Original Message-
 From: David Dascalescu [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 4:58 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Tomcat3.3  java policy  codebase
 
 
 Hello,
 For Tomcat3.3 how can I assign permissions to individual jar 
 files in the
 /WEB-INF/lib/ directory, for example, I would like something 
 like this:
  grant codeBase 
 file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/- {
   permission java.net.SocketPermission 
 dbhost.mycompany.com:5432, connect;
  };
 Is it possible in Tomcat3.3?
 If not, can someone suggest a workaraound?
 
 
 Regards,
 
 David Dascalescu
 Project Manager
 EduLib Soft, srl
 Craiova, Romania
 
 Tel: + 40 51 413496
 Fax: + 40 51 418935
 Email: [EMAIL PROTECTED]
 Url: www.edulib.ro
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat3.3 java policy codebase

2002-02-01 Thread David Dascalescu

Of course, I tried. conf/tomcat.policy was the test ground.

On Fri, 1 Feb 2002, Larry Isaacs wrote:

 Have you tried adding the permission to Tomcat's conf/tomcat.policy
 file?

 Cheers,
 Larry

  -Original Message-
  From: David Dascalescu [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 4:58 AM
  To: [EMAIL PROTECTED]
  Subject: Re: Tomcat3.3  java policy  codebase
 
 
  Hello,
  For Tomcat3.3 how can I assign permissions to individual jar
  files in the
  /WEB-INF/lib/ directory, for example, I would like something
  like this:
   grant codeBase
  file:${catalina.home}/webapps/examples/WEB-INF/lib/driver.jar!/- {
permission java.net.SocketPermission
  dbhost.mycompany.com:5432, connect;
   };
  Is it possible in Tomcat3.3?
  If not, can someone suggest a workaraound?
 
 
  Regards,
 
  David Dascalescu
  Project Manager
  EduLib Soft, srl
  Craiova, Romania
 
  Tel: + 40 51 413496
  Fax: + 40 51 418935
  Email: [EMAIL PROTECTED]
  Url: www.edulib.ro
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat Crash on Win2K

2002-02-01 Thread Randy Layman


One of our clients has recently upgraded the computer system that
runs our application (which is based on Tomcat) from Windows NT 4 to Windows
2000.  Under NT 4 our application never crashed.  In the past week it has
crashed twice.  Both times an error about a non-fatal JIT error was written
to the jvm.stderr log file at the approximate time of the crash.  The error
is:
A nonfatal internal JIT (3.10.107(x)) error 'Structured Exception(c005)'
has occurred in : 
  'org/apache/tomcat/session/StandardSession.expire ()V': Interpreting
method.

Followed by a complete stack trace for each thread in the system at the time
of the crash.

We are running :
* Windows 2000 (unknown service pack level).
* Java -fullversion gives JDK-1.2.2-W
* Accessing SQL Server 2000 using INetSoftware's database drivers
* No ODBC usage

Any thoughts?  Does this version of the JDK have problems on Windows
2K?

Randy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Crash on Win2K

2002-02-01 Thread Guido Medina

Try the lastest release of Sun JDK, remember to unistall first the other one
and install this on the same dir, so you won't have to change too many
configuration issues...

Guido.

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 8:53 AM
To: '[EMAIL PROTECTED]'
Subject: Tomcat Crash on Win2K



One of our clients has recently upgraded the computer system that
runs our application (which is based on Tomcat) from Windows NT 4 to Windows
2000.  Under NT 4 our application never crashed.  In the past week it has
crashed twice.  Both times an error about a non-fatal JIT error was written
to the jvm.stderr log file at the approximate time of the crash.  The error
is:
A nonfatal internal JIT (3.10.107(x)) error 'Structured Exception(c005)'
has occurred in : 
  'org/apache/tomcat/session/StandardSession.expire ()V': Interpreting
method.

Followed by a complete stack trace for each thread in the system at the time
of the crash.

We are running :
* Windows 2000 (unknown service pack level).
* Java -fullversion gives JDK-1.2.2-W
* Accessing SQL Server 2000 using INetSoftware's database drivers
* No ODBC usage

Any thoughts?  Does this version of the JDK have problems on Windows
2K?

Randy


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



RE: Dynamic Loading Of Changed Classes

2002-02-01 Thread Larry Isaacs

If reloadable=true doesn't work, there isn't any more
you can do.  I don't believe the reload implemented by
Tomcat 3.2.x is very reliable, though I haven't played
enough with that feature in Tomcat 3.2.x to give you much
detail.  Both Tomcat 3.3 and I believe Tomcat 4.x restart
the web application when changes are detected which is much
more successful.  You might consider upgrading.

Note: In Tomcat 3.3(a), the URLClassLoader used for the 
webapp classloader has problems with jar reloading (see
Bugs 3644 and 5684).  The current Tomcat 3.3.1-dev has a
workaround to deal with this.  Adding use11Loader=true
to the LoaderInterceptor11 entry will cause the webapp
classloader to be the internal SimpleClassLoader normally
used when running in JDK 1.1.8 environments.  The
SimpleClassLoader doesn't suffer from the problems found
in URLClassLoader and is able to reload jars successfully.

Cheers,
Larry

 -Original Message-
 From: Hargurjit Singh Malhi [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:30 AM
 To: [EMAIL PROTECTED]
 Subject: Dynamic Loading Of Changed Classes
 
 
 
 Hi All,
 I am using tomcat-3.2.4
 
 I have a XmlRpc servlet deployed and this in turn accesses 
 other classes(by 
 importing that package)...
 
 According to Tomcat documentation setting of the reloadable 
 variable in 
 server.xml affects the fact whether Tomcat is able to load 
 the recent class 
 file or notbut this is applicable to classes in 
 Web-inf\classes and 
 to Jars in Web-
 inf\lib.
 
 Can any one please tell me how can I make the Tomcat to load 
 the recent 
 version of other class files(in the package that is imported 
 in the servlet) 
 that the servlet invokes.also I have a properties file(in 
 the same 
 package) do I need to restart the server everytime I 
 make a change 
 in this properties file
 
 Any suggestions are welcome...
 
 Malhi
 
 
 
 _
 MSN Photos is the easiest way to share and print your photos: 
 http://photos.msn.com/support/worldwide.aspx
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




OT: jsp question about uploading images to a database

2002-02-01 Thread Magnus Jansson

I want to insert images into a database via http and jsp pages. Does anyone have any 
experience or tips how to do that


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




classes NOT in WEB-INF/classes or CATALINE_HOME/classes

2002-02-01 Thread Dave Ford

From my understanding of Tomcat, unjar'd classes should be placed in
WEB-INF/classes for ONE web app, and  CATALINA_HOME/classes for shared
access by ALL webapps (correct me if I'm wrong).

Here is what I would like to do: make an un-jar'd class library available to
ONE or ALL web apps. And NOT place them in pre-designated directories.
Reason: I have a development box that runs Tomcat, Orion Server and Web
Logic. It also runs non-webapps. I have a common set of classes used by all.
Don't want to maintain multiple copies of the common class library.

I understand that a webapp is supposed to be a self contained deployment
unit, but it seems that classes should, optionally, be allowed in user
defined paths. In Orion Server, this can be accomplished by adding a
classpath entry to orion-web.xml (one web app) or server.xml (all web-apps).
How can this be done in Tomcat?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.comave


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: classes NOT in WEB-INF/classes or CATALINE_HOME/classes

2002-02-01 Thread Cressatti, Dominique

I can't answer directly to your question
but here are some avenues that you might to
explore.

Here is some of the stuff I've learned so far.

You can modify the class path and append the directory
where your common classes live.

In the context section (either your apps-YourApp.xml
4 tomcat3 or server.xml 4 tomcat4)

path= only refer to the URL under which your app will
published will docbase= refer to where your app physically
lives (which I think doesn't have to be under /webapps).

And lastely may be there something that can be done in
web.xml

Dom



-Original Message-
From: Dave Ford [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 14:15
To: [EMAIL PROTECTED]
Subject: classes NOT in WEB-INF/classes or CATALINE_HOME/classes


From my understanding of Tomcat, unjar'd classes should be placed in
WEB-INF/classes for ONE web app, and  CATALINA_HOME/classes for shared
access by ALL webapps (correct me if I'm wrong).

Here is what I would like to do: make an un-jar'd class library available to
ONE or ALL web apps. And NOT place them in pre-designated directories.
Reason: I have a development box that runs Tomcat, Orion Server and Web
Logic. It also runs non-webapps. I have a common set of classes used by all.
Don't want to maintain multiple copies of the common class library.

I understand that a webapp is supposed to be a self contained deployment
unit, but it seems that classes should, optionally, be allowed in user
defined paths. In Orion Server, this can be accomplished by adding a
classpath entry to orion-web.xml (one web app) or server.xml (all web-apps).
How can this be done in Tomcat?

Dave Ford
Smart Soft - The Developer Training Company
http://www.smart-soft.comave


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tomcat Performance on lower tier Win machines

2002-02-01 Thread Julian Bleecker

Greetings,

Was wondering if any users have had experience or insights on Tomcat running
on lower tier Windows boxes - things along the lines of Win 95, 98, with low
to medium powered CPUs.  For instance, PII, Celeron, maybe 300MHz or less,
with minimal RAM (128MB).

I'm curious because we are considering using Tomcat as a simple application
server for a small desktop application.

It may very well be overkill; perhaps others have insights into other (HTTP)
web servers that are more appropriate.

Thanks.

Julian Bleecker



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JSP/Servlet Hosting

2002-02-01 Thread James C. McMaster (Jim)

In message 036701c1aadf$4b616eb0$[EMAIL PROTECTED], Andrew Bruno 
sai
d:

 Hello All,
 
 I am looking for a JSP/Servlet provider that offers:
 
servlets.com offers a list of servlet ISPs at:

http://www.servlets.com/isps/servlet/ISPViewAll

-- 
Jim McMaster
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat Performance on lower tier Win machines

2002-02-01 Thread Randy Layman


We use a lower end NT machine (PII 300 MHz w/128MB RAM) for testing
out applications.  The performance is generally slower than higher end
machines, but its acceptable for a small number of users.  (The reason we do
this is to make finding bottlenecks easier - it there are fewer resources to
consume then you consume them faster.)

Randy


 -Original Message-
 From: Julian Bleecker [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 10:32 AM
 To: [EMAIL PROTECTED]
 Subject: Tomcat Performance on lower tier Win machines
 
 
 Greetings,
 
 Was wondering if any users have had experience or insights on 
 Tomcat running
 on lower tier Windows boxes - things along the lines of Win 
 95, 98, with low
 to medium powered CPUs.  For instance, PII, Celeron, maybe 
 300MHz or less,
 with minimal RAM (128MB).
 
 I'm curious because we are considering using Tomcat as a 
 simple application
 server for a small desktop application.
 
 It may very well be overkill; perhaps others have insights 
 into other (HTTP)
 web servers that are more appropriate.
 
 Thanks.
 
 Julian Bleecker
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: jsp question about uploading images to a database

2002-02-01 Thread Marc Ostrow

http://www.servlets.com/cos/index.html

These classes will get you the upload part.

-Original Message-
From: Magnus Jansson [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:20 AM
To: [EMAIL PROTECTED]
Subject: OT: jsp question about uploading images to a database

I want to insert images into a database via http and jsp pages. Does anyone
have any experience or tips how to do that


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Problem with Manager App

2002-02-01 Thread Harry Long

Hi I just wonder anyone can please tell me how I should configure 
the Manager App. There is no any problem of using Manager App 
when Tomcat is running as a stand alone server. But when I run it 
under Apache and using MOD_WEBAPP as connnector. I got 
some inner problem. These are the error messages when I run the Manager App.
(I tried to reload a servlet via Manager App. Even I have set reloadable
attribute
to 'true' in the context, it doesn't work at all for me. I am running Tomcat
4.0.1
under Apache1.3.22 on Linux 7.2 )

message Internal Server Error
description The server encountered an internal error (Internal Server Error)
that prevented it from fulfilling this request.

java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.ManagerServlet is privileged and cannot be
loaded by this web application
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:836)
at
org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:615)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:214)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:201)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase
.java:518)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:163)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(WarpRequestHand
ler.java:215)
at
org.apache.catalina.connector.warp.WarpConnection.run(WarpConnection.java:19
4)
at java.lang.Thread.run(Thread.java:484)

Many thanks for any help you can give.



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP/Servlet Hosting

2002-02-01 Thread Loïc Lefèvre

These two sites offer servlets hosting:

- www.mycgiserver.com
- www.webappcabaret.com

Loïc Lefèvre

-Message d'origine-
De : James C. McMaster (Jim) [mailto:[EMAIL PROTECTED]]
Envoyé : vendredi 1 février 2002 16:35
À : Tomcat Users List
Objet : Re: JSP/Servlet Hosting


In message 036701c1aadf$4b616eb0$[EMAIL PROTECTED], Andrew Bruno
sai
d:

 Hello All,

 I am looking for a JSP/Servlet provider that offers:

servlets.com offers a list of servlet ISPs at:

http://www.servlets.com/isps/servlet/ISPViewAll

--
Jim McMaster
mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: JSP/Servlet Hosting

2002-02-01 Thread Marc G. Fournier


We offer Virtual Machine hosting, so you can run whatever version of
Jakarta-tomcat and accessories as you wish ... we have several v3.x and
v4.x clients currently ... check us out at:

http://www.hub.org



On Fri, 1 Feb 2002, [iso-8859-1] Loïc Lefèvre wrote:

 These two sites offer servlets hosting:

 - www.mycgiserver.com
 - www.webappcabaret.com

 Loïc Lefèvre

 -Message d'origine-
 De : James C. McMaster (Jim) [mailto:[EMAIL PROTECTED]]
 Envoyé : vendredi 1 février 2002 16:35
 À : Tomcat Users List
 Objet : Re: JSP/Servlet Hosting


 In message 036701c1aadf$4b616eb0$[EMAIL PROTECTED], Andrew Bruno
 sai
 d:

  Hello All,
 
  I am looking for a JSP/Servlet provider that offers:
 
 servlets.com offers a list of servlet ISPs at:

 http://www.servlets.com/isps/servlet/ISPViewAll

 --
 Jim McMaster
 mailto:[EMAIL PROTECTED]



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: why use mod_webapp?

2002-02-01 Thread RSEQUEIRA


Dave North, Ralph,
I admit I totally missed the Redirect directive in Apache. And never
thought about the virtual ip/port. Learnt something. Well atleast this may
be right:- Don't believe everything that's on this list (till you have
tried it out)...and certainly not me! :-)
RS





Ralph Einfeldt [EMAIL PROTECTED] on 02/01/2002 02:09:37 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   Tomcat Users List [EMAIL PROTECTED]
cc:

Subject:  AW: why use mod_webapp?

Most points in this discussion are not true.

Tomcat has not to listen on port 8080. Just define a second
virtual ip an use port 80 on that ip. So you wouldn't get any
problems with firewalls.

You don't have to provide html pages to redirect. You can do it
with mod_alias. With that you don't need anything complicated to
do the redirect. (Especially no JavaScript)

 Redirect /servlet second ip/domainname
 RedirectMatch *.jsp second ip/domainname/$1.jsp

This is as simple as the configuration of mod_jk.
(With mod_webapp I'm not so familiar)

The arguments I accept are:
  - 2 Requests instead of one.
  - SSL handling of apache is more efficient.
  - Linking between html and jsp pages is more complicated.
If you want to link from a jsp to a html page you have to use
the domainname or the ip of the apache server in the link url.
  - Simpler user experience. With redirect the url in the location bar
changes each time you follow a link from a html page to a jsp and
vice versa. (This will not happen if you use a framed page.)
  - With mod_webapp you loose the aibility to define serveral setting
just on the tomcat side. You have to define serveral things in
apache
also.
  - If the user disabled cookies you will loose the session each time
you follow a link from a html page to a jsp and vice versa.

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 31. Januar 2002 22:05
 An: Tomcat Users List
 Betreff: Re: why use mod_webapp?
snip/
 1) First Apache can handle only static pages (and ofcourse SSI). So a
 redirect would mean a client side redirect. And that is with a META
 Refresh= or a via Javascript window.location. The
snip/
2) You need to keep track of which servlet (or jsp) to redirect to. So
this
mean a complex html page with a lot of javascript if you plan to use a
single redirect page.
snip/

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




servlet url at init time

2002-02-01 Thread joseph . vallot


Hello all,

I would like to know the URL of a servlet _in its init method_:
I need it to know how it is called without having to tell it via a
config file...
I know how to get it when dealing with doGet or doPost, but can't
find any api at init time :(

did I miss something?

thanks
--
Joseph




This message and any attachments (the message) is
intended solely for the addressees and is confidential. 
If you receive this message in error, please delete it and 
immediately notify the sender. Any use not in accord with 
its purpose, any dissemination or disclosure, either whole 
or partial, is prohibited except formal approval. The internet
can not guarantee the integrity of this message. 
BNP PARIBAS (and its subsidiaries) shall (will) not 
therefore be liable for the message if modified. 

-

Ce message et toutes les pieces jointes (ci-apres le 
message) sont etablis a l'intention exclusive de ses 
destinataires et sont confidentiels. Si vous recevez ce 
message par erreur, merci de le detruire et d'en avertir 
immediatement l'expediteur. Toute utilisation de ce 
message non conforme a sa destination, toute diffusion 
ou toute publication, totale ou partielle, est interdite, sauf 
autorisation expresse. L'internet ne permettant pas 
d'assurer l'integrite de ce message, BNP PARIBAS (et ses
filiales) decline(nt) toute responsabilite au titre de ce 
message, dans l'hypothese ou il aurait ete modifie.


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




getting manager app to only work on specified webapps

2002-02-01 Thread tmarti34

 The situation arises where there are several servlet  curators, each
not wanting the other to have the ability to stop or reload his/her webapp,
but at the same time, each desiring the capabilities of the manager app to
maintain their own webapps.  Is there any way to configure tomcat or the
manager so that a user can utilize the manager app only for his or her
specific webapps?

Tim


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




AW: AW: why use mod_webapp?

2002-02-01 Thread Ralph Einfeldt

Just recognised an error in my own argumentation.

So don't beleave me either.

The loss off session as I described below, will happen 
with the redirect and the connector. So if you need
sessions and can't garantee that cookies are enabled
you shouldn't have links from html pages to jsp pages
and back. (Even if you don't care for session, you 
should do something, otherwise your system will suffer 
under high ressource utilisation because there are so 
many sessions open)

 -Ursprüngliche Nachricht-
 Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 1. Februar 2002 17:05
 An: Tomcat Users List
 Betreff: Re: AW: why use mod_webapp?

 Don't believe everything that's on this list (till you have
 tried it out)...and certainly not me! :-)

- If the user disabled cookies you will loose the session each
time
  you follow a link from a html page to a jsp and vice versa.

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: mm.mysql driver

2002-02-01 Thread Jean-Luc BEAUDET

Galbayar a écrit :

 copy jar files into $JAVA_HOME/jre/lib/ext directory
 or put jar files into $CLASSPATH variable

 - Original Message -
 From: Stephen Clarke [EMAIL PROTECTED]
 To: tomcat [EMAIL PROTECTED]
 Sent: Tuesday, January 29, 2002 08:41
 Subject: mm.mysql driver

  Can anyone help me set up the MySQL drivers for Java. I have it working in
  stand alone programs. But in Tomcat  I get error message
 
  org.gjt.mm.mysql.Driver
 
  which is supposed to be the name of the driver.
 
  Grateful for any assistance. Thanks.
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

Do yu really live in the year 2003 ?

It's really amazing...




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Custom Realm Implementation

2002-02-01 Thread Renato Romano

I'm trying to write my own Realm but have some problems...
MyRealm extends JDBCRealm, overrides the authenticate method(Connection,
String, String)
and returns a CustomPrincipal which is My own implementation of Principal;

When I try to log in, a get a User userName successfully authenticated
message on the log, but the browser shows me a 403 error (You are not
allowed ...)

Any idea ?
Any document showing the process in details ?
Thanks

Renato


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




tomcat + apache webapps

2002-02-01 Thread Doremieux, Olivier

Is there some way to not put my application in the apache/webapps directory?

 
I am using Tomcat 4.0.1  apache 1.3.22
 
Thanks
 
Olivier Dorémieux




RE: Problem with Manager App

2002-02-01 Thread Cox, Charlie

you need to define the manager context for each virtual host. 

also make sure it has privileged=true

Charlie

 -Original Message-
 From: Harry Long [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 10:42 AM
 To: [EMAIL PROTECTED]
 Subject: Problem with Manager App
 
 
 Hi I just wonder anyone can please tell me how I should configure 
 the Manager App. There is no any problem of using Manager App 
 when Tomcat is running as a stand alone server. But when I run it 
 under Apache and using MOD_WEBAPP as connnector. I got 
 some inner problem. These are the error messages when I run 
 the Manager App.
 (I tried to reload a servlet via Manager App. Even I have set 
 reloadable
 attribute
 to 'true' in the context, it doesn't work at all for me. I am 
 running Tomcat
 4.0.1
 under Apache1.3.22 on Linux 7.2 )
 
 message Internal Server Error
 description The server encountered an internal error 
 (Internal Server Error)
 that prevented it from fulfilling this request.
 
 java.lang.SecurityException: Servlet of class
 org.apache.catalina.servlets.ManagerServlet is privileged and 
 cannot be
 loaded by this web application
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
 java:836)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:615)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:214)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:201)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
 henticatorBase
 .java:518)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2344)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:164
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java
 :163)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.warp.WarpRequestHandler.handle(W
 arpRequestHand
 ler.java:215)
   at
 org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
 ection.java:19
 4)
   at java.lang.Thread.run(Thread.java:484)
 
 Many thanks for any help you can give.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: AW: AW: Job situation in the US

2002-02-01 Thread Micael Padraig Og mac Grene

Thanks for responding.  I get nothing with those search parameters.

At 09:59 AM 2/1/02 +0100, you wrote:
Jobserve also includes a lot of german jobs because of German recruitment is
done from within the UK.
You also have the advantage to being able to talk English with those guys.
Just sarch for something like Java and German or Java and Frankfurt and so
on..!

Nevertheless you could try www.jobpilot.de and www.monster.de, too.

Oliver





--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Manager App

2002-02-01 Thread Harry Long

Hi Cox,

Thanks for your answer. But I did do that and it does not work at all.

In my server.xml , I have :
Context path=/manager docBase=manager debug=0 privileged=true /

In my apache httpd.conf, I have:

WebAppDeploy manager WarpConnection /manager.

But when I try to run http://localhost/manager?list it crashed and I got
that
inner error.  Would you please tell me how you make it works ?

Many thanks
Harry

-Original Message-
From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 10:19 AM
To: 'Tomcat Users List'
Subject: RE: Problem with Manager App


you need to define the manager context for each virtual host. 

also make sure it has privileged=true

Charlie

 -Original Message-
 From: Harry Long [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 10:42 AM
 To: [EMAIL PROTECTED]
 Subject: Problem with Manager App
 
 
 Hi I just wonder anyone can please tell me how I should configure 
 the Manager App. There is no any problem of using Manager App 
 when Tomcat is running as a stand alone server. But when I run it 
 under Apache and using MOD_WEBAPP as connnector. I got 
 some inner problem. These are the error messages when I run 
 the Manager App.
 (I tried to reload a servlet via Manager App. Even I have set 
 reloadable
 attribute
 to 'true' in the context, it doesn't work at all for me. I am 
 running Tomcat
 4.0.1
 under Apache1.3.22 on Linux 7.2 )
 
 message Internal Server Error
 description The server encountered an internal error 
 (Internal Server Error)
 that prevented it from fulfilling this request.
 
 java.lang.SecurityException: Servlet of class
 org.apache.catalina.servlets.ManagerServlet is privileged and 
 cannot be
 loaded by this web application
   at
 org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
 java:836)
   at
 org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
 per.java:615)
   at
 org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
 rapperValve.ja
 va:214)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContextValve.invoke(StandardC
 ontextValve.ja
 va:201)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
 henticatorBase
 .java:518)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardContext.invoke(StandardContex
 t.java:2344)
   at
 org.apache.catalina.core.StandardHostValve.invoke(StandardHost
 Valve.java:164
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
 spatcherValve.
 java:170)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
 Valve.java:170
 )
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 64)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
 gineValve.java
 :163)
   at
 org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
 ipeline.java:5
 66)
   at
 org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
 ine.java:472)
   at
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
   at
 org.apache.catalina.connector.warp.WarpRequestHandler.handle(W
 arpRequestHand
 ler.java:215)
   at
 org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
 ection.java:19
 4)
   at java.lang.Thread.run(Thread.java:484)
 
 Many thanks for any help you can give.
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




triggering JSP page recompilation

2002-02-01 Thread Guillermo Payet


Hi,

I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
and all works well, except for an anoying little problem that I
can't figure out:

When someone modifies a file that's included from a JSP page with:
%@ include file=somefile%, this modification does not trigger
the recompilation of the including file.

There must be a configuration switch to turn this on.

Any clues?

--G


-- 
Guillermo Payet
O C E A NG R O U P
email: [EMAIL PROTECTED]
web: http://www.oceangroup.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: Problem with Manager App

2002-02-01 Thread Jean-Luc BEAUDET

Harry Long a écrit :

 Hi Cox,

 Thanks for your answer. But I did do that and it does not work at all.

 In my server.xml , I have :
 Context path=/manager docBase=manager debug=0 privileged=true /

 In my apache httpd.conf, I have:

 WebAppDeploy manager WarpConnection /manager.

 But when I try to run http://localhost/manager?list it crashed and I got
 that
 inner error.  Would you please tell me how you make it works ?

 Many thanks
 Harry

 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 10:19 AM
 To: 'Tomcat Users List'
 Subject: RE: Problem with Manager App

 you need to define the manager context for each virtual host.

 also make sure it has privileged=true

 Charlie

  -Original Message-
  From: Harry Long [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 10:42 AM
  To: [EMAIL PROTECTED]
  Subject: Problem with Manager App
 
 
  Hi I just wonder anyone can please tell me how I should configure
  the Manager App. There is no any problem of using Manager App
  when Tomcat is running as a stand alone server. But when I run it
  under Apache and using MOD_WEBAPP as connnector. I got
  some inner problem. These are the error messages when I run
  the Manager App.
  (I tried to reload a servlet via Manager App. Even I have set
  reloadable
  attribute
  to 'true' in the context, it doesn't work at all for me. I am
  running Tomcat
  4.0.1
  under Apache1.3.22 on Linux 7.2 )
 
  message Internal Server Error
  description The server encountered an internal error
  (Internal Server Error)
  that prevented it from fulfilling this request.
 
  java.lang.SecurityException: Servlet of class
  org.apache.catalina.servlets.ManagerServlet is privileged and
  cannot be
  loaded by this web application
at
  org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
  java:836)
at
  org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
  per.java:615)
at
  org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
  rapperValve.ja
  va:214)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  66)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContextValve.invoke(StandardC
  ontextValve.ja
  va:201)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  66)
at
  org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
  henticatorBase
  .java:518)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  64)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardContext.invoke(StandardContex
  t.java:2344)
at
  org.apache.catalina.core.StandardHostValve.invoke(StandardHost
  Valve.java:164
  )
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  66)
at
  org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
  spatcherValve.
  java:170)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  64)
at
  org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
  Valve.java:170
  )
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  64)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
  gineValve.java
  :163)
at
  org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
  ipeline.java:5
  66)
at
  org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
  ine.java:472)
at
  org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
  org.apache.catalina.connector.warp.WarpRequestHandler.handle(W
  arpRequestHand
  ler.java:215)
at
  org.apache.catalina.connector.warp.WarpConnection.run(WarpConn
  ection.java:19
  4)
at java.lang.Thread.run(Thread.java:484)
 
  Many thanks for any help you can give.
 
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

I guess this is because of the Privileged=true...

I've 

RE: tomcat + apache webapps

2002-02-01 Thread Cressatti, Dominique

I believe so.

create a context in server.xml
As an example see mine.
Context path=/CGI-BIN
docBase=webapps/lansa
debug=0
reloadable=true 
  SimpleRealm filename=conf/users/lansa-users.xml /
  LogSetter name=lansa_tc.log path=logs/lansa.log /
  LogSetter name=lansa_servlet_log
 path=logs/servlet_lansa.log
 servletLogger=true/
  /Context

/CGI-BIN refer to the name of your app and you can test it
by pointing your browser to http://localhost:8080/MyApp/servlet/YourServlet

webapps/lansa refer to where your app is physically located (in my case
under tomcat_home/webapps/lansa

Check that you can access your app as above 1st.
Once your happy you use WebAppDeploy to publish your app through apache,
eg:
...
WebAppDeploy YourAppName WarpConnection /AnyURLYouWant
if you point your browser to http://localhost/AnyURLYouWant/YourServlet
it should work as well.

Let me know if it's not clear

Dom



-Original Message-
From: Doremieux, Olivier [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 17:05
To: '[EMAIL PROTECTED]'
Subject: tomcat + apache  webapps


Is there some way to not put my application in the apache/webapps directory?

 
I am using Tomcat 4.0.1  apache 1.3.22
 
Thanks
 
Olivier Dorémieux


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




jsp:useBean / Scope Bug in 4.01 !

2002-02-01 Thread L Rutker

Hi,
The following is a bug I found using Tomcat 4.01 on NT4
The following code:

% if (request.getParameter(type)!= null  
request.getParameter(type).equals(user)) { %
jsp:useBean id=user class=com.rutker.UsrData scope=request/
% } else if(request.getParameter(type)!= null  
request.getParameter(type).equals(group)) { %
jsp:useBean id=group class=com.rutker.GpData scope=request/
% } %

should not be visible to the
jsp:getProperty name=user property=firstName /  tag  farther down the 
page because the useBean tag was declared in the if block, yet the 
jsp:getProperty tag can see it and works in Tomcat. I noticed the bug when I 
tried the above code on WL 6.1 on Linux and it didnt work. I think that WL 
has the proper implementation.
Is this the correct mailing list for this post?
Thanks
Lou R.

_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: /manager and mod_webapp connector

2002-02-01 Thread Cressatti, Dominique

I don't about manager but have you tried the examples
like
WebAppDeploy examples WarpConn /examples
and point your browser to 
http://localhost/examples/snoop

Does that work?

Dom

-Original Message-
From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 16:51
To: Tomcat Users List
Subject: /manager and mod_webapp connector


Hi everybody

I actually have some pb around /manager.

If i enter the URL http://localhost:8080/manager/list

All is OK. As i add a role - for testing - in the tomcat-users.xml file
i am then asked to enter a login/password issue to make the connection.

BUT when i do the same http://localhost:80/manager/list

i obtain an error 500 after quite a long time.

The config in Apache is

WebAppDeploy manager WarpConn /manager

Maybe this Directive is not available in Apache ?

Any help/ideas welcome.

Jean-Luc B :O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: why use mod_webapp?

2002-02-01 Thread Juan Carlos

Hi
the reason  i see is because you can have more power to extend your
application, and besides because it  relies on the multi-thier model
splitting the roles and leaving the work to the best app to solve it (apache
on static content) and tomcat on processing jsp's.

You can have several tomcats behind an apache and you dont have to pay for
an altheon  or an arrow-point to redirect the request for 4 or 5 tomcats on
different machines, since mod_jk you have a round robin with stickness that
allows you to do the trick for you.

It can be seen as the model of 1 http server as a front end  (Apache) and
serveral  app-servers (Tomcat) behind.

Juan Carlos

- Original Message -
From: Dave North [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 31, 2002 2:27 PM
Subject: RE: why use mod_webapp?


Well, ya I know this.  But you could still have apache do a re-direct to
tomcat on whatever port it's lisening on (say 8080) and get the same
result.  My own personal opinion is mod_webapp is cleaner but I'm under
some pressue to say WHY it's better.  Can't really think of any good
reasons really.

Dave

-Original Message-
From: Brian Adams [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 3:23 PM
To: 'Tomcat Users List'
Subject: RE: why use mod_webapp?


same port! port 80 is http (apache) tomcat would then have to run alone
on
another machine or Virtual IP.
the beauty is that we can now SSI jsp/servlet in html and you never
bounce
to another port or have to add DNS entrees...
just a few reasons, you'll get more and better explained.
B

-Original Message-
From: Dave North [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 2:21 PM
To: [EMAIL PROTECTED]
Subject: why use mod_webapp?


Hi Folks,
I'm already using mod_webapp for handling my tomcat traffic via
apache.  My question from a guy here is why do we do this and not just
create a simple re-direct page?  ie. create a directory with a 1 line
HTML page in it that re-directs to the tomcat HTTP server.  Are there
other advantages to using the WARP connector?

Thanks

Dave

Dave North
SIGNIANT Inc.
Trusted Data Transfer Services
www.signiant.com
Phone: 613-761-3623
Fax: 613-761-3629
EMail: [EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Tyrex transaction in Tomcat

2002-02-01 Thread Karambir Singh

I'm using oracle 8.1.6, Tomcat 4.0.1 and tyrex-0.9.7.0.jar.

In newtest.jsp when I try ut.rollback(), it does not rollback. The data is
committed instead.

What could be the problem. Anybody has working code using Tyrex Transaction
framework in Tomcat. Or anybody has a document on how to integrate Tomcat4.0
with Tyrex.



SERVER.XML
--
ResourceParams name=jdbc/eTaskPool
parameternameuser/namevaluearch/value/parameter
parameternamepassword/namevaluearch/value/parameter
parameternamedriverClassName/name
  valueoracle.jdbc.driver.OracleDriver/value/parameter
parameternamedriverName/name
  valuejdbc:oracle:thin:@tiger:1521:etouch/value/parameter
  /ResourceParams

newtest.jsp
---

%@ page import=emp, javax.sql.*, java.sql.*, javax.naming.*,
javax.transaction.*, tyrex.tm.* %

%
out.println(pTomcat-Tyrex Integration Test);
try
{
InitialContext  ctx;
UserTransaction ut;
DataSource  ds;
Connection  conn;
Statement   st;
ResultSet   rs;

ctx = new InitialContext();
Context envCtx = (Context) ctx.lookup( java:/comp/);
ut = (UserTransaction) envCtx.lookup( UserTransaction );
ds = (DataSource) ctx.lookup( java:/comp/env/jdbc/eTaskPool );
conn = ds.getConnection();
conn.setAutoCommit(false);

ut.begin();

st = conn.createStatement();
rs = st.executeQuery( SELECT EMPNO FROM EMP WHERE EMPNO=8 );
if ( rs.next() )
{
out.println( pCurrent value:  + rs.getString( 1 ) );
}
else
{
out.println( pCurrent value: null );
st.executeUpdate( INSERT into EMP values (8));
}
rs.close();
st.close();
ut.rollback();

conn.close();

return;
}
catch ( Throwable except )
{
out.println( preexcept );
except.printStackTrace();
out.println( /pre );
}
%


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tyrex transaction in Tomcat

2002-02-01 Thread Randy Layman


First, this is a database problem and you should be asking on one of
the Oracle or Tyrex forumns.

Second, you are calling statement.close before connection.rollback.
Try switching the calls and you should see your rollback occur.

Randy


 -Original Message-
 From: Karambir Singh [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 1:26 PM
 To: [EMAIL PROTECTED]
 Subject: Tyrex transaction in Tomcat
 
 
 I'm using oracle 8.1.6, Tomcat 4.0.1 and tyrex-0.9.7.0.jar.
 
 In newtest.jsp when I try ut.rollback(), it does not 
 rollback. The data is
 committed instead.
 
 What could be the problem. Anybody has working code using 
 Tyrex Transaction
 framework in Tomcat. Or anybody has a document on how to 
 integrate Tomcat4.0
 with Tyrex.
 
 
 
 SERVER.XML
 --
   ResourceParams name=jdbc/eTaskPool
 
 parameternameuser/namevaluearch/value/parameter
 
 parameternamepassword/namevaluearch/value/parameter
 parameternamedriverClassName/name
   
 valueoracle.jdbc.driver.OracleDriver/value/parameter
 parameternamedriverName/name
   
 valuejdbc:oracle:thin:@tiger:1521:etouch/value/parameter
   /ResourceParams
 
 newtest.jsp
 ---
 
 %@ page import=emp, javax.sql.*, java.sql.*, javax.naming.*,
 javax.transaction.*, tyrex.tm.* %
 
 %
   out.println(pTomcat-Tyrex Integration Test);
   try
   {
   InitialContext  ctx;
   UserTransaction ut;
   DataSource  ds;
   Connection  conn;
   Statement   st;
   ResultSet   rs;
 
   ctx = new InitialContext();
   Context envCtx = (Context) ctx.lookup( java:/comp/);
   ut = (UserTransaction) envCtx.lookup( 
 UserTransaction );
   ds = (DataSource) ctx.lookup( 
 java:/comp/env/jdbc/eTaskPool );
   conn = ds.getConnection();
   conn.setAutoCommit(false);
 
   ut.begin();
 
   st = conn.createStatement();
   rs = st.executeQuery( SELECT EMPNO FROM EMP 
 WHERE EMPNO=8 );
   if ( rs.next() )
   {
   out.println( pCurrent value:  + 
 rs.getString( 1 ) );
   }
   else
   {
   out.println( pCurrent value: null );
   st.executeUpdate( INSERT into EMP values (8));
   }
   rs.close();
   st.close();
   ut.rollback();
 
   conn.close();
 
   return;
   }
   catch ( Throwable except )
   {
   out.println( preexcept );
   except.printStackTrace();
   out.println( /pre );
   }
 %
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Problem with Manager App

2002-02-01 Thread Cox, Charlie

privileged=true simply allows the servlet to call tomcat internal
functions. it is a security feature so that you can control what can talk to
the tomcat internals.

I am not using mod_webapp, but I have received that error('Manager is
privileged...') when I tried to access manager from a virtual host where I
did not have the manager context defined in server.xml.

a quick look at server.xml - did you define it for your tomcat-apache
service as well as the tomcat-standalone service in server.xml? 

Charlie

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 12:54 PM
 To: Tomcat Users List
 Subject: Re: Problem with Manager App
 
 
 Harry Long a écrit :
 
  Hi Cox,
 
  Thanks for your answer. But I did do that and it does not 
 work at all.
 
  In my server.xml , I have :
  Context path=/manager docBase=manager debug=0 
 privileged=true /
 
  In my apache httpd.conf, I have:
 
  WebAppDeploy manager WarpConnection /manager.
 
  But when I try to run http://localhost/manager?list it 
 crashed and I got
  that
  inner error.  Would you please tell me how you make it works ?
 
  Many thanks
  Harry
 
  -Original Message-
  From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 10:19 AM
  To: 'Tomcat Users List'
  Subject: RE: Problem with Manager App
 
  you need to define the manager context for each virtual host.
 
  also make sure it has privileged=true
 
  Charlie
 
   -Original Message-
   From: Harry Long [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 10:42 AM
   To: [EMAIL PROTECTED]
   Subject: Problem with Manager App
  
  
   Hi I just wonder anyone can please tell me how I should configure
   the Manager App. There is no any problem of using Manager App
   when Tomcat is running as a stand alone server. But when I run it
   under Apache and using MOD_WEBAPP as connnector. I got
   some inner problem. These are the error messages when I run
   the Manager App.
   (I tried to reload a servlet via Manager App. Even I have set
   reloadable
   attribute
   to 'true' in the context, it doesn't work at all for me. I am
   running Tomcat
   4.0.1
   under Apache1.3.22 on Linux 7.2 )
  
   message Internal Server Error
   description The server encountered an internal error
   (Internal Server Error)
   that prevented it from fulfilling this request.
  
   java.lang.SecurityException: Servlet of class
   org.apache.catalina.servlets.ManagerServlet is privileged and
   cannot be
   loaded by this web application
 at
   org.apache.catalina.core.StandardWrapper.load(StandardWrapper.
   java:836)
 at
   org.apache.catalina.core.StandardWrapper.allocate(StandardWrap
   per.java:615)
 at
   org.apache.catalina.core.StandardWrapperValve.invoke(StandardW
   rapperValve.ja
   va:214)
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   66)
 at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
   ine.java:472)
 at
   
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
   org.apache.catalina.core.StandardContextValve.invoke(StandardC
   ontextValve.ja
   va:201)
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   66)
 at
   org.apache.catalina.authenticator.AuthenticatorBase.invoke(Aut
   henticatorBase
   .java:518)
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   64)
 at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
   ine.java:472)
 at
   
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
   org.apache.catalina.core.StandardContext.invoke(StandardContex
   t.java:2344)
 at
   org.apache.catalina.core.StandardHostValve.invoke(StandardHost
   Valve.java:164
   )
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   66)
 at
   org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDi
   spatcherValve.
   java:170)
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   64)
 at
   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReport
   Valve.java:170
   )
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   64)
 at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
   ine.java:472)
 at
   
 org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
 at
   org.apache.catalina.core.StandardEngineValve.invoke(StandardEn
   gineValve.java
   :163)
 at
   org.apache.catalina.core.StandardPipeline.invokeNext(StandardP
   ipeline.java:5
   66)
 at
   org.apache.catalina.core.StandardPipeline.invoke(StandardPipel
   ine.java:472)
 at
   
 

Re: /manager and mod_webapp connector

2002-02-01 Thread Jean-Luc BEAUDET

Cressatti, Dominique a écrit :

 I don't about manager but have you tried the examples
 like
 WebAppDeploy examples WarpConn /examples
 and point your browser to
 http://localhost/examples/snoop

 Does that work?

 Dom

 -Original Message-
 From: Jean-Luc BEAUDET [mailto:[EMAIL PROTECTED]]
 Sent: 01 February 2002 16:51
 To: Tomcat Users List
 Subject: /manager and mod_webapp connector

 Hi everybody

 I actually have some pb around /manager.

 If i enter the URL http://localhost:8080/manager/list

 All is OK. As i add a role - for testing - in the tomcat-users.xml file
 i am then asked to enter a login/password issue to make the connection.

 BUT when i do the same http://localhost:80/manager/list

 i obtain an error 500 after quite a long time.

 The config in Apache is

 WebAppDeploy manager WarpConn /manager

 Maybe this Directive is not available in Apache ?

 Any help/ideas welcome.

 Jean-Luc B :O)

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

Yes no pB.

My Server is just goin' right for all the others Context auto deployed
under webapps.

My only trouble is about manager.

Jean-Luc ;O)



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tyrex transaction in Tomcat

2002-02-01 Thread Karambir Singh

Hi Randy,

I'm not calling connection.rollback. I am calling transaction.rollback(). I
think problem is that there is no link between transaction and datasource.
And on Tyrex forum they havn't answered a single question after October
2001.

Karambir

-Original Message-
From: Randy Layman [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 9:56 AM
To: 'Tomcat Users List'
Subject: RE: Tyrex transaction in Tomcat



First, this is a database problem and you should be asking on one of
the Oracle or Tyrex forumns.

Second, you are calling statement.close before connection.rollback.
Try switching the calls and you should see your rollback occur.

Randy


 -Original Message-
 From: Karambir Singh [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 1:26 PM
 To: [EMAIL PROTECTED]
 Subject: Tyrex transaction in Tomcat


 I'm using oracle 8.1.6, Tomcat 4.0.1 and tyrex-0.9.7.0.jar.

 In newtest.jsp when I try ut.rollback(), it does not
 rollback. The data is
 committed instead.

 What could be the problem. Anybody has working code using
 Tyrex Transaction
 framework in Tomcat. Or anybody has a document on how to
 integrate Tomcat4.0
 with Tyrex.



 SERVER.XML
 --
   ResourceParams name=jdbc/eTaskPool

 parameternameuser/namevaluearch/value/parameter

 parameternamepassword/namevaluearch/value/parameter
 parameternamedriverClassName/name

 valueoracle.jdbc.driver.OracleDriver/value/parameter
 parameternamedriverName/name

 valuejdbc:oracle:thin:@tiger:1521:etouch/value/parameter
   /ResourceParams

 newtest.jsp
 ---

 %@ page import=emp, javax.sql.*, java.sql.*, javax.naming.*,
 javax.transaction.*, tyrex.tm.* %

 %
   out.println(pTomcat-Tyrex Integration Test);
   try
   {
   InitialContext  ctx;
   UserTransaction ut;
   DataSource  ds;
   Connection  conn;
   Statement   st;
   ResultSet   rs;

   ctx = new InitialContext();
   Context envCtx = (Context) ctx.lookup( java:/comp/);
   ut = (UserTransaction) envCtx.lookup(
 UserTransaction );
   ds = (DataSource) ctx.lookup(
 java:/comp/env/jdbc/eTaskPool );
   conn = ds.getConnection();
   conn.setAutoCommit(false);

   ut.begin();

   st = conn.createStatement();
   rs = st.executeQuery( SELECT EMPNO FROM EMP
 WHERE EMPNO=8 );
   if ( rs.next() )
   {
   out.println( pCurrent value:  +
 rs.getString( 1 ) );
   }
   else
   {
   out.println( pCurrent value: null );
   st.executeUpdate( INSERT into EMP values (8));
   }
   rs.close();
   st.close();
   ut.rollback();

   conn.close();

   return;
   }
   catch ( Throwable except )
   {
   out.println( preexcept );
   except.printStackTrace();
   out.println( /pre );
   }
 %


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

I really appreciate the response


I did look at that but probably dont fully understand what I am looking at

catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
with Windows environmental variable set to  JAVA_HOME   C:\jdk1.2.2

and my wrapper.properties file says...
set _STARTJAVA=start %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
and 
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

so I thought that all looked fine, I commented out everything related to the 3.2.x 
jars and the errror went away but starting the service fails, just saying Asked (and 
given) winsock 1.1
-
Here are the main elements from my setup below...

My environmental variables...

CATALINA_HOME   C:\jakarta-tomcat-4.0.1
JAVA_HOME   C:\jdk1.2.2


from catalina.bat

if not %OS% == Windows_NT goto noTitle
set _STARTJAVA=start Catalina %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
goto gotTitle
:noTitle
set _STARTJAVA=start %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
:gotTitle

from wrapper.properties

wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
wrapper.java_home= C:\jdk1.2.2


wrapper.class_path=$(wrapper.tomcat_home)\classes
wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar

wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
wrapper.class_path=$(wrapper.java_home)\classes\
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

wrapper.startup_class=org.apache.tomcat.startup.Tomcat

wrapper.shutdown_port=8007
wrapper.shutdown_protocol=ajp13

wrapper.cmd_line=$(wrapper.javabin) -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home)


-Original Message-
From: Larry Isaacs [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 08:03:14 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 You need to examine Tomcat 4.0.1's bin\catalina.bat to see the
 Java command used to start Catalina.  You must then
 update the Java command created by the wrapper.properies
 file to create the same command.  The error shown below is
 including Tomcat 3.2.x's list of jars and startup class which
 aren't going to work with Catalina.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Thursday, January 31, 2002 5:57 PM
  To: [EMAIL PROTECTED]
  Subject: Jakarta NT service error
  
  
  Got NT service installed but it wont start getting the error 
  below; none of these jar files were on the server so I copied 
  them from another box to this the paths listed in the error 
  and that didnt do anything
  
  -Thanks
  
  
  c:\Javajk_nt_service -s tomcat
  Asked (and given) winsock 1.1
  
  c:\jdk1.2.2\bin\java.exe -classpath 
  c:\jakarta-tomcat-4.0.1\classes; 
  c:\jakarta-tomcat-4.0.1\lib\jaxp.jar; 
  c:\jakarta-tomcat-4.0.1\lib\parser.jar; 
  c:\jakarta-tomcat-4.0.1\lib\webserver.jar; 
  c:\jakarta-tomcat-4.0.1\lib\servlet.jar; 
  c:\jakarta-tomcat-4.0.1\lib\jasper.jar; 
  c:\jakarta-tomcat-4.0.1\lib\tools.jar; 
  c:\jakarta-tomcat-4.0.1\lib\classes.zip 
  org.apache.tomcat.startup.Tomcat -config 
  c:\c:\jakarta-tomcat-4.0.1\conf\server.xml -home 
  c:\jakarta-tomcat-4.0.1Error: Can not create new process - 
  The filename, directory name, or volume label syntax is 
  incorrect (0x7b)
  
  
  -- 
  
  ___
  Sign-up for your own FREE Personalized E-mail at Mail.com
  http://www.mail.com/?sr=signup
  
  Win a ski trip!
  http://www.nowcode.com/register.asp?affiliate=1net2phone3a
  
  
  
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
  
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Tomcat shuts down logoff Windows 2000 Server

2002-02-01 Thread Atok Koenig

thank you for your response

I have tried running it as a service and I was able to set up the jk_nt_service.exe 
and made changes to the wrapper.properties but I get errors that the service cant 
start; I included all my errors and config info in another meesage a few minutes ago

Thanks again

-Original Message-
From: Pavel Brun [EMAIL PROTECTED]
Date: Wed, 30 Jan 2002 20:02:58 -0500
To: Tomcat Users List [EMAIL PROTECTED]
Subject: RE: Tomcat shuts down logoff Windows 2000 Server


 you may need to run the Tomcat 4.0.1 service as an actual NT service. If you
 start
 the application at a command line...then the application will shut down
 since it
 has been loaded within the context of tye logged in user.
 
 Paul
 
 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 30, 2002 7:22 PM
 To: [EMAIL PROTECTED]
 Subject: Tomcat shuts down logoff Windows 2000 Server
 
 
 New to Tomcat
 
 Installed Tomcat 4.0.1 on Windows 2000 server using local Admin account via
 Windows Terminal Services. Runs fine when logged in and started via
 startup.bat. DOS-type window titled Catalina opens saying starting
 service tomcat-standalone and starting service tomcat-apache each followed
 by Apache Tomkat/4.0.1.
 
 When I log out of terminal services java.exe stops running so server stops
 responding.
 
 Thanks
 
 Jakarta Tomcat 4.0.1
 JDK 1.3.1_02
 Windows 2000 Server SP2
 
 --
 
 ___
 Sign-up for your own FREE Personalized E-mail at Mail.com
 http://www.mail.com/?sr=signup
 
 Win a ski trip!
 http://www.nowcode.com/register.asp?affiliate=1net2phone3a
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 
 

-- 

___
Sign-up for your own FREE Personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Win a ski trip!
http://www.nowcode.com/register.asp?affiliate=1net2phone3a



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Cox, Charlie

when installed as a service, you don't need catalina.bat - everything is in
your wrapper.properties

try this for your wrapper properties in TC4:

wrapper.startup_class=org.apache.catalina.startup.Bootstrap

wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start

Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 1:52 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 I really appreciate the response
 
 
 I did look at that but probably dont fully understand what I 
 am looking at
 
 catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
 with Windows environmental variable set to  JAVA_HOME   
 C:\jdk1.2.2
 
 and my wrapper.properties file says...
 set _STARTJAVA=start %JAVA_HOME%\bin\java
 set _RUNJAVA=%JAVA_HOME%\bin\java
 and 
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe
 
 so I thought that all looked fine, I commented out everything 
 related to the 3.2.x jars and the errror went away but 
 starting the service fails, just saying Asked (and given) 
 winsock 1.1
 -
 Here are the main elements from my setup below...
 
 My environmental variables...
 
 CATALINA_HOME   C:\jakarta-tomcat-4.0.1
 JAVA_HOME   C:\jdk1.2.2
 
 
 from catalina.bat
 
 if not %OS% == Windows_NT goto noTitle
 set _STARTJAVA=start Catalina %JAVA_HOME%\bin\java
 set _RUNJAVA=%JAVA_HOME%\bin\java
 goto gotTitle
 :noTitle
 set _STARTJAVA=start %JAVA_HOME%\bin\java
 set _RUNJAVA=%JAVA_HOME%\bin\java
 :gotTitle
 
 from wrapper.properties
 
 wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
 wrapper.java_home= C:\jdk1.2.2
 
 
 wrapper.class_path=$(wrapper.tomcat_home)\classes
 wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
 wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
 
 wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
 wrapper.class_path=$(wrapper.java_home)\classes\
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe
 
 wrapper.startup_class=org.apache.tomcat.startup.Tomcat
 
 wrapper.shutdown_port=8007
 wrapper.shutdown_protocol=ajp13
 
 wrapper.cmd_line=$(wrapper.javabin) -classpath 
 $(wrapper.class_path) $(wrapper.startup_class) -config 
 $(wrapper.server_xml) -home $(wrapper.tomcat_home)
 
 
 -Original Message-
 From: Larry Isaacs [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 08:03:14 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  You need to examine Tomcat 4.0.1's bin\catalina.bat to see the
  Java command used to start Catalina.  You must then
  update the Java command created by the wrapper.properies
  file to create the same command.  The error shown below is
  including Tomcat 3.2.x's list of jars and startup class which
  aren't going to work with Catalina.
  
  Cheers,
  Larry
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Thursday, January 31, 2002 5:57 PM
   To: [EMAIL PROTECTED]
   Subject: Jakarta NT service error
   
   
   Got NT service installed but it wont start getting the error 
   below; none of these jar files were on the server so I copied 
   them from another box to this the paths listed in the error 
   and that didnt do anything
   
   -Thanks
   
   
   c:\Javajk_nt_service -s tomcat
   Asked (and given) winsock 1.1
   
   c:\jdk1.2.2\bin\java.exe -classpath 
   c:\jakarta-tomcat-4.0.1\classes; 
   c:\jakarta-tomcat-4.0.1\lib\jaxp.jar; 
   c:\jakarta-tomcat-4.0.1\lib\parser.jar; 
   c:\jakarta-tomcat-4.0.1\lib\webserver.jar; 
   c:\jakarta-tomcat-4.0.1\lib\servlet.jar; 
   c:\jakarta-tomcat-4.0.1\lib\jasper.jar; 
   c:\jakarta-tomcat-4.0.1\lib\tools.jar; 
   c:\jakarta-tomcat-4.0.1\lib\classes.zip 
   org.apache.tomcat.startup.Tomcat -config 
   c:\c:\jakarta-tomcat-4.0.1\conf\server.xml -home 
   c:\jakarta-tomcat-4.0.1Error: Can not create new process - 
   The filename, directory name, or volume label syntax is 
   incorrect (0x7b)
   
   

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




startup script

2002-02-01 Thread Mike Millson

I have installed final release 4.0.1 binary on my RH7.1 Linux ver. 2.4.9-21
system and am splicing together a startup script from some examples I have
found. A couple of questions:

My script references a file called  /var/run/tomcat.pid. I don't have this
file on my system. Do I need to create it? It looks like it's just a file w/
a # in it, the process id I gather? What process id should I give tomcat?

Also, the script references /var/lock/subsys/tomcat4, another file I don't
have. Do I need to create it? If so, what goes inside this file?

Thank you,
Mike



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




guide to getting up and running?

2002-02-01 Thread Clay Mitchell

Can anyone point to a guide to getting up and running with Tomcat, such as
where I put my class file, getting the enviornment set up and things like
that?

Thanks
-Clay


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: guide to getting up and running?

2002-02-01 Thread Cressatti, Dominique

yep it's in tomcat or http://jakarta.apache.org/tomcat/

unpacked classes go in webapps/yourapp/WEB-INF/classes
.jar go in webapps/yourapp/WEB-INF/lib


-Original Message-
From: Clay Mitchell [mailto:[EMAIL PROTECTED]]
Sent: 01 February 2002 19:08
To: [EMAIL PROTECTED]
Subject: guide to getting up and running?


Can anyone point to a guide to getting up and running with Tomcat, such as
where I put my class file, getting the enviornment set up and things like
that?

Thanks
-Clay


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: triggering JSP page recompilation

2002-02-01 Thread RSEQUEIRA







Guillermo Payet [EMAIL PROTECTED] on 02/01/2002 11:52:11 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  triggering JSP page recompilation


Hi,

I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
and all works well, except for an anoying little problem that I
can't figure out:

When someone modifies a file that's included from a JSP page with:
%@ include file=somefile%, this modification does not trigger
the recompilation of the including file.

If I not mistaken, with %@ include file=...%, the file is included during
compilation time. Tomcat will auto-reload the including file only if it has
been changed. I guess you could use jsp:include instead. The JSP engine
will include this file whenever the including jsp is called.


There must be a configuration switch to turn this on.

Any clues?

   --G

Hope this helps.
Thanks.
RS


--
Guillermo Payet
O C E A NG R O U P
email: [EMAIL PROTECTED]
web: http://www.oceangroup.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: triggering JSP page recompilation

2002-02-01 Thread Brian Adams

I'm sorry, come again?  I don't think you sent anything or I can't see it...
B

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 1:14 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation








Guillermo Payet [EMAIL PROTECTED] on 02/01/2002 11:52:11 AM

Please respond to Tomcat Users List [EMAIL PROTECTED]

To:   [EMAIL PROTECTED]
cc:

Subject:  triggering JSP page recompilation


Hi,

I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
and all works well, except for an anoying little problem that I
can't figure out:

When someone modifies a file that's included from a JSP page with:
%@ include file=somefile%, this modification does not trigger
the recompilation of the including file.

If I not mistaken, with %@ include file=...%, the file is included during
compilation time. Tomcat will auto-reload the including file only if it has
been changed. I guess you could use jsp:include instead. The JSP engine
will include this file whenever the including jsp is called.


There must be a configuration switch to turn this on.

Any clues?

   --G

Hope this helps.
Thanks.
RS


--
Guillermo Payet
O C E A NG R O U P
email: [EMAIL PROTECTED]
web: http://www.oceangroup.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]









--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: triggering JSP page recompilation

2002-02-01 Thread Guillermo Payet

 If I not mistaken, with %@ include file=...%, the file is included during
 compilation time. Tomcat will auto-reload the including file only if it has
 been changed. I guess you could use jsp:include instead. The JSP engine
 will include this file whenever the including jsp is called.

I want to include those files at compilation time...  the individual 
included files are not meant to be stand alone, and will not compile 
on their own.  There's a switch to turn this on/off on GNUJSP, but on
Tomcat I'm force to touch all files.

Thanks

--G


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Installing Tomcat 4.0 on XP Home

2002-02-01 Thread I-Lin Kuo

Hi,

I'm a Apache/Tomcat newbie here.

I'm trying to install jakarta-tomcat-4.0-20020201.zip  on XP Home with 
JDK1.3.1_02. It seems to install successfully, but when I test my 
installation, this is what happens:
1)I install Tomcat
2)I type startup from DOS prompt, and I get the welcome page for 
http://localhost:8080/index.jsp
3) I type shutdown from DOS. No error messages.
4) I type startup from DOS. No error messages.
5) I type shutdown from DOS and get the following error:

java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImp.java:355)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImp.java:142)
at java.net.PlainSocketImpl.connect(PlainSocketImp.java:129)
at java.net.Socket(init)(Socket.java:273)
at java.net.Socket(init)(Socket.java:100)
at org.apache.catalina.startup.Catalina.stop(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at java.lang.reflect.Method.invoke(Native Method)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
C:\Program Files\Apache Group\Apache\jakarta-tomcat-4.0\binstartup
Using CATALINA_BASE:C:\Program Files\Apache Group\Apache\jakarta-tomcat-4.0
Using CATALINA_HOME:C:\Program Files\Apache Group\Apache\jakarta-tomcat-4.0
Using CATALINA_TMPDIR:  C:\Program Files\Apache 
Group\Apache\jakarta-tomcat-4.0\temp
Using JAVA_HOME:C:\jdk1.3.1_02

6) Tomcat never again responds because I can never get anything from 
http://localhost:8080/index.jsp
even if I restart Apache or the entire machine. The only way I can get back 
to the Tomcat welcome page is if I reinstall Tomcat

Thanks in advance for any help.

I-Lin Kuo
Macromedia Certified ColdFusion 5.0 Advanced Developer
Sun Certified Java 2 Programmer
Ann Arbor, MI


_
Send and receive Hotmail on your mobile device: http://mobile.msn.com


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: triggering JSP page recompilation

2002-02-01 Thread Clay Mitchell


as far as I can tell from reading this:

http://developer.java.sun.com/developer/qow/archive/96/

that file won't be recompiled into the file unless the file that %@
include() %'s it is changed. what i believe that is saying is that when
the calling file is compiled, the contents of the include file are
basically just copies the contents of that included file into the contents
of the calling file and then compiles. if you use jsp:include it will
parse the included file every time.

understand what i'm saying?

-Clay

On Fri, 1 Feb 2002, Brian Adams wrote:

 I'm sorry, come again?  I don't think you sent anything or I can't see it...
 B

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 1:14 PM
 To: Tomcat Users List
 Subject: Re: triggering JSP page recompilation








 Guillermo Payet [EMAIL PROTECTED] on 02/01/2002 11:52:11 AM

 Please respond to Tomcat Users List [EMAIL PROTECTED]

 To:   [EMAIL PROTECTED]
 cc:

 Subject:  triggering JSP page recompilation


 Hi,

 I recently installed Tomcat 4.0.1, (We used JServ + GNUJSP before)
 and all works well, except for an anoying little problem that I
 can't figure out:

 When someone modifies a file that's included from a JSP page with:
 %@ include file=somefile%, this modification does not trigger
 the recompilation of the including file.

 If I not mistaken, with %@ include file=...%, the file is included during
 compilation time. Tomcat will auto-reload the including file only if it has
 been changed. I guess you could use jsp:include instead. The JSP engine
 will include this file whenever the including jsp is called.


 There must be a configuration switch to turn this on.

 Any clues?

--G

 Hope this helps.
 Thanks.
 RS


 --
 Guillermo Payet
 O C E A NG R O U P
 email: [EMAIL PROTECTED]
 web: http://www.oceangroup.com

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]









 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: triggering JSP page recompilation

2002-02-01 Thread Wagoner, Mark

You don't have to touch all the files.  Just the JSP that contains the
include directive.  Tomcat uses the date of the JSP file to determine if it
needs to be recompiled.  If it does, then it will re-read any included
files.


-Original Message-
From: Guillermo Payet [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 2:22 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation


 If I not mistaken, with %@ include file=...%, the file is included
during
 compilation time. Tomcat will auto-reload the including file only if it
has
 been changed. I guess you could use jsp:include instead. The JSP engine
 will include this file whenever the including jsp is called.

I want to include those files at compilation time...  the individual 
included files are not meant to be stand alone, and will not compile 
on their own.  There's a switch to turn this on/off on GNUJSP, but on
Tomcat I'm force to touch all files.

Thanks

--G


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Are spaces allowed in Servlet Context names?

2002-02-01 Thread David M Johnson

Tomcat 4.0.1 does not seem to allow spaces, but are spaces really 
prohibuted by the spec?

For example if I have a Servlet Context named spaces 2 in the
webapps dir like so:

installdir/webapps/spaces 2

And I try to hit it with a properly escaped URL like below,
I get a 404 error.

   http://localhost:8080/spaces%202

Can anybody please point me to the part of the spec that
prohibits spaces? I've searched the 2.3 spec and Google and
Deja, but I can't find the clause or pointers to the clause
that prohibits spaces.

- Dave


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


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: triggering JSP page recompilation

2002-02-01 Thread Guillermo Payet

 You don't have to touch all the files.  Just the JSP that contains the
 include directive.  Tomcat uses the date of the JSP file to determine if it
 needs to be recompiled.  If it does, then it will re-read any included
 files.

Therefore... I have to touch all files, since all JSP files include
the file that was modified.  As I mentioned before, GNUJSP keeps a
record of what files include what, and if told to, recompiles all
including files when an included file changes.  I wonder if there
is a way to make Tomcat act this way.  We have 4 people working on
a project that has about 50 JSP pages, and they all include 
header, footer, menu, and other JSP included files.  Having one 
person do a touch *.jsp whenever he tweaks lib/header.jsp is 
a bit disruptive.

--G


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




help with 'enabling/disabling' a webapp (apache1.3.22/tc 3.2.4)

2002-02-01 Thread Matt Egyhazy

hi,

i am currently working on an administrative application that will be able to
enable/disable certain webapps from within the same tomcat instance. the
platform is windows (bleh).  basically when the webapp is disabled, i want
to display a static outage page.  obviously, when i enable it, i want the
webapp to work.  should i execute an external .bat script from within a
servlet to move the files around, delete directories, and restart tomcat?
or is there a way from within tomcat?

thanks,

matt


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: triggering JSP page recompilation

2002-02-01 Thread Clay Mitchell

use jsp:include then. what you're doing now just statically  includes
the contents of what you include in the class file when it recompiles. the
jsp:include should do this dynamically.

-CLay

On Fri, 1 Feb 2002, Guillermo Payet wrote:

  You don't have to touch all the files.  Just the JSP that contains the
  include directive.  Tomcat uses the date of the JSP file to determine if it
  needs to be recompiled.  If it does, then it will re-read any included
  files.

 Therefore... I have to touch all files, since all JSP files include
 the file that was modified.  As I mentioned before, GNUJSP keeps a
 record of what files include what, and if told to, recompiles all
 including files when an included file changes.  I wonder if there
 is a way to make Tomcat act this way.  We have 4 people working on
 a project that has about 50 JSP pages, and they all include
 header, footer, menu, and other JSP included files.  Having one
 person do a touch *.jsp whenever he tweaks lib/header.jsp is
 a bit disruptive.

   --G


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: triggering JSP page recompilation

2002-02-01 Thread Wagoner, Mark

You really want to use the dynamic directive if the file being included is
another JSP file.  Otherwise you will get the source of the included JSP in
the output, not the output of the included JSP.

That came out pretty clear.  :-)

-Original Message-
From: Clay Mitchell [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 2:38 PM
To: Tomcat Users List
Subject: Re: triggering JSP page recompilation


use jsp:include then. what you're doing now just statically  includes
the contents of what you include in the class file when it recompiles. the
jsp:include should do this dynamically.

-CLay

On Fri, 1 Feb 2002, Guillermo Payet wrote:

  You don't have to touch all the files.  Just the JSP that contains the
  include directive.  Tomcat uses the date of the JSP file to determine if
it
  needs to be recompiled.  If it does, then it will re-read any included
  files.

 Therefore... I have to touch all files, since all JSP files include
 the file that was modified.  As I mentioned before, GNUJSP keeps a
 record of what files include what, and if told to, recompiles all
 including files when an included file changes.  I wonder if there
 is a way to make Tomcat act this way.  We have 4 people working on
 a project that has about 50 JSP pages, and they all include
 header, footer, menu, and other JSP included files.  Having one
 person do a touch *.jsp whenever he tweaks lib/header.jsp is
 a bit disruptive.

   --G


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: triggering JSP page recompilation

2002-02-01 Thread Clay Mitchell

yeah, that's what i was saying :)



On Fri, 1 Feb 2002, Wagoner, Mark wrote:

 You really want to use the dynamic directive if the file being included is
 another JSP file.  Otherwise you will get the source of the included JSP in
 the output, not the output of the included JSP.

 That came out pretty clear.  :-)

 -Original Message-
 From: Clay Mitchell [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 2:38 PM
 To: Tomcat Users List
 Subject: Re: triggering JSP page recompilation


 use jsp:include then. what you're doing now just statically  includes
 the contents of what you include in the class file when it recompiles. the
 jsp:include should do this dynamically.

 -CLay

 On Fri, 1 Feb 2002, Guillermo Payet wrote:

   You don't have to touch all the files.  Just the JSP that contains the
   include directive.  Tomcat uses the date of the JSP file to determine if
 it
   needs to be recompiled.  If it does, then it will re-read any included
   files.
 
  Therefore... I have to touch all files, since all JSP files include
  the file that was modified.  As I mentioned before, GNUJSP keeps a
  record of what files include what, and if told to, recompiles all
  including files when an included file changes.  I wonder if there
  is a way to make Tomcat act this way.  We have 4 people working on
  a project that has about 50 JSP pages, and they all include
  header, footer, menu, and other JSP included files.  Having one
  person do a touch *.jsp whenever he tweaks lib/header.jsp is
  a bit disruptive.
 
  --G
 
 
  --
  To unsubscribe:   mailto:[EMAIL PROTECTED]
  For additional commands: mailto:[EMAIL PROTECTED]
  Troubles with the list: mailto:[EMAIL PROTECTED]
 
 


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]

 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

Dear Charlie,

Than you for the response. Someone had recomended looking in the batch files to 
compare setting info (batch files work but server stops when I log out) 

I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe -XrsError: cannot create 
new process - the system cannot find the path specified (0x3)

I have JAVA_HOME set up as a Windows Envoronment Variable pointing to c:\jdk1.2.2 and 
if you go to c:\jdk1.2.2\bin\java.exe is there

I included my wrapper.properties without comments below. All help is really 
appreciated, I am learning a lot


wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
wrapper.java_home= C:\jdk1.2.2


wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\

wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
wrapper.shutdown_port=8007

wrapper.shutdown_protocol=ajp13

$(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) start




-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 14:03:59 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 when installed as a service, you don't need catalina.bat - everything is in
 your wrapper.properties
 
 try this for your wrapper properties in TC4:
 
 wrapper.startup_class=org.apache.catalina.startup.Bootstrap
 
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
 $(wrapper.startup_class) -config $(wrapper.server_xml) start
 
 Charlie
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 1:52 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  I really appreciate the response
  
  
  I did look at that but probably dont fully understand what I 
  am looking at
  
  catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
  with Windows environmental variable set to  JAVA_HOME   
  C:\jdk1.2.2
  
  and my wrapper.properties file says...
  set _STARTJAVA=start %JAVA_HOME%\bin\java
  set _RUNJAVA=%JAVA_HOME%\bin\java
  and 
  wrapper.javabin=$(wrapper.java_home)\bin\java.exe
  
  so I thought that all looked fine, I commented out everything 
  related to the 3.2.x jars and the errror went away but 
  starting the service fails, just saying Asked (and given) 
  winsock 1.1
  -
  Here are the main elements from my setup below...
  
  My environmental variables...
  
  CATALINA_HOME   C:\jakarta-tomcat-4.0.1
  JAVA_HOME   C:\jdk1.2.2
  
  
  from catalina.bat
  
  if not %OS% == Windows_NT goto noTitle
  set _STARTJAVA=start Catalina %JAVA_HOME%\bin\java
  set _RUNJAVA=%JAVA_HOME%\bin\java
  goto gotTitle
  :noTitle
  set _STARTJAVA=start %JAVA_HOME%\bin\java
  set _RUNJAVA=%JAVA_HOME%\bin\java
  :gotTitle
  
  from wrapper.properties
  
  wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
  wrapper.java_home= C:\jdk1.2.2
  
  
  wrapper.class_path=$(wrapper.tomcat_home)\classes
  wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
  wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
  
  wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
  wrapper.class_path=$(wrapper.java_home)\classes\
  wrapper.javabin=$(wrapper.java_home)\bin\java.exe
  
  wrapper.startup_class=org.apache.tomcat.startup.Tomcat
  
  wrapper.shutdown_port=8007
  wrapper.shutdown_protocol=ajp13
  
  wrapper.cmd_line=$(wrapper.javabin) -classpath 
  $(wrapper.class_path) $(wrapper.startup_class) -config 
  $(wrapper.server_xml) -home $(wrapper.tomcat_home)
  
  
  -Original Message-
  From: Larry Isaacs [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 08:03:14 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service error
  
  
   You need to examine Tomcat 4.0.1's bin\catalina.bat to see the
   Java command used to start Catalina.  You must then
   update the Java command created by the wrapper.properies
   file to create the same command.  The error shown below is
   including Tomcat 3.2.x's list of jars and startup class which
   aren't going to work with Catalina.
   
   Cheers,
   Larry
   
-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 31, 2002 5:57 PM
To: [EMAIL PROTECTED]
Subject: Jakarta NT service error


Got NT service installed but it wont start getting the error 

Re: triggering JSP page recompilation

2002-02-01 Thread Nick Wesselman



As I mentioned before, GNUJSP keeps a
record of what files include what, and if told to, recompiles all
including files when an included file changes.  

I don't recall gnujsp doing this--I've always had to touch files when I 
change an included file with gnujsp as well.

Nick


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




What's wrong with my server.xml?

2002-02-01 Thread Micael Padraig Og mac Grene

I am using the following server.xml but cannot get to my sites.  Anyone 
have an idea what I am doing wrong?  I have set off my changes to 
server.xml with a number of !-- -- markers.  Thanks for any help.

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are received
  and responses are returned.  Each Connector passes requests on to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second 
Connector
  entry.  SSL support requires the following steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
with a password value of changeit for both the certificate and
the keystore itself.

  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.catalina.connector.http.HttpConnector
 port=8080 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to -1 --

 !-- Define an SSL HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 --

 !-- Define an AJP 1.3 Connector on port 8009 --
 !--
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 --

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
 !-- See proxy documentation for more information about using this. --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8081 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 connectionTimeout=6
proxyPort=80/
 --

 !-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
 !--
 Connector className=org.apache.catalina.connector.http10.HttpConnector
port=8082 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0/
 --

 !-- An Engine represents the entry point (within Catalina) that processes
  every request.  The Engine implementation for Tomcat stand alone
  analyzes the HTTP headers included with the request, and passes them
  on to the appropriate Host (virtual host). --

 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone defaultHost=localhost debug=0

   !-- The request dumper valve dumps useful debugging information about
the request 

subdomain

2002-02-01 Thread Thompson, Douglas

Does anyone know how to set the session cookie's doimain so that it can
cross subdomains?  Currently it just loses the session when going between
subdomains.
Thanks, 
  Doug



RE: Jakarta NT service error

2002-02-01 Thread Cox, Charlie

you have JAVA_HOME set as a system environment variable, not a user env.
variable?

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:04 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 Dear Charlie,
 
 Than you for the response. Someone had recomended looking in 
 the batch files to compare setting info (batch files work but 
 server stops when I log out) 
 
 I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
 -XrsError: cannot create new process - the system cannot find 
 the path specified (0x3)
 
 I have JAVA_HOME set up as a Windows Envoronment Variable 
 pointing to c:\jdk1.2.2 and if you go to 
 c:\jdk1.2.2\bin\java.exe is there
 
 I included my wrapper.properties without comments below. All 
 help is really appreciated, I am learning a lot
 
 
 wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
 wrapper.java_home= C:\jdk1.2.2
 
 
 wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
 wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
 
 wrapper.ld_path=d:\
 wrapper.ld_path=c:\
 wrapper.class_path=$(wrapper.java_home)\classes\
 
 wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
 wrapper.shutdown_port=8007
 
 wrapper.shutdown_protocol=ajp13
 
 $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
 $(wrapper.tomcat_home)
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
 $(wrapper.class_path)
 $(wrapper.startup_class) -config $(wrapper.server_xml) start
 
 
 
 
 -Original Message-
 From: Cox, Charlie [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 14:03:59 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  when installed as a service, you don't need catalina.bat - 
 everything is in
  your wrapper.properties
  
  try this for your wrapper properties in TC4:
  
  wrapper.startup_class=org.apache.catalina.startup.Bootstrap
  
  wrapper.cmd_line=$(wrapper.javabin) -Xrs 
  -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
  -Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
  $(wrapper.startup_class) -config $(wrapper.server_xml) start
  
  Charlie
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 1:52 PM
   To: Tomcat Users List
   Subject: RE: Jakarta NT service error
   
   
   I really appreciate the response
   
   
   I did look at that but probably dont fully understand what I 
   am looking at
   
   catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
   with Windows environmental variable set to  JAVA_HOME   
   C:\jdk1.2.2
   
   and my wrapper.properties file says...
   set _STARTJAVA=start %JAVA_HOME%\bin\java
   set _RUNJAVA=%JAVA_HOME%\bin\java
   and 
   wrapper.javabin=$(wrapper.java_home)\bin\java.exe
   
   so I thought that all looked fine, I commented out everything 
   related to the 3.2.x jars and the errror went away but 
   starting the service fails, just saying Asked (and given) 
   winsock 1.1
   -
   Here are the main elements from my setup below...
   
   My environmental variables...
   
   CATALINA_HOME   C:\jakarta-tomcat-4.0.1
   JAVA_HOME   C:\jdk1.2.2
   
   
   from catalina.bat
   
   if not %OS% == Windows_NT goto noTitle
   set _STARTJAVA=start Catalina %JAVA_HOME%\bin\java
   set _RUNJAVA=%JAVA_HOME%\bin\java
   goto gotTitle
   :noTitle
   set _STARTJAVA=start %JAVA_HOME%\bin\java
   set _RUNJAVA=%JAVA_HOME%\bin\java
   :gotTitle
   
   from wrapper.properties
   
   wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
   wrapper.java_home= C:\jdk1.2.2
   
   
   wrapper.class_path=$(wrapper.tomcat_home)\classes
   wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
   wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar
   wrapper.class_path=$(wrapper.tomcat_home)\lib\webserver.jar
   wrapper.class_path=$(wrapper.tomcat_home)\lib\servlet.jar
   wrapper.class_path=$(wrapper.tomcat_home)\lib\jasper.jar
   
   wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
   wrapper.class_path=$(wrapper.java_home)\classes\
   wrapper.javabin=$(wrapper.java_home)\bin\java.exe
   
   wrapper.startup_class=org.apache.tomcat.startup.Tomcat
   
   wrapper.shutdown_port=8007
   wrapper.shutdown_protocol=ajp13
   
   wrapper.cmd_line=$(wrapper.javabin) -classpath 
   $(wrapper.class_path) $(wrapper.startup_class) -config 
   $(wrapper.server_xml) -home $(wrapper.tomcat_home)
   
   
   -Original Message-
   From: Larry Isaacs [EMAIL PROTECTED]
   Date: Fri, 1 Feb 2002 08:03:14 -0500 
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Jakarta NT service error
   
   
You need to examine Tomcat 4.0.1's bin\catalina.bat to see the
Java command used to start Catalina.  You must then
update the Java command created by the wrapper.properies
file to create the same command.  The 

Re: Custom Realm Implementation

2002-02-01 Thread Dan Kha


Hi,

That's because TC 4.0.1 (and 4.0.2b1, but not sure about 4.0.2b2) calls
the hasRole() method (in RealmBase) and that method checks to see if
the principal is an instance of GenericPrincipal.  If not, then access is
denied (which I think is what's happening to you).  You will need to
extend from GenericPrincipal or modify the hasRole() method.  I would
extend GenericPrincipal rather than modify hasRole().

Thanks,
dan
--
Development Team
Computing  Network Services
York University, Toronto, Canada

On Fri, 1 Feb 2002, Renato Romano wrote:

 I'm trying to write my own Realm but have some problems...
 MyRealm extends JDBCRealm, overrides the authenticate method(Connection,
 String, String)
 and returns a CustomPrincipal which is My own implementation of Principal;

 When I try to log in, a get a User userName successfully authenticated
 message on the log, but the browser shows me a 403 error (You are not
 allowed ...)

 Any idea ?
 Any document showing the process in details ?
 Thanks

 Renato


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]



--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




regular expressions in JkMount

2002-02-01 Thread Kelly Kleinfelder

I'm running Tomcat 3.2.3 on Solaris 7 with Apache 1.3.14.

I have a webapp, publish, that has the potential to have thousands of
subdirs. One of the subdirs is images.

I want tomcat to handle all of the subdirs of /publish EXCEPT images.

Adding a JkMount statement for every subdir other than images is not an
option, as new ones will get created on the fly.

Here's what I have now:

JkMount /publish/* !images ajp12

It doesn't work. Am I close? Is there a way to do this?

Kelly Kleinfelder
UNIX System Administrator
Unbound Medicine, Inc.
610-627-9090 x229


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

Yes, I followed the directions at http://www.stardeveloper.com/articles/060801-2.shtml

which says...

Now you'll have to create two environment variables, CATALINA_HOME and JAVA_HOME. 
Most probably you'll have JAVA_HOME already created if you have installed Java 
Development Kit on your system. If not then you should create it. The values of these 
variables will be something like :

CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
JAVA_HOME : C:\jdk1.3 
To create these environment variables in Windows 2000, go to Start - Settings - 
Control Panel - System - Advanced - Environment Variables - System variables - 
New. Enter the name and value for CATALINA_HOME and also for JAVA_HOME if not already 
there.


-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 15:25:47 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 you have JAVA_HOME set as a system environment variable, not a user env.
 variable?
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:04 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  Dear Charlie,
  
  Than you for the response. Someone had recomended looking in 
  the batch files to compare setting info (batch files work but 
  server stops when I log out) 
  
  I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
  -XrsError: cannot create new process - the system cannot find 
  the path specified (0x3)
  
  I have JAVA_HOME set up as a Windows Envoronment Variable 
  pointing to c:\jdk1.2.2 and if you go to 
  c:\jdk1.2.2\bin\java.exe is there
  
  I included my wrapper.properties without comments below. All 
  help is really appreciated, I am learning a lot
  
  
  wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
  wrapper.java_home= C:\jdk1.2.2
  
  
  wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
  wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
  
  wrapper.ld_path=d:\
  wrapper.ld_path=c:\
  wrapper.class_path=$(wrapper.java_home)\classes\
  
  wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
  wrapper.shutdown_port=8007
  
  wrapper.shutdown_protocol=ajp13
  
  $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
  $(wrapper.tomcat_home)
  wrapper.cmd_line=$(wrapper.javabin) -Xrs 
  -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
  -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
  $(wrapper.class_path)
  $(wrapper.startup_class) -config $(wrapper.server_xml) start
  
  
  
  
  -Original Message-
  From: Cox, Charlie [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 14:03:59 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service error
  
  
   when installed as a service, you don't need catalina.bat - 
  everything is in
   your wrapper.properties
   
   try this for your wrapper properties in TC4:
   
   wrapper.startup_class=org.apache.catalina.startup.Bootstrap
   
   wrapper.cmd_line=$(wrapper.javabin) -Xrs 
   -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
   -Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
   $(wrapper.startup_class) -config $(wrapper.server_xml) start
   
   Charlie
   
-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 1:52 PM
To: Tomcat Users List
Subject: RE: Jakarta NT service error


I really appreciate the response


I did look at that but probably dont fully understand what I 
am looking at

catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
with Windows environmental variable set to  JAVA_HOME   
C:\jdk1.2.2

and my wrapper.properties file says...
set _STARTJAVA=start %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
and 
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

so I thought that all looked fine, I commented out everything 
related to the 3.2.x jars and the errror went away but 
starting the service fails, just saying Asked (and given) 
winsock 1.1
-
Here are the main elements from my setup below...

My environmental variables...

CATALINA_HOME   C:\jakarta-tomcat-4.0.1
JAVA_HOME   C:\jdk1.2.2


from catalina.bat

if not %OS% == Windows_NT goto noTitle
set _STARTJAVA=start Catalina %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
goto gotTitle
:noTitle
set _STARTJAVA=start %JAVA_HOME%\bin\java
set _RUNJAVA=%JAVA_HOME%\bin\java
:gotTitle

from wrapper.properties

wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
wrapper.java_home= C:\jdk1.2.2


wrapper.class_path=$(wrapper.tomcat_home)\classes
wrapper.class_path=$(wrapper.tomcat_home)\lib\jaxp.jar
wrapper.class_path=$(wrapper.tomcat_home)\lib\parser.jar

Windows 2000 Service Startup Question

2002-02-01 Thread Rich Hansen - Yahoo

I startup tomcat through the Windows 2000 startup services.  I need to startup tomcat 
with the following parm: -DVERITY_K2_HOSTPORT=xx.xx.xx.xx 

Can set this through the server.xml file?  I've added it to the catalina.bat, however 
it seems this file is only called when I start tomcat through the startup.bat command.

Thanks!



RE: Jakarta NT service error

2002-02-01 Thread Cox, Charlie

I think you need to remove the space(after '=') in your catalina_home and
java_home statements:

wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
wrapper.java_home=C:\jdk1.2.2

that is one difference in my wrapper props and I seem to remember that this
'feature' annoyed me before...
Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:38 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 Yes, I followed the directions at 
 http://www.stardeveloper.com/articles/060801-2.shtml
 
 which says...
 
 Now you'll have to create two environment variables, 
 CATALINA_HOME and JAVA_HOME. Most probably you'll have 
 JAVA_HOME already created if you have installed Java 
 Development Kit on your system. If not then you should create 
 it. The values of these variables will be something like :
 
 CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
 JAVA_HOME : C:\jdk1.3 
 To create these environment variables in Windows 2000, go to 
 Start - Settings - Control Panel - System - Advanced - 
 Environment Variables - System variables - New. Enter the 
 name and value for CATALINA_HOME and also for JAVA_HOME if 
 not already there.
 
 
 -Original Message-
 From: Cox, Charlie [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 15:25:47 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  you have JAVA_HOME set as a system environment variable, 
 not a user env.
  variable?
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 3:04 PM
   To: Tomcat Users List
   Subject: RE: Jakarta NT service error
   
   
   Dear Charlie,
   
   Than you for the response. Someone had recomended looking in 
   the batch files to compare setting info (batch files work but 
   server stops when I log out) 
   
   I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
   -XrsError: cannot create new process - the system cannot find 
   the path specified (0x3)
   
   I have JAVA_HOME set up as a Windows Envoronment Variable 
   pointing to c:\jdk1.2.2 and if you go to 
   c:\jdk1.2.2\bin\java.exe is there
   
   I included my wrapper.properties without comments below. All 
   help is really appreciated, I am learning a lot
   
   
   wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
   wrapper.java_home= C:\jdk1.2.2
   
   
   wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
   wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
   
   wrapper.ld_path=d:\
   wrapper.ld_path=c:\
   wrapper.class_path=$(wrapper.java_home)\classes\
   
   wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
   wrapper.shutdown_port=8007
   
   wrapper.shutdown_protocol=ajp13
   
   $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
   $(wrapper.tomcat_home)
   wrapper.cmd_line=$(wrapper.javabin) -Xrs 
   -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
   -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
   $(wrapper.class_path)
   $(wrapper.startup_class) -config $(wrapper.server_xml) start
   
   
   
   
   -Original Message-
   From: Cox, Charlie [EMAIL PROTECTED]
   Date: Fri, 1 Feb 2002 14:03:59 -0500 
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Jakarta NT service error
   
   
when installed as a service, you don't need catalina.bat - 
   everything is in
your wrapper.properties

try this for your wrapper properties in TC4:

wrapper.startup_class=org.apache.catalina.startup.Bootstrap

wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start

Charlie

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 1:52 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 I really appreciate the response
 
 
 I did look at that but probably dont fully understand what I 
 am looking at
 
 catalina.bat includes   set _RUNJAVA=%JAVA_HOME%\bin\java
 with Windows environmental variable set to  JAVA_HOME   
 C:\jdk1.2.2
 
 and my wrapper.properties file says...
 set _STARTJAVA=start %JAVA_HOME%\bin\java
 set _RUNJAVA=%JAVA_HOME%\bin\java
 and 
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe
 
 so I thought that all looked fine, I commented out everything 
 related to the 3.2.x jars and the errror went away but 
 starting the service fails, just saying Asked (and given) 
 winsock 1.1
 -
 Here are the main elements from my setup below...
 
 My environmental variables...
 
 CATALINA_HOME   C:\jakarta-tomcat-4.0.1
 JAVA_HOME   C:\jdk1.2.2
 
 
 from catalina.bat
 
 if not 

Redirect to SSL - some web pages will go thru http and others thru https

2002-02-01 Thread Denton Yip


Hi,

I am a simple problem.  I want to run Tomcat 3.2.4 alone with SSL (No Apache-ssl 
facade).

I've gotten https to work on port 8443 but...

How do I configure so that some of my web pages goes thru http and other goes thru 
https?

Thanks


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Larry Isaacs

I missed earlier the fact that wrapper.class_path
must include the entries set on the CLASSPATH in the
catalina.bat file.  These will be included on the
command line built using wrapper.properties.  Thus,
you would need to add:

wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar

You might want to change the wrapper.tomcat_home's to
wrapper.catalina_home to avoid confusion.

Cheers,
Larry

 -Original Message-
 From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:58 PM
 To: 'Tomcat Users List'
 Subject: RE: Jakarta NT service error
 
 
 I think you need to remove the space(after '=') in your 
 catalina_home and
 java_home statements:
 
 wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
 wrapper.java_home=C:\jdk1.2.2
 
 that is one difference in my wrapper props and I seem to 
 remember that this
 'feature' annoyed me before...
 Charlie
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:38 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  Yes, I followed the directions at 
  http://www.stardeveloper.com/articles/060801-2.shtml
  
  which says...
  
  Now you'll have to create two environment variables, 
  CATALINA_HOME and JAVA_HOME. Most probably you'll have 
  JAVA_HOME already created if you have installed Java 
  Development Kit on your system. If not then you should create 
  it. The values of these variables will be something like :
  
  CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
  JAVA_HOME : C:\jdk1.3 
  To create these environment variables in Windows 2000, go to 
  Start - Settings - Control Panel - System - Advanced - 
  Environment Variables - System variables - New. Enter the 
  name and value for CATALINA_HOME and also for JAVA_HOME if 
  not already there.
  
  
  -Original Message-
  From: Cox, Charlie [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 15:25:47 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service error
  
  
   you have JAVA_HOME set as a system environment variable, 
  not a user env.
   variable?
   
-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:04 PM
To: Tomcat Users List
Subject: RE: Jakarta NT service error


Dear Charlie,

Than you for the response. Someone had recomended looking in 
the batch files to compare setting info (batch files work but 
server stops when I log out) 

I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
-XrsError: cannot create new process - the system cannot find 
the path specified (0x3)

I have JAVA_HOME set up as a Windows Envoronment Variable 
pointing to c:\jdk1.2.2 and if you go to 
c:\jdk1.2.2\bin\java.exe is there

I included my wrapper.properties without comments below. All 
help is really appreciated, I am learning a lot


wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
wrapper.java_home= C:\jdk1.2.2


wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\

wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
wrapper.shutdown_port=8007

wrapper.shutdown_protocol=ajp13

$(wrapper.startup_class) -config $(wrapper.server_xml) -home 
$(wrapper.tomcat_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
$(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) start




-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 14:03:59 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 when installed as a service, you don't need catalina.bat - 
everything is in
 your wrapper.properties
 
 try this for your wrapper properties in TC4:
 
 wrapper.startup_class=org.apache.catalina.startup.Bootstrap
 
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=D:\tomcat -classpath $(wrapper.class_path) 
 $(wrapper.startup_class) -config $(wrapper.server_xml) start
 
 Charlie
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 1:52 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  I really appreciate the response
  
  
  I did look at that but probably dont fully 
 understand what I 
  am looking at
  
  catalina.bat includes   set 

RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

Thanks for looking at this. I made that change and dont see a difference; error reads

$(wrapper.JAVA_HOME)\bin\java.exe -XrsError: Can not create new process - The system 
cannot find the path specified. (0x3)

wrapper.properties reads
wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1

wrapper.java_home=C:\jdk1.2.2

wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\
wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
wrapper.startup_class=org.apache.catalina.startup.Bootstrap
wrapper.server_xml=$(wrapper.tomcat_home)\conf\server.xml

wrapper.shutdown_port=8007
wrapper.shutdown_protocol=ajp13
$(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.tomcat_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath $(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) start

-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 15:57:31 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error
$

 I think you need to remove the space(after '=') in your catalina_home and
 java_home statements:
 
 wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
 wrapper.java_home=C:\jdk1.2.2
 
 that is one difference in my wrapper props and I seem to remember that this
 'feature' annoyed me before...
 Charlie
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:38 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  Yes, I followed the directions at 
  http://www.stardeveloper.com/articles/060801-2.shtml
  
  which says...
  
  Now you'll have to create two environment variables, 
  CATALINA_HOME and JAVA_HOME. Most probably you'll have 
  JAVA_HOME already created if you have installed Java 
  Development Kit on your system. If not then you should create 
  it. The values of these variables will be something like :
  
  CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
  JAVA_HOME : C:\jdk1.3 
  To create these environment variables in Windows 2000, go to 
  Start - Settings - Control Panel - System - Advanced - 
  Environment Variables - System variables - New. Enter the 
  name and value for CATALINA_HOME and also for JAVA_HOME if 
  not already there.
  
  
  -Original Message-
  From: Cox, Charlie [EMAIL PROTECTED]
  Date: Fri, 1 Feb 2002 15:25:47 -0500 
  To: 'Tomcat Users List' [EMAIL PROTECTED]
  Subject: RE: Jakarta NT service error
  
  
   you have JAVA_HOME set as a system environment variable, 
  not a user env.
   variable?
   
-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:04 PM
To: Tomcat Users List
Subject: RE: Jakarta NT service error


Dear Charlie,

Than you for the response. Someone had recomended looking in 
the batch files to compare setting info (batch files work but 
server stops when I log out) 

I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
-XrsError: cannot create new process - the system cannot find 
the path specified (0x3)

I have JAVA_HOME set up as a Windows Envoronment Variable 
pointing to c:\jdk1.2.2 and if you go to 
c:\jdk1.2.2\bin\java.exe is there

I included my wrapper.properties without comments below. All 
help is really appreciated, I am learning a lot


wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
wrapper.java_home= C:\jdk1.2.2


wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\

wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
wrapper.shutdown_port=8007

wrapper.shutdown_protocol=ajp13

$(wrapper.startup_class) -config $(wrapper.server_xml) -home 
$(wrapper.tomcat_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
$(wrapper.class_path)
$(wrapper.startup_class) -config $(wrapper.server_xml) start




-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 14:03:59 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 when installed as a service, you don't need catalina.bat - 
everything is in
 your wrapper.properties
 
 try this for your wrapper properties in TC4:
 
 wrapper.startup_class=org.apache.catalina.startup.Bootstrap
 
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 

RE: Jakarta NT service error

2002-02-01 Thread Cox, Charlie

one more thing...

wrapper.java_home is not the same as wrapper.JAVA_HOME

change your javabin line to:
wrapper.javabin=$(wrapper.java_home)\bin\java.exe

I missed that I have the bootstrap.jar line below...but I don't think that
you got that far yet - I think its not resolving wrapper.java_home
Charlie

 -Original Message-
 From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 4:12 PM
 To: 'Tomcat Users List'
 Subject: RE: Jakarta NT service error
 
 
 I missed earlier the fact that wrapper.class_path
 must include the entries set on the CLASSPATH in the
 catalina.bat file.  These will be included on the
 command line built using wrapper.properties.  Thus,
 you would need to add:
 
 wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
 wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
 
 You might want to change the wrapper.tomcat_home's to
 wrapper.catalina_home to avoid confusion.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:58 PM
  To: 'Tomcat Users List'
  Subject: RE: Jakarta NT service error
  
  
  I think you need to remove the space(after '=') in your 
  catalina_home and
  java_home statements:
  
  wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
  wrapper.java_home=C:\jdk1.2.2
  
  that is one difference in my wrapper props and I seem to 
  remember that this
  'feature' annoyed me before...
  Charlie
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 3:38 PM
   To: Tomcat Users List
   Subject: RE: Jakarta NT service error
   
   
   Yes, I followed the directions at 
   http://www.stardeveloper.com/articles/060801-2.shtml
   
   which says...
   
   Now you'll have to create two environment variables, 
   CATALINA_HOME and JAVA_HOME. Most probably you'll have 
   JAVA_HOME already created if you have installed Java 
   Development Kit on your system. If not then you should create 
   it. The values of these variables will be something like :
   
   CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
   JAVA_HOME : C:\jdk1.3 
   To create these environment variables in Windows 2000, go to 
   Start - Settings - Control Panel - System - Advanced - 
   Environment Variables - System variables - New. Enter the 
   name and value for CATALINA_HOME and also for JAVA_HOME if 
   not already there.
   
   
   -Original Message-
   From: Cox, Charlie [EMAIL PROTECTED]
   Date: Fri, 1 Feb 2002 15:25:47 -0500 
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Jakarta NT service error
   
   
you have JAVA_HOME set as a system environment variable, 
   not a user env.
variable?

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:04 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 Dear Charlie,
 
 Than you for the response. Someone had recomended looking in 
 the batch files to compare setting info (batch files work but 
 server stops when I log out) 
 
 I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
 -XrsError: cannot create new process - the system cannot find 
 the path specified (0x3)
 
 I have JAVA_HOME set up as a Windows Envoronment Variable 
 pointing to c:\jdk1.2.2 and if you go to 
 c:\jdk1.2.2\bin\java.exe is there
 
 I included my wrapper.properties without comments below. All 
 help is really appreciated, I am learning a lot
 
 
 wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
 wrapper.java_home= C:\jdk1.2.2
 
 
 wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
 wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
 
 wrapper.ld_path=d:\
 wrapper.ld_path=c:\
 wrapper.class_path=$(wrapper.java_home)\classes\
 
 wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
 wrapper.shutdown_port=8007
 
 wrapper.shutdown_protocol=ajp13
 
 $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
 $(wrapper.tomcat_home)
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
 -Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath 
 $(wrapper.class_path)
 $(wrapper.startup_class) -config $(wrapper.server_xml) start
 
 
 
 
 -Original Message-
 From: Cox, Charlie [EMAIL PROTECTED]
 Date: Fri, 1 Feb 2002 14:03:59 -0500 
 To: 'Tomcat Users List' [EMAIL PROTECTED]
 Subject: RE: Jakarta NT service error
 
 
  when installed as a service, you don't need catalina.bat - 
 everything is in
  your wrapper.properties
  
  try this for your wrapper properties in TC4:
  
  wrapper.startup_class=org.apache.catalina.startup.Bootstrap
  
  wrapper.cmd_line=$(wrapper.javabin) -Xrs 
  

HELP on server.xml PLEASE

2002-02-01 Thread Micael Padraig Og mac Grene

My forte is Java and at the XML configuration of Tomcat I suck.  Could 
someone please help me with this?  It would be greatly appreciated.

If I add the following to servlet.xml, then I get the startup.sh to create 
the proper directories under TOMCAT_HOME/work/.  But, then I cannot reach 
my site with the urls.  If I don't add these, then I can reach the site, 
but without the create of the appropriate subfolders.  What is up?



Context path=/ourforge
docBase=webapps/ourforge
debug=0
reloadable=true
/Context
Context path=/micael
docBase=webapps/micael
debug=0
reloadable=true 
/Context
Context path=/db
docBase=webapps/db
debug=0
reloadable=true 
/Context
Context path=/ctr
docBase=webapps/ctr
debug=0
reloadable=true 
/Context

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are received
  and responses are returned.  Each Connector passes requests on to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second 
Connector
  entry.  SSL support requires the following steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
with a password value of changeit for both the certificate and
the keystore itself.

  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to -1 --

 !-- Define an SSL HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 --

 !-- Define an AJP 1.3 Connector on port 8009 --
 !--
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 --

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
 !-- See proxy documentation for more information about using this. --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8081 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 connectionTimeout=6
proxyPort=80/
 --

 !-- Define a non-SSL HTTP/1.0 Test Connector 

RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

Thanks for the help, still not working but error message went away

here is my wrapper


wrapper.catalina_home=C:\jakarta-catalina-4.0.1

wrapper.java_home=C:\jdk1.2.2

wrapper.stdout=$(wrapper.catalina_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.catalina_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\
wrapper.class_path=$(wrapper.catalina_home)\bin\bootstrap.jar
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
wrapper.startup_class=org.apache.catalina.startup.Bootstrap
wrapper.server_xml=$(wrapper.catalina_home)\conf\server.xml

wrapper.shutdown_port=8007
wrapper.shutdown_protocol=ajp13
$(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.catalina_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-catalina-4.0.1 -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start

-Original Message-
From: Larry Isaacs [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 16:11:33 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 I missed earlier the fact that wrapper.class_path
 must include the entries set on the CLASSPATH in the
 catalina.bat file.  These will be included on the
 command line built using wrapper.properties.  Thus,
 you would need to add:
 
 wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
 wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
 
 You might want to change the wrapper.tomcat_home's to
 wrapper.catalina_home to avoid confusion.
 
 Cheers,
 Larry
 
  -Original Message-
  From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:58 PM
  To: 'Tomcat Users List'
  Subject: RE: Jakarta NT service error
  
  
  I think you need to remove the space(after '=') in your 
  catalina_home and
  java_home statements:
  
  wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
  wrapper.java_home=C:\jdk1.2.2
  
  that is one difference in my wrapper props and I seem to 
  remember that this
  'feature' annoyed me before...
  Charlie
  
   -Original Message-
   From: Atok Koenig [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 3:38 PM
   To: Tomcat Users List
   Subject: RE: Jakarta NT service error
   
   
   Yes, I followed the directions at 
   http://www.stardeveloper.com/articles/060801-2.shtml
   
   which says...
   
   Now you'll have to create two environment variables, 
   CATALINA_HOME and JAVA_HOME. Most probably you'll have 
   JAVA_HOME already created if you have installed Java 
   Development Kit on your system. If not then you should create 
   it. The values of these variables will be something like :
   
   CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
   JAVA_HOME : C:\jdk1.3 
   To create these environment variables in Windows 2000, go to 
   Start - Settings - Control Panel - System - Advanced - 
   Environment Variables - System variables - New. Enter the 
   name and value for CATALINA_HOME and also for JAVA_HOME if 
   not already there.
   
   
   -Original Message-
   From: Cox, Charlie [EMAIL PROTECTED]
   Date: Fri, 1 Feb 2002 15:25:47 -0500 
   To: 'Tomcat Users List' [EMAIL PROTECTED]
   Subject: RE: Jakarta NT service error
   
   
you have JAVA_HOME set as a system environment variable, 
   not a user env.
variable?

 -Original Message-
 From: Atok Koenig [mailto:[EMAIL PROTECTED]]
 Sent: Friday, February 01, 2002 3:04 PM
 To: Tomcat Users List
 Subject: RE: Jakarta NT service error
 
 
 Dear Charlie,
 
 Than you for the response. Someone had recomended looking in 
 the batch files to compare setting info (batch files work but 
 server stops when I log out) 
 
 I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
 -XrsError: cannot create new process - the system cannot find 
 the path specified (0x3)
 
 I have JAVA_HOME set up as a Windows Envoronment Variable 
 pointing to c:\jdk1.2.2 and if you go to 
 c:\jdk1.2.2\bin\java.exe is there
 
 I included my wrapper.properties without comments below. All 
 help is really appreciated, I am learning a lot
 
 
 wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
 wrapper.java_home= C:\jdk1.2.2
 
 
 wrapper.stdout=$(wrapper.tomcat_home)\logs\jvm.stdout
 wrapper.stderr=$(wrapper.tomcat_home)\logs\jvm.stderr
 
 wrapper.ld_path=d:\
 wrapper.ld_path=c:\
 wrapper.class_path=$(wrapper.java_home)\classes\
 
 wrapper.javabin=$(wrapper.JAVA_HOME)\bin\java.exe
 wrapper.shutdown_port=8007
 
 wrapper.shutdown_protocol=ajp13
 
 $(wrapper.startup_class) -config $(wrapper.server_xml) -home 
 $(wrapper.tomcat_home)
 wrapper.cmd_line=$(wrapper.javabin) -Xrs 
 

What is wrong with this server.xml?

2002-02-01 Thread Micael Padraig Og mac Grene

When I use the following server.xml, I get Page cannot be displayed.  But 
if I take out the context information in host ...  it works but only goes 
to the default ROOT.  How come?

Thanks.

!-- Example Server Configuration File --
!-- Note that component elements are nested corresponding to their
  parent-child relationships with each other --

!-- A Server is a singleton element that represents the entire JVM,
  which may contain one or more Service instances.  The Server
  listens for a shutdown command on the indicated port.

  Note:  A Server is not itself a Container, so you may not
  define subcomponents such as Valves or Loggers at this level.
  --

Server port=8005 shutdown=SHUTDOWN debug=0


   !-- A Service is a collection of one or more Connectors that share
a single Container (and therefore the web applications visible
within that Container).  Normally, that Container is an Engine,
but this is not required.

Note:  A Service is not itself a Container, so you may not
define subcomponents such as Valves or Loggers at this level.
--

   !-- Define the Tomcat Stand-Alone Service --
   Service name=Tomcat-Standalone

 !-- A Connector represents an endpoint by which requests are received
  and responses are returned.  Each Connector passes requests on to the
  associated Container (normally an Engine) for processing.

  By default, a non-SSL HTTP/1.1 Connector is established on port 8080.
  You can also enable an SSL HTTP/1.1 Connector on port 8443 by
  following the instructions below and uncommenting the second 
Connector
  entry.  SSL support requires the following steps (see the SSL Config
  HOWTO in the Tomcat 4.0 documentation bundle for more detailed
  instructions):
  * Download and install JSSE 1.0.2 or later, and put the JAR files
into $JAVA_HOME/jre/lib/ext.
  * Execute:
  %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg RSA 
(Windows)
  $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg RSA  (Unix)
with a password value of changeit for both the certificate and
the keystore itself.

  By default, DNS lookups are enabled when a web application calls
  request.getRemoteHost().  This can have an adverse impact on
  performance, so you can disable it by setting the
  enableLookups attribute to false.  When DNS lookups are disabled,
  request.getRemoteHost() will return the String version of the
  IP address of the remote client.
 --

 !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
acceptCount=10 debug=0 connectionTimeout=6/
 !-- Note : To disable connection timeouts, set connectionTimeout value
  to -1 --

 !-- Define an SSL HTTP/1.1 Connector on port 8443 --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8443 minProcessors=5 maxProcessors=75
enableLookups=true
   acceptCount=10 debug=0 scheme=https secure=true
   Factory className=org.apache.catalina.net.SSLServerSocketFactory
clientAuth=false protocol=TLS/
 /Connector
 --

 !-- Define an AJP 1.3 Connector on port 8009 --
 !--
 Connector className=org.apache.ajp.tomcat4.Ajp13Connector
port=8009 minProcessors=5 maxProcessors=75
acceptCount=10 debug=0/
 --

 !-- Define a Proxied HTTP/1.1 Connector on port 8081 --
 !-- See proxy documentation for more information about using this. --
 !--
 Connector className=org.apache.catalina.connector.http.HttpConnector
port=8081 minProcessors=5 maxProcessors=75
enableLookups=true
acceptCount=10 debug=0 connectionTimeout=6
proxyPort=80/
 --

 !-- Define a non-SSL HTTP/1.0 Test Connector on port 8082 --
 !--
 Connector className=org.apache.catalina.connector.http10.HttpConnector
port=8082 minProcessors=5 maxProcessors=75
enableLookups=true redirectPort=8443
acceptCount=10 debug=0/
 --

 !-- An Engine represents the entry point (within Catalina) that processes
  every request.  The Engine implementation for Tomcat stand alone
  analyzes the HTTP headers included with the request, and passes them
  on to the appropriate Host (virtual host). --

 !-- Define the top level container in our container hierarchy --
 Engine name=Standalone defaultHost=localhost debug=0

   !-- The request dumper valve dumps useful debugging information about
the request headers and cookies 

Re: J2EE 1.3 RI + Tomcat 4.0.1

2002-02-01 Thread Craig R. McClanahan



On Fri, 1 Feb 2002, Matthew wrote:

 Date: Fri, 1 Feb 2002 13:55:50 +0100
 From: Matthew [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: J2EE 1.3 RI + Tomcat 4.0.1

 Hi Craig,

 That's the problem: I NEED separate instance of Tomcat. So I am repeating
 the question once more:

 Were anyone succesfull in deploying EAR application on J2EE RI + Tomcat
 combination. That means using RI as EJB container and Tomcat as Web
 container? If so send detail spec here plz...


The J2EE RI does not support this (access to EJBs from remote JVMs).
You'll need to use a different container.

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: HELP on server.xml PLEASE

2002-02-01 Thread August Detlefsen

I am pretty sure that you need to add the contexts within your virtual
hosts. If the same context needs to be accessed from multiple virtual
hosts, you have to define it for each one. 

Does anyone know of a way to deploy a context across multiple virtual
hosts? 




--- Micael Padraig Og mac Grene [EMAIL PROTECTED] wrote:
 My forte is Java and at the XML configuration of Tomcat I suck. 
 Could 
 someone please help me with this?  It would be greatly appreciated.
 
 If I add the following to servlet.xml, then I get the startup.sh to
 create 
 the proper directories under TOMCAT_HOME/work/.  But, then I cannot
 reach 
 my site with the urls.  If I don't add these, then I can reach the
 site, 
 but without the create of the appropriate subfolders.  What is up?
 
 
 
   Context path=/ourforge
   docBase=webapps/ourforge
   debug=0
   reloadable=true
   /Context
   Context path=/micael
   docBase=webapps/micael
   debug=0
   reloadable=true 
   /Context
   Context path=/db
   docBase=webapps/db
   debug=0
   reloadable=true 
   /Context
   Context path=/ctr
   docBase=webapps/ctr
   debug=0
   reloadable=true 
   /Context
 
 !-- Example Server Configuration File --
 !-- Note that component elements are nested corresponding to their
   parent-child relationships with each other --
 
 !-- A Server is a singleton element that represents the entire
 JVM,
   which may contain one or more Service instances.  The Server
   listens for a shutdown command on the indicated port.
 
   Note:  A Server is not itself a Container, so you may not
   define subcomponents such as Valves or Loggers at this
 level.
   --
 
 Server port=8005 shutdown=SHUTDOWN debug=0
 
 
!-- A Service is a collection of one or more Connectors that
 share
 a single Container (and therefore the web applications
 visible
 within that Container).  Normally, that Container is an
 Engine,
 but this is not required.
 
 Note:  A Service is not itself a Container, so you may
 not
 define subcomponents such as Valves or Loggers at this
 level.
 --
 
!-- Define the Tomcat Stand-Alone Service --
Service name=Tomcat-Standalone
 
  !-- A Connector represents an endpoint by which requests are
 received
   and responses are returned.  Each Connector passes requests
 on to the
   associated Container (normally an Engine) for processing.
 
   By default, a non-SSL HTTP/1.1 Connector is established on
 port 8080.
   You can also enable an SSL HTTP/1.1 Connector on port 8443
 by
   following the instructions below and uncommenting the
 second 
 Connector
   entry.  SSL support requires the following steps (see the
 SSL Config
   HOWTO in the Tomcat 4.0 documentation bundle for more
 detailed
   instructions):
   * Download and install JSSE 1.0.2 or later, and put the JAR
 files
 into $JAVA_HOME/jre/lib/ext.
   * Execute:
   %JAVA_HOME%\bin\keytool -genkey -alias tomcat -keyalg
 RSA 
 (Windows)
   $JAVA_HOME/bin/keytool -genkey -alias tomcat -keyalg
 RSA  (Unix)
 with a password value of changeit for both the
 certificate and
 the keystore itself.
 
   By default, DNS lookups are enabled when a web application
 calls
   request.getRemoteHost().  This can have an adverse impact
 on
   performance, so you can disable it by setting the
   enableLookups attribute to false.  When DNS lookups are
 disabled,
   request.getRemoteHost() will return the String version of
 the
   IP address of the remote client.
  --
 
  !-- Define a non-SSL HTTP/1.1 Connector on port 8080 --
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
   port=8080 minProcessors=5 maxProcessors=75
  enableLookups=true redirectPort=8443
 acceptCount=10 debug=0
 connectionTimeout=6/
  !-- Note : To disable connection timeouts, set
 connectionTimeout value
   to -1 --
 
  !-- Define an SSL HTTP/1.1 Connector on port 8443 --
  !--
  Connector
 className=org.apache.catalina.connector.http.HttpConnector
 port=8443 minProcessors=5 maxProcessors=75
 enableLookups=true
  acceptCount=10 debug=0 scheme=https secure=true
Factory
 className=org.apache.catalina.net.SSLServerSocketFactory
 clientAuth=false protocol=TLS/
  /Connector
  --
 
  !-- Define an AJP 1.3 Connector on port 8009 --
  !--
  Connector className=org.apache.ajp.tomcat4.Ajp13Connector
 port=8009 minProcessors=5 maxProcessors=75
 acceptCount=10 debug=0/
  --
 
  !-- Define a Proxied HTTP/1.1 

Re: classes NOT in WEB-INF/classes or CATALINE_HOME/classes

2002-02-01 Thread Craig R. McClanahan

On Fri, 1 Feb 2002, Dave Ford wrote:

 Date: Fri, 1 Feb 2002 06:14:38 -0800
 From: Dave Ford [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: classes NOT in WEB-INF/classes or CATALINE_HOME/classes

 From my understanding of Tomcat, unjar'd classes should be placed in
 WEB-INF/classes for ONE web app, and  CATALINA_HOME/classes for shared
 access by ALL webapps (correct me if I'm wrong).

 Here is what I would like to do: make an un-jar'd class library available to
 ONE or ALL web apps. And NOT place them in pre-designated directories.
 Reason: I have a development box that runs Tomcat, Orion Server and Web
 Logic. It also runs non-webapps. I have a common set of classes used by all.
 Don't want to maintain multiple copies of the common class library.

 I understand that a webapp is supposed to be a self contained deployment
 unit, but it seems that classes should, optionally, be allowed in user
 defined paths. In Orion Server, this can be accomplished by adding a
 classpath entry to orion-web.xml (one web app) or server.xml (all web-apps).
 How can this be done in Tomcat?


Two choices meet your criteria:

* Use symlinks from the predefined place for each
  server to the common spot where they are installed
  (only works on platforms supporting symlinks, obviously)

* Modify the Tomcat startup scripts to not ignore the
  CLASSPATH environment variable (requires you to take
  responsibility for resolving your own class loading
  issues).

Personally, I use a third approach:

* Set up my application deployment process to copy the required
  JAR files into each server's appropriate lib directory
  (or whatever) every time the app is installed.  Disk space
  is incredibly cheaper than the developer time you lose
  debugging classpath problems.


 Dave Ford
 Smart Soft - The Developer Training Company
 http://www.smart-soft.comave


Craig



 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




RE: Jakarta NT service error

2002-02-01 Thread Atok Koenig

I fixed it and still nothing

--wrapper.properties file--

wrapper.catalina_home=C:\jakarta-tomcat-4.0.1
wrapper.java_home=C:\jdk1.2.2

wrapper.stdout=$(wrapper.catalina_home)\logs\jvm.stdout
wrapper.stderr=$(wrapper.catalina_home)\logs\jvm.stderr

wrapper.ld_path=d:\
wrapper.ld_path=c:\
wrapper.class_path=$(wrapper.java_home)\classes\
wrapper.class_path=$(wrapper.catalina_home)\bin\bootstrap.jar
wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
wrapper.javabin=$(wrapper.java_home)\bin\java.exe
wrapper.startup_class=org.apache.catalina.startup.Bootstrap
wrapper.server_xml=$(wrapper.catalina_home)\conf\server.xml

wrapper.shutdown_port=8007
wrapper.shutdown_protocol=ajp13
$(wrapper.startup_class) -config $(wrapper.server_xml) -home $(wrapper.catalina_home)
wrapper.cmd_line=$(wrapper.javabin) -Xrs 
-Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser 
-Dcatalina.home=C:\jakarta-tomcat-4.0.1 -classpath $(wrapper.class_path) 
$(wrapper.startup_class) -config $(wrapper.server_xml) start



-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 16:20:52 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 one more thing...
 
 wrapper.java_home is not the same as wrapper.JAVA_HOME
 
 change your javabin line to:
 wrapper.javabin=$(wrapper.java_home)\bin\java.exe
 
 I missed that I have the bootstrap.jar line below...but I don't think that
 you got that far yet - I think its not resolving wrapper.java_home
 Charlie
 
  -Original Message-
  From: Larry Isaacs [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 4:12 PM
  To: 'Tomcat Users List'
  Subject: RE: Jakarta NT service error
  
  
  I missed earlier the fact that wrapper.class_path
  must include the entries set on the CLASSPATH in the
  catalina.bat file.  These will be included on the
  command line built using wrapper.properties.  Thus,
  you would need to add:
  
  wrapper.class_path=$(wrapper.tomcat_home)\bin\bootstrap.jar
  wrapper.class_path=$(wrapper.java_home)\lib\tools.jar
  
  You might want to change the wrapper.tomcat_home's to
  wrapper.catalina_home to avoid confusion.
  
  Cheers,
  Larry
  
   -Original Message-
   From: Cox, Charlie [mailto:[EMAIL PROTECTED]]
   Sent: Friday, February 01, 2002 3:58 PM
   To: 'Tomcat Users List'
   Subject: RE: Jakarta NT service error
   
   
   I think you need to remove the space(after '=') in your 
   catalina_home and
   java_home statements:
   
   wrapper.tomcat_home=C:\jakarta-tomcat-4.0.1
   wrapper.java_home=C:\jdk1.2.2
   
   that is one difference in my wrapper props and I seem to 
   remember that this
   'feature' annoyed me before...
   Charlie
   
-Original Message-
From: Atok Koenig [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:38 PM
To: Tomcat Users List
Subject: RE: Jakarta NT service error


Yes, I followed the directions at 
http://www.stardeveloper.com/articles/060801-2.shtml

which says...

Now you'll have to create two environment variables, 
CATALINA_HOME and JAVA_HOME. Most probably you'll have 
JAVA_HOME already created if you have installed Java 
Development Kit on your system. If not then you should create 
it. The values of these variables will be something like :

CATALINA_HOME : C:\jakarta-tomcat-4.0-b5 
JAVA_HOME : C:\jdk1.3 
To create these environment variables in Windows 2000, go to 
Start - Settings - Control Panel - System - Advanced - 
Environment Variables - System variables - New. Enter the 
name and value for CATALINA_HOME and also for JAVA_HOME if 
not already there.


-Original Message-
From: Cox, Charlie [EMAIL PROTECTED]
Date: Fri, 1 Feb 2002 15:25:47 -0500 
To: 'Tomcat Users List' [EMAIL PROTECTED]
Subject: RE: Jakarta NT service error


 you have JAVA_HOME set as a system environment variable, 
not a user env.
 variable?
 
  -Original Message-
  From: Atok Koenig [mailto:[EMAIL PROTECTED]]
  Sent: Friday, February 01, 2002 3:04 PM
  To: Tomcat Users List
  Subject: RE: Jakarta NT service error
  
  
  Dear Charlie,
  
  Than you for the response. Someone had recomended looking in 
  the batch files to compare setting info (batch files work but 
  server stops when I log out) 
  
  I am getting the message $(wrapper.JAVA_HOME)\bin\java.exe 
  -XrsError: cannot create new process - the system cannot find 
  the path specified (0x3)
  
  I have JAVA_HOME set up as a Windows Envoronment Variable 
  pointing to c:\jdk1.2.2 and if you go to 
  c:\jdk1.2.2\bin\java.exe is there
  
  I included my wrapper.properties without comments below. All 
  help is really appreciated, I am learning a lot
  
  
  wrapper.tomcat_home= C:\jakarta-tomcat-4.0.1
  

Re: triggering JSP page recompilation

2002-02-01 Thread August Detlefsen

If you are using includes for things like header and footer, have you
considered forwarding body content to a template page instead? 

Using the Jakarta-Taglibs request library: 

http://jakarta.apache.org/taglibs/doc/request-doc/intro.html

You can do something like this: 

BODY PAGE: 

%@ taglib uri=request.jar prefix=req %

req:setattribute name=content

(HTML, JSP, etc - Whatever needs to go in the body of the page goes
here...)

/req:setattribute

jsp:forward page=/template.jsp /


TEMPLATE PAGE (template.jsp): 

(HTML header)

(HTML sidebar)

%= request.getAttribute(content) %

(HTML footer)


This way you can alter the template page to your heart's content and
never have to worry about recompiling the body pages. You can even have
multiple templates for each body page (for example if you want to have
a printer friendly version of a page without the navigation). 

-August


--- Nick Wesselman [EMAIL PROTECTED] wrote:
 
 
 As I mentioned before, GNUJSP keeps a
 record of what files include what, and if told to, recompiles all
 including files when an included file changes.  
 
 I don't recall gnujsp doing this--I've always had to touch files when
 I 
 change an included file with gnujsp as well.
 
 Nick
 
 
 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]
 


__
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions! 
http://auctions.yahoo.com

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: servlet url at init time

2002-02-01 Thread Craig R. McClanahan



On Fri, 1 Feb 2002 [EMAIL PROTECTED] wrote:

 Date: Fri, 1 Feb 2002 17:13:07 +0100
 From: [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: servlet url at init time


 Hello all,

 I would like to know the URL of a servlet _in its init method_:
 I need it to know how it is called without having to tell it via a
 config file...
 I know how to get it when dealing with doGet or doPost, but can't
 find any api at init time :(


There is no such API, but see below for part of the answer.

 did I miss something?


Keep in mind that a servlet doesn't have to have a URL -- you can map as
many different URL patterns as you like to it.  Therefore, if you *really*
want to know, you can use an XML parser to read the /WEB-INF/web.xml
resource and figure them all out.  You can find out your own
servlet-name (in servlet 2.3 at least) from the ServletConfig object, so
it's just a matter of looking for all the url-pattern values that map to
this name.

This still only tells you the context-relative part of the URL -- the
context path is not visible until a request comes in.

 thanks
 --
 Joseph


Craig




 This message and any attachments (the message) is
 intended solely for the addressees and is confidential.
 If you receive this message in error, please delete it and
 immediately notify the sender. Any use not in accord with
 its purpose, any dissemination or disclosure, either whole
 or partial, is prohibited except formal approval. The internet
 can not guarantee the integrity of this message.
 BNP PARIBAS (and its subsidiaries) shall (will) not
 therefore be liable for the message if modified.

 -

 Ce message et toutes les pieces jointes (ci-apres le
 message) sont etablis a l'intention exclusive de ses
 destinataires et sont confidentiels. Si vous recevez ce
 message par erreur, merci de le detruire et d'en avertir
 immediatement l'expediteur. Toute utilisation de ce
 message non conforme a sa destination, toute diffusion
 ou toute publication, totale ou partielle, est interdite, sauf
 autorisation expresse. L'internet ne permettant pas
 d'assurer l'integrite de ce message, BNP PARIBAS (et ses
 filiales) decline(nt) toute responsabilite au titre de ce
 message, dans l'hypothese ou il aurait ete modifie.


 --
 To unsubscribe:   mailto:[EMAIL PROTECTED]
 For additional commands: mailto:[EMAIL PROTECTED]
 Troubles with the list: mailto:[EMAIL PROTECTED]




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Custom Auth for JDBC Realm server xml help 3.3-m4

2002-02-01 Thread lonp

Hello All,

How do I direct Tomcat via the server.xml file to use a custom class for
JDBC auth with Tomcat 3.3-m4?  Do I need to switch to 4.0 to use a custom
auth class?  I understand that in 4.0 it is easy to set the realm
class=.../ entry but 4.0 has a bug that I want to avoid for now.

I've created a custom class called TMSJDBCRealm which extends BaseRealm and
placed it into the tomcat_modules.jar.

I then tried to add the entry TMSJDBCRealm ... / just after the
CredentialsInterceptor / entry but Tomcat does not appear to be calling my
class.  When I go to a protected url I do get the basic login box but
entering a user name and password avail nothing.  I also look for my debug
info to scroll past on the server and nothing is there.

Any help is greatly appreciated.

Thanks

Lon Palmer




--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Can't upload binaries with JSPSmartUpload, Tomcat and Netscape Server

2002-02-01 Thread Durham David Cntr 805CSS/SCBE

I'm locked into Netscape Server for the moment.

I can upload text-files fine with jspsmartupload, but when I try to upload binaries it 
fails.  Exact same code works on Tomcat/IIS server, but does not work on Netscape 
Server.

Thought it might have something to do with a proxy, but it didn't.

Does Netscape Server block binary file uploads or have the ability to do so?

Not much on the web about this.  Wondering if anyone else has run into this or 
something similar.

-Dave

--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




Re: JNDI Q's

2002-02-01 Thread Craig R. McClanahan



On Fri, 1 Feb 2002, Christian Cryder wrote:

 Date: Fri, 1 Feb 2002 09:29:49 -0700
 From: Christian Cryder [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat-User [EMAIL PROTECTED]
 Subject: JNDI Q's

 Ok, I've searched through most of the docs now and I have some very basic
 JDNI specific questions:

 1. Are there any parts of JNDI which are _not_ included with Tomcat 4.0.1?
 (ie. is there anything that still needs to be downloaded/installed
 separately?)


What's included is jndi.jar, to give you the basic javax.naming apis.
That's all you need to do internal-to-Tomcat things related to naming,
such as reading the contents of the JNDI InitialContext that Tomcat
provides for each webapp.

If you need to talk to non-Tomcat-provided resources (such as an LDAP
based directory server), you will need to download and install the
appropriate JNDI provider (which would include ldap.jar and
providerutil.jar in this particular case).

 2. What exactly is the relationship between what gets defined in server.xml
 and a specific webapp's web.xml? In other words, I see how you define a JNDI
 resource in server.xml using Resource and ResourceParams -- as I
 understand it this makes a resource available to a particual context (ie.
 webapp). What then, is the purpose of also defining the resource using
 resource-ref in that app's web.xml file?


The basic docs on JNDI resources are included in the Tomcat docs webapp,
and available online at:

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

J2EE servers only define entries in your JNDI initial context for which
you declare references (resource-entry, resource-ref-entry, and so on) in
your web.xml file.  Tomcat is currently a little bit slipshod and lets you
see resources declared only in server.xml.  It shouldn't really do that.

 3. Is there any way to define a JNDI resource just through the web.xml file
 (as opposed to using server.xml file?) When you change web.xml, you can only
 need to cycle the webapp; when you change server.xml you have to cycle the
 entire server, which I'd like to avoid.


There is no mechanism to declare resources themselves solely in web.xml --
you can only declare *references* to resources.

Tomcat currently does not support dynamically adding or removing resources
while it is running.  That would be a nice enhancement.

 4. Is there anyway to use the Tomcat manager app to cycle the whole server?
 What's the best way to do this? (especially if Tomcat is running as an NT
 service!)


The manager app cannot do that.  You'll need to use outside of Tomcat
things to accomplish this restart (such as the usual stop and start
commands on NT services).

 Thanks,
 Christian

Craig


--
To unsubscribe:   mailto:[EMAIL PROTECTED]
For additional commands: mailto:[EMAIL PROTECTED]
Troubles with the list: mailto:[EMAIL PROTECTED]




  1   2   >