Container Managed Security?

2005-04-07 Thread Bjørn T Johansen
I have a small question... I am used to providing my own authentication system 
when
developing web systems, but I am now looking into providing container based 
security
instead. But when writing authentication myself, I have full control and can put
differenf information that I need into the session scope. How do I do this using
Tomcat's FORM-based authentication? Is there some listener I can hook onto or 
similar?


Regards,

BTJ
-- 
---
Bjørn T Johansen

[EMAIL PROTECTED]
---
Someone wrote:
I understand that if you play a Windows CD backwards you hear strange Satanic 
messages
To which someone replied:
It's even worse than that; play it forwards and it installs Windows
---

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



Nested tag problem in tomcat 5.0.29..Please help

2005-04-07 Thread Narayan, Satya


 Hi all,
 I am having problem compiling jsp pages with nested struts
 tags.
 Is this a known error ? I have a bean tag within a html tag which is
 causing a problem.
I tried the same web application in 4.1.29 it works perfectly fine but
with 5.0.29 and 5.0.28 it gives unable to compile class.

Somebody please help.

 Has anybody got this error.
 Kindly advise.
 
 Thanks and Regards,
 Satya


Re: Tomcat Timers/threads?

2005-04-07 Thread Jesper B. Kiær

HI

Take a look at Quartz.

Link:
http://www.opensymphony.com/quartz/

regards
Jesper B. Kiaer

http://www.jezzper.com



-Charl Gerber [EMAIL PROTECTED] wrote: -

To: tomcat-user@jakarta.apache.org
From: Charl Gerber
Date: 04/06/2005 15:11
Subject: Tomcat Timers/threads?

Does Tomcat 4.1 provide a way to schedule tasks?
Something similar to java.util.Timer?

BEA WebLogic eg offers a
weblogic.management.timer.Timer which has the same
affect, but is controlled by the application server.

I've been using a java.util.Timer up to now in Tomcat
4.1. I initialize it in the a ServletContextListener
and gracefully kill it there again when the
application stops, but strickly speaking this is
probably not correct. I've had no problems up to now,
though.

Does Tomcat offer a correct(er) solution, or can I
continue with the java.util.Timer?

Thanks!


-

 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: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Jesper B. Kiær

Hi

I'm wondering why you're using the Domino DLLs to access Domino?

Domino has a Corba interface which enables you to access all the Domino
classes (exept the Notes UI)

This whould be the normal way to do it.

What makes you choose the other way?

regards
Jesper B. Kiaer

http://www.jezzper.com


-Durfee, Bernard [EMAIL PROTECTED] wrote: -

To: Tomcat Users List
From: Durfee, Bernard
Date: 04/06/2005 22:33
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from
a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However,
this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path
 at java.lang.ClassLoader.loadLibrary(Unknown Source)
 at java.lang.Runtime.loadLibrary0(Unknown Source)
 at java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This
is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-

 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: error-page in web.xml and cache-control

2005-04-07 Thread Pawson, David
 

-Original Message-
From: Jason Bainbridge

 Hence I'm looking for a means of trapping that error for either a 
 re-direct, or to an error page. HTTP 1.1 seems not to 
class that as an 
 error, hence I'm looking for another way to access that 
'bad' state.

I don't think you can do anything about that, I don't think 
a request even hits the server for it, install 
ieHttpHeaders (google it) and monitor the request/response 
headers to see what is going on but I'm fairly sure you 
won't see anything hitting the server from that back button press.

Aaarggh! Thanks Jason, appreciated.

Now I know I'm chasing shadows I'll address that differently.

regards DaveP.

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE Tomcat 5.0.x and IIS 5

2005-04-07 Thread samuel . goblet
Hi,

Here, you'll find some link :

http://www.unlimitedftp.ca/support/resources/tomcat-iis.html
http://www.ozibug.com/doc/howto/iis-integration-howto.html
http://cephas.net/blog/2004/06/25/getting_iis_5x_tomcat_5x_to_play_nice.html
http://web.archive.org/web/20040324133706/http://www.rit.edu/~ack5504/tomcat-iis6-howto/tomcat-iis6-howto.html
http://www.mail-archive.com/tomcat-user@jakarta.apache.org/msg114069.html
http://www.onjava.com/pub/a/onjava/2002/12/18/tomcat.html


BEst regards and good luck.




SARMIENTO Claudia COGA [EMAIL PROTECTED] 
06/04/2005 18:11
Veuillez répondre à
Tomcat Users List tomcat-user@jakarta.apache.org


A
'Tomcat Users List' tomcat-user@jakarta.apache.org
cc

Objet
Tomcat 5.0.x and IIS 5






Hi all:
Could you help me to found a connector and the instructions to make iis 
and
tomcat work together?, i'm looking into the jakarta web and only found 
this
page:
http://jakarta.apache.org/tomcat/connectors-doc-archive/jk2/jk/iishowto.html

i don't know if there is a more recent document about this


Thanks!
Claudia

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




Moving jsp from development environment (v 5.0.28) to production environment (5.5.7) leads to complilation problems

2005-04-07 Thread Steiner, Stephan
Hi

I'm developing JSP applications on Netbeans 4.0, running on JDK
1.5.0_02-b09. I have no problem running my applications inside Netbeans on
my development Box (WinXP), yet when I move them to the productive
environment (W2K3 server with the latest Tomcat), some of the scripts can no
longer be compiled.

Here is one sample compilation message I get:

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

An error occurred at line: 2 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token , ( expected

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

An error occurred at line: 2 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token :, ; expected

An error occurred at line: 2 in the jsp file: /index.jsp
Generated servlet error:
Syntax error on token ), ; expected after this token

The jsp file starts with the following two lines:
[EMAIL PROTECTED] language=java import=java.net.InetAddress, java.util.*,
ldapsearch.Searcher %%
String thisServer = InetAddress.getLocalHost().getHostAddress();

Note however, that the error message is wrong. If I strip a lot of the code
at the bottom of the jsp file, it'll compile with the exact same first
couple of lines.

I also have Tomcat 5.5.7 installed on my development box, but the same thing
happens there. As a workaround, I compiled the jsp inside Netbeans, then put
the generated .java and .class files in the appropriate path on the
productive system, and that takes care of the problem, yet it means for the
slightest change of the jsp page, I have to recompile and move all 3 files
over to the productive machine.

Is there a solution to this? I figure for some wicked reason, Tomcat has
problems with certain .jsp files but so far I have not been able to find
anything that the files that cannot be compiled have in common with the ones
that can be compiled.. Depending on how much I remove from the jsp, it will
compile on Tomcat 5.5.7, but I'm afraid I cannot find the logic behind when
it'll compile and when it won't so I'm hoping somebody else has an idea.

Regards
Stephan

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



Re: [Slightly OT] CLASSPATH variable in catalina.sh

2005-04-07 Thread Jon Wingfield
I don't think
${catalina.home}/common/classes/log4j.properties
is a valid classpath element.
An excerpt from the java tools doc says:
How the Java Launcher Finds User Classes:
User classes are classes which build on the Java platform. To find user 
classes, the launcher refers to the user class path -- a list of 
directories, JAR archives, and ZIP archives which contain class files.

So - if you *really* want to go this road - 
${catalina.home}/common/classes would probably be better.

However, since (IIRC) tomcat doesn't ship with axis you probably have it 
 in your webapp's WEB-INF/lib. WEB-INF/classes takes precedence so if 
the  properties file is there it should be picked up first. Ultimately, 
I guess it all depends on the relative places in the classloader 
hierarchy  of the log4j and axis jars.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
HTH,
Jon
Robert Bateman wrote:
While debugging a log4j problem this afternoon... I happened to attempt
to rearrange the contents of my CLASSPATH on my Fedora Core 2 machine in
order to insure a correct log4j.properties file is being loaded by TC.
To insure the proper file is loaded, I placed
${catalina.home}/common/classes/log4j.properties as the *first* entry in
the CLASSPATH that catalina.sh passes into the bootstrap process. 
Looking at 'ps -aef | grep java' I see my properties file listed first
in the classpath.

HOWEVER, it appears that classloader sun.misc.Launcher$AppClassLoader in
Java 1.4.2_05 doesn't honor the -classpath in it's entirety - as
1.4.2_05 *never* loads the log4j.properties file that's in the
classpath.  Instead - it decides to load the log4j.properties file that
is contained in the axis-ant.jar file.
Am I crazy  Or did I do something wrong???
Bob
-
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: Moving jsp from development environment (v 5.0.28) to production environment (5.5.7) leads to complilation problems

2005-04-07 Thread Navneet Karnani
Note however, that the error message is wrong. If I strip a lot of the code
at the bottom of the jsp file, it'll compile with the exact same first
couple of lines.
I figure this to be the problem with the compilet that Tomcat is using. 
Try and make the JDK (sun compiler) as the default for tomcat. This was 
the default in 5.0 in 5.5 they moved to the JDT compilet. This may fix 
the problem.

- Navneet
I also have Tomcat 5.5.7 installed on my development box, but the same thing
happens there. As a workaround, I compiled the jsp inside Netbeans, then put
the generated .java and .class files in the appropriate path on the
productive system, and that takes care of the problem, yet it means for the
slightest change of the jsp page, I have to recompile and move all 3 files
over to the productive machine.
Is there a solution to this? I figure for some wicked reason, Tomcat has
problems with certain .jsp files but so far I have not been able to find
anything that the files that cannot be compiled have in common with the ones
that can be compiled.. Depending on how much I remove from the jsp, it will
compile on Tomcat 5.5.7, but I'm afraid I cannot find the logic behind when
it'll compile and when it won't so I'm hoping somebody else has an idea.
Regards
Stephan

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


Re: Custom 404 page when a webapp is stopped by the manager

2005-04-07 Thread Lionel Farbos
Hi,

If you use apache and mod_jk, an issue could be :
when you stop your Context, you change your JkMount towards a custom Tomcat 
Context that display your desired error-page.

If you use a Tomcat standalone, I don't kown how to ... :-(
Regards.

On Wed, 6 Apr 2005 13:08:30 -0400
Pascal Gauthier [EMAIL PROTECTED] wrote:

 Hi,
 
 we have a tomcat webapp that needs to be down if we are doing a maintenance 
 to the database. The manager seems to be the perfect solution to make the 
 application unavailable but we found out that the 404 error-page cannot be 
 customized.
 
 Even if we modified the default web.xml (in conf/) to add the error-page 404, 
  it doesn't seems to be resolved when the context is stopped.
 
 If I type an URL that doesn't exists, that doesn't map to any context, I get 
 the right error page. But if it match a context path of a webapp that is 
 stopped, I have the Tomcat default error page. Is there a way to fix this?
 
 Are we the only one trying to have a custom error page when the webapp is 
 down? 
 
 thanks in advance
 pascal.
 
 
 
 -
 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: [Slightly OT] CLASSPATH variable in catalina.sh

2005-04-07 Thread Jon Wingfield
Sorry. Didn't see your previous post relating to the use of the 
-security flag. I'm not sure why it should make a difference in this 
case but in the past I've found that using
CATALINA_OPTS=-Djava.security.debug=access,failure
and starting tomcat at the command line with:
catalina run -security 2 access.err  access.out
to be useful for debugging security issues.

J
Jon Wingfield wrote:
I don't think
${catalina.home}/common/classes/log4j.properties
is a valid classpath element.
An excerpt from the java tools doc says:
How the Java Launcher Finds User Classes:
User classes are classes which build on the Java platform. To find user 
classes, the launcher refers to the user class path -- a list of 
directories, JAR archives, and ZIP archives which contain class files.

So - if you *really* want to go this road - 
${catalina.home}/common/classes would probably be better.

However, since (IIRC) tomcat doesn't ship with axis you probably have it 
 in your webapp's WEB-INF/lib. WEB-INF/classes takes precedence so if 
the  properties file is there it should be picked up first. Ultimately, 
I guess it all depends on the relative places in the classloader 
hierarchy  of the log4j and axis jars.

http://jakarta.apache.org/tomcat/tomcat-5.0-doc/class-loader-howto.html
HTH,
Jon
Robert Bateman wrote:
While debugging a log4j problem this afternoon... I happened to attempt
to rearrange the contents of my CLASSPATH on my Fedora Core 2 machine in
order to insure a correct log4j.properties file is being loaded by TC.
To insure the proper file is loaded, I placed
${catalina.home}/common/classes/log4j.properties as the *first* entry in
the CLASSPATH that catalina.sh passes into the bootstrap process. 
Looking at 'ps -aef | grep java' I see my properties file listed first
in the classpath.

HOWEVER, it appears that classloader sun.misc.Launcher$AppClassLoader in
Java 1.4.2_05 doesn't honor the -classpath in it's entirety - as
1.4.2_05 *never* loads the log4j.properties file that's in the
classpath.  Instead - it decides to load the log4j.properties file that
is contained in the axis-ant.jar file.
Am I crazy  Or did I do something wrong???
Bob
-
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: How to read JNDI resources?

2005-04-07 Thread Andrew Watters
Hi Vaneet
Thanks for the reference. I'm a little confused though, what are you 
referring to in this page that I should read? I can't see anything that 
explains how the context element is used.

