Re: Tomcat 5.5.17 protected pages JSP examples with valid user and invalid role results in msg 403.

2006-06-13 Thread [EMAIL PROTECTED]

Hi,
I received a response from Mark to the problem described below,
which was: not an issue/as per specs.
Does not look like that to me, because:

1) After trying to login as a valid user and receiving 403 msg,
you can not login with a valid user role even after invalidating the 
session.
So what is the user supposed to do (after entering username with incorrect 
role)?

a. Ask maintenance team to restart application?
b. Clean the cookies? (most users do not even know what the cookie is)
These are the only things that will allow him to access the page again.
How can this behavior be not an issue?

2) msg 403 as a per specs response for users attempt to access
protected page with valid user and invalid role does not look logical.
   Reason:
   a. after entering completely wrong username user is redirected to 
reasonably friendly custom error page.
   b. after entering correct username with incorrect role user sees 
unfriendly msg 403.
   Reaction to smaller mistake (case b) is less user friendly that for case 
a.

   This seems illogical.

Regards,
Val.


- Original Message - 
From: Mark Thomas [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 09, 2006 21:04
Subject: Re: Tomcat 5.5.17 protected pages JSP examples with valid user and 
invalid role results in msg 403.




[EMAIL PROTECTED] wrote:

Hi,

I am having problem with Tomcat 5.5.17 jsp example of accessing
protected pages
(example:  http://localhost:8080/jsp-examples/security/protected/)

Logging with valid user and role:
user/password/role=tomcat/tomcat/tomcat works fine.
Logging with a valid user and invalid role
(user/password/role=role1/tomcat/role1) results in msg 403
(HTTP Status 403 - Access to the requested resource has been denied).
I am using supplied tomcat-users.xml.

Before experimenting I made this role (role1) invalid by editing
webapps/jsp-examples/WEB-INF/web.xml file like:
...
auth-constraint
 role-nametomcat/role-name
 !-- role-namerole1/role-name --
/auth-constraint
...

After receiving msg 403 applicatin will not work even with the valid
user role (msg 403 produced).

I found the same problem for Tomcat4 reported at:
http://mail-archives.apache.org/mod_mbox/tomcat-dev/200204.mbox/[EMAIL 
PROTECTED]


This was resolved as INVALID. See
http://issues.apache.org/bugzilla/show_bug.cgi?id=8607


I also have seen somewhere that it was reported to be fixed for Tomcat4.


Not fixed, it was never an issue. See above.



Did the old problem penetrate to Tomcat 5.5.17 or
did I forget to configure something?


No, there isn't am issue.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Bandwidth statistics in Tomcat

2006-06-13 Thread Roland Rabben
Hi
Not sure if this is the correct forum, but can anybody point me in the
right direction to get live bandwidth usage stats and other server
stats from Tomcat?

My goal is to make a page that can display live Tomcat server stats.

Maybe even a graph of the bandwidth usage over time.

Roland
Scala Nordic AS
[EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Bandwidth statistics in Tomcat

2006-06-13 Thread Leon Rosenberg

www.lambdaprobe.org :-)

leon

On 6/13/06, Roland Rabben [EMAIL PROTECTED] wrote:

Hi
Not sure if this is the correct forum, but can anybody point me in the
right direction to get live bandwidth usage stats and other server
stats from Tomcat?

My goal is to make a page that can display live Tomcat server stats.

Maybe even a graph of the bandwidth usage over time.

Roland
Scala Nordic AS
[EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.17 protected pages JSP examples with valid user and invalid role results in msg 403.

2006-06-13 Thread Reinhard Moosauer
Hi,

please consider the following:
- Error 403 seems completely suitable from your words
- Browsers always store Login Info until the browser windows is closed 
  (No session here, this applies only to basic-auth!)
   With form auth: you can alyways provide a logout-button
- If Standard-errorpage is too unfriendly, provide a custom error page

If you think tomcat forgot to handle the 403, provide a page which handles 
this error and let the user log out continue to another page.

It is not illogical, because your case is rare enough to not be handled by 
default. Let us know, if this is good enough for you.

regards,


R.

Am Dienstag, 13. Juni 2006 09:59 schrieb [EMAIL PROTECTED]:
 Hi,
 I received a response from Mark to the problem described below,
 which was: not an issue/as per specs.
 Does not look like that to me, because:

 1) After trying to login as a valid user and receiving 403 msg,
 you can not login with a valid user role even after invalidating the
 session.
 So what is the user supposed to do (after entering username with incorrect
 role)?
 a. Ask maintenance team to restart application?
 b. Clean the cookies? (most users do not even know what the cookie is)
 These are the only things that will allow him to access the page again.
 How can this behavior be not an issue?

 2) msg 403 as a per specs response for users attempt to access
 protected page with valid user and invalid role does not look logical.
 Reason:
 a. after entering completely wrong username user is redirected to
 reasonably friendly custom error page.
 b. after entering correct username with incorrect role user sees
 unfriendly msg 403.
 Reaction to smaller mistake (case b) is less user friendly that for
 case a.
 This seems illogical.

 Regards,
 Val.


 - Original Message -
 From: Mark Thomas [EMAIL PROTECTED]
 To: Tomcat Users List users@tomcat.apache.org
 Sent: Friday, June 09, 2006 21:04
 Subject: Re: Tomcat 5.5.17 protected pages JSP examples with valid user and
 invalid role results in msg 403.

  [EMAIL PROTECTED] wrote:
  Hi,
 
  I am having problem with Tomcat 5.5.17 jsp example of accessing
  protected pages
  (example:  http://localhost:8080/jsp-examples/security/protected/)
 
  Logging with valid user and role:
  user/password/role=tomcat/tomcat/tomcat works fine.
  Logging with a valid user and invalid role
  (user/password/role=role1/tomcat/role1) results in msg 403
  (HTTP Status 403 - Access to the requested resource has been denied).
  I am using supplied tomcat-users.xml.
 
  Before experimenting I made this role (role1) invalid by editing
  webapps/jsp-examples/WEB-INF/web.xml file like:
  ...
  auth-constraint
   role-nametomcat/role-name
   !-- role-namerole1/role-name --
  /auth-constraint
  ...
 
  After receiving msg 403 applicatin will not work even with the valid
  user role (msg 403 produced).
 
  I found the same problem for Tomcat4 reported at:
  http://mail-archives.apache.org/mod_mbox/tomcat-dev/200204.mbox/%3C20020
 [EMAIL PROTECTED]
 
  This was resolved as INVALID. See
  http://issues.apache.org/bugzilla/show_bug.cgi?id=8607
 
  I also have seen somewhere that it was reported to be fixed for Tomcat4.
 
  Not fixed, it was never an issue. See above.
 
  Did the old problem penetrate to Tomcat 5.5.17 or
  did I forget to configure something?
 
  No, there isn't am issue.
 
  Mark
 
  -
  To start a new topic, e-mail: users@tomcat.apache.org
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Active JDBC connections monitoring

2006-06-13 Thread Edmon Begoli

Hi,

Is there an easy way to monitor number of actively used pooled JDBC
connections by each application on Tomcat 5.5.15?

If so, please explain the options.

--
Many thanks,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Outgoing requests to match a specific IP

2006-06-13 Thread Panos Konstantinidis
Hello, we have a computer that is registered to two IP addresses. I have
installed Tomcat on this computer and I have deployed a web application. This
web application does some XML processing and then sends a request to another
server. This other server is configured to only accept requests from a specific
IP address. Unfortunatelly this IP address is not the one Tocmat is bind to
when an outgoing request leaves. My question is how I can make Tomcat to tie a
specific request to otehr IP address, the one that is allowed to connect to the
second server. All information I have found so far is only for incoming
requests (listening) not for outgoing.

Any help is appreciated

Regards

Panos

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Outgoing requests to match a specific IP

2006-06-13 Thread Tim Funk

Its not a tomcat setting, it java socket programming.

http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20java.net.InetAddress,%20int)

Whatever library is making the outbound call should have an option to choose 
the local ip address the connection is bound to. If it doesn't, then you are SOL.


-Tim

Panos Konstantinidis wrote:

Hello, we have a computer that is registered to two IP addresses. I have
installed Tomcat on this computer and I have deployed a web application. This
web application does some XML processing and then sends a request to another
server. This other server is configured to only accept requests from a specific
IP address. Unfortunatelly this IP address is not the one Tocmat is bind to
when an outgoing request leaves. My question is how I can make Tomcat to tie a
specific request to otehr IP address, the one that is allowed to connect to the
second server. All information I have found so far is only for incoming
requests (listening) not for outgoing.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Outgoing requests to match a specific IP

2006-06-13 Thread Panos Konstantinidis
Hello Tim, thank you for your prompt reply. 

Your solution would work, however we are using a third party API that does this
call to the specific server (actually what it is doing is to issue an HTTP
request to another Servlet), and I do not have access to the source code, nor I
would like to decompile the API and modify the source code.

Any other alternatives?

Regards

Panos

--- Tim Funk [EMAIL PROTECTED] wrote:

 Its not a tomcat setting, it java socket programming.
 

http://java.sun.com/j2se/1.4.2/docs/api/java/net/Socket.html#Socket(java.net.InetAddress,%20int,%20java.net.InetAddress,%20int)
 
 Whatever library is making the outbound call should have an option to choose 
 the local ip address the connection is bound to. If it doesn't, then you are
 SOL.
 
 -Tim
 
 Panos Konstantinidis wrote:
  Hello, we have a computer that is registered to two IP addresses. I have
  installed Tomcat on this computer and I have deployed a web application.
 This
  web application does some XML processing and then sends a request to
 another
  server. This other server is configured to only accept requests from a
 specific
  IP address. Unfortunatelly this IP address is not the one Tocmat is bind to
  when an outgoing request leaves. My question is how I can make Tomcat to
 tie a
  specific request to otehr IP address, the one that is allowed to connect to
 the
  second server. All information I have found so far is only for incoming
  requests (listening) not for outgoing.
  
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Axis application running on Tomcat 4.1.31 in Windows XP as NT Service cannot access network units

2006-06-13 Thread Marcos Guerrero Gomez


Hello!

Our AXIS Web Service Application, using
*AXIS 1.2.1
*Tomcat 4.1.31
*Windows XP Professional SP2

