SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Roland Carlsson
Hi Mumanyi!

This will require some knowleage about you operatingsystem since not all
operation is allowed being a non-root user. But it basically comes down to
this:

Grant the user you would like to run tomcat read and write rights on the
whole tomcat install-dir. This because tomcat write down a few things to
disk.

Make sure that you operating system allow the user to open up the port you
which tomcat to run on. Usually ports under 1024 are dissallowed without
special privilegies.

If you still are having problem you have to read the logs to see why tomcat
fails to start correctly.

Regards
Roland Carlsson




Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

 How can one achieve to install and run tomcat as a user other than root.
   I have tried to extract tomcat from the *.gz as a user but once I try
 to access it from the browser I get the Connection Failed error when
 in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Deploying an application with its own xml file

2005-01-14 Thread Paul Taylor
In what way, do you mean path seperator or something else ?
Within my context.xml im using forward slash (UNIX notation) for both 
and its the Windows one that is working
Phillip Qin wrote:

Windows and linux use different url.
-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 13, 2005 4:22 AM
To: Tomcat Users List
Subject: Re: Deploying an application with its own xml file

Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in 
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:
 

Thanks now working
I had previously found the bit about META-INF but called the file
myapp.xml not context.xml
Phillip Qin wrote:
   

Sotre your context.xml into META-INF. Pack your webapp as war. Then 
let catalina-ant task or Tomcat Manager to deploy your war.

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12,
2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file
I have an application myapp.war and a corresponding xml file 
myapp.xml. Previously I was copying myapp.xml into 
tomcat/conf/catalina/localhost and manually unpacking my war. Now I 
realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over 
the myapp.xml and restart the server. Where can I put the myapp.xml 
file so it automatically gets deployed with the WAR file in a single 
step.

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


 

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


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
!DSPAM:41e63db745621951019963!
 


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


Re: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Mumanyi Bravismore
Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat] 
dir, No problem with the user starting tomcat. ps -e|grep java shows the 
tomcat process is running but when I try to access the pages from the 
browser, connection is failing.

Any tips on how to grant priviledges to port 80 or 8080 on linux to a user.
Thanks
Roland Carlsson wrote:
Hi Mumanyi!
This will require some knowleage about you operatingsystem since not all
operation is allowed being a non-root user. But it basically comes down to
this:
Grant the user you would like to run tomcat read and write rights on the
whole tomcat install-dir. This because tomcat write down a few things to
disk.
Make sure that you operating system allow the user to open up the port you
which tomcat to run on. Usually ports under 1024 are dissallowed without
special privilegies.
If you still are having problem you have to read the logs to see why tomcat
fails to start correctly.
Regards
Roland Carlsson

Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

How can one achieve to install and run tomcat as a user other than root.
 I have tried to extract tomcat from the *.gz as a user but once I try
to access it from the browser I get the Connection Failed error when
in actually fact tomcat is running.
When I su -l to root and restart tomcat, I am able to see the page.
Thanks in advance.
Regards
/Bravo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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


Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-14 Thread Siarhei Dudzin
Do you know how to set the same when running Tomcat in console mode
(from command prompt)?


On Thu, 13 Jan 2005 10:33:15 -0800 (PST), TomK
[EMAIL PROTECTED] wrote:
 Success!  I was able to get the antiResourceLocking attribute to finally take 
 effect with Tomcat 5.5.4.
 
 The problem is the default Windows install does not set the Working Path 
 (viewable on the Startup/Shutdown tabs of the service manager that sits in 
 the SysTray).   Once I set the working path to the tomcat base directory, and 
 restarted Tomcat, and deployed the WAR, the application files were copied to 
 the temp directory and run from there, just as promised.  Undeploy works 
 fine. Interestingly, the directories created in the temp directory aren't 
 deleted when Tomcat is shutdown, for the same reason: the jar's are locked.
 
 Dominik --  Regarding your statement that the latest CVS version does not 
 suffer from the nasty jar locking.   I'll try it out later, but are you 
 suggesting 5.5.7  will not have JAR locking issues at all, and thus the 
 antiResourceLocking and antiJARLocking attributes will be unnecessary??
 
 thanks
 -tk
 
 TomK [EMAIL PROTECTED] wrote:
 Thanks very much, I'll check the latest version out and post my results, in 
 case anyone else has this issue.
 
 -tk
 
 Dominik Drzewiecki wrote:
 Siarhei Dudzin wrote:
  Did you find a solution?
 
 FYI it has been fixed on 17/12/2004 and the latest CVS version does not
 suffer from the nasty jar locking.
 The root of the problem was the JasperLoader locking (using cached
 getResourceAsStream()) the jars containing jsp tag libraries.
 It works for me. Please do give it a spin and test for yourselves.
 BTW, there seems to be 5.5.7 distro coming soon.
 
 cheers,
 /dd
 
 
  On Tue, 4 Jan 2005 15:27:56 -0800 (PST), TomK
  wrote:
  I've been following the recent threads regarding JAR locking with
  Tomcat 5.x on Windows platforms. A few people mentioned they had been
  able to get either the antiJARLocking or antiResourceLocking attributes
  to work, so I've spent quite a bit of time trying out different
  scenarios and configurations, under the impression that I must be
  missing something simple.however, I've not yet found a situation
  where either attribute has any effect on deploy/undeploy.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: [OT] RE: 24X7 deployment tips

2005-01-14 Thread Faisal Abdullah
I guess there is. By fixing the code.

On Tue, 11 Jan 2005 18:05:42 +, Mark Benussi
[EMAIL PROTECTED] wrote:
 The reason this is off topic is that I was wondering if anyone has ever
 found a way of recovering leaked memory, without restarting the JVM?


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



Re: JAR locking / Tomcat 5.5.4 / Windows

2005-01-14 Thread Dominik Drzewiecki
TomK [EMAIL PROTECTED] wrote:

 Dominik --  Regarding your statement that the latest CVS version does 
 not suffer from the nasty jar locking.   I'll try it out later, but are 
 you suggesting 5.5.7  will not have JAR locking issues at all, and thus 
 the antiResourceLocking and antiJARLocking attributes will be 
 unnecessary??

Well, in my particular case (I have a test app using jstl fmt taglib) I no 
longer needed antiJARLocking. I have even explicitely set it to false in 
context.xml. It undeploys now whereas before having the fix applied 
undeploy failed.

cheers
/dd


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



SV: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Roland Carlsson
Are you accessing tomcat from localhost or any other host?


Den 05-01-14 09.19, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

 Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat]
 dir, No problem with the user starting tomcat. ps -e|grep java shows the
 tomcat process is running but when I try to access the pages from the
 browser, connection is failing.
 
 Any tips on how to grant priviledges to port 80 or 8080 on linux to a user.
 
 Thanks
 
 Roland Carlsson wrote:
 Hi Mumanyi!
 
 This will require some knowleage about you operatingsystem since not all
 operation is allowed being a non-root user. But it basically comes down to
 this:
 
 Grant the user you would like to run tomcat read and write rights on the
 whole tomcat install-dir. This because tomcat write down a few things to
 disk.
 
 Make sure that you operating system allow the user to open up the port you
 which tomcat to run on. Usually ports under 1024 are dissallowed without
 special privilegies.
 
 If you still are having problem you have to read the logs to see why tomcat
 fails to start correctly.
 
 Regards
 Roland Carlsson
 
 
 
 
 Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:
 
 
 How can one achieve to install and run tomcat as a user other than root.
  I have tried to extract tomcat from the *.gz as a user but once I try
 to access it from the browser I get the Connection Failed error when
 in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



xalan problem with security manager

2005-01-14 Thread Michal Kwiatek
Hi all,

I can't make xalan work when I run tomcat with security manager. 
All I get is java.lang.ExceptionInInitializerError (see stack trace
below).
It works fine without security manager.

Has any of you used xalan on tomcat with secuirity manager? What
privileges should I grant to the code?

I tried:

grant {
  permission java.util.PropertyPermission *, read;
  permission java.net.SocketPermission *, connect;
  permission java.lang.RuntimePermission getClassLoader;
};

