Re: control ports on windows

2005-07-08 Thread Alan Chandler
On Thursday 07 July 2005 17:25, Tony Smith wrote:
 Hi, I am running Tomcat 5.0 on Windows. But what I
 want to do it not link to Tomcat. I would like to know
 how to  control all those ports. For example, I would
 like to open 8080 but close 8089, etc...


 Thanks,

1) Don't hijack someone elses thread for your self (you even seemed to have 
asked the writer of the original thread directly rather than the list)

2) Be a bit clearer in what you are asking.  What does what I want to do it 
[is?] not link to Tomcat mean?  In particular what is the rather ambiguous 
word link meant to mean? Are you talking about connecting another web 
server, and if so which one?

3) Tell us what you have done to try and figure it out for yourself - Hint: 
have you looked at server.xml?

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: Mapping everything to Tomcat? (mod_jk)

2005-07-08 Thread Alan Chandler
On Friday 08 July 2005 01:53, Luis Torres wrote:
 Hello Everyone, first post to the list  =)

 I have a test setup with Solaris 9, Apache 2.043, mod_jk and two tomcats
 (4.131  JDK 1.5.0)

 To have the Tomcats handling the applications, first I used the
 following lines but the problem was that my jsp's where taken by tomcat
 but my images, css and other elements where served by apache, hence my
 images, styles, etc where not found by the server since they are all
 inside /webapps/app_name/images

Use JkAutoAlias /.../webapps or just use a standard Apache Alias directive to 
map the Apache location around the webapps directory [Not sure what the 
different between JkAutoAlias and plain Alias - I just use the former]