Thanks
Andrew
Vaneet Sharma wrote:
U need to read this page
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/deployment.html
Have fun reading
Vaneet
-Original Message-
From: Andrew Watters [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 06, 2005 6:14 PM
To: Tomcat Users List
Subject: Re: How to read JNDI resources?

Thank you, I appreciate your reply. I didn't have a context entry so I 
added a minimal one (copied from the /examples one) before proceeding 
further as shown below.

   Context path=/xxx docBase=xxx debug=0 reloadable=true 
crossContext=true /

Unfortunately tomcat doesn't start now. I get a 'Document base 
C:\Development\Java\jakarta-tomcat-4.1.31\webapps\xxx does not exist or 
is not a readable directory'

So I added a direcory xxx. Now tomcat starts ok but it doesn't unpack 
the xxx.war. Again I'm probably making some very simple mistake but 
can't see the problem or an answer in the docs or by googling...


Mark Thomas wrote:
 

You need to include a ResourceLink element in your context.
Mark
Andrew Watters wrote:
   

Using tomcat 4.3.1 I have included the following in server.xml 
GlobalNamingResources
  Environment name=config_file type=java.lang.String
value=test/
/GlobalNamingResources

In a servlet loaded on startup I try to read in the property 
InitialContext ic = new InitialContext(); Context ctx = (Context) 
ic.lookup(java:comp/env); String configFilename = 
(String)(ctx.lookup(config_file));

This code throws a NamingException. Where have I gone wrong?
Thanks
Andrew
-
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]

Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile:  +356 9943 8263
skype:   CALLVANEET
fax: +356 9952 
phone:   +356 9942 
[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET
Want a signature like this? - www.plaxo.com\signature
iwg is a global e-mobile company creating, building and growing new businesses. 
 iwg founders are pioneers in creating multi-billion dollar mobile and Internet 
businesses in Europe, Asia and the US.
www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt
Privileged/Confidential Information may be contained in this message.  If 
you are not the addressee indicated in this message (or responsible for 
delivery of the message to such person), you may not copy or deliver this 
message to anyone. In such case, you should destroy this message and kindly 
notify the sender by reply email.
-
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 ssl configuration

2005-04-07 Thread Mustafa BLKBA
No i created it with the user which i installed tomcat on the machine, does it 
make difference?

-Original Message-
From: James T. Studebaker [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 5:00 AM
To: Tomcat Users List
Subject: Re: tomcat ssl configuration

Did you create the keystore while logged on as the root user?


Thank you
James T. Studebaker

- Original Message - 
From: Mustafa BLKBA [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Monday, April 04, 2005 8:24 AM
Subject: tomcat ssl configuration


I use tomcat 5.0.28 on linux, my j2se version is 1.4.02. I did all the steps
in the document which is on this link but it's not working. Is there anybody
who can help me with this issue?



Thanx,

Mustafa.





-
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 scalability

2005-04-07 Thread Lionel Farbos
Hi,

If you want to use Tomcat for high loads, I suggest you to use apache/mod_jk 
and a cluster of Tomcat instances.
With this solution you'll have load-balancing and failover for a lot of users.
I don't use a HP very powerful, so, for the performances, I don't know if it is 
better to have one instance or several instances, but for the administration 
(applications upgrades, ...) and failover it is better to have several ones.

For high performances, some readings :
http://cvs.apache.org/~woolfel/benchmark_summary.pdf
http://cvs.apache.org/~woolfel/tc_results.html
http://brandlay.com/wojtek/publ/tomcat.jsp
http://marc.theaimsgroup.com/?l=tomcat-userm=110906276815396w=2
http://www.servlets.com/cos/javadoc/com/oreilly/servlet/CacheHttpServlet.html
http://simpleweb.sourceforge.net/performance/comparison.php

a tool to test performances : Jmeter (http://jakarta.apache.org/jmeter/)

Regards.

On Thu, 07 Apr 2005 10:29:22 +0530
Shrikant Navelkar [EMAIL PROTECTED] wrote:

 Hi,
 
 We are planning to deploy an application (JSP/Tomcat/Oracle) for 300-400 
 concurrent users.  The hardware is HP/True UNIX platform and it is very 
 powerful.  Unfortunately we can not deploy the application in a phased 
 wise manner.
 
 Can somebody help us to understand :
 1.  How scalable Tomcat is ? Are there sufficient examples of Tomcat for 
 300 + users ?
 1.  What are the tools available for scalability testing ?
 2.  Any document  describing performance tuning of Tomcat server
 3.  Can we implement multiple tomcat instances on same server for better 
 performance ?
 
 Thanks in advance
 
 Shrikant
 
 
 
 -
 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: Custom 404 page when a webapp is stopped by the manager

2005-04-07 Thread Pawson, David
 

-Original Message-
From: Pascal Gauthier 


we have a tomcat webapp that needs to be down if we are 
doing a maintenance to the database. The manager seems to 
be the perfect solution to make the application unavailable 
but we found out that the 404 error-page cannot be customized.

Even if we modified the default web.xml (in conf/) to add 
the error-page 404,  it doesn't seems to be resolved when 
the context is stopped.

Do you know which web.xml is in use at any particular time?

If a client interacts with webapp A, is it the web.xml 
in {tchome}/webapps/A/WEB-INF/web.xml that is in control?

What about the web.xml in ROOT/WEB-INF/web.xml? When does
that come into use?

And what is the purpose of /conf/web.xml ?

For error handling purposes, should all these be lined up if I 
want to use the same error pages?

regards DaveP

-- 
DISCLAIMER:

NOTICE: The information contained in this email and any attachments is 
confidential and may be privileged.  If you are not the intended 
recipient you should not use, disclose, distribute or copy any of the 
content of it or of any attachment; you are requested to notify the 
sender immediately of your receipt of the email and then to delete it 
and any attachments from your system.

RNIB endeavours to ensure that emails and any attachments generated by
its staff are free from viruses or other contaminants.  However, it 
cannot accept any responsibility for any  such which are transmitted.
We therefore recommend you scan all attachments.

Please note that the statements and views expressed in this email and 
any attachments are those of the author and do not necessarily represent
those of RNIB.

RNIB Registered Charity Number: 226227

Website: http://www.rnib.org.uk




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



RE: SSL configuration question

2005-04-07 Thread Mustafa BLKBA
Hi Mark,
Have you achived to configure ssl on tomcat? If yes, can you please tell me the 
documentation that you read? I tried to configure it with the information on 
this link http://jakarta.apache.org/tomcat/tomcat-5.0-doc/ssl-howto.html. but i 
couldn't do it.

-Original Message-
From: Faine, Mark [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 05, 2005 7:34 PM
To: 'Tomcat Users List'
Subject: RE: SSL configuration question

Nevermind, It is fixed.  Unfortunately though I can't pass on my findings as
I'm not sure exactly what fixed it.

-Mark
 

-Original Message-
From: Faine, Mark 
Sent: Tuesday, April 05, 2005 9:44 AM
To: 'Tomcat Users List'
Subject: RE: SSL configuration question

I tried this same procedure that you suggested below for importing Apache
SSL key to tomcat
(http://kb.thawte.com/thawte/thawte/esupport.asp?id=vs24694) on another
server and it didn't work.  I'm getting the error listed below when tomcat
starts up.  I've done it exactly like before.  Any help resolving this issue
would be greatly appreciated it.

-Mark


 SEVERE: Error starting endpoint
java.io.IOException: failed to decrypt safe contents entry:
javax.crypto.BadPaddingException: Given final block not properly padded
at
com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1
275)
at java.security.KeyStore.load(KeyStore.java:1150)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getStore(JSSESocketFactory
.java:278)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.getKeystore(JSSESocketFact
ory.java:220)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.getKeyManagers(JSSE14Soc
ketFactory.java:143)
at
org.apache.tomcat.util.net.jsse.JSSE14SocketFactory.init(JSSE14SocketFactory
.java:109)
at
org.apache.tomcat.util.net.jsse.JSSESocketFactory.createSocket(JSSESocketFac
tory.java:88)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.initEndpoint(PoolTcpEndpoint.java
:259)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.jav
a:281)
at
org.apache.coyote.http11.Http11Protocol.start(Http11Protocol.java:171)
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1527)
at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Caused by: javax.crypto.BadPaddingException: Given final block not properly
padded
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.SunJCE_h.b(DashoA6275)
at com.sun.crypto.provider.SunJCE_ab.b(DashoA6275)
at
com.sun.crypto.provider.PKCS12PBECipherCore$PBEWithSHA1AndRC2_40.engineDoFin
al(DashoA6275)
at javax.crypto.Cipher.doFinal(DashoA12275)
at
com.sun.net.ssl.internal.ssl.PKCS12KeyStore.engineLoad(PKCS12KeyStore.java:1
272)
... 19 more
Apr 5, 2005 9:22:36 AM org.apache.catalina.startup.Catalina start
SEVERE: Catalina.start: 
LifecycleException:  Protocol handler start failed: java.io.IOException:
failed to decrypt safe contents entry: javax.crypto.BadPaddingException:
Given final block not properly padded
at
org.apache.coyote.tomcat5.CoyoteConnector.start(CoyoteConnector.java:1529)
at
org.apache.catalina.core.StandardService.start(StandardService.java:489)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2313)
at org.apache.catalina.startup.Catalina.start(Catalina.java:556)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:287)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:425)
Apr 5, 2005 9:22:36 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 14756 ms

-Original Message-
From: Faine, Mark
Sent: Friday, April 01, 2005 9:25 AM
To: 'Tomcat Users List'
Subject: RE: SSL configuration question

Thanks, the link you provided allowed me to get it imported correctly.  This
should go on a FAQ.

Thanks again,
-Mark
 

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

Tomcat 5.5.x and Java 1.5

2005-04-07 Thread Steiner, Stephan
Hi

I'm trying to compile a couple of jsp pages that use Java 1.5 syntax. I
followed the Jasper how-to and replaced the jdt jar with the latest ant.jar
(taken from the Ant 1.6.2 distribution). After a restart of Tomcat, Tomcat
now uses the JDK compiler (I see different error message for my Java 1.5
code). However, the default is to write code compatible with JDK 1.4. 

So I added the following lines to my web.xml config file (in the jsp servlet
section) and restarted Tomcat again:

init-param
param-namecompilerSourceVM/param
param-value1.5/param
/init-param
init-param
param-namecompilerTargetVM/param
param-value1.5/param
/init-param

After a restart, trying to access any page yields a 404 error, with no
entries in the logfiles. Setting the version number to 1.4 instead yields
the same behavior. Removing those two init-params again and everything is
back to normal, but I still can't use Java 1.5 features. Is there anything
I'm missing to run Java 1.5 code on Tomcat 5.5.x?

Regards
Stephan

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



Re: Tomcat 5.5.x and Java 1.5

2005-04-07 Thread Remy Maucherat
On Apr 7, 2005 11:15 AM, Steiner, Stephan [EMAIL PROTECTED] wrote:
 Hi
 
 I'm trying to compile a couple of jsp pages that use Java 1.5 syntax. I
 followed the Jasper how-to and replaced the jdt jar with the latest ant.jar
 (taken from the Ant 1.6.2 distribution). After a restart of Tomcat, Tomcat
 now uses the JDK compiler (I see different error message for my Java 1.5
 code). However, the default is to write code compatible with JDK 1.4.
 
 So I added the following lines to my web.xml config file (in the jsp servlet
 section) and restarted Tomcat again:
 
 init-param
 param-namecompilerSourceVM/param
 param-value1.5/param
 /init-param
 init-param
 param-namecompilerTargetVM/param
 param-value1.5/param
 /init-param
 
 After a restart, trying to access any page yields a 404 error, with no
 entries in the logfiles. Setting the version number to 1.4 instead yields
 the same behavior. Removing those two init-params again and everything is
 back to normal, but I still can't use Java 1.5 features. Is there anything
 I'm missing to run Java 1.5 code on Tomcat 5.5.x?

I updated JDT in Tomcat CVS to 3.1M6, as well as handling of those two
properties (which may or may not fix Ant, as I didn't test it), so you
can try building a new Jasper from CVS.

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

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



Re: How to read JNDI resources?

2005-04-07 Thread Andrew Watters
Have found a couple of solutions.
Set the docbase to point to the WAR.
Context path=/xxx docBase=xxx.war debug=0 reloadable=true 
crossContext=true /

OR manually unpack the WAR after upload.
And the JNDI part works fine now :)

Andrew Watters wrote:
Hi Vaneet
Thanks for the reference. I'm a little confused though, what are you 
referring to in this page that I should read? I can't see anything 
that explains how the context element is used.