grant {
  permission java.io.FilePermission ${catalina.home}/temp/*, read,
write, delete;
};

But it doesn't help. Any ideas?

Thank you very much in advance,
Michal.

My setup is tomcat 5.0.28 on jdk 1.4.2_06, it behaves the same on win xp
or linux.

Here's the code:

File xmlFileObj = new File(xmlFile);
File xslFileObj = new File(xslFile);
this.out = out;
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource(xslFileObj));
transformer.setParameter(serviceName, serviceName);
transformer.transform(new StreamSource(xmlFileObj), new
StreamResult(out));
out.flush();

And the stack trace.

javax.servlet.ServletException

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCont
extImpl.java:825)

org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.ja
va:64)

org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java:74
5)
java.security.AccessController.doPrivileged(Native Method)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:743)
org.apache.jsp.tree_jsp._jspService(tree_jsp.java:98)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
a:157)

root cause

java.lang.ExceptionInInitializerError
java.lang.Class.forName0(Native Method)
java.lang.Class.forName(Class.java:141)

org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFac
tory.java:131)

org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(
TransformerImpl.java:1048)

org.apache.xalan.transformer.TransformerImpl.createResultContentHandler(
TransformerImpl.java:975)

org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:1124)

org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl.j
ava:1107)
circeos.xml.XslHtmlConverter.Display(XslHtmlConverter.java:29)
org.apache.jsp.tree_jsp._jspService(tree_jsp.java:84)

org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:324)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav
a:39)

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.java:25)
java.lang.reflect.Method.invoke(Method.java:324)

org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:500)

org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:268)

org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.jav
a:157)

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

Re: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Ben Souther
Any tips on how to grant priviledges to port 80 or 8080 on 
linux to a user.

Two ways:
1.) Install Apache (HTTPD) and a connector and have it pass the requests
to Tomcat.

2.) Use http://jakarta.apache.org/commons/daemon which can bind to 
port 80 as root and then downgrade itself to a regular user for
everything else (as Apache HTTPD does).  I've heard that the latest CVS
release of commons/daemon has some important bug fixes that affect
stability.

I just use port forwarding at the router level and leave Tomcat on port
8080.



On Fri, 2005-01-14 at 03:19, Mumanyi Bravismore wrote:
 Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat] 
 dir, No problem with the user starting tomcat. ps -e|grep java shows the 
 tomcat process is running but when I try to access the pages from the 
 browser, connection is failing.
 
 Any tips on how to grant priviledges to port 80 or 8080 on linux to a user.
 
 Thanks
 
 Roland Carlsson wrote:
  Hi Mumanyi!
  
  This will require some knowleage about you operatingsystem since not all
  operation is allowed being a non-root user. But it basically comes down to
  this:
  
  Grant the user you would like to run tomcat read and write rights on the
  whole tomcat install-dir. This because tomcat write down a few things to
  disk.
  
  Make sure that you operating system allow the user to open up the port you
  which tomcat to run on. Usually ports under 1024 are dissallowed without
  special privilegies.
  
  If you still are having problem you have to read the logs to see why tomcat
  fails to start correctly.
  
  Regards
  Roland Carlsson
  
  
  
  
  Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:
  
  
 How can one achieve to install and run tomcat as a user other than root.
   I have tried to extract tomcat from the *.gz as a user but once I try
 to access it from the browser I get the Connection Failed error when
 in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



RE : is this possible?

2005-01-14 Thread VAN DER MARLIERE FREDERIC
Hi jungsoo,

Why don't you pass your sessionId in an applet parameter?

Something like:

applet height=200 width=200 class=applets.myApplet.class
  param name=mySessionId value=%=request.getSession().getId()% /
/applet

Thenafter, use the getParameter(paramterName) of the applet.

Hope this helped.
Fred.


-Message d'origine-
De : jungsoo kim [mailto:[EMAIL PROTECTED] 
Envoyé : vendredi 14 janvier 2005 08:13
À : tomcat-user@jakarta.apache.org
Objet : is this possible?


Hi all,

I have an applet that communicate with server. And, of course, the server
maintains a session.

If I insert the applet in the JSP page, the applet fails to communicate with
server because of session ID problem.

My problem is I can't chage applet's code. I can't get session id from a jsp
page.

Thus, I 'd like to know that whether there is a way to handle the session
problem at the Tomcat.

Thanks in advance.



Ce message et toutes les pieces jointes (ci-apres le message) sont 
confidentiels et etablis a l'intention exclusive de ses destinataires.
Toute utilisation ou diffusion non autorisee est interdite.Tout message 
electronique est susceptible d'alteration.
Le CREDIT DU NORD et ses filiales declinent toute responsabilite au titre de ce 
message s'il a ete altere, deforme ou falsifie.
This message and any attachments ( the message) are confidential and intended 
solely for the addressees.
Any unauthorised use or dissemination is prohibited.E-mails are susceptible to 
alteration.
Neither CREDIT DU NORD nor any of its subsidiaries or affiliates shall be 
liable for the message if altered, changed or falsified.



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



Session tracking with Apache 2.0.x + Tomcat 4.0.x/4.1.x + mod_jk 1.2.x

2005-01-14 Thread Sven Bovin
We have a webapp running on Tomcat 4.0.x/4.1.x behind
an Apache web server. Apache and Tomcat talk to each
other using mod_jk 1.2.x (we have several installations
with different versions of Apache, Tomcat and mod_jk).
Users connect to the webapp via Apache over SSL and we
use a custom authentication mechanism that is not
related to Tomcat or Apache authentication (using a
transaction on a separate server).

I have been asked to investigate the possibility of
using session tracking based on the SSL session (as
per the 2.3 Java servlet specification). Would that
be possible in our setup ?  My main concern would be
that the SSL session would not be known to Tomcat
because of the Apache front end (which we can't do
without without completely refactoring our app).

TIA

Sven

--
Sven Bovin

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



Re: Dead connections detection

2005-01-14 Thread Thomas Recloux
On Thu, 13 Jan 2005 14:41:57 +0100, Thomas Recloux
[EMAIL PROTECTED] wrote:

 How could I configure Tomcat for him to detect dead connections ?

I had a look at DBCP and saw the properties testOnBorrow and
validationQuery.

I just had to set this properties in my server.xml file and that seems to work.
It tests de db connection when a connection is taken from the pool. It
can cause a db overhead but in my case, a little app, I do not matter.

-- 
Thomas Recloux

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



Re: Tomcat and CORBA

2005-01-14 Thread Tim Funk
Yes, you can create your own threads. Be aware that Tomcat may not shut down 
properly if your threads are non-daemon. (since the JVM does not exit while a 
non-daemon is running)

-Tim
Andreas Vombach wrote:
I would like to have a servlet which offers a CORBA interface. An applet 
for example could then read the IOR string of the orb and connect to the 
interface.
Unfortunately instantiating servant objects seems to block the server so 
I had to spawn of threads from a servlet. (??)
As far as I read a servlet should not create threads, is it true / 
impossible? Has anybody some experience using an ORB on Tomcat?


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


Re: Realms and context

2005-01-14 Thread Tim Funk
I don't think so. But JNDIRealm can be extended and I think your change 
should be easy to make.

-Tim
Roland Carlsson wrote:
First I'm sorry for flooding in this subject but since I have not got any
answer and I must inform my managers today about if I can do the projects
they want to me to do.
So, refering to my earlier mail with the subject Multiple realms in one
context
Is there a way to configure tomcats JNDI-realm to support multiple
userBases? 

Thank you in advance and once again I apologize for being rude and repost.
 
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: SV: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Mumanyi Bravismore
I am accessing it from another machine.
Roland Carlsson wrote:
Are you accessing tomcat from localhost or any other host?
Den 05-01-14 09.19, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat]
dir, No problem with the user starting tomcat. ps -e|grep java shows the
tomcat process is running but when I try to access the pages from the
browser, connection is failing.
Any tips on how to grant priviledges to port 80 or 8080 on linux to a user.
Thanks
Roland Carlsson wrote:
Hi Mumanyi!
This will require some knowleage about you operatingsystem since not all
operation is allowed being a non-root user. But it basically comes down to
this:
Grant the user you would like to run tomcat read and write rights on the
whole tomcat install-dir. This because tomcat write down a few things to
disk.
Make sure that you operating system allow the user to open up the port you
which tomcat to run on. Usually ports under 1024 are dissallowed without
special privilegies.
If you still are having problem you have to read the logs to see why tomcat
fails to start correctly.
Regards
Roland Carlsson

Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

How can one achieve to install and run tomcat as a user other than root.
I have tried to extract tomcat from the *.gz as a user but once I try
to access it from the browser I get the Connection Failed error when
in actually fact tomcat is running.
When I su -l to root and restart tomcat, I am able to see the page.
Thanks in advance.
Regards
/Bravo
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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

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

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


Re: WELCOME to tomcat-user@jakarta.apache.org

2005-01-14 Thread Parsons Technical Services
First, welcome to the list.
Second, Whenever you are posting to the list with a new issue, please start 
with a new email. Do not do a reply-to, even if you change the subject it 
messes up the listings for the archives and some email clients.

Third, please post in your email, the version of Tomcat, OS, and Java so we 
may help you better.

Because of the issue you described has been a common one lately, I will go 
on the assumption that you are running 5.5 With this you will have to define 
your default context in the server.xml file. also note that you will need 
path set to  empty string for the default.

Here are a few links to help you.
Context info:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Posting to the list:
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/context.html
Please don't take offence to these comments, the goal here is to help you 
and others get the most from the list.

Doug
- Original Message - 
From: Dinesh Sharma [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, January 13, 2005 11:46 PM
Subject: Re: WELCOME to tomcat-user@jakarta.apache.org


Hi,
 I want to define my application with DEFAULT CONTEXT. When i
changes the context root from to /, then context fragment file is
changed to [.xml] and tomcat is not able to load properly. Anybody
have any idea on this???
In General How do i define context / for my application?
Thanks,
D

On 14 Jan 2005 04:42:43 -, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hi! This is the ezmlm program. I'm managing the
tomcat-user@jakarta.apache.org mailing list.
I'm working for my owner, who can be reached
at [EMAIL PROTECTED]
Acknowledgment: I have added the address
  [EMAIL PROTECTED]
to the tomcat-user mailing list.
Welcome to [EMAIL PROTECTED]
Please save this message so that you know the address you are
subscribed under, in case you later want to unsubscribe or change your
subscription address.
--- Administrative commands for the tomcat-user list ---
I can handle administrative requests automatically. Please
do not send them to the list address! Instead, send
your message to the correct command address:
To subscribe to the list, send a message to:
  [EMAIL PROTECTED]
To remove your address from the list, send a message to:
  [EMAIL PROTECTED]
Send mail to the following for info and FAQ for this list:
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
Similar addresses exist for the digest list:
  [EMAIL PROTECTED]
  [EMAIL PROTECTED]
To get messages 123 through 145 (a maximum of 100 per request), mail:
  [EMAIL PROTECTED]
To get an index with subject and author for messages 123-456 , mail:
  [EMAIL PROTECTED]
They are always returned as sets of 100, max 2000 per request,
so you'll actually get 100-499.
To receive all messages with the same subject as message 12345,
send an empty message to:
  [EMAIL PROTECTED]
The messages do not really need to be empty, but I will ignore
their content. Only the ADDRESS you send to is important.
You can start a subscription for an alternate address,
for example [EMAIL PROTECTED], just add a hyphen and your
address (with '=' instead of '@') after the command word:
[EMAIL PROTECTED]
To stop subscription for this address, mail:
[EMAIL PROTECTED]
In both cases, I'll send a confirmation message to that address. When
you receive it, simply reply to it to complete your subscription.
If despite following these instructions, you do not get the
desired results, please contact my owner at
[EMAIL PROTECTED] Please be patient, my owner is a
lot slower than I am ;-)
--- Enclosed is a copy of the request I received.
Return-Path: [EMAIL PROTECTED]
Received: (qmail 35952 invoked by uid 99); 14 Jan 2005 04:42:43 -
X-ASF-Spam-Status: No, hits=1.6 required=10.0
   tests=MISSING_SUBJECT,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: apache.org
Received-SPF: pass (hermes.apache.org: domain of [EMAIL PROTECTED] 
designates 64.233.184.204 as permitted sender)
Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.204)
 by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 13 Jan 2005 20:42:41 -0800
Received: by wproxy.gmail.com with SMTP id 68so757935wra
   for 
[EMAIL PROTECTED]; 
Thu, 13 Jan 2005 20:42:39 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
   s=beta; d=gmail.com;

h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding;
b=SwVop0ckJ5rlp5i1gAsx9gdgJe00HSALoZtNjqyj7OjzB8lEmOyia6jDMVw4bk8fa6Fxoas5bZtHKlM2/uWbtbVMRehsHBQ3/bQ9LLOEud2lPsVf7mJntiWLwGPSQfNAA/5Vpouq/m+0UJgM4PPvvnGIbbIqJNSXH23TQK9NmSQ=
Received: by 10.54.45.14 with SMTP id s14mr35686wrs;
   Thu, 13 Jan 2005 20:42:39 -0800 (PST)
Received: by 10.54.47.39 with HTTP; Thu, 13 Jan 2005 20:42:39 -0800 (PST)
Message-ID: [EMAIL PROTECTED]
Date: Thu, 13 Jan 2005 23:42:39 -0500
From: Dinesh Sharma [EMAIL PROTECTED]
Reply-To: Dinesh Sharma [EMAIL PROTECTED]
To:
[EMAIL PROTECTED]
Subject:
Mime-Version: 1.0
Content-Type: text/plain; 

Re: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in JSPs returning XML

2005-01-14 Thread Ben Ricker
Rule number one when working with Internet Exploder: try other  
browsers. I usually try Netscape, Mozilla and Firefox. If they work on  
those browsers, you are dealing with (imagine this): an IE bug.

Thing is a piece of.if I have to deal with one more IE specific bug.
Ben Ricker
On Jan 13, 2005, at 10:49 PM, Rajeev Singh wrote:

Updates - setting Internet Explorer to use HTTP 1.0 makes the problem  
go
away. I still do not understand why this should happen and what can I  
do to
have the 1.1 mass of clients work with this correctly. Any insights  
would be
much appreciated.

FYI - the header seen by the JSP page is:
//inase of 1.1
Here are the header
Header:accept*/*,Header:  
---,Header:user-agentMozill
a/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705),Header:host127.0.0.1:8080,Header:connectionKeep- 
Alive,Header:cooki
eWTGBID=e1ujo01n