The application try to open a file in a network unit to read it. 
(network unit like z:/, connected to other computer in my network like 
//computer2/commonresource/)
When we start Tomcat as normal application, using the tomcat script 
startup.bat the application works fine (opens the file and reads it), 
but when we start Tomcat as NT service, the application is not able to 
read the same file in the same unit, we get a FileNotFoundException. The 
file, obviously, exists, and the network unit has read and write 
permissions for all users.

The application works fine in the two ways (normal application and NT service) 
if the file is in a local unit (such C:/)

We have disabled the windows XP firewall, and we have changed the user 
credentials to start the service with the same user as the logged user 
(that is able to open the network units through the windows explorer) 
but the behavior doesn't change.

Any suggestions? Thank you very much in advance,
Marcos Guerrero







-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Example Balancer Rules and Information

2006-06-13 Thread Ryan Clark
Hi, I have deployed tomcat 5.0.28 (it has to be this version) and I need to 
configure it to redirect URLs sent to the ROOT to one of several webapps. I am 
using the balancer app as the ROOT application and I have been able to get the 
basic configuration working. (http://host1 redirects to http://host1/webapp1 
and http://host2 redirects to http://host2/webapp2) 
 
What I am looking for is to redirect urls such as http://hostname/dir/dir2 to 
http://hostname/webapp/dir/dir2 where dir2 is actually a variable which appears 
in the url as a directory and is handled by the webapp, so it cannot be 
hardcoded into the redirect. I have done some searching and I cannot find many 
examples of the rules that can be used for the standard balancer other than the 
3 examples that come in the rules.xml. 
 
Is what I am trying possible? I cannot use Apache in front of Tomcat as this 
causes further problems with the webapp. I would prefer not to do this via JSP 
if possible.
 
thanks
Ryan Clark
Senior Technical Consultant
Perspicuity Ltd
[EMAIL PROTECTED]
 
This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.

Internet communications are not always secure and therefore
PERSPICUITY LIMITED does not accept legal responsibility for this message or 
the content.

The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily represent those of PERSPICUITY 
LIMITED.

PERSPICUITY LIMITED UK, 2 Place Farm, Wheathampstead, Herts. AL4 8SB.
Registered in England  Wales No. 4365513

Installation problem

2006-06-13 Thread Bill Sandham
I am trying to install Tomcat 5.5. Installation gets to about 80% complete
and then it seems to just “hang”. Final action on list is “Using Jvm:
C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll”. No error messages
apparent.  

 

 

Bill Sandham

 

E-Mail: HYPERLINK mailto:[EMAIL PROTECTED][EMAIL PROTECTED]

 

The information in this e-mail is sent in confidence for the addressee only,
may be legally privileged, and must not be communicated in any way to any
other person other than the addressee. If you are not the individual or
organisation to whom this e-mail is addressed, please note that any form of
distribution, copying or use of this communication or any of the information
in it, is strictly prohibited and may be unlawful. If you have received this
e-mail in error please return it to the sender immediately. Whilst all
reasonable care has been taken to avoid the transmission of viruses, it is
the recipient's responsibility to ensure that any onward transmission,
opening or use of this e-mail and any attachments will not affect its
systems or data. Scotsig accepts no responsibility in this regard and the
recipient should carry out such virus and other checks as they consider
appropriate.

 


-- 
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/359 - Release Date: 08/06/2006
 


RE: Example Balancer Rules and Information

2006-06-13 Thread Gillespie Jr, Edward L. \(LNG-DAY\)
I know you mentioned that you can't use apache, but this looks like a
perfect use for Apache mod re-write.  This is how I would handle it.
In response to your question.   Yes, one way that this can be done is
with a web application running in tomcat.   For example a Servlet or jsp
can do a redirect or a forward of the request.

ED

-Original Message-
From: Ryan Clark [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 10:35 AM
To: users@tomcat.apache.org
Subject: Example Balancer Rules and Information

Hi, I have deployed tomcat 5.0.28 (it has to be this version) and I need
to configure it to redirect URLs sent to the ROOT to one of several
webapps. I am using the balancer app as the ROOT application and I have
been able to get the basic configuration working. (http://host1
redirects to http://host1/webapp1 and http://host2 redirects to
http://host2/webapp2) 
 
What I am looking for is to redirect urls such as
http://hostname/dir/dir2 to http://hostname/webapp/dir/dir2 where dir2
is actually a variable which appears in the url as a directory and is
handled by the webapp, so it cannot be hardcoded into the redirect. I
have done some searching and I cannot find many examples of the rules
that can be used for the standard balancer other than the 3 examples
that come in the rules.xml. 
 
Is what I am trying possible? I cannot use Apache in front of Tomcat as
this causes further problems with the webapp. I would prefer not to do
this via JSP if possible.
 
thanks
Ryan Clark
Senior Technical Consultant
Perspicuity Ltd
[EMAIL PROTECTED]
 
This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.

Internet communications are not always secure and therefore
PERSPICUITY LIMITED does not accept legal responsibility for this
message or the content.

The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily represent those of
PERSPICUITY LIMITED.

PERSPICUITY LIMITED UK, 2 Place Farm, Wheathampstead, Herts. AL4 8SB.
Registered in England  Wales No. 4365513

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HttpSession.invalidate() not working as expected

2006-06-13 Thread Chris Gibbons
I am trying to invalidate my session by calling 
HttpSession.invalidate(), the problem I am having is after I log in as a 
user, then log out, then log back in, the second log in doesn't call any 
of my authentication methods.  On logout I am calling 
HttpSession.invalidate() which doesn't throw any exceptions.  To test 
whether the invalidate method was actually working I made a second call 
to HttpSession.invalidate() which according to the API should throw an 
exception on the call to invalidate an already invalidated method.  This 
second invalidate doesn't throw an exception and I can still call 
HttpSession.getId() and have it return a valid value.  Could someone 
tell me why the invalidate() method is not really invalidating or a 
suggestion on a better way to do this?


Chris

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Not able to setup SSL on tomcat 5.5.17

2006-06-13 Thread Raja Shaker Garlapati

Hi all,
   My application is using embedded tomcat 5.0.28 and jdk 1.4 version.
I am in process of migrating to embedded tomcat 5.5.17 and jdk 1.5 version.
I have made some code changes to setup the application. All the context
paths are set. I am able to access the default ROOT files, the /manager
files and other contexts as well from the browser.
In the browser when I type the URL starting with http://localhost:8080/..
(My application context) I am able to debug the request in the Controller
servlet and when i am redirecting it to https://..:8443/ (My application
context) from the Controller servlet the browser shows The page cannot be
displayed in IE. Is their any thing wrong with the below code. I have
attached only a part of code that I thought was wrong in setting SSL
settings.

   // Assemble and install a default HTTP connector
   Connector cConnector =null;
   Connector cConnectorSecure = null;
   InetAddress address = null;
   try {
   cConnector = new Connector();
   cConnector.setSecure(false);
   cConnector.setPort(httpPort); // 8080
   address=InetAddress.getLocalHost();


//cConnector=(Connector)embedded.createConnector((java.net.InetAddress)null,
httpPort, false);
//commented the above line as createConnector is broken.
   cConnector.setRedirectPort(httpsPort);// 8443
   cConnector.setEnableLookups(true);
   cConnector.setProperty(address,address.toString());
   cConnector.setProperty(minSpareThreads,25);
   cConnector.setProperty(maxSpareThreads,75);
   cConnector.setProperty(acceptCount,100);
   cConnector.setProperty(connectionTimeout,2);
   cConnector.setProperty(disableUploadTimeout,true);

   cConnectorSecure = new Connector();
   cConnectorSecure.setScheme(secureUrl); // https
   cConnectorSecure.setPort(httpsPort); //8443
   cConnectorSecure.setSecure(true);
   cConnectorSecure.setEnableLookups(false);

  cConnectorSecure.setProperty(address,address.toString());

   cConnectorSecure.setProperty(minSpareThreads,25);
   cConnectorSecure.setProperty(maxSpareThreads,75);
   cConnectorSecure.setProperty(acceptCount,100);
   cConnectorSecure.setProperty(disableUploadTimeout,true);
   cConnectorSecure.setProperty(keystoreFile,keystoreFile);
//.keystore file
   cConnectorSecure.setProperty(keystorePass,keystorePass);
//keystore password
   cConnectorSecure.setProperty(clientAuth,clientAuth); //false
   cConnectorSecure.setProperty(sslProtocol,sslProtocolStr);
//TLS

   } catch (Exception exp) {
   exp.printStackTrace();
   }

   embedded.addConnector(cConnector);
   embedded.addConnector(cConnectorSecure);
try{
embedded.start();
}catch(Exception e){}

Thanks  Regards,
Raj.


RE: HttpSession.invalidate() not working as expected

2006-06-13 Thread Tim Lucia
Without seeing actual code, we can only guess. 

Have you made two consecutive calls to invalidate() [on the same thread] and
not received the documented exception?

Are you getting a different session id from getId()?

I am guessing you are making a second request, which creates a brand new
session.

What mechanism(s) are you using for logging in?  Your own?  Basic?  If the
latter, your browser will reuse the credentials as long as the browser
window is alive.

Tim


-Original Message-
From: Chris Gibbons [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 11:33 AM
To: users@tomcat.apache.org
Subject: HttpSession.invalidate() not working as expected

I am trying to invalidate my session by calling HttpSession.invalidate(),
the problem I am having is after I log in as a user, then log out, then log
back in, the second log in doesn't call any of my authentication methods.
On logout I am calling
HttpSession.invalidate() which doesn't throw any exceptions.  To test
whether the invalidate method was actually working I made a second call to
HttpSession.invalidate() which according to the API should throw an
exception on the call to invalidate an already invalidated method.  This
second invalidate doesn't throw an exception and I can still call
HttpSession.getId() and have it return a valid value.  Could someone tell me
why the invalidate() method is not really invalidating or a suggestion on a
better way to do this?

Chris

-
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



StringIndexOutOfBoundsException .... any ideas?

2006-06-13 Thread Mufaddal Khumri

Am using Tomcat 5.5.7

I get the following error in my Tomcat logs from time to time. Has 
anybody got a clue as to what might be the issue?


Log output:

2006-06-13 10:41:19.033917500 java.lang.StringIndexOutOfBoundsException: 
String index out of range: -15
2006-06-13 10:41:19.033919500   at 
java.lang.String.getChars(String.java:724)
2006-06-13 10:41:19.033920500   at 
org.apache.tomcat.util.buf.CharChunk.append(CharChunk.java:357)
2006-06-13 10:41:19.033922500   at 
org.apache.catalina.core.ApplicationContext.getRequestDispatcher(ApplicationContext.java:431)
2006-06-13 10:41:19.033979500   at 
org.apache.catalina.core.ApplicationContextFacade.getRequestDispatcher(ApplicationContextFacade.java:198)
2006-06-13 10:41:19.033983500   at 
org.apache.catalina.connector.Request.getRequestDispatcher(Request.java:1217)
2006-06-13 10:41:19.033985500   at 
org.apache.catalina.connector.RequestFacade.getRequestDispatcher(RequestFacade.java:560)
2006-06-13 10:41:19.033988500   at 
com.ac.t.web.filters.BrowseFilter.doFilter(BrowseFilter.java:189)
2006-06-13 10:41:19.034000500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.034003500   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-06-13 10:41:19.034006500   at 
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
2006-06-13 10:41:19.034026500   at 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
2006-06-13 10:41:19.034029500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.034032500   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-06-13 10:41:19.034034500   at 
com.ac.t.web.filters.TandooriFilter.doFilter(TandooriFilter.java:73)
2006-06-13 10:41:19.034045500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.034049500   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-06-13 10:41:19.034052500   at 
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
2006-06-13 10:41:19.034055500   at 
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
2006-06-13 10:41:19.034067500   at 
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
2006-06-13 10:41:19.034069500   at 
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
2006-06-13 10:41:19.034072500   at 
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
2006-06-13 10:41:19.034074500   at 
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
2006-06-13 10:41:19.034093500   at 
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:306)
2006-06-13 10:41:19.034095500   at 
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:385)
2006-06-13 10:41:19.034097500   at 
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:745)
2006-06-13 10:41:19.034099500   at 
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:675)
2006-06-13 10:41:19.034101500   at 
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:868)
2006-06-13 10:41:19.044690500   at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)