Thanks
Andrew
Vaneet Sharma wrote:
U need to read this page
http://jakarta.apache.org/tomcat/tomcat-5.5-doc/appdev/deployment.html
Have fun reading
Vaneet
-Original Message-
From: Andrew Watters [mailto:[EMAIL PROTECTED] Sent: 
Wednesday, April 06, 2005 6:14 PM
To: Tomcat Users List
Subject: Re: How to read JNDI resources?

Thank you, I appreciate your reply. I didn't have a context entry so 
I added a minimal one (copied from the /examples one) before 
proceeding further as shown below.

   Context path=/xxx docBase=xxx debug=0 reloadable=true 
crossContext=true /

Unfortunately tomcat doesn't start now. I get a 'Document base 
C:\Development\Java\jakarta-tomcat-4.1.31\webapps\xxx does not exist 
or is not a readable directory'

So I added a direcory xxx. Now tomcat starts ok but it doesn't unpack 
the xxx.war. Again I'm probably making some very simple mistake but 
can't see the problem or an answer in the docs or by googling...


Mark Thomas wrote:
 

You need to include a ResourceLink element in your context.
Mark
Andrew Watters wrote:
  

Using tomcat 4.3.1 I have included the following in server.xml 
GlobalNamingResources
  Environment name=config_file type=java.lang.String
value=test/
/GlobalNamingResources

In a servlet loaded on startup I try to read in the property 
InitialContext ic = new InitialContext(); Context ctx = (Context) 
ic.lookup(java:comp/env); String configFilename = 
(String)(ctx.lookup(config_file));

This code throws a NamingException. Where have I gone wrong?
Thanks
Andrew
-
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]

Vaneet Sharma
executive manager   
iDeasTank Limited   
an iwg business
dolphins' court po 388
valletta, m-malta/europe
mobile: +356 9943 8263
skype: CALLVANEET
fax: +356 9952 
phone: +356 9942 

[EMAIL PROTECTED]
call me on www.skype.com - my ID is CALLVANEET
Want a signature like this? - www.plaxo.com\signature
iwg is a global e-mobile company creating, building and growing new 
businesses.  iwg founders are pioneers in creating multi-billion 
dollar mobile and Internet businesses in Europe, Asia and the US.

www.iWG.info
www.countryprofiler.com/iWG
www.visitmalta.com
www.mfc.com.mt
Privileged/Confidential Information may be contained in this 
message.  If you are not the addressee indicated in this message (or 
responsible for delivery of the message to such person), you may not 
copy or deliver this message to anyone. In such case, you should 
destroy this message and kindly notify the sender by reply email.

-
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: Tomcat scalability

2005-04-07 Thread Tim Funk
1a) It depends on your code. TOmcat can handle it but only if your code can 
also scale.
1b) Free: Jmeter, seige, apache ab - it depends on the type of test
2) See the faq or wiki
	http://jakarta.apache.org/tomcat/faq/performance.html
  	http://wiki.apache.org/jakarta-tomcat/UsefulLinks
3) Maybe. This really depends on
 - Do you have multiple CPUs
 - Can you a single JVM use multiple CPU's effectively (as compared to 2 or 
more)
 - Do you have enough memory
 - What nuances (to your advantage or disadvantage) are there is thread 
scheduing across mutlitple  JVMs / CPUs for your OS.

-Tim
Shrikant Navelkar wrote:
Hi,
We are planning to deploy an application (JSP/Tomcat/Oracle) for 300-400 
concurrent users.  The hardware is HP/True UNIX platform and it is very 
powerful.  Unfortunately we can not deploy the application in a phased 
wise manner.

Can somebody help us to understand :
1.  How scalable Tomcat is ? Are there sufficient examples of Tomcat for 
300 + users ?
1.  What are the tools available for scalability testing ?
2.  Any document  describing performance tuning of Tomcat server
3.  Can we implement multiple tomcat instances on same server for better 
performance ?

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


Mod_proxy problems

2005-04-07 Thread Sels Wannes
Hi,

I'm using Apache 2  Tomcat 5.0 . Below is relevant info from the config files:

Tomcat server.xml
-
Connector port=8080
   maxThreads=150 minSpareThreads=25 maxSpareThreads=75
   enableLookups=false redirectPort=8443 acceptCount=100
   debug=0 connectionTimeout=2 
   disableUploadTimeout=true
proxyName=http://www.publicwebserver.com/tomcat/;
proxyPort=80 /

Apache httpd.conf
-
#Simple proxy for tomcat
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
ProxyRequests on
ProxyVia On

Proxy *
Order deny,allow
Allow from all
/Proxy

ProxyPass /tomcat  http://localhost:8080
ProxyPassReverse  /tomcat  http://localhost:8080



I've got a few problems with this setup:
-I can only get to the tomcat root, not to any webapp beyond the root
-Tomcat seems to ignore the proxyName and use http://www.publicwebserver.com , 
because of this the images on the tomcat root page fail to load.


Can any one see what I'm doing wrong? Or should I rather ask this question on 
the Apache list?


Kind Regards,
 
Wannes Sels


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



problem configuring context resource in Tomcat 5.0 for mysql connector/j

2005-04-07 Thread junker


Im having problems with setting up a database connection pool with mysql
connector/j.

I follow the example code in the how-twos. My problem is that Tomcat seems to
pickup my resource and its parameters (kind of)! I would like to connect to a
database that is not on localhost. So in the url paremeter I use:

parameter
  nameurl/name
  valuejdbc:mysql://IP_Address:3306/javatest?autoReconnect=true/value
/parameter



However, when I run the test example I get:

Access denied for user: 'javauser@Tomcat_Machine_IP_address' (Using password:
YES)

When I replace the IP address with duff text ie. blahblah I then get the error
that blahblah is a n unknownhost exception, which I expect.

This is driving me bonkers and I bet its something simple, I just cant see
it

I have been reading many articles on the net and I have tried a variety of
combinations but to no success! Arrhh!

Setup;

1) Im using the mysql connector/j drivers
2) Using Tomcat 5.0
3) On windows XP (Dev!) which will be deployed to redhat eventually!
4) Using the example on the Tomcat website, I moved the context out of:
CATALINA_HOME\conf\server.xml to:
CATALINA_HOME\conf\Catalina\localhost\DBTest.xml it behaves the same in both
cases.


Many thanks in advance.

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



Re: Tomcat scalability

2005-04-07 Thread Peter Lin
before you can answer that question, you need to know what the average
and peak concurrent requests is. without that 300-400 concurrent users
doesn't mean much.

If those 400 users hit the site once per minute average over 30
minutes, it would mean 12,000 requests in 30 minutes.  Even if the
user hits the site once every 30 seconds, that would only be double
24,000 requests in 30 minutes.  if I naively divide that to get
requests/second, I get roughly 14 concurrent requests per second.  Put
it another way, that is basically 4% of the users sending a request at
the same time.

I would suggest stress testing your application. It's probably a good
idea to look at your production access logs and run some stats. that
way you're using real data as the basis of your test.

peter



On Apr 7, 2005 12:59 AM, Shrikant Navelkar [EMAIL PROTECTED] wrote:
 Hi,
 
 We are planning to deploy an application (JSP/Tomcat/Oracle) for 300-400
 concurrent users.  The hardware is HP/True UNIX platform and it is very
 powerful.  Unfortunately we can not deploy the application in a phased
 wise manner.
 
 Can somebody help us to understand :
 1.  How scalable Tomcat is ? Are there sufficient examples of Tomcat for
 300 + users ?
 1.  What are the tools available for scalability testing ?
 2.  Any document  describing performance tuning of Tomcat server
 3.  Can we implement multiple tomcat instances on same server for better
 performance ?
 
 Thanks in advance
 
 Shrikant
 
 -
 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: problem configuring context resource in Tomcat 5.0 for mysql connector/j

2005-04-07 Thread Parsons Technical Services
You need to setup the user in the database. If you log into the database and 
switch to the mysql database. The do a select * from users you will see the 
users are defined with either localhost, %, or an IP. You will need to have 
the javauser setup to use the % (anywhere) or better the IP of the Tomcat 
machine.

OR the user does not have rights to the database you are trying to access.
Doug
- Original Message - 
From: [EMAIL PROTECTED]
To: tomcat-user@jakarta.apache.org
Sent: Thursday, April 07, 2005 7:58 AM
Subject: problem configuring context resource in Tomcat 5.0 for mysql 
connector/j



Im having problems with setting up a database connection pool with mysql
connector/j.
I follow the example code in the how-twos. My problem is that Tomcat seems 
to
pickup my resource and its parameters (kind of)! I would like to connect 
to a
database that is not on localhost. So in the url paremeter I use:

   parameter
 nameurl/name
valuejdbc:mysql://IP_Address:3306/javatest?autoReconnect=true/value
   /parameter

However, when I run the test example I get:
Access denied for user: 'javauser@Tomcat_Machine_IP_address' (Using 
password:
YES)

When I replace the IP address with duff text ie. blahblah I then get the 
error
that blahblah is a n unknownhost exception, which I expect.

This is driving me bonkers and I bet its something simple, I just cant see
it
I have been reading many articles on the net and I have tried a variety of
combinations but to no success! Arrhh!
Setup;
1) Im using the mysql connector/j drivers
2) Using Tomcat 5.0
3) On windows XP (Dev!) which will be deployed to redhat eventually!
4) Using the example on the Tomcat website, I moved the context out of:
CATALINA_HOME\conf\server.xml to:
CATALINA_HOME\conf\Catalina\localhost\DBTest.xml it behaves the same in 
both
cases.

Many thanks in advance.
-
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 and pkcs#11

2005-04-07 Thread Lapo TIN
Hello,
I would like to use TOMCAT as HTTPS server on linux machine, with a USB
token that stores key for SSL criptography.
I know that I 'll not have good performances, but I don't care.
what I did:
I have installed correctly PKCS#11 support library of my usb token on Linux 
machine.
I have installed TOMCAT.
I would like to tell to TOMCAT to use my usb token for SSL cripto functions.
Tomcat said

I know that with JSSE it's possible to use PKCS#11 tokens as JSSE keystores.
http://java.sun.com/j2se/1.5.0/docs/guide/security/p11guide.html#JSSE
How can I tell to TOMCAT ?

thanks in advance
Lapo

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


Using Tomcat 5.5.x with Mysql

2005-04-07 Thread Marchioni Francesco
Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql 4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.

JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(Unknown Source)
at fad.bean.BaseManager.init(BaseManager.java:34)
at fad.bean.UserManager.init(UserManager.java:13)
at fad.bean.UserManager.getInstance(UserManager.java:23)
at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:371
)
at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:343)
at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:748)
at
org.apache.catalina.session.StandardManager.createSession(StandardManager.ja
va:290)
at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:82
2)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:83
3)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
48)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:12
3)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(

The configuration is the same published on Tomcat docs

server.xml:

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

  Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/

/Context

web.xml:

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
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco



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



RE: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Durfee, Bernard
Jesper,
I seemed to me that there would be a performance increase in using the DLL, 
since the servlet is running on the same machine as Domino. Using the CORBA 
method to connect to the same machine seemed like extra overhead.

Bernard Durfee


-Original Message-
From: Jesper B. Kiær [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 3:03 AM
To: Tomcat Users List
Subject: Re: java.library.path - DLL - Domino ..why not use CORBA?



Hi

I'm wondering why you're using the Domino DLLs to access Domino?

Domino has a Corba interface which enables you to access all the Domino classes 
(exept the Notes UI)

This whould be the normal way to do it.

What makes you choose the other way?

regards
Jesper B. Kiaer

http://www.jezzper.com


-Durfee, Bernard [EMAIL PROTECTED] wrote: -

To: Tomcat Users List
From: Durfee, Bernard
Date: 04/06/2005 22:33
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from a
servlet. I was under the impression that the DLL needed to be in the
path specified by the java.library.path system property. However,
this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino); 
m_logger.info(Using java.library.path:  + 
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path  at 
java.lang.ClassLoader.loadLibrary(Unknown Source)  at 
java.lang.Runtime.loadLibrary0(Unknown Source)  at 
java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This is
on a Windows 2000 machine. Any ideas?

Bernard Durfee

-

 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: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread David Owens
I am using mysql 4.1 and Tomcat 5.5.x successfully.  My context looks
the same as yours, but I do not have a resource-ref in my web.xml as
you do. I simple reference it like this: java:comp/env/jdbc/TestDB
in my hibernate configuration file.  You may not be using hibernate,
but the concept should be the same...

Is the mysql-connector.jar in your $CATALINA_HOME/common/lib dir?

|)ave

-Original Message-
From: Marchioni Francesco [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 7:09 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Using Tomcat 5.5.x with Mysql

Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql
4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.

JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is
not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
at
org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(Unknown Source)
at fad.bean.BaseManager.init(BaseManager.java:34)
at fad.bean.UserManager.init(UserManager.java:13)
at fad.bean.UserManager.getInstance(UserManager.java:23)
at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java
:371
)
at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:3
43)
at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:7
48)
at
org.apache.catalina.session.StandardManager.createSession(StandardManage
r.ja
va:290)
at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
a:82
2)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
a:83
3)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.ja
va:1
48)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.jav
a:12
3)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFacto
ryIm
pl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(

The configuration is the same published on Tomcat docs

server.xml:

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

  Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
 
url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/

/Context

web.xml:

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
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco



-
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]