//incase of 1.0
Header:accept*/*,Header:accept-languageen-us,Header:user- 
agentMozilla/4.0
(compatible; MSIE 6.0; Windows NT 5.0; .NET CLR
1.0.3705),Header:hostlocalhost: 
8080,Header:,Header:cooki
eWTGBID=e2jl7opw; _tpc=_t%3D1105675240385%26_l%3D0


Rajeev Singh
Intelliplanner Software Systems, Inc.
203-483-4279(O)
203-558-3224(C)
www.intelliplanner.com , www.ipssi.com

This mail contains proprietary and confidential materials. Please  
destroy if
received in error and notify the sender

-Original Message-
From: Rajeev Singh [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 10:04 PM
To: tomcat-user@jakarta.apache.org
Subject: Jdeveloper 3.2.3 - Tomcat 5.5 migration: Inordinate delay in
JSPs returning XML
I am going nuts trying to figure out why:
An application created using Jdeveloper 3.2.3 (on Windows 2000). Some
pages send XML as response. When using Jdev, JSP/Web-to-go server
everything is fine. Now trying to migrate to TomCat 5.5. For pages that
return XML, I am noticing a rather 'hang' like behaviour. As if client
is waiting for something: Moreover when using telnet no such problem
exists - the response comes boom. (Not sure how to look at header - I
do not see any headers in the response in telnet)
I put a time stamp at beginning and end of my processing. Elapsed time
is 20ms. Page size  500 b. All done locally. Browser (Internet
Explorer) takes about 9s to display the XML. Page is buffered (32K,
though doesn't help, autoflush on). I even tried with  
response.SetHeader
(Connection, close) no luck.

Similarly my (C++) client makes a bunch of call to such JSP pages
returning XML. Each time the processing supposed to happen, happens in
20-100ms. But the client seems to be 'waiting': gaps between timestamp
for next request spans more than 10-30s. The client uses Microsoft's
IXMLHttpRequest (MSXML v3). Any ideas what could be happening?
Also any reason for cookies not be written by Tomcat (the Jdev does
write that)
mucho gracias
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

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

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


Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-14 Thread Ramien E. Rosillo G.


Hi guys,I have a JSP applicaction using tomcat 4.1 wich is accesed from internet using an IIS server for the redirection.In my servlet I'm generating a XML file wich will be downloaded by the client, in the servlet I set up this header, like in the others forums some fellows told.response.setHeader("Cache-Control","no-cache");response.setHeader("Pragma","no-cache");response.setDateHeader ("Expires", 0);response.setContentType("application/octet-stream");response.setHeader("Content-Disposition", "attachment;filename=\"" + nombreBorrador + "\"");I'm having a problem downloading a file from a server, the download dialog box says in the filename the name of the servlet instead of the name of the XML file.Any comments will be really appreciated.Best Regards JCh.-Walla! Mail - get your free 1G mail today-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 4.1/java 1.4.1.02/winxp/Download a xml file from a server

2005-01-14 Thread Ben Souther

(Content-Disposition,
 attachment;filename=\ + nombreBorrador+\);

I think the end result is supposed to be:
attachment;filename=filename.ext

without the quotes around the filename.




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



more benchmark results

2005-01-14 Thread Peter Lin
Per Remy's request, I ran some more tests last night with larger
number of threads. the configuration of the test plan is as follows

1K png: 10, 50, 100, 150 threads
10K png: 10, 50, 100, 150 threads

each thread as was to 1000 iterations.
ramp up times: 1, 5, 10, 20 seconds

Server:
Redhat fedora Core1
AMD 2ghz
1Gb RAM
tomcat 5.0.19
Sun jdk1.4.2_03

Client:
gateway 450 laptop
1.4ghz centrino
1Gb RAM
jmeter nightly build
sun jdk1.4.2


I plan to re-run these tests with the latest 5.0.x release this
weekend and per Remy's request I will also test 5.5.4 with jdk5 for
comparison.

peter


1K
---
protocol | samples | average | median | 90% line | min | max | error%
| throughput | Kb/sec
---
HTTP Request1   2.8969  0   10  0   571 0.00%   
1678.1/sec  1730.58
HTTP Request5   6.615   0   20  0   320 0.00%   
1399.3/sec  1443.07
HTTP Request10  70.106  0   100 0   26743.98%   
829.9/sec   868.94
HTTP Request15  117.443 0   321 0   54283.88%   
704.5/sec   737.30

10k

HTTP Request1   8.2566  0   10  0   321 0.00%   
848.4/sec   8531.98
HTTP Request5   37.6230 40  81  0   28940.00%   
721.8/sec   7259.02
HTTP Request10  117.799 10  210 0   70504.12%   
524.9/sec   5092.10
HTTP Request15  297.357 300 490 0   93431.03%   
397.1/sec   3958.41

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



Re: more benchmark results

2005-01-14 Thread Mladen Turk
Peter Lin wrote:
Per Remy's request, I ran some more tests last night with larger
number of threads. the configuration of the test plan is as follows
What would be nice (since you have infrastructure set up)
is to compare the results with Apache2.
Last time i did it there was only 10% difference when
serving static content.
Also can you try the Java5?
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: more benchmark results

2005-01-14 Thread Peter Lin
Yup, I plan to try jdk5 with TC5.5.4 per Remy's request.

once I get that out of the way, I plan to work on the enhancements to
the status servlet. I took a quick look at apr-java, looks cool. No
comments yet, but I will post them to tomcat-dev when I do :)

peter



On Fri, 14 Jan 2005 14:30:38 +0100, Mladen Turk [EMAIL PROTECTED] wrote:
 Peter Lin wrote:
  Per Remy's request, I ran some more tests last night with larger
  number of threads. the configuration of the test plan is as follows
 
 
 What would be nice (since you have infrastructure set up)
 is to compare the results with Apache2.
 Last time i did it there was only 10% difference when
 serving static content.
 
 Also can you try the Java5?
 
 Regards,
 Mladen.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: more benchmark results

2005-01-14 Thread Remy Maucherat
On Fri, 14 Jan 2005 08:11:11 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 Per Remy's request, I ran some more tests last night with larger
 number of threads. the configuration of the test plan is as follows
 
 1K png: 10, 50, 100, 150 threads
 10K png: 10, 50, 100, 150 threads
 
 each thread as was to 1000 iterations.
 ramp up times: 1, 5, 10, 20 seconds
 
 Server:
 Redhat fedora Core1
 AMD 2ghz
 1Gb RAM
 tomcat 5.0.19
 Sun jdk1.4.2_03
 
 Client:
 gateway 450 laptop
 1.4ghz centrino
 1Gb RAM
 jmeter nightly build
 sun jdk1.4.2
 
 I plan to re-run these tests with the latest 5.0.x release this
 weekend and per Remy's request I will also test 5.5.4 with jdk5 for
 comparison.

And no FC 3 ? ;) I think it would run fine on your computer, and it's
a higher quality distribution overall (it doesn't have the stupid NPTL
backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
that distro when they release hoary).

Anyway, I'd be interested if you tried stressing a little the thread
pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
element) to see if it gives a difference in the error rate (and also
if it's not completely broken). You may want to increase maxThreads as
well for your tests (it's 150 by default, which is dangerously close
of the concurrency used by your client)

-- 
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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



Re: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Pete Stevens

My instructions for building a dedicated linux machine that runs Tomcat as the
apache user (based on Whitebox Linux - a rebuild of Redhat).

http://www.mythic-beasts.com/support/topic_vds_java.html


Yours,

Pete Stevens

On Fri, 14 Jan 2005, Roland Carlsson wrote:

 Hi Mumanyi!

 This will require some knowleage about you operatingsystem since not all
 operation is allowed being a non-root user. But it basically comes down to
 this:

 Grant the user you would like to run tomcat read and write rights on the
 whole tomcat install-dir. This because tomcat write down a few things to
 disk.

 Make sure that you operating system allow the user to open up the port you
 which tomcat to run on. Usually ports under 1024 are dissallowed without
 special privilegies.

 If you still are having problem you have to read the logs to see why tomcat
 fails to start correctly.

 Regards
 Roland Carlsson




 Den 05-01-14 08.12, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

  How can one achieve to install and run tomcat as a user other than root.
I have tried to extract tomcat from the *.gz as a user but once I try
  to access it from the browser I get the Connection Failed error when
  in actually fact tomcat is running.
 
  When I su -l to root and restart tomcat, I am able to see the page.
 
  Thanks in advance.
 
  Regards
  /Bravo
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 


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



--
Pete Stevens
[EMAIL PROTECTED]
http://www.ex-parrot.com/~pete/

  It's always darkest before dawn. So if you're going to steal your neighbour's
milk bottles, that's the time to do it.

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



Re: more benchmark results

2005-01-14 Thread Mladen Turk
Peter Lin wrote:
Yup, I plan to try jdk5 with TC5.5.4 per Remy's request.
Cool, but can you compare the results with Apache2.0.52
when serving the same static content files on the same
hardware?
That would be very interesting thought. Even more then
bare statistical data you've presented.
Regards,
Mladen

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


Re: more benchmark results

2005-01-14 Thread Peter Lin
any tomcat user out there have Redhat FC3 installed and want to help
run some tests?  I will post the jmeter test plans this weekend.

it would make remy really happy :)

peter


 And no FC 3 ? ;) I think it would run fine on your computer, and it's
 a higher quality distribution overall (it doesn't have the stupid NPTL
 backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
 that distro when they release hoary).
 
 Anyway, I'd be interested if you tried stressing a little the thread
 pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
 element) to see if it gives a difference in the error rate (and also
 if it's not completely broken). You may want to increase maxThreads as
 well for your tests (it's 150 by default, which is dangerously close
 of the concurrency used by your client)
 
 --
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x


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



Re: more benchmark results

2005-01-14 Thread Peter Lin
yeah, I've d/l 2.0.52 and plan on running a test. Graham O'Regan is
also going to run the tests again Squid for comparison too.

If I have time, I also plan to compare httpd 1.3.  All I need now is
some speed so I can go without sleep :)

peter


On Fri, 14 Jan 2005 14:40:16 +0100, Mladen Turk [EMAIL PROTECTED] wrote:
 Peter Lin wrote:
  Yup, I plan to try jdk5 with TC5.5.4 per Remy's request.
 
 
 Cool, but can you compare the results with Apache2.0.52
 when serving the same static content files on the same
 hardware?
 
 That would be very interesting thought. Even more then
 bare statistical data you've presented.
 
 Regards,
 Mladen
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



RE: servlet help

2005-01-14 Thread Cox, Charlie
You need to tell Apache about your user directories.

Try this location to send anything starting with ~ to tomcat.

Location /\~.*
JkUriSet worker ajp13:localhost:8009
/Location

Charlie

 -Original Message-
 From: Casas, Claudia [mailto:[EMAIL PROTECTED]
 Sent: Thursday, January 13, 2005 11:42 AM
 To: Tomcat Users List
 Subject: RE: servlet help
 
 I am using jk2, apache2, and tomcat5.5
 
 -Original Message-
 From: Edmon Begoli [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 12, 2005 6:42 PM
 To: Tomcat Users List
 Subject: Re: servlet help
 
 Claudia,
 
 Are you using mod_jk with Apache and Tomcat?
 You should be able to configure in Apache's httpd.conf
 to forward particular url patterns to your Tomcat(s') worker(s).
 
 Something like:
 
 JkMount /yourapp/* yourworker
 
 More details are in mod_jk documentation. I do not think that there is
a
 way
 to forward only servlet calls, as you can not be sure from the URL.
 Usually,
 your URL/URI will have some servlet app. specific context which will
 help
 you.
 
 Regards,
 Edmon
 Software Architecture to the Rescue
 
 - Original Message -
 From: Casas, Claudia [EMAIL PROTECTED]
 To: Tomcat Users List tomcat-user@jakarta.apache.org
 Sent: Wednesday, January 12, 2005 3:16 PM
 Subject: RE: servlet help
 
 
 Oki doki,
 I got my servlets to work from tomcat using port 8080
 (http://myserver:8080/~myacct/servlet/myservlet), but I still do not
 know how to make apache recognize my servlets and send them to tomcat.
I
 want to access (http://myserver/~myacct/servlet/myservlet)
 
 I tried to add these lines to httpd.conf
 Location /servlet/*
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 and also added these lines to workers2.properties
 
 [uri:spark.iss.utep.edu/servlet/*]
 group=ajp13:localhost:8009
 
 but still no luck! :( please help.
 
 For reference I used the following taken from the web site:
 http://www.jolash.com/tomcat/
 
 Configure the tomcat web.xml file in your tomcat's conf directory.
 You only need to do this if you are going to write servlets. After
doing
 this, you can put all your servlets into the subdirectory
 WEB-INF/classes of your webapp directory. And you can access those
 servlets with a URL like:
  Uncomment the servlet element tags with the servlet-name of invoker
 (just search for invoker).
 servlet
 servlet-nameinvoker/servlet-name
 servlet-class
   org.apache.catalina.servlets.InvokerServlet
 /servlet-class
 init-param
 param-namedebug/param-name
 param-value0/param-value
 /init-param
 load-on-startup2/load-on-startup
 /servlet
 
 Uncomment the servlet-mapping element tags with the servlet-name of
 invoker.
 !-- The mapping for the invoker servlet --
 servlet-mapping
 servlet-nameinvoker/servlet-name
 url-pattern/servlet/*/url-pattern
 /servlet-mapping
 
 
 -Original Message-
 From: Casas, Claudia [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, January 12, 2005 11:56 AM
 To: tomcat-user@jakarta.apache.org
 Subject: servlet help
 
 
 I am running tomcat5.5.4, apache2.0.52 and jk2.
 1)I an run my jsp's and servlets from root. I have configured tomcat