2006-06-13 10:41:19.044692500   at java.lang.Thread.run(Thread.java:595)
2006-06-13 10:41:19.050062500 39214478 ERROR StandardWrapper[:default] 
[269] - Servlet.service() for servlet default threw exception

2006-06-13 10:41:19.050068500 java.lang.NullPointerException
2006-06-13 10:41:19.050070500   at 
com.ac.t.web.filters.BrowseFilter.doFilter(BrowseFilter.java:189)
2006-06-13 10:41:19.050072500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.050075500   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-06-13 10:41:19.050117500   at 
com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:118)
2006-06-13 10:41:19.050120500   at 
com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52)
2006-06-13 10:41:19.050123500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.050126500   at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
2006-06-13 10:41:19.050137500   at 
com.ac.t.web.filters.TandooriFilter.doFilter(TandooriFilter.java:73)
2006-06-13 10:41:19.050140500   at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
2006-06-13 10:41:19.050143500   at 

Re: Bandwidth statistics in Tomcat

2006-06-13 Thread Mladen Adamovic

Roland Rabben wrote:

Not sure if this is the correct forum, but can anybody point me in the
right direction to get live bandwidth usage stats and other server
stats from Tomcat?
  

I do use AwStats for bandwidth and access usage.
See 
http://www.turro.org/xp/[EMAIL PROTECTED]@[EMAIL PROTECTED]folder=20050104154634840 
http://www.turro.org/xp/[EMAIL PROTECTED]@[EMAIL PROTECTED]folder=20050104154634840

I asked for something better before on this list, but no recomendation  :).

--
Mladen Adamovic
http://www.online-utility.org  http://www.shortopedia.com 
http://www.froola.com  http://www.gift-idea4u.com





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread carrie . latimer
When I compile my jsp and java files, I get 9 warnings from the jsp file.
It appears not to recognize the html tags ie unknown tag (html:cancel).
What have I done wrong?  Here is the login.jsp file.

%@ taglib uri=/WEB-INF/struts-bean prefix=bean %
%@ taglib uri=/WEB-INF/struts-html prefix=html %

html:html locale=true

head
titlebean:message key=welcome.title//title

html:base/

/head

body bgcolor=white

html:form action=/login

html:errors/

table

  tr

td align=center colspan=2
  font size=4Please Enter your Login/font
/td
  /tr

  tr
td align=right
Name
/td
  /tr
tr
td align=left
  html:text property=name size=4 maxlength=4/
/td
  /tr
  tr
td align=right
Password
/td
td align=left
  html:password property=password size=8 maxlength=8
/
/td
  /tr
  tr
td align=right
  html:submitSubmit/html:submit
/td
td align=left
  html:cancelCancel/html:cancel
/td
  /tr
/table
/html:form
/body
/html:html


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Configure Resource in context.xml does not work as expected

2006-06-13 Thread Renaud Waldura

Hello Timm:

I didn't get this to work, but found a workaround that's enough for my 
needs. I honestly think it's a bug. I've searched the Tomcat bug database, 
and there seem to be lots of things broken with deployment.


I wanted to deploy my application using the Tomcat Manager, pointing it to 
the directory where the application resides -- using the field labeled WAR 
or Directory URL, see attached screenshot. In that directory I have a 
META-INF/context.xml with resource configuration.


As you did, I found out that doing this copies myapp/META-INF/context.xml to 
CATALINA_HOME/conf/Catalina/localhost/myapp.xml but erases its content. The 
application gets deployed right the first time; any subsequent time, 
resource configuration is missing and the application will fail. It deploys 
OK, but e.g. won't talk to the database because the configuration 
information is not there.


What I do now is use the second field XML configuration file URL instead, 
and enter the full path to my context.xml, eg. 
file:/home/renaud/myapp/META-INF/context.xml. This context.xml must contain 
the proper path to the application in the docBase attribute, eg. 
docBase=/home/renaud/myapp. Let me know if this works for you.


--Renaud







I want to configure a JDBC-Resource within the Context of my web-app.
I placed a Resource-entry and a ResourceParams-entry as
child-elements of Context in the META-INF/contxt.xml-file. When I
deployed my app (via a file-URL) it gets configured accordingly at
first, but the resulting xml-file in conf\Catalina\localhost for the
web-app does not contain any child-elements within the Context-Tag
any more. So when I need to restart Tomcat my web-app is not
configured with the Resource anymore. I also tried to use the
override-Attribute, but this does not do any difference. I cannot
place the Resource in the server.xml since I have no access to it. So
my question is: How can I configure a Resource for a single web-app
only without using server.xml ? I'm using Tomcat 5.0.28.


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread David Kerber

[EMAIL PROTECTED] wrote:


When I compile my jsp and java files, I get 9 warnings from the jsp file.
It appears not to recognize the html tags ie unknown tag (html:cancel).
What have I done wrong?  Here is the login.jsp file.

%@ taglib uri=/WEB-INF/struts-bean prefix=bean %
%@ taglib uri=/WEB-INF/struts-html prefix=html %

html:html locale=true

head
titlebean:message key=welcome.title//title

html:base/
 

Where are you coming up with these html tags?  I've never seen tags that 
start with 'html:.  I'm used to seeing things like html, form 
name=myform, etc.




/head

body bgcolor=white

html:form action=/login

html:errors/

table

 tr

   td align=center colspan=2
 font size=4Please Enter your Login/font
   /td
 /tr

 tr
   td align=right
   Name
   /td
 /tr
tr
   td align=left
 html:text property=name size=4 maxlength=4/
   /td
 /tr
 tr
   td align=right
   Password
   /td
   td align=left
 html:password property=password size=8 maxlength=8
/
   /td
 /tr
 tr
   td align=right
 html:submitSubmit/html:submit
   /td
   td align=left
 html:cancelCancel/html:cancel
   /td
 /tr
/table
/html:form
/body
/html:html


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread Marc Farrow

David,
 Those tags are from the prefix of using teh struts-bean and
struts-html tag libraries.  I think you just do not know (or have not been
exposed) to tag libraries before.

Carrie,
  Try placing the file extension on your URI of your taglib tag.

On 6/13/06, David Kerber [EMAIL PROTECTED] wrote:


[EMAIL PROTECTED] wrote:

When I compile my jsp and java files, I get 9 warnings from the jsp file.
It appears not to recognize the html tags ie unknown tag (html:cancel).
What have I done wrong?  Here is the login.jsp file.

%@ taglib uri=/WEB-INF/struts-bean prefix=bean %
%@ taglib uri=/WEB-INF/struts-html prefix=html %

html:html locale=true

head
titlebean:message key=welcome.title//title

html:base/


Where are you coming up with these html tags?  I've never seen tags that
start with 'html:.  I'm used to seeing things like html, form
name=myform, etc.


/head

body bgcolor=white

html:form action=/login

html:errors/

table

  tr

td align=center colspan=2
  font size=4Please Enter your Login/font
/td
  /tr

  tr
td align=right
Name
/td
  /tr
tr
td align=left
  html:text property=name size=4 maxlength=4/
/td
  /tr
  tr
td align=right
Password
/td
td align=left
  html:password property=password size=8
maxlength=8
/
/td
  /tr
  tr
td align=right
  html:submitSubmit/html:submit
/td
td align=left
  html:cancelCancel/html:cancel
/td
  /tr
/table
/html:form
/body
/html:html


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread David Kerber

Marc Farrow wrote:


David,
 Those tags are from the prefix of using teh struts-bean and
struts-html tag libraries.  I think you just do not know (or have 
not been

exposed) to tag libraries before.


Ok, thanks.  You're correct that I haven't dealt with that kind of thing 
before.





Carrie,
  Try placing the file extension on your URI of your taglib tag.

On 6/13/06, David Kerber [EMAIL PROTECTED] wrote:



[EMAIL PROTECTED] wrote:

When I compile my jsp and java files, I get 9 warnings from the jsp 
file.

It appears not to recognize the html tags ie unknown tag (html:cancel).
What have I done wrong?  Here is the login.jsp file.

%@ taglib uri=/WEB-INF/struts-bean prefix=bean %
%@ taglib uri=/WEB-INF/struts-html prefix=html %

html:html locale=true

head
titlebean:message key=welcome.title//title

html:base/


Where are you coming up with these html tags?  I've never seen tags that
start with 'html:.  I'm used to seeing things like html, form
name=myform, etc.


/head

body bgcolor=white

html:form action=/login

html:errors/

table

  tr

td align=center colspan=2
  font size=4Please Enter your Login/font
/td
  /tr

  tr
td align=right
Name
/td
  /tr
tr
td align=left
  html:text property=name size=4 maxlength=4/
/td
  /tr
  tr
td align=right
Password
/td
td align=left
  html:password property=password size=8
maxlength=8
/
/td
  /tr
  tr
td align=right
  html:submitSubmit/html:submit
/td
td align=left
  html:cancelCancel/html:cancel
/td
  /tr
/table
/html:form
/body
/html:html






-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread carrie . latimer
David, I did not understand what you meant by Try placing the file
extension on your URI of your taglib tag.


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: I'm a Newbie - problem with recognition of html tags

2006-06-13 Thread Marc Farrow

Actually, it was I who suggested it.  Replace:

%@ taglib URI=WEB-INF/struts-bean prefix=bean
%@ taglib URI=WEB-INF/struts-html prefix=bean