R: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread Marchioni Francesco
Hi !
Thanks for your answer. 
I have mysql-connector-java-3.1.6-bin.jar
in $CATALINA_HOME/common/lib dir.
I'll give it a try with your JNDI configuration.
Thanks
Francesco

-Messaggio originale-
Da: David Owens [mailto:[EMAIL PROTECTED]
Inviato: giovedì 7 aprile 2005 14.32
A: Tomcat Users List
Oggetto: RE: Using Tomcat 5.5.x with Mysql


I am using mysql 4.1 and Tomcat 5.5.x successfully.  My context looks
the same as yours, but I do not have a resource-ref in my web.xml as
you do. I simple reference it like this: java:comp/env/jdbc/TestDB
in my hibernate configuration file.  You may not be using hibernate,
but the concept should be the same...

Is the mysql-connector.jar in your $CATALINA_HOME/common/lib dir?

|)ave

-Original Message-
From: Marchioni Francesco [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 7:09 AM
To: 'tomcat-user@jakarta.apache.org'
Subject: Using Tomcat 5.5.x with Mysql

Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql
4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.

JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is
not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this
Context
at
org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at
org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(Unknown Source)
at fad.bean.BaseManager.init(BaseManager.java:34)
at fad.bean.UserManager.init(UserManager.java:13)
at fad.bean.UserManager.getInstance(UserManager.java:23)
at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java
:371
)
at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:3
43)
at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:7
48)
at
org.apache.catalina.session.StandardManager.createSession(StandardManage
r.ja
va:290)
at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
a:82
2)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.jav
a:83
3)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.ja
va:1
48)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.jav
a:12
3)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFacto
ryIm
pl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(

The configuration is the same published on Tomcat docs

server.xml:

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

  Resource name=jdbc/TestDB auth=Container
type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
 
url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/

/Context

web.xml:

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
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco



-
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 as Windows service - access to resources

2005-04-07 Thread Jiang, Peiyun
I'm running Tomcat 5.0 on Windows 2000. I logon to Windows as user1 and I have 
a mapped drive G: that requires separate login (I user the same user name and 
password, so it automatically logs in). 
(1) If I login as user1 and start Tomcat from the start script, I can access 
drive G: from a servlet.
(2) If I login as user1 and run Tomcat as a Windows service, I don't have 
access to G: from a servlet. Even if I change the service property using user1 
to log on, I still don't have access to G: from a servlet.

Is there a workaround? Is it because when you run tomcat as a service, user1 is 
not the owner of the process even if you use user1 as log on?

Thanks.

Peiyun Jiang

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



Re: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread David Smith
Could you post the code used in doing the lookup?  What I see here 
appears to imply you are using jdbc: as the jndi name to look up.  As 
posted earlier, your jndi should look more like 
java:comp/env/jdbc/TestDB in the code where you do the lookup.

--David
Marchioni Francesco wrote:
Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql 4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.
JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
at javax.naming.InitialContext.lookup(Unknown Source)
at fad.bean.BaseManager.init(BaseManager.java:34)
at fad.bean.UserManager.init(UserManager.java:13)
at fad.bean.UserManager.getInstance(UserManager.java:23)
at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:371
)
at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:343)
at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:748)
at
org.apache.catalina.session.StandardManager.createSession(StandardManager.ja
va:290)
at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:82
2)
at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:83
3)
at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:1
48)
at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:12
3)
at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryIm
pl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(
The configuration is the same published on Tomcat docs
server.xml:
Context path=/DBTest docBase=DBTest
   debug=5 reloadable=true crossContext=true
 Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
  maxActive=100 maxIdle=30 maxWait=1
  username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
  url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/
/Context
web.xml:
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
 descriptionMySQL Test App/description
 resource-ref
 descriptionDB Connection/description
 res-ref-namejdbc/TestDB/res-ref-name
 res-typejavax.sql.DataSource/res-type
 res-authContainer/res-auth
 /resource-ref
/web-app
Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco

-
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: java.library.path - DLL - Domino ..why not use CORBA?

2005-04-07 Thread Jesper B. Kiær

Hi Bernard

If you're running on the same machine you do not need to have a Domino
session but can call the Domino classes as local. Actually it may be faster
to access
Domino with CORBA. Take a look at http://www.advisor.com/doc/07472

I must admit i have never heard of anyone tring to access Domino the way
you do.

My guess is that it is not the fastest way and proberbly unstable.

regards
Jesper B. Kiaer

http://www.jezzper.com



-Durfee, Bernard [EMAIL PROTECTED] wrote: -

To: Tomcat Users List
From: Durfee, Bernard
Date: 04/07/2005 15:18
Subject: RE: java.library.path - DLL - Domino ..why not use CORBA?

Jesper,
I seemed to me that there would be a performance increase in using
the DLL, since the servlet is running on the same machine as Domino.
Using the CORBA method to connect to the same machine seemed like
extra overhead.

Bernard Durfee


-Original Message-
From: Jesper B. Kiær [mailto:[EMAIL PROTECTED]
Sent: Thursday, April 07, 2005 3:03 AM
To: Tomcat Users List
Subject: Re: java.library.path - DLL - Domino ..why not use CORBA?



Hi

I'm wondering why you're using the Domino DLLs to access Domino?

Domino has a Corba interface which enables you to access all the
Domino classes (exept the Notes UI)

This whould be the normal way to do it.

What makes you choose the other way?

regards
Jesper B. Kiaer

http://www.jezzper.com


-Durfee, Bernard wrote: -

To: Tomcat Users List
From: Durfee, Bernard
Date: 04/06/2005 22:33
Subject: java.library.path - DLL - Domino

I am trying to use the native library for connecting to Domino from
a
servlet. I was under the impression that the DLL needed to be in
the
path specified by the java.library.path system property. However,
this
does not seem to work.

I got to the point where even brute force did not work...

System.setProperty(java.library.path, D:\\Lotus\\Domino);
m_logger.info(Using java.library.path:  +
System.getProperty(java.library.path));

...from the logger...

Using java.library.path: D:\Lotus\Domino

...then the line...

System.loadLibrary(nlsxbe);

...fails with the following exception...

java.lang.UnsatisfiedLinkError: no nlsxbe in java.library.path at
java.lang.ClassLoader.loadLibrary(Unknown Source) at
java.lang.Runtime.loadLibrary0(Unknown Source) at
java.lang.System.loadLibrary(Unknown Source)

...and indeed I do have a DLL file D:\Lotus\Domino\nlsxbe.dll. This
is
on a Windows 2000 machine. Any ideas?

Bernard Durfee


-

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


-

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


-

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


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



CoyoteConnector

2005-04-07 Thread Simon Zeng
Hi,

I am in the process of changing my JK connector from Ajp13Connector to
CoyoteConnector.  I have encountered some weird behaviors with the new
Connector that never happens with the old one.  Since I do a lot of
Applet-Servlet communication via HttpURLConnection, I've getting
StreamCorruptedException and EOFException randomly when the client side has
slow connection with the old connector (yes, I do it with java Object IO).
After I migrate to the new Connector, those symptoms are gone but I get
SocketTimeoutException with read timeout instead.  And when it happens,
tomcat usually stops taking new incoming requests for a while.  So the new
connector doesn't really help to solve my problems.

My guess is that when the SocketTimeoutException happens, the ajp processor
(or the underlying socket connection) doesn't release immediately somehow,
and after a couple of SocketTimeoutExceptions the Tomcat uses up all its
processors (or connections) so it will not take more requests till those
resources are released.

My temporary workaround for this is to set the Connector timeout to infinity
with the mod_jk recycle timeout to 600 to avoid any hang connection.  But I
don't know whether there will be any ill effects about this settings.

If anyone has any insight or solution for this problem please let me know.

Thank you,
Simon

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



R: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread Marchioni Francesco
Here it is:

Context ctx = new InitialContext();
 
if(ctx == null ) 
  throw new Exception(Boom - No Context);

  ds = (DataSource)ctx.lookup(jdbc/TestDB);

Francesco

-Messaggio originale-
Da: David Smith [mailto:[EMAIL PROTECTED]
Inviato: giovedì 7 aprile 2005 14.47
A: Tomcat Users List
Oggetto: Re: Using Tomcat 5.5.x with Mysql


Could you post the code used in doing the lookup?  What I see here 
appears to imply you are using jdbc: as the jndi name to look up.  As 
posted earlier, your jndi should look more like 
java:comp/env/jdbc/TestDB in the code where you do the lookup.

--David

Marchioni Francesco wrote:

Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql 4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.

JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
   at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
   at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
   at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
   at javax.naming.InitialContext.lookup(Unknown Source)
   at fad.bean.BaseManager.init(BaseManager.java:34)
   at fad.bean.UserManager.init(UserManager.java:13)
   at fad.bean.UserManager.getInstance(UserManager.java:23)
   at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
   at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
   at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
   at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:37
1
)
   at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:343)
   at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:748)
   at
org.apache.catalina.session.StandardManager.createSession(StandardManager.j
a
va:290)
   at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
   at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
   at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8
2
2)
   at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8
3
3)
   at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:
1
48)
   at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:1
2
3)
   at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryI
m
pl.java:104)
   at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(

The configuration is the same published on Tomcat docs

server.xml:

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

  Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
   maxActive=100 maxIdle=30 maxWait=1
   username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
   url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/

/Context

web.xml:

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
  descriptionMySQL Test App/description
  resource-ref
  descriptionDB Connection/description
  res-ref-namejdbc/TestDB/res-ref-name
  res-typejavax.sql.DataSource/res-type
  res-authContainer/res-auth
  /resource-ref
/web-app

Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco



-
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: tomcat as Windows service - access to resources

2005-04-07 Thread Peter Crowther
 From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] 
 I'm running Tomcat 5.0 on Windows 2000. I logon to Windows as 
 user1 and I have a mapped drive G: that requires separate 
 login (I user the same user name and password, so it 
 automatically logs in). 
 (1) If I login as user1 and start Tomcat from the start 
 script, I can access drive G: from a servlet.
 (2) If I login as user1 and run Tomcat as a Windows service, 
 I don't have access to G: from a servlet. Even if I change 
 the service property using user1 to log on, I still don't 
 have access to G: from a servlet.

Processes that run as services don't load the user profile of the user,
they just take on the user's network identity.  Amongst other things,
the profile stores drive mappings.  This means that no service (to my
knowledge) gets any drive mappings.  A typical workaround is to use the
UNC name of the mapped drive.

- Peter

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



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Robert Koberg
Do you have a 'hosts' file?
It should be located in $WINDOWS/system32/drivers/etc
If you don't have one, create it and put in a line like:
127.0.0.1 localhost
Note, you can also use this file for dev purposes. For example, say you 
are working on

127.0.0.1 tomcat.apache.org
best,
-Rob
Walter Lee wrote:
Thanks for responding. I always use the complete path, I just forgot to put it 
in my posting.
Wally
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat + Apache Web Server

2005-04-07 Thread Mike Millson
 Well the Coyote connector for one definitely has compression available
 and compresses content nicely, even dynamic content. 

OK, I see this now. And I see that you can configure the MIME types you
want to compress. Very good.

 I'm not sure of
 the specifics of the caching mechanisms used internally to Tomcat but
 it achieves caching nicely giving 304 not modified responses where
 applicable and often the browser will cache the static content so a
 request isn't even made.

I just test Tomcat standalone and checked the 5.0 code, and there is
nothing that sets the expires or cache-control max-age. Content will not
be pulled from local cache unless these are specified, unless your
browser is performing some magic. So it looks to me the best you can do
w/ Tomcat is achieve a 304 response.

304 responses are inefficient for truly static content like images,
style sheets, external JavaScript files, and perhaps some html and/or
test pages. These resources should be served from the browser cache
directly w/o connecting to the server. A server is only able to handle
so many connections, so it limits scalability.

But I have seen filters that do this w/ Tomcat. If Tomcat would allow a
configurable out-of-box way to set headers for static content, I may be
out of arguments for why I personally like to use Apache to handle
static content.

Mike


Merit Online Systems, Inc.
http://www.meritonlinesystems.com



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



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Walter Lee
I have that file already. I have pinged tomcat online and offline and they both 
work. I am new enough to tomcat that I don't know if this is a problem or not. 
I just thought it was strange that the demonstration programs had a problem.

Wally
  - Original Message - 
  From: Robert Kobergmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Thursday, April 07, 2005 10:32 AM
  Subject: Re: Can you use Tomcat when you are not on line?


  Do you have a 'hosts' file?

  It should be located in $WINDOWS/system32/drivers/etc

  If you don't have one, create it and put in a line like:

  127.0.0.1 localhost

  Note, you can also use this file for dev purposes. For example, say you 
  are working on

  127.0.0.1 tomcat.apache.org

  best,
  -Rob


  Walter Lee wrote:
   Thanks for responding. I always use the complete path, I just forgot to put 
it in my posting.
   Wally

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



RE: creating a BBS with tomcat - how secure is it?