to
 run my jsp's from the homedirs, but I do not know how to configure
 tomcat to run servlets from the homedirs.
 
 I can run my jsp's like this: http://myserver/~myhomedir/myfile.jsp or
 http://myserver:8080/~myhomedir/myfile.jsp
 Either way it works fine.
 What do I need to add so that my servlets run from my homedirs as
well??
 
 These are my configuration files:
 
 /usr/local/apache/workers2.properties
 
 info=Ajp13 forwarding over socket
 tomcatId=localhost:8009
 
 
 #define the worker
 [ajp13:localhost:8009]
 channel=channel.socket:localhost:8009
 `
 # Map the Tomcat examples webapp to the Web server uri space
 #[uri:/jkstatus/*]
 #group=status:status
 
 
 
 
 # Uri mapping
 [uri:/jsp-examples/*]
 
 
 [uri:spark.iss.utep.edu/*.jsp]
 group=ajp13:localhost:8009
 
 
 
 I added the following in my httpd.conf also:
 
 Location /*.jsp
 JkUriSet worker ajp13:localhost:8009
 /Location
 
 
 (Before I would just add the lines below in my httpd.conf, and jsp's
and
 servlets would work!
 JkMount /*.jsp ajp13
 JkMount /*/servlet/ ajp13)
 
 
 Also, I have the following in my server.xml file to run my jsp's from
my
 homedirs:
  Listener className=org.apache.catalina.startup.UserConfig
 directoryName=wwwdocs
 userClass=org.apache.catalina.startup.PasswdUserDatabase/
 
 What am I missing???
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 -
 To unsubscribe, 

Re: more benchmark results

2005-01-14 Thread Mladen Turk
Peter Lin wrote:
If I have time, I also plan to compare httpd 1.3.  All I need now is
some speed so I can go without sleep :)
In my country we are using the thing called 'Rakija' for that.
It has 45% of alcohol, but has some strange side-effects.
Someone are even stating that it can make you drunk !?
So, I suggest Rakija
(or as my German friends are wrongly calling it Schnapps)
over speed :).
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: more benchmark results

2005-01-14 Thread Peter Lin
what a concept Schnapps over speed. Wonder what would happen if
someone made a redbull + Schnapps + speed cocktail 8-)

that wouldn't kill you, really.

I'll stop the jokes there.

peter

On Fri, 14 Jan 2005 14:59:57 +0100, Mladen Turk [EMAIL PROTECTED] wrote:
 Peter Lin wrote:
 
  If I have time, I also plan to compare httpd 1.3.  All I need now is
  some speed so I can go without sleep :)
 
 
 In my country we are using the thing called 'Rakija' for that.
 It has 45% of alcohol, but has some strange side-effects.
 Someone are even stating that it can make you drunk !?
 
 So, I suggest Rakija
 (or as my German friends are wrongly calling it Schnapps)
 over speed :).
 
 Mladen.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: more benchmark results

2005-01-14 Thread Larry Meadors
On Fri, 14 Jan 2005 09:07:37 -0500, Peter Lin [EMAIL PROTECTED] wrote:
 what a concept Schnapps over speed. Wonder what would happen if
 someone made a redbull + Schnapps + speed cocktail 8-)

Use it to chase the diet pills and nodoz, and you may never sleep again. :-)

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



Re: more benchmark results

2005-01-14 Thread Sessoms, Mack
i've got 5.5.4 w/jvm 1.5.0-b64 on fc3 (2.6.9-1.667,i386).  
unfortunately, the hardware is a desktop unit 760 MB ram, ide drive, 2.6 
P4 (512 cache).  let me know if i should give it a try.

Peter Lin wrote:
any tomcat user out there have Redhat FC3 installed and want to help
run some tests?  I will post the jmeter test plans this weekend.
it would make remy really happy :)
peter
 

And no FC 3 ? ;) I think it would run fine on your computer, and it's
a higher quality distribution overall (it doesn't have the stupid NPTL
backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
that distro when they release hoary).
Anyway, I'd be interested if you tried stressing a little the thread
pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
element) to see if it gives a difference in the error rate (and also
if it's not completely broken). You may want to increase maxThreads as
well for your tests (it's 150 by default, which is dangerously close
of the concurrency used by your client)
--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x
   

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

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


Re: more benchmark results

2005-01-14 Thread Peter Lin
Sure, it can't hurt to try it out. Even if the specs are different,
the data point is a good baseline comparison. I'll post the test plans
shortly to my apache directory.

peter



On Fri, 14 Jan 2005 09:28:52 -0500, Sessoms, Mack [EMAIL PROTECTED] wrote:
 i've got 5.5.4 w/jvm 1.5.0-b64 on fc3 (2.6.9-1.667,i386).
 unfortunately, the hardware is a desktop unit 760 MB ram, ide drive, 2.6
 P4 (512 cache).  let me know if i should give it a try.
 
 Peter Lin wrote:
 
 any tomcat user out there have Redhat FC3 installed and want to help
 run some tests?  I will post the jmeter test plans this weekend.
 
 it would make remy really happy :)
 
 peter
 
 
 
 
 And no FC 3 ? ;) I think it would run fine on your computer, and it's
 a higher quality distribution overall (it doesn't have the stupid NPTL
 backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
 that distro when they release hoary).
 
 Anyway, I'd be interested if you tried stressing a little the thread
 pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
 element) to see if it gives a difference in the error rate (and also
 if it's not completely broken). You may want to increase maxThreads as
 well for your tests (it's 150 by default, which is dangerously close
 of the concurrency used by your client)
 
 --
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Wich Tomcat for specific JVM

2005-01-14 Thread BOEMARE, Xavier
Hi,

I'd like to know if there's a more appropriate JVM version to use with JVM
1.3.1.05 ?

If not, then I guest I should take the latest stable version of TomCat ?

Thanks in advance


Re: more benchmark results

2005-01-14 Thread Peter Lin
for those who want to look at the test plans or assist, I've posted
the jmeter test plans

http://cvs.apache.org/~woolfel/testplans.zip

peter


On Fri, 14 Jan 2005 09:28:52 -0500, Sessoms, Mack [EMAIL PROTECTED] wrote:
 i've got 5.5.4 w/jvm 1.5.0-b64 on fc3 (2.6.9-1.667,i386).
 unfortunately, the hardware is a desktop unit 760 MB ram, ide drive, 2.6
 P4 (512 cache).  let me know if i should give it a try.
 
 Peter Lin wrote:
 
 any tomcat user out there have Redhat FC3 installed and want to help
 run some tests?  I will post the jmeter test plans this weekend.
 
 it would make remy really happy :)
 
 peter
 
 
 
 
 And no FC 3 ? ;) I think it would run fine on your computer, and it's
 a higher quality distribution overall (it doesn't have the stupid NPTL
 backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
 that distro when they release hoary).
 
 Anyway, I'd be interested if you tried stressing a little the thread
 pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
 element) to see if it gives a difference in the error rate (and also
 if it's not completely broken). You may want to increase maxThreads as
 well for your tests (it's 150 by default, which is dangerously close
 of the concurrency used by your client)
 
 --
 x
 Rémy Maucherat
 Developer  Consultant
 JBoss Group (Europe) SàRL
 x
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



Re: Wich Tomcat for specific JVM

2005-01-14 Thread Ben Souther
Version 5.5 requires either jdk1.5 or j2sdk1.4 with the compatibility
package.

Version 5.0 requires j2sdk.1.3.1 or higher


On Fri, 2005-01-14 at 09:39, BOEMARE, Xavier wrote:
 Hi,
 
 I'd like to know if there's a more appropriate JVM version to use with JVM
 1.3.1.05 ?
 
 If not, then I guest I should take the latest stable version of TomCat ?
 
 Thanks in advance


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



precompilation trouble

2005-01-14 Thread Marcus Beyer
Greetings!
Using Tomcat 5.0.26 I have some problems precompiling my pages with:
  org.apache.jasper.JspC
The precompiler instantiates some beans, altough I don't exactly know 
why. During instatiation some beans need to access managed beans, so 
they call something like this:

  FacesContext facesContext = FacesContext.getCurrentInstance ( );
  /*
   * this happens if I try to precompile some jsp pages ...
   */
  if (facesContext == null) log.error (no faces context found!);
  Application app = facesContext.getApplication ( );
  Object o = app.createValueBinding (#{ + beanName + 
}).getValue (facesContext);

Unfortunately getCurrentInstance returns null causing the precompilation 
to fail.

Please help a bloody beginner :)
thanx!
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: more benchmark results

2005-01-14 Thread Didier McGillis
I run FC3, FC2, RH9 and soon will have Debain install going, I would be 
happy to help or whatever.

From: Sessoms, Mack [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: more benchmark results
Date: Fri, 14 Jan 2005 09:28:52 -0500
i've got 5.5.4 w/jvm 1.5.0-b64 on fc3 (2.6.9-1.667,i386).  unfortunately, 
the hardware is a desktop unit 760 MB ram, ide drive, 2.6 P4 (512 cache).  
let me know if i should give it a try.

Peter Lin wrote:
any tomcat user out there have Redhat FC3 installed and want to help
run some tests?  I will post the jmeter test plans this weekend.
it would make remy really happy :)
peter


And no FC 3 ? ;) I think it would run fine on your computer, and it's
a higher quality distribution overall (it doesn't have the stupid NPTL
backport that FC 1 has). Or you could try Ubuntu (I plan to switch to
that distro when they release hoary).
Anyway, I'd be interested if you tried stressing a little the thread
pool I added in 5.5 (strategy=ms threadPriority=7 on the Connector
element) to see if it gives a difference in the error rate (and also
if it's not completely broken). You may want to increase maxThreads as
well for your tests (it's 150 by default, which is dangerously close
of the concurrency used by your client)
--
x
Rémy Maucherat
Developer  Consultant
JBoss Group (Europe) SàRL
x

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

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

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


RE: Deploying an application with its own xml file

2005-01-14 Thread Phillip Qin
Here is my ant script

property name=dist value=${basedir}/dist/
property name=war.file value=ROOT.war/

target name=init description=For undeploy and deploy task. Win32
has a leading slash in url.
condition property=war.url
value=file:${dist}/${war.file}
os family=unix/
/condition
condition property=war.url
value=file:/${dist}/${war.file}
notos family=unix//not
/condition
/target

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 3:14 AM
To: Tomcat Users List
Subject: Re: Deploying an application with its own xml file


In what way, do you mean path seperator or something else ? Within my
context.xml im using forward slash (UNIX notation) for both 
and its the Windows one that is working
Phillip Qin wrote:

Windows and linux use different url.

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED]
Sent: January 13, 2005 4:22 AM
To: Tomcat Users List
Subject: Re: Deploying an application with its own xml file


Ok, it is working on my test (Windows) environment.
But with same war deploying it to my Live environment(Linux) results in
it creating myapp.xml as a directory rather than a file !
Ive doubled checked this and the behaviour is constant, anyone ever 
sdeen this?

Paul Taylor wrote:

  

Thanks now working
I had previously found the bit about META-INF but called the file 
myapp.xml not context.xml Phillip Qin wrote:



Sotre your context.xml into META-INF. Pack your webapp as war. Then
let catalina-ant task or Tomcat Manager to deploy your war.

-Original Message-
From: Paul Taylor [mailto:[EMAIL PROTECTED] Sent: January 12, 
2005 4:47 AM
To: Tomcat Users List
Subject: Deploying an application with its own xml file


I have an application myapp.war and a corresponding xml file
myapp.xml. Previously I was copying myapp.xml into 
tomcat/conf/catalina/localhost and manually unpacking my war. Now I 
realised I can put the war into tomcat/webapps and it will 
automatically deploy, but I then have to shutdown server copy over 
the myapp.xml and restart the server. Where can I put the myapp.xml 
file so it automatically gets deployed with the WAR file in a single 
step.

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




 

  

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






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




  



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


!DSPAM:41e77f5a180855966097315!


RE: SV: Installing and running tomcat as a user other than root

2005-01-14 Thread Phillip Qin
In linux, I run /bin/su $TOMCAT_USER -- $CATALINA_HOME/bin/startup.sh

Group owner of tomcat directory is tomcat user.

-Original Message-
From: Roland Carlsson [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 4:48 AM
To: TomcatUsers
Subject: SV: SV: Installing and running tomcat as a user other than root


Are you accessing tomcat from localhost or any other host?


Den 05-01-14 09.19, skrev Mumanyi Bravismore [EMAIL PROTECTED]:

 Sorry, I am on RedHat 9. I have given the user -rwx- of the [tomcat] 
 dir, No problem with the user starting tomcat. ps -e|grep java shows 
 the tomcat process is running but when I try to access the pages from 
 the browser, connection is failing.
 
 Any tips on how to grant priviledges to port 80 or 8080 on linux to a 
 user.
 
 Thanks
 
 Roland Carlsson wrote:
 Hi Mumanyi!
 
 This will require some knowleage about you operatingsystem since not 
 all operation is allowed being a non-root user. But it basically 
 comes down to
 this:
 
 Grant the user you would like to run tomcat read and write rights on 
 the whole tomcat install-dir. This because tomcat write down a few 
 things to disk.
 
 Make sure that you operating system allow the user to open up the 
 port you which tomcat to run on. Usually ports under 1024 are 
 dissallowed without special privilegies.
 
 If you still are having problem you have to read the logs to see why 
 tomcat fails to start correctly.
 
 Regards
 Roland Carlsson
 
 
 
 
 Den 05-01-14 08.12, skrev Mumanyi Bravismore 
 [EMAIL PROTECTED]:
 
 
 How can one achieve to install and run tomcat as a user other than 
 root.  I have tried to extract tomcat from the *.gz as a user but 
 once I try to access it from the browser I get the Connection 
 Failed error when in actually fact tomcat is running.
 
 When I su -l to root and restart tomcat, I am able to see the page.
 
 Thanks in advance.
 
 Regards
 /Bravo
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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


!DSPAM:41e7a257192608070517611!


RE: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Phillip Qin
I'd love to move to a sunshine place after suffering rain, snow in Canada.

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED] 
Sent: January 13, 2005 8:15 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: [OT] Consulting Position in Costa Mesa, CA,


Looks like she hit several of us on the list. 

But of course. Where else is a more logical place to go fishing?

- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 8:03 PM
Subject: [OT] Consulting Position in Costa Mesa, CA,


 I'm forwarding this message from a recruiter looking for a Tomcat/VMS 
 consultant in CA if anyone's interested.
 
 
 Suzie Jimenez
 Sr. IT Recruiter
 mailto:[EMAIL PROTECTED]
 
 ISSG- Information Systems Support Group, LLC
 300 E Magnolia Blvd. Ste 403 4th Fl. 
 Burbank, CA  91502 
 818-846-4774 x116 
 818-846-9971 Fax 
 818-554-6825 Cell
 www.issgjobs.com
 
 
 
 
 On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote:
 I got your e-mail address from the Tomcat Solutions website... Your 
 help would be appreciated...I am trying to get creative
 here...help
 me
 out~
 
 I am working with one of my clients and we need a Tomcat consultant
 w/VMS
 background can you refer me to someone? PLEASE?!
 
 The position is in Costa Mesa, CA, e-mail or call me...thank you...
 
 I don't have that many details to give right now...we have a client
 who
 called us this morning requesting a consultant. They are working on a 
 project and are in need of someone with Tomcat experience with VMS.
 
 All we know that this is a contract consulting position for a
 Pharmaceutical
 firm  they are an AS400 shop as far as the pay is concerned it would
 depend
 on the consultant's experience. If you are interested send me a Word
 format
 resume for consideration w/ contract hourly rate.
 
 
 Suzie Jimenez
 Sr. IT Recruiter
 mailto:[EMAIL PROTECTED]
 
 ISSG- Information Systems Support Group, LLC
 300 E Magnolia Blvd. Ste 403 4th Fl. 
 Burbank, CA  91502 
 818-846-4774 x116 
 818-846-9971 Fax 
 818-554-6825 Cell
 www.issgjobs.com www.issg.com 
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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


!DSPAM:41e71d19143248901718871!


RE: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Furash Gary
This kind of stuff didn't bother me - at least she's targeting 


Gary Furash, MBA, PMP
Applications Manager, Maricopa County Attorney's Office
602-506-0351 (Work), 602-725-1985 (Mobile)

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 14, 2005 8:35 AM
To: 'Tomcat Users List'
Subject: RE: [OT] Consulting Position in Costa Mesa, CA,

I'd love to move to a sunshine place after suffering rain, snow in
Canada.

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]
Sent: January 13, 2005 8:15 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: Re: [OT] Consulting Position in Costa Mesa, CA,


Looks like she hit several of us on the list. 

But of course. Where else is a more logical place to go fishing?

- Original Message - 
From: Ben Souther [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Cc: [EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 8:03 PM
Subject: [OT] Consulting Position in Costa Mesa, CA,


 I'm forwarding this message from a recruiter looking for a Tomcat/VMS 
 consultant in CA if anyone's interested.
 
 
 Suzie Jimenez
 Sr. IT Recruiter
 mailto:[EMAIL PROTECTED]
 
 ISSG- Information Systems Support Group, LLC
 300 E Magnolia Blvd. Ste 403 4th Fl. 
 Burbank, CA  91502 
 818-846-4774 x116 
 818-846-9971 Fax 
 818-554-6825 Cell
 www.issgjobs.com
 
 
 
 
 On Thu, 2005-01-13 at 19:18, Suzie Jimenez wrote:
 I got your e-mail address from the Tomcat Solutions website... Your 
 help would be appreciated...I am trying to get creative
 here...help
 me
 out~
 
 I am working with one of my clients and we need a Tomcat consultant
 w/VMS
 background can you refer me to someone? PLEASE?!
 
 The position is in Costa Mesa, CA, e-mail or call me...thank you...
 
 I don't have that many details to give right now...we have a client
 who
 called us this morning requesting a consultant. They are working on a

 project and are in need of someone with Tomcat experience with VMS.
 
 All we know that this is a contract consulting position for a
 Pharmaceutical
 firm  they are an AS400 shop as far as the pay is concerned it would
 depend
 on the consultant's experience. If you are interested send me a Word
 format
 resume for consideration w/ contract hourly rate.
 
 
 Suzie Jimenez
 Sr. IT Recruiter
 mailto:[EMAIL PROTECTED]
 
 ISSG- Information Systems Support Group, LLC
 300 E Magnolia Blvd. Ste 403 4th Fl. 
 Burbank, CA  91502 
 818-846-4774 x116 
 818-846-9971 Fax 
 818-554-6825 Cell
 www.issgjobs.com www.issg.com 
 
 
 
 
 
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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


!DSPAM:41e71d19143248901718871!

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



Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Mladen Turk
Ben Souther wrote:
I'm forwarding this message from a recruiter looking for a Tomcat/VMS
consultant in CA if anyone's interested.
Just another spam.
I have no idea why the people are still sucking that.
Just try to send a message, and you will receive:
**
**  THIS IS A WARNING MESSAGE ONLY  **
**  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
**
The original message was received at Fri, 14 Jan 2005 08:29:32 +0100
from xx.xx.xx.xx[xx.xx.xx.xx]
   - Transcript of session follows -
[EMAIL PROTECTED]... Deferred: Connection timed out with 
barracuda.cttsweb.com.
Warning: message still undelivered after 4 hours
Will keep trying until message is 1 day old


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


Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Ben Souther
I exchanged several emails with her before forwarding it to this list.


On Fri, 2005-01-14 at 10:51, Mladen Turk wrote:
 Ben Souther wrote:
  I'm forwarding this message from a recruiter looking for a Tomcat/VMS
  consultant in CA if anyone's interested.
 
 
 Just another spam.
 I have no idea why the people are still sucking that.
 
 
 Just try to send a message, and you will receive:
 
 
  **
  **  THIS IS A WARNING MESSAGE ONLY  **
  **  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
  **
 
 The original message was received at Fri, 14 Jan 2005 08:29:32 +0100
 from xx.xx.xx.xx[xx.xx.xx.xx]
 
 - Transcript of session follows -
 [EMAIL PROTECTED]... Deferred: Connection timed out with 
 barracuda.cttsweb.com.
 Warning: message still undelivered after 4 hours
 Will keep trying until message is 1 day old
 
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread David Smith
Call me an optimist, but that error looks like standard, old, ordinary, 
everyday mail server trouble -- nothing to get excited about.  Besides, 
I sent a message declining and didn't get that error.

--David
Mladen Turk wrote:
Ben Souther wrote:
I'm forwarding this message from a recruiter looking for a Tomcat/VMS
consultant in CA if anyone's interested.
Just another spam.
I have no idea why the people are still sucking that.
Just try to send a message, and you will receive:
**
**  THIS IS A WARNING MESSAGE ONLY  **
**  YOU DO NOT NEED TO RESEND YOUR MESSAGE  **
**
The original message was received at Fri, 14 Jan 2005 08:29:32 +0100
from xx.xx.xx.xx[xx.xx.xx.xx]
   - Transcript of session follows -
[EMAIL PROTECTED]... Deferred: Connection timed out with 
barracuda.cttsweb.com.
Warning: message still undelivered after 4 hours
Will keep trying until message is 1 day old


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


Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Mladen Turk
Ben Souther wrote:
I exchanged several emails with her before forwarding it to this list.
Well, she send me 5 emails with the same content replying to
each email I've posted to this list last week.
So if that's not the spam,  then what is it?
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Why am I getting this authentication window

2005-01-14 Thread Venkat Radha Venkataramanan








Hello:



I am running Tomcat 5.0. I installed it
about 2 months back and I have been learning the ropes these days.



This morning when I tried to go into the
Manager application and/or the admin application (http://127.0.0.1:8080/admin/), I get an
authentication box:







I dont know why all of a sudden I
get this dialog box and even if I supply a local user/password, I cannot seem
to go past this.



Any help you can provide is much
appreciated.



Venkat








Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Mladen Turk
David Smith wrote:
Call me an optimist, but that error looks like standard, old, ordinary, 
everyday mail server trouble -- nothing to get excited about.  Besides, 
I sent a message declining and didn't get that error.

He he :)
Call me an pessimist, but when did you receive that kind of
message sending an email to a 'regular' person.
Also, seems that everybody has received those emails, so if
that's not the spam then what is it?
Also, the email contains
file://www.issg.com/ as URL (typical spyware).
and the http://www.issg.com does not exits.
Regards,
Mladen.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


mod_jk jni worker - can i have more than one server process?

2005-01-14 Thread Fox,Tim
Hi All-

I am interesting in using the in processes jni_worker with apache 2.0 on linux.

My question concerns the number of instances of a jvm, and hence tomcat that 
will be created.

I'm no apache expert but my understanding is that, on linux the default mpm 
configuration will have multiple child server processes created.

Does that mean there will be multiple jvms and hence multiple tomcat instances 
instantiated? Or is the jvm somehow shared across processes?

Is it a requirement of using the jni worker that the number of child server 
processes is limited to 1 in the apache config?

Any help greatly appreciated.


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



RE: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Phillip Qin
Are you experiencing Internet connection difficulties? Because

1. You were unable to sent her an email which I could;
2. You were unable to visit her website which I could.

Regards

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:46 AM
To: Tomcat Users List
Subject: Re: [OT] Consulting Position in Costa Mesa, CA,


David Smith wrote:
 Call me an optimist, but that error looks like standard, old, 
 ordinary,
 everyday mail server trouble -- nothing to get excited about.  Besides, 
 I sent a message declining and didn't get that error.


He he :)
Call me an pessimist, but when did you receive that kind of message sending
an email to a 'regular' person.

Also, seems that everybody has received those emails, so if that's not the
spam then what is it?

Also, the email contains
file://www.issg.com/ as URL (typical spyware).
and the http://www.issg.com does not exits.


Regards,
Mladen.

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


!DSPAM:41e7f72f230081242111228!


RE: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Phillip Qin
Please disregard #2. I think whoever is interested can phone her to verify.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:58 AM
To: 'Tomcat Users List'
Subject: RE: [OT] Consulting Position in Costa Mesa, CA,


Are you experiencing Internet connection difficulties? Because

1. You were unable to sent her an email which I could;
2. You were unable to visit her website which I could.

Regards

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:46 AM
To: Tomcat Users List
Subject: Re: [OT] Consulting Position in Costa Mesa, CA,


David Smith wrote:
 Call me an optimist, but that error looks like standard, old,
 ordinary,
 everyday mail server trouble -- nothing to get excited about.  Besides, 
 I sent a message declining and didn't get that error.


He he :)
Call me an pessimist, but when did you receive that kind of message sending
an email to a 'regular' person.

Also, seems that everybody has received those emails, so if that's not the
spam then what is it?

Also, the email contains
file://www.issg.com/ as URL (typical spyware).
and the http://www.issg.com does not exits.


Regards,
Mladen.

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





!DSPAM:41e7fa19230471195828750!


RE: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Phillip Qin
For #2, the right link is http://www.issgjobs.com



-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:59 AM
To: 'Tomcat Users List'
Subject: RE: [OT] Consulting Position in Costa Mesa, CA,


Please disregard #2. I think whoever is interested can phone her to verify.

-Original Message-
From: Phillip Qin [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:58 AM
To: 'Tomcat Users List'
Subject: RE: [OT] Consulting Position in Costa Mesa, CA,


Are you experiencing Internet connection difficulties? Because

1. You were unable to sent her an email which I could;
2. You were unable to visit her website which I could.

Regards

-Original Message-
From: Mladen Turk [mailto:[EMAIL PROTECTED] 
Sent: January 14, 2005 11:46 AM
To: Tomcat Users List
Subject: Re: [OT] Consulting Position in Costa Mesa, CA,


David Smith wrote:
 Call me an optimist, but that error looks like standard, old, 
 ordinary, everyday mail server trouble -- nothing to get excited 
 about.  Besides, I sent a message declining and didn't get that error.


He he :)
Call me an pessimist, but when did you receive that kind of message sending
an email to a 'regular' person.

Also, seems that everybody has received those emails, so if that's not the
spam then what is it?

Also, the email contains
file://www.issg.com/ as URL (typical spyware).
and the http://www.issg.com does not exits.


Regards,
Mladen.

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








!DSPAM:41e7fa5f230521826415057!


Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread PA
On Jan 14, 2005, at 17:45, Mladen Turk wrote:
Also, seems that everybody has received those emails, so if
that's not the spam then what is it?
It's a business proposition! Like the ones I constantly receive from 
those charming gentlemen in Lagos, Nigeria :o)

Indeed lists 2,713 hits for tomcat:
http://www.indeed.com/search?q=tomcatl=
And 24 around Costa Mesa, CA itself:
http://www.indeed.com/search?q=tomcatl=Costa+Mesa%2C+CA
The bubble is back!
Cheers
--
PA
http://alt.textdrive.com/
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Why am I getting this authentication window

2005-01-14 Thread Dale, Matt



you 
need to add a user with the manager role to the tomcat-users.xml 
file.

Then 
use this login and you will be able to access the admin app.

  -Original Message-From: Venkat  Radha 
  Venkataramanan [mailto:[EMAIL PROTECTED]Sent: 14 January 
  2005 16:43To: 'Tomcat Users List'Subject: Why am I 
  getting this authentication window
  
  Hello:
  
  I am running Tomcat 5.0. I installed it 
  about 2 months back and I have been learning the ropes these 
  days.
  
  This morning when I tried to go into the 
  Manager application and/or the admin application (http://127.0.0.1:8080/admin/), I get 
  an authentication box:
  
  
  
  I dont know why all of a sudden I get 
  this dialog box and even if I supply a local user/password, I cannot seem to 
  go past this.
  
  Any help you can provide is much 
  appreciated.
  
  Venkat
Any opinions expressed in this E-mail may be those of the individual and not 
necessarily the company. This E-mail and any files transmitted with it are 
confidential and solely for the use of the intended recipient. If you are not 
the intended recipient or the person responsible for delivering to the intended 
recipient, be advised that you have received this E-mail in error and that any 
use or copying is strictly prohibited. If you have received this E-mail in 
error please notify the beCogent postmaster at [EMAIL PROTECTED]
Unless expressly stated, opinions in this email are those of the individual 
sender and not beCogent Ltd. You must take full responsibility for virus 
checking this email and any attachments.
Please note that the content of this email or any of its attachments may 
contain data that falls within the scope of the Data Protection Acts and that 
you must ensure that any handling or processing of such data by you is fully 
compliant with the terms and provisions of the Data Protection Act 1984 and 
1998.


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

RE: Why am I getting this authentication window

2005-01-14 Thread Venkat Radha Venkataramanan
I have two users, venki and admin set up in the file with admin and
manager roles.

 

Like I said, I have had no problems for the last two months. The only thing
I did last was install an anti-virus package from trendMicro. I am running
this on a Windows 2003 server.

 

venkat

 

  _  

From: Dale, Matt [mailto:[EMAIL PROTECTED] 
Sent: Friday, January 14, 2005 12:10 PM
To: Tomcat Users List
Subject: RE: Why am I getting this authentication window

 

you need to add a user with the manager role to the tomcat-users.xml file.

 

Then use this login and you will be able to access the admin app.

-Original Message-
From: Venkat  Radha Venkataramanan [mailto:[EMAIL PROTECTED]
Sent: 14 January 2005 16:43
To: 'Tomcat Users List'
Subject: Why am I getting this authentication window

Hello:

 

I am running Tomcat 5.0. I installed it about 2 months back and I have been
learning the ropes these days.

 

This morning when I tried to go into the Manager application and/or the
admin application (http://127.0.0.1:8080/admin/), I get an authentication
box:

 



 

I don't know why all of a sudden I get this dialog box and even if I supply
a local user/password, I cannot seem to go past this.

 

Any help you can provide is much appreciated.

 

Venkat



Re: xalan problem with security manager

2005-01-14 Thread Greg Lappen
Michael-
If you suspect the error is related to the security manager, run tomcat  
with the following environment variable set:

export CATALINA_OPTS=-Djava.security.debug=access:failure
This will put logging for the security manager in your catalina.out  
file (or your applications log file if you defined a new logger for  
your webapp). It will show all the access checks (in short form) and a  
stack trace and domain that caused the failure when a failure occurs.   
It will tell you what permission was denied, and the codebase it was  
denied to.

I used it extensively yesterday to set up my security policy.  For more  
info see  
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/security-manager- 
howto.html

Greg
On Jan 14, 2005, at 4:58 AM, Michal Kwiatek wrote:
Hi all,
I can't make xalan work when I run tomcat with security manager.
All I get is java.lang.ExceptionInInitializerError (see stack trace
below).
It works fine without security manager.
Has any of you used xalan on tomcat with secuirity manager? What
privileges should I grant to the code?
I tried:
grant {
  permission java.util.PropertyPermission *, read;
  permission java.net.SocketPermission *, connect;
  permission java.lang.RuntimePermission getClassLoader;
};
grant {
  permission java.io.FilePermission ${catalina.home}/temp/*, read,
write, delete;
};
But it doesn't help. Any ideas?
Thank you very much in advance,
Michal.
My setup is tomcat 5.0.28 on jdk 1.4.2_06, it behaves the same on win  
xp
or linux.

Here's the code:
File xmlFileObj = new File(xmlFile);
File xslFileObj = new File(xslFile);
this.out = out;
TransformerFactory tFactory =
TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new
StreamSource(xslFileObj));
transformer.setParameter(serviceName, serviceName);
transformer.transform(new StreamSource(xmlFileObj), new
StreamResult(out));
out.flush();
And the stack trace.
javax.servlet.ServletException
	
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageCon 
t
extImpl.java:825)
	
org.apache.jasper.runtime.PageContextImpl.access$1100(PageContextImpl.j 
a
va:64)
	
org.apache.jasper.runtime.PageContextImpl$12.run(PageContextImpl.java: 
74
5)
	java.security.AccessController.doPrivileged(Native Method)
	
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageConte 
x
tImpl.java:743)
	org.apache.jsp.tree_jsp._jspService(tree_jsp.java:98)
	
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
a
va:324)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
292)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
v
a:39)
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
r
Impl.java:25)
	java.lang.reflect.Method.invoke(Method.java:324)
	
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:500)
	
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java: 
268)
	
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.ja 
v
a:157)

root cause
java.lang.ExceptionInInitializerError
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:141)
	
org.apache.xalan.serialize.SerializerFactory.getSerializer(SerializerFa 
c
tory.java:131)
	
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler 
(
TransformerImpl.java:1048)
	
org.apache.xalan.transformer.TransformerImpl.createResultContentHandler 
(
TransformerImpl.java:975)
	
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl. 
j
ava:1124)
	
org.apache.xalan.transformer.TransformerImpl.transform(TransformerImpl. 
j
ava:1107)
	circeos.xml.XslHtmlConverter.Display(XslHtmlConverter.java:29)
	org.apache.jsp.tree_jsp._jspService(tree_jsp.java:84)
	
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.j 
a
va:324)
	
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 
292)
	
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
v
a:39)
	
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
r
Impl.java:25)
	

Re: precompilation trouble

2005-01-14 Thread Marcus Beyer
Marcus Beyer schrieb:
The precompiler instantiates some beans, altough I don't exactly know 
why. During instatiation some beans need to access managed beans, so 
they call something like this:

  FacesContext facesContext = FacesContext.getCurrentInstance ( );
  /*
   * this happens if I try to precompile some jsp pages ...
   */
  if (facesContext == null) log.error (no faces context found!);
I forgot to mention that I am using JSF 1.1_01 reference impl.
Has anyone an idea what is happening here? Please give me a hint.
thanx!
Marcus
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Session replication debugging

2005-01-14 Thread Edmon Begoli
Hi,

Does anyone know a way to debug/monitor session replication over the multicast.

Thank you,
Edmon

Re: [OT] Consulting Position in Costa Mesa, CA,

2005-01-14 Thread Ben Souther
I don't know.  I apologize for any inconvenience.  I know I was talking
to a real person.  We exchanged 3 or 4 emails over a 10 minute period.
I figured, maybe there was someone in here from CA in need of work who
would benefit from it so I forwarded it to the list.

If I had detected even the faintest hint of spam, I would have just
thrown it in the trash with the other 500 I get every day.

Sorry about the traffic it generated.

-Ben



On Fri, 2005-01-14 at 11:45, Mladen Turk wrote:
 David Smith wrote:
  Call me an optimist, but that error looks like standard, old, ordinary, 
  everyday mail server trouble -- nothing to get excited about.  Besides, 
  I sent a message declining and didn't get that error.
 
 
 He he :)
 Call me an pessimist, but when did you receive that kind of
 message sending an email to a 'regular' person.
 
 Also, seems that everybody has received those emails, so if
 that's not the spam then what is it?
 
 Also, the email contains
 file://www.issg.com/ as URL (typical spyware).
 and the http://www.issg.com does not exits.
 
 
 Regards,
 Mladen.
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


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



Tomcat service crashes unexpectedly, no trace in logs

2005-01-14 Thread David Vandaele
Hi,

We're experiencing Tomcat crashes during stresstesting of a webapplication. 

Situation: Tomcat runs as a Windows service.  During stresstests the 
Tomcat-services suddenly ends unexpectedly.  The Windows eventlog logs states 
something like: ...service ended unexpectedly...  The problem is not easily 
or consistently reproducable...

When I look at all the logs of Tomcat and of our webapplication, no mention of 
an exception or error or crash whatsoever !(?)  (They all just stop abruptly)

First I thought it was an OutOfMemoryError problem.  I forced an 
OutOfMemoryError myself by limiting the memory of the JVM of Tomcat severely.  
But then I could see loggings of an OutOfMemoryError in the Tomcat stderr-log, 
which is not what I expected because I didn't expect any loggings of a crash at 
all...

The problem only *seems* to occur when the servermachine is completely left 
alone (not logged in or locked)  Additionally, it usually occurs after between 
30-70 minutes or so.  When I keep monitoring the machine while the same tests 
are running the crash doesn't seem to occur ?!  Could it be a power-saving 
issue, like e.g. with the network-adaptor ?  Then I would not expect a crash, 
but a stacktrace ?

I tried adding a try-catch(Throwable) around a method where everything starts 
(the process method of my Struts ActionServlet). I've been trying to reproduce 
the problem since, but as I mentioned, it's not consistently reproducable...

I've searched the net trying to find related problems, or a JVM problem of some 
kind with this version, haven't been successful though...  If it is a problem 
with bad memory, I would expect to see different behaviour, like more random 
crashes, not only of the Tomcat service... 

Environment: Tomcat 4.1.29, JDK 1.4.2_03, Windows 2000ProSP4, bi-processor Xeon 
machine.

Any help/advice/ideas is really welcome and appreciated !

Kind regards,

David

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



Re: How to remotely debug with Tomcat 5.5

2005-01-14 Thread Mark Thomas
Should work in exactly the same way.
Mark
Rolf Zelder wrote:
Hi
In Tomcat 4.2 I was able to define dt_socket (see below)  for remote
debugging in the catalina.bat file. How do I configure a dt_socket in Tomcat
5.5 ? 

Cheers
   Rolf

Catalina.bat:
set JAVA_OPTS=%JAVA_OPTS% -Xdebug
-Xrunjdwp:transport=dt_socket,address=3888,server=y,suspend=n
Strangers are friends, which haven't met yet ! 


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


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


RE: Authentication problem in Sending email from servlet. (tomcate 5)

2005-01-14 Thread Daxin Zuo
Sorry, no problem. The account password is wrong.

-Original Message-
From: Daxin Zuo [mailto:[EMAIL PROTECTED]
Sent: Thursday, January 13, 2005 3:44 PM
To: Tomcat Users List
Subject: Authentication problem in Sending email from servlet. (tomcate
5)


Hi,
   In my web page, user sends email with attachment, so upload is related. I
load the file in a byte array, and try to send with JavaMail(I know there is
Mail api in Tomcat-Common. But I have no a good example).

 The related code is copied at the end.
 The email serve needs no user-name and password, because the C++ program
sends email without authentication.

 if I set prop.put(mail.smtp.auth, false);
 Exception: SendEmail Error: javax.mail.AuthenticationFailedException

 If I set to Password and username to , or set the user name to the
From-Email address:
SendEmail Error: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0
Authentication required

Please tell me what's wrong. Thanks.

  import javax.mail.*;
  import javax.mail.internet.*;
  import javax.activation.*;
  import org.apache.commons.net.smtp.*;
  import org.apache.commons.net.io.Util;
  

  Properties prop = System.getProperties();
  prop.put(mail.smtp.host, szServer);
  prop.put(mail.smtp.from, strFrom);
  prop.put(mail.transport.protocol, SMTP);
  final String user = tool.isnull2(szAccount)==?
 strFrom:// From email Address
 tool.isnull2(szAccount);// Account of the user.
  final String pwd = tool.isnull2(szPassword);
  Authenticator auth = null;

prop.put(mail.smtp.auth, true);
auth = new Authenticator (){
  public PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(user, pwd);
  }
};

  Session ses1=Session.getInstance(prop,auth);

  MimeMessage msg = new MimeMessage(ses1);
  msg.setFrom(new InternetAddress(strFrom));
  String[] Recipts = strRecipts.split(,);
  for( int k=0; k  Recipts.length; k++)
msg.addRecipient(Message.RecipientType.TO,
   new InternetAddress(Recipts[k]));
  if (!tool.isnull(strCcRecipts)){
Recipts = strCcRecipts.split(,);
for (int k = 0; k  Recipts.length; k++)
  msg.addRecipient(Message.RecipientType.CC,
 new InternetAddress(Recipts[k]));
  }

  msg.setSubject(strSubject);
  msg.setHeader(X-Mailer, Java Mail);
  MimeBodyPart  messageBodyPart = new MimeBodyPart();
  messageBodyPart.setDisposition(Part.INLINE);
  messageBodyPart.setContent(strBodyText, text/plain);
  MimeMultipart multipart = new MimeMultipart();
  multipart.addBodyPart(messageBodyPart);

  if (AttacheFileSize  0) {  // one attache file only.
messageBodyPart = new MimeBodyPart();
messageBodyPart.setDataHandler(new DataHandler(
 ByteArrayOfFile, // byte[] it holds the file contents
 myFileMimeType));//String, mime type of the file
messageBodyPart.setFileName(astrAttach);
multipart.addBodyPart(messageBodyPart);
  }

  msg.setContent(multipart);
  msg.setSentDate(new Date());
  Transport.send(msg);


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


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



Re: Session replication debugging

2005-01-14 Thread Filip Hanik - Dev
just enable debugging in the logs and you'll see what is going on.
multicast is only used for membership, not for replication. TCP is used for 
that.


Filip

- Original Message - 
From: Edmon Begoli [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, January 14, 2005 12:07 PM
Subject: Session replication debugging


Hi,

Does anyone know a way to debug/monitor session replication over the multicast.

Thank you,
Edmon

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



Re: Tomcat service crashes unexpectedly, no trace in logs

2005-01-14 Thread Greg Lappen
David,
I have been chasing a similar problem for weeks now with tomcat 5.0.28 
on Linux.  It occurs sporadically, sometimes a couple times a day, 
sometimes after weeks.  I see no errors in the log file and no core 
dumps.  At first I thought it was the JVM crashing but I've tracked it 
down to the JVM shutting down normally somehow, as if somewhere 
System.exit was being called.  I put a security policy in place and 
enabled the security manager to prevent the System.exit call so I 
should find the culprit in my log files the next time its called.

To test if this is what's happening, add a shutdownHook when your app 
starts like this:

public class ExitListener implements ServletContextListener {
public void contextInitialized(ServletContextEvent event) {
Runtime.getRuntime().addShutdownHook(new ExitListenerThread());
System.out.println(ExitListener installed shutdown hook);
}
public void contextDestroyed(ServletContextEvent event) {
System.out.println(ExitListener.contextDestroyed());
}
}
public class ExitListenerThread extends Thread {
public void run() {
System.out.println(ExitListenerThread running!!!);
System.out.println(current time is:  + new java.util.Date());
}
}
Hope this helps.
Greg
On Jan 14, 2005, at 2:04 PM, David Vandaele wrote:
Hi,
We're experiencing Tomcat crashes during stresstesting of a 
webapplication.

Situation: Tomcat runs as a Windows service.  During stresstests the 
Tomcat-services suddenly ends unexpectedly.  The Windows eventlog 
logs states something like: ...service ended unexpectedly...  The 
problem is not easily or consistently reproducable...

When I look at all the logs of Tomcat and of our webapplication, no 
mention of an exception or error or crash whatsoever !(?)  (They all 
just stop abruptly)

First I thought it was an OutOfMemoryError problem.  I forced an 
OutOfMemoryError myself by limiting the memory of the JVM of Tomcat 
severely.  But then I could see loggings of an OutOfMemoryError in the 
Tomcat stderr-log, which is not what I expected because I didn't 
expect any loggings of a crash at all...

The problem only *seems* to occur when the servermachine is completely 
left alone (not logged in or locked)  Additionally, it usually occurs 
after between 30-70 minutes or so.  When I keep monitoring the machine 
while the same tests are running the crash doesn't seem to occur ?!  
Could it be a power-saving issue, like e.g. with the network-adaptor ? 
 Then I would not expect a crash, but a stacktrace ?

I tried adding a try-catch(Throwable) around a method where everything 
starts (the process method of my Struts ActionServlet). I've been 
trying to reproduce the problem since, but as I mentioned, it's not 
consistently reproducable...

I've searched the net trying to find related problems, or a JVM 
problem of some kind with this version, haven't been successful 
though...  If it is a problem with bad memory, I would expect to see 
different behaviour, like more random crashes, not only of the Tomcat 
service...

Environment: Tomcat 4.1.29, JDK 1.4.2_03, Windows 2000ProSP4, 
bi-processor Xeon machine.

Any help/advice/ideas is really welcome and appreciated !
Kind regards,
David
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Question about JNDI resources

2005-01-14 Thread Alan Deikman
I'm just learning this stuff, but having good success so far.  In my 
SQL-backed bean I use a JDBCResource as per the documentation:

protected static Connection getConnection() {
   //System.out.println(User.getConnection Attempting to get 
connection);
   try {
   Context initContext = new InitialContext();
   Context envContext  = 
(Context)initContext.lookup(java:/comp/env);
   DataSource ds = (DataSource) envContext.lookup(jdbc/);
   Connection conn = ds.getConnection();
   return conn;
   } catch (NamingException ne) {
   System.out.println(User.getConnection caught Naming 
exception);
   System.out.println(ne.toString());
   } catch (SQLException sqle) {
   System.out.println(User.getConnection caught SQL exception);
   System.out.println(sqle.toString());
   }

This works, way cool.  My question is do I need to look up two new 
Context objects and a new DataSource each time I get a connection?  Or 
can I just store initContext, envContext, and ds in static variables and 
load them just once for all instances of the class?

If that works, why don't the examples do it that way?
Alan Deikman
ZNYX Networks
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Context question

2005-01-14 Thread Hollerman Geralyn M
I was recently given a new application to maitain. It uses Tomcat 5.0.16 and an 
Oracle database. I have used various versions of Tomcat to work with 
applications on two other kinds of databases, one of which uses DBCP, so I am 
somewhat familiar with the needed parameters and went to the Tomcat JNDI HOW-TO 
and the Tomcat Configuration Reference to refresh my memory on just what this 
was doing, but I have to admit I don't completely understand this - what I have 
included is the Context.xml file for the new application. What I don't 
understand is that first ResourceParams set of statements - it appears to be 
saying to look at the database of users in the tomcat-users.xml file in /conf 
- but why? That file hasn't been altered to contain anything but the defaults, 
and the person that gave me the new app was the one that set up Tomcat for it, 
so I assume its set up as needed! Also, why is there no factory in the 2nd 
ResourceParams in this file? I thought one was needed. The person that gave me 
this said DBCP was implemented, but I don't see how this would do it.

Context docBase=graduate path=/graduate
  Resource auth=Container name=jdbc/ConnectionPool type=javax.sql.DataSour
ce/
   ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/ConnectionPool
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value100/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxIdle/name
value5/value
  /parameter
  parameter
nameusername/name
value/value
  /parameter
/ResourceParams
/Context


Could someone please explain to me just how this is using DBCP?
Thanks!!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Where / How to place app config file without overwriting

2005-01-14 Thread Jonathan Wilson
My current upgrade procedures are to shutdown tomcat 3.x, move the 
current version of my webapp directory somewhere else, recreate the 
/webapp directory, then un-jar the war file created by NetBeans. After 
doing this I then have to modify the WEB-INF/app.config file with 
customer-specific information. The code is identical, just configuration 
items change. If the customer has changed their app.config then I have 
to roll those changes into the new app.config file. Also, I have to copy 
the log files out of the old version into the new versions' /logs 
directory and modify the stock log4j.properties to point to their 
desired directory. Also, I can't always have access to the server to do 
this so I've written a procedure to explain this to another.

Is there a way to store customer configuration info(app.config, 
log4j.properties) outside of the app and have the app still know how to 
find it?

There must be a better way - nothing in the Tomcat Application 
Developers Guide that covers this.

Thanks in advance,
JW
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Jasper extension

2005-01-14 Thread Heath Borders
Is Jasper designed so that it could be used to compile JSP files into
other contexts?

I am a MyFaces developer (we are in the incubator right now, but will
soon be moving to a top-level).  Currently, development and
maintanence of custom JSF tags is pain for the same reasons that
development of Servlets were painful before JSPs.

I would like to try to extend Jasper so that it could compile JSPs
into JSF Renderer.

Is this something that could be accomplished in my free time after work?

Is this just a crazy idea?


-- 
-Heath Borders-Wing
[EMAIL PROTECTED]

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



Re: Context question

2005-01-14 Thread Parsons Technical Services
What you have here is a classic case of cut and paste by the clueless(public 
boolean newbie;).

This code is from the server.xml that was setup for a Global database 
connection pool as opposed to a pool just for the app. The person has cut 
and pasted it into the context file for the app which will work but the pool 
is only available to that app. The first ResourceParams is used for the 
authentication of users when using login like the manager and admin apps. If 
you only wanted this app to use this file and different apps to use 
different files you would put one in each contex xml pointing to the proper 
file. With some other changes.

So unless you are doing something special with your authentication this is 
not needed here (newbie =true;).

If you have some special setup and are using this file for just this app 
(newbie=false;)

I think it would be safe to remove the first part and you might think about 
moving the DBCP to a global one. But that of course depends on your setup 
and needs.

For more details:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jndi-resources-howto.html
and look at the bottom two examples.
As for the factory see:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/context.html#Resource%20Parameters
It depends on the factory as to whether you need to declare it or not.
Doug
- Original Message - 
From: Hollerman Geralyn M [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Sent: Friday, January 14, 2005 5:29 PM
Subject: Context question


I was recently given a new application to maitain. It uses Tomcat 5.0.16 
and an Oracle database. I have used various versions of Tomcat to work with 
applications on two other kinds of databases, one of which uses DBCP, so I 
am somewhat familiar with the needed parameters and went to the Tomcat JNDI 
HOW-TO and the Tomcat Configuration Reference to refresh my memory on just 
what this was doing, but I have to admit I don't completely understand 
this - what I have included is the Context.xml file for the new 
application. What I don't understand is that first ResourceParams set of 
statements - it appears to be saying to look at the database of users in 
the tomcat-users.xml file in /conf - but why? That file hasn't been altered 
to contain anything but the defaults, and the person that gave me the new 
app was the one that set up Tomcat for it, so I assume its set up as 
needed! Also, why is there no factory in the 2nd ResourceParams in this 
file? I thought one was needed. The person that gave me this said DBCP was 
implemented, but I don't see how this would do it.

Context docBase=graduate path=/graduate
  Resource auth=Container name=jdbc/ConnectionPool 
type=javax.sql.DataSour
ce/
   ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams
ResourceParams name=jdbc/ConnectionPool
  parameter
namemaxWait/name
value5000/value
  /parameter
  parameter
namemaxActive/name
value100/value
  /parameter
  parameter
namepassword/name
value/value
  /parameter
  parameter
nameurl/name
valuejdbc:oracle:thin:@/value
  /parameter
  parameter
namedriverClassName/name
valueoracle.jdbc.driver.OracleDriver/value
  /parameter
  parameter
namemaxIdle/name
value5/value
  /parameter
  parameter
nameusername/name
value/value
  /parameter
/ResourceParams
/Context


Could someone please explain to me just how this is using DBCP?
Thanks!!
--
Lynn Hollerman.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


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


Tomcat Won't Shutdown

2005-01-14 Thread David Rickard


System: SunOS 5.9 Generic_117171-13 sun4u sparc SUNW,Sun-Fire-V440
Apache: 2.0.52
Tomcat: 4.1.31
Connector: jk-1.2.6
We installed Apache and Tomcat without error (built Apache from source,
loaded Tomcat from binary), and configured the connector so that they
were talking correctly (the /examples/jsp/ site comes up fine);
We experimented with an application that would use a
ServletContextListener and the Jakarta Commons/Configuration package to
load application variables t startup; the ServletContextListener by
itself worked fine--i.e., it loaded hard-coded variables into
ServletContext and they could be retrieved by JSPs, servlets
etc;
The problems started when we added Commons/Configuration to the
ServletContextListener: the application would not load, and catalina.out
listed various ClassNotFound errors for needed Jakarta Commons classes
(from digester, logging etc)--even though the jars are in
tomcat/commons/lib; so we placed the latest JARs for commons-lang,
commons-digester, commons-logging in the application WEB-INF/lib
directory; the application started loading, though the
ServletContextListener could not find the configuration files--kept
spitting out Exception caught opening stream to URL errors
(which is presumably just a file-pathing issue);
Only something has been stepped on, because Tomcat will no longer shut
down: when we execute shutdown.sh, it throws the following error:
Jan 14, 2005 4:40:43 PM org.apache.commons.digester.Digester
startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException:
org.apache.catalina.core.StandardServer
[full stack trace is in the attached file]
And catalina.out records the following errors when we try to execute
startup.sh:
Jan 14, 2005 4:43:03 PM org.apache.coyote.http11.Http11Protocol 
init
SEVERE: Error initializing endpoint
java.net.BindException: Address already in use:8080
Obviously, port 8080 is already in use because Tomcat hasn't released
it--because it didn't shutdown as requested; our questions are:
1) What got stepped on in Tomcat to cause this behavior?
2) Is there another way to stop Tomcat (other than system reboot), to see
if we can get it to restart gracefully?
3) Is there a way to fix Tomcat, short of re-installing it?

--
David Rickard
Software Engineer
TechBooks/GTS 
Your Single Source Solution! 
Los Angeles CA * York, PA * Boston,MA * New Delhi, India 
Visit us on the World Wide Web
http://www.techbooks.com 

[EMAIL PROTECTED] 
5650 Jillson St., Los Angeles, CA 90040 
(323) 888-8889 x331
(323) 888-1849 (Fax) 


TOMCAT SHUTDOWN STACK TRACE
Jan 14, 2005 4:40:43 PM org.apache.commons.digester.Digester startElement
SEVERE: Begin event threw exception
java.lang.ClassNotFoundException: org.apache.catalina.core.StandardServer
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at 
org.apache.commons.digester.ObjectCreateRule.begin(ObjectCreateRule.java:204)
at org.apache.commons.digester.Rule.begin(Rule.java:152)
at org.apache.commons.digester.Digester.startElement(Digester.java:1286)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown 
Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown 
Source)
at 
org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
 Source)
at 
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown 
Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.commons.digester.Digester.parse(Digester.java:1572)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:522)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:352)
at org.apache.catalina.startup.Catalina.process(Catalina.java:129)
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:156)
Catalina.stop: java.lang.ClassNotFoundException: 

Re: Tomcat Won't Shutdown

2005-01-14 Thread Parsons Technical Services
Going out on a limb here and don't know how much help I will be.

our questions are:
1) What got stepped on in Tomcat to cause this behavior?
My off the wall speculation is that the duplication of the jar files bit 
you.

2) Is there another way to stop Tomcat (other than system reboot), to see
if we can get it to restart gracefully?
I haven't done any work on SunOS but from the man pages it looks like a
ps -ef -u tomcat
replace tomcat with the user that tomcat is running as. You can omit the -u 
tomcat part and it should list all processes and their user. Look for the 
jvm or jsvc if started with that. If you know what user tomcat is running as 
it should be listed, according to the man pages.
then do a
kill ?
replace the ???s with the pid listed in the ps results

3) Is there a way to fix Tomcat, short of re-installing it?
Try removing the jar files.
Granted this leaves you with a problem but hopefully someone can help you 
with that.

Doug 


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