SSL with Tomcat

2003-01-28 Thread Yakov Belov
Dear All,

I am trying to use Tomcat over SSL. I have followed the HOWTO: SSL in hte
Tomcat Docs, i.e. downloaded the three needed jar files, created a
./keystore file and specified its location in the web.xml file. I have also
uncommented the SSL Connector section in the web.xml file. Now when I run
https://host name:8443/, the browser just keeps loading something and
never seems to be able to finish the process.

Can someone help?

Best regards,
Yakov Belov


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




Re: SSL with Tomcat

2003-01-28 Thread list
hi!

you may start tomcat with:
-Djavax.net.debug=all
or with:
-Djavax.net.debug=ssl

then you can 'see' whats going on during ssl handshake!

Yakov Belov wrote:


Dear All,

I am trying to use Tomcat over SSL. I have followed the HOWTO: SSL in hte
Tomcat Docs, i.e. downloaded the three needed jar files, created a
./keystore file and specified its location in the web.xml file. I have also
uncommented the SSL Connector section in the web.xml file. Now when I run
https://host name:8443/, the browser just keeps loading something and
never seems to be able to finish the process.

Can someone help?

Best regards,
Yakov Belov


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


 




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




Re: SSL with Tomcat

2003-01-28 Thread Yakov Belov
Thanks, but I don't use a command line to run Tomcat (everything is started
via the web)- where exactly do I type this parameters in?
- Original Message -
From: list [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 7:08 PM
Subject: Re: SSL with Tomcat


 hi!

 you may start tomcat with:
 -Djavax.net.debug=all
 or with:
 -Djavax.net.debug=ssl

 then you can 'see' whats going on during ssl handshake!

 Yakov Belov wrote:

 Dear All,
 
 I am trying to use Tomcat over SSL. I have followed the HOWTO: SSL in hte
 Tomcat Docs, i.e. downloaded the three needed jar files, created a
 ./keystore file and specified its location in the web.xml file. I have
also
 uncommented the SSL Connector section in the web.xml file. Now when I run
 https://host name:8443/, the browser just keeps loading something and
 never seems to be able to finish the process.
 
 Can someone help?
 
 Best regards,
 Yakov Belov
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 



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


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




AUTO {ICICICARE#002-039-416}Antwort: PersistentManager with FileStore

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




AUTO {ICICICARE#002-039-418}SSL with Tomcat

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




AUTO {ICICICARE#002-039-421}SSL with Tomcat

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




Re: HTTPS -- HTTP redirecting

2003-01-28 Thread Bill Barker

[EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hello,

 Is it possible to configure Tomcat (4.1.x) in such a way that a request
can be
 redirected automatically from HTTPS to HTTP port?

 Let's assume that a Website has two separate (non-overlapping) sets of
 resources (/non_secure_resources/* and /secure_resources/* respectively)
and
 web.xml descriptor defines the following security constraints:

 security-constraint
 web-resource-collection
 web-resource-nameNon Secure Resources/web-resource-name
 url-pattern/non_secure_resources/*/url-pattern
 /web-resource-collection

 user-data-constraint
 transport-guaranteeNONE/transport-guarantee
 /user-data-constraint
 /security-constraint

 security-constraint
 web-resource-collection
 web-resource-nameSecure Resources/web-resource-name
 url-pattern/secure_resources/*/url-pattern
 /web-resource-collection

 user-data-constraint
 transport-guaranteeCONFIDENTIAL/transport-guarantee
 /user-data-constraint
 /security-constraint

 Then any HTTP request matching /secure_resources/* will be automatically
 redirected (assuming that an SSL certificate is installed). However, HTTPS
 requests matching /non_secure_resources/*
 (i.e. https://non_secure_resources/non-secure.jsp) are not redirected
back to
 HTTP as I would expect from the first security constraint. The problem
that I'm
 currently having is that some JSP pages under /secure_resources have
links
 pointing to pages within the non-secure portion of the Website,
 i.e. /secure_resources/secure.jsp contains a link a
 href=/non_secure_resources/non-secure.jsp). (Also, please notice that
these
 links doesn't explicitly specify the protocol, i.e. http://; because I
don't
 want to hardcode the whole URL (some links are relative)). Considering
this,
 when such a link is followed the protocol (HTTPS) is not changed back to
HTTP.
 Does anyone know if there is a solution to this other than using absolute
URLs
 with the HTTP protocol hardcoded in them?

AFAIK, using absolute URLs is the only supported way to go.   However, it
would be easy enough to write a Filter that does the redirect for you:

public class MyFilter implements Filter {
  public void init(FilterConfig conf) {}
  public void destroy() {}
  public void doFilter(ServletRequest req, ServletResponse res, FilterChain
chain)
   throws ServletException,IOException {
   if( req.isSecure()  res instanceof HttpServletResponse ) {
  HttpServletReqest hreq = (HttpServletRequest)req;
  StringBuffer nReq = new StringBuffer();
  nReq.append(http:/).append(hreq.getRequestURI());
  if(hreq.getQueryString() != null) {
nReq.append('?').append(hreq.getQueryString());
 }
 ((HttpServletResponse)res).sendRedirect(nReq.toString());
   } else {
 chain.doFilter(req, res);
  }
 }
}



 Thanks,
 Lukasz Szelag




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




AUTO {ICICICARE#002-039-476}HTTPS -- HTTP redirecting

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




RE: SSL with Tomcat

2003-01-28 Thread Turner, John

What do the regular Tomcat logs say?

John


-Original Message-
From: Yakov Belov [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 3:13 AM
To: Tomcat Users List
Subject: Re: SSL with Tomcat


Thanks, but I don't use a command line to run Tomcat (everything is started
via the web)- where exactly do I type this parameters in?
- Original Message -
From: list [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 7:08 PM
Subject: Re: SSL with Tomcat


 hi!

 you may start tomcat with:
 -Djavax.net.debug=all
 or with:
 -Djavax.net.debug=ssl

 then you can 'see' whats going on during ssl handshake!

 Yakov Belov wrote:

 Dear All,
 
 I am trying to use Tomcat over SSL. I have followed the HOWTO: SSL in 
 hte Tomcat Docs, i.e. downloaded the three needed jar files, created 
 a ./keystore file and specified its location in the web.xml file. I 
 have
also
 uncommented the SSL Connector section in the web.xml file. Now when I 
 run https://host name:8443/, the browser just keeps loading 
 something and never seems to be able to finish the process.
 
 Can someone help?
 
 Best regards,
 Yakov Belov
 
 
 --
 To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
mailto:[EMAIL PROTECTED]
 
 
 
 



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


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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




RE: PHP servlet

2003-01-28 Thread Turner, John

Sounds like your Apache DSO file was compiled against an earlier version of
Apache.  That has nothing to do with Tomcat.  

John


-Original Message-
From: Jerry Birchler [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 1:59 AM
To: Tomcat Users List
Subject: RE: PHP servlet


I am interested in knowing if anyone has solved this on any 4+ release of
Tomcat on Red Hat Linux 7+ or 8. A howto based on a real working example
would be great.

-Original Message-
From: Jeremy [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 5:02 PM
To: [EMAIL PROTECTED]
Subject: PHP servlet


Trying to get Tomcat 4.18 to run phpsrvlt.jar servlet on a RH7.3 machine.
Configured php4.2.3 with all the goodies and loaded it into libphp4.so.
added LD_LIBRARY_PATH and export for the apache module libphp4.so.  Apache
1.3.27 loads libphp4.so just grand.  Also made certain to include the xml
defs for phpservlet in the main /etc/tomcat4/web.xml (tomcat4 was installed
via rpm tomcat4-admin-webapps-4.1.18-full.1jpp
tomcat4-4.1.18-full.1jpp
tomcat4-webapps-4.1.18-full.1jpp.

java.lang.UnsatisfiedLinkError: /usr/lib/apache/libphp4.so:
/usr/lib/apache/libphp4.so: undefined symbol: ap_block_alarms is the error I
get, reading Apache2 docs seems that this ap_block_alarms is outdated, so is
it outdated for tomcat4.18 as well?  Do I need to write the PHP list now and
say, how da heck do I keep from configuring the ap_block_alarms. -Jeremy


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


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

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

---

Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003
 

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




AUTO {ICICICARE#002-040-330}SSL with Tomcat

2003-01-28 Thread NRI Cell
Dear Sir/Madam,
 
We have received your e-mail and shall respond to you shortly.
 
Regards
ICICI Bank
NRI Services Centre
 
 




Catching 401 Error

2003-01-28 Thread Rajesh Kanade
Hi All

I have written a web application which has main
servlet class.

We have a form which has basic authentication. When
the user cancels the authentication form shown to him
in the browser, We want to capture the 401 error and
dispaly it in a our own custom error page. but we are
unable to do this

What I have figured out is that control is not coming
back to our servlet at all  is infact going to
default servlet of Tomcat.

Does any one have any clues why this may be happening.
If yes can you please share it with me.

Thanks in advance

Rajesh Kanade


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: AUTO {ICICICARE#002-040-330}SSL with Tomcat

2003-01-28 Thread Arnaud HERITIER
Is it possible to STOP this auto-reply on the mailing list???

Thanks

Arnaud

 -Message d'origine-
 De : NRI Cell [mailto:[EMAIL PROTECTED]]
 Envoyé : mardi 28 janvier 2003 12:06
 À : Tomcat Users List
 Objet : AUTO {ICICICARE#002-040-330}SSL with Tomcat
 
 
 Dear Sir/Madam,
  
 We have received your e-mail and shall respond to you shortly.
  
 Regards
 ICICI Bank
 NRI Services Centre
  
  
 
 


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




Re: Doubt in Single Sign On !!!

2003-01-28 Thread shanmugampl
Hi,

   Can i extend the SingleSignOn class,  and specify my class in the 
server.xml file. I tried it and got an exception, 'ManagedBean not found 
for MySSO'. If i can extend and specify then how should i do it.

Thanks
Shanmugam.PL

shanmugampl wrote:

Yeah, I accept that SSO is for authentication purposes alone.

My problem is different. Lets us consider the same two contexts A and 
B. I authenticate myself at context A. Once i authenticate, a 
JSESSIONIDSSO is created and sent as a cookie. The StandardSession 
object for context A will be associated to the SSO ID. Now after some 
time if i move on to context B, then the StandardSession Object of 
context B will also be associated with the SSO ID. If my time out 
period is 20 minutes and if i stay in context B alone for more than 
that time, the session of context A will be timed out. When this 
happens, SSO ID will be deregistered and as a result all the 
associated sessions will be invalidated. Therefore at the time of this 
happening, even if i am actively working in context B, i will asked to 
reauthenticate myself.

This is the reason why i thought  that SSO should take care of session 
time outs also.

Thanks
Shanmugam.PL

Craig R. McClanahan wrote:

On Mon, 27 Jan 2003, shanmugampl wrote:

 

Date: Mon, 27 Jan 2003 14:13:57 +0530
From: shanmugampl [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED],
[EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Doubt in Single Sign On !!!

 Hi All,

   I am using tomcat 4.1.18 and have enabled Single Sign On.  I have
two contexts A and B and the files present inside the /jsp directories
of both the contexts are secured. In the global web.xml file i have my
session time out changed to 10 minutes.

   With this setup, i login into context A and after some time move to
context B. After moving to context B, i was going through the files
present in context B alone.  As i kept on working in context B, the
session of context A got timed out and i was again asked to 
authenticate
myself.

   As i have enabled SSO, shouldn't accessing any one context keep all
the other accessed contexts alive. i.e context A should be alive, even
when not accessed for a long time because context B is accessed 
frequently.

   Hope i am clear. That is how SSO should work, right . Have I
misunderstood anything or have I configured anything wrongly.

  


SSO has nothing at all to do with session timeouts.  It only involves
authentication.

 

Thanks
Shanmugam.PL

  


Craig



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

 








Apache(mod_webapp) - Tomcat 4.1.* many-to-one connections ?

2003-01-28 Thread Morgan Pyne
Hi all,

I have several Apache servers on different machines each hosting 2 
virtual domains (e.g. www.production.mydomain.com  www.development.mydomain.com)

I have a single Tomcat v4 instance running on another machine which also
hosts both these virtual domains. I have defined a Warp connector for each 
virtual domain 
e.g.   www.production.mydomain.com on port 8009 
andwww.development.mydomain.com on port 8010).

My question is if there are any problems having many different Apache instances
connecting to the same Warp connector ? i.e. is it permitted to have a
many-to-one relationship from Apache to Tomcat using mod_webapp and Warp ?

For the most part, my setup seems to work but I have been experiencing some 
intermittant errors and problems would like confirmation that our setup is 
sensible before continuing to diagnose the problem.

Thanks for any feedback on the issue.

Regards,
Morgan Pyne

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




sendRedirect() fails on first call only within a session

2003-01-28 Thread Varley, Roger
Hi 

I'm using IIS to serve the top level html pages from a web application that
runs under Tomcat 3.2. The first page (default.htm) in the top level
directory (http://domain/applicationname is displayed and prompts for userid
and password and passes this data to a servlet
/domain/applicationname/servlet/doLogin in a POST request. If the
userid/password is invalid the servlet issues

response.sendRedirect(response.encodeRedirectURL(../default.htm)); to
redisplay the original form.

What actually happens is that if an invalid password is entered into
default.htm when it is displayed for the first time in a session, the
redirection displays the standard IIS 404 Not Found page. If I then navigate
back to default.htm by either using the browsers back button, or re-entering
the URL in the adress bar and re-enter an invalid password, then the
re-direction call works and re-displays default.htm and will continue to do
so for as long as I keep entering invalid passwords.

Any ideas what's going on?

Regards
Roger

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




Re: Serving files from the Apache docroot

2003-01-28 Thread Peter Flynn
John writes:

 There's no need to mirror content in two directories, nor is there
 any need to point Tomcat at Apache's content root.  You can just
 make Apache's doc root the same as Tomcat's Context root and the
 issue goes away.  Or, just put your JSP and servlets in Tomcat's doc
 root and leave it like that.  

That did occur to me but I didn't try it, assuming that if the JSP file
referred to other resources, it would break because they weren't in the
Tomcat doc root.

I'll try it and see.

 If you have Apache serving static content like images, those images
 don't have to be in your web application's root at all if you don't
 want them to be.

I should hope not :-)

///Peter

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




Re: Serving files from the Apache docroot

2003-01-28 Thread Peter Flynn
Henning wrote:

 I had and have the same problem - and didn't find a solution yet. A
 more or less good workaround I discussed with (or better was a
 suggestion by) Mike Bachrynowski (who is also member on the list)
 could be to completely mirror the apache docroot to the tomcat
 docroot. This in my eyes is 'a little' waste of disk space and an
 alternative I though about is, to set the tomcat docroot to the same
 local dir the apache's points to - but I haven't tested this, maybe
 causes bad bad problems.

Pretty much what I did: soft link the Apache docroot to webapps/ROOT.
Horrible, but it seems to work.

 As far as I understood the mayor cause for all this is, that jk2
 developers due to performance reasons don' t want to send back
 requests (for images, .js, .css ...) to the apache and - what you
 and Mike and I want to do becomes impossible. -- LIST: is this
 right (I'm not really sure whether I should believe it)?

This is very suboptimal :-) I can understand not wanting to fire a lot
of requests back to Apache, but the designers seem not to have
envisaged the need for some sites just to serve a handful of .jsp
files. Tomcat seems to be written exclusively for serving vast
fully-fledged Web Apps (corporate style), and the occasional JSP user
is left out in the cold.

Fortunately our new Web site design won't use JSP at all, so I can
eventually take Tomcat back to where I want it, serving Cocoon :-)

 What I'm asking myself: is there anybody on the list who is really
 highly experienced in jk2 configuration?

I'm not sure configs will help: it's a conceptual matter by the look
of it.

///Peter

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




Tomcat 4.1.18 Anyone know how to define global JNDI resource

2003-01-28 Thread Robin Wierenga
Hi !

I want to define some sort of global JNDI resource in my server.xml
configuration file. I know setting the crossContext=true will enable
sharing but has certain security implications which I'm unaware of.

A. Is this possible
B. How to do it ?

Thanks,
Robin

- Tomcat newbie


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




Re: Serving files from the Apache docroot

2003-01-28 Thread Kief Morris
Peter Flynn typed the following on 11:58 28/01/2003 +
 There's no need to mirror content in two directories, nor is there
 any need to point Tomcat at Apache's content root.  You can just
 make Apache's doc root the same as Tomcat's Context root and the
 issue goes away.  Or, just put your JSP and servlets in Tomcat's doc
 root and leave it like that.  

That did occur to me but I didn't try it, assuming that if the JSP file
referred to other resources, it would break because they weren't in the
Tomcat doc root.

Depends on the resources, if it's just links (img tags or whatever) then
the client will ask Apache for them; they won't need to be in Tomcat's
space if Apache is configured to serve them. If you're including files
in the JSP code then of course it'll need to be available to Tomcat.

K


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




Re: Serving files from the Apache docroot

2003-01-28 Thread Peter Flynn
Henning writes:

 that sounds interesting to me, I don't need tomcat as http on port
 8080, does anyone know how the idea can be realized?

I think this has been asked ad nauseam on the Cocoon list, and I think
I read that it wasn't advised because Tomcat was not designed to be
secure in the way Apache is. I find that hard to believe, given the
high quality of most of the work.

This should be a FAQ (if it already is, I haven't found it).

I don't know how Tomcat would or would not scale as a replacement for
Apache on a big site, but it would certainly be nice to have it run
on port 80 as a replacement for Apache.

///Peter

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




Re: JSP not forwarded to Tomcat

2003-01-28 Thread Pascal Robert
I think it's a context problem, but I don't know how to fix it.

I have this directory:

/Library/WebServer/Documents/clic-agent.com

Inside this directory, I have a mix of HTML and JSP files, and one WEB-INF
directory (with the default 'lib' and 'classes' directories).  I DON'T have
a ROOT directory, so '/Library/.../clic-agent.com' is the appBase.

Inside server.xml, I have this Host directive:

--
Service name=Tomcat-Apache-modjk
Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
modJk=/usr/libexec/httpd/mod_jk.so
jkDebug=info
workersConfig=/usr/local/tomcat-4/conf/jk/workers.properties
jkLog=/usr/local/tomcat-4/logs/mod_jk.log
noRoot=true
forwardAll=false/

Host name=test.clic-agent.com debug=4
appBase=/Library/WebServer/Documents/clic-agent.com
   unpackWARs=true autoDeploy=true

Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
   append=true /
--

Inside httpd.conf, I have this VirtualHost:

--
VirtualHost *
ServerName test.clic-agent.com
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
DocumentRoot /Library/WebServer/Documents/clic-agent.com
/VirtualHost
--

Now, I have a JSP file called 'liste.jsp' inside, so the URL should be:

http://test.clic-agent.com/liste.jsp

I get an good old 'Internal Server Error' when I try this URL.  In
mod_jk.log, I get:

--
[jk_uri_worker_map.c (460)]: Into jk_uri_worker_map_t::map_uri_to_worker
[jk_uri_worker_map.c (477)]: Attempting to map URI '/liste.jsp'
[jk_uri_worker_map.c (558)]: jk_uri_worker_map_t::map_uri_to_worker, Found a
suffix match ajp13 - *.jsp
[jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
[jk_worker.c (136)]: wc_get_worker_for_name, done did not found a worker
--
 
I try to add:

[uri:/*.jsp]

To my workers.properties file, same error in the log file.

 This is a bug with either Tomcat or the Jk (or Jk2) connector.  I also had
 this problem and I have reported it as a bug to the Tomcat-Developers group.
 
 In order to work around this fix ... do NOT rely upon the httpd.conf file in
 order to make your vhosts/web-apps work.
 
 Instead ... make sure you create uri's in the workers2.properties file (if
 you are using Jk2).  Look at how they declare the /examples and do this
 for your own vhosts.
 
 The /test is the location of where you have your files.
 
 If you need any more information, please let me know.Thanks.
 
 [uri:/test]
 info=Example webapp in the default context.
 context=/test
 debug=0
 
 [uri:/test/*.jsp]
 info=Extension mapping
 
 [uri:/test/*]
 info=Map the whole webapp
 
 - Original Message -
 From: Pascal Robert [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Monday, January 27, 2003 10:57 AM
 Subject: JSP not forwarded to Tomcat
 
 
 Hi list,
 
 First, the setup:
 
 - Mac OS X 10.2
 - Tomcat/4.1.18
 - Apache/1.3.27
 - mod_jk-1.3.27.so (build from OS X from Jakarta's site), renamed to
 mod_jk.so
 
 I tried to get some Virtual Host to work with Tomcat (the webapps for each
 VirtualHost are outside Tomcat's directory).  Instead of getting the
 generated JSP, I get the source, just like if the JSP was sent as
 text/plain
 and was not parsed by Tomcat.  If I look at the 'mod_jk.log' log, I see
 requests for static HTML files, but I don't see any log information for my
 JSP files, so it look like mod_jk don't handle them, even if they should.
 
 Apache's config:
 
 
 LoadModule jk_modulelibexec/httpd/mod_jk.so
 AddModule mod_jk.c
 
 JkLogFile /usr/local/tomcat-4/logs/mod_jk.log
 JkLogLevel debug
 JkWorkersFile /usr/local/tomcat-4/conf/jk/workers.properties
 
 VirtualHost *
 ServerName my.host
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 DocumentRoot /path/to/the/web/app
 /VirtualHost
 
 
 Tomcat's config (server.xml):
 
 Host name=my.host debug=1
 appBase=/path/to/the/web
 unpackWARs=true autoDeploy=true
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
 append=true /
 
 Valve className=org.apache.catalina.valves.AccessLogValve
 directory=logs
 prefix=clic_agent_log.
 suffix=.txt
 pattern=common/
 
 Logger className=org.apache.catalina.logger.FileLogger
 directory=logs
 prefix=clic_agent_catalina_log.
 suffix=.txt
 timestamp=true/
 
 Context path= docBase=app debug=1/
 /Host
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 


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




Re: Antwort: PersistentManager with FileStore

2003-01-28 Thread Kief Morris
[EMAIL PROTECTED] typed the following on 08:56 28/01/2003 +0100
I want to store session information on filesystem so that it is possible
for me to
restart tomcat without loosing all sessioninformations.

First of all, you don't need to use PersistentManager to do this - the default
session manager in Tomcat does this already. PersistentManager is useful
if you want to swap sessions temporarily to disk before they expire, so an
active site can support more concurrent sessions using less memory, perhaps
with very long session expiration times.

To start tomcat as service with my runtime parameter I use an wrapper
from Silver Egg Technology.

Do you have the same problem when you run tomcat straight from the
command line? 

INFO   | jvm 1| 2003/01/24 12:42:31 | java.lang.NullPointerException
INFO   | jvm 1| 2003/01/24 12:42:31 | at
org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:293)
INFO   | jvm 1| 2003/01/24 12:42:31 | at
org.apache.catalina.session.StoreBase.run(StoreBase.java:350)

I've just combed over the source code, and I can't see what would cause this
error. I can't reproduce it even by fiddling with the code a bit to simulate
the failure of certain statements - they variable concerned shouldn't be
able to reach this point with a null value.

If this error only happens with your wrapper script, it must be doing something
weird. Let us know what happens when you start tomcat using catalina.bat run.

Kief


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




RE: Serving files from the Apache docroot

2003-01-28 Thread Turner, John

What exactly is your question?  If you want Tomcat to be your HTTP server,
setup CoyoteConnector to listen on port 80 instead of 8080, restart Tomcat,
and call it good.  What's the issue?

As far as a replacement goes, it's a given that Apache is going to be
better than Tomcat at serving static content.  That's what Apache does, and
that is what it was designed to do.  Tomcat was designed to be a servlet
container.

John

 -Original Message-
 From: Peter Flynn [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 7:04 AM
 To: [EMAIL PROTECTED]
 Subject: Re: Serving files from the Apache docroot
 
 
 Henning writes:
 
  that sounds interesting to me, I don't need tomcat as http on port
  8080, does anyone know how the idea can be realized?
 
 I think this has been asked ad nauseam on the Cocoon list, and I think
 I read that it wasn't advised because Tomcat was not designed to be
 secure in the way Apache is. I find that hard to believe, given the
 high quality of most of the work.
 
 This should be a FAQ (if it already is, I haven't found it).
 
 I don't know how Tomcat would or would not scale as a replacement for
 Apache on a big site, but it would certainly be nice to have it run
 on port 80 as a replacement for Apache.
 
 ///Peter
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Re: JNDI jdbc resources

2003-01-28 Thread Paul Carpenter
Interesting. I'll have a play.

But that url string works with DBVisualizer (which is also jdbc based).  
So maybe not, as I think this is correct for SYbase (I get the same  
problem with mySql, even vut'n'paste examples give the same problem ?

The db driver (jconn2.jar) is in common/lib - which I believe is right.

I'm starting to think that this just plain doesn't work in Tomcat (at  
least not in 4.1.12 or 18) - I've tried both now. Unless MAC OSX is to  
blame?


Paul


On Tuesday, January 28, 2003, at 12:06  PM, Peng Tuck Kwok wrote:

Hmm, Paul your url(in server.xml) looks a bit weird to me. Sure it is  
correct ?
I have mind written of the form
 parameter
  nameurl/name
  valuejdbc:sapdb://[url or ip]/[db name]/value
  /parameter

instead of  
valuejdbc:sybase:Tds:PowerBookPaul:11222/multiLeague/value

What's the Tds and don't we need the // before the machine name ?
If you are sure that this is correct then don't worry about what I  
just wrote. Just something you can double check. Also where did you  
put the db driver?

Paul Carpenter wrote:
Hi Peng
For Shawn's benefit - the context you see is in my server.xml (well,   
actually, a separate xml file just like the manager.xml and admin.xml  
 in the /webapps directory).
Based on the other posting to the list, I've tried both with the   
web.xml file having nothing for the resource defined, and also as  
below  (after the servlet mappings):
resource-ref
  description
Resource reference to a factory for java.sql.Connection
instances that may be used for talking to a particular
database that is configured in the server.xml file.
  /description
  res-ref-name
jdbc/DBmultileague
/res-ref-name
  res-type
javax.sql.DataSource
  /res-type
  res-auth
Container
  /res-auth
/resource-ref
Thanks
Paul
On Monday, January 27, 2003, at 09:21  AM, Peng Tuck Kwok wrote:
Let's have a look at your web.xml as well. Might be helpful.

Paul Carpenter wrote:


Hi All
I've scoured the list and got so close, yet so far from making the   
jdbc  stuff work. With some help from Manav and other postings,  
this  is what  i see. can anyone solve the riddle?
Please see the cut'n'pastes below. I draw you attention to the fact  
  that the connection looks good right up to the point where it's  
used  -  like the DataSource object is good (because ds != null  
is true),  yet  the getConnection method throws the often seen  
Cannot load JDBC  driver  class 'null' error.
I know this is very close...what's missing?
I'm sure my jars are in the right place, as a regular forClass   
approach  in the same webapp works with no problems?
Thanks
Paul
tomcat 4.1.12, Mac OSX 10.2.3
Output from my test servlet:
Simple lookup test :
dbName : org.apache.commons.dbcp.BasicDataSource@25debb
list() on /comp/env Context :
Binding : jdbc: org.apache.naming.NamingContext
listBindings() on /comp/env Context :
Binding : jdbc:
org.apache.naming.NamingContext:org.apache.naming.NamingContext@41f8 
0c
list() on full Context :
Binding : DBmultileague: org.apache.commons.dbcp.BasicDataSource
listBindings() on full Context today:
Binding : DBmultileague:
org.apache.commons.dbcp.BasicDataSource:org.apache.commons.dbcp.Basi 
cD at aSource@25debb
Connecting1 : Connecting2 : Connecting3 : Query1 :
The relevant servlet code;
try {
out.println(list() on full Context : );
NamingEnumeration enum2 =   
ctx.list(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
out.println(listBindings() on full Context today: );
enum2 = ctx.listBindings(java:/comp/env/jdbc/);
while (enum2.hasMoreElements()) {
out.print(Binding : );
out.println(enum2.nextElement().toString());
}
} catch (NamingException e) {
out.println(JNDI lookup failed :  + e);
}
try{
Context ctx2 = new InitialContext();
out.print(Connecting1 : );
 Context envCtx2 = (Context)
ctx2.lookup(java:/comp/env/);
out.print(Connecting2 : );
 DataSource ds = (DataSource)
envCtx2.lookup(jdbc/DBmultileague);
out.print(Connecting3 : );
  if (ds != null) {
out.print(Query1 : );
Connection conn = ds.getConnection();
out.print(Query2 : );
The context/resource definition:
Context path=/DBmultileague-0.1-dev   
docBase=DBmultileague-0.1-dev  debug=5 reloadable=true
naming=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
prefix=localhost_DBmultileague_log. suffix=.txt
timestamp=true/
   Resource 

Re: Serving files from the Apache docroot

2003-01-28 Thread Holger Klawitter

 I don't know how Tomcat would or would not scale as a replacement for
 Apache on a big site, but it would certainly be nice to have it run
 on port 80 as a replacement for Apache.

My suggestion for the FAQ:

QUESTION:

How can I make Tomcat serve at port 80 instead of 8080 on a UNIX system?

ANSWER:

Whereas unter Windows it is quite easy to change the port from 8080 to
80 in the server.xml, one has to keep in mind that unter UNIX all ports under 
1024 are privileged ports. Only root processes may open privilege ports.

I.) TOMCAT AS ROOT?

The easiest way would be running tomcat as root. This is strongly discouraged! 
Do you really want to run your jsp files with root permissions? In contrast 
to Apache, which changes the uid from root to someone with less rights, 
Tomcat cannot do that, as the Java VM does not support setuid() calls and  
Tomcat might be muthithreaded but is implemented as a single process (as some 
VM's don't allow more than one thread).

So you normally want to keep tomcat serve port 8080 (you might want to change 
it to a secret port, but this is another story :-)

II.) USER-SPACE PORT FORWARDING?

The next way would be using a port forwarder (like pv [1] or redir4a [2]) 
mapping access to port 80 to 8080. These processes may run under root and 
tomcat just serves at 8080 as usual. This has another disadvantage: As these 
tools exhibit the bhaviour of a proxy, tomcat will only see all calls as 
calls from the local machine - this will render access_logs mostly useles.

[1] http://www.ivarch.com/programs/pv.shtml
[2] http://www.ftp4all.de/v3/archives/redir4a-1.2.tar.gz

III.) KERNEL-SPACE PORT FORWARDING!

The best way, (in my humble opinion) is to use kernel based port forwarding.  
This feature is not available for all flavours of Unix, but at least for 
recent Linux kernels it works rather fine.

Here is a very basic example for iptables in a statical environment (which 
means that the example does not deal with ppp connections properly).

iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 \
  -j REDIRECT --to-ports 8080
iptables -t nat -A OUTPUT -d my hostname -p tcp --dport 80 \
  -j REDIRECT --to-ports 8080
iptables -t nat -A PREROUTING -d my hostname -p tcp --dport 80 \
  -j REDIRECT --to-ports 8080

ipchains should work similar - it might also be possible to map the port in 
your firewall.

IV.) MORE/BETTER SUGGESTIONS GO HERE :-)

With kind regards / mit freundlichem Gruß
Holger Klawitter
--
Holger Klawitter  http://www.klawitter.de
[EMAIL PROTECTED]

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




RE: Serving files from the Apache docroot

2003-01-28 Thread Turner, John

 -Original Message-
 From: Peter Flynn [mailto:[EMAIL PROTECTED]]
 
  As far as I understood the mayor cause for all this is, that jk2
  developers due to performance reasons don' t want to send back
  requests (for images, .js, .css ...) to the apache and - what you
  and Mike and I want to do becomes impossible. -- LIST: is this
  right (I'm not really sure whether I should believe it)?
 
 This is very suboptimal :-) I can understand not wanting to fire a lot
 of requests back to Apache, but the designers seem not to have
 envisaged the need for some sites just to serve a handful of .jsp
 files. Tomcat seems to be written exclusively for serving vast
 fully-fledged Web Apps (corporate style), and the occasional JSP user
 is left out in the cold.
 

I think you might have some misconceptions about how Apache, Tomcat, and the
connectors work together.  Nothing fires a lot of requests back to Apache.


Apache decides, based on things like JkMount or JkUriSet, whether the
requested URL should be served by itself, or by Tomcat.  If by Tomcat, the
request is sent over the connector to Tomcat, and Tomcat handles it, sending
the results back over the connector to Apache.  That's one return response
for each originating request.  Not lots.

If you have a static resource URL, like an image URL, nothing ever gets sent
to Tomcat unless you have your JkMount or JkUriSet directives screwed up.
The only requests Tomcat should get are the requests it is designed to
handle.  Since browser communications occur on port 80, Apache handles
requests for static images.  

Example:  You have a JSP that generates an HTML page that has 2,000
thumbnails on it, based on a 2,000 record recordset from a database table.
For Tomcat, that's one request, one database request, and one response.  For
Apache, it's 2,001 requests (page + 2,000 image thumbnails), and 2,001
responses.

Can you clarify where you see the performance problems with using Tomcat and
a connector?  In the example above, Tomcat has to handle one request...I
would think it would do that just fine, based on my production servers.

You're also forgetting that there is no JSP server.  JSPs are compiled
into servlets.  That's the spec, it has nothing to do with Tomcat's
designers leaving the occasional JSP user out in the cold.  To serve
servlets you need a servlet container.  Tomcat is just one.  Don't get
caught up confusing JSP with ASP or PHP or whatever.  JSPs are not handled
in their native form...they are compiled into servlets, and only then are
they handled by Tomcat.  

John


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




RE: JSP not forwarded to Tomcat

2003-01-28 Thread Turner, John

OK, you told us the Host and the appBase, what do you have for Context and
docBase?

John


 -Original Message-
 From: Pascal Robert [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 7:37 AM
 To: Tomcat Users List
 Cc: Tom Holmes Jr.
 Subject: Re: JSP not forwarded to Tomcat
 
 
 I think it's a context problem, but I don't know how to fix it.
 
 I have this directory:
 
 /Library/WebServer/Documents/clic-agent.com
 
 Inside this directory, I have a mix of HTML and JSP files, 
 and one WEB-INF
 directory (with the default 'lib' and 'classes' directories). 
  I DON'T have
 a ROOT directory, so '/Library/.../clic-agent.com' is the appBase.
 
 Inside server.xml, I have this Host directive:
 
 --
 Service name=Tomcat-Apache-modjk
 Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig
 modJk=/usr/libexec/httpd/mod_jk.so
 jkDebug=info
 
 workersConfig=/usr/local/tomcat-4/conf/jk/workers.properties
 jkLog=/usr/local/tomcat-4/logs/mod_jk.log
 noRoot=true
 forwardAll=false/
 
 Host name=test.clic-agent.com debug=4
 appBase=/Library/WebServer/Documents/clic-agent.com
unpackWARs=true autoDeploy=true
 
 Listener className=org.apache.ajp.tomcat4.config.ApacheConfig
append=true /
 --
 
 Inside httpd.conf, I have this VirtualHost:
 
 --
 VirtualHost *
 ServerName test.clic-agent.com
 JkMount /*.jsp ajp13
 JkMount /servlet/* ajp13
 DocumentRoot /Library/WebServer/Documents/clic-agent.com
 /VirtualHost
 --
 
 Now, I have a JSP file called 'liste.jsp' inside, so the URL 
 should be:
 
 http://test.clic-agent.com/liste.jsp
 
 I get an good old 'Internal Server Error' when I try this URL.  In
 mod_jk.log, I get:
 
 --
 [jk_uri_worker_map.c (460)]: Into 
 jk_uri_worker_map_t::map_uri_to_worker
 [jk_uri_worker_map.c (477)]: Attempting to map URI '/liste.jsp'
 [jk_uri_worker_map.c (558)]: 
 jk_uri_worker_map_t::map_uri_to_worker, Found a
 suffix match ajp13 - *.jsp
 [jk_worker.c (132)]: Into wc_get_worker_for_name ajp13
 [jk_worker.c (136)]: wc_get_worker_for_name, done did not 
 found a worker
 --
  
 I try to add:
 
 [uri:/*.jsp]
 
 To my workers.properties file, same error in the log file.
 
  This is a bug with either Tomcat or the Jk (or Jk2) 
 connector.  I also had
  this problem and I have reported it as a bug to the 
 Tomcat-Developers group.
  
  In order to work around this fix ... do NOT rely upon the 
 httpd.conf file in
  order to make your vhosts/web-apps work.
  
  Instead ... make sure you create uri's in the 
 workers2.properties file (if
  you are using Jk2).  Look at how they declare the 
 /examples and do this
  for your own vhosts.
  
  The /test is the location of where you have your files.
  
  If you need any more information, please let me know.Thanks.
  
  [uri:/test]
  info=Example webapp in the default context.
  context=/test
  debug=0
  
  [uri:/test/*.jsp]
  info=Extension mapping
  
  [uri:/test/*]
  info=Map the whole webapp
  
  - Original Message -
  From: Pascal Robert [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Sent: Monday, January 27, 2003 10:57 AM
  Subject: JSP not forwarded to Tomcat
  
  
  Hi list,
  
  First, the setup:
  
  - Mac OS X 10.2
  - Tomcat/4.1.18
  - Apache/1.3.27
  - mod_jk-1.3.27.so (build from OS X from Jakarta's site), 
 renamed to
  mod_jk.so
  
  I tried to get some Virtual Host to work with Tomcat (the 
 webapps for each
  VirtualHost are outside Tomcat's directory).  Instead of 
 getting the
  generated JSP, I get the source, just like if the JSP was sent as
  text/plain
  and was not parsed by Tomcat.  If I look at the 
 'mod_jk.log' log, I see
  requests for static HTML files, but I don't see any log 
 information for my
  JSP files, so it look like mod_jk don't handle them, even 
 if they should.
  
  Apache's config:
  
  
  LoadModule jk_modulelibexec/httpd/mod_jk.so
  AddModule mod_jk.c
  
  JkLogFile /usr/local/tomcat-4/logs/mod_jk.log
  JkLogLevel debug
  JkWorkersFile /usr/local/tomcat-4/conf/jk/workers.properties
  
  VirtualHost *
  ServerName my.host
  JkMount /*.jsp ajp13
  JkMount /servlet/* ajp13
  DocumentRoot /path/to/the/web/app
  /VirtualHost
  
  
  Tomcat's config (server.xml):
  
  Host name=my.host debug=1
  appBase=/path/to/the/web
  unpackWARs=true autoDeploy=true
  
  Listener 
 className=org.apache.ajp.tomcat4.config.ApacheConfig
  append=true /
  
  Valve className=org.apache.catalina.valves.AccessLogValve
  directory=logs
  prefix=clic_agent_log.
  suffix=.txt
  pattern=common/
  
  Logger className=org.apache.catalina.logger.FileLogger
  directory=logs
  prefix=clic_agent_catalina_log.
  suffix=.txt
  timestamp=true/
  
  Context path= docBase=app 

Error 146 from mod_jk

2003-01-28 Thread Dick Perkins
We are running Apache (1.3.27) and Tomcat (3.3.1) on separate servers, 
connecting them using mod_jk (1.2.2).

The system is lightly loaded - there are hardly any parallel requests. After 
a few days operation Apache fails to communicate with Tomcat leaving errors 
in the mod_jk log:

...  [jk_connect.c (177)]: jk_open_socket, connect() failed errno = 146

From the source code, error 146 looks like connection refused.


At first I suspected the firewall between them (having previously had 
firewall trouble with 1 hour timeouts). However, there is no sign of a 
connection being blocked in the firewall logs. If Tomcat is restarted it 
continues for another few days.

It's a production system, and being a developer I can't get access to it. I 
can't reproduce the error on a test system. Can anyone suggest what might be 
happening here?

Regards
Dick

_
Worried what your kids see online? Protect them better with MSN 8 
http://join.msn.com/?page=features/parentalpgmarket=en-gbXAPID=186DI=1059


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



RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Davidson, Greg
Yeah, I read that, here is the problem:

I want to run Tomcat from my local PC.

I want to load the *.classes from a network drive (for night backup
purposes) not my local drive.
(I've changed the class path in the catalina.bat, but I don't like this)

I want to run the *.jsp from a network drive (for night backup purposes) not
my local drive.
(I've added a context in the server.xml for this)

Windows shortcuts are not the same as Unix symbolic links 
(can't use a shortcut in the WEB-INF/classes to point to the network drive)

Tomcat changes the system classpath, I tried setting the system(windows)
classpath to include the
network drive, but Tomcat changes it.
(I've changed the class path in the catalina.bat, but I don't like this)



-Original Message-
From: Tim Moore [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 6:47 PM
To: Tomcat Users List
Subject: RE: getting java.lang.NoClassDefFoundError


Where is your bean's code being loaded from?  It should be in
$CATALINA_HOME/common/classes or your webapp's WEB-INF/classes (or it
can be in a JAR in $CATALINA_HOME/lib or your webapp's WEB-INF/lib).

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


 -Original Message-
 From: Davidson, Greg [mailto:[EMAIL PROTECTED]] 
 Sent: Monday, January 27, 2003 5:44 PM
 To: '[EMAIL PROTECTED]'
 Subject: getting java.lang.NoClassDefFoundError
 
 
 I'm getting the following error:
 
 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest
 
 when I try to execute the following:
 
 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause 
 the error.
 }
 
 Why isn't this (javax/servlet/http/HttpServletRequest) in 
 my/tomcat's classpath??  Is that the problem??
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:tomcat-user- [EMAIL PROTECTED]
 For 
 additional commands, 
 e-mail: mailto:[EMAIL PROTECTED]
 
 

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

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




Antwort: Re: Antwort: PersistentManager with FileStore

2003-01-28 Thread Dietmar . Mueller

Hey Kief,

thanks for your answer.

I try without my wrapper and get also the Exception.

I got:

D:\tomcat\bincatalina run
Using CATALINA_BASE:   ..
Using CATALINA_HOME:   ..
Using CATALINA_TMPDIR: ..\temp
Using JAVA_HOME:   d:\jdk1.3
Starting service kbhsrv03
Apache Tomcat/4.0.6
Starting service Tomcat-Apache
Apache Tomcat/4.0.6
java.lang.NullPointerException
at org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:293)
at org.apache.catalina.session.StoreBase.run(StoreBase.java:350)
at java.lang.Thread.run(Thread.java:484)

I comment all context except one for testing.
The part in server.xml look like this:

Context path=/test docBase=test debug=0
 reloadable=true crossContext=true
   Logger className=org.apache.catalina.logger.FileLogger
 prefix=kbhsrv03_test_log. suffix=.txt
timestamp=true/
   Manager className=
  org.apache.catalina.session.PersistentManager
  debug=0
  saveOnRestart=true
  maxActiveSessions=-1
  minIdleSwap=-1
  maxIdleSwap=-1
  maxIdleBackup=-1
  Store className=
  org.apache.catalina.session.FileStore/
  /Manager
 /Context

I have only one testservlet where only the HttpSession Object is created.

After the first connect to the test servlet and maxima 60 Seconds I get the
Exception.

Why I use the PersistenManager?

I have a good tomcatbook in german (I belife it?) and there is the information
that I have to use at least the StandardManager with saveOnRestart=true to
store all Sessions to recover on startup. And I have many Sessions with some
big objects in my webapplication.

I thought the problem is the interface Serializable with i implement, but I can
reproduce the Except. with the simple test - servlet.

Dietmar





Kief Morris [EMAIL PROTECTED] am 28.01.2003 13:55:00

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:Tomcat Users List [EMAIL PROTECTED]
Kopie:
Thema: Re: Antwort: PersistentManager with FileStore


[EMAIL PROTECTED] typed the following on 08:56 28/01/2003 +0100
I want to store session information on filesystem so that it is possible
for me to
restart tomcat without loosing all sessioninformations.

First of all, you don't need to use PersistentManager to do this - the
default
session manager in Tomcat does this already. PersistentManager is useful
if you want to swap sessions temporarily to disk before they expire, so an
active site can support more concurrent sessions using less memory, perhaps
with very long session expiration times.

To start tomcat as service with my runtime parameter I use an wrapper
from Silver Egg Technology.

Do you have the same problem when you run tomcat straight from the
command line?

INFO   | jvm 1| 2003/01/24 12:42:31 | java.lang.NullPointerException
INFO   | jvm 1| 2003/01/24 12:42:31 | at
org.apache.catalina.session.StoreBase.processExpires(StoreBase.java:293)
INFO   | jvm 1| 2003/01/24 12:42:31 | at
org.apache.catalina.session.StoreBase.run(StoreBase.java:350)

I've just combed over the source code, and I can't see what would cause
this
error. I can't reproduce it even by fiddling with the code a bit to
simulate
the failure of certain statements - they variable concerned shouldn't be
able to reach this point with a null value.

If this error only happens with your wrapper script, it must be doing
something
weird. Let us know what happens when you start tomcat using catalina.bat
run.

Kief


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








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




tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
Hi guys,

I'm new to tomcat/jakarta and have just installed it (v4.1.18 -
precompiled binaries from the site) on my Linux server.

I replaced every occurence of localhost with my servername (which is
resolvable) - and I have added a test-user with admin/manager roles.

When I login, I can access the /manager - but when I try /admin - I get
a 404 :(

I hope you can help me with tracking down the problem.

-- 
Regards,
Klavs Klavsen

--| This mail has been sent to you by: |
  Klavs Klavsen - Open Source Consultant 
[EMAIL PROTECTED] - http://www.EnableIT.dk

Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

Open Source Software - Sometimes you get more than you paid for.
 -- unknown



signature.asc
Description: This is a digitally signed message part


Re: JSP not forwarded to Tomcat

2003-01-28 Thread Pascal Robert
Ok, I got it to work with:

- workers.properties :
---
worker.list=test
worker.test.port=8009
worker.test.host=test.clic-agent.com
worker.test.type=ajp13
---

- httpd.conf:
---
ServerName test.clic-agent.com
JkMount /*.jsp test
JkMount /servlet/* test
---

- server.xml
---
...
Connector className=org.apache.ajp.tomcat4.Ajp13Connector
   port=8009 minProcessors=5 maxProcessors=75
   acceptCount=10 debug=0 /
...
Host name=test.clic-agent.com debug=4
appBase=/Library/WebServer/Documents/clic-agent.com
   unpackWARs=true autoDeploy=true
...
Context path= docBase= debug=4/
...
---

Thanks to all!


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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

Do you have a file called admin.xml in $CATALINA_HOME/webapps?

John


 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 9:07 AM
 To: [EMAIL PROTECTED]
 Subject: tomcat/manager works - tomcat/admin = 404.
 
 
 Hi guys,
 
 I'm new to tomcat/jakarta and have just installed it (v4.1.18 -
 precompiled binaries from the site) on my Linux server.
 
 I replaced every occurence of localhost with my servername (which is
 resolvable) - and I have added a test-user with admin/manager roles.
 
 When I login, I can access the /manager - but when I try 
 /admin - I get
 a 404 :(
 
 I hope you can help me with tracking down the problem.
 
 -- 
 Regards,
 Klavs Klavsen
 
 --| This mail has been sent to you by: |
   Klavs Klavsen - Open Source Consultant 
 [EMAIL PROTECTED] - http://www.EnableIT.dk
 
 Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
 Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
 
 Open Source Software - Sometimes you get more than you paid for.
  -- unknown
 

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




Can the JNDI Connection Pool re-connect after failure?

2003-01-28 Thread Ryan Cornia
I have set a JNDI connection pool up in server.xml that works, however
if the database server goes down, it doesn't re-connect when it comes
back up. 

Anyone using JNDI datasources that reconnect in case of a lost link to
the DB server?

Any examples? I'm using the I-net driver for Oracle.

Thanks,
Ryan




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




Re: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Patrick Renan
Yes
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 12:41 PM
Subject: RE: tomcat/manager works - tomcat/admin = 404.



 Do you have a file called admin.xml in $CATALINA_HOME/webapps?

 John


  -Original Message-
  From: klavs klavsen [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 9:07 AM
  To: [EMAIL PROTECTED]
  Subject: tomcat/manager works - tomcat/admin = 404.
 
 
  Hi guys,
 
  I'm new to tomcat/jakarta and have just installed it (v4.1.18 -
  precompiled binaries from the site) on my Linux server.
 
  I replaced every occurence of localhost with my servername (which is
  resolvable) - and I have added a test-user with admin/manager roles.
 
  When I login, I can access the /manager - but when I try
  /admin - I get
  a 404 :(
 
  I hope you can help me with tracking down the problem.
 
  --
  Regards,
  Klavs Klavsen
 
  --| This mail has been sent to you by: |
Klavs Klavsen - Open Source Consultant
  [EMAIL PROTECTED] - http://www.EnableIT.dk
 
  Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA
  Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
  
  Open Source Software - Sometimes you get more than you paid for.
   -- unknown
 

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


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




Re: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Patrick Renan
Sorry, its not for you
- Original Message -
From: Turner, John [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Tuesday, January 28, 2003 12:41 PM
Subject: RE: tomcat/manager works - tomcat/admin = 404.



 Do you have a file called admin.xml in $CATALINA_HOME/webapps?

 John


  -Original Message-
  From: klavs klavsen [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 9:07 AM
  To: [EMAIL PROTECTED]
  Subject: tomcat/manager works - tomcat/admin = 404.
 
 
  Hi guys,
 
  I'm new to tomcat/jakarta and have just installed it (v4.1.18 -
  precompiled binaries from the site) on my Linux server.
 
  I replaced every occurence of localhost with my servername (which is
  resolvable) - and I have added a test-user with admin/manager roles.
 
  When I login, I can access the /manager - but when I try
  /admin - I get
  a 404 :(
 
  I hope you can help me with tracking down the problem.
 
  --
  Regards,
  Klavs Klavsen
 
  --| This mail has been sent to you by: |
Klavs Klavsen - Open Source Consultant
  [EMAIL PROTECTED] - http://www.EnableIT.dk
 
  Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA
  Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
  
  Open Source Software - Sometimes you get more than you paid for.
   -- unknown
 

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



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.443 / Virus Database: 248 - Release Date: 1/10/2003


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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
On Tue, 2003-01-28 at 15:41, Turner, John wrote:
 
 Do you have a file called admin.xml in $CATALINA_HOME/webapps?
 
output of ls -l /opt/jakarta/tomcat/webapps/

drwxr-xr-x3 root root  208 Jan 27 15:56 ROOT
-rw-r--r--1 root root  701 Jan 28 14:22 admin.xml
drwxr-xr-x6 root root  144 Jan 27 15:56 examples
-rw-r--r--1 root root  435 Jan 27 15:56 manager.xml
drwxr-xr-x   10 root root  848 Jan 27 15:56 tomcat-docs
drwxr-xr-x3 root root  168 Jan 27 15:56 webdav

so yes :)

[SNIP] 
-- 
Regards,
Klavs Klavsen

--| This mail has been sent to you by: |
  Klavs Klavsen - Open Source Consultant 
[EMAIL PROTECTED] - http://www.EnableIT.dk

Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

Open Source Software - Sometimes you get more than you paid for.
 -- unknown



signature.asc
Description: This is a digitally signed message part


RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

Check your timestamps.  It's been changed.  What has been changed in that
file?  What are its contents?

John

 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 9:56 AM
 To: Tomcat Users List
 Subject: RE: tomcat/manager works - tomcat/admin = 404.
 
 
 On Tue, 2003-01-28 at 15:41, Turner, John wrote:
  
  Do you have a file called admin.xml in $CATALINA_HOME/webapps?
  
 output of ls -l /opt/jakarta/tomcat/webapps/
 
 drwxr-xr-x3 root root  208 Jan 27 15:56 ROOT
 -rw-r--r--1 root root  701 Jan 28 14:22 admin.xml
 drwxr-xr-x6 root root  144 Jan 27 15:56 examples
 -rw-r--r--1 root root  435 Jan 27 15:56 manager.xml
 drwxr-xr-x   10 root root  848 Jan 27 15:56 tomcat-docs
 drwxr-xr-x3 root root  168 Jan 27 15:56 webdav
 
 so yes :)
 
 [SNIP] 
 -- 
 Regards,
 Klavs Klavsen
 
 --| This mail has been sent to you by: |
   Klavs Klavsen - Open Source Consultant 
 [EMAIL PROTECTED] - http://www.EnableIT.dk
 
 Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
 Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
 
 Open Source Software - Sometimes you get more than you paid for.
  -- unknown
 

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




RE: Serving files from the Apache docroot

2003-01-28 Thread Daniel Brown
Alternatively, if you can find an OS that implements process/file
capabilities, you should be able to grant the JVM the capability to bind to
ports below 1024.

The doco. for the 2.4 Linux kernels suggests this might be in there - anyone
know if it's sufficiently mainstream, and suitable for this sort of thing?

Dan.

 -Original Message-
 From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
 Sent: 28 January 2003 13:11
 To: Tomcat Users List
 Subject: Re: Serving files from the Apache docroot



  I don't know how Tomcat would or would not scale as a replacement for
  Apache on a big site, but it would certainly be nice to have it run
  on port 80 as a replacement for Apache.

 My suggestion for the FAQ:

 QUESTION:

 How can I make Tomcat serve at port 80 instead of 8080 on a UNIX system?

 ANSWER:

 Whereas unter Windows it is quite easy to change the port from 8080 to
 80 in the server.xml, one has to keep in mind that unter UNIX all
 ports under
 1024 are privileged ports. Only root processes may open privilege ports.

 I.) TOMCAT AS ROOT?

 The easiest way would be running tomcat as root. This is strongly
 discouraged!
 Do you really want to run your jsp files with root permissions?
 In contrast
 to Apache, which changes the uid from root to someone with less rights,
 Tomcat cannot do that, as the Java VM does not support setuid()
 calls and
 Tomcat might be muthithreaded but is implemented as a single
 process (as some
 VM's don't allow more than one thread).

 So you normally want to keep tomcat serve port 8080 (you might
 want to change
 it to a secret port, but this is another story :-)

 II.) USER-SPACE PORT FORWARDING?

 The next way would be using a port forwarder (like pv [1] or
 redir4a [2])
 mapping access to port 80 to 8080. These processes may run under root and
 tomcat just serves at 8080 as usual. This has another
 disadvantage: As these
 tools exhibit the bhaviour of a proxy, tomcat will only see all calls as
 calls from the local machine - this will render access_logs mostly useles.

 [1] http://www.ivarch.com/programs/pv.shtml
 [2] http://www.ftp4all.de/v3/archives/redir4a-1.2.tar.gz

 III.) KERNEL-SPACE PORT FORWARDING!

 The best way, (in my humble opinion) is to use kernel based port
 forwarding.
 This feature is not available for all flavours of Unix, but at least for
 recent Linux kernels it works rather fine.

 Here is a very basic example for iptables in a statical
 environment (which
 means that the example does not deal with ppp connections properly).

 iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 \
   -j REDIRECT --to-ports 8080
 iptables -t nat -A OUTPUT -d my hostname -p tcp --dport 80 \
   -j REDIRECT --to-ports 8080
 iptables -t nat -A PREROUTING -d my hostname -p tcp --dport 80 \
   -j REDIRECT --to-ports 8080

 ipchains should work similar - it might also be possible to map
 the port in
 your firewall.

 IV.) MORE/BETTER SUGGESTIONS GO HERE :-)

 With kind regards / mit freundlichem Gruß
   Holger Klawitter
 --
 Holger Klawitter  http://www.klawitter.de
 [EMAIL PROTECTED]

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



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




Upgrading to new version of Tomcat

2003-01-28 Thread Victor Popiol
Hi. I am currently running Tomcat 4.1.12 in a production environment. I
would like to upgrade to 4.1.18. Can anybody suggest the simplest,
fastest way to do it? I have made considerable changes to the
configuration files. I am not sure if there are any compatibility
issues.
 
Regards
Victor
 



RE: Upgrading to new version of Tomcat

2003-01-28 Thread Shapira, Yoav
Howdy,
Don't simply copy over the old installation.  Do a clean installation of
4.1.18.  Ensure the installation is OK by checking the servlet and JSP
examples, as well as the manager and admin webapps if you use them.
Then make your configuration file changes (do not copy over the
configuration files from the old version -- make the changes again in
the new files), saving the originals under a different name so that
they're available.  Then deploy your app and test it to make sure it's
OK.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Victor Popiol [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:20 AM
To: [EMAIL PROTECTED]
Subject: Upgrading to new version of Tomcat

Hi. I am currently running Tomcat 4.1.12 in a production environment. I
would like to upgrade to 4.1.18. Can anybody suggest the simplest,
fastest way to do it? I have made considerable changes to the
configuration files. I am not sure if there are any compatibility
issues.

Regards
Victor


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




java.lang.Exception : VerifyError with Tomcat 4.1.x

2003-01-28 Thread Hylla, Heiko (Heiko)
Does anybody know why I get this exception when I try to load one of my self written 
classes within a servlet ?
Everything works fine with Tomcat 4.0.x .

Heiko




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
On Tue, 2003-01-28 at 15:59, Turner, John wrote:
 
 Check your timestamps.  It's been changed.  What has been changed in that
 file?  What are its contents?
 
Sorry. Yes I changed the logfile to log to server.mydomain.dk_log..
instead of localhost. But that should change anything - and the problem
was there before (AFAIK).

!--

Context configuration file for the Tomcat Administration Web App

$Id: admin.xml,v 1.3 2002/07/23 12:12:15 remm Exp $

--


Context path=/admin docBase=../server/webapps/admin
debug=0 privileged=true

  !-- Uncomment this Valve to limit access to the Admin app to
localhost
   for obvious security reasons. Allow may be a comma-separated list of
   hosts (or even regular expressions).
  Valve className=org.apache.catalina.valves.RemoteAddrValve
allow=127.0.0.1/
  --

  Logger className=org.apache.catalina.logger.FileLogger
 prefix=server.mydomain.dk_admin_log. suffix=.txt
  timestamp=true/

/Context

[SNIP]
-- 
Regards,
Klavs Klavsen

--| This mail has been sent to you by: |
  Klavs Klavsen - Open Source Consultant 
[EMAIL PROTECTED] - http://www.EnableIT.dk

Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

Open Source Software - Sometimes you get more than you paid for.
 -- unknown



signature.asc
Description: This is a digitally signed message part


RE: Serving files from the Apache docroot

2003-01-28 Thread Turner, John

I also saw a discussion on tomcat-dev on how to use chroot to do it, as
well, but it didn't look easy.

John

 -Original Message-
 From: Daniel Brown [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:14 AM
 To: Tomcat Users List
 Subject: RE: Serving files from the Apache docroot
 
 
 Alternatively, if you can find an OS that implements process/file
 capabilities, you should be able to grant the JVM the 
 capability to bind to
 ports below 1024.
 
 The doco. for the 2.4 Linux kernels suggests this might be in 
 there - anyone
 know if it's sufficiently mainstream, and suitable for this 
 sort of thing?
 
 Dan.
 
  -Original Message-
  From: Holger Klawitter [mailto:[EMAIL PROTECTED]]
  Sent: 28 January 2003 13:11
  To: Tomcat Users List
  Subject: Re: Serving files from the Apache docroot
 
 
 
   I don't know how Tomcat would or would not scale as a 
 replacement for
   Apache on a big site, but it would certainly be nice to 
 have it run
   on port 80 as a replacement for Apache.
 
  My suggestion for the FAQ:
 
  QUESTION:
 
  How can I make Tomcat serve at port 80 instead of 8080 on a 
 UNIX system?
 
  ANSWER:
 
  Whereas unter Windows it is quite easy to change the port 
 from 8080 to
  80 in the server.xml, one has to keep in mind that unter UNIX all
  ports under
  1024 are privileged ports. Only root processes may open 
 privilege ports.
 
  I.) TOMCAT AS ROOT?
 
  The easiest way would be running tomcat as root. This is strongly
  discouraged!
  Do you really want to run your jsp files with root permissions?
  In contrast
  to Apache, which changes the uid from root to someone with 
 less rights,
  Tomcat cannot do that, as the Java VM does not support setuid()
  calls and
  Tomcat might be muthithreaded but is implemented as a single
  process (as some
  VM's don't allow more than one thread).
 
  So you normally want to keep tomcat serve port 8080 (you might
  want to change
  it to a secret port, but this is another story :-)
 
  II.) USER-SPACE PORT FORWARDING?
 
  The next way would be using a port forwarder (like pv [1] or
  redir4a [2])
  mapping access to port 80 to 8080. These processes may run 
 under root and
  tomcat just serves at 8080 as usual. This has another
  disadvantage: As these
  tools exhibit the bhaviour of a proxy, tomcat will only see 
 all calls as
  calls from the local machine - this will render access_logs 
 mostly useles.
 
  [1] http://www.ivarch.com/programs/pv.shtml
  [2] http://www.ftp4all.de/v3/archives/redir4a-1.2.tar.gz
 
  III.) KERNEL-SPACE PORT FORWARDING!
 
  The best way, (in my humble opinion) is to use kernel based port
  forwarding.
  This feature is not available for all flavours of Unix, but 
 at least for
  recent Linux kernels it works rather fine.
 
  Here is a very basic example for iptables in a statical
  environment (which
  means that the example does not deal with ppp connections properly).
 
  iptables -t nat -A OUTPUT -d localhost -p tcp --dport 80 \
-j REDIRECT --to-ports 8080
  iptables -t nat -A OUTPUT -d my hostname -p tcp --dport 80 \
-j REDIRECT --to-ports 8080
  iptables -t nat -A PREROUTING -d my hostname -p tcp --dport 80 \
-j REDIRECT --to-ports 8080
 
  ipchains should work similar - it might also be possible to map
  the port in
  your firewall.
 
  IV.) MORE/BETTER SUGGESTIONS GO HERE :-)
 
  With kind regards / mit freundlichem Gruß
  Holger Klawitter
  --
  Holger Klawitter  http://www.klawitter.de
  [EMAIL PROTECTED]
 
  --
  To unsubscribe, e-mail:
  mailto:[EMAIL PROTECTED]
  For additional commands, e-mail:
  mailto:[EMAIL PROTECTED]
 
 
 
 --
 To unsubscribe, e-mail:   
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

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




RE: java.lang.Exception : VerifyError with Tomcat 4.1.x

2003-01-28 Thread Shapira, Yoav
Howdy,
Did you compile the servlet against a different version of the class
than the one on your classpath?  Do you have multiple version of the
class you're trying to load on your classpath?  Either of those may
cause this error.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hylla, Heiko (Heiko) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:24 AM
To: [EMAIL PROTECTED]
Subject: java.lang.Exception : VerifyError with Tomcat 4.1.x

Does anybody know why I get this exception when I try to load one of my
self written classes within a servlet ?
Everything works fine with Tomcat 4.0.x .

Heiko


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




Re: Upgrading to new version of Tomcat

2003-01-28 Thread David Boyer
Copy the 4.1.18 jars from /common/lib and /server/lib to their
respective location in your current Tomcat installation. Optionally,
also copy the contents of /server/webapps/admin,
/server/webapps/manager, and /webapps if you want to upgrade these
applications as well although you'll want to be cautious about
overwriting any web.xml files.

 [EMAIL PROTECTED] 01/28/03 09:20AM 
Hi. I am currently running Tomcat 4.1.12 in a production environment.
I
would like to upgrade to 4.1.18. Can anybody suggest the simplest,
fastest way to do it? I have made considerable changes to the
configuration files. I am not sure if there are any compatibility
issues.

Regards
Victor




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

Does that file get created?  Admin.xml is no different than manager.xml.  If
/manager is working, /admin should work as well.  My guess is there is
something on the filesystem (permissions, etc) that is preventing Tomcat
from deploying the admin app, though I could easily be wrong.

John

 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:27 AM
 To: Tomcat Users List
 Subject: RE: tomcat/manager works - tomcat/admin = 404.
 
 
 On Tue, 2003-01-28 at 15:59, Turner, John wrote:
  
  Check your timestamps.  It's been changed.  What has been 
 changed in that
  file?  What are its contents?
  
 Sorry. Yes I changed the logfile to log to server.mydomain.dk_log..
 instead of localhost. But that should change anything - and 
 the problem
 was there before (AFAIK).
 
 !--
 
 Context configuration file for the Tomcat Administration Web App
 
 $Id: admin.xml,v 1.3 2002/07/23 12:12:15 remm Exp $
 
 --
 
 
 Context path=/admin docBase=../server/webapps/admin
 debug=0 privileged=true
 
   !-- Uncomment this Valve to limit access to the Admin app to
 localhost
for obvious security reasons. Allow may be a 
 comma-separated list of
hosts (or even regular expressions).
   Valve className=org.apache.catalina.valves.RemoteAddrValve
 allow=127.0.0.1/
   --
 
   Logger className=org.apache.catalina.logger.FileLogger
  prefix=server.mydomain.dk_admin_log. suffix=.txt
   timestamp=true/
 
 /Context
 
 [SNIP]
 -- 
 Regards,
 Klavs Klavsen
 
 --| This mail has been sent to you by: |
   Klavs Klavsen - Open Source Consultant 
 [EMAIL PROTECTED] - http://www.EnableIT.dk
 
 Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
 Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
 
 Open Source Software - Sometimes you get more than you paid for.
  -- unknown
 

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




Antwort: Re: Upgrading to new version of Tomcat

2003-01-28 Thread Dietmar . Mueller

How important is /bin/bootstrap.jar?

Dietmar





David Boyer [EMAIL PROTECTED] am 28.01.2003 16:27:31

Bitte antworten an Tomcat Users List [EMAIL PROTECTED]

An:[EMAIL PROTECTED]
Kopie:
Thema: Re: Upgrading to new version of Tomcat


Copy the 4.1.18 jars from /common/lib and /server/lib to their
respective location in your current Tomcat installation. Optionally,
also copy the contents of /server/webapps/admin,
/server/webapps/manager, and /webapps if you want to upgrade these
applications as well although you'll want to be cautious about
overwriting any web.xml files.

 [EMAIL PROTECTED] 01/28/03 09:20AM 
Hi. I am currently running Tomcat 4.1.12 in a production environment.
I
would like to upgrade to 4.1.18. Can anybody suggest the simplest,
fastest way to do it? I have made considerable changes to the
configuration files. I am not sure if there are any compatibility
issues.

Regards
Victor









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




RE: Property file not picked up right by servlet

2003-01-28 Thread SRamanujan
Hello!  

You were very right.  I had the setenv and setclasspath being called from Catalina.bat 
but somehow the tomcat was not picking this up correctly.  Perhaps because of XP?  I 
then went to control panel and set all the environment variables  classpath which 
then picked up my property file now.  I got it to work now but am getting the 
following error message on the Tomcat console:
- Netscape security model is no longer supported.  Please migrate to the Java 2 
security model instead.

No idea where is this coming from but my utility works fine.

Thanks for your help,
Sudha


Sudha Ramanujan
SunGard Futures Systems
[EMAIL PROTECTED]
(312) 577 6179
(312) 577 6101 - Fax

-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 8:29 AM
To: Tomcat Users List
Subject: RE: Property file not picked up right by servlet

Howdy,
Are the environment variables for PATH and CLASSPATH (mainly the latter) different 
between your NT and XP systems?

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 5:18 PM
To: [EMAIL PROTECTED]
Subject: RE: Property file not picked up right by servlet

Wendy,

Right in the beginning, we have a login servlet that loads the properties
file entries. The servlet first gets the context and then looks for the
prop files under property + file separater.  In NT, I had the properties
file under c:/Tomcat/bin/property (and it is still working).  I tried this
in XP as well, then I tried to copy under apache bin! (Just trying anything
to get it working.) The error I am getting is on the console, Property
file not found, Loading default properties, and gives me wrong system
name.  I am running Apache 1.3.27 and Tomcat 4.0.

Thanks for your help,
Sudha

Sudha Ramanujan
SunGard Futures Systems
[EMAIL PROTECTED]
(312) 577 6179
(312) 577 6101 - Fax


-Original Message-
From: Wendy Smoak [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 24, 2003 3:12 PM
To: 'Tomcat Users List'
Subject: RE: Property file not picked up right by servlet


 I just moved to XP from NT and setup the apache and Tomcat servers. They
work fine for the servlets,
 jsps and so the setup seem to be fine.  But my
 servlet is not finding the property file that connects me to the right
system.

What is the code in your Servlet that is not working, and where exactly is
the properties file?  What is the exact error message you're seeing?  I
would suspect file permissions, without knowing anything else.

--
Wendy Smoak
Applications Systems Analyst, Sr.
Arizona State University PA Information Resources Management

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


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


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




JSESSIONID cookie with Tomcat 4.0.6

2003-01-28 Thread Antonio M Lopez Perez
Hi

We have a number of web applications running under the same domain name, on
different ports. Each application runs under a separate Apache (1.3.14) and
Tomcat (4.0.6) instance. Due to functional requirements, these applications
call each other, opening up new browser windows to move the user from one
application to the other.

Our problem is this: When one of these applications creates a session it
sends the client a cookie called JSESSIONID with the session ID. When this
application redirects the user to a second application, if the second
application also establishes a session, it sends another cookie, also
called JSESSIONID, which invalidates the session established with the first
application.

We know that we can?t change the name of the cookie (its part of the
Servlet specification). We understand that its a problem with how IE
identifies cookies (we do not have the problem with Netscape, which
identifies cookies with hostname:port), and we do not have the problem with
the app server JServ, which identifies the session tracking cookie with the
string JServSessionID+name of servlet zone. However, we need to allow
browsing with IE, and we also want to move up to Tomcat, or at least to a
J2EE compliant app server.

Any ideas? (Hopefully its just a trivial config parameter, in Apache or
Tomcat which we are not setting right)

Thanks in advance.

Saludos, Antonio Manuel López Pérez
IBM Global Services España



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




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Barclay A. Dunn
getParameter() is misspelled.

-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]] 
Sent: Monday, January 27, 2003 8:57 PM
To: Tomcat Users List
Subject: Re: getting java.lang.NoClassDefFoundError




On Mon, 27 Jan 2003, Davidson, Greg wrote:

 Date: Mon, 27 Jan 2003 17:44:23 -0500
 From: Davidson, Greg [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: '[EMAIL PROTECTED]' 
 [EMAIL PROTECTED]
 Subject: getting java.lang.NoClassDefFoundError

 I'm getting the following error:

 java.lang.NoClassDefFoundError: javax/servlet/http/HttpServletRequest

 when I try to execute the following:

 bean code:
 request(request, response)
 {
   request.getParamater(inputBox); //This line cause the
error.
 }

 Why isn't this (javax/servlet/http/HttpServletRequest) in my/tomcat's 
 classpath??  Is that the problem??


Most likely explanation is that you modified Tomcat's classpath to put
servlet.jar on it, or put the class containing the above code into the
system extensions directory, or otherwise messed with the standard file
layout.  Without more details about your environment, it's not possible
to know where the problem really lies.

Craig



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


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




RE: Antwort: Re: Upgrading to new version of Tomcat

2003-01-28 Thread Ralph Einfeldt
As it contains StandardClassLoader and 
ClassLoaderFactory I consider it quite 
important in general. If the changes in
this jar between 4.1.18 and other versions 
are important I don't know. I prefer clean
installs of the tomcat versions, so I never 
had to bother. (We install the versions
in parallel, so it's quite easy to switch 
the version unless, the switch requires some 
changes in our specific setup)

 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 4:31 PM
 To: Tomcat Users List
 Subject: Antwort: Re: Upgrading to new version of Tomcat
 
 How important is /bin/bootstrap.jar?
 

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




Using Jikes with IBM JDK

2003-01-28 Thread Brandon Cruz
I am have been using the Jikes compiler for about a month.  Recently, we
switched to the IBM JDK and jikes will not compile any pages.  We get an
error like shown below...

StandardWrapperValve[jsp]: Servlet.service() for servlet jsp threw exception
org.apache.jasper.JasperException: Unable to compile class for JSP

An error occurred at line: -1 in the jsp file: null

Generated servlet error:
[javac] Compiling 1 source file
[javac]
/usr/local/tomcat4/work/www.hoosierinsuranceadvisors.com/SiteLever/page/dele
teVersion_jsp.java:0:0:0:0: Semantic Error: You need to modify your
classpath, sourcepath, bootclasspath, and/or extdirs setup. Package
java/lang could not be found in:
[javac]
/usr/java/IBMJava2-14/jre/lib/ext/ibmjceprovider.jar
[javac] /usr/java/IBMJava2-14/jre/lib/ext/gskikm.jar
[javac]
/usr/java/IBMJava2-14/jre/lib/ext/oldcertpath.jar
[javac] /usr/java/IBMJava2-14/jre/lib/ext/jaccess.jar
[javac] /usr/java/IBMJava2-14/jre/lib/ext/indicim.jar
[javac] /usr/java/IBMJava2-14/jre/lib/ext/ldapsec.jar
[javac] /usr/java/IBMJava2-14/lib/tools.jar
[javac] /usr/local/tomcat4/bin/bootstrap.jar
snip

For some reason, it does not look into the /usr/java/IBMJava2-14/jre/lib
where core.jar has the java/lang package.  Do I need to explicitly set the
classpath when using Jikes with IBM JDK?  Why would I not have to do this
when using the Sun JDK?

Brandon


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




How do Slide and Manager App relate in Tomcat 4.1?

2003-01-28 Thread Mariateresa Sabbatini
Can I use Slide to upload (through MS WebFolder) a web application war file from a PC 
to the webapps folder on my Unix installation of Tomcat, and then use Manager App to 
install the new web application?

Thanks, Mariateresa


Mariateresa Sabbatini   
Developer

512.908.1125 voice
512.908.4450 fax
www.broadjump.com



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




Re: Apache to JKMount everything

2003-01-28 Thread Pascal Forget
Lajos wrote:


You can do:

JkMount /* ajp13
JkMount /*.jsp ajp13

where ajp13 refers to the worker name in workers.properties. But if 
you are doing that, why use Apache?

Because Apache may startup as root (because of port 80 or 443) while
tomcat runs as nobody

Pascal




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




RE: java.lang.Exception : VerifyError - Cannot inherit from final class with Tomcat 4.1.x

2003-01-28 Thread Hylla, Heiko (Heiko)
I've checked this several times but I have only one correct version of my class in the 
classpath. I also checked different machines with the same result. Every time I switch 
from 4.0.x to 4.1.x I get the Exception above. 

Regards
Heiko 



-Original Message-
From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
Sent: Dienstag, 28. Januar 2003 16:27
To: Tomcat Users List
Subject: RE: java.lang.Exception : VerifyError with Tomcat 4.1.x


Howdy,
Did you compile the servlet against a different version of the class
than the one on your classpath?  Do you have multiple version of the
class you're trying to load on your classpath?  Either of those may
cause this error.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Hylla, Heiko (Heiko) [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:24 AM
To: [EMAIL PROTECTED]
Subject: java.lang.Exception : VerifyError with Tomcat 4.1.x

Does anybody know why I get this exception when I try to load one of my
self written classes within a servlet ?
Everything works fine with Tomcat 4.0.x .

Heiko


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


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




RE: Apache to JKMount everything

2003-01-28 Thread Raible, Matt
We also use this setup so that we can run multiple instances of Tomcat
behind one Apache server - we just setup different virtual hosts in Apache.
I agree that Apache isn't doing much in this case, but it is helping us...

Matt

 -Original Message-
 From: Pascal Forget [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 8:54 AM
 To: Tomcat Users List
 Subject: Re: Apache to JKMount everything
 
 
 Lajos wrote:
 
  You can do:
 
  JkMount /* ajp13
  JkMount /*.jsp ajp13
 
  where ajp13 refers to the worker name in 
 workers.properties. But if 
  you are doing that, why use Apache?
 
 Because Apache may startup as root (because of port 80 or 443) while
 tomcat runs as nobody
 
 Pascal
 
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 


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




Context problem, urgent!

2003-01-28 Thread Peng Annie / FINLAND
Hi,

In Tomcat4, I can not get the right context of other webapp from my app. My
app is set as the doc root. For example I have configuration  like 

Context path= docBase=MyApp debug=0 reloadable=true
crossContext=true/
Context path=/OtherApp docBase=OtherApp debug=0 reloadable=true
crossContext=true/

in server.xml. But the difference from in Tomcat3.2 is, when I user the
following statement in my servlet:

ServletContext sc =
this.getServletConfig().getServletContext().getContext(/OtherApp);
 
sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request,
response);

Tomcat can not find the OtherApp context!

Can anybody help? This is really urgent!

Many thanks in advance!

Annie





RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
On Tue, 2003-01-28 at 16:29, Turner, John wrote:
 
 Does that file get created?  Admin.xml is no different than manager.xml.  If
 /manager is working, /admin should work as well.  My guess is there is
 something on the filesystem (permissions, etc) that is preventing Tomcat
 from deploying the admin app, though I could easily be wrong.
 
This sounds like a logical proposition.

However, as I don't like to just do chmod 777 -R to my webserver
directory :) - I was hoping some of you could give tell me what
directories/files needs to be owned by the user who runs tomcat (or just
runable by all).

Btw. my tomcat is run by root currently. Can I just run it with as
f.ex.  a tomcat-user?

thank you in advance.
 
-- 
Regards,
Klavs Klavsen

--| This mail has been sent to you by: |
  Klavs Klavsen - Open Source Consultant 
[EMAIL PROTECTED] - http://www.EnableIT.dk

Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

Open Source Software - Sometimes you get more than you paid for.
 -- unknown



signature.asc
Description: This is a digitally signed message part


RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

Yes, you can run it as a non-root user.  That's what I do.  Tomcat is pretty
self-contained.

Is there anything in the logs about the admin application?  It's very
strange to me that /manager would work, but /admin would not.  They are both
configured for auto-deploy.

What happens if you move the contents of admin.xml into server.xml itself
and restart Tomcat?

John

 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:03 AM
 To: Tomcat Users List
 Subject: RE: tomcat/manager works - tomcat/admin = 404.
 
 
 On Tue, 2003-01-28 at 16:29, Turner, John wrote:
  
  Does that file get created?  Admin.xml is no different than 
 manager.xml.  If
  /manager is working, /admin should work as well.  My guess 
 is there is
  something on the filesystem (permissions, etc) that is 
 preventing Tomcat
  from deploying the admin app, though I could easily be wrong.
  
 This sounds like a logical proposition.
 
 However, as I don't like to just do chmod 777 -R to my webserver
 directory :) - I was hoping some of you could give tell me what
 directories/files needs to be owned by the user who runs 
 tomcat (or just
 runable by all).
 
 Btw. my tomcat is run by root currently. Can I just run it with as
 f.ex.  a tomcat-user?
 
 thank you in advance.
  
 -- 
 Regards,
 Klavs Klavsen
 
 --| This mail has been sent to you by: |
   Klavs Klavsen - Open Source Consultant 
 [EMAIL PROTECTED] - http://www.EnableIT.dk
 
 Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
 Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
 
 Open Source Software - Sometimes you get more than you paid for.
  -- unknown
 

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




RE: Context problem, urgent!

2003-01-28 Thread Shapira, Yoav
Howdy,
Try not having Context elements in server.xml for either of your
contexts, and see what happens.  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Peng Annie / FINLAND [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 10:44 AM
To: '[EMAIL PROTECTED]'
Subject: Context problem, urgent!

Hi,

In Tomcat4, I can not get the right context of other webapp from my
app. My
app is set as the doc root. For example I have configuration  like

Context path= docBase=MyApp debug=0 reloadable=true
crossContext=true/
Context path=/OtherApp docBase=OtherApp debug=0
reloadable=true
crossContext=true/

in server.xml. But the difference from in Tomcat3.2 is, when I user the
following statement in my servlet:

ServletContext sc =
this.getServletConfig().getServletContext().getContext(/OtherApp);

sc.getRequestDispatcher(/servlet/ControllerServlet).forward(request,
response);

Tomcat can not find the OtherApp context!

Can anybody help? This is really urgent!

Many thanks in advance!

Annie



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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
On Tue, 2003-01-28 at 17:06, Turner, John wrote:
 
 Yes, you can run it as a non-root user.  That's what I do.  Tomcat is pretty
 self-contained.
 
 Is there anything in the logs about the admin application?  It's very
 strange to me that /manager would work, but /admin would not.  They are both
 configured for auto-deploy.
 
Sorry - I totally forgot that.

output from the admin_log.

2003-01-28 17:15:56 WebappLoader[/admin]: Deploying class repositories
to work directory
/opt/jakarta/tomcat/work/Standalone/ofbiz.vsen.dk/admin
2003-01-28 17:15:56 WebappLoader[/admin]: Deploy class files
/WEB-INF/classes to
/opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR
/WEB-INF/lib/struts.jar to
/opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
2003-01-28 17:15:57 ContextConfig[/admin] Exception processing JAR at
resource path /WEB-INF/lib/struts.jar
javax.servlet.ServletException: Exception processing JAR at resource
path /WEB-INF/lib/struts.jar
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at
org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
- Root Cause -
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1313)
at java.io.File.createTempFile(File.java:1401)
at java.io.File.createTempFile(File.java:1438)
at
sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
at
sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
at
sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
at
sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:85)
at
sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLConnection.java:69)
at
org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:906)
at
org.apache.catalina.startup.ContextConfig.tldScan(ContextConfig.java:868)
at
org.apache.catalina.startup.ContextConfig.start(ContextConfig.java:647)
at
org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:243)
at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:166)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:3567)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at
org.apache.catalina.core.StandardService.start(StandardService.java:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2189)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at
org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at
org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at

mod_jk config problems

2003-01-28 Thread Chris Faulkner
Hello

I am trying to configure mod_jk to link Apache to Tomcat which I have done before with 
TC 3 and 4.0. I am trying to do it with 4.1.18/Apache 1.3. There is no sample 
workers.properties file with 4.1.18 - is this 
deliberate ? Anyway, I made my own but I can't get my requests through !

The mod_jk log is saying this:

[Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1245)]: ERROR: can't resolve tomcat 
address locahost
[Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1247)]: ERROR: invalid host and port 
locahost 8009
[Tue Jan 28 16:15:31 2003]  [jk_worker.c (174)]: wc_create_worker validate failed for 
worker1
[Tue Jan 28 16:15:31 2003]  [jk_worker.c (244)]: build_worker_map failed to create 
workerworker1

So something is happening  with the workers - looks like a failure to resolve to 
localhost on port 8009. Can't think why that wouldn't work. Any ideas out there ?

We are on Apache 1.3 so I am not keen on using jk2 - this seems to demand 
recompilation of Apache 1.3. Is that correct ?

Apache also complained about JkLogStampFormat in the mod_jk.conf file. This 
directive is given on one of the sample pages. Anyone know why ?

I downloaded and installed mod_jk-1.3 and jk_jnicb.so to my shared library 
directory.

from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2/bin/linux/i386/


Thanks

Chris









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




JK vs. Standalone?

2003-01-28 Thread Mark O'Neil
Hello,

I may be a bit confused, but here goes anyway:

My understanding is that JK 'binds' tomcat to apache so that instead of 
running a servlet or jsp via the Tomcat port http://my-
host:8080/my-servlet you can run it via apache directly http://my-
host/my-servlet - correct?

The question then is: what are the determining factors for implementing 
JK in a production system? Specifically why would I and to what benefit? 
I have a feeling it has to do with combining the otherwise different 
document roots and file management(?).

Insights please.

regards,
-m


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



RE: mod_jk config problems

2003-01-28 Thread Turner, John

Check the logs...it is looking for locahost, not localhost.  Note the
missing l.

Here's the minimum required workers.properties file:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties

John

 -Original Message-
 From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:21 AM
 To: Tomcat Users List
 Subject: mod_jk config problems
 
 
 Hello
 
 I am trying to configure mod_jk to link Apache to Tomcat 
 which I have done before with TC 3 and 4.0. I am trying to do 
 it with 4.1.18/Apache 1.3. There is no sample 
 workers.properties file with 4.1.18 - is this 
 deliberate ? Anyway, I made my own but I can't get my 
 requests through !
 
 The mod_jk log is saying this:
 
 [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1245)]: ERROR: 
 can't resolve tomcat address locahost
 [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1247)]: ERROR: 
 invalid host and port locahost 8009
 [Tue Jan 28 16:15:31 2003]  [jk_worker.c (174)]: 
 wc_create_worker validate failed for worker1
 [Tue Jan 28 16:15:31 2003]  [jk_worker.c (244)]: 
 build_worker_map failed to create workerworker1
 
 So something is happening  with the workers - looks like a 
 failure to resolve to localhost on port 8009. Can't think why 
 that wouldn't work. Any ideas out there ?
 
 We are on Apache 1.3 so I am not keen on using jk2 - this 
 seems to demand recompilation of Apache 1.3. Is that correct ?
 
 Apache also complained about JkLogStampFormat in the 
 mod_jk.conf file. This directive is given on one of the 
 sample pages. Anyone know why ?
 
 I downloaded and installed mod_jk-1.3 and jk_jnicb.so to 
 my shared library directory.
 
 from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
/bin/linux/i386/


Thanks

Chris









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

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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

Ah, now we are getting somewhere:

- Root Cause -
java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.checkAndCreate(File.java:1313)
at java.io.File.createTempFile(File.java:1401)
at java.io.File.createTempFile(File.java:1438)
at

I'm not familiar enough with the admin app to know what it's trying to do
there, but obviously it wants to create a file somewhere, and can't.
Whatever it is, its happening right here:

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)

...and the last thing it was trying to do was:

2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
to
/opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar

Sowhat's up with that directory path?  Anything?  Permissions, etc.?
Anyone else know exactly what's going on?

John


 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:18 AM
 To: Tomcat Users List
 Subject: RE: tomcat/manager works - tomcat/admin = 404.
 
 
 On Tue, 2003-01-28 at 17:06, Turner, John wrote:
  
  Yes, you can run it as a non-root user.  That's what I do.  
 Tomcat is pretty
  self-contained.
  
  Is there anything in the logs about the admin application?  
 It's very
  strange to me that /manager would work, but /admin would 
 not.  They are both
  configured for auto-deploy.
  
 Sorry - I totally forgot that.
 
 output from the admin_log.
 
 2003-01-28 17:15:56 WebappLoader[/admin]: Deploying class repositories
 to work directory
 /opt/jakarta/tomcat/work/Standalone/ofbiz.vsen.dk/admin
 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy class files
 /WEB-INF/classes to
 /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/classes
 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR
 /WEB-INF/lib/struts.jar to
 /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/li
 b/struts.jar
 2003-01-28 17:15:57 ContextConfig[/admin] Exception processing JAR at
 resource path /WEB-INF/lib/struts.jar
 javax.servlet.ServletException: Exception processing JAR at resource
 path /WEB-INF/lib/struts.jar
 at
 org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo
 nfig.java:930)
 at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi
 g.java:868)
 at
 org.apache.catalina.startup.ContextConfig.start(ContextConfig.
 java:647)
 at
 org.apache.catalina.startup.ContextConfig.lifecycleEvent(Conte
 xtConfig.java:243)
 at
 org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(L
 ifecycleSupport.java:166)
 at
 org.apache.catalina.core.StandardContext.start(StandardContext
 .java:3567)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardHost.start(StandardHost.java:738)
 at
 org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1188)
 at
 org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
 at
 org.apache.catalina.core.StandardService.start(StandardService
 .java:497)
 at
 org.apache.catalina.core.StandardServer.start(StandardServer.j
 ava:2189)
 at 
 org.apache.catalina.startup.Catalina.start(Catalina.java:512)
 at
 org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
 at
 org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccess
 orImpl.java:39)
 at
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
 odAccessorImpl.java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at
 org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 - Root Cause -
 java.io.IOException: No such file or directory
 at java.io.UnixFileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1313)
 at java.io.File.createTempFile(File.java:1401)
 at java.io.File.createTempFile(File.java:1438)
 at
 sun.net.www.protocol.jar.URLJarFile$1.run(URLJarFile.java:169)
 at java.security.AccessController.doPrivileged(Native Method)
 at
 sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:164)
 at
 sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:42)
 at
 sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:68)
 at
 sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnec
 tion.java:85)
 at
 sun.net.www.protocol.jar.JarURLConnection.getJarFile(JarURLCon
 nection.java:69)
 at
 org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo
 nfig.java:906)
 at
 org.apache.catalina.startup.ContextConfig.tldScan(ContextConfi
 g.java:868)
 at
 

Re: HTTPS -- HTTP redirecting

2003-01-28 Thread luk
Quoting Bill Barker [EMAIL PROTECTED]:

 AFAIK, using absolute URLs is the only supported way to go.   However, it
 would be easy enough to write a Filter that does the redirect for you:
 
 public class MyFilter implements Filter {
   public void init(FilterConfig conf) {}
   public void destroy() {}
   public void doFilter(ServletRequest req, ServletResponse res, FilterChain
 chain)
throws ServletException,IOException {
if( req.isSecure()  res instanceof HttpServletResponse ) {

Thanks. Actually, I already wrote a similar filter to solve the problem. Is 
there any particular reason for which you are doing an additional check (res 
instanceof HttpServletResponse) in your code?

Lukasz Szelag



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




Problems with Apache-Tomcat, URL-rewriting in SSL

2003-01-28 Thread Jason Coben
I aplogize if this has been addressed, previously. I've spent hours
searching for the Answer but have come up empty.

I am running Tomcat 4.1.18 on Redhat 8. I've followed the instructions at
jakarta.apache.org for installing/running SSL and everything is working as
expected, I can open an SSL connection on port 8443

EXCEPT for when I try to encode a URL with response.encodeURL() within the
SSL connection. Apache chokes when it sees ;jessionid= in the URL. I've read
that I can get around this by appending

 IfModule mod_rewrite.c
  RewriteEngine on
  # Force URLs with a jsessionid to go to Tomcat. Necessary because
  # Apache doesn't recognise that the semi-colon is special.
  RewriteRule   ^(/.*;jsessionid=.*)$   $1 [T=jserv-servlet]
  /IfModule

into /etc/httpd/conf/httpd.conf, but it isn't working (and yes, I have made
sure that the load rewrite mod line is uncommented).

I need to be able to track sessions within the encrypted portion of this app
regardless of cookie support by the client. I understand that the SSL
portion of this gets run through Apache before being sent on to Tomcat, and
it doesn't seem like Apache wants to isten to my configuration requests. Is
there any way to force the URL into Tomcat from the requesting page?

Thanks in advance,

Jay


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




Wanted: Documentation on HTTP/RMI Tunnelling

2003-01-28 Thread Richard Heintze

Can someone give the the URL where it explicitly says that Tomcat supports Java 
RMI/HTTP tunneling (with callbacks) on Port 80?

Thanks,

 Siegfried



-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: Tomcat to LDAP over SSL

2003-01-28 Thread Petar Lalovic

Hi,

In case anyone is interested, I have solved my problem.  I used the
JNDIRealm for Tomcat 4 found on this site
http://www.peacetech.com/java/files/apache/tomcat/ and added the following
2 lines to my code:
System.setProperty(javax.net.ssl.trustStore,
D:/java/j2sdk1.4.0/jre/lib/security/cacerts);
env.put(Context.SECURITY_PROTOCOL, ssl);

Of course, I first imported the LDAP server's certificate and the signed CA
certificate (from my LDAP administrator) into the cacerts file using
keytool.

Petar


|-+--
| |   Petar Lalovic|
| |   Petar_Lalovic@cana|
| |   dalife.com|
| |  |
| |   01/24/2003 10:13 AM|
| |   Please respond to  |
| |   Tomcat Users List|
| |  |
|-+--
  
--|
  |
  |
  |   To:   [EMAIL PROTECTED] 
  |
  |   cc:  
  |
  |   Subject:  Tomcat to LDAP over SSL
  |
  
--|




Hi,

We are running Tomcat 4 Standalone.  The requirement is to have Tomcat
establish a secure connection with our LDAP server on port 636 (SSL) so
that only communications between Tomcat and LDAP are encrypted (browser to
Tomcat are normal HTTP).  The JNDI Realm HOW-TO got us up and running
without SSL to the LDAP server.  But on changing the port from 389 to 636
for the connectionURL attribute, we get a
javax.naming.CommunicationException and Tomcat fails to start up.  The same
LDAP server currently communicates with WebSphere using SSL.

If anyone has attempted this before, or has suggestions on how to get it to
work, your feedback is greatly appreciated.

Petar




Disclaimer Notice: If you are not the intended recipient of this
transmission, you are hereby notified that any disclosure or other action
taken in reliance on its contents is strictly prohibited. Please delete the
information from your system and notify the sender immediately. We have
taken precautions against viruses, but take no responsibility for loss or
damage that may be caused by its contents.

Avertissement
: Si vous n'êtes pas le destinataire du présent message, soyez par la
présente avisé que toute divulgation ou autre action effectuée en rapport
avec le contenu du message est formellement interdite. Si vous avez reçu ce
message par erreur, veuillez nous en aviser sans délai par un courriel de
réponse et effacer les renseignements de votre système. Nous prenons toutes
les précautions nécessaires pour nous assurer que le présent message ne
contient pas de virus mais nous n'assumons aucune responsabilité quant à la
perte ou aux dommages qui pourraient être causés par son contenu.



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




Servlet Context Problem

2003-01-28 Thread Lior Shliechkorn

Hello,

I'm having problems with the ServletContext object. When I acquire the context, it 
just gets the path to my webApp, right? The servlet will then know what webApp it's 
under. Ok, so I tried to make it work with a servlet to forward to another page.

Now the servlet is mapped as /webApp/servlet/ServletLogin - And I want the servlet to 
forward control to a JSP page. But the problem that I'm encountering is that when it 
forwards to the JSP page, it looks for it under the servlet/jsp/Page.jsp...and not 
just jsp/Page.jsp. I have the code I used below. Any help is grealy appreciated.

ServletContext context = getServletContext();
String url = /jsp/JSPpage.jsp;
RequestDispatcher rd = context.getRequestDispatcher(url);
rd.forward(request, response);

Lior




-
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now


Re: RE: mod_jk config problems

2003-01-28 Thread Chris Faulkner

Check the logs...it is looking for locahost, not localhost.  Note the
missing l.


Ouch. I had just spotted it after sending the email - I altered it to use my hostname 
instead and realised that worked.

In my defence, the mistake is on the online documentation, although I should have read 
it properly ! I copied/pasted from

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html#A sample 
worker.properties

I suppose that should be fixed.

Chris


Check the logs...it is looking for locahost, not localhost.  Note the
missing l.

Here's the minimum required workers.properties file:

# BEGIN workers.properties
# Definition for Ajp13 worker
worker.list=ajp13
worker.ajp13.port=8009
worker.ajp13.host=localhost
worker.ajp13.type=ajp13
# END workers.properties

John

 -Original Message-
 From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:21 AM
 To: Tomcat Users List
 Subject: mod_jk config problems
 
 
 Hello
 
 I am trying to configure mod_jk to link Apache to Tomcat 
 which I have done before with TC 3 and 4.0. I am trying to do 
 it with 4.1.18/Apache 1.3. There is no sample 
 workers.properties file with 4.1.18 - is this 
 deliberate ? Anyway, I made my own but I can't get my 
 requests through !
 
 The mod_jk log is saying this:
 
 [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1245)]: ERROR: 
 can't resolve tomcat address locahost
 [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1247)]: ERROR: 
 invalid host and port locahost 8009
 [Tue Jan 28 16:15:31 2003]  [jk_worker.c (174)]: 
 wc_create_worker validate failed for worker1
 [Tue Jan 28 16:15:31 2003]  [jk_worker.c (244)]: 
 build_worker_map failed to create workerworker1
 
 So something is happening  with the workers - looks like a 
 failure to resolve to localhost on port 8009. Can't think why 
 that wouldn't work. Any ideas out there ?
 
 We are on Apache 1.3 so I am not keen on using jk2 - this 
 seems to demand recompilation of Apache 1.3. Is that correct ?
 
 Apache also complained about JkLogStampFormat in the 
 mod_jk.conf file. This directive is given on one of the 
 sample pages. Anyone know why ?
 
 I downloaded and installed mod_jk-1.3 and jk_jnicb.so to 
 my shared library directory.
 
 from 
http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
/bin/linux/i386/


Thanks

Chris









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

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






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




RE: JK vs. Standalone?

2003-01-28 Thread Turner, John

You can just run Tomcat on port 80 if that's what you want.

Many people have many different reasons for using Apache:

- Apache doesn't run as root on port 80
- Apache has other capabilities (mod_rewrite, etc.)
- Apache is better at serving static content...for a heavy traffic site
this can make a difference (better is relative to your webapp)
- there are legacy requirements: PHP, perl, etc.
- You want to use Apache's access control (.htaccess)
- you want to load-balance to multiple Tomcats
- you have proprietary Apache DSO that you have to support

...and on and on and on.

Basically, it comes down to this:  If your webapp works fine with Tomcat
stand-alone, and you don't mind running Tomcat as root on port 80, then
change CoyoteConnector to listen on port 80 instead of 8080 and call it
good.  If your webapp can benefit from putting the task of serving static
content onto Apache's shoulders, you don't want to run Tomcat as root on
port 80, you want to load-balance, or you have a need for any one of
Apache's many capabilities, use Apache + connector + Tomcat.

John

 -Original Message-
 From: Mark O'Neil [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:29 AM
 To: Tomcat Users List
 Subject: JK vs. Standalone?
 
 
 Hello,
 
 I may be a bit confused, but here goes anyway:
 
 My understanding is that JK 'binds' tomcat to apache so that 
 instead of 
 running a servlet or jsp via the Tomcat port http://my-
 host:8080/my-servlet you can run it via apache directly http://my-
 host/my-servlet - correct?
 
 The question then is: what are the determining factors for 
 implementing 
 JK in a production system? Specifically why would I and to 
 what benefit? 
 I have a feeling it has to do with combining the otherwise different 
 document roots and file management(?).
 
 Insights please.
 
 regards,
 -m
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




RE: RE: mod_jk config problems

2003-01-28 Thread Turner, John

Thanks for the heads-up.

John


 -Original Message-
 From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:40 AM
 To: Tomcat Users List
 Subject: Re: RE: mod_jk config problems
 
 
 
 Check the logs...it is looking for locahost, not 
 localhost.  Note the
 missing l.
 
 
 Ouch. I had just spotted it after sending the email - I 
 altered it to use my hostname instead and realised that worked.
 
 In my defence, the mistake is on the online documentation, 
 although I should have read it properly ! I copied/pasted from
 
 http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workers
 howto.html#A sample worker.properties
 
 I suppose that should be fixed.
 
 Chris
 
 
 Check the logs...it is looking for locahost, not 
 localhost.  Note the
 missing l.
 
 Here's the minimum required workers.properties file:
 
 # BEGIN workers.properties
 # Definition for Ajp13 worker
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 # END workers.properties
 
 John
 
  -Original Message-
  From: Chris Faulkner [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 11:21 AM
  To: Tomcat Users List
  Subject: mod_jk config problems
  
  
  Hello
  
  I am trying to configure mod_jk to link Apache to Tomcat 
  which I have done before with TC 3 and 4.0. I am trying to do 
  it with 4.1.18/Apache 1.3. There is no sample 
  workers.properties file with 4.1.18 - is this 
  deliberate ? Anyway, I made my own but I can't get my 
  requests through !
  
  The mod_jk log is saying this:
  
  [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1245)]: ERROR: 
  can't resolve tomcat address locahost
  [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c (1247)]: ERROR: 
  invalid host and port locahost 8009
  [Tue Jan 28 16:15:31 2003]  [jk_worker.c (174)]: 
  wc_create_worker validate failed for worker1
  [Tue Jan 28 16:15:31 2003]  [jk_worker.c (244)]: 
  build_worker_map failed to create workerworker1
  
  So something is happening  with the workers - looks like a 
  failure to resolve to localhost on port 8009. Can't think why 
  that wouldn't work. Any ideas out there ?
  
  We are on Apache 1.3 so I am not keen on using jk2 - this 
  seems to demand recompilation of Apache 1.3. Is that correct ?
  
  Apache also complained about JkLogStampFormat in the 
  mod_jk.conf file. This directive is given on one of the 
  sample pages. Anyone know why ?
  
  I downloaded and installed mod_jk-1.3 and jk_jnicb.so to 
  my shared library directory.
  
  from 
 http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk
/release/v1.2.2
/bin/linux/i386/


Thanks

Chris









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

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






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

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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread klavs klavsen
On Tue, 2003-01-28 at 17:24, Turner, John wrote:
 
 Ah, now we are getting somewhere:
 
 - Root Cause -
 java.io.IOException: No such file or directory
 at java.io.UnixFileSystem.createFileExclusively(Native Method)
 at java.io.File.checkAndCreate(File.java:1313)
 at java.io.File.createTempFile(File.java:1401)
 at java.io.File.createTempFile(File.java:1438)
 at
 
 I'm not familiar enough with the admin app to know what it's trying to do
 there, but obviously it wants to create a file somewhere, and can't.
 Whatever it is, its happening right here:
 
 org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)
 
where can I look for that problem? line 930 - in what file?

 ...and the last thing it was trying to do was:
 
 2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR /WEB-INF/lib/struts.jar
 to
 /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/lib/struts.jar
 
 Sowhat's up with that directory path?  Anything?  Permissions, etc.?
 Anyone else know exactly what's going on?
 
the path is correct. as Root I can cd into it (and tomcat is still
running as root). and struts.jar has 544 permissions, which should be
fine?
 
Thank you for helping me John, I hope we'll find the problem. It's weird
that noone else has this problem, when I just installed tomcat-4.1.18 -
and hasn't changed anything except for the localhost part.

-- 
Regards,
Klavs Klavsen

--| This mail has been sent to you by: |
  Klavs Klavsen - Open Source Consultant 
[EMAIL PROTECTED] - http://www.EnableIT.dk

Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62

Open Source Software - Sometimes you get more than you paid for.
 -- unknown



signature.asc
Description: This is a digitally signed message part


RE: sendRedirect() fails on first call only within a session

2003-01-28 Thread Varley, Roger
I've done some more investigation. If I replace
'response.sendRedirect(response.encodeRedirectURL(../default.htm))' with
'response.sendRedirect(../default.htm);' then everything works as
expected, so there is something about response.encodeRedirectURL() that I'm
not uderstanding. I've looked through the isapi.log and I've noticed that
when using
response.encodeRedirectURL() that the resulting call for the first call (and
the first call only) in a session is something like
/application/default.htm;jsessionid=0c1stutim1 - which is the correct path.
I was wondering, could IIS be considering the ';jsessionid=' string as being
part of the actual path to the page?

Regards
Roger

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




Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Christian Cryder
Hey folks, has anyone observed scenarios where Tomcat appears to ignore
the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and have
manually uninstalled/reinstalled the tomcat service as follows:

to uninstall:
-
tomcat.exe -uninstall Apache Tomcat 4.1

to install:
-
tomcat -install Apache Tomcat 4.1
E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -Djava.class
.path=D:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache Group\Tomcat
4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
4.1\common\endorsed -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out D:\Program
Files\Apache Group\Tomcat 4.1\logs\stdout.log -err D:\Program Files\Apache
Group\Tomcat 4.1\logs\stderr.log

What we are seeing here is that everything seems to work just fine, but
Tomcat does not seem to stop at the 256m max that we are requesting? Is this
to be expected? Or are we doing something stupid?

Thanks much,
Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today


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




RE: tomcat/manager works - tomcat/admin = 404.

2003-01-28 Thread Turner, John

org.apache.catalina.startup.ContextConfig.tldScanJar(ContextConfig.java:930)

is equal to:

org/apache/catalina/startup/ContextConfig/tldScanJar(ContextConfig.java:930)

...but that class is probably in struts.jar...you'd probably need to
download the source distro and look there.

I'm hoping someone else can reply...I honestly don't know how to fix this, I
would think the manager app is trying to do the same thing, which makes the
fact that the admin app not working very strange.

John


 -Original Message-
 From: klavs klavsen [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:46 AM
 To: Tomcat Users List
 Subject: RE: tomcat/manager works - tomcat/admin = 404.
 
 
 On Tue, 2003-01-28 at 17:24, Turner, John wrote:
  
  Ah, now we are getting somewhere:
  
  - Root Cause -
  java.io.IOException: No such file or directory
  at 
 java.io.UnixFileSystem.createFileExclusively(Native Method)
  at java.io.File.checkAndCreate(File.java:1313)
  at java.io.File.createTempFile(File.java:1401)
  at java.io.File.createTempFile(File.java:1438)
  at
  
  I'm not familiar enough with the admin app to know what 
 it's trying to do
  there, but obviously it wants to create a file somewhere, and can't.
  Whatever it is, its happening right here:
  
  
 org.apache.catalina.startup.ContextConfig.tldScanJar(ContextCo
 nfig.java:930)
  
 where can I look for that problem? line 930 - in what file?
 
  ...and the last thing it was trying to do was:
  
  2003-01-28 17:15:56 WebappLoader[/admin]: Deploy JAR 
 /WEB-INF/lib/struts.jar
  to
  
 /opt/jakarta/tomcat/webapps/../server/webapps/admin/WEB-INF/li
 b/struts.jar
  
  Sowhat's up with that directory path?  Anything?  
 Permissions, etc.?
  Anyone else know exactly what's going on?
  
 the path is correct. as Root I can cd into it (and tomcat is still
 running as root). and struts.jar has 544 permissions, which should be
 fine?
  
 Thank you for helping me John, I hope we'll find the problem. 
 It's weird
 that noone else has this problem, when I just installed 
 tomcat-4.1.18 -
 and hasn't changed anything except for the localhost part.
 
 -- 
 Regards,
 Klavs Klavsen
 
 --| This mail has been sent to you by: |
   Klavs Klavsen - Open Source Consultant 
 [EMAIL PROTECTED] - http://www.EnableIT.dk
 
 Get PGP key from www.keyserver.net - Key ID: 0x586D5BCA 
 Fingerprint = 2873 188C 968E 600D D8F8  B8DA 3D3A 0B79 7E06 3C62
 
 Open Source Software - Sometimes you get more than you paid for.
  -- unknown
 

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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Shapira, Yoav
Howdy,
I've never had that problem, and I use (and test) -Xms and -Xmx with
every tomcat release.  However, I only test the platforms I care about
-- Linux and Solaris -- and so I can't vouch for Windows...

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:49 AM
To: Tomcat-User
Subject: Tomcat 4.1 ignoring -Xmx params

Hey folks, has anyone observed scenarios where Tomcat appears to ignore
the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
have
manually uninstalled/reinstalled the tomcat service as follows:

to uninstall:
-
tomcat.exe -uninstall Apache Tomcat 4.1

to install:
-
tomcat -install Apache Tomcat 4.1
E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -
Djava.class
.path=D:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache
Group\Tomcat
4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
4.1\common\endorsed -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
D:\Program
Files\Apache Group\Tomcat 4.1\logs\stdout.log -err D:\Program
Files\Apache
Group\Tomcat 4.1\logs\stderr.log

What we are seeing here is that everything seems to work just fine, but
Tomcat does not seem to stop at the 256m max that we are requesting? Is
this
to be expected? Or are we doing something stupid?

Thanks much,
Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today


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


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




Re: Can the JNDI Connection Pool re-connect after failure?

2003-01-28 Thread Boris Folgmann
Ryan Cornia wrote:

 Anyone using JNDI datasources that reconnect in case of a lost link to
 the DB server?
 
 Any examples? I'm using the I-net driver for Oracle

Interesting question. In fact I have the same problem, using DBCP and
PostgreSQL. I looked trough the Javadocs at
http://jakarta.apache.org/commons/dbcp/api/index.html
but did not find a resource argument for configuring something like a
reconnect. Any comments welcome.

cu,
boris

-- 
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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




RE: Can the JNDI Connection Pool re-connect after failure?

2003-01-28 Thread Shapira, Yoav
Howdy,
This would likely be an implementation detail, not specified by the JNDI
interface contract (at least at this point in time).  In fact, an
implementation that does this would claim it as a competitive advantage.

I believe the Oracle JDBC driver and connection pool (ojdbc14.jar in the
Oracle JDBC 9.2.0.1 downloaded) does do this type of thing, or at least
claims to do it.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Boris Folgmann [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:57 AM
To: Tomcat Users List
Subject: Re: Can the JNDI Connection Pool re-connect after failure?

Ryan Cornia wrote:

 Anyone using JNDI datasources that reconnect in case of a lost link
to
 the DB server?

 Any examples? I'm using the I-net driver for Oracle

Interesting question. In fact I have the same problem, using DBCP and
PostgreSQL. I looked trough the Javadocs at
http://jakarta.apache.org/commons/dbcp/api/index.html
but did not find a resource argument for configuring something like a
reconnect. Any comments welcome.

cu,
   boris

--
Dipl.-Inf. Boris Folgmann   mailto:[EMAIL PROTECTED]
Folgmann IT-Consulting  http://www.folgmann.de


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


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




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Tim Moore
 -Original Message-
 From: Davidson, Greg [mailto:[EMAIL PROTECTED]] 
 Sent: Tuesday, January 28, 2003 8:57 AM
 To: 'Tomcat Users List'
 Subject: RE: getting java.lang.NoClassDefFoundError
 
 
 Yeah, I read that, here is the problem:
 
 I want to run Tomcat from my local PC.
 
 I want to load the *.classes from a network drive (for night backup
 purposes) not my local drive.
 (I've changed the class path in the catalina.bat, but I don't 
 like this)
 
 I want to run the *.jsp from a network drive (for night 
 backup purposes) not my local drive. (I've added a context in 
 the server.xml for this)

OK so if your context directory is already on a network drive, can't you
just put your classes in WEB-INF/classes and be done?  I must be
misunderstanding you.

 
 Windows shortcuts are not the same as Unix symbolic links 
 (can't use a shortcut in the WEB-INF/classes to point to the 
 network drive)
 
 Tomcat changes the system classpath, I tried setting the 
 system(windows) classpath to include the network drive, but 
 Tomcat changes it. (I've changed the class path in the 
 catalina.bat, but I don't like this)

My experience is that trying to muck with Tomcat's classloading scheme
only brings pain. :-\

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW / 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863

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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Hari Venkatesan
How did you find out it is ignoring -Xmx parameter. Initially when you
start up tomcat, it would allocate only the minimum heap that you set in
-Xms.

Hari



-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 11:49 AM
To: Tomcat-User
Subject: Tomcat 4.1 ignoring -Xmx params

Hey folks, has anyone observed scenarios where Tomcat appears to ignore
the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
have
manually uninstalled/reinstalled the tomcat service as follows:

to uninstall:
-
tomcat.exe -uninstall Apache Tomcat 4.1

to install:
-
tomcat -install Apache Tomcat 4.1
E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -
Djava.class
.path=D:\Program Files\Apache Group\Tomcat
4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache
Group\Tomcat
4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
4.1\common\endorsed -start
org.apache.catalina.startup.BootstrapService -params start -stop
org.apache.catalina.startup.BootstrapService -params stop -out
D:\Program
Files\Apache Group\Tomcat 4.1\logs\stdout.log -err D:\Program
Files\Apache
Group\Tomcat 4.1\logs\stderr.log

What we are seeing here is that everything seems to work just fine, but
Tomcat does not seem to stop at the 256m max that we are requesting? Is
this
to be expected? Or are we doing something stupid?

Thanks much,
Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today


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


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


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




RE: getting java.lang.NoClassDefFoundError

2003-01-28 Thread Shapira, Yoav
Howdy,

 I want to load the *.classes from a network drive (for night backup
 purposes) not my local drive.
 (I've changed the class path in the catalina.bat, but I don't
 like this)

I wouldn't like it either if I were you ;)

Besides posing a security risk (e.g. someone remapping the network drive
maliciously to other .class files), what do you gain from this?  Have
you considered packaging your app into a .war file and deploying that to
the server, instead of messing with symlinks, shortcuts, and mangled
classpaths that lead to a non-portable webapp?

Yoav Shapira
Millennium ChemInformatics

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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Christian Cryder
What we are doing is running Tomcat as a service on a production server; we
specify both -Xmx and -Xms values. What we are seeing is that after several
days of use, Tomcat is well over the max, by a magnitude of 100+ MB. Our
experience has been that when we run it manually it seems to stay within the
bounds, but when running as a service it seems to go beyond them. So perhaps
we're not installing the service correctly...

Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today

 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:02 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params


 How did you find out it is ignoring -Xmx parameter. Initially when you
 start up tomcat, it would allocate only the minimum heap that you set in
 -Xms.

 Hari



 -Original Message-
 From: Christian Cryder [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:49 AM
 To: Tomcat-User
 Subject: Tomcat 4.1 ignoring -Xmx params
 
 Hey folks, has anyone observed scenarios where Tomcat appears to ignore
 the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
 have
 manually uninstalled/reinstalled the tomcat service as follows:
 
 to uninstall:
 -
 tomcat.exe -uninstall Apache Tomcat 4.1
 
 to install:
 -
 tomcat -install Apache Tomcat 4.1
 E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -
 Djava.class
 .path=D:\Program Files\Apache Group\Tomcat
 4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache
 Group\Tomcat
 4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
 4.1\common\endorsed -start
 org.apache.catalina.startup.BootstrapService -params start -stop
 org.apache.catalina.startup.BootstrapService -params stop -out
 D:\Program
 Files\Apache Group\Tomcat 4.1\logs\stdout.log -err D:\Program
 Files\Apache
 Group\Tomcat 4.1\logs\stderr.log
 
 What we are seeing here is that everything seems to work just fine, but
 Tomcat does not seem to stop at the 256m max that we are requesting? Is
 this
 to be expected? Or are we doing something stupid?
 
 Thanks much,
 Christian
 --
 Christian Cryder [[EMAIL PROTECTED]]
 Internet Architect, ATMReports.com
 Barracuda - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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


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


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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Shapira, Yoav
Howdy,
As an aside, and this applies for windows as well as linux/solaris: -Xms
and -Xmx control the size of the JVM heap.  That's not the total JVM
size.  There are other spaces, e.g. the stack, symbol tables, and OS
process overhead, that contribute to the overall process size.  

How much they contribute depends on the OS version, JDK version, and
other things, and is very difficult to predict precisely.  You can
measure it at any given point by comparing the output from an OS-level
top (e.g. top on linux, or the task manager in windows) to the output of
Runtime.getRuntime().totalMemory().  You will always see a difference.

So if you're basing your assertion that -Xmx is ignored on the output of
an OS-level tool, please rethink your assertion in light of the above.
If you're basing it on the actual Runtime.totalMemory() output, then you
are correct in saying you likely did not install tomcat correctly.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:10 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1 ignoring -Xmx params

What we are doing is running Tomcat as a service on a production
server; we
specify both -Xmx and -Xms values. What we are seeing is that after
several
days of use, Tomcat is well over the max, by a magnitude of 100+ MB.
Our
experience has been that when we run it manually it seems to stay
within
the
bounds, but when running as a service it seems to go beyond them. So
perhaps
we're not installing the service correctly...

Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today

 -Original Message-
 From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:02 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params


 How did you find out it is ignoring -Xmx parameter. Initially when
you
 start up tomcat, it would allocate only the minimum heap that you set
in
 -Xms.

 Hari



 -Original Message-
 From: Christian Cryder [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 11:49 AM
 To: Tomcat-User
 Subject: Tomcat 4.1 ignoring -Xmx params
 
 Hey folks, has anyone observed scenarios where Tomcat appears to
ignore
 the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
 have
 manually uninstalled/reinstalled the tomcat service as follows:
 
 to uninstall:
 -
 tomcat.exe -uninstall Apache Tomcat 4.1
 
 to install:
 -
 tomcat -install Apache Tomcat 4.1
 E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -
 Djava.class
 .path=D:\Program Files\Apache Group\Tomcat
 4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache
 Group\Tomcat
 4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
 4.1\common\endorsed -start
 org.apache.catalina.startup.BootstrapService -params start -stop
 org.apache.catalina.startup.BootstrapService -params stop -out
 D:\Program
 Files\Apache Group\Tomcat 4.1\logs\stdout.log -err D:\Program
 Files\Apache
 Group\Tomcat 4.1\logs\stderr.log
 
 What we are seeing here is that everything seems to work just fine,
but
 Tomcat does not seem to stop at the 256m max that we are requesting?
Is
 this
 to be expected? Or are we doing something stupid?
 
 Thanks much,
 Christian
 --
 Christian Cryder [[EMAIL PROTECTED]]
 Internet Architect, ATMReports.com
 Barracuda - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today
 
 
 --
 To unsubscribe, e-mail:   mailto:tomcat-user-
 [EMAIL PROTECTED]
 For additional commands, e-mail: mailto:tomcat-user-
 [EMAIL PROTECTED]


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


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


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


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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Christian Cryder
 As an aside, and this applies for windows as well as linux/solaris: -Xms
 and -Xmx control the size of the JVM heap.  That's not the total JVM
 size.  There are other spaces, e.g. the stack, symbol tables, and OS
 process overhead, that contribute to the overall process size.

 How much they contribute depends on the OS version, JDK version, and
 other things, and is very difficult to predict precisely.  You can
 measure it at any given point by comparing the output from an OS-level
 top (e.g. top on linux, or the task manager in windows) to the output of
 Runtime.getRuntime().totalMemory().  You will always see a difference.

Excellent point, and one I had considered.

 So if you're basing your assertion that -Xmx is ignored on the output of
 an OS-level tool, please rethink your assertion in light of the above.

Ok, so this _is_ what I'm basing it on (looking at MS's Task manager).
BUT...it still doesn't seem reasonable that the actual memory used is 150 MB
 than the limit specified to the JVM. In other words, if I tell the JVM
-Xmx512 and the OS Task Mgr is reporting that Tomcat is using 670 MB,
doesn't this seem like more than just an overhead issue?

I'm perfectly content if that is in fact the answer, I'm just trying to
confirm whether or not we have a problem.

Any suggestions?

tia,
Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:21 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params


 Howdy,
 As an aside, and this applies for windows as well as linux/solaris: -Xms
 and -Xmx control the size of the JVM heap.  That's not the total JVM
 size.  There are other spaces, e.g. the stack, symbol tables, and OS
 process overhead, that contribute to the overall process size.

 How much they contribute depends on the OS version, JDK version, and
 other things, and is very difficult to predict precisely.  You can
 measure it at any given point by comparing the output from an OS-level
 top (e.g. top on linux, or the task manager in windows) to the output of
 Runtime.getRuntime().totalMemory().  You will always see a difference.

 So if you're basing your assertion that -Xmx is ignored on the output of
 an OS-level tool, please rethink your assertion in light of the above.
 If you're basing it on the actual Runtime.totalMemory() output, then you
 are correct in saying you likely did not install tomcat correctly.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Christian Cryder [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 12:10 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params
 
 What we are doing is running Tomcat as a service on a production
 server; we
 specify both -Xmx and -Xms values. What we are seeing is that after
 several
 days of use, Tomcat is well over the max, by a magnitude of 100+ MB.
 Our
 experience has been that when we run it manually it seems to stay
 within
 the
 bounds, but when running as a service it seems to go beyond them. So
 perhaps
 we're not installing the service correctly...
 
 Christian
 --
 Christian Cryder [[EMAIL PROTECTED]]
 Internet Architect, ATMReports.com
 Barracuda - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today
 
  -Original Message-
  From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 10:02 AM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.1 ignoring -Xmx params
 
 
  How did you find out it is ignoring -Xmx parameter. Initially when
 you
  start up tomcat, it would allocate only the minimum heap that you set
 in
  -Xms.
 
  Hari
 
 
 
  -Original Message-
  From: Christian Cryder [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 11:49 AM
  To: Tomcat-User
  Subject: Tomcat 4.1 ignoring -Xmx params
  
  Hey folks, has anyone observed scenarios where Tomcat appears to
 ignore
  the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
  have
  manually uninstalled/reinstalled the tomcat service as follows:
  
  to uninstall:
  -
  tomcat.exe -uninstall Apache Tomcat 4.1
  
  to install:
  -
  tomcat -install Apache Tomcat 4.1
  E:\sun\j2sdk1.4.1_01\jre\bin\client\jvm.dll -Xmx256m -Xms128m -
  Djava.class
  .path=D:\Program Files\Apache Group\Tomcat
  4.1\bin\bootstrap.jar -Dcatalina.home=D:\Program Files\Apache
  Group\Tomcat
  4.1 -Djava.endorsed.dirs=D:\Program Files\Apache Group\Tomcat
  4.1\common\endorsed -start
  org.apache.catalina.startup.BootstrapService -params start -stop
  org.apache.catalina.startup.BootstrapService -params stop -out
  

RE: Where does request.getServerName get name from?

2003-01-28 Thread Januski, Ken
Craig,

I guess I shouldn't be surprised that you are right on the money! I hadn't
noticed that I had an old bookmark for the second page that used an IP in
the address. So as you said the host header was the IP because that's what
the browser used and so getServerName returned the IP address. Once I
changed the browser address to a name rather than an IP getServerName()
returned the name.

Thanks much for clarifying something that just kept puzzling me.

Ken


-Original Message-
From: Craig R. McClanahan [mailto:[EMAIL PROTECTED]]
Sent: Monday, January 27, 2003 8:57 PM
To: Tomcat Users List
Subject: Re: Where does request.getServerName get name from?




On Mon, 27 Jan 2003, Januski, Ken wrote:

 Date: Mon, 27 Jan 2003 18:03:15 -0500
 From: Januski, Ken [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Where does request.getServerName get name from?

 I know this is a simple question but just can't find the answer. I have
two
 instances of Tomcat running on one server. Each has a login page as the
 entry point and that page includes a choice of databases. I'd like the
 default database (i.e. one at top of select list) to be determined by
 request.getServername(). The problem I'm having is that I'm getting a name
 for one IP address and and IP address for the other. I can't figure out
why
 the second one won't give me a name. I can live with the IP address but
I'd
 prefer to get a name instead. Can anyone shed any light on where
 request.getServerName() gets its name from?


It depends very much on the precise configuration and Tomcat version
you're running.  For standalone Tomcat 4.1.x running the Coyote HTTP/1.1
connector, it comes from the host header included with the request,
which in turn comes from your browser based on the URL you submitted to.

 I should add that the server name is in DNS correctly and enable lookups
is
 set to true.

 Thanks for any info.


Craig



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

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




Configuration Variables

2003-01-28 Thread Jim Henderson

I can not seem to find this in my books, can someone explain this?

What WAR file web.xml parameter can be used to pass application wide (not
just a single Servlet or JSP) configuration data to JSP/Servlet that also is
adjustable from Tomcat-Administrator control page, and what Java methods
(xxx.getYyyy(parmName)) do I use to access the data given the parameter
name?  I would like to access the parameter from the program at any time,
and not just when the Servlet is loaded (init time).

I wish the O'Reilly book clearly explained the relationships of the Java
accessor methods, the web.xml parameters, and the Tomcat Admin options.  I
seem to have gone round and round with this and now I'm lost.

Thanks!

attachment: winmail.dat--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]


RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Shapira, Yoav
Howdy,

Ok, so this _is_ what I'm basing it on (looking at MS's Task manager).
BUT...it still doesn't seem reasonable that the actual memory used is
150
MB
 than the limit specified to the JVM. In other words, if I tell the
JVM
-Xmx512 and the OS Task Mgr is reporting that Tomcat is using 670 MB,
doesn't this seem like more than just an overhead issue?

I'm perfectly content if that is in fact the answer, I'm just trying to
confirm whether or not we have a problem.

It's very difficult to say.  When the JVM gets that big (500MB), one
expects overhead percentage to go up, not down.  This is true for Sun
JDK 1.3, 1.4 as far as I've observed.  On one of our biggest JVMs, which
is configured with -Xmx1400m, the unix top tool shows ~1300MB as the
size when the Runtime.totalMemory() method indicates ~1000MB total
memory on the heap.  That actually projects fairly consistently
(percentage-wise) with your 670-512 difference.

Yoav Shapira
Millennium ChemInformatics

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




Cannot load JDBC driver class 'null'

2003-01-28 Thread Raible, Matt
I keep getting the following error in my catalina.out file.  This same
application starts up just fine when it has a context path of /cct, but I
get the errors when I use path=.

Any ideas?

WARN [main] JDBCExceptionReporter.logExceptions(35) | SQL Error: 0,
SQLState: null
ERROR [main] JDBCExceptionReporter.logExceptions(42) | Cannot load JDBC
driver class 'null'
WARN [main] SessionFactoryImpl.init(163) | Could not obtain connection
metadata
java.sql.SQLException: Cannot load JDBC driver class 'null'
at
org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav
a:529)
at
org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:3
12)
at
cirrus.hibernate.connection.DatasourceConnectionProvider.getConnection(Datas
ourceConnectionProvider.java:56)
at
cirrus.hibernate.impl.SessionFactoryImpl.init(SessionFactoryImpl.java:152)
at
cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory(DatastoreImpl.java:4
03)
at
cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory(DatastoreImpl.java:3
92)
at
cirrus.hibernate.cfg.Configuration.configure(Configuration.java:163)
at cirrus.hibernate.Hibernate.configure(Hibernate.java:193)
at
com.comcast.cable.dmc.itd.cct.webapp.StartupServlet.init(StartupServlet.java
:58)

Also, my oracle connection pool times out after 24 hours - I haven't found a
solution after a week or two pinging this list and the struts-user list.
Any ideas are greatly appreciated.

Setup:

1.  classes12.jar in $CATALINA_HOME/common/lib
2.  Context file cct.xml in $CATALINA_HOME/webapps - contents are below.
3.  web.xml contains JNDI Datasource information.

The app works, I just get errors on startup, and timeout after 24 hours.

Thanks,

Matt

web.xml:
  resource-ref
descriptionDB Connection/description
res-ref-namejdbc/cctdb/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref

cct.xml
Context path= docBase=cct debug=99 reloadable=false
privileged=true
Logger className=org.apache.catalina.logger.FileLogger 
prefix=cct_log. suffix=.txt timestamp=true/
Realm className=org.apache.catalina.realm.JDBCRealm 
debug=99 driverName=oracle.jdbc.driver.OracleDriver digest=SHA

 
connectionURL=jdbc:oracle:thin:[EMAIL PROTECTED]:1521:cctprd 
userTable=user_sys_access userNameCol=userid 
userCredCol=password userRoleTable=user_role 
roleNameCol=role_name/
Resource name=jdbc/cctdb auth=Container
type=javax.sql.DataSource/
ResourceParams name=jdbc/cctdb
parameter
namefactory/name
valueorg.apache.commons.dbcp.BasicDataSourceFactory/value
/parameter
!-- Maximum number of dB connections in pool. 
Set to 0 for no limit. --
parameter
namemaxActive/name
value0/value
/parameter
!-- Maximum number of idle dB connections to retain in pool.
Set to 0 for no limit. --
parameter
namemaxIdle/name
value0/value
/parameter
!-- Maximum time to wait for a dB connection to become available
 in ms, in this example 10 seconds. An Exception is thrown if
 this timeout is exceeded.  Set to -1 to wait indefinitely. --
parameter
namemaxWait/name
value1/value
/parameter
!-- Database username and password for connections  --
parameter
nameusername/name
valuecct_tool/value
/parameter
parameter
namepassword/name
valuetiger/value
/parameter
!-- Class name for Oracle JDBC driver --
parameter
namedriverClassName/name
valueoracle.jdbc.pool.OracleConnectionPoolDataSource/value
/parameter
!-- The JDBC connection url for connecting to your db. --
parameter
nameurl/name
valuejdbc:oracle:thin:@10.31.41.14:1521:cctprd/value
/parameter
parameter
nameremoveAbandoned/name
valuetrue/value
/parameter
parameter
nameremoveAbandonedTimeout/name
value60/value
/parameter
parameter
namelogAbandoned/name
valuetrue/value
/parameter
parameter
namevalidationQuery/name
valueSELECT 1 FROM DUAL/value
/parameter
/ResourceParams



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




Driver for connecting to a AS/400

2003-01-28 Thread Gustavo Rojas

What is the driver that i have to use to connect to a AS400, for make
consults to a database DB2 that is in the AS400.
from a Tomcat 4.1 configured for default, running in a Mandrake linux 8.2.
I have the jt400.jar in $CATALINA_HOME=/common/lib/jt400.jar, some guys
toll us that this is the drivers that i have to use to make a connection.
and what i have to write in the Class.forname, if i have the correct
driver, I have to make any changes in the as400 or with the username and
password its just fine.


Thanks a lot.


Gustavo



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




RE: Configuration Variables

2003-01-28 Thread Shapira, Yoav
Howdy,
Context parameters are available to anything running within your context
as long as the server is up.  You access them from a servlet (any method
in the servlet, not just init(), using
getServletContext().getInitParameter(paramName);

Context parameters are not typically tunable at runtime from the
container (in this case tomcat) administration module.

For that, you have to use the more heavyweight environment resource JNDI
mechanism.  For tomcat, there's a how-to here:
http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jndi-resources-howto.htm
l

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jim Henderson [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:39 PM
To: [EMAIL PROTECTED]
Subject: Configuration Variables


I can not seem to find this in my books, can someone explain this?

What WAR file web.xml parameter can be used to pass application wide
(not
just a single Servlet or JSP) configuration data to JSP/Servlet that
also
is adjustable from Tomcat-Administrator control page, and what Java
methods
(xxx.getYyyy(parmName)) do I use to access the data given the
parameter
name?  I would like to access the parameter from the program at any
time,
and not just when the Servlet is loaded (init time).

I wish the O'Reilly book clearly explained the relationships of the
Java
accessor methods, the web.xml parameters, and the Tomcat Admin options.
I
seem to have gone round and round with this and now I'm lost.

Thanks!

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




RE: Tomcat 4.1 ignoring -Xmx params

2003-01-28 Thread Januski, Ken
Christian,

I'm not sure about this at all but I believe that all services show up in
registry. Did you check to see if the -Xms and -Xmx values are set there? I
think they should be set as JVM option values. If they do show up then I'd
guess that you've installed the service correctly.

But as I said I could be completely wrong on this. I just think it's worth
taking a look at.

Ken


-Original Message-
From: Christian Cryder [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, January 28, 2003 12:27 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1 ignoring -Xmx params


 As an aside, and this applies for windows as well as linux/solaris: -Xms
 and -Xmx control the size of the JVM heap.  That's not the total JVM
 size.  There are other spaces, e.g. the stack, symbol tables, and OS
 process overhead, that contribute to the overall process size.

 How much they contribute depends on the OS version, JDK version, and
 other things, and is very difficult to predict precisely.  You can
 measure it at any given point by comparing the output from an OS-level
 top (e.g. top on linux, or the task manager in windows) to the output of
 Runtime.getRuntime().totalMemory().  You will always see a difference.

Excellent point, and one I had considered.

 So if you're basing your assertion that -Xmx is ignored on the output of
 an OS-level tool, please rethink your assertion in light of the above.

Ok, so this _is_ what I'm basing it on (looking at MS's Task manager).
BUT...it still doesn't seem reasonable that the actual memory used is 150 MB
 than the limit specified to the JVM. In other words, if I tell the JVM
-Xmx512 and the OS Task Mgr is reporting that Tomcat is using 670 MB,
doesn't this seem like more than just an overhead issue?

I'm perfectly content if that is in fact the answer, I'm just trying to
confirm whether or not we have a problem.

Any suggestions?

tia,
Christian
--
Christian Cryder [[EMAIL PROTECTED]]
Internet Architect, ATMReports.com
Barracuda - http://barracudamvc.org
--
Coffee? I could quit anytime, just not today

 -Original Message-
 From: Shapira, Yoav [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 10:21 AM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params


 Howdy,
 As an aside, and this applies for windows as well as linux/solaris: -Xms
 and -Xmx control the size of the JVM heap.  That's not the total JVM
 size.  There are other spaces, e.g. the stack, symbol tables, and OS
 process overhead, that contribute to the overall process size.

 How much they contribute depends on the OS version, JDK version, and
 other things, and is very difficult to predict precisely.  You can
 measure it at any given point by comparing the output from an OS-level
 top (e.g. top on linux, or the task manager in windows) to the output of
 Runtime.getRuntime().totalMemory().  You will always see a difference.

 So if you're basing your assertion that -Xmx is ignored on the output of
 an OS-level tool, please rethink your assertion in light of the above.
 If you're basing it on the actual Runtime.totalMemory() output, then you
 are correct in saying you likely did not install tomcat correctly.

 Yoav Shapira
 Millennium ChemInformatics


 -Original Message-
 From: Christian Cryder [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 12:10 PM
 To: Tomcat Users List
 Subject: RE: Tomcat 4.1 ignoring -Xmx params
 
 What we are doing is running Tomcat as a service on a production
 server; we
 specify both -Xmx and -Xms values. What we are seeing is that after
 several
 days of use, Tomcat is well over the max, by a magnitude of 100+ MB.
 Our
 experience has been that when we run it manually it seems to stay
 within
 the
 bounds, but when running as a service it seems to go beyond them. So
 perhaps
 we're not installing the service correctly...
 
 Christian
 --
 Christian Cryder [[EMAIL PROTECTED]]
 Internet Architect, ATMReports.com
 Barracuda - http://barracudamvc.org
 --
 Coffee? I could quit anytime, just not today
 
  -Original Message-
  From: Hari Venkatesan [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 10:02 AM
  To: Tomcat Users List
  Subject: RE: Tomcat 4.1 ignoring -Xmx params
 
 
  How did you find out it is ignoring -Xmx parameter. Initially when
 you
  start up tomcat, it would allocate only the minimum heap that you set
 in
  -Xms.
 
  Hari
 
 
 
  -Original Message-
  From: Christian Cryder [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 11:49 AM
  To: Tomcat-User
  Subject: Tomcat 4.1 ignoring -Xmx params
  
  Hey folks, has anyone observed scenarios where Tomcat appears to
 ignore
  the -Xmx param? We are running 4.1 as a service on Win 2000 Pro, and
  have
  manually uninstalled/reinstalled the tomcat service as follows:
  
  to 

TOMCAT ALONE

2003-01-28 Thread x x
Can I use the tomcat just like a web sever without the
apache. I have runnig a tomcat 4.1.18 in a Mandrake
linux. Or  I have to put the tomcat to work together
with apache. 

thanks. 

Fabian 

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




RE: TOMCAT ALONE

2003-01-28 Thread Turner, John

Yes, you can use Tomcat alone.

John


 -Original Message-
 From: x x [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, January 28, 2003 12:51 PM
 To: Tomcat Users List
 Subject: TOMCAT ALONE
 
 
 Can I use the tomcat just like a web sever without the
 apache. I have runnig a tomcat 4.1.18 in a Mandrake
 linux. Or  I have to put the tomcat to work together
 with apache. 
 
 thanks. 
 
 Fabian 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

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




Tomcat 3.3.1

2003-01-28 Thread Kevin Luu
I am currently running Tomcat 3.3.1 on Windows 2000. I am running it from a
batch file. It is unable to run as a Service in Windows 2000. It continues
to stop frequently for no reason. I have to run the batch file to restart
Tomcat. Is there a bug or fix for this issue? Thank you for your help.

Kevin Luu
[EMAIL PROTECTED]
Cell: (408) 757-5881


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




RE: Driver for connecting to a AS/400

2003-01-28 Thread Hari Venkatesan
You have to JT400.jar file to make DB connections to the 400. The Driver
Class name you can use is com.ibm.as400.access.AS400JDBCDriver. Remember
that this driver is type 4 driver. 

You need not make any changes to the as400. You can connect to the
database with your username and password.

Hari

-Original Message-
From: Gustavo Rojas [mailto:[EMAIL PROTECTED]] 
Sent: Tuesday, January 28, 2003 1:44 PM
To: Tomcat Users List
Subject: Driver for connecting to a AS/400


What is the driver that i have to use to connect to a AS400, for make
consults to a database DB2 that is in the AS400.
from a Tomcat 4.1 configured for default, running in a Mandrake linux
8.2.
I have the jt400.jar in $CATALINA_HOME=/common/lib/jt400.jar, some guys
toll us that this is the drivers that i have to use to make a
connection.
and what i have to write in the Class.forname, if i have the correct
driver, I have to make any changes in the as400 or with the username and
password its just fine.


Thanks a lot.


Gustavo



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


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




Re: RE: mod_jk config problems

2003-01-28 Thread vivek karkun
on the same note i have some issues with mod_jk, i did
post a message on my problem but didnt show up, hope
someone can help me out, thanks in advance. I am
having a problem with stronghold(apache 1.3) and
tomcat 4.1.18 using the mod_jk module on solaris 8.
Here are the modification i did to folowing
configuration files. Any help would be appreciated.

httpd.conf:

LoadModulejk_module 
modules/libexec/mod_jk-1.3-eapi.so
AddModule mod_jk.c

IfModule mod_jk.c
JkWorkersFile
/opt/jakarta-tomcat-4.1.18/conf/workers.properties
JkLogFile /main/webRoot/stronghold/logs/mod_jk.log
JkLogLevelinfo
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkMount /*.jsp ajp13
JkMount /*/servlet/ ajp13
/IfModule


workers.properties:

workers.tomcat_home=/opt/jakarta-tomcat-4.1.18
workers.java_home=/opt/j2sdk1.4.1_01
ps=/
worker.list=ajp13

worker.ajp13.port=8009
worker.ajp13.host=www.mytest.com
worker.ajp13.type=ajp13

Here are the following log files

mod_jk.log:

[Mon Jan 27 16:57:51 2003]  [jk_ajp_common.c (874)]:
Error connecting to the Tomcat process.
[Mon Jan 27 16:57:51 2003]  [jk_ajp_common.c (1190)]:
sending request to tomcat failed in send loop. err=2
[Mon Jan 27 16:57:51 2003]  [jk_ajp_common.c (1198)]:
Error connecting to tomcat. Tomcat is probably not
started
or is listenning on the wrong port. Failed errno = 145

server.xml:

i enabled the the ajp1.3 protocol for mod_jk module,
and i changed all localhost settings to www.mytest.com


Also when i see the ports, 8009 is running, i dont
know why apache wouldnt talk to tomcat. The amazing
part is everything works if i access the site thorugh
tomcat alone(http://www.mytest.com:8080/index.jsp),
but nothing shows up using
(http://www.mytest.com/index.jsp)

Am i missing anything here. Thanks in advance for any
help

vic


--- Chris Faulkner [EMAIL PROTECTED]
wrote:
 
 Check the logs...it is looking for locahost, not
 localhost.  Note the
 missing l.
 
 
 Ouch. I had just spotted it after sending the email
 - I altered it to use my hostname instead and
 realised that worked.
 
 In my defence, the mistake is on the online
 documentation, although I should have read it
 properly ! I copied/pasted from
 

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/jk2/jk/workershowto.html#A
 sample worker.properties
 
 I suppose that should be fixed.
 
 Chris
 
 
 Check the logs...it is looking for locahost, not
 localhost.  Note the
 missing l.
 
 Here's the minimum required workers.properties
 file:
 
 # BEGIN workers.properties
 # Definition for Ajp13 worker
 worker.list=ajp13
 worker.ajp13.port=8009
 worker.ajp13.host=localhost
 worker.ajp13.type=ajp13
 # END workers.properties
 
 John
 
  -Original Message-
  From: Chris Faulkner
 [mailto:[EMAIL PROTECTED]]
  Sent: Tuesday, January 28, 2003 11:21 AM
  To: Tomcat Users List
  Subject: mod_jk config problems
  
  
  Hello
  
  I am trying to configure mod_jk to link Apache to
 Tomcat 
  which I have done before with TC 3 and 4.0. I am
 trying to do 
  it with 4.1.18/Apache 1.3. There is no sample 
  workers.properties file with 4.1.18 - is this 
  deliberate ? Anyway, I made my own but I can't
 get my 
  requests through !
  
  The mod_jk log is saying this:
  
  [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c
 (1245)]: ERROR: 
  can't resolve tomcat address locahost
  [Tue Jan 28 16:15:31 2003]  [jk_ajp_common.c
 (1247)]: ERROR: 
  invalid host and port locahost 8009
  [Tue Jan 28 16:15:31 2003]  [jk_worker.c (174)]: 
  wc_create_worker validate failed for worker1
  [Tue Jan 28 16:15:31 2003]  [jk_worker.c (244)]: 
  build_worker_map failed to create workerworker1
  
  So something is happening  with the workers -
 looks like a 
  failure to resolve to localhost on port 8009.
 Can't think why 
  that wouldn't work. Any ideas out there ?
  
  We are on Apache 1.3 so I am not keen on using
 jk2 - this 
  seems to demand recompilation of Apache 1.3. Is
 that correct ?
  
  Apache also complained about JkLogStampFormat
 in the 
  mod_jk.conf file. This directive is given on one
 of the 
  sample pages. Anyone know why ?
  
  I downloaded and installed mod_jk-1.3 and
 jk_jnicb.so to 
  my shared library directory.
  
  from 

http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk/release/v1.2.2
 /bin/linux/i386/
 
 
 Thanks
 
 Chris
 
 
 
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 
 
 
 
 --
 To unsubscribe, e-mail:  
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

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




  1   2   3   >