Note also I had to jkmount /*.do to get struts to work.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Re: Tomcat manager using mod_jk?

2005-07-08 Thread Alan Chandler
On Friday 08 July 2005 01:59, Luis Torres wrote:
 Hello again,

 Same setup: Solaris 9, Apache 2.043, mod_jk and two tomcats (4.131  JDK
 1.5.0)

 Any of you guys know if there's a way to access the tomcat manager
 application or something similar when using mod_jk??

 Right now the only way I have found is to leave tomcat accepting
 requests directly and calling http://server_name:port/manager/ for each
 tomcat.

See my comment above about jkmount of *.do to get struts to work.  The admin 
application (at least) seems to be struts based.

-- 
Alan Chandler
http://www.chandlerfamily.org.uk

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



Tomcat login logout hook ?

2005-07-08 Thread Dongsheng Song
Hello,

Can I hook a function after user login  before user logout ?

Dongsheng Song

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



Re: invalidated session

2005-07-08 Thread Christoph Kutzinski
Yes, you shouldn't rely on finalizers to clean-up session objects. 
Better do it in your listener.


Len Popp wrote:

I'm pretty sure that the finalizers are only called when garbage
collection reclaims the objects, and that will be some time after the
session is invalidated. Possibly a very long time after, if Tomcat
isn't busy and isn't using much memory.



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



Re: Tomcat login logout hook ?

2005-07-08 Thread Michael Echerer
Dongsheng Song wrote:
 Hello,
 
 Can I hook a function after user login  before user logout ?

I assume that logout usually goes hand in hand with a session
invalidation, then Servlet 2.4. spec is your friend:

SRV.10.2.1 Event Types and Listener Interfaces

javax.servlet.http.HttpSessionListener


Cheers,
Michael
 
 Dongsheng Song
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 



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



RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Raghupathy,Gurumoorthy
http://www.mycgiserver.com/

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED] 
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 

Your help is greatly appreciated.

 

TIA Mark


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



RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi
Thanks Gurumoorthy

But they are not based in the UK and hence I will have a nightmare with
support.

-Original Message-
From: Raghupathy,Gurumoorthy [mailto:[EMAIL PROTECTED]

Sent: 08 July 2005 09:52
To: 'Tomcat Users List'
Subject: RE: [OT] Recommend a UK Tomcat host

http://www.mycgiserver.com/

-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED] 
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 

Your help is greatly appreciated.

 

TIA Mark


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


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



RE: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Darren Carman
Not sure if they use tomcat or not (the tomcat piccie is displayed in one of 
their images) but you could ask.

I am not with them any more but had 1st class service while I was.

http://www.positive-internet.com/products.html


-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 

Your help is greatly appreciated.

 

TIA Mark


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



[OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi
Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 

Your help is greatly appreciated.

 

TIA Mark



Creating a MySQL datasource (DBCP) into TOMCAT 4.1.31

2005-07-08 Thread Patrick Gelin
Hi,

I succeded to create a datasource for TOMCAT 5.5.7 and 5.5.9 but I have to
deploy my webapp into TOMCAT 4.1.31 and it's not the same configuration
parameters...

It seems to be all right but if I debug with Eclipse ide I see my DataSource
is null...

I followed TOMCAT 4.1 JNDI DataSource how-to documentation:

1. I copied mysql-connector-java-3.1.10-bin.jar to [TOMCAT]/common/lib

2. This is my server.xml conf file:


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

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

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

Server port=8005 shutdown=SHUTDOWN debug=0


  !-- Comment these entries out to disable JMX MBeans support --
  !-- You may also configure custom components (e.g. Valves/Realms) by
   including your own mbean-descriptor file(s), and setting the
   descriptors attribute to point to a ';' seperated list of paths
   (in the ClassLoader sense) of files to add to the default list.
   e.g. descriptors=/com/myfirm/mypackage/mbean-descriptor.xml
  --
  Listener className=org.apache.catalina.mbeans.ServerLifecycleListener
debug=0/
  Listener
className=org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
debug=0/

  !-- Global JNDI resources --
  GlobalNamingResources

!-- Test entry for demonstration purposes --
Environment name=simpleValue type=java.lang.Integer value=30/

!-- Editable user database that can also be used by
 UserDatabaseRealm to authenticate users --
Resource name=UserDatabase auth=Container
  type=org.apache.catalina.UserDatabase
   description=User database that can be updated and saved
/Resource
ResourceParams name=UserDatabase
  parameter
namefactory/name
valueorg.apache.catalina.users.MemoryUserDatabaseFactory/value
  /parameter
  parameter
namepathname/name
valueconf/tomcat-users.xml/value
  /parameter
/ResourceParams

  /GlobalNamingResources

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

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

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

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

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

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

!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 --
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8080 minProcessors=5 maxProcessors=75
   enableLookups=true redirectPort=8443
   acceptCount=100 debug=0 connectionTimeout=2
   useURIValidationHack=false disableUploadTimeout=true /
!-- Note : To disable connection timeouts, set connectionTimeout value
 to 0 --

!-- Define a SSL Coyote HTTP/1.1 Connector on port 8443 --
!--
Connector className=org.apache.coyote.tomcat4.CoyoteConnector
   port=8443 minProcessors=5 maxProcessors=75
   enableLookups=true
  

Re: How do you set up JMX remote for Tomcat 5.5.9?

2005-07-08 Thread teknokrat

you need to set
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=9998
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false

check the last two as I can't remember the precise syntax. if youwant 
password authentication read the doc



andy gordon wrote:
Thank you for the info but I don't think it helped. Your insight is valued. 
 
I set an environment variable called JAVA_OPTS to 
 
-Dcom.sun.management.jmxremote.port=9998 
 
and started tomcat using startup.bat.  The cmd window opened and closed. Meaning tomcat didn't start. Suggestions?  
 
I have not done anything else at this point with respect to enabling JMX remote.
 
Thank you 
 
- andy


Tim Funk [EMAIL PROTECTED] wrote:
http://jakarta.apache.org/tomcat/faq/misc.html#properties

-Tim

andy gordon wrote:


Help, 

How do you set up JMX remote for Tomcat 5.5.9? 

For instance where do you specify the JVM startup option 

-Dcom.sun.management.jmxremote.port=9998 

that enables remote monitoring and management? 




-
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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Tim Diggins
I was just about to recommend postive-internet. They are very good - 
customer support is good, and they are real tecchies - they understand  
respond well if you give a technical support query in technical language 
(often not the case!).


I've really only heard good things about them, and have had a good 
overall experience of them for the past couple of years. That said, I've 
never used tomcat with them. (But use them for python/php stuff).


The only problem I heard with them is that they don't do much variety in 
products - namely the leap between z-hosting (shared) and 
deducated/managed servers is quite a hike in price


-- Tim

Darren Carman wrote:

Not sure if they use tomcat or not (the tomcat piccie is displayed in one of 
their images) but you could ask.

I am not with them any more but had 1st class service while I was.

http://www.positive-internet.com/products.html


-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.

 


Your help is greatly appreciated.

 


TIA Mark


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






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



CSJakharia: Difference between Tocmat 5.5.2 and Tomcat 4.1

2005-07-08 Thread Chirag
I am undergoing Project development in Tomcat 5.5.2
which has to be converted for another Client in Tomcat
4.1 but I have no idea regarding the
improvements/Difference between Both the version and
so am confused to say how much time would be required

If any one knows the difference or any Link by which I
can come to know the difference then I would be able
to give him the period required for the same

Thanks in advance

CSJakharia

 Subscribe to bermudaEmail:  [input]  [input]  Browse Archives at 
groups-beta.google.com 





__ 
Discover Yahoo! 
Find restaurants, movies, travel and more fun for the weekend. Check it out! 
http://discover.yahoo.com/weekend.html 


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



Using Single Sign on to access another webapp.

2005-07-08 Thread Ben Bookey

Dear List,

We are using Tomcat 4.1.xx. We are NOT using the built in security framework 
which comes with TC. In the login.jsp page the user/password is validated by 
an external organisation wide process, which returns simply true or false. 
If the user is valid, the user is forwarded to the application JSP pages. 
The user can not access the application pages at will, because the pages 
check to see if a particular session flag is checked.


Now my problem. I have been asked to assess if single sign On (SSO) could be 
used to create a URL link to another similar webapp's JSP page (TC with no 
security framework), where the user doesnt need to login for a second time. 
There is not so much info. about SSO around, but from what I gather it 
persists login info. inside a session which is passed between web 
applications. My first problem is that my application never knows what the 
password is.  Can anyone see a possibilty of using SSO for me, allowing 
direct access to another webapps JSP page with out re-login ?


Would really appreciate any help on this. Especially ones with info. more 
than simply No ;-)


kind regards,
Ben
p.s. might be that the 2nd app has to create a web-service or something to 
provide the information for us!!




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



Re: [OT] Recommend a UK Tomcat host

2005-07-08 Thread Mark Benussi

: )

Just had a sales conversation with them and yes the hike in price is a bit 
daft.


A dedicated server is an option but only if I can get enough of 
nameonthe.nets previous customers over to them.


If ANYONE reading this knows of any customers effected by this ISP's 
downfall can they let me know and hope that we can get some collective 
purchasing power.



Original Message Follows
From: Tim Diggins [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: [OT] Recommend a UK Tomcat host
Date: Fri, 08 Jul 2005 10:52:24 +0100

I was just about to recommend postive-internet. They are very good - 
customer support is good, and they are real tecchies - they understand  
respond well if you give a technical support query in technical language 
(often not the case!).


I've really only heard good things about them, and have had a good overall 
experience of them for the past couple of years. That said, I've never used 
tomcat with them. (But use them for python/php stuff).


The only problem I heard with them is that they don't do much variety in 
products - namely the leap between z-hosting (shared) and 
deducated/managed servers is quite a hike in price


-- Tim

Darren Carman wrote:
Not sure if they use tomcat or not (the tomcat piccie is displayed in one 
of their images) but you could ask.


I am not with them any more but had 1st class service while I was.

http://www.positive-internet.com/products.html


-Original Message-
From: Mark Benussi [mailto:[EMAIL PROTECTED]
Sent: 08 July 2005 09:45
To: 'Tomcat Users List'
Cc: 'Struts Users Mailing List'
Subject: [OT] Recommend a UK Tomcat host


Apologies for the repost to the Tomcat list but I am getting desperate.


Can anyone recommend a UK based Tomcat hosting solution? I have been let
down by my current ISP (nameonthe.net) which has gone out of business.



Your help is greatly appreciated.



TIA Mark


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






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



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



Re: Make webapp jars downloadable

2005-07-08 Thread Andrea Aime

Peter Crowther wrote:


Tomcat explicitly prevents access from a client to any file under
WEB-INF; Tomcat also insists on picking up its jars from WEB-INF/lib,
and as far as I know it's not possible to change that.  My suggestion
would be to write a few lines of code that copy the jar files you need
from WEB-INF/lib to the root when the application starts up or when you
hit a particular page - that way, at least you only have to upload them
once.


Peter and Christoph
I'm already using a servlet to access the jar files, but it's the
servlet Sun provides to support versioning and jardiff web start protocols.
I'd rather not touch it tought...

Peter, can you elaborate a bit more on your solution? I'm not very familiar
with web applications, so far I've developed only Swing clients.
I guess I have to use a listener in order to do something on startup. How
do I get the right folder thought? Is there a environment variable I can read?

Best regards and thank you for your support
Andrea Aime


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



Re: Using Single Sign on to access another webapp.

2005-07-08 Thread Christoph Kutzinski
Check this for a way to implement this with Tomcat (you must use 5.5 ore 
higher, though):

http://weblogs.java.net/blog/wholder/archive/2005/02/session_session.html

Or this is a solution I found with an external authentication server:
http://www.developertutorials.com/tutorials/java/single-sign-on/page4.html

hth,
Christoph

Ben Bookey wrote:

Dear List,

We are using Tomcat 4.1.xx. We are NOT using the built in security 
framework which comes with TC. In the login.jsp page the user/password 
is validated by an external organisation wide process, which returns 
simply true or false. If the user is valid, the user is forwarded to the 
application JSP pages. The user can not access the application pages at 
will, because the pages check to see if a particular session flag is 
checked.


Now my problem. I have been asked to assess if single sign On (SSO) 
could be used to create a URL link to another similar webapp's JSP page 
(TC with no security framework), where the user doesnt need to login for 
a second time. There is not so much info. about SSO around, but from 
what I gather it persists login info. inside a session which is passed 
between web applications. My first problem is that my application 
never knows what the password is.  Can anyone see a possibilty of using 
SSO for me, allowing direct access to another webapps JSP page with out 
re-login ?


Would really appreciate any help on this. Especially ones with info. 
more than simply No ;-)


kind regards,
Ben
p.s. might be that the 2nd app has to create a web-service or something 
to provide the information for us!!




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




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



Re: Using Single Sign on to access another webapp.

2005-07-08 Thread Tim Funk


One way to do SSO is to utilize a  cookie (lets call it SSO, and to be really 
secure - it should only be transfered over https). The existence of a cookie 
says the person might be logged in. The value of the cookie needs to be 
checked. The value of the cookie shold NOT be the user id. It can be an 
encrytped form of the user id, or it can be a token which the web server 
would use in a hash lookup to get the real user id. In the case of the hash - 
you'd need a service to be be able to handle maintenance of getting 
userids/tokens into the hash.


Luckily for you, there are some projects out there that do this. Google is 
your friend here.


-Tim

Ben Bookey wrote:

Dear List,

We are using Tomcat 4.1.xx. We are NOT using the built in security 
framework which comes with TC. In the login.jsp page the user/password 
is validated by an external organisation wide process, which returns 
simply true or false. If the user is valid, the user is forwarded to the 
application JSP pages. The user can not access the application pages at 
will, because the pages check to see if a particular session flag is 
checked.


Now my problem. I have been asked to assess if single sign On (SSO) 
could be used to create a URL link to another similar webapp's JSP page 
(TC with no security framework), where the user doesnt need to login for 
a second time. There is not so much info. about SSO around, but from 
what I gather it persists login info. inside a session which is passed 
between web applications. My first problem is that my application 
never knows what the password is.  Can anyone see a possibilty of using 
SSO for me, allowing direct access to another webapps JSP page with out 
re-login ?


Would really appreciate any help on this. Especially ones with info. 
more than simply No ;-)


kind regards,
Ben
p.s. might be that the 2nd app has to create a web-service or something 
to provide the information for us!!




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




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



Re: Using Single Sign on to access another webapp.

2005-07-08 Thread Ivan Rodriguez

Take a look at
http://tp.its.yale.edu/tiki/tiki-index.php?page=CentralAuthenticationService

Tim Funk escribió:



One way to do SSO is to utilize a  cookie (lets call it SSO, and to be 
really secure - it should only be transfered over https). The 
existence of a cookie says the person might be logged in. The value of 
the cookie needs to be checked. The value of the cookie shold NOT be 
the user id. It can be an encrytped form of the user id, or it can be 
a token which the web server would use in a hash lookup to get the 
real user id. In the case of the hash - you'd need a service to be 
be able to handle maintenance of getting userids/tokens into the hash.


Luckily for you, there are some projects out there that do this. 
Google is your friend here.


-Tim

Ben Bookey wrote:


Dear List,

We are using Tomcat 4.1.xx. We are NOT using the built in security 
framework which comes with TC. In the login.jsp page the 
user/password is validated by an external organisation wide process, 
which returns simply true or false. If the user is valid, the user is 
forwarded to the application JSP pages. The user can not access the 
application pages at will, because the pages check to see if a 
particular session flag is checked.


Now my problem. I have been asked to assess if single sign On (SSO) 
could be used to create a URL link to another similar webapp's JSP 
page (TC with no security framework), where the user doesnt need to 
login for a second time. There is not so much info. about SSO around, 
but from what I gather it persists login info. inside a session which 
is passed between web applications. My first problem is that my 
application never knows what the password is.  Can anyone see a 
possibilty of using SSO for me, allowing direct access to another 
webapps JSP page with out re-login ?


Would really appreciate any help on this. Especially ones with info. 
more than simply No ;-)


kind regards,
Ben
p.s. might be that the 2nd app has to create a web-service or 
something to provide the information for us!!




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




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






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



Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi
I am having to change my ISP and was wondering what the main differences
were with these two servers.

 

Are Servlet filters supported and more importantly what J2EE does it
typically run on?

 

TIA to the legend list that is making my nightmare week a bit better.

 

 



RE: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Peter Crowther
 From: Mark Benussi [mailto:[EMAIL PROTECTED] 
 Subject: Tomcat 4.1.37 and 5.0.2?? differences
 
 
 I am having to change my ISP and was wondering what the main 
 differences were with these two servers.

http://jakarta.apache.org/tomcat/index.html

5.0.x is servlet spec 2.4 / JSP 2.0, like 5.5.

 Are Servlet filters supported

Yes, on both, I believe.

 and more importantly what J2EE does it
 typically run on?

Sorry, don't understand the question?  If you mean J2SDK, I rather
suspect most providers will be on a 1.4.2_xx release - Tomcat 4.1 and
5.0 both run on that.  If you don't mean the SDK version, could you
clarify?

- Peter

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



Re: [OT] UK tomcat hosting recommendations?

2005-07-08 Thread Paul Singleton

Mark Benussi wrote:

Having some fun with my current ISP and was wondering if any of you have UK
tomcat recommendations?

My technical needs are pretty small; just tomcat 5.0+ installed with mysql
4.0+ etc.

My main non-technical requirement is a good UK based support, and any
recommendations would be appreciated.


Check out 2020media.com - they meet your requirements

Paul Singleton


--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.323 / Virus Database: 267.8.10/43 - Release Date: 6/Jul/2005


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



RE: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi

Thanks Peter thats perfect. I cant see any magor techincal differences.

Original Message Follows
From: Peter Crowther [EMAIL PROTECTED]
Reply-To: Tomcat Users List tomcat-user@jakarta.apache.org
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: RE: Tomcat 4.1.37 and 5.0.2?? differences
Date: Fri, 8 Jul 2005 12:54:06 +0100

 From: Mark Benussi [mailto:[EMAIL PROTECTED]
 Subject: Tomcat 4.1.37 and 5.0.2?? differences


 I am having to change my ISP and was wondering what the main
 differences were with these two servers.

http://jakarta.apache.org/tomcat/index.html

5.0.x is servlet spec 2.4 / JSP 2.0, like 5.5.

 Are Servlet filters supported

Yes, on both, I believe.

 and more importantly what J2EE does it
 typically run on?

Sorry, don't understand the question?  If you mean J2SDK, I rather
suspect most providers will be on a 1.4.2_xx release - Tomcat 4.1 and
5.0 both run on that.  If you don't mean the SDK version, could you
clarify?

- Peter

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



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



Re: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Rahul Akolkar
 From: Peter Crowther [EMAIL PROTECTED]
snip/
   From: Mark Benussi [mailto:[EMAIL PROTECTED]
   Subject: Tomcat 4.1.37 and 5.0.2?? differences
snap/
   Are Servlet filters supported
 
 Yes, on both, I believe.

Additionally, after the move, you will be able to apply filters to
RequestDispatcher includes and forwards as well.

   and more importantly what J2EE does it
   typically run on?
 

Tomcat is a servlet container, not a full J2EE app server. 5.x.x
implements the relevant bits in J2EE 1.4

-Rahul

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



Re: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Mark Benussi

Thanks Rahul but in case it wasnt clear I am downgrading from 5 to 4.

Original Message Follows
From: Rahul Akolkar [EMAIL PROTECTED]
Reply-To: Rahul Akolkar [EMAIL PROTECTED]
To: Tomcat Users List tomcat-user@jakarta.apache.org
Subject: Re: Tomcat 4.1.37 and 5.0.2?? differences
Date: Fri, 8 Jul 2005 08:46:57 -0400

 From: Peter Crowther [EMAIL PROTECTED]
snip/
   From: Mark Benussi [mailto:[EMAIL PROTECTED]
   Subject: Tomcat 4.1.37 and 5.0.2?? differences
snap/
   Are Servlet filters supported

 Yes, on both, I believe.

Additionally, after the move, you will be able to apply filters to
RequestDispatcher includes and forwards as well.

   and more importantly what J2EE does it
   typically run on?


Tomcat is a servlet container, not a full J2EE app server. 5.x.x
implements the relevant bits in J2EE 1.4

-Rahul

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



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



Re: CSJakharia: Difference between Tocmat 5.5.2 and Tomcat 4.1

2005-07-08 Thread Rahul Akolkar
On 7/8/05, Chirag [EMAIL PROTECTED] wrote:
 I am undergoing Project development in Tomcat 5.5.2
 which has to be converted for another Client in Tomcat
 4.1 but I have no idea regarding the
 improvements/Difference between Both the version and
 so am confused to say how much time would be required
snip/

Seems to be a popular question today ;-) This thread may help [
http://marc.theaimsgroup.com/?l=tomcat-userm=112082335422569w=2 ]

-Rahul

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



Re: Tomcat 4.1.37 and 5.0.2?? differences

2005-07-08 Thread Rahul Akolkar
On 7/8/05, Mark Benussi [EMAIL PROTECTED] wrote:
 Thanks Rahul but in case it wasnt clear I am downgrading from 5 to 4.
snip/

Oh, sure, its a two-way street. Then, the obvious statement to make
would be, you'd be in a spot if your webapps rely on bits that are
servlet 2.4 modulo servlet 2.3 or JSP 2.0 modulo JSP 1.2. The not-so
obvious bit might be what that layer of frosting is. AFAIK, WRT
sevlets its things such as applying filters to more than just the
original request and lifecycle listeners, and WRT JSPs, things such as
tag impls and container evaluation of EL expressions. Refer the specs
for details.

-Rahul

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



Re: Apache + Tomcat with Mod_jk

2005-07-08 Thread Justin Crabtree
Shailendra Gatade wrote:
 Hi All,
 
 I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K ) using
 mod_jk. I'm facing several problems regarding this ...
 
 Initially i was using mod_jk2.so which is deprecated and also not recomended
 for Production Environment.
 
 I am not able to find the proper mod_jk.so for Apache.
 
   I downloaded ...
 
 jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-prefork.so
 and
 
 jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-worker.so
 
   Which file should i rename to mod_jk.so ?
 
   When i rename the first one and use it, i am getting the following
 error ...
  Cannot load /usr/local/apache2/lib/mod_jk.so into server:
 /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not little-endian.
 
  Can somebody point me to a location where i can find the proper
 mod_jk.so for my setup ?
 
 Also there is no extensive tutorial available on the same issue ... Is
 anyone aware of a tutorial which guides you step by step in configuring
 Apache 2 + Tomcat 5.0 using mod_jk.so ?
 
 Thanks in advance ...
 
 Shailendra
 


Try here.

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/

And here for docs.

http://jakarta.apache.org/tomcat/connectors-doc/

-- 
Justin Crabtree
Java Programmer
Ozarks Technical Community College
447-7533

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



Re: Silent runtime replace of a class

2005-07-08 Thread Gal Robert

Thanky you very much, for your long answer.
It seems, your theory is absolutely correct, I even found
an article with detailed information about setting up a high 
availability Tomcat; here it is:

http://www.javaworld.com/javaworld/jw-12-2004/jw-1220-tomcat.html

--robert


Peter Crowther wrote:
From: Gal Robert [mailto:[EMAIL PROTECTED] 
Often happens, that we must correct a little error in business logic.
In these cases we usually patch a class file, and replace it in the 
application, then redeploy it.

From your (and other) responses it seems, there's no correct way to
do such a patch without redeploying the application.



Unfortunately, I agree.


On the other hand, your idea about tomcat clustering, and redirecting 
requests sounds quite interesting. I think, this would 
satisfy the above
requirement. Can you give me some more information about your 
idea? Does it require a deep know-how?



Not really, but it requires that your application has a certain feature:
that users using the application are independent, or that they only
interact through a common back-end system that is not part of the
webapp.  A bulletin board is a reasonable example: users can post, and
the posts are stored in a common database.  Each user accesses posts
through the webapp.  It wouldn't matter if each user had their own
separate webapp accessing the posts; nothing would appear to change.
Many applications have this feature; yours may well.  By contrast, an
interactive chat system that uses (say) a Map in the context to know
who's online doesn't have this feature - if you separate it across two
servers, each would only see half the users.

The multiple-server, staged upgrade is a standard technique in
high-availability systems, where you want to have more than one of
everything for redundancy.  I'm adapting it a little here, to fulfil
your requirement of on-the-fly upgrades.  No doubt others on this list
can fill in more details.  I should add a disclaimer: I've done this
with credit-card processing systems, but not with Tomcat, so I'm
speaking from theory.  The above should be taken with a large pinch of
NaCl until someone corroborates it for Tomcat.  That said, search the
archives for this list, as I recall a couple of discussions from people
who had almost exactly this setup.

If you have n identical nodes and a way of shifting the load away from
one of them, you can produce an idle node - at which point you can
upgrade it to the new version.  This part requires no more than several
identical Tomcat (or other servlet container) instances.  For high
availability, you'd run them on different machines.  For high
flexibility and to allow upgrades (your situation), you could choose to
combine them onto one machine if you wished to take the reliability risk
and understood the performance characteristics of the system.  Often,
it's cheaper for the business to buy another pizza-box server and shove
it in the rack than it is to pay someone's time to investigate the
'cheaper' way of doing it!

The new part is that you need a front-end load balancer.  This can be
done in hardware (Cisco's mid- and high-end routers have this facility,
for example).  I strongly suspect it can also be done in software; I'd
be very surprised if nobody had written this into some combination of
Linux kernel and modules.  I don't know whether it can be done using an
Apache front-end and JK; I suspect someone on this list could enlighten
us.  The load balancer sits 'in front of' your n identical nodes and has
its own IP address, which is the IP address by which your users connect
to the application.  That load balancer then redirects requests to the
nodes according to its policy.  That policy needs to include 'sticky'
sessions: a set of requests from a given user will always be directed to
the same node.  If your organisation has no experience of setting one of
these up, you'd probably want to buy in the expertise.

Now, to upgrade a node (say node B of two nodes labelled A and B), you
change the load balancer's policy: existing sessions remain sticky, but
all new sessions go to node A.  Monitor the number of sessions on node
B; when it drops to zero, it's safe to upgrade B, restart it and test it
- you know that no users will come in and disturb your tests.  Then
change load balancer policy to send new sessions to node B, wait for all
the sessions on A to complete, and do the symmetrical upgrade on A.
Finally, set your load balancer policy back to even distribution if you
wish to use the redundancy in this system.

You can short-circuit the whole process if you don't want the
redundancy: the load balancer always directs traffic to one 'current'
node, and most of the time you have one 'spare' node.  To upgrade, make
the change on the 'spare' node and test, then change policy to make the
'spare' node receive all new sessions.  Once all the sessions have
finished on the old 'active' node, the roles reverse - you have a new
'active' node that's been 

RE: Silent runtime replace of a class

2005-07-08 Thread Peter Crowther
 From: Gal Robert [mailto:[EMAIL PROTECTED] 
 Thanky you very much, for your long answer.

No problem.

 It seems, your theory is absolutely correct, I even found
 an article with detailed information about setting up a high 
 availability Tomcat; here it is:
 http://www.javaworld.com/javaworld/jw-12-2004/jw-1220-tomcat.html

Heh.  Thanks, that's now added to my bookmarks!

- Peter

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



JNDI DataSource configuration

2005-07-08 Thread Peter . Zoche

 Hi!
 
 I am trying to connect my web-app running under tomcat 5.5.9 to connect to
 a postgresql database. I read
 the JNDI Datasource HOW-TO on
 http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-h
 owto.html.
 I would like to have an application-specific resource configuration, but
 the how-to says:
 
 Create a resource definition file for your application defining the
 datasource. This file must have the same name as your application, so if
 your application deploys as someApp.war, this filename must be
 someApp.xml.This file should look something like the following 
 
 Context path=/someApp docBase=someApp
crossContext=true reloadable=true debug=1
 
 Resource name=jdbc/postgres auth=Container
   type=javax.sql.DataSource
 driverClassName=org.postgresql.Driver
   url=jdbc:postgresql://127.0.0.1:5432/mydb
   username=myuser password=mypasswd maxActive=20
 maxIdle=10
 maxWait=-1/
 /Context
 
 My two questions:
 
 - I have a web-app called TestWebApp, so my file ist TestWebApp.xml, but
 where do I have to put it in? WEB-INF directory?
 - is the above example complete or do I have to put something more into
 it?
 
 I tried the shared resource configuration as it is described on the same
 page, and it worked very well, but then i have great
 problems to undeploy my web-app and to deploy it again, so i would like to
 use the application-specific resource configuration.
 
 Please help
 
 Peter
 

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



Re: JNDI DataSource configuration

2005-07-08 Thread Joe Plautz

I'm not sure about 5.5.x, but in 5.0.x and earlier it was put in META-INF.

Joe

[EMAIL PROTECTED] wrote:

Hi!

I am trying to connect my web-app running under tomcat 5.5.9 to connect to
a postgresql database. I read
the JNDI Datasource HOW-TO on
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jndi-datasource-examples-h
owto.html.
I would like to have an application-specific resource configuration, but
the how-to says:

Create a resource definition file for your application defining the
datasource. This file must have the same name as your application, so if
your application deploys as someApp.war, this filename must be
someApp.xml.This file should look something like the following 


Context path=/someApp docBase=someApp
  crossContext=true reloadable=true debug=1

Resource name=jdbc/postgres auth=Container
 type=javax.sql.DataSource
driverClassName=org.postgresql.Driver
 url=jdbc:postgresql://127.0.0.1:5432/mydb
 username=myuser password=mypasswd maxActive=20
maxIdle=10
maxWait=-1/
/Context

My two questions:

- I have a web-app called TestWebApp, so my file ist TestWebApp.xml, but
where do I have to put it in? WEB-INF directory?
- is the above example complete or do I have to put something more into
it?

I tried the shared resource configuration as it is described on the same
page, and it worked very well, but then i have great
problems to undeploy my web-app and to deploy it again, so i would like to
use the application-specific resource configuration.

Please help

Peter




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

.



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



Fw: How to creating concurrent call in batch file

2005-07-08 Thread feilong
Hallo,
I want to write a batch file under windows to call 6 instances concurrently to 
test whether the program is thread-safe. Below is the shell script for linux to 
create parallel call, it works. But if I use the same syntax, i.e.  to 
connect java call in batch file under windows, it only creates serial call, 
not concurrent call. 
How can I write a windows script or a batch file under windows to build 
parallel call.

Best Regards
saarxfk


parallelCall.sh

# set the classpath
export CLASSPATH=
for i in jars/*jar; do export CLASSPATH=$CLASSPATH:$i; done

java WinsServiceClient morganti.pdf morganti.pdf it 
java WinsServiceClient alesi.pdf alesi.pdf it 
java WinsServiceClient morganti2.pdf morganti2.pdf it 
java WinsServiceClient alesi2.pdf alesi2.pdf it 
java WinsServiceClient morganti3.pdf morganti3.pdf it 
java WinsServiceClient alesi3.pdf alesi3.pdf it


Best Regards
Feilong

Re: generate image by servlet for large amount of requests

2005-07-08 Thread Tony Smith
Any ideas? 

--- Tony Smith [EMAIL PROTECTED] wrote:

 Let's think about maps.yahoo.com. I do not know how
 they handle 
 millions of request and generate the map pictures
 quickly. If I use a 
 servlet, in the post or get method I use: 
 
 
 BufferedImage mapImage =
 myTookKit.generateMap(String address); 
 response.setContentType(image­/png); 
 OutputStream os = response.getOutputStream(); 
 ImageIO.write(buffer, png, os); 
 os.close(); 
 
 
 Is servlet a good choice? If I use servlet, is the
 code above good 
 enough to handle hundreds of request? Is the choice
 of
 BufferedImage a 
 good one? What special technique I need to implement
 myTookKit to 
 make it faster? I am thinking about JNI. 
 
 
 Thanks, 
 
 
 
 
 __
 Do You Yahoo!?
 Tired of spam?  Yahoo! Mail has the best spam
 protection around 
 http://mail.yahoo.com 
 

-
 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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: generate image by servlet for large amount of requests

2005-07-08 Thread Christoph Kutzinski

Yes,

a good idea would be not to hijack someone elses discussion thread and 
start a new one instead. Then probably more people will read your question.

Regarding your original question: no idea

Tony Smith wrote:
Any ideas? 


--- Tony Smith [EMAIL PROTECTED] wrote:



Let's think about maps.yahoo.com. I do not know how
they handle 
millions of request and generate the map pictures
quickly. If I use a 
servlet, in the post or get method I use: 



   BufferedImage mapImage =
myTookKit.generateMap(String address); 
   response.setContentType(image­/png); 
   OutputStream os = response.getOutputStream(); 
   ImageIO.write(buffer, png, os); 
   os.close(); 



Is servlet a good choice? If I use servlet, is the
code above good 
enough to handle hundreds of request? Is the choice

of
BufferedImage a 
good one? What special technique I need to implement
myTookKit to 
make it faster? I am thinking about JNI. 



Thanks, 





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





-


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 unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




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



SSLCipherSuite and Tomcat 5.5.9

2005-07-08 Thread Mandar Vaidya
Hello,

   Is there any way to define SSLCipherSuite under Tomcat 5.5.9  ( without
Apache ) ?   

Thanks and Regards,

Mandar Vaidya


 

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



Re: SSLCipherSuite and Tomcat 5.5.9

2005-07-08 Thread Mark Thomas

Mandar Vaidya wrote:

   Is there any way to define SSLCipherSuite under Tomcat 5.5.9  ( without
Apache ) ?   


See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

You want the ciphers attribute.

Mark


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



RE: SSLCipherSuite and Tomcat 5.5.9

2005-07-08 Thread Mandar Vaidya
Thank you Mark...under connector section, I've included 
 
ciphers=ALL:!ADH:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM 

Will this work ? 

 Tomcat server came up fine without any errors after restart.

Thanks and Regards,
Mandar
 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 12:19 PM
To: Tomcat Users List
Subject: Re: SSLCipherSuite and Tomcat 5.5.9

Mandar Vaidya wrote:
Is there any way to define SSLCipherSuite under Tomcat 5.5.9  ( without
 Apache ) ?   

See http://jakarta.apache.org/tomcat/tomcat-5.5-doc/config/http.html

You want the ciphers attribute.

Mark


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

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



Re: Apache + Tomcat with Mod_jk

2005-07-08 Thread Steve Ochani
 Shailendra Gatade wrote:
  Hi All,
 
  I am trying to connect Apache 2 ( Linux ) with Tomcat 5.0 ( Win2K )
  using mod_jk. I'm facing several problems regarding this ...
 
  Initially i was using mod_jk2.so which is deprecated and also not
  recomended for Production Environment.
 
  I am not able to find the proper mod_jk.so for Apache.
 
I downloaded ...
 
  jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-pr
  efork.so
  and
 
  jakarta-tomcat-connectors-jk-1.2.10-linux-sles8-ppc-apache-2.0.53-wo
  rker.so
 
Which file should i rename to mod_jk.so ?
 
When i rename the first one and use it, i am getting the
following
  error ...
   Cannot load /usr/local/apache2/lib/mod_jk.so into server:
  /usr/local/apache2/lib/mod_jk.so: ELF file data encoding not
  little-endian.
 
   Can somebody point me to a location where i can find the proper
  mod_jk.so for my setup ?
 
  Also there is no extensive tutorial available on the same issue ...
  Is anyone aware of a tutorial which guides you step by step in
  configuring Apache 2 + Tomcat 5.0 using mod_jk.so ?
 
  Thanks in advance ...
 
  Shailendra
 


 Try here.

 http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32
 /


Those are for windows, he is running linux (for the webserver at least).

http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/linux/

If you are not running a ppc (power pc) architecture based machine don't use 
the ppc
module.

-Steve O.

«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»§«¤»¥«¤»
Education is what remains after one has forgotten everything he
learned in school. -Albert Einstein

Steve O.
http://www.steveo.us


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



Re: SSLCipherSuite and Tomcat 5.5.9

2005-07-08 Thread Mark Thomas

Mandar Vaidya wrote:
Thank you Mark...under connector section, I've included 
 
ciphers=ALL:!ADH:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM 

Will this work ? 


I don't think so. The ciphers need to be named as per the cipher suites 
in JSSE. See 
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html


Search the page for Supported Cipher Suites. Also, I am pretty sure 
they need to be comma separated.


Mark


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



Problem with development cycle (5.5.9)

2005-07-08 Thread Carlos A. Carnero Delgado
Hello,

I've been developing on the 4.x series and the 5.0.x series for a
while, using more or less the Jakarta suggested Ant build.xml script
and their source organization (I think it's a de facto standard along
with Blueprint's.) Anyway, I started testing a new workflow using
J2SDK 5 and the latest 5.5.9 for a new project I'm supposed to start
soon. I have made the simplest web application consisting of one JSP
and one servlet. But I have (a hopefully simple) problem.

If I install (deploy) the application using Ant, it will do so, but
not like the old days: it will make the deployment is Tomcat's webapps
directory. My previous Tomcat experience is that an application will
be deployed directly from the build directory, making easy the
build/reload/edit development cycle. Now, with 5.5.9, I have to
re-deploy and restart Tomcat.

What I'm I doing wrong? I realize that Tomcat is doing exactly what's
told to do, but I'd like the old behavior: deploying from my
development build directory.

Best regards,
Carlos.

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



RE: SSLCipherSuite and Tomcat 5.5.9

2005-07-08 Thread Mandar Vaidya
Thanks Mark.

Mandar 

-Original Message-
From: Mark Thomas [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 12:41 PM
To: Tomcat Users List
Subject: Re: SSLCipherSuite and Tomcat 5.5.9

Mandar Vaidya wrote:
 Thank you Mark...under connector section, I've included
  
 ciphers=ALL:!ADH:!aNULL:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM 
 
 Will this work ? 

I don't think so. The ciphers need to be named as per the cipher suites in
JSSE. See
http://java.sun.com/j2se/1.4.2/docs/guide/security/jsse/JSSERefGuide.html

Search the page for Supported Cipher Suites. Also, I am pretty sure they
need to be comma separated.

Mark


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

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



Re: generate image by servlet for large amount of requests

2005-07-08 Thread Michael Jouravlev
On 7/7/05, Tony Smith [EMAIL PROTECTED] wrote:
 Let's think about maps.yahoo.com. I do not know how
 they handle
 millions of request and generate the map pictures
 quickly.

For simpler and more formal images like bar charts you can return
javascript and render image in browser.

Michael.

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



Tomcat JSVC Errors

2005-07-08 Thread Wasik, Paul
Hello,

 

I'm rather new to Tomcat. I have configured Tomcat 5.0.28 to launch
under a non-privileged user account using the jsvc launcher. Tomcat
works fine except I am finding the following errors in my Tomcat logs.
I'm running this on Red Hat EL3 Linux server. I'm running the Sun JDK
1_5_0_03.

 

jsvc.exec error: Service exit with a return value of 143

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
location - find_vma failed

 

Can anyone point me in the right direction on how to resolve this? I
have Googled around but not found a good answer.

 

Thanks,

 

Paul



re: is this issue in the faq still correct wrt Tomcat 5.5.9?

2005-07-08 Thread James Black
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

  Why does the memory usage increase when I redeploy a web application?
Because the Classloader (and the Class objects it loaded) cannot be
recycled. They are stored in the permanent heap generation by the JVM,
and when you redepoy a new class loader is created, which loads another
copy of all these classes. This can cause OufOfMemoryErrors eventually.

I found it at:
http://jakarta.apache.org/tomcat/faq/deployment.html

I am trying to understand why I run out of permanent memory when I
redeploy my beehive-based webapp, after about the 10th redeployment.

Thanx.

- --
Love is mutual self-giving that ends in self-recovery. Fulton Sheen
James Black[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCztZMikQgpVn8xrARAoQEAJ0V9aF3djyzIT9FDtCDP2WL22q8vACdFy3r
xNiOIuvLbvv/rder714v9ls=
=/ua5
-END PGP SIGNATURE-

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



newbie can't start tomcat

2005-07-08 Thread dsimmons
I have been googling the archives and anyplace else I can think of for
my particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly
I've been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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



RE: newbie can't start tomcat

2005-07-08 Thread Mandar Vaidya
Hi Doug,

I believe you don't have to start it as ./bin/startup.sh 

Go to bin directory and then execute ./startup.sh 

See if it helps you.

Thanks,
Mandar


-Original Message-
From: dsimmons [mailto:[EMAIL PROTECTED] 
Sent: Friday, July 08, 2005 4:23 PM
To: tomcat-user@jakarta.apache.org
Subject: newbie can't start tomcat

I have been googling the archives and anyplace else I can think of for my
particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly I've
been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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

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



Re: newbie can't start tomcat

2005-07-08 Thread Luis Torres
It may not be the best solution because you may have a special 
attachment to Java 1.4 but since you are running Solaris you can install 
JDK 1.5 anywhere (even /export/home) without it colliding with the 
overall SO Java installation.


So why not use JDK 1.5, set your JAVA_HOME to your new Java directory 
and enjoy the weekend?


I have Tomcat 5.5.4 running with JDK 1.5.02 on Solaris 9 and it worked 
basically out of the box doing nothing more than setting JAVA_HOME  
CATALINA_HOME   =)


---
Luis

dsimmons wrote:


I have been googling the archives and anyplace else I can think of for
my particular problem, for about three days, without success.

ANY help would be greatly appreciated.

I suspect a simple path problem or a missing component, but honestly
I've been through about a half-dozen install/troubleshoot tomcat
checklists without finding it.

I have placed as much diagnostic information as I could think of at:
http://www.lib.siu.edu/dsimmons

Thanks,
Doug Simmons
SIUC

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

 



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



How to query Tomcat for the number of peers in the cluster without using the JMX

2005-07-08 Thread Edmon Begoli
Since I may not be allowed to enable JMX on the production, but we would 
still like to query 
host Tomcat for the number of peers in the cluster can someone please share 
how can this be accomplished
using the Tomcat API, and what jars, if any, I would need to have in the lib 
directory of my web application.

-- 
Thank you,
Edmon Begoli
http://blogs.ittoolbox.com/eai/software


Tomcat 5.5.9 - When JSPs change, gives error org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated

2005-07-08 Thread Craig Dixon
I've encountered a strange problem with my JSPs in Tomcat. Whenever I
change one of them, then try to access it from the browser, I get the
following error:

HTTP Status 500 -
 
type Exception report
 
message
 
description The server encountered an internal error () that prevented
it from fulfilling this request.
 
exception
 
javax.servlet.ServletException: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
root cause
 
javax.xml.parsers.FactoryConfigurationError: Provider
org.apache.xerces.jaxp.SAXParserFactoryImpl could not be instantiated:
java.lang.NullPointerException
javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)

org.apache.taglibs.standard.tlv.JstlBaseTLV.validate(JstlBaseTLV.java:152)

org.apache.taglibs.standard.tlv.JstlCoreTLV.validate(JstlCoreTLV.java:96)

org.apache.jasper.compiler.TagLibraryInfoImpl.validate(TagLibraryInfoImpl.java:750)

org.apache.jasper.compiler.Validator.validateXmlView(Validator.java:1527)
org.apache.jasper.compiler.Validator.validate(Validator.java:1495)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:157)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
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:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.



I don't have the foggiest idea what that means, but when I stop and
restart Tomcat, everything usually works fine (until the next time I
change the file.)

I'd send relevant source code, but it seems to happen with every page
in multiple applications. I've posted this in several forums and have
yet to even get a reply. This is driving me batty! Any ideas?

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



Datasource works in Tomcat 5.5.4 but not 5.5.9

2005-07-08 Thread Craig Dixon
I am encountering a very strange problem when trying to use a
datasource in Tomcat. I got Tomcat 5.5.4 to access the datasource by
using the following in
TomcatHome\conf\Catalina\localhost\webAppContext.xml

Context path=/appName docBase=appName
debug=5 reloadable=true crossContext=true

  Resource name=jdbc/RDM auth=Container type=javax.sql.DataSource
maxActive=100 maxIdle=30 maxWait=1
username=*hidden* password=*hidden*
driverClassName=sun.jdbc.odbc.JdbcOdbcDriver
url=jdbc:odbc:RDM_CURRENT_11/

/Context



I use this in conjunction with the following in
TomcatHome\webapps\appName\WEB-INF\web.xml:

?xml version=1.0 encoding=ISO-8859-1?
 
web-app xmlns=http://java.sun.com/xml/ns/j2ee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd;
version=2.4
 
resource-ref
  descriptionRDM/description
  res-ref-namejdbc/RDM/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
/resource-ref
 
/web-app



This works like a dream.

I tried upgrading to Tomcat 5.5.9. I downloaded and installed the
admin add-on application, then added the datasource via the admin
interface as follows:

JNDI Name: RDM
Datasource URL: jdbc:odbc:RDM_CURRENT_11
JDBC Driver Class: sun.jdbc.odbc.JdbcOdbcDriver
Username: *hidden*
Password: *hidden*
MaxActiveConnections: 100
MaxIdleConnections: 30
MaxWaitForConnection: 1
Validation Query:

Now I get the following error:

HTTP Status 500 -
 
type Exception report
 
message
 
description The server encountered an internal error () that prevented
it from fulfilling this request.
 
exception
 
javax.servlet.ServletException: Unable to get connection, DataSource
invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create PoolableConnectionFactory ([Microsoft][ODBC SQL Server
Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS
LOGON'.)

org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)

org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)

org.apache.jsp.gradprofile_jsp._jspService(org.apache.jsp.gradprofile_jsp:171)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
root cause
 
javax.servlet.jsp.JspException: Unable to get connection, DataSource
invalid: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot
create PoolableConnectionFactory ([Microsoft][ODBC SQL Server
Driver][SQL Server]Login failed for user 'NT AUTHORITY\ANONYMOUS
LOGON'.)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.getConnection(QueryTagSupport.java:276)

org.apache.taglibs.standard.tag.common.sql.QueryTagSupport.doStartTag(QueryTagSupport.java:159)

org.apache.jsp.gradprofile_jsp._jspx_meth_sql_query_0(org.apache.jsp.gradprofile_jsp:190)

org.apache.jsp.gradprofile_jsp._jspService(org.apache.jsp.gradprofile_jsp:80)
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
 
note The full stack trace of the root cause is available in the Apache
Tomcat/5.5.9 logs.
Apache Tomcat/5.5.9



I still have 5.5.4 installed, and when I switch back to it, everything
works fine. I'd like to work in the most current version, though.
Anyone have any ideas about this?

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



symmetric crypt algorithm

2005-07-08 Thread Carlos Bracho
It's a java question more than a tomcat question

Do you know where can I find a symmetric crypt algorithm implementation in 
java?? like blowfish, idea or des??

regards

-- 
--
Carlos J, Bracho M. 
--
e-mail: [EMAIL PROTECTED]
MSN: [EMAIL PROTECTED]
+58 416 409 21 75 
--


Re: symmetric crypt algorithm

2005-07-08 Thread Patrick Thomas
There's a great website out there called google. I'm told that it has
answers to lots of questions like this. Try there before asking a lot
of busy people to do the looking for you.

Good hunting,
PST

On 7/8/05, Carlos Bracho [EMAIL PROTECTED] wrote:
 It's a java question more than a tomcat question
 
 Do you know where can I find a symmetric crypt algorithm implementation in
 java?? like blowfish, idea or des??
 
 regards
 
 --
 --
 Carlos J, Bracho M.
 --
 e-mail: [EMAIL PROTECTED]
 MSN: [EMAIL PROTECTED]
 +58 416 409 21 75
 --
 


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



Re: Problem with development cycle (5.5.9)

2005-07-08 Thread Robert Parsons

Hi Carlos,

I had exactly the same problem as you. To fix it I put a 'context.xml' 
in my 'public_html/META-INF' folder. The contents of the file looked 
like this:


?xml version=1.0 encoding=UTF-8?
Context reloadable=true docBase=/opt/myapp/src/build path=/myapp
   !-- nothing here --
/Context

That seems to make tomcat load the application from the build folder 
rather than copying it into its own folder.


I hope that helps,
- Robert.


Carlos A. Carnero Delgado wrote:


Hello,

I've been developing on the 4.x series and the 5.0.x series for a
while, using more or less the Jakarta suggested Ant build.xml script
and their source organization (I think it's a de facto standard along
with Blueprint's.) Anyway, I started testing a new workflow using
J2SDK 5 and the latest 5.5.9 for a new project I'm supposed to start
soon. I have made the simplest web application consisting of one JSP
and one servlet. But I have (a hopefully simple) problem.

If I install (deploy) the application using Ant, it will do so, but
not like the old days: it will make the deployment is Tomcat's webapps
directory. My previous Tomcat experience is that an application will
be deployed directly from the build directory, making easy the
build/reload/edit development cycle. Now, with 5.5.9, I have to
re-deploy and restart Tomcat.

What I'm I doing wrong? I realize that Tomcat is doing exactly what's
told to do, but I'd like the old behavior: deploying from my
development build directory.

Best regards,
Carlos.

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



 




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



Re: Tomcat JSVC Errors

2005-07-08 Thread Bill Barker
At a first guess, compare the version of libgcc for jsvc and libjvm.so.  I 
remember that java -version tells you the second one on Lynux.  Otherwise, 
you can use 'ldd'.  You can also use 'ldd' to get the first.


Wasik, Paul [EMAIL PROTECTED] wrote in message 
news:[EMAIL PROTECTED]
Hello,



I'm rather new to Tomcat. I have configured Tomcat 5.0.28 to launch
under a non-privileged user account using the jsvc launcher. Tomcat
works fine except I am finding the following errors in my Tomcat logs.
I'm running this on Red Hat EL3 Linux server. I'm running the Sun JDK
1_5_0_03.



jsvc.exec error: Service exit with a return value of 143

Java HotSpot(TM) Client VM warning: Can't detect initial thread stack
location - find_vma failed



Can anyone point me in the right direction on how to resolve this? I
have Googled around but not found a good answer.



Thanks,



Paul





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



Problem using org.apache.catalina.startup.Bootstrap

2005-07-08 Thread Stuart

Hi,

I am trying to start Tomcat using my own script and am getting the following
error (Please help!):

/cygdrive/c/j2sdk1.4.2_07/bin/java -classpath
.\;c:\data\stuart\npshome\var\prop
erties\lsms;c:\jakarta-tomcat-5.0.28\bin\bootstrap.jar;c:\j2sdk1.4.2_07\lib\
tool
s.jar -Dcatalina.base=c:\data\stuart\npshome\var\lsmsweb
-Dcatalina.home=c:\jakarta-tomcat-5.0.28 -Djava.io.tmpdir=
-Djava.endorsed.dirs=c:\jakarta-tomcat-5.0.28\bin;c:\jakarta-tomcat-5.0.28\c
ommon\lib org.apache.catalina.startup.Bootstrap start


Bootstrap: Class loader creation threw exception
java.lang.ExceptionInInitializerError  at
org.apache.catalina.startup.ClassLoaderFactory.clinit(ClassLoaderFactory.j
ava:63)  at
org.apache.catalina.startup.Bootstrap.initClassLoaders(Bootstrap.java
:103)at
org.apache.catalina.startup.Bootstrap.init(Bootstrap.java:196)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:402)
Caused by: org.apache.commons.logging.LogConfigurationException:
org.apache.comm
ons.logging.LogConfigurationException: java.lang.NullPointerException
(Caused by
 java.lang.NullPointerException) (Caused by
org.apache.commons.logging.LogConfig
urationException: java.lang.NullPointerException (Caused by
java.lang.NullPointerException))at
org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactory
Impl.java:543)at
org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactory
Impl.java:235)

Regards,
Stuart


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