2005-04-07 Thread Peter Crowther
 From: Christoph Kukulies [mailto:[EMAIL PROTECTED] 
 Anyone knowing of a BBS (Bulletin Board System) based on tomcat?

mvnForum will run on Tomcat, and I know a couple of universities doing
exactly that.

- Peter

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



Re: creating a BBS with tomcat - how secure is it?

2005-04-07 Thread Folashade Adeyosoye
I currently run mvnForum on tomcat, no problems nice software

On Apr 7, 2005 11:14 AM, Peter Crowther [EMAIL PROTECTED] wrote:
  From: Christoph Kukulies [mailto:[EMAIL PROTECTED]
  Anyone knowing of a BBS (Bulletin Board System) based on tomcat?
 
 mvnForum will run on Tomcat, and I know a couple of universities doing
 exactly that.
 
 - 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: R: Using Tomcat 5.5.x with Mysql

2005-04-07 Thread David Smith
Ok.  Your code should look more like:
   Context ctx = new InitialContext();
	 
   if(ctx == null ) 
	  throw new Exception(Boom - No Context);
	
	  ds = (DataSource)ctx.lookup(java:com/env/jdbc/TestDB);


jdbc/TestDB is correct for the resource definition and then the 
java:com/env/ gets tacked on the front when Tomcat puts it in it's JNDI 
namespace.

--David
Marchioni Francesco wrote:
Here it is:
   Context ctx = new InitialContext();
	 
   if(ctx == null ) 
	  throw new Exception(Boom - No Context);
	
	  ds = (DataSource)ctx.lookup(jdbc/TestDB);

Francesco
-Messaggio originale-
Da: David Smith [mailto:[EMAIL PROTECTED]
Inviato: giovedì 7 aprile 2005 14.47
A: Tomcat Users List
Oggetto: Re: Using Tomcat 5.5.x with Mysql
Could you post the code used in doing the lookup?  What I see here 
appears to imply you are using jdbc: as the jndi name to look up.  As 
posted earlier, your jndi should look more like 
java:comp/env/jdbc/TestDB in the code where you do the lookup.

--David
Marchioni Francesco wrote:
 

Hi all,
I'm trying to configure a Connection Pool with Tomcat 5.5.x and MySql 4.1.
Unfortunately I cannot lookup from JNDI context the Datasource.
JNDI lookup failed : javax.naming.NameNotFoundException: Name jdbc: is not
bound in this Context
javax.naming.NameNotFoundException: Name jdbc is not bound in this Context
	at org.apache.naming.NamingContext.lookup(NamingContext.java:769)
	at org.apache.naming.NamingContext.lookup(NamingContext.java:152)
	at
org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)
	at javax.naming.InitialContext.lookup(Unknown Source)
	at fad.bean.BaseManager.init(BaseManager.java:34)
	at fad.bean.UserManager.init(UserManager.java:13)
	at fad.bean.UserManager.getInstance(UserManager.java:23)
	at fad.bean.LinkManager.getUserLinks(LinkManager.java:48)
	at
fad.listener.SessionListener.buildSession(SessionListener.java:74)
	at
fad.listener.SessionListener.sessionCreated(SessionListener.java:31)
	at
org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:37
   

1
 

)
	at
org.apache.catalina.session.StandardSession.setId(StandardSession.java:343)
	at
org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:748)
	at
org.apache.catalina.session.StandardManager.createSession(StandardManager.j
   

a
 

va:290)
	at
org.apache.catalina.connector.Request.doGetSession(Request.java:2199)
	at
org.apache.catalina.connector.Request.getSession(Request.java:2017)
	at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8
   

2
 

2)
	at
org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:8
   

3
 

3)
	at
org.apache.jasper.runtime.PageContextImpl._initialize(PageContextImpl.java:
   

1
 

48)
	at
org.apache.jasper.runtime.PageContextImpl.initialize(PageContextImpl.java:1
   

2
 

3)
	at