with

%@ taglib URI=WEB-INF/struts-bean.tld prefix=bean
%@ taglib URI=WEB-INF/struts-html.tld prefix=bean


Also,
  Make sure the TLD file is in your WEB-INF directory of your application.
Or at least make sure the TLD files  are located in the same place as
referenced by your URI tag.

On 6/13/06, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:


David, I did not understand what you meant by Try placing the file
extension on your URI of your taglib tag.


Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





--
Marc Farrow


Tomcat5, Apache, mod_jk, and SSL

2006-06-13 Thread Stephen A. Cochran Lists


Looks like this is a common subject, but I haven't seen anyone  
talking about actually passing the SSL env variables to Tomcat.


Here's my setup:
httpd 2.0.x
Tomcat 5.5.x
mod_jk

Both Tomcat and Apache work over SSL when accessed directly (443, and  
8443 respectively). the JkMounts are forwarded correctly from apache  
to tomcat.


But Tomcat doesn't seem to be receiving the SSL env vars from Apache.  
The debug log for mod_jk shows the actual request that is passed, but  
isn't showing anything about the env vars.


Below is my mod_jk.conf (which is in included in httpd.conf). Any  
ideas how to get the SSL vars passed so Tomcat can still do the  
client cert verification?


Steve


LoadModule jk_module /usr/lib/httpd/modules/mod_jk.so

JkWorkersFile /etc/httpd/conf/workers.properties
JkLogFile /var/log/httpd/mod_jk.log
JkLogLevel debug
JkLogStampFormat [%a %b %d %H:%M:%S %Y] 
JkRequestLogFormat %w %V %T

# JkOptions indicate to send SSL KEY SIZE,
JkOptions +ForwardKeySize +ForwardURICompat -ForwardDirectories

# Should mod_jk send SSL information to Tomact (default is On)
JkExtractSSL On
# What is the indicator for SSL (default is HTTPS)
JkHTTPSIndicator HTTPS
# What is the indicator for SSL session (default is SSL_SESSION_ID)
JkSESSIONIndicator SSL_SESSION_ID
# What is the indicator for client SSL cipher suit (default is  
SSL_CIPHER)

JkCIPHERIndicator SSL_CIPHER
# What is the indicator for the client SSL certificated (default is  
SSL_CLIENT_C

ERT)
JkCERTSIndicator SSL_CLIENT_CERT