org.apache.jasper.runtime.JspFactoryImpl.internalGetPageContext(JspFactoryI
   

m
 

pl.java:104)
at org.apache.jasper.runtime.JspFactoryImpl.getPageContext(
The configuration is the same published on Tomcat docs
server.xml:
Context path=/DBTest docBase=DBTest
  debug=5 reloadable=true crossContext=true
Resource name=jdbc/TestDB auth=Container type=javax.sql.DataSource
 maxActive=100 maxIdle=30 maxWait=1
 username=admin password=admin
driverClassName=com.mysql.jdbc.Driver
 url=jdbc:mysql://localhost:3306/fad?autoReconnect=true/
/Context
web.xml:
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
descriptionMySQL Test App/description
resource-ref
descriptionDB Connection/description
res-ref-namejdbc/TestDB/res-ref-name
res-typejavax.sql.DataSource/res-type
res-authContainer/res-auth
/resource-ref
/web-app
Does anybody know if Tomcat can create a Connection pool with MySQL4.1 ?
Personally I've tried with JBoss4.1 and it works.why not with tomcat
5.5.x ?
Thanks
Francesco

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

   


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


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


RE: tomcat as Windows service - access to resources

2005-04-07 Thread Jiang, Peiyun
I did a test using \\computer\dir\mydir instead of a mapping G:. I still have 
the same behavior.

Is there any other reason?

Peiyun

-Original Message-
From: Peter Crowther [mailto:[EMAIL PROTECTED]
Sent: April 7, 2005 10:11 AM
To: Tomcat Users List
Subject: RE: tomcat as Windows service - access to resources


 From: Jiang, Peiyun [mailto:[EMAIL PROTECTED] 
 I'm running Tomcat 5.0 on Windows 2000. I logon to Windows as 
 user1 and I have a mapped drive G: that requires separate 
 login (I user the same user name and password, so it 
 automatically logs in). 
 (1) If I login as user1 and start Tomcat from the start 
 script, I can access drive G: from a servlet.
 (2) If I login as user1 and run Tomcat as a Windows service, 
 I don't have access to G: from a servlet. Even if I change 
 the service property using user1 to log on, I still don't 
 have access to G: from a servlet.

Processes that run as services don't load the user profile of the user,
they just take on the user's network identity.  Amongst other things,
the profile stores drive mappings.  This means that no service (to my
knowledge) gets any drive mappings.  A typical workaround is to use the
UNC name of the mapped drive.

- 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 as Windows service - access to resources

2005-04-07 Thread Jason Bainbridge
On Apr 7, 2005 10:59 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I did a test using \\computer\dir\mydir instead of a mapping G:. I still have 
 the same behavior.

Silly question but did you escape your backslashes? What errors are
you getting? More details would help.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: tomcat as Windows service - access to resources

2005-04-07 Thread Jiang, Peiyun
I escaped them. It's working if tomcat started from a script. The servlet 
cannot see the directory as a java File.
Testing for file.exist() returns false.

Peiyun

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: April 7, 2005 12:03 PM
To: Tomcat Users List
Subject: Re: tomcat as Windows service - access to resources


On Apr 7, 2005 10:59 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I did a test using \\computer\dir\mydir instead of a mapping G:. I still have 
 the same behavior.

Silly question but did you escape your backslashes? What errors are
you getting? More details would help.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.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]



Re: tomcat as Windows service - access to resources

2005-04-07 Thread Jason Bainbridge
On Apr 7, 2005 11:11 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I escaped them. It's working if tomcat started from a script. The servlet 
 cannot see the directory as a java File.
 Testing for file.exist() returns false.

So your path within your servlet looks like:

computer\\dir\\mydir

(Note the four back slashes at the beginning)?

And this is while the service is running under the user account? IS
the User Account a domain account?

Again posting details will help a lot, posting a snippet of code isn't
that hard.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



RE: tomcat as Windows service - access to resources

2005-04-07 Thread Jiang, Peiyun
(1) a property is set: cops.monitoredDirectory.win=dove\\copsxml\\Final
(2) It's then loaded into a Configuration class
(3) It's then passed as a parameter: pathname and the following code is run:

try {
File file = new File(pathname);

if (file.exists()  file.canRead()) {
watchedFilesVec.add(file);
logger.info(add monitored directory  
+ file.getAbsolutePath());
} else {
if (file.exists()) {

logger.warn(file.getAbsolutePath() +  exist but cannot read);
} else {

logger.warn(file.getAbsolutePath() +  not exist);
}
}
} catch (Exception e) {
logger.error(addWatchedFile(String pathname)  
+ e);
}

No Rrror or Exception as file.exists() returns false. It's just not seeing the 
directory.

log file output:
2005-04-07 12:09:50,171 DEBUG (ArticleMonitor.java:117) - addWatchedFile(String 
pathname) start
2005-04-07 12:09:50,187  WARN (ArticleMonitor.java:133) - \\dove\copsxml\Final 
not exist
2005-04-07 12:09:50,187 DEBUG (ArticleMonitor.java:163) - addWatchedFile(String 
pathname) end

Peiyun

-Original Message-
From: Jason Bainbridge [mailto:[EMAIL PROTECTED]
Sent: April 7, 2005 12:19 PM
To: Tomcat Users List
Subject: Re: tomcat as Windows service - access to resources


On Apr 7, 2005 11:11 AM, Jiang, Peiyun [EMAIL PROTECTED] wrote:
 I escaped them. It's working if tomcat started from a script. The servlet 
 cannot see the directory as a java File.
 Testing for file.exist() returns false.

So your path within your servlet looks like:

computer\\dir\\mydir

(Note the four back slashes at the beginning)?

And this is while the service is running under the user account? IS
the User Account a domain account?

Again posting details will help a lot, posting a snippet of code isn't
that hard.

Regards,
-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.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]



RE: Tomcat and JBuilder 2005 (And Java 1.5?)

2005-04-07 Thread Dola Woolfe
Hi Mark,

I don't want JBuilder to run tomcat. All I want it to
do is compile.

I heard that with Java 1.5 the package classification
of apache classes changed. Could that be my problem.

This problem occurs on my colleague's machine. On my
personal machine with Java 1.4 and an older version of
JBuilder, the only thing I have in my path is
jsp-api.jar and servlet-api.jar and everything works.

Thanks again,

Dola 
--- Faine, Mark [EMAIL PROTECTED] wrote:
 Are you trying to run Tomcat from withing Jbuilder. 
 This would be why java
 is being called.  Also, check and see if ant is in
 your project's classpath.
 
 -Mark
  
 
 -Original Message-
 From: Dola Woolfe [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, April 05, 2005 11:28 AM
 To: Tom Cat
 Subject: Tomcat and JBuilder 2005
 
 Hello,
 
 I use Tomcat 5.5 with JBuilder9 on my machine but
 had to install
 JBuilder2005 on my colleague's machine (with java
 1.5) and am now getting
 strange compilation errors. For example:
 
 Data.jsp: java.lang.NoClassDefFoundError:
 org/apache/tools/ant/AntClassLoader
 
 
 and also:
 
 Exception in thread main 
 C:\Borland\JBuilder2005\jdk1.4\bin\java -classpath
 [Skipped by me]
 org.apache.jasper.JspC -d

C:/Dola/code/bak/Projecta/classes/Temporary_Files/.jsp/projecta
 -p org.apache.jsp -c Data_jsp -uriroot
 C:/Dola/tomcat/webapps/projecta
 C:/Dola/tomcat/webapps/projecta/Data.jsp 
 Data.jsp: Invocation Error
 
 Just out of curiosity (and naivete) why is java,
 rather than javac, ever
 called?
 
 Many thanks in advance!
 
 Dola
 
 
   
 __
 Do you Yahoo!? 
 Yahoo! Small Business - Try our new resources site!
 http://smallbusiness.yahoo.com/resources/ 
 

-
 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]
 
 



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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



Unlimited session timeout

2005-04-07 Thread David Causse
Hi,
I need in some exceptionnal condition to disable the session timeout for 
one request.
Is there some convenient way to do so?

My idea is to do this but I'm unsure :
In the exceptionnal servlet (at the beginning):
   session.setAttribute(OLD_TIMEOUT, new 
Integer(session.getMaxInactiveInterval()));
   session.setMaxInactiveInterval(-1);

In my filter:
   Integer oldTimeout = (Integer) session.getAttribute(OLD_TIMEOUT);
   if(oldTimeout != null) {
   session.setMaxInactiveInterval(oldTimeout.intValue());
   }
What do you think about this method is it safe/working?
Maybe there is a way to do it with session listeners (by cancelling the 
call to invalidate, I don't know if it is possible).

Thank you.
David.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Timers/threads?

2005-04-07 Thread fed fin
Thank you.
Ted.
--- Jesper B.  Kiær [EMAIL PROTECTED] wrote:
 
 HI
 
 Take a look at Quartz.
 
 Link:
 http://www.opensymphony.com/quartz/
 
 regards
 Jesper B. Kiaer
 
 http://www.jezzper.com
 
 
 
 -Charl Gerber [EMAIL PROTECTED] wrote:
 -
 
 To: tomcat-user@jakarta.apache.org
 From: Charl Gerber
 Date: 04/06/2005 15:11
 Subject: Tomcat Timers/threads?
 
 Does Tomcat 4.1 provide a way to schedule tasks?
 Something similar to java.util.Timer?
 
 BEA WebLogic eg offers a
 weblogic.management.timer.Timer which has the same
 affect, but is controlled by the application
 server.
 
 I've been using a java.util.Timer up to now in
 Tomcat
 4.1. I initialize it in the a
 ServletContextListener
 and gracefully kill it there again when the
 application stops, but strickly speaking this is
 probably not correct. I've had no problems up to
 now,
 though.
 
 Does Tomcat offer a correct(er) solution, or can I
 continue with the java.util.Timer?
 
 Thanks!
 
 

-
 
  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]
 
 

-Ted



__ 
Do you Yahoo!? 
Yahoo! Personals - Better first dates. More second dates. 
http://personals.yahoo.com


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



Re: Unlimited session timeout

2005-04-07 Thread fed fin
you can set timeout from Tomcat Admin = Connections.
--- David Causse [EMAIL PROTECTED] wrote:
 Hi,
 
 I need in some exceptionnal condition to disable the
 session timeout for 
 one request.
 Is there some convenient way to do so?
 
 My idea is to do this but I'm unsure :
 In the exceptionnal servlet (at the beginning):
 session.setAttribute(OLD_TIMEOUT, new 
 Integer(session.getMaxInactiveInterval()));
 session.setMaxInactiveInterval(-1);
 
 In my filter:
 Integer oldTimeout = (Integer)
 session.getAttribute(OLD_TIMEOUT);
 if(oldTimeout != null) {


session.setMaxInactiveInterval(oldTimeout.intValue());
 }
 
 What do you think about this method is it
 safe/working?
 Maybe there is a way to do it with session listeners
 (by cancelling the 
 call to invalidate, I don't know if it is possible).
 
 Thank you.
 
 David.
 
 

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

-Ted



__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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



calling ejb on another app server

2005-04-07 Thread Eric J Kaplan
Does anyone have any experience getting a servlet that calls an ejb on a
different application server to work, running tomcat 5.0.28?

I know we got this to work under 3.x a while ago.

 

At this point I feel like we've tried everything but we always get that name
ejb is not bound in this context. I even tried changing my jndi.properties
to point to an invalid host, and although when I print out the environment
for the context just before looking up the bean it indeed says that the
naming provider url is foo:1066, I don't get a communication exception, I
get that the ejb context is not bound. My suspicion is it is going against a
jndi server running within tomcat that doesn't have the ejb context bound.

 

Help would be appreciated, we've been floundering for a couple of days.

 

Regards

 

Eric



RE: calling ejb on another app server

2005-04-07 Thread Neil Upfalow
We do tomcat (servlet) to remote jboss (EJB).
Isn't JNDI usually bound to 1099 ?
Also,  is usually a critical port. Some ISPs block it. Remapping to
 usually solves this problem.

Hope it helps.

Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:23 PM
To: 'Tomcat Users List'
Subject: calling ejb on another app server

Does anyone have any experience getting a servlet that calls an ejb on a
different application server to work, running tomcat 5.0.28?

I know we got this to work under 3.x a while ago.

 

At this point I feel like we've tried everything but we always get that
name
ejb is not bound in this context. I even tried changing my
jndi.properties
to point to an invalid host, and although when I print out the
environment
for the context just before looking up the bean it indeed says that the
naming provider url is foo:1066, I don't get a communication exception,
I
get that the ejb context is not bound. My suspicion is it is going
against a
jndi server running within tomcat that doesn't have the ejb context
bound.

 

Help would be appreciated, we've been floundering for a couple of days.

 

Regards

 

Eric



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



Re: Unlimited session timeout

2005-04-07 Thread David Causse
It is not my problem. I need to change it for only one servlet.
Thanks.
fed fin wrote:
you can set timeout from Tomcat Admin = Connections.
--- David Causse [EMAIL PROTECTED] wrote:
 

Hi,
I need in some exceptionnal condition to disable the
session timeout for 
one request.
Is there some convenient way to do so?

My idea is to do this but I'm unsure :
In the exceptionnal servlet (at the beginning):
   session.setAttribute(OLD_TIMEOUT, new 
Integer(session.getMaxInactiveInterval()));
   session.setMaxInactiveInterval(-1);

In my filter:
   Integer oldTimeout = (Integer)
session.getAttribute(OLD_TIMEOUT);
   if(oldTimeout != null) {
  

   

session.setMaxInactiveInterval(oldTimeout.intValue());
 

   }
What do you think about this method is it
safe/working?
Maybe there is a way to do it with session listeners
(by cancelling the 
call to invalidate, I don't know if it is possible).

Thank you.
David.

   

-
 

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

-Ted
		
__ 
Yahoo! Messenger 
Show us what our next emoticon should look like. Join the fun. 
http://www.advision.webevents.yahoo.com/emoticontest

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

 




RE: calling ejb on another app server

2005-04-07 Thread Eric J Kaplan
Yes it is. I changed it in my jndi.properties file to see if I would get a
different error. It was originally 1099.

Given that, and the fact that you have this working (we are also using
jboss) do you have any other ideas? I assume you are on tomcat 5x or
greater?

My setup is pretty vanilla. I'm sure it's just a configuration switch, but
not sure which one.

Regards

Eric

-Original Message-
From: Neil Upfalow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:30 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

We do tomcat (servlet) to remote jboss (EJB).
Isn't JNDI usually bound to 1099 ?
Also,  is usually a critical port. Some ISPs block it. Remapping to
 usually solves this problem.

Hope it helps.

Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:23 PM
To: 'Tomcat Users List'
Subject: calling ejb on another app server

Does anyone have any experience getting a servlet that calls an ejb on a
different application server to work, running tomcat 5.0.28?

I know we got this to work under 3.x a while ago.

 

At this point I feel like we've tried everything but we always get that
name
ejb is not bound in this context. I even tried changing my
jndi.properties
to point to an invalid host, and although when I print out the
environment
for the context just before looking up the bean it indeed says that the
naming provider url is foo:1066, I don't get a communication exception,
I
get that the ejb context is not bound. My suspicion is it is going
against a
jndi server running within tomcat that doesn't have the ejb context
bound.

 

Help would be appreciated, we've been floundering for a couple of days.

 

Regards

 

Eric



-
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: calling ejb on another app server

2005-04-07 Thread Neil Upfalow
Another critical jboss element is setting jnp rmi port to something,
here it's 34159
I set it in jboss/server/default/conf/jboss-service.xml
attribute name=Properties
  invokerServletPath=http://localhost:8080/invoker/JMXInvokerServlet
jnp.rmiPort=34159
/attribute

like that.

You may also need to make jboss bind to your WAN ip.
Add these options in run.bat:
-Djava.rmi.server.hostname=JBOSS-WAN-STATIC-IP
-Djava.rmi.server.useLocalHostname=false



Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:36 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

Yes it is. I changed it in my jndi.properties file to see if I would get
a
different error. It was originally 1099.

Given that, and the fact that you have this working (we are also using
jboss) do you have any other ideas? I assume you are on tomcat 5x or
greater?

My setup is pretty vanilla. I'm sure it's just a configuration switch,
but
not sure which one.

Regards

Eric

-Original Message-
From: Neil Upfalow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:30 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

We do tomcat (servlet) to remote jboss (EJB).
Isn't JNDI usually bound to 1099 ?
Also,  is usually a critical port. Some ISPs block it. Remapping to
 usually solves this problem.

Hope it helps.

Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:23 PM
To: 'Tomcat Users List'
Subject: calling ejb on another app server

Does anyone have any experience getting a servlet that calls an ejb on a
different application server to work, running tomcat 5.0.28?

I know we got this to work under 3.x a while ago.

 

At this point I feel like we've tried everything but we always get that
name
ejb is not bound in this context. I even tried changing my
jndi.properties
to point to an invalid host, and although when I print out the
environment
for the context just before looking up the bean it indeed says that the
naming provider url is foo:1066, I don't get a communication exception,
I
get that the ejb context is not bound. My suspicion is it is going
against a
jndi server running within tomcat that doesn't have the ejb context
bound.

 

Help would be appreciated, we've been floundering for a couple of days.

 

Regards

 

Eric



-
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: calling ejb on another app server

2005-04-07 Thread N G
If you are not getting some communication exception when you change
the port number
to the wrong port, it tells me that your jndi.properties are being ignored.

As you pointed out, it's probably returning an instance of Tomcat readonly JNDI.

I suggest you load your jndi.properties explicitely use new
InitialContext(properties) constructor. This should for sure force it
to try to connect to the proper JNDI provider.

HTH,
NG.

On Apr 7, 2005 1:35 PM, Eric J Kaplan [EMAIL PROTECTED] wrote:
 Yes it is. I changed it in my jndi.properties file to see if I would get a
 different error. It was originally 1099.
 
 Given that, and the fact that you have this working (we are also using
 jboss) do you have any other ideas? I assume you are on tomcat 5x or
 greater?
 
 My setup is pretty vanilla. I'm sure it's just a configuration switch, but
 not sure which one.
 
 Regards
 
 Eric
 
 -Original Message-
 From: Neil Upfalow [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 07, 2005 1:30 PM
 To: 'Tomcat Users List'
 Subject: RE: calling ejb on another app server
 
 We do tomcat (servlet) to remote jboss (EJB).
 Isn't JNDI usually bound to 1099 ?
 Also,  is usually a critical port. Some ISPs block it. Remapping to
  usually solves this problem.
 
 Hope it helps.
 
 Sincerely,
 Neil Upfalow
 
 -Original Message-
 From: Eric J Kaplan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 07, 2005 1:23 PM
 To: 'Tomcat Users List'
 Subject: calling ejb on another app server
 
 Does anyone have any experience getting a servlet that calls an ejb on a
 different application server to work, running tomcat 5.0.28?
 
 I know we got this to work under 3.x a while ago.
 
 At this point I feel like we've tried everything but we always get that
 name
 ejb is not bound in this context. I even tried changing my
 jndi.properties
 to point to an invalid host, and although when I print out the
 environment
 for the context just before looking up the bean it indeed says that the
 naming provider url is foo:1066, I don't get a communication exception,
 I
 get that the ejb context is not bound. My suspicion is it is going
 against a
 jndi server running within tomcat that doesn't have the ejb context
 bound.
 
 Help would be appreciated, we've been floundering for a couple of days.
 
 Regards
 
 Eric
 
 -
 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: Can you use Tomcat when you are not on line?

2005-04-07 Thread Walter Lee
I really meant to say I pinged localhost in my last message
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Thursday, April 07, 2005 10:32 AM
  Subject: Re: Can you use Tomcat when you are not on line?


  Do you have a 'hosts' file?

  It should be located in $WINDOWS/system32/drivers/etc

  If you don't have one, create it and put in a line like:

  - Original Message - 
  From: Robert Kobergmailto:[EMAIL PROTECTED] 

  127.0.0.1 localhost

  Note, you can also use this file for dev purposes. For example, say you 
  are working on

  127.0.0.1 tomcat.apache.org

  best,
  -Rob


  Walter Lee wrote:
   Thanks for responding. I always use the complete path, I just forgot to put 
it in my posting.
   Wally

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



RE: calling ejb on another app server

2005-04-07 Thread Eric J Kaplan
That's the strange thing because I print out the environment of the context
being used at the time the failure occurs and it does seem to be taking it
from my jndi.properties file! Of course, simply printing out the context is
different than what the context may ACTUALLY be doing.

Regards

Eric

-Original Message-
From: N G [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:54 PM
To: Tomcat Users List
Subject: Re: calling ejb on another app server

If you are not getting some communication exception when you change
the port number
to the wrong port, it tells me that your jndi.properties are being ignored.

As you pointed out, it's probably returning an instance of Tomcat readonly
JNDI.

I suggest you load your jndi.properties explicitely use new
InitialContext(properties) constructor. This should for sure force it
to try to connect to the proper JNDI provider.

HTH,
NG.

On Apr 7, 2005 1:35 PM, Eric J Kaplan [EMAIL PROTECTED] wrote:
 Yes it is. I changed it in my jndi.properties file to see if I would get a
 different error. It was originally 1099.
 
 Given that, and the fact that you have this working (we are also using
 jboss) do you have any other ideas? I assume you are on tomcat 5x or
 greater?
 
 My setup is pretty vanilla. I'm sure it's just a configuration switch, but
 not sure which one.
 
 Regards
 
 Eric
 
 -Original Message-
 From: Neil Upfalow [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 07, 2005 1:30 PM
 To: 'Tomcat Users List'
 Subject: RE: calling ejb on another app server
 
 We do tomcat (servlet) to remote jboss (EJB).
 Isn't JNDI usually bound to 1099 ?
 Also,  is usually a critical port. Some ISPs block it. Remapping to
  usually solves this problem.
 
 Hope it helps.
 
 Sincerely,
 Neil Upfalow
 
 -Original Message-
 From: Eric J Kaplan [mailto:[EMAIL PROTECTED]
 Sent: Thursday, April 07, 2005 1:23 PM
 To: 'Tomcat Users List'
 Subject: calling ejb on another app server
 
 Does anyone have any experience getting a servlet that calls an ejb on a
 different application server to work, running tomcat 5.0.28?
 
 I know we got this to work under 3.x a while ago.
 
 At this point I feel like we've tried everything but we always get that
 name
 ejb is not bound in this context. I even tried changing my
 jndi.properties
 to point to an invalid host, and although when I print out the
 environment
 for the context just before looking up the bean it indeed says that the
 naming provider url is foo:1066, I don't get a communication exception,
 I
 get that the ejb context is not bound. My suspicion is it is going
 against a
 jndi server running within tomcat that doesn't have the ejb context
 bound.
 
 Help would be appreciated, we've been floundering for a couple of days.
 
 Regards
 
 Eric
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


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



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



RE: calling ejb on another app server

2005-04-07 Thread Eric J Kaplan
Neil

I'll give it a try, though note that we have been using jboss for a few
years and have plenty of standalone apps communicating fine with jboss
through the same api as that used by the servlet.

Regards

Eric

-Original Message-
From: Neil Upfalow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:53 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

Another critical jboss element is setting jnp rmi port to something,
here it's 34159
I set it in jboss/server/default/conf/jboss-service.xml
attribute name=Properties
  invokerServletPath=http://localhost:8080/invoker/JMXInvokerServlet
jnp.rmiPort=34159
/attribute

like that.

You may also need to make jboss bind to your WAN ip.
Add these options in run.bat:
-Djava.rmi.server.hostname=JBOSS-WAN-STATIC-IP
-Djava.rmi.server.useLocalHostname=false



Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:36 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

Yes it is. I changed it in my jndi.properties file to see if I would get
a
different error. It was originally 1099.

Given that, and the fact that you have this working (we are also using
jboss) do you have any other ideas? I assume you are on tomcat 5x or
greater?

My setup is pretty vanilla. I'm sure it's just a configuration switch,
but
not sure which one.

Regards

Eric

-Original Message-
From: Neil Upfalow [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:30 PM
To: 'Tomcat Users List'
Subject: RE: calling ejb on another app server

We do tomcat (servlet) to remote jboss (EJB).
Isn't JNDI usually bound to 1099 ?
Also,  is usually a critical port. Some ISPs block it. Remapping to
 usually solves this problem.

Hope it helps.

Sincerely,
Neil Upfalow
 

-Original Message-
From: Eric J Kaplan [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:23 PM
To: 'Tomcat Users List'
Subject: calling ejb on another app server

Does anyone have any experience getting a servlet that calls an ejb on a
different application server to work, running tomcat 5.0.28?

I know we got this to work under 3.x a while ago.

 

At this point I feel like we've tried everything but we always get that
name
ejb is not bound in this context. I even tried changing my
jndi.properties
to point to an invalid host, and although when I print out the
environment
for the context just before looking up the bean it indeed says that the
naming provider url is foo:1066, I don't get a communication exception,
I
get that the ejb context is not bound. My suspicion is it is going
against a
jndi server running within tomcat that doesn't have the ejb context
bound.

 

Help would be appreciated, we've been floundering for a couple of days.

 

Regards

 

Eric



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



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


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



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



OT: special characters in property files

2005-04-07 Thread Robert Harper
I need to retrieve a value from a property file with a ‘$’ as part of the
data. How do I decorate this character so that the value will be loaded when
I call ResourceBundle.getString() ? I am not having much success googling
for it.

 

Thanks in advance.

 

Robert S. Harper

Senior Engineer

 



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Jason Bainbridge
On Apr 6, 2005 10:44 AM, Walter Lee [EMAIL PROTECTED] wrote:
 I have Tomcat installed on W2K and it says it is installed correctly. When I 
 try the examples it tells me that I must be on line.  If I am using 
 localhost:8080 why does it need to be on line?
 

This is just Internet Explorer being tempermental, as other posters
have suggested either just use Firefox - http://getfirefox.com or just
play around with checking and unchecking File / work Offline in
Internet Explorer in between page refreshes. Eventually it will work.

I think this was only a problem with older versions of IE though.

-- 
Jason Bainbridge
http://kde.org - [EMAIL PROTECTED]
Personal Site - http://jasonbainbridge.com

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



How to unsunscribe ?

2005-04-07 Thread Krishna Gunturu
 How to unsubscribe from Tomcat Users List?

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



Re: How to unsunscribe ?

2005-04-07 Thread David Rees
On Apr 7, 2005 11:47 AM, Krishna Gunturu [EMAIL PROTECTED] wrote:
  How to unsubscribe from Tomcat Users List?
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

^^^
See above!

-Dave

PS - And below!

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



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Walter Lee
Thanks for responding. My IE is totally up to date. I have changed and 
re-changed all the options for connecting and it does not seem to make any 
difference. I cannot go to Firefox because the company does not want to. So I 
will keep playing around and see what happens. It does not seem to be a problem 
right now.
Wally
  - Original Message - 
  From: Jason Bainbridgemailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Thursday, April 07, 2005 2:42 PM
  Subject: Re: Can you use Tomcat when you are not on line?


  On Apr 6, 2005 10:44 AM, Walter Lee [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:
   I have Tomcat installed on W2K and it says it is installed correctly. When 
I try the examples it tells me that I must be on line.  If I am using 
localhost:8080 why does it need to be on line?
   

  This is just Internet Explorer being tempermental, as other posters
  have suggested either just use Firefox - 
http://getfirefox.comhttp://getfirefox.com/ or just
  play around with checking and unchecking File / work Offline in
  Internet Explorer in between page refreshes. Eventually it will work.

  I think this was only a problem with older versions of IE though.

  -- 
  Jason Bainbridge
  http://kde.orghttp://kde.org/ - [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  Personal Site - http://jasonbainbridge.comhttp://jasonbainbridge.com/

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



RE: special characters in property files

2005-04-07 Thread David Owens
I know on Tomcat 5.0.x I had to escape the '$' by doing '$$'

|)ave

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 12:14 PM
To: Tomcat Users
Subject: OT: special characters in property files

I need to retrieve a value from a property file with a '$' as part of
the
data. How do I decorate this character so that the value will be loaded
when
I call ResourceBundle.getString() ? I am not having much success
googling
for it.

 

Thanks in advance.

 

Robert S. Harper

Senior Engineer

 


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



RE: special characters in property files

2005-04-07 Thread Robert Harper
I ended up finding that \$ would work too.
Where to I find a doc that explains all this?


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



RE: special characters in property files

2005-04-07 Thread David Owens
I didn't it was trial and error... I couldn't get \$ to work.

I had this problem in my context realm configuration.

|)ave

-Original Message-
From: Robert Harper [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 1:18 PM
To: 'Tomcat Users List'
Subject: RE: special characters in property files

I ended up finding that \$ would work too.
Where to I find a doc that explains all this?


-
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: Authenticated user home folders with WebDAV

2005-04-07 Thread Mark Thomas
Much of this is beyond the simple webdav servlet provided with Tomcat. 
Try Apache Slide.

Mark
Martin Lidgard wrote:
Hello.
 
I would like to achieve the following using Tomcat 4.1:
 
1. use a JDBCRealm to access a mysql database containing users, passwords,
and roles
2. grant WebDAV access to authenticated users, allowing them to access and
upload files to personal home directories
3. personal directories should be grouped by role: ie.  user charlie with
role sitemember has WebDAV access to
$CATALINA_HOME/webapps/myapp/data/sitemember/charlie
4. directories should be created when the user first accesses the WebDAV
account, and if there is no directory for the role, it should be created too
5. it should be possible to limit the amount of space granted to each user
on a role or context basis
6. the personal home directories should be accessible using WebDAV as
http://upload.mydomain.com, automatically returning content for the correct
personal directory depending on authenticated username.
 
How much of this is possible to achieve through smart configuration schemes?
Does anyone know of tools that could do some of the work?
I haven't found any indications that personal home directories have been
used in a Tomcat standalone configuration -- anyone?
 
Thanks,
 
Martin
 
Arkatay Consulting
www.arkatay.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]


Virtual host configuration

2005-04-07 Thread Darryl Wilburn
Greetins all,
New to Tomcat/Apache  Implemented Tomcat 4.1.29 to support an 
application that required an application server.  I'm migrating the 
application from an existing NT 4.0 system and would like to implement it 
as a virtual host on the Win2003 server running Tomcat.  (Unfortunately, 
the app does not support non-Win hosts)  Anyway, I'd like to define the 
starting point of the virtual host as a directory that is 3 levels below 
webapps.  In other words, I want the users to see the site as 
http://hostname, instead http://hostname/folder1/folder2/folder3. (folder3 

being the desired home directory)

Thanks
DW

web resources in jar

2005-04-07 Thread Don Hill
I have a war that has folder like /images and /content, is there a way 
to config tomcat so that I can package these in  jar, I know I can write 
a custom servlet todo this but I would like this to be handled by the 
servers servlet container.

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


Some JVM settings not working in my Tomcat Windows service

2005-04-07 Thread Barnett, Brian W.
Using Tomcat 5.0.28. On the Java tab of the Configure Tomcat dialog, I have
the following in Java Options:

-Dcatalina.home=C:\Tomcat 5.0
-Djava.endorsed.dirs=C:\Tomcat 5.0\common\endorsed
-Djava.io.tmpdir=C:\Tomcat 5.0
-verbose:gc
-XX:+PrintGCDetails
-XX:+PrintGCTimeStamps
-Xms128m
-Xmx512m

I want to view garbage collection information, hence the gc stuff, but I
get not garbage collection output in my stdout.log. When I run Tomcat inside
the Eclipse IDE with those settings, I get garbage collection info in the
console. Does anyone know what I'm doing wrong here?

Thanks,
Brian Barnett

 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 



slow tomcat

2005-04-07 Thread Haluk Durmus
Hello,

my tomcat some times very slow.
Most time I think, when it is a long time idle.
Is think it could be, that processe that are idle needs a log time to weake up.

Is there a way to change this behavior.

Greetings,
Haluk-- 

Haluk Durmus
QualiGO GmbH
Bleicherstrasse 20
D-78467 Konstanz
Germany

fon:  +49-(0)7531-89207-0
fax:  +49-(0)7531-89207-13
mail: [EMAIL PROTECTED]
www:  www.qualigo.de  

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



JVM's perm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread Paulo Alvim
Hi,

We had a war file with about 30MB using JSP pre-compilation and hot deploy
as suggested in the Tomcat web-site. But after using the hot deploy a few
times we received out of memory messages - in the JVM permanent area
(perm).

After migrating to 1.5.0_02 - to get better JVM information - we could see
that the used perm size always increase until this max size, in every
Tomcat app reloading (even with exploded files and Ant 'touches'). We
always lost 7 to 15MB of the perm area in every reload process - and this
area is never collected...

Anyone could help us with more information here (maybe about TC class
loaders or perm area)?

Is there anyone with the same problem?

Thanks in advance!

Paulo Alvim
Powerlogic
Brazil


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



Re: JVM's perm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread Rob Ross
Yes, this is a well known problem with redeploying wars in Tomcat. We 
have to shutdown and restart the Tomcat server periodically after 
redeploying a number of times.

It's a memory leak.
On Apr 7, 2005, at 1:48 PM, Paulo Alvim wrote:
Hi,
We had a war file with about 30MB using JSP pre-compilation and hot 
deploy
as suggested in the Tomcat web-site. But after using the hot deploy a 
few
times we received out of memory messages - in the JVM permanent area
(perm).

After migrating to 1.5.0_02 - to get better JVM information - we could 
see
that the used perm size always increase until this max size, in every
Tomcat app reloading (even with exploded files and Ant 'touches'). We
always lost 7 to 15MB of the perm area in every reload process - and 
this
area is never collected...

Anyone could help us with more information here (maybe about TC class
loaders or perm area)?
Is there anyone with the same problem?
Thanks in advance!
Paulo Alvim
Powerlogic
Brazil
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Rob Ross, Senior Software Engineer
E! Networks
[EMAIL PROTECTED]
---
Beware of he who would deny you access to information, for in his 
heart he dreams himself your master. -- Commissioner Pravin Lal

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


Re: OT: special characters in property files

2005-04-07 Thread Markus Schnhaber
Am Donnerstag, 7. April 2005 20:13 schrieb Robert Harper:
 I need to retrieve a value from a property file with a ‘$’ as part of the
 data. How do I decorate this character so that the value will be loaded
 when I call ResourceBundle.getString() ? I am not having much success
 googling for it.

I seem to remember that you can use the Unicode-escape for the $-character in 
the resource-file, i. e. \u0024.

Regards
mks

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



jndi for tomcat containing axis

2005-04-07 Thread MKW
Please can someone confirm that, if I'm deploying a web service inside 
Axis inside Tomcat 5.5.7, using a database, the context docBase should 
be axis and the path /axis because axis is the actual webapp, even 
though my service comes lower down the tree?  Axis doesn't have a 
META-INF so the context.xml file should still be in the 
/Catalina/localhost directory?

Can I also check that the res-ref-name (and the Resource name) is 
jdbc/nameOfDatabase and not jdbc/nameOfFolder??

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


problem with unpackWARs=false

2005-04-07 Thread News Updates
Hello list,
I have tomcat 5.5.7, and JDK/JRE 1.5 (update 2?) and would like to know 
after hours of searching and trying if there is a simple way to get the 
storefront webapp (from the O'reilly book programming jakarta struts) 
to NOT extract the storefront.war file (but still run) in the webapp 
directory under the tomcat home directory.  I have heard that all that 
needs to change is the server.xml file in tomcat with unpackWARs=false 
?  Yet when I try to do this, do I need to set up a context / within 
that host/host ?  obviously when I tried to set this to false I 
could not get it to work and when I tried to dabble with the context 
path and docbase I couldn't seem to find the right way to get this to 
work either.  I have not changed the tomcat configuration besides what I 
have below.  Also I know that I can run it normally when it wants to 
extract the war file, so I know there is no problems there.  (hope this 
makes sense to some of the more inclined people out there)

Host name=localhost appBase=webapps
  unpackWARs=false autoDeploy=false
  xmlValidation=false xmlNamespaceAware=false
  !--Context path=storefront docBase=d:\storefront debug=0 
reloadable=true /--
/Host

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


RE: Nested tag problem in tomcat 5.0.29..Please help

2005-04-07 Thread Folashade Adeyosoye
Can you post a sample code

-Original Message-
From: Narayan, Satya [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 07, 2005 2:10 AM
To: tomcat-user@jakarta.apache.org
Subject: Nested tag problem in tomcat 5.0.29..Please help



 Hi all,
 I am having problem compiling jsp pages with nested struts
 tags.
 Is this a known error ? I have a bean tag within a html tag which is
 causing a problem.
I tried the same web application in 4.1.29 it works perfectly fine but
with 5.0.29 and 5.0.28 it gives unable to compile class.

Somebody please help.

 Has anybody got this error.
 Kindly advise.
 
 Thanks and Regards,
 Satya


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



RES: JVM's perm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread Paulo Alvim
But is this really an official known issue? Do you know more links about
the problem?

-Mensagem original-
De: Rob Ross [mailto:[EMAIL PROTECTED]
Enviada em: quinta-feira, 7 de abril de 2005 17:53
Para: Tomcat Users List
Assunto: Re: JVM's perm size always increase after hot deploy to tomcat
5.0.28


Yes, this is a well known problem with redeploying wars in Tomcat. We
have to shutdown and restart the Tomcat server periodically after
redeploying a number of times.

It's a memory leak.

On Apr 7, 2005, at 1:48 PM, Paulo Alvim wrote:

 Hi,

 We had a war file with about 30MB using JSP pre-compilation and hot
 deploy
 as suggested in the Tomcat web-site. But after using the hot deploy a
 few
 times we received out of memory messages - in the JVM permanent area
 (perm).

 After migrating to 1.5.0_02 - to get better JVM information - we could
 see
 that the used perm size always increase until this max size, in every
 Tomcat app reloading (even with exploded files and Ant 'touches'). We
 always lost 7 to 15MB of the perm area in every reload process - and
 this
 area is never collected...

 Anyone could help us with more information here (maybe about TC class
 loaders or perm area)?

 Is there anyone with the same problem?

 Thanks in advance!

 Paulo Alvim
 Powerlogic
 Brazil


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


Rob Ross, Senior Software Engineer
E! Networks
[EMAIL PROTECTED]
---
Beware of he who would deny you access to information, for in his
heart he dreams himself your master. -- Commissioner Pravin Lal


-
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: Some JVM settings not working in my Tomcat Windows service

2005-04-07 Thread Barnett, Brian W.
I stumbled across -Xloggc:logfile and that seems to work, but I still wish
I could get those other options to work, or at least understand why they are
not working.

Sample Java Options:
-Dcatalina.home=C:\Tomcat 5.0
-Djava.endorsed.dirs=C:\Tomcat 5.0\common\endorsed
-Djava.io.tmpdir=C:\Tomcat 5.0
-Xloggc:C:\gclog.txt

-Original Message-
From: Barnett, Brian W. 
Sent: Thursday, April 07, 2005 2:03 PM
To: 'tomcat-user@jakarta.apache.org'
Subject: Some JVM settings not working in my Tomcat Windows service


Using Tomcat 5.0.28. On the Java tab of the Configure Tomcat dialog, I have
the following in Java Options:

-Dcatalina.home=C:\Tomcat 5.0
-Djava.endorsed.dirs=C:\Tomcat 5.0\common\endorsed
-Djava.io.tmpdir=C:\Tomcat 5.0 -verbose:gc -XX:+PrintGCDetails
-XX:+PrintGCTimeStamps -Xms128m -Xmx512m

I want to view garbage collection information, hence the gc stuff, but I
get not garbage collection output in my stdout.log. When I run Tomcat inside
the Eclipse IDE with those settings, I get garbage collection info in the
console. Does anyone know what I'm doing wrong here?

Thanks,
Brian Barnett



This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


 
This email may contain confidential material. 
If you were not an intended recipient, 
Please notify the sender and delete all copies. 
We may monitor email to and from our network. 


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



Re: RES: JVM's perm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread Rob Ross
On Apr 7, 2005, at 3:34 PM, Paulo Alvim wrote:
But is this really an official known issue? Do you know more links  
about
the problem?

Well I just did a google search for tomcat undeploy memory leak.  
Here's three references:

http://66.102.7.104/search?q=cache:UhbMR4dZfhoJ:www.jroller.com/page/ 
sxh/20040105+tomcat+deploy+memory+leakhl=enclient=safari

http://www.junlu.com/msg/153876.html
http://66.102.7.104/search?q=cache:GnJoip0vndkJ:mail- 
archive.objectweb.org/barracuda/2004-06/ 
msg00028.html+tomcat+undeploy+memory+leakhl=enclient=safari

Rob Ross, Senior Software Engineer
E! Networks
[EMAIL PROTECTED]
---
Beware of he who would deny you access to information, for in his  
heart he dreams himself your master. -- Commissioner Pravin Lal

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


RE: slow tomcat

2005-04-07 Thread Rolf Zelder
Which version of tomcat are you using ?

-Original Message-
From: Haluk Durmus [mailto:[EMAIL PROTECTED]
Sent: 8/04/05 6:42 AM
To: tomcat-user@jakarta.apache.org
Subject: slow tomcat


Hello,

my tomcat some times very slow.
Most time I think, when it is a long time idle.
Is think it could be, that processe that are idle needs a log time to weake
up.

Is there a way to change this behavior.

Greetings,
Haluk-- 

Haluk Durmus
QualiGO GmbH
Bleicherstrasse 20
D-78467 Konstanz
Germany

fon:  +49-(0)7531-89207-0
fax:  +49-(0)7531-89207-13
mail: [EMAIL PROTECTED]
www:  www.qualigo.de  

-
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: Can you use Tomcat when you are not on line?

2005-04-07 Thread Sng Wee Jim

Wally,

Did you set your Internet Explorer to Bypass proxy server for local
addresses (Internet Options | Local Area Network (LAN) Settings)?



Jim

-Original Message-
From: Walter Lee [mailto:[EMAIL PROTECTED]
Sent: Friday, April 08, 2005 3:06 AM
To: Tomcat Users List; Jason Bainbridge
Subject: Re: Can you use Tomcat when you are not on line?

Thanks for responding. My IE is totally up to date. I have changed and
re-changed all the options for connecting and it does not seem to make
any difference. I cannot go to Firefox because the company does not want
to. So I will keep playing around and see what happens. It does not seem
to be a problem right now.
Wally
  - Original Message -
  From: Jason Bainbridgemailto:[EMAIL PROTECTED]
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org
  Sent: Thursday, April 07, 2005 2:42 PM
  Subject: Re: Can you use Tomcat when you are not on line?


  On Apr 6, 2005 10:44 AM, Walter Lee
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED] wrote:
   I have Tomcat installed on W2K and it says it is installed
correctly. When I try the examples it tells me that I must be on line.
If I am using localhost:8080 why does it need to be on line?
  

  This is just Internet Explorer being tempermental, as other posters
  have suggested either just use Firefox -
http://getfirefox.comhttp://getfirefox.com/ or just
  play around with checking and unchecking File / work Offline in
  Internet Explorer in between page refreshes. Eventually it will work.

  I think this was only a problem with older versions of IE though.

  --
  Jason Bainbridge
  http://kde.orghttp://kde.org/ -
[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
  Personal Site -
http://jasonbainbridge.comhttp://jasonbainbridge.com/

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





The information in this email is confidential and is intended solely
for the addressee(s).
Access to this email by anyone else is unauthorized. If you are not
an intended recipient, please notify the sender of this email
immediately. You should not copy, use or disseminate the
information contained in the email.
Any views expressed in this message are those of the individual
sender, except where the sender specifically states them to be
the views of Capco.

http://www.capco.com/



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



Re: JVM' sperm size always increase after hot deploy to tomcat 5.0.28

2005-04-07 Thread edencane
Hi,

I'm afraid the subject of this post caused it to go to my spam box, :-
L.

On Apr 8, 2005 6:18 AM, Paulo Alvim [EMAIL PROTECTED] wrote:
 Hi,
 
 We had a war file with about 30MB using JSP pre-compilation and hot deploy
 as suggested in the Tomcat web-site. But after using the hot deploy a few
 times we received out of memory messages - in the JVM permanent area
 (perm).
 
 After migrating to 1.5.0_02 - to get better JVM information - we could see
 that the used perm size always increase until this max size, in every
 Tomcat app reloading (even with exploded files and Ant 'touches'). We
 always lost 7 to 15MB of the perm area in every reload process - and this
 area is never collected...
 
 Anyone could help us with more information here (maybe about TC class
 loaders or perm area)?
 
 Is there anyone with the same problem?
 
 Thanks in advance!
 
 Paulo Alvim
 Powerlogic
 Brazil
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-- 
._
:|  .| |.|/.|_ 
:|__.|_|.|\.|_
:0421 276 282.

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



Re: Can you use Tomcat when you are not on line?

2005-04-07 Thread Walter Lee
Hi Jim, 
I thought this was going to be the answer, but alas I don't have an option 
exactly like that. The Internet Options/LAN setting states that it does not 
apply to dialup. I looked at the setting anyway and it is not checked where 
they ask if I am using a proxy server. I couldn't find any other place that 
proxy servers are mentioned so I don't have any idea where one could be. I will 
keep trying things.
Thanks,
 Wally
  - Original Message - 
  From: Sng Wee Jimmailto:[EMAIL PROTECTED] 
  To: Tomcat Users Listmailto:tomcat-user@jakarta.apache.org 
  Sent: Thursday, April 07, 2005 10:06 PM
  Subject: RE: Can you use Tomcat when you are not on line?



  Wally,

  Did you set your Internet Explorer to Bypass proxy server for local
  addresses (Internet Options | Local Area Network (LAN) Settings)?



  Jim

  -Original Message-
  From: Walter Lee [mailto:[EMAIL PROTECTED]
  Sent: Friday, April 08, 2005 3:06 AM
  To: Tomcat Users List; Jason Bainbridge
  Subject: Re: Can you use Tomcat when you are not on line?

  Thanks for responding. My IE is totally up to date. I have changed and
  re-changed all the options for connecting and it does not seem to make
  any difference. I cannot go to Firefox because the company does not want
  to. So I will keep playing around and see what happens. It does not seem
  to be a problem right now.
  Wally
- Original Message -
From: Jason Bainbridgemailto:[EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
To: Tomcat Users 
Listmailto:tomcat-user@jakarta.apache.orgmailto:tomcat-user@jakarta.apache.org
Sent: Thursday, April 07, 2005 2:42 PM
Subject: Re: Can you use Tomcat when you are not on line?


On Apr 6, 2005 10:44 AM, Walter Lee
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED] wrote:
 I have Tomcat installed on W2K and it says it is installed
  correctly. When I try the examples it tells me that I must be on line.
  If I am using localhost:8080 why does it need to be on line?


This is just Internet Explorer being tempermental, as other posters
have suggested either just use Firefox -
  
http://getfirefox.comhttp://getfirefox.com/http://getfirefox.comhttp://getfirefox.com/
 or just
play around with checking and unchecking File / work Offline in
Internet Explorer in between page refreshes. Eventually it will work.

I think this was only a problem with older versions of IE though.

--
Jason Bainbridge
http://kde.orghttp://kde.org/http://kde.orghttp://kde.org/ -
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED]
Personal Site -
  
http://jasonbainbridge.comhttp://jasonbainbridge.com/http://jasonbainbridge.comhttp://jasonbainbridge.com/

-
To unsubscribe, e-mail:
  [EMAIL PROTECTED]mailto:tomcat-user-unsubscribmailto:[EMAIL 
PROTECTED]mailto:tomcat-user-unsubscrib
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
  [EMAIL PROTECTED]mailto:[EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED]mailto:[EMAIL PROTECTED]
  he.org




  
  The information in this email is confidential and is intended solely
  for the addressee(s).
  Access to this email by anyone else is unauthorized. If you are not
  an intended recipient, please notify the sender of this email
  immediately. You should not copy, use or disseminate the
  information contained in the email.
  Any views expressed in this message are those of the individual
  sender, except where the sender specifically states them to be
  the views of Capco.

  http://www.capco.com/http://www.capco.com/

  

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