# Send servlet for context / jsp-examples to worker named worker1
JkMount /jsp-examples worker1
# Send JSPs for context /jsp-examples/* to worker named worker1
JkMount /jsp-examples/* worker1
# redirect of shibboleth
JkMount /shibboleth-idp/* worker1
# CAS
JkMount /cas/* worker1



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Invoking web services via Tomcat

2006-06-13 Thread [EMAIL PROTECTED]
Hello,

I've used Tomcat to build web services and it is terrific.
Thanks a lot to all the Tomcat developers.

I need to call out from a servlet to a remote web service.
I know I can do this by piecing together a HTTP POST,
but I wonder if there are some functions in Tomcat to make
this easier. Hopefully I am overlooking something obvious.

Also, the request must be made via HTTPS.
Hopefully that doesn't complicate things too much.

Thanks for any light you can shed on this topic.

Robert Dodier

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Newbie - Document Access Problem

2006-06-13 Thread Suba Suresh

Hi!

I am new to the web application development. So bear with me.

	I am using lucene with Tomcat as a standalone web server. I have a form 
to submit my query which gets handled by a servlet. The servlet brings 
back the document names which is hyperlinked to the directory it 
resides. The documents reside outside the installed web server 
directory.  So when I click on it I get document not found error. If the 
documents are copied into the WEB-INF directory I am able to access it. 
I require a way to access those documents outside the server. I read in 
apache it can be setup in the http.conf file with alias. Is there a way 
it could be achieved in Tomcat. What are my options?? (If I use file URL 
as hyperlink IE and Mozilla blocks them due to security. The link is dead.)


thanks,
suba suresh.

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Where is mod_jk.so?

2006-06-13 Thread Mann, Bradley
After running:

# ./configure --with-apache=/usr/apache
# make
# make install

I have 3 files that are placed in apache/modules/jk/. They are
config.m4, lib_jk.a, and lib_jk.la. All of the documentation I have read
online states that after building the connector I should be left with a
file mod_jk.so. How do I obtain this file?

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292



Embedded tomcat - returning 404 for all requests

2006-06-13 Thread Larkin Lowrey

Hello,

I am trying to get embedded tomcat running using v5.5.17. I can get the 
code to start but every request I make results in a 404 response and 
there is zero information in the logs to indicate the reason.


I ran strace on java when I ran the code and I could see that it located 
and fully read my html files but still returned 404!


Can someone please review my code and let me know what I'm doing wrong?

Here's my directory structure:

/home/llowrey/tomcat - code
/home/llowrey/tomcat/lib - all jars from tomcat 5.5.17
/home/llowrey/tomcat/console/ - a set of html and jsp files

Bellow is the source code...

import java.util.Properties;
import org.apache.log4j.*;
import org.apache.catalina.*;
import org.apache.catalina.connector.*;
import org.apache.catalina.startup.*;
import org.apache.catalina.valves.*;

public class Test
{
   public static void main(String args[])
   throws Exception
   {
   RollingFileAppender rfa = new RollingFileAppender(
   new PatternLayout(%d{-MM-dd HH:mm:ss.SSS Z} %p %t %c - 
%m%n),

   logs/console.log);
   rfa.setMaxBackupIndex(10);
   rfa.setMaxFileSize(1MB);
   rfa.setFile(console.log);
   Logger l = Logger.getRootLogger();
   l.addAppender(rfa);
   l.setLevel(Level.ALL);

   Embedded e = new Embedded();
   e.setCatalinaHome(/home/llowrey/tomcat);
   
   Engine eng = e.createEngine();

   eng.setDefaultHost(localhost);

   AccessLogValve alv = new AccessLogValve();
   alv.setPattern(%t %h %u %m \%r\ %s %b);
   alv.setRotatable(true);
   alv.setPrefix(access.);
   alv.setSuffix(.log);
   alv.setFileDateFormat(.MM.dd);
   alv.setDirectory(/home/llowrey/tomcat/logs);
   eng.getPipeline().addValve(alv);

   Host h = e.createHost(localhost, /home/llowrey/tomcat);
   eng.addChild(h);
 
   Context ctx = e.createContext(, /home/llowrey/tomcat/console);

   h.addChild(ctx);
   
   e.addEngine(eng);
   
   Connector c = e.createConnector((java.net.InetAddress)null, 
8090, false);// default host, port 8090, no SSL

   e.addConnector(c);

   e.start();

   System.out.println(started);
   }
}


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HELP Wanted

2006-06-13 Thread Tom Miller
Summarry:
I have five webased web site with java application.  One 
application per web site.

Here is my current enviroment:
OS =  Linux RedHat 4.0
Appache 2.0.50
Connector JK 1.2.6
Tomcat 5.5.4

I am currently have each website and application run on one 
machine.   I also have some machine with two Tomcat 
instance.  Each Tomcat instance support one virtual website 
and one application (context).



Here is my new requirements:

I have 5 webased application:


Main Site:
I would like all five web site run on the same machine #1 
(with Apache and JK connector). 
I would like all five application using the same Tomcat 
instance (multiple context) on the same machine #2.
Security and protect for both web site and application 
container need tobe consider in your implementation.

Failover and Clustering Site:
I would like machine #3 to be in cluster with machine #1 and 
machine #4 to be cluster with machine number #2.
I will use load balance for the appache (machine #1 and 
machine #3).
If you have a better sugguestion, I am listening.


I also included a sample topology.



I have built and configured all of my site with appache, 
tomcat and connector.  The part I need help with is the 
multiple context with one Tomcat instance and clustering.
I am currently have very little time to figure out how 
multiple context and clustering works.   

This is where I can use some help from some of you who have 
experienced with it and wanted to make some extra money.   
Please email if you are interested.

If none of you volunteer I will have to post my need on the 
list and keep bother you all until I get some solution (-: 
(-:

[EMAIL PROTECTED]


Thanks much,

Tom

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



HELP Wanted with attachment

2006-06-13 Thread Tom Miller
Summarry:
I have five webased web site with java application.  One 
application per web site.

Here is my current enviroment:
OS =  Linux RedHat 4.0
Appache 2.0.50
Connector JK 1.2.6
Tomcat 5.5.4

I am currently have each website and application run on one 
machine.   I also have some machine with two Tomcat 
instance.  Each Tomcat instance support one virtual website 
and one application (context).



Here is my new requirements:

I have 5 webased application:


Main Site:
I would like all five web site run on the same machine #1 
(with Apache and JK connector). 
I would like all five application using the same Tomcat 
instance (multiple context) on the same machine #2.
Security and protect for both web site and application 
container need tobe consider in your implementation.

Failover and Clustering Site:
I would like machine #3 to be in cluster with machine #1 and 
machine #4 to be cluster with machine number #2.
I will use load balance for the appache (machine #1 and 
machine #3).
If you have a better sugguestion, I am listening.


I also included a sample topology.



I have built and configured all of my site with appache, 
tomcat and connector.  The part I need help with is the 
multiple context with one Tomcat instance and clustering.
I am currently have very little time to figure out how 
multiple context and clustering works.   

This is where I can use some help from some of you who have 
experienced with it and wanted to make some extra money.   
Please email if you are interested.

If none of you volunteer I will have to post my need on the 
list and keep bother you all until I get some solution (-: 
(-:

[EMAIL PROTECTED]


Thanks much,

Tom

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

RE: Example Balancer Rules and Information

2006-06-13 Thread Ryan Clark
I have already set it up with Apache and it causes other issues with a document 
transfer mechanism which is part of the webapp (this is a Documentum Webtop 
setup if anyone knows that application). I can do nothing about them and a 
support call has been raised with the supplier. This solution means I can us a 
standard install of their webapp, but we can handle links that have been 
created with the old installation. I know I can use jsp but would like to do 
this by balancer rules if at all possible. Can that be done?
thanks

Ryan 


-Original Message-
From: Gillespie Jr, Edward L. (LNG-DAY) [mailto:[EMAIL PROTECTED]
Sent: Tue 13/06/2006 15:40
To: Tomcat Users List
Subject: RE: Example Balancer Rules and Information
 
I know you mentioned that you can't use apache, but this looks like a
perfect use for Apache mod re-write.  This is how I would handle it.
In response to your question.   Yes, one way that this can be done is
with a web application running in tomcat.   For example a Servlet or jsp
can do a redirect or a forward of the request.

ED

-Original Message-
From: Ryan Clark [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 10:35 AM
To: users@tomcat.apache.org
Subject: Example Balancer Rules and Information

Hi, I have deployed tomcat 5.0.28 (it has to be this version) and I need
to configure it to redirect URLs sent to the ROOT to one of several
webapps. I am using the balancer app as the ROOT application and I have
been able to get the basic configuration working. (http://host1
redirects to http://host1/webapp1 and http://host2 redirects to
http://host2/webapp2) 
 
What I am looking for is to redirect urls such as
http://hostname/dir/dir2 to http://hostname/webapp/dir/dir2 where dir2
is actually a variable which appears in the url as a directory and is
handled by the webapp, so it cannot be hardcoded into the redirect. I
have done some searching and I cannot find many examples of the rules
that can be used for the standard balancer other than the 3 examples
that come in the rules.xml. 
 
Is what I am trying possible? I cannot use Apache in front of Tomcat as
this causes further problems with the webapp. I would prefer not to do
this via JSP if possible.
 
thanks
Ryan Clark
Senior Technical Consultant
Perspicuity Ltd
[EMAIL PROTECTED]
 
This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.

Internet communications are not always secure and therefore
PERSPICUITY LIMITED does not accept legal responsibility for this
message or the content.

The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily represent those of
PERSPICUITY LIMITED.

PERSPICUITY LIMITED UK, 2 Place Farm, Wheathampstead, Herts. AL4 8SB.
Registered in England  Wales No. 4365513

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This message and any attachments are confidential and should only
be read by those to whom they are addressed. If you are not the
intended recipient, please contact us, delete the message from your
computer and destroy any copies. Any distribution or copying without
our prior permission is prohibited.

Internet communications are not always secure and therefore
PERSPICUITY LIMITED does not accept legal responsibility for this message or 
the content.

The recipient is responsible for verifying its authenticity before
acting on the contents. Any views or opinions presented are solely
those of the author and do not necessarily represent those of PERSPICUITY 
LIMITED.

PERSPICUITY LIMITED UK, 2 Place Farm, Wheathampstead, Herts. AL4 8SB.
Registered in England  Wales No. 4365513-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

mod_jk timeout question

2006-06-13 Thread FM
Hello,
Is there a way to set a timeout for mod_jk ? Something tomcat crashes
and httpd stops responding because every connection tries to connect to
tomcat (with mod_jk) but there is no time out.
I try this setting in worker.properties  :
worker.tomcat5.type=ajp13
worker.tomcat5.port=8009
worker.tomcat5.socket_timeout=20
worker.tomcat5.recycle_timeout=20
worker.tomcat5.host=localhost
worker.tomcat5.lbfactor=1

but it is not working

thanks !


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem clustering with multiple nodes

2006-06-13 Thread Troy Davidson
I am trying to get a horizontal and vertical cluster working.  There are 
three servers with two instances on Tomcat on each one.  The six Tomcat 
instances are to share session data amongst themselves.  The vertical 
clustering works fine.  I can log into the app on a server and if I stay 
on that server, the session is replicated.


But, as soon as I go to another server, the session is lost and I have 
to re login.


I see in the catalina.out that all the Tomcat instances are added:

NFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.9.100.2:4025,catalina,10.9.100.2,4025, 
alive=3]


There is an entry for each Tomcat that will be in the cluster.

I can't find any problem with how things are setup, but obviously there 
is a problem.   Here are the server.xml from two separate Tomcat's on 
separate servers.  If someone in the know can take a look and let me 
know if there is a problem, that would be great.  The servers can see 
each other and communication is happening.


++

server.xml from Tomcat4 on server1:

Server port=14005 shutdown=SHUTDOWN

 Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/


 GlobalNamingResources

   Environment name=simpleValue type=java.lang.Integer value=30/

   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /

 /GlobalNamingResources

 Service name=Catalina


   Connector port=14080 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=14443 acceptCount=100
  connectionTimeout=2 disableUploadTimeout=true /

   Connector port=14009
  enableLookups=false redirectPort=14443 
protocol=AJP/1.3 /


   Engine name=Standalone defaultHost=localhost jvmRoute=jvm14


 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

   Cluster 
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager

expireSessionsOnShutdown=false
useDirtyFlag=false
notifyListenersOnReplication=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr=228.0.0.4
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver
   
className=org.apache.catalina.cluster.tcp.ReplicationListener

   tcpListenAddress=10.9.100.1
   tcpListenPort=4014
   tcpSelectorTimeout=100
   tcpThreadCount=6/

   Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter

   replicationMode=pooled
   ackTimeout=15000
   waitForAck=true/

   Valve 
className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/


   ClusterListener 
className=org.apache.catalina.cluster.session.ClusterSessionListener/

   /Cluster

   Context path= docBase=app debug=0
   /Context

   Context path=/app docBase=app debug=0
   /Context
 /Host
   /Engine
 /Service
/Server



++

server.xml from Tomcat5 on server2:

Server port=25005 shutdown=SHUTDOWN
 Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener /
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/


 GlobalNamingResources
   Environment name=simpleValue type=java.lang.Integer value=30/
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources
 Service name=Catalina

   Connector port=25080 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=25443 acceptCount=100
  

where is the best place to secure a working tutorial for a web application with struts and tomcat? I am a newbie

2006-06-13 Thread carrie . latimer



Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: authentication problem deploying app to tomcat via ant

2006-06-13 Thread Anne Wilson

D'oh!

Turns out that the ant script (which I inherited - a minor excuse) was 
importing a properties file that set the very same properties I tried to 
define in the script, e.g., tomcat.manager.username.  Great minds name 
alike, I guess.  Properties being immutable, my changes were ignored.  I 
finally noticed the Override ignored messages when I ran ant in 
verbose mode.


The script works a lot better now that it's actually using the values I set!

Anne



Anne Wilson wrote:

Hi,

I am trying to manage my tomcat webapp via ant, that is, start it, stop 
it, list apps, etc.  But I keep bumping up against an authentication 
problem.


I have read this:

http://tomcat.apache.org/tomcat-5.0-doc/manager-howto.html#Configuring%20Manager%20Application%20Access 



and several other similar documents and related FAQs, etc., but am 
finding nothing that ties the error to this particular situation.



I have these and some other similar snippets in my build.xml:

property name=tomcat.home location=/opt/tomcat/
property name=tomcat.manager.url
   value=http://localhost:8080/manager/
property name=tomcat.manager.username value=/
property name=tomcat.manager.password value=y/

taskdef name=list classname=org.apache.catalina.ant.ListTask
  classpath
path location=${tomcat.home}/server/lib/catalina-ant.jar/
  /classpath
/taskdef

target name=list description=List Tomcat applications
  list url=${tomcat.manager.url}
username=${tomcat.manager.username}
password=${tomcat.manager.password}/
/target

Ant's [tidied] output is this (I may have munged the html):

list:
 [list] htmlheadtitleApache Tomcat/5.0.30 - Error 
report/titlestyle h1HTTP Status 401 - /h1 btype/b Status 
report/ppbmessage/b u/u/ppbdescription/b uThis 
request requires HTTP authentication ()./u

BUILD SUCCESSFUL
Total time: 1 second

I've checked the username and password multiple times against 
tomcat-users.xml so I believe they are correct.  (I didn't have it right 
at first, and the error then was Connection refused.  That error went 
away after I corrected them, so I think they are right now.)


I'm using java 1.5, tomcat 5.0.30, and ant 1.6.5 on Linux Fedora Core 5.

Any insights, suggestions or tips would be greatly appreciated!

TIA!

Anne





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Where is mod_jk.so?

2006-06-13 Thread Edmon Begoli

Bradley,

I may be wrong but I am not sure if your mod_jk actually got compiled.

mod_jk.so should be placed where the rest of your modules are.

Here is the description of the compilation process on Red Hat and where
mod_jk.so should end up:

http://blogs.ittoolbox.com/eai/software/archives/compiling-tomcat-connector-mod_jk-on-redhat-6805


Regards,
Edmon



-- Forwarded message --

From: Mann, Bradley [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Date: Tue, 13 Jun 2006 14:41:00 -0400
Subject: Where is mod_jk.so?
After running:

# ./configure --with-apache=/usr/apache
# make
# make install

I have 3 files that are placed in apache/modules/jk/. They are
config.m4, lib_jk.a, and lib_jk.la. All of the documentation I have read
online states that after building the connector I should be left with a
file mod_jk.so. How do I obtain this file?

Thanks,

Brad Mann
Software Engineer - Information Access Services
HARRIS Corporation / GCSD
(321) 984-6292




Using Ant install with Tomcat 5.5

2006-06-13 Thread Jeff Macomber
Hi All,

 

I am attempting to install a web app using the ant task install.  It is
failing when I use this:

 

install url=${tomcat.manager.url}

username=${tomcat.username}

password=${tomcat.password}

 
path=/SpeechApps/TransactionModel60_20060612141031

war=file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\/

 

but succeeding when I do this:

 

install url=${tomcat.manager.url}

username=${tomcat.username}

password=${tomcat.password}

 
path=/SpeechApps/TransactionModel60_20060612141031

war=file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\/

 

 

The only difference is the path.  In Tomcat 5.0 this works fine but
not in tomcat 5.5.  Is this a bug?  Am I doing something incorrectly?

 

I also tried using context.xml and the deploy tasks with the same
result.

 

Any help would be appreciated.


Jeff



Re: Using Ant install with Tomcat 5.5

2006-06-13 Thread Martin Gainty
Hey Jeff-

Ant is primarily a Nix utility which has been ported to DOS
so relative pathnames like '/fu/bar/fubar' always work 
but DOS paths like 'C:\Program Files\Way Too Many Spaces\Big Long ProgramName 
With Spaces.exe doesnt work
the workaround is
dir /X (give me short name)
so in the case of 
C:\Program Files\fu becomes 
C:\PROGRA~1\fu(which uses the shortened directory name)

Just a FYI--

Martin --
*
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



- Original Message - 
From: Jeff Macomber [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Tuesday, June 13, 2006 5:35 PM
Subject: Using Ant install with Tomcat 5.5


Hi All,

 

I am attempting to install a web app using the ant task install.  It is
failing when I use this:

 

install url=${tomcat.manager.url}

username=${tomcat.username}

password=${tomcat.password}

 
path=/SpeechApps/TransactionModel60_20060612141031

war=file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\/

 

but succeeding when I do this:

 

install url=${tomcat.manager.url}

username=${tomcat.username}

password=${tomcat.password}

 
path=/SpeechApps/TransactionModel60_20060612141031

war=file:C:\Program
Files\public\SpeechApps\TransactionModel60_20060612141031\/

 

 

The only difference is the path.  In Tomcat 5.0 this works fine but
not in tomcat 5.5.  Is this a bug?  Am I doing something incorrectly?

 

I also tried using context.xml and the deploy tasks with the same
result.

 

Any help would be appreciated.


Jeff



Re: Problem clustering with multiple nodes

2006-06-13 Thread Filip Hanik - Dev Lists

How do you go to another server?
are you using a load balancer?

ie, is your session cookie passed correctly when you switch server.

Filip


Troy Davidson wrote:
I am trying to get a horizontal and vertical cluster working.  There 
are three servers with two instances on Tomcat on each one.  The six 
Tomcat instances are to share session data amongst themselves.  The 
vertical clustering works fine.  I can log into the app on a server 
and if I stay on that server, the session is replicated.


But, as soon as I go to another server, the session is lost and I have 
to re login.


I see in the catalina.out that all the Tomcat instances are added:

NFO: Replication member 
added:org.apache.catalina.cluster.mcast.McastMember[tcp://10.9.100.2:4025,catalina,10.9.100.2,4025, 
alive=3]


There is an entry for each Tomcat that will be in the cluster.

I can't find any problem with how things are setup, but obviously 
there is a problem.   Here are the server.xml from two separate 
Tomcat's on separate servers.  If someone in the know can take a look 
and let me know if there is a problem, that would be great.  The 
servers can see each other and communication is happening.


++

server.xml from Tomcat4 on server1:

Server port=14005 shutdown=SHUTDOWN

 Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ 



 GlobalNamingResources

   Environment name=simpleValue type=java.lang.Integer value=30/

   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /

 /GlobalNamingResources

 Service name=Catalina


   Connector port=14080 maxHttpHeaderSize=8192
  maxThreads=150 minSpareThreads=25 maxSpareThreads=75
  enableLookups=false redirectPort=14443 
acceptCount=100

  connectionTimeout=2 disableUploadTimeout=true /

   Connector port=14009
  enableLookups=false redirectPort=14443 
protocol=AJP/1.3 /


   Engine name=Standalone defaultHost=localhost jvmRoute=jvm14


 Realm className=org.apache.catalina.realm.UserDatabaseRealm
resourceName=UserDatabase/

 Host name=localhost appBase=webapps
  unpackWARs=true autoDeploy=true
  xmlValidation=false xmlNamespaceAware=false

   Cluster 
className=org.apache.catalina.cluster.tcp.SimpleTcpCluster

managerClassName=org.apache.catalina.cluster.session.DeltaManager

expireSessionsOnShutdown=false
useDirtyFlag=false
notifyListenersOnReplication=true

   Membership
   className=org.apache.catalina.cluster.mcast.McastService
   mcastAddr=228.0.0.4
   mcastPort=45564
   mcastFrequency=500
   mcastDropTime=3000/

   Receiver
   
className=org.apache.catalina.cluster.tcp.ReplicationListener

   tcpListenAddress=10.9.100.1
   tcpListenPort=4014
   tcpSelectorTimeout=100
   tcpThreadCount=6/

   Sender
   
className=org.apache.catalina.cluster.tcp.ReplicationTransmitter

   replicationMode=pooled
   ackTimeout=15000
   waitForAck=true/

   Valve 
className=org.apache.catalina.cluster.tcp.ReplicationValve
  
filter=.*\.gif;.*\.js;.*\.jpg;.*\.png;.*\.htm;.*\.html;.*\.css;.*\.txt;/ 



   ClusterListener 
className=org.apache.catalina.cluster.session.ClusterSessionListener/

   /Cluster

   Context path= docBase=app debug=0
   /Context

   Context path=/app docBase=app debug=0
   /Context
 /Host
   /Engine
 /Service
/Server



++

server.xml from Tomcat5 on server2:

Server port=25005 shutdown=SHUTDOWN
 Listener className=org.apache.catalina.core.AprLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.ServerLifecycleListener /
 Listener 
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener 
/
 Listener 
className=org.apache.catalina.storeconfig.StoreConfigLifecycleListener/ 



 GlobalNamingResources
   Environment name=simpleValue type=java.lang.Integer value=30/
   Resource name=UserDatabase auth=Container
 type=org.apache.catalina.UserDatabase
  description=User database that can be updated and saved
  factory=org.apache.catalina.users.MemoryUserDatabaseFactory
 pathname=conf/tomcat-users.xml /
 /GlobalNamingResources
 Service name=Catalina

   Connector port=25080 

License query for jstl.jar

2006-06-13 Thread Simon Kitching
Hi,

File jstl.jar has been checked in here:
 
http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/js
r152/examples/WEB-INF/lib/
and here:
 
http://svn.apache.org/repos/asf/tomcat/tc6.0.x/trunk/webapps/examples/WEB-IN
F/lib/

This jar is used for running example code in Tomcat.

However it isn't clear to me whether the license for this jar in fact allows
this to be checked in.
The jar has 
  Implementation-Vendor: Sun Microsystems, Inc.
and
  Implementation-Version: 1.1.0-D13

As it happens, the Apache Taglibs project's JSTL also happens to insert 
  Implementation-Vendor: Sun Microsystems, Inc.
in its builds :-(. However as far as I can tell it doesn't generate an
Implementation-Version entry like the above, so presumably this jarfile is
in fact a real Sun jar. If this is indeed the case, then does Apache
actually have the legal right to directly redistribute this jarfile?

The svn commit that added this jar doesn't state where the file was sourced
from:
quote

r267015 | kinman | 2002-10-29 06:45:44 +1300 (Tue, 29 Oct 2002) | 26 lines

- Patch by Jan Leuhe

attached is a patch for the jakarta-servletapi-5 repository including
the following changes:

- TagVariableInfo.java:
  * Removed constructor that takes the name of a fragment.
  * Removed getFragment().
  * Removed private field fragment.

- JspFragment.java:
  * Removed Map parameter from invoke().

- Updated the simpletag and tagfiles examples accordingly.

Please notice that the patch also requires adding JSTL to the
examples.war webapp. This is required because this webapp's tag files
need to use JSTL's c:set action to set scoped variables before
fragment invocations, now that jsp:invoke and jsp:doBody no longer
have a nested jsp:param.

PR:
Obtained from:
Submitted by:
Reviewed by:
/quote


Regards,

Simon



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Axis application running on Tomcat 4.1.31 in Windows XP as NT Service cannot access network units

2006-06-13 Thread Mark Thomas
Marcos Guerrero Gomez wrote:
 We have disabled the windows XP firewall, and we have changed the user
 credentials to start the service with the same user as the logged user
 (that is able to open the network units through the windows explorer)
 but the behavior doesn't change.
 Any suggestions? Thank you very much in advance,
 Marcos Guerrero

I am pretty sure windows doesn't make mapped networks drives available
by default to services. You could try one of the following:
- access the resource via a UNC path
- add some code to map the drive in your app (context listener)

HTH,

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Installation problem

2006-06-13 Thread Mark Thomas
Bill Sandham wrote:
 I am trying to install Tomcat 5.5. Installation gets to about 80% complete
 and then it seems to just “hang”. Final action on list is “Using Jvm:
 C:\Program Files\Java\jre1.5.0_07\bin\client\jvm.dll”. No error messages
 apparent.

Try:
- using the .zip distro
- checking the MD5 of the downloaded file

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: StringIndexOutOfBoundsException .... any ideas?

2006-06-13 Thread Mark Thomas
When starting a new thread (ie sending a message to the list about a
new topic) please do not reply to an existing message and change the
subject line. To many of the list archiving services and mail clients
used by list subscribers this  makes your new message appear as part
of the old thread. This makes it harder for other users to find
relevant information when searching the lists.

This is known as thread hijacking and is behaviour that is frowned
upon on this list. Frequent offenders will be removed from the list.
It should also be noted that many list subscribers automatically
ignore any messages that hijack another thread.

The correct procedure is to create a new message with a new subject.
This will start a new thread.

Mark
tomcat-user-owner

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: where is the best place to secure a working tutorial for a web application with struts and tomcat? I am a newbie

2006-06-13 Thread Tim Lucia
Struts comes with one.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]

Sent: Tuesday, June 13, 2006 5:17 PM
To: users@tomcat.apache.org; [EMAIL PROTECTED]
Subject: where is the best place to secure a working tutorial for a web
application with struts and tomcat? I am a newbie




Carrie Latimer
Florida's Turnpike Enterprise
Tolls Data Center
Main 561.488.5361
SC 247.5361
Fax 561.470.6615
Mobile: 561.239.6189
Nextel: 158*763*109
[EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invoking web services via Tomcat

2006-06-13 Thread Mark Thomas
[EMAIL PROTECTED] wrote:
 Hello,
 
 I've used Tomcat to build web services and it is terrific.
 Thanks a lot to all the Tomcat developers.
 
 I need to call out from a servlet to a remote web service.
 I know I can do this by piecing together a HTTP POST,
 but I wonder if there are some functions in Tomcat to make
 this easier. Hopefully I am overlooking something obvious.

Nope. 'fraid not. However, take a look at
http://jakarta.apache.org/httpcomponents/index.html

Mark


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Newbie - Document Access Problem

2006-06-13 Thread Mark Thomas
What OS are you using?

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: License query for jstl.jar

2006-06-13 Thread Simon Kitching
 

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 14, 2006 11:32 AM
 To: Tomcat Users List
 Subject: Re: License query for jstl.jar
 
 Simon Kitching wrote:
  However it isn't clear to me whether the license for this 
 jar in fact 
  allows this to be checked in.
  The jar has
  Implementation-Vendor: Sun Microsystems, Inc.
  and
  Implementation-Version: 1.1.0-D13
 
 The Servlet expert group used the Apache repository to 
 develop the implementations of the spec so this is fine.

Unfortunately, in order to satisfy both my companies' lawyers and the
client's lawyers I think I would need to show that this jar is indeed built
from ASL-licensed code.

Does anyone have a link to a page from Sun that shows that they did in fact
use the Apache code base to create this jar? Neither the Sun JSTL home page:
  http://java.sun.com/products/jsp/jstl
nor the JSR052 page:
  http://jcp.org/aboutJava/communityprocess/final/jsr052/index2.html
have any such statement.

The Jakarta Taglibs project page does say so, but as the
Implementation-Vendor in the binary file is Sun I don't think this carries
much weight..

Thanks,

Simon



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: License query for jstl.jar

2006-06-13 Thread Mark Thomas
IANAL...

Simon Kitching wrote:
 Unfortunately, in order to satisfy both my companies' lawyers and the
 client's lawyers I think I would need to show that this jar is indeed built
 from ASL-licensed code.

This is *not* ASL licenced code.

 Does anyone have a link to a page from Sun that shows that they did in fact
 use the Apache code base to create this jar? Neither the Sun JSTL home page:
   http://java.sun.com/products/jsp/jstl

The
http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/
codebase is *not* an Apache codebase. Think of it as Apache providing
hosting services for the expert group.

You might want to try the [EMAIL PROTECTED] list.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: License query for jstl.jar

2006-06-13 Thread Simon Kitching
 

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 14, 2006 12:42 PM
 To: Tomcat Users List
 Subject: Re: License query for jstl.jar
 
 IANAL...

Understood; I'm grateful for your comments anyway..

 
 Simon Kitching wrote:
  Unfortunately, in order to satisfy both my companies' 
 lawyers and the 
  client's lawyers I think I would need to show that this jar 
 is indeed 
  built from ASL-licensed code.
 
 This is *not* ASL licenced code.

Actually, every file I've looked at in the jakarta taglibs project DOES have
the standard ASL2.0 licensing embedded in it, and in addition they all
contain an Apache Foundation copyright statement:
http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/js
r152/src/share/javax/servlet/jsp/ErrorData.java

Of course the license statement is the key to making the code open source,
but the copyright assignment is a bonus.

 
  Does anyone have a link to a page from Sun that shows that 
 they did in 
  fact use the Apache code base to create this jar? Neither 
 the Sun JSTL home page:
  http://java.sun.com/products/jsp/jstl
 
 The
 http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-j
 sp2.0-tc5.x/
 codebase is *not* an Apache codebase. Think of it as Apache 
 providing hosting services for the expert group.

By Apache code base I simply mean that the code is licensed under the
ASL2.0.

All the code in the jakarta taglibs standard lib project certainly is, and
I'm pretty sure that it is ASF policy that only ASL-licensed files can be
stored in apache svn or served from apache download sites. I've been
involved with Apache for many years now, and am not aware of any cases to
the contrary.

The problem I have here is that it isn't clear that the jarfile checked in
to tomcat's svn is actually built from the ASL-licensed source in the
jakarta taglibs project. If someone could point me at a Sun webpage that
says Click here to download the reference implementation of jstl-1.0.1.jar
or visit jakarta.apache.org/taglibs to download the source then that would
be the key. Unfortunately I just can't find any such page. That's my problem
of course, but any pointers will be greatly appreciated.

 
 You might want to try the [EMAIL PROTECTED] list.

Yes, I'll do that. I'm personally quite confident there aren't any licensing
problems; however I'm not so confident it actually *says* so anywhere...

Cheers,

Simon



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: License query for jstl.jar

2006-06-13 Thread Mark Thomas
Simon Kitching wrote:
 Actually, every file I've looked at in the jakarta taglibs project DOES have
 the standard ASL2.0 licensing embedded in it, and in addition they all
 contain an Apache Foundation copyright statement:
 http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc5.x/js
 r152/src/share/javax/servlet/jsp/ErrorData.java

My apologies, I had forgotten these files carried that licence.
However, I am confused. This file is part of the servlet spec, it is
nothing to do with the Jakarta taglibs which is where this discussion
started.

I have never seen a clear explanation of the relationship between the
Servlet Expert Group, this repository and Sun's 'official' jar. To be
honest, I haven't particularly gone looking for one. If you find one,
let me know.

 You might want to try the [EMAIL PROTECTED] list.
 
 Yes, I'll do that. I'm personally quite confident there aren't any licensing
 problems; however I'm not so confident it actually *says* so anywhere...

Or the taglibs sub-project.

Mark

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 5.5.17 protected pages JSP examples with valid user and invalid role results in msg 403.

2006-06-13 Thread [EMAIL PROTECTED]

Hi, Reinhard,


- Error 403 seems completely suitable from your words
I think that normal error page, configured in web.xml form-error-page tag 
will be more logical.



- Browsers always store Login Info until the browser windows is closed
 (No session here, this applies only to basic-auth!)
  With form auth: you can alyways provide a logout-button

And this logout-button will invalidate session, right?
But this will not stop msg403 to appear after 1st incorrect role attempt, as 
I mentioned before.

I was using standard example with form auth!


- If Standard-errorpage is too unfriendly, provide a custom error page

Yes it is possible, I forgot about error-page tag, thank you.
But still, problems mentioned above prevail.

Regards,
Val.



If you think tomcat forgot to handle the 403, provide a page which handles
this error and let the user log out continue to another page.

It is not illogical, because your case is rare enough to not be handled by
default. Let us know, if this is good enough for you.

regards,


R.

Am Dienstag, 13. Juni 2006 09:59 schrieb [EMAIL PROTECTED]:

Hi,
I received a response from Mark to the problem described below,
which was: not an issue/as per specs.
Does not look like that to me, because:

1) After trying to login as a valid user and receiving 403 msg,
you can not login with a valid user role even after invalidating the
session.
So what is the user supposed to do (after entering username with 
incorrect

role)?
a. Ask maintenance team to restart application?
b. Clean the cookies? (most users do not even know what the cookie is)
These are the only things that will allow him to access the page again.
How can this behavior be not an issue?

2) msg 403 as a per specs response for users attempt to access
protected page with valid user and invalid role does not look logical.
Reason:
a. after entering completely wrong username user is redirected to
reasonably friendly custom error page.
b. after entering correct username with incorrect role user sees
unfriendly msg 403.
Reaction to smaller mistake (case b) is less user friendly that for
case a.
This seems illogical.

Regards,
Val.


- Original Message -
From: Mark Thomas [EMAIL PROTECTED]
To: Tomcat Users List users@tomcat.apache.org
Sent: Friday, June 09, 2006 21:04
Subject: Re: Tomcat 5.5.17 protected pages JSP examples with valid user 
and

invalid role results in msg 403.

 [EMAIL PROTECTED] wrote:
 Hi,

 I am having problem with Tomcat 5.5.17 jsp example of accessing
 protected pages
 (example:  http://localhost:8080/jsp-examples/security/protected/)

 Logging with valid user and role:
 user/password/role=tomcat/tomcat/tomcat works fine.
 Logging with a valid user and invalid role
 (user/password/role=role1/tomcat/role1) results in msg 403
 (HTTP Status 403 - Access to the requested resource has been denied).
 I am using supplied tomcat-users.xml.

 Before experimenting I made this role (role1) invalid by editing
 webapps/jsp-examples/WEB-INF/web.xml file like:
 ...
 auth-constraint
  role-nametomcat/role-name
  !-- role-namerole1/role-name --
 /auth-constraint
 ...

 After receiving msg 403 applicatin will not work even with the valid
 user role (msg 403 produced).

 I found the same problem for Tomcat4 reported at:
 http://mail-archives.apache.org/mod_mbox/tomcat-dev/200204.mbox/%3C20020
[EMAIL PROTECTED]

 This was resolved as INVALID. See
 http://issues.apache.org/bugzilla/show_bug.cgi?id=8607

 I also have seen somewhere that it was reported to be fixed for 
 Tomcat4.


 Not fixed, it was never an issue. See above.

 Did the old problem penetrate to Tomcat 5.5.17 or
 did I forget to configure something?

 No, there isn't am issue.

 Mark

 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: License query for jstl.jar

2006-06-13 Thread Simon Kitching
 

 -Original Message-
 From: Mark Thomas [mailto:[EMAIL PROTECTED] 
 Sent: Wednesday, June 14, 2006 1:23 PM
 To: Tomcat Users List
 Subject: Re: License query for jstl.jar
 
 Simon Kitching wrote:
  Actually, every file I've looked at in the jakarta taglibs project 
  DOES have the standard ASL2.0 licensing embedded in it, and in 
  addition they all contain an Apache Foundation copyright statement:
  
 http://svn.apache.org/repos/asf/tomcat/servletapi/servlet2.4-jsp2.0-tc
  5.x/js r152/src/share/javax/servlet/jsp/ErrorData.java
 
 My apologies, I had forgotten these files carried that licence.
 However, I am confused. This file is part of the servlet 
 spec, it is nothing to do with the Jakarta taglibs which is 
 where this discussion started.

Yep, sorry. Had too many windows open :-;

This is a more appropriate example - still has that valid Apache license:
http://svn.apache.org/repos/asf/jakarta/taglibs/proper/standard/trunk/src/ja
vax/servlet/jsp/jstl/core/ConditionalTagSupport.java


Regards,

Simon



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: JSPs will not load with virtual domain/Context Issue

2006-06-13 Thread Dave Kennell

Well,

Your context idea was a step in the right direction. I hate to be a bother 
however now as long as the JSP is in the root. It works great. But as soon 
as I try to goto www.test.com/admin it cannot find any of the classes that 
my JSPs have in them. Ive tried adding multiple variations of context tags 
within the host to remidy this with no luck in fixing the issue...


Thanks,
Dave




Original Message Follows
From: Mladen Adamovic [EMAIL PROTECTED]
Reply-To: Tomcat Users List users@tomcat.apache.org
To: Tomcat Users List users@tomcat.apache.org
Subject: Re: JSPs will not load with virtual domain
Date: Sun, 11 Jun 2006 10:07:21 +0200

Dave Kennell wrote:
So I've come to the conclusion that it is entirly disregarding my WEB-INF 
folder...

Is WEB-INF folder under webapps/test?
Hm, I had some problems and find out on this mailing list that good idea is 
to move everything from webapps/test to webapps/test/ROOT

and my server.xml have something like :
 Host name=www.test.com debug=0 appBase=webapps/test
 unpackWARs=false autoDeploy=true   
   Aliastest.com/Alias
   Context path= docBase=ROOT/
 /Host

Although using of Context inside Host tag is discouraged in new version of 
Tomcat this works for me.




--
Mladen Adamovic
http://www.online-utility.org  http://www.shortopedia.com 
http://www.froola.com  http://www.gift-idea4u.com




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem with tag library calling

2006-06-13 Thread Alex Turner

This is still an issue - I'm trying to get a client to live... This syntax
error really doesn't help me actualy fix the problem

Please help somebody... This is a disaster right now.

Alex.

On 6/12/06, Alex Turner [EMAIL PROTECTED] wrote:


It looks like it's generating the following function:

  private boolean _jspx_meth_mp_dynselect_0(PageContext
_jspx_page_context)
  throws Throwable {
PageContext pageContext = _jspx_page_context;
JspWriter out = _jspx_page_context.getOut();
//  mp:dynselect
com.mintpixels.web.helper.Dynselect _jspx_th_mp_dynselect_0 = new
com.mintpixels.web.helper.Dynselect();
_jspx_th_mp_dynselect_0.setJspContext(_jspx_page_context);
_jspx_th_mp_dynselect_0.setFoo(([Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, foo, Selling,Refinancing));
_jspx_th_mp_dynselect_0.setName(selling_refinancing);
_jspx_th_mp_dynselect_0.doTag();
return false;
  }


Is it just me, or does the line: _jspx_th_mp_dynselect_0.setFoo(([
Ljava.lang.String
;)org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager([
Ljava.lang.String;.class, foo, Selling,Refinancing));

got a couple of syntax errors?

Alex


On 6/12/06, Alex Turner  [EMAIL PROTECTED] wrote:

 I have the following lines in my source file:

 %@ taglib prefix=mp uri=com.mintpixels.web.helper %
 [snip]
 mp:dynselect values=Selling,Refininancing
 name=selling_refinancing/

 When I run the jsp, I get the following errors:

 org.apache.jasper.JasperException: Unable to compile class for JSP

 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
 Generated servlet error:


 Syntax error on token [, delete this token

 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
 Generated servlet error:
 Syntax error on token ;, delete this token



 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
 Generated servlet error:
 Syntax error, insert ) to complete Expression

 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp


 Generated servlet error:
 Syntax error on token ;, delete this token

 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
 Generated servlet error:
 Syntax error, insert ] to complete Expression



 An error occurred at line: 69 in the jsp file: /free_home_valuation.jsp
 Generated servlet error:
 Syntax error on token ), delete this token


org.apache.jasper.compiler.DefaultErrorHandler.javacError

 (DefaultErrorHandler.java:84)

org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:328)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:409)
org.apache.jasper.compiler.Compiler.compile

 (Compiler.java:288)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java

 :563)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java

 :264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

 If I comment the line out (jsp comment %--) the code runs fine.

 Anyone come across anything like this, cos I'm fresh out of ideas? (I
 have deleted the work directory, restarted the server, re-copied all the
 application code into the webapps directory to ensure that there can't be
 any old code lying around).

 Alex.





Tomcat Service on Windows.

2006-06-13 Thread Gohil, Jayesh
Hi,

Can anyone tell me how to change the login name of Tomact NT Service on 
windows.As it uses System account whereas I want it to use my domain login.

Kindly reply asap.

Thanks.

Regards,

Jayesh Gohil
Build/SCM Engineer.
L10NBRIDGE Technologies Pvt. Ltd.
EXTN : 7523



Re: Tomcat Service on Windows.

2006-06-13 Thread Filip Hanik - Dev Lists
you're better off using a different wrapper than the one that comes with 
Tomcat,

this one allows for thread dumps and more customizations

http://people.apache.org/~fhanik/wrapper.html

In the wrapper.conf file you can change the name for your NT service

Gohil, Jayesh wrote:

Hi,

Can anyone tell me how to change the login name of Tomact NT Service on 
windows.As it uses System account whereas I want it to use my domain login.

Kindly reply asap.

Thanks.

Regards,

Jayesh Gohil
Build/SCM Engineer.
L10NBRIDGE Technologies Pvt. Ltd.
EXTN : 7523


  



No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006
  



--


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Service on Windows.

2006-06-13 Thread Gohil, Jayesh
I think I could not convey my message properly.

By logon name I mean the user account it uses and not the name of the 
service.As by default it uses local sysytem account , but I want it to use My 
Doamin login account...

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 14, 2006 10:19 AM
To: Tomcat Users List
Subject: Re: Tomcat Service on Windows.


you're better off using a different wrapper than the one that comes with 
Tomcat,
this one allows for thread dumps and more customizations

http://people.apache.org/~fhanik/wrapper.html

In the wrapper.conf file you can change the name for your NT service

Gohil, Jayesh wrote:
 Hi,

 Can anyone tell me how to change the login name of Tomact NT Service on 
 windows.As it uses System account whereas I want it to use my domain login.

 Kindly reply asap.

 Thanks.

 Regards,

 Jayesh Gohil
 Build/SCM Engineer.
 L10NBRIDGE Technologies Pvt. Ltd.
 EXTN : 7523


   
 

 No virus found in this incoming message.
 Checked by AVG Free Edition.
 Version: 7.1.394 / Virus Database: 268.8.3/362 - Release Date: 6/12/2006
   


-- 


Filip Hanik

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Configure Resource in context.xml does not work as expected

2006-06-13 Thread Vijaya
Hello Renaud,

Can you post the context.xml? I have the same problem. For development
sake, I have added the resource in server.xml whereas in production
machine, I will not have the access to the server.xml.

Thanks,
Vijaya

-Original Message-
From: Renaud Waldura [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, June 13, 2006 10:21 PM
To: [EMAIL PROTECTED]
Cc: users@tomcat.apache.org
Subject: Re: Configure Resource in context.xml does not work as expected

Hello Timm:

I didn't get this to work, but found a workaround that's enough for my 
needs. I honestly think it's a bug. I've searched the Tomcat bug
database, 
and there seem to be lots of things broken with deployment.

I wanted to deploy my application using the Tomcat Manager, pointing it
to 
the directory where the application resides -- using the field labeled
WAR 
or Directory URL, see attached screenshot. In that directory I have a 
META-INF/context.xml with resource configuration.

As you did, I found out that doing this copies
myapp/META-INF/context.xml to 
CATALINA_HOME/conf/Catalina/localhost/myapp.xml but erases its content.
The 
application gets deployed right the first time; any subsequent time, 
resource configuration is missing and the application will fail. It
deploys 
OK, but e.g. won't talk to the database because the configuration 
information is not there.

What I do now is use the second field XML configuration file URL
instead, 
and enter the full path to my context.xml, eg. 
file:/home/renaud/myapp/META-INF/context.xml. This context.xml must
contain 
the proper path to the application in the docBase attribute, eg. 
docBase=/home/renaud/myapp. Let me know if this works for you.

--Renaud




 

 I want to configure a JDBC-Resource within the Context of my web-app.
 I placed a Resource-entry and a ResourceParams-entry as
 child-elements of Context in the META-INF/contxt.xml-file. When I
 deployed my app (via a file-URL) it gets configured accordingly at
 first, but the resulting xml-file in conf\Catalina\localhost for the
 web-app does not contain any child-elements within the Context-Tag
 any more. So when I need to restart Tomcat my web-app is not
 configured with the Resource anymore. I also tried to use the
 override-Attribute, but this does not do any difference. I cannot
 place the Resource in the server.xml since I have no access to it. So
 my question is: How can I configure a Resource for a single web-app
 only without using server.xml ? I'm using Tomcat 5.0.28.

 




-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



problems with unsubscribing

2006-06-13 Thread Kris Reese
OK -- I've been trying to unsubscribe from the mailing list, many many many 
many times now by sending a blank e-mail to 
[EMAIL PROTECTED] but it's not working.  Can anybody tell 
me what is going on here?


Thank you.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



help getting jsvc up and running on sles9 on ibm pseries (power5)

2006-06-13 Thread Christian Andersson
Hi there, I have a small problem that I'. hoping that you can help me solve.

I want to be able to run tomcat on a server that we have available at a
hosting firm.

I can get tomcat up and running on it witohut problem, as long as I
don't try to use jsvc..  and I need jsvc sicne I don't want to run tomat
as root, or manually start tomcat whenever there is a restart of the
server, etc..

I've tried compiling the jsvc that comes with tomcat, but no luck, so I
downloaded deamons 1.0.1 and tried to get that compiling, and still no
luck, after searching/following different hints that I found on the net
(I'll ge over those later) I do get jsvc compiled, but I still cannot
run it, because it looks like jsvc is compiled as a 32 bit binary and
the ibm-java that I have is a 64 bit binary.

anyway here is a list of what I've done (not much)

after downloading and unpacking jsvc I went into
daemon-1.0.1/src/native/unix and did a ./configure
--with-java=/opt/ibm/java2-ppc64-50

and got the following result..

--
*** Current host ***
checking build system type... ./support/config.guess: unable to guess
system type

This script, last modified 2001-04-20, has failed to recognize
the operating system you are using. It is advised that you
download the most up to date version of the config scripts from

ftp://ftp.gnu.org/pub/gnu/config/

If the version you run (./support/config.guess) is already up to date,
please
send the following data and any information you think might be
pertinent to [EMAIL PROTECTED] in order to provide the needed
information to handle your system.

config.guess timestamp = 2001-04-20

uname -m = ppc64
uname -r = 2.6.5-7.252-pseries64
uname -s = Linux
uname -v = #1 SMP Tue Feb 14 11:11:04 UTC 2006

/usr/bin/uname -p =
/bin/uname -X =

hostinfo   =
/bin/universe  =
/usr/bin/arch -k   =
/bin/arch  = ppc64
/usr/bin/oslevel   =
/usr/convex/getsysinfo =

UNAME_MACHINE = ppc64
UNAME_RELEASE = 2.6.5-7.252-pseries64
UNAME_SYSTEM  = Linux
UNAME_VERSION = #1 SMP Tue Feb 14 11:11:04 UTC 2006
configure: error: cannot guess build type; you must specify one
--

after downloading the newest config.guess from
http://cvs.savannah.gnu.org/viewcvs/*checkout*/config/config/config.guess
(the above specified link leads to this file) and replacing the existing
one in  daemon-1.0.1/src/native/unix/support and once more execute
configure I get the following...

--
*** Current host ***
checking build system type... powerpc64-unknown-linux-gnu
checking host system type... powerpc64-unknown-linux-gnu
checking cached host system type... ok
*** C-Language compilation tools ***
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ranlib... ranlib
*** Host support ***
checking C flags dependant on host system type... failed
configure: error: Unsupported CPU architecture powerpc64
--

following information on the net it was suggested that I change the
configure script so that it accepts powerpc* instead of powerpc
that is from
--
...
  case $host_cpu in
  powerpc)
CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
...
--
to
--
...
  case $host_cpu in
  powerpc*)
CFLAGS=$CFLAGS -DCPU=\\\$host_cpu\\\ ;;
...
--

the result:

--
...
*** All done ***
Now you can issue make
--

make also succedes, but when running jsvc using the script that comes
with apache tomcat (modified to suite my needs ofcourse) no jsvc is
running, and in the error log I find the following...

--
12/06/2006 11:58:15 19502 jsvc.exec error: Cannot dynamically link to
/opt/ibm/java2-ppc64-50/jre/bin/classic
/libjvm.so
12/06/2006 11:58:15 19502 jsvc.exec error:
/opt/ibm/java2-ppc64-50/jre/bin/classic/libjvm.so: cannot open sha
red object file: No such file or directory
12/06/2006 11:58:15 19501 jsvc.exec error: Service exit with a return
value of 1
--